@inovamobil/ic-databar-lib 2.0.3 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/bundles/inovamobil-ic-databar-lib.umd.js +40 -30
  2. package/bundles/inovamobil-ic-databar-lib.umd.js.map +1 -1
  3. package/bundles/inovamobil-ic-databar-lib.umd.min.js +1 -1
  4. package/bundles/inovamobil-ic-databar-lib.umd.min.js.map +1 -1
  5. package/esm2015/components/dialogs/error-dialog/error-dialog.component.js +3 -2
  6. package/esm2015/components/dialogs/error-dialog/error-dialog.module.js +1 -1
  7. package/esm2015/components/dialogs/error-dialog/service/error-dialog.service.js +1 -1
  8. package/esm2015/inovamobil-ic-databar-lib.js +1 -1
  9. package/esm2015/lib/constants/ic-databar.constants.js +1 -1
  10. package/esm2015/lib/contrato/DataBarConfigBotoesService.js +1 -1
  11. package/esm2015/lib/contrato/IDataBarBind.js +1 -1
  12. package/esm2015/lib/contrato/IDataBarBindOnClickService.js +1 -1
  13. package/esm2015/lib/contrato/IDataBarReverterService.js +1 -1
  14. package/esm2015/lib/contrato/IDataBarService.js +1 -1
  15. package/esm2015/lib/contrato/IDataEntidadePaginada.js +1 -1
  16. package/esm2015/lib/contrato/IDatabarStatusService.js +1 -1
  17. package/esm2015/lib/contrato/OnInitDataBar.js +1 -1
  18. package/esm2015/lib/enum/eeventoclick.js +1 -1
  19. package/esm2015/lib/enum/estatus.js +1 -1
  20. package/esm2015/lib/ic-data-bar.component.js +43 -35
  21. package/esm2015/lib/ic-data-bar.module.js +1 -1
  22. package/esm2015/lib/services/ic-databar-event-click.service.js +1 -1
  23. package/esm2015/lib/services/ic-databar-reverter.service.js +1 -1
  24. package/esm2015/lib/services/ic-databar.service.js +1 -1
  25. package/esm2015/public-api.js +1 -1
  26. package/fesm2015/inovamobil-ic-databar-lib.js +43 -34
  27. package/fesm2015/inovamobil-ic-databar-lib.js.map +1 -1
  28. package/inovamobil-ic-databar-lib.metadata.json +1 -1
  29. package/lib/ic-data-bar.component.d.ts +1 -0
  30. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("rxjs/operators"),require("@inovamobil/ic-confirma-dialog"),require("@inovamobil/icm-snackbar"),require("@angular/material/dialog"),require("@angular/material/button"),require("@angular/material/divider"),require("@angular/material/icon"),require("@angular/material/list"),require("@angular/material/progress-spinner"),require("@angular/material/sidenav"),require("@angular/material/toolbar"),require("@angular/material/tooltip"),require("@angular/flex-layout"),require("@angular/common")):"function"==typeof define&&define.amd?define("@inovamobil/ic-databar-lib",["exports","@angular/core","rxjs/operators","@inovamobil/ic-confirma-dialog","@inovamobil/icm-snackbar","@angular/material/dialog","@angular/material/button","@angular/material/divider","@angular/material/icon","@angular/material/list","@angular/material/progress-spinner","@angular/material/sidenav","@angular/material/toolbar","@angular/material/tooltip","@angular/flex-layout","@angular/common"],r):r(((t="undefined"!=typeof globalThis?globalThis:t||self).inovamobil=t.inovamobil||{},t.inovamobil["ic-databar-lib"]={}),t.ng.core,t.rxjs.operators,t["ic-confirma-dialog"],t["icm-snackbar"],t.ng.material.dialog,t.ng.material.button,t.ng.material.divider,t.ng.material.icon,t.ng.material.list,t.ng.material.progressSpinner,t.ng.material.sidenav,t.ng.material.toolbar,t.ng.material.tooltip,t.ng.flexLayout,t.ng.common)}(this,(function(t,r,a,e,i,o,n,s,c,d,l,u,m,p,b,v){"use strict";var f;(f=t.EStatus||(t.EStatus={})).novaPesquisa="Nova pesquisa",f.inserindo="Inserindo",f.editando="Editando",f.removendo="Removendo",f.dadosCarregados="Dados carregados",f.pesquisando="Pesquisando",f.executarAcao="Executar ação",f.salvando="Salvando";var g=function(){function r(){this.EStatus=t.EStatus}return r.prototype.ngOnInit=function(){this.onInit(),this.servicoDataBarBind.status=t.EStatus.novaPesquisa},r.prototype.statusChanged=function(t){this.servicoDataBarBind.status=t,this.statusDataBar=t,this.onStatusChanged(t)},Object.defineProperty(r.prototype,"inserindoOuEditando",{get:function(){return this.statusDataBar===t.EStatus.inserindo||this.statusDataBar===t.EStatus.editando},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"inserindo",{get:function(){return this.statusDataBar===t.EStatus.inserindo},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"editando",{get:function(){return this.statusDataBar===t.EStatus.editando},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"editandoOuRemovendo",{get:function(){return this.statusDataBar===t.EStatus.editando||this.statusDataBar===t.EStatus.removendo},enumerable:!1,configurable:!0}),r}();g.decorators=[{type:r.Directive}];var h,x=function(){function t(){}return t.prototype.desabilitarBotaoNovaPesquisa=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoReverter=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoPesquisar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoEditar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoAdicionar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoRemover=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoSalvar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoPrimeiro=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoAnterior=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoProximo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoUltimo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoModoTabela=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.exibirBotaoModoTabela=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t}();(h=t.EEventoClick||(t.EEventoClick={})).onClickInserir="onInserir",h.afterClickInserir="afterClickInserir",h.onClickReverter="onReverter",h.afterClickReverter="afterClickReverter",h.onClickNovaPesquisa="onNovaPesquisa",h.afterClickNovaPesquisa="afterClickNovaPesquisa",h.onClickEditar="onEditar",h.afterClickEditar="afterClickEditar",h.onClickRemover="onRemover",h.afterClickRemover="afterClickRemover",h.onClickSalvar="onClickSalvar",h.afterClickSalvar="afterClickSalvar",h.onClickModoTabela="onClickModoTabela";var E=function(){function t(t){this.onEvent=t}return t.prototype.emitir=function(t){this.onEvent(t)},t}(),_=function(){function t(t,r){this.dialogRef=t,this.mensagem=r.mensagem,this.titulo=r.titulo}return t.prototype.close=function(){this.dialogRef.close()},t}();_.decorators=[{type:r.Component,args:[{selector:"confirma-dialog",template:'<h2 mat-dialog-title>{{titulo}}</h2>\r\n\r\n<mat-dialog-content>\r\n <p>{{mensagem}}</p>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions align="end">\r\n <button class="mat-raised-button" (click)="close()">Ok</button>\r\n</mat-dialog-actions>'}]}],_.ctorParameters=function(){return[{type:o.MatDialogRef},{type:void 0,decorators:[{type:r.Inject,args:[o.MAT_DIALOG_DATA]}]}]};var S=function(){function t(t){this.dialog=t}return t.prototype.openDialog=function(t,r){var a=new o.MatDialogConfig;a.disableClose=!0,a.autoFocus=!0,a.data={titulo:t,mensagem:r},a.minWidth="300px",this.dialogRef=this.dialog.open(_,a)},t.prototype.closeDialog=function(){this.dialogRef.close()},t}();S.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new S(r.ɵɵinject(o.MatDialog))},token:S,providedIn:"root"}),S.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],S.ctorParameters=function(){return[{type:o.MatDialog}]};var y=function(){function t(){}return t.prototype.desabilitarForm=function(t){t.disable({emitEvent:!1,onlySelf:!0})},t.prototype.habilitarForm=function(t){t.enable({emitEvent:!1,onlySelf:!0})},t.prototype.resetForm=function(t,r){t.reset({emitEvent:!1,onlySelf:!0}),r.entidade=null,r.posicao=0,r.total=0},t.prototype.emitirEventoClick=function(t,r){t.eventDatabar&&t.eventDatabar.emitir(r)},t.prototype.definirProgresso=function(t,r){if(t)return r?this.desabilitarForm(t):this.habilitarForm(t),r},t}();y.decorators=[{type:r.Injectable}],y.ctorParameters=function(){return[]};var P=function(){function t(){}return Object.defineProperty(t.prototype,"statusAnterior",{get:function(){return this._statusAnterior},enumerable:!1,configurable:!0}),t.prototype.setDadosAnteriores=function(t,r,a){this._entidadePaginadaAnterior={entidade:a.entidade,posicao:a.posicao,quantidade:a.quantidade,total:a.total},this._dadosAnterioresFormulario=r.getRawValue(),this._statusAnterior=t},t.prototype.restaurarDadosAnteriores=function(t){return t.patchValue(this._dadosAnterioresFormulario),this._entidadePaginadaAnterior},t}();P.decorators=[{type:r.Injectable}];var B=function(){function e(a,e,i,o,n){this._dialog=a,this._dialogErro=e,this._elementRef=i,this._databarService=o,this._snackBarService=n,this.disabled=!1,this.statusChanged=new r.EventEmitter,this.EStatus=t.EStatus,this.emProgresso=!1}return Object.defineProperty(e.prototype,"servicoReverter",{set:function(t){this._servicoReverter=t},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.validarPropertsObrigatorias(),this.setProgresso(!1),this.novaPesquisa(),this._submeterFormularioOnEnter(),this.observarSetStatus()},e.prototype.ngOnDestroy=function(){this.servicoBind.onClickEnter&&this.servicoBind.onClickEnter.unsubscribe(),this.$setStatus&&this.$setStatus.unsubscribe()},e.prototype.fecharSidenav=function(t){this._elementRef.nativeElement.contains(t.target)||this.drawer.close()},Object.defineProperty(e.prototype,"inserindoOuEditando",{get:function(){return this.status===t.EStatus.inserindo||this.status===t.EStatus.editando},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoModoTabela",{get:function(){var r;return this.status==t.EStatus.inserindo||this.status==t.EStatus.editando||this.emProgresso||this.form.invalid||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoModoTabela())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoPesquisar",{get:function(){var r;return this.status==t.EStatus.inserindo||this.status==t.EStatus.editando||this.status==t.EStatus.dadosCarregados||this.emProgresso||this.form.invalid||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoPesquisar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoReverter",{get:function(){var r;return this.status==t.EStatus.novaPesquisa||this.status==t.EStatus.executarAcao||this.status==t.EStatus.dadosCarregados||this.emProgresso||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoReverter())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoAdicionar",{get:function(){var r;return this.status==t.EStatus.editando||this.status==t.EStatus.inserindo||this.emProgresso||this.disabled||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoAdicionar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoEditar",{get:function(){var r;return this.status==t.EStatus.inserindo||this.status==t.EStatus.novaPesquisa||this.status==t.EStatus.executarAcao||this.status==t.EStatus.pesquisando||this.status==t.EStatus.editando||this.emProgresso||this.disabled||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoEditar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoRemover",{get:function(){var r,a;return!(null===(r=this.entidadePaginada)||void 0===r?void 0:r.entidade)||this.status!=t.EStatus.dadosCarregados||this.emProgresso||(null===(a=this.servicoConfiguracaoBotoes)||void 0===a?void 0:a.desabilitarBotaoRemover())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoSalvar",{get:function(){var r,a;return(null===(r=this.form)||void 0===r?void 0:r.invalid)||this.status!=t.EStatus.inserindo&&this.status!=t.EStatus.editando||this.emProgresso||this.disabled||(null===(a=this.servicoConfiguracaoBotoes)||void 0===a?void 0:a.desabilitarBotaoSalvar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotoesPaginacaoRetroceder",{get:function(){return this.inserindoOuEditando||this.entidadePaginada.posicao<=1||this.emProgresso},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotoesPaginacaoAvancar",{get:function(){return this.inserindoOuEditando||this.entidadePaginada.posicao>=this.entidadePaginada.total||this.emProgresso},enumerable:!1,configurable:!0}),e.prototype.onClickReverter=function(){this._emitirEventoClick(t.EEventoClick.onClickReverter),this._reverter(),this._emitirEventoClick(t.EEventoClick.afterClickReverter)},e.prototype.onClickModoTabela=function(){this._emitirEventoClick(t.EEventoClick.onClickModoTabela)},e.prototype.onClickNovaPesquisa=function(){this._emitirEventoClick(t.EEventoClick.onClickNovaPesquisa),this.novaPesquisa(),this._emitirEventoClick(t.EEventoClick.afterClickNovaPesquisa)},e.prototype.novaPesquisa=function(){this._databarService.habilitarForm(this.form),this.form.reset({emitEvent:!1,onlySelf:!0}),this.entidadePaginada.entidade=this.form.value,this.entidadePaginada.posicao=0,this.entidadePaginada.total=0,this.setStatus(t.EStatus.novaPesquisa)},e.prototype.pesquisar=function(){this.form.invalid||(this._setDadosAnteriores(),this.setStatus(t.EStatus.pesquisando),this.entidadePaginada.entidade=[].concat(this._getEntidade()),this._paginar(),this.drawer.close())},e.prototype.inserir=function(){this._emitirEventoClick(t.EEventoClick.onClickInserir),this._clickInserir(),this._emitirEventoClick(t.EEventoClick.afterClickInserir)},e.prototype.editar=function(){this._emitirEventoClick(t.EEventoClick.onClickEditar),this._clickEditar(),this._emitirEventoClick(t.EEventoClick.afterClickEditar)},e.prototype.remover=function(){this._emitirEventoClick(t.EEventoClick.onClickRemover),this._clickRemover(),this._emitirEventoClick(t.EEventoClick.afterClickRemover)},e.prototype.proximo=function(){this._paginar("proximo")},e.prototype.anterior=function(){this._paginar("anterior")},e.prototype.ultimo=function(){this._paginar("ultimo")},e.prototype.primeiro=function(){this._paginar("primeiro")},e.prototype.salvar=function(){switch(this._emitirEventoClick(t.EEventoClick.onClickSalvar),this.status){case t.EStatus.inserindo:this._inserir();break;case t.EStatus.editando:this._editar()}},e.prototype._inserir=function(){var r=this;this.setStatus(t.EStatus.salvando),this.setProgresso(!0),this.servicoBind.criar().pipe(a.finalize((function(){r._emitirEventoClick(t.EEventoClick.afterClickSalvar)}))).subscribe((function(a){r.setProgresso(!1),r._snackBarService.abrirSnackBarSucesso("Registro salvo com sucesso!"),r.form.patchValue(a),r.setStatus(t.EStatus.dadosCarregados),r.drawer.close(),r._databarService.desabilitarForm(r.form)}),(function(){r.setProgresso(!1),r.setStatus(t.EStatus.inserindo)}))},e.prototype._editar=function(){var r=this;this.setStatus(t.EStatus.salvando),this.setProgresso(!0),this.servicoBind.editar().pipe(a.finalize((function(){r._emitirEventoClick(t.EEventoClick.afterClickSalvar)}))).subscribe((function(a){r._snackBarService.abrirSnackBarSucesso("Registro editado com sucesso!"),r.form.patchValue(a),r.setProgresso(!1),r.setStatus(t.EStatus.dadosCarregados),r._databarService.desabilitarForm(r.form),r.drawer.close()}),(function(){r.setProgresso(!1),r.setStatus(t.EStatus.editando)}))},e.prototype.observarSetStatus=function(){var r=this;this.servicoBind.setStatus&&(this.$setStatus=this.servicoBind.setStatus.subscribe((function(a){switch(a){case t.EStatus.editando:r.editar(),r.emProgresso=!1;break;case t.EStatus.inserindo:r.inserir(),r.emProgresso=!1;break;case t.EStatus.pesquisando:r.pesquisar();break;case t.EStatus.novaPesquisa:r.novaPesquisa();break;case t.EStatus.removendo:r.remover();break;case t.EStatus.dadosCarregados:r.status=t.EStatus.dadosCarregados,r.emProgresso=!1}})))},e.prototype.retornarServicoReverter=function(){return null==this._servicoReverter&&(this._servicoReverter=new P),this._servicoReverter},e.prototype._setDadosAnteriores=function(){this.retornarServicoReverter().setDadosAnteriores(this.status,this.form,this.entidadePaginada)},e.prototype._reverter=function(){this._emitirEventoClick(t.EEventoClick.onClickReverter),this.entidadePaginada=this.retornarServicoReverter().restaurarDadosAnteriores(this.form);var r=this.retornarServicoReverter().statusAnterior;r==t.EStatus.dadosCarregados?this._databarService.desabilitarForm(this.form):this._databarService.habilitarForm(this.form),this.setStatus(r),this._emitirEventoClick(t.EEventoClick.afterClickReverter)},e.prototype._resetarContadorPaginacao=function(){this.entidadePaginada.posicao=0,this.entidadePaginada.total=0},e.prototype.validarPropertsObrigatorias=function(){if(null==this.servicoBind)throw new Error("É obrigatório ter um serviço de bind vinculado.");if(null==this.entidadePaginada)throw new Error("É obrigatório ter uma entidade paginada vinculada.")},e.prototype.setStatus=function(t){t&&(this.status=t,this.statusChanged.emit(this.status))},e.prototype._getEntidade=function(){return this.form.getRawValue()},e.prototype._submeterFormularioOnEnter=function(){var r=this;this.servicoBind.onClickEnter&&this.servicoBind.onClickEnter.subscribe((function(){r.status===t.EStatus.novaPesquisa&&r.form.valid&&r.pesquisar()}))},e.prototype._clickInserir=function(){this._setDadosAnteriores(),this._resetarContadorPaginacao(),this._databarService.habilitarForm(this.form),this.form.reset({emitEvent:!1,onlySelf:!0}),this.form.markAllAsTouched(),this.drawer.close(),this.setStatus(t.EStatus.inserindo)},e.prototype._clickEditar=function(){this._setDadosAnteriores(),this._databarService.habilitarForm(this.form),this.form.markAllAsTouched(),this.drawer.close(),this.setStatus(t.EStatus.editando)},e.prototype._clickRemover=function(){this.setStatus(t.EStatus.removendo),this._exibirDialogConfirmacao(),this.drawer.close()},e.prototype._emitirEventoClick=function(t){return this._databarService.emitirEventoClick(this.servicoBind,t)},e.prototype._acaoCloseDialogConfirmacao=function(){this._dialog.emProgresso=!1,this._dialog.closeDialog(),this.setStatus(t.EStatus.dadosCarregados)},e.prototype._exibirDialogConfirmacao=function(){var t=this;this._dialog.acaoMensagem="Removendo registro...",this._dialog.acaoOk=function(){return t.servicoBind.remover().subscribe((function(){t._dialog.closeDialog(),t.novaPesquisa(),t._dialog.emProgresso=!1,t._snackBarService.abrirSnackBarSucesso("Removido com sucesso!")}),(function(){return t._acaoCloseDialogConfirmacao()}))},this._dialog.acaoCancelar=function(){t._acaoCloseDialogConfirmacao()},this._dialog.openDialog("Atenção!","Você realmente deseja excluir este registro?")},e.prototype._paginar=function(r){var a=this;this.setStatus(t.EStatus.pesquisando),null==this.entidadePaginada.entidade&&(this.entidadePaginada.entidade=[].concat(this._getEntidade()));var e=this.entidadePaginada.posicao;switch(r){case"primeiro":this.entidadePaginada.posicao=1;break;case"ultimo":this.entidadePaginada.posicao=this.entidadePaginada.total;break;case"proximo":this.entidadePaginada.posicao++;break;case"anterior":this.entidadePaginada.posicao--;break;default:this.entidadePaginada.posicao=0}this.setProgresso(!0),this.servicoBind.listarPaginacao(this.entidadePaginada).subscribe((function(r){return a.setProgresso(!1),null==r?(a._dialogErro.openDialog("Atenção!","Nenhum registro foi encontrado."),void a.setStatus(t.EStatus.novaPesquisa)):null==r.entidade?(a._databarService.resetForm(a.form,a.entidadePaginada),void a.setStatus(t.EStatus.novaPesquisa)):(a.setStatus(t.EStatus.dadosCarregados),a.entidadePaginada.entidade?(a.entidadePaginada.total=r.total,a.entidadePaginada.posicao=r.posicao):a.entidadePaginada=r,a.form.patchValue(r.entidade[0]),a.setProgresso(!1),void a._databarService.desabilitarForm(a.form))}),(function(r){console.error("erro paginação",r),a.setStatus(t.EStatus.dadosCarregados),a.entidadePaginada.posicao=e,a.setProgresso(!1),a._databarService.desabilitarForm(a.form)}))},e.prototype.setProgresso=function(t){this.emProgresso=this._databarService.definirProgresso(this.form,t)},e}();B.decorators=[{type:r.Component,args:[{selector:"ic-data-bar",template:'<div\r\n fxFlex="1 0 auto"\r\n fxFlexLayout="space-around center"\r\n fxLayout="column"\r\n>\r\n \x3c!-- DESKTOP --\x3e\r\n <mat-toolbar class="px-0 mat-elevation-z4">\r\n <div\r\n fxFlex="1 0 auto"\r\n fxLayout="row"\r\n fxLayoutAlign="space-around center"\r\n >\r\n \x3c!-- BOTÃO EXIBIR DRAWER --\x3e\r\n <mat-drawer-container\r\n fxFlex.sm\r\n fxHide.gt-sm\r\n >\r\n <button\r\n (click)="drawer.toggle()"\r\n id="btn_exibir_databar_mobile"\r\n mat-button\r\n type="button"\r\n >\r\n <mat-icon>list</mat-icon>\r\n </button>\r\n </mat-drawer-container>\r\n \x3c!-- /BOTÃO EXIBIR DRAWER --\x3e\r\n\r\n \x3c!-- AÇÕES --\x3e\r\n <div\r\n fxFlex.sm\r\n fxHide\r\n fxLayout="row"\r\n fxLayoutAlign="space-around center"\r\n fxShow.gt-sm\r\n >\r\n \x3c!-- MODO_TABELA --\x3e\r\n <button\r\n *ngIf="servicoConfiguracaoBotoes?.exibirBotaoModoTabela()"\r\n (click)="onClickModoTabela()"\r\n [disabled]="desabilitarBotaoModoTabela"\r\n color="primary"\r\n id="btn_modo_tabela"\r\n mat-button\r\n matTooltip="Alterar exibição para tabela"\r\n >\r\n <mat-icon>list</mat-icon>\r\n </button>\r\n \x3c!-- MODO_TABELA --\x3e\r\n\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n <button\r\n (click)="onClickNovaPesquisa()"\r\n [disabled]="servicoConfiguracaoBotoes?.desabilitarBotaoNovaPesquisa()"\r\n color="primary"\r\n id="btn_nova_pesquisa"\r\n mat-button\r\n matTooltip="Nova Pesquisa"\r\n >\r\n <mat-icon>insert_drive_file</mat-icon>\r\n </button>\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n\r\n \x3c!-- BTN_REVERTER --\x3e\r\n <button\r\n (click)="onClickReverter()"\r\n [disabled]="desabilitarBotaoReverter"\r\n color="primary"\r\n id="btn_reverter"\r\n mat-button\r\n matTooltip="Reverter"\r\n >\r\n <mat-icon>restore</mat-icon>\r\n </button>\r\n \x3c!-- BTN_REVERTER --\x3e\r\n\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n <button\r\n (click)="pesquisar()"\r\n [disabled]="desabilitarBotaoPesquisar"\r\n color="primary"\r\n id="btn_pesquisar"\r\n mat-button\r\n matTooltip="Pesquisar"\r\n >\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n <button\r\n (click)="inserir()"\r\n [disabled]="desabilitarBotaoAdicionar"\r\n color="primary"\r\n id="btn_adicionar"\r\n mat-button\r\n matTooltip="Adicionar"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n\r\n \x3c!-- BTN_EDITAR --\x3e\r\n <button\r\n (click)="editar()"\r\n [disabled]="desabilitarBotaoEditar"\r\n color="primary"\r\n id="btn_editar"\r\n mat-button\r\n matTooltip="Editar"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n \x3c!-- BTN_EDITAR --\x3e\r\n\r\n \x3c!-- BTN_REMOVER --\x3e\r\n <button\r\n (click)="remover()"\r\n [disabled]="desabilitarBotaoRemover"\r\n color="primary"\r\n id="btn_remover"\r\n mat-button\r\n matTooltip="Remover"\r\n >\r\n <mat-icon>delete_forever</mat-icon>\r\n </button>\r\n \x3c!-- BTN_REMOVER --\x3e\r\n\r\n \x3c!-- BTN_SALVAR --\x3e\r\n <button\r\n (click)="salvar()"\r\n [disabled]="desabilitarBotaoSalvar"\r\n color="primary"\r\n id="btn_salvar"\r\n mat-button\r\n matTooltip="Salvar"\r\n >\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n \x3c!-- BTN_SALVAR --\x3e\r\n </div>\r\n \x3c!-- /AÇÕES --\x3e\r\n\r\n \x3c!-- STATUS --\x3e\r\n <div fxLayout="row"\r\n fxLayoutAlign="center center">\r\n\r\n \x3c!-- PROGRESS --\x3e\r\n <mat-spinner *ngIf="emProgresso"\r\n [diameter]="20"></mat-spinner>\r\n \x3c!-- PROGRESS --\x3e\r\n\r\n <button\r\n color="primary"\r\n fxHide.lt-sm\r\n id="btn_status"\r\n mat-button\r\n matTooltip="Ação no momento"\r\n >\r\n {{ status }}\r\n </button>\r\n </div>\r\n \x3c!-- STATUS --\x3e\r\n\r\n \x3c!-- PAGINAÇÃO --\x3e\r\n <div\r\n fxFlex.sm\r\n fxLayout="row"\r\n fxLayoutAlign="center center"\r\n >\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n <button\r\n (click)="primeiro()"\r\n [disabled]="desabilitarBotoesPaginacaoRetroceder || servicoConfiguracaoBotoes?.desabilitarBotaoPrimeiro()"\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n fxFlex.sm\r\n fxHide.lt-sm\r\n id="btn_primeiro"\r\n mat-button\r\n matTooltip="Primeiro item"\r\n >\r\n <mat-icon>first_page</mat-icon>\r\n </button>\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n\r\n \x3c!-- BTN_ANTERIOR --\x3e\r\n <button\r\n (click)="anterior()"\r\n [disabled]="desabilitarBotoesPaginacaoRetroceder || servicoConfiguracaoBotoes?.desabilitarBotaoAnterior()"\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_anterior"\r\n mat-button\r\n matTooltip="Anterior">\r\n <mat-icon>navigate_before</mat-icon>\r\n </button>\r\n \x3c!-- BTN_ANTERIOR --\x3e\r\n\r\n <div\r\n class="px-0 px-sm-12 contador-paginas"\r\n id="contador_paginacao"\r\n matTooltip="Página Atual"\r\n >\r\n {{ entidadePaginada?.posicao }} de {{ entidadePaginada?.total }}\r\n </div>\r\n\r\n \x3c!-- BTN_PROXIMO --\x3e\r\n <button\r\n (click)="proximo()"\r\n [disabled]="desabilitarBotoesPaginacaoAvancar || servicoConfiguracaoBotoes?.desabilitarBotaoProximo()"\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_proximo"\r\n mat-button\r\n matTooltip="Próximo">\r\n <mat-icon>navigate_next</mat-icon>\r\n </button>\r\n \x3c!-- BTN_PROXIMO --\x3e\r\n\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n <button\r\n (click)="ultimo()"\r\n [disabled]="desabilitarBotoesPaginacaoAvancar || servicoConfiguracaoBotoes?.desabilitarBotaoUltimo()"\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_ultimo"\r\n fxFlex.sm\r\n fxHide.lt-sm\r\n mat-button\r\n matTooltip="Último">\r\n <mat-icon>last_page</mat-icon>\r\n </button>\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n </div>\r\n \x3c!-- /PAGINAÇÃO --\x3e\r\n </div>\r\n </mat-toolbar>\r\n \x3c!-- /DESKTOP --\x3e\r\n\r\n \x3c!-- MOBILE --\x3e\r\n <mat-drawer\r\n #drawer\r\n fxFlex\r\n fxLayoutAlign="column"\r\n mode="over"\r\n >\r\n\r\n \x3c!-- FECHAR SIDENAV --\x3e\r\n <button\r\n (click)="drawer.toggle()"\r\n class="btn-fechar-drawer"\r\n id="btn_fechar_databar_mobile"\r\n mat-icon-button\r\n >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n \x3c!-- /FECHAR SIDENAV --\x3e\r\n\r\n \x3c!-- STATUS --\x3e\r\n <div class="pr-12"\r\n fxLayout="row"\r\n fxLayoutAlign="space-between center">\r\n\r\n <div fxFlex="100" fxLayout="column" fxLayoutAlign="center center">\r\n <h4 class="pl-12">Ações</h4>\r\n <p class="texto-status" id="status_mobile">{{ status }}</p>\r\n </div>\r\n\r\n </div>\r\n \x3c!-- /STATUS --\x3e\r\n\r\n \x3c!-- OPCOES --\x3e\r\n <div\r\n class="px-12 overflow"\r\n fxLayout="column"\r\n fxLayoutAlign="start start"\r\n >\r\n <mat-list>\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="primeiro()"\r\n [disabled]="desabilitarBotoesPaginacaoRetroceder || servicoConfiguracaoBotoes?.desabilitarBotaoPrimeiro()"\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n mat-button\r\n id="btn_primeiro_mobile"\r\n matTooltip="Primeiro item"\r\n >\r\n <mat-icon>first_page</mat-icon>\r\n Primeiro item\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="ultimo()"\r\n [disabled]="desabilitarBotoesPaginacaoAvancar || servicoConfiguracaoBotoes?.desabilitarBotaoUltimo()"\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_ultimo_mobile"\r\n mat-button\r\n matTooltip="Último">\r\n <mat-icon>last_page</mat-icon>\r\n Último item\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- MODO_TABELA --\x3e\r\n <mat-list-item>\r\n <button\r\n *ngIf="servicoConfiguracaoBotoes?.exibirBotaoModoTabela()"\r\n (click)="onClickModoTabela()"\r\n [disabled]="desabilitarBotaoModoTabela"\r\n color="primary"\r\n id="btn_modo_tabela_mobile"\r\n mat-button\r\n matTooltip="Alterar exibição para tabela"\r\n >\r\n <mat-icon>list</mat-icon>\r\n Modo tabela\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- MODO_TABELA --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n <mat-list-item>\r\n <button (click)="onClickNovaPesquisa()"\r\n [disabled]="servicoConfiguracaoBotoes?.desabilitarBotaoNovaPesquisa()"\r\n color="primary"\r\n mat-button\r\n id="btn_nova_pesquisa_mobile"\r\n matTooltip="Nova Pesquisa">\r\n <mat-icon>restore_page</mat-icon>\r\n Nova Pesquisa\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n <mat-list-item>\r\n <button (click)="pesquisar()"\r\n [disabled]="desabilitarBotaoPesquisar"\r\n color="primary"\r\n id="btn_pesquisar_mobile"\r\n mat-button\r\n matTooltip="Pesquisar">\r\n <mat-icon>search</mat-icon>\r\n Pesquisar\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="inserir()"\r\n [disabled]="desabilitarBotaoAdicionar"\r\n color="primary"\r\n mat-button\r\n id="btn_adicionar_mobile"\r\n matTooltip="Adicionar"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n Incluir\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_EDITAR --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="editar()"\r\n [disabled]="desabilitarBotaoEditar"\r\n color="primary"\r\n mat-button\r\n id="btn_editar_mobile"\r\n matTooltip="Editar"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n Editar\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_EDITAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_REMOVER --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="remover()"\r\n [disabled]="desabilitarBotaoRemover"\r\n color="primary"\r\n mat-button\r\n id="btn_remover_mobile"\r\n matTooltip="Remover"\r\n >\r\n <mat-icon>delete_forever</mat-icon>\r\n Remover\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_REMOVER --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_SALVAR --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="salvar()"\r\n [disabled]="desabilitarBotaoSalvar"\r\n color="primary"\r\n mat-button\r\n id="btn_salvar_mobile"\r\n matTooltip="Salvar"\r\n >\r\n <mat-icon>save</mat-icon>\r\n Salvar\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_SALVAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n </mat-list>\r\n </div>\r\n \x3c!-- /OPCOES --\x3e\r\n </mat-drawer>\r\n \x3c!-- /MOBILE --\x3e\r\n</div>\r\n',styles:["::ng-deep .sucesso{background:#4caf50!important;color:#fff!important}::ng-deep .sucesso button{color:#1b5e20!important;font-weight:800!important}.contador-paginas{color:#039be5;font-size:14px}@media (max-width:959px){.contador-paginas{font-size:12px}}.btn-fechar-drawer{position:absolute;right:5px;top:5px}.texto-status{color:#039be5;text-align:center}mat-toolbar{background:#fff!important;width:100%}mat-drawer-container{background:transparent!important}mat-drawer{left:0;min-width:240px}.overflow,mat-drawer,mat-list{overflow-y:auto}:host{display:flex;flex:0 0 auto;z-index:99999}:host .mat-toolbar{background:inherit;border-bottom:1px solid #e6e6e6;color:inherit}:host .mat-toolbar .pagina{font-size:10px;margin:1vm;text-align:center}:host.above{position:relative;z-index:99999999}"]}]}],B.ctorParameters=function(){return[{type:e.IcConfirmaDialogService},{type:S},{type:r.ElementRef},{type:y},{type:i.IcmSnackBarService}]},B.propDecorators={servicoBind:[{type:r.Input}],form:[{type:r.Input}],entidadePaginada:[{type:r.Input}],disabled:[{type:r.Input}],servicoConfiguracaoBotoes:[{type:r.Input}],servicoReverter:[{type:r.Input}],statusChanged:[{type:r.Output}],drawer:[{type:r.ViewChild,args:["drawer",{static:!1}]}],fecharSidenav:[{type:r.HostListener,args:["document:click",["$event"]]}]};var C=function(){};C.decorators=[{type:r.NgModule,args:[{declarations:[_],imports:[o.MatDialogModule],exports:[_],entryComponents:[_]}]}];var k=function(){};k.decorators=[{type:r.NgModule,args:[{declarations:[B],imports:[v.CommonModule,m.MatToolbarModule,d.MatListModule,u.MatSidenavModule,c.MatIconModule,l.MatProgressSpinnerModule,s.MatDividerModule,n.MatButtonModule,p.MatTooltipModule,b.FlexLayoutModule,e.IcConfirmaDialogModule,C,i.IcmSnackBarModule],exports:[B],providers:[y]}]}],t.DataBarComponent=B,t.DataBarConfigBotoesService=x,t.DataBarModule=k,t.DatabarEventClickService=E,t.OnInitDataBar=g,t.ɵa=S,t.ɵb=y,t.ɵc=C,t.ɵd=_,Object.defineProperty(t,"__esModule",{value:!0})}));
1
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("rxjs/operators"),require("@inovamobil/ic-confirma-dialog"),require("@inovamobil/icm-snackbar"),require("@angular/material/dialog"),require("@angular/material/button"),require("@angular/material/divider"),require("@angular/material/icon"),require("@angular/material/list"),require("@angular/material/progress-spinner"),require("@angular/material/sidenav"),require("@angular/material/toolbar"),require("@angular/material/tooltip"),require("@angular/flex-layout"),require("@angular/common")):"function"==typeof define&&define.amd?define("@inovamobil/ic-databar-lib",["exports","@angular/core","rxjs/operators","@inovamobil/ic-confirma-dialog","@inovamobil/icm-snackbar","@angular/material/dialog","@angular/material/button","@angular/material/divider","@angular/material/icon","@angular/material/list","@angular/material/progress-spinner","@angular/material/sidenav","@angular/material/toolbar","@angular/material/tooltip","@angular/flex-layout","@angular/common"],r):r(((t="undefined"!=typeof globalThis?globalThis:t||self).inovamobil=t.inovamobil||{},t.inovamobil["ic-databar-lib"]={}),t.ng.core,t.rxjs.operators,t["ic-confirma-dialog"],t["icm-snackbar"],t.ng.material.dialog,t.ng.material.button,t.ng.material.divider,t.ng.material.icon,t.ng.material.list,t.ng.material.progressSpinner,t.ng.material.sidenav,t.ng.material.toolbar,t.ng.material.tooltip,t.ng.flexLayout,t.ng.common)}(this,(function(t,r,a,e,i,o,n,s,c,d,l,u,m,p,b,v){"use strict";var f;(f=t.EStatus||(t.EStatus={})).novaPesquisa="Nova pesquisa",f.inserindo="Inserindo",f.editando="Editando",f.removendo="Removendo",f.dadosCarregados="Dados carregados",f.pesquisando="Pesquisando",f.executarAcao="Executar ação",f.salvando="Salvando";var g=function(){function r(){this.EStatus=t.EStatus}return r.prototype.ngOnInit=function(){this.onInit(),this.servicoDataBarBind.status=t.EStatus.novaPesquisa},r.prototype.statusChanged=function(t){this.servicoDataBarBind.status=t,this.statusDataBar=t,this.onStatusChanged(t)},Object.defineProperty(r.prototype,"inserindoOuEditando",{get:function(){return this.statusDataBar===t.EStatus.inserindo||this.statusDataBar===t.EStatus.editando},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"inserindo",{get:function(){return this.statusDataBar===t.EStatus.inserindo},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"editando",{get:function(){return this.statusDataBar===t.EStatus.editando},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"editandoOuRemovendo",{get:function(){return this.statusDataBar===t.EStatus.editando||this.statusDataBar===t.EStatus.removendo},enumerable:!1,configurable:!0}),r}();g.decorators=[{type:r.Directive}];var h,x=function(){function t(){}return t.prototype.desabilitarBotaoNovaPesquisa=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoReverter=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoPesquisar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoEditar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoAdicionar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoRemover=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoSalvar=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoPrimeiro=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoAnterior=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoProximo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoUltimo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.desabilitarBotaoModoTabela=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t.prototype.exibirBotaoModoTabela=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!1},t}();(h=t.EEventoClick||(t.EEventoClick={})).onClickInserir="onInserir",h.afterClickInserir="afterClickInserir",h.onClickReverter="onReverter",h.afterClickReverter="afterClickReverter",h.onClickNovaPesquisa="onNovaPesquisa",h.afterClickNovaPesquisa="afterClickNovaPesquisa",h.onClickEditar="onEditar",h.afterClickEditar="afterClickEditar",h.onClickRemover="onRemover",h.afterClickRemover="afterClickRemover",h.onClickSalvar="onClickSalvar",h.afterClickSalvar="afterClickSalvar",h.onClickModoTabela="onClickModoTabela";var E=function(){function t(t){this.onEvent=t}return t.prototype.emitir=function(t){this.onEvent(t)},t}(),_=function(){function t(t,r){this.dialogRef=t,this.mensagem=r.mensagem,this.titulo=r.titulo}return t.prototype.close=function(){this.dialogRef.close()},t}();_.decorators=[{type:r.Component,args:[{selector:"confirma-dialog",template:'<h2 mat-dialog-title class="error__title">{{titulo}}</h2>\r\n\r\n<mat-dialog-content>\r\n <p>{{mensagem}}</p>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions align="end">\r\n <button class="mat-raised-button" (click)="close()">Ok</button>\r\n</mat-dialog-actions>\r\n',styles:[".error__title{text-align:center}"]}]}],_.ctorParameters=function(){return[{type:o.MatDialogRef},{type:void 0,decorators:[{type:r.Inject,args:[o.MAT_DIALOG_DATA]}]}]};var S=function(){function t(t){this.dialog=t}return t.prototype.openDialog=function(t,r){var a=new o.MatDialogConfig;a.disableClose=!0,a.autoFocus=!0,a.data={titulo:t,mensagem:r},a.minWidth="300px",this.dialogRef=this.dialog.open(_,a)},t.prototype.closeDialog=function(){this.dialogRef.close()},t}();S.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new S(r.ɵɵinject(o.MatDialog))},token:S,providedIn:"root"}),S.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],S.ctorParameters=function(){return[{type:o.MatDialog}]};var y=function(){function t(){}return t.prototype.desabilitarForm=function(t){t.disable({emitEvent:!1,onlySelf:!0})},t.prototype.habilitarForm=function(t){t.enable({emitEvent:!1,onlySelf:!0})},t.prototype.resetForm=function(t,r){t.reset({emitEvent:!1,onlySelf:!0}),r.entidade=null,r.posicao=0,r.total=0},t.prototype.emitirEventoClick=function(t,r){t.eventDatabar&&t.eventDatabar.emitir(r)},t.prototype.definirProgresso=function(t,r){if(t)return r?this.desabilitarForm(t):this.habilitarForm(t),r},t}();y.decorators=[{type:r.Injectable}],y.ctorParameters=function(){return[]};var P=function(){function t(){}return Object.defineProperty(t.prototype,"statusAnterior",{get:function(){return this._statusAnterior},enumerable:!1,configurable:!0}),t.prototype.setDadosAnteriores=function(t,r,a){this._entidadePaginadaAnterior={entidade:a.entidade,posicao:a.posicao,quantidade:a.quantidade,total:a.total},this._dadosAnterioresFormulario=r.getRawValue(),this._statusAnterior=t},t.prototype.restaurarDadosAnteriores=function(t){return t.patchValue(this._dadosAnterioresFormulario),this._entidadePaginadaAnterior},t}();P.decorators=[{type:r.Injectable}];var B=function(){function e(a,e,i,o,n){this._dialog=a,this._dialogErro=e,this._elementRef=i,this._databarService=o,this._snackBarService=n,this.disabled=!1,this.statusChanged=new r.EventEmitter,this.EStatus=t.EStatus,this.emProgresso=!1}return Object.defineProperty(e.prototype,"servicoReverter",{set:function(t){this._servicoReverter=t},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.validarPropertsObrigatorias(),this.setProgresso(!1),this.novaPesquisa(),this._submeterFormularioOnEnter(),this.observarSetStatus()},e.prototype.ngOnDestroy=function(){this.servicoBind.onClickEnter&&this.servicoBind.onClickEnter.unsubscribe(),this.$setStatus&&this.$setStatus.unsubscribe()},e.prototype.fecharSidenav=function(t){this._elementRef.nativeElement.contains(t.target)||this.drawer.close()},Object.defineProperty(e.prototype,"inserindoOuEditando",{get:function(){return this.status===t.EStatus.inserindo||this.status===t.EStatus.editando},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoModoTabela",{get:function(){var r;return this.status==t.EStatus.inserindo||this.status==t.EStatus.editando||this.emProgresso||this.form.invalid||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoModoTabela())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoPesquisar",{get:function(){var r;return this.status==t.EStatus.inserindo||this.status==t.EStatus.editando||this.status==t.EStatus.dadosCarregados||this.emProgresso||this.form.invalid||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoPesquisar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoReverter",{get:function(){var r;return this.status==t.EStatus.novaPesquisa||this.status==t.EStatus.executarAcao||this.status==t.EStatus.dadosCarregados||this.emProgresso||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoReverter())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoAdicionar",{get:function(){var r;return this.status==t.EStatus.editando||this.status==t.EStatus.inserindo||this.emProgresso||this.disabled||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoAdicionar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoEditar",{get:function(){var r;return this.status==t.EStatus.inserindo||this.status==t.EStatus.novaPesquisa||this.status==t.EStatus.executarAcao||this.status==t.EStatus.pesquisando||this.status==t.EStatus.editando||this.emProgresso||this.disabled||(null===(r=this.servicoConfiguracaoBotoes)||void 0===r?void 0:r.desabilitarBotaoEditar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoRemover",{get:function(){var r,a;return!(null===(r=this.entidadePaginada)||void 0===r?void 0:r.entidade)||this.status!=t.EStatus.dadosCarregados||this.emProgresso||(null===(a=this.servicoConfiguracaoBotoes)||void 0===a?void 0:a.desabilitarBotaoRemover())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotaoSalvar",{get:function(){var r,a;return(null===(r=this.form)||void 0===r?void 0:r.invalid)||this.status!=t.EStatus.inserindo&&this.status!=t.EStatus.editando||this.emProgresso||this.disabled||(null===(a=this.servicoConfiguracaoBotoes)||void 0===a?void 0:a.desabilitarBotaoSalvar())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotoesPaginacaoRetroceder",{get:function(){return this.inserindoOuEditando||this.entidadePaginada.posicao<=1||this.emProgresso},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"desabilitarBotoesPaginacaoAvancar",{get:function(){return this.inserindoOuEditando||this.entidadePaginada.posicao>=this.entidadePaginada.total||this.emProgresso},enumerable:!1,configurable:!0}),e.prototype.onClickReverter=function(){this._exibirDialogConfirmacaoReverter()},e.prototype.onClickModoTabela=function(){this._emitirEventoClick(t.EEventoClick.onClickModoTabela)},e.prototype.onClickNovaPesquisa=function(){this._emitirEventoClick(t.EEventoClick.onClickNovaPesquisa),this.novaPesquisa(),this._emitirEventoClick(t.EEventoClick.afterClickNovaPesquisa)},e.prototype.novaPesquisa=function(){this._databarService.habilitarForm(this.form),this.form.reset({emitEvent:!1,onlySelf:!0}),this.entidadePaginada.entidade=this.form.value,this.entidadePaginada.posicao=0,this.entidadePaginada.total=0,this.setStatus(t.EStatus.novaPesquisa)},e.prototype.pesquisar=function(){this.form.invalid||(this._setDadosAnteriores(),this.setStatus(t.EStatus.pesquisando),this.entidadePaginada.entidade=[].concat(this._getEntidade()),this._paginar(),this.drawer.close())},e.prototype.inserir=function(){this._emitirEventoClick(t.EEventoClick.onClickInserir),this._clickInserir(),this._emitirEventoClick(t.EEventoClick.afterClickInserir)},e.prototype.editar=function(){this._emitirEventoClick(t.EEventoClick.onClickEditar),this._clickEditar(),this._emitirEventoClick(t.EEventoClick.afterClickEditar)},e.prototype.remover=function(){this._emitirEventoClick(t.EEventoClick.onClickRemover),this._clickRemover(),this._emitirEventoClick(t.EEventoClick.afterClickRemover)},e.prototype.proximo=function(){this._paginar("proximo")},e.prototype.anterior=function(){this._paginar("anterior")},e.prototype.ultimo=function(){this._paginar("ultimo")},e.prototype.primeiro=function(){this._paginar("primeiro")},e.prototype.salvar=function(){switch(this._emitirEventoClick(t.EEventoClick.onClickSalvar),this.status){case t.EStatus.inserindo:this._inserir();break;case t.EStatus.editando:this._editar()}},e.prototype._inserir=function(){var r=this;this.setStatus(t.EStatus.salvando),this.setProgresso(!0),this.servicoBind.criar().pipe(a.finalize((function(){r._emitirEventoClick(t.EEventoClick.afterClickSalvar)}))).subscribe((function(a){r.setProgresso(!1),r._snackBarService.abrirSnackBarSucesso("Registro salvo com sucesso!"),r.form.patchValue(a),r.setStatus(t.EStatus.dadosCarregados),r.drawer.close(),r._databarService.desabilitarForm(r.form)}),(function(){r.setProgresso(!1),r.setStatus(t.EStatus.inserindo)}))},e.prototype._editar=function(){var r=this;this.setStatus(t.EStatus.salvando),this.setProgresso(!0),this.servicoBind.editar().pipe(a.finalize((function(){r._emitirEventoClick(t.EEventoClick.afterClickSalvar)}))).subscribe((function(a){r._snackBarService.abrirSnackBarSucesso("Registro editado com sucesso!"),r.form.patchValue(a),r.setProgresso(!1),r.setStatus(t.EStatus.dadosCarregados),r._databarService.desabilitarForm(r.form),r.drawer.close()}),(function(){r.setProgresso(!1),r.setStatus(t.EStatus.editando)}))},e.prototype.observarSetStatus=function(){var r=this;this.servicoBind.setStatus&&(this.$setStatus=this.servicoBind.setStatus.subscribe((function(a){switch(a){case t.EStatus.editando:r.editar(),r.emProgresso=!1;break;case t.EStatus.inserindo:r.inserir(),r.emProgresso=!1;break;case t.EStatus.pesquisando:r.pesquisar();break;case t.EStatus.novaPesquisa:r.novaPesquisa();break;case t.EStatus.removendo:r.remover();break;case t.EStatus.dadosCarregados:r.status=t.EStatus.dadosCarregados,r.emProgresso=!1}})))},e.prototype.retornarServicoReverter=function(){return null==this._servicoReverter&&(this._servicoReverter=new P),this._servicoReverter},e.prototype._setDadosAnteriores=function(){this.retornarServicoReverter().setDadosAnteriores(this.status,this.form,this.entidadePaginada)},e.prototype._reverter=function(){this._emitirEventoClick(t.EEventoClick.onClickReverter),this.entidadePaginada=this.retornarServicoReverter().restaurarDadosAnteriores(this.form);var r=this.retornarServicoReverter().statusAnterior;r==t.EStatus.dadosCarregados?this._databarService.desabilitarForm(this.form):this._databarService.habilitarForm(this.form),this.setStatus(r),this._emitirEventoClick(t.EEventoClick.afterClickReverter)},e.prototype._resetarContadorPaginacao=function(){this.entidadePaginada.posicao=0,this.entidadePaginada.total=0},e.prototype.validarPropertsObrigatorias=function(){if(null==this.servicoBind)throw new Error("É obrigatório ter um serviço de bind vinculado.");if(null==this.entidadePaginada)throw new Error("É obrigatório ter uma entidade paginada vinculada.")},e.prototype.setStatus=function(t){t&&(this.status=t,this.statusChanged.emit(this.status))},e.prototype._getEntidade=function(){return this.form.getRawValue()},e.prototype._submeterFormularioOnEnter=function(){var r=this;this.servicoBind.onClickEnter&&this.servicoBind.onClickEnter.subscribe((function(){r.status===t.EStatus.novaPesquisa&&r.form.valid&&r.pesquisar()}))},e.prototype._clickInserir=function(){this._setDadosAnteriores(),this._resetarContadorPaginacao(),this._databarService.habilitarForm(this.form),this.form.reset({emitEvent:!1,onlySelf:!0}),this.form.markAllAsTouched(),this.drawer.close(),this.setStatus(t.EStatus.inserindo)},e.prototype._clickEditar=function(){this._setDadosAnteriores(),this._databarService.habilitarForm(this.form),this.form.markAllAsTouched(),this.drawer.close(),this.setStatus(t.EStatus.editando)},e.prototype._clickRemover=function(){this.setStatus(t.EStatus.removendo),this._exibirDialogConfirmacao(),this.drawer.close()},e.prototype._emitirEventoClick=function(t){return this._databarService.emitirEventoClick(this.servicoBind,t)},e.prototype._acaoCloseDialogConfirmacao=function(){this._dialog.emProgresso=!1,this._dialog.closeDialog(),this.setStatus(t.EStatus.dadosCarregados)},e.prototype._exibirDialogConfirmacao=function(){var t=this;this._dialog.acaoMensagem="Removendo registro...",this._dialog.acaoOk=function(){return t.servicoBind.remover().subscribe((function(){t._dialog.closeDialog(),t.novaPesquisa(),t._dialog.emProgresso=!1,t._snackBarService.abrirSnackBarSucesso("Removido com sucesso!")}),(function(){return t._acaoCloseDialogConfirmacao()}))},this._dialog.acaoCancelar=function(){t._acaoCloseDialogConfirmacao()},this._dialog.openDialog("Atenção!","Você realmente deseja excluir este registro?")},e.prototype._exibirDialogConfirmacaoReverter=function(){var t=this;this._dialog.acaoOk=function(){t._reverter(),t._dialog.emProgresso=!1,t._dialog.closeDialog()},this._dialog.acaoCancelar=function(){t._dialog.closeDialog()},this._dialog.openDialog("Atenção!","As alterações realizadas serão perdidas. Deseja continuar?")},e.prototype._paginar=function(r){var a=this;this.setStatus(t.EStatus.pesquisando),null==this.entidadePaginada.entidade&&(this.entidadePaginada.entidade=[].concat(this._getEntidade()));var e=this.entidadePaginada.posicao;switch(r){case"primeiro":this.entidadePaginada.posicao=1;break;case"ultimo":this.entidadePaginada.posicao=this.entidadePaginada.total;break;case"proximo":this.entidadePaginada.posicao++;break;case"anterior":this.entidadePaginada.posicao--;break;default:this.entidadePaginada.posicao=0}this.setProgresso(!0),this.servicoBind.listarPaginacao(this.entidadePaginada).subscribe((function(r){return a.setProgresso(!1),null==r?(a._dialogErro.openDialog("Atenção!","Nenhum registro foi encontrado."),void a.setStatus(t.EStatus.novaPesquisa)):null==r.entidade?(a._databarService.resetForm(a.form,a.entidadePaginada),void a.setStatus(t.EStatus.novaPesquisa)):(a.setStatus(t.EStatus.dadosCarregados),a.entidadePaginada.entidade?(a.entidadePaginada.total=r.total,a.entidadePaginada.posicao=r.posicao):a.entidadePaginada=r,a.form.patchValue(r.entidade[0]),a.setProgresso(!1),void a._databarService.desabilitarForm(a.form))}),(function(r){console.error("erro paginação",r),a.setStatus(t.EStatus.dadosCarregados),a.entidadePaginada.posicao=e,a.setProgresso(!1),a._databarService.desabilitarForm(a.form)}))},e.prototype.setProgresso=function(t){this.emProgresso=this._databarService.definirProgresso(this.form,t)},e}();B.decorators=[{type:r.Component,args:[{selector:"ic-data-bar",template:'<div fxFlex="1 0 auto" fxFlexLayout="space-around center" fxLayout="column">\r\n \x3c!-- DESKTOP --\x3e\r\n <mat-toolbar class="px-0 mat-elevation-z4">\r\n <div fxFlex="1 0 auto" fxLayout="row" fxLayoutAlign="space-around center">\r\n \x3c!-- BOTÃO EXIBIR DRAWER --\x3e\r\n <mat-drawer-container fxFlex.sm fxHide.gt-sm>\r\n <button\r\n (click)="drawer.toggle()"\r\n id="btn_exibir_databar_mobile"\r\n mat-button\r\n type="button"\r\n >\r\n <mat-icon>list</mat-icon>\r\n </button>\r\n </mat-drawer-container>\r\n \x3c!-- /BOTÃO EXIBIR DRAWER --\x3e\r\n\r\n \x3c!-- AÇÕES --\x3e\r\n <div\r\n fxFlex.sm\r\n fxHide\r\n fxLayout="row"\r\n fxLayoutAlign="space-around center"\r\n fxShow.gt-sm\r\n >\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n <button\r\n (click)="onClickNovaPesquisa()"\r\n [disabled]="servicoConfiguracaoBotoes?.desabilitarBotaoNovaPesquisa()"\r\n color="primary"\r\n id="btn_nova_pesquisa"\r\n mat-button\r\n matTooltip="Nova Pesquisa"\r\n >\r\n <mat-icon>insert_drive_file</mat-icon>\r\n </button>\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n\r\n \x3c!-- BTN_REVERTER --\x3e\r\n <button\r\n (click)="onClickReverter()"\r\n [disabled]="desabilitarBotaoReverter"\r\n color="primary"\r\n id="btn_reverter"\r\n mat-button\r\n matTooltip="Reverter"\r\n >\r\n <mat-icon>restore</mat-icon>\r\n </button>\r\n \x3c!-- BTN_REVERTER --\x3e\r\n\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n <button\r\n (click)="pesquisar()"\r\n [disabled]="desabilitarBotaoPesquisar"\r\n color="primary"\r\n id="btn_pesquisar"\r\n mat-button\r\n matTooltip="Pesquisar"\r\n >\r\n <mat-icon>search</mat-icon>\r\n </button>\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n <button\r\n (click)="inserir()"\r\n [disabled]="desabilitarBotaoAdicionar"\r\n color="primary"\r\n id="btn_adicionar"\r\n mat-button\r\n matTooltip="Adicionar"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n\r\n \x3c!-- BTN_EDITAR --\x3e\r\n <button\r\n (click)="editar()"\r\n [disabled]="desabilitarBotaoEditar"\r\n color="primary"\r\n id="btn_editar"\r\n mat-button\r\n matTooltip="Editar"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n \x3c!-- BTN_EDITAR --\x3e\r\n\r\n \x3c!-- BTN_REMOVER --\x3e\r\n <button\r\n (click)="remover()"\r\n [disabled]="desabilitarBotaoRemover"\r\n color="primary"\r\n id="btn_remover"\r\n mat-button\r\n matTooltip="Remover"\r\n >\r\n <mat-icon>delete_forever</mat-icon>\r\n </button>\r\n \x3c!-- BTN_REMOVER --\x3e\r\n\r\n \x3c!-- BTN_SALVAR --\x3e\r\n <button\r\n (click)="salvar()"\r\n [disabled]="desabilitarBotaoSalvar"\r\n color="primary"\r\n id="btn_salvar"\r\n mat-button\r\n matTooltip="Salvar"\r\n >\r\n <mat-icon>save</mat-icon>\r\n </button>\r\n \x3c!-- BTN_SALVAR --\x3e\r\n </div>\r\n \x3c!-- /AÇÕES --\x3e\r\n\r\n \x3c!-- STATUS --\x3e\r\n <div fxLayout="row" fxLayoutAlign="center center">\r\n \x3c!-- PROGRESS --\x3e\r\n <mat-spinner *ngIf="emProgresso" [diameter]="20"></mat-spinner>\r\n \x3c!-- PROGRESS --\x3e\r\n\r\n <button\r\n color="primary"\r\n fxHide.lt-sm\r\n id="btn_status"\r\n mat-button\r\n matTooltip="Ação no momento"\r\n >\r\n {{ status }}\r\n </button>\r\n </div>\r\n \x3c!-- STATUS --\x3e\r\n\r\n \x3c!-- PAGINAÇÃO --\x3e\r\n <div fxFlex.sm fxLayout="row" fxLayoutAlign="center center">\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n <button\r\n (click)="primeiro()"\r\n [disabled]="\r\n desabilitarBotoesPaginacaoRetroceder ||\r\n servicoConfiguracaoBotoes?.desabilitarBotaoPrimeiro()\r\n "\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n fxFlex.sm\r\n fxHide.lt-sm\r\n id="btn_primeiro"\r\n mat-button\r\n matTooltip="Primeiro item"\r\n >\r\n <mat-icon>first_page</mat-icon>\r\n </button>\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n\r\n \x3c!-- BTN_ANTERIOR --\x3e\r\n <button\r\n (click)="anterior()"\r\n [disabled]="\r\n desabilitarBotoesPaginacaoRetroceder ||\r\n servicoConfiguracaoBotoes?.desabilitarBotaoAnterior()\r\n "\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_anterior"\r\n mat-button\r\n matTooltip="Anterior"\r\n >\r\n <mat-icon>navigate_before</mat-icon>\r\n </button>\r\n \x3c!-- BTN_ANTERIOR --\x3e\r\n\r\n <div\r\n class="px-0 px-sm-12 contador-paginas"\r\n id="contador_paginacao"\r\n matTooltip="Página Atual"\r\n >\r\n {{ entidadePaginada?.posicao }} de {{ entidadePaginada?.total }}\r\n </div>\r\n\r\n \x3c!-- BTN_PROXIMO --\x3e\r\n <button\r\n (click)="proximo()"\r\n [disabled]="\r\n desabilitarBotoesPaginacaoAvancar ||\r\n servicoConfiguracaoBotoes?.desabilitarBotaoProximo()\r\n "\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_proximo"\r\n mat-button\r\n matTooltip="Próximo"\r\n >\r\n <mat-icon>navigate_next</mat-icon>\r\n </button>\r\n \x3c!-- BTN_PROXIMO --\x3e\r\n\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n <button\r\n (click)="ultimo()"\r\n [disabled]="\r\n desabilitarBotoesPaginacaoAvancar ||\r\n servicoConfiguracaoBotoes?.desabilitarBotaoUltimo()\r\n "\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_ultimo"\r\n fxFlex.sm\r\n fxHide.lt-sm\r\n mat-button\r\n matTooltip="Último"\r\n >\r\n <mat-icon>last_page</mat-icon>\r\n </button>\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n </div>\r\n \x3c!-- /PAGINAÇÃO --\x3e\r\n\r\n <div\r\n fxShow.gt-sm\r\n fxHide\r\n fxFlex.sm\r\n fxLayout="row"\r\n fxLayoutAlign="center center"\r\n >\r\n \x3c!-- MODO_TABELA --\x3e\r\n <button\r\n *ngIf="servicoConfiguracaoBotoes?.exibirBotaoModoTabela()"\r\n (click)="onClickModoTabela()"\r\n [disabled]="desabilitarBotaoModoTabela"\r\n color="primary"\r\n id="btn_modo_tabela"\r\n mat-button\r\n matTooltip="Alterar exibição para tabela"\r\n >\r\n <mat-icon>list</mat-icon>\r\n </button>\r\n \x3c!-- MODO_TABELA --\x3e\r\n </div>\r\n </div>\r\n </mat-toolbar>\r\n \x3c!-- /DESKTOP --\x3e\r\n\r\n \x3c!-- MOBILE --\x3e\r\n <mat-drawer #drawer fxFlex fxLayoutAlign="column" mode="over">\r\n \x3c!-- FECHAR SIDENAV --\x3e\r\n <button\r\n (click)="drawer.toggle()"\r\n class="btn-fechar-drawer"\r\n id="btn_fechar_databar_mobile"\r\n mat-icon-button\r\n >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n \x3c!-- /FECHAR SIDENAV --\x3e\r\n\r\n \x3c!-- STATUS --\x3e\r\n <div class="pr-12" fxLayout="row" fxLayoutAlign="space-between center">\r\n <div fxFlex="100" fxLayout="column" fxLayoutAlign="center center">\r\n <h4 class="pl-12">Ações</h4>\r\n <p class="texto-status" id="status_mobile">{{ status }}</p>\r\n </div>\r\n </div>\r\n \x3c!-- /STATUS --\x3e\r\n\r\n \x3c!-- OPCOES --\x3e\r\n <div class="px-12 overflow" fxLayout="column" fxLayoutAlign="start start">\r\n <mat-list>\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="primeiro()"\r\n [disabled]="\r\n desabilitarBotoesPaginacaoRetroceder ||\r\n servicoConfiguracaoBotoes?.desabilitarBotaoPrimeiro()\r\n "\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n mat-button\r\n id="btn_primeiro_mobile"\r\n matTooltip="Primeiro item"\r\n >\r\n <mat-icon>first_page</mat-icon>\r\n Primeiro item\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_PRIMEIRO --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="ultimo()"\r\n [disabled]="\r\n desabilitarBotoesPaginacaoAvancar ||\r\n servicoConfiguracaoBotoes?.desabilitarBotaoUltimo()\r\n "\r\n class="px-0 px-sm-12"\r\n color="primary"\r\n id="btn_ultimo_mobile"\r\n mat-button\r\n matTooltip="Último"\r\n >\r\n <mat-icon>last_page</mat-icon>\r\n Último item\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_ULTIMO --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- MODO_TABELA --\x3e\r\n <mat-list-item>\r\n <button\r\n *ngIf="servicoConfiguracaoBotoes?.exibirBotaoModoTabela()"\r\n (click)="onClickModoTabela()"\r\n [disabled]="desabilitarBotaoModoTabela"\r\n color="primary"\r\n id="btn_modo_tabela_mobile"\r\n mat-button\r\n matTooltip="Alterar exibição para tabela"\r\n >\r\n <mat-icon>list</mat-icon>\r\n Modo tabela\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- MODO_TABELA --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="onClickNovaPesquisa()"\r\n [disabled]="\r\n servicoConfiguracaoBotoes?.desabilitarBotaoNovaPesquisa()\r\n "\r\n color="primary"\r\n mat-button\r\n id="btn_nova_pesquisa_mobile"\r\n matTooltip="Nova Pesquisa"\r\n >\r\n <mat-icon>restore_page</mat-icon>\r\n Nova Pesquisa\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_NOVA_PESQUISA --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="pesquisar()"\r\n [disabled]="desabilitarBotaoPesquisar"\r\n color="primary"\r\n id="btn_pesquisar_mobile"\r\n mat-button\r\n matTooltip="Pesquisar"\r\n >\r\n <mat-icon>search</mat-icon>\r\n Pesquisar\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_PESQUISAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="inserir()"\r\n [disabled]="desabilitarBotaoAdicionar"\r\n color="primary"\r\n mat-button\r\n id="btn_adicionar_mobile"\r\n matTooltip="Adicionar"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n Incluir\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_ADICIONAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_EDITAR --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="editar()"\r\n [disabled]="desabilitarBotaoEditar"\r\n color="primary"\r\n mat-button\r\n id="btn_editar_mobile"\r\n matTooltip="Editar"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n Editar\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_EDITAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_REMOVER --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="remover()"\r\n [disabled]="desabilitarBotaoRemover"\r\n color="primary"\r\n mat-button\r\n id="btn_remover_mobile"\r\n matTooltip="Remover"\r\n >\r\n <mat-icon>delete_forever</mat-icon>\r\n Remover\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_REMOVER --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n\r\n \x3c!-- BTN_SALVAR --\x3e\r\n <mat-list-item>\r\n <button\r\n (click)="salvar()"\r\n [disabled]="desabilitarBotaoSalvar"\r\n color="primary"\r\n mat-button\r\n id="btn_salvar_mobile"\r\n matTooltip="Salvar"\r\n >\r\n <mat-icon>save</mat-icon>\r\n Salvar\r\n </button>\r\n </mat-list-item>\r\n \x3c!-- BTN_SALVAR --\x3e\r\n\r\n <mat-divider></mat-divider>\r\n </mat-list>\r\n </div>\r\n \x3c!-- /OPCOES --\x3e\r\n </mat-drawer>\r\n \x3c!-- /MOBILE --\x3e\r\n</div>\r\n',styles:["::ng-deep .sucesso{background:#4caf50!important;color:#fff!important}::ng-deep .sucesso button{color:#1b5e20!important;font-weight:800!important}.contador-paginas{color:#039be5;font-size:14px}@media (max-width:959px){.contador-paginas{font-size:12px}}.btn-fechar-drawer{position:absolute;right:5px;top:5px}.texto-status{color:#039be5;text-align:center}mat-toolbar{background:#fff!important;width:100%}mat-drawer-container{background:transparent!important}mat-drawer{left:0;min-width:240px}.overflow,mat-drawer,mat-list{overflow-y:auto}:host{display:flex;flex:0 0 auto;z-index:99999}:host .mat-toolbar{background:inherit;border-bottom:1px solid #e6e6e6;color:inherit}:host .mat-toolbar .pagina{font-size:10px;margin:1vm;text-align:center}:host.above{position:relative;z-index:99999999}"]}]}],B.ctorParameters=function(){return[{type:e.IcConfirmaDialogService},{type:S},{type:r.ElementRef},{type:y},{type:i.IcmSnackBarService}]},B.propDecorators={servicoBind:[{type:r.Input}],form:[{type:r.Input}],entidadePaginada:[{type:r.Input}],disabled:[{type:r.Input}],servicoConfiguracaoBotoes:[{type:r.Input}],servicoReverter:[{type:r.Input}],statusChanged:[{type:r.Output}],drawer:[{type:r.ViewChild,args:["drawer",{static:!1}]}],fecharSidenav:[{type:r.HostListener,args:["document:click",["$event"]]}]};var C=function(){};C.decorators=[{type:r.NgModule,args:[{declarations:[_],imports:[o.MatDialogModule],exports:[_],entryComponents:[_]}]}];var k=function(){};k.decorators=[{type:r.NgModule,args:[{declarations:[B],imports:[v.CommonModule,m.MatToolbarModule,d.MatListModule,u.MatSidenavModule,c.MatIconModule,l.MatProgressSpinnerModule,s.MatDividerModule,n.MatButtonModule,p.MatTooltipModule,b.FlexLayoutModule,e.IcConfirmaDialogModule,C,i.IcmSnackBarModule],exports:[B],providers:[y]}]}],t.DataBarComponent=B,t.DataBarConfigBotoesService=x,t.DataBarModule=k,t.DatabarEventClickService=E,t.OnInitDataBar=g,t.ɵa=S,t.ɵb=y,t.ɵc=C,t.ɵd=_,Object.defineProperty(t,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=inovamobil-ic-databar-lib.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../projects/ic-databar-lib/src/lib/enum/estatus.ts","../../../projects/ic-databar-lib/src/lib/contrato/OnInitDataBar.ts","../../../projects/ic-databar-lib/src/lib/enum/eeventoclick.ts","../../../projects/ic-databar-lib/src/lib/contrato/DataBarConfigBotoesService.ts","../../../projects/ic-databar-lib/src/lib/services/ic-databar-event-click.service.ts","../../../projects/ic-databar-lib/src/components/dialogs/error-dialog/error-dialog.component.ts","../../../projects/ic-databar-lib/src/components/dialogs/error-dialog/service/error-dialog.service.ts","../../../projects/ic-databar-lib/src/lib/services/ic-databar.service.ts","../../../projects/ic-databar-lib/src/lib/services/ic-databar-reverter.service.ts","../../../projects/ic-databar-lib/src/lib/ic-data-bar.component.ts","../../../projects/ic-databar-lib/src/components/dialogs/error-dialog/error-dialog.module.ts","../../../projects/ic-databar-lib/src/lib/ic-data-bar.module.ts"],"names":["EStatus","OnInitDataBar","this","prototype","ngOnInit","onInit","servicoDataBarBind","status","novaPesquisa","statusChanged","statusDataBar","onStatusChanged","Object","defineProperty","inserindo","editando","removendo","Directive","EEventoClick","DataBarConfigBotoesService","desabilitarBotaoNovaPesquisa","args","_i","arguments","length","desabilitarBotaoReverter","desabilitarBotaoPesquisar","desabilitarBotaoEditar","desabilitarBotaoAdicionar","desabilitarBotaoRemover","desabilitarBotaoSalvar","desabilitarBotaoPrimeiro","desabilitarBotaoAnterior","desabilitarBotaoProximo","desabilitarBotaoUltimo","desabilitarBotaoModoTabela","exibirBotaoModoTabela","DatabarEventClickService","onEvent","emitir","evento","ErrorDialogComponent","dialogRef","data","mensagem","titulo","close","Component","selector","template","MatDialogRef","Inject","MAT_DIALOG_DATA","ErrorDialogService","dialog","openDialog","dialogConfig","MatDialogConfig","disableClose","autoFocus","minWidth","open","closeDialog","Injectable","providedIn","MatDialog","DatabarService","desabilitarForm","form","disable","emitEvent","onlySelf","habilitarForm","enable","resetForm","entidadePaginada","reset","entidade","posicao","total","emitirEventoClick","servico","eventDatabar","definirProgresso","progresso","IcDatabarReverterService","_statusAnterior","setDadosAnteriores","formularo","_entidadePaginadaAnterior","quantidade","_dadosAnterioresFormulario","getRawValue","restaurarDadosAnteriores","formulario","patchValue","DataBarComponent","_dialog","_dialogErro","_elementRef","_databarService","_snackBarService","disabled","EventEmitter","emProgresso","_servicoReverter","validarPropertsObrigatorias","setProgresso","_submeterFormularioOnEnter","observarSetStatus","ngOnDestroy","servicoBind","onClickEnter","unsubscribe","$setStatus","fecharSidenav","event","nativeElement","contains","target","drawer","invalid","_a","servicoConfiguracaoBotoes","dadosCarregados","executarAcao","pesquisando","_b","inserindoOuEditando","onClickReverter","_emitirEventoClick","_reverter","afterClickReverter","onClickModoTabela","onClickNovaPesquisa","afterClickNovaPesquisa","value","setStatus","pesquisar","_setDadosAnteriores","concat","_getEntidade","_paginar","inserir","onClickInserir","_clickInserir","afterClickInserir","editar","onClickEditar","_clickEditar","afterClickEditar","remover","onClickRemover","_clickRemover","afterClickRemover","proximo","anterior","ultimo","primeiro","salvar","onClickSalvar","_inserir","_editar","_this","salvando","criar","pipe","finalize","afterClickSalvar","subscribe","success","abrirSnackBarSucesso","retornarServicoReverter","statusAnterior","_resetarContadorPaginacao","Error","emit","valid","markAllAsTouched","_exibirDialogConfirmacao","_acaoCloseDialogConfirmacao","acaoMensagem","acaoOk","acaoCancelar","acao","posicaoAnterior","listarPaginacao","error","console","IcConfirmaDialogService","ElementRef","IcmSnackBarService","Input","Output","ViewChild","static","HostListener","NgModule","declarations","imports","MatDialogModule","exports","entryComponents","CommonModule","MatToolbarModule","MatListModule","MatSidenavModule","MatIconModule","MatProgressSpinnerModule","MatDividerModule","MatButtonModule","MatTooltipModule","FlexLayoutModule","IcConfirmaDialogModule","ErrorDialogModule","IcmSnackBarModule","providers"],"mappings":"mhDACA,IAAYA,GAAAA,EAAAA,EAAAA,UAAAA,EAAAA,QAAO,KACf,aAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,UAAA,YACAA,EAAA,gBAAA,mBACAA,EAAA,YAAA,cACAA,EAAA,aAAA,gBACAA,EAAA,SAAA,4BCDJ,SAAAC,IAMIC,KAAAF,QAA0BA,EAAAA,eAM1BC,EAAAE,UAAAC,SAAA,WACIF,KAAKG,SACLH,KAAKI,mBAAmBC,OAASP,EAAAA,QAAQQ,cAG7CP,EAAAE,UAAAM,cAAA,SAAcF,GACVL,KAAKI,mBAAmBC,OAASA,EACjCL,KAAKQ,cAAgBH,EACrBL,KAAKS,gBAAgBJ,IAGzBK,OAAAC,eAAWZ,EAAAE,UAAA,sBAAmB,KAA9B,WACI,OAAOD,KAAKQ,gBAAkBV,EAAAA,QAAQc,WAC/BZ,KAAKQ,gBAAkBV,EAAAA,QAAQe,0CAG1CH,OAAAC,eAAWZ,EAAA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ErC,iCARCgL,EAAAA,SAAQhL,KAAA,CAAC,CACNiL,aAAc,CAAC7J,GACf8J,QAAS,CACLC,EAAAA,iBAEJC,QAAS,CAAChK,GACViK,gBAAiB,CAACjK,aC2BtB,iCApBC4J,EAAAA,SAAQhL,KAAA,CAAC,CACNiL,aAAc,CAACtG,GACfuG,QAAS,CACLI,EAAAA,aACAC,EAAAA,iBACAC,EAAAA,cACAC,EAAAA,iBACAC,EAAAA,cACAC,EAAAA,yBACAC,EAAAA,iBACAC,EAAAA,gBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,uBACAC,EACAC,EAAAA,mBAEJd,QAAS,CAACzG,GACVwH,UAAW,CAACtJ","sourcesContent":["\r\nexport enum EStatus {\r\n novaPesquisa = 'Nova pesquisa',\r\n inserindo = 'Inserindo',\r\n editando = 'Editando',\r\n removendo = 'Removendo',\r\n dadosCarregados = 'Dados carregados',\r\n pesquisando = 'Pesquisando',\r\n executarAcao = 'Executar ação',\r\n salvando = 'Salvando'\r\n}\r\n","import { IDataBarBindComponent } from './IDataBarBind';\r\nimport { Component, Directive } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { IDataEntidadePaginada } from './IDataEntidadePaginada';\r\nimport { IDataBarBindService } from './IDataBarService';\r\nimport { EStatus } from '../enum/estatus';\r\n\r\n@Directive()\r\nexport abstract class OnInitDataBar<T> implements IDataBarBindComponent<T> {\r\n form: FormGroup;\r\n entidadePaginada: IDataEntidadePaginada<T>;\r\n statusDataBar: EStatus;\r\n servicoDataBarBind: IDataBarBindService<T>;\r\n EStatus: typeof EStatus = EStatus;\r\n\r\n abstract onStatusChanged(status: EStatus): void;\r\n\r\n abstract onInit(): void;\r\n\r\n ngOnInit(): void {\r\n this.onInit();\r\n this.servicoDataBarBind.status = EStatus.novaPesquisa;\r\n }\r\n\r\n statusChanged(status: EStatus): void {\r\n this.servicoDataBarBind.status = status;\r\n this.statusDataBar = status;\r\n this.onStatusChanged(status);\r\n }\r\n\r\n public get inserindoOuEditando(): boolean {\r\n return this.statusDataBar === EStatus.inserindo ||\r\n this.statusDataBar === EStatus.editando;\r\n }\r\n\r\n public get inserindo(): boolean {\r\n return this.statusDataBar === EStatus.inserindo;\r\n }\r\n\r\n public get editando(): boolean {\r\n return this.statusDataBar === EStatus.editando;\r\n }\r\n\r\n public get editandoOuRemovendo(): boolean {\r\n return (this.statusDataBar === EStatus.editando || this.statusDataBar === EStatus.removendo);\r\n }\r\n}\r\n","export enum EEventoClick {\r\n onClickInserir = 'onInserir',\r\n afterClickInserir = 'afterClickInserir',\r\n onClickReverter = \"onReverter\",\r\n afterClickReverter = \"afterClickReverter\",\r\n onClickNovaPesquisa = 'onNovaPesquisa',\r\n afterClickNovaPesquisa = 'afterClickNovaPesquisa',\r\n onClickEditar = 'onEditar',\r\n afterClickEditar = 'afterClickEditar',\r\n onClickRemover = 'onRemover',\r\n afterClickRemover = 'afterClickRemover',\r\n onClickSalvar = 'onClickSalvar',\r\n afterClickSalvar = 'afterClickSalvar',\r\n onClickModoTabela= 'onClickModoTabela'\r\n}\r\n\r\n","export abstract class DataBarConfigBotoesService {\r\n desabilitarBotaoNovaPesquisa(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoReverter(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoPesquisar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoEditar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoAdicionar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoRemover(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoSalvar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoPrimeiro(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoAnterior(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoProximo(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoUltimo(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoModoTabela(...args): boolean {\r\n return false;\r\n }\r\n\r\n exibirBotaoModoTabela(...args): boolean {\r\n return false;\r\n }\r\n}\r\n","import { EEventoClick } from '../enum/eeventoclick';\r\n\r\nexport class DatabarEventClickService {\r\n\r\n constructor(private onEvent: (event: EEventoClick) => void) {}\r\n \r\n emitir(evento: EEventoClick): void {\r\n this.onEvent(evento);\r\n }\r\n\r\n}\r\n","import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\r\nimport { Inject, Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'confirma-dialog',\r\n templateUrl: './view/error-dialog.html',\r\n})\r\nexport class ErrorDialogComponent {\r\n\r\n mensagem: string;\r\n titulo: string;\r\n\r\n constructor(\r\n private dialogRef: MatDialogRef<ErrorDialogComponent>,\r\n @Inject(MAT_DIALOG_DATA) data) {\r\n\r\n this.mensagem = data.mensagem;\r\n this.titulo = data.titulo;\r\n }\r\n\r\n close(): void {\r\n this.dialogRef.close();\r\n }\r\n}\r\n\r\n","import { MatDialogConfig, MatDialog } from '@angular/material/dialog';\r\nimport { Injectable } from '@angular/core';\r\n\r\nimport { ErrorDialogComponent } from '../error-dialog.component';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport abstract class ErrorDialogService {\r\n\r\n dialogRef: any;\r\n\r\n constructor(private dialog: MatDialog) { }\r\n\r\n openDialog(titulo: string, mensagem: string): void {\r\n const dialogConfig = new MatDialogConfig();\r\n dialogConfig.disableClose = true;\r\n dialogConfig.autoFocus = true;\r\n\r\n dialogConfig.data = {\r\n titulo: titulo,\r\n mensagem: mensagem\r\n };\r\n\r\n dialogConfig.minWidth = '300px';\r\n\r\n this.dialogRef = this.dialog.open(ErrorDialogComponent, dialogConfig);\r\n\r\n }\r\n\r\n closeDialog(): void {\r\n this.dialogRef.close();\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { IDataEntidadePaginada } from '../contrato/IDataEntidadePaginada';\r\nimport { IDatabarBindOnClickService, EEventoClick } from '../../public-api';\r\n\r\n@Injectable()\r\nexport class DatabarService {\r\n\r\n\r\n constructor() { }\r\n\r\n public desabilitarForm(form: FormGroup): void {\r\n form.disable({ emitEvent: false, onlySelf: true });\r\n }\r\n\r\n public habilitarForm(form: FormGroup): void {\r\n form.enable({ emitEvent: false, onlySelf: true });\r\n }\r\n\r\n public resetForm(form: FormGroup, entidadePaginada: IDataEntidadePaginada<any>): void {\r\n form.reset({ emitEvent: false, onlySelf: true });\r\n entidadePaginada.entidade = null;\r\n entidadePaginada.posicao = 0;\r\n entidadePaginada.total = 0;\r\n }\r\n\r\n public emitirEventoClick<T>(servico: IDatabarBindOnClickService<T>, evento: EEventoClick): void {\r\n if (servico.eventDatabar) {\r\n servico.eventDatabar.emitir(evento);\r\n }\r\n }\r\n\r\n definirProgresso(form: FormGroup, progresso: boolean): boolean {\r\n if (!form)\r\n return;\r\n\r\n if (progresso)\r\n this.desabilitarForm(form);\r\n else\r\n this.habilitarForm(form);\r\n\r\n return progresso;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { EStatus } from '../enum/estatus';\r\nimport { IDataEntidadePaginada } from '../contrato/IDataEntidadePaginada';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { IDataBarReverterService } from '../contrato/IDataBarReverterService';\r\n\r\n@Injectable()\r\nexport class IcDatabarReverterService<T> implements IDataBarReverterService<T>{\r\n\r\n private _statusAnterior: EStatus;\r\n private _dadosAnterioresFormulario: T;\r\n private _entidadePaginadaAnterior: IDataEntidadePaginada<T>;\r\n\r\n get statusAnterior(): EStatus {\r\n return this._statusAnterior;\r\n }\r\n\r\n public setDadosAnteriores(status: EStatus, formularo: FormGroup, entidadePaginada: IDataEntidadePaginada<T>): void {\r\n this._entidadePaginadaAnterior = {\r\n entidade: entidadePaginada.entidade,\r\n posicao: entidadePaginada.posicao,\r\n quantidade: entidadePaginada.quantidade,\r\n total: entidadePaginada.total\r\n } as IDataEntidadePaginada<T>;\r\n\r\n this._dadosAnterioresFormulario = formularo.getRawValue();\r\n this._statusAnterior = status;\r\n }\r\n\r\n public restaurarDadosAnteriores(formulario: FormGroup): IDataEntidadePaginada<T> {\r\n formulario.patchValue(this._dadosAnterioresFormulario);\r\n return this._entidadePaginadaAnterior;\r\n }\r\n\r\n}\r\n","import {\r\n Component,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n OnInit,\r\n HostListener,\r\n ElementRef,\r\n ViewChild,\r\n OnDestroy\r\n} from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { MatDrawer } from '@angular/material/sidenav';\r\n\r\nimport { Subscription } from 'rxjs';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nimport { IcConfirmaDialogService } from '@inovamobil/ic-confirma-dialog';\r\nimport { IcmSnackBarService } from '@inovamobil/icm-snackbar';\r\n\r\nimport { IDataEntidadePaginada } from './contrato/IDataEntidadePaginada';\r\nimport { IDataBarBindService } from './contrato/IDataBarService';\r\nimport { EStatus } from './enum/estatus';\r\nimport { EEventoClick } from './enum/eeventoclick';\r\nimport { IDatabarBindOnClickService } from './contrato/IDataBarBindOnClickService';\r\nimport { IDatabarBindStatusService } from '../public-api';\r\nimport { ErrorDialogService } from '../components/dialogs/error-dialog/service/error-dialog.service';\r\nimport { ACAO_PAGINACAO } from './constants/ic-databar.constants';\r\nimport { DatabarService } from './services/ic-databar.service';\r\nimport { IcDatabarReverterService } from './services/ic-databar-reverter.service';\r\nimport { IDataBarReverterService } from './contrato/IDataBarReverterService';\r\nimport { DataBarConfigBotoesService } from './contrato/DataBarConfigBotoesService';\r\n\r\n@Component({\r\n selector: 'ic-data-bar',\r\n templateUrl: './view/ic-data-bar.component.html',\r\n styleUrls: ['./view/ic-data-bar.component.scss']\r\n})\r\nexport class DataBarComponent<T> implements OnInit, OnDestroy {\r\n @Input() servicoBind: IDataBarBindService<T> | IDatabarBindStatusService<T> | IDatabarBindOnClickService<T>;\r\n @Input() form: FormGroup;\r\n @Input() entidadePaginada: IDataEntidadePaginada<T>;\r\n @Input() disabled = false;\r\n @Input() servicoConfiguracaoBotoes: DataBarConfigBotoesService;\r\n @Input() set servicoReverter(servico: IDataBarReverterService<T>) {\r\n this._servicoReverter = servico;\r\n };\r\n\r\n @Output() statusChanged = new EventEmitter<EStatus>();\r\n\r\n public status: EStatus;\r\n public EStatus = EStatus;\r\n public emProgresso = false;\r\n private _servicoReverter: IDataBarReverterService<T>;\r\n private $setStatus: Subscription;\r\n\r\n @ViewChild('drawer', { static: false }) drawer: MatDrawer;\r\n\r\n constructor(\r\n private _dialog: IcConfirmaDialogService,\r\n private _dialogErro: ErrorDialogService,\r\n private _elementRef: ElementRef,\r\n private _databarService: DatabarService,\r\n private _snackBarService: IcmSnackBarService\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.validarPropertsObrigatorias();\r\n this.setProgresso(false);\r\n this.novaPesquisa();\r\n this._submeterFormularioOnEnter();\r\n this.observarSetStatus();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n if (this.servicoBind.onClickEnter)\r\n this.servicoBind.onClickEnter.unsubscribe();\r\n\r\n if (this.$setStatus)\r\n this.$setStatus.unsubscribe();\r\n }\r\n\r\n @HostListener('document:click', ['$event'])\r\n fecharSidenav(event): void {\r\n if (this._elementRef.nativeElement.contains(event.target)) {\r\n return;\r\n }\r\n this.drawer.close();\r\n }\r\n\r\n get inserindoOuEditando(): boolean {\r\n return (this.status === EStatus.inserindo ||\r\n this.status === EStatus.editando)\r\n }\r\n\r\n get desabilitarBotaoModoTabela(): boolean {\r\n return this.status == EStatus.inserindo ||\r\n this.status == EStatus.editando ||\r\n this.emProgresso ||\r\n this.form.invalid ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoModoTabela();\r\n }\r\n\r\n get desabilitarBotaoPesquisar(): boolean {\r\n return this.status == EStatus.inserindo ||\r\n this.status == EStatus.editando ||\r\n this.status == EStatus.dadosCarregados ||\r\n this.emProgresso ||\r\n this.form.invalid ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoPesquisar();\r\n }\r\n\r\n get desabilitarBotaoReverter(): boolean {\r\n return this.status == EStatus.novaPesquisa ||\r\n this.status == EStatus.executarAcao ||\r\n this.status == EStatus.dadosCarregados ||\r\n this.emProgresso ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoReverter();\r\n }\r\n\r\n get desabilitarBotaoAdicionar(): boolean {\r\n return this.status == EStatus.editando ||\r\n this.status == EStatus.inserindo ||\r\n this.emProgresso ||\r\n this.disabled ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoAdicionar();\r\n }\r\n\r\n get desabilitarBotaoEditar(): boolean {\r\n return this.status == EStatus.inserindo ||\r\n this.status == EStatus.novaPesquisa ||\r\n this.status == EStatus.executarAcao ||\r\n this.status == EStatus.pesquisando ||\r\n this.status == EStatus.editando ||\r\n this.emProgresso ||\r\n this.disabled ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoEditar();\r\n }\r\n\r\n get desabilitarBotaoRemover(): boolean {\r\n return !this.entidadePaginada?.entidade ||\r\n this.status != EStatus.dadosCarregados ||\r\n this.emProgresso ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoRemover();\r\n }\r\n\r\n get desabilitarBotaoSalvar(): boolean {\r\n return this.form?.invalid ||\r\n (this.status != EStatus.inserindo && this.status != EStatus.editando) ||\r\n this.emProgresso ||\r\n this.disabled ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoSalvar();\r\n }\r\n\r\n get desabilitarBotoesPaginacaoRetroceder(): boolean {\r\n return this.inserindoOuEditando ||\r\n this.entidadePaginada.posicao <= 1 ||\r\n this.emProgresso;\r\n }\r\n\r\n get desabilitarBotoesPaginacaoAvancar(): boolean {\r\n return this.inserindoOuEditando ||\r\n this.entidadePaginada.posicao >= this.entidadePaginada.total ||\r\n this.emProgresso;\r\n }\r\n\r\n onClickReverter(): void {\r\n this._emitirEventoClick(EEventoClick.onClickReverter);\r\n this._reverter();\r\n this._emitirEventoClick(EEventoClick.afterClickReverter);\r\n }\r\n\r\n onClickModoTabela(): void {\r\n this._emitirEventoClick(EEventoClick.onClickModoTabela);\r\n }\r\n\r\n onClickNovaPesquisa(): void {\r\n this._emitirEventoClick(EEventoClick.onClickNovaPesquisa);\r\n this.novaPesquisa();\r\n this._emitirEventoClick(EEventoClick.afterClickNovaPesquisa);\r\n }\r\n\r\n novaPesquisa(): void {\r\n this._databarService.habilitarForm(this.form);\r\n this.form.reset({ emitEvent: false, onlySelf: true });\r\n this.entidadePaginada.entidade = this.form.value;\r\n this.entidadePaginada.posicao = 0;\r\n this.entidadePaginada.total = 0;\r\n this.setStatus(EStatus.novaPesquisa);\r\n }\r\n\r\n pesquisar(): void {\r\n if (this.form.invalid) {\r\n return;\r\n }\r\n\r\n this._setDadosAnteriores();\r\n this.setStatus(EStatus.pesquisando);\r\n this.entidadePaginada.entidade = [].concat(this._getEntidade());\r\n this._paginar();\r\n this.drawer.close();\r\n }\r\n\r\n inserir(): void {\r\n this._emitirEventoClick(EEventoClick.onClickInserir);\r\n this._clickInserir();\r\n this._emitirEventoClick(EEventoClick.afterClickInserir);\r\n }\r\n\r\n editar(): void {\r\n this._emitirEventoClick(EEventoClick.onClickEditar);\r\n this._clickEditar();\r\n this._emitirEventoClick(EEventoClick.afterClickEditar);\r\n }\r\n\r\n remover(): void {\r\n this._emitirEventoClick(EEventoClick.onClickRemover);\r\n this._clickRemover();\r\n this._emitirEventoClick(EEventoClick.afterClickRemover);\r\n }\r\n\r\n proximo(): void {\r\n this._paginar('proximo');\r\n }\r\n\r\n anterior(): void {\r\n this._paginar('anterior');\r\n }\r\n\r\n ultimo(): void {\r\n this._paginar('ultimo');\r\n }\r\n\r\n primeiro(): void {\r\n this._paginar('primeiro');\r\n }\r\n\r\n salvar(): void {\r\n this._emitirEventoClick(EEventoClick.onClickSalvar);\r\n\r\n switch (this.status) {\r\n case EStatus.inserindo:\r\n this._inserir();\r\n break;\r\n\r\n case EStatus.editando:\r\n this._editar();\r\n break;\r\n }\r\n }\r\n\r\n private _inserir(): void {\r\n this.setStatus(EStatus.salvando);\r\n this.setProgresso(true);\r\n this.servicoBind.criar()\r\n .pipe(finalize(() => {\r\n this._emitirEventoClick(EEventoClick.afterClickSalvar);\r\n }))\r\n .subscribe(\r\n success => {\r\n this.setProgresso(false);\r\n\r\n this._snackBarService.abrirSnackBarSucesso('Registro salvo com sucesso!');\r\n\r\n this.form.patchValue(success);\r\n\r\n this.setStatus(EStatus.dadosCarregados);\r\n\r\n this.drawer.close();\r\n\r\n this._databarService.desabilitarForm(this.form);\r\n },\r\n () => {\r\n this.setProgresso(false);\r\n this.setStatus(EStatus.inserindo);\r\n });\r\n }\r\n\r\n private _editar(): void {\r\n this.setStatus(EStatus.salvando);\r\n this.setProgresso(true);\r\n this.servicoBind.editar()\r\n .pipe(finalize(() => {\r\n this._emitirEventoClick(EEventoClick.afterClickSalvar);\r\n }))\r\n .subscribe(\r\n success => {\r\n this._snackBarService.abrirSnackBarSucesso('Registro editado com sucesso!');\r\n\r\n this.form.patchValue(success);\r\n\r\n this.setProgresso(false)\r\n\r\n this.setStatus(EStatus.dadosCarregados);\r\n\r\n this._databarService.desabilitarForm(this.form);\r\n\r\n this.drawer.close();\r\n },\r\n () => {\r\n this.setProgresso(false);\r\n this.setStatus(EStatus.editando);\r\n });\r\n }\r\n\r\n private observarSetStatus(): void {\r\n if ((this.servicoBind as IDatabarBindStatusService<T>).setStatus) {\r\n this.$setStatus = (this.servicoBind as IDatabarBindStatusService<T>).setStatus\r\n .subscribe(status => {\r\n switch (status) {\r\n case EStatus.editando:\r\n this.editar();\r\n this.emProgresso = false;\r\n break;\r\n case EStatus.inserindo:\r\n this.inserir();\r\n this.emProgresso = false;\r\n break;\r\n case EStatus.pesquisando:\r\n this.pesquisar();\r\n break;\r\n case EStatus.novaPesquisa:\r\n this.novaPesquisa();\r\n break;\r\n case EStatus.removendo:\r\n this.remover();\r\n break;\r\n case EStatus.dadosCarregados:\r\n this.status = EStatus.dadosCarregados;\r\n this.emProgresso = false;\r\n break;\r\n }\r\n });\r\n }\r\n }\r\n\r\n private retornarServicoReverter(): IDataBarReverterService<T> {\r\n if (this._servicoReverter == null)\r\n this._servicoReverter = new IcDatabarReverterService();\r\n\r\n return this._servicoReverter;\r\n }\r\n\r\n private _setDadosAnteriores(): void {\r\n this.retornarServicoReverter().setDadosAnteriores(this.status, this.form, this.entidadePaginada);\r\n }\r\n\r\n private _reverter(): void {\r\n this._emitirEventoClick(EEventoClick.onClickReverter);\r\n this.entidadePaginada = this.retornarServicoReverter().restaurarDadosAnteriores(this.form);\r\n const statusAnterior = this.retornarServicoReverter().statusAnterior;\r\n\r\n if (statusAnterior == EStatus.dadosCarregados)\r\n this._databarService.desabilitarForm(this.form);\r\n else\r\n this._databarService.habilitarForm(this.form);\r\n\r\n this.setStatus(statusAnterior);\r\n this._emitirEventoClick(EEventoClick.afterClickReverter);\r\n }\r\n\r\n private _resetarContadorPaginacao(): void {\r\n this.entidadePaginada.posicao = 0;\r\n this.entidadePaginada.total = 0;\r\n }\r\n\r\n private validarPropertsObrigatorias(): any {\r\n if (this.servicoBind == null) {\r\n throw new Error('É obrigatório ter um serviço de bind vinculado.');\r\n }\r\n\r\n if (this.entidadePaginada == null) {\r\n throw new Error(\r\n 'É obrigatório ter uma entidade paginada vinculada.'\r\n );\r\n }\r\n }\r\n\r\n private setStatus(status: EStatus): void {\r\n if (!status) {\r\n return;\r\n }\r\n this.status = status;\r\n this.statusChanged.emit(this.status);\r\n }\r\n\r\n private _getEntidade(): T {\r\n const result = this.form.getRawValue() as T;\r\n return result;\r\n }\r\n\r\n private _submeterFormularioOnEnter(): void {\r\n if (!this.servicoBind.onClickEnter)\r\n return;\r\n this.servicoBind.onClickEnter.subscribe(() => {\r\n if (this.status === EStatus.novaPesquisa && this.form.valid) {\r\n this.pesquisar();\r\n }\r\n });\r\n }\r\n\r\n private _clickInserir(): void {\r\n this._setDadosAnteriores();\r\n this._resetarContadorPaginacao();\r\n this._databarService.habilitarForm(this.form);\r\n this.form.reset({ emitEvent: false, onlySelf: true });\r\n this.form.markAllAsTouched();\r\n this.drawer.close();\r\n this.setStatus(EStatus.inserindo);\r\n }\r\n\r\n private _clickEditar(): void {\r\n this._setDadosAnteriores();\r\n this._databarService.habilitarForm(this.form);\r\n\r\n this.form.markAllAsTouched();\r\n this.drawer.close();\r\n this.setStatus(EStatus.editando);\r\n }\r\n\r\n private _clickRemover(): void {\r\n this.setStatus(EStatus.removendo);\r\n this._exibirDialogConfirmacao();\r\n this.drawer.close();\r\n }\r\n\r\n private _emitirEventoClick(evento: EEventoClick): void {\r\n return this._databarService.emitirEventoClick<T>((this.servicoBind as IDatabarBindOnClickService<T>), evento);\r\n }\r\n\r\n private _acaoCloseDialogConfirmacao(): void {\r\n this._dialog.emProgresso = false;\r\n this._dialog.closeDialog();\r\n this.setStatus(EStatus.dadosCarregados);\r\n }\r\n\r\n private _exibirDialogConfirmacao(): void {\r\n this._dialog.acaoMensagem = 'Removendo registro...';\r\n this._dialog.acaoOk = () =>\r\n this.servicoBind.remover().subscribe(\r\n () => {\r\n this._dialog.closeDialog();\r\n this.novaPesquisa();\r\n this._dialog.emProgresso = false;\r\n this._snackBarService.abrirSnackBarSucesso('Removido com sucesso!');\r\n },\r\n () => this._acaoCloseDialogConfirmacao()\r\n );\r\n this._dialog.acaoCancelar = () => {\r\n this._acaoCloseDialogConfirmacao();\r\n };\r\n\r\n this._dialog.openDialog(\r\n 'Atenção!',\r\n 'Você realmente deseja excluir este registro?'\r\n );\r\n }\r\n\r\n private _paginar(acao?: ACAO_PAGINACAO): void {\r\n this.setStatus(EStatus.pesquisando);\r\n\r\n if (this.entidadePaginada.entidade == null) {\r\n this.entidadePaginada.entidade = [].concat(this._getEntidade());\r\n }\r\n\r\n const posicaoAnterior = this.entidadePaginada.posicao;\r\n\r\n switch (acao) {\r\n case 'primeiro':\r\n this.entidadePaginada.posicao = 1;\r\n break;\r\n case 'ultimo':\r\n this.entidadePaginada.posicao = this.entidadePaginada.total;\r\n break;\r\n case 'proximo':\r\n this.entidadePaginada.posicao++;\r\n break;\r\n case 'anterior':\r\n this.entidadePaginada.posicao--;\r\n break;\r\n default:\r\n this.entidadePaginada.posicao = 0;\r\n break;\r\n }\r\n\r\n this.setProgresso(true);\r\n\r\n this.servicoBind.listarPaginacao(this.entidadePaginada).subscribe(\r\n success => {\r\n this.setProgresso(false);\r\n\r\n if (success == null) {\r\n this._dialogErro.openDialog(\r\n 'Atenção!',\r\n 'Nenhum registro foi encontrado.'\r\n );\r\n this.setStatus(EStatus.novaPesquisa);\r\n return;\r\n }\r\n\r\n if (success.entidade == null) {\r\n this._databarService.resetForm(this.form, this.entidadePaginada);\r\n this.setStatus(EStatus.novaPesquisa);\r\n return;\r\n }\r\n\r\n this.setStatus(EStatus.dadosCarregados);\r\n\r\n if (!this.entidadePaginada.entidade) {\r\n this.entidadePaginada = success;\r\n } else {\r\n this.entidadePaginada.total = success.total;\r\n this.entidadePaginada.posicao = success.posicao;\r\n }\r\n\r\n this.form.patchValue(success.entidade[0]);\r\n\r\n this.setProgresso(false);\r\n\r\n this._databarService.desabilitarForm(this.form);\r\n },\r\n error => {\r\n console.error('erro paginação', error);\r\n this.setStatus(EStatus.dadosCarregados);\r\n this.entidadePaginada.posicao = posicaoAnterior;\r\n this.setProgresso(false);\r\n this._databarService.desabilitarForm(this.form);\r\n });\r\n }\r\n\r\n private setProgresso(progresso: boolean): void {\r\n this.emProgresso = this._databarService.definirProgresso(this.form, progresso);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { ErrorDialogComponent } from './error-dialog.component';\r\n\r\n\r\n@NgModule({\r\n declarations: [ErrorDialogComponent],\r\n imports: [\r\n MatDialogModule\r\n ],\r\n exports: [ErrorDialogComponent],\r\n entryComponents: [ErrorDialogComponent]\r\n})\r\nexport class ErrorDialogModule { }\r\n","import { NgModule } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatSidenavModule } from '@angular/material/sidenav';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { FlexLayoutModule } from '@angular/flex-layout';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { IcConfirmaDialogModule } from '@inovamobil/ic-confirma-dialog';\r\nimport { DataBarComponent } from './ic-data-bar.component';\r\nimport { ErrorDialogModule } from '../components/dialogs/error-dialog/error-dialog.module';\r\nimport { DatabarService } from './services/ic-databar.service';\r\nimport { IcmSnackBarModule } from '@inovamobil/icm-snackbar';\r\n\r\n@NgModule({\r\n declarations: [DataBarComponent],\r\n imports: [\r\n CommonModule,\r\n MatToolbarModule,\r\n MatListModule,\r\n MatSidenavModule,\r\n MatIconModule,\r\n MatProgressSpinnerModule,\r\n MatDividerModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n FlexLayoutModule,\r\n IcConfirmaDialogModule,\r\n ErrorDialogModule,\r\n IcmSnackBarModule\r\n ],\r\n exports: [DataBarComponent],\r\n providers: [DatabarService]\r\n})\r\nexport class DataBarModule { }\r\n"]}
1
+ {"version":3,"sources":["../../../projects/ic-databar-lib/src/lib/enum/estatus.ts","../../../projects/ic-databar-lib/src/lib/contrato/OnInitDataBar.ts","../../../projects/ic-databar-lib/src/lib/enum/eeventoclick.ts","../../../projects/ic-databar-lib/src/lib/contrato/DataBarConfigBotoesService.ts","../../../projects/ic-databar-lib/src/lib/services/ic-databar-event-click.service.ts","../../../projects/ic-databar-lib/src/components/dialogs/error-dialog/error-dialog.component.ts","../../../projects/ic-databar-lib/src/components/dialogs/error-dialog/service/error-dialog.service.ts","../../../projects/ic-databar-lib/src/lib/services/ic-databar.service.ts","../../../projects/ic-databar-lib/src/lib/services/ic-databar-reverter.service.ts","../../../projects/ic-databar-lib/src/lib/ic-data-bar.component.ts","../../../projects/ic-databar-lib/src/components/dialogs/error-dialog/error-dialog.module.ts","../../../projects/ic-databar-lib/src/lib/ic-data-bar.module.ts"],"names":["EStatus","OnInitDataBar","this","prototype","ngOnInit","onInit","servicoDataBarBind","status","novaPesquisa","statusChanged","statusDataBar","onStatusChanged","Object","defineProperty","inserindo","editando","removendo","Directive","EEventoClick","DataBarConfigBotoesService","desabilitarBotaoNovaPesquisa","args","_i","arguments","length","desabilitarBotaoReverter","desabilitarBotaoPesquisar","desabilitarBotaoEditar","desabilitarBotaoAdicionar","desabilitarBotaoRemover","desabilitarBotaoSalvar","desabilitarBotaoPrimeiro","desabilitarBotaoAnterior","desabilitarBotaoProximo","desabilitarBotaoUltimo","desabilitarBotaoModoTabela","exibirBotaoModoTabela","DatabarEventClickService","onEvent","emitir","evento","ErrorDialogComponent","dialogRef","data","mensagem","titulo","close","Component","selector","template","MatDialogRef","Inject","MAT_DIALOG_DATA","ErrorDialogService","dialog","openDialog","dialogConfig","MatDialogConfig","disableClose","autoFocus","minWidth","open","closeDialog","Injectable","providedIn","MatDialog","DatabarService","desabilitarForm","form","disable","emitEvent","onlySelf","habilitarForm","enable","resetForm","entidadePaginada","reset","entidade","posicao","total","emitirEventoClick","servico","eventDatabar","definirProgresso","progresso","IcDatabarReverterService","_statusAnterior","setDadosAnteriores","formularo","_entidadePaginadaAnterior","quantidade","_dadosAnterioresFormulario","getRawValue","restaurarDadosAnteriores","formulario","patchValue","DataBarComponent","_dialog","_dialogErro","_elementRef","_databarService","_snackBarService","disabled","EventEmitter","emProgresso","_servicoReverter","validarPropertsObrigatorias","setProgresso","_submeterFormularioOnEnter","observarSetStatus","ngOnDestroy","servicoBind","onClickEnter","unsubscribe","$setStatus","fecharSidenav","event","nativeElement","contains","target","drawer","invalid","_a","servicoConfiguracaoBotoes","dadosCarregados","executarAcao","pesquisando","_b","inserindoOuEditando","onClickReverter","_exibirDialogConfirmacaoReverter","onClickModoTabela","_emitirEventoClick","onClickNovaPesquisa","afterClickNovaPesquisa","value","setStatus","pesquisar","_setDadosAnteriores","concat","_getEntidade","_paginar","inserir","onClickInserir","_clickInserir","afterClickInserir","editar","onClickEditar","_clickEditar","afterClickEditar","remover","onClickRemover","_clickRemover","afterClickRemover","proximo","anterior","ultimo","primeiro","salvar","onClickSalvar","_inserir","_editar","_this","salvando","criar","pipe","finalize","afterClickSalvar","subscribe","success","abrirSnackBarSucesso","retornarServicoReverter","_reverter","statusAnterior","afterClickReverter","_resetarContadorPaginacao","Error","emit","valid","markAllAsTouched","_exibirDialogConfirmacao","_acaoCloseDialogConfirmacao","acaoMensagem","acaoOk","acaoCancelar","acao","posicaoAnterior","listarPaginacao","error","console","IcConfirmaDialogService","ElementRef","IcmSnackBarService","Input","Output","ViewChild","static","HostListener","NgModule","declarations","imports","MatDialogModule","exports","entryComponents","CommonModule","MatToolbarModule","MatListModule","MatSidenavModule","MatIconModule","MatProgressSpinnerModule","MatDividerModule","MatButtonModule","MatTooltipModule","FlexLayoutModule","IcConfirmaDialogModule","ErrorDialogModule","IcmSnackBarModule","providers"],"mappings":"mhDACA,IAAYA,GAAAA,EAAAA,EAAAA,UAAAA,EAAAA,QAAO,KACf,aAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,UAAA,YACAA,EAAA,gBAAA,mBACAA,EAAA,YAAA,cACAA,EAAA,aAAA,gBACAA,EAAA,SAAA,4BCDJ,SAAAC,IAMIC,KAAAF,QAA0BA,EAAAA,eAM1BC,EAAAE,UAAAC,SAAA,WACIF,KAAKG,SACLH,KAAKI,mBAAmBC,OAASP,EAAAA,QAAQQ,cAG7CP,EAAAE,UAAAM,cAAA,SAAcF,GACVL,KAAKI,mBAAmBC,OAASA,EACjCL,KAAKQ,cAAgBH,EACrBL,KAAKS,gBAAg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8jBAlBK6I,EAAAA,+BASAzI,SAnBL0I,EAAAA,kBAqBK7H,SAVA8H,EAAAA,2DAqBJC,EAAAA,oBAIAA,EAAAA,gCACAA,EAAAA,wBACAA,EAAAA,yCACAA,EAAAA,+BACAA,EAAAA,6BAIAC,EAAAA,uBAQAC,EAAAA,UAAS9K,KAAA,CAAC,SAAU,CAAE+K,QAAQ,2BAwB9BC,EAAAA,aAAYhL,KAAA,CAAC,iBAAkB,CAAC,oBCtErC,iCARCiL,EAAAA,SAAQjL,KAAA,CAAC,CACNkL,aAAc,CAAC9J,GACf+J,QAAS,CACLC,EAAAA,iBAEJC,QAAS,CAACjK,GACVkK,gBAAiB,CAAClK,aC2BtB,iCApBC6J,EAAAA,SAAQjL,KAAA,CAAC,CACNkL,aAAc,CAACvG,GACfwG,QAAS,CACLI,EAAAA,aACAC,EAAAA,iBACAC,EAAAA,cACAC,EAAAA,iBACAC,EAAAA,cACAC,EAAAA,yBACAC,EAAAA,iBACAC,EAAAA,gBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,uBACAC,EACAC,EAAAA,mBAEJd,QAAS,CAAC1G,GACVyH,UAAW,CAACvJ","sourcesContent":["\r\nexport enum EStatus {\r\n novaPesquisa = 'Nova pesquisa',\r\n inserindo = 'Inserindo',\r\n editando = 'Editando',\r\n removendo = 'Removendo',\r\n dadosCarregados = 'Dados carregados',\r\n pesquisando = 'Pesquisando',\r\n executarAcao = 'Executar ação',\r\n salvando = 'Salvando'\r\n}\r\n","import { IDataBarBindComponent } from './IDataBarBind';\r\nimport { Component, Directive } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { IDataEntidadePaginada } from './IDataEntidadePaginada';\r\nimport { IDataBarBindService } from './IDataBarService';\r\nimport { EStatus } from '../enum/estatus';\r\n\r\n@Directive()\r\nexport abstract class OnInitDataBar<T> implements IDataBarBindComponent<T> {\r\n form: FormGroup;\r\n entidadePaginada: IDataEntidadePaginada<T>;\r\n statusDataBar: EStatus;\r\n servicoDataBarBind: IDataBarBindService<T>;\r\n EStatus: typeof EStatus = EStatus;\r\n\r\n abstract onStatusChanged(status: EStatus): void;\r\n\r\n abstract onInit(): void;\r\n\r\n ngOnInit(): void {\r\n this.onInit();\r\n this.servicoDataBarBind.status = EStatus.novaPesquisa;\r\n }\r\n\r\n statusChanged(status: EStatus): void {\r\n this.servicoDataBarBind.status = status;\r\n this.statusDataBar = status;\r\n this.onStatusChanged(status);\r\n }\r\n\r\n public get inserindoOuEditando(): boolean {\r\n return this.statusDataBar === EStatus.inserindo ||\r\n this.statusDataBar === EStatus.editando;\r\n }\r\n\r\n public get inserindo(): boolean {\r\n return this.statusDataBar === EStatus.inserindo;\r\n }\r\n\r\n public get editando(): boolean {\r\n return this.statusDataBar === EStatus.editando;\r\n }\r\n\r\n public get editandoOuRemovendo(): boolean {\r\n return (this.statusDataBar === EStatus.editando || this.statusDataBar === EStatus.removendo);\r\n }\r\n}\r\n","export enum EEventoClick {\r\n onClickInserir = 'onInserir',\r\n afterClickInserir = 'afterClickInserir',\r\n onClickReverter = \"onReverter\",\r\n afterClickReverter = \"afterClickReverter\",\r\n onClickNovaPesquisa = 'onNovaPesquisa',\r\n afterClickNovaPesquisa = 'afterClickNovaPesquisa',\r\n onClickEditar = 'onEditar',\r\n afterClickEditar = 'afterClickEditar',\r\n onClickRemover = 'onRemover',\r\n afterClickRemover = 'afterClickRemover',\r\n onClickSalvar = 'onClickSalvar',\r\n afterClickSalvar = 'afterClickSalvar',\r\n onClickModoTabela= 'onClickModoTabela'\r\n}\r\n\r\n","export abstract class DataBarConfigBotoesService {\r\n desabilitarBotaoNovaPesquisa(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoReverter(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoPesquisar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoEditar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoAdicionar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoRemover(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoSalvar(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoPrimeiro(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoAnterior(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoProximo(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoUltimo(...args): boolean {\r\n return false;\r\n }\r\n\r\n desabilitarBotaoModoTabela(...args): boolean {\r\n return false;\r\n }\r\n\r\n exibirBotaoModoTabela(...args): boolean {\r\n return false;\r\n }\r\n}\r\n","import { EEventoClick } from '../enum/eeventoclick';\r\n\r\nexport class DatabarEventClickService {\r\n\r\n constructor(private onEvent: (event: EEventoClick) => void) {}\r\n \r\n emitir(evento: EEventoClick): void {\r\n this.onEvent(evento);\r\n }\r\n\r\n}\r\n","import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\r\nimport { Inject, Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'confirma-dialog',\r\n templateUrl: './view/error-dialog.html',\r\n styleUrls: ['./view/error-dialog.scss']\r\n})\r\nexport class ErrorDialogComponent {\r\n\r\n mensagem: string;\r\n titulo: string;\r\n\r\n constructor(\r\n private dialogRef: MatDialogRef<ErrorDialogComponent>,\r\n @Inject(MAT_DIALOG_DATA) data) {\r\n\r\n this.mensagem = data.mensagem;\r\n this.titulo = data.titulo;\r\n }\r\n\r\n close(): void {\r\n this.dialogRef.close();\r\n }\r\n}\r\n\r\n","import { MatDialogConfig, MatDialog } from '@angular/material/dialog';\r\nimport { Injectable } from '@angular/core';\r\n\r\nimport { ErrorDialogComponent } from '../error-dialog.component';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport abstract class ErrorDialogService {\r\n\r\n dialogRef: any;\r\n\r\n constructor(private dialog: MatDialog) { }\r\n\r\n openDialog(titulo: string, mensagem: string): void {\r\n const dialogConfig = new MatDialogConfig();\r\n dialogConfig.disableClose = true;\r\n dialogConfig.autoFocus = true;\r\n\r\n dialogConfig.data = {\r\n titulo: titulo,\r\n mensagem: mensagem\r\n };\r\n\r\n dialogConfig.minWidth = '300px';\r\n\r\n this.dialogRef = this.dialog.open(ErrorDialogComponent, dialogConfig);\r\n\r\n }\r\n\r\n closeDialog(): void {\r\n this.dialogRef.close();\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\n\r\nimport { IDataEntidadePaginada } from '../contrato/IDataEntidadePaginada';\r\nimport { IDatabarBindOnClickService, EEventoClick } from '../../public-api';\r\n\r\n@Injectable()\r\nexport class DatabarService {\r\n\r\n\r\n constructor() { }\r\n\r\n public desabilitarForm(form: FormGroup): void {\r\n form.disable({ emitEvent: false, onlySelf: true });\r\n }\r\n\r\n public habilitarForm(form: FormGroup): void {\r\n form.enable({ emitEvent: false, onlySelf: true });\r\n }\r\n\r\n public resetForm(form: FormGroup, entidadePaginada: IDataEntidadePaginada<any>): void {\r\n form.reset({ emitEvent: false, onlySelf: true });\r\n entidadePaginada.entidade = null;\r\n entidadePaginada.posicao = 0;\r\n entidadePaginada.total = 0;\r\n }\r\n\r\n public emitirEventoClick<T>(servico: IDatabarBindOnClickService<T>, evento: EEventoClick): void {\r\n if (servico.eventDatabar) {\r\n servico.eventDatabar.emitir(evento);\r\n }\r\n }\r\n\r\n definirProgresso(form: FormGroup, progresso: boolean): boolean {\r\n if (!form)\r\n return;\r\n\r\n if (progresso)\r\n this.desabilitarForm(form);\r\n else\r\n this.habilitarForm(form);\r\n\r\n return progresso;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { EStatus } from '../enum/estatus';\r\nimport { IDataEntidadePaginada } from '../contrato/IDataEntidadePaginada';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { IDataBarReverterService } from '../contrato/IDataBarReverterService';\r\n\r\n@Injectable()\r\nexport class IcDatabarReverterService<T> implements IDataBarReverterService<T>{\r\n\r\n private _statusAnterior: EStatus;\r\n private _dadosAnterioresFormulario: T;\r\n private _entidadePaginadaAnterior: IDataEntidadePaginada<T>;\r\n\r\n get statusAnterior(): EStatus {\r\n return this._statusAnterior;\r\n }\r\n\r\n public setDadosAnteriores(status: EStatus, formularo: FormGroup, entidadePaginada: IDataEntidadePaginada<T>): void {\r\n this._entidadePaginadaAnterior = {\r\n entidade: entidadePaginada.entidade,\r\n posicao: entidadePaginada.posicao,\r\n quantidade: entidadePaginada.quantidade,\r\n total: entidadePaginada.total\r\n } as IDataEntidadePaginada<T>;\r\n\r\n this._dadosAnterioresFormulario = formularo.getRawValue();\r\n this._statusAnterior = status;\r\n }\r\n\r\n public restaurarDadosAnteriores(formulario: FormGroup): IDataEntidadePaginada<T> {\r\n formulario.patchValue(this._dadosAnterioresFormulario);\r\n return this._entidadePaginadaAnterior;\r\n }\r\n\r\n}\r\n","import {\r\n Component,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n OnInit,\r\n HostListener,\r\n ElementRef,\r\n ViewChild,\r\n OnDestroy,\r\n} from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { MatDrawer } from '@angular/material/sidenav';\r\n\r\nimport { Subscription } from 'rxjs';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nimport { IcConfirmaDialogService } from '@inovamobil/ic-confirma-dialog';\r\nimport { IcmSnackBarService } from '@inovamobil/icm-snackbar';\r\n\r\nimport { IDataEntidadePaginada } from './contrato/IDataEntidadePaginada';\r\nimport { IDataBarBindService } from './contrato/IDataBarService';\r\nimport { EStatus } from './enum/estatus';\r\nimport { EEventoClick } from './enum/eeventoclick';\r\nimport { IDatabarBindOnClickService } from './contrato/IDataBarBindOnClickService';\r\nimport { IDatabarBindStatusService } from '../public-api';\r\nimport { ErrorDialogService } from '../components/dialogs/error-dialog/service/error-dialog.service';\r\nimport { ACAO_PAGINACAO } from './constants/ic-databar.constants';\r\nimport { DatabarService } from './services/ic-databar.service';\r\nimport { IcDatabarReverterService } from './services/ic-databar-reverter.service';\r\nimport { IDataBarReverterService } from './contrato/IDataBarReverterService';\r\nimport { DataBarConfigBotoesService } from './contrato/DataBarConfigBotoesService';\r\n\r\n@Component({\r\n selector: 'ic-data-bar',\r\n templateUrl: './view/ic-data-bar.component.html',\r\n styleUrls: ['./view/ic-data-bar.component.scss'],\r\n})\r\nexport class DataBarComponent<T> implements OnInit, OnDestroy {\r\n @Input() servicoBind:\r\n | IDataBarBindService<T>\r\n | IDatabarBindStatusService<T>\r\n | IDatabarBindOnClickService<T>;\r\n @Input() form: FormGroup;\r\n @Input() entidadePaginada: IDataEntidadePaginada<T>;\r\n @Input() disabled = false;\r\n @Input() servicoConfiguracaoBotoes: DataBarConfigBotoesService;\r\n @Input() set servicoReverter(servico: IDataBarReverterService<T>) {\r\n this._servicoReverter = servico;\r\n }\r\n\r\n @Output() statusChanged = new EventEmitter<EStatus>();\r\n\r\n public status: EStatus;\r\n public EStatus = EStatus;\r\n public emProgresso = false;\r\n private _servicoReverter: IDataBarReverterService<T>;\r\n private $setStatus: Subscription;\r\n\r\n @ViewChild('drawer', { static: false }) drawer: MatDrawer;\r\n\r\n constructor(\r\n private _dialog: IcConfirmaDialogService,\r\n private _dialogErro: ErrorDialogService,\r\n private _elementRef: ElementRef,\r\n private _databarService: DatabarService,\r\n private _snackBarService: IcmSnackBarService\r\n ) {}\r\n\r\n ngOnInit(): void {\r\n this.validarPropertsObrigatorias();\r\n this.setProgresso(false);\r\n this.novaPesquisa();\r\n this._submeterFormularioOnEnter();\r\n this.observarSetStatus();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n if (this.servicoBind.onClickEnter) this.servicoBind.onClickEnter.unsubscribe();\r\n\r\n if (this.$setStatus) this.$setStatus.unsubscribe();\r\n }\r\n\r\n @HostListener('document:click', ['$event'])\r\n fecharSidenav(event): void {\r\n if (this._elementRef.nativeElement.contains(event.target)) {\r\n return;\r\n }\r\n this.drawer.close();\r\n }\r\n\r\n get inserindoOuEditando(): boolean {\r\n return this.status === EStatus.inserindo || this.status === EStatus.editando;\r\n }\r\n\r\n get desabilitarBotaoModoTabela(): boolean {\r\n return (\r\n this.status == EStatus.inserindo ||\r\n this.status == EStatus.editando ||\r\n this.emProgresso ||\r\n this.form.invalid ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoModoTabela()\r\n );\r\n }\r\n\r\n get desabilitarBotaoPesquisar(): boolean {\r\n return (\r\n this.status == EStatus.inserindo ||\r\n this.status == EStatus.editando ||\r\n this.status == EStatus.dadosCarregados ||\r\n this.emProgresso ||\r\n this.form.invalid ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoPesquisar()\r\n );\r\n }\r\n\r\n get desabilitarBotaoReverter(): boolean {\r\n return (\r\n this.status == EStatus.novaPesquisa ||\r\n this.status == EStatus.executarAcao ||\r\n this.status == EStatus.dadosCarregados ||\r\n this.emProgresso ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoReverter()\r\n );\r\n }\r\n\r\n get desabilitarBotaoAdicionar(): boolean {\r\n return (\r\n this.status == EStatus.editando ||\r\n this.status == EStatus.inserindo ||\r\n this.emProgresso ||\r\n this.disabled ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoAdicionar()\r\n );\r\n }\r\n\r\n get desabilitarBotaoEditar(): boolean {\r\n return (\r\n this.status == EStatus.inserindo ||\r\n this.status == EStatus.novaPesquisa ||\r\n this.status == EStatus.executarAcao ||\r\n this.status == EStatus.pesquisando ||\r\n this.status == EStatus.editando ||\r\n this.emProgresso ||\r\n this.disabled ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoEditar()\r\n );\r\n }\r\n\r\n get desabilitarBotaoRemover(): boolean {\r\n return (\r\n !this.entidadePaginada?.entidade ||\r\n this.status != EStatus.dadosCarregados ||\r\n this.emProgresso ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoRemover()\r\n );\r\n }\r\n\r\n get desabilitarBotaoSalvar(): boolean {\r\n return (\r\n this.form?.invalid ||\r\n (this.status != EStatus.inserindo && this.status != EStatus.editando) ||\r\n this.emProgresso ||\r\n this.disabled ||\r\n this.servicoConfiguracaoBotoes?.desabilitarBotaoSalvar()\r\n );\r\n }\r\n\r\n get desabilitarBotoesPaginacaoRetroceder(): boolean {\r\n return (\r\n this.inserindoOuEditando ||\r\n this.entidadePaginada.posicao <= 1 ||\r\n this.emProgresso\r\n );\r\n }\r\n\r\n get desabilitarBotoesPaginacaoAvancar(): boolean {\r\n return (\r\n this.inserindoOuEditando ||\r\n this.entidadePaginada.posicao >= this.entidadePaginada.total ||\r\n this.emProgresso\r\n );\r\n }\r\n\r\n onClickReverter(): void {\r\n this._exibirDialogConfirmacaoReverter();\r\n }\r\n\r\n onClickModoTabela(): void {\r\n this._emitirEventoClick(EEventoClick.onClickModoTabela);\r\n }\r\n\r\n onClickNovaPesquisa(): void {\r\n this._emitirEventoClick(EEventoClick.onClickNovaPesquisa);\r\n this.novaPesquisa();\r\n this._emitirEventoClick(EEventoClick.afterClickNovaPesquisa);\r\n }\r\n\r\n novaPesquisa(): void {\r\n this._databarService.habilitarForm(this.form);\r\n this.form.reset({ emitEvent: false, onlySelf: true });\r\n this.entidadePaginada.entidade = this.form.value;\r\n this.entidadePaginada.posicao = 0;\r\n this.entidadePaginada.total = 0;\r\n this.setStatus(EStatus.novaPesquisa);\r\n }\r\n\r\n pesquisar(): void {\r\n if (this.form.invalid) {\r\n return;\r\n }\r\n\r\n this._setDadosAnteriores();\r\n this.setStatus(EStatus.pesquisando);\r\n this.entidadePaginada.entidade = [].concat(this._getEntidade());\r\n this._paginar();\r\n this.drawer.close();\r\n }\r\n\r\n inserir(): void {\r\n this._emitirEventoClick(EEventoClick.onClickInserir);\r\n this._clickInserir();\r\n this._emitirEventoClick(EEventoClick.afterClickInserir);\r\n }\r\n\r\n editar(): void {\r\n this._emitirEventoClick(EEventoClick.onClickEditar);\r\n this._clickEditar();\r\n this._emitirEventoClick(EEventoClick.afterClickEditar);\r\n }\r\n\r\n remover(): void {\r\n this._emitirEventoClick(EEventoClick.onClickRemover);\r\n this._clickRemover();\r\n this._emitirEventoClick(EEventoClick.afterClickRemover);\r\n }\r\n\r\n proximo(): void {\r\n this._paginar('proximo');\r\n }\r\n\r\n anterior(): void {\r\n this._paginar('anterior');\r\n }\r\n\r\n ultimo(): void {\r\n this._paginar('ultimo');\r\n }\r\n\r\n primeiro(): void {\r\n this._paginar('primeiro');\r\n }\r\n\r\n salvar(): void {\r\n this._emitirEventoClick(EEventoClick.onClickSalvar);\r\n\r\n switch (this.status) {\r\n case EStatus.inserindo:\r\n this._inserir();\r\n break;\r\n\r\n case EStatus.editando:\r\n this._editar();\r\n break;\r\n }\r\n }\r\n\r\n private _inserir(): void {\r\n this.setStatus(EStatus.salvando);\r\n this.setProgresso(true);\r\n this.servicoBind\r\n .criar()\r\n .pipe(\r\n finalize(() => {\r\n this._emitirEventoClick(EEventoClick.afterClickSalvar);\r\n })\r\n )\r\n .subscribe(\r\n (success) => {\r\n this.setProgresso(false);\r\n\r\n this._snackBarService.abrirSnackBarSucesso(\r\n 'Registro salvo com sucesso!'\r\n );\r\n\r\n this.form.patchValue(success);\r\n\r\n this.setStatus(EStatus.dadosCarregados);\r\n\r\n this.drawer.close();\r\n\r\n this._databarService.desabilitarForm(this.form);\r\n },\r\n () => {\r\n this.setProgresso(false);\r\n this.setStatus(EStatus.inserindo);\r\n }\r\n );\r\n }\r\n\r\n private _editar(): void {\r\n this.setStatus(EStatus.salvando);\r\n this.setProgresso(true);\r\n this.servicoBind\r\n .editar()\r\n .pipe(\r\n finalize(() => {\r\n this._emitirEventoClick(EEventoClick.afterClickSalvar);\r\n })\r\n )\r\n .subscribe(\r\n (success) => {\r\n this._snackBarService.abrirSnackBarSucesso(\r\n 'Registro editado com sucesso!'\r\n );\r\n\r\n this.form.patchValue(success);\r\n\r\n this.setProgresso(false);\r\n\r\n this.setStatus(EStatus.dadosCarregados);\r\n\r\n this._databarService.desabilitarForm(this.form);\r\n\r\n this.drawer.close();\r\n },\r\n () => {\r\n this.setProgresso(false);\r\n this.setStatus(EStatus.editando);\r\n }\r\n );\r\n }\r\n\r\n private observarSetStatus(): void {\r\n if ((this.servicoBind as IDatabarBindStatusService<T>).setStatus) {\r\n this.$setStatus = (\r\n this.servicoBind as IDatabarBindStatusService<T>\r\n ).setStatus.subscribe((status) => {\r\n switch (status) {\r\n case EStatus.editando:\r\n this.editar();\r\n this.emProgresso = false;\r\n break;\r\n case EStatus.inserindo:\r\n this.inserir();\r\n this.emProgresso = false;\r\n break;\r\n case EStatus.pesquisando:\r\n this.pesquisar();\r\n break;\r\n case EStatus.novaPesquisa:\r\n this.novaPesquisa();\r\n break;\r\n case EStatus.removendo:\r\n this.remover();\r\n break;\r\n case EStatus.dadosCarregados:\r\n this.status = EStatus.dadosCarregados;\r\n this.emProgresso = false;\r\n break;\r\n }\r\n });\r\n }\r\n }\r\n\r\n private retornarServicoReverter(): IDataBarReverterService<T> {\r\n if (this._servicoReverter == null)\r\n this._servicoReverter = new IcDatabarReverterService();\r\n\r\n return this._servicoReverter;\r\n }\r\n\r\n private _setDadosAnteriores(): void {\r\n this.retornarServicoReverter().setDadosAnteriores(\r\n this.status,\r\n this.form,\r\n this.entidadePaginada\r\n );\r\n }\r\n\r\n private _reverter(): void {\r\n this._emitirEventoClick(EEventoClick.onClickReverter);\r\n this.entidadePaginada = this.retornarServicoReverter().restaurarDadosAnteriores(\r\n this.form\r\n );\r\n const statusAnterior = this.retornarServicoReverter().statusAnterior;\r\n\r\n if (statusAnterior == EStatus.dadosCarregados)\r\n this._databarService.desabilitarForm(this.form);\r\n else this._databarService.habilitarForm(this.form);\r\n\r\n this.setStatus(statusAnterior);\r\n this._emitirEventoClick(EEventoClick.afterClickReverter);\r\n }\r\n\r\n private _resetarContadorPaginacao(): void {\r\n this.entidadePaginada.posicao = 0;\r\n this.entidadePaginada.total = 0;\r\n }\r\n\r\n private validarPropertsObrigatorias(): any {\r\n if (this.servicoBind == null) {\r\n throw new Error('É obrigatório ter um serviço de bind vinculado.');\r\n }\r\n\r\n if (this.entidadePaginada == null) {\r\n throw new Error('É obrigatório ter uma entidade paginada vinculada.');\r\n }\r\n }\r\n\r\n private setStatus(status: EStatus): void {\r\n if (!status) {\r\n return;\r\n }\r\n this.status = status;\r\n this.statusChanged.emit(this.status);\r\n }\r\n\r\n private _getEntidade(): T {\r\n const result = this.form.getRawValue() as T;\r\n return result;\r\n }\r\n\r\n private _submeterFormularioOnEnter(): void {\r\n if (!this.servicoBind.onClickEnter) return;\r\n this.servicoBind.onClickEnter.subscribe(() => {\r\n if (this.status === EStatus.novaPesquisa && this.form.valid) {\r\n this.pesquisar();\r\n }\r\n });\r\n }\r\n\r\n private _clickInserir(): void {\r\n this._setDadosAnteriores();\r\n this._resetarContadorPaginacao();\r\n this._databarService.habilitarForm(this.form);\r\n this.form.reset({ emitEvent: false, onlySelf: true });\r\n this.form.markAllAsTouched();\r\n this.drawer.close();\r\n this.setStatus(EStatus.inserindo);\r\n }\r\n\r\n private _clickEditar(): void {\r\n this._setDadosAnteriores();\r\n this._databarService.habilitarForm(this.form);\r\n\r\n this.form.markAllAsTouched();\r\n this.drawer.close();\r\n this.setStatus(EStatus.editando);\r\n }\r\n\r\n private _clickRemover(): void {\r\n this.setStatus(EStatus.removendo);\r\n this._exibirDialogConfirmacao();\r\n this.drawer.close();\r\n }\r\n\r\n private _emitirEventoClick(evento: EEventoClick): void {\r\n return this._databarService.emitirEventoClick<T>(\r\n this.servicoBind as IDatabarBindOnClickService<T>,\r\n evento\r\n );\r\n }\r\n\r\n private _acaoCloseDialogConfirmacao(): void {\r\n this._dialog.emProgresso = false;\r\n this._dialog.closeDialog();\r\n this.setStatus(EStatus.dadosCarregados);\r\n }\r\n\r\n private _exibirDialogConfirmacao(): void {\r\n this._dialog.acaoMensagem = 'Removendo registro...';\r\n this._dialog.acaoOk = () =>\r\n this.servicoBind.remover().subscribe(\r\n () => {\r\n this._dialog.closeDialog();\r\n this.novaPesquisa();\r\n this._dialog.emProgresso = false;\r\n this._snackBarService.abrirSnackBarSucesso('Removido com sucesso!');\r\n },\r\n () => this._acaoCloseDialogConfirmacao()\r\n );\r\n this._dialog.acaoCancelar = () => {\r\n this._acaoCloseDialogConfirmacao();\r\n };\r\n\r\n this._dialog.openDialog(\r\n 'Atenção!',\r\n 'Você realmente deseja excluir este registro?'\r\n );\r\n }\r\n\r\n private _exibirDialogConfirmacaoReverter(): void {\r\n this._dialog.acaoOk = () => {\r\n this._reverter();\r\n this._dialog.emProgresso = false;\r\n this._dialog.closeDialog();\r\n };\r\n\r\n this._dialog.acaoCancelar = () => {\r\n this._dialog.closeDialog();\r\n };\r\n\r\n this._dialog.openDialog(\r\n 'Atenção!',\r\n 'As alterações realizadas serão perdidas. Deseja continuar?'\r\n );\r\n }\r\n\r\n private _paginar(acao?: ACAO_PAGINACAO): void {\r\n this.setStatus(EStatus.pesquisando);\r\n\r\n if (this.entidadePaginada.entidade == null) {\r\n this.entidadePaginada.entidade = [].concat(this._getEntidade());\r\n }\r\n\r\n const posicaoAnterior = this.entidadePaginada.posicao;\r\n\r\n switch (acao) {\r\n case 'primeiro':\r\n this.entidadePaginada.posicao = 1;\r\n break;\r\n case 'ultimo':\r\n this.entidadePaginada.posicao = this.entidadePaginada.total;\r\n break;\r\n case 'proximo':\r\n this.entidadePaginada.posicao++;\r\n break;\r\n case 'anterior':\r\n this.entidadePaginada.posicao--;\r\n break;\r\n default:\r\n this.entidadePaginada.posicao = 0;\r\n break;\r\n }\r\n\r\n this.setProgresso(true);\r\n\r\n this.servicoBind.listarPaginacao(this.entidadePaginada).subscribe(\r\n (success) => {\r\n this.setProgresso(false);\r\n\r\n if (success == null) {\r\n this._dialogErro.openDialog(\r\n 'Atenção!',\r\n 'Nenhum registro foi encontrado.'\r\n );\r\n this.setStatus(EStatus.novaPesquisa);\r\n return;\r\n }\r\n\r\n if (success.entidade == null) {\r\n this._databarService.resetForm(this.form, this.entidadePaginada);\r\n this.setStatus(EStatus.novaPesquisa);\r\n return;\r\n }\r\n\r\n this.setStatus(EStatus.dadosCarregados);\r\n\r\n if (!this.entidadePaginada.entidade) {\r\n this.entidadePaginada = success;\r\n } else {\r\n this.entidadePaginada.total = success.total;\r\n this.entidadePaginada.posicao = success.posicao;\r\n }\r\n\r\n this.form.patchValue(success.entidade[0]);\r\n\r\n this.setProgresso(false);\r\n\r\n this._databarService.desabilitarForm(this.form);\r\n },\r\n (error) => {\r\n console.error('erro paginação', error);\r\n this.setStatus(EStatus.dadosCarregados);\r\n this.entidadePaginada.posicao = posicaoAnterior;\r\n this.setProgresso(false);\r\n this._databarService.desabilitarForm(this.form);\r\n }\r\n );\r\n }\r\n\r\n private setProgresso(progresso: boolean): void {\r\n this.emProgresso = this._databarService.definirProgresso(this.form, progresso);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { ErrorDialogComponent } from './error-dialog.component';\r\n\r\n\r\n@NgModule({\r\n declarations: [ErrorDialogComponent],\r\n imports: [\r\n MatDialogModule\r\n ],\r\n exports: [ErrorDialogComponent],\r\n entryComponents: [ErrorDialogComponent]\r\n})\r\nexport class ErrorDialogModule { }\r\n","import { NgModule } from '@angular/core';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatDividerModule } from '@angular/material/divider';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatSidenavModule } from '@angular/material/sidenav';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\nimport { FlexLayoutModule } from '@angular/flex-layout';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { IcConfirmaDialogModule } from '@inovamobil/ic-confirma-dialog';\r\nimport { DataBarComponent } from './ic-data-bar.component';\r\nimport { ErrorDialogModule } from '../components/dialogs/error-dialog/error-dialog.module';\r\nimport { DatabarService } from './services/ic-databar.service';\r\nimport { IcmSnackBarModule } from '@inovamobil/icm-snackbar';\r\n\r\n@NgModule({\r\n declarations: [DataBarComponent],\r\n imports: [\r\n CommonModule,\r\n MatToolbarModule,\r\n MatListModule,\r\n MatSidenavModule,\r\n MatIconModule,\r\n MatProgressSpinnerModule,\r\n MatDividerModule,\r\n MatButtonModule,\r\n MatTooltipModule,\r\n FlexLayoutModule,\r\n IcConfirmaDialogModule,\r\n ErrorDialogModule,\r\n IcmSnackBarModule\r\n ],\r\n exports: [DataBarComponent],\r\n providers: [DatabarService]\r\n})\r\nexport class DataBarModule { }\r\n"]}
@@ -13,11 +13,12 @@ export class ErrorDialogComponent {
13
13
  ErrorDialogComponent.decorators = [
14
14
  { type: Component, args: [{
15
15
  selector: 'confirma-dialog',
16
- template: "<h2 mat-dialog-title>{{titulo}}</h2>\r\n\r\n<mat-dialog-content>\r\n <p>{{mensagem}}</p>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions align=\"end\">\r\n <button class=\"mat-raised-button\" (click)=\"close()\">Ok</button>\r\n</mat-dialog-actions>"
16
+ template: "<h2 mat-dialog-title class=\"error__title\">{{titulo}}</h2>\r\n\r\n<mat-dialog-content>\r\n <p>{{mensagem}}</p>\r\n</mat-dialog-content>\r\n\r\n<mat-dialog-actions align=\"end\">\r\n <button class=\"mat-raised-button\" (click)=\"close()\">Ok</button>\r\n</mat-dialog-actions>\r\n",
17
+ styles: [".error__title{text-align:center}"]
17
18
  },] }
18
19
  ];
19
20
  ErrorDialogComponent.ctorParameters = () => [
20
21
  { type: MatDialogRef },
21
22
  { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
22
23
  ];
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJDOi9BV1MvQ29kZUNvbW1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b25lbnQ+LFxyXG4gICAgICAgIEBJbmplY3QoTUFUX0RJQUxPR19EQVRBKSBkYXRhKSB7XHJcblxyXG4gICAgICAgIHRoaXMubWVuc2FnZW0gPSBkYXRhLm1lbnNhZ2VtO1xyXG4gICAgICAgIHRoaXMudGl0dWxvID0gZGF0YS50aXR1bG87XHJcbiAgICB9XHJcblxyXG4gICAgY2xvc2UoKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5kaWFsb2dSZWYuY2xvc2UoKTtcclxuICAgIH1cclxufVxyXG5cclxuIl19
@@ -13,4 +13,4 @@ ErrorDialogModule.decorators = [
13
13
  entryComponents: [ErrorDialogComponent]
14
14
  },] }
15
15
  ];
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItZGlhbG9nLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJDOi9BV1MvQ29kZUNvbW1pdC9iaWJsaW90ZWNhLWFuZ3VsYXIvcHJvamVjdHMvaWMtZGF0YWJhci1saWIvc3JjLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9kaWFsb2dzL2Vycm9yLWRpYWxvZy9lcnJvci1kaWFsb2cubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBV2hFLE1BQU0sT0FBTyxpQkFBaUI7OztZQVI3QixRQUFRLFNBQUM7Z0JBQ04sWUFBWSxFQUFFLENBQUMsb0JBQW9CLENBQUM7Z0JBQ3BDLE9BQU8sRUFBRTtvQkFDTCxlQUFlO2lCQUNsQjtnQkFDRCxPQUFPLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQztnQkFDL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UM7QUFDM0QsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFXaEUsTUFBTSxPQUFPLGlCQUFpQjs7O1lBUjdCLFFBQVEsU0FBQztnQkFDTixZQUFZLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQztnQkFDcEMsT0FBTyxFQUFFO29CQUNMLGVBQWU7aUJBQ2xCO2dCQUNELE9BQU8sRUFBRSxDQUFDLG9CQUFvQixDQUFDO2dCQUMvQixlQUFlLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQzthQUMxQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcbmltcG9ydCB7IE1hdERpYWxvZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2RpYWxvZyc7XHJcbmltcG9ydCB7IEVycm9yRGlhbG9nQ29tcG9uZW50IH0gZnJvbSAnLi9lcnJvci1kaWFsb2cuY29tcG9uZW50JztcclxuXHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gICAgZGVjbGFyYXRpb25zOiBbRXJyb3JEaWFsb2dDb21wb25lbnRdLFxyXG4gICAgaW1wb3J0czogW1xyXG4gICAgICAgIE1hdERpYWxvZ01vZHVsZVxyXG4gICAgXSxcclxuICAgIGV4cG9ydHM6IFtFcnJvckRpYWxvZ0NvbXBvbmVudF0sXHJcbiAgICBlbnRyeUNvbXBvbmVudHM6IFtFcnJvckRpYWxvZ0NvbXBvbmVudF1cclxufSlcclxuZXhwb3J0IGNsYXNzIEVycm9yRGlhbG9nTW9kdWxlIHsgfVxyXG4iXX0=
@@ -31,4 +31,4 @@ ErrorDialogService.decorators = [
31
31
  ErrorDialogService.ctorParameters = () => [
32
32
  { type: MatDialog }
33
33
  ];
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItZGlhbG9nLnNlcnZ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HJcbiAgICAgICAgY29uc3QgZGlhbG9nQ29uZmlnID0gbmV3IE1hdERpYWxvZ0NvbmZpZygpO1xyXG4gICAgICAgIGRpYWxvZ0NvbmZpZy5kaXNhYmxlQ2xvc2UgPSB0cnVlO1xyXG4gICAgICAgIGRpYWxvZ0NvbmZpZy5hdXRvRm9jdXMgPSB0cnVlO1xyXG5cclxuICAgICAgICBkaWFsb2dDb25maWcuZGF0YSA9IHtcclxuICAgICAgICAgICAgdGl0dWxvOiB0aXR1bG8sXHJcbiAgICAgICAgICAgIG1lbnNhZ2VtOiBtZW5zYWdlbVxyXG4gICAgICAgIH07XHJcblxyXG4gICAgICAgIGRpYWxvZ0NvbmZpZy5taW5XaWR0aCA9ICczMDBweCc7XHJcblxyXG4gICAgICAgIHRoaXMuZGlhbG9nUmVmID0gdGhpcy5kaWFsb2cub3BlbihFcnJvckRpYWxvZ0NvbXBvbmVudCwgZGlhbG9nQ29uZmlnKTtcclxuXHJcbiAgICB9XHJcblxyXG4gICAgY2xvc2VEaWFsb2coKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5kaWFsb2dSZWYuY2xvc2UoKTtcclxuICAgIH1cclxufVxyXG4iXX0=
@@ -6,4 +6,4 @@ export { ErrorDialogComponent as ɵd } from './components/dialogs/error-dialog/e
6
6
  export { ErrorDialogModule as ɵc } from './components/dialogs/error-dialog/error-dialog.module';
7
7
  export { ErrorDialogService as ɵa } from './components/dialogs/error-dialog/service/error-dialog.service';
8
8
  export { DatabarService as ɵb } from './lib/services/ic-databar.service';
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5vdmFtb2JpbC1pYy1kYXRhYmFyLWxpYi5qcyIsInNvdXJjZVJvb3QiOiJDOi9BV1MvQ29kZUNvbW1pdC9iaWJsaW90ZWNhLWFuZ3VsYXIvcHJvamVjdHMvaWMtZGF0YWJhci1saWIvc3JjLyIsInNvdXJjZXMiOlsiaW5vdmFtb2JpbC1pYy1k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aWFsb2dzL2Vycm9yLWRpYWxvZy9zZXJ2aWNlL2Vycm9yLWRpYWxvZy5zZXJ2aWNlJztcbmV4cG9ydCB7RGF0YWJhclNlcnZpY2UgYXMgybVifSBmcm9tICcuL2xpYi9zZXJ2aWNlcy9pYy1kYXRhYmFyLnNlcnZpY2UnOyJdfQ==
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWMtZGF0YWJhci5jb25zdGFudHMuanMiLCJzb3VyY2VSb290IjoiQzovQVdTL0NvZGVDb21taXQvYmlibGlvdGVjYS1hbmd1bGFyL3Byb2plY3RzL2ljLWRhdGFiYXItbGliL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9jb25zdGFudHMvaWMtZGF0YWJhci5jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIEFDQU9fUEFHSU5BQ0FPID0gJ3ByaW1laXJvJyB8ICd1bHRpbW8nIHwgJ3Byb3hpbW8nIHwgJ2FudGVyaW9yJztcclxuIl19
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWMtZGF0YWJhci5jb25zdGFudHMuanMiLCJzb3VyY2VSb290IjoiQzovQVdTL2NvZGVjb21pdC9iaWJsaW90ZWNhLWFuZ3VsYXIvcHJvamVjdHMvaWMtZGF0YWJhci1saWIvc3JjLyIsInNvdXJjZXMiOlsibGliL2NvbnN0YW50cy9pYy1kYXRhYmFyLmNvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgQUNBT19QQUdJTkFDQU8gPSAncHJpbWVpcm8nIHwgJ3VsdGltbycgfCAncHJveGltbycgfCAnYW50ZXJpb3InO1xyXG4iXX0=
@@ -39,4 +39,4 @@ export class DataBarConfigBotoesService {
39
39
  return false;
40
40
  }
41
41
  }
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0YUJhckNvbmZpZ0JvdG9lc1NlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiQzovQVdTL0NvZGVDb21taXQvYmlibGlvdGVjYS1hbmd1bGFyL3Byb2plY3RzL2ljLWRhdGFiYXItbGliL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9jb250cmF0by9EYXRhQmFyQ29uZmlnQm90b2VzU2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQWdCLDBCQUEwQjtJQUM1Qyw0QkFBNEIsQ0FBQyxHQUFHLElBQUk7UUFDaEMsT0FBTyxLQUFLLENBQUM7SUFDakIsQ0FBQztJQUVELHdCQUF3QixDQUFDLEdBQUcsSUFBSTtRQUM1QixPQUFPLEtBQUssQ0FBQztJQUNqQixDQUFDO0lBRUQseUJBQXlCLENBQUMsR0FBRyxJQUFJO1FBQzdCLE9BQU8sS0FBSyxDQUFDO0lBQ2pCLENBQUM7SUFFRCxzQkFBc0IsQ0FBQyxHQUFHLElBQUk7UUFDMUIsT0FBTyxLQUFLLENBQUM7SUFDakIsQ0FBQztJQUVELHlCQUF5QixDQUFDLEdBQUcsSUFBSTtRQUM3QixPQUFPLEtBQUssQ0FBQztJQUNqQixDQUFDO0lBRUQsdUJBQXVCLENBQUMsR0FBRyxJQUFJO1FBQzNCLE9BQU8sS0FBSyxDQUFDO0lBQ2pCLENBQUM7SUFFRCxzQkFBc0IsQ0FBQyxHQUFHLElBQUk7UUFDMUIsT0FBTyxLQUFLLENBQUM7SUFDakIsQ0FBQztJQUVELHdCQUF3QixDQUFDLEdBQUcsSUFBSTtRQUM1QixPQUFPLEtBQUssQ0FBQztJQUNqQixDQUFDO0lBRUQsd0JBQXdCLENBQUMsR0FBRyxJQUFJO1FBQzVCLE9BQU8sS0FBSyxDQ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mdzKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIGRlc2FiaWxpdGFyQm90YW9TYWx2YXIoLi4uYXJncyk6IGJvb2xlYW4ge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIH1cclxuXHJcbiAgICBkZXNhYmlsaXRhckJvdGFvUHJpbWVpcm8oLi4uYXJncyk6IGJvb2xlYW4ge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIH1cclxuXHJcbiAgICBkZXNhYmlsaXRhckJvdGFvQW50ZXJpb3IoLi4uYXJncyk6IGJvb2xlYW4ge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIH1cclxuXHJcbiAgICBkZXNhYmlsaXRhckJvdGFvUHJveGltbyguLi5hcmdzKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIGRlc2FiaWxpdGFyQm90YW9VbHRpbW8oLi4uYXJncyk6IGJvb2xlYW4ge1xyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIH1cclxuXHJcbiAgICBkZXNhYmlsaXRhckJvdGFvTW9kb1RhYmVsYSguLi5hcmdzKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIGV4aWJpckJvdGFvTW9kb1RhYmVsYSguLi5hcmdzKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
42
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGF0YUJhckNvbmZpZ0JvdG9lc1NlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiQzovQVdTL2NvZGVjb21pdC9iaWJsaW90ZWNhLWFuZ3VsYXIvcHJvamVjdHMvaWMtZGF0YWJ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ltZWlybyguLi5hcmdzKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIGRlc2FiaWxpdGFyQm90YW9BbnRlcmlvciguLi5hcmdzKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIGRlc2FiaWxpdGFyQm90YW9Qcm94aW1vKC4uLmFyZ3MpOiBib29sZWFuIHtcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICB9XHJcblxyXG4gICAgZGVzYWJpbGl0YXJCb3Rhb1VsdGltbyguLi5hcmdzKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgfVxyXG5cclxuICAgIGRlc2FiaWxpdGFyQm90YW9Nb2RvVGFiZWxhKC4uLmFyZ3MpOiBib29sZWFuIHtcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICB9XHJcblxyXG4gICAgZXhpYmlyQm90YW9Nb2RvVGFiZWxhKC4uLmFyZ3MpOiBib29sZWFuIHtcclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICB9XHJcbn1cclxuIl19
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSURhdGFCYXJCaW5kLmpzIiwic291cmNlUm9vdCI6IkM6L0FXUy9Db2RlQ29tbWl0L2JpYmxpb3RlY2EtYW5ndWxhci9wcm9qZWN0cy9pYy1kYXRhYmFyLWxpYi9zcmMvIiwic291cmNlcyI6WyJsaWIvY29udHJhdG8vSURhdGFCYXJCaW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgRm9ybUdyb3Vw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blxyXG5pbXBvcnQgeyBJRGF0YUVudGlkYWRlUGFnaW5hZGEgfSBmcm9tICcuL0lEYXRhRW50aWRhZGVQYWdpbmFkYSc7XHJcbmltcG9ydCB7IElEYXRhQmFyQmluZFNlcnZpY2UgfSBmcm9tICcuL0lEYXRhQmFyU2VydmljZSc7XHJcbmltcG9ydCB7IEVTdGF0dXMgfSBmcm9tICcuLi9lbnVtL2VzdGF0dXMnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJRGF0YUJhckJpbmRDb21wb25lbnQ8VD4gZXh0ZW5kcyBPbkluaXQge1xyXG4gICAgZm9ybTogRm9ybUdyb3VwO1xyXG4gICAgZW50aWRhZGVQYWdpbmFkYTogSURhdGFFbnRpZGFkZVBhZ2luYWRhPFQ+O1xyXG4gICAgc3RhdHVzRGF0YUJhcjogRVN0YXR1cztcclxuICAgIHNlcnZpY29EYXRhQmFyQmluZDogSURhdGFCYXJCaW5kU2VydmljZTxUPjtcclxuICAgIFxyXG4gICAgc3RhdHVzQ2hhbmdlZChzdGF0dXM6IEVTdGF0dXMpOiB2b2lkO1xyXG59XHJcbiJdfQ==
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSURhdGFCYXJCaW5kT25DbGlja1NlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiQzovQVdTL0NvZGVDb21taXQvYmlibGlvdGVjYS1hbmd1bGFyL3Byb2plY3RzL2ljLWRhdGFiYXItbGliL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9jb250cmF0by9JRGF0YUJhckJpbmRPbkNsaWNrU2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSURhdGFCYXJCaW5kU2VydmljZSB9IGZyb20gJy4vSURhdGFCYXJTZXJ2aWNlJztcclxuaW1wb3J0IHsgRGF0YWJhckV2ZW50Q2xpY2tTZXJ2aWNlIH0gZnJvbSAnLi4vc2VydmljZXMvaWMtZGF0YWJhci1ldmVudC1jbGljay5zZXJ2aWNlJztcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSURhdGFiYXJCaW5kT25DbGlja1NlcnZpY2U8VD4gZXh0ZW5kcyBJRGF0YUJhckJpbmRTZXJ2aWNlPFQ+e1xyXG4gIGV2ZW50RGF0YWJhcjogRGF0YWJhckV2ZW50Q2xpY2tTZXJ2aWNlO1xyXG59XHJcbiJdfQ==
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSURhdGFCYXJCaW5kT25DbGlja1NlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiQzovQVdTL2NvZGVjb21pdC9iaWJsaW90ZWNhLWFuZ3VsYXIvcHJvamVjdHMvaWMtZGF0YWJhci1saWIvc3JjLyIsInNvdXJjZXMiOlsibGliL2NvbnRyYXRvL0lEYXRhQmFyQmluZE9uQ2xpY2tTZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJRGF0YUJhckJpbmRTZXJ2aWNlIH0gZnJvbSAnLi9JRGF0YUJhclNlcnZpY2UnO1xyXG5pbXBvcnQgeyBEYXRhYmFyRXZlbnRDbGlja1NlcnZpY2UgfSBmcm9tICcuLi9zZXJ2aWNlcy9pYy1kYXRhYmFyLWV2ZW50LWNsaWNrLnNlcnZpY2UnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJRGF0YWJhckJpbmRPbkNsaWNrU2VydmljZTxUPiBleHRlbmRzIElEYXRhQmFyQmluZFNlcnZpY2U8VD57XHJcbiAgZXZlbnREYXRhYmFyOiBEYXRhYmFyRXZlbnRDbGlja1NlcnZpY2U7XHJcbn1cclxuIl19
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uI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cmNlUm9vdCI6IkM6L0FXUy9Db2RlQ29tbWl0L2JpYmxpb3RlY2EtYW5ndWxhci9wcm9qZWN0cy9pYy1kYXRhYmFyLWxpYi9zcmMvIiwic291cmNlcyI6WyJsaWIvY29udHJhdG8vSURhdGFFbnRpZGFkZVBhZ2luYWRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElEYXRhRW50aWRhZGVQYWdpbmFkYTxUPiB7XHJcbiAgICB0b3RhbDogbnVtYmVyO1xyXG4gICAgcG9zaWNhbzogbnVtYmVyO1xyXG4gICAgZW50aWRhZGU6IFRbXTtcclxuICAgIHF1YW50aWRhZGU6IG51bWJlcjtcclxufVxyXG4iXX0=
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSURhdGFFbnRpZGFkZVBhZ2luYWRhLmpzIiwic291cmNlUm9vdCI6IkM6L0FXUy9jb2RlY29taXQvYmlibGlvdGVjYS1hbmd1bGFyL3Byb2plY3RzL2ljLWRhdGFiYXItbGliL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9jb250cmF0by9JRGF0YUVudGlkYWRlUGFnaW5hZGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSURhdGFFbnRpZGFkZVBhZ2luYWRhPFQ+IHtcclxuICAgIHRvdGFsOiBudW1iZXI7XHJcbiAgICBwb3NpY2FvOiBudW1iZXI7XHJcbiAgICBlbnRpZGFkZTogVFtdO1xyXG4gICAgcXVhbnRpZGFkZTogbnVtYmVyO1xyXG59XHJcbiJdfQ==