@wavemaker/app-runtime-wm-build 11.4.0-next.24682 → 11.4.0-next.24686

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-runtime-wm-build",
3
- "version": "11.4.0-next.24682",
3
+ "version": "11.4.0-next.24686",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -203222,7 +203222,11 @@ window.requestAnimationFrame = function() {
203222
203222
  });
203223
203223
  var json = x2jsObj.xml2js(xmlString);
203224
203224
  if (json) {
203225
- json = lodash__WEBPACK_IMPORTED_MODULE_1___default().get(json, Object.keys(json)[0]);
203225
+ if (Object.keys(json).length === 0) {
203226
+ json = null;
203227
+ } else {
203228
+ json = lodash__WEBPACK_IMPORTED_MODULE_1___default().get(json, Object.keys(json)[0]);
203229
+ }
203226
203230
  }
203227
203231
  return json;
203228
203232
  };
@@ -4371,7 +4371,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.
4371
4371
  /*!***************************!*\
4372
4372
  !*** ./src/util/utils.ts ***!
4373
4373
  \***************************/
4374
- (e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_FORMATS:()=>l,DataType:()=>u,IDGenerator:()=>m,extractType:()=>w,findValueOf:()=>A,getBlob:()=>T,getClonedObject:()=>C,getValidJSON:()=>x,hasCordova:()=>v,isDateTimeType:()=>S,isDefined:()=>y,isNumberType:()=>b,isObject:()=>_,isPageable:()=>f,isValidWebURL:()=>h,noop:()=>p,removeExtraSlashes:()=>g,replace:()=>k,stringStartsWith:()=>M,triggerFn:()=>D,xmlToJson:()=>E});var r=n(/*! x2js */"./node_modules/x2js/x2js.js"),i=n.n(r),o=n(/*! lodash */"./node_modules/lodash/lodash.js"),a=n.n(o),s=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u={INTEGER:"integer",BIG_INTEGER:"big_integer",SHORT:"short",FLOAT:"float",BIG_DECIMAL:"big_decimal",DOUBLE:"double",LONG:"long",BYTE:"byte",STRING:"string",CHARACTER:"character",TEXT:"text",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",DATETIME:"datetime",LOCALDATETIME:"localdatetime",BOOLEAN:"boolean",LIST:"list",CLOB:"clob",BLOB:"blob"},l={DATE:"yyyy-MM-dd",TIME:"HH:mm:ss",TIMESTAMP:"timestamp",DATETIME:"yyyy-MM-ddTHH:mm:ss",LOCALDATETIME:"yyyy-MM-ddTHH:mm:ss",DATETIME_ORACLE:"yyyy-MM-dd HH:mm:ss",DATE_TIME:"yyyy-MM-dd HH:mm:ss"},c={SNAKE_CASE:/[A-Z]/g,ANDROID:/Android/i,IPHONE:/iPhone/i,IPOD:/iPod/i,IPAD:/iPad/i,MAC:/Mac/i,ANDROID_TABLET:/android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,MOBILE:/Mobile/i,WINDOWS:/Windows Phone/i,SUPPORTED_IMAGE_FORMAT:/\.(bmp|gif|jpe|jpg|jpeg|tif|tiff|pbm|png|ico)$/i,SUPPORTED_FILE_FORMAT:/\.(txt|js|css|html|script|properties|json|java|xml|smd|xmi|sql|log|wsdl|vm|ftl|jrxml|yml|yaml|md|less|jsp)$/i,SUPPORTED_AUDIO_FORMAT:/\.(mp3|ogg|webm|wma|3gp|wav|m4a)$/i,SUPPORTED_VIDEO_FORMAT:/\.(mp4|ogg|webm|wmv|mpeg|mpg|avi|mov)$/i,PAGE_RESOURCE_PATH:/^\/pages\/.*\.(js|css|html|json)$/,MIN_PAGE_RESOURCE_PATH:/.*(page.min.html)$/,VALID_EMAIL:/^[a-zA-Z][\w.+]+@[a-zA-Z_]+?\.[a-zA-Z.]{1,4}[a-zA-Z]$/,VALID_WEB_URL:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_WEBSOCKET_URL:/^(ws[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_RELATIVE_URL:/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,REPLACE_PATTERN:/\$\{([^\}]+)\}/g,ZIP_FILE:/\.zip$/i,EXE_FILE:/\.exe$/i,NO_QUOTES_ALLOWED:/^[^'|"]*$/,NO_DOUBLE_QUOTES_ALLOWED:/^[^"]*$/,VALID_HTML:/<[a-z][\s\S]*>/i,VALID_PASSWORD:/^[0-9a-zA-Z-_.@&*!#$%]+$/,SPECIAL_CHARACTERS:/[^A-Z0-9a-z_]+/i,APP_SERVER_URL_FORMAT:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9\.\-]+([:]?[0-9]{2,5}|\.[a-zA-Z]{2,5}[\.]{0,1})\/+[^?#&=]+$/,JSON_DATE_FORMAT:/\d{4}-[0-1]\d-[0-3]\d(T[0-2]\d:[0-5]\d:[0-5]\d.\d{1,3}Z$)?/,DATA_URL:/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i},d=["int",u.INTEGER,u.FLOAT,u.DOUBLE,u.LONG,u.SHORT,u.BYTE,u.BIG_INTEGER,u.BIG_DECIMAL],p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]};var h=function(e){return c.VALID_WEB_URL.test(e)},f=function(e){var t=a().omit(e,"empty");return a().isEqual(a().keys({content:[],first:!0,last:!0,number:0,numberOfElements:10,size:20,sort:null,totalElements:10,totalPages:1}),a().keys(t).sort())},m=function(){function e(e){this.generator=function(e){var t;return s(this,(function(n){switch(n.label){case 0:t=1,n.label=1;case 1:return[4,""+e+t++];case 2:return n.sent(),[3,1];case 3:return[2]}}))}(e)}return e.prototype.nextUid=function(){return this.generator.next().value},e}(),v=function(){return!!window.cordova},g=function(e){if(a().isString(e))return a().startsWith(e,"file:///")||/^data:image\/([a-z]{2,});base64,/.test(e)?e:e.replace(new RegExp("([^:]/)(/)+","g"),"$1")},y=function(e){return void 0!==e},_=function(e){return null!==e&&"object"==typeof e},b=function(e){return-1!==d.indexOf(w(e).toLowerCase())},w=function(e){var t;return e?t=(t=(t=e&&e.substring(e.lastIndexOf(".")+1))&&t.toLowerCase())===u.LOCALDATETIME?u.DATETIME:t:u.STRING},S=function(e){return a().includes(e,".")&&(e=a().toLower(w(e))),a().includes([u.DATE,u.TIME,u.TIMESTAMP,u.DATETIME,u.LOCALDATETIME],e)},x=function(e){if(e)try{var t=parseInt(e,10);return _(e)||!isNaN(t)?e:JSON.parse(e)}catch(e){return}},E=function(e){var t=new(i())({emptyNodeForm:"content",attributePrefix:"",enableToStringFunc:!1}).xml2js(e);return t&&(t=a().get(t,Object.keys(t)[0])),t},k=function(e,t,n){var r=c.REPLACE_PATTERN;if(e)return n&&(r=/\{([^\}]+)\}/g),e.replace(r,(function(e,n){return a().get(t,n)}))},T=function(e,t){if(e instanceof Blob)return e;var n=x(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},C=function(e){return a().cloneDeep(e)},M=function(e,t,n){return!!e&&new RegExp("^"+t,n?"i":"").test(e)};function D(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=1,i=arguments.length,o=new Array(i-r);r<i;r++)o[r-1]=arguments[r];if(a().isFunction(e))return e.apply(null,o)}var A=function(e,t,n){if(e&&t){if(!n)return a().get(e,t);var r,i=t.split("."),o=[];if(i.forEach((function(e){if(!i.length)return r=!0,!1;for(var t,n=e.match(/\w+/g);n.length;)t=n.shift(),o.push({key:t,value:n.length?[]:{}})})),!r)return o.forEach((function(t){var n=e[t.key];_(n)||(n=x(n))||(n=t.value),e[t.key]=n,e=n})),e}}},"./src/util/variable/live-variable.http.utils.ts":
4374
+ (e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_FORMATS:()=>l,DataType:()=>u,IDGenerator:()=>m,extractType:()=>w,findValueOf:()=>A,getBlob:()=>T,getClonedObject:()=>C,getValidJSON:()=>x,hasCordova:()=>v,isDateTimeType:()=>S,isDefined:()=>y,isNumberType:()=>b,isObject:()=>_,isPageable:()=>f,isValidWebURL:()=>h,noop:()=>p,removeExtraSlashes:()=>g,replace:()=>k,stringStartsWith:()=>M,triggerFn:()=>D,xmlToJson:()=>E});var r=n(/*! x2js */"./node_modules/x2js/x2js.js"),i=n.n(r),o=n(/*! lodash */"./node_modules/lodash/lodash.js"),a=n.n(o),s=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u={INTEGER:"integer",BIG_INTEGER:"big_integer",SHORT:"short",FLOAT:"float",BIG_DECIMAL:"big_decimal",DOUBLE:"double",LONG:"long",BYTE:"byte",STRING:"string",CHARACTER:"character",TEXT:"text",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",DATETIME:"datetime",LOCALDATETIME:"localdatetime",BOOLEAN:"boolean",LIST:"list",CLOB:"clob",BLOB:"blob"},l={DATE:"yyyy-MM-dd",TIME:"HH:mm:ss",TIMESTAMP:"timestamp",DATETIME:"yyyy-MM-ddTHH:mm:ss",LOCALDATETIME:"yyyy-MM-ddTHH:mm:ss",DATETIME_ORACLE:"yyyy-MM-dd HH:mm:ss",DATE_TIME:"yyyy-MM-dd HH:mm:ss"},c={SNAKE_CASE:/[A-Z]/g,ANDROID:/Android/i,IPHONE:/iPhone/i,IPOD:/iPod/i,IPAD:/iPad/i,MAC:/Mac/i,ANDROID_TABLET:/android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,MOBILE:/Mobile/i,WINDOWS:/Windows Phone/i,SUPPORTED_IMAGE_FORMAT:/\.(bmp|gif|jpe|jpg|jpeg|tif|tiff|pbm|png|ico)$/i,SUPPORTED_FILE_FORMAT:/\.(txt|js|css|html|script|properties|json|java|xml|smd|xmi|sql|log|wsdl|vm|ftl|jrxml|yml|yaml|md|less|jsp)$/i,SUPPORTED_AUDIO_FORMAT:/\.(mp3|ogg|webm|wma|3gp|wav|m4a)$/i,SUPPORTED_VIDEO_FORMAT:/\.(mp4|ogg|webm|wmv|mpeg|mpg|avi|mov)$/i,PAGE_RESOURCE_PATH:/^\/pages\/.*\.(js|css|html|json)$/,MIN_PAGE_RESOURCE_PATH:/.*(page.min.html)$/,VALID_EMAIL:/^[a-zA-Z][\w.+]+@[a-zA-Z_]+?\.[a-zA-Z.]{1,4}[a-zA-Z]$/,VALID_WEB_URL:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_WEBSOCKET_URL:/^(ws[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_RELATIVE_URL:/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,REPLACE_PATTERN:/\$\{([^\}]+)\}/g,ZIP_FILE:/\.zip$/i,EXE_FILE:/\.exe$/i,NO_QUOTES_ALLOWED:/^[^'|"]*$/,NO_DOUBLE_QUOTES_ALLOWED:/^[^"]*$/,VALID_HTML:/<[a-z][\s\S]*>/i,VALID_PASSWORD:/^[0-9a-zA-Z-_.@&*!#$%]+$/,SPECIAL_CHARACTERS:/[^A-Z0-9a-z_]+/i,APP_SERVER_URL_FORMAT:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9\.\-]+([:]?[0-9]{2,5}|\.[a-zA-Z]{2,5}[\.]{0,1})\/+[^?#&=]+$/,JSON_DATE_FORMAT:/\d{4}-[0-1]\d-[0-3]\d(T[0-2]\d:[0-5]\d:[0-5]\d.\d{1,3}Z$)?/,DATA_URL:/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i},d=["int",u.INTEGER,u.FLOAT,u.DOUBLE,u.LONG,u.SHORT,u.BYTE,u.BIG_INTEGER,u.BIG_DECIMAL],p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]};var h=function(e){return c.VALID_WEB_URL.test(e)},f=function(e){var t=a().omit(e,"empty");return a().isEqual(a().keys({content:[],first:!0,last:!0,number:0,numberOfElements:10,size:20,sort:null,totalElements:10,totalPages:1}),a().keys(t).sort())},m=function(){function e(e){this.generator=function(e){var t;return s(this,(function(n){switch(n.label){case 0:t=1,n.label=1;case 1:return[4,""+e+t++];case 2:return n.sent(),[3,1];case 3:return[2]}}))}(e)}return e.prototype.nextUid=function(){return this.generator.next().value},e}(),v=function(){return!!window.cordova},g=function(e){if(a().isString(e))return a().startsWith(e,"file:///")||/^data:image\/([a-z]{2,});base64,/.test(e)?e:e.replace(new RegExp("([^:]/)(/)+","g"),"$1")},y=function(e){return void 0!==e},_=function(e){return null!==e&&"object"==typeof e},b=function(e){return-1!==d.indexOf(w(e).toLowerCase())},w=function(e){var t;return e?t=(t=(t=e&&e.substring(e.lastIndexOf(".")+1))&&t.toLowerCase())===u.LOCALDATETIME?u.DATETIME:t:u.STRING},S=function(e){return a().includes(e,".")&&(e=a().toLower(w(e))),a().includes([u.DATE,u.TIME,u.TIMESTAMP,u.DATETIME,u.LOCALDATETIME],e)},x=function(e){if(e)try{var t=parseInt(e,10);return _(e)||!isNaN(t)?e:JSON.parse(e)}catch(e){return}},E=function(e){var t=new(i())({emptyNodeForm:"content",attributePrefix:"",enableToStringFunc:!1}).xml2js(e);return t&&(t=0===Object.keys(t).length?null:a().get(t,Object.keys(t)[0])),t},k=function(e,t,n){var r=c.REPLACE_PATTERN;if(e)return n&&(r=/\{([^\}]+)\}/g),e.replace(r,(function(e,n){return a().get(t,n)}))},T=function(e,t){if(e instanceof Blob)return e;var n=x(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},C=function(e){return a().cloneDeep(e)},M=function(e,t,n){return!!e&&new RegExp("^"+t,n?"i":"").test(e)};function D(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=1,i=arguments.length,o=new Array(i-r);r<i;r++)o[r-1]=arguments[r];if(a().isFunction(e))return e.apply(null,o)}var A=function(e,t,n){if(e&&t){if(!n)return a().get(e,t);var r,i=t.split("."),o=[];if(i.forEach((function(e){if(!i.length)return r=!0,!1;for(var t,n=e.match(/\w+/g);n.length;)t=n.shift(),o.push({key:t,value:n.length?[]:{}})})),!r)return o.forEach((function(t){var n=e[t.key];_(n)||(n=x(n))||(n=t.value),e[t.key]=n,e=n})),e}}},"./src/util/variable/live-variable.http.utils.ts":
4375
4375
  /*!*******************************************************!*\
4376
4376
  !*** ./src/util/variable/live-variable.http.utils.ts ***!
4377
4377
  \*******************************************************/
@@ -23335,23 +23335,23 @@
23335
23335
  };
