Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

superdev-angular-core

Package Overview
Dependencies
Maintainers
1
Versions
791
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superdev-angular-core - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

2

bundles/superdev-angular-core.umd.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("uuid"),require("xlsx"),require("file-saver"),require("jquery"),require("sweetalert2"),require("@angular/common"),require("md5"),require("bootstrap"),require("@angular/material"),require("@angular/forms"),require("@angular/cdk/overlay")):"function"==typeof define&&define.amd?define("superdev-angular-core",["exports","@angular/core","@angular/common/http","uuid","xlsx","file-saver","jquery","sweetalert2","@angular/common","md5","bootstrap","@angular/material","@angular/forms","@angular/cdk/overlay"],e):e(t["superdev-angular-core"]={},t.ng.core,t.ng.common.http,null,null,null,null,null,t.ng.common,null,null,t.ng.material,t.ng.forms,t.ng.cdk.overlay)}(this,function(t,c,e,p,s,l,n,i,o,r,a,d,u,m){"use strict";var f="default"in p?p["default"]:p;function g(e,l,a,d){return new(a||(a=Promise))(function(t,n){function i(t){try{r(d.next(t))}catch(e){n(e)}}function o(t){try{r(d["throw"](t))}catch(e){n(e)}}function r(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(i,o)}r((d=d.apply(e,l||[])).next())})}function h(i,o){var r,l,a,t,d={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function n(t){if(r)throw new TypeError("Generator is already executing.");for(;d;)try{if(r=1,l&&(a=2&t[0]?l["return"]:t[0]?l["throw"]||((a=l["return"])&&a.call(l),0):l.next)&&!(a=a.call(l,t[1])).done)return a;switch(l=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return d.label++,{value:t[1],done:!1};case 5:d.label++,l=t[1],t=[0];continue;case 7:t=d.ops.pop(),d.trys.pop();continue;default:if(!(a=0<(a=d.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){d=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){d.label=t[1];break}if(6===t[0]&&d.label<a[1]){d.label=a[1],a=t;break}if(a&&d.label<a[2]){d.label=a[2],d.ops.push(t);break}a[2]&&d.ops.pop(),d.trys.pop();continue}t=o.call(i,d)}catch(e){t=[6,e],l=0}finally{r=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}s=s&&s.hasOwnProperty("default")?s["default"]:s,n=n&&n.hasOwnProperty("default")?n["default"]:n,i=i&&i.hasOwnProperty("default")?i["default"]:i,r=r&&r.hasOwnProperty("default")?r["default"]:r;var b=function(){function t(t){this.httpClient=t}return t.prototype.post=function(t,i){var o=this;return new Promise(function(e,n){o.httpClient.post(t,i).toPromise().then(function(t){e(t)})["catch"](function(t){n(t)})})},t.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.HttpClient}]},t.ngInjectableDef=c.defineInjectable({factory:function(){return new t(c.inject(e.HttpClient))},token:t,providedIn:"root"}),t}(),y=function(){function t(){this.importId=f.v4()}return t.prototype["import"]=function(){var t=this;return new Promise(function(d,o){n("#"+t.importId).length&&n("#"+t.importId).remove(),n("body").append('<input id="'+t.importId+'" style="display: none" type="file" />'),n("#"+t.importId).change(function(t){try{var e=t.target;if(1!==e.files.length)throw new Error("Cannot use multiple files");var n=new FileReader;n.onload=function(t){var e=t.target.result,n=s.read(e,{type:"binary"}),i=n.SheetNames[0],o=n.Sheets[i],r=s.utils.sheet_to_json(o,{header:1}),l=[],a=r[0];r.splice(0,1),r.forEach(function(n){var i={},o=!1;a.forEach(function(t,e){i[t]=n[e],n[e]!==undefined&&null!==n[e]&&n[e].toString()&&(o=!0)}),o&&l.push(i)}),d(l)},n.readAsBinaryString(e.files[0])}catch(i){o(i)}}),n("#"+t.importId).trigger("click")})},t.prototype["export"]=function(t){var e=s.utils.json_to_sheet(t.data,{cellDates:!0}),n=s.utils.book_new();s.utils.book_append_sheet(n,e,t.sheetName||"Default");var i=n.SheetNames[0];n.Sheets[i].A1.s={fill:{fgColor:{rgb:"86BC25"}}};var o=s.write(n,{bookType:"xlsx",type:"binary"}),r=t.fileName?t.fileName+this.current():f.v4()+".xlsx";l.saveAs(new Blob([this.s2ab(o)],{type:"application/octet-stream"}),r)},t.prototype.current=function(){var t=new Date;return t.getFullYear()+"/"+("0"+t.getDate()).slice(-2)+"/"+("0"+(t.getMonth()+1)).slice(-2)+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},t.prototype.s2ab=function(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),i=0;i!=t.length;++i)n[i]=255&t.charCodeAt(i);return e},t.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ngInjectableDef=c.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),v=function(){function t(){}return t.prototype.set=function(t,e){t||console.error("[LocalStorageService] INVALID KEY"),localStorage.setItem(t,JSON.stringify({data:e}))},t.prototype.get=function(t){try{return localStorage.getItem(t)?JSON.parse(localStorage.getItem(t)).data:undefined}catch(e){return undefined}},t.prototype.hasKey=function(t){return!!localStorage.getItem(t)},t.prototype.remove=function(t){t&&localStorage.removeItem(t)},t.prototype.clear=function(){localStorage.clear()},t.decorators=[{type:c.Injectable}],t}(),x=function(){function t(){this.alert={warning:function(t){i({type:"warning",title:"Oops...",text:t||"Something went wrong!"})},error:function(t){i({type:"error",title:"Oops...",text:t||"Something went wrong!"})}},this.notify={success:function(t){i({position:"top-end",type:"success",title:t||"Success",showConfirmButton:!1,timer:1500})},warning:function(t){i({position:"top-end",type:"warning",title:t||"Warning",showConfirmButton:!1,timer:1500})},error:function(t){i({position:"top-end",type:"error",title:t||"Error",showConfirmButton:!1,timer:1500})}}}return t.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ngInjectableDef=c.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),w=function(){function t(t,e){var n=this;this.datePipe=t,this.notifyService=e,this.handle={error:function(t){if("string"==typeof t)n.notifyService.notify.warning(t);else if("object"==typeof t){var e=t.message||"UNKNOWN_ERROR";t.json&&"function"==typeof t.json&&(e=t.json().message||e,t.json().error&&(e=t.json().error.message||e)),n.notifyService.notify.warning(e)}else n.notifyService.notify.warning("UNKNOWN_ERROR")}}}return t.prototype.hashMD5=function(t){return r(t)},t.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:o.DatePipe},{type:x}]},t.ngInjectableDef=c.defineInjectable({factory:function(){return new t(c.inject(o.DatePipe),c.inject(x))},token:t,providedIn:"root"}),t}(),C=function(){function t(){}return t.prototype.transform=function(t){return t},t.decorators=[{type:c.Pipe,args:[{name:"translate"}]}],t}(),O=function(){function t(t,e,n,i,o,r,l,a,d){var s=this;this.ref=t,this.utilityService=e,this.elementRef=n,this.datePipe=i,this.apiService=o,this.localStorageService=r,this.excelService=l,this.notifyService=a,this.translatePipe=d,this.originalColumns=[],this.onImportExcel=new c.EventEmitter,this.onSaveRow=new c.EventEmitter,this.items=[],this.filter={},this.pageSize=20,this.currentPage=1,this.configModalId=p.v4(),this.columnConfigs=[],this.pages=[1],this.pageCount=5,this.totalPage=1,this.loadingId=p.v4(),this.isCheckedAll=!1,this.editable={validate:function(t){return"object"==typeof s.gridOption.editable&&s.gridOption.editable.validate?s.gridOption.editable.validate(t):undefined},create:function(){var e={};s.gridOption.columns.forEach(function(t){"values"===t.type&&0<t.values.length?e[t.field]=t.values[0].value:"number"===t.type&&(e[t.field]=0)}),"object"==typeof s.gridOption.editable&&s.gridOption.editable.onAdd&&s.gridOption.editable.onAdd(e),e.isNewInstant=!0,s.items.splice(0,0,e),s.editable.update(e)},update:function(t){t.temporary=Object.assign({},t),t.isEditing=!0},save:function(t){try{if("object"==typeof s.gridOption.editable){if(s.gridOption.editable.validate){var e=s.gridOption.editable.validate(t);if(e)throw e}s.gridOption.editable.onSave&&s.gridOption.editable.onSave(t)}t.isEditing=!1,t.isNewInstant=!1,t.isDirty=!0,s.onSaveRow.emit(t)}catch(n){s.notifyService.notify.warning(n)}},cancel:function(t){t.isNewInstant?s.items.splice(0,1):(Object.assign(t,t.temporary),t.isEditing=!1)},disabled:function(t){return"object"==typeof s.gridOption.editable&&("function"==typeof s.gridOption.editable.disabled?s.gridOption.editable.disabled(t):s.gridOption.editable.disabled)},markAsDirty:function(t){t.isDirty=!0}},this.importedItems=[],this.selectedItem=null,this.rowHandler={click:function(t){s.selectedItem=t,s.gridOption.onClickRow&&(s.gridOption.component?s.gridOption.onClickRow.bind(s.gridOption.component)(t):s.gridOption.onClickRow(t))},dblClick:function(t){s.selectedItem=t,s.gridOption.onDblClickRow&&(s.gridOption.component?s.gridOption.onDblClickRow.bind(s.gridOption.component)(t):s.gridOption.onDblClickRow(t))}},this.commandHandler={icon:function(t,e){return"function"==typeof t.icon?t.icon(e):t.icon},title:function(t,e){return"function"==typeof t.title?s.translatePipe.transform(t.title(e)):s.translatePipe.transform(t.title)},disalbed:function(t,e){return!!t.disabled&&(t.disabled instanceof Function&&t.disabled(e))}},this.editorHandler={displayEditor:function(t,e){var n=!1;return t.editor&&(n="function"==typeof t.editor.disabled?t.editor.disabled(e):t.editor.disabled),!n&&("object"==typeof s.gridOption.editable&&(n="function"==typeof s.gridOption.editable.disabled?s.gridOption.editable.disabled(e):s.gridOption.editable.disabled),!n&&(e.isEditing||t.editor&&t.editor.alwayDisplay||s.gridOption.editable&&"object"==typeof s.gridOption.editable&&"inline"===s.gridOption.editable.type))},alwayDisplay:function(t,e){return t.editor&&t.editor.alwayDisplay},click:function(t,e){t.editor&&t.editor.click&&t.editor.click(e)},change:function(t,e){t.editor&&t.editor.change&&t.editor.change(e)},keyupEnter:function(t,e){t.editor&&t.editor.keyupEnter&&t.editor.keyupEnter(e)},disabled:function(t,e){return!!t.editor&&("function"==typeof t.editor.disabled?t.editor.disabled(e):t.editor.disabled)}},setInterval(function(){s.ref.markForCheck()},1e3)}return Object.defineProperty(t.prototype,"option",{set:function(t){this.detectChanges(),this.originalColumns=t.columns,this.gridOption=Object.assign({},t),this.loadConfig(),this.reload()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){},t.prototype.ngAfterViewInit=function(){this.resize()},t.prototype.startLoading=function(){n(this.elementRef.nativeElement).append('<div id="'+this.loadingId+'" style="top:0;left:0;height:100%;width:100%;position:absolute;opacity:0.6;background:#FFFFFF;"><i class="fa fa-circle-o-notch fa-spin fa-3x"></i></div>')},t.prototype.stopLoading=function(){n("#"+this.loadingId).remove()},t.prototype.reloadGridDefault=function(){return g(this,void 0,void 0,function(){var e;return h(this,function(t){switch(t.label){case 0:return"server"!==this.gridOption.type?[3,2]:[4,this.apiService.post(this.gridOption.url,this.filterDefault)];case 1:e=t.sent(),this.items=e.json()[this.gridOption.itemsField],this.total=e.json()[this.gridOption.totalField],t.label=2;case 2:return[2]}})})},t.prototype.reloadGridCustom=function(){return g(this,void 0,void 0,function(){var e;return h(this,function(t){switch(t.label){case 0:return[4,this.apiService.post(this.gridOption.url,this.filterCustom)];case 1:return e=t.sent(),this.items=e.json().res,this.total=e.json().total,[2]}})})},t.prototype.reloadGridLocal=function(i){return g(this,void 0,void 0,function(){var e,n;return h(this,function(t){switch(t.label){case 0:return"local"!==this.gridOption.type?[3,3]:this.gridOption.url?(e={},[4,this.apiService.post(this.gridOption.url,e)]):[3,2];case 1:return n=t.sent(),this.items=n.json(),this.total=this.items.length,[3,3];case 2:this.gridOption.items=i||this.gridOption.items,this.items=this.gridOption.items,this.total=this.items.length,t.label=3;case 3:return[2]}})})},t.prototype.reload=function(n){return g(this,void 0,void 0,function(){var e;return h(this,function(t){switch(t.label){case 0:this.startLoading(),t.label=1;case 1:return t.trys.push([1,8,,9]),"default"!==this.gridOption.type?[3,3]:[4,this.reloadGridDefault()];case 2:return t.sent(),[3,7];case 3:return"custom"!==this.gridOption.type?[3,5]:[4,this.reloadGridCustom()];case 4:return t.sent(),[3,7];case 5:return"local"!==this.gridOption.type?[3,7]:[4,this.reloadGridLocal(n)];case 6:t.sent(),t.label=7;case 7:return this.items.forEach(function(t){return t.originItem=Object.assign({},t)}),this.gridOption.onReloadCompleted&&this.gridOption.onReloadCompleted(this.items),this.generatePaginate(),this.stopLoading(),this.detectChanges(),[3,9];case 8:return e=t.sent(),this.utilityService.handle.error(e),this.stopLoading(),[3,9];case 9:return[2]}})})},t.prototype.detectChanges=function(){this.ref.detectChanges()},Object.defineProperty(t.prototype,"filterDefault",{get:function(){var i=this,t=(this.currentPage-1)*this.pageSize;t<0&&(t=0);var e=this.pageSize,o={};return this.gridOption.customFilter&&(this.gridOption.customFilter instanceof Object&&(o=n.extend(o,this.gridOption.customFilter)),this.gridOption.customFilter instanceof Function&&(o=n.extend(o,this.gridOption.customFilter()))),this.gridOption.columns.forEach(function(t){if(i.filter[t.field]){var e={};if("string"===t.type)e[t.field]={like:"%"+i.filter[t.field].trim()+"%"};else if("number"===t.type){var n=parseFloat(i.filter[t.field].trim().replace(">=","").replace("<=","").replace(">","").replace("<",""));-1<i.filter[t.field].indexOf(">=")?e[t.field]={gte:n}:-1<i.filter[t.field].indexOf("<=")?e[t.field]={lte:n}:-1<i.filter[t.field].indexOf(">")?e[t.field]={gt:n}:-1<i.filter[t.field].indexOf("<")?e[t.field]={lt:n}:e[t.field]=n}else"bool"===t.type&&("0"===i.filter[t.field]?e[t.field]=!1:"1"===i.filter[t.field]&&(e[t.field]=!0));Object.assign(o,e)}}),{where:o,skip:t,limit:e,order:this.orderBy?this.orderBy+" "+this.orderDirection:undefined}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterCustom",{get:function(){var r,l=this;return this.gridOption.customFilter?("string"==typeof this.gridOption.customFilter&&(r=this.gridOption.customFilter),this.gridOption.customFilter instanceof Function&&(r=this.gridOption.customFilter())):r="1>0",this.gridOption.columns.forEach(function(t){if(l.filter[t.field])if("string"===t.type)r+=" AND "+t.field+" LIKE '%"+l.filter[t.field].trim()+"%'";else if("number"===t.type){var e=parseFloat(l.filter[t.field].trim().replace(">=","").replace("<=","").replace(">","").replace("<",""));-1<l.filter[t.field].indexOf(">=")?r+=" AND "+t.field+" >= "+e:-1<l.filter[t.field].indexOf("<=")?r+=" AND "+t.field+" <= "+e:-1<l.filter[t.field].indexOf(">")?r+=" AND "+t.field+" > "+e:-1<l.filter[t.field].indexOf("<")?r+=" AND "+t.field+" < "+e:r+=" AND "+t.field+" = "+e}else if("bool"===t.type)l.filter[t.field]||"0"===l.filter[t.field]?r+=" AND "+t.field+" = false":(l.filter[t.field]||"1"===l.filter[t.field])&&(r+=" AND "+t.field+" = true");else if("date"===t.type||"datetime"===t.type){var n=new Date(l.filter[t.field]);n=new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0);var i=l.datePipe.transform(n,"yyyy-MM-dd HH:mm:ss");n.setDate(n.getDate()+1);var o=l.datePipe.transform(n,"yyyy-MM-dd HH:mm:ss");r+=" AND "+t.field+" >= '"+i+"' AND "+t.field+" < '"+o+"'"}else"values"===t.type&&""!==l.filter[t.field]&&(r+=" AND "+t.field+" = '"+l.filter[t.field].trim()+"'")}),this.gridOption.customParam?"function"==typeof this.gridOption.customParam?Object.assign(this.gridOption.customParam(),{whereClause:r,orderBy:this.orderBy,orderDirection:this.orderDirection,page:+this.currentPage||1,pageSize:+this.pageSize}):"object"==typeof this.gridOption.customParam?Object.assign(this.gridOption.customParam,{whereClause:r,orderBy:this.orderBy,orderDirection:this.orderDirection,page:+this.currentPage||1,pageSize:+this.pageSize}):void 0:{whereClause:r,orderBy:this.orderBy,orderDirection:this.orderDirection,page:+this.currentPage||1,pageSize:+this.pageSize}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewItems",{get:function(){var n=this;return this.currentPage=this.currentPage||1,"local"===this.gridOption.type?this.items.filter(function(t,e){return e>=(n.currentPage-1)*n.pageSize&&e<n.currentPage*n.pageSize}):this.items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editedItems",{get:function(){return this.items.filter(function(e){return!!e.isDirty||!(!e.originItem||!Object.keys(e.originItem).some(function(t){return e.originItem[t]!==e[t]}))})},enumerable:!0,configurable:!0}),t.prototype.selectPage=function(t){var e=+t;this.currentPage!==e&&0<e&&e<=this.totalPage&&(this.currentPage=e,this.reload())},t.prototype.generatePaginate=function(){if("local"===this.gridOption.type&&(this.total=this.items.length),this.pages=[],this.totalPage=Math.trunc(this.total/this.pageSize)+(this.total%this.pageSize==0?0:1),this.currentPage>this.totalPage&&(this.currentPage=this.totalPage),this.totalPage<=this.pageCount)for(var t=1;t<=this.totalPage;t++)this.pages.push(t);else this.currentPage<3?this.pages=[1,2,3,4,5]:this.currentPage>this.totalPage-2?this.pages=[this.totalPage-4,this.totalPage-3,this.totalPage-2,this.totalPage-1,this.totalPage]:this.pages=[this.currentPage-2,this.currentPage-1,this.currentPage,this.currentPage+1,this.currentPage+2]},Object.defineProperty(t.prototype,"sumarize",{get:function(){if(this.items&&0<this.items.length){var t=+this.pageSize*(+this.currentPage-1)+1;return t+" - "+(t+this.viewItems.length-1)+" / "+this.total}},enumerable:!0,configurable:!0}),t.prototype.getItems=function(){return this.items},Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.items.filter(function(t){return t.isChecked})},enumerable:!0,configurable:!0}),t.prototype.check=function(t){this.isCheckedAll=this.items.length===this.items.filter(function(t){return t.isChecked}).length,this.gridOption.onCheck&&this.gridOption.onCheck(this.items.filter(function(t){return t.isChecked}),t)},t.prototype.checkAll=function(t){var e=this;this.isCheckedAll=t,this.items.forEach(function(t){return t.isChecked=e.isCheckedAll}),this.gridOption.onCheck&&this.gridOption.onCheck(this.items.filter(function(t){return t.isChecked}))},t.prototype.sort=function(t){this.orderBy===t?this.orderDirection="ASC"===this.orderDirection?"DESC":"ASC":(this.orderBy=t,this.orderDirection="ASC"),this.reload()},t.prototype.resize=function(){var e=this;this.detectChanges();var t=this;this.gridOption.height?(n(this.gridBody.nativeElement).height(this.gridOption.height),n(this.gridFixedBody.nativeElement).height(this.gridOption.height)):(n(this.gridBody.nativeElement).height("calc(100vh - 100px)"),n(this.gridFixedBody.nativeElement).height("calc(100vh - 100px)"),setTimeout(function(){var t=n(e.gridBody.nativeElement).offset().top;n(e.gridBody.nativeElement).height("calc(100vh - "+(t+55)+"px)"),n(e.gridFixedBody.nativeElement).height("calc(100vh - "+(t+55)+"px)")},200)),this.resizeWidth(),n(this.gridBody.nativeElement).scroll(function(){n(t.gridHeader.nativeElement).scrollLeft(this.scrollLeft),n(t.gridFixedBody.nativeElement).scrollTop(this.scrollTop)})},t.prototype.setHeight=function(t){n(this.gridBody.nativeElement).height(t),n(this.gridFixedBody.nativeElement).height(t)},t.prototype.resizeWidth=function(){var t=5;this.gridOption.checkable&&(t+=52),this.gridOption.editable&&(t+=62),this.gridOption.commands&&(t+=28*this.gridOption.commands.length+2+2),n(this.fixedGridContainer.nativeElement).css("width",t+"px"),n(this.gridContainer.nativeElement).css("width","calc(100% - "+t+"px)"),console.log("calc(100% - "+t+"px)")},t.prototype.importExcel=function(){var i=this;this.excelService["import"]().then(function(t){i.importedItems=t.map(function(e){var n={};return i.gridOption.columns.forEach(function(t){n[t.field]=e[t.title],"number"===t.type?n[t.field]=n[t.field]||0:"bool"===t.type?(n[t.field]=n[t.field]||"false",1===n[t.field]&&"1"===n[t.field]||"default"===n[t.field].toString().toLowerCase()||"Active"===n[t.field].toString().toLowerCase()||"true"===n[t.field].toString().toLowerCase()?n[t.field]=!0:n[t.field]=!1):"string"===t.type&&(n[t.field]=n[t.field]||"")}),n}),i.modalImportExcel.open()})},t.prototype.saveImportedExcel=function(){this.gridOption.onImportExcel&&this.gridOption.onImportExcel.bind(this.gridOption.component)(this.importedItems),this.onImportExcel.emit(this.importedItems)},t.prototype.exportExcel=function(){return g(this,void 0,void 0,function(){var e,n,i,r=this;return h(this,function(t){switch(t.label){case 0:return e=[],"default"!==this.gridOption.type?[3,2]:((n=this.filterDefault).skip=0,n.limit=1e5,[4,this.apiService.post(this.gridOption.url,n)]);case 1:return e=t.sent().json().res,[3,6];case 2:return"custom"!==this.gridOption.type?[3,5]:((n=this.filterCustom).page=1,n.pageSize=1e4,[4,this.apiService.post(this.gridOption.url,n)]);case 3:return[4,t.sent().json().res];case 4:return e=t.sent(),[3,6];case 5:e=this.items,t.label=6;case 6:return 0===e.length&&(e=[{}]),i=e.map(function(i){var o={};return r.gridOption.columns.forEach(function(e){if(i[e.field]===undefined||null===i[e.field]||""===i[e.field])o[e.title]="";else if("string"===e.type||"number"===e.type)o[e.title]=i[e.field];else if("bool"===e.type)i[e.field]?o[e.title]=e.trueValue||"TRUE":o[e.title]=e.falseValue||"FALSE";else if("date"===e.type){var t=new Date(i[e.field]);o[e.title]=r.datePipe.transform(t,"dd/MM/yyyy")}else if("datetime"===e.type){t=new Date(i[e.field]);o[e.title]=r.datePipe.transform(t,"dd/MM/yyyy HH:mm")}else if("time"===e.type){t=new Date(i[e.field]);o[e.title]=r.datePipe.transform(t,"HH:mm")}else if("values"===e.type){var n=e.values.find(function(t){return t.value==i[e.field]});o[e.title]=n?n.text:""}}),o}),this.excelService["export"]({data:i}),[2]}})})},t.prototype.loadConfig=function(){var n=this;if(this.gridOption.columns=[],this.gridOption.key){var t=this.gridOption.key;if(this.localStorageService.get(t)){var e=this.localStorageService.get(t);e.forEach(function(e){var t=n.originalColumns.find(function(t){return t.field===e.originColumn.field});e.originColumn=t||e.originColumn}),this.localStorageService.set(t,e)}else{var i=[];this.originalColumns.forEach(function(t,e){i.push({originColumn:Object.assign({},t),order:e,isHidden:!1})}),this.localStorageService.set(t,i)}this.columnConfigs=this.localStorageService.get(t),this.columnConfigs.forEach(function(e){var t=n.originalColumns.find(function(t){return t.field===e.originColumn.field});t=t||e.originColumn,e.isHidden||(n.filter[t.field]="",t.title=e.title||n.translatePipe.transform(t.title),t.width=e.width||t.width,n.gridOption.columns.push(t))})}else this.gridOption.columns=Object.assign([],this.originalColumns);this.gridOption.columns.forEach(function(t){if("values"===t.type){var e={};t.values&&t.values.forEach(function(t){e[t.value]={text:t.text,icon:t.icon,color:t.color,backgroundColor:t.backgroundColor}}),t.dictionary=e}})},t.prototype.resetConfig=function(){var t=this.gridOption.key;this.localStorageService.remove(t),this.loadConfig(),this.modal.close()},t.prototype.saveModalConfig=function(){var t=this.gridOption.key;this.localStorageService.set(t,this.columnConfigs),this.loadConfig(),this.reload(),this.modal.close()},t.prototype.openModalConfig=function(){this.modal.open()},t.prototype.moveColumnUp=function(t){var e=this.columnConfigs[t];this.columnConfigs[t]=this.columnConfigs[t-1],this.columnConfigs[t-1]=e},t.prototype.moveColumnDown=function(t){var e=this.columnConfigs[t];this.columnConfigs[t]=this.columnConfigs[t+1],this.columnConfigs[t+1]=e},t.decorators=[{type:c.Component,args:[{selector:"grid-control",template:'<div class="clearfix"></div>\n<div *ngIf="gridOption" class="box box-primary">\n <div class="box-body p-0">\n <div class="row mr-0 ml-0">\n <div #fixedGridContainer>\n <div class="table-responsive c-overflow-x-hidden" #gridFixedHeader>\n <table class="table table-bordered mb-0">\n <thead class="thead-light">\n <tr>\n <th style="width:1px;min-width: 1px;"></th>\n <th *ngIf="gridOption.checkable" class="align-middle text-center" style="width:50px;min-width: 50px;">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="isCheckedAll" (change)="checkAll(isCheckedAll)">\n <span class="custom-control-label"></span>\n </label>\n </th>\n <th *ngIf="gridOption.editable" class="align-middle text-center" style="width:60px;min-width: 60px;">\n <button type="button" *ngIf="gridOption.addable" type="button" class="btn-icon" (click)="editable.create()">\n <i class="fa fa-plus"></i>\n </button>\n </th>\n <th *ngIf="gridOption.commands && gridOption.commands.length" class="align-middle text-center" [ngStyle]="{\'width\': gridOption.commands.length*28 + 2 + \'px\',\'min-width\': gridOption.commands.length*28 + 2 + \'px\'}">\n </th>\n </tr>\n </thead>\n </table>\n </div>\n <div class="table-responsive c-overflow-x-hidden c-overflow-y-hidden" #gridFixedBody>\n <table class="table table-hover table-striped table-bordered">\n <tbody>\n <tr [ngClass]="{\'selected-row\':selectedItem === item}" *ngFor="let item of viewItems">\n <td [ngClass]="{\'table-danger\': gridOption.editable && editable.validate(item), \'table-success\': gridOption.editable && !editable.validate(item)}"\n style="width:1px;min-width: 1px;" [matTooltip]="editable.validate(item)" matTooltipPosition="after"></td>\n <td class="align-middle text-center" *ngIf="gridOption.checkable" style="width:50px;min-width: 50px;">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="item.isChecked" (change)="check(item)">\n <span class="custom-control-label"></span>\n </label>\n </td>\n <td *ngIf="gridOption.editable" class="align-middle text-center" style="width:60px;min-width: 60px;">\n <div>\n \x3c!-- <div *ngIf="gridOption.editable.type !== \'inline\'"> --\x3e\n <button type="button" *ngIf="!item.isEditing" type="button" class="btn-icon" placement="top" matTooltip="Edit" (click)="editable.update(item)"\n [disabled]="editable.disabled(item)">\n <i class="fa fa-pencil text-primary" aria-hidden="true"></i>\n </button>\n <button type="button" *ngIf="item.isEditing" type="button" class="btn-icon" placement="top" matTooltip="Save" (click)="editable.save(item)"\n [disabled]="editable.disabled(item)">\n <i class="fa fa-floppy-o text-success" aria-hidden="true"></i>\n </button>\n <button type="button" *ngIf="item.isEditing" type="button" class="btn-icon" placement="top" matTooltip="Cancel"(click)="editable.cancel(item)"\n [disabled]="editable.disabled(item)">\n <i class="fa fa-times text-danger" aria-hidden="true"></i>\n </button>\n </div>\n </td>\n <td *ngIf="gridOption.commands && gridOption.commands.length" class="align-middle text-center" [ngStyle]="{\'width\': gridOption.commands.length*28 + 2 + \'px\',\'min-width\': gridOption.commands.length*28 + 2 + \'px\'}">\n <button type="button" *ngFor="let command of gridOption.commands" type="button" class="btn-icon" matTooltip="{{commandHandler.title(command,item)}}"\n (click)="selectedItem=item;command.click(item)" [disabled]="commandHandler.disalbed(command,item)">\n <i class="{{commandHandler.icon(command,item)}}" aria-hidden="true"></i>\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div #gridContainer>\n <div class="table-responsive grid-header" #gridHeader>\n <table class="table table-bordered mb-0">\n <thead class="thead-light">\n <tr>\n <th *ngFor="let column of gridOption.columns" [ngClass]="{\'d-none\':column.hidden && column.hidden()}" [ngStyle]="{\'width\':column.width ? column.width : \'\',\'min-width\':column.width ? column.width : \'300px\'}">\n <span class="cursor-pointer" (click)="sort(column.field)" [ngStyle]="{\'width\':column.width ? column.width : \'\'}">\n {{column.title}}\n <i *ngIf="orderBy == column.field && orderDirection == \'ASC\'" class="fa fa-angle-up"></i>\n <i *ngIf="orderBy == column.field && orderDirection == \'DESC\'" class="fa fa-angle-down"></i>\n </span>\n <input *ngIf="column.type === \'string\' || column.type === \'number\'" type="text" class="form-control form-control-xs" [(ngModel)]="filter[column.field]"\n (keyup.enter)="reload()">\n <select *ngIf="column.type === \'bool\'" class="form-control form-control-xs" [(ngModel)]="filter[column.field]" (change)="reload()">\n <option value="">All</option>\n <option value="1">{{column.trueValue || \'TRUE\'}}</option>\n <option value="0">{{column.falseValue || \'FALSE\'}}</option>\n </select>\n <select class="form-control form-control-xs" *ngIf="column.type == \'values\'" [(ngModel)]="filter[column.field]" (change)="reload()">\n <option value="">All</option>\n <option *ngFor="let data of column.values" [value]="data.value">{{data.text}}</option>\n </select>\n <date-picker-control *ngIf="column.type === \'date\' || column.type === \'datetime\' || column.type === \'time\'" [(model)]="filter[column.field]"\n (change)="reload()" [type]="\'date\'" [size]="\'xs\'"></date-picker-control>\n </th>\n </tr>\n </thead>\n </table>\n </div>\n <div class="table-responsive" #gridBody>\n <table class="table table-hover table-striped table-bordered">\n <tbody>\n <tr [ngClass]="{\'selected-row\':selectedItem === item}" *ngFor="let item of viewItems">\n <td *ngFor="let column of gridOption.columns" class="align-middle" [ngClass]="{\'d-none\':column.hidden && column.hidden()}"\n (click)="rowHandler.click(item)" (dblclick)="rowHandler.dblClick(item)" [ngStyle]="{\'width\':column.width ? column.width : \'\', \'min-width\':column.width ? column.width : \'300px\'}">\n <div *ngIf="column.type === \'string\'">\n <div *ngIf="editorHandler.displayEditor(column, item)" class="input-group input-group-xs">\n <input class="form-control" [ngClass]="{\'border-right-0\':column.editor && column.editor.click}" [(ngModel)]="item[column.field]"\n [disabled]="editorHandler.disabled(column, item)" (keyup.enter)="editorHandler.keyupEnter(column, item)"\n (change)="editable.markAsDirty(item);editorHandler.change(column, item)">\n <div class="input-group-append cursor-pointer" *ngIf="column.editor && column.editor.click">\n <span class="input-group-text pr-1 pl-0" [ngStyle]="{\'background\':editorHandler.disabled(column, item)?\'#E9ECEF\':\'#FFF\'}"\n (click)="editorHandler.click(column, item)">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n <div class="c-ellipsis" [ngStyle]="{\'width\':column.width ? column.width : \'\', \'min-width\':column.width ? column.width : \'300px\'}"\n *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field]}}\n </div>\n </div>\n <div *ngIf="column.type === \'number\'">\n <input *ngIf="editorHandler.displayEditor(column, item)" type="number" class="form-control form-control-xs" [(ngModel)]="item[column.field]"\n [disabled]="editorHandler.disabled(column, item)" (keyup.Enter)="editorHandler.keyupEnter(column, item)"\n (change)="editable.markAsDirty(item);editorHandler.change(column, item)">\n <div *ngIf="!editorHandler.displayEditor(column, item)" class="pull-right">\n {{item[column.field] | number : \'1.2-2\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'date\'">\n <date-picker-control *ngIf="editorHandler.displayEditor(column, item)" [(model)]="item[column.field]" [type]="\'date\'"\n [size]="\'xs\'" [disabled]="editorHandler.disabled(column, item)"></date-picker-control>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field] | date:\'dd/MM/yyyy\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'datetime\'">\n <date-picker-control *ngIf="editorHandler.displayEditor(column, item)" [(model)]="item[column.field]" [type]="\'datetime\'"\n [size]="\'xs\'" [disabled]="editorHandler.disabled(column, item)"></date-picker-control>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field] | date:\'dd/MM/yyyy HH:mm\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'time\'">\n <date-picker-control *ngIf="editorHandler.displayEditor(column, item)" [(model)]="item[column.field]" [type]="\'time\'"\n [size]="\'xs\'" [disabled]="editorHandler.disabled(column, item)"></date-picker-control>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field] | date:\'HH:mm\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'bool\'">\n <div *ngIf="editorHandler.displayEditor(column, item)">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="item[column.field]" (change)="editable.markAsDirty(item)">\n <span class="custom-control-label"></span>\n </label>\n </div>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n <span *ngIf="item[column.field]" class="status status-success">{{column.trueValue || item[column.field]}}</span>\n <span *ngIf="!item[column.field]" class="status status-danger">{{column.falseValue || item[column.field]}}</span>\n </div>\n </div>\n <div *ngIf="column.type == \'values\'">\n <div *ngIf="editorHandler.displayEditor(column, item)">\n <select class="form-control form-control-xs" [disabled]="editorHandler.disabled(column, item)" [(ngModel)]="item[column.field]"\n (change)="editable.markAsDirty(item);">\n <option *ngFor="let data of column.values" [value]="data.value">{{data.text}}</option>\n </select>\n </div>\n <div class="status c-ellipsis" *ngIf="!editorHandler.displayEditor(column, item) && column.dictionary[item[column.field]]"\n [ngStyle]="{\'color\':column.dictionary[item[column.field]].color,\'width\':column.width ? column.width : \'\', \'min-width\':column.width ? column.width : \'300px\'}">\n {{column.dictionary[item[column.field]].text}}\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n <div class="box-footer clearfix">\n <button type="button" *ngIf="gridOption.key" class="btn btn-primary btn-sm" matTooltip="Configure" (click)="openModalConfig()">\n <i class="fa fa-cogs fa-fw"></i>\n </button>\n <button type="button" class="btn btn-info btn-sm" matTooltip="Refresh" (click)="reload()">\n <i class="fa fa fa-refresh fa-fw"></i>\n </button>\n <button type="button" *ngIf="gridOption.onImportExcel" class="btn btn-success btn-sm" matTooltip="Import Excel" (click)="importExcel()">\n <i class="fa fa-upload fa-fw"></i>\n </button>\n <button type="button" class="btn btn-success btn-sm" matTooltip="Export Excel" (click)="exportExcel()">\n <i class="fa fa-download fa-fw"></i>\n </button>\n <div class="row mr-0 ml-0 text-right pull-right">\n <span class="sumarize">{{sumarize}}</span>\n <ul class="pagination pagination-info m-0">\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === 1}" placement="top" matTooltip="First" (click)="selectPage(1)">\n <a class="page-link">\n <i class="fa fa-angle-double-left"></i>\n </a>\n </li>\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === 1}" placement="top" matTooltip="Previous" (click)="selectPage(currentPage-1)">\n <a class="page-link">\n <i class="fa fa-angle-left"></i>\n </a>\n </li>\n <li class="page-item" [ngClass]="{\'active\':page === currentPage}" *ngFor="let page of pages" (click)="selectPage(page)">\n <a class="page-link">{{page}}</a>\n </li>\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === totalPage}" placement="top" matTooltip="Next" (click)="selectPage(currentPage+1)">\n <a class="page-link">\n <i class="fa fa-angle-right"></i>\n </a>\n </li>\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === totalPage}" placement="top" matTooltip="Last" (click)="selectPage(totalPage)">\n <a class="page-link">\n <i class="fa fa-angle-double-right"></i>\n </a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\x3c!-- Modal Configure Grid --\x3e\n<modal-control *ngIf="gridOption" [title]="\'Config Grid\'" #modal>\n <modal-body>\n <div class="mb-2">\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 20}" (click)="pageSize = 20">20</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 50}" (click)="pageSize = 50">50</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 200}" (click)="pageSize = 200">200</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 500}" (click)="pageSize = 500">500</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 1000}" (click)="pageSize = 1000">1000</button>\n </div>\n <div class="table-responsive" style="height: calc(100vh - 15rem)">\n <table class="table table-hover table-bordered">\n <colgroup>\n <col style="width:50px">\n <col style="width:80px">\n <col style="width:100px">\n <col>\n <col style="width:100px">\n <col style="width:100px">\n </colgroup>\n <thead>\n <tr>\n <th class="align-bottom table-small"></th>\n <th class="align-bottom table-small"></th>\n <th>Field\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n <th>Title\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n <th>Width\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n <th>Hidden\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let column of columnConfigs; let idx = index">\n <td class="align-middle text-center">\n {{idx+1}}\n </td>\n <td class="align-middle text-center">\n <button type="button" [disabled]="idx==0" type="button" class="btn-icon" placement="top" matTooltip="Up" (click)="moveColumnUp(idx)">\n <i class="fa fa-arrow-up text-primary" aria-hidden="true"></i>\n </button>\n <button type="button" [disabled]="idx==columnConfigs.length-1" type="button" class="btn-icon" placement="top" matTooltip="Down"\n (click)="moveColumnDown(idx)">\n <i class="fa fa-arrow-down text-primary" aria-hidden="true"></i>\n </button>\n </td>\n <td class="align-middle">{{column.originColumn.field}}</td>\n <td class="align-middle">\n <input type="text" placeholder="{{column.originColumn.title}}" [(ngModel)]="column.title" class="form-control form-control-sm my-1">\n </td>\n <td class="align-middle">\n <input type="text" placeholder="{{column.originColumn.width}}" [(ngModel)]="column.width" class="form-control form-control-sm my-1">\n </td>\n <td class="align-middle text-center">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="column.isHidden">\n <span class="custom-control-label"></span>\n </label>\n </td>\n </tr>\n </table>\n </div>\n </modal-body>\n <modal-footer>\n <button type="button" class="btn btn-info btn-sm mr-auto" (click)="resetConfig()">\n <i class="fa fa-refresh"></i> Reset</button>\n <button type="button" class="btn btn-secondary btn-sm" (click)="modal.close()">\n <i class="fa fa-times"></i> Close</button>\n <button type="button" class="btn btn-primary btn-sm" (click)="saveModalConfig()">\n <i class="fa fa-floppy-o"></i> Save</button>\n </modal-footer>\n</modal-control>\n\n\x3c!-- Modal Impor Excel --\x3e\n<modal-control *ngIf="gridOption" [title]="\'Import Excel Preview\'" #modalImportExcel>\n <modal-body>\n <div class="table-responsive" style="height: calc(100vh - 250px)">\n <table class="table table-hover">\n <colgroup>\n <col style="width:50px">\n <col *ngFor="let column of gridOption.columns" [ngStyle]="{\'width\':column.width ? column.width : \'\' }">\n </colgroup>\n <thead>\n <tr>\n <th rowspan="1" class="align-middle text-center">\n STT\n </th>\n <th rowspan="1" *ngFor="let column of gridOption.columns" [ngStyle]="{\'min-width\':column.width ? column.width : \'100px\'}">\n {{column.title}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let item of importedItems; let idx = index">\n <td class="align-middle text-center">{{idx+1}}</td>\n <td *ngFor="let column of gridOption.columns" class="align-middle">\n {{item[column.field]}}\n </td>\n </tr>\n </table>\n </div>\n </modal-body>\n <modal-footer>\n <button type="button" class="btn btn-secondary btn-sm" (click)="modalImportExcel.close()">\n <i class="fa fa-times"></i> Close</button>\n <button type="button" class="btn btn-primary btn-sm" (click)="saveImportedExcel()">\n <i class="fa fa-floppy-o"></i> Save</button>\n </modal-footer>\n</modal-control>',styles:[".form-control-xs,.input-group-xs>.form-control,.input-group-xs>.input-group-append>.input-group-text{padding:.15rem .2rem;font-size:.75rem;line-height:1.5;border-radius:.2rem;height:calc(1.45rem + 2px)}select.form-control-xs:not([size]):not([multiple]){height:calc(1.45rem + 2px)}.btn-xs{padding:.2rem .5rem;font-size:.7rem;line-height:1.15}.text-superdev{color:#006b8b!important}.bg-superdev{color:#fff!important;background-color:#006b8b!important}.btn-superdev,.btn-superdev:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev:disabled{color:#fff;background-color:#006b8b;border-color:#006b8b;opacity:.6;cursor:not-allowed}.btn-superdev-swm{color:#006b8b;background-color:#fff;border-color:#006b8b}.btn-superdev-swm:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev-swm:disabled{color:#006b8b;background-color:#fff;cursor:not-allowed}.box{position:relative;border-radius:3px;background:#fff;border-top:3px solid #d2d6de;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.1)}.box.box-primary{border-top-color:#3c8dbc}.box.box-success{border-top-color:#00a65a}.box.box-warning{border-top-color:#f39c12}.box.box-danger{border-top-color:#dd4b39}.box-header{color:#444;display:block;padding:.5rem;position:relative;border-bottom:1px solid #f4f4f4}.box-header .box-title{display:inline-block;font-size:1.2rem;margin:0;line-height:1}.box-body{padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}.box-footer{border-top:1px solid #f4f4f4;padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}",".btn-icon{background:0 0!important;border:none;opacity:.8}.btn-icon:hover{cursor:pointer;opacity:1}.btn-icon:disabled{background:0 0!important;border:none;cursor:not-allowed;opacity:.3}.grid-header{overflow-x:hidden;overflow-y:hidden}td,th{line-height:1.15;padding:.3rem .2rem!important;font-size:.8rem;min-width:0}tbody td .c-ellipsis,thead th>span{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;display:block;margin:0 -.3rem;padding:0 .3rem}thead th{min-height:49px;height:49px}tbody td{min-height:35px;height:35px}.status{font-weight:500;padding:2px 5px;border-radius:1.5rem;color:#16759b;cursor:pointer;display:block;text-align:center}.status-success{color:#43a047}.status-danger{color:#f44336}.page-item{cursor:pointer}.sumarize{padding:.5rem .75rem;text-transform:uppercase;font-size:.7rem;color:#fff;display:inline-block;white-space:normal;font-weight:500;line-height:1;text-align:center;border-radius:10rem;background-color:#00bcd4}.cursor-pointer{cursor:pointer}label.custom-control.custom-checkbox{margin:0}.selected-row{background-color:#90caf9!important}.pagination>li>a{border:0;border-radius:1.5rem!important;transition:.3s;padding:0 .5rem;margin:0 .2rem;min-width:1rem;height:1.5rem;line-height:1.5rem;color:#999;font-weight:400;font-size:.7rem;text-transform:uppercase;background:0 0}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{background-color:#9c27b0;border-color:#9c27b0;color:#fff;box-shadow:0 4px 5px 0 rgba(156,39,176,.14),0 1px 10px 0 rgba(156,39,176,.12),0 2px 4px -1px rgba(156,39,176,.2)}.pagination.pagination-info>.active>a,.pagination.pagination-info>.active>a:focus,.pagination.pagination-info>.active>a:hover,.pagination.pagination-info>.active>span,.pagination.pagination-info>.active>span:focus,.pagination.pagination-info>.active>span:hover{background-color:#00bcd4;border-color:#00bcd4;box-shadow:0 4px 5px 0 rgba(0,188,212,.14),0 1px 10px 0 rgba(0,188,212,.12),0 2px 4px -1px rgba(0,188,212,.2)}.btn{color:#fff;background-color:#999;border-color:#999;box-shadow:0 2px 2px 0 rgba(153,153,153,.14),0 3px 1px -2px rgba(153,153,153,.2),0 1px 5px 0 rgba(153,153,153,.12)}.btn:hover{color:#fff;background-color:#919191;border-color:#7a7a7a}.btn.btn-sm{font-size:.6875rem}.btn.btn-primary{color:#fff;background-color:#9c27b0;border-color:#9c27b0;box-shadow:0 2px 2px 0 rgba(156,39,176,.14),0 3px 1px -2px rgba(156,39,176,.2),0 1px 5px 0 rgba(156,39,176,.12)}.btn.btn-info{color:#fff;background-color:#00bcd4;border-color:#00bcd4;box-shadow:0 2px 2px 0 rgba(0,188,212,.14),0 3px 1px -2px rgba(0,188,212,.2),0 1px 5px 0 rgba(0,188,212,.12)}.btn.btn-success{color:#fff;background-color:#4caf50;border-color:#4caf50;box-shadow:0 2px 2px 0 rgba(76,175,80,.14),0 3px 1px -2px rgba(76,175,80,.2),0 1px 5px 0 rgba(76,175,80,.12)}.btn.btn-warning{color:#fff;background-color:#ff9800;border-color:#ff9800;box-shadow:0 2px 2px 0 rgba(255,152,0,.14),0 3px 1px -2px rgba(255,152,0,.2),0 1px 5px 0 rgba(255,152,0,.12)}.btn.btn-danger{color:#fff;background-color:#f44336;border-color:#f44336;box-shadow:0 2px 2px 0 rgba(244,67,54,.14),0 3px 1px -2px rgba(244,67,54,.2),0 1px 5px 0 rgba(244,67,54,.12)}.badge{padding:5px 12px;text-transform:uppercase;font-size:10px;color:#fff;display:inline-block;white-space:normal}.c-overflow-x-hidden{overflow-x:hidden}.c-overflow-y-hidden{overflow-y:hidden}"],changeDetection:c.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef},{type:w},{type:c.ElementRef},{type:o.DatePipe},{type:b},{type:v},{type:y},{type:x},{type:C}]},t.propDecorators={option:[{type:c.Input}],onImportExcel:[{type:c.Output}],onSaveRow:[{type:c.Output}],gridHeader:[{type:c.ViewChild,args:["gridHeader"]}],gridBody:[{type:c.ViewChild,args:["gridBody"]}],gridFixedBody:[{type:c.ViewChild,args:["gridFixedBody"]}],fixedGridContainer:[{type:c.ViewChild,args:["fixedGridContainer"]}],gridContainer:[{type:c.ViewChild,args:["gridContainer"]}],modal:[{type:c.ViewChild,args:["modal"]}],modalImportExcel:[{type:c.ViewChild,args:["modalImportExcel"]}]},t}(),k=function(){function t(t,e){this.ref=t,this.datePipe=e,this.type="datetime",this.size="sm",this.disabled=!1,this.required=!1,this.change=new c.EventEmitter,this.modelChange=new c.EventEmitter}return Object.defineProperty(t.prototype,"model",{set:function(e){var n=this;setTimeout(function(){if(e)if(e instanceof Date)"datetime"===n.type?n.date=n.datePipe.transform(e,"yyyy/MM/dd HH:mm"):"date"===n.type?n.date=n.datePipe.transform(e,"yyyy/MM/dd"):n.date=n.datePipe.transform(e,"HH:mm");else{var t=new Date(e);n.modelChange.emit(t)}else null!==e?n.modelChange.emit(null):n.date=null},0)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var e=this;$(this.control.nativeElement).datetimepicker({datepicker:"datetime"===this.type||"date"===this.type,timepicker:"datetime"===this.type||"time"===this.type,format:"datetime"===this.type?"Y/m/d H:i":"date"===this.type?"Y/m/d":"H:i",step:15,onChangeDateTime:function(t){e.modelChange.emit(t||null),e.change.emit(t||null),e.ref.detectChanges()}})},t.decorators=[{type:c.Component,args:[{selector:"date-picker-control",template:'<span *ngIf="label" class="label-swm">{{label}}\n <span class="text-danger" *ngIf="required">*</span>\n</span>\n<div class="input-group" [ngClass]="{\'input-group-sm\': size === \'sm\',\'input-group-xs\': size===\'xs\'}">\n <input #control class="form-control border-right-0" [ngModel]="date" [disabled]="disabled">\n <div class="input-group-append">\n <span class="input-group-text px-1 border-left-0" [ngStyle]="{\'background\':disabled?\'#E9ECEF\':\'#FFF\'}">\n <i class="fa" [ngClass]="{\'fa-clock-o\':type === \'time\', \'fa-calendar\':type !== \'time\'}"></i>\n </span>\n </div>\n</div>',styles:[".btn.btn-outline-secondary{border-color:#ced4da}input{font-size:.75rem!important}"]}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef},{type:o.DatePipe}]},t.propDecorators={type:[{type:c.Input}],size:[{type:c.Input}],disabled:[{type:c.Input}],required:[{type:c.Input}],label:[{type:c.Input}],change:[{type:c.Output}],model:[{type:c.Input}],modelChange:[{type:c.Output}],control:[{type:c.ViewChild,args:["control"]}]},t}(),I=function(){function t(t){this.ref=t,this.name=p.v4(),this.modelChange=new c.EventEmitter}return Object.defineProperty(t.prototype,"model",{set:function(t){this._model=t,this.ref.detectChanges()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.form&&this.form.addControl(this.formModel)},t.prototype.ngAfterViewInit=function(){},t.prototype.change=function(t){this._model=t,this.modelChange.emit(this._model)},t.decorators=[{type:c.Component,args:[{selector:"input-control",template:'<mat-form-field style="width:100%">\n <input #formModel="ngModel" [name]="name" matInput placeholder="{{label}}" [ngModel]="_model" (ngModelChange)="change($event)"\n [required]="required" [disabled]="disabled">\n <mat-error *ngIf="form && formModel.invalid && formModel.errors.required">\n This field is <strong>required</strong>\n </mat-error>\n</mat-form-field>',styles:[""]}]}],t.ctorParameters=function(){return[{type:c.ChangeDetectorRef}]},t.propDecorators={form:[{type:c.Input}],label:[{type:c.Input}],model:[{type:c.Input}],modelChange:[{type:c.Output}],required:[{type:c.Input}],maxlength:[{type:c.Input}],pattern:[{type:c.Input}],disabled:[{type:c.Input}],formModel:[{type:c.ViewChild,args:["formModel"]}]},t}(),S=function(){function t(){this.width="lg",this.isOpened=!1}return t.prototype.ngOnInit=function(){this.type=this.type||"primary"},t.prototype.ngOnDestroy=function(){n(this.modal.nativeElement).remove()},t.prototype.open=function(){this.isOpened=this.isOpened||!0,n(this.modal.nativeElement).modal("show")},t.prototype.close=function(){n(this.modal.nativeElement).modal("hide")},t.decorators=[{type:c.Component,args:[{selector:"modal-control",template:'<div class="modal" #modal>\n <div class="modal-dialog modal-dialog-centered" [ngClass]="{\'c-width-lg\':width==\'lg\',\'c-width-md\':width==\'md\',\'c-width-sm\':width==\'sm\'}">\n <div *ngIf="isOpened" class="modal-content">\n \x3c!-- Modal Header --\x3e\n <div class="modal-header {{type}}">\n <label class="modal-title">{{title}}</label>\n <button type="button" class="close" (click)="close()">&times;</button>\n </div>\n \x3c!-- Modal body & footer--\x3e\n <ng-content></ng-content>\n </div>\n </div>\n</div>',styles:[".modal-content{border-radius:.5rem}.modal-header{padding:.5rem;color:#4c6a84}.modal-header.primary{color:#fff;background-color:#428bca}.modal-header.info{color:#fff;background-color:#5bc0de}.modal-header.success{color:#fff;background-color:#5cb85c}.modal-header.warning{color:#fff;background-color:#f0ad4e}.modal-header.danger{color:#fff;background-color:#d9534f}.modal-header .modal-title{font-weight:500;text-transform:uppercase}.c-width-lg{max-width:80%!important}.c-width-md{max-width:60%!important}.c-width-sm{max-width:40%!important}"]}]}],t.propDecorators={title:[{type:c.Input}],type:[{type:c.Input}],width:[{type:c.Input}],modal:[{type:c.ViewChild,args:["modal"]}]},t}(),E=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:c.Component,args:[{selector:"modal-body",template:'<div class="modal-body"><ng-content></ng-content></div>'}]}],t.ctorParameters=function(){return[]},t}(),P=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:c.Component,args:[{selector:"modal-footer",template:'<div class="modal-footer" style="padding:.5rem"><ng-content></ng-content></div>'}]}],t.ctorParameters=function(){return[]},t}(),D=function(){function t(){this.name=p.v4(),this.modelChange=new c.EventEmitter,this.onChange=new c.EventEmitter}return Object.defineProperty(t.prototype,"model",{set:function(t){var e=this;setTimeout(function(){e._model=t||"",!e._model&&e.required&&0<e.items.length&&e.change(e.items[0][e.valueField])},0)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.form&&this.form.addControl(this.formModel)},t.prototype.ngAfterViewInit=function(){},t.prototype.change=function(t){this._model=t,this.modelChange.emit(this._model),this.onChange.emit(this._model)},t.decorators=[{type:c.Component,args:[{selector:"select-control",template:'<span *ngIf="label" class="label-swm">{{label}}\n <span class="text-danger" *ngIf="required">*</span>\n</span>\n<select #formModel="ngModel" class="form-control form-control-sm" [name]="name" [ngClass]="{\'is-invalid\':form && form.dirty && formModel.invalid}"\n [ngModel]="_model" (ngModelChange)="change($event)" [required]="required" [disabled]="disabled">\n <option *ngIf="!required" value="">Select One ...</option>\n <option *ngFor="let item of items" [value]="item[valueField]">{{item[displayField]}}</option>\n</select>\n<div class="invalid-feedback" *ngIf="form && formModel.invalid">\n <span *ngIf="formModel.errors.required">\n Required\n </span>\n</div>'}]}],t.ctorParameters=function(){return[]},t.propDecorators={items:[{type:c.Input}],valueField:[{type:c.Input}],displayField:[{type:c.Input}],form:[{type:c.Input}],label:[{type:c.Input}],model:[{type:c.Input}],modelChange:[{type:c.Output}],onChange:[{type:c.Output}],required:[{type:c.Input}],disabled:[{type:c.Input}],formModel:[{type:c.ViewChild,args:["formModel"]}]},t}(),M=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[d.MatTooltipModule,d.MatFormFieldModule,d.MatInputModule],exports:[d.MatTooltipModule,d.MatFormFieldModule,d.MatInputModule]}]}],t}(),F=function(){function t(){}return t.decorators=[{type:c.NgModule,args:[{imports:[o.CommonModule,u.FormsModule,e.HttpClientModule,M,m.OverlayModule],declarations:[I,O,D,S,k,C,E,P],providers:[o.DatePipe,b,x,w,y,C,v],exports:[I,D,k,O]}]}],t}();t.SuperdevAngularCoreModule=F,t.ApiService=b,t.ExcelService=y,t.LocalStorageService=v,t.NotifyService=x,t.UtilityService=w,t.TranslatePipe=C,t.GridControlComponent=O,t.DatePickerControl=k,t.InputControlComponent=I,t.ModalControl=S,t.ModalBodyComponent=E,t.ModalFooterComponent=P,t.SelectControl=D,t.ɵf=k,t.ɵc=O,t.ɵb=I,t.ɵh=E,t.ɵe=S,t.ɵi=P,t.ɵd=D,t.ɵa=M,t.ɵg=C,t.ɵj=b,t.ɵm=y,t.ɵn=v,t.ɵk=x,t.ɵl=w,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common/http"),require("uuid"),require("xlsx"),require("file-saver"),require("jquery"),require("sweetalert2"),require("@angular/common"),require("md5"),require("bootstrap"),require("@angular/material"),require("@angular/forms"),require("@angular/cdk/overlay")):"function"==typeof define&&define.amd?define("superdev-angular-core",["exports","@angular/core","@angular/common/http","uuid","xlsx","file-saver","jquery","sweetalert2","@angular/common","md5","bootstrap","@angular/material","@angular/forms","@angular/cdk/overlay"],e):e(t["superdev-angular-core"]={},t.ng.core,t.ng.common.http,null,null,null,null,null,t.ng.common,null,null,t.ng.material,t.ng.forms,t.ng.cdk.overlay)}(this,function(t,n,e,c,s,l,r,i,o,a,d,p,u,m){"use strict";var f="default"in c?c["default"]:c;function g(e,l,a,d){return new(a||(a=Promise))(function(t,n){function i(t){try{r(d.next(t))}catch(e){n(e)}}function o(t){try{r(d["throw"](t))}catch(e){n(e)}}function r(e){e.done?t(e.value):new a(function(t){t(e.value)}).then(i,o)}r((d=d.apply(e,l||[])).next())})}function h(i,o){var r,l,a,t,d={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function n(t){if(r)throw new TypeError("Generator is already executing.");for(;d;)try{if(r=1,l&&(a=2&t[0]?l["return"]:t[0]?l["throw"]||((a=l["return"])&&a.call(l),0):l.next)&&!(a=a.call(l,t[1])).done)return a;switch(l=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return d.label++,{value:t[1],done:!1};case 5:d.label++,l=t[1],t=[0];continue;case 7:t=d.ops.pop(),d.trys.pop();continue;default:if(!(a=0<(a=d.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){d=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){d.label=t[1];break}if(6===t[0]&&d.label<a[1]){d.label=a[1],a=t;break}if(a&&d.label<a[2]){d.label=a[2],d.ops.push(t);break}a[2]&&d.ops.pop(),d.trys.pop();continue}t=o.call(i,d)}catch(e){t=[6,e],l=0}finally{r=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}s=s&&s.hasOwnProperty("default")?s["default"]:s,r=r&&r.hasOwnProperty("default")?r["default"]:r,i=i&&i.hasOwnProperty("default")?i["default"]:i,a=a&&a.hasOwnProperty("default")?a["default"]:a;var b=function(){function t(t){this.httpClient=t}return t.prototype.post=function(t,i){var o=this;return new Promise(function(e,n){o.httpClient.post(t,i).toPromise().then(function(t){e(t)})["catch"](function(t){n(t)})})},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.HttpClient}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(e.HttpClient))},token:t,providedIn:"root"}),t}(),y=function(){function t(){this.importId=f.v4()}return t.prototype["import"]=function(){var t=this;return new Promise(function(d,o){r("#"+t.importId).length&&r("#"+t.importId).remove(),r("body").append('<input id="'+t.importId+'" style="display: none" type="file" />'),r("#"+t.importId).change(function(t){try{var e=t.target;if(1!==e.files.length)throw new Error("Cannot use multiple files");var n=new FileReader;n.onload=function(t){var e=t.target.result,n=s.read(e,{type:"binary"}),i=n.SheetNames[0],o=n.Sheets[i],r=s.utils.sheet_to_json(o,{header:1}),l=[],a=r[0];r.splice(0,1),r.forEach(function(n){var i={},o=!1;a.forEach(function(t,e){i[t]=n[e],n[e]!==undefined&&null!==n[e]&&n[e].toString()&&(o=!0)}),o&&l.push(i)}),d(l)},n.readAsBinaryString(e.files[0])}catch(i){o(i)}}),r("#"+t.importId).trigger("click")})},t.prototype["export"]=function(t){var e=s.utils.json_to_sheet(t.data,{cellDates:!0}),n=s.utils.book_new();s.utils.book_append_sheet(n,e,t.sheetName||"Default");var i=n.SheetNames[0];n.Sheets[i].A1.s={fill:{fgColor:{rgb:"86BC25"}}};var o=s.write(n,{bookType:"xlsx",type:"binary"}),r=t.fileName?t.fileName+this.current():f.v4()+".xlsx";l.saveAs(new Blob([this.s2ab(o)],{type:"application/octet-stream"}),r)},t.prototype.current=function(){var t=new Date;return t.getFullYear()+"/"+("0"+t.getDate()).slice(-2)+"/"+("0"+(t.getMonth()+1)).slice(-2)+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},t.prototype.s2ab=function(t){for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),i=0;i!=t.length;++i)n[i]=255&t.charCodeAt(i);return e},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),v=function(){function t(){}return t.prototype.set=function(t,e){t||console.error("[LocalStorageService] INVALID KEY"),localStorage.setItem(t,JSON.stringify({data:e}))},t.prototype.get=function(t){try{return localStorage.getItem(t)?JSON.parse(localStorage.getItem(t)).data:undefined}catch(e){return undefined}},t.prototype.hasKey=function(t){return!!localStorage.getItem(t)},t.prototype.remove=function(t){t&&localStorage.removeItem(t)},t.prototype.clear=function(){localStorage.clear()},t.decorators=[{type:n.Injectable}],t}(),x=function(){function t(){this.alert={warning:function(t){i({type:"warning",title:"Oops...",text:t||"Something went wrong!"})},error:function(t){i({type:"error",title:"Oops...",text:t||"Something went wrong!"})}},this.notify={success:function(t){i({position:"top-end",type:"success",title:t||"Success",showConfirmButton:!1,timer:1500})},warning:function(t){i({position:"top-end",type:"warning",title:t||"Warning",showConfirmButton:!1,timer:1500})},error:function(t){i({position:"top-end",type:"error",title:t||"Error",showConfirmButton:!1,timer:1500})}}}return t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t}(),w=function(){function t(t,e){var n=this;this.datePipe=t,this.notifyService=e,this.handle={error:function(t){if("string"==typeof t)n.notifyService.notify.warning(t);else if("object"==typeof t){var e=t.message||"UNKNOWN_ERROR";t.json&&"function"==typeof t.json&&(e=t.json().message||e,t.json().error&&(e=t.json().error.message||e)),n.notifyService.notify.warning(e)}else n.notifyService.notify.warning("UNKNOWN_ERROR")}}}return t.prototype.hashMD5=function(t){return a(t)},t.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:o.DatePipe},{type:x}]},t.ngInjectableDef=n.defineInjectable({factory:function(){return new t(n.inject(o.DatePipe),n.inject(x))},token:t,providedIn:"root"}),t}(),C=function(){function t(){}return t.prototype.transform=function(t){return t},t.decorators=[{type:n.Pipe,args:[{name:"translate"}]}],t}(),k=function(){function t(t,e,n,i,o,r,l,a,d){var s=this;this.ref=t,this.utilityService=e,this.elementRef=n,this.datePipe=i,this.apiService=o,this.localStorageService=r,this.excelService=l,this.notifyService=a,this.translatePipe=d,this.originalColumns=[],this.items=[],this.filter={},this.pageSize=20,this.currentPage=1,this.configModalId=c.v4(),this.columnConfigs=[],this.pages=[1],this.pageCount=5,this.totalPage=1,this.loadingId=c.v4(),this.isCheckedAll=!1,this.editable={validate:function(t){return"object"==typeof s.gridOption.editable&&s.gridOption.editable.validate?s.gridOption.editable.validate(t):undefined},create:function(){var e={};s.gridOption.columns.forEach(function(t){"values"===t.type&&0<t.values.length?e[t.field]=t.values[0].value:"number"===t.type&&(e[t.field]=0)}),"object"==typeof s.gridOption.editable&&s.gridOption.editable.onAdd&&s.gridOption.editable.onAdd(e),e.isNewInstant=!0,s.items.splice(0,0,e),s.editable.update(e)},update:function(t){t.temporary=Object.assign({},t),t.isEditing=!0},save:function(t){try{if("object"==typeof s.gridOption.editable){if(s.gridOption.editable.validate){var e=s.gridOption.editable.validate(t);if(e)throw e}s.gridOption.editable.onSave&&s.gridOption.editable.onSave(t)}t.isEditing=!1,t.isNewInstant=!1,t.isDirty=!0}catch(n){console.error(n),s.notifyService.notify.warning(n)}},cancel:function(t){t.isNewInstant?s.items.splice(0,1):(Object.assign(t,t.temporary),t.isEditing=!1)},disabled:function(t){return"object"==typeof s.gridOption.editable&&("function"==typeof s.gridOption.editable.disabled?s.gridOption.editable.disabled(t):s.gridOption.editable.disabled)},markAsDirty:function(t){t.isDirty=!0}},this.importedItems=[],this.selectedItem=null,this.rowHandler={click:function(t){s.selectedItem=t,s.gridOption.onClickRow&&(s.gridOption.component?s.gridOption.onClickRow.bind(s.gridOption.component)(t):s.gridOption.onClickRow(t))},dblClick:function(t){s.selectedItem=t,s.gridOption.onDblClickRow&&(s.gridOption.component?s.gridOption.onDblClickRow.bind(s.gridOption.component)(t):s.gridOption.onDblClickRow(t))}},this.commandHandler={icon:function(t,e){return"function"==typeof t.icon?t.icon(e):t.icon},title:function(t,e){return"function"==typeof t.title?s.translatePipe.transform(t.title(e)):s.translatePipe.transform(t.title)},disalbed:function(t,e){return!!t.disabled&&(t.disabled instanceof Function&&t.disabled(e))}},this.editorHandler={displayEditor:function(t,e){var n=!1;return t.editor&&(n="function"==typeof t.editor.disabled?t.editor.disabled(e):t.editor.disabled),!n&&("object"==typeof s.gridOption.editable&&(n="function"==typeof s.gridOption.editable.disabled?s.gridOption.editable.disabled(e):s.gridOption.editable.disabled),!n&&(e.isEditing||t.editor&&t.editor.alwayDisplay||s.gridOption.editable&&"object"==typeof s.gridOption.editable&&"inline"===s.gridOption.editable.type))},alwayDisplay:function(t,e){return t.editor&&t.editor.alwayDisplay},click:function(t,e){t.editor&&t.editor.click&&t.editor.click(e)},change:function(t,e){t.editor&&t.editor.change&&t.editor.change(e)},keyupEnter:function(t,e){t.editor&&t.editor.keyupEnter&&t.editor.keyupEnter(e)},disabled:function(t,e){return!!t.editor&&("function"==typeof t.editor.disabled?t.editor.disabled(e):t.editor.disabled)}},setInterval(function(){s.ref.markForCheck()},1e3)}return Object.defineProperty(t.prototype,"option",{set:function(t){this.detectChanges(),this.originalColumns=t.columns,this.gridOption=Object.assign({},t),this.loadConfig(),this.reload()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){},t.prototype.ngAfterViewInit=function(){this.resize()},t.prototype.startLoading=function(){r(this.elementRef.nativeElement).append('<div id="'+this.loadingId+'" style="top:0;left:0;height:100%;width:100%;position:absolute;opacity:0.6;background:#FFFFFF;"><i class="fa fa-circle-o-notch fa-spin fa-3x"></i></div>')},t.prototype.stopLoading=function(){r("#"+this.loadingId).remove()},t.prototype.reloadGridDefault=function(){return g(this,void 0,void 0,function(){var e;return h(this,function(t){switch(t.label){case 0:return"server"!==this.gridOption.type?[3,2]:[4,this.apiService.post(this.gridOption.url,this.filterDefault)];case 1:e=t.sent(),this.items=e.json()[this.gridOption.itemsField],this.total=e.json()[this.gridOption.totalField],t.label=2;case 2:return[2]}})})},t.prototype.reloadGridCustom=function(){return g(this,void 0,void 0,function(){var e;return h(this,function(t){switch(t.label){case 0:return[4,this.apiService.post(this.gridOption.url,this.filterCustom)];case 1:return e=t.sent(),this.items=e.json().res,this.total=e.json().total,[2]}})})},t.prototype.reloadGridLocal=function(i){return g(this,void 0,void 0,function(){var e,n;return h(this,function(t){switch(t.label){case 0:return"local"!==this.gridOption.type?[3,3]:this.gridOption.url?(e={},[4,this.apiService.post(this.gridOption.url,e)]):[3,2];case 1:return n=t.sent(),this.items=n.json(),this.total=this.items.length,[3,3];case 2:this.gridOption.items=i||this.gridOption.items,this.items=this.gridOption.items,this.total=this.items.length,t.label=3;case 3:return[2]}})})},t.prototype.reload=function(n){return g(this,void 0,void 0,function(){var e;return h(this,function(t){switch(t.label){case 0:this.startLoading(),t.label=1;case 1:return t.trys.push([1,8,,9]),"default"!==this.gridOption.type?[3,3]:[4,this.reloadGridDefault()];case 2:return t.sent(),[3,7];case 3:return"custom"!==this.gridOption.type?[3,5]:[4,this.reloadGridCustom()];case 4:return t.sent(),[3,7];case 5:return"local"!==this.gridOption.type?[3,7]:[4,this.reloadGridLocal(n)];case 6:t.sent(),t.label=7;case 7:return this.items.forEach(function(t){return t.originItem=Object.assign({},t)}),this.gridOption.onReloadCompleted&&this.gridOption.onReloadCompleted(this.items),this.generatePaginate(),this.stopLoading(),this.detectChanges(),[3,9];case 8:return e=t.sent(),this.utilityService.handle.error(e),this.stopLoading(),[3,9];case 9:return[2]}})})},t.prototype.detectChanges=function(){this.ref.detectChanges()},Object.defineProperty(t.prototype,"filterDefault",{get:function(){var i=this,t=(this.currentPage-1)*this.pageSize;t<0&&(t=0);var e=this.pageSize,o={};return this.gridOption.customFilter&&(this.gridOption.customFilter instanceof Object&&(o=r.extend(o,this.gridOption.customFilter)),this.gridOption.customFilter instanceof Function&&(o=r.extend(o,this.gridOption.customFilter()))),this.gridOption.columns.forEach(function(t){if(i.filter[t.field]){var e={};if("string"===t.type)e[t.field]={like:"%"+i.filter[t.field].trim()+"%"};else if("number"===t.type){var n=parseFloat(i.filter[t.field].trim().replace(">=","").replace("<=","").replace(">","").replace("<",""));-1<i.filter[t.field].indexOf(">=")?e[t.field]={gte:n}:-1<i.filter[t.field].indexOf("<=")?e[t.field]={lte:n}:-1<i.filter[t.field].indexOf(">")?e[t.field]={gt:n}:-1<i.filter[t.field].indexOf("<")?e[t.field]={lt:n}:e[t.field]=n}else"bool"===t.type&&("0"===i.filter[t.field]?e[t.field]=!1:"1"===i.filter[t.field]&&(e[t.field]=!0));Object.assign(o,e)}}),{where:o,skip:t,limit:e,order:this.orderBy?this.orderBy+" "+this.orderDirection:undefined}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterCustom",{get:function(){var r,l=this;return this.gridOption.customFilter?("string"==typeof this.gridOption.customFilter&&(r=this.gridOption.customFilter),this.gridOption.customFilter instanceof Function&&(r=this.gridOption.customFilter())):r="1>0",this.gridOption.columns.forEach(function(t){if(l.filter[t.field])if("string"===t.type)r+=" AND "+t.field+" LIKE '%"+l.filter[t.field].trim()+"%'";else if("number"===t.type){var e=parseFloat(l.filter[t.field].trim().replace(">=","").replace("<=","").replace(">","").replace("<",""));-1<l.filter[t.field].indexOf(">=")?r+=" AND "+t.field+" >= "+e:-1<l.filter[t.field].indexOf("<=")?r+=" AND "+t.field+" <= "+e:-1<l.filter[t.field].indexOf(">")?r+=" AND "+t.field+" > "+e:-1<l.filter[t.field].indexOf("<")?r+=" AND "+t.field+" < "+e:r+=" AND "+t.field+" = "+e}else if("bool"===t.type)l.filter[t.field]||"0"===l.filter[t.field]?r+=" AND "+t.field+" = false":(l.filter[t.field]||"1"===l.filter[t.field])&&(r+=" AND "+t.field+" = true");else if("date"===t.type||"datetime"===t.type){var n=new Date(l.filter[t.field]);n=new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0);var i=l.datePipe.transform(n,"yyyy-MM-dd HH:mm:ss");n.setDate(n.getDate()+1);var o=l.datePipe.transform(n,"yyyy-MM-dd HH:mm:ss");r+=" AND "+t.field+" >= '"+i+"' AND "+t.field+" < '"+o+"'"}else"values"===t.type&&""!==l.filter[t.field]&&(r+=" AND "+t.field+" = '"+l.filter[t.field].trim()+"'")}),this.gridOption.customParam?"function"==typeof this.gridOption.customParam?Object.assign(this.gridOption.customParam(),{whereClause:r,orderBy:this.orderBy,orderDirection:this.orderDirection,page:+this.currentPage||1,pageSize:+this.pageSize}):"object"==typeof this.gridOption.customParam?Object.assign(this.gridOption.customParam,{whereClause:r,orderBy:this.orderBy,orderDirection:this.orderDirection,page:+this.currentPage||1,pageSize:+this.pageSize}):void 0:{whereClause:r,orderBy:this.orderBy,orderDirection:this.orderDirection,page:+this.currentPage||1,pageSize:+this.pageSize}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewItems",{get:function(){var n=this;return this.currentPage=this.currentPage||1,"local"===this.gridOption.type?this.items.filter(function(t,e){return e>=(n.currentPage-1)*n.pageSize&&e<n.currentPage*n.pageSize}):this.items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editedItems",{get:function(){return this.items.filter(function(e){return!!e.isDirty||!(!e.originItem||!Object.keys(e.originItem).some(function(t){return e.originItem[t]!==e[t]}))})},enumerable:!0,configurable:!0}),t.prototype.selectPage=function(t){var e=+t;this.currentPage!==e&&0<e&&e<=this.totalPage&&(this.currentPage=e,this.reload())},t.prototype.generatePaginate=function(){if("local"===this.gridOption.type&&(this.total=this.items.length),this.pages=[],this.totalPage=Math.trunc(this.total/this.pageSize)+(this.total%this.pageSize==0?0:1),this.currentPage>this.totalPage&&(this.currentPage=this.totalPage),this.totalPage<=this.pageCount)for(var t=1;t<=this.totalPage;t++)this.pages.push(t);else this.currentPage<3?this.pages=[1,2,3,4,5]:this.currentPage>this.totalPage-2?this.pages=[this.totalPage-4,this.totalPage-3,this.totalPage-2,this.totalPage-1,this.totalPage]:this.pages=[this.currentPage-2,this.currentPage-1,this.currentPage,this.currentPage+1,this.currentPage+2]},Object.defineProperty(t.prototype,"sumarize",{get:function(){if(this.items&&0<this.items.length){var t=+this.pageSize*(+this.currentPage-1)+1;return t+" - "+(t+this.viewItems.length-1)+" / "+this.total}},enumerable:!0,configurable:!0}),t.prototype.getItems=function(){return this.items},Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.items.filter(function(t){return t.isChecked})},enumerable:!0,configurable:!0}),t.prototype.check=function(t){this.isCheckedAll=this.items.length===this.items.filter(function(t){return t.isChecked}).length,this.gridOption.onCheck&&this.gridOption.onCheck(this.items.filter(function(t){return t.isChecked}),t)},t.prototype.checkAll=function(t){var e=this;this.isCheckedAll=t,this.items.forEach(function(t){return t.isChecked=e.isCheckedAll}),this.gridOption.onCheck&&this.gridOption.onCheck(this.items.filter(function(t){return t.isChecked}))},t.prototype.sort=function(t){this.orderBy===t?this.orderDirection="ASC"===this.orderDirection?"DESC":"ASC":(this.orderBy=t,this.orderDirection="ASC"),this.reload()},t.prototype.resize=function(){var e=this;this.detectChanges();var t=this;this.gridOption.height?(r(this.gridBody.nativeElement).height(this.gridOption.height),r(this.gridFixedBody.nativeElement).height(this.gridOption.height)):(r(this.gridBody.nativeElement).height("calc(100vh - 100px)"),r(this.gridFixedBody.nativeElement).height("calc(100vh - 100px)"),setTimeout(function(){var t=r(e.gridBody.nativeElement).offset().top;r(e.gridBody.nativeElement).height("calc(100vh - "+(t+55)+"px)"),r(e.gridFixedBody.nativeElement).height("calc(100vh - "+(t+55)+"px)")},200)),this.resizeWidth(),r(this.gridBody.nativeElement).scroll(function(){r(t.gridHeader.nativeElement).scrollLeft(this.scrollLeft),r(t.gridFixedBody.nativeElement).scrollTop(this.scrollTop)})},t.prototype.setHeight=function(t){r(this.gridBody.nativeElement).height(t),r(this.gridFixedBody.nativeElement).height(t)},t.prototype.resizeWidth=function(){var t=5;this.gridOption.checkable&&(t+=52),this.gridOption.editable&&(t+=62),this.gridOption.commands&&(t+=28*this.gridOption.commands.length+2+2),r(this.fixedGridContainer.nativeElement).css("width",t+"px"),r(this.gridContainer.nativeElement).css("width","calc(100% - "+t+"px)"),console.log("calc(100% - "+t+"px)")},t.prototype.importExcel=function(){var i=this;this.excelService["import"]().then(function(t){i.importedItems=t.map(function(e){var n={};return i.gridOption.columns.forEach(function(t){n[t.field]=e[t.title],"number"===t.type?n[t.field]=n[t.field]||0:"bool"===t.type?(n[t.field]=n[t.field]||"false",1===n[t.field]&&"1"===n[t.field]||"default"===n[t.field].toString().toLowerCase()||"Active"===n[t.field].toString().toLowerCase()||"true"===n[t.field].toString().toLowerCase()?n[t.field]=!0:n[t.field]=!1):"string"===t.type&&(n[t.field]=n[t.field]||"")}),n}),i.modalImportExcel.open()})},t.prototype.saveImportedExcel=function(){this.gridOption.onImportExcel&&this.gridOption.onImportExcel(this.importedItems)},t.prototype.exportExcel=function(){return g(this,void 0,void 0,function(){var e,n,i,r=this;return h(this,function(t){switch(t.label){case 0:return e=[],"default"!==this.gridOption.type?[3,2]:((n=this.filterDefault).skip=0,n.limit=1e5,[4,this.apiService.post(this.gridOption.url,n)]);case 1:return e=t.sent().json().res,[3,6];case 2:return"custom"!==this.gridOption.type?[3,5]:((n=this.filterCustom).page=1,n.pageSize=1e4,[4,this.apiService.post(this.gridOption.url,n)]);case 3:return[4,t.sent().json().res];case 4:return e=t.sent(),[3,6];case 5:e=this.items,t.label=6;case 6:return 0===e.length&&(e=[{}]),i=e.map(function(i){var o={};return r.gridOption.columns.forEach(function(e){if(i[e.field]===undefined||null===i[e.field]||""===i[e.field])o[e.title]="";else if("string"===e.type||"number"===e.type)o[e.title]=i[e.field];else if("bool"===e.type)i[e.field]?o[e.title]=e.trueValue||"TRUE":o[e.title]=e.falseValue||"FALSE";else if("date"===e.type){var t=new Date(i[e.field]);o[e.title]=r.datePipe.transform(t,"dd/MM/yyyy")}else if("datetime"===e.type){t=new Date(i[e.field]);o[e.title]=r.datePipe.transform(t,"dd/MM/yyyy HH:mm")}else if("time"===e.type){t=new Date(i[e.field]);o[e.title]=r.datePipe.transform(t,"HH:mm")}else if("values"===e.type){var n=e.values.find(function(t){return t.value==i[e.field]});o[e.title]=n?n.text:""}}),o}),this.excelService["export"]({data:i}),[2]}})})},t.prototype.loadConfig=function(){var n=this;if(this.gridOption.columns=[],this.gridOption.key){var t=this.gridOption.key;if(this.localStorageService.get(t)){var e=this.localStorageService.get(t);e.forEach(function(e){var t=n.originalColumns.find(function(t){return t.field===e.originColumn.field});e.originColumn=t||e.originColumn}),this.localStorageService.set(t,e)}else{var i=[];this.originalColumns.forEach(function(t,e){i.push({originColumn:Object.assign({},t),order:e,isHidden:!1})}),this.localStorageService.set(t,i)}this.columnConfigs=this.localStorageService.get(t),this.columnConfigs.forEach(function(e){var t=n.originalColumns.find(function(t){return t.field===e.originColumn.field});t=t||e.originColumn,e.isHidden||(n.filter[t.field]="",t.title=e.title||n.translatePipe.transform(t.title),t.width=e.width||t.width,n.gridOption.columns.push(t))})}else this.gridOption.columns=Object.assign([],this.originalColumns);this.gridOption.columns.forEach(function(t){if("values"===t.type){var e={};t.values&&t.values.forEach(function(t){e[t.value]={text:t.text,icon:t.icon,color:t.color,backgroundColor:t.backgroundColor}}),t.dictionary=e}})},t.prototype.resetConfig=function(){var t=this.gridOption.key;this.localStorageService.remove(t),this.loadConfig(),this.modal.close()},t.prototype.saveModalConfig=function(){var t=this.gridOption.key;this.localStorageService.set(t,this.columnConfigs),this.loadConfig(),this.reload(),this.modal.close()},t.prototype.openModalConfig=function(){this.modal.open()},t.prototype.moveColumnUp=function(t){var e=this.columnConfigs[t];this.columnConfigs[t]=this.columnConfigs[t-1],this.columnConfigs[t-1]=e},t.prototype.moveColumnDown=function(t){var e=this.columnConfigs[t];this.columnConfigs[t]=this.columnConfigs[t+1],this.columnConfigs[t+1]=e},t.decorators=[{type:n.Component,args:[{selector:"grid-control",template:'<div class="clearfix"></div>\n<div *ngIf="gridOption" class="box box-primary">\n <div class="box-body p-0">\n <div class="row mr-0 ml-0">\n <div #fixedGridContainer>\n <div class="table-responsive c-overflow-x-hidden" #gridFixedHeader>\n <table class="table table-bordered mb-0">\n <thead class="thead-light">\n <tr>\n <th style="width:1px;min-width: 1px;"></th>\n <th *ngIf="gridOption.checkable" class="align-middle text-center" style="width:50px;min-width: 50px;">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="isCheckedAll" (change)="checkAll(isCheckedAll)">\n <span class="custom-control-label"></span>\n </label>\n </th>\n <th *ngIf="gridOption.editable" class="align-middle text-center" style="width:60px;min-width: 60px;">\n <button type="button" *ngIf="gridOption.addable" type="button" class="btn-icon" (click)="editable.create()">\n <i class="fa fa-plus"></i>\n </button>\n </th>\n <th *ngIf="gridOption.commands && gridOption.commands.length" class="align-middle text-center" [ngStyle]="{\'width\': gridOption.commands.length*28 + 2 + \'px\',\'min-width\': gridOption.commands.length*28 + 2 + \'px\'}">\n </th>\n </tr>\n </thead>\n </table>\n </div>\n <div class="table-responsive c-overflow-x-hidden c-overflow-y-hidden" #gridFixedBody>\n <table class="table table-hover table-striped table-bordered">\n <tbody>\n <tr [ngClass]="{\'selected-row\':selectedItem === item}" *ngFor="let item of viewItems">\n <td [ngClass]="{\'table-danger\': gridOption.editable && editable.validate(item), \'table-success\': gridOption.editable && !editable.validate(item)}"\n style="width:1px;min-width: 1px;" [matTooltip]="editable.validate(item)" matTooltipPosition="after"></td>\n <td class="align-middle text-center" *ngIf="gridOption.checkable" style="width:50px;min-width: 50px;">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="item.isChecked" (change)="check(item)">\n <span class="custom-control-label"></span>\n </label>\n </td>\n <td *ngIf="gridOption.editable" class="align-middle text-center" style="width:60px;min-width: 60px;">\n <div>\n \x3c!-- <div *ngIf="gridOption.editable.type !== \'inline\'"> --\x3e\n <button type="button" *ngIf="!item.isEditing" type="button" class="btn-icon" placement="top" matTooltip="Edit" (click)="editable.update(item)"\n [disabled]="editable.disabled(item)">\n <i class="fa fa-pencil text-primary" aria-hidden="true"></i>\n </button>\n <button type="button" *ngIf="item.isEditing" type="button" class="btn-icon" placement="top" matTooltip="Save" (click)="editable.save(item)"\n [disabled]="editable.disabled(item)">\n <i class="fa fa-floppy-o text-success" aria-hidden="true"></i>\n </button>\n <button type="button" *ngIf="item.isEditing" type="button" class="btn-icon" placement="top" matTooltip="Cancel"(click)="editable.cancel(item)"\n [disabled]="editable.disabled(item)">\n <i class="fa fa-times text-danger" aria-hidden="true"></i>\n </button>\n </div>\n </td>\n <td *ngIf="gridOption.commands && gridOption.commands.length" class="align-middle text-center" [ngStyle]="{\'width\': gridOption.commands.length*28 + 2 + \'px\',\'min-width\': gridOption.commands.length*28 + 2 + \'px\'}">\n <button type="button" *ngFor="let command of gridOption.commands" type="button" class="btn-icon" matTooltip="{{commandHandler.title(command,item)}}"\n (click)="selectedItem=item;command.click(item)" [disabled]="commandHandler.disalbed(command,item)">\n <i class="{{commandHandler.icon(command,item)}}" aria-hidden="true"></i>\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <div #gridContainer>\n <div class="table-responsive grid-header" #gridHeader>\n <table class="table table-bordered mb-0">\n <thead class="thead-light">\n <tr>\n <th *ngFor="let column of gridOption.columns" [ngClass]="{\'d-none\':column.hidden && column.hidden()}" [ngStyle]="{\'width\':column.width ? column.width : \'\',\'min-width\':column.width ? column.width : \'300px\'}">\n <span class="cursor-pointer" (click)="sort(column.field)" [ngStyle]="{\'width\':column.width ? column.width : \'\'}">\n {{column.title}}\n <i *ngIf="orderBy == column.field && orderDirection == \'ASC\'" class="fa fa-angle-up"></i>\n <i *ngIf="orderBy == column.field && orderDirection == \'DESC\'" class="fa fa-angle-down"></i>\n </span>\n <input *ngIf="column.type === \'string\' || column.type === \'number\'" type="text" class="form-control form-control-xs" [(ngModel)]="filter[column.field]"\n (keyup.enter)="reload()">\n <select *ngIf="column.type === \'bool\'" class="form-control form-control-xs" [(ngModel)]="filter[column.field]" (change)="reload()">\n <option value="">All</option>\n <option value="1">{{column.trueValue || \'TRUE\'}}</option>\n <option value="0">{{column.falseValue || \'FALSE\'}}</option>\n </select>\n <select class="form-control form-control-xs" *ngIf="column.type == \'values\'" [(ngModel)]="filter[column.field]" (change)="reload()">\n <option value="">All</option>\n <option *ngFor="let data of column.values" [value]="data.value">{{data.text}}</option>\n </select>\n <date-picker-control *ngIf="column.type === \'date\' || column.type === \'datetime\' || column.type === \'time\'" [(model)]="filter[column.field]"\n (change)="reload()" [type]="\'date\'" [size]="\'xs\'"></date-picker-control>\n </th>\n </tr>\n </thead>\n </table>\n </div>\n <div class="table-responsive" #gridBody>\n <table class="table table-hover table-striped table-bordered">\n <tbody>\n <tr [ngClass]="{\'selected-row\':selectedItem === item}" *ngFor="let item of viewItems">\n <td *ngFor="let column of gridOption.columns" class="align-middle" [ngClass]="{\'d-none\':column.hidden && column.hidden()}"\n (click)="rowHandler.click(item)" (dblclick)="rowHandler.dblClick(item)" [ngStyle]="{\'width\':column.width ? column.width : \'\', \'min-width\':column.width ? column.width : \'300px\'}">\n <div *ngIf="column.type === \'string\'">\n <div *ngIf="editorHandler.displayEditor(column, item)" class="input-group input-group-xs">\n <input class="form-control" [ngClass]="{\'border-right-0\':column.editor && column.editor.click}" [(ngModel)]="item[column.field]"\n [disabled]="editorHandler.disabled(column, item)" (keyup.enter)="editorHandler.keyupEnter(column, item)"\n (change)="editable.markAsDirty(item);editorHandler.change(column, item)">\n <div class="input-group-append cursor-pointer" *ngIf="column.editor && column.editor.click">\n <span class="input-group-text pr-1 pl-0" [ngStyle]="{\'background\':editorHandler.disabled(column, item)?\'#E9ECEF\':\'#FFF\'}"\n (click)="editorHandler.click(column, item)">\n <i class="fa fa-search"></i>\n </span>\n </div>\n </div>\n <div class="c-ellipsis" [ngStyle]="{\'width\':column.width ? column.width : \'\', \'min-width\':column.width ? column.width : \'300px\'}"\n *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field]}}\n </div>\n </div>\n <div *ngIf="column.type === \'number\'">\n <input *ngIf="editorHandler.displayEditor(column, item)" type="number" class="form-control form-control-xs" [(ngModel)]="item[column.field]"\n [disabled]="editorHandler.disabled(column, item)" (keyup.Enter)="editorHandler.keyupEnter(column, item)"\n (change)="editable.markAsDirty(item);editorHandler.change(column, item)">\n <div *ngIf="!editorHandler.displayEditor(column, item)" class="pull-right">\n {{item[column.field] | number : \'1.2-2\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'date\'">\n <date-picker-control *ngIf="editorHandler.displayEditor(column, item)" [(model)]="item[column.field]" [type]="\'date\'"\n [size]="\'xs\'" [disabled]="editorHandler.disabled(column, item)"></date-picker-control>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field] | date:\'dd/MM/yyyy\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'datetime\'">\n <date-picker-control *ngIf="editorHandler.displayEditor(column, item)" [(model)]="item[column.field]" [type]="\'datetime\'"\n [size]="\'xs\'" [disabled]="editorHandler.disabled(column, item)"></date-picker-control>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field] | date:\'dd/MM/yyyy HH:mm\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'time\'">\n <date-picker-control *ngIf="editorHandler.displayEditor(column, item)" [(model)]="item[column.field]" [type]="\'time\'"\n [size]="\'xs\'" [disabled]="editorHandler.disabled(column, item)"></date-picker-control>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n {{item[column.field] | date:\'HH:mm\'}}\n </div>\n </div>\n <div *ngIf="column.type === \'bool\'">\n <div *ngIf="editorHandler.displayEditor(column, item)">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="item[column.field]" (change)="editable.markAsDirty(item)">\n <span class="custom-control-label"></span>\n </label>\n </div>\n <div *ngIf="!editorHandler.displayEditor(column, item)">\n <span *ngIf="item[column.field]" class="status status-success">{{column.trueValue || item[column.field]}}</span>\n <span *ngIf="!item[column.field]" class="status status-danger">{{column.falseValue || item[column.field]}}</span>\n </div>\n </div>\n <div *ngIf="column.type == \'values\'">\n <div *ngIf="editorHandler.displayEditor(column, item)">\n <select class="form-control form-control-xs" [disabled]="editorHandler.disabled(column, item)" [(ngModel)]="item[column.field]"\n (change)="editable.markAsDirty(item);">\n <option *ngFor="let data of column.values" [value]="data.value">{{data.text}}</option>\n </select>\n </div>\n <div class="status c-ellipsis" *ngIf="!editorHandler.displayEditor(column, item) && column.dictionary[item[column.field]]"\n [ngStyle]="{\'color\':column.dictionary[item[column.field]].color,\'width\':column.width ? column.width : \'\', \'min-width\':column.width ? column.width : \'300px\'}">\n {{column.dictionary[item[column.field]].text}}\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n <div class="box-footer clearfix">\n <button type="button" *ngIf="gridOption.key" class="btn btn-primary btn-sm" matTooltip="Configure" (click)="openModalConfig()">\n <i class="fa fa-cogs fa-fw"></i>\n </button>\n <button type="button" class="btn btn-info btn-sm" matTooltip="Refresh" (click)="reload()">\n <i class="fa fa fa-refresh fa-fw"></i>\n </button>\n <button type="button" *ngIf="gridOption.onImportExcel" class="btn btn-success btn-sm" matTooltip="Import Excel" (click)="importExcel()">\n <i class="fa fa-upload fa-fw"></i>\n </button>\n <button type="button" class="btn btn-success btn-sm" matTooltip="Export Excel" (click)="exportExcel()">\n <i class="fa fa-download fa-fw"></i>\n </button>\n <div class="row mr-0 ml-0 text-right pull-right">\n <span class="sumarize">{{sumarize}}</span>\n <ul class="pagination pagination-info m-0">\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === 1}" placement="top" matTooltip="First" (click)="selectPage(1)">\n <a class="page-link">\n <i class="fa fa-angle-double-left"></i>\n </a>\n </li>\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === 1}" placement="top" matTooltip="Previous" (click)="selectPage(currentPage-1)">\n <a class="page-link">\n <i class="fa fa-angle-left"></i>\n </a>\n </li>\n <li class="page-item" [ngClass]="{\'active\':page === currentPage}" *ngFor="let page of pages" (click)="selectPage(page)">\n <a class="page-link">{{page}}</a>\n </li>\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === totalPage}" placement="top" matTooltip="Next" (click)="selectPage(currentPage+1)">\n <a class="page-link">\n <i class="fa fa-angle-right"></i>\n </a>\n </li>\n <li class="page-item" [ngClass]="{\'disabled\':currentPage === totalPage}" placement="top" matTooltip="Last" (click)="selectPage(totalPage)">\n <a class="page-link">\n <i class="fa fa-angle-double-right"></i>\n </a>\n </li>\n </ul>\n </div>\n </div>\n</div>\n\x3c!-- Modal Configure Grid --\x3e\n<modal-control *ngIf="gridOption" [title]="\'Config Grid\'" #modal>\n <modal-body>\n <div class="mb-2">\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 20}" (click)="pageSize = 20">20</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 50}" (click)="pageSize = 50">50</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 200}" (click)="pageSize = 200">200</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 500}" (click)="pageSize = 500">500</button>\n <button type="button" class="btn btn-xs" [ngClass]="{\'btn-info\': pageSize == 1000}" (click)="pageSize = 1000">1000</button>\n </div>\n <div class="table-responsive" style="height: calc(100vh - 15rem)">\n <table class="table table-hover table-bordered">\n <colgroup>\n <col style="width:50px">\n <col style="width:80px">\n <col style="width:100px">\n <col>\n <col style="width:100px">\n <col style="width:100px">\n </colgroup>\n <thead>\n <tr>\n <th class="align-bottom table-small"></th>\n <th class="align-bottom table-small"></th>\n <th>Field\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n <th>Title\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n <th>Width\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n <th>Hidden\n <input type="text" class="form-control search-table form-control-sm my-1">\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let column of columnConfigs; let idx = index">\n <td class="align-middle text-center">\n {{idx+1}}\n </td>\n <td class="align-middle text-center">\n <button type="button" [disabled]="idx==0" type="button" class="btn-icon" placement="top" matTooltip="Up" (click)="moveColumnUp(idx)">\n <i class="fa fa-arrow-up text-primary" aria-hidden="true"></i>\n </button>\n <button type="button" [disabled]="idx==columnConfigs.length-1" type="button" class="btn-icon" placement="top" matTooltip="Down"\n (click)="moveColumnDown(idx)">\n <i class="fa fa-arrow-down text-primary" aria-hidden="true"></i>\n </button>\n </td>\n <td class="align-middle">{{column.originColumn.field}}</td>\n <td class="align-middle">\n <input type="text" placeholder="{{column.originColumn.title}}" [(ngModel)]="column.title" class="form-control form-control-sm my-1">\n </td>\n <td class="align-middle">\n <input type="text" placeholder="{{column.originColumn.width}}" [(ngModel)]="column.width" class="form-control form-control-sm my-1">\n </td>\n <td class="align-middle text-center">\n <label class="custom-control custom-checkbox">\n <input type="checkbox" class="custom-control-input" [(ngModel)]="column.isHidden">\n <span class="custom-control-label"></span>\n </label>\n </td>\n </tr>\n </table>\n </div>\n </modal-body>\n <modal-footer>\n <button type="button" class="btn btn-info btn-sm mr-auto" (click)="resetConfig()">\n <i class="fa fa-refresh"></i> Reset</button>\n <button type="button" class="btn btn-secondary btn-sm" (click)="modal.close()">\n <i class="fa fa-times"></i> Close</button>\n <button type="button" class="btn btn-primary btn-sm" (click)="saveModalConfig()">\n <i class="fa fa-floppy-o"></i> Save</button>\n </modal-footer>\n</modal-control>\n\n\x3c!-- Modal Impor Excel --\x3e\n<modal-control *ngIf="gridOption" [title]="\'Import Excel Preview\'" #modalImportExcel>\n <modal-body>\n <div class="table-responsive" style="height: calc(100vh - 250px)">\n <table class="table table-hover">\n <colgroup>\n <col style="width:50px">\n <col *ngFor="let column of gridOption.columns" [ngStyle]="{\'width\':column.width ? column.width : \'\' }">\n </colgroup>\n <thead>\n <tr>\n <th rowspan="1" class="align-middle text-center">\n STT\n </th>\n <th rowspan="1" *ngFor="let column of gridOption.columns" [ngStyle]="{\'min-width\':column.width ? column.width : \'100px\'}">\n {{column.title}}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let item of importedItems; let idx = index">\n <td class="align-middle text-center">{{idx+1}}</td>\n <td *ngFor="let column of gridOption.columns" class="align-middle">\n {{item[column.field]}}\n </td>\n </tr>\n </table>\n </div>\n </modal-body>\n <modal-footer>\n <button type="button" class="btn btn-secondary btn-sm" (click)="modalImportExcel.close()">\n <i class="fa fa-times"></i> Close</button>\n <button type="button" class="btn btn-primary btn-sm" (click)="saveImportedExcel()">\n <i class="fa fa-floppy-o"></i> Save</button>\n </modal-footer>\n</modal-control>',styles:[".form-control-xs,.input-group-xs>.form-control,.input-group-xs>.input-group-append>.input-group-text{padding:.15rem .2rem;font-size:.75rem;line-height:1.5;border-radius:.2rem;height:calc(1.45rem + 2px)}select.form-control-xs:not([size]):not([multiple]){height:calc(1.45rem + 2px)}.btn-xs{padding:.2rem .5rem;font-size:.7rem;line-height:1.15}.text-superdev{color:#006b8b!important}.bg-superdev{color:#fff!important;background-color:#006b8b!important}.btn-superdev,.btn-superdev:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev:disabled{color:#fff;background-color:#006b8b;border-color:#006b8b;opacity:.6;cursor:not-allowed}.btn-superdev-swm{color:#006b8b;background-color:#fff;border-color:#006b8b}.btn-superdev-swm:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev-swm:disabled{color:#006b8b;background-color:#fff;cursor:not-allowed}.box{position:relative;border-radius:3px;background:#fff;border-top:3px solid #d2d6de;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.1)}.box.box-primary{border-top-color:#3c8dbc}.box.box-success{border-top-color:#00a65a}.box.box-warning{border-top-color:#f39c12}.box.box-danger{border-top-color:#dd4b39}.box-header{color:#444;display:block;padding:.5rem;position:relative;border-bottom:1px solid #f4f4f4}.box-header .box-title{display:inline-block;font-size:1.2rem;margin:0;line-height:1}.box-body{padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}.box-footer{border-top:1px solid #f4f4f4;padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}",".btn-icon{background:0 0!important;border:none;opacity:.8}.btn-icon:hover{cursor:pointer;opacity:1}.btn-icon:disabled{background:0 0!important;border:none;cursor:not-allowed;opacity:.3}.grid-header{overflow-x:hidden;overflow-y:hidden}td,th{line-height:1.15;padding:.3rem .2rem!important;font-size:.8rem;min-width:0}tbody td .c-ellipsis,thead th>span{white-space:nowrap;overflow:hidden!important;text-overflow:ellipsis;display:block;margin:0 -.3rem;padding:0 .3rem}thead th{min-height:49px;height:49px}tbody td{min-height:35px;height:35px}.status{font-weight:500;padding:2px 5px;border-radius:1.5rem;color:#16759b;cursor:pointer;display:block;text-align:center}.status-success{color:#43a047}.status-danger{color:#f44336}.page-item{cursor:pointer}.sumarize{padding:.5rem .75rem;text-transform:uppercase;font-size:.7rem;color:#fff;display:inline-block;white-space:normal;font-weight:500;line-height:1;text-align:center;border-radius:10rem;background-color:#00bcd4}.cursor-pointer{cursor:pointer}label.custom-control.custom-checkbox{margin:0}.selected-row{background-color:#90caf9!important}.pagination>li>a{border:0;border-radius:1.5rem!important;transition:.3s;padding:0 .5rem;margin:0 .2rem;min-width:1rem;height:1.5rem;line-height:1.5rem;color:#999;font-weight:400;font-size:.7rem;text-transform:uppercase;background:0 0}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{background-color:#9c27b0;border-color:#9c27b0;color:#fff;box-shadow:0 4px 5px 0 rgba(156,39,176,.14),0 1px 10px 0 rgba(156,39,176,.12),0 2px 4px -1px rgba(156,39,176,.2)}.pagination.pagination-info>.active>a,.pagination.pagination-info>.active>a:focus,.pagination.pagination-info>.active>a:hover,.pagination.pagination-info>.active>span,.pagination.pagination-info>.active>span:focus,.pagination.pagination-info>.active>span:hover{background-color:#00bcd4;border-color:#00bcd4;box-shadow:0 4px 5px 0 rgba(0,188,212,.14),0 1px 10px 0 rgba(0,188,212,.12),0 2px 4px -1px rgba(0,188,212,.2)}.btn{color:#fff;background-color:#999;border-color:#999;box-shadow:0 2px 2px 0 rgba(153,153,153,.14),0 3px 1px -2px rgba(153,153,153,.2),0 1px 5px 0 rgba(153,153,153,.12)}.btn:hover{color:#fff;background-color:#919191;border-color:#7a7a7a}.btn.btn-sm{font-size:.6875rem}.btn.btn-primary{color:#fff;background-color:#9c27b0;border-color:#9c27b0;box-shadow:0 2px 2px 0 rgba(156,39,176,.14),0 3px 1px -2px rgba(156,39,176,.2),0 1px 5px 0 rgba(156,39,176,.12)}.btn.btn-info{color:#fff;background-color:#00bcd4;border-color:#00bcd4;box-shadow:0 2px 2px 0 rgba(0,188,212,.14),0 3px 1px -2px rgba(0,188,212,.2),0 1px 5px 0 rgba(0,188,212,.12)}.btn.btn-success{color:#fff;background-color:#4caf50;border-color:#4caf50;box-shadow:0 2px 2px 0 rgba(76,175,80,.14),0 3px 1px -2px rgba(76,175,80,.2),0 1px 5px 0 rgba(76,175,80,.12)}.btn.btn-warning{color:#fff;background-color:#ff9800;border-color:#ff9800;box-shadow:0 2px 2px 0 rgba(255,152,0,.14),0 3px 1px -2px rgba(255,152,0,.2),0 1px 5px 0 rgba(255,152,0,.12)}.btn.btn-danger{color:#fff;background-color:#f44336;border-color:#f44336;box-shadow:0 2px 2px 0 rgba(244,67,54,.14),0 3px 1px -2px rgba(244,67,54,.2),0 1px 5px 0 rgba(244,67,54,.12)}.badge{padding:5px 12px;text-transform:uppercase;font-size:10px;color:#fff;display:inline-block;white-space:normal}.c-overflow-x-hidden{overflow-x:hidden}.c-overflow-y-hidden{overflow-y:hidden}"],changeDetection:n.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef},{type:w},{type:n.ElementRef},{type:o.DatePipe},{type:b},{type:v},{type:y},{type:x},{type:C}]},t.propDecorators={option:[{type:n.Input}],gridHeader:[{type:n.ViewChild,args:["gridHeader"]}],gridBody:[{type:n.ViewChild,args:["gridBody"]}],gridFixedBody:[{type:n.ViewChild,args:["gridFixedBody"]}],fixedGridContainer:[{type:n.ViewChild,args:["fixedGridContainer"]}],gridContainer:[{type:n.ViewChild,args:["gridContainer"]}],modal:[{type:n.ViewChild,args:["modal"]}],modalImportExcel:[{type:n.ViewChild,args:["modalImportExcel"]}]},t}(),O=function(){function t(t,e){this.ref=t,this.datePipe=e,this.type="datetime",this.size="sm",this.disabled=!1,this.required=!1,this.change=new n.EventEmitter,this.modelChange=new n.EventEmitter}return Object.defineProperty(t.prototype,"model",{set:function(e){var n=this;setTimeout(function(){if(e)if(e instanceof Date)"datetime"===n.type?n.date=n.datePipe.transform(e,"yyyy/MM/dd HH:mm"):"date"===n.type?n.date=n.datePipe.transform(e,"yyyy/MM/dd"):n.date=n.datePipe.transform(e,"HH:mm");else{var t=new Date(e);n.modelChange.emit(t)}else null!==e?n.modelChange.emit(null):n.date=null},0)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){var e=this;$(this.control.nativeElement).datetimepicker({datepicker:"datetime"===this.type||"date"===this.type,timepicker:"datetime"===this.type||"time"===this.type,format:"datetime"===this.type?"Y/m/d H:i":"date"===this.type?"Y/m/d":"H:i",step:15,onChangeDateTime:function(t){e.modelChange.emit(t||null),e.change.emit(t||null),e.ref.detectChanges()}})},t.decorators=[{type:n.Component,args:[{selector:"date-picker-control",template:'<span *ngIf="label" class="label-swm">{{label}}\n <span class="text-danger" *ngIf="required">*</span>\n</span>\n<div class="input-group" [ngClass]="{\'input-group-sm\': size === \'sm\',\'input-group-xs\': size===\'xs\'}">\n <input #control class="form-control border-right-0" [ngModel]="date" [disabled]="disabled">\n <div class="input-group-append">\n <span class="input-group-text px-1 border-left-0" [ngStyle]="{\'background\':disabled?\'#E9ECEF\':\'#FFF\'}">\n <i class="fa" [ngClass]="{\'fa-clock-o\':type === \'time\', \'fa-calendar\':type !== \'time\'}"></i>\n </span>\n </div>\n</div>',styles:[".form-control-xs,.input-group-xs>.form-control,.input-group-xs>.input-group-append>.input-group-text{padding:.15rem .2rem;font-size:.75rem;line-height:1.5;border-radius:.2rem;height:calc(1.45rem + 2px)}select.form-control-xs:not([size]):not([multiple]){height:calc(1.45rem + 2px)}.btn-xs{padding:.2rem .5rem;font-size:.7rem;line-height:1.15}.text-superdev{color:#006b8b!important}.bg-superdev{color:#fff!important;background-color:#006b8b!important}.btn-superdev,.btn-superdev:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev:disabled{color:#fff;background-color:#006b8b;border-color:#006b8b;opacity:.6;cursor:not-allowed}.btn-superdev-swm{color:#006b8b;background-color:#fff;border-color:#006b8b}.btn-superdev-swm:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev-swm:disabled{color:#006b8b;background-color:#fff;cursor:not-allowed}.box{position:relative;border-radius:3px;background:#fff;border-top:3px solid #d2d6de;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.1)}.box.box-primary{border-top-color:#3c8dbc}.box.box-success{border-top-color:#00a65a}.box.box-warning{border-top-color:#f39c12}.box.box-danger{border-top-color:#dd4b39}.box-header{color:#444;display:block;padding:.5rem;position:relative;border-bottom:1px solid #f4f4f4}.box-header .box-title{display:inline-block;font-size:1.2rem;margin:0;line-height:1}.box-body{padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}.box-footer{border-top:1px solid #f4f4f4;padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}",".btn.btn-outline-secondary{border-color:#ced4da}input{font-size:.75rem!important}"]}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef},{type:o.DatePipe}]},t.propDecorators={type:[{type:n.Input}],size:[{type:n.Input}],disabled:[{type:n.Input}],required:[{type:n.Input}],label:[{type:n.Input}],change:[{type:n.Output}],model:[{type:n.Input}],modelChange:[{type:n.Output}],control:[{type:n.ViewChild,args:["control"]}]},t}(),I=function(){function t(t){this.ref=t,this.name=c.v4(),this.modelChange=new n.EventEmitter}return Object.defineProperty(t.prototype,"model",{set:function(t){this._model=t,this.ref.detectChanges()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.form&&this.form.addControl(this.formModel)},t.prototype.ngAfterViewInit=function(){},t.prototype.change=function(t){this._model=t,this.modelChange.emit(this._model)},t.decorators=[{type:n.Component,args:[{selector:"input-control",template:'<mat-form-field style="width:100%">\n <input #formModel="ngModel" [name]="name" matInput placeholder="{{label}}" [ngModel]="_model" (ngModelChange)="change($event)"\n [required]="required" [disabled]="disabled">\n <mat-error *ngIf="form && formModel.invalid && formModel.errors.required">\n This field is <strong>required</strong>\n </mat-error>\n</mat-form-field>',styles:[""]}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},t.propDecorators={form:[{type:n.Input}],label:[{type:n.Input}],model:[{type:n.Input}],modelChange:[{type:n.Output}],required:[{type:n.Input}],maxlength:[{type:n.Input}],pattern:[{type:n.Input}],disabled:[{type:n.Input}],formModel:[{type:n.ViewChild,args:["formModel"]}]},t}(),S=function(){function t(){this.width="lg",this.isOpened=!1}return t.prototype.ngOnInit=function(){this.type=this.type||"primary"},t.prototype.ngOnDestroy=function(){r(this.modal.nativeElement).remove()},t.prototype.open=function(){this.isOpened=this.isOpened||!0,r(this.modal.nativeElement).modal("show")},t.prototype.close=function(){r(this.modal.nativeElement).modal("hide")},t.decorators=[{type:n.Component,args:[{selector:"modal-control",template:'<div class="modal" #modal>\n <div class="modal-dialog modal-dialog-centered" [ngClass]="{\'c-width-lg\':width==\'lg\',\'c-width-md\':width==\'md\',\'c-width-sm\':width==\'sm\'}">\n <div *ngIf="isOpened" class="modal-content">\n \x3c!-- Modal Header --\x3e\n <div class="modal-header {{type}}">\n <label class="modal-title">{{title}}</label>\n <button type="button" class="close" (click)="close()">&times;</button>\n </div>\n \x3c!-- Modal body & footer--\x3e\n <ng-content></ng-content>\n </div>\n </div>\n</div>',styles:[".modal-content{border-radius:.5rem}.modal-header{padding:.5rem;color:#4c6a84}.modal-header.primary{color:#fff;background-color:#428bca}.modal-header.info{color:#fff;background-color:#5bc0de}.modal-header.success{color:#fff;background-color:#5cb85c}.modal-header.warning{color:#fff;background-color:#f0ad4e}.modal-header.danger{color:#fff;background-color:#d9534f}.modal-header .modal-title{font-weight:500;text-transform:uppercase}.c-width-lg{max-width:80%!important}.c-width-md{max-width:60%!important}.c-width-sm{max-width:40%!important}"]}]}],t.propDecorators={title:[{type:n.Input}],type:[{type:n.Input}],width:[{type:n.Input}],modal:[{type:n.ViewChild,args:["modal"]}]},t}(),P=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:n.Component,args:[{selector:"modal-body",template:'<div class="modal-body"><ng-content></ng-content></div>'}]}],t.ctorParameters=function(){return[]},t}(),E=function(){function t(){}return t.prototype.ngOnInit=function(){},t.decorators=[{type:n.Component,args:[{selector:"modal-footer",template:'<div class="modal-footer" style="padding:.5rem"><ng-content></ng-content></div>'}]}],t.ctorParameters=function(){return[]},t}(),D=function(){function t(){this.name=c.v4(),this.modelChange=new n.EventEmitter,this.onChange=new n.EventEmitter}return Object.defineProperty(t.prototype,"model",{set:function(t){var e=this;setTimeout(function(){e._model=t||"",!e._model&&e.required&&0<e.items.length&&e.change(e.items[0][e.valueField])},0)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.form&&this.form.addControl(this.formModel)},t.prototype.ngAfterViewInit=function(){},t.prototype.change=function(t){this._model=t,this.modelChange.emit(this._model),this.onChange.emit(this._model)},t.decorators=[{type:n.Component,args:[{selector:"select-control",template:'<span *ngIf="label" class="label-swm">{{label}}\n <span class="text-danger" *ngIf="required">*</span>\n</span>\n<select #formModel="ngModel" class="form-control form-control-sm" [name]="name" [ngClass]="{\'is-invalid\':form && form.dirty && formModel.invalid}"\n [ngModel]="_model" (ngModelChange)="change($event)" [required]="required" [disabled]="disabled">\n <option *ngIf="!required" value="">Select One ...</option>\n <option *ngFor="let item of items" [value]="item[valueField]">{{item[displayField]}}</option>\n</select>\n<div class="invalid-feedback" *ngIf="form && formModel.invalid">\n <span *ngIf="formModel.errors.required">\n Required\n </span>\n</div>'}]}],t.ctorParameters=function(){return[]},t.propDecorators={items:[{type:n.Input}],valueField:[{type:n.Input}],displayField:[{type:n.Input}],form:[{type:n.Input}],label:[{type:n.Input}],model:[{type:n.Input}],modelChange:[{type:n.Output}],onChange:[{type:n.Output}],required:[{type:n.Input}],disabled:[{type:n.Input}],formModel:[{type:n.ViewChild,args:["formModel"]}]},t}(),M=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[p.MatTooltipModule,p.MatFormFieldModule,p.MatInputModule],exports:[p.MatTooltipModule,p.MatFormFieldModule,p.MatInputModule]}]}],t}(),F=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[o.CommonModule,u.FormsModule,e.HttpClientModule,M,m.OverlayModule],declarations:[I,k,D,S,O,C,P,E],providers:[o.DatePipe,b,x,w,y,C,v],exports:[I,D,O,k]}]}],t}();t.SuperdevAngularCoreModule=F,t.ApiService=b,t.ExcelService=y,t.LocalStorageService=v,t.NotifyService=x,t.UtilityService=w,t.TranslatePipe=C,t.GridControlComponent=k,t.DatePickerControl=O,t.InputControlComponent=I,t.ModalControl=S,t.ModalBodyComponent=P,t.ModalFooterComponent=E,t.SelectControl=D,t.ɵf=O,t.ɵc=k,t.ɵb=I,t.ɵh=P,t.ɵe=S,t.ɵi=E,t.ɵd=D,t.ɵa=M,t.ɵg=C,t.ɵj=b,t.ɵm=y,t.ɵn=v,t.ɵk=x,t.ɵl=w,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=superdev-angular-core.umd.min.js.map

