@wavemaker/app-runtime-wm-build 11.4.0-next.25724 → 11.4.0-next.25730
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.
|
@@ -205008,6 +205008,9 @@ window.requestAnimationFrame = function() {
|
|
|
205008
205008
|
}
|
|
205009
205009
|
};
|
|
205010
205010
|
var initiateCallback = function(type, variable, data, options, skipDefaultNotification) {
|
|
205011
|
+
if (variable._skipInitiateCallback) {
|
|
205012
|
+
return;
|
|
205013
|
+
}
|
|
205011
205014
|
var eventValues = variable[type], callBackScope = variable._context;
|
|
205012
205015
|
var errorVariable;
|
|
205013
205016
|
if (type === _constants_variables_constants__WEBPACK_IMPORTED_MODULE_1__.VARIABLE_CONSTANTS.EVENT.ERROR && !skipDefaultNotification) {
|
|
@@ -4391,7 +4391,7 @@ i.version="2.29.4",o(Zn),i.fn=lo,i.min=er,i.max=tr,i.now=nr,i.utc=m,i.unix=co,i.
|
|
|
4391
4391
|
/*!**********************************************!*\
|
|
4392
4392
|
!*** ./src/util/variable/variables.utils.ts ***!
|
|
4393
4393
|
\**********************************************/
|
|
4394
|
-
(e,t,n)=>{"use strict";n.r(t),n.d(t,{appManager:()=>r,debounceVariableCall:()=>k,decodeData:()=>A,dialogService:()=>d,formatDate:()=>H,formatExportExpression:()=>C,getBlob:()=>M,getErrMessage:()=>V,getEvaluatedOrderBy:()=>O,getTarget:()=>R,getTargetNodeKey:()=>P,getTargetObj:()=>N,httpService:()=>i,initiateCallback:()=>F,internalBoundNodeMap:()=>b,isFileUploadSupported:()=>T,metadataService:()=>o,navigationService:()=>a,oauthService:()=>l,routerService:()=>s,securityService:()=>c,setInput:()=>D,setValueToNode:()=>I,toasterService:()=>u,updateInternalNodes:()=>j,wmSetDependency:()=>x});var r,i,o,a,s,u,l,c,d,p=n(/*! ../utils */"./src/util/utils.ts"),h=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),f=n(/*! moment */"./node_modules/moment/moment.js"),m=n.n(f),v=n(/*! lodash */"./node_modules/lodash/lodash.js"),g=n.n(v),y=n(/*! he */"./node_modules/he/he.js"),_=n.n(y),b=new Map,w=new Map,S=/^\[("|')[\w\W]*(\1)\]$/,E=function(e,t){var n,r,i=g().noop;w.has(e)&&(i=w.get(e).cancel),i(),n=g().debounce((function(){(r=e[t]())instanceof Promise&&r.catch(g().noop)}),100),w.set(e,n),n()},x=function(e,t){switch(e){case"appManager":r=t;break;case"http":i=t;break;case"metadata":o=t;break;case"navigationService":a=t;break;case"router":s=t;break;case"toaster":u=t;break;case"oAuth":l=t;break;case"security":c=t;break;case"dialog":d=t}},k=E,T=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob},C=function(e){return g().forEach(e,(function(e){e.expression&&(e.expression="${"+e.expression+"}")})),e},M=function(e,t){if(e instanceof Blob)return e;var n=(0,p.getValidJSON)(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},D=function(e,t,n,r){e=e||{};var i,o,a={};if(g().isObject(r))switch(r.type){case"file":n=M(n,r.contentType);break;case"number":n=g().isNumber(n)?n:parseInt(n,10)}return g().isObject(t)?a=t:t.indexOf(".")>-1?(o=(i=t.split(".")).pop(),e=(0,p.findValueOf)(e,i.join("."),!0),a[t=o]=n):a[t]=n,g().forEach(a,(function(t,n){e[n]=t})),e},A=function(e){if(!e)return e;if(g().isArray(e))g().forEach(e,(function(e){g().isString(e)?e=L(e):g().isObject(e)&&g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=L(t):g().isObject(t)&&A(t)}))}));else if(g().isObject(e))g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=L(t):g().isObject(t)&&A(t)}));else if(g().isString(e))return e=L(e)};function L(e){return _().unescape(e)}var O=function(e,t){var n,r;return!t||g().isEmpty(t)?e:e?(e=g().split(e,","),t=g().split(t,","),n=g().map(t,(function(e){return g().split(g().trim(e)," ")[0]})),g().remove(e,(function(e){return g().includes(n,g().split(g().trim(e)," ")[0])})),r=e.length?","+g().join(e,","):"",g().join(t,",")+r):t},N=function(e,t,n){var r,i=e.target,o=n[t];return S.test(i)?r=o:(i=i.substr(0,i.lastIndexOf(".")),r=e.target===t?n:i?(0,p.findValueOf)(o,i,!0):o),r},P=function(e){return S.test(e)?e.replace(/^(\[["'])|(["']\])$/g,""):e.split(".").pop()},I=function(e,t,n,r,i,o){var a=P(e),s=N(t,n,r);i=g().isUndefined(i)?t.value:i,s&&(s[a]=i),function(e,t,n,r,i){switch(r.category){case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:"read"===r.operation?("dataBinding"===e?g().forEach(t,(function(e,t){r.filterFields[t]={value:e}})):r.filterFields[e]={value:t,type:n},r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.listRecords)&&!i&&E(r,"listRecords")):("dataBinding"===e?r.inputFields=t:r.inputFields[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r[r.operation+"Record"])&&!i&&E(r,r.operation+"Record"));break;case h.VARIABLE_CONSTANTS.CATEGORY.CRUD:"list"===r.operationType&&r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.SERVICE:case h.VARIABLE_CONSTANTS.CATEGORY.LOGIN:r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.DEVICE:r[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke")}}(a,i,t.type,r,o)},R=function(e){var t;switch(e.category){case h.VARIABLE_CONSTANTS.CATEGORY.MODEL:t="dataSet";break;case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:t="read"===e.operation?"filterFields":"inputFields";break;default:t="dataBinding"}return t},j=function(e,t,n){var r,i=g().keys(g().get(b.get(n),[n.name,t])),o=P(e);(r=g().filter(i,(function(e){return e!==o&&g().includes(e,o)||(o===t||"dataBinding"===o)&&e!==o}))).length&&g().forEach(r,(function(e){I(e,{target:e},t,n,g().get(b.get(n),[n.name,t,e]))}))},F=function(e,t,n,r,i){var o,a=t[e],s=t._context;e!==h.VARIABLE_CONSTANTS.EVENT.ERROR||i||a||(o=s.Actions[h.VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION])&&(n=o.getMessage()||n,n=g().isString(n)?n:"An error has occured. Please check the app logs.",o.invoke({message:n},void 0,void 0));var u=t[e]||p.noop;return e===h.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE?"wm.LiveVariable"===t.category&&"read"===t.operation?u(t._context,{variable:t,dataFilter:n,options:r}):u(t._context,{variable:t,inputData:n,options:r}):u(t._context,{variable:t,data:n,options:r})},Y=function(e,t,n){var r;return g().isDate(e)?r=e.getTime():(isNaN(e)||(e=parseInt(e,10)),r=e&&m()(e).valueOf()),isNaN(r)&&t!==p.DataType.TIME||t===p.DataType.TIMESTAMP?r:(t!==p.DataType.TIME||r||(r=m()((new Date).toDateString()+" "+e).valueOf()),e&&n.format(r,function(e){return p.DEFAULT_FORMATS[g().toUpper(e)]}(t)))},H=function(e,t,n){return g().includes(t,".")&&(t=g().toLower((0,p.extractType)(t))),g().isArray(e)?g().map(e,(function(e){return Y(e,t,n)})):Y(e,t,n)},B=function(e){return e.message?(0,p.replace)(e.message,e.parameters,!0):e.parameters&&e.parameters[0]||""},V=function(e,t){var n={404:t.MESSAGE_404_ERROR||"Requested resource not found",401:t.MESSAGE_401_ERROR||"Requested resource requires authentication",403:t.LABEL_FORBIDDEN_MESSAGE||"The requested resource access/action is forbidden."}[e.status],r=e.error||e.data;return n=(r=(0,p.getValidJSON)(r)||r)&&r.errors?function(e){var t="";return e&&e.error&&e.error.length&&e.error.forEach((function(e,n){t+=B(e)+(n>0?"\n":"")})),t}(r.errors)||n||"Service Call Failed":n||"Service Call Failed"}},"./node_modules/x2js/x2js.js":
|
|
4394
|
+
(e,t,n)=>{"use strict";n.r(t),n.d(t,{appManager:()=>r,debounceVariableCall:()=>k,decodeData:()=>A,dialogService:()=>d,formatDate:()=>H,formatExportExpression:()=>C,getBlob:()=>M,getErrMessage:()=>V,getEvaluatedOrderBy:()=>O,getTarget:()=>R,getTargetNodeKey:()=>P,getTargetObj:()=>N,httpService:()=>i,initiateCallback:()=>F,internalBoundNodeMap:()=>b,isFileUploadSupported:()=>T,metadataService:()=>o,navigationService:()=>a,oauthService:()=>l,routerService:()=>s,securityService:()=>c,setInput:()=>D,setValueToNode:()=>I,toasterService:()=>u,updateInternalNodes:()=>j,wmSetDependency:()=>x});var r,i,o,a,s,u,l,c,d,p=n(/*! ../utils */"./src/util/utils.ts"),h=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),f=n(/*! moment */"./node_modules/moment/moment.js"),m=n.n(f),v=n(/*! lodash */"./node_modules/lodash/lodash.js"),g=n.n(v),y=n(/*! he */"./node_modules/he/he.js"),_=n.n(y),b=new Map,w=new Map,S=/^\[("|')[\w\W]*(\1)\]$/,E=function(e,t){var n,r,i=g().noop;w.has(e)&&(i=w.get(e).cancel),i(),n=g().debounce((function(){(r=e[t]())instanceof Promise&&r.catch(g().noop)}),100),w.set(e,n),n()},x=function(e,t){switch(e){case"appManager":r=t;break;case"http":i=t;break;case"metadata":o=t;break;case"navigationService":a=t;break;case"router":s=t;break;case"toaster":u=t;break;case"oAuth":l=t;break;case"security":c=t;break;case"dialog":d=t}},k=E,T=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob},C=function(e){return g().forEach(e,(function(e){e.expression&&(e.expression="${"+e.expression+"}")})),e},M=function(e,t){if(e instanceof Blob)return e;var n=(0,p.getValidJSON)(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},D=function(e,t,n,r){e=e||{};var i,o,a={};if(g().isObject(r))switch(r.type){case"file":n=M(n,r.contentType);break;case"number":n=g().isNumber(n)?n:parseInt(n,10)}return g().isObject(t)?a=t:t.indexOf(".")>-1?(o=(i=t.split(".")).pop(),e=(0,p.findValueOf)(e,i.join("."),!0),a[t=o]=n):a[t]=n,g().forEach(a,(function(t,n){e[n]=t})),e},A=function(e){if(!e)return e;if(g().isArray(e))g().forEach(e,(function(e){g().isString(e)?e=L(e):g().isObject(e)&&g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=L(t):g().isObject(t)&&A(t)}))}));else if(g().isObject(e))g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=L(t):g().isObject(t)&&A(t)}));else if(g().isString(e))return e=L(e)};function L(e){return _().unescape(e)}var O=function(e,t){var n,r;return!t||g().isEmpty(t)?e:e?(e=g().split(e,","),t=g().split(t,","),n=g().map(t,(function(e){return g().split(g().trim(e)," ")[0]})),g().remove(e,(function(e){return g().includes(n,g().split(g().trim(e)," ")[0])})),r=e.length?","+g().join(e,","):"",g().join(t,",")+r):t},N=function(e,t,n){var r,i=e.target,o=n[t];return S.test(i)?r=o:(i=i.substr(0,i.lastIndexOf(".")),r=e.target===t?n:i?(0,p.findValueOf)(o,i,!0):o),r},P=function(e){return S.test(e)?e.replace(/^(\[["'])|(["']\])$/g,""):e.split(".").pop()},I=function(e,t,n,r,i,o){var a=P(e),s=N(t,n,r);i=g().isUndefined(i)?t.value:i,s&&(s[a]=i),function(e,t,n,r,i){switch(r.category){case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:"read"===r.operation?("dataBinding"===e?g().forEach(t,(function(e,t){r.filterFields[t]={value:e}})):r.filterFields[e]={value:t,type:n},r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.listRecords)&&!i&&E(r,"listRecords")):("dataBinding"===e?r.inputFields=t:r.inputFields[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r[r.operation+"Record"])&&!i&&E(r,r.operation+"Record"));break;case h.VARIABLE_CONSTANTS.CATEGORY.CRUD:"list"===r.operationType&&r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.SERVICE:case h.VARIABLE_CONSTANTS.CATEGORY.LOGIN:r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.DEVICE:r[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke")}}(a,i,t.type,r,o)},R=function(e){var t;switch(e.category){case h.VARIABLE_CONSTANTS.CATEGORY.MODEL:t="dataSet";break;case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:t="read"===e.operation?"filterFields":"inputFields";break;default:t="dataBinding"}return t},j=function(e,t,n){var r,i=g().keys(g().get(b.get(n),[n.name,t])),o=P(e);(r=g().filter(i,(function(e){return e!==o&&g().includes(e,o)||(o===t||"dataBinding"===o)&&e!==o}))).length&&g().forEach(r,(function(e){I(e,{target:e},t,n,g().get(b.get(n),[n.name,t,e]))}))},F=function(e,t,n,r,i){if(!t._skipInitiateCallback){var o,a=t[e],s=t._context;e!==h.VARIABLE_CONSTANTS.EVENT.ERROR||i||a||(o=s.Actions[h.VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION])&&(n=o.getMessage()||n,n=g().isString(n)?n:"An error has occured. Please check the app logs.",o.invoke({message:n},void 0,void 0));var u=t[e]||p.noop;return e===h.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE?"wm.LiveVariable"===t.category&&"read"===t.operation?u(t._context,{variable:t,dataFilter:n,options:r}):u(t._context,{variable:t,inputData:n,options:r}):u(t._context,{variable:t,data:n,options:r})}},Y=function(e,t,n){var r;return g().isDate(e)?r=e.getTime():(isNaN(e)||(e=parseInt(e,10)),r=e&&m()(e).valueOf()),isNaN(r)&&t!==p.DataType.TIME||t===p.DataType.TIMESTAMP?r:(t!==p.DataType.TIME||r||(r=m()((new Date).toDateString()+" "+e).valueOf()),e&&n.format(r,function(e){return p.DEFAULT_FORMATS[g().toUpper(e)]}(t)))},H=function(e,t,n){return g().includes(t,".")&&(t=g().toLower((0,p.extractType)(t))),g().isArray(e)?g().map(e,(function(e){return Y(e,t,n)})):Y(e,t,n)},B=function(e){return e.message?(0,p.replace)(e.message,e.parameters,!0):e.parameters&&e.parameters[0]||""},V=function(e,t){var n={404:t.MESSAGE_404_ERROR||"Requested resource not found",401:t.MESSAGE_401_ERROR||"Requested resource requires authentication",403:t.LABEL_FORBIDDEN_MESSAGE||"The requested resource access/action is forbidden."}[e.status],r=e.error||e.data;return n=(r=(0,p.getValidJSON)(r)||r)&&r.errors?function(e){var t="";return e&&e.error&&e.error.length&&e.error.forEach((function(e,n){t+=B(e)+(n>0?"\n":"")})),t}(r.errors)||n||"Service Call Failed":n||"Service Call Failed"}},"./node_modules/x2js/x2js.js":
|
|
4395
4395
|
/*!***********************************!*\
|
|
4396
4396
|
!*** ./node_modules/x2js/x2js.js ***!
|
|
4397
4397
|
\***********************************/
|
|
@@ -233049,6 +233049,9 @@ window.requestAnimationFrame = function() {
|
|
|
233049
233049
|
}
|
|
233050
233050
|
};
|
|
233051
233051
|
var initiateCallback = function(type, variable, data, options, skipDefaultNotification) {
|
|
233052
|
+
if (variable._skipInitiateCallback) {
|
|
233053
|
+
return;
|
|
233054
|
+
}
|
|
233052
233055
|
var eventValues = variable[type], callBackScope = variable._context;
|
|
233053
233056
|
var errorVariable;
|
|
233054
233057
|
if (type === _constants_variables_constants__WEBPACK_IMPORTED_MODULE_1__.VARIABLE_CONSTANTS.EVENT.ERROR && !skipDefaultNotification) {
|
|
@@ -4607,7 +4607,7 @@ i.version="2.29.4",o(Zn),i.fn=lo,i.min=er,i.max=tr,i.now=nr,i.utc=m,i.unix=co,i.
|
|
|
4607
4607
|
/*!**********************************************!*\
|
|
4608
4608
|
!*** ./src/util/variable/variables.utils.ts ***!
|
|
4609
4609
|
\**********************************************/
|
|
4610
|
-
(e,t,n)=>{"use strict";n.r(t),n.d(t,{appManager:()=>r,debounceVariableCall:()=>k,decodeData:()=>A,dialogService:()=>d,formatDate:()=>H,formatExportExpression:()=>C,getBlob:()=>D,getErrMessage:()=>V,getEvaluatedOrderBy:()=>L,getTarget:()=>R,getTargetNodeKey:()=>N,getTargetObj:()=>P,httpService:()=>i,initiateCallback:()=>F,internalBoundNodeMap:()=>b,isFileUploadSupported:()=>T,metadataService:()=>o,navigationService:()=>a,oauthService:()=>l,routerService:()=>s,securityService:()=>c,setInput:()=>M,setValueToNode:()=>I,toasterService:()=>u,updateInternalNodes:()=>j,wmSetDependency:()=>x});var r,i,o,a,s,u,l,c,d,p=n(/*! ../utils */"./src/util/utils.ts"),h=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),f=n(/*! moment */"./node_modules/moment/moment.js"),m=n.n(f),v=n(/*! lodash */"./node_modules/lodash/lodash.js"),g=n.n(v),y=n(/*! he */"./node_modules/he/he.js"),_=n.n(y),b=new Map,w=new Map,S=/^\[("|')[\w\W]*(\1)\]$/,E=function(e,t){var n,r,i=g().noop;w.has(e)&&(i=w.get(e).cancel),i(),n=g().debounce((function(){(r=e[t]())instanceof Promise&&r.catch(g().noop)}),100),w.set(e,n),n()},x=function(e,t){switch(e){case"appManager":r=t;break;case"http":i=t;break;case"metadata":o=t;break;case"navigationService":a=t;break;case"router":s=t;break;case"toaster":u=t;break;case"oAuth":l=t;break;case"security":c=t;break;case"dialog":d=t}},k=E,T=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob},C=function(e){return g().forEach(e,(function(e){e.expression&&(e.expression="${"+e.expression+"}")})),e},D=function(e,t){if(e instanceof Blob)return e;var n=(0,p.getValidJSON)(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},M=function(e,t,n,r){e=e||{};var i,o,a={};if(g().isObject(r))switch(r.type){case"file":n=D(n,r.contentType);break;case"number":n=g().isNumber(n)?n:parseInt(n,10)}return g().isObject(t)?a=t:t.indexOf(".")>-1?(o=(i=t.split(".")).pop(),e=(0,p.findValueOf)(e,i.join("."),!0),a[t=o]=n):a[t]=n,g().forEach(a,(function(t,n){e[n]=t})),e},A=function(e){if(!e)return e;if(g().isArray(e))g().forEach(e,(function(e){g().isString(e)?e=O(e):g().isObject(e)&&g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=O(t):g().isObject(t)&&A(t)}))}));else if(g().isObject(e))g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=O(t):g().isObject(t)&&A(t)}));else if(g().isString(e))return e=O(e)};function O(e){return _().unescape(e)}var L=function(e,t){var n,r;return!t||g().isEmpty(t)?e:e?(e=g().split(e,","),t=g().split(t,","),n=g().map(t,(function(e){return g().split(g().trim(e)," ")[0]})),g().remove(e,(function(e){return g().includes(n,g().split(g().trim(e)," ")[0])})),r=e.length?","+g().join(e,","):"",g().join(t,",")+r):t},P=function(e,t,n){var r,i=e.target,o=n[t];return S.test(i)?r=o:(i=i.substr(0,i.lastIndexOf(".")),r=e.target===t?n:i?(0,p.findValueOf)(o,i,!0):o),r},N=function(e){return S.test(e)?e.replace(/^(\[["'])|(["']\])$/g,""):e.split(".").pop()},I=function(e,t,n,r,i,o){var a=N(e),s=P(t,n,r);i=g().isUndefined(i)?t.value:i,s&&(s[a]=i),function(e,t,n,r,i){switch(r.category){case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:"read"===r.operation?("dataBinding"===e?g().forEach(t,(function(e,t){r.filterFields[t]={value:e}})):r.filterFields[e]={value:t,type:n},r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.listRecords)&&!i&&E(r,"listRecords")):("dataBinding"===e?r.inputFields=t:r.inputFields[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r[r.operation+"Record"])&&!i&&E(r,r.operation+"Record"));break;case h.VARIABLE_CONSTANTS.CATEGORY.CRUD:"list"===r.operationType&&r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.SERVICE:case h.VARIABLE_CONSTANTS.CATEGORY.LOGIN:r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.DEVICE:r[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke")}}(a,i,t.type,r,o)},R=function(e){var t;switch(e.category){case h.VARIABLE_CONSTANTS.CATEGORY.MODEL:t="dataSet";break;case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:t="read"===e.operation?"filterFields":"inputFields";break;default:t="dataBinding"}return t},j=function(e,t,n){var r,i=g().keys(g().get(b.get(n),[n.name,t])),o=N(e);(r=g().filter(i,(function(e){return e!==o&&g().includes(e,o)||(o===t||"dataBinding"===o)&&e!==o}))).length&&g().forEach(r,(function(e){I(e,{target:e},t,n,g().get(b.get(n),[n.name,t,e]))}))},F=function(e,t,n,r,i){var o,a=t[e],s=t._context;e!==h.VARIABLE_CONSTANTS.EVENT.ERROR||i||a||(o=s.Actions[h.VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION])&&(n=o.getMessage()||n,n=g().isString(n)?n:"An error has occured. Please check the app logs.",o.invoke({message:n},void 0,void 0));var u=t[e]||p.noop;return e===h.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE?"wm.LiveVariable"===t.category&&"read"===t.operation?u(t._context,{variable:t,dataFilter:n,options:r}):u(t._context,{variable:t,inputData:n,options:r}):u(t._context,{variable:t,data:n,options:r})},Y=function(e,t,n){var r;return g().isDate(e)?r=e.getTime():(isNaN(e)||(e=parseInt(e,10)),r=e&&m()(e).valueOf()),isNaN(r)&&t!==p.DataType.TIME||t===p.DataType.TIMESTAMP?r:(t!==p.DataType.TIME||r||(r=m()((new Date).toDateString()+" "+e).valueOf()),e&&n.format(r,function(e){return p.DEFAULT_FORMATS[g().toUpper(e)]}(t)))},H=function(e,t,n){return g().includes(t,".")&&(t=g().toLower((0,p.extractType)(t))),g().isArray(e)?g().map(e,(function(e){return Y(e,t,n)})):Y(e,t,n)},B=function(e){return e.message?(0,p.replace)(e.message,e.parameters,!0):e.parameters&&e.parameters[0]||""},V=function(e,t){var n={404:t.MESSAGE_404_ERROR||"Requested resource not found",401:t.MESSAGE_401_ERROR||"Requested resource requires authentication",403:t.LABEL_FORBIDDEN_MESSAGE||"The requested resource access/action is forbidden."}[e.status],r=e.error||e.data;return n=(r=(0,p.getValidJSON)(r)||r)&&r.errors?function(e){var t="";return e&&e.error&&e.error.length&&e.error.forEach((function(e,n){t+=B(e)+(n>0?"\n":"")})),t}(r.errors)||n||"Service Call Failed":n||"Service Call Failed"}},"./node_modules/x2js/x2js.js":
|
|
4610
|
+
(e,t,n)=>{"use strict";n.r(t),n.d(t,{appManager:()=>r,debounceVariableCall:()=>k,decodeData:()=>A,dialogService:()=>d,formatDate:()=>H,formatExportExpression:()=>C,getBlob:()=>D,getErrMessage:()=>V,getEvaluatedOrderBy:()=>L,getTarget:()=>R,getTargetNodeKey:()=>N,getTargetObj:()=>P,httpService:()=>i,initiateCallback:()=>F,internalBoundNodeMap:()=>b,isFileUploadSupported:()=>T,metadataService:()=>o,navigationService:()=>a,oauthService:()=>l,routerService:()=>s,securityService:()=>c,setInput:()=>M,setValueToNode:()=>I,toasterService:()=>u,updateInternalNodes:()=>j,wmSetDependency:()=>x});var r,i,o,a,s,u,l,c,d,p=n(/*! ../utils */"./src/util/utils.ts"),h=n(/*! ../../constants/variables.constants */"./src/constants/variables.constants.ts"),f=n(/*! moment */"./node_modules/moment/moment.js"),m=n.n(f),v=n(/*! lodash */"./node_modules/lodash/lodash.js"),g=n.n(v),y=n(/*! he */"./node_modules/he/he.js"),_=n.n(y),b=new Map,w=new Map,S=/^\[("|')[\w\W]*(\1)\]$/,E=function(e,t){var n,r,i=g().noop;w.has(e)&&(i=w.get(e).cancel),i(),n=g().debounce((function(){(r=e[t]())instanceof Promise&&r.catch(g().noop)}),100),w.set(e,n),n()},x=function(e,t){switch(e){case"appManager":r=t;break;case"http":i=t;break;case"metadata":o=t;break;case"navigationService":a=t;break;case"router":s=t;break;case"toaster":u=t;break;case"oAuth":l=t;break;case"security":c=t;break;case"dialog":d=t}},k=E,T=function(){return window.File&&window.FileReader&&window.FileList&&window.Blob},C=function(e){return g().forEach(e,(function(e){e.expression&&(e.expression="${"+e.expression+"}")})),e},D=function(e,t){if(e instanceof Blob)return e;var n=(0,p.getValidJSON)(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},M=function(e,t,n,r){e=e||{};var i,o,a={};if(g().isObject(r))switch(r.type){case"file":n=D(n,r.contentType);break;case"number":n=g().isNumber(n)?n:parseInt(n,10)}return g().isObject(t)?a=t:t.indexOf(".")>-1?(o=(i=t.split(".")).pop(),e=(0,p.findValueOf)(e,i.join("."),!0),a[t=o]=n):a[t]=n,g().forEach(a,(function(t,n){e[n]=t})),e},A=function(e){if(!e)return e;if(g().isArray(e))g().forEach(e,(function(e){g().isString(e)?e=O(e):g().isObject(e)&&g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=O(t):g().isObject(t)&&A(t)}))}));else if(g().isObject(e))g().forEach(e,(function(t,n){t&&g().isString(t)?e[n]=O(t):g().isObject(t)&&A(t)}));else if(g().isString(e))return e=O(e)};function O(e){return _().unescape(e)}var L=function(e,t){var n,r;return!t||g().isEmpty(t)?e:e?(e=g().split(e,","),t=g().split(t,","),n=g().map(t,(function(e){return g().split(g().trim(e)," ")[0]})),g().remove(e,(function(e){return g().includes(n,g().split(g().trim(e)," ")[0])})),r=e.length?","+g().join(e,","):"",g().join(t,",")+r):t},P=function(e,t,n){var r,i=e.target,o=n[t];return S.test(i)?r=o:(i=i.substr(0,i.lastIndexOf(".")),r=e.target===t?n:i?(0,p.findValueOf)(o,i,!0):o),r},N=function(e){return S.test(e)?e.replace(/^(\[["'])|(["']\])$/g,""):e.split(".").pop()},I=function(e,t,n,r,i,o){var a=N(e),s=P(t,n,r);i=g().isUndefined(i)?t.value:i,s&&(s[a]=i),function(e,t,n,r,i){switch(r.category){case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:"read"===r.operation?("dataBinding"===e?g().forEach(t,(function(e,t){r.filterFields[t]={value:e}})):r.filterFields[e]={value:t,type:n},r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.listRecords)&&!i&&E(r,"listRecords")):("dataBinding"===e?r.inputFields=t:r.inputFields[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r[r.operation+"Record"])&&!i&&E(r,r.operation+"Record"));break;case h.VARIABLE_CONSTANTS.CATEGORY.CRUD:"list"===r.operationType&&r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.SERVICE:case h.VARIABLE_CONSTANTS.CATEGORY.LOGIN:r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke");break;case h.VARIABLE_CONSTANTS.CATEGORY.DEVICE:r[e]=t,r.autoUpdate&&!g().isUndefined(t)&&g().isFunction(r.invoke)&&!i&&E(r,"invoke")}}(a,i,t.type,r,o)},R=function(e){var t;switch(e.category){case h.VARIABLE_CONSTANTS.CATEGORY.MODEL:t="dataSet";break;case h.VARIABLE_CONSTANTS.CATEGORY.LIVE:t="read"===e.operation?"filterFields":"inputFields";break;default:t="dataBinding"}return t},j=function(e,t,n){var r,i=g().keys(g().get(b.get(n),[n.name,t])),o=N(e);(r=g().filter(i,(function(e){return e!==o&&g().includes(e,o)||(o===t||"dataBinding"===o)&&e!==o}))).length&&g().forEach(r,(function(e){I(e,{target:e},t,n,g().get(b.get(n),[n.name,t,e]))}))},F=function(e,t,n,r,i){if(!t._skipInitiateCallback){var o,a=t[e],s=t._context;e!==h.VARIABLE_CONSTANTS.EVENT.ERROR||i||a||(o=s.Actions[h.VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION])&&(n=o.getMessage()||n,n=g().isString(n)?n:"An error has occured. Please check the app logs.",o.invoke({message:n},void 0,void 0));var u=t[e]||p.noop;return e===h.VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE?"wm.LiveVariable"===t.category&&"read"===t.operation?u(t._context,{variable:t,dataFilter:n,options:r}):u(t._context,{variable:t,inputData:n,options:r}):u(t._context,{variable:t,data:n,options:r})}},Y=function(e,t,n){var r;return g().isDate(e)?r=e.getTime():(isNaN(e)||(e=parseInt(e,10)),r=e&&m()(e).valueOf()),isNaN(r)&&t!==p.DataType.TIME||t===p.DataType.TIMESTAMP?r:(t!==p.DataType.TIME||r||(r=m()((new Date).toDateString()+" "+e).valueOf()),e&&n.format(r,function(e){return p.DEFAULT_FORMATS[g().toUpper(e)]}(t)))},H=function(e,t,n){return g().includes(t,".")&&(t=g().toLower((0,p.extractType)(t))),g().isArray(e)?g().map(e,(function(e){return Y(e,t,n)})):Y(e,t,n)},B=function(e){return e.message?(0,p.replace)(e.message,e.parameters,!0):e.parameters&&e.parameters[0]||""},V=function(e,t){var n={404:t.MESSAGE_404_ERROR||"Requested resource not found",401:t.MESSAGE_401_ERROR||"Requested resource requires authentication",403:t.LABEL_FORBIDDEN_MESSAGE||"The requested resource access/action is forbidden."}[e.status],r=e.error||e.data;return n=(r=(0,p.getValidJSON)(r)||r)&&r.errors?function(e){var t="";return e&&e.error&&e.error.length&&e.error.forEach((function(e,n){t+=B(e)+(n>0?"\n":"")})),t}(r.errors)||n||"Service Call Failed":n||"Service Call Failed"}},"./node_modules/x2js/x2js.js":
|
|
4611
4611
|
/*!***********************************!*\
|
|
4612
4612
|
!*** ./node_modules/x2js/x2js.js ***!
|
|
4613
4613
|
\***********************************/
|