23336
23336
  TreeComponent.prototype.onClick = function(event, treeId, treeNode, clickFlag) {
23337
23337
  var treeObj = $.fn.zTree.getZTreeObj("" + this.name);
23338
- if (this.nodeclick === "expand") {
23339
- treeObj.expandNode(treeNode, treeNode.open ? false : true, false, true);
23340
- this.changeTreeIcons(this.treeicon || defaultTreeIconClass);
23341
- var path = this.getPath(treeNode, "");
23342
- var eventParams = {
23343
- $event: event,
23344
- $item: treeNode,
23345
- $path: path
23346
- };
23347
- this.invokeEventCallback("select", eventParams);
23348
- if (treeNode.open) {} else {
23349
- this.invokeEventCallback("collapse", eventParams);
23350
- }
23351
- }
23338
+ var path = this.getPath(treeNode, "");
23339
+ var eventParams = {
23340
+ $event: event,
23341
+ $item: treeNode,
23342
+ $path: path
23343
+ };
23344
+ this.invokeEventCallback("select", eventParams);
23352
23345
  };
23353
23346
  TreeComponent.prototype.onExpand = function(event, treeId, treeNode) {
23354
23347
  var self = this;
23348
+ var path = this.getPath(treeNode, "");
23349
+ var eventParams = {
23350
+ $event: event,
23351
+ $item: treeNode,
23352
+ $path: path
23353
+ };
23354
+ this.invokeEventCallback("expand", eventParams);
23355
23355
  treeNode.children ? treeNode.children.map((function(el) {
23356
23356
  if (el.isParent) {
23357
23357
  var ele_1 = $("#" + el.tId + "_switch");
@@ -23364,6 +23364,15 @@
23364
23364
  }
23365
23365
  })) : "";
23366
23366
  };
