@boxmeglobal/omisell-ui-lib
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -252,2 +252,10 @@ (function (global, factory) { | ||
function (data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -267,10 +275,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
}; | ||
@@ -277,0 +277,0 @@ /** |
@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/overlay"),require("rxjs"),require("@ngx-translate/core"),require("@angular/cdk/portal"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@boxmeglobal/omisell-ui-lib/omisell-confirm-modal",["exports","@angular/core","@angular/common","@angular/cdk/overlay","rxjs","@ngx-translate/core","@angular/cdk/portal","rxjs/operators"],t):t(((e=e||self).boxmeglobal=e.boxmeglobal||{},e.boxmeglobal["omisell-ui-lib"]=e.boxmeglobal["omisell-ui-lib"]||{},e.boxmeglobal["omisell-ui-lib"]["omisell-confirm-modal"]={}),e.ng.core,e.ng.common,e.ng.cdk.overlay,e.rxjs,e.core$1,e.ng.cdk.portal,e.rxjs.operators)}(this,(function(e,t,n,o,r,a,i,l){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var c=function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};var s=function(){function e(e){this._translateService=e,this._closeEvent$=new r.Subject,this.dataModel={isDanger:!0,textCancel:"Cancel",textConfirm:"Confirm",urlConfirm:"",title:""}}return e.prototype.setModalData=function(e){this._translateService&&("string"==typeof e.textConfirm&&(e.textConfirm=this._translateService.instant(e.textConfirm)),"string"==typeof e.textCancel&&(e.textCancel=this._translateService.instant(e.textCancel)),"string"==typeof e.title&&(e.title=this._translateService.instant(e.title)),"string"==typeof e.content&&(e.content=this._translateService.instant(e.content))),this.dataModel={isDanger:e.hasOwnProperty("isDanger")?e.isDanger:this.dataModel.isDanger,textConfirm:e.textConfirm||this.dataModel.textConfirm,textCancel:e.textCancel||this.dataModel.textCancel,urlConfirm:e.urlConfirm||this.dataModel.urlConfirm,content:e.content||"",title:e.title||this.dataModel.title}},e.prototype.confirm=function(){this._closeEvent$.next({reason:"confirm"})},e.prototype.cancel=function(){this._closeEvent$.next({reason:"dismiss"})},e.prototype.getCloseEvent=function(){return this._closeEvent$.asObservable()},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:a.TranslateService,decorators:[{type:t.Optional}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(a.TranslateService,8))},token:e,providedIn:"root"}),e}();var d=function(){function e(e,t){this.modalDataService=e,this._injector=t}return e.prototype.ngOnInit=function(){},e.prototype.confirm=function(){},e.decorators=[{type:t.Component,args:[{selector:"omisell-confirm-modal",template:'<div class="omisell-confirm-modal border rounded">\n <div class="omisell-confirm-modal__body bg-white">\n <h5 class="omisell-confirm-modal__title font-weight-bold mb-4">{{ modalDataService.dataModel.title }}</h5>\n <p class="omisell-confirm-modal__content mb-0">{{ modalDataService.dataModel.content }}</p>\n </div>\n\n <div class="group-actions p-3 bg-light text-right">\n <button type="button" class="btn mr-2" (click)="modalDataService.cancel()">\n {{ modalDataService.dataModel.textCancel }}\n </button>\n <button\n *ngIf="!modalDataService.dataModel.urlConfirm"\n type="button" class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n (click)="modalDataService.confirm()">\n {{ modalDataService.dataModel.textConfirm }}\n </button>\n <a\n *ngIf="modalDataService.dataModel.urlConfirm"\n class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n target="_blank"\n href="{{modalDataService.dataModel.urlConfirm}}">\n {{ modalDataService.dataModel.textConfirm }}\n </a>\n </div>\n</div>\n',encapsulation:t.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[{type:s},{type:t.Injector}]},e}();var m=function(){function e(e,t){this._overlay=e,this._dataService=t,this.defaultOverlayConfig={hasBackdrop:!0,disposeOnNavigation:!0}}return e.prototype.openModal=function(e){var t=this.buildOverlayConfig(),n=this._overlay.create(t);this._dataService.setModalData(e);var o=new i.ComponentPortal(d);return n.attach(o),r.merge(n.backdropClick().pipe(l.map((function(){return{reason:"dismiss"}}))),this._dataService.getCloseEvent()).pipe(l.take(1),l.tap((function(){n.detach(),n.dispose()})),l.map((function(e){if("confirm"===e.reason)return e;throw new Error("error")})))},e.prototype.buildOverlayConfig=function(){var e=this.defaultOverlayConfig;return c({},e,{scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically()})},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:o.Overlay},{type:s}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(o.Overlay),t.ɵɵinject(s))},token:e,providedIn:"root"}),e}();var u=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[m]}},e.decorators=[{type:t.NgModule,args:[{declarations:[d],entryComponents:[d],imports:[n.CommonModule,o.OverlayModule],providers:[m]}]}],e}();e.ConfirmModalService=m,e.OmisellConfirmModalModule=u,e.ɵa=d,e.ɵb=s,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var c=function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};var s=function(){function e(e){this._translateService=e,this._closeEvent$=new r.Subject,this.dataModel={isDanger:!0,textCancel:"Cancel",textConfirm:"Confirm",urlConfirm:"",title:""}}return e.prototype.setModalData=function(e){this.dataModel={isDanger:e.hasOwnProperty("isDanger")?e.isDanger:this.dataModel.isDanger,textConfirm:e.textConfirm||this.dataModel.textConfirm,textCancel:e.textCancel||this.dataModel.textCancel,urlConfirm:e.urlConfirm||this.dataModel.urlConfirm,content:e.content||"",title:e.title||this.dataModel.title},this._translateService&&("string"==typeof e.textConfirm&&(e.textConfirm=this._translateService.instant(e.textConfirm)),"string"==typeof e.textCancel&&(e.textCancel=this._translateService.instant(e.textCancel)),"string"==typeof e.title&&(e.title=this._translateService.instant(e.title)),"string"==typeof e.content&&(e.content=this._translateService.instant(e.content)))},e.prototype.confirm=function(){this._closeEvent$.next({reason:"confirm"})},e.prototype.cancel=function(){this._closeEvent$.next({reason:"dismiss"})},e.prototype.getCloseEvent=function(){return this._closeEvent$.asObservable()},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:a.TranslateService,decorators:[{type:t.Optional}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(a.TranslateService,8))},token:e,providedIn:"root"}),e}();var d=function(){function e(e,t){this.modalDataService=e,this._injector=t}return e.prototype.ngOnInit=function(){},e.prototype.confirm=function(){},e.decorators=[{type:t.Component,args:[{selector:"omisell-confirm-modal",template:'<div class="omisell-confirm-modal border rounded">\n <div class="omisell-confirm-modal__body bg-white">\n <h5 class="omisell-confirm-modal__title font-weight-bold mb-4">{{ modalDataService.dataModel.title }}</h5>\n <p class="omisell-confirm-modal__content mb-0">{{ modalDataService.dataModel.content }}</p>\n </div>\n\n <div class="group-actions p-3 bg-light text-right">\n <button type="button" class="btn mr-2" (click)="modalDataService.cancel()">\n {{ modalDataService.dataModel.textCancel }}\n </button>\n <button\n *ngIf="!modalDataService.dataModel.urlConfirm"\n type="button" class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n (click)="modalDataService.confirm()">\n {{ modalDataService.dataModel.textConfirm }}\n </button>\n <a\n *ngIf="modalDataService.dataModel.urlConfirm"\n class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n target="_blank"\n href="{{modalDataService.dataModel.urlConfirm}}">\n {{ modalDataService.dataModel.textConfirm }}\n </a>\n </div>\n</div>\n',encapsulation:t.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[{type:s},{type:t.Injector}]},e}();var m=function(){function e(e,t){this._overlay=e,this._dataService=t,this.defaultOverlayConfig={hasBackdrop:!0,disposeOnNavigation:!0}}return e.prototype.openModal=function(e){var t=this.buildOverlayConfig(),n=this._overlay.create(t);this._dataService.setModalData(e);var o=new i.ComponentPortal(d);return n.attach(o),r.merge(n.backdropClick().pipe(l.map((function(){return{reason:"dismiss"}}))),this._dataService.getCloseEvent()).pipe(l.take(1),l.tap((function(){n.detach(),n.dispose()})),l.map((function(e){if("confirm"===e.reason)return e;throw new Error("error")})))},e.prototype.buildOverlayConfig=function(){var e=this.defaultOverlayConfig;return c({},e,{scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically()})},e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:o.Overlay},{type:s}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(o.Overlay),t.ɵɵinject(s))},token:e,providedIn:"root"}),e}();var u=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[m]}},e.decorators=[{type:t.NgModule,args:[{declarations:[d],entryComponents:[d],imports:[n.CommonModule,o.OverlayModule],providers:[m]}]}],e}();e.ConfirmModalService=m,e.OmisellConfirmModalModule=u,e.ɵa=d,e.ɵb=s,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=boxmeglobal-omisell-ui-lib-omisell-confirm-modal.umd.min.js.map |
@@ -1015,2 +1015,10 @@ (function (global, factory) { | ||
function (data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -1030,10 +1038,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
}; | ||
@@ -1040,0 +1040,0 @@ /** |
@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/forms"),require("@angular/cdk/overlay"),require("@ngx-translate/core"),require("@angular/cdk/portal")):"function"==typeof define&&define.amd?define("@boxmeglobal/omisell-ui-lib",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","@angular/forms","@angular/cdk/overlay","@ngx-translate/core","@angular/cdk/portal"],e):e(((t=t||self).boxmeglobal=t.boxmeglobal||{},t.boxmeglobal["omisell-ui-lib"]={}),t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators,t.ng.forms,t.ng.cdk.overlay,t.core$1,t.ng.cdk.portal)}(this,(function(t,e,n,o,i,r,a,s,c){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var l=function(){return(l=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var u=function(){function t(){this.listTab=[],this.activeTabChange=new o.Subject}return Object.defineProperty(t.prototype,"activeId",{get:function(){return this._activeId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTemplate",{get:function(){var t=this,e=this.listTab.find((function(e){return e.id==t._activeId}));return e&&e.template||null},enumerable:!0,configurable:!0}),t.prototype.setTabActive=function(t){this._activeId&&this.activeTabChange.next(t),this._activeId=t},t.prototype.addTab=function(t){this.listTab.find((function(e){return e.id==t.id}))||this.listTab.push(l({},t))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var p=function(){function t(t){this._templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[omisell-tabcontent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}();var d=function(){function t(t){this.tabActivateService=t}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this.tabActivateService.addTab({id:this.tabID,template:this.tabcontent&&this.tabcontent._templateRef||null})},t.prototype.active=function(){this.tabActivateService.setTabActive(this.tabID)},t.decorators=[{type:e.Component,args:[{selector:"omisell-tab",template:'<div class="tab-control" [class.active]="tabActivateService.activeId == tabID" (click)="active()">\n <div class="tab-title">{{ title }}</div>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:u}]},t.propDecorators={tabcontent:[{type:e.ContentChild,args:[p,{static:!1}]}],tabID:[{type:e.Input}],title:[{type:e.Input}]},t}();var f=function(){function t(t){this.tabActivateService=t,this.destroy$=new o.Subject,this.changeTab=new e.EventEmitter(!1)}return t.prototype.ngOnInit=function(){var t=this;this.tabActivateService.activeTabChange.pipe(i.takeUntil(this.destroy$)).subscribe((function(e){return t.changeTab.emit(e)})),this.tabIdDefault&&this.tabActivateService.setTabActive(this.tabIdDefault)},t.prototype.ngAfterContentInit=function(){var t=this;this.tabs.changes.pipe(i.startWith(!0),i.filter((function(){return!t.tabActivateService.activeId&&t.tabs.length>0})),i.delay(0),i.takeUntil(this.destroy$)).subscribe((function(){var e=t.tabs.first;t.tabActivateService.setTabActive(e.tabID)}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.destroy$.unsubscribe()},t.decorators=[{type:e.Component,args:[{selector:"omisell-tabset",template:'<div class="control-wrapper d-flex w-100">\n <ng-content></ng-content>\n</div>\n\n<div class="tab-content" *ngIf="tabActivateService.activeTemplate">\n <ng-container *ngTemplateOutlet="tabActivateService.activeTemplate"></ng-container>\n</div>\n',providers:[u],styles:[""]}]}],t.ctorParameters=function(){return[{type:u}]},t.propDecorators={tabs:[{type:e.ContentChildren,args:[d,{descendants:!1}]}],tabIdDefault:[{type:e.Input,args:["tabIdDefault"]}],changeTab:[{type:e.Output,args:["changeTab"]}]},t}();var h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[d,f,p],exports:[d,f,p],imports:[n.CommonModule]}]}],t}(),v=function(){function t(){this.isActive=!1,this._onChangeFn=function(t){},this._onTouchedFn=function(){},this.isDisabled=!1,this.onChangeEvent=new e.EventEmitter(!0)}return t.prototype.onClick=function(){this.isDisabled||(this.isActive=!this.isActive,this._onTouchedFn(),this.onChangeEvent.emit(this.isActive),this._onChangeFn(this.isActive))},t.prototype.ngOnInit=function(){},t.prototype.registerOnChange=function(t){this._onChangeFn=t},t.prototype.writeValue=function(t){this.isActive=!!t},t.prototype.registerOnTouched=function(t){this._onTouchedFn=t},t.prototype.setDisabledState=function(t){this.isDisabled=t},t.decorators=[{type:e.Component,args:[{selector:"omisell-switch",template:'<div class="ui-switch" [class.ui-switch--checked]="isActive" [class.ui-switch--disabled]="isDisabled">\n <span class="ui-switch__inner"></span>\n</div>\n',encapsulation:e.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return t})),multi:!0}]}]}],t.ctorParameters=function(){return[]},t.propDecorators={isDisabled:[{type:e.Input,args:["disabled"]}],onChangeEvent:[{type:e.Output,args:["onChange"]}],onClick:[{type:e.HostListener,args:["click"]}]},t}();var m=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[v],imports:[n.CommonModule],exports:[v]}]}],t}(),g=new e.InjectionToken("OmisellGroupToken"),b=function(){function t(){this._onChangeFn=function(t){},this._onTouchedFn=function(){},this.isDisabled=!1}return Object.defineProperty(t.prototype,"selectedOption",{get:function(){return this._selectedOption},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.registerOnChange=function(t){this._onChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouchedFn=t},t.prototype.writeValue=function(t){this._selectedOption=t,this._checkRadiosInput()},t.prototype.setDisabledState=function(t){this.isDisabled=t},t.prototype.setSelectedOption=function(t){this._selectedOption!=t&&(this._selectedOption=t,this._checkRadiosInput(),this._onChangeFn&&this._onChangeFn(t),this._onTouchedFn&&this._onTouchedFn())},t.prototype._checkRadiosInput=function(){this._radios&&this._radios.length&&this._radios.forEach((function(t){return t.updateStatusCheck()}))},t.decorators=[{type:e.Component,args:[{selector:"omisell-radio-group",template:"\n <ng-content></ng-content>\n ",encapsulation:e.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return t})),multi:!0},{provide:g,useExisting:t}]}]}],t.propDecorators={_radios:[{type:e.ContentChildren,args:[e.forwardRef((function(){return y})),{descendants:!1}]}],isDisabled:[{type:e.Input,args:["disabled"]}]},t}();var y=function(){function t(t){this._inputGroup=t}return Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this._inputGroup&&(this._checked=this._value==this._inputGroup.selectedOption))},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){this.value!=this._inputGroup.selectedOption&&this._inputGroup.setSelectedOption(this.value)},t.prototype.updateStatusCheck=function(){this._checked=this.value==this._inputGroup.selectedOption},t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"omisell-radio-input",template:'<div class="ui-radio-input__wrapper">\n <div class="ui-radio-input" [class.ui-radio-input--checked]="checked">\n <div class="ui-radio-input__inner"></div>\n </div>\n <span class="ui-radio-input__name">{{ name }}</span>\n</div>\n',encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:b,decorators:[{type:e.Inject,args:[g]}]}]},t.propDecorators={name:[{type:e.Input}],value:[{type:e.Input,args:["value"]}],onClick:[{type:e.HostListener,args:["click"]}]},t}();var C=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[y,b],imports:[n.CommonModule],exports:[y,b]}]}],t}(),_=function(){function t(t){this._translateService=t,this._closeEvent$=new o.Subject,this.dataModel={isDanger:!0,textCancel:"Cancel",textConfirm:"Confirm",urlConfirm:"",title:""}}return t.prototype.setModalData=function(t){this._translateService&&("string"==typeof t.textConfirm&&(t.textConfirm=this._translateService.instant(t.textConfirm)),"string"==typeof t.textCancel&&(t.textCancel=this._translateService.instant(t.textCancel)),"string"==typeof t.title&&(t.title=this._translateService.instant(t.title)),"string"==typeof t.content&&(t.content=this._translateService.instant(t.content))),this.dataModel={isDanger:t.hasOwnProperty("isDanger")?t.isDanger:this.dataModel.isDanger,textConfirm:t.textConfirm||this.dataModel.textConfirm,textCancel:t.textCancel||this.dataModel.textCancel,urlConfirm:t.urlConfirm||this.dataModel.urlConfirm,content:t.content||"",title:t.title||this.dataModel.title}},t.prototype.confirm=function(){this._closeEvent$.next({reason:"confirm"})},t.prototype.cancel=function(){this._closeEvent$.next({reason:"dismiss"})},t.prototype.getCloseEvent=function(){return this._closeEvent$.asObservable()},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:s.TranslateService,decorators:[{type:e.Optional}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(s.TranslateService,8))},token:t,providedIn:"root"}),t}();var S=function(){function t(t,e){this.modalDataService=t,this._injector=e}return t.prototype.ngOnInit=function(){},t.prototype.confirm=function(){},t.decorators=[{type:e.Component,args:[{selector:"omisell-confirm-modal",template:'<div class="omisell-confirm-modal border rounded">\n <div class="omisell-confirm-modal__body bg-white">\n <h5 class="omisell-confirm-modal__title font-weight-bold mb-4">{{ modalDataService.dataModel.title }}</h5>\n <p class="omisell-confirm-modal__content mb-0">{{ modalDataService.dataModel.content }}</p>\n </div>\n\n <div class="group-actions p-3 bg-light text-right">\n <button type="button" class="btn mr-2" (click)="modalDataService.cancel()">\n {{ modalDataService.dataModel.textCancel }}\n </button>\n <button\n *ngIf="!modalDataService.dataModel.urlConfirm"\n type="button" class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n (click)="modalDataService.confirm()">\n {{ modalDataService.dataModel.textConfirm }}\n </button>\n <a\n *ngIf="modalDataService.dataModel.urlConfirm"\n class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n target="_blank"\n href="{{modalDataService.dataModel.urlConfirm}}">\n {{ modalDataService.dataModel.textConfirm }}\n </a>\n </div>\n</div>\n',encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:_},{type:e.Injector}]},t}();var I=function(){function t(t,e){this._overlay=t,this._dataService=e,this.defaultOverlayConfig={hasBackdrop:!0,disposeOnNavigation:!0}}return t.prototype.openModal=function(t){var e=this.buildOverlayConfig(),n=this._overlay.create(e);this._dataService.setModalData(t);var r=new c.ComponentPortal(S);return n.attach(r),o.merge(n.backdropClick().pipe(i.map((function(){return{reason:"dismiss"}}))),this._dataService.getCloseEvent()).pipe(i.take(1),i.tap((function(){n.detach(),n.dispose()})),i.map((function(t){if("confirm"===t.reason)return t;throw new Error("error")})))},t.prototype.buildOverlayConfig=function(){var t=this.defaultOverlayConfig;return l({},t,{scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically()})},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:a.Overlay},{type:_}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(a.Overlay),e.ɵɵinject(_))},token:t,providedIn:"root"}),t}();var O=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[I]}},t.decorators=[{type:e.NgModule,args:[{declarations:[S],entryComponents:[S],imports:[n.CommonModule,a.OverlayModule],providers:[I]}]}],t}();t.ConfirmModalService=I,t.OmisellConfirmModalModule=O,t.OmisellRadioInputModule=C,t.OmisellSwitchComponent=v,t.OmisellSwitchModule=m,t.OmisellTabsetModule=h,t.TabComponent=d,t.TabContentDirective=p,t.TabsetComponent=f,t.ɵa=u,t.ɵb=y,t.ɵc=g,t.ɵd=b,t.ɵe=S,t.ɵf=_,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */var l=function(){return(l=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var u=function(){function t(){this.listTab=[],this.activeTabChange=new o.Subject}return Object.defineProperty(t.prototype,"activeId",{get:function(){return this._activeId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeTemplate",{get:function(){var t=this,e=this.listTab.find((function(e){return e.id==t._activeId}));return e&&e.template||null},enumerable:!0,configurable:!0}),t.prototype.setTabActive=function(t){this._activeId&&this.activeTabChange.next(t),this._activeId=t},t.prototype.addTab=function(t){this.listTab.find((function(e){return e.id==t.id}))||this.listTab.push(l({},t))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}();var p=function(){function t(t){this._templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"[omisell-tabcontent]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}();var d=function(){function t(t){this.tabActivateService=t}return t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this.tabActivateService.addTab({id:this.tabID,template:this.tabcontent&&this.tabcontent._templateRef||null})},t.prototype.active=function(){this.tabActivateService.setTabActive(this.tabID)},t.decorators=[{type:e.Component,args:[{selector:"omisell-tab",template:'<div class="tab-control" [class.active]="tabActivateService.activeId == tabID" (click)="active()">\n <div class="tab-title">{{ title }}</div>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[{type:u}]},t.propDecorators={tabcontent:[{type:e.ContentChild,args:[p,{static:!1}]}],tabID:[{type:e.Input}],title:[{type:e.Input}]},t}();var f=function(){function t(t){this.tabActivateService=t,this.destroy$=new o.Subject,this.changeTab=new e.EventEmitter(!1)}return t.prototype.ngOnInit=function(){var t=this;this.tabActivateService.activeTabChange.pipe(i.takeUntil(this.destroy$)).subscribe((function(e){return t.changeTab.emit(e)})),this.tabIdDefault&&this.tabActivateService.setTabActive(this.tabIdDefault)},t.prototype.ngAfterContentInit=function(){var t=this;this.tabs.changes.pipe(i.startWith(!0),i.filter((function(){return!t.tabActivateService.activeId&&t.tabs.length>0})),i.delay(0),i.takeUntil(this.destroy$)).subscribe((function(){var e=t.tabs.first;t.tabActivateService.setTabActive(e.tabID)}))},t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete(),this.destroy$.unsubscribe()},t.decorators=[{type:e.Component,args:[{selector:"omisell-tabset",template:'<div class="control-wrapper d-flex w-100">\n <ng-content></ng-content>\n</div>\n\n<div class="tab-content" *ngIf="tabActivateService.activeTemplate">\n <ng-container *ngTemplateOutlet="tabActivateService.activeTemplate"></ng-container>\n</div>\n',providers:[u],styles:[""]}]}],t.ctorParameters=function(){return[{type:u}]},t.propDecorators={tabs:[{type:e.ContentChildren,args:[d,{descendants:!1}]}],tabIdDefault:[{type:e.Input,args:["tabIdDefault"]}],changeTab:[{type:e.Output,args:["changeTab"]}]},t}();var h=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[d,f,p],exports:[d,f,p],imports:[n.CommonModule]}]}],t}(),v=function(){function t(){this.isActive=!1,this._onChangeFn=function(t){},this._onTouchedFn=function(){},this.isDisabled=!1,this.onChangeEvent=new e.EventEmitter(!0)}return t.prototype.onClick=function(){this.isDisabled||(this.isActive=!this.isActive,this._onTouchedFn(),this.onChangeEvent.emit(this.isActive),this._onChangeFn(this.isActive))},t.prototype.ngOnInit=function(){},t.prototype.registerOnChange=function(t){this._onChangeFn=t},t.prototype.writeValue=function(t){this.isActive=!!t},t.prototype.registerOnTouched=function(t){this._onTouchedFn=t},t.prototype.setDisabledState=function(t){this.isDisabled=t},t.decorators=[{type:e.Component,args:[{selector:"omisell-switch",template:'<div class="ui-switch" [class.ui-switch--checked]="isActive" [class.ui-switch--disabled]="isDisabled">\n <span class="ui-switch__inner"></span>\n</div>\n',encapsulation:e.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return t})),multi:!0}]}]}],t.ctorParameters=function(){return[]},t.propDecorators={isDisabled:[{type:e.Input,args:["disabled"]}],onChangeEvent:[{type:e.Output,args:["onChange"]}],onClick:[{type:e.HostListener,args:["click"]}]},t}();var m=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[v],imports:[n.CommonModule],exports:[v]}]}],t}(),g=new e.InjectionToken("OmisellGroupToken"),b=function(){function t(){this._onChangeFn=function(t){},this._onTouchedFn=function(){},this.isDisabled=!1}return Object.defineProperty(t.prototype,"selectedOption",{get:function(){return this._selectedOption},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.registerOnChange=function(t){this._onChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouchedFn=t},t.prototype.writeValue=function(t){this._selectedOption=t,this._checkRadiosInput()},t.prototype.setDisabledState=function(t){this.isDisabled=t},t.prototype.setSelectedOption=function(t){this._selectedOption!=t&&(this._selectedOption=t,this._checkRadiosInput(),this._onChangeFn&&this._onChangeFn(t),this._onTouchedFn&&this._onTouchedFn())},t.prototype._checkRadiosInput=function(){this._radios&&this._radios.length&&this._radios.forEach((function(t){return t.updateStatusCheck()}))},t.decorators=[{type:e.Component,args:[{selector:"omisell-radio-group",template:"\n <ng-content></ng-content>\n ",encapsulation:e.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return t})),multi:!0},{provide:g,useExisting:t}]}]}],t.propDecorators={_radios:[{type:e.ContentChildren,args:[e.forwardRef((function(){return y})),{descendants:!1}]}],isDisabled:[{type:e.Input,args:["disabled"]}]},t}();var y=function(){function t(t){this._inputGroup=t}return Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this._inputGroup&&(this._checked=this._value==this._inputGroup.selectedOption))},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){this.value!=this._inputGroup.selectedOption&&this._inputGroup.setSelectedOption(this.value)},t.prototype.updateStatusCheck=function(){this._checked=this.value==this._inputGroup.selectedOption},t.prototype.ngOnInit=function(){},t.decorators=[{type:e.Component,args:[{selector:"omisell-radio-input",template:'<div class="ui-radio-input__wrapper">\n <div class="ui-radio-input" [class.ui-radio-input--checked]="checked">\n <div class="ui-radio-input__inner"></div>\n </div>\n <span class="ui-radio-input__name">{{ name }}</span>\n</div>\n',encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:b,decorators:[{type:e.Inject,args:[g]}]}]},t.propDecorators={name:[{type:e.Input}],value:[{type:e.Input,args:["value"]}],onClick:[{type:e.HostListener,args:["click"]}]},t}();var C=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[y,b],imports:[n.CommonModule],exports:[y,b]}]}],t}(),_=function(){function t(t){this._translateService=t,this._closeEvent$=new o.Subject,this.dataModel={isDanger:!0,textCancel:"Cancel",textConfirm:"Confirm",urlConfirm:"",title:""}}return t.prototype.setModalData=function(t){this.dataModel={isDanger:t.hasOwnProperty("isDanger")?t.isDanger:this.dataModel.isDanger,textConfirm:t.textConfirm||this.dataModel.textConfirm,textCancel:t.textCancel||this.dataModel.textCancel,urlConfirm:t.urlConfirm||this.dataModel.urlConfirm,content:t.content||"",title:t.title||this.dataModel.title},this._translateService&&("string"==typeof t.textConfirm&&(t.textConfirm=this._translateService.instant(t.textConfirm)),"string"==typeof t.textCancel&&(t.textCancel=this._translateService.instant(t.textCancel)),"string"==typeof t.title&&(t.title=this._translateService.instant(t.title)),"string"==typeof t.content&&(t.content=this._translateService.instant(t.content)))},t.prototype.confirm=function(){this._closeEvent$.next({reason:"confirm"})},t.prototype.cancel=function(){this._closeEvent$.next({reason:"dismiss"})},t.prototype.getCloseEvent=function(){return this._closeEvent$.asObservable()},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:s.TranslateService,decorators:[{type:e.Optional}]}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(s.TranslateService,8))},token:t,providedIn:"root"}),t}();var S=function(){function t(t,e){this.modalDataService=t,this._injector=e}return t.prototype.ngOnInit=function(){},t.prototype.confirm=function(){},t.decorators=[{type:e.Component,args:[{selector:"omisell-confirm-modal",template:'<div class="omisell-confirm-modal border rounded">\n <div class="omisell-confirm-modal__body bg-white">\n <h5 class="omisell-confirm-modal__title font-weight-bold mb-4">{{ modalDataService.dataModel.title }}</h5>\n <p class="omisell-confirm-modal__content mb-0">{{ modalDataService.dataModel.content }}</p>\n </div>\n\n <div class="group-actions p-3 bg-light text-right">\n <button type="button" class="btn mr-2" (click)="modalDataService.cancel()">\n {{ modalDataService.dataModel.textCancel }}\n </button>\n <button\n *ngIf="!modalDataService.dataModel.urlConfirm"\n type="button" class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n (click)="modalDataService.confirm()">\n {{ modalDataService.dataModel.textConfirm }}\n </button>\n <a\n *ngIf="modalDataService.dataModel.urlConfirm"\n class="btn"\n [className]="modalDataService.dataModel.isDanger ? \'btn btn-danger\': \'btn btn-primary\'"\n target="_blank"\n href="{{modalDataService.dataModel.urlConfirm}}">\n {{ modalDataService.dataModel.textConfirm }}\n </a>\n </div>\n</div>\n',encapsulation:e.ViewEncapsulation.None}]}],t.ctorParameters=function(){return[{type:_},{type:e.Injector}]},t}();var I=function(){function t(t,e){this._overlay=t,this._dataService=e,this.defaultOverlayConfig={hasBackdrop:!0,disposeOnNavigation:!0}}return t.prototype.openModal=function(t){var e=this.buildOverlayConfig(),n=this._overlay.create(e);this._dataService.setModalData(t);var r=new c.ComponentPortal(S);return n.attach(r),o.merge(n.backdropClick().pipe(i.map((function(){return{reason:"dismiss"}}))),this._dataService.getCloseEvent()).pipe(i.take(1),i.tap((function(){n.detach(),n.dispose()})),i.map((function(t){if("confirm"===t.reason)return t;throw new Error("error")})))},t.prototype.buildOverlayConfig=function(){var t=this.defaultOverlayConfig;return l({},t,{scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically()})},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:a.Overlay},{type:_}]},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(a.Overlay),e.ɵɵinject(_))},token:t,providedIn:"root"}),t}();var O=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[I]}},t.decorators=[{type:e.NgModule,args:[{declarations:[S],entryComponents:[S],imports:[n.CommonModule,a.OverlayModule],providers:[I]}]}],t}();t.ConfirmModalService=I,t.OmisellConfirmModalModule=O,t.OmisellRadioInputModule=C,t.OmisellSwitchComponent=v,t.OmisellSwitchModule=m,t.OmisellTabsetModule=h,t.TabComponent=d,t.TabContentDirective=p,t.TabsetComponent=f,t.ɵa=u,t.ɵb=y,t.ɵc=g,t.ɵd=b,t.ɵe=S,t.ɵf=_,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=boxmeglobal-omisell-ui-lib.umd.min.js.map |
@@ -31,2 +31,10 @@ /** | ||
setModalData(data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -46,10 +54,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
} | ||
@@ -97,2 +97,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGJveG1lZ2xvYmFsL29taXNlbGwtdWktbGliL29taXNlbGwtY29uZmlybS1tb2RhbC8iLCJzb3VyY2VzIjpbIm1vZGFsLWRhdGEuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUF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biAgICAgIH1cblxuICAgICAgaWYgKHR5cGVvZiBkYXRhLmNvbnRlbnQgPT0gJ3N0cmluZycpIHtcbiAgICAgICAgZGF0YS5jb250ZW50ID0gdGhpcy5fdHJhbnNsYXRlU2VydmljZS5pbnN0YW50KGRhdGEuY29udGVudClcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBjb25maXJtKCkge1xuICAgIHRoaXMuX2Nsb3NlRXZlbnQkLm5leHQoeyByZWFzb246ICdjb25maXJtJyB9KVxuICB9XG5cbiAgY2FuY2VsKCkge1xuICAgIHRoaXMuX2Nsb3NlRXZlbnQkLm5leHQoeyByZWFzb246ICdkaXNtaXNzJyB9KVxuICB9XG5cbiAgZ2V0Q2xvc2VFdmVudCgpIHtcbiAgICByZXR1cm4gdGhpcy5fY2xvc2VFdmVudCQuYXNPYnNlcnZhYmxlKClcbiAgfVxufVxuIl19 |
@@ -32,2 +32,10 @@ /** | ||
function (data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -47,10 +55,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
}; | ||
@@ -109,2 +109,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtZGF0YS5zZXJ2aWN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3N0cmluZycpIHtcbiAgICAgICAgZGF0YS50ZXh0Q29uZmlybSA9IHRoaXMuX3RyYW5zbGF0ZVNlcnZpY2UuaW5zdGFudChkYXRhLnRleHRDb25maXJtKVxuICAgICAgfVxuXG4gICAgICBpZiAodHlwZW9mIGRhdGEudGV4dENhbmNlbCA9PSAnc3RyaW5nJykge1xuICAgICAgICBkYXRhLnRleHRDYW5jZWwgPSB0aGlzLl90cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQoZGF0YS50ZXh0Q2FuY2VsKVxuICAgICAgfVxuXG4gICAgICBpZiAodHlwZW9mIGRhdGEudGl0bGUgPT0gJ3N0cmluZycpIHtcbiAgICAgICAgZGF0YS50aXRsZSA9IHRoaXMuX3RyYW5zbGF0ZVNlcnZpY2UuaW5zdGFudChkYXRhLnRpdGxlKVxuICAgICAgfVxuXG4gICAgICBpZiAodHlwZW9mIGRhdGEuY29udGVudCA9PSAnc3RyaW5nJykge1xuICAgICAgICBkYXRhLmNvbnRlbnQgPSB0aGlzLl90cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQoZGF0YS5jb250ZW50KVxuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIGNvbmZpcm0oKSB7XG4gICAgdGhpcy5fY2xvc2VFdmVudCQubmV4dCh7IHJlYXNvbjogJ2NvbmZpcm0nIH0pXG4gIH1cblxuICBjYW5jZWwoKSB7XG4gICAgdGhpcy5fY2xvc2VFdmVudCQubmV4dCh7IHJlYXNvbjogJ2Rpc21pc3MnIH0pXG4gIH1cblxuICBnZXRDbG9zZUV2ZW50KCkge1xuICAgIHJldHVybiB0aGlzLl9jbG9zZUV2ZW50JC5hc09ic2VydmFibGUoKVxuICB9XG59XG4iXX0= |
@@ -34,2 +34,10 @@ import { Injectable, Optional, ɵɵdefineInjectable, ɵɵinject, Component, ViewEncapsulation, Injector, NgModule } from '@angular/core'; | ||
setModalData(data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -49,10 +57,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
} | ||
@@ -59,0 +59,0 @@ /** |
@@ -689,2 +689,10 @@ import { Injectable, Directive, TemplateRef, Component, ContentChild, Input, EventEmitter, ContentChildren, Output, NgModule, ViewEncapsulation, forwardRef, HostListener, InjectionToken, Inject, Optional, ɵɵdefineInjectable, ɵɵinject, Injector } from '@angular/core'; | ||
setModalData(data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -704,10 +712,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
} | ||
@@ -714,0 +714,0 @@ /** |
@@ -36,2 +36,10 @@ import { Injectable, Optional, ɵɵdefineInjectable, ɵɵinject, Component, ViewEncapsulation, Injector, NgModule } from '@angular/core'; | ||
function (data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -51,10 +59,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
}; | ||
@@ -61,0 +61,0 @@ /** |
@@ -800,2 +800,10 @@ import { Injectable, Directive, TemplateRef, Component, ContentChild, Input, EventEmitter, ContentChildren, Output, NgModule, ViewEncapsulation, forwardRef, HostListener, InjectionToken, Inject, Optional, ɵɵdefineInjectable, ɵɵinject, Injector } from '@angular/core'; | ||
function (data) { | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
if (this._translateService) { | ||
@@ -815,10 +823,2 @@ if (typeof data.textConfirm == 'string') { | ||
} | ||
this.dataModel = { | ||
isDanger: data.hasOwnProperty('isDanger') ? data.isDanger : this.dataModel.isDanger, | ||
textConfirm: data.textConfirm || this.dataModel.textConfirm, | ||
textCancel: data.textCancel || this.dataModel.textCancel, | ||
urlConfirm: data.urlConfirm || this.dataModel.urlConfirm, | ||
content: data.content || '', | ||
title: data.title || this.dataModel.title | ||
}; | ||
}; | ||
@@ -825,0 +825,0 @@ /** |
{ | ||
"name": "@boxmeglobal/omisell-ui-lib", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Hung Cung" |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet