inet-core
Advanced tools
Comparing version 0.7.10 to 0.8.1
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("@angular/common/http"),require("rxjs/add/operator/map"),require("rxjs/add/observable/of"),require("rxjs/add/operator/do"),require("rxjs/operators"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/pairwise"),require("rxjs/add/operator/exhaustMap"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/startWith"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs","@angular/common/http","rxjs/add/operator/map","rxjs/add/observable/of","rxjs/add/operator/do","rxjs/operators","rxjs/add/observable/fromEvent","rxjs/add/operator/pairwise","rxjs/add/operator/exhaustMap","rxjs/add/operator/filter","rxjs/add/operator/startWith","@angular/common"],e):e((t=t||self).ngxTabsLibDemo={},t.core,t.rxjs,t.http,null,null,null,t.operators,null,null,null,null,null,t.common)}(this,function(t,i,n,o,e,r,s,a,c,u,p,l,h,f){"use strict";var A,d,y,g=function(){function o(){return this.elementId="loading-indicator",o.instance=o.instance||this}return o.prototype.setElementId=function(t){this.elementId=t},o.prototype.getElementId=function(){return this.elementId},o.prototype.getIndicator=function(){if(o.loadingIndicator&&o.loadingIndicator.container)return o.loadingIndicator;var t,e,r=document.getElementById(this.getElementId());if(r){var n=r.getElementsByTagName("span");n&&0<n.length&&(t=r.getElementsByTagName("span")[0])&&t.innerText&&(e=t.innerText)}return o.loadingIndicator=new m(r,t,e)},o.prototype.getLoadingIndicator=function(){var r=this;return new Promise(function(t,e){setTimeout(function(){return t(r.getIndicator())})})},o.prototype.showLoading=function(e){this.getLoadingIndicator().then(function(t){t&&t.container&&(t.element&&(t.element.innerText=e||t.message),t.container.style.display="block")})},o.prototype.hideLoading=function(){this.getLoadingIndicator().then(function(t){t&&t.container&&(t.container.style.display="none")})},o.prototype.complete=function(){this.hideLoading()},o.prototype.ngOnDestroy=function(){this.complete()},o.instance=null,o.loadingIndicator=null,o.decorators=[{type:i.Injectable}],o.ctorParameters=function(){return[]},o}(),m=function(t,e,r){void 0===r&&(r=""),this.container=t,this.element=e,this.message=r},v=(A=function(t,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),S=function(n){function t(t,e){var r=n.call(this,t)||this;return r.loadingService=e,r.headers=new o.HttpHeaders({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),r}return v(t,n),t.prototype.convertToHttpParams=function(r){return r?Object.getOwnPropertyNames(r).reduce(function(t,e){return t.set(e,null==r[e]?"":r[e])},new o.HttpParams):null},t.prototype.getJSON=function(t,e){return this.get(t,{params:this.convertToHttpParams(e),headers:this.headers})},t.prototype.postJSON=function(t,e){return this.post(t,this.convertToHttpParams(e),{headers:this.headers})},t.prototype.putJSON=function(t,e){return this.put(t,this.convertToHttpParams(e),{headers:this.headers})},t.prototype.deleteJSON=function(t,e){return this.delete(t,{params:this.convertToHttpParams(e),headers:this.headers})},t.prototype.convertToFormData=function(e){var r=new FormData;return e&&Object.keys(e).forEach(function(t){r.append(t,null==e[t]?"":e[t])}),r},t.prototype.downloadFile=function(t,r){if(r){var n=document.createElement("form");n.method="POST",n.action=t,n.enctype="multipart/form-data",Object.keys(r).forEach(function(t){var e=document.createElement("input");e.name=t,e.value=null==r[t]?"":r[t],e.type="hidden",n.appendChild(e)}),document.body.appendChild(n),n.submit(),document.body.removeChild(n)}},t.prototype.showLoading=function(t){this.loadingService.showLoading(t)},t.prototype.hideLoading=function(){this.loadingService.hideLoading()},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:o.HttpHandler},{type:g}]},t}(o.HttpClient),b=function(){function e(t){return this.http=t,e.instance=e.instance||this}return e.prototype.logout=function(){this.http.post(iNet.getPUrl("system/logout"),{username:iNet.username}).subscribe(function(t){var e=document.createElement("iframe");e.setAttribute("src",t.uuid),e.addEventListener("load",function(){location.reload()}),document.body.appendChild(e)},function(t){})},e.prototype.getAvatar=function(t,e){return e=e||50,iNet.getPUrl("system/userprofile/photo")+"?usercode="+t+"&thumbnail="+e},e.prototype.isExternalUser=function(){return"true"==iNet.externalUser},e.prototype.isCommunity=function(){return this.isExternalUser()||"smartcloud"==iNet.firmPrefix||"community"==iNet.firmPrefix},e.prototype.getOrg=function(){return this.http.get(iNet.getPUrl("plugin/organization/list")).map(function(t){return t.elements})},e.prototype.searchOrgan=function(t){return void 0===t&&(t={}),this.http.postJSON(iNet.getPUrl("plugin/organization/search"),t).map(function(t){return t.elements})},e.prototype.getSystemApplication=function(){var e=this;return this.applications?n.Observable.of(this.applications):(this.$appCache||(this.$appCache=this.http.postJSON(iNet.getPUrl("system/application/list")).do(function(t){return e.applications=t.elements}).map(function(t){return t.elements}).pipe(a.shareReplay(1))),this.$appCache)},e.prototype.searchFirmAccount=function(t,e){this.http.postJSON(iNet.getPUrl("plugin/firmaccount/list"),t).subscribe(function(t){e(t)},function(t){e(null,t)})},e.prototype.updateLanguage=function(e,r){this.http.postJSON(iNet.getPUrl("system/userprofile/languageupdate"),{intl:e}).subscribe(function(t){r&&r(e)},function(t){r&&r(e)})},e.prototype.getImageUrl=function(t){return t?0===t.indexOf("/")?this.getAssetsPath()+t:this.getAssetsPath()+"/"+t:""},e.prototype.getFileUrl=function(t){return t?0===t.indexOf("/")?this.getFileServerPath()+t:this.getFileServerPath()+"/"+t:""},e.prototype.getSsoRedirect=function(t){return iNet.getPUrl("ssorequest/redirect")+"?"+$.param(t)},e.prototype.convergePlugins=function(){return this.convergeSearch({converge:"plugins"})},e.prototype.convergeSearch=function(t){return this.http.postJSON(iNet.getPUrl("converge/search"),t)},e.prototype.setEnvironment=function(t){void 0===t&&(t={production:!1}),e.environment=t},e.prototype.getEnvironment=function(){return e.environment},e.prototype.getPath=function(t){void 0===t&&(t="");var e=t.lastIndexOf("/");return e===t.length-1?t.substring(0,e):t},e.prototype.getFileServerPath=function(){return this.getPath(iNet.fileServer)},e.prototype.getAssetsPath=function(){return this.getPath(iNet.imgFolder)},e.instance=null,e.environment={production:!1},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:S}]},e}(),P=function(){function e(t){return this.http=t,e.instance=e.instance||this}return e.prototype.saveSuggestion=function(t,e){if(t.keyword)return this.http.postJSON(iNet.getPUrl("system/suggestion/update"),t).subscribe(function(t){e&&e(t)},function(t){e&&e(null,t)})},e.prototype.loadSuggestion=function(t,e){return this.http.postJSON(iNet.getPUrl("system/suggestion/hint"),t).subscribe(function(t){e(t&&t.items||[])},function(t){e([],t)})},e.instance=null,e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:S}]},e}(),I={sH:0,sT:0,cH:0},O=function(){function t(t){var e=this;this.elm=t,this.scrollPercent=70,this.isSubmit=!1,this.isUserScrollingDown=function(t){return t[0].sT<t[1].sT},this.isScrollExpectedPercent=function(t){return(t.sT+t.cH)/t.sH>e.scrollPercent/100}}return t.prototype.ngAfterViewInit=function(){this.registerScrollEvent(),this.streamScrollEvents(),this.requestCallbackOnScroll()},t.prototype.registerScrollEvent=function(){this.scrollEvent$=n.Observable.fromEvent(this.elm.nativeElement,"scroll")},t.prototype.streamScrollEvents=function(){var e=this;this.userScrolledDown$=this.scrollEvent$.map(function(t){return{sH:t.target.scrollHeight,sT:t.target.scrollTop,cH:t.target.clientHeight}}).pairwise().filter(function(t){return e.isUserScrollingDown(t)&&e.isScrollExpectedPercent(t[1])})},t.prototype.requestCallbackOnScroll=function(){var t=this;this.requestOnScroll$=this.userScrolledDown$,this.immediateCallback&&(this.requestOnScroll$=this.requestOnScroll$.startWith([I,I])),this.requestOnScroll$.exhaustMap(function(){return t.scrollCallback()}).subscribe(function(t){console.log(t)},function(t){return console.log(t)})},t.prototype.isScrollSubmit=function(){return this.isSubmit},t.decorators=[{type:i.Directive,args:[{selector:"[appInfiniteScroller]"}]}],t.ctorParameters=function(){return[{type:i.ElementRef}]},t.propDecorators={scrollCallback:[{type:i.Input}],immediateCallback:[{type:i.Input}],scrollPercent:[{type:i.Input}],isSubmit:[{type:i.Input}]},t}(),E=function(){},U=function(){function t(){}return t.prototype.showMessage=function(t,e,r,n){},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),N=function(){},_=(d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),x=function(o){function t(t,e,r){var n=o.call(this)||this;return n.pageNumber=t,n.pageSize=e,n.notifylist=r,n}return _(t,o),t}(N),j=(y=function(t,e){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),w=function(){},C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e}(w),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e}(w),R=function(){function e(t){return this.http=t,this.roles=[],e.instance||(this.roles=this.parserRoleFrom(iNet.permission||{})),e.instance=e.instance||this}return e.prototype.load=function(){var n=this;return new Promise(function(r){n.http.postJSON(iNet.getPUrl("system/userrole/list")).subscribe(function(t){for(var e in t)n.append(t[e]);r(t)},function(t){r()})})},e.prototype.parserRoleFrom=function(t){var e=[];for(var r in t)"true"!==t[r]&&!0!==t[r]||e.push(r);return e},e.prototype.uniqueArray=function(t){return t.filter(function(t,e,r){return r.indexOf(t)==e})},e.prototype.append=function(t){return this.roles=this.uniqueArray(this.roles.concat(t)),this.roles},e.prototype.hasRole=function(t){var e=this,r=t.split(",");return 1<r.length?0<r.filter(function(t){return-1<e.roles.indexOf(t)}).length:-1<this.roles.indexOf(t)},e.prototype.ping=function(){var e=document.createElement("iframe");e.style.display="none",e.setAttribute("src",iNet.getPUrl("common/page/ping")),e.onload=function(){try{var t=e.contentWindow.location.pathname||"";0<("cas/login".match(t)||[]).length&&window.location.reload()}catch(t){window.location.reload()}document.body.removeChild(e)},document.body.appendChild(e)},e.instance=null,e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:S}]},e}(),H=function(){function t(t,e,r){this.templateRef=t,this.viewContainer=e,this.securityService=r}return t.prototype.ngOnInit=function(){this.applyPermission()},t.prototype.applyPermission=function(){this.securityService.hasRole(this.roleAccess)?this.viewContainer.createEmbeddedView(this.templateRef):this.viewContainer.clear()},t.decorators=[{type:i.Directive,args:[{selector:"[roleAccess]"}]}],t.ctorParameters=function(){return[{type:i.TemplateRef},{type:i.ViewContainerRef},{type:R}]},t.propDecorators={roleAccess:[{type:i.Input,args:["roleAccess"]}]},t}(),B=function(){function t(){}return t.prototype.transform=function(t){return iNet.getSSOUrl(t)},t.decorators=[{type:i.Pipe,args:[{name:"ssoUrl"}]}],t}(),T="avatarVersion",J=function(){function r(t,e){return this.http=t,this.coreService=e,this.profile=null,this.systemProfile=null,this.$profileObservableCache={},this.inventory={},this.url={get:iNet.getPUrl("gl/contact/profile/load"),view:iNet.getPUrl("system/userprofile/view"),update:iNet.getPUrl("system/userprofile/update"),change_password:iNet.getPUrl("system/account/passsword")},r.instance=r.instance||this}return r.prototype.loadProfile=function(){var e=this;return this.http.postJSON(this.url.get).map(function(t){return t}).do(function(t){return e.profile=t})},r.prototype.loadSystemProfile=function(){var e=this;return this.http.postJSON(this.url.view).map(function(t){return t}).do(function(t){return e.systemProfile=t})},r.prototype.getSystemProfile=function(){return this.systemProfile?n.Observable.of(this.systemProfile):(this.$systemProfileCache||(this.$systemProfileCache=this.loadSystemProfile().pipe(a.shareReplay(1))),this.$systemProfileCache)},r.prototype.getProfile=function(){return this.profile?n.Observable.of(this.profile):(this.$cache||(this.$cache=this.loadProfile().pipe(a.shareReplay(1))),this.$cache)},r.prototype.update=function(t){return this.http.postJSON(this.url.update,t)},r.prototype.changePassword=function(t){return this.http.postJSON(this.url.change_password,t)},r.prototype.getAvatarUrlByProfile=function(t){var e;return e=this.coreService.getFileUrl(t.avatar),0<this.getAvatarVersion()&&(e=e+"?version="+this.getAvatarVersion()),e},r.prototype.getAvatarUrl=function(){var r=this;return new Promise(function(e){r.getProfile().subscribe(function(t){e(r.getAvatarUrlByProfile(t))},function(t){e()})})},r.prototype.getFullName=function(){var t=this;return new Promise(function(r){t.getProfile().subscribe(function(t){var e="";t.lastName&&(e+=t.lastName),t.middleName&&(e+=" "+t.middleName),t.firstName&&(e+=" "+t.firstName),t.name=e||iNet.displayName||iNet.username,r(t.name.trim())},function(t){r()})})},r.prototype.getSignPictureId=function(){var t=this;return new Promise(function(r){t.getSystemProfile().subscribe(function(t){var e="";t.user&&t.user.signPictureID&&(e=t.user.signPictureID),r(e)},function(t){r()})})},r.prototype.getSignVerifyNumber=function(){var t=this;return new Promise(function(r){t.getSystemProfile().subscribe(function(t){var e="";t.user&&t.user.signVerify&&(e=t.user.signVerify),r(e)},function(t){r()})})},r.prototype.increaseAvatarVersion=function(){localStorage.setItem(T,(this.getAvatarVersion()+1).toString())},r.prototype.getAvatarVersion=function(){return Number(localStorage.getItem(T))},r.prototype.getProfileByUsername=function(e){var r=this;return this.inventory.hasOwnProperty(e)?n.Observable.of(this.inventory[e]):(this.$profileObservableCache[e]||(this.$profileObservableCache[e]=this.http.getJSON(this.url.get,{username:e}).do(function(t){return r.inventory[e]=t}).pipe(a.shareReplay(1))),this.$profileObservableCache[e])},r.prototype.getAvatarUrlByUsername=function(t){var r=this;return new Promise(function(e){r.getProfileByUsername(t).subscribe(function(t){t.avatar?e(r.coreService.getFileUrl(t.avatar)):e()},function(t){e()})})},r.prototype.getDefaultAvatarUrl=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PyucSrRnp0kW9ZtG2/faouMQJmxmSjS9lXonxzmjqCr2FzU3KGBBJQtaluckpTWIZVyZIKYoVHSeYIJ8tlOvOvrK3XFLUeJUbnqKFrbUFIUUqHAg2rD8p5sVQD61SG78FHb32qHlPAllKCVtOH9KhfxFBaVi6TcUc7zyGG1OOKCUpFySamZXhOkiKxfsUo/apeLTJiiVvKSCfVSogefV4uISoirtPKA9kqNqiZXqBCJTAIJ9ZJ4d9RJbUyOl5pQKVcr8KvWO4s5PlKaFgy2SkW57ePW8MxN3DZAcRZSTcFJ51+KRP5R4/aniS+4T7R650y6WbuKJ5k9c6VXZR2m/XOkV2+H73/AP/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQIBAT8AYf/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQMBAT8AYf/Z",r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[{type:S},{type:b}]},r}(),Q=function(){},q=function(){},M=function(){function t(){this._vi_accents=["à","á","ạ","ả","ã","â","ầ","ấ","ậ","ẩ","ẫ","ă","ằ","ắ","ặ","ẳ","ẵ","è","é","ẹ","ẻ","ẽ","ê","ề","ế","ệ","ể","ễ","ì","í","ị","ỉ","ĩ","ò","ó","ọ","ỏ","õ","ô","ồ","ố","ộ","ổ","ỗ","ơ","ờ","ớ","ợ","ở","ỡ","ù","ú","ụ","ủ","ũ","ư","ừ","ứ","ự","ử","ữ","ỳ","ý","ỵ","ỷ","ỹ","đ","À","Á","Ạ","Ả","Ã","Â","Ầ","Ấ","Ậ","Ẩ","Ẫ","Ă","Ằ","Ắ","Ặ","Ẳ","Ẵ","È","É","Ẹ","Ẻ","Ẽ","Ê","Ề","Ế","Ệ","Ể","Ễ","Ì","Í","Ị","Ỉ","Ĩ","Ò","Ó","Ọ","Ỏ","Õ","Ô","Ồ","Ố","Ộ","Ổ","Ỗ","Ơ","Ờ","Ớ","Ợ","Ở","Ỡ","Ù","Ú","Ụ","Ủ","Ũ","Ư","Ừ","Ứ","Ự","Ử","Ữ","Ỳ","Ý","Ỵ","Ỷ","Ỹ","Đ"],this._en_accents=["a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","e","e","e","e","e","e","e","e","e","e","e","i","i","i","i","i","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","u","u","u","u","u","u","u","u","u","u","u","y","y","y","y","y","d","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","E","E","E","E","E","E","E","E","E","E","E","I","I","I","I","I","O","O","O","O","O","O","O","O","O","O","O","O","O","O","O","O","O","U","U","U","U","U","U","U","U","U","U","U","Y","Y","Y","Y","Y","D"]}return t.prototype.viToEn=function(t){var r=this;return t.replace(/[^\u0000-\u007E]/g,function(t){var e=r._vi_accents.indexOf(t);return e<0?t:r._en_accents[e]})},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),k=function(){function t(){this.timeCache=3e5,this.__storage={},this.__queue={}}return t.prototype.promiseQueue=function(t,e,r){this.__queue[t]?this.__queue[t].push(r):(this.__queue[t]=[r],e(t))},t.prototype.resolveQueue=function(t,e,r){this.__queue[t]&&(this.__queue[t].forEach(function(t){try{t.apply(e,r)}catch(t){}}),delete this.__queue[t])},t.prototype.getData=function(t){var e=this.__storage[t];if(e&&(new Date).getTime()-e.time<=e.timeCache)return e.value},t.prototype.setData=function(t,e,r){var n=r&&r.timeCache||this.timeCache;this.__storage[t]={time:(new Date).getTime(),timeCache:n,value:e}},t.prototype.removeData=function(t){delete this.__storage[t]},t.prototype.clearData=function(){this.__storage={}},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),V=function(){function t(t){this.element=t,this.el=t.nativeElement,this._clientWidth=this.el.clientWidth}return Object.defineProperty(t.prototype,"minHeight",{get:function(){return this._minHeight},set:function(t){this._minHeight=t,this.updateMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(t){this._maxHeight=t,this.updateMaxHeight()},enumerable:!0,configurable:!0}),t.prototype.onResize=function(){this.el.clientWidth!==this._clientWidth&&(this._clientWidth=this.element.nativeElement.clientWidth,this.adjust())},t.prototype.onInput=function(){this.adjust()},t.prototype.ngAfterViewInit=function(){var t=window.getComputedStyle(this.el,null);"both"===t.resize?this.el.style.resize="horizontal":"vertical"===t.resize&&(this.el.style.resize="none"),this.adjust()},t.prototype.adjust=function(){this.el.style.overflow="hidden",this.el.style.height="auto",this.el.style.height=this.el.scrollHeight+"px"},t.prototype.updateMinHeight=function(){this.el.style.minHeight=this._minHeight+"px"},t.prototype.updateMaxHeight=function(){this.el.style.maxHeight=this._maxHeight+"px"},t.decorators=[{type:i.Directive,args:[{selector:"textarea[appAutoSize]",exportAs:"appAutoSize"}]}],t.ctorParameters=function(){return[{type:i.ElementRef}]},t.propDecorators={minHeight:[{type:i.Input,args:["minHeight"]}],maxHeight:[{type:i.Input,args:["maxHeight"]}],onResize:[{type:i.HostListener,args:["window:resize"]}],onInput:[{type:i.HostListener,args:["input"]}]},t}(),F=function(){function t(t,e){this._el=t,this.userProfileService=e,this.usercode=iNet.username}return t.prototype.ngOnInit=function(){this._el.nativeElement.addEventListener("error",this._loadAvatarError.bind(this)),this._setAvatar()},t.prototype.ngOnChanges=function(){this._setAvatar()},t.prototype._setAvatar=function(){var e=this;this.usercode?this.userProfileService.getAvatarUrlByUsername(this.usercode).then(function(t){t?e._el.nativeElement.src=t:e._loadAvatarError()}):this._loadAvatarError()},t.prototype._loadAvatarError=function(){this._el.nativeElement.src=this.userProfileService.getDefaultAvatarUrl()},t.decorators=[{type:i.Directive,args:[{selector:"img[userAvatar]"}]}],t.ctorParameters=function(){return[{type:i.ElementRef},{type:J}]},t.propDecorators={usercode:[{type:i.Input}]},t}(),L=function(){function t(){this._loaded=[],this._version=""}return t.prototype.load=function(t,e){if(t.length<1)return e();this._loadResources(t,e)},t.prototype.loadJS=function(t,e){this._loadWithTagName("script",{type:"text/javascript",src:this.getFullUrlJS(t)},e)},t.prototype.loadCSS=function(t,e){this._loadWithTagName("link",{type:"text/css",rel:"stylesheet",href:t},e)},t.prototype.getFullUrlJS=function(t){return t.indexOf("//")<0&&iNet.fileServer?(t.startsWith("/")&&(t=t.substr(1,t.length)),iNet.fileServer+t):t},t.prototype.isLoaded=function(t){return-1<this._loaded.indexOf(t)},t.prototype._loadResources=function(t,e){var r=this,n=this._groupResources(t),o=function(){if(n.length<1)return e();r._loadGroups(n.splice(0,1)[0],o)};o()},t.prototype._groupResources=function(t){for(var e,r=[],n=0;n<t.length;n++)e||(e=[],r.push(e)),e.push(t[n]),t[n].sync&&(e=null);return r},t.prototype._loadGroups=function(t,e){var r=this,n=[];t.forEach(function(t){return n.push(r._load(t))}),Promise.all(n).then(function(){e()})},t.prototype._load=function(e){var r=this;return new Promise(function(t){"css"===e.type?r.loadCSS(e.url,t):r.loadJS(e.url,t)})},t.prototype._loadWithTagName=function(t,e,r){var n=this,o=e.src||e.href;if(this.isLoaded(o))return r();var i=document.createElement(t);for(var s in e)i[s]=e[s];i.onload=function(){n._loaded.push(o),r()},i.onerror=function(t){console.warn("Load resource error: "+o),console.warn(t),n._loaded.push(o),r()},document.head.appendChild(i)},t.prototype._initScriptVersion=function(){for(var t=$("script"),e=0;e<t.length;e++){var r=t[e].src,n=r.indexOf("?version=");if(-1<n){this._version=r.substr(n+1,r.length);break}}},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}();function W(t){return function(){return t.load()}}var K=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{imports:[f.CommonModule],declarations:[H,O,V,F,B],exports:[H,O,V,F,B],providers:[b,S,U,M,J,k,L,{provide:i.APP_INITIALIZER,useFactory:W,multi:!0,deps:[R]},R,g]}]}],t}();t.CoreService=b,t.SuggestionService=P,t.ErrorMessage={CLIENT:"Client-side error occurred",SERVER:"Server-side error occurred",TYPE:"ERROR"},t.LoadingIndicatorService=g,t.LoadingIndicator=m,t.HttpClientService=S,t.InfiniteScrollerDirective=O,t.NewPassword=E,t.NotificationService=U,t.Paging=N,t.NotifyParams=x,t.ErrorResponse=w,t.ResponseData=C,t.ResponseElementsData=D,t.RoleAccessDirective=H,t.SecurityService=R,t.SSOUrlPipe=B,t.UserProfileService=J,t.UserProfile=Q,t.UserResponseData=q,t.AccentService=M,t.CacheStorageService=k,t.AutoSizeDirective=V,t.AvatarDirective=F,t.ResourceLoaderService=L,t.initApp=W,t.CoreModule=K,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("@angular/common/http"),require("rxjs/add/operator/map"),require("rxjs/add/observable/of"),require("rxjs/add/operator/do"),require("rxjs/operators"),require("rxjs/add/observable/fromEvent"),require("rxjs/add/operator/pairwise"),require("rxjs/add/operator/exhaustMap"),require("rxjs/add/operator/filter"),require("rxjs/add/operator/startWith"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs","@angular/common/http","rxjs/add/operator/map","rxjs/add/observable/of","rxjs/add/operator/do","rxjs/operators","rxjs/add/observable/fromEvent","rxjs/add/operator/pairwise","rxjs/add/operator/exhaustMap","rxjs/add/operator/filter","rxjs/add/operator/startWith","@angular/common"],e):e((t=t||self).ngxTabsLibDemo={},t.core,t.rxjs,t.http,null,null,null,t.operators,null,null,null,null,null,t.common)}(this,function(t,i,n,o,e,r,s,a,c,u,p,l,h,f){"use strict";var A=function(){function o(){return this.elementId="loading-indicator",o.instance=o.instance||this}return o.prototype.setElementId=function(t){this.elementId=t},o.prototype.getElementId=function(){return this.elementId},o.prototype.getIndicator=function(){if(o.loadingIndicator&&o.loadingIndicator.container)return o.loadingIndicator;var t,e,r=document.getElementById(this.getElementId());if(r){var n=r.getElementsByTagName("span");n&&0<n.length&&(t=r.getElementsByTagName("span")[0])&&t.innerText&&(e=t.innerText)}return o.loadingIndicator=new d(r,t,e)},o.prototype.getLoadingIndicator=function(){var r=this;return new Promise(function(t,e){setTimeout(function(){return t(r.getIndicator())})})},o.prototype.showLoading=function(e){this.getLoadingIndicator().then(function(t){t&&t.container&&(t.element&&(t.element.innerText=e||t.message),t.container.style.display="block")})},o.prototype.hideLoading=function(){this.getLoadingIndicator().then(function(t){t&&t.container&&(t.container.style.display="none")})},o.prototype.complete=function(){this.hideLoading()},o.prototype.ngOnDestroy=function(){this.complete()},o.instance=null,o.loadingIndicator=null,o.decorators=[{type:i.Injectable}],o.ctorParameters=function(){return[]},o}(),d=function(t,e,r){void 0===r&&(r=""),this.container=t,this.element=e,this.message=r},y=function(){function t(){}return t.prototype.encodeKey=function(t){return g(t)},t.prototype.encodeValue=function(t){return g(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function g(t){return encodeURIComponent(t)}var m,v,S,b=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),P=function(n){function t(t,e){var r=n.call(this,t)||this;return r.loadingService=e,r.headers=new o.HttpHeaders({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),r}return b(t,n),t.prototype.convertToHttpParams=function(r){return r?Object.getOwnPropertyNames(r).reduce(function(t,e){return t.set(e,null==r[e]?"":r[e])},new o.HttpParams({encoder:new y})):null},t.prototype.getJSON=function(t,e){return this.get(t,{params:this.convertToHttpParams(e),headers:this.headers})},t.prototype.postJSON=function(t,e){return this.post(t,this.convertToHttpParams(e),{headers:this.headers})},t.prototype.putJSON=function(t,e){return this.put(t,this.convertToHttpParams(e),{headers:this.headers})},t.prototype.deleteJSON=function(t,e){return this.delete(t,{params:this.convertToHttpParams(e),headers:this.headers})},t.prototype.convertToFormData=function(e){var r=new FormData;return e&&Object.keys(e).forEach(function(t){r.append(t,null==e[t]?"":e[t])}),r},t.prototype.downloadFile=function(t,r){if(r){var n=document.createElement("form");n.method="POST",n.action=t,n.enctype="multipart/form-data",Object.keys(r).forEach(function(t){var e=document.createElement("input");e.name=t,e.value=null==r[t]?"":r[t],e.type="hidden",n.appendChild(e)}),document.body.appendChild(n),n.submit(),document.body.removeChild(n)}},t.prototype.showLoading=function(t){this.loadingService.showLoading(t)},t.prototype.hideLoading=function(){this.loadingService.hideLoading()},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:o.HttpHandler},{type:A}]},t}(o.HttpClient),I=function(){function e(t){return this.http=t,e.instance=e.instance||this}return e.prototype.logout=function(){this.http.post(iNet.getPUrl("system/logout"),{username:iNet.username}).subscribe(function(t){var e=document.createElement("iframe");e.setAttribute("src",t.uuid),e.addEventListener("load",function(){location.reload()}),document.body.appendChild(e)},function(t){})},e.prototype.getAvatar=function(t,e){return e=e||50,iNet.getPUrl("system/userprofile/photo")+"?usercode="+t+"&thumbnail="+e},e.prototype.isExternalUser=function(){return"true"==iNet.externalUser},e.prototype.isCommunity=function(){return this.isExternalUser()||"smartcloud"==iNet.firmPrefix||"community"==iNet.firmPrefix},e.prototype.getOrg=function(){return this.http.get(iNet.getPUrl("plugin/organization/list")).map(function(t){return t.elements})},e.prototype.searchOrgan=function(t){return void 0===t&&(t={}),this.http.postJSON(iNet.getPUrl("plugin/organization/search"),t).map(function(t){return t.elements})},e.prototype.getSystemApplication=function(){var e=this;return this.applications?n.Observable.of(this.applications):(this.$appCache||(this.$appCache=this.http.postJSON(iNet.getPUrl("system/application/list")).do(function(t){return e.applications=t.elements}).map(function(t){return t.elements}).pipe(a.shareReplay(1))),this.$appCache)},e.prototype.searchFirmAccount=function(t,e){this.http.postJSON(iNet.getPUrl("plugin/firmaccount/list"),t).subscribe(function(t){e(t)},function(t){e(null,t)})},e.prototype.updateLanguage=function(e,r){this.http.postJSON(iNet.getPUrl("system/userprofile/languageupdate"),{intl:e}).subscribe(function(t){r&&r(e)},function(t){r&&r(e)})},e.prototype.getImageUrl=function(t){return t?0===t.indexOf("/")?this.getAssetsPath()+t:this.getAssetsPath()+"/"+t:""},e.prototype.getFileUrl=function(t){return t?0===t.indexOf("/")?this.getFileServerPath()+t:this.getFileServerPath()+"/"+t:""},e.prototype.getSsoRedirect=function(t){return iNet.getPUrl("ssorequest/redirect")+"?"+$.param(t)},e.prototype.convergePlugins=function(){return this.convergeSearch({converge:"plugins"})},e.prototype.convergeSearch=function(t){return this.http.postJSON(iNet.getPUrl("converge/search"),t)},e.prototype.setEnvironment=function(t){void 0===t&&(t={production:!1}),e.environment=t},e.prototype.getEnvironment=function(){return e.environment},e.prototype.getPath=function(t){void 0===t&&(t="");var e=t.lastIndexOf("/");return e===t.length-1?t.substring(0,e):t},e.prototype.getFileServerPath=function(){return this.getPath(iNet.fileServer)},e.prototype.getAssetsPath=function(){return this.getPath(iNet.imgFolder)},e.instance=null,e.environment={production:!1},e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:P}]},e}(),O=function(){function e(t){return this.http=t,e.instance=e.instance||this}return e.prototype.saveSuggestion=function(t,e){if(t.keyword)return this.http.postJSON(iNet.getPUrl("system/suggestion/update"),t).subscribe(function(t){e&&e(t)},function(t){e&&e(null,t)})},e.prototype.loadSuggestion=function(t,e){return this.http.postJSON(iNet.getPUrl("system/suggestion/hint"),t).subscribe(function(t){e(t&&t.items||[])},function(t){e([],t)})},e.instance=null,e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:P}]},e}(),U={sH:0,sT:0,cH:0},E=function(){function t(t){var e=this;this.elm=t,this.scrollPercent=70,this.isSubmit=!1,this.isUserScrollingDown=function(t){return t[0].sT<t[1].sT},this.isScrollExpectedPercent=function(t){return(t.sT+t.cH)/t.sH>e.scrollPercent/100}}return t.prototype.ngAfterViewInit=function(){this.registerScrollEvent(),this.streamScrollEvents(),this.requestCallbackOnScroll()},t.prototype.registerScrollEvent=function(){this.scrollEvent$=n.Observable.fromEvent(this.elm.nativeElement,"scroll")},t.prototype.streamScrollEvents=function(){var e=this;this.userScrolledDown$=this.scrollEvent$.map(function(t){return{sH:t.target.scrollHeight,sT:t.target.scrollTop,cH:t.target.clientHeight}}).pairwise().filter(function(t){return e.isUserScrollingDown(t)&&e.isScrollExpectedPercent(t[1])})},t.prototype.requestCallbackOnScroll=function(){var t=this;this.requestOnScroll$=this.userScrolledDown$,this.immediateCallback&&(this.requestOnScroll$=this.requestOnScroll$.startWith([U,U])),this.requestOnScroll$.exhaustMap(function(){return t.scrollCallback()}).subscribe(function(t){console.log(t)},function(t){return console.log(t)})},t.prototype.isScrollSubmit=function(){return this.isSubmit},t.decorators=[{type:i.Directive,args:[{selector:"[appInfiniteScroller]"}]}],t.ctorParameters=function(){return[{type:i.ElementRef}]},t.propDecorators={scrollCallback:[{type:i.Input}],immediateCallback:[{type:i.Input}],scrollPercent:[{type:i.Input}],isSubmit:[{type:i.Input}]},t}(),N=function(){},_=function(){function t(){}return t.prototype.showMessage=function(t,e,r,n){},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),x=function(){},j=(v=function(t,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),C=function(o){function t(t,e,r){var n=o.call(this)||this;return n.pageNumber=t,n.pageSize=e,n.notifylist=r,n}return j(t,o),t}(x),w=(S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),D=function(){},R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(D),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e}(D),B=function(){function e(t){return this.http=t,this.roles=[],e.instance||(this.roles=this.parserRoleFrom(iNet.permission||{})),e.instance=e.instance||this}return e.prototype.load=function(){var n=this;return new Promise(function(r){n.http.postJSON(iNet.getPUrl("system/userrole/list")).subscribe(function(t){for(var e in t)n.append(t[e]);r(t)},function(t){r()})})},e.prototype.parserRoleFrom=function(t){var e=[];for(var r in t)"true"!==t[r]&&!0!==t[r]||e.push(r);return e},e.prototype.uniqueArray=function(t){return t.filter(function(t,e,r){return r.indexOf(t)==e})},e.prototype.append=function(t){return this.roles=this.uniqueArray(this.roles.concat(t)),this.roles},e.prototype.hasRole=function(t){var e=this,r=t.split(",");return 1<r.length?0<r.filter(function(t){return-1<e.roles.indexOf(t)}).length:-1<this.roles.indexOf(t)},e.prototype.ping=function(){var e=document.createElement("iframe");e.style.display="none",e.setAttribute("src",iNet.getPUrl("common/page/ping")),e.onload=function(){try{var t=e.contentWindow.location.pathname||"";0<("cas/login".match(t)||[]).length&&window.location.reload()}catch(t){window.location.reload()}document.body.removeChild(e)},document.body.appendChild(e)},e.instance=null,e.decorators=[{type:i.Injectable}],e.ctorParameters=function(){return[{type:P}]},e}(),T=function(){function t(t,e,r){this.templateRef=t,this.viewContainer=e,this.securityService=r}return t.prototype.ngOnInit=function(){this.applyPermission()},t.prototype.applyPermission=function(){this.securityService.hasRole(this.roleAccess)?this.viewContainer.createEmbeddedView(this.templateRef):this.viewContainer.clear()},t.decorators=[{type:i.Directive,args:[{selector:"[roleAccess]"}]}],t.ctorParameters=function(){return[{type:i.TemplateRef},{type:i.ViewContainerRef},{type:B}]},t.propDecorators={roleAccess:[{type:i.Input,args:["roleAccess"]}]},t}(),J=function(){function t(){}return t.prototype.transform=function(t){return iNet.getSSOUrl(t)},t.decorators=[{type:i.Pipe,args:[{name:"ssoUrl"}]}],t}(),Q="avatarVersion",q=function(){function r(t,e){return this.http=t,this.coreService=e,this.profile=null,this.systemProfile=null,this.$profileObservableCache={},this.inventory={},this.url={get:iNet.getPUrl("gl/contact/profile/load"),view:iNet.getPUrl("system/userprofile/view"),update:iNet.getPUrl("system/userprofile/update"),change_password:iNet.getPUrl("system/account/passsword")},r.instance=r.instance||this}return r.prototype.loadProfile=function(){var e=this;return this.http.postJSON(this.url.get).map(function(t){return t}).do(function(t){return e.profile=t})},r.prototype.loadSystemProfile=function(){var e=this;return this.http.postJSON(this.url.view).map(function(t){return t}).do(function(t){return e.systemProfile=t})},r.prototype.getSystemProfile=function(){return this.systemProfile?n.Observable.of(this.systemProfile):(this.$systemProfileCache||(this.$systemProfileCache=this.loadSystemProfile().pipe(a.shareReplay(1))),this.$systemProfileCache)},r.prototype.getProfile=function(){return this.profile?n.Observable.of(this.profile):(this.$cache||(this.$cache=this.loadProfile().pipe(a.shareReplay(1))),this.$cache)},r.prototype.update=function(t){return this.http.postJSON(this.url.update,t)},r.prototype.changePassword=function(t){return this.http.postJSON(this.url.change_password,t)},r.prototype.getAvatarUrlByProfile=function(t){var e;return e=this.coreService.getFileUrl(t.avatar),0<this.getAvatarVersion()&&(e=e+"?version="+this.getAvatarVersion()),e},r.prototype.getAvatarUrl=function(){var r=this;return new Promise(function(e){r.getProfile().subscribe(function(t){e(r.getAvatarUrlByProfile(t))},function(t){e()})})},r.prototype.getFullName=function(){var t=this;return new Promise(function(r){t.getProfile().subscribe(function(t){var e="";t.lastName&&(e+=t.lastName),t.middleName&&(e+=" "+t.middleName),t.firstName&&(e+=" "+t.firstName),t.name=e||iNet.displayName||iNet.username,r(t.name.trim())},function(t){r()})})},r.prototype.getSignPictureId=function(){var t=this;return new Promise(function(r){t.getSystemProfile().subscribe(function(t){var e="";t.user&&t.user.signPictureID&&(e=t.user.signPictureID),r(e)},function(t){r()})})},r.prototype.getSignVerifyNumber=function(){var t=this;return new Promise(function(r){t.getSystemProfile().subscribe(function(t){var e="";t.user&&t.user.signVerify&&(e=t.user.signVerify),r(e)},function(t){r()})})},r.prototype.increaseAvatarVersion=function(){localStorage.setItem(Q,(this.getAvatarVersion()+1).toString())},r.prototype.getAvatarVersion=function(){return Number(localStorage.getItem(Q))},r.prototype.getProfileByUsername=function(e){var r=this;return this.inventory.hasOwnProperty(e)?n.Observable.of(this.inventory[e]):(this.$profileObservableCache[e]||(this.$profileObservableCache[e]=this.http.getJSON(this.url.get,{username:e}).do(function(t){return r.inventory[e]=t}).pipe(a.shareReplay(1))),this.$profileObservableCache[e])},r.prototype.getAvatarUrlByUsername=function(t){var r=this;return new Promise(function(e){r.getProfileByUsername(t).subscribe(function(t){t.avatar?e(r.coreService.getFileUrl(t.avatar)):e()},function(t){e()})})},r.prototype.getDefaultAvatarUrl=function(){return r.DEFAULT_AVATAR_URL},r.instance=null,r.DEFAULT_AVATAR_URL="data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/CABEIAOEA4QMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAAAQIEBQYHA//aAAgBAQAAAAD3kAkAgATAEiUoQQAmASmWs0WspmdHuIiEAmBKZnW8RhA3/RbWsICYJTafh5t8AGR6batUCYJm0zzvEgD0bZRWIgmEzaZclygA9B26K1QmJWtJyXKAD0fYkUiExM3kc1xgA9QyBWiJLWkaLhAB6bliK1iU2sHI8qAOq64KVFrSHJcoAOi7YK1gtcHOcUAOu6oIrWVrAxvPcIBmeh5IKVleQMTzICfSc4CtS8gfLy2Afb076AVqm0gPOtYDou2AVqm0gOU5IHYdNYCtU2kDWedwB3e9ArUvIVwOK1oDM7jY3CtS1jE5/nMUAH26Poc4rSVp1fOaP5gAC266LcRWfnzehwQAABlb7pPvweoAAAAZ3ceeUAAAAN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I0lMrF0LI49uvkvhS35SJzgIZbJ0Ts9JX/AI+G5NHMONDc5Q43AlRHYjWm45s0VgeiNoPbr4PlFh8aGxDWl1BTcaRSNEXJPbfnSFpcbStBulQBB7QdwaOYcaG4xzE04bBKtvSOApRbkbcaJubncZMYmmXCTFVfpWEgEnmL7O7ZuDRzc6GstxDSdJxaUDtUbVIxzDo4OlKbKhySb+VY1iy8VlBZSEtouEAH38dzhmIOYZMTIbAVsIKSdhFRsocOkJTeQhtZ/Sq/nTbzTwu04hY/2qB1jRzChqSsThQv7iS2g8NG9z3DbWIZXJFkwE343U4ny21MxCTPdLkhzSVa2wAb2NLehupdYXoqSbjZesPyucSrRnp0kW9ZtG2/faouMQJmxmSjS9lXonxzmjqCr2FzU3KGBBJQtaluckpTWIZVyZIKYoVHSeYIJ8tlOvOvrK3XFLUeJUbnqKFrbUFIUUqHAg2rD8p5sVQD61SG78FHb32qHlPAllKCVtOH9KhfxFBaVi6TcUc7zyGG1OOKCUpFySamZXhOkiKxfsUo/apeLTJiiVvKSCfVSogefV4uISoirtPKA9kqNqiZXqBCJTAIJ9ZJ4d9RJbUyOl5pQKVcr8KvWO4s5PlKaFgy2SkW57ePW8MxN3DZAcRZSTcFJ51+KRP5R4/aniS+4T7R650y6WbuKJ5k9c6VXZR2m/XOkV2+H73/AP/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQIBAT8AYf/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQMBAT8AYf/Z",r.decorators=[{type:i.Injectable}],r.ctorParameters=function(){return[{type:P},{type:I}]},r}(),M=function(){},k=function(){},V=function(){function t(){this._vi_accents=["à","á","ạ","ả","ã","â","ầ","ấ","ậ","ẩ","ẫ","ă","ằ","ắ","ặ","ẳ","ẵ","è","é","ẹ","ẻ","ẽ","ê","ề","ế","ệ","ể","ễ","ì","í","ị","ỉ","ĩ","ò","ó","ọ","ỏ","õ","ô","ồ","ố","ộ","ổ","ỗ","ơ","ờ","ớ","ợ","ở","ỡ","ù","ú","ụ","ủ","ũ","ư","ừ","ứ","ự","ử","ữ","ỳ","ý","ỵ","ỷ","ỹ","đ","À","Á","Ạ","Ả","Ã","Â","Ầ","Ấ","Ậ","Ẩ","Ẫ","Ă","Ằ","Ắ","Ặ","Ẳ","Ẵ","È","É","Ẹ","Ẻ","Ẽ","Ê","Ề","Ế","Ệ","Ể","Ễ","Ì","Í","Ị","Ỉ","Ĩ","Ò","Ó","Ọ","Ỏ","Õ","Ô","Ồ","Ố","Ộ","Ổ","Ỗ","Ơ","Ờ","Ớ","Ợ","Ở","Ỡ","Ù","Ú","Ụ","Ủ","Ũ","Ư","Ừ","Ứ","Ự","Ử","Ữ","Ỳ","Ý","Ỵ","Ỷ","Ỹ","Đ"],this._en_accents=["a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","a","e","e","e","e","e","e","e","e","e","e","e","i","i","i","i","i","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","u","u","u","u","u","u","u","u","u","u","u","y","y","y","y","y","d","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","A","E","E","E","E","E","E","E","E","E","E","E","I","I","I","I","I","O","O","O","O","O","O","O","O","O","O","O","O","O","O","O","O","O","U","U","U","U","U","U","U","U","U","U","U","Y","Y","Y","Y","Y","D"]}return t.prototype.viToEn=function(t){var r=this;return t.replace(/[^\u0000-\u007E]/g,function(t){var e=r._vi_accents.indexOf(t);return e<0?t:r._en_accents[e]})},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),F=function(){function t(){this.timeCache=3e5,this.__storage={},this.__queue={}}return t.prototype.promiseQueue=function(t,e,r){this.__queue[t]?this.__queue[t].push(r):(this.__queue[t]=[r],e(t))},t.prototype.resolveQueue=function(t,e,r){this.__queue[t]&&(this.__queue[t].forEach(function(t){try{t.apply(e,r)}catch(t){}}),delete this.__queue[t])},t.prototype.getData=function(t){var e=this.__storage[t];if(e&&(new Date).getTime()-e.time<=e.timeCache)return e.value},t.prototype.setData=function(t,e,r){var n=r&&r.timeCache||this.timeCache;this.__storage[t]={time:(new Date).getTime(),timeCache:n,value:e}},t.prototype.removeData=function(t){delete this.__storage[t]},t.prototype.clearData=function(){this.__storage={}},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),L=function(){function t(t){this.element=t,this.el=t.nativeElement,this._clientWidth=this.el.clientWidth}return Object.defineProperty(t.prototype,"minHeight",{get:function(){return this._minHeight},set:function(t){this._minHeight=t,this.updateMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(t){this._maxHeight=t,this.updateMaxHeight()},enumerable:!0,configurable:!0}),t.prototype.onResize=function(){this.el.clientWidth!==this._clientWidth&&(this._clientWidth=this.element.nativeElement.clientWidth,this.adjust())},t.prototype.onInput=function(){this.adjust()},t.prototype.ngAfterViewInit=function(){var t=window.getComputedStyle(this.el,null);"both"===t.resize?this.el.style.resize="horizontal":"vertical"===t.resize&&(this.el.style.resize="none"),this.adjust()},t.prototype.adjust=function(){this.el.style.overflow="hidden",this.el.style.height="auto",this.el.style.height=this.el.scrollHeight+"px"},t.prototype.updateMinHeight=function(){this.el.style.minHeight=this._minHeight+"px"},t.prototype.updateMaxHeight=function(){this.el.style.maxHeight=this._maxHeight+"px"},t.decorators=[{type:i.Directive,args:[{selector:"textarea[appAutoSize]",exportAs:"appAutoSize"}]}],t.ctorParameters=function(){return[{type:i.ElementRef}]},t.propDecorators={minHeight:[{type:i.Input,args:["minHeight"]}],maxHeight:[{type:i.Input,args:["maxHeight"]}],onResize:[{type:i.HostListener,args:["window:resize"]}],onInput:[{type:i.HostListener,args:["input"]}]},t}(),W=function(){function t(t,e){this._el=t,this.userProfileService=e,this.usercode=iNet.username}return t.prototype.ngOnInit=function(){this._el.nativeElement.addEventListener("error",this._loadAvatarError.bind(this)),this._setAvatar()},t.prototype.ngOnChanges=function(){this._setAvatar()},t.prototype._setAvatar=function(){var e=this;this.usercode?this.userProfileService.getAvatarUrlByUsername(this.usercode).then(function(t){t?e._el.nativeElement.src=t:e._loadAvatarError()}):this._loadAvatarError()},t.prototype._loadAvatarError=function(){this._el.nativeElement.src=this.userProfileService.getDefaultAvatarUrl()},t.decorators=[{type:i.Directive,args:[{selector:"img[userAvatar]"}]}],t.ctorParameters=function(){return[{type:i.ElementRef},{type:q}]},t.propDecorators={usercode:[{type:i.Input}]},t}(),K=function(){function t(){this._loaded=[],this._version=""}return t.prototype.load=function(t,e){if(t.length<1)return e();this._loadResources(t,e)},t.prototype.loadJS=function(t,e){this._loadWithTagName("script",{type:"text/javascript",src:this.getFullUrlJS(t)},e)},t.prototype.loadCSS=function(t,e){this._loadWithTagName("link",{type:"text/css",rel:"stylesheet",href:t},e)},t.prototype.getFullUrlJS=function(t){return t.indexOf("//")<0&&iNet.fileServer?(t.startsWith("/")&&(t=t.substr(1,t.length)),iNet.fileServer+t):t},t.prototype.isLoaded=function(t){return-1<this._loaded.indexOf(t)},t.prototype._loadResources=function(t,e){var r=this,n=this._groupResources(t),o=function(){if(n.length<1)return e();r._loadGroups(n.splice(0,1)[0],o)};o()},t.prototype._groupResources=function(t){for(var e,r=[],n=0;n<t.length;n++)e||(e=[],r.push(e)),e.push(t[n]),t[n].sync&&(e=null);return r},t.prototype._loadGroups=function(t,e){var r=this,n=[];t.forEach(function(t){return n.push(r._load(t))}),Promise.all(n).then(function(){e()})},t.prototype._load=function(e){var r=this;return new Promise(function(t){"css"===e.type?r.loadCSS(e.url,t):r.loadJS(e.url,t)})},t.prototype._loadWithTagName=function(t,e,r){var n=this,o=e.src||e.href;if(this.isLoaded(o))return r();var i=document.createElement(t);for(var s in e)i[s]=e[s];i.onload=function(){n._loaded.push(o),r()},i.onerror=function(t){console.warn("Load resource error: "+o),console.warn(t),n._loaded.push(o),r()},document.head.appendChild(i)},t.prototype._initScriptVersion=function(){for(var t=$("script"),e=0;e<t.length;e++){var r=t[e].src,n=r.indexOf("?version=");if(-1<n){this._version=r.substr(n+1,r.length);break}}},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}();function z(t){return function(){return t.load()}}var Y=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{imports:[f.CommonModule],declarations:[T,E,L,W,J],exports:[T,E,L,W,J],providers:[I,P,_,V,q,F,K,{provide:i.APP_INITIALIZER,useFactory:z,multi:!0,deps:[B]},B,A]}]}],t}();t.CoreService=I,t.SuggestionService=O,t.ErrorMessage={CLIENT:"Client-side error occurred",SERVER:"Server-side error occurred",TYPE:"ERROR"},t.LoadingIndicatorService=A,t.LoadingIndicator=d,t.HttpUrlEncodingCodec=y,t.HttpClientService=P,t.InfiniteScrollerDirective=E,t.NewPassword=N,t.NotificationService=_,t.Paging=x,t.NotifyParams=C,t.ErrorResponse=D,t.ResponseData=R,t.ResponseElementsData=H,t.RoleAccessDirective=T,t.SecurityService=B,t.SSOUrlPipe=J,t.UserProfileService=q,t.UserProfile=M,t.UserResponseData=k,t.AccentService=V,t.CacheStorageService=F,t.AutoSizeDirective=L,t.AvatarDirective=W,t.ResourceLoaderService=K,t.initApp=z,t.CoreModule=Y,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -138,2 +138,36 @@ import { Injectable, Directive, ElementRef, Input, TemplateRef, ViewContainerRef, Pipe, HostListener, NgModule, APP_INITIALIZER } from '@angular/core'; | ||
*/ | ||
class HttpUrlEncodingCodec { | ||
/** | ||
* @param {?} k | ||
* @return {?} | ||
*/ | ||
encodeKey(k) { return standardEncoding(k); } | ||
/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
encodeValue(v) { return standardEncoding(v); } | ||
/** | ||
* @param {?} k | ||
* @return {?} | ||
*/ | ||
decodeKey(k) { return decodeURIComponent(k); } | ||
/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
decodeValue(v) { return decodeURIComponent(v); } | ||
} | ||
/** | ||
* @param {?} v | ||
* @return {?} | ||
*/ | ||
function standardEncoding(v) { | ||
return encodeURIComponent(v); | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class HttpClientService extends HttpClient { | ||
@@ -157,3 +191,3 @@ /** | ||
} | ||
return Object.getOwnPropertyNames(obj).reduce((p, key) => p.set(key, obj[key] == undefined ? '' : obj[key]), new HttpParams()); | ||
return Object.getOwnPropertyNames(obj).reduce((p, key) => p.set(key, obj[key] == undefined ? '' : obj[key]), new HttpParams({ encoder: new HttpUrlEncodingCodec() })); | ||
} | ||
@@ -1733,2 +1767,2 @@ /** | ||
export { CoreService, SuggestionService, ErrorMessage, LoadingIndicatorService, LoadingIndicator, HttpClientService, InfiniteScrollerDirective, NewPassword, NotificationService, Paging, NotifyParams, ErrorResponse, ResponseData, ResponseElementsData, RoleAccessDirective, SecurityService, SSOUrlPipe, UserProfileService, UserProfile, UserResponseData, AccentService, CacheStorageService, AutoSizeDirective, AvatarDirective, ResourceLoaderService, initApp, CoreModule }; | ||
export { CoreService, SuggestionService, ErrorMessage, LoadingIndicatorService, LoadingIndicator, HttpUrlEncodingCodec, HttpClientService, InfiniteScrollerDirective, NewPassword, NotificationService, Paging, NotifyParams, ErrorResponse, ResponseData, ResponseElementsData, RoleAccessDirective, SecurityService, SSOUrlPipe, UserProfileService, UserProfile, UserResponseData, AccentService, CacheStorageService, AutoSizeDirective, AvatarDirective, ResourceLoaderService, initApp, CoreModule }; |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"CoreService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"}]}],"logout":[{"__symbolic":"method"}],"getAvatar":[{"__symbolic":"method"}],"isExternalUser":[{"__symbolic":"method"}],"isCommunity":[{"__symbolic":"method"}],"getOrg":[{"__symbolic":"method"}],"searchOrgan":[{"__symbolic":"method"}],"getSystemApplication":[{"__symbolic":"method"}],"searchFirmAccount":[{"__symbolic":"method"}],"updateLanguage":[{"__symbolic":"method"}],"getImageUrl":[{"__symbolic":"method"}],"getFileUrl":[{"__symbolic":"method"}],"getSsoRedirect":[{"__symbolic":"method"}],"convergePlugins":[{"__symbolic":"method"}],"convergeSearch":[{"__symbolic":"method"}],"setEnvironment":[{"__symbolic":"method"}],"getEnvironment":[{"__symbolic":"method"}],"getPath":[{"__symbolic":"method"}],"getFileServerPath":[{"__symbolic":"method"}],"getAssetsPath":[{"__symbolic":"method"}]},"statics":{"instance":null,"environment":{"production":false}}},"LogoutData":{"__symbolic":"interface"},"SsoRedirectData":{"__symbolic":"interface"},"PathRedirectData":{"__symbolic":"interface"},"SuggestionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"}]}],"saveSuggestion":[{"__symbolic":"method"}],"loadSuggestion":[{"__symbolic":"method"}]},"statics":{"instance":null}},"SuggestionParamData":{"__symbolic":"interface"},"SuggestionResponse":{"__symbolic":"interface"},"SuggestionItem":{"__symbolic":"interface"},"ErrorMessage":{"CLIENT":"Client-side error occurred","SERVER":"Server-side error occurred","TYPE":"ERROR"},"LoadingIndicatorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":1,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"setElementId":[{"__symbolic":"method"}],"getElementId":[{"__symbolic":"method"}],"getIndicator":[{"__symbolic":"method"}],"getLoadingIndicator":[{"__symbolic":"method"}],"showLoading":[{"__symbolic":"method"}],"hideLoading":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"instance":null,"loadingIndicator":null}},"LoadingIndicator":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":82,"character":27,"context":{"typeName":"HTMLElement"},"module":"./src/loading-indicator.service"},{"__symbolic":"error","message":"Could not resolve type","line":82,"character":44,"context":{"typeName":"HTMLElement"},"module":"./src/loading-indicator.service"},{"__symbolic":"reference","name":"string"}]}]}},"HttpClientService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":6,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpHandler","line":9,"character":25},{"__symbolic":"reference","name":"LoadingIndicatorService"}]}],"convertToHttpParams":[{"__symbolic":"method"}],"getJSON":[{"__symbolic":"method"}],"postJSON":[{"__symbolic":"method"}],"putJSON":[{"__symbolic":"method"}],"deleteJSON":[{"__symbolic":"method"}],"convertToFormData":[{"__symbolic":"method"}],"downloadFile":[{"__symbolic":"method"}],"showLoading":[{"__symbolic":"method"}],"hideLoading":[{"__symbolic":"method"}]}},"InfiniteScrollerDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":21,"character":1},"arguments":[{"selector":"[appInfiniteScroller]"}]}],"members":{"scrollCallback":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"immediateCallback":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"scrollPercent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"isSubmit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":42,"character":27}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"registerScrollEvent":[{"__symbolic":"method"}],"streamScrollEvents":[{"__symbolic":"method"}],"requestCallbackOnScroll":[{"__symbolic":"method"}],"isScrollSubmit":[{"__symbolic":"method"}]}},"NewPassword":{"__symbolic":"class","members":{}},"NotificationService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"showMessage":[{"__symbolic":"method"}]}},"Paging":{"__symbolic":"class","members":{}},"NotifyParams":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Paging"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"boolean"}]}]}},"WebResponse":{"__symbolic":"interface"},"ErrorResponse":{"__symbolic":"class","members":{}},"ResponseData":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ErrorResponse"},"members":{}},"ResponseElementsData":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ErrorResponse"},"members":{}},"RoleAccessDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[roleAccess]"}]}],"members":{"roleAccess":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3},"arguments":["roleAccess"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":11,"character":37},{"__symbolic":"reference","name":"SecurityService"}]}],"ngOnInit":[{"__symbolic":"method"}],"applyPermission":[{"__symbolic":"method"}]}},"SecurityService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"}]}],"load":[{"__symbolic":"method"}],"parserRoleFrom":[{"__symbolic":"method"}],"uniqueArray":[{"__symbolic":"method"}],"append":[{"__symbolic":"method"}],"hasRole":[{"__symbolic":"method"}],"ping":[{"__symbolic":"method"}]},"statics":{"instance":null}},"SSOUrlPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":2,"character":1},"arguments":[{"name":"ssoUrl"}]}],"members":{"transform":[{"__symbolic":"method"}]}},"UserProfileService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"},{"__symbolic":"reference","name":"CoreService"}]}],"loadProfile":[{"__symbolic":"method"}],"loadSystemProfile":[{"__symbolic":"method"}],"getSystemProfile":[{"__symbolic":"method"}],"getProfile":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"changePassword":[{"__symbolic":"method"}],"getAvatarUrlByProfile":[{"__symbolic":"method"}],"getAvatarUrl":[{"__symbolic":"method"}],"getFullName":[{"__symbolic":"method"}],"getSignPictureId":[{"__symbolic":"method"}],"getSignVerifyNumber":[{"__symbolic":"method"}],"increaseAvatarVersion":[{"__symbolic":"method"}],"getAvatarVersion":[{"__symbolic":"method"}],"getProfileByUsername":[{"__symbolic":"method"}],"getAvatarUrlByUsername":[{"__symbolic":"method"}],"getDefaultAvatarUrl":[{"__symbolic":"method"}]},"statics":{"instance":null,"DEFAULT_AVATAR_URL":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wCE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eJUbnqKFrbUFIUUqHAg2rD8p5sVQD61SG78FHb32qHlPAllKCVtOH9KhfxFBaVi6TcUc7zyGG1OOKCUpFySamZXhOkiKxfsUo/apeLTJiiVvKSCfVSogefV4uISoirtPKA9kqNqiZXqBCJTAIJ9ZJ4d9RJbUyOl5pQKVcr8KvWO4s5PlKaFgy2SkW57ePW8MxN3DZAcRZSTcFJ51+KRP5R4/aniS+4T7R650y6WbuKJ5k9c6VXZR2m/XOkV2+H73/AP/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQIBAT8AYf/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQMBAT8AYf/Z"}},"UserProfile":{"__symbolic":"class","members":{}},"UserResponseData":{"__symbolic":"class","members":{}},"AccentService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"viToEn":[{"__symbolic":"method"}]}},"CacheStorageService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"promiseQueue":[{"__symbolic":"method"}],"resolveQueue":[{"__symbolic":"method"}],"getData":[{"__symbolic":"method"}],"setData":[{"__symbolic":"method"}],"removeData":[{"__symbolic":"method"}],"clearData":[{"__symbolic":"method"}]}},"CacheStorageOptions":{"__symbolic":"interface"},"CacheStorageItem":{"__symbolic":"interface"},"AutoSizeDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"textarea[appAutoSize]","exportAs":"appAutoSize"}]}],"members":{"minHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3},"arguments":["minHeight"]}]}],"maxHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3},"arguments":["maxHeight"]}]}],"onResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":36,"character":3},"arguments":["window:resize"]}]}],"onInput":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":44,"character":3},"arguments":["input"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":49,"character":30}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"adjust":[{"__symbolic":"method"}],"updateMinHeight":[{"__symbolic":"method"}],"updateMaxHeight":[{"__symbolic":"method"}]}},"AvatarDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"img[userAvatar]"}]}],"members":{"usercode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":11,"character":29},{"__symbolic":"reference","name":"UserProfileService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_setAvatar":[{"__symbolic":"method"}],"_loadAvatarError":[{"__symbolic":"method"}]}},"ResourceLoaderService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"load":[{"__symbolic":"method"}],"loadJS":[{"__symbolic":"method"}],"loadCSS":[{"__symbolic":"method"}],"getFullUrlJS":[{"__symbolic":"method"}],"isLoaded":[{"__symbolic":"method"}],"_loadResources":[{"__symbolic":"method"}],"_groupResources":[{"__symbolic":"method"}],"_loadGroups":[{"__symbolic":"method"}],"_load":[{"__symbolic":"method"}],"_loadWithTagName":[{"__symbolic":"method"}],"_initScriptVersion":[{"__symbolic":"method"}]}},"Resource":{"__symbolic":"interface"},"initApp":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Lambda not supported","line":3,"character":11,"module":"./src/init-app"}},"CoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":19,"character":14}],"declarations":[{"__symbolic":"reference","name":"RoleAccessDirective"},{"__symbolic":"reference","name":"InfiniteScrollerDirective"},{"__symbolic":"reference","name":"AutoSizeDirective"},{"__symbolic":"reference","name":"AvatarDirective"},{"__symbolic":"reference","name":"SSOUrlPipe"}],"exports":[{"__symbolic":"reference","name":"RoleAccessDirective"},{"__symbolic":"reference","name":"InfiniteScrollerDirective"},{"__symbolic":"reference","name":"AutoSizeDirective"},{"__symbolic":"reference","name":"AvatarDirective"},{"__symbolic":"reference","name":"SSOUrlPipe"}],"providers":[{"__symbolic":"reference","name":"CoreService"},{"__symbolic":"reference","name":"HttpClientService"},{"__symbolic":"reference","name":"NotificationService"},{"__symbolic":"reference","name":"AccentService"},{"__symbolic":"reference","name":"UserProfileService"},{"__symbolic":"reference","name":"CacheStorageService"},{"__symbolic":"reference","name":"ResourceLoaderService"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":43,"character":23},"useFactory":{"__symbolic":"reference","name":"initApp"},"multi":true,"deps":[{"__symbolic":"reference","name":"SecurityService"}],"$quoted$":["provide","useFactory","multi","deps"]},{"__symbolic":"reference","name":"SecurityService"},{"__symbolic":"reference","name":"LoadingIndicatorService"}]}]}],"members":{}}},"origins":{"CoreService":"./src/core.service","LogoutData":"./src/core.service","SsoRedirectData":"./src/core.service","PathRedirectData":"./src/core.service","SuggestionService":"./src/suggestion.service","SuggestionParamData":"./src/suggestion.service","SuggestionResponse":"./src/suggestion.service","SuggestionItem":"./src/suggestion.service","ErrorMessage":"./src/error-message","LoadingIndicatorService":"./src/loading-indicator.service","LoadingIndicator":"./src/loading-indicator.service","HttpClientService":"./src/http-client.service","InfiniteScrollerDirective":"./src/infinite-scroller.directive","NewPassword":"./src/new-password","NotificationService":"./src/notification.service","Paging":"./src/paging","NotifyParams":"./src/notify-params","WebResponse":"./src/response-data","ErrorResponse":"./src/response-data","ResponseData":"./src/response-data","ResponseElementsData":"./src/response-data","RoleAccessDirective":"./src/role-access.directive","SecurityService":"./src/security.service","SSOUrlPipe":"./src/ssourl.pipe","UserProfileService":"./src/user-profile.service","UserProfile":"./src/user-profile","UserResponseData":"./src/user-response-data","AccentService":"./src/accent.service","CacheStorageService":"./src/cache-storage.service","CacheStorageOptions":"./src/cache-storage.service","CacheStorageItem":"./src/cache-storage.service","AutoSizeDirective":"./src/autosize.directive","AvatarDirective":"./src/avatar.directive","ResourceLoaderService":"./src/resource-loader.service","Resource":"./src/resource-loader.service","initApp":"./src/init-app","CoreModule":"./src/core.module"},"importAs":"inet-core"} | ||
{"__symbolic":"module","version":4,"metadata":{"CoreService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"}]}],"logout":[{"__symbolic":"method"}],"getAvatar":[{"__symbolic":"method"}],"isExternalUser":[{"__symbolic":"method"}],"isCommunity":[{"__symbolic":"method"}],"getOrg":[{"__symbolic":"method"}],"searchOrgan":[{"__symbolic":"method"}],"getSystemApplication":[{"__symbolic":"method"}],"searchFirmAccount":[{"__symbolic":"method"}],"updateLanguage":[{"__symbolic":"method"}],"getImageUrl":[{"__symbolic":"method"}],"getFileUrl":[{"__symbolic":"method"}],"getSsoRedirect":[{"__symbolic":"method"}],"convergePlugins":[{"__symbolic":"method"}],"convergeSearch":[{"__symbolic":"method"}],"setEnvironment":[{"__symbolic":"method"}],"getEnvironment":[{"__symbolic":"method"}],"getPath":[{"__symbolic":"method"}],"getFileServerPath":[{"__symbolic":"method"}],"getAssetsPath":[{"__symbolic":"method"}]},"statics":{"instance":null,"environment":{"production":false}}},"LogoutData":{"__symbolic":"interface"},"SsoRedirectData":{"__symbolic":"interface"},"PathRedirectData":{"__symbolic":"interface"},"SuggestionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"}]}],"saveSuggestion":[{"__symbolic":"method"}],"loadSuggestion":[{"__symbolic":"method"}]},"statics":{"instance":null}},"SuggestionParamData":{"__symbolic":"interface"},"SuggestionResponse":{"__symbolic":"interface"},"SuggestionItem":{"__symbolic":"interface"},"ErrorMessage":{"CLIENT":"Client-side error occurred","SERVER":"Server-side error occurred","TYPE":"ERROR"},"LoadingIndicatorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":1,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"setElementId":[{"__symbolic":"method"}],"getElementId":[{"__symbolic":"method"}],"getIndicator":[{"__symbolic":"method"}],"getLoadingIndicator":[{"__symbolic":"method"}],"showLoading":[{"__symbolic":"method"}],"hideLoading":[{"__symbolic":"method"}],"complete":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"instance":null,"loadingIndicator":null}},"LoadingIndicator":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":82,"character":27,"context":{"typeName":"HTMLElement"},"module":"./src/loading-indicator.service"},{"__symbolic":"error","message":"Could not resolve type","line":82,"character":44,"context":{"typeName":"HTMLElement"},"module":"./src/loading-indicator.service"},{"__symbolic":"reference","name":"string"}]}]}},"HttpUrlEncodingCodec":{"__symbolic":"class","members":{"encodeKey":[{"__symbolic":"method"}],"encodeValue":[{"__symbolic":"method"}],"decodeKey":[{"__symbolic":"method"}],"decodeValue":[{"__symbolic":"method"}]}},"HttpClientService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":7,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpHandler","line":10,"character":25},{"__symbolic":"reference","name":"LoadingIndicatorService"}]}],"convertToHttpParams":[{"__symbolic":"method"}],"getJSON":[{"__symbolic":"method"}],"postJSON":[{"__symbolic":"method"}],"putJSON":[{"__symbolic":"method"}],"deleteJSON":[{"__symbolic":"method"}],"convertToFormData":[{"__symbolic":"method"}],"downloadFile":[{"__symbolic":"method"}],"showLoading":[{"__symbolic":"method"}],"hideLoading":[{"__symbolic":"method"}]}},"InfiniteScrollerDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":21,"character":1},"arguments":[{"selector":"[appInfiniteScroller]"}]}],"members":{"scrollCallback":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"immediateCallback":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"scrollPercent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":3}}]}],"isSubmit":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":39,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":42,"character":27}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"registerScrollEvent":[{"__symbolic":"method"}],"streamScrollEvents":[{"__symbolic":"method"}],"requestCallbackOnScroll":[{"__symbolic":"method"}],"isScrollSubmit":[{"__symbolic":"method"}]}},"NewPassword":{"__symbolic":"class","members":{}},"NotificationService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"showMessage":[{"__symbolic":"method"}]}},"Paging":{"__symbolic":"class","members":{}},"NotifyParams":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Paging"},"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"boolean"}]}]}},"WebResponse":{"__symbolic":"interface"},"ErrorResponse":{"__symbolic":"class","members":{}},"ResponseData":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ErrorResponse"},"members":{}},"ResponseElementsData":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"ErrorResponse"},"members":{}},"RoleAccessDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[roleAccess]"}]}],"members":{"roleAccess":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3},"arguments":["roleAccess"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":11,"character":37},{"__symbolic":"reference","name":"SecurityService"}]}],"ngOnInit":[{"__symbolic":"method"}],"applyPermission":[{"__symbolic":"method"}]}},"SecurityService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"}]}],"load":[{"__symbolic":"method"}],"parserRoleFrom":[{"__symbolic":"method"}],"uniqueArray":[{"__symbolic":"method"}],"append":[{"__symbolic":"method"}],"hasRole":[{"__symbolic":"method"}],"ping":[{"__symbolic":"method"}]},"statics":{"instance":null}},"SSOUrlPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":2,"character":1},"arguments":[{"name":"ssoUrl"}]}],"members":{"transform":[{"__symbolic":"method"}]}},"UserProfileService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"HttpClientService"},{"__symbolic":"reference","name":"CoreService"}]}],"loadProfile":[{"__symbolic":"method"}],"loadSystemProfile":[{"__symbolic":"method"}],"getSystemProfile":[{"__symbolic":"method"}],"getProfile":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"changePassword":[{"__symbolic":"method"}],"getAvatarUrlByProfile":[{"__symbolic":"method"}],"getAvatarUrl":[{"__symbolic":"method"}],"getFullName":[{"__symbolic":"method"}],"getSignPictureId":[{"__symbolic":"method"}],"getSignVerifyNumber":[{"__symbolic":"method"}],"increaseAvatarVersion":[{"__symbolic":"method"}],"getAvatarVersion":[{"__symbolic":"method"}],"getProfileByUsername":[{"__symbolic":"method"}],"getAvatarUrlByUsername":[{"__symbolic":"method"}],"getDefaultAvatarUrl":[{"__symbolic":"method"}]},"statics":{"instance":null,"DEFAULT_AVATAR_URL":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxND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G1OOKCUpFySamZXhOkiKxfsUo/apeLTJiiVvKSCfVSogefV4uISoirtPKA9kqNqiZXqBCJTAIJ9ZJ4d9RJbUyOl5pQKVcr8KvWO4s5PlKaFgy2SkW57ePW8MxN3DZAcRZSTcFJ51+KRP5R4/aniS+4T7R650y6WbuKJ5k9c6VXZR2m/XOkV2+H73/AP/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQIBAT8AYf/EABQRAQAAAAAAAAAAAAAAAAAAAHD/2gAIAQMBAT8AYf/Z"}},"UserProfile":{"__symbolic":"class","members":{}},"UserResponseData":{"__symbolic":"class","members":{}},"AccentService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"viToEn":[{"__symbolic":"method"}]}},"CacheStorageService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"promiseQueue":[{"__symbolic":"method"}],"resolveQueue":[{"__symbolic":"method"}],"getData":[{"__symbolic":"method"}],"setData":[{"__symbolic":"method"}],"removeData":[{"__symbolic":"method"}],"clearData":[{"__symbolic":"method"}]}},"CacheStorageOptions":{"__symbolic":"interface"},"CacheStorageItem":{"__symbolic":"interface"},"AutoSizeDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"textarea[appAutoSize]","exportAs":"appAutoSize"}]}],"members":{"minHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3},"arguments":["minHeight"]}]}],"maxHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3},"arguments":["maxHeight"]}]}],"onResize":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":36,"character":3},"arguments":["window:resize"]}]}],"onInput":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":44,"character":3},"arguments":["input"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":49,"character":30}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"adjust":[{"__symbolic":"method"}],"updateMinHeight":[{"__symbolic":"method"}],"updateMaxHeight":[{"__symbolic":"method"}]}},"AvatarDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"img[userAvatar]"}]}],"members":{"usercode":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":11,"character":29},{"__symbolic":"reference","name":"UserProfileService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_setAvatar":[{"__symbolic":"method"}],"_loadAvatarError":[{"__symbolic":"method"}]}},"ResourceLoaderService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"load":[{"__symbolic":"method"}],"loadJS":[{"__symbolic":"method"}],"loadCSS":[{"__symbolic":"method"}],"getFullUrlJS":[{"__symbolic":"method"}],"isLoaded":[{"__symbolic":"method"}],"_loadResources":[{"__symbolic":"method"}],"_groupResources":[{"__symbolic":"method"}],"_loadGroups":[{"__symbolic":"method"}],"_load":[{"__symbolic":"method"}],"_loadWithTagName":[{"__symbolic":"method"}],"_initScriptVersion":[{"__symbolic":"method"}]}},"Resource":{"__symbolic":"interface"},"initApp":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"error","message":"Lambda not supported","line":3,"character":11,"module":"./src/init-app"}},"CoreModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":18,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":19,"character":14}],"declarations":[{"__symbolic":"reference","name":"RoleAccessDirective"},{"__symbolic":"reference","name":"InfiniteScrollerDirective"},{"__symbolic":"reference","name":"AutoSizeDirective"},{"__symbolic":"reference","name":"AvatarDirective"},{"__symbolic":"reference","name":"SSOUrlPipe"}],"exports":[{"__symbolic":"reference","name":"RoleAccessDirective"},{"__symbolic":"reference","name":"InfiniteScrollerDirective"},{"__symbolic":"reference","name":"AutoSizeDirective"},{"__symbolic":"reference","name":"AvatarDirective"},{"__symbolic":"reference","name":"SSOUrlPipe"}],"providers":[{"__symbolic":"reference","name":"CoreService"},{"__symbolic":"reference","name":"HttpClientService"},{"__symbolic":"reference","name":"NotificationService"},{"__symbolic":"reference","name":"AccentService"},{"__symbolic":"reference","name":"UserProfileService"},{"__symbolic":"reference","name":"CacheStorageService"},{"__symbolic":"reference","name":"ResourceLoaderService"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"APP_INITIALIZER","line":43,"character":23},"useFactory":{"__symbolic":"reference","name":"initApp"},"multi":true,"deps":[{"__symbolic":"reference","name":"SecurityService"}],"$quoted$":["provide","useFactory","multi","deps"]},{"__symbolic":"reference","name":"SecurityService"},{"__symbolic":"reference","name":"LoadingIndicatorService"}]}]}],"members":{}}},"origins":{"CoreService":"./src/core.service","LogoutData":"./src/core.service","SsoRedirectData":"./src/core.service","PathRedirectData":"./src/core.service","SuggestionService":"./src/suggestion.service","SuggestionParamData":"./src/suggestion.service","SuggestionResponse":"./src/suggestion.service","SuggestionItem":"./src/suggestion.service","ErrorMessage":"./src/error-message","LoadingIndicatorService":"./src/loading-indicator.service","LoadingIndicator":"./src/loading-indicator.service","HttpUrlEncodingCodec":"./src/http-url-encoding-codec","HttpClientService":"./src/http-client.service","InfiniteScrollerDirective":"./src/infinite-scroller.directive","NewPassword":"./src/new-password","NotificationService":"./src/notification.service","Paging":"./src/paging","NotifyParams":"./src/notify-params","WebResponse":"./src/response-data","ErrorResponse":"./src/response-data","ResponseData":"./src/response-data","ResponseElementsData":"./src/response-data","RoleAccessDirective":"./src/role-access.directive","SecurityService":"./src/security.service","SSOUrlPipe":"./src/ssourl.pipe","UserProfileService":"./src/user-profile.service","UserProfile":"./src/user-profile","UserResponseData":"./src/user-response-data","AccentService":"./src/accent.service","CacheStorageService":"./src/cache-storage.service","CacheStorageOptions":"./src/cache-storage.service","CacheStorageItem":"./src/cache-storage.service","AutoSizeDirective":"./src/autosize.directive","AvatarDirective":"./src/avatar.directive","ResourceLoaderService":"./src/resource-loader.service","Resource":"./src/resource-loader.service","initApp":"./src/init-app","CoreModule":"./src/core.module"},"importAs":"inet-core"} |
{ | ||
"name": "inet-core", | ||
"version": "0.7.10", | ||
"version": "0.8.1", | ||
"description": "iNet Core", | ||
@@ -5,0 +5,0 @@ "main": "./bundles/inet-core.umd.js", |
@@ -27,3 +27,2 @@ iNet Angular Core | ||
- Hanh Le <hanhld@inetcloud.vn> | ||
- Cong Nguyen <nbccong@inetcloud.vn> | ||
- An Tran <anttt@inetcloud.vn> | ||
@@ -42,2 +41,2 @@ | ||
[npm-downloads-image]: http://img.shields.io/npm/dm/inet-core.svg?style=flat | ||
[downloads-url]: https://npmcharts.com/compare/inet-core?minimal=true | ||
[downloads-url]: https://npmcharts.com/compare/inet-core?minimal=true |
@@ -5,2 +5,3 @@ export * from './core.service'; | ||
export * from './loading-indicator.service'; | ||
export * from './http-url-encoding-codec'; | ||
export * from './http-client.service'; | ||
@@ -7,0 +8,0 @@ export * from './infinite-scroller.directive'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
264846
36
6772