23367
+ TreeComponent.prototype.onCollapse = function(event, treeId, treeNode) {
23368
+ var path = this.getPath(treeNode, "");
23369
+ var eventParams = {
23370
+ $event: event,
23371
+ $item: treeNode,
23372
+ $path: path
23373
+ };
23374
+ this.invokeEventCallback("collapse", eventParams);
23375
+ };
23367
23376
  TreeComponent.prototype.modifyObjects = function(array) {
23368
23377
  var _this = this;
23369
23378
  array.forEach((function(obj) {
@@ -23427,6 +23436,7 @@
23427
23436
  return count;
23428
23437
  };
23429
23438
  TreeComponent.prototype.renderTree = function() {
23439
+ console.log(this.nodes, "this.nodes");
23430
23440
  if (this.nodes) {
23431
23441
  this.nativeElement.setAttribute("id", this.name);
23432
23442
  this.nodes = this.modifyObjects(this.nodes);
@@ -23455,6 +23465,7 @@
23455
23465
  this.setting.view["nodeClasses"] = this.setNodeclasses;
23456
23466
  this.setting.callback["onClick"] = this.onClick.bind(this);
23457
23467
  this.setting.callback["onExpand"] = this.onExpand.bind(this);
23468
+ this.setting.callback["onCollapse"] = this.onCollapse.bind(this);
23458
23469
  var zTree = $.fn.zTree.init($('ul[name="' + this.name + '"]'), this.setting, this.nodes);
23459
23470
  $.fn.zTreeKeyboardNavigation(zTree, $('ul[name="' + this.name + '"]'), null, this.treeicon || defaultTreeIconClass);
23460
23471
  };
@@ -124,7 +124,7 @@
124
124
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
125
125
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
126
126
  PERFORMANCE OF THIS SOFTWARE.
127
- ***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function s(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var l=function(){i.register("wm-tree",new Map([["class",i.PROP_STRING],["dataset",Object.assign({value:"node1, node2, node3"},i.PROP_ANY)],["datavalue",i.PROP_STRING],["levels",Object.assign({value:0},i.PROP_NUMBER)],["name",i.PROP_STRING],["nodeaction",i.PROP_STRING],["nodechildren",i.PROP_STRING],["nodeclick",Object.assign({value:"none"},i.PROP_STRING)],["nodeicon",i.PROP_STRING],["nodeid",i.PROP_STRING],["nodelabel",i.PROP_STRING],["orderby",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["treeicons",i.PROP_STRING]]))},c={widgetType:"wm-tree",hostClass:"app-tree"},p="plus-minus",d=function(e){function t(t){var n=e.call(this,t,c)||this;return n.setting={data:{simpleData:{enable:!0}},view:{dblClickExpand:!1,fontCss:{"font-awesome":!0},switchIcon:{}},check:{},callback:{}},i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.CONTAINER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":this.nodes=this.getNodes(n),this.level>0&&this.expandTree(this.level,this.nodes,0),this.renderTree();break;case"levels":n>0&&(this.level=n);break;case"treeicons":this.treeicon=n;break;case"nodelabel":this.nodelabel=n;break;case"icon":this.nodeicon=n;case"orderby":this.renderTree();break;case"class":this.treeClass=n;break;default:e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.expandTree=function(e,t,n){var i=this;t.map((function(t){"children"in t&&!("open"in t)&&n<e?(t.open=!0,i.expandTree(e,t.children,n+1)):n=0}))},t.prototype.setTreeTemplate=function(e){"Classic"===e?this.setting.check.enable=!1:"Checkbox"===e?(this.setting.check.enable=!0,this.setting.check.chkStyle="checkbox"):"Radio"===e&&(this.setting.check.enable=!0,this.setting.check.chkStyle="radio",this.setting.check.radioType="all")},t.prototype.getNodesFromString=function(e){return e.split(",").map((function(e){return{name:e&&e.trim()}}))},t.prototype.getNodes=function(e){var t;return _.isArray(e)?t=i.getOrderedDataset(e,this.orderby):_.isObject(e)?t=[e]:_.isString(e)&&!_.isEmpty(e)&&(e=e.trim())&&(t=this.getNodesFromString(e)),t},t.prototype.setNodeclasses=function(e,t){return t.icon?{add:[""+t.icon]}:""},t.prototype.setNodeData=function(e,t,n,i,o){var a=this;0===t?e.map((function(e){if(e.children&&a.setNodeData(e.children,t,n,i,o),e.icon&&"icon"==a.nodelabel)e[o]=e.icon;else{if(!e.name||"name"!=a.nodelabel)return;e[o]=e.name}})):e.map((function(e){return e.children&&n>1&&(t===n&&(i=e),a.setNodeData(e.children,t,n-1,i,o)),1===n&&("name"===o?a.nodelabel.includes("label")||a.nodelabel.includes("name"):a.nodeicon.includes("label")||a.nodeicon.includes("name"))?void(i[o]=e.name||e.label):1===n&&void 0!==e.icon&&("name"===o?a.nodelabel.includes("icon"):a.nodeicon.includes("icon"))?void(i[o]=e.icon):void 0}))},t.prototype.changeTreeIcons=function(e){var t=$('ul[name="'+this.name+'"] li span.button.switch');$(t).map((function(t,n){$(n).addClass(e),$(n).on("click",(function(t){setTimeout((function(){$(n).addClass(e)}),0)}))}))},t.prototype.getPath=function(e,t){return t=null===e.getParentNode()?"/"+e.name+t:this.getPath(e.getParentNode(),t)+"/"+e.name},t.prototype.onClick=function(e,t,n,i){var o=$.fn.zTree.getZTreeObj(""+this.name);if("expand"===this.nodeclick){o.expandNode(n,!n.open,!1,!0),this.changeTreeIcons(this.treeicon||p);var a={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("select",a),n.open||this.invokeEventCallback("collapse",a)}},t.prototype.onExpand=function(e,t,n){var i=this;n.children&&n.children.map((function(e){if(e.isParent){var t=$("#"+e.tId+"_switch");$(t).addClass(i.treeicon||p),$(t).on("click",(function(e){setTimeout((function(){$(t).addClass(i.treeicon||p)}),0)}))}}))},t.prototype.modifyObjects=function(e){var t=this;return e.forEach((function(e){void 0!==e.label&&(e.name=e.label,delete e.label),void 0!==e.children&&t.modifyObjects(e.children)})),e},t.prototype.setNodeChildren=function(e,t,n,i){if(t<=0)return e;for(var o=0;o<e.length;o++){var a=e[o];if(t===n&&(i=e[o]),a.children&&a.children.length>0){if(1===n)return void(i.children=a.children.map((function(e){return{name:e.name,children:null==e?void 0:e.children}})));this.setNodeChildren(a.children,t,n-1,i)}}return e},t.prototype.countDepth=function(e){var t,n,i=e.match(/\[.*?\]/g),o=1;if(null===i)return o;try{for(var r=a(i),s=r.next();!s.done;s=r.next()){s.value;o++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return o},t.prototype.renderTree=function(){if(this.nodes){if(this.nativeElement.setAttribute("id",this.name),this.nodes=this.modifyObjects(this.nodes),this.setTreeTemplate(this.treeClass),this.nodelabel){var e=0;this.nodelabel.includes("children")&&(e=this.countDepth(this.nodelabel)),this.setNodeData(this.nodes,e,e,null,"name")}if(this.nodeicon){e=0;this.nodeicon.includes("children")&&(e=this.countDepth(this.nodeicon)),this.setNodeData(this.nodes,e,e,null,"icon")}if(this.nodechildren)(e=this.countDepth(this.nodechildren))>1&&(this.nodes=this.setNodeChildren(this.nodes,e,e,null))}this.setting.view.nodeClasses=this.setNodeclasses,this.setting.callback.onClick=this.onClick.bind(this),this.setting.callback.onExpand=this.onExpand.bind(this);var t=$.fn.zTree.init($('ul[name="'+this.name+'"]'),this.setting,this.nodes);$.fn.zTreeKeyboardNavigation(t,$('ul[name="'+this.name+'"]'),null,this.treeicon||p)},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.changeTreeIcons(e.treeicon||p)}),200)},t}(i.StylableComponent);d.initializeProps=l(),d.decorators=[{type:t.Component,args:[{selector:"ul[wmTree]",template:'<ul #wmTree class="ztree" id="ztree"></ul> ',providers:[i.provideAsWidgetRef(d)],encapsulation:t.ViewEncapsulation.None}]}],d.ctorParameters=function(){return[{type:t.Injector}]};var u=[d],h=function(){};h.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:s([],r(u)),exports:s([],r(u)),entryComponents:[]}]}],e.TreeComponent=d,e.TreeModule=h,e["\u0275a"]=l,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ngx-bootstrap/datepicker"),require("@wm/core"),require("@wm/components/base")):"function"==typeof define&&define.amd?define("@wm/components/input/calendar",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/datepicker","@wm/core","@wm/components/base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input=e.wm.components.input||{},e.wm.components.input.calendar={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].datepicker,e.wm.core,e.wm.components.base)}(this,(function(e,t,n,i,o,a,r){"use strict";
127
+ ***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)r.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return r}function s(e,t,n){if(n||2===arguments.length)for(var i,o=0,a=t.length;o<a;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var l=function(){i.register("wm-tree",new Map([["class",i.PROP_STRING],["dataset",Object.assign({value:"node1, node2, node3"},i.PROP_ANY)],["datavalue",i.PROP_STRING],["levels",Object.assign({value:0},i.PROP_NUMBER)],["name",i.PROP_STRING],["nodeaction",i.PROP_STRING],["nodechildren",i.PROP_STRING],["nodeclick",Object.assign({value:"none"},i.PROP_STRING)],["nodeicon",i.PROP_STRING],["nodeid",i.PROP_STRING],["nodelabel",i.PROP_STRING],["orderby",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["treeicons",i.PROP_STRING]]))},c={widgetType:"wm-tree",hostClass:"app-tree"},p="plus-minus",d=function(e){function t(t){var n=e.call(this,t,c)||this;return n.setting={data:{simpleData:{enable:!0}},view:{dblClickExpand:!1,fontCss:{"font-awesome":!0},switchIcon:{}},check:{},callback:{}},i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.CONTAINER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":this.nodes=this.getNodes(n),this.level>0&&this.expandTree(this.level,this.nodes,0),this.renderTree();break;case"levels":n>0&&(this.level=n);break;case"treeicons":this.treeicon=n;break;case"nodelabel":this.nodelabel=n;break;case"icon":this.nodeicon=n;case"orderby":this.renderTree();break;case"class":this.treeClass=n;break;default:e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.expandTree=function(e,t,n){var i=this;t.map((function(t){"children"in t&&!("open"in t)&&n<e?(t.open=!0,i.expandTree(e,t.children,n+1)):n=0}))},t.prototype.setTreeTemplate=function(e){"Classic"===e?this.setting.check.enable=!1:"Checkbox"===e?(this.setting.check.enable=!0,this.setting.check.chkStyle="checkbox"):"Radio"===e&&(this.setting.check.enable=!0,this.setting.check.chkStyle="radio",this.setting.check.radioType="all")},t.prototype.getNodesFromString=function(e){return e.split(",").map((function(e){return{name:e&&e.trim()}}))},t.prototype.getNodes=function(e){var t;return _.isArray(e)?t=i.getOrderedDataset(e,this.orderby):_.isObject(e)?t=[e]:_.isString(e)&&!_.isEmpty(e)&&(e=e.trim())&&(t=this.getNodesFromString(e)),t},t.prototype.setNodeclasses=function(e,t){return t.icon?{add:[""+t.icon]}:""},t.prototype.setNodeData=function(e,t,n,i,o){var a=this;0===t?e.map((function(e){if(e.children&&a.setNodeData(e.children,t,n,i,o),e.icon&&"icon"==a.nodelabel)e[o]=e.icon;else{if(!e.name||"name"!=a.nodelabel)return;e[o]=e.name}})):e.map((function(e){return e.children&&n>1&&(t===n&&(i=e),a.setNodeData(e.children,t,n-1,i,o)),1===n&&("name"===o?a.nodelabel.includes("label")||a.nodelabel.includes("name"):a.nodeicon.includes("label")||a.nodeicon.includes("name"))?void(i[o]=e.name||e.label):1===n&&void 0!==e.icon&&("name"===o?a.nodelabel.includes("icon"):a.nodeicon.includes("icon"))?void(i[o]=e.icon):void 0}))},t.prototype.changeTreeIcons=function(e){var t=$('ul[name="'+this.name+'"] li span.button.switch');$(t).map((function(t,n){$(n).addClass(e),$(n).on("click",(function(t){setTimeout((function(){$(n).addClass(e)}),0)}))}))},t.prototype.getPath=function(e,t){return t=null===e.getParentNode()?"/"+e.name+t:this.getPath(e.getParentNode(),t)+"/"+e.name},t.prototype.onClick=function(e,t,n,i){$.fn.zTree.getZTreeObj(""+this.name);var o={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("select",o)},t.prototype.onExpand=function(e,t,n){var i=this,o={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("expand",o),n.children&&n.children.map((function(e){if(e.isParent){var t=$("#"+e.tId+"_switch");$(t).addClass(i.treeicon||p),$(t).on("click",(function(e){setTimeout((function(){$(t).addClass(i.treeicon||p)}),0)}))}}))},t.prototype.onCollapse=function(e,t,n){var i={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("collapse",i)},t.prototype.modifyObjects=function(e){var t=this;return e.forEach((function(e){void 0!==e.label&&(e.name=e.label,delete e.label),void 0!==e.children&&t.modifyObjects(e.children)})),e},t.prototype.setNodeChildren=function(e,t,n,i){if(t<=0)return e;for(var o=0;o<e.length;o++){var a=e[o];if(t===n&&(i=e[o]),a.children&&a.children.length>0){if(1===n)return void(i.children=a.children.map((function(e){return{name:e.name,children:null==e?void 0:e.children}})));this.setNodeChildren(a.children,t,n-1,i)}}return e},t.prototype.countDepth=function(e){var t,n,i=e.match(/\[.*?\]/g),o=1;if(null===i)return o;try{for(var r=a(i),s=r.next();!s.done;s=r.next()){s.value;o++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return o},t.prototype.renderTree=function(){if(console.log(this.nodes,"this.nodes"),this.nodes){if(this.nativeElement.setAttribute("id",this.name),this.nodes=this.modifyObjects(this.nodes),this.setTreeTemplate(this.treeClass),this.nodelabel){var e=0;this.nodelabel.includes("children")&&(e=this.countDepth(this.nodelabel)),this.setNodeData(this.nodes,e,e,null,"name")}if(this.nodeicon){e=0;this.nodeicon.includes("children")&&(e=this.countDepth(this.nodeicon)),this.setNodeData(this.nodes,e,e,null,"icon")}if(this.nodechildren)(e=this.countDepth(this.nodechildren))>1&&(this.nodes=this.setNodeChildren(this.nodes,e,e,null))}this.setting.view.nodeClasses=this.setNodeclasses,this.setting.callback.onClick=this.onClick.bind(this),this.setting.callback.onExpand=this.onExpand.bind(this),this.setting.callback.onCollapse=this.onCollapse.bind(this);var t=$.fn.zTree.init($('ul[name="'+this.name+'"]'),this.setting,this.nodes);$.fn.zTreeKeyboardNavigation(t,$('ul[name="'+this.name+'"]'),null,this.treeicon||p)},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.changeTreeIcons(e.treeicon||p)}),200)},t}(i.StylableComponent);d.initializeProps=l(),d.decorators=[{type:t.Component,args:[{selector:"ul[wmTree]",template:'<ul #wmTree class="ztree" id="ztree"></ul> ',providers:[i.provideAsWidgetRef(d)],encapsulation:t.ViewEncapsulation.None}]}],d.ctorParameters=function(){return[{type:t.Injector}]};var u=[d],h=function(){};h.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:s([],r(u)),exports:s([],r(u)),entryComponents:[]}]}],e.TreeComponent=d,e.TreeModule=h,e["\u0275a"]=l,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ngx-bootstrap/datepicker"),require("@wm/core"),require("@wm/components/base")):"function"==typeof define&&define.amd?define("@wm/components/input/calendar",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/datepicker","@wm/core","@wm/components/base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input=e.wm.components.input||{},e.wm.components.input.calendar={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].datepicker,e.wm.core,e.wm.components.base)}(this,(function(e,t,n,i,o,a,r){"use strict";
128
128
  /*! *****************************************************************************
129
129
  Copyright (c) Microsoft Corporation.
130
130
 
@@ -231263,7 +231263,11 @@ window.requestAnimationFrame = function() {
231263
231263
  });
231264
231264
  var json = x2jsObj.xml2js(xmlString);
231265
231265
  if (json) {
231266
- json = lodash__WEBPACK_IMPORTED_MODULE_1___default().get(json, Object.keys(json)[0]);
231266
+ if (Object.keys(json).length === 0) {
231267
+ json = null;
231268
+ } else {
231269
+ json = lodash__WEBPACK_IMPORTED_MODULE_1___default().get(json, Object.keys(json)[0]);
231270
+ }
231267
231271
  }
231268
231272
  return json;
231269
231273
  };
@@ -4587,7 +4587,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.
4587
4587
  /*!***************************!*\
4588
4588
  !*** ./src/util/utils.ts ***!
4589
4589
  \***************************/
4590
- (e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_FORMATS:()=>l,DataType:()=>u,IDGenerator:()=>m,extractType:()=>w,findValueOf:()=>A,getBlob:()=>T,getClonedObject:()=>C,getValidJSON:()=>E,hasCordova:()=>v,isDateTimeType:()=>S,isDefined:()=>y,isNumberType:()=>b,isObject:()=>_,isPageable:()=>f,isValidWebURL:()=>h,noop:()=>p,removeExtraSlashes:()=>g,replace:()=>k,stringStartsWith:()=>D,triggerFn:()=>M,xmlToJson:()=>x});var r=n(/*! x2js */"./node_modules/x2js/x2js.js"),i=n.n(r),o=n(/*! lodash */"./node_modules/lodash/lodash.js"),a=n.n(o),s=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u={INTEGER:"integer",BIG_INTEGER:"big_integer",SHORT:"short",FLOAT:"float",BIG_DECIMAL:"big_decimal",DOUBLE:"double",LONG:"long",BYTE:"byte",STRING:"string",CHARACTER:"character",TEXT:"text",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",DATETIME:"datetime",LOCALDATETIME:"localdatetime",BOOLEAN:"boolean",LIST:"list",CLOB:"clob",BLOB:"blob"},l={DATE:"yyyy-MM-dd",TIME:"HH:mm:ss",TIMESTAMP:"timestamp",DATETIME:"yyyy-MM-ddTHH:mm:ss",LOCALDATETIME:"yyyy-MM-ddTHH:mm:ss",DATETIME_ORACLE:"yyyy-MM-dd HH:mm:ss",DATE_TIME:"yyyy-MM-dd HH:mm:ss"},c={SNAKE_CASE:/[A-Z]/g,ANDROID:/Android/i,IPHONE:/iPhone/i,IPOD:/iPod/i,IPAD:/iPad/i,MAC:/Mac/i,ANDROID_TABLET:/android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,MOBILE:/Mobile/i,WINDOWS:/Windows Phone/i,SUPPORTED_IMAGE_FORMAT:/\.(bmp|gif|jpe|jpg|jpeg|tif|tiff|pbm|png|ico)$/i,SUPPORTED_FILE_FORMAT:/\.(txt|js|css|html|script|properties|json|java|xml|smd|xmi|sql|log|wsdl|vm|ftl|jrxml|yml|yaml|md|less|jsp)$/i,SUPPORTED_AUDIO_FORMAT:/\.(mp3|ogg|webm|wma|3gp|wav|m4a)$/i,SUPPORTED_VIDEO_FORMAT:/\.(mp4|ogg|webm|wmv|mpeg|mpg|avi|mov)$/i,PAGE_RESOURCE_PATH:/^\/pages\/.*\.(js|css|html|json)$/,MIN_PAGE_RESOURCE_PATH:/.*(page.min.html)$/,VALID_EMAIL:/^[a-zA-Z][\w.+]+@[a-zA-Z_]+?\.[a-zA-Z.]{1,4}[a-zA-Z]$/,VALID_WEB_URL:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_WEBSOCKET_URL:/^(ws[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_RELATIVE_URL:/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,REPLACE_PATTERN:/\$\{([^\}]+)\}/g,ZIP_FILE:/\.zip$/i,EXE_FILE:/\.exe$/i,NO_QUOTES_ALLOWED:/^[^'|"]*$/,NO_DOUBLE_QUOTES_ALLOWED:/^[^"]*$/,VALID_HTML:/<[a-z][\s\S]*>/i,VALID_PASSWORD:/^[0-9a-zA-Z-_.@&*!#$%]+$/,SPECIAL_CHARACTERS:/[^A-Z0-9a-z_]+/i,APP_SERVER_URL_FORMAT:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9\.\-]+([:]?[0-9]{2,5}|\.[a-zA-Z]{2,5}[\.]{0,1})\/+[^?#&=]+$/,JSON_DATE_FORMAT:/\d{4}-[0-1]\d-[0-3]\d(T[0-2]\d:[0-5]\d:[0-5]\d.\d{1,3}Z$)?/,DATA_URL:/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i},d=["int",u.INTEGER,u.FLOAT,u.DOUBLE,u.LONG,u.SHORT,u.BYTE,u.BIG_INTEGER,u.BIG_DECIMAL],p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]};var h=function(e){return c.VALID_WEB_URL.test(e)},f=function(e){var t=a().omit(e,"empty");return a().isEqual(a().keys({content:[],first:!0,last:!0,number:0,numberOfElements:10,size:20,sort:null,totalElements:10,totalPages:1}),a().keys(t).sort())},m=function(){function e(e){this.generator=function(e){var t;return s(this,(function(n){switch(n.label){case 0:t=1,n.label=1;case 1:return[4,""+e+t++];case 2:return n.sent(),[3,1];case 3:return[2]}}))}(e)}return e.prototype.nextUid=function(){return this.generator.next().value},e}(),v=function(){return!!window.cordova},g=function(e){if(a().isString(e))return a().startsWith(e,"file:///")||/^data:image\/([a-z]{2,});base64,/.test(e)?e:e.replace(new RegExp("([^:]/)(/)+","g"),"$1")},y=function(e){return void 0!==e},_=function(e){return null!==e&&"object"==typeof e},b=function(e){return-1!==d.indexOf(w(e).toLowerCase())},w=function(e){var t;return e?t=(t=(t=e&&e.substring(e.lastIndexOf(".")+1))&&t.toLowerCase())===u.LOCALDATETIME?u.DATETIME:t:u.STRING},S=function(e){return a().includes(e,".")&&(e=a().toLower(w(e))),a().includes([u.DATE,u.TIME,u.TIMESTAMP,u.DATETIME,u.LOCALDATETIME],e)},E=function(e){if(e)try{var t=parseInt(e,10);return _(e)||!isNaN(t)?e:JSON.parse(e)}catch(e){return}},x=function(e){var t=new(i())({emptyNodeForm:"content",attributePrefix:"",enableToStringFunc:!1}).xml2js(e);return t&&(t=a().get(t,Object.keys(t)[0])),t},k=function(e,t,n){var r=c.REPLACE_PATTERN;if(e)return n&&(r=/\{([^\}]+)\}/g),e.replace(r,(function(e,n){return a().get(t,n)}))},T=function(e,t){if(e instanceof Blob)return e;var n=E(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},C=function(e){return a().cloneDeep(e)},D=function(e,t,n){return!!e&&new RegExp("^"+t,n?"i":"").test(e)};function M(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=1,i=arguments.length,o=new Array(i-r);r<i;r++)o[r-1]=arguments[r];if(a().isFunction(e))return e.apply(null,o)}var A=function(e,t,n){if(e&&t){if(!n)return a().get(e,t);var r,i=t.split("."),o=[];if(i.forEach((function(e){if(!i.length)return r=!0,!1;for(var t,n=e.match(/\w+/g);n.length;)t=n.shift(),o.push({key:t,value:n.length?[]:{}})})),!r)return o.forEach((function(t){var n=e[t.key];_(n)||(n=E(n))||(n=t.value),e[t.key]=n,e=n})),e}}},"./src/util/variable/live-variable.http.utils.ts":
4590
+ (e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_FORMATS:()=>l,DataType:()=>u,IDGenerator:()=>m,extractType:()=>w,findValueOf:()=>A,getBlob:()=>T,getClonedObject:()=>C,getValidJSON:()=>E,hasCordova:()=>v,isDateTimeType:()=>S,isDefined:()=>y,isNumberType:()=>b,isObject:()=>_,isPageable:()=>f,isValidWebURL:()=>h,noop:()=>p,removeExtraSlashes:()=>g,replace:()=>k,stringStartsWith:()=>D,triggerFn:()=>M,xmlToJson:()=>x});var r=n(/*! x2js */"./node_modules/x2js/x2js.js"),i=n.n(r),o=n(/*! lodash */"./node_modules/lodash/lodash.js"),a=n.n(o),s=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},u={INTEGER:"integer",BIG_INTEGER:"big_integer",SHORT:"short",FLOAT:"float",BIG_DECIMAL:"big_decimal",DOUBLE:"double",LONG:"long",BYTE:"byte",STRING:"string",CHARACTER:"character",TEXT:"text",DATE:"date",TIME:"time",TIMESTAMP:"timestamp",DATETIME:"datetime",LOCALDATETIME:"localdatetime",BOOLEAN:"boolean",LIST:"list",CLOB:"clob",BLOB:"blob"},l={DATE:"yyyy-MM-dd",TIME:"HH:mm:ss",TIMESTAMP:"timestamp",DATETIME:"yyyy-MM-ddTHH:mm:ss",LOCALDATETIME:"yyyy-MM-ddTHH:mm:ss",DATETIME_ORACLE:"yyyy-MM-dd HH:mm:ss",DATE_TIME:"yyyy-MM-dd HH:mm:ss"},c={SNAKE_CASE:/[A-Z]/g,ANDROID:/Android/i,IPHONE:/iPhone/i,IPOD:/iPod/i,IPAD:/iPad/i,MAC:/Mac/i,ANDROID_TABLET:/android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i,MOBILE:/Mobile/i,WINDOWS:/Windows Phone/i,SUPPORTED_IMAGE_FORMAT:/\.(bmp|gif|jpe|jpg|jpeg|tif|tiff|pbm|png|ico)$/i,SUPPORTED_FILE_FORMAT:/\.(txt|js|css|html|script|properties|json|java|xml|smd|xmi|sql|log|wsdl|vm|ftl|jrxml|yml|yaml|md|less|jsp)$/i,SUPPORTED_AUDIO_FORMAT:/\.(mp3|ogg|webm|wma|3gp|wav|m4a)$/i,SUPPORTED_VIDEO_FORMAT:/\.(mp4|ogg|webm|wmv|mpeg|mpg|avi|mov)$/i,PAGE_RESOURCE_PATH:/^\/pages\/.*\.(js|css|html|json)$/,MIN_PAGE_RESOURCE_PATH:/.*(page.min.html)$/,VALID_EMAIL:/^[a-zA-Z][\w.+]+@[a-zA-Z_]+?\.[a-zA-Z.]{1,4}[a-zA-Z]$/,VALID_WEB_URL:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_WEBSOCKET_URL:/^(ws[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,VALID_RELATIVE_URL:/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/).*/,REPLACE_PATTERN:/\$\{([^\}]+)\}/g,ZIP_FILE:/\.zip$/i,EXE_FILE:/\.exe$/i,NO_QUOTES_ALLOWED:/^[^'|"]*$/,NO_DOUBLE_QUOTES_ALLOWED:/^[^"]*$/,VALID_HTML:/<[a-z][\s\S]*>/i,VALID_PASSWORD:/^[0-9a-zA-Z-_.@&*!#$%]+$/,SPECIAL_CHARACTERS:/[^A-Z0-9a-z_]+/i,APP_SERVER_URL_FORMAT:/^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9\.\-]+([:]?[0-9]{2,5}|\.[a-zA-Z]{2,5}[\.]{0,1})\/+[^?#&=]+$/,JSON_DATE_FORMAT:/\d{4}-[0-1]\d-[0-3]\d(T[0-2]\d:[0-5]\d:[0-5]\d.\d{1,3}Z$)?/,DATA_URL:/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i},d=["int",u.INTEGER,u.FLOAT,u.DOUBLE,u.LONG,u.SHORT,u.BYTE,u.BIG_INTEGER,u.BIG_DECIMAL],p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]};var h=function(e){return c.VALID_WEB_URL.test(e)},f=function(e){var t=a().omit(e,"empty");return a().isEqual(a().keys({content:[],first:!0,last:!0,number:0,numberOfElements:10,size:20,sort:null,totalElements:10,totalPages:1}),a().keys(t).sort())},m=function(){function e(e){this.generator=function(e){var t;return s(this,(function(n){switch(n.label){case 0:t=1,n.label=1;case 1:return[4,""+e+t++];case 2:return n.sent(),[3,1];case 3:return[2]}}))}(e)}return e.prototype.nextUid=function(){return this.generator.next().value},e}(),v=function(){return!!window.cordova},g=function(e){if(a().isString(e))return a().startsWith(e,"file:///")||/^data:image\/([a-z]{2,});base64,/.test(e)?e:e.replace(new RegExp("([^:]/)(/)+","g"),"$1")},y=function(e){return void 0!==e},_=function(e){return null!==e&&"object"==typeof e},b=function(e){return-1!==d.indexOf(w(e).toLowerCase())},w=function(e){var t;return e?t=(t=(t=e&&e.substring(e.lastIndexOf(".")+1))&&t.toLowerCase())===u.LOCALDATETIME?u.DATETIME:t:u.STRING},S=function(e){return a().includes(e,".")&&(e=a().toLower(w(e))),a().includes([u.DATE,u.TIME,u.TIMESTAMP,u.DATETIME,u.LOCALDATETIME],e)},E=function(e){if(e)try{var t=parseInt(e,10);return _(e)||!isNaN(t)?e:JSON.parse(e)}catch(e){return}},x=function(e){var t=new(i())({emptyNodeForm:"content",attributePrefix:"",enableToStringFunc:!1}).xml2js(e);return t&&(t=0===Object.keys(t).length?null:a().get(t,Object.keys(t)[0])),t},k=function(e,t,n){var r=c.REPLACE_PATTERN;if(e)return n&&(r=/\{([^\}]+)\}/g),e.replace(r,(function(e,n){return a().get(t,n)}))},T=function(e,t){if(e instanceof Blob)return e;var n=E(e);return e=n&&n instanceof Object?new Blob([JSON.stringify(n)],{type:t||"application/json"}):new Blob([e],{type:t||"text/plain"})},C=function(e){return a().cloneDeep(e)},D=function(e,t,n){return!!e&&new RegExp("^"+t,n?"i":"").test(e)};function M(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=1,i=arguments.length,o=new Array(i-r);r<i;r++)o[r-1]=arguments[r];if(a().isFunction(e))return e.apply(null,o)}var A=function(e,t,n){if(e&&t){if(!n)return a().get(e,t);var r,i=t.split("."),o=[];if(i.forEach((function(e){if(!i.length)return r=!0,!1;for(var t,n=e.match(/\w+/g);n.length;)t=n.shift(),o.push({key:t,value:n.length?[]:{}})})),!r)return o.forEach((function(t){var n=e[t.key];_(n)||(n=E(n))||(n=t.value),e[t.key]=n,e=n})),e}}},"./src/util/variable/live-variable.http.utils.ts":
4591
4591
  /*!*******************************************************!*\
4592
4592
  !*** ./src/util/variable/live-variable.http.utils.ts ***!
4593
4593
  \*******************************************************/
@@ -23335,23 +23335,23 @@
23335
23335
  };
23336
23336
  TreeComponent.prototype.onClick = function(event, treeId, treeNode, clickFlag) {
23337
23337
  var treeObj = $.fn.zTree.getZTreeObj("" + this.name);
23338
- if (this.nodeclick === "expand") {
23339
- treeObj.expandNode(treeNode, treeNode.open ? false : true, false, true);
23340
- this.changeTreeIcons(this.treeicon || defaultTreeIconClass);
23341
- var path = this.getPath(treeNode, "");
23342
- var eventParams = {
23343
- $event: event,
23344
- $item: treeNode,
23345
- $path: path
23346
- };
23347
- this.invokeEventCallback("select", eventParams);
23348
- if (treeNode.open) {} else {
23349
- this.invokeEventCallback("collapse", eventParams);
23350
- }
23351
- }
23338
+ var path = this.getPath(treeNode, "");
23339
+ var eventParams = {
23340
+ $event: event,
23341
+ $item: treeNode,
23342
+ $path: path
23343
+ };
23344
+ this.invokeEventCallback("select", eventParams);
23352
23345
  };
23353
23346
  TreeComponent.prototype.onExpand = function(event, treeId, treeNode) {
23354
23347
  var self = this;
23348
+ var path = this.getPath(treeNode, "");
23349
+ var eventParams = {
23350
+ $event: event,
23351
+ $item: treeNode,
23352
+ $path: path
23353
+ };
23354
+ this.invokeEventCallback("expand", eventParams);
23355
23355
  treeNode.children ? treeNode.children.map((function(el) {
23356
23356
  if (el.isParent) {
23357
23357
  var ele_1 = $("#" + el.tId + "_switch");
@@ -23364,6 +23364,15 @@
23364
23364
  }
23365
23365
  })) : "";
23366
23366
  };
23367
+ TreeComponent.prototype.onCollapse = function(event, treeId, treeNode) {
23368
+ var path = this.getPath(treeNode, "");
23369
+ var eventParams = {
23370
+ $event: event,
23371
+ $item: treeNode,
23372
+ $path: path
23373
+ };
23374
+ this.invokeEventCallback("collapse", eventParams);
23375
+ };
23367
23376
  TreeComponent.prototype.modifyObjects = function(array) {
23368
23377
  var _this = this;
23369
23378
  array.forEach((function(obj) {
@@ -23427,6 +23436,7 @@
23427
23436
  return count;
23428
23437
  };
23429
23438
  TreeComponent.prototype.renderTree = function() {
23439
+ console.log(this.nodes, "this.nodes");
23430
23440
  if (this.nodes) {
23431
23441
  this.nativeElement.setAttribute("id", this.name);
23432
23442
  this.nodes = this.modifyObjects(this.nodes);
@@ -23455,6 +23465,7 @@
23455
23465
  this.setting.view["nodeClasses"] = this.setNodeclasses;
23456
23466
  this.setting.callback["onClick"] = this.onClick.bind(this);
23457
23467
  this.setting.callback["onExpand"] = this.onExpand.bind(this);
23468
+ this.setting.callback["onCollapse"] = this.onCollapse.bind(this);
23458
23469
  var zTree = $.fn.zTree.init($('ul[name="' + this.name + '"]'), this.setting, this.nodes);
23459
23470
  $.fn.zTreeKeyboardNavigation(zTree, $('ul[name="' + this.name + '"]'), null, this.treeicon || defaultTreeIconClass);
23460
23471
  };
@@ -124,7 +124,7 @@
124
124
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
125
125
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
126
126
  PERFORMANCE OF THIS SOFTWARE.
127
- ***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function r(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function s(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var l=function(){i.register("wm-tree",new Map([["class",i.PROP_STRING],["dataset",Object.assign({value:"node1, node2, node3"},i.PROP_ANY)],["datavalue",i.PROP_STRING],["levels",Object.assign({value:0},i.PROP_NUMBER)],["name",i.PROP_STRING],["nodeaction",i.PROP_STRING],["nodechildren",i.PROP_STRING],["nodeclick",Object.assign({value:"none"},i.PROP_STRING)],["nodeicon",i.PROP_STRING],["nodeid",i.PROP_STRING],["nodelabel",i.PROP_STRING],["orderby",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["treeicons",i.PROP_STRING]]))},c={widgetType:"wm-tree",hostClass:"app-tree"},p="plus-minus",u=function(e){function t(t){var n=e.call(this,t,c)||this;return n.setting={data:{simpleData:{enable:!0}},view:{dblClickExpand:!1,fontCss:{"font-awesome":!0},switchIcon:{}},check:{},callback:{}},i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.CONTAINER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":this.nodes=this.getNodes(n),this.level>0&&this.expandTree(this.level,this.nodes,0),this.renderTree();break;case"levels":n>0&&(this.level=n);break;case"treeicons":this.treeicon=n;break;case"nodelabel":this.nodelabel=n;break;case"icon":this.nodeicon=n;case"orderby":this.renderTree();break;case"class":this.treeClass=n;break;default:e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.expandTree=function(e,t,n){var i=this;t.map((function(t){"children"in t&&!("open"in t)&&n<e?(t.open=!0,i.expandTree(e,t.children,n+1)):n=0}))},t.prototype.setTreeTemplate=function(e){"Classic"===e?this.setting.check.enable=!1:"Checkbox"===e?(this.setting.check.enable=!0,this.setting.check.chkStyle="checkbox"):"Radio"===e&&(this.setting.check.enable=!0,this.setting.check.chkStyle="radio",this.setting.check.radioType="all")},t.prototype.getNodesFromString=function(e){return e.split(",").map((function(e){return{name:e&&e.trim()}}))},t.prototype.getNodes=function(e){var t;return _.isArray(e)?t=i.getOrderedDataset(e,this.orderby):_.isObject(e)?t=[e]:_.isString(e)&&!_.isEmpty(e)&&(e=e.trim())&&(t=this.getNodesFromString(e)),t},t.prototype.setNodeclasses=function(e,t){return t.icon?{add:[""+t.icon]}:""},t.prototype.setNodeData=function(e,t,n,i,o){var r=this;0===t?e.map((function(e){if(e.children&&r.setNodeData(e.children,t,n,i,o),e.icon&&"icon"==r.nodelabel)e[o]=e.icon;else{if(!e.name||"name"!=r.nodelabel)return;e[o]=e.name}})):e.map((function(e){return e.children&&n>1&&(t===n&&(i=e),r.setNodeData(e.children,t,n-1,i,o)),1===n&&("name"===o?r.nodelabel.includes("label")||r.nodelabel.includes("name"):r.nodeicon.includes("label")||r.nodeicon.includes("name"))?void(i[o]=e.name||e.label):1===n&&void 0!==e.icon&&("name"===o?r.nodelabel.includes("icon"):r.nodeicon.includes("icon"))?void(i[o]=e.icon):void 0}))},t.prototype.changeTreeIcons=function(e){var t=$('ul[name="'+this.name+'"] li span.button.switch');$(t).map((function(t,n){$(n).addClass(e),$(n).on("click",(function(t){setTimeout((function(){$(n).addClass(e)}),0)}))}))},t.prototype.getPath=function(e,t){return t=null===e.getParentNode()?"/"+e.name+t:this.getPath(e.getParentNode(),t)+"/"+e.name},t.prototype.onClick=function(e,t,n,i){var o=$.fn.zTree.getZTreeObj(""+this.name);if("expand"===this.nodeclick){o.expandNode(n,!n.open,!1,!0),this.changeTreeIcons(this.treeicon||p);var r={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("select",r),n.open||this.invokeEventCallback("collapse",r)}},t.prototype.onExpand=function(e,t,n){var i=this;n.children&&n.children.map((function(e){if(e.isParent){var t=$("#"+e.tId+"_switch");$(t).addClass(i.treeicon||p),$(t).on("click",(function(e){setTimeout((function(){$(t).addClass(i.treeicon||p)}),0)}))}}))},t.prototype.modifyObjects=function(e){var t=this;return e.forEach((function(e){void 0!==e.label&&(e.name=e.label,delete e.label),void 0!==e.children&&t.modifyObjects(e.children)})),e},t.prototype.setNodeChildren=function(e,t,n,i){if(t<=0)return e;for(var o=0;o<e.length;o++){var r=e[o];if(t===n&&(i=e[o]),r.children&&r.children.length>0){if(1===n)return void(i.children=r.children.map((function(e){return{name:e.name,children:null==e?void 0:e.children}})));this.setNodeChildren(r.children,t,n-1,i)}}return e},t.prototype.countDepth=function(e){var t,n,i=e.match(/\[.*?\]/g),o=1;if(null===i)return o;try{for(var a=r(i),s=a.next();!s.done;s=a.next()){s.value;o++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},t.prototype.renderTree=function(){if(this.nodes){if(this.nativeElement.setAttribute("id",this.name),this.nodes=this.modifyObjects(this.nodes),this.setTreeTemplate(this.treeClass),this.nodelabel){var e=0;this.nodelabel.includes("children")&&(e=this.countDepth(this.nodelabel)),this.setNodeData(this.nodes,e,e,null,"name")}if(this.nodeicon){e=0;this.nodeicon.includes("children")&&(e=this.countDepth(this.nodeicon)),this.setNodeData(this.nodes,e,e,null,"icon")}if(this.nodechildren)(e=this.countDepth(this.nodechildren))>1&&(this.nodes=this.setNodeChildren(this.nodes,e,e,null))}this.setting.view.nodeClasses=this.setNodeclasses,this.setting.callback.onClick=this.onClick.bind(this),this.setting.callback.onExpand=this.onExpand.bind(this);var t=$.fn.zTree.init($('ul[name="'+this.name+'"]'),this.setting,this.nodes);$.fn.zTreeKeyboardNavigation(t,$('ul[name="'+this.name+'"]'),null,this.treeicon||p)},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.changeTreeIcons(e.treeicon||p)}),200)},t}(i.StylableComponent);u.initializeProps=l(),u.decorators=[{type:t.Component,args:[{selector:"ul[wmTree]",template:'<ul #wmTree class="ztree" id="ztree"></ul> ',providers:[i.provideAsWidgetRef(u)],encapsulation:t.ViewEncapsulation.None}]}],u.ctorParameters=function(){return[{type:t.Injector}]};var d=[u],h=function(){};h.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:s([],a(d)),exports:s([],a(d)),entryComponents:[]}]}],e.TreeComponent=u,e.TreeModule=h,e["\u0275a"]=l,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ngx-bootstrap/datepicker"),require("@wm/core"),require("@wm/components/base")):"function"==typeof define&&define.amd?define("@wm/components/input/calendar",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/datepicker","@wm/core","@wm/components/base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input=e.wm.components.input||{},e.wm.components.input.calendar={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].datepicker,e.wm.core,e.wm.components.base)}(this,(function(e,t,n,i,o,r,a){"use strict";
127
+ ***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};Object.create;function r(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function s(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;var l=function(){i.register("wm-tree",new Map([["class",i.PROP_STRING],["dataset",Object.assign({value:"node1, node2, node3"},i.PROP_ANY)],["datavalue",i.PROP_STRING],["levels",Object.assign({value:0},i.PROP_NUMBER)],["name",i.PROP_STRING],["nodeaction",i.PROP_STRING],["nodechildren",i.PROP_STRING],["nodeclick",Object.assign({value:"none"},i.PROP_STRING)],["nodeicon",i.PROP_STRING],["nodeid",i.PROP_STRING],["nodelabel",i.PROP_STRING],["orderby",i.PROP_STRING],["show",Object.assign({value:!0},i.PROP_BOOLEAN)],["tabindex",Object.assign({value:0},i.PROP_NUMBER)],["treeicons",i.PROP_STRING]]))},c={widgetType:"wm-tree",hostClass:"app-tree"},p="plus-minus",u=function(e){function t(t){var n=e.call(this,t,c)||this;return n.setting={data:{simpleData:{enable:!0}},view:{dblClickExpand:!1,fontCss:{"font-awesome":!0},switchIcon:{}},check:{},callback:{}},i.styler(n.nativeElement,n,i.APPLY_STYLES_TYPE.CONTAINER),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.onPropertyChange=function(t,n,i){switch(t){case"dataset":this.nodes=this.getNodes(n),this.level>0&&this.expandTree(this.level,this.nodes,0),this.renderTree();break;case"levels":n>0&&(this.level=n);break;case"treeicons":this.treeicon=n;break;case"nodelabel":this.nodelabel=n;break;case"icon":this.nodeicon=n;case"orderby":this.renderTree();break;case"class":this.treeClass=n;break;default:e.prototype.onPropertyChange.call(this,t,n,i)}},t.prototype.expandTree=function(e,t,n){var i=this;t.map((function(t){"children"in t&&!("open"in t)&&n<e?(t.open=!0,i.expandTree(e,t.children,n+1)):n=0}))},t.prototype.setTreeTemplate=function(e){"Classic"===e?this.setting.check.enable=!1:"Checkbox"===e?(this.setting.check.enable=!0,this.setting.check.chkStyle="checkbox"):"Radio"===e&&(this.setting.check.enable=!0,this.setting.check.chkStyle="radio",this.setting.check.radioType="all")},t.prototype.getNodesFromString=function(e){return e.split(",").map((function(e){return{name:e&&e.trim()}}))},t.prototype.getNodes=function(e){var t;return _.isArray(e)?t=i.getOrderedDataset(e,this.orderby):_.isObject(e)?t=[e]:_.isString(e)&&!_.isEmpty(e)&&(e=e.trim())&&(t=this.getNodesFromString(e)),t},t.prototype.setNodeclasses=function(e,t){return t.icon?{add:[""+t.icon]}:""},t.prototype.setNodeData=function(e,t,n,i,o){var r=this;0===t?e.map((function(e){if(e.children&&r.setNodeData(e.children,t,n,i,o),e.icon&&"icon"==r.nodelabel)e[o]=e.icon;else{if(!e.name||"name"!=r.nodelabel)return;e[o]=e.name}})):e.map((function(e){return e.children&&n>1&&(t===n&&(i=e),r.setNodeData(e.children,t,n-1,i,o)),1===n&&("name"===o?r.nodelabel.includes("label")||r.nodelabel.includes("name"):r.nodeicon.includes("label")||r.nodeicon.includes("name"))?void(i[o]=e.name||e.label):1===n&&void 0!==e.icon&&("name"===o?r.nodelabel.includes("icon"):r.nodeicon.includes("icon"))?void(i[o]=e.icon):void 0}))},t.prototype.changeTreeIcons=function(e){var t=$('ul[name="'+this.name+'"] li span.button.switch');$(t).map((function(t,n){$(n).addClass(e),$(n).on("click",(function(t){setTimeout((function(){$(n).addClass(e)}),0)}))}))},t.prototype.getPath=function(e,t){return t=null===e.getParentNode()?"/"+e.name+t:this.getPath(e.getParentNode(),t)+"/"+e.name},t.prototype.onClick=function(e,t,n,i){$.fn.zTree.getZTreeObj(""+this.name);var o={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("select",o)},t.prototype.onExpand=function(e,t,n){var i=this,o={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("expand",o),n.children&&n.children.map((function(e){if(e.isParent){var t=$("#"+e.tId+"_switch");$(t).addClass(i.treeicon||p),$(t).on("click",(function(e){setTimeout((function(){$(t).addClass(i.treeicon||p)}),0)}))}}))},t.prototype.onCollapse=function(e,t,n){var i={$event:e,$item:n,$path:this.getPath(n,"")};this.invokeEventCallback("collapse",i)},t.prototype.modifyObjects=function(e){var t=this;return e.forEach((function(e){void 0!==e.label&&(e.name=e.label,delete e.label),void 0!==e.children&&t.modifyObjects(e.children)})),e},t.prototype.setNodeChildren=function(e,t,n,i){if(t<=0)return e;for(var o=0;o<e.length;o++){var r=e[o];if(t===n&&(i=e[o]),r.children&&r.children.length>0){if(1===n)return void(i.children=r.children.map((function(e){return{name:e.name,children:null==e?void 0:e.children}})));this.setNodeChildren(r.children,t,n-1,i)}}return e},t.prototype.countDepth=function(e){var t,n,i=e.match(/\[.*?\]/g),o=1;if(null===i)return o;try{for(var a=r(i),s=a.next();!s.done;s=a.next()){s.value;o++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o},t.prototype.renderTree=function(){if(console.log(this.nodes,"this.nodes"),this.nodes){if(this.nativeElement.setAttribute("id",this.name),this.nodes=this.modifyObjects(this.nodes),this.setTreeTemplate(this.treeClass),this.nodelabel){var e=0;this.nodelabel.includes("children")&&(e=this.countDepth(this.nodelabel)),this.setNodeData(this.nodes,e,e,null,"name")}if(this.nodeicon){e=0;this.nodeicon.includes("children")&&(e=this.countDepth(this.nodeicon)),this.setNodeData(this.nodes,e,e,null,"icon")}if(this.nodechildren)(e=this.countDepth(this.nodechildren))>1&&(this.nodes=this.setNodeChildren(this.nodes,e,e,null))}this.setting.view.nodeClasses=this.setNodeclasses,this.setting.callback.onClick=this.onClick.bind(this),this.setting.callback.onExpand=this.onExpand.bind(this),this.setting.callback.onCollapse=this.onCollapse.bind(this);var t=$.fn.zTree.init($('ul[name="'+this.name+'"]'),this.setting,this.nodes);$.fn.zTreeKeyboardNavigation(t,$('ul[name="'+this.name+'"]'),null,this.treeicon||p)},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.changeTreeIcons(e.treeicon||p)}),200)},t}(i.StylableComponent);u.initializeProps=l(),u.decorators=[{type:t.Component,args:[{selector:"ul[wmTree]",template:'<ul #wmTree class="ztree" id="ztree"></ul> ',providers:[i.provideAsWidgetRef(u)],encapsulation:t.ViewEncapsulation.None}]}],u.ctorParameters=function(){return[{type:t.Injector}]};var d=[u],h=function(){};h.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,i.WmComponentsModule],declarations:s([],a(d)),exports:s([],a(d)),entryComponents:[]}]}],e.TreeComponent=u,e.TreeModule=h,e["\u0275a"]=l,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ngx-bootstrap/datepicker"),require("@wm/core"),require("@wm/components/base")):"function"==typeof define&&define.amd?define("@wm/components/input/calendar",["exports","@angular/core","@angular/common","@angular/forms","ngx-bootstrap/datepicker","@wm/core","@wm/components/base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).wm=e.wm||{},e.wm.components=e.wm.components||{},e.wm.components.input=e.wm.components.input||{},e.wm.components.input.calendar={}),e.ng.core,e.ng.common,e.ng.forms,e["ngx-bootstrap"].datepicker,e.wm.core,e.wm.components.base)}(this,(function(e,t,n,i,o,r,a){"use strict";
128
128
  /*! *****************************************************************************
129
129
  Copyright (c) Microsoft Corporation.
130
130