@computec/uibase 1.0.2 → 1.0.4
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/dist/communication/ConnectionOptions.d.ts +48 -0
- package/dist/communication/ConnectionOptions.d.ts.map +1 -0
- package/dist/communication/ConnectionOptions.js +9 -0
- package/dist/communication/IConnectionInfo.d.ts +18 -0
- package/dist/communication/IConnectionInfo.d.ts.map +1 -0
- package/dist/communication/IConnectionInfo.js +2 -0
- package/dist/communication/ISignalRHubClient.d.ts +47 -0
- package/dist/communication/ISignalRHubClient.d.ts.map +1 -0
- package/dist/communication/ISignalRHubClient.js +2 -0
- package/dist/communication/ISignalRMessage.d.ts +8 -0
- package/dist/communication/ISignalRMessage.d.ts.map +1 -0
- package/dist/communication/ISignalRMessage.js +2 -0
- package/dist/communication/SignalRHubClient.d.ts +26 -0
- package/dist/communication/SignalRHubClient.d.ts.map +1 -0
- package/dist/communication/SignalRHubClient.js +133 -0
- package/dist/communication/SignalRMessage.d.ts +10 -0
- package/dist/communication/SignalRMessage.d.ts.map +1 -0
- package/dist/communication/SignalRMessage.js +9 -0
- package/dist/communication/SubscribeProperties.d.ts +17 -0
- package/dist/communication/SubscribeProperties.d.ts.map +1 -0
- package/dist/communication/SubscribeProperties.js +25 -0
- package/dist/helpers/ErrorHelper.d.ts +1 -1
- package/dist/helpers/ErrorHelper.d.ts.map +1 -1
- package/dist/helpers/ErrorHelper.js +6 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/models/AppEngineConfiguration.d.ts +26 -0
- package/dist/models/AppEngineConfiguration.d.ts.map +1 -0
- package/dist/models/AppEngineConfiguration.js +9 -0
- package/dist/models/AppEngineException.d.ts +3 -5
- package/dist/models/AppEngineException.d.ts.map +1 -1
- package/dist/models/AppEngineException.js +9 -7
- package/dist/models/BaseBusinessObject.d.ts +1 -2
- package/dist/models/BaseBusinessObject.d.ts.map +1 -1
- package/dist/models/CompanyInfo.d.ts +11 -0
- package/dist/models/CompanyInfo.d.ts.map +1 -0
- package/dist/models/CompanyInfo.js +22 -0
- package/dist/models/ProblemDetails.d.ts +13 -0
- package/dist/models/ProblemDetails.d.ts.map +1 -0
- package/dist/models/ProblemDetails.js +22 -0
- package/dist/models/UserInfo.d.ts +7 -0
- package/dist/models/UserInfo.d.ts.map +1 -0
- package/dist/models/UserInfo.js +9 -0
- package/dist/models/ValidationProblemDetails.d.ts +10 -0
- package/dist/models/ValidationProblemDetails.d.ts.map +1 -0
- package/dist/models/ValidationProblemDetails.js +30 -0
- package/dist/models/Version.d.ts +15 -0
- package/dist/models/Version.d.ts.map +1 -0
- package/dist/models/Version.js +62 -0
- package/dist/models/interfaces/IAppEngineConfiguration.d.ts +24 -0
- package/dist/models/interfaces/IAppEngineConfiguration.d.ts.map +1 -0
- package/dist/models/interfaces/IAppEngineConfiguration.js +2 -0
- package/dist/models/interfaces/IAppEngineException.d.ts +2 -4
- package/dist/models/interfaces/IAppEngineException.d.ts.map +1 -1
- package/dist/models/interfaces/IProblemDetails.d.ts +8 -0
- package/dist/models/interfaces/IProblemDetails.d.ts.map +1 -0
- package/dist/models/interfaces/IProblemDetails.js +2 -0
- package/dist/models/interfaces/IValidationProblemDetails.d.ts +6 -0
- package/dist/models/interfaces/IValidationProblemDetails.d.ts.map +1 -0
- package/dist/models/interfaces/IValidationProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/.library +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions-dbg.js +19 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ConnectionOptions.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/IConnectionInfo-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/IConnectionInfo.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/IConnectionInfo.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRHubClient-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRHubClient.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRHubClient.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRMessage-dbg.js +7 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRMessage.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/ISignalRMessage.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient-dbg.js +215 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRHubClient.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRMessage-dbg.js +31 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRMessage.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SignalRMessage.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SubscribeProperties-dbg.js +49 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SubscribeProperties.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/communication/SubscribeProperties.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper-dbg.js +7 -1
- package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/helpers/ErrorHelper.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/library-dbg.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/library-preload.js +37 -7
- package/dist-ui5/resources/computec/appengine/uibase/library-preload.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/library.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/manifest.json +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException-dbg.js +5 -7
- package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/AppEngineException.js.map +1 -1
- package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails-dbg.js +49 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ProblemDetails.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails-dbg.js +70 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/ValidationProblemDetails.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IProblemDetails-dbg.js +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IProblemDetails.js.map +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IValidationProblemDetails-dbg.js +1 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IValidationProblemDetails.js +2 -0
- package/dist-ui5/resources/computec/appengine/uibase/models/interfaces/IValidationProblemDetails.js.map +1 -0
- package/package.json +6 -10
- package/dist-ui5/resources/computec/appengine/uibase/index-dbg.js +0 -43
- package/dist-ui5/resources/computec/appengine/uibase/index.js +0 -2
- package/dist-ui5/resources/computec/appengine/uibase/index.js.map +0 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
//@ui5-bundle computec/appengine/uibase/library-preload.js
|
|
2
2
|
sap.ui.require.preload({
|
|
3
|
+
"computec/appengine/uibase/communication/ConnectionOptions.js":function(){
|
|
4
|
+
"use strict";sap.ui.define([],function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function e(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(t){var e=n(t,"string");return"symbol"==typeof e?e:e+""}function n(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=e(function t(){i(this,t)});return o});
|
|
5
|
+
},
|
|
3
6
|
"computec/appengine/uibase/communication/HttpClient.js":function(){
|
|
4
7
|
"use strict";sap.ui.define(["../models/LocalStorage","../helpers/ErrorHelper","../models/enums/HeadersContentTypeEnum","../helpers/HttpClientHelper","./HttpClientCacheOptions"],function(t,e,r,n,o){"use strict";function i(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}function a(t){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){return h(t)||s(t,e)||l(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}function h(t){if(Array.isArray(t))return t}function p(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new _(n||[]);return o(a,"_invoke",{value:k(t,r,u)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",y="suspendedYield",v="executing",d="completed",g={};function m(){}function b(){}function w(){}var O={};l(O,a,function(){return this});var j=Object.getPrototypeOf,E=j&&j(j(N([])));E&&E!==r&&n.call(E,a)&&(O=E);var x=w.prototype=m.prototype=Object.create(O);function S(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function L(t,e){function r(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=T(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=s(e,r,n);if("normal"===l.type){if(o=n.done?d:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=d,n.method="throw",n.arg=l.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=s(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},S(L.prototype),l(L.prototype,u,function(){return this}),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},S(x),l(x,c,"Generator"),l(x,a,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){return(e=j(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function m(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){g(i,n,o,a,u,"next",t)}function u(t){g(i,n,o,a,u,"throw",t)}a(void 0)})}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}function O(t,e,r){return e&&w(t.prototype,e),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function j(t){var e=E(t,"string");return"symbol"==typeof e?e:e+""}function E(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var x=i(t);var S=i(e);var L=i(r);var k=i(n);var T=i(o);var P=function(){function t(){b(this,t)}return O(t,null,[{key:"clearCache",value:function t(){if(navigator.serviceWorker.controller){navigator.serviceWorker.controller.postMessage({type:"CT_AppEngine_pwa"})}else{console.warn("No active service worker found.")}}},{key:"removeCache",value:function t(e){this.clearCache()}},{key:"request",value:function(){var t=m(p().mark(function t(){var e,r,n;var o,i,a,u,c,l,f,s,h=arguments;return p().wrap(function t(p){while(1)switch(p.prev=p.next){case 0:o=h.length>0&&h[0]!==undefined?h[0]:{};i=(e=x.get("CTS_Session"))===null||e===void 0?void 0:e.CompanyId;a=v({headers:new Headers({"Content-Type":"application/json",Accepted:"application/json"})},o);if(i){this._appendToHeaders(a.headers,"x-b1-companyid",i)}u=(r=o.cacheOptions)===null||r===void 0?void 0:r.getCacheControlHeader();c=(n=o.cacheOptions)===null||n===void 0?void 0:n.getComputecCustomCacheControlHeader();if(u){this._appendToHeaders(a.headers,"cache-control",u)}if(c){this._appendToHeaders(a.headers,c[0],c[1])}l=k.getFullUrl(a.url);p.prev=9;p.next=12;return fetch(l,a);case 12:f=p.sent;p.next=15;return k.validateResponse(f,a);case 15:return p.abrupt("return",k.fetchData(f));case 18:p.prev=18;p.t0=p["catch"](9);s=S.getError(p.t0);throw s;case 22:case"end":return p.stop()}},t,this,[[9,18]])}));function e(){return t.apply(this,arguments)}return e}()},{key:"get",value:function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=v(v({},r),{},{method:"GET",url:e});if(r.useCache)n.cacheOptions=new T(true);return this.request(n)}},{key:"getCache",value:function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{cacheOptions:new T(true)};return this.get(e,r)}},{key:"post",value:function t(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.request(v(v({},n),{},{method:"POST",url:r,body:e}))}},{key:"postJSON",value:function t(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.post(JSON.stringify(e),r,v({headers:{"Content-Type":"application/json"}},n))}},{key:"postFile",value:function t(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=new FormData;o.append("file",e);return this.request(v(v({headers:{}},n),{},{method:"POST",url:r,body:o,cache:"no-cache"}))}},{key:"put",value:function t(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.request(v(v({},n),{},{method:"PUT",url:r,body:e}))}},{key:"putJSON",value:function t(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.put(JSON.stringify(e),r,v({headers:{"Content-Type":"application/json"}},n))}},{key:"patch",value:function t(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.request(v(v({},n),{},{method:"PATCH",url:r,body:e}))}},{key:"patchJSON",value:function t(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this.patch(JSON.stringify(e),r,v({headers:{"Content-Type":"application/json"}},n))}},{key:"remove",value:function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.request(v(v({headers:{Accepted:"".concat(L.Null,",").concat(L.Text)}},r),{},{method:"DELETE",url:e,cache:"no-cache"}))}},{key:"_appendToHeaders",value:function t(e,r,n){if(e instanceof Headers){if(!e.has(r))e.append(r,n)}if(k.isHeadersArrayType(e)){if(!e.find(function(t){var e=u(t,1),n=e[0];return n===r}))e.push([r,n])}return e[r]=n}}])}();return P});
|
|
5
8
|
},
|
|
@@ -8,31 +11,52 @@ sap.ui.require.preload({
|
|
|
8
11
|
},
|
|
9
12
|
"computec/appengine/uibase/communication/IBaseHttpClientOptions.js":function(){
|
|
10
13
|
"use strict";
|
|
14
|
+
},
|
|
15
|
+
"computec/appengine/uibase/communication/IConnectionInfo.js":function(){
|
|
16
|
+
"use strict";sap.ui.define([],function(){"use strict";return IConnectionInfo});
|
|
17
|
+
},
|
|
18
|
+
"computec/appengine/uibase/communication/ISignalRHubClient.js":function(){
|
|
19
|
+
"use strict";sap.ui.define([],function(){"use strict";return ISignalRHubClient});
|
|
20
|
+
},
|
|
21
|
+
"computec/appengine/uibase/communication/ISignalRMessage.js":function(){
|
|
22
|
+
"use strict";sap.ui.define([],function(){"use strict";return ISignalRMessage});
|
|
23
|
+
},
|
|
24
|
+
"computec/appengine/uibase/communication/SignalRHubClient.js":function(){
|
|
25
|
+
"use strict";sap.ui.define(["../helpers/ErrorHelper"],function(t){"use strict";function e(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}function n(t){"@babel/helpers - typeof";return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t){return a(t)||c(t)||i(t)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function c(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function a(t){if(Array.isArray(t))return u(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,c=Object.create(i.prototype),a=new S(r||[]);return o(c,"_invoke",{value:P(t,n,a)}),c}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="suspendedYield",v="executing",d="completed",m={};function g(){}function b(){}function w(){}var _={};l(_,c,function(){return this});var O=Object.getPrototypeOf,j=O&&O(O(C([])));j&&j!==n&&r.call(j,c)&&(_=j);var E=w.prototype=g.prototype=Object.create(_);function k(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function x(t,e){function n(o,i,c,a){var u=h(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then(function(t){n("next",t,c,a)},function(t){n("throw",t,c,a)}):e.resolve(l).then(function(t){s.value=t,c(s)},function(t){return n("throw",t,c,a)})}a(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e(function(e,o){n(t,r,e,o)})}return i=i?i.then(o,o):o()}})}function P(e,n,r){var o=p;return function(i,c){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw c;return{value:t,done:!0}}for(r.method=i,r.arg=c;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var s=h(e,n,r);if("normal"===s.type){if(o=r.done?d:y,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=d,r.method="throw",r.arg=s.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var c=i.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,o(E,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},k(x.prototype),l(x.prototype,a,function(){return this}),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var c=new x(f(t,n,r,o),i);return e.isGeneratorFunction(n)?c:c.next().then(function(t){return t.done?t.value:c.next()})},k(E),l(E,u,"Generator"),l(E,c,function(){return this}),l(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function l(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){l(i,r,o,c,a,"next",t)}function a(t){l(i,r,o,c,a,"throw",t)}c(void 0)})}}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){m(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function d(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=b(t,"string");return"symbol"==typeof e?e:e+""}function b(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var w=e(t);var _=function(){function t(e){var n=this;y(this,t);m(this,"off",function(t){return n._connection.off(t)});e=p({useSharedConnection:false,rootPath:"".concat(window.location.origin,"/tnc"),autoConnect:true},e);this._globalConnections=[];this.options=e;this._connection=this._getConnection(this.options);if(this.options.autoConnect){this.initialized=this.connect()}return this}return d(t,[{key:"promise",get:function t(){return this.initialized}},{key:"autoConnectPromise",get:function t(){return this.initialized}},{key:"connection",get:function t(){return this._connection}},{key:"connect",value:function(){var t=f(s().mark(function t(){return s().wrap(function t(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return this.connection.start();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}()},{key:"disconnect",value:function t(){this.connection.stop();return}},{key:"subscribe",value:function t(e){return this._subscribe(e)}},{key:"on",value:function t(e,n){this.connection.on(e,n)}},{key:"_subscribe",value:function(){var t=f(s().mark(function t(e){var n,o,i;return s().wrap(function t(c){while(1)switch(c.prev=c.next){case 0:c.prev=0;c.next=3;return this.initialized;case 3:o=e.getAttributes();c.next=6;return(n=this.connection).invoke.apply(n,[e.Name].concat(r(o)));case 6:c.next=14;break;case 8:c.prev=8;c.t0=c["catch"](0);i=w.getError(c.t0);console.error("".concat(i.name,":").concat(i.message));console.error(i.stack);throw new Error("Error while subscribing to function: ".concat(i.name," ").concat(i.message));case 14:case"end":return c.stop()}},t,this,[[0,8]])}));function e(e){return t.apply(this,arguments)}return e}()},{key:"_addQueries",value:function t(e){var n=[];if(e.companyId)n.push("CompanyId=".concat(e.companyId));if(e.companyApiKey){n.push("ApiKey=".concat(e.companyApiKey))}if(n.length==0)return"";return"?"+n.join("&")}},{key:"_initNewConnection",value:function t(e){var n;var r=new signalR.HubConnectionBuilder;if(e.rootPath){var o;var i="".concat((o=e.companyId)!==null&&o!==void 0?o:""," ");r=r.withUrl("".concat(e.rootPath).concat(this._addQueries(e)))}r=this._setAutoReconnect(r,e);if(e.keepAliveIntervalInMilliseconds&&e.keepAliveIntervalInMilliseconds>0){r=r.withKeepAliveInterval(e.keepAliveIntervalInMilliseconds)}if(e.serverTimeoutInMilliseconds&&e.serverTimeoutInMilliseconds>0){r=r.withServerTimeout(e.serverTimeoutInMilliseconds)}n=r.build();return n}},{key:"_setAutoReconnect",value:function t(e,n){if(!n.autoReconnect){return e}if(n.autoReconnectPolicy){return e.withAutomaticReconnect(n.autoReconnectPolicy)}if(typeof n.autoReconnectInterval==="number"){return e.withAutomaticReconnect([n.autoReconnectInterval])}if(Array.isArray(n.autoReconnectInterval)&&n.autoReconnectInterval.length>0){return e.withAutomaticReconnect(n.autoReconnectInterval)}return e.withAutomaticReconnect()}},{key:"_getSharedConnection",value:function t(e){var n;var r=this._globalConnections.find(function(t){return t.path===e.rootPath});var o;if(!r){o=this._initNewConnection(this.options);r={path:e.rootPath,connection:o};this._globalConnections.push(r)}return(n=r)===null||n===void 0?void 0:n.connection}},{key:"_getConnection",value:function t(e){if(this.options.useSharedConnection){return this._getSharedConnection(e)}else{return this._initNewConnection(this.options)}}}])}();return _});
|
|
26
|
+
},
|
|
27
|
+
"computec/appengine/uibase/communication/SignalRMessage.js":function(){
|
|
28
|
+
"use strict";sap.ui.define(["../models/BaseBusinessObject"],function(t){"use strict";function e(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t){var e=i(t,"string");return"symbol"==typeof e?e:e+""}function i(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e,r){return e=p(e),f(t,l()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function f(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var b=e(t);var d=function(t){function e(){u(this,e);return c(this,e,arguments)}s(e,t);return n(e)}(b);return d});
|
|
29
|
+
},
|
|
30
|
+
"computec/appengine/uibase/communication/SubscribeProperties.js":function(){
|
|
31
|
+
"use strict";sap.ui.define([],function(){"use strict";function t(r){"@babel/helpers - typeof";return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(t){return i(t)||o(t)||n(t)||e()}function e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,r){if(t){if("string"==typeof t)return u(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,r):void 0}}function o(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(t){if(Array.isArray(t))return u(t)}function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function a(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function c(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function f(t,r,e){return r&&c(t.prototype,r),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var r=s(t,"string");return"symbol"==typeof r?r:r+""}function s(r,e){if("object"!=t(r)||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var o=n.call(r,e||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(r)}var y=function(){function t(r){a(this,t);this.Name=r}return f(t,[{key:"getAttributes",value:function t(){var e=Object.keys(this).indexOf("Name");var n=[].concat(r(Object.values(this).slice(0,e)),r(Object.values(this).slice(e+1)));return n}}])}();var b={__esModule:true};b.SubscribeProperties=y;return b});
|
|
11
32
|
},
|
|
12
33
|
"computec/appengine/uibase/helpers/ErrorHelper.js":function(){
|
|
13
|
-
"use strict";sap.ui.define(["../models/AppEngineException"],function(e){"use strict";function
|
|
34
|
+
"use strict";sap.ui.define(["../models/ValidationProblemDetails","../models/AppEngineException","../models/ProblemDetails"],function(e,r,t){"use strict";function n(e){return e&&e.__esModule&&typeof e.default!=="undefined"?e.default:e}function o(e){"@babel/helpers - typeof";return o="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},o(e)}function i(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function a(e,r,t){return r&&u(e.prototype,r),t&&u(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var r=c(e,"string");return"symbol"==typeof r?r:r+""}function c(e,r){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}var f=n(e);var s=n(r);var p=n(t);var y=function(){function e(){i(this,e)}return a(e,null,[{key:"getError",value:function e(r){var t;switch(true){case r instanceof Error:return r;case typeof r==="string":return new Error(r);case f.is(r):return f.create(r).error;case p.is(r):return p.create(r).error;case s.is(r):return new s(r).error;case r===null||r===void 0||(t=r.error)===null||t===void 0?void 0:t.message:return new Error(r.error.message);default:return r}}},{key:"isAppEngineException",value:function e(r){return s.is(r)}}])}();return y});
|
|
14
35
|
},
|
|
15
36
|
"computec/appengine/uibase/helpers/HttpClientHelper.js":function(){
|
|
16
37
|
"use strict";sap.ui.define(["../models/AppEngineException","./ErrorHelper","../models/enums/HeadersContentTypeEnum"],function(t,e,r){"use strict";function n(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}function o(t){"@babel/helpers - typeof";return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){return l(t)||s(t,e)||u(t,e)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}function l(t){if(Array.isArray(t))return t}function f(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new S(n||[]);return o(a,"_invoke",{value:k(t,r,u)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="suspendedYield",v="executing",d="completed",m={};function g(){}function w(){}function b(){}var E={};s(E,a,function(){return this});var T=Object.getPrototypeOf,_=T&&T(T(R([])));_&&_!==r&&n.call(_,a)&&(E=_);var x=b.prototype=g.prototype=Object.create(E);function A(t){["next","throw","return"].forEach(function(e){s(t,e,function(t){return this._invoke(e,t)})})}function L(t,e){function r(o,i,a,u){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(l).then(function(t){s.value=t,a(s)},function(t){return r("throw",t,a,u)})}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,o){r(t,n,e,o)})}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=O(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?d:y,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},A(L.prototype),s(L.prototype,u,function(){return this}),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},A(x),s(x,c,"Generator"),s(x,a,function(){return this}),s(x,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=R,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function h(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){h(i,n,o,a,u,"next",t)}function u(t){h(i,n,o,a,u,"throw",t)}a(void 0)})}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,w(n.key),n)}}function d(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var m;function g(t,e,r){return(e=w(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(t){var e=b(t,"string");return"symbol"==typeof e?e:e+""}function b(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var E=n(t);var T=n(e);var _=n(r);var x=function(){function t(){y(this,t)}return d(t,null,[{key:"validateResponse",value:function(){var t=p(f().mark(function t(e,r){return f().wrap(function t(n){while(1)switch(n.prev=n.next){case 0:if(e.ok){n.next=3;break}n.next=3;return this._throwErrorBasedOnResponse(e,r);case 3:this._validateResponseType(e,r);return n.abrupt("return",true);case 5:case"end":return n.stop()}},t,this)}));function e(e,r){return t.apply(this,arguments)}return e}()},{key:"isHeadersArrayType",value:function t(e){if(!Array.isArray(e)){return false}for(var r=0;r<e.length;r++){if(!Array.isArray(e[r])||e[r].length!==2){return false}if(typeof e[r][0]!=="string"||typeof e[r][1]!=="string"){return false}}return true}},{key:"fetchData",value:function t(e){var r=e.headers.get("Content-Type");if(this._isJsonType(r))return this._fetchJsonData(e);if(this._isFileType(r))return this._fetchFileData(e);return this._fetchTextData(e)}},{key:"getFullUrl",value:function t(e){if(!e)return"";if(this.FULL_URL_PATTERN.test(e))return e;return"".concat(window.location.origin,"/").concat(e)}},{key:"_validateResponseType",value:function t(e,r){var n=this;var o=e.headers.get("Content-Type");var i=this._getAcceptedType(r.headers);var a=true;if(i){var u=i.split(",");a=u.some(function(t){return n._isJsonType(t)&&n._isJsonType(o)||n._isTextType(t)&&n._isTextType(o)||n._isFileType(t)&&n._isFileType(o)||n._isNullType(t)&&n._isNullType(o)})}if(!a)throw new Error("Wrong content type. Accepted type for request: ".concat(i,", received type in response: ").concat(o,"."))}},{key:"_throwErrorBasedOnResponse",value:function(){var e=p(f().mark(function e(r,n){var o,i;return f().wrap(function e(a){while(1)switch(a.prev=a.next){case 0:a.t0=r.status;a.next=a.t0===401?3:a.t0===0?7:a.t0===404?8:a.t0===405?9:10;break;case 3:o=new Error;o.name=t.NOT_AUTHENTICATED_ERROR_NAME;o.message=r.statusText;throw o;case 7:throw new Error("Server is not responding");case 8:throw new Error("Not found ".concat(n.url));case 9:throw new Error("Method ".concat(n.method," not allowed for endpoint: ").concat(n.url));case 10:a.next=12;return this.fetchData(r);case 12:i=a.sent;if(!E.is(i)){a.next=15;break}throw new E(i).error;case 15:throw T.getError(i);case 16:case"end":return a.stop()}},e,this)}));function r(t,r){return e.apply(this,arguments)}return r}()},{key:"_getAcceptedType",value:function t(e){if(!e)return null;if(e instanceof Headers)return e.get("Accepted");if(this.isHeadersArrayType(e)){var r=e.find(function(t){var e=i(t,1),r=e[0];return r==="Accepted"});if(r!==undefined)return r[1]}return e["Accepted"]}},{key:"_isJsonType",value:function t(e){return e===null||e===void 0?void 0:e.includes(_.Json)}},{key:"_isFileType",value:function t(e){return e===null||e===void 0?void 0:e.includes(_.OctetStream)}},{key:"_isTextType",value:function t(e){return e===null||e===void 0?void 0:e.includes(_.Text)}},{key:"_isNullType",value:function t(e){return e===_.Null||e===null}},{key:"_fetchJsonData",value:function(){var t=p(f().mark(function t(e){var r;return f().wrap(function t(n){while(1)switch(n.prev=n.next){case 0:n.prev=0;n.next=3;return e.json();case 3:return n.abrupt("return",n.sent);case 6:n.prev=6;n.t0=n["catch"](0);r=T.getError(n.t0);throw new Error("Could not load json data from response. ".concat(r.message));case 10:case"end":return n.stop()}},t,null,[[0,6]])}));function e(e){return t.apply(this,arguments)}return e}()},{key:"_fetchFileData",value:function(){var t=p(f().mark(function t(e){var r;return f().wrap(function t(n){while(1)switch(n.prev=n.next){case 0:n.prev=0;n.next=3;return e.blob();case 3:return n.abrupt("return",n.sent);case 6:n.prev=6;n.t0=n["catch"](0);r=T.getError(n.t0);throw new Error("Could not load json data from response. ".concat(r.message));case 10:case"end":return n.stop()}},t,null,[[0,6]])}));function e(e){return t.apply(this,arguments)}return e}()},{key:"_fetchTextData",value:function(){var t=p(f().mark(function t(e){var r;return f().wrap(function t(n){while(1)switch(n.prev=n.next){case 0:n.prev=0;n.next=3;return e.text();case 3:return n.abrupt("return",n.sent);case 6:n.prev=6;n.t0=n["catch"](0);r=T.getError(n.t0);throw new Error("Could not load text data from response. ".concat(r.message));case 10:case"end":return n.stop()}},t,null,[[0,6]])}));function e(e){return t.apply(this,arguments)}return e}()}])}();m=x;g(x,"FULL_URL_PATTERN",/^https?:\/\//i);g(x,"NOT_AUTHENTICATED_ERROR_NAME","RESPONSE_NOT_AUTHENTICATED");g(x,"isNotAuthenticated",function(t){return t.name===m.NOT_AUTHENTICATED_ERROR_NAME});return x});
|
|
17
|
-
},
|
|
18
|
-
"computec/appengine/uibase/index.js":function(){
|
|
19
|
-
"use strict";sap.ui.define(["./communication/HttpClient","./communication/HttpClientCacheOptions","./communication/IBaseHttpClientOptions","./helpers/ErrorHelper","./helpers/HttpClientHelper","./models/AppEngineException","./models/BaseBusinessObject","./models/enums/HeadersContentTypeEnum","./models/enums/StorageTypeEnum","./models/interfaces/IAppEngineException","./models/LocalStorage","./models/Session"],function(e,t,n,i,o,s,l,u,p,r,a,c){"use strict";var d={__esModule:true};d.HttpClient=e.default;function f(e,t){t&&Object.keys(t).forEach(function(n){if(n==="default"||n==="__esModule")return;Object.defineProperty(e,n,{enumerable:true,get:function e(){return t[n]}})})}f(d,e);d.HttpClientCacheOptions=t.default;f(d,t);f(d,n);d.ErrorHelper=i.default;f(d,i);d.HttpClientHelper=o.default;f(d,o);d.AppEngineException=s.default;f(d,s);d.BaseBusinessObject=l.default;f(d,l);d.HeadersContentTypeEnum=u.default;f(d,u);f(d,p);d.IAppEngineException=r.default;f(d,r);d.LocalStorage=a.default;f(d,a);d.Session=c.default;f(d,c);return d});
|
|
20
38
|
},
|
|
21
39
|
"computec/appengine/uibase/library.js":function(){
|
|
22
|
-
"use strict";sap.ui.define(["sap/ui/core/Lib","sap/ui/core/library"],function(e,i){i;var n=e.init({name:"computec.appengine.uibase",version:"1.0.
|
|
40
|
+
"use strict";sap.ui.define(["sap/ui/core/Lib","sap/ui/core/library"],function(e,i){i;var n=e.init({name:"computec.appengine.uibase",version:"1.0.4",dependencies:[],types:[],interfaces:[],controls:[],elements:[],noLibraryCSS:false});return n});
|
|
23
41
|
},
|
|
24
|
-
"computec/appengine/uibase/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"computec.appengine.uibase","type":"library","embeds":[],"applicationVersion":{"version":"1.0.
|
|
42
|
+
"computec/appengine/uibase/manifest.json":'{"_version":"1.21.0","sap.app":{"id":"computec.appengine.uibase","type":"library","embeds":[],"applicationVersion":{"version":"1.0.4"},"title":"uibase","description":"Core library required by AppEngine plugins","resources":"resources.json","offline":true},"sap.ui":{"technology":"UI5","supportedThemes":[]},"sap.ui5":{"dependencies":{"libs":{"sap.ui.core":{}}},"library":{"i18n":false,"content":{"controls":[],"elements":[],"types":[],"interfaces":[]}}}}',
|
|
25
43
|
"computec/appengine/uibase/models/AppEngineException.js":function(){
|
|
26
|
-
"use strict";sap.ui.define([],function(){"use strict";function t(e){"@babel/helpers - typeof";return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var
|
|
44
|
+
"use strict";sap.ui.define([],function(){"use strict";function t(e){"@babel/helpers - typeof";return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(t){var e=o(t,"string");return"symbol"==typeof e?e:e+""}function o(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}var u=function(){function r(t){e(this,r);if(t){this.Title=t.Title;this.Detail=t.Detail}}return n(r,[{key:"error",get:function t(){return new Error(this.Detail)}}],[{key:"is",value:function e(r){if(t(r)!=="object"||r===null)return false;var n=r;return"Title"in n&&typeof n.Title==="string"&&"Detail"in n&&typeof n.Detail==="string"}}])}();return u});
|
|
27
45
|
},
|
|
28
46
|
"computec/appengine/uibase/models/BaseBusinessObject.js":function(){
|
|
29
47
|
"use strict";sap.ui.define([],function(){"use strict";function t(e){"@babel/helpers - typeof";return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){var e=c(t,"string");return"symbol"==typeof e?e:e+""}function c(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}var f=function(){function t(){n(this,t);u(this,"USE_RAW_DATA",false);u(this,"_rawData",{})}return o(t,[{key:"cleanRaw",value:function t(){return this._rawData={}}},{key:"getField",value:function t(e){try{return this._rawData[e]}catch(t){return null}}},{key:"fillData",value:function t(e){var r=this.USE_RAW_DATA;var n=e||{};n["_rawData"]=undefined;Object.assign(this,n);if(r)this._rawData=n;return this}},{key:"clone",value:function t(){return this.cloneInternal(this)}},{key:"structuredClone",value:function t(){return this.constructor.create(this)}},{key:"cloneInternal",value:function t(e){return Object.assign(new this.constructor,e)}},{key:"toJSON",value:function t(){return r(r({},this),{},{_rawData:undefined,USE_RAW_DATA:undefined})}}],[{key:"create",value:function t(e){var r=new this;r.fillData(e);return r}},{key:"createMany",value:function t(e){var r=this;return(e||[]).map(function(t){return r.create(t)})}}])}();return f});
|
|
30
48
|
},
|
|
31
49
|
"computec/appengine/uibase/models/LocalStorage.js":function(){
|
|
32
50
|
"use strict";sap.ui.define(["./enums/StorageTypeEnum"],function(e){"use strict";function t(e){"@babel/helpers - typeof";return t="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},t(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=u(e,"string");return"symbol"==typeof t?t:t+""}function u(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}var a=e["StorageTypeEnum"];var l=function(){function e(){r(this,e)}return o(e,null,[{key:"put",value:function e(t,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:a.session;var o=this._prepareValueForStorage(r);if(o===null)return;if(n===a.session){window.sessionStorage.setItem(t,o)}else if(n==a.local){window.localStorage.setItem(t,o)}}},{key:"get",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:a.session;var n;switch(r){case a.session:n=window.sessionStorage.getItem(t);break;case a.local:n=window.localStorage.getItem(t);break;default:return null}if(n===null)return null;return this._parseValue(n)}},{key:"remove",value:function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:a.session;if(r===a.session){window.sessionStorage.removeItem(t)}else if(r===a.local){window.localStorage.removeItem(t)}}},{key:"_prepareValueForStorage",value:function e(r){if(t(r)==="object"&&r!==null)return JSON.stringify(r);return r}},{key:"_parseValue",value:function e(t){try{JSON.parse(t);return JSON.parse(t)}catch(e){}return t}}])}();return l});
|
|
51
|
+
},
|
|
52
|
+
"computec/appengine/uibase/models/ProblemDetails.js":function(){
|
|
53
|
+
"use strict";sap.ui.define(["./BaseBusinessObject"],function(t){"use strict";function e(t){return t&&t.__esModule&&typeof t.default!=="undefined"?t.default:t}function r(t){"@babel/helpers - typeof";return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function i(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=f(t,"string");return"symbol"==typeof e?e:e+""}function f(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function c(t,e,r){return e=p(e),a(t,s()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function a(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var d=e(t);var v=function(t){function e(){n(this,e);return c(this,e,arguments)}y(e,t);return i(e,[{key:"errorMessage",get:function t(){return this.detail||this.title}},{key:"error",get:function t(){return new Error(this.errorMessage)}}],[{key:"is",value:function t(e){if(r(e)!=="object"||e===null)return false;var n=e;return"title"in n&&typeof n.title==="string"||"status"in n&&typeof n.status==="number"}}])}(d);return v});
|
|
33
54
|
},
|
|
34
55
|
"computec/appengine/uibase/models/Session.js":function(){
|
|
35
56
|
"use strict";sap.ui.define([],function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function e(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(t){var e=n(t,"string");return"symbol"==typeof e?e:e+""}function n(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=e(function t(){i(this,t)});return o});
|
|
57
|
+
},
|
|
58
|
+
"computec/appengine/uibase/models/ValidationProblemDetails.js":function(){
|
|
59
|
+
"use strict";sap.ui.define(["./ProblemDetails"],function(r){"use strict";function t(r){return r&&r.__esModule&&typeof r.default!=="undefined"?r.default:r}function e(r){"@babel/helpers - typeof";return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e(r)}function n(r,t){return f(r)||c(r,t)||i(r,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(r,t){if(r){if("string"==typeof r)return u(r,t);var e={}.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(r,t):void 0}}function u(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}function c(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,o,i,u,c=[],f=!0,a=!1;try{if(i=(e=e.call(r)).next,0===t){if(Object(e)!==e)return;f=!1}else for(;!(f=(n=i.call(e)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(r){a=!0,o=r}finally{try{if(!f&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(a)throw o}}return c}}function f(r){if(Array.isArray(r))return r}function a(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function l(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,g(n.key),n)}}function s(r,t,e){return t&&l(r.prototype,t),e&&l(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function y(r,t,e){return t=d(t),b(r,v()?Reflect.construct(t,e||[],d(r).constructor):t.apply(r,e))}function b(r,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(r)}function p(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function v(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(v=function(){return!!r})()}function d(r){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d(r)}function m(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&h(r,t)}function h(r,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,t){return r.__proto__=t,r},h(r,t)}function j(r,t,e){return(t=g(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function g(r){var t=w(r,"string");return"symbol"==typeof t?t:t+""}function w(r,t){if("object"!=e(r)||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var o=n.call(r,t||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}var O=t(r);var S=function(r){function t(){var r;a(this,t);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++){n[o]=arguments[o]}r=y(this,t,[].concat(n));j(r,"errors",{});j(r,"traceId",null);return r}m(t,r);return s(t,[{key:"errorMessage",get:function r(){var t="";Object.entries(this.errors).forEach(function(r){var e=n(r,2),o=e[0],i=e[1];t+="".concat(o,": ").concat(i.join(", "),"\n")});return t.trim()}},{key:"error",get:function r(){return new Error(this.errorMessage)}}],[{key:"is",value:function r(t){if(!O.is(t))return false;var n=t;return"errors"in n&&e(n.errors)==="object"&&n.errors!==null}}])}(O);return S});
|
|
36
60
|
},
|
|
37
61
|
"computec/appengine/uibase/models/enums/HeadersContentTypeEnum.js":function(){
|
|
38
62
|
"use strict";sap.ui.define([],function(){"use strict";var t=function(t){t["Json"]="application/json";t["Text"]="text/plain";t["OctetStream"]="application/octet-stream";t["Null"]="null";return t}(t||{});return t});
|
|
@@ -42,6 +66,12 @@ sap.ui.require.preload({
|
|
|
42
66
|
},
|
|
43
67
|
"computec/appengine/uibase/models/interfaces/IAppEngineException.js":function(){
|
|
44
68
|
"use strict";sap.ui.define([],function(){"use strict";return IAppEngineException});
|
|
69
|
+
},
|
|
70
|
+
"computec/appengine/uibase/models/interfaces/IProblemDetails.js":function(){
|
|
71
|
+
"use strict";
|
|
72
|
+
},
|
|
73
|
+
"computec/appengine/uibase/models/interfaces/IValidationProblemDetails.js":function(){
|
|
74
|
+
"use strict";
|
|
45
75
|
}
|
|
46
76
|
});
|
|
47
77
|
//# sourceMappingURL=library-preload.js.map
|