@@ -89,3 +89,3 @@ /**

</div>`,
styles: [`.btn.btn-outline-secondary{border-color:#ced4da}input{font-size:.75rem!important}`]
styles: [`.form-control-xs,.input-group-xs>.form-control,.input-group-xs>.input-group-append>.input-group-text{padding:.15rem .2rem;font-size:.75rem;line-height:1.5;border-radius:.2rem;height:calc(1.45rem + 2px)}select.form-control-xs:not([size]):not([multiple]){height:calc(1.45rem + 2px)}.btn-xs{padding:.2rem .5rem;font-size:.7rem;line-height:1.15}.text-superdev{color:#006b8b!important}.bg-superdev{color:#fff!important;background-color:#006b8b!important}.btn-superdev,.btn-superdev:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev:disabled{color:#fff;background-color:#006b8b;border-color:#006b8b;opacity:.6;cursor:not-allowed}.btn-superdev-swm{color:#006b8b;background-color:#fff;border-color:#006b8b}.btn-superdev-swm:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev-swm:disabled{color:#006b8b;background-color:#fff;cursor:not-allowed}.box{position:relative;border-radius:3px;background:#fff;border-top:3px solid #d2d6de;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.1)}.box.box-primary{border-top-color:#3c8dbc}.box.box-success{border-top-color:#00a65a}.box.box-warning{border-top-color:#f39c12}.box.box-danger{border-top-color:#dd4b39}.box-header{color:#444;display:block;padding:.5rem;position:relative;border-bottom:1px solid #f4f4f4}.box-header .box-title{display:inline-block;font-size:1.2rem;margin:0;line-height:1}.box-body{padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}.box-footer{border-top:1px solid #f4f4f4;padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}`, `.btn.btn-outline-secondary{border-color:#ced4da}input{font-size:.75rem!important}`]
},] },

@@ -134,2 +134,2 @@ ];

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1waWNrZXItY29udHJvbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9zdXBlcmRldi1hbmd1bGFyLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29udHJvbHMvZGF0ZS1waWNrZXItY29udHJvbC9kYXRlLXBpY2tlci1jb250cm9sLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHB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VsZW1lbnQpLmRhdGV0aW1lcGlja2VyKHtcblx0XHRcdGRhdGVwaWNrZXI6IHRoaXMudHlwZSA9PT0gJ2RhdGV0aW1lJyB8fCB0aGlzLnR5cGUgPT09ICdkYXRlJyxcblx0XHRcdHRpbWVwaWNrZXI6IHRoaXMudHlwZSA9PT0gJ2RhdGV0aW1lJyB8fCB0aGlzLnR5cGUgPT09ICd0aW1lJyxcblx0XHRcdGZvcm1hdDogdGhpcy50eXBlID09PSAnZGF0ZXRpbWUnID8gJ1kvbS9kIEg6aScgOiAodGhpcy50eXBlID09PSAnZGF0ZScgPyAnWS9tL2QnIDogJ0g6aScpLFxuXHRcdFx0c3RlcDogMTUsXG5cdFx0XHRvbkNoYW5nZURhdGVUaW1lOiAoZGF0ZSkgPT4ge1xuXHRcdFx0XHR0aGlzLm1vZGVsQ2hhbmdlLmVtaXQoZGF0ZSB8fCBudWxsKTtcblx0XHRcdFx0dGhpcy5jaGFuZ2UuZW1pdChkYXRlIHx8IG51bGwpO1xuXHRcdFx0XHR0aGlzLnJlZi5kZXRlY3RDaGFuZ2VzKCk7XG5cdFx0XHR9XG5cdFx0fSk7XG5cdH1cbn0iXX0=

@@ -86,3 +86,3 @@ /**

template: "<span *ngIf=\"label\" class=\"label-swm\">{{label}}\n <span class=\"text-danger\" *ngIf=\"required\">*</span>\n</span>\n<div class=\"input-group\" [ngClass]=\"{'input-group-sm': size === 'sm','input-group-xs': size==='xs'}\">\n <input #control class=\"form-control border-right-0\" [ngModel]=\"date\" [disabled]=\"disabled\">\n <div class=\"input-group-append\">\n <span class=\"input-group-text px-1 border-left-0\" [ngStyle]=\"{'background':disabled?'#E9ECEF':'#FFF'}\">\n <i class=\"fa\" [ngClass]=\"{'fa-clock-o':type === 'time', 'fa-calendar':type !== 'time'}\"></i>\n </span>\n </div>\n</div>",
styles: [".btn.btn-outline-secondary{border-color:#ced4da}input{font-size:.75rem!important}"]
styles: [".form-control-xs,.input-group-xs>.form-control,.input-group-xs>.input-group-append>.input-group-text{padding:.15rem .2rem;font-size:.75rem;line-height:1.5;border-radius:.2rem;height:calc(1.45rem + 2px)}select.form-control-xs:not([size]):not([multiple]){height:calc(1.45rem + 2px)}.btn-xs{padding:.2rem .5rem;font-size:.7rem;line-height:1.15}.text-superdev{color:#006b8b!important}.bg-superdev{color:#fff!important;background-color:#006b8b!important}.btn-superdev,.btn-superdev:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev:disabled{color:#fff;background-color:#006b8b;border-color:#006b8b;opacity:.6;cursor:not-allowed}.btn-superdev-swm{color:#006b8b;background-color:#fff;border-color:#006b8b}.btn-superdev-swm:hover{color:#fff;background-color:#006b8b;border-color:#006b8b}.btn-superdev-swm:disabled{color:#006b8b;background-color:#fff;cursor:not-allowed}.box{position:relative;border-radius:3px;background:#fff;border-top:3px solid #d2d6de;width:100%;box-shadow:0 1px 1px rgba(0,0,0,.1)}.box.box-primary{border-top-color:#3c8dbc}.box.box-success{border-top-color:#00a65a}.box.box-warning{border-top-color:#f39c12}.box.box-danger{border-top-color:#dd4b39}.box-header{color:#444;display:block;padding:.5rem;position:relative;border-bottom:1px solid #f4f4f4}.box-header .box-title{display:inline-block;font-size:1.2rem;margin:0;line-height:1}.box-body{padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}.box-footer{border-top:1px solid #f4f4f4;padding:.5rem;background-color:#fff;border-radius:0 0 3px 3px}", ".btn.btn-outline-secondary{border-color:#ced4da}input{font-size:.75rem!important}"]
},] },

@@ -134,2 +134,2 @@ ];

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1waWNrZXItY29udHJvbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9zdXBlcmRldi1hbmd1bGFyLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29udHJvbHMvZGF0ZS1waWNrZXItY29udHJvbC9kYXRlLXBpY2tlci1jb250cm9sLmNvbXBvbmVudC50cyJdLC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cml2YXRlIHJlZjogQ2hhbmdlRGV0ZWN0b3JSZWYsIFxuXHRcdHByaXZhdGUgZGF0ZVBpcGU6IERhdGVQaXBlKSB7XG5cdH1cblxuXHRuZ09uSW5pdCgpIHtcblx0fVxuXG5cdG5nQWZ0ZXJWaWV3SW5pdCgpIHtcblx0XHQkKHRoaXMuY29udHJvbC5uYXRpdmVFbGVtZW50KS5kYXRldGltZXBpY2tlcih7XG5cdFx0XHRkYXRlcGlja2VyOiB0aGlzLnR5cGUgPT09ICdkYXRldGltZScgfHwgdGhpcy50eXBlID09PSAnZGF0ZScsXG5cdFx0XHR0aW1lcGlja2VyOiB0aGlzLnR5cGUgPT09ICdkYXRldGltZScgfHwgdGhpcy50eXBlID09PSAndGltZScsXG5cdFx0XHRmb3JtYXQ6IHRoaXMudHlwZSA9PT0gJ2RhdGV0aW1lJyA/ICdZL20vZCBIOmknIDogKHRoaXMudHlwZSA9PT0gJ2RhdGUnID8gJ1kvbS9kJyA6ICdIOmknKSxcblx0XHRcdHN0ZXA6IDE1LFxuXHRcdFx0b25DaGFuZ2VEYXRlVGltZTogKGRhdGUpID0+IHtcblx0XHRcdFx0dGhpcy5tb2RlbENoYW5nZS5lbWl0KGRhdGUgfHwgbnVsbCk7XG5cdFx0XHRcdHRoaXMuY2hhbmdlLmVtaXQoZGF0ZSB8fCBudWxsKTtcblx0XHRcdFx0dGhpcy5yZWYuZGV0ZWN0Q2hhbmdlcygpO1xuXHRcdFx0fVxuXHRcdH0pO1xuXHR9XG59Il19

@@ -1,2 +0,2 @@

import { ElementRef, EventEmitter, ChangeDetectorRef } from '@angular/core';
import { ElementRef, ChangeDetectorRef } from '@angular/core';
import { GridOption, IGridColumnConfig, GridCommand, GridColumnText, GridColumnNumber, GridColumnBool, GridColumnDate, GridColumnDateTime, GridColumnTime, GridColumnValues } from './grid-control.model';

@@ -20,4 +20,2 @@ import { DatePipe } from '@angular/common';

option: GridOption;
onImportExcel: EventEmitter<any>;
onSaveRow: EventEmitter<any>;
gridOption: GridOption;

@@ -24,0 +22,0 @@ orderBy: string;

{
"name": "superdev-angular-core",
"version": "0.0.13",
"version": "0.0.14",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^6.0.3",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc