ngx-ntk-smart-module
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -1,16 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-ntk-smart-module",["exports","@angular/core","@angular/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["ngx-ntk-smart-module"]={},t.ng.core,t.ng.common)}(this,(function(t,e,n){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */Object.create;function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}Object.create;var r=function(){function t(){this.modalStack=[]}return t.prototype.addModal=function(t,e){if(e){var n=this.modalStack.findIndex((function(e){return e.id===t.id}));n>-1?this.modalStack[n].modal=t.modal:this.modalStack.push(t)}else this.modalStack.push(t)},t.prototype.getModal=function(t){var e=this.modalStack.find((function(e){return e.id===t}));if(void 0!==e)return e.modal;throw new Error("Cannot find modal with identifier "+t)},t.prototype.getModalStack=function(){return this.modalStack},t.prototype.getOpenedModals=function(){return this.modalStack.filter((function(t){return t.modal.visible}))},t.prototype.getTopOpenedModal=function(){if(!this.getOpenedModals().length)throw new Error("No modal is opened");return this.getOpenedModals().map((function(t){return t.modal})).reduce((function(t,e){return e.layerPosition>t.layerPosition?e:t}),this.getOpenedModals()[0].modal)},t.prototype.getHigherIndex=function(){return Math.max.apply(Math,i(this.modalStack.map((function(t){return t.modal.layerPosition})),[1041]))+1},t.prototype.getModalStackCount=function(){return this.modalStack.length},t.prototype.removeModal=function(t){var e=this.modalStack.findIndex((function(e){return e.id===t}));e>-1&&this.modalStack.splice(e,1)},t}();r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[]};var a="dialog-open",s="ntk-smart-modal.",l=function(){function t(t,n,o,i,r){this._renderer=t,this._changeDetectorRef=n,this.componentFactoryResolver=o,this._document=i,this._platformId=r,this.closable=!0,this.escapable=!0,this.dismissable=!0,this.identifier="",this.customClass="nsm-dialog-animation-fade",this.visible=!1,this.backdrop=!0,this.force=!0,this.hideDelay=500,this.autostart=!1,this.target="",this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaDescribedBy=null,this.refocus=!0,this.visibleChange=new e.EventEmitter,this.onClose=new e.EventEmitter,this.onCloseFinished=new e.EventEmitter,this.onDismiss=new e.EventEmitter,this.onDismissFinished=new e.EventEmitter,this.onAnyCloseEvent=new e.EventEmitter,this.onAnyCloseEventFinished=new e.EventEmitter,this.onOpen=new e.EventEmitter,this.onOpenFinished=new e.EventEmitter,this.onEscape=new e.EventEmitter,this.onDataAdded=new e.EventEmitter,this.onDataRemoved=new e.EventEmitter,this.layerPosition=1041,this.overlayVisible=!1,this.openedClass=!1,this.createFrom="html"}return t.prototype.ngOnInit=function(){if(!this.identifier||!this.identifier.length)throw new Error("identifier field isn’t set. Please set one before calling <ngx-smart-modal> in a template.");this._sendEvent("create")},t.prototype.ngAfterViewInit=function(){var t=this;if(this.contentComponent){var e=this.componentFactoryResolver.resolveComponentFactory(this.contentComponent);this.createDynamicContent(this.dynamicContentContainer,e),this.dynamicContentContainer.changes.subscribe((function(n){t.createDynamicContent(n,e)}))}},t.prototype.ngOnDestroy=function(){this._sendEvent("delete")},t.prototype.open=function(t){return this._sendEvent("open",{top:t}),this},t.prototype.close=function(){return this._sendEvent("close"),this},t.prototype.dismiss=function(t){return this.dismissable&&t.target.classList.contains("overlay")?(this._sendEvent("dismiss"),this):this},t.prototype.toggle=function(t){return this._sendEvent("toggle",{top:t}),this},t.prototype.addCustomClass=function(t){return this.customClass.length?this.customClass+=" "+t:this.customClass=t,this},t.prototype.removeCustomClass=function(t){return this.customClass=t?this.customClass.replace(t,"").trim():"",this},t.prototype.isVisible=function(){return this.visible},t.prototype.hasData=function(){return void 0!==this._data},t.prototype.setData=function(t,e){return(!this.hasData()||this.hasData()&&e)&&(this._data=t,this.onDataAdded.emit(this._data),this.markForCheck()),this},t.prototype.getData=function(){return this._data},t.prototype.removeData=function(){return this._data=void 0,this.onDataRemoved.emit(!0),this.markForCheck(),this},t.prototype.addBodyClass=function(){return this._renderer.addClass(this._document.body,a),this},t.prototype.removeBodyClass=function(){return this._renderer.removeClass(this._document.body,a),this},t.prototype.markForCheck=function(){try{this._changeDetectorRef.detectChanges()}catch(t){}this._changeDetectorRef.markForCheck()},t.prototype.targetPlacement=function(){if(!(this.isBrowser&&this.nsmDialog.length&&this.nsmContent.length&&this.nsmOverlay.length&&this.target))return!1;var t=this._document.querySelector(this.target);if(!t)return!1;var e=t.getBoundingClientRect(),n=this.nsmOverlay.first.nativeElement.getBoundingClientRect(),o=this.nsmContent.first.nativeElement.getBoundingClientRect(),i=this.nsmDialog.first.nativeElement.getBoundingClientRect(),r=parseInt(getComputedStyle(this.nsmContent.first.nativeElement).marginLeft,10),a=parseInt(getComputedStyle(this.nsmContent.first.nativeElement).marginTop,10),s=e.top-i.top-(o.height-e.height)/2,l=e.left-i.left-(o.width-e.width)/2;l+i.left+o.width+2*r>n.width?l=n.width-(i.left+o.width)-2*r:l+i.left<0&&(l=-i.left),s+i.top+o.height+a>n.height&&(s=n.height-(i.top+o.height)-a),this._renderer.setStyle(this.nsmContent.first.nativeElement,"top",(s<0?0:s)+"px"),this._renderer.setStyle(this.nsmContent.first.nativeElement,"left",l+"px")},t.prototype._sendEvent=function(t,e){if(!this.isBrowser)return!1;var n={extraData:e,instance:{id:this.identifier,modal:this}},o=new CustomEvent(s+t,{detail:n});return window.dispatchEvent(o)},Object.defineProperty(t.prototype,"isBrowser",{get:function(){return n.isPlatformBrowser(this._platformId)},enumerable:!1,configurable:!0}),t.prototype.createDynamicContent=function(t,e){var n=this;t.forEach((function(t){t.clear(),t.createComponent(e),n.markForCheck()}))},t}();l.decorators=[{type:e.Component,args:[{selector:"ntk-smart-modal",template:'\n <div *ngIf="overlayVisible"\n [style.z-index]="visible ? layerPosition-1 : -1"\n [ngClass]="{\'transparent\':!backdrop, \'overlay\':true, \'nsm-overlay-open\':openedClass}"\n (click)="dismiss($event)" #nsmOverlay>\n <div [style.z-index]="visible ? layerPosition : -1"\n [ngClass]="[\'nsm-dialog\', customClass, openedClass ? \'nsm-dialog-open\': \'nsm-dialog-close\']" #nsmDialog\n [attr.aria-hidden]="openedClass ? false : true"\n [attr.aria-label]="ariaLabel"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-describedby]="ariaDescribedBy">\n <div class="nsm-content" #nsmContent>\n <div class="nsm-body">\n <ng-template #dynamicContent></ng-template>\n <ng-content></ng-content>\n\n </div>\n <button type="button" *ngIf="closable" (click)="close()" aria-label="Close" class="nsm-dialog-btn-close">\n <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512"\n xml:space="preserve" width="16px" height="16px" role="img" aria-labelledby="closeIconTitle closeIconDesc">\n <title id="closeIconTitle">Close Icon</title>\n <desc id="closeIconDesc">A light-gray close icon used to close the modal</desc>\n <g>\n <path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249 C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306 C514.019,27.23,514.019,14.135,505.943,6.058z"\n fill="currentColor"/>\n </g>\n <g>\n <path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636 c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"\n fill="currentColor"/>\n </g>\n </svg>\n </button>\n </div>\n </div>\n </div>\n '}]}],l.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ChangeDetectorRef},{type:e.ComponentFactoryResolver},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},l.propDecorators={closable:[{type:e.Input}],escapable:[{type:e.Input}],dismissable:[{type:e.Input}],identifier:[{type:e.Input}],customClass:[{type:e.Input}],visible:[{type:e.Input}],backdrop:[{type:e.Input}],force:[{type:e.Input}],hideDelay:[{type:e.Input}],autostart:[{type:e.Input}],target:[{type:e.Input}],ariaLabel:[{type:e.Input}],ariaLabelledBy:[{type:e.Input}],ariaDescribedBy:[{type:e.Input}],refocus:[{type:e.Input}],visibleChange:[{type:e.Output}],onClose:[{type:e.Output}],onCloseFinished:[{type:e.Output}],onDismiss:[{type:e.Output}],onDismissFinished:[{type:e.Output}],onAnyCloseEvent:[{type:e.Output}],onAnyCloseEventFinished:[{type:e.Output}],onOpen:[{type:e.Output}],onOpenFinished:[{type:e.Output}],onEscape:[{type:e.Output}],onDataAdded:[{type:e.Output}],onDataRemoved:[{type:e.Output}],nsmContent:[{type:e.ViewChildren,args:["nsmContent"]}],nsmDialog:[{type:e.ViewChildren,args:["nsmDialog"]}],nsmOverlay:[{type:e.ViewChildren,args:["nsmOverlay"]}],dynamicContentContainer:[{type:e.ViewChildren,args:["dynamicContent",{read:e.ViewContainerRef}]}],targetPlacement:[{type:e.HostListener,args:["window:resize"]}]};var d=function(){function t(t,e,n,o,i,r,a){var s=this;this._componentFactoryResolver=t,this._appRef=e,this._injector=n,this._modalStack=o,this.applicationRef=i,this._document=r,this._platformId=a,this._escapeKeyboardEvent=function(t){if("Escape"===t.key)try{var e=s.getTopOpenedModal();return!!e.escapable&&(e.onEscape.emit(e),s.closeLatestModal(),!0)}catch(t){return!1}return!1},this._trapFocusModal=function(t){if("Tab"===t.key)try{var e=s.getTopOpenedModal();return e.nsmDialog.first.nativeElement.contains(document.activeElement)||(t.preventDefault(),t.stopPropagation(),e.nsmDialog.first.nativeElement.focus()),!0}catch(t){return!1}return!1},this._addEvents()}return t.prototype.addModal=function(t,e){this._modalStack.addModal(t,e)},t.prototype.getModal=function(t){return this._modalStack.getModal(t)},t.prototype.get=function(t){return this.getModal(t)},t.prototype.open=function(t,e){return void 0===e&&(e=!1),this._openModal(this.get(t),e)},t.prototype.close=function(t){return this._closeModal(this.get(t))},t.prototype.closeAll=function(){var t=this;this.getOpenedModals().forEach((function(e){t._closeModal(e.modal)}))},t.prototype.toggle=function(t,e){return void 0===e&&(e=!1),this._toggleModal(this.get(t),e)},t.prototype.getModalStack=function(){return this._modalStack.getModalStack()},t.prototype.getOpenedModals=function(){return this._modalStack.getOpenedModals()},t.prototype.getTopOpenedModal=function(){return this._modalStack.getTopOpenedModal()},t.prototype.getHigherIndex=function(){return this._modalStack.getHigherIndex()},t.prototype.getModalStackCount=function(){return this._modalStack.getModalStackCount()},t.prototype.removeModal=function(t){this._modalStack.removeModal(t)},t.prototype.setModalData=function(t,e,n){var o;return!!(o=this.get(e))&&(o.setData(t,n),!0)},t.prototype.getModalData=function(t){var e;return(e=this.get(t))?e.getData():null},t.prototype.resetModalData=function(t){if(this._modalStack.getModalStack().find((function(e){return e.id===t}))){var e=this.getModal(t).getData();return this.getModal(t).removeData(),e}return!1},t.prototype.closeLatestModal=function(){this.getTopOpenedModal().close()},t.prototype.create=function(t,n,o){void 0===o&&(o={});try{return this.getModal(t)}catch(d){var i=this._componentFactoryResolver.resolveComponentFactory(l),r=this._resolveNgContent(n),a=i.create(this._injector,r);n instanceof e.Type&&(a.instance.contentComponent=n),a.instance.identifier=t,a.instance.createFrom="service","boolean"==typeof o.closable&&(a.instance.closable=o.closable),"boolean"==typeof o.escapable&&(a.instance.escapable=o.escapable),"boolean"==typeof o.dismissable&&(a.instance.dismissable=o.dismissable),"string"==typeof o.customClass&&(a.instance.customClass=o.customClass),"boolean"==typeof o.backdrop&&(a.instance.backdrop=o.backdrop),"boolean"==typeof o.force&&(a.instance.force=o.force),"number"==typeof o.hideDelay&&(a.instance.hideDelay=o.hideDelay),"boolean"==typeof o.autostart&&(a.instance.autostart=o.autostart),"string"==typeof o.target&&(a.instance.target=o.target),"string"==typeof o.ariaLabel&&(a.instance.ariaLabel=o.ariaLabel),"string"==typeof o.ariaLabelledBy&&(a.instance.ariaLabelledBy=o.ariaLabelledBy),"string"==typeof o.ariaDescribedBy&&(a.instance.ariaDescribedBy=o.ariaDescribedBy),"boolean"==typeof o.refocus&&(a.instance.refocus=o.refocus),this._appRef.attachView(a.hostView);var s=a.hostView.rootNodes[0];return this._document.body.appendChild(s),a.instance}},t.prototype._addEvents=function(){var t=this;return!!this.isBrowser&&(window.addEventListener(s+"create",(function(e){t._initModal(e.detail.instance)})),window.addEventListener(s+"delete",(function(e){t._deleteModal(e.detail.instance)})),window.addEventListener(s+"open",(function(e){t._openModal(e.detail.instance.modal,e.detail.top)})),window.addEventListener(s+"toggle",(function(e){t._toggleModal(e.detail.instance.modal,e.detail.top)})),window.addEventListener(s+"close",(function(e){t._closeModal(e.detail.instance.modal)})),window.addEventListener(s+"dismiss",(function(e){t._dismissModal(e.detail.instance.modal)})),window.addEventListener("keyup",this._escapeKeyboardEvent),!0)},t.prototype._initModal=function(t){t.modal.layerPosition+=this.getModalStackCount(),this.addModal(t,t.modal.force),t.modal.autostart&&this.open(t.id)},t.prototype._openModal=function(t,e){return!t.visible&&(this.lastElementFocused=document.activeElement,t.escapable&&window.addEventListener("keyup",this._escapeKeyboardEvent),t.backdrop&&window.addEventListener("keydown",this._trapFocusModal),e&&(t.layerPosition=this.getHigherIndex()),t.addBodyClass(),t.overlayVisible=!0,t.visible=!0,t.onOpen.emit(t),t.markForCheck(),setTimeout((function(){t.openedClass=!0,t.target&&t.targetPlacement(),t.nsmDialog.first.nativeElement.setAttribute("role","dialog"),t.nsmDialog.first.nativeElement.setAttribute("tabIndex","-1"),t.nsmDialog.first.nativeElement.setAttribute("aria-modal","true"),t.nsmDialog.first.nativeElement.focus(),t.markForCheck(),t.onOpenFinished.emit(t)})),!0)},t.prototype._toggleModal=function(t,e){return t.visible?this._closeModal(t):this._openModal(t,e)},t.prototype._closeModal=function(t){var e=this;return!!t.openedClass&&(t.openedClass=!1,t.onClose.emit(t),t.onAnyCloseEvent.emit(t),this.getOpenedModals().length<2&&(t.removeBodyClass(),window.removeEventListener("keyup",this._escapeKeyboardEvent),window.removeEventListener("keydown",this._trapFocusModal)),setTimeout((function(){t.visibleChange.emit(t.visible),t.visible=!1,t.overlayVisible=!1,t.nsmDialog.first.nativeElement.removeAttribute("tabIndex"),t.markForCheck(),t.onCloseFinished.emit(t),t.onAnyCloseEventFinished.emit(t),t.refocus&&e.lastElementFocused.focus()}),t.hideDelay),!0)},t.prototype._dismissModal=function(t){return!!t.openedClass&&(t.openedClass=!1,t.onDismiss.emit(t),t.onAnyCloseEvent.emit(t),this.getOpenedModals().length<2&&t.removeBodyClass(),setTimeout((function(){t.visible=!1,t.visibleChange.emit(t.visible),t.overlayVisible=!1,t.markForCheck(),t.onDismissFinished.emit(t),t.onAnyCloseEventFinished.emit(t)}),t.hideDelay),!0)},t.prototype._deleteModal=function(t){this.removeModal(t.id),this.getModalStack().length||t.modal.removeBodyClass()},t.prototype._resolveNgContent=function(t){if("string"==typeof t)return[[this._document.createTextNode(t)]];if(t instanceof e.TemplateRef){var n=t.createEmbeddedView(null);return this.applicationRef.attachView(n),[n.rootNodes]}return[]},Object.defineProperty(t.prototype,"isBrowser",{get:function(){return n.isPlatformBrowser(this._platformId)},enumerable:!1,configurable:!0}),t}();d.decorators=[{type:e.Injectable}],d.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ApplicationRef},{type:e.Injector},{type:r},{type:e.ApplicationRef},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]};var c=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[d,r]}},t.forChild=function(){return{ngModule:t,providers:[d,r]}},t}();c.decorators=[{type:e.NgModule,args:[{declarations:[l],exports:[l],imports:[n.CommonModule]}]}];var p=function(){function t(){this.privateloaderStack=[],this.privateActions=[]}return t.prototype.addLoader=function(t,e){if(e){var n=this.privateloaderStack.findIndex((function(e){return e.id===t.id}));n>-1?this.privateloaderStack[n].component=t.component:this.privateloaderStack.push(t)}else{if(this._getLoader(t.id))throw new Error("Loader with "+t.id+" identifier already exist");this.privateloaderStack.push(t)}},t.prototype.removeLoader=function(t){this.privateloaderStack=this.privateloaderStack.filter((function(e){return e.id!==t})),this._removeAction(t,"*")},t.prototype.getLoaderStack=function(){return this.privateloaderStack},t.prototype.getLoaderStackCount=function(){return this.privateloaderStack.length},t.prototype.getOpenedLoaders=function(){return this.privateloaderStack.filter((function(t){return t.component.visible}))},t.prototype.getActiveLoaders=function(){return this.privateloaderStack.filter((function(t){return t.component.loading}))},t.prototype.getHigherIndex=function(){var t=this.getOpenedLoaders().map((function(t){return t.component.layerPosition}));return Math.max.apply(Math,i(t))+1},t.prototype.start=function(t){var e,n=this;Array.isArray(t)?t.forEach((function(t){n.start(t)})):(e=this._getLoader(t))?(e.component.start(),this._removeAction(t,"start")):this._addAction(t,"start")},t.prototype.startAll=function(){var t=this;this.privateloaderStack.forEach((function(e){return t.start(e.id)}))},t.prototype.stop=function(t){var e,n=this;Array.isArray(t)?t.forEach((function(t){n.stop(t)})):(e=this._getLoader(t))?(e.component.stop(),this._removeAction(t,"stop")):this._addAction(t,"stop")},t.prototype.stopAll=function(){var t=this;this.privateloaderStack.forEach((function(e){return t.stop(e.id)}))},t.prototype.isLoading=function(t){var e,n=this;if(Array.isArray(t)){var o=[];return t.forEach((function(t){n.privateloaderStack.forEach((function(e){e.id===t&&o.push(e.component.loading)}))})),-1===o.indexOf(!1)}return!!(e=this._getLoader(t))&&e.component.loading},t.prototype.executeAction=function(t,e){if(this.privateActions.find((function(n){return n.identifier===t&&n.action===e})))switch(e){case"start":this.start(t);break;case"stop":this.stop(t)}},t.prototype._getLoader=function(t){return this.privateloaderStack.find((function(e){return e.id===t}))||null},t.prototype._addAction=function(t,e){var n=this;Array.isArray(t)?t.forEach((function(t){n._addAction(t,e)})):this.privateActions.push({identifier:t,action:e})},t.prototype._removeAction=function(t,e){var n=this;Array.isArray(t)?t.forEach((function(t){n._removeAction(t,e)})):this.privateActions=this.privateActions.filter((function(n){return n.identifier!==t||n.action!==e&&"*"!==e}))},t}();p.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new p},token:p,providedIn:"root"}),p.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var u=function(t){this.id=t.identifier,this.component=t},h=function(){function t(t,n){this.ntkSmartLoaderService=t,this.changeDetectorRef=n,this.identifier="",this.customClass="",this.force=!1,this.delayIn=0,this.delayOut=0,this.autostart=!1,this.onStart=new e.EventEmitter,this.onStop=new e.EventEmitter,this.onVisibleChange=new e.EventEmitter,this.loading=!1,this.visible=!1,this.layerPosition=999,this.privateIsProcessing=!1,this.privateLoaderBodyClass="loader-open",this.privateEnterClass="enter",this.privateLeaveClass="leave"}return t.prototype.ngOnInit=function(){try{var t=new u(this);this.ntkSmartLoaderService.addLoader(t,this.force),this.layerPosition+=this.ntkSmartLoaderService.getLoaderStackCount(),this.addCustomClass(this.identifier.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),this.autostart?this.ntkSmartLoaderService.start(this.identifier):this.ntkSmartLoaderService.executeAction(this.identifier,"start")}catch(t){throw t}},t.prototype.ngOnDestroy=function(){this.ntkSmartLoaderService.removeLoader(this.identifier)},t.prototype.start=function(t){var e=this;this.privateIsProcessing=!0,clearInterval(this.privateDebouncer),this.visible=!0,setTimeout((function(){e.addCustomClass(e.privateEnterClass)})),this.privateDebouncer=setTimeout((function(){t&&(e.layerPosition=e.ntkSmartLoaderService.getHigherIndex()),document.body.classList.contains(e.privateLoaderBodyClass)||document.body.classList.add(e.privateLoaderBodyClass),e.loading=!0,e.onStart.emit(e),e.onVisibleChange.emit(e),e.removeCustomClass(e.privateEnterClass),e.privateIsProcessing=!1}),this.delayIn)},t.prototype.stop=function(){var t=this;this.privateIsProcessing&&(this.visible=!1,this.loading=!1),clearInterval(this.privateDebouncer),this.addCustomClass(this.privateLeaveClass),this.loading=!1,this.privateDebouncer=setTimeout((function(){document.body.classList.contains(t.privateLoaderBodyClass)&&document.body.classList.remove(t.privateLoaderBodyClass),t.visible=!1,t.onStop.emit(t),t.onVisibleChange.emit(t),t.removeCustomClass(t.privateLeaveClass),setTimeout((function(){t.changeDetectorRef.markForCheck()}))}),this.delayOut)},t.prototype.addCustomClass=function(t){this.customClass.length?-1===this.customClass.indexOf(t)&&(this.customClass+=" "+t):this.customClass=t},t.prototype.removeCustomClass=function(t){this.customClass=t?this.customClass.replace(t,"").trim():""},t}();h.decorators=[{type:e.Component,args:[{selector:"ntk-smart-loader",template:'\n <div class="loader-container {{customClass}}" [ngClass]="{\'active\': loading}"\n [style.z-index]="layerPosition - 1" *ngIf="visible">\n <ng-content></ng-content>\n </div>\n '}]}],h.ctorParameters=function(){return[{type:p},{type:e.ChangeDetectorRef}]},h.propDecorators={identifier:[{type:e.Input}],customClass:[{type:e.Input}],force:[{type:e.Input}],delayIn:[{type:e.Input}],delayOut:[{type:e.Input}],autostart:[{type:e.Input}],onStart:[{type:e.Output}],onStop:[{type:e.Output}],onVisibleChange:[{type:e.Output}]};var m=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[p]}},t.forChild=function(){return{ngModule:t,providers:[p]}},t}();m.decorators=[{type:e.NgModule,args:[{declarations:[h],exports:[h],imports:[n.CommonModule]}]}],t.NtkSmartLoaderComponent=h,t.NtkSmartLoaderModule=m,t.NtkSmartLoaderService=p,t.NtkSmartModalComponent=l,t.NtkSmartModalModule=c,t.NtkSmartModalService=d,t.ɵa=r,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-ntk-smart-module",["exports","@angular/core","@angular/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["ngx-ntk-smart-module"]={},t.ng.core,t.ng.common)}(this,(function(t,e,n){"use strict";Object.create;function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}Object.create;var r=function(){function t(){this.modalStack=[]}return t.prototype.addModal=function(t,e){if(e){var n=this.modalStack.findIndex((function(e){return e.id===t.id}));n>-1?this.modalStack[n].modal=t.modal:this.modalStack.push(t)}else this.modalStack.push(t)},t.prototype.getModal=function(t){var e=this.modalStack.find((function(e){return e.id===t}));if(void 0!==e)return e.modal;throw new Error("Cannot find modal with identifier "+t)},t.prototype.getModalStack=function(){return this.modalStack},t.prototype.getOpenedModals=function(){return this.modalStack.filter((function(t){return t.modal.visible}))},t.prototype.getTopOpenedModal=function(){if(!this.getOpenedModals().length)throw new Error("No modal is opened");return this.getOpenedModals().map((function(t){return t.modal})).reduce((function(t,e){return e.layerPosition>t.layerPosition?e:t}),this.getOpenedModals()[0].modal)},t.prototype.getHigherIndex=function(){return Math.max.apply(Math,i(this.modalStack.map((function(t){return t.modal.layerPosition})),[1041]))+1},t.prototype.getModalStackCount=function(){return this.modalStack.length},t.prototype.removeModal=function(t){var e=this.modalStack.findIndex((function(e){return e.id===t}));e>-1&&this.modalStack.splice(e,1)},t}();r.decorators=[{type:e.Injectable}],r.ctorParameters=function(){return[]};var a="dialog-open",s="ntk-smart-modal.",l=function(){function t(t,n,o,i,r){this._renderer=t,this._changeDetectorRef=n,this.componentFactoryResolver=o,this._document=i,this._platformId=r,this.closable=!0,this.escapable=!0,this.dismissable=!0,this.identifier="",this.customClass="nsm-dialog-animation-fade",this.visible=!1,this.backdrop=!0,this.force=!0,this.hideDelay=500,this.autostart=!1,this.target="",this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaDescribedBy=null,this.refocus=!0,this.visibleChange=new e.EventEmitter,this.onClose=new e.EventEmitter,this.onCloseFinished=new e.EventEmitter,this.onDismiss=new e.EventEmitter,this.onDismissFinished=new e.EventEmitter,this.onAnyCloseEvent=new e.EventEmitter,this.onAnyCloseEventFinished=new e.EventEmitter,this.onOpen=new e.EventEmitter,this.onOpenFinished=new e.EventEmitter,this.onEscape=new e.EventEmitter,this.onDataAdded=new e.EventEmitter,this.onDataRemoved=new e.EventEmitter,this.layerPosition=1041,this.overlayVisible=!1,this.openedClass=!1,this.createFrom="html"}return t.prototype.ngOnInit=function(){if(!this.identifier||!this.identifier.length)throw new Error("identifier field isn’t set. Please set one before calling <ngx-smart-modal> in a template.");this._sendEvent("create")},t.prototype.ngAfterViewInit=function(){var t=this;if(this.contentComponent){var e=this.componentFactoryResolver.resolveComponentFactory(this.contentComponent);this.createDynamicContent(this.dynamicContentContainer,e),this.dynamicContentContainer.changes.subscribe((function(n){t.createDynamicContent(n,e)}))}},t.prototype.ngOnDestroy=function(){this._sendEvent("delete")},t.prototype.open=function(t){return this._sendEvent("open",{top:t}),this},t.prototype.close=function(){return this._sendEvent("close"),this},t.prototype.dismiss=function(t){return this.dismissable&&t.target.classList.contains("overlay")?(this._sendEvent("dismiss"),this):this},t.prototype.toggle=function(t){return this._sendEvent("toggle",{top:t}),this},t.prototype.addCustomClass=function(t){return this.customClass.length?this.customClass+=" "+t:this.customClass=t,this},t.prototype.removeCustomClass=function(t){return this.customClass=t?this.customClass.replace(t,"").trim():"",this},t.prototype.isVisible=function(){return this.visible},t.prototype.hasData=function(){return void 0!==this._data},t.prototype.setData=function(t,e){return(!this.hasData()||this.hasData()&&e)&&(this._data=t,this.onDataAdded.emit(this._data),this.markForCheck()),this},t.prototype.getData=function(){return this._data},t.prototype.removeData=function(){return this._data=void 0,this.onDataRemoved.emit(!0),this.markForCheck(),this},t.prototype.addBodyClass=function(){return this._renderer.addClass(this._document.body,a),this},t.prototype.removeBodyClass=function(){return this._renderer.removeClass(this._document.body,a),this},t.prototype.markForCheck=function(){try{this._changeDetectorRef.detectChanges()}catch(t){}this._changeDetectorRef.markForCheck()},t.prototype.targetPlacement=function(){if(!(this.isBrowser&&this.nsmDialog.length&&this.nsmContent.length&&this.nsmOverlay.length&&this.target))return!1;var t=this._document.querySelector(this.target);if(!t)return!1;var e=t.getBoundingClientRect(),n=this.nsmOverlay.first.nativeElement.getBoundingClientRect(),o=this.nsmContent.first.nativeElement.getBoundingClientRect(),i=this.nsmDialog.first.nativeElement.getBoundingClientRect(),r=parseInt(getComputedStyle(this.nsmContent.first.nativeElement).marginLeft,10),a=parseInt(getComputedStyle(this.nsmContent.first.nativeElement).marginTop,10),s=e.top-i.top-(o.height-e.height)/2,l=e.left-i.left-(o.width-e.width)/2;l+i.left+o.width+2*r>n.width?l=n.width-(i.left+o.width)-2*r:l+i.left<0&&(l=-i.left),s+i.top+o.height+a>n.height&&(s=n.height-(i.top+o.height)-a),this._renderer.setStyle(this.nsmContent.first.nativeElement,"top",(s<0?0:s)+"px"),this._renderer.setStyle(this.nsmContent.first.nativeElement,"left",l+"px")},t.prototype._sendEvent=function(t,e){if(!this.isBrowser)return!1;var n={extraData:e,instance:{id:this.identifier,modal:this}},o=new CustomEvent(s+t,{detail:n});return window.dispatchEvent(o)},Object.defineProperty(t.prototype,"isBrowser",{get:function(){return n.isPlatformBrowser(this._platformId)},enumerable:!1,configurable:!0}),t.prototype.createDynamicContent=function(t,e){var n=this;t.forEach((function(t){t.clear(),t.createComponent(e),n.markForCheck()}))},t}();l.decorators=[{type:e.Component,args:[{selector:"ntk-smart-modal",template:'\n <div *ngIf="overlayVisible"\n [style.z-index]="visible ? layerPosition-1 : -1"\n [ngClass]="{\'transparent\':!backdrop, \'overlay\':true, \'nsm-overlay-open\':openedClass}"\n (click)="dismiss($event)" #nsmOverlay>\n <div [style.z-index]="visible ? layerPosition : -1"\n [ngClass]="[\'nsm-dialog\', customClass, openedClass ? \'nsm-dialog-open\': \'nsm-dialog-close\']" #nsmDialog\n [attr.aria-hidden]="openedClass ? false : true"\n [attr.aria-label]="ariaLabel"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-describedby]="ariaDescribedBy">\n <div class="nsm-content" #nsmContent>\n <div class="nsm-body">\n <ng-template #dynamicContent></ng-template>\n <ng-content></ng-content>\n\n </div>\n <button type="button" *ngIf="closable" (click)="close()" aria-label="Close" class="nsm-dialog-btn-close">\n <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 512 512"\n xml:space="preserve" width="16px" height="16px" role="img" aria-labelledby="closeIconTitle closeIconDesc">\n <title id="closeIconTitle">Close Icon</title>\n <desc id="closeIconDesc">A light-gray close icon used to close the modal</desc>\n <g>\n <path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249 C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306 C514.019,27.23,514.019,14.135,505.943,6.058z"\n fill="currentColor"/>\n </g>\n <g>\n <path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636 c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"\n fill="currentColor"/>\n </g>\n </svg>\n </button>\n </div>\n </div>\n </div>\n '}]}],l.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ChangeDetectorRef},{type:e.ComponentFactoryResolver},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},l.propDecorators={closable:[{type:e.Input}],escapable:[{type:e.Input}],dismissable:[{type:e.Input}],identifier:[{type:e.Input}],customClass:[{type:e.Input}],visible:[{type:e.Input}],backdrop:[{type:e.Input}],force:[{type:e.Input}],hideDelay:[{type:e.Input}],autostart:[{type:e.Input}],target:[{type:e.Input}],ariaLabel:[{type:e.Input}],ariaLabelledBy:[{type:e.Input}],ariaDescribedBy:[{type:e.Input}],refocus:[{type:e.Input}],visibleChange:[{type:e.Output}],onClose:[{type:e.Output}],onCloseFinished:[{type:e.Output}],onDismiss:[{type:e.Output}],onDismissFinished:[{type:e.Output}],onAnyCloseEvent:[{type:e.Output}],onAnyCloseEventFinished:[{type:e.Output}],onOpen:[{type:e.Output}],onOpenFinished:[{type:e.Output}],onEscape:[{type:e.Output}],onDataAdded:[{type:e.Output}],onDataRemoved:[{type:e.Output}],nsmContent:[{type:e.ViewChildren,args:["nsmContent"]}],nsmDialog:[{type:e.ViewChildren,args:["nsmDialog"]}],nsmOverlay:[{type:e.ViewChildren,args:["nsmOverlay"]}],dynamicContentContainer:[{type:e.ViewChildren,args:["dynamicContent",{read:e.ViewContainerRef}]}],targetPlacement:[{type:e.HostListener,args:["window:resize"]}]};var d=function(){function t(t,e,n,o,i,r,a){var s=this;this._componentFactoryResolver=t,this._appRef=e,this._injector=n,this._modalStack=o,this.applicationRef=i,this._document=r,this._platformId=a,this._escapeKeyboardEvent=function(t){if("Escape"===t.key)try{var e=s.getTopOpenedModal();return!!e.escapable&&(e.onEscape.emit(e),s.closeLatestModal(),!0)}catch(t){return!1}return!1},this._trapFocusModal=function(t){if("Tab"===t.key)try{var e=s.getTopOpenedModal();return e.nsmDialog.first.nativeElement.contains(document.activeElement)||(t.preventDefault(),t.stopPropagation(),e.nsmDialog.first.nativeElement.focus()),!0}catch(t){return!1}return!1},this._addEvents()}return t.prototype.addModal=function(t,e){this._modalStack.addModal(t,e)},t.prototype.getModal=function(t){return this._modalStack.getModal(t)},t.prototype.get=function(t){return this.getModal(t)},t.prototype.open=function(t,e){return void 0===e&&(e=!1),this._openModal(this.get(t),e)},t.prototype.close=function(t){return this._closeModal(this.get(t))},t.prototype.closeAll=function(){var t=this;this.getOpenedModals().forEach((function(e){t._closeModal(e.modal)}))},t.prototype.toggle=function(t,e){return void 0===e&&(e=!1),this._toggleModal(this.get(t),e)},t.prototype.getModalStack=function(){return this._modalStack.getModalStack()},t.prototype.getOpenedModals=function(){return this._modalStack.getOpenedModals()},t.prototype.getTopOpenedModal=function(){return this._modalStack.getTopOpenedModal()},t.prototype.getHigherIndex=function(){return this._modalStack.getHigherIndex()},t.prototype.getModalStackCount=function(){return this._modalStack.getModalStackCount()},t.prototype.removeModal=function(t){this._modalStack.removeModal(t)},t.prototype.setModalData=function(t,e,n){var o;return!!(o=this.get(e))&&(o.setData(t,n),!0)},t.prototype.getModalData=function(t){var e;return(e=this.get(t))?e.getData():null},t.prototype.resetModalData=function(t){if(this._modalStack.getModalStack().find((function(e){return e.id===t}))){var e=this.getModal(t).getData();return this.getModal(t).removeData(),e}return!1},t.prototype.closeLatestModal=function(){this.getTopOpenedModal().close()},t.prototype.create=function(t,n,o){void 0===o&&(o={});try{return this.getModal(t)}catch(d){var i=this._componentFactoryResolver.resolveComponentFactory(l),r=this._resolveNgContent(n),a=i.create(this._injector,r);n instanceof e.Type&&(a.instance.contentComponent=n),a.instance.identifier=t,a.instance.createFrom="service","boolean"==typeof o.closable&&(a.instance.closable=o.closable),"boolean"==typeof o.escapable&&(a.instance.escapable=o.escapable),"boolean"==typeof o.dismissable&&(a.instance.dismissable=o.dismissable),"string"==typeof o.customClass&&(a.instance.customClass=o.customClass),"boolean"==typeof o.backdrop&&(a.instance.backdrop=o.backdrop),"boolean"==typeof o.force&&(a.instance.force=o.force),"number"==typeof o.hideDelay&&(a.instance.hideDelay=o.hideDelay),"boolean"==typeof o.autostart&&(a.instance.autostart=o.autostart),"string"==typeof o.target&&(a.instance.target=o.target),"string"==typeof o.ariaLabel&&(a.instance.ariaLabel=o.ariaLabel),"string"==typeof o.ariaLabelledBy&&(a.instance.ariaLabelledBy=o.ariaLabelledBy),"string"==typeof o.ariaDescribedBy&&(a.instance.ariaDescribedBy=o.ariaDescribedBy),"boolean"==typeof o.refocus&&(a.instance.refocus=o.refocus),this._appRef.attachView(a.hostView);var s=a.hostView.rootNodes[0];return this._document.body.appendChild(s),a.instance}},t.prototype._addEvents=function(){var t=this;return!!this.isBrowser&&(window.addEventListener(s+"create",(function(e){t._initModal(e.detail.instance)})),window.addEventListener(s+"delete",(function(e){t._deleteModal(e.detail.instance)})),window.addEventListener(s+"open",(function(e){t._openModal(e.detail.instance.modal,e.detail.top)})),window.addEventListener(s+"toggle",(function(e){t._toggleModal(e.detail.instance.modal,e.detail.top)})),window.addEventListener(s+"close",(function(e){t._closeModal(e.detail.instance.modal)})),window.addEventListener(s+"dismiss",(function(e){t._dismissModal(e.detail.instance.modal)})),window.addEventListener("keyup",this._escapeKeyboardEvent),!0)},t.prototype._initModal=function(t){t.modal.layerPosition+=this.getModalStackCount(),this.addModal(t,t.modal.force),t.modal.autostart&&this.open(t.id)},t.prototype._openModal=function(t,e){return!t.visible&&(this.lastElementFocused=document.activeElement,t.escapable&&window.addEventListener("keyup",this._escapeKeyboardEvent),t.backdrop&&window.addEventListener("keydown",this._trapFocusModal),e&&(t.layerPosition=this.getHigherIndex()),t.addBodyClass(),t.overlayVisible=!0,t.visible=!0,t.onOpen.emit(t),t.markForCheck(),setTimeout((function(){t.openedClass=!0,t.target&&t.targetPlacement(),t.nsmDialog.first.nativeElement.setAttribute("role","dialog"),t.nsmDialog.first.nativeElement.setAttribute("tabIndex","-1"),t.nsmDialog.first.nativeElement.setAttribute("aria-modal","true"),t.nsmDialog.first.nativeElement.focus(),t.markForCheck(),t.onOpenFinished.emit(t)})),!0)},t.prototype._toggleModal=function(t,e){return t.visible?this._closeModal(t):this._openModal(t,e)},t.prototype._closeModal=function(t){var e=this;return!!t.openedClass&&(t.openedClass=!1,t.onClose.emit(t),t.onAnyCloseEvent.emit(t),this.getOpenedModals().length<2&&(t.removeBodyClass(),window.removeEventListener("keyup",this._escapeKeyboardEvent),window.removeEventListener("keydown",this._trapFocusModal)),setTimeout((function(){t.visibleChange.emit(t.visible),t.visible=!1,t.overlayVisible=!1,t.nsmDialog.first.nativeElement.removeAttribute("tabIndex"),t.markForCheck(),t.onCloseFinished.emit(t),t.onAnyCloseEventFinished.emit(t),t.refocus&&e.lastElementFocused.focus()}),t.hideDelay),!0)},t.prototype._dismissModal=function(t){return!!t.openedClass&&(t.openedClass=!1,t.onDismiss.emit(t),t.onAnyCloseEvent.emit(t),this.getOpenedModals().length<2&&t.removeBodyClass(),setTimeout((function(){t.visible=!1,t.visibleChange.emit(t.visible),t.overlayVisible=!1,t.markForCheck(),t.onDismissFinished.emit(t),t.onAnyCloseEventFinished.emit(t)}),t.hideDelay),!0)},t.prototype._deleteModal=function(t){this.removeModal(t.id),this.getModalStack().length||t.modal.removeBodyClass()},t.prototype._resolveNgContent=function(t){if("string"==typeof t)return[[this._document.createTextNode(t)]];if(t instanceof e.TemplateRef){var n=t.createEmbeddedView(null);return this.applicationRef.attachView(n),[n.rootNodes]}return[]},Object.defineProperty(t.prototype,"isBrowser",{get:function(){return n.isPlatformBrowser(this._platformId)},enumerable:!1,configurable:!0}),t}();d.decorators=[{type:e.Injectable}],d.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ApplicationRef},{type:e.Injector},{type:r},{type:e.ApplicationRef},{type:void 0,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]};var c=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[d,r]}},t.forChild=function(){return{ngModule:t,providers:[d,r]}},t}();c.decorators=[{type:e.NgModule,args:[{declarations:[l],exports:[l],imports:[n.CommonModule]}]}];var p=function(){function t(){this.privateloaderStack=[],this.privateActions=[]}return t.prototype.addLoader=function(t,e){if(e){var n=this.privateloaderStack.findIndex((function(e){return e.id===t.id}));n>-1?this.privateloaderStack[n].component=t.component:this.privateloaderStack.push(t)}else{if(this._getLoader(t.id))throw new Error("Loader with "+t.id+" identifier already exist");this.privateloaderStack.push(t)}},t.prototype.removeLoader=function(t){this.privateloaderStack=this.privateloaderStack.filter((function(e){return e.id!==t})),this._removeAction(t,"*")},t.prototype.getLoaderStack=function(){return this.privateloaderStack},t.prototype.getLoaderStackCount=function(){return this.privateloaderStack.length},t.prototype.getOpenedLoaders=function(){return this.privateloaderStack.filter((function(t){return t.component.visible}))},t.prototype.getActiveLoaders=function(){return this.privateloaderStack.filter((function(t){return t.component.loading}))},t.prototype.getHigherIndex=function(){var t=this.getOpenedLoaders().map((function(t){return t.component.layerPosition}));return Math.max.apply(Math,i(t))+1},t.prototype.start=function(t){var e,n=this;Array.isArray(t)?t.forEach((function(t){n.start(t)})):(e=this._getLoader(t))?(e.component.start(),this._removeAction(t,"start")):this._addAction(t,"start")},t.prototype.startAll=function(){var t=this;this.privateloaderStack.forEach((function(e){return t.start(e.id)}))},t.prototype.stop=function(t){var e,n=this;Array.isArray(t)?t.forEach((function(t){n.stop(t)})):(e=this._getLoader(t))?(e.component.stop(),this._removeAction(t,"stop")):this._addAction(t,"stop")},t.prototype.stopAll=function(){var t=this;this.privateloaderStack.forEach((function(e){return t.stop(e.id)}))},t.prototype.isLoading=function(t){var e,n=this;if(Array.isArray(t)){var o=[];return t.forEach((function(t){n.privateloaderStack.forEach((function(e){e.id===t&&o.push(e.component.loading)}))})),-1===o.indexOf(!1)}return!!(e=this._getLoader(t))&&e.component.loading},t.prototype.executeAction=function(t,e){if(this.privateActions.find((function(n){return n.identifier===t&&n.action===e})))switch(e){case"start":this.start(t);break;case"stop":this.stop(t)}},t.prototype._getLoader=function(t){return this.privateloaderStack.find((function(e){return e.id===t}))||null},t.prototype._addAction=function(t,e){var n=this;Array.isArray(t)?t.forEach((function(t){n._addAction(t,e)})):this.privateActions.push({identifier:t,action:e})},t.prototype._removeAction=function(t,e){var n=this;Array.isArray(t)?t.forEach((function(t){n._removeAction(t,e)})):this.privateActions=this.privateActions.filter((function(n){return n.identifier!==t||n.action!==e&&"*"!==e}))},t}();p.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new p},token:p,providedIn:"root"}),p.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var u=function(t){this.id=t.identifier,this.component=t},h=function(){function t(t,n){this.ntkSmartLoaderService=t,this.changeDetectorRef=n,this.identifier="",this.customClass="",this.force=!1,this.delayIn=0,this.delayOut=0,this.autostart=!1,this.onStart=new e.EventEmitter,this.onStop=new e.EventEmitter,this.onVisibleChange=new e.EventEmitter,this.loading=!1,this.visible=!1,this.layerPosition=999,this.privateIsProcessing=!1,this.privateLoaderBodyClass="loader-open",this.privateEnterClass="enter",this.privateLeaveClass="leave"}return t.prototype.ngOnInit=function(){try{var t=new u(this);this.ntkSmartLoaderService.addLoader(t,this.force),this.layerPosition+=this.ntkSmartLoaderService.getLoaderStackCount(),this.addCustomClass(this.identifier.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),this.autostart?this.ntkSmartLoaderService.start(this.identifier):this.ntkSmartLoaderService.executeAction(this.identifier,"start")}catch(t){throw t}},t.prototype.ngOnDestroy=function(){this.ntkSmartLoaderService.removeLoader(this.identifier)},t.prototype.start=function(t){var e=this;this.privateIsProcessing=!0,clearInterval(this.privateDebouncer),this.visible=!0,setTimeout((function(){e.addCustomClass(e.privateEnterClass)})),this.privateDebouncer=setTimeout((function(){t&&(e.layerPosition=e.ntkSmartLoaderService.getHigherIndex()),document.body.classList.contains(e.privateLoaderBodyClass)||document.body.classList.add(e.privateLoaderBodyClass),e.loading=!0,e.onStart.emit(e),e.onVisibleChange.emit(e),e.removeCustomClass(e.privateEnterClass),e.privateIsProcessing=!1}),this.delayIn)},t.prototype.stop=function(){var t=this;this.privateIsProcessing&&(this.visible=!1,this.loading=!1),clearInterval(this.privateDebouncer),this.addCustomClass(this.privateLeaveClass),this.loading=!1,this.privateDebouncer=setTimeout((function(){document.body.classList.contains(t.privateLoaderBodyClass)&&document.body.classList.remove(t.privateLoaderBodyClass),t.visible=!1,t.onStop.emit(t),t.onVisibleChange.emit(t),t.removeCustomClass(t.privateLeaveClass),setTimeout((function(){t.changeDetectorRef.markForCheck()}))}),this.delayOut)},t.prototype.addCustomClass=function(t){this.customClass.length?-1===this.customClass.indexOf(t)&&(this.customClass+=" "+t):this.customClass=t},t.prototype.removeCustomClass=function(t){this.customClass=t?this.customClass.replace(t,"").trim():""},t}();h.decorators=[{type:e.Component,args:[{selector:"ntk-smart-loader",template:'\n <div class="loader-container {{customClass}}" [ngClass]="{\'active\': loading}"\n [style.z-index]="layerPosition - 1" *ngIf="visible">\n <ng-content></ng-content>\n </div>\n '}]}],h.ctorParameters=function(){return[{type:p},{type:e.ChangeDetectorRef}]},h.propDecorators={identifier:[{type:e.Input}],customClass:[{type:e.Input}],force:[{type:e.Input}],delayIn:[{type:e.Input}],delayOut:[{type:e.Input}],autostart:[{type:e.Input}],onStart:[{type:e.Output}],onStop:[{type:e.Output}],onVisibleChange:[{type:e.Output}]};var m=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[p]}},t.forChild=function(){return{ngModule:t,providers:[p]}},t}();m.decorators=[{type:e.NgModule,args:[{declarations:[h],exports:[h],imports:[n.CommonModule]}]}],t.NtkSmartLoaderComponent=h,t.NtkSmartLoaderModule=m,t.NtkSmartLoaderService=p,t.NtkSmartModalComponent=l,t.NtkSmartModalModule=c,t.NtkSmartModalService=d,t.ɵa=r,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-ntk-smart-module.umd.min.js.map |
@@ -7,2 +7,2 @@ export class LoaderInstance { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGVyLWluc3RhbmNlLmpzIiwic291cmNlUm9vdCI6Ii9Wb2x1bWVzL3dvcmsvU291cmNlS2FyYXZpL0dpdEh1Yi9ucG0tbnRrLWNtcy1hbmd1bGFyL3Byb2plY3RzL25neC1udGstc21hcnQtbW9kdWxlL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9sb2FkZXIvbG9hZGVyLWluc3RhbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxjQUFjO0lBSXpCLFlBQVksU0FBa0M7UUFDNUMsSUFBSSxDQUFDLEVBQUUsR0FBRyxTQUFTLENBQUMsVUFBVSxDQUFDO1FBQy9CLElBQUksQ0FBQyxTQUFTLEdBQUcsU0FBUyxDQUFDO0lBQzdCLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE50a1NtYXJ0TG9hZGVyQ29tcG9uZW50IH0gZnJvbSAnLi9udGstc21hcnQtbG9hZGVyLmNvbXBvbmVudCc7XG5cbmV4cG9ydCBjbGFzcyBMb2FkZXJJbnN0YW5jZSB7XG4gIHB1YmxpYyBpZDogc3RyaW5nO1xuICBwdWJsaWMgY29tcG9uZW50OiBOdGtTbWFydExvYWRlckNvbXBvbmVudDtcblxuICBjb25zdHJ1Y3Rvcihjb21wb25lbnQ6IE50a1NtYXJ0TG9hZGVyQ29tcG9uZW50KSB7XG4gICAgdGhpcy5pZCA9IGNvbXBvbmVudC5pZGVudGlmaWVyO1xuICAgIHRoaXMuY29tcG9uZW50ID0gY29tcG9uZW50O1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGVyLWluc3RhbmNlLmpzIiwic291cmNlUm9vdCI6IkQ6L1NvdXJjZUthcmF2aS9HaXRIdWIvbnBtLW50ay1jbXMtYW5ndWxhci9wcm9qZWN0cy9uZ3gtbnRrLXNtYXJ0LW1vZHVsZS9zcmMvIiwic291cmNlcyI6WyJsaWIvbG9hZGVyL2xvYWRlci1pbnN0YW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sY0FBYztJQUl6QixZQUFZLFNBQWtDO1FBQzVDLElBQUksQ0FBQyxFQUFFLEdBQUcsU0FBUyxDQUFDLFVBQVUsQ0FBQztRQUMvQixJQUFJLENBQUMsU0FBUyxHQUFHLFNBQVMsQ0FBQztJQUM3QixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOdGtTbWFydExvYWRlckNvbXBvbmVudCB9IGZyb20gJy4vbnRrLXNtYXJ0LWxvYWRlci5jb21wb25lbnQnO1xyXG5cclxuZXhwb3J0IGNsYXNzIExvYWRlckluc3RhbmNlIHtcclxuICBwdWJsaWMgaWQ6IHN0cmluZztcclxuICBwdWJsaWMgY29tcG9uZW50OiBOdGtTbWFydExvYWRlckNvbXBvbmVudDtcclxuXHJcbiAgY29uc3RydWN0b3IoY29tcG9uZW50OiBOdGtTbWFydExvYWRlckNvbXBvbmVudCkge1xyXG4gICAgdGhpcy5pZCA9IGNvbXBvbmVudC5pZGVudGlmaWVyO1xyXG4gICAgdGhpcy5jb21wb25lbnQgPSBjb21wb25lbnQ7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -132,2 +132,2 @@ import { Component, Input, ChangeDetectorRef, Output, EventEmitter } from '@angular/core'; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnRrLXNtYXJ0LWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL1ZvbHVtZXMvd29yay9Tb3VyY2VLYXJhdmkvR2l0SHViL25wbS1udGstY21zLWFuZ3VsYXIvcHJvamVjdHMvbmd4LW50ay1zbWFydC1tb2R1bGUvc3JjLyIsInNvdXJjZXMiOlsibGliL2xvYWRlci9udGstc21hcnQtbG9hZGVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULEtBQUssRUFFTCxpQkFBaUIsRUFDakIsTUFBTSxFQUNOLFlBQVksRUFDYixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFXbkUsTUFBTSxPQUFPLHVCQUF1QjtJQXVCbEMsWUFBbUIscUJBQTRDLEVBQVUsaUJBQW9DO1FBQTFGLDBCQUFxQixHQUFyQixxQkFBcUIsQ0FBdUI7UUFBVSxzQkFBaUIsR0FBakIsaUJBQWlCLENBQW1CO1FBckI3RixlQUFVLEdBQUcsRUFBRSxDQUFDO1FBQ2hCLGdCQUFXLEdBQUcsRUFBRSxDQUFDO1FBQ2pCLFVBQUssR0FBRyxLQUFLLENBQUM7UUFDZCxZQUFPLEdBQUcsQ0FBQyxDQUFDO1FBQ1osYUFBUSxHQUFHLENBQUMsQ0FBQztRQUNiLGNBQVMsR0FBRyxLQUFLLENBQUM7UUFDakIsWUFBTyxHQUFHLElBQUksWUFBWSxFQUEyQixDQUFDO1FBQ3RELFdBQU0sR0FBRyxJQUFJLFlBQVksRUFBMkIsQ0FBQztRQUNyRCx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U7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICBpZiAodGhpcy5jdXN0b21DbGFzcy5pbmRleE9mKGNsYXNzTmFtZSkgPT09IC0xKSB7XHJcbiAgICAgICAgdGhpcy5jdXN0b21DbGFzcyArPSAnICcgKyBjbGFzc05hbWU7XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcblxyXG4gIHB1YmxpYyByZW1vdmVDdXN0b21DbGFzcyhjbGFzc05hbWU/OiBzdHJpbmcpOiB2b2lkIHtcclxuICAgIGlmIChjbGFzc05hbWUpIHtcclxuICAgICAgdGhpcy5jdXN0b21DbGFzcyA9IHRoaXMuY3VzdG9tQ2xhc3MucmVwbGFjZShjbGFzc05hbWUsICcnKS50cmltKCk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICB0aGlzLmN1c3RvbUNsYXNzID0gJyc7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -32,2 +32,2 @@ import { CommonModule } from '@angular/common'; | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnRrLXNtYXJ0LWxvYWRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL1ZvbHVtZXMvd29yay9Tb3VyY2VLYXJhdmkvR2l0SHViL25wbS1udGstY21zLWFuZ3VsYXIvcHJvamVjdHMvbmd4LW50ay1zbWFydC1tb2R1bGUvc3JjLyIsInNvdXJjZXMiOlsibGliL2xvYWRlci9udGstc21hcnQtbG9hZGVyLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7QUFFOUQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDbkUsT0FBTyxFQUFFLHVCQU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Btb3JlIGxvYWRlcnNcclxuICAgKlxyXG4gICAqIEBwYXJhbSBpZCBUaGUgbG9hZGVyIGlkZW50aWZpZXIuXHJcbiAgICogQHBhcmFtIGFjdGlvbiBOYW1lIG9mIHRoZSBhY3Rpb24uXHJcbiAgICovXHJcbiAgcHJpdmF0ZSBfcmVtb3ZlQWN0aW9uKGlkOiBzdHJpbmcgfCBzdHJpbmdbXSwgYWN0aW9uOiBzdHJpbmcpOiB2b2lkIHtcclxuICAgIGlmIChBcnJheS5pc0FycmF5KGlkKSkge1xyXG4gICAgICBpZC5mb3JFYWNoKChpOiBzdHJpbmcpID0+IHtcclxuICAgICAgICB0aGlzLl9yZW1vdmVBY3Rpb24oaSwgYWN0aW9uKTtcclxuICAgICAgfSk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICB0aGlzLnByaXZhdGVBY3Rpb25zID0gdGhpcy5wcml2YXRlQWN0aW9ucy5maWx0ZXIoKGFjdCkgPT4gYWN0LmlkZW50aWZpZXIgIT09IGlkIHx8IChhY3QuYWN0aW9uICE9PSBhY3Rpb24gJiYgYWN0aW9uICE9PSAnKicpKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19 |
export class ModalInstance { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaW5zdGFuY2UuanMiLCJzb3VyY2VSb290IjoiL1ZvbHVtZXMvd29yay9Tb3VyY2VLYXJhdmkvR2l0SHViL25wbS1udGstY21zLWFuZ3VsYXIvcHJvamVjdHMvbmd4LW50ay1zbWFydC1tb2R1bGUvc3JjLyIsInNvdXJjZXMiOlsibGliL21vZGFsL21vZGFsLWluc3RhbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxhQUFhO0NBR3pCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTnRrU21hcnRNb2RhbENvbXBvbmVudCB9IGZyb20gJy4vbnRrLXNtYXJ0LW1vZGFsLmNvbXBvbmVudCc7XG5cbmV4cG9ydCBjbGFzcyBNb2RhbEluc3RhbmNlIHtcbiAgcHVibGljIGlkOiBzdHJpbmc7XG4gIHB1YmxpYyBtb2RhbDogTnRrU21hcnRNb2RhbENvbXBvbmVudDtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtaW5zdGFuY2UuanMiLCJzb3VyY2VSb290IjoiRDovU291cmNlS2FyYXZpL0dpdEh1Yi9ucG0tbnRrLWNtcy1hbmd1bGFyL3Byb2plY3RzL25neC1udGstc21hcnQtbW9kdWxlL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9tb2RhbC9tb2RhbC1pbnN0YW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sYUFBYTtDQUd6QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE50a1NtYXJ0TW9kYWxDb21wb25lbnQgfSBmcm9tICcuL250ay1zbWFydC1tb2RhbC5jb21wb25lbnQnO1xyXG5cclxuZXhwb3J0IGNsYXNzIE1vZGFsSW5zdGFuY2Uge1xyXG4gIHB1YmxpYyBpZDogc3RyaW5nO1xyXG4gIHB1YmxpYyBtb2RhbDogTnRrU21hcnRNb2RhbENvbXBvbmVudDtcclxufVxyXG4iXX0= |
@@ -105,2 +105,2 @@ import { Injectable } from '@angular/core'; | ||
NtkSmartModalStackService.ctorParameters = () => []; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnRrLXNtYXJ0LW1vZGFsLXN0YWNrLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiL1ZvbHVtZXMvd29yay9Tb3VyY2VLYXJhdmkvR2l0SHViL25wbS1udGstY21zLWFuZ3VsYXIvcHJvamVjdHMvbmd4LW50ay1zbWFydC1tb2R1bGUvc3JjLyIsInNvd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cbiAgfVxyXG5cclxuICAvKipcclxuICAgKiBDcmVhdGVzIGNvbnRlbnQgaW5zaWRlIHByb3ZpZGVkIFZpZXdDb250YWluZXJSZWZcclxuICAgKi9cclxuICBwcml2YXRlIGNyZWF0ZUR5bmFtaWNDb250ZW50KGNoYW5nZXM6IFF1ZXJ5TGlzdDxWaWV3Q29udGFpbmVyUmVmPiwgZmFjdG9yeTogQ29tcG9uZW50RmFjdG9yeTxDb21wb25lbnQ+KTogdm9pZCB7XHJcbiAgICBjaGFuZ2VzLmZvckVhY2goKHZpZXdDb250YWluZXJSZWY6IFZpZXdDb250YWluZXJSZWYpID0+IHtcclxuICAgICAgdmlld0NvbnRhaW5lclJlZi5jbGVhcigpO1xyXG4gICAgICB2aWV3Q29udGFpbmVyUmVmLmNyZWF0ZUNvbXBvbmVudChmYWN0b3J5KTtcclxuICAgICAgdGhpcy5tYXJrRm9yQ2hlY2soKTtcclxuICAgIH0pO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -5,2 +5,2 @@ export const NtkSmartModalConfig = { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnRrLXNtYXJ0LW1vZGFsLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIvVm9sdW1lcy93b3JrL1NvdXJjZUthcmF2aS9HaXRIdWIvbnBtLW50ay1jbXMtYW5ndWxhci9wcm9qZWN0cy9uZ3gtbnRrLXNtYXJ0LW1vZHVsZS9zcmMvIiwic291cmNlcyI6WyJsaWIvbW9kYWwvbnRrLXNtYXJ0LW1vZGFsLmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxtQkFBbUIsR0FBRztJQUMvQixhQUFhLEVBQUUsYUFBYTtJQUM1QixXQUFXLEVBQUUsa0JBQWtCO0NBQ2xDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgTnRrU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291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IE50a1NtYXJ0TW9kYWxDb25maWcgPSB7XHJcbiAgICBib2R5Q2xhc3NPcGVuOiAnZGlhbG9nLW9wZW4nLFxyXG4gICAgcHJlZml4RXZlbnQ6ICdudGstc21hcnQtbW9kYWwuJ1xyXG59O1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJTnRrU21hcnRNb2RhbE9wdGlvbnMge1xyXG4gICAgY2xvc2FibGU/OiBib29sZWFuO1xyXG4gICAgZXNjYXBhYmxlPzogYm9vbGVhbjtcclxuICAgIGRpc21pc3NhYmxlPzogYm9vbGVhbjtcclxuICAgIGN1c3RvbUNsYXNzPzogc3RyaW5nO1xyXG4gICAgYmFja2Ryb3A/OiBib29sZWFuO1xyXG4gICAgZm9yY2U/OiBib29sZWFuO1xyXG4gICAgaGlkZURlbGF5PzogbnVtYmVyO1xyXG4gICAgYXV0b3N0YXJ0PzogYm9vbGVhbjtcclxuICAgIHRhcmdldD86IHN0cmluZztcclxuICAgIGFyaWFMYWJlbD86IHN0cmluZztcclxuICAgIGFyaWFMYWJlbGxlZEJ5Pzogc3RyaW5nO1xyXG4gICAgYXJpYURlc2NyaWJlZEJ5Pzogc3RyaW5nO1xyXG4gICAgcmVmb2N1cz86IGJvb2xlYW47XHJcbn1cclxuIl19 |
@@ -39,2 +39,2 @@ import { CommonModule } from '@angular/common'; | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnRrLXNtYXJ0LW1vZGFsLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVm9sdW1lcy93b3JrL1NvdXJjZUthcmF2aS9HaXRIdWIvbnBtLW50ay1jbXMtYW5ndWxhci9wcm9qZWN0cy9uZ3gtbnRrLXNtYXJ0LW1vZHVsZS9zcmMvIiwic291cmNlcyI6WyJsaWIvbW9kYWwvbnRrLXNtYXJ0LW1vZGFsLm1vZHVsZS50cyJdLCJuYW1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lIHtcclxuICAvKipcclxuICAgKiBVc2UgaW4gQXBwTW9kdWxlOiBuZXcgaW5zdGFuY2Ugb2YgTnRrU21hcnRNb2RhbC5cclxuICAgKi9cclxuICBwdWJsaWMgc3RhdGljIGZvclJvb3QoKTogTW9kdWxlV2l0aFByb3ZpZGVyczxOdGtTbWFydE1vZGFsTW9kdWxlPiB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICBuZ01vZHVsZTogTnRrU21hcnRNb2RhbE1vZHVsZSxcclxuICAgICAgcHJvdmlkZXJzOiBbXHJcbiAgICAgICAgTnRrU21hcnRNb2RhbFNlcnZpY2UsXHJcbiAgICAgICAgTnRrU21hcnRNb2RhbFN0YWNrU2VydmljZVxyXG4gICAgICBdLFxyXG4gICAgfTtcclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIFVzZSBpbiBmZWF0dXJlcyBtb2R1bGVzIHdpdGggbGF6eSBsb2FkaW5nOiBuZXcgaW5zdGFuY2Ugb2YgTnRrU21hcnRNb2RhbC5cclxuICAgKi9cclxuICBwdWJsaWMgc3RhdGljIGZvckNoaWxkKCk6IE1vZHVsZVdpdGhQcm92aWRlcnM8TnRrU21hcnRNb2RhbE1vZHVsZT4ge1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgbmdNb2R1bGU6IE50a1NtYXJ0TW9kYWxNb2R1bGUsXHJcbiAgICAgIHByb3ZpZGVyczogW1xyXG4gICAgICAgIE50a1NtYXJ0TW9kYWxTZXJ2aWNlLFxyXG4gICAgICAgIE50a1NtYXJ0TW9kYWxTdGFja1NlcnZpY2VcclxuICAgICAgXSxcclxuICAgIH07XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -453,2 +453,2 @@ import { Injectable, ComponentFactoryResolver, ApplicationRef, Injector, Inject, TemplateRef, Type, PLATFORM_ID } from '@angular/core'; | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnRrLXNtYXJ0LW1vZGF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50IFRoZSBLZXlib2FyIGRFdmVudFxyXG4gICAqL1xyXG4gIHByaXZhdGUgX3RyYXBGb2N1c01vZGFsID0gKGV2ZW50OiBLZXlib2FyZEV2ZW50KSA9PiB7XHJcbiAgICBpZiAoZXZlbnQua2V5ID09PSAnVGFiJykge1xyXG4gICAgICB0cnkge1xyXG4gICAgICAgIGNvbnN0IG1vZGFsID0gdGhpcy5nZXRUb3BPcGVuZWRNb2RhbCgpO1xyXG5cclxuICAgICAgICBpZiAoIW1vZGFsLm5zbURpYWxvZy5maXJzdC5uYXRpdmVFbGVtZW50LmNvbnRhaW5zKGRvY3VtZW50LmFjdGl2ZUVsZW1lbnQpKSB7XHJcbiAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xyXG4gICAgICAgICAgZXZlbnQuc3RvcFByb3BhZ2F0aW9uKCk7XHJcbiAgICAgICAgICBtb2RhbC5uc21EaWFsb2cuZmlyc3QubmF0aXZlRWxlbWVudC5mb2N1cygpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICAgIH0gY2F0Y2ggKGUpIHtcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICByZXR1cm4gZmFsc2U7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -6,2 +6,2 @@ /** | ||
export { NtkSmartModalStackService as ɵa } from './lib/modal/ntk-smart-modal-stack.service'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LW50ay1zbWFydC1tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL1ZvbHVtZXMvd29yay9Tb3VyY2VLYXJhdmkvR2l0SHViL25wbS1udGstY21zLWFuZ3VsYXIvcHJvamVjdHMvbmd4LW50ay1zbWFydC1tb2R1bGUvc3JjLyIsInNvdXJjZXMiOlsibmd4LW50ay1zbWFydC1tb2R1bGUudHMiXSw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10,2 +10,2 @@ /* | ||
export { NtkSmartLoaderModule } from './lib/loader/ntk-smart-loader.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvVm9sdW1lcy93b3JrL1NvdXJjZUthcmF2aS9HaXRIdWIvbnBtLW50ay1jbXMtYW5ndWxhci9wcm9qZWN0cy9uZ3gtbnRrLXNtYXJ0LW1vZHVsZS9zcmMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsT0FBTyxFQUFDLG9CQUFvQixFQUFDLE1BQU0scUNBQXFDLENBQUM7QUFDekUsT0FBTyxFQUFDLHNCQUFzQixFQUFDLE1BQU0sdUNBQXVDLENBQUM7QUFDN0UsT0FBTyxFQUFDLG1CQUFtQixFQUFDLE1BQU0sb0NBQW9DLENBQUM7QUFFdkUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDOUUsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0seUNBQXlDLENBQUM7QUFDbEYsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sc0NBQXNDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG50ay1jbXMtbW9kdWxlXG4gKi9cblxuZXhwb3J0IHtOdGtTbWFydE1vZGFsU2VydmljZX0gZnJvbSAnLi9saWIvbW9kYWwvbnRrLXNtYXJ0LW1vZGFsLnNlcnZpY2UnO1xuZXhwb3J0IHtOdGtTbWFydE1vZGFsQ29tcG9uZW50fSBmcm9tICcuL2xpYi9tb2RhbC9udGstc21hcnQtbW9kYWwuY29tcG9uZW50JztcbmV4cG9ydCB7TnRrU21hcnRNb2RhbE1vZHVsZX0gZnJvbSAnLi9saWIvbW9kYWwvb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IG9mIG50ay1jbXMtbW9kdWxlXHJcbiAqL1xyXG5cclxuZXhwb3J0IHtOdGtTbWFydE1vZGFsU2VydmljZX0gZnJvbSAnLi9saWIvbW9kYWwvbnRrLXNtYXJ0LW1vZGFsLnNlcnZpY2UnO1xyXG5leHBvcnQge050a1NtYXJ0TW9kYWxDb21wb25lbnR9IGZyb20gJy4vbGliL21vZGFsL250ay1zbWFydC1tb2RhbC5jb21wb25lbnQnO1xyXG5leHBvcnQge050a1NtYXJ0TW9kYWxNb2R1bGV9IGZyb20gJy4vbGliL21vZGFsL250ay1zbWFydC1tb2RhbC5tb2R1bGUnO1xyXG5cclxuZXhwb3J0IHsgTnRrU21hcnRMb2FkZXJTZXJ2aWNlIH0gZnJvbSAnLi9saWIvbG9hZGVyL250ay1zbWFydC1sb2FkZXIuc2VydmljZSc7XHJcbmV4cG9ydCB7IE50a1NtYXJ0TG9hZGVyQ29tcG9uZW50IH0gZnJvbSAnLi9saWIvbG9hZGVyL250ay1zbWFydC1sb2FkZXIuY29tcG9uZW50JztcclxuZXhwb3J0IHsgTnRrU21hcnRMb2FkZXJNb2R1bGUgfSBmcm9tICcuL2xpYi9sb2FkZXIvbnRrLXNtYXJ0LWxvYWRlci5tb2R1bGUnO1xyXG4iXX0= |
@@ -0,0 +0,0 @@ import { Injectable, EventEmitter, Component, Renderer2, ChangeDetectorRef, ComponentFactoryResolver, Inject, PLATFORM_ID, Input, Output, ViewChildren, ViewContainerRef, HostListener, Type, TemplateRef, ApplicationRef, Injector, NgModule, ɵɵdefineInjectable } from '@angular/core'; |
@@ -0,0 +0,0 @@ import { NtkSmartLoaderComponent } from './ntk-smart-loader.component'; |
@@ -0,0 +0,0 @@ import { OnInit, OnDestroy, ChangeDetectorRef, EventEmitter } from '@angular/core'; |
@@ -0,0 +0,0 @@ import { ModuleWithProviders } from '@angular/core'; |
@@ -0,0 +0,0 @@ import { LoaderInstance } from './loader-instance'; |
@@ -0,0 +0,0 @@ import { NtkSmartModalComponent } from './ntk-smart-modal.component'; |
@@ -0,0 +0,0 @@ import { ModalInstance } from './modal-instance'; |
@@ -0,0 +0,0 @@ import { AfterViewInit, ChangeDetectorRef, Component, ComponentFactoryResolver, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, Renderer2, Type, ViewContainerRef } from '@angular/core'; |
@@ -0,0 +0,0 @@ export declare const NtkSmartModalConfig: { |
@@ -0,0 +0,0 @@ import { ModuleWithProviders } from '@angular/core'; |
@@ -0,0 +0,0 @@ import { ComponentFactoryResolver, ApplicationRef, Injector, TemplateRef, Type } from '@angular/core'; |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "ngx-ntk-smart-module", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Ntk Cms Modal ", | ||
@@ -19,3 +19,3 @@ "author": "Alireza-Karavi", | ||
"dependencies": { | ||
"tslib": "^2.0.0" | ||
"tslib": ">=2.0.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "main": "bundles/ngx-ntk-smart-module.umd.js", |
@@ -0,0 +0,0 @@ export { NtkSmartModalService } from './lib/modal/ntk-smart-modal.service'; |
@@ -0,0 +0,0 @@ # NgxNtkSmartModule |
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 not supported yet
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 not supported yet
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
629584
5065
Updatedtslib@>=2.0.0