@main-class/componentes 1.18.7 → 1.19.1
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.
- package/arquivo/index.d.ts +6 -4
- package/arquivo/main-class-componentes-arquivo.d.ts +4 -0
- package/arquivo/main-class-componentes-arquivo.metadata.json +1 -0
- package/arquivo/package.json +11 -0
- package/arquivo/{download-arquivo.directive.d.ts → src/download-arquivo.directive.d.ts} +1 -1
- package/{core/imagem → arquivo/src}/imagem.directive.d.ts +1 -1
- package/arquivo/{preview-arquivo → src/preview-arquivo}/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +1 -1
- package/arquivo/{preview-arquivo → src/preview-arquivo}/preview-arquivo.component.d.ts +1 -1
- package/bundles/main-class-componentes-arquivo.umd.js +687 -0
- package/bundles/main-class-componentes-arquivo.umd.js.map +1 -0
- package/bundles/main-class-componentes-arquivo.umd.min.js +16 -0
- package/bundles/main-class-componentes-arquivo.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-core.umd.js +252 -0
- package/bundles/main-class-componentes-core.umd.js.map +1 -0
- package/bundles/main-class-componentes-core.umd.min.js +2 -0
- package/bundles/main-class-componentes-core.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-crud.umd.js +543 -0
- package/bundles/main-class-componentes-crud.umd.js.map +1 -0
- package/bundles/main-class-componentes-crud.umd.min.js +16 -0
- package/bundles/main-class-componentes-crud.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-date.umd.js +185 -0
- package/bundles/main-class-componentes-date.umd.js.map +1 -0
- package/bundles/main-class-componentes-date.umd.min.js +2 -0
- package/bundles/main-class-componentes-date.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-dialog.umd.js +206 -0
- package/bundles/main-class-componentes-dialog.umd.js.map +1 -0
- package/bundles/main-class-componentes-dialog.umd.min.js +2 -0
- package/bundles/main-class-componentes-dialog.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-form.umd.js +211 -0
- package/bundles/main-class-componentes-form.umd.js.map +1 -0
- package/bundles/main-class-componentes-form.umd.min.js +2 -0
- package/bundles/main-class-componentes-form.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-input.umd.js +2244 -0
- package/bundles/main-class-componentes-input.umd.js.map +1 -0
- package/bundles/main-class-componentes-input.umd.min.js +17 -0
- package/bundles/main-class-componentes-input.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-loader.umd.js +233 -0
- package/bundles/main-class-componentes-loader.umd.js.map +1 -0
- package/bundles/main-class-componentes-loader.umd.min.js +2 -0
- package/bundles/main-class-componentes-loader.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-misc.umd.js +1122 -0
- package/bundles/main-class-componentes-misc.umd.js.map +1 -0
- package/bundles/main-class-componentes-misc.umd.min.js +16 -0
- package/bundles/main-class-componentes-misc.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-model.umd.js +196 -0
- package/bundles/main-class-componentes-model.umd.js.map +1 -0
- package/bundles/main-class-componentes-model.umd.min.js +2 -0
- package/bundles/main-class-componentes-model.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-pipe.umd.js +55 -0
- package/bundles/main-class-componentes-pipe.umd.js.map +1 -0
- package/bundles/main-class-componentes-pipe.umd.min.js +2 -0
- package/bundles/main-class-componentes-pipe.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-scroll.umd.js +106 -0
- package/bundles/main-class-componentes-scroll.umd.js.map +1 -0
- package/bundles/main-class-componentes-scroll.umd.min.js +2 -0
- package/bundles/main-class-componentes-scroll.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-table.umd.js +787 -0
- package/bundles/main-class-componentes-table.umd.js.map +1 -0
- package/bundles/main-class-componentes-table.umd.min.js +17 -0
- package/bundles/main-class-componentes-table.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-util.umd.js +31 -0
- package/bundles/main-class-componentes-util.umd.js.map +1 -0
- package/bundles/main-class-componentes-util.umd.min.js +2 -0
- package/bundles/main-class-componentes-util.umd.min.js.map +1 -0
- package/bundles/main-class-componentes.umd.js +13 -5512
- package/bundles/main-class-componentes.umd.js.map +1 -1
- package/bundles/main-class-componentes.umd.min.js +1 -1
- package/bundles/main-class-componentes.umd.min.js.map +1 -1
- package/core/index.d.ts +5 -14
- package/core/main-class-componentes-core.d.ts +4 -0
- package/core/main-class-componentes-core.metadata.json +1 -0
- package/core/package.json +11 -0
- package/core/src/core.module.d.ts +4 -0
- package/core/{mensageria → src/mensageria}/mensageria.service.d.ts +1 -2
- package/crud/index.d.ts +4 -5
- package/crud/main-class-componentes-crud.d.ts +4 -0
- package/crud/main-class-componentes-crud.metadata.json +1 -0
- package/crud/package.json +11 -0
- package/crud/{abstract-consulta-component.d.ts → src/abstract-consulta-component.d.ts} +3 -2
- package/crud/{abstract-consulta-paginada-component.d.ts → src/abstract-consulta-paginada-component.d.ts} +3 -2
- package/crud/{abstract-edicao-component.d.ts → src/abstract-edicao-component.d.ts} +2 -1
- package/crud/{abstract-edicao-modal-component.d.ts → src/abstract-edicao-modal-component.d.ts} +3 -1
- package/date/index.d.ts +3 -3
- package/date/main-class-componentes-date.d.ts +4 -0
- package/date/main-class-componentes-date.metadata.json +1 -0
- package/date/package.json +11 -0
- package/dialog/index.d.ts +4 -0
- package/dialog/main-class-componentes-dialog.d.ts +4 -0
- package/dialog/main-class-componentes-dialog.metadata.json +1 -0
- package/dialog/package.json +11 -0
- package/dialog/src/dialog.module.d.ts +2 -0
- package/esm2015/arquivo/index.js +7 -5
- package/esm2015/arquivo/main-class-componentes-arquivo.js +5 -0
- package/esm2015/arquivo/src/arquivo-manager.service.js +3 -0
- package/esm2015/arquivo/src/arquivo.module.js +30 -0
- package/esm2015/arquivo/src/download-arquivo.directive.js +44 -0
- package/esm2015/arquivo/src/imagem.directive.js +80 -0
- package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +56 -0
- package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +136 -0
- package/esm2015/core/index.js +6 -15
- package/esm2015/core/main-class-componentes-core.js +5 -0
- package/esm2015/core/src/core.module.js +27 -0
- package/esm2015/core/src/criptografia/criptografia.service.js +13 -0
- package/esm2015/core/src/mensageria/mensageria.service.js +48 -0
- package/esm2015/core/src/mobile/mobile.service.js +45 -0
- package/esm2015/core/src/validator/valida-modulo11.service.js +92 -0
- package/esm2015/crud/index.js +5 -6
- package/esm2015/crud/main-class-componentes-crud.js +5 -0
- package/esm2015/crud/src/abstract-consulta-component.js +60 -0
- package/esm2015/crud/src/abstract-consulta-paginada-component.js +48 -0
- package/esm2015/crud/src/abstract-edicao-component.js +29 -0
- package/esm2015/crud/src/abstract-edicao-modal-component.js +24 -0
- package/esm2015/date/index.js +4 -4
- package/esm2015/date/main-class-componentes-date.js +5 -0
- package/esm2015/date/src/date.module.js +19 -0
- package/esm2015/date/src/validator/data-validator.directive.js +97 -0
- package/esm2015/date/src/validator/futuro.directive.js +26 -0
- package/esm2015/dialog/index.js +5 -0
- package/esm2015/dialog/main-class-componentes-dialog.js +5 -0
- package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +40 -0
- package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +59 -0
- package/esm2015/dialog/src/dialog.module.js +28 -0
- package/esm2015/dialog/src/dialog.service.js +55 -0
- package/esm2015/form/index.js +5 -5
- package/esm2015/form/main-class-componentes-form.js +5 -0
- package/esm2015/form/src/form.component.js +103 -0
- package/esm2015/form/src/form.module.js +25 -0
- package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +31 -0
- package/esm2015/form/src/single-click.directive.js +35 -0
- package/esm2015/input/index.js +22 -22
- package/esm2015/input/main-class-componentes-input.js +6 -0
- package/esm2015/input/src/abstract-mat-form-field-control.js +110 -0
- package/esm2015/input/src/input-datetime/input-datetime.component.js +114 -0
- package/esm2015/input/{input-datetime → src/input-datetime}/input-datetime.module.js +3 -3
- package/esm2015/input/src/input-fileupload/input-fileupload.component.js +324 -0
- package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +34 -0
- package/esm2015/input/src/input-fileupload/input-fileupload.module.js +34 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +22 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +66 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +23 -0
- package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +36 -0
- package/esm2015/input/src/option-checkbox/node-pool.js +93 -0
- package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +71 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.component.js +59 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.module.js +23 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.service.js +52 -0
- package/esm2015/input/src/option-checkbox/option-node.js +24 -0
- package/esm2015/input/src/select-chips/select-chips.component.js +177 -0
- package/esm2015/input/src/select-chips/select-chips.module.js +25 -0
- package/esm2015/input/src/select-item/select-item.component.js +20 -0
- package/esm2015/input/src/select-item/select-item.module.js +15 -0
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +150 -0
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +21 -0
- package/esm2015/input/src/select-radio/select-radio.component.js +124 -0
- package/esm2015/input/src/select-radio/select-radio.module.js +21 -0
- package/esm2015/loader/index.js +4 -0
- package/esm2015/loader/main-class-componentes-loader.js +5 -0
- package/esm2015/loader/src/loader.component.js +112 -0
- package/esm2015/loader/src/loader.module.js +21 -0
- package/esm2015/loader/src/loader.service.js +70 -0
- package/esm2015/misc/index.js +27 -27
- package/esm2015/misc/main-class-componentes-misc.js +5 -0
- package/esm2015/misc/src/cnpj/cnpj-model.directive.js +13 -0
- package/esm2015/misc/src/cnpj/cnpj.directive.js +31 -0
- package/esm2015/misc/src/cnpj/cnpj.module.js +19 -0
- package/esm2015/misc/src/cnpj/cnpjs.pipe.js +15 -0
- package/esm2015/misc/src/cpf/cpf-model.directive.js +13 -0
- package/esm2015/misc/src/cpf/cpf.directive.js +31 -0
- package/esm2015/misc/src/cpf/cpf.module.js +19 -0
- package/esm2015/misc/src/cpf/cpf.pipe.js +15 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +25 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +32 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +19 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +18 -0
- package/esm2015/misc/{info → src/info}/info.component.js +1 -1
- package/esm2015/misc/src/info/info.module.js +17 -0
- package/esm2015/misc/src/monetario/monetario-mask.js +34 -0
- package/esm2015/misc/src/monetario/monetario-model.directive.js +124 -0
- package/esm2015/misc/src/monetario/monetario.module.js +16 -0
- package/esm2015/misc/src/monetario/monetario.pipe.js +13 -0
- package/esm2015/misc/src/porcentagem/porcentagem-mask.js +34 -0
- package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +99 -0
- package/esm2015/misc/src/porcentagem/porcentagem.module.js +16 -0
- package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +13 -0
- package/esm2015/misc/src/telefone/telefone-model.directive.js +25 -0
- package/esm2015/misc/src/telefone/telefone.module.js +18 -0
- package/esm2015/misc/src/telefone/telefone.pipe.js +33 -0
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +23 -0
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +15 -0
- package/esm2015/model/index.js +3 -0
- package/esm2015/model/main-class-componentes-model.js +5 -0
- package/esm2015/model/src/masked-model.directive.js +149 -0
- package/esm2015/model/src/model.module.js +19 -0
- package/esm2015/pipe/index.js +3 -0
- package/esm2015/pipe/main-class-componentes-pipe.js +5 -0
- package/esm2015/pipe/src/nome-resumido.pipe.js +16 -0
- package/esm2015/pipe/src/pipe.module.js +16 -0
- package/esm2015/public-api.js +2 -11
- package/esm2015/scroll/index.js +3 -3
- package/esm2015/scroll/main-class-componentes-scroll.js +5 -0
- package/esm2015/scroll/src/scroll-container/scroll-container.component.js +69 -0
- package/esm2015/scroll/src/scroll.module.js +17 -0
- package/esm2015/table/index.js +12 -12
- package/esm2015/table/main-class-componentes-table.js +6 -0
- package/esm2015/table/src/column/column-cell.directive.js +15 -0
- package/esm2015/table/src/column/column-footer.directive.js +15 -0
- package/esm2015/table/src/column/column-header.directive.js +15 -0
- package/esm2015/table/src/column/column.directive.js +28 -0
- package/esm2015/table/src/infinite-table/infinite-table.component.js +92 -0
- package/esm2015/table/src/paginated-table/paginated-table.component.js +43 -0
- package/esm2015/table/{paginator → src/paginator}/paginator.component.js +1 -1
- package/esm2015/table/src/paginator-i18n.js +23 -0
- package/esm2015/table/src/table/table.component.js +119 -0
- package/esm2015/table/src/table.module.js +74 -0
- package/esm2015/table/src/td/td.component.js +19 -0
- package/esm2015/table/src/th/th.component.js +19 -0
- package/esm2015/util/index.js +2 -2
- package/esm2015/util/main-class-componentes-util.js +5 -0
- package/esm2015/util/src/string.util.js +12 -0
- package/fesm2015/main-class-componentes-arquivo.js +338 -0
- package/fesm2015/main-class-componentes-arquivo.js.map +1 -0
- package/fesm2015/main-class-componentes-core.js +219 -0
- package/fesm2015/main-class-componentes-core.js.map +1 -0
- package/fesm2015/main-class-componentes-crud.js +162 -0
- package/fesm2015/main-class-componentes-crud.js.map +1 -0
- package/fesm2015/main-class-componentes-date.js +143 -0
- package/fesm2015/main-class-componentes-date.js.map +1 -0
- package/fesm2015/main-class-componentes-dialog.js +177 -0
- package/fesm2015/main-class-componentes-dialog.js.map +1 -0
- package/fesm2015/main-class-componentes-form.js +191 -0
- package/fesm2015/main-class-componentes-form.js.map +1 -0
- package/fesm2015/main-class-componentes-input.js +1604 -0
- package/fesm2015/main-class-componentes-input.js.map +1 -0
- package/fesm2015/main-class-componentes-loader.js +206 -0
- package/fesm2015/main-class-componentes-loader.js.map +1 -0
- package/fesm2015/main-class-componentes-misc.js +688 -0
- package/fesm2015/main-class-componentes-misc.js.map +1 -0
- package/fesm2015/main-class-componentes-model.js +173 -0
- package/fesm2015/main-class-componentes-model.js.map +1 -0
- package/fesm2015/main-class-componentes-pipe.js +37 -0
- package/fesm2015/main-class-componentes-pipe.js.map +1 -0
- package/fesm2015/main-class-componentes-scroll.js +91 -0
- package/fesm2015/main-class-componentes-scroll.js.map +1 -0
- package/fesm2015/main-class-componentes-table.js +446 -0
- package/fesm2015/main-class-componentes-table.js.map +1 -0
- package/fesm2015/main-class-componentes-util.js +18 -0
- package/fesm2015/main-class-componentes-util.js.map +1 -0
- package/fesm2015/main-class-componentes.js +1 -4309
- package/fesm2015/main-class-componentes.js.map +1 -1
- package/form/index.d.ts +4 -4
- package/form/main-class-componentes-form.d.ts +4 -0
- package/form/main-class-componentes-form.metadata.json +1 -0
- package/form/package.json +11 -0
- package/input/index.d.ts +21 -21
- package/input/main-class-componentes-input.d.ts +5 -0
- package/input/main-class-componentes-input.metadata.json +1 -0
- package/input/package.json +11 -0
- package/input/{input-fileupload → src/input-fileupload}/input-fileupload.component.d.ts +2 -2
- package/loader/index.d.ts +3 -0
- package/loader/main-class-componentes-loader.d.ts +4 -0
- package/loader/main-class-componentes-loader.metadata.json +1 -0
- package/loader/package.json +11 -0
- package/{core/loader → loader/src}/loader.component.d.ts +1 -1
- package/loader/src/loader.module.d.ts +2 -0
- package/main-class-componentes.metadata.json +1 -1
- package/misc/index.d.ts +26 -26
- package/misc/main-class-componentes-misc.d.ts +4 -0
- package/misc/main-class-componentes-misc.metadata.json +1 -0
- package/misc/package.json +11 -0
- package/misc/{cnpj → src/cnpj}/cnpj-model.directive.d.ts +1 -1
- package/misc/{cnpj → src/cnpj}/cnpj.directive.d.ts +1 -1
- package/misc/{cpf → src/cpf}/cpf-model.directive.d.ts +1 -1
- package/misc/{cpf → src/cpf}/cpf.directive.d.ts +1 -1
- package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj-model.directive.d.ts +1 -1
- package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.directive.d.ts +1 -1
- package/misc/{monetario → src/monetario}/monetario-model.directive.d.ts +2 -2
- package/misc/{porcentagem → src/porcentagem}/porcentagem-model.directive.d.ts +2 -2
- package/misc/{telefone → src/telefone}/telefone-model.directive.d.ts +1 -1
- package/model/index.d.ts +2 -0
- package/model/main-class-componentes-model.d.ts +4 -0
- package/model/main-class-componentes-model.metadata.json +1 -0
- package/model/package.json +11 -0
- package/model/src/model.module.d.ts +2 -0
- package/package.json +1 -1
- package/pipe/index.d.ts +2 -0
- package/pipe/main-class-componentes-pipe.d.ts +4 -0
- package/pipe/main-class-componentes-pipe.metadata.json +1 -0
- package/pipe/package.json +11 -0
- package/pipe/src/pipe.module.d.ts +2 -0
- package/public-api.d.ts +2 -10
- package/scroll/index.d.ts +2 -2
- package/scroll/main-class-componentes-scroll.d.ts +4 -0
- package/scroll/main-class-componentes-scroll.metadata.json +1 -0
- package/scroll/package.json +11 -0
- package/table/index.d.ts +11 -11
- package/table/main-class-componentes-table.d.ts +5 -0
- package/table/main-class-componentes-table.metadata.json +1 -0
- package/table/package.json +11 -0
- package/table/{infinite-table → src/infinite-table}/infinite-table.component.d.ts +2 -1
- package/table/{paginated-table → src/paginated-table}/paginated-table.component.d.ts +2 -2
- package/table/{table → src/table}/table.component.d.ts +1 -1
- package/util/index.d.ts +1 -1
- package/util/main-class-componentes-util.d.ts +4 -0
- package/util/main-class-componentes-util.metadata.json +1 -0
- package/util/package.json +11 -0
- package/core/componentes.module.d.ts +0 -4
- package/crud/crud.module.d.ts +0 -2
- package/esm2015/arquivo/arquivo.module.js +0 -29
- package/esm2015/arquivo/download-arquivo.directive.js +0 -44
- package/esm2015/arquivo/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
- package/esm2015/arquivo/preview-arquivo/preview-arquivo.component.js +0 -136
- package/esm2015/core/arquivo/arquivo-manager.service.js +0 -3
- package/esm2015/core/componentes.module.js +0 -65
- package/esm2015/core/criptografia/criptografia.service.js +0 -13
- package/esm2015/core/dialog/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
- package/esm2015/core/dialog/dialog-iframe/dialog-iframe.component.js +0 -59
- package/esm2015/core/dialog/dialog.service.js +0 -56
- package/esm2015/core/form/model/masked-model.directive.js +0 -149
- package/esm2015/core/form/validator/valida-modulo11.service.js +0 -92
- package/esm2015/core/imagem/imagem.directive.js +0 -80
- package/esm2015/core/loader/loader.component.js +0 -112
- package/esm2015/core/loader/loader.service.js +0 -70
- package/esm2015/core/mensageria/mensageria.service.js +0 -49
- package/esm2015/core/mobile/mobile.service.js +0 -46
- package/esm2015/core/pipe/nome-resumido.pipe.js +0 -16
- package/esm2015/crud/abstract-consulta-component.js +0 -60
- package/esm2015/crud/abstract-consulta-paginada-component.js +0 -48
- package/esm2015/crud/abstract-edicao-component.js +0 -29
- package/esm2015/crud/abstract-edicao-modal-component.js +0 -24
- package/esm2015/crud/crud.module.js +0 -14
- package/esm2015/date/date.module.js +0 -19
- package/esm2015/date/validator/data-validator.directive.js +0 -96
- package/esm2015/date/validator/futuro.directive.js +0 -26
- package/esm2015/form/form.component.js +0 -103
- package/esm2015/form/form.module.js +0 -25
- package/esm2015/form/mensagens-erro/mensagens-erro.component.js +0 -31
- package/esm2015/form/single-click.directive.js +0 -35
- package/esm2015/input/abstract-mat-form-field-control.js +0 -110
- package/esm2015/input/input-datetime/input-datetime.component.js +0 -114
- package/esm2015/input/input-fileupload/input-fileupload.component.js +0 -324
- package/esm2015/input/input-fileupload/input-fileupload.directive.js +0 -34
- package/esm2015/input/input-fileupload/input-fileupload.module.js +0 -34
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
- package/esm2015/input/option-checkbox/all-option-checkbox.component.js +0 -36
- package/esm2015/input/option-checkbox/node-pool.js +0 -93
- package/esm2015/input/option-checkbox/option-checkbox-group.component.js +0 -71
- package/esm2015/input/option-checkbox/option-checkbox.component.js +0 -59
- package/esm2015/input/option-checkbox/option-checkbox.module.js +0 -23
- package/esm2015/input/option-checkbox/option-checkbox.service.js +0 -52
- package/esm2015/input/option-checkbox/option-node.js +0 -24
- package/esm2015/input/select-chips/select-chips.component.js +0 -177
- package/esm2015/input/select-chips/select-chips.module.js +0 -25
- package/esm2015/input/select-item/select-item.component.js +0 -20
- package/esm2015/input/select-item/select-item.module.js +0 -15
- package/esm2015/input/select-many-checkbox/select-many-checkbox.component.js +0 -150
- package/esm2015/input/select-many-checkbox/select-many-checkbox.module.js +0 -21
- package/esm2015/input/select-radio/select-radio.component.js +0 -124
- package/esm2015/input/select-radio/select-radio.module.js +0 -21
- package/esm2015/misc/cnpj/cnpj-model.directive.js +0 -13
- package/esm2015/misc/cnpj/cnpj.directive.js +0 -31
- package/esm2015/misc/cnpj/cnpj.module.js +0 -19
- package/esm2015/misc/cnpj/cnpjs.pipe.js +0 -15
- package/esm2015/misc/cpf/cpf-model.directive.js +0 -13
- package/esm2015/misc/cpf/cpf.directive.js +0 -31
- package/esm2015/misc/cpf/cpf.module.js +0 -19
- package/esm2015/misc/cpf/cpf.pipe.js +0 -15
- package/esm2015/misc/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.directive.js +0 -32
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.module.js +0 -19
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
- package/esm2015/misc/info/info.module.js +0 -17
- package/esm2015/misc/monetario/monetario-mask.js +0 -34
- package/esm2015/misc/monetario/monetario-model.directive.js +0 -124
- package/esm2015/misc/monetario/monetario.module.js +0 -16
- package/esm2015/misc/monetario/monetario.pipe.js +0 -13
- package/esm2015/misc/porcentagem/porcentagem-mask.js +0 -34
- package/esm2015/misc/porcentagem/porcentagem-model.directive.js +0 -100
- package/esm2015/misc/porcentagem/porcentagem.module.js +0 -16
- package/esm2015/misc/porcentagem/porcentagem.pipe.js +0 -13
- package/esm2015/misc/telefone/telefone-model.directive.js +0 -25
- package/esm2015/misc/telefone/telefone.module.js +0 -18
- package/esm2015/misc/telefone/telefone.pipe.js +0 -33
- package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
- package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
- package/esm2015/scroll/scroll-container/scroll-container.component.js +0 -69
- package/esm2015/scroll/scroll.module.js +0 -17
- package/esm2015/table/column/column-cell.directive.js +0 -15
- package/esm2015/table/column/column-footer.directive.js +0 -15
- package/esm2015/table/column/column-header.directive.js +0 -15
- package/esm2015/table/column/column.directive.js +0 -28
- package/esm2015/table/infinite-table/infinite-table.component.js +0 -91
- package/esm2015/table/paginated-table/paginated-table.component.js +0 -43
- package/esm2015/table/paginator-i18n.js +0 -23
- package/esm2015/table/table/table.component.js +0 -119
- package/esm2015/table/table.module.js +0 -74
- package/esm2015/table/td/td.component.js +0 -19
- package/esm2015/table/th/th.component.js +0 -19
- package/esm2015/util/string.util.js +0 -12
- /package/{core/arquivo → arquivo/src}/arquivo-manager.service.d.ts +0 -0
- /package/arquivo/{arquivo.module.d.ts → src/arquivo.module.d.ts} +0 -0
- /package/core/{criptografia → src/criptografia}/criptografia.service.d.ts +0 -0
- /package/core/{mobile → src/mobile}/mobile.service.d.ts +0 -0
- /package/core/{form → src}/validator/valida-modulo11.service.d.ts +0 -0
- /package/date/{date.module.d.ts → src/date.module.d.ts} +0 -0
- /package/date/{validator → src/validator}/data-validator.directive.d.ts +0 -0
- /package/date/{validator → src/validator}/futuro.directive.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog-confirmacao/dialog-confirmacao.component.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog-iframe/dialog-iframe.component.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog.service.d.ts +0 -0
- /package/form/{form.component.d.ts → src/form.component.d.ts} +0 -0
- /package/form/{form.module.d.ts → src/form.module.d.ts} +0 -0
- /package/form/{mensagens-erro → src/mensagens-erro}/mensagens-erro.component.d.ts +0 -0
- /package/form/{single-click.directive.d.ts → src/single-click.directive.d.ts} +0 -0
- /package/input/{abstract-mat-form-field-control.d.ts → src/abstract-mat-form-field-control.d.ts} +0 -0
- /package/input/{input-datetime → src/input-datetime}/input-datetime.component.d.ts +0 -0
- /package/input/{input-datetime → src/input-datetime}/input-datetime.module.d.ts +0 -0
- /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.directive.d.ts +0 -0
- /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.module.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional-validator.directive.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.component.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.module.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/all-option-checkbox.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/node-pool.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox-group.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.module.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.service.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-node.d.ts +0 -0
- /package/input/{select-chips → src/select-chips}/select-chips.component.d.ts +0 -0
- /package/input/{select-chips → src/select-chips}/select-chips.module.d.ts +0 -0
- /package/input/{select-item → src/select-item}/select-item.component.d.ts +0 -0
- /package/input/{select-item → src/select-item}/select-item.module.d.ts +0 -0
- /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.component.d.ts +0 -0
- /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.module.d.ts +0 -0
- /package/input/{select-radio → src/select-radio}/select-radio.component.d.ts +0 -0
- /package/input/{select-radio → src/select-radio}/select-radio.module.d.ts +0 -0
- /package/{core/loader → loader/src}/loader.service.d.ts +0 -0
- /package/misc/{cnpj → src/cnpj}/cnpj.module.d.ts +0 -0
- /package/misc/{cnpj → src/cnpj}/cnpjs.pipe.d.ts +0 -0
- /package/misc/{cpf → src/cpf}/cpf.module.d.ts +0 -0
- /package/misc/{cpf → src/cpf}/cpf.pipe.d.ts +0 -0
- /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.module.d.ts +0 -0
- /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.pipe.d.ts +0 -0
- /package/misc/{info → src/info}/info.component.d.ts +0 -0
- /package/misc/{info → src/info}/info.module.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario-mask.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario.module.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario.pipe.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem-mask.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem.module.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem.pipe.d.ts +0 -0
- /package/misc/{telefone → src/telefone}/telefone.module.d.ts +0 -0
- /package/misc/{telefone → src/telefone}/telefone.pipe.d.ts +0 -0
- /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.directive.d.ts +0 -0
- /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.module.d.ts +0 -0
- /package/{core/form/model → model/src}/masked-model.directive.d.ts +0 -0
- /package/{core/pipe → pipe/src}/nome-resumido.pipe.d.ts +0 -0
- /package/scroll/{scroll-container → src/scroll-container}/scroll-container.component.d.ts +0 -0
- /package/scroll/{scroll.module.d.ts → src/scroll.module.d.ts} +0 -0
- /package/table/{column → src/column}/column-cell.directive.d.ts +0 -0
- /package/table/{column → src/column}/column-footer.directive.d.ts +0 -0
- /package/table/{column → src/column}/column-header.directive.d.ts +0 -0
- /package/table/{column → src/column}/column.directive.d.ts +0 -0
- /package/table/{paginator → src/paginator}/paginator.component.d.ts +0 -0
- /package/table/{paginator-i18n.d.ts → src/paginator-i18n.d.ts} +0 -0
- /package/table/{table.module.d.ts → src/table.module.d.ts} +0 -0
- /package/table/{td → src/td}/td.component.d.ts +0 -0
- /package/table/{th → src/th}/th.component.d.ts +0 -0
- /package/util/{string.util.d.ts → src/string.util.d.ts} +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { TableComponent } from './table/table.component';
|
|
4
|
+
import { ColumnDirective } from './column/column.directive';
|
|
5
|
+
import { ColumnHeaderDirective } from './column/column-header.directive';
|
|
6
|
+
import { ColumnCellDirective } from './column/column-cell.directive';
|
|
7
|
+
import { ColumnFooterDirective } from './column/column-footer.directive';
|
|
8
|
+
import { MatTableModule } from '@angular/material/table';
|
|
9
|
+
import { ThComponent } from './th/th.component';
|
|
10
|
+
import { TdComponent } from './td/td.component';
|
|
11
|
+
import { PaginatedTableComponent } from './paginated-table/paginated-table.component';
|
|
12
|
+
import { MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
|
|
13
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
+
import { InfiniteTableComponent } from './infinite-table/infinite-table.component';
|
|
16
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
17
|
+
import { PaginatorI18n } from './paginator-i18n';
|
|
18
|
+
import { PaginatorComponent } from './paginator/paginator.component';
|
|
19
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
20
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
21
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
22
|
+
import { LoaderModule } from '@main-class/componentes/loader';
|
|
23
|
+
export class TableModule {
|
|
24
|
+
}
|
|
25
|
+
TableModule.decorators = [
|
|
26
|
+
{ type: NgModule, args: [{
|
|
27
|
+
exports: [
|
|
28
|
+
TableComponent,
|
|
29
|
+
ColumnDirective,
|
|
30
|
+
ColumnHeaderDirective,
|
|
31
|
+
ColumnCellDirective,
|
|
32
|
+
ColumnFooterDirective,
|
|
33
|
+
ThComponent,
|
|
34
|
+
TdComponent,
|
|
35
|
+
PaginatedTableComponent,
|
|
36
|
+
InfiniteTableComponent,
|
|
37
|
+
PaginatorComponent
|
|
38
|
+
],
|
|
39
|
+
declarations: [
|
|
40
|
+
TableComponent,
|
|
41
|
+
ColumnDirective,
|
|
42
|
+
ColumnHeaderDirective,
|
|
43
|
+
ColumnCellDirective,
|
|
44
|
+
ColumnFooterDirective,
|
|
45
|
+
ThComponent,
|
|
46
|
+
TdComponent,
|
|
47
|
+
PaginatedTableComponent,
|
|
48
|
+
InfiniteTableComponent,
|
|
49
|
+
PaginatorComponent
|
|
50
|
+
],
|
|
51
|
+
imports: [
|
|
52
|
+
CommonModule,
|
|
53
|
+
MatTableModule,
|
|
54
|
+
MatPaginatorModule,
|
|
55
|
+
MatButtonModule,
|
|
56
|
+
MatIconModule,
|
|
57
|
+
TranslateModule,
|
|
58
|
+
MatFormFieldModule,
|
|
59
|
+
MatSelectModule,
|
|
60
|
+
MatTooltipModule,
|
|
61
|
+
LoaderModule,
|
|
62
|
+
],
|
|
63
|
+
providers: [
|
|
64
|
+
{
|
|
65
|
+
provide: MatPaginatorIntl, deps: [TranslateService],
|
|
66
|
+
useFactory: PaginatorIntlFactory
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},] }
|
|
70
|
+
];
|
|
71
|
+
export function PaginatorIntlFactory(translateService) {
|
|
72
|
+
return new PaginatorI18n(translateService).getPaginatorIntl();
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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WF0U2VsZWN0TW9kdWxlLFxuICAgIE1hdFRvb2x0aXBNb2R1bGUsXG4gICAgTG9hZGVyTW9kdWxlLFxuICBdLFxuICBwcm92aWRlcnM6IFtcbiAgICB7XG4gICAgICBwcm92aWRlOiBNYXRQYWdpbmF0b3JJbnRsLCBkZXBzOiBbVHJhbnNsYXRlU2VydmljZV0sXG4gICAgICB1c2VGYWN0b3J5OiBQYWdpbmF0b3JJbnRsRmFjdG9yeVxuICAgIH1cbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBUYWJsZU1vZHVsZSB7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBQYWdpbmF0b3JJbnRsRmFjdG9yeSh0cmFuc2xhdGVTZXJ2aWNlOiBUcmFuc2xhdGVTZXJ2aWNlKSB7XG4gIHJldHVybiBuZXcgUGFnaW5hdG9ySTE4bih0cmFuc2xhdGVTZXJ2aWNlKS5nZXRQYWdpbmF0b3JJbnRsKCk7XG59XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, ElementRef, Self } from '@angular/core';
|
|
2
|
+
export class TdComponent {
|
|
3
|
+
constructor(element) {
|
|
4
|
+
element.nativeElement.classList.add('mat-cell');
|
|
5
|
+
}
|
|
6
|
+
ngOnInit() {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
TdComponent.decorators = [
|
|
10
|
+
{ type: Component, args: [{
|
|
11
|
+
selector: 'td,mcl-td',
|
|
12
|
+
template: "<ng-content></ng-content>\n",
|
|
13
|
+
styles: [""]
|
|
14
|
+
},] }
|
|
15
|
+
];
|
|
16
|
+
TdComponent.ctorParameters = () => [
|
|
17
|
+
{ type: ElementRef, decorators: [{ type: Self }] }
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4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, ElementRef, Self } from '@angular/core';
|
|
2
|
+
export class ThComponent {
|
|
3
|
+
constructor(element) {
|
|
4
|
+
element.nativeElement.classList.add('mat-header-cell');
|
|
5
|
+
}
|
|
6
|
+
ngOnInit() {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
ThComponent.decorators = [
|
|
10
|
+
{ type: Component, args: [{
|
|
11
|
+
selector: 'th,mcl-th',
|
|
12
|
+
template: "<ng-content></ng-content>\n",
|
|
13
|
+
styles: [""]
|
|
14
|
+
},] }
|
|
15
|
+
];
|
|
16
|
+
ThComponent.ctorParameters = () => [
|
|
17
|
+
{ type: ElementRef, decorators: [{ type: Self }] }
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGguY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFpbi1jbGFzcy9jb21wb25lbnRlcy90YWJsZS9zcmMvdGgvdGguY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFVLElBQUksRUFBQyxNQUFNLGVBQWUsQ0FBQztBQU9sRSxNQUFNLE9BQU8sV0FBVztJQUV0QixZQUNVLE9BQW1CO1FBRTNCLE9BQU8sQ0FBQyxhQUFhLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0lBQ3pELENBQUM7SUFFRCxRQUFRO0lBQ1IsQ0FBQzs7O1lBZEYsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxXQUFXO2dCQUNyQix1Q0FBa0M7O2FBRW5DOzs7WUFOa0IsVUFBVSx1QkFVeEIsSUFBSSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q29tcG9uZW50LCBFbGVtZW50UmVmLCBPbkluaXQsIFNlbGZ9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICd0aCxtY2wtdGgnLFxuICB0ZW1wbGF0ZVVybDogJy4vdGguY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi90aC5jb21wb25lbnQuc2NzcyddXG59KVxuZXhwb3J0IGNsYXNzIFRoQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBAU2VsZigpIGVsZW1lbnQ6IEVsZW1lbnRSZWZcbiAgKSB7XG4gICAgZWxlbWVudC5uYXRpdmVFbGVtZW50LmNsYXNzTGlzdC5hZGQoJ21hdC1oZWFkZXItY2VsbCcpO1xuICB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxuXG59XG4iXX0=
|
package/esm2015/util/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './string.util';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './src/string.util';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYWluLWNsYXNzL2NvbXBvbmVudGVzL3V0aWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc3JjL3N0cmluZy51dGlsJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi1jbGFzcy1jb21wb25lbnRlcy11dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbWFpbi1jbGFzcy9jb21wb25lbnRlcy91dGlsL21haW4tY2xhc3MtY29tcG9uZW50ZXMtdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const TRANSLATE_RE = new RegExp('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝŸ', 'g');
|
|
2
|
+
const TRANSLATE = 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUYY';
|
|
3
|
+
export class StringUtil {
|
|
4
|
+
static normalize(val) {
|
|
5
|
+
const replaceFunction = match => TRANSLATE.charAt(TRANSLATE_RE.source.indexOf(match) - 1);
|
|
6
|
+
return String(val).trim().toLowerCase().replace(TRANSLATE_RE, replaceFunction);
|
|
7
|
+
}
|
|
8
|
+
static like(value, query) {
|
|
9
|
+
return StringUtil.normalize(value).indexOf(StringUtil.normalize(query)) >= 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLnV0aWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tYWluLWNsYXNzL2NvbXBvbmVud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lZWVpaWlpbm9vb29vdXV1dXl5QUFBQUFDRUVFRUlJSUlOT09PT09VVVVVWVknO1xuXG5leHBvcnQgY2xhc3MgU3RyaW5nVXRpbCB7XG5cbiAgc3RhdGljIG5vcm1hbGl6ZSh2YWw6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgY29uc3QgcmVwbGFjZUZ1bmN0aW9uID0gbWF0Y2ggPT4gVFJBTlNMQVRFLmNoYXJBdChUUkFOU0xBVEVfUkUuc291cmNlLmluZGV4T2YobWF0Y2gpIC0gMSk7XG4gICAgcmV0dXJuIFN0cmluZyh2YWwpLnRyaW0oKS50b0xvd2VyQ2FzZSgpLnJlcGxhY2UoVFJBTlNMQVRFX1JFLCByZXBsYWNlRnVuY3Rpb24pO1xuICB9XG5cbiAgc3RhdGljIGxpa2UodmFsdWU6IHN0cmluZywgcXVlcnk6IHN0cmluZyk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBTdHJpbmdVdGlsLm5vcm1hbGl6ZSh2YWx1ZSkuaW5kZXhPZihTdHJpbmdVdGlsLm5vcm1hbGl6ZShxdWVyeSkpID49IDA7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { InjectionToken, Component, Inject, Input, Directive, HostListener, Optional, ElementRef, Self, NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { __awaiter } from 'tslib';
|
|
4
|
+
import { MAT_DIALOG_DATA, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
7
|
+
import { PdfViewerModule } from 'ng2-pdf-viewer';
|
|
8
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
9
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
10
|
+
import { ImageViewerModule } from '@jmcrommen/ngx-image-viewer';
|
|
11
|
+
|
|
12
|
+
const ARQUIVO_MANAGER_SERVICE = new InjectionToken('ARQUIVO_MANAGER_SERVICE');
|
|
13
|
+
|
|
14
|
+
class DialogPreviewArquivoComponent {
|
|
15
|
+
constructor(dadosPreview, arquivoService) {
|
|
16
|
+
this.dadosPreview = dadosPreview;
|
|
17
|
+
this.arquivoService = arquivoService;
|
|
18
|
+
this.loadingFile = true;
|
|
19
|
+
}
|
|
20
|
+
ngOnInit() {
|
|
21
|
+
if (this.type === 'image') {
|
|
22
|
+
this.previewCarregado();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
get src() {
|
|
26
|
+
return this.dadosPreview.src;
|
|
27
|
+
}
|
|
28
|
+
get type() {
|
|
29
|
+
return this.dadosPreview.type;
|
|
30
|
+
}
|
|
31
|
+
get group() {
|
|
32
|
+
return this.dadosPreview.group;
|
|
33
|
+
}
|
|
34
|
+
handleEvent(evento) {
|
|
35
|
+
if (evento.name === 'download') {
|
|
36
|
+
this.download();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
previewCarregado(e) {
|
|
40
|
+
this.loadingFile = false;
|
|
41
|
+
}
|
|
42
|
+
download() {
|
|
43
|
+
if (typeof this.src === 'string') {
|
|
44
|
+
const link = document.createElement('a');
|
|
45
|
+
link.href = this.src;
|
|
46
|
+
link.target = '_blank';
|
|
47
|
+
document.body.appendChild(link);
|
|
48
|
+
link.click();
|
|
49
|
+
document.body.removeChild(link);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
DialogPreviewArquivoComponent.decorators = [
|
|
56
|
+
{ type: Component, args: [{
|
|
57
|
+
selector: 'mcl-dialog-preview-arquivo',
|
|
58
|
+
template: "<mat-dialog-content>\r\n <div class=\"spinner-wrapper\" *ngIf=\"loadingFile\">\r\n <mat-spinner style=\"margin: 0 auto\" [diameter]=\"50\" color=\"warn\"></mat-spinner>\r\n </div>\r\n\r\n <pdf-viewer (page-rendered)=\"previewCarregado($event)\" *ngIf=\"type === 'pdf'\"\r\n [src]=\"src\" [original-size]=\"false\"></pdf-viewer>\r\n\r\n <ngx-image-viewer [src]=\"group\" [index]=\"group.indexOf(src)\" *ngIf=\"type === 'image' && group\"\r\n [config]=\"{customBtns:[{name: 'download', icon: 'fa fa-download'}]}\"\r\n (customEvent)=\"handleEvent($event)\"></ngx-image-viewer>\r\n\r\n <ngx-image-viewer [src]=\"[src]\" [index]=\"0\" *ngIf=\"type === 'image' && !group\"\r\n [config]=\"{customBtns:[{name: 'download', icon: 'fa fa-download'}]}\"\r\n (customEvent)=\"handleEvent($event)\"></ngx-image-viewer>\r\n</mat-dialog-content>\r\n\r\n<div mat-dialog-actions>\r\n <button mat-button mat-dialog-close>\r\n <mat-icon>close</mat-icon>\r\n Fechar\r\n </button>\r\n\r\n <div class=\"spacer\"></div>\r\n\r\n <button mat-stroked-button (click)=\"download()\" *ngIf=\"!loadingFile\">\r\n <mat-icon>cloud_download</mat-icon>\r\n Realizar o Download\r\n </button>\r\n</div>\r\n",
|
|
59
|
+
styles: ["pdf-viewer{width:100%;display:block}.spinner-wrapper{margin:30px auto;width:800px;height:400px}.dialog-title-text{margin-right:10px;line-height:38px}[mat-dialog-title]{display:flex;padding:8px 24px 7px}[mat-dialog-title] .spacer{flex:1 1 auto}[mat-dialog-actions]{text-align:right}[mat-dialog-actions] button{margin-left:auto}[mat-dialog-actions] button mat-icon{vertical-align:middle;margin-right:10px}"]
|
|
60
|
+
},] }
|
|
61
|
+
];
|
|
62
|
+
DialogPreviewArquivoComponent.ctorParameters = () => [
|
|
63
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
64
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
class PreviewArquivoComponent {
|
|
68
|
+
constructor(arquivoManagerService, dialog) {
|
|
69
|
+
this.arquivoManagerService = arquivoManagerService;
|
|
70
|
+
this.dialog = dialog;
|
|
71
|
+
this.showLoading = false;
|
|
72
|
+
this.height = '200px';
|
|
73
|
+
this.width = '200px';
|
|
74
|
+
}
|
|
75
|
+
ngOnInit() {
|
|
76
|
+
}
|
|
77
|
+
get arquivo() {
|
|
78
|
+
return this.$url;
|
|
79
|
+
}
|
|
80
|
+
set arquivo(arquivo) {
|
|
81
|
+
if (this.$arquivo !== arquivo) {
|
|
82
|
+
this.$arquivo = arquivo;
|
|
83
|
+
this.parseArquivo(arquivo)
|
|
84
|
+
.subscribe(arq => {
|
|
85
|
+
this.src = arq.src;
|
|
86
|
+
this.filename = arq.filename;
|
|
87
|
+
this.$url = arq.url;
|
|
88
|
+
this.type = arq.type;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
parseArquivo(arquivo) {
|
|
93
|
+
return new Observable(observer => {
|
|
94
|
+
if (arquivo.loading) { // uploading
|
|
95
|
+
const type = this.parseType(arquivo.file.name);
|
|
96
|
+
observer.next({
|
|
97
|
+
type,
|
|
98
|
+
filename: arquivo.file.name,
|
|
99
|
+
});
|
|
100
|
+
this.carregaArrayBuffFile(arquivo.file)
|
|
101
|
+
.then(src => {
|
|
102
|
+
observer.next({
|
|
103
|
+
src,
|
|
104
|
+
type,
|
|
105
|
+
filename: arquivo.file.name,
|
|
106
|
+
});
|
|
107
|
+
observer.complete();
|
|
108
|
+
})
|
|
109
|
+
.catch(err => observer.error(err));
|
|
110
|
+
}
|
|
111
|
+
else if (typeof arquivo === 'string') { // puploading
|
|
112
|
+
const type = this.parseType(arquivo.split('?')[0]);
|
|
113
|
+
observer.next({
|
|
114
|
+
type,
|
|
115
|
+
url: arquivo,
|
|
116
|
+
src: arquivo,
|
|
117
|
+
});
|
|
118
|
+
observer.complete();
|
|
119
|
+
}
|
|
120
|
+
else { // attachment
|
|
121
|
+
const type = this.parseType(arquivo.nome);
|
|
122
|
+
this.arquivoManagerService.downloadURL(arquivo).subscribe(url => {
|
|
123
|
+
observer.next({
|
|
124
|
+
type,
|
|
125
|
+
url,
|
|
126
|
+
src: url,
|
|
127
|
+
});
|
|
128
|
+
observer.complete();
|
|
129
|
+
}, err => observer.error(err));
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
carregaArrayBuffFile(file) {
|
|
134
|
+
return new Promise(((resolve, reject) => {
|
|
135
|
+
if (typeof (FileReader) !== 'undefined') {
|
|
136
|
+
const reader = new FileReader();
|
|
137
|
+
reader.onload = (e) => resolve(e.target.result);
|
|
138
|
+
reader.onerror = e => reject(e);
|
|
139
|
+
reader.readAsArrayBuffer(file);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
reject('FileReader not defined');
|
|
143
|
+
}
|
|
144
|
+
}));
|
|
145
|
+
}
|
|
146
|
+
parseType(filename) {
|
|
147
|
+
const format = filename.substring(filename.lastIndexOf('.') + 1).toLowerCase();
|
|
148
|
+
switch (format) {
|
|
149
|
+
case 'jpeg':
|
|
150
|
+
case 'jpg':
|
|
151
|
+
case 'png':
|
|
152
|
+
case 'gif':
|
|
153
|
+
return 'image';
|
|
154
|
+
case 'pdf':
|
|
155
|
+
return 'pdf';
|
|
156
|
+
}
|
|
157
|
+
return 'other';
|
|
158
|
+
}
|
|
159
|
+
abrePreview() {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
let group;
|
|
162
|
+
let src = this.src;
|
|
163
|
+
if (this.group) {
|
|
164
|
+
group = (yield Promise.all(this.group.map(arq => this.parseArquivo(arq).toPromise())));
|
|
165
|
+
src = group[this.group.indexOf(this.$arquivo)].src;
|
|
166
|
+
group = group.filter(g => !!g.src && g.type === this.type).map(g => g.src);
|
|
167
|
+
}
|
|
168
|
+
this.dialog.open(DialogPreviewArquivoComponent, {
|
|
169
|
+
data: {
|
|
170
|
+
src,
|
|
171
|
+
group,
|
|
172
|
+
type: this.type,
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
PreviewArquivoComponent.decorators = [
|
|
179
|
+
{ type: Component, args: [{
|
|
180
|
+
selector: 'mcl-preview-arquivo',
|
|
181
|
+
template: "<img *ngIf=\"src && type==='image'\" [src]=\"src\"\r\n [ngStyle]=\"{width:width,height:height}\"\r\n (click)=\"abrePreview()\"/>\r\n\r\n<div class=\"other\" *ngIf=\"!src || type === 'other'\"\r\n [ngStyle]=\"{width:width,height:height}\"\r\n [mclDownloadArquivo]=\"arquivo\">\r\n <mat-icon>insert_drive_file</mat-icon>\r\n <small>{{ filename }}</small>\r\n</div>\r\n\r\n<pdf-viewer [src]=\"src\" *ngIf=\"src && type === 'pdf'\"\r\n [ngStyle]=\"{width:width,height:height}\"\r\n [original-size]=\"false\"\r\n [page]=\"1\"\r\n [render-text]=\"false\"\r\n (click)=\"abrePreview()\"\r\n></pdf-viewer>\r\n",
|
|
182
|
+
styles: [".other,img,pdf-viewer{overflow:hidden;display:block;border-radius:5px;background:#efefef;border:1px solid #a9a9a9}.other.other,img.other,pdf-viewer.other{display:flex;flex-direction:column;justify-items:center}.other.other mat-icon,img.other mat-icon,pdf-viewer.other mat-icon{margin:auto;text-align:center;font-size:75px;height:75px;width:75px;line-height:75px}.other:hover,img:hover,pdf-viewer:hover{cursor:pointer}"]
|
|
183
|
+
},] }
|
|
184
|
+
];
|
|
185
|
+
PreviewArquivoComponent.ctorParameters = () => [
|
|
186
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] },
|
|
187
|
+
{ type: MatDialog }
|
|
188
|
+
];
|
|
189
|
+
PreviewArquivoComponent.propDecorators = {
|
|
190
|
+
showLoading: [{ type: Input }],
|
|
191
|
+
height: [{ type: Input }],
|
|
192
|
+
width: [{ type: Input }],
|
|
193
|
+
group: [{ type: Input }],
|
|
194
|
+
arquivo: [{ type: Input }]
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
class DownloadArquivoDirective {
|
|
198
|
+
constructor(arquivoService) {
|
|
199
|
+
this.arquivoService = arquivoService;
|
|
200
|
+
this.target = '_blank';
|
|
201
|
+
}
|
|
202
|
+
getUrlArquivo() {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
if (typeof this.attachment === 'string') {
|
|
205
|
+
return this.attachment;
|
|
206
|
+
}
|
|
207
|
+
return yield this.arquivoService.downloadURL(this.attachment).toPromise();
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
download() {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
if (!this.attachment) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
const link = document.createElement('a');
|
|
216
|
+
link.href = yield this.getUrlArquivo();
|
|
217
|
+
link.target = this.target;
|
|
218
|
+
document.body.appendChild(link);
|
|
219
|
+
link.click();
|
|
220
|
+
document.body.removeChild(link);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
DownloadArquivoDirective.decorators = [
|
|
225
|
+
{ type: Directive, args: [{
|
|
226
|
+
selector: '[mclDownloadArquivo]'
|
|
227
|
+
},] }
|
|
228
|
+
];
|
|
229
|
+
DownloadArquivoDirective.ctorParameters = () => [
|
|
230
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
|
|
231
|
+
];
|
|
232
|
+
DownloadArquivoDirective.propDecorators = {
|
|
233
|
+
attachment: [{ type: Input, args: ['mclDownloadArquivo',] }],
|
|
234
|
+
target: [{ type: Input }],
|
|
235
|
+
download: [{ type: HostListener, args: ['click',] }]
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
const MCL_IMAGE_PADRAO = new InjectionToken('MCL_IMAGE_PADRAO');
|
|
239
|
+
class ImagemDirective {
|
|
240
|
+
constructor(_padrao, element, arquivoManagerService) {
|
|
241
|
+
this._padrao = _padrao;
|
|
242
|
+
this.element = element;
|
|
243
|
+
this.arquivoManagerService = arquivoManagerService;
|
|
244
|
+
this.backgroundSetter = (url) => {
|
|
245
|
+
this.element.nativeElement.style.backgroundImage = `url(${url})`;
|
|
246
|
+
};
|
|
247
|
+
this.srcSetter = (url) => {
|
|
248
|
+
this.element.nativeElement.src = url;
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
set imagemSrc(imagem) {
|
|
252
|
+
this._setter = this.srcSetter;
|
|
253
|
+
if (imagem) {
|
|
254
|
+
if (this._path !== imagem) {
|
|
255
|
+
this._path = imagem;
|
|
256
|
+
this.setPath();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
this._setter(this._padrao);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
set imagemBackground(imagem) {
|
|
264
|
+
this._setter = this.backgroundSetter;
|
|
265
|
+
if (imagem) {
|
|
266
|
+
if (this._path !== imagem) {
|
|
267
|
+
this._path = imagem;
|
|
268
|
+
this.setPath();
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
this._setter(this._padrao);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
set padrao(padrao) {
|
|
276
|
+
this._padrao = padrao;
|
|
277
|
+
if (this._setter) {
|
|
278
|
+
this._setter(this.padrao);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
setPath() {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
const path = typeof this._path === 'string' ? this._path : this._path.path;
|
|
284
|
+
if (path) {
|
|
285
|
+
let url;
|
|
286
|
+
if (path.startsWith('http://') || this._path.startsWith('https://')) {
|
|
287
|
+
url = path;
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
url = yield this.arquivoManagerService.downloadURL(path).toPromise();
|
|
291
|
+
}
|
|
292
|
+
this._setter(url);
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
ngOnInit() {
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
ImagemDirective.decorators = [
|
|
300
|
+
{ type: Directive, args: [{
|
|
301
|
+
selector: '[mclImagemSrc],[mclImagemBackground]'
|
|
302
|
+
},] }
|
|
303
|
+
];
|
|
304
|
+
ImagemDirective.ctorParameters = () => [
|
|
305
|
+
{ type: String, decorators: [{ type: Inject, args: [MCL_IMAGE_PADRAO,] }, { type: Optional }] },
|
|
306
|
+
{ type: ElementRef, decorators: [{ type: Self }] },
|
|
307
|
+
{ type: undefined, decorators: [{ type: Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
|
|
308
|
+
];
|
|
309
|
+
ImagemDirective.propDecorators = {
|
|
310
|
+
imagemSrc: [{ type: Input, args: ['mclImagemSrc',] }],
|
|
311
|
+
imagemBackground: [{ type: Input, args: ['mclImagemBackground',] }],
|
|
312
|
+
padrao: [{ type: Input }]
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
class ArquivoModule {
|
|
316
|
+
}
|
|
317
|
+
ArquivoModule.decorators = [
|
|
318
|
+
{ type: NgModule, args: [{
|
|
319
|
+
declarations: [PreviewArquivoComponent, DownloadArquivoDirective, DialogPreviewArquivoComponent, ImagemDirective],
|
|
320
|
+
exports: [PreviewArquivoComponent, DownloadArquivoDirective],
|
|
321
|
+
imports: [
|
|
322
|
+
CommonModule,
|
|
323
|
+
MatIconModule,
|
|
324
|
+
PdfViewerModule,
|
|
325
|
+
MatDialogModule,
|
|
326
|
+
MatProgressSpinnerModule,
|
|
327
|
+
MatButtonModule,
|
|
328
|
+
ImageViewerModule
|
|
329
|
+
]
|
|
330
|
+
},] }
|
|
331
|
+
];
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Generated bundle index. Do not edit.
|
|
335
|
+
*/
|
|
336
|
+
|
|
337
|
+
export { ARQUIVO_MANAGER_SERVICE, ArquivoModule, DialogPreviewArquivoComponent, DownloadArquivoDirective, ImagemDirective, MCL_IMAGE_PADRAO, PreviewArquivoComponent };
|
|
338
|
+
//# sourceMappingURL=main-class-componentes-arquivo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-class-componentes-arquivo.js","sources":["../../../../projects/main-class/componentes/arquivo/src/arquivo-manager.service.ts","../../../../projects/main-class/componentes/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.ts","../../../../projects/main-class/componentes/arquivo/src/preview-arquivo/preview-arquivo.component.ts","../../../../projects/main-class/componentes/arquivo/src/download-arquivo.directive.ts","../../../../projects/main-class/componentes/arquivo/src/imagem.directive.ts","../../../../projects/main-class/componentes/arquivo/src/arquivo.module.ts","../../../../projects/main-class/componentes/arquivo/main-class-componentes-arquivo.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {Observable} from 'rxjs';\n\nexport const ARQUIVO_MANAGER_SERVICE = new InjectionToken('ARQUIVO_MANAGER_SERVICE');\n\nexport interface UploadEvent {\n type: 'progresso' | 'conclusao';\n progresso?: number;\n attachment?: any;\n}\n\nexport interface ArquivoManagerService {\n upload(file: File): Observable<UploadEvent>;\n downloadURL(attachment: any): Observable<string>;\n}\n","import {Component, Inject, OnInit} from '@angular/core';\r\nimport {MAT_DIALOG_DATA} from '@angular/material/dialog';\r\nimport {ARQUIVO_MANAGER_SERVICE, ArquivoManagerService} from '../../arquivo-manager.service';\r\n\r\nexport interface DadosPreview {\r\n src: string;\r\n type: 'image' | 'pdf' | 'other';\r\n group: string[];\r\n}\r\n\r\n@Component({\r\n selector: 'mcl-dialog-preview-arquivo',\r\n templateUrl: './dialog-preview-arquivo.component.html',\r\n styleUrls: ['./dialog-preview-arquivo.component.scss']\r\n})\r\nexport class DialogPreviewArquivoComponent implements OnInit {\r\n\r\n loadingFile = true;\r\n\r\n constructor(\r\n @Inject(MAT_DIALOG_DATA) private dadosPreview: DadosPreview,\r\n @Inject(ARQUIVO_MANAGER_SERVICE) private arquivoService: ArquivoManagerService,\r\n ) {\r\n }\r\n\r\n ngOnInit(): void {\r\n if (this.type === 'image') {\r\n this.previewCarregado();\r\n }\r\n }\r\n\r\n get src() {\r\n return this.dadosPreview.src;\r\n }\r\n\r\n get type() {\r\n return this.dadosPreview.type;\r\n }\r\n\r\n get group() {\r\n return this.dadosPreview.group;\r\n }\r\n\r\n handleEvent(evento) {\r\n if (evento.name === 'download') {\r\n this.download();\r\n }\r\n }\r\n\r\n previewCarregado(e?: CustomEvent) {\r\n this.loadingFile = false;\r\n }\r\n\r\n download() {\r\n if (typeof this.src === 'string') {\r\n const link = document.createElement('a');\r\n\r\n link.href = this.src;\r\n link.target = '_blank';\r\n\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n\r\n } else {\r\n\r\n\r\n }\r\n }\r\n}\r\n","import {Component, Inject, Input, OnInit} from '@angular/core';\r\nimport {MatDialog} from '@angular/material/dialog';\r\nimport {DialogPreviewArquivoComponent} from './dialog-preview-arquivo/dialog-preview-arquivo.component';\r\nimport {ARQUIVO_MANAGER_SERVICE, ArquivoManagerService} from '../../index';\r\nimport {Observable} from 'rxjs';\r\n\r\ninterface ArquivoPreview {\r\n src?: string;\r\n url?: string;\r\n filename?: string;\r\n type: 'image' | 'pdf' | 'other';\r\n}\r\n\r\n@Component({\r\n selector: 'mcl-preview-arquivo',\r\n templateUrl: './preview-arquivo.component.html',\r\n styleUrls: ['./preview-arquivo.component.scss']\r\n})\r\nexport class PreviewArquivoComponent implements OnInit {\r\n\r\n src: any;\r\n filename: string;\r\n type: 'image' | 'pdf' | 'other';\r\n\r\n @Input() showLoading = false;\r\n @Input() height = '200px';\r\n @Input() width = '200px';\r\n\r\n @Input() group: Array<string>;\r\n\r\n private $arquivo: string;\r\n private $url: string;\r\n\r\n constructor(\r\n @Inject(ARQUIVO_MANAGER_SERVICE) private arquivoManagerService: ArquivoManagerService,\r\n private dialog: MatDialog,\r\n ) {\r\n }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n get arquivo() {\r\n return this.$url;\r\n }\r\n\r\n @Input() set arquivo(arquivo: any) {\r\n if (this.$arquivo !== arquivo) {\r\n this.$arquivo = arquivo;\r\n this.parseArquivo(arquivo)\r\n .subscribe(arq => {\r\n this.src = arq.src;\r\n this.filename = arq.filename;\r\n this.$url = arq.url;\r\n this.type = arq.type;\r\n });\r\n }\r\n }\r\n\r\n private parseArquivo(arquivo: any): Observable<ArquivoPreview> {\r\n return new Observable(observer => {\r\n if (arquivo.loading) { // uploading\r\n const type = this.parseType(arquivo.file.name);\r\n\r\n observer.next({\r\n type,\r\n filename: arquivo.file.name,\r\n });\r\n\r\n this.carregaArrayBuffFile(arquivo.file)\r\n .then(src => {\r\n observer.next({\r\n src,\r\n type,\r\n filename: arquivo.file.name,\r\n });\r\n observer.complete();\r\n })\r\n .catch(err => observer.error(err));\r\n } else if (typeof arquivo === 'string') { // puploading\r\n const type = this.parseType(arquivo.split('?')[0]);\r\n\r\n observer.next({\r\n type,\r\n url: arquivo,\r\n src: arquivo,\r\n });\r\n observer.complete();\r\n } else { // attachment\r\n const type = this.parseType(arquivo.nome);\r\n\r\n this.arquivoManagerService.downloadURL(arquivo).subscribe(url => {\r\n observer.next({\r\n type,\r\n url,\r\n src: url,\r\n });\r\n observer.complete();\r\n }, err => observer.error(err));\r\n }\r\n });\r\n }\r\n\r\n private carregaArrayBuffFile(file: File): Promise<any> {\r\n return new Promise(((resolve, reject) => {\r\n if (typeof (FileReader) !== 'undefined') {\r\n const reader = new FileReader();\r\n\r\n reader.onload = (e: any) => resolve(e.target.result);\r\n reader.onerror = e => reject(e);\r\n\r\n reader.readAsArrayBuffer(file);\r\n } else {\r\n reject('FileReader not defined');\r\n }\r\n }));\r\n }\r\n\r\n private parseType(filename: string): 'image' | 'pdf' | 'other' {\r\n const format = filename.substring(filename.lastIndexOf('.') + 1).toLowerCase();\r\n\r\n switch (format) {\r\n case 'jpeg':\r\n case 'jpg':\r\n case 'png':\r\n case 'gif':\r\n return 'image';\r\n case 'pdf':\r\n return 'pdf';\r\n }\r\n\r\n return 'other';\r\n }\r\n\r\n async abrePreview() {\r\n let group;\r\n let src = this.src;\r\n if (this.group) {\r\n group = (await Promise.all(\r\n this.group.map(arq => this.parseArquivo(arq).toPromise())\r\n ));\r\n src = group[this.group.indexOf(this.$arquivo)].src;\r\n group = group.filter(g => !!g.src && g.type === this.type).map(g => g.src);\r\n }\r\n\r\n this.dialog.open(DialogPreviewArquivoComponent, {\r\n data: {\r\n src,\r\n group,\r\n type: this.type,\r\n },\r\n });\r\n }\r\n\r\n}\r\n","import {Directive, HostListener, Inject, Input} from '@angular/core';\r\nimport {ARQUIVO_MANAGER_SERVICE, ArquivoManagerService} from '../index';\r\n\r\n@Directive({\r\n selector: '[mclDownloadArquivo]'\r\n})\r\nexport class DownloadArquivoDirective {\r\n\r\n @Input('mclDownloadArquivo') attachment: any | string;\r\n\r\n @Input() target = '_blank';\r\n\r\n constructor(\r\n @Inject(ARQUIVO_MANAGER_SERVICE) private arquivoService: ArquivoManagerService\r\n ) {\r\n }\r\n\r\n private async getUrlArquivo() {\r\n if (typeof this.attachment === 'string') {\r\n return this.attachment;\r\n }\r\n\r\n return await this.arquivoService.downloadURL(this.attachment).toPromise();\r\n }\r\n\r\n @HostListener('click')\r\n async download() {\r\n if (!this.attachment) {\r\n return;\r\n }\r\n\r\n const link = document.createElement('a');\r\n\r\n link.href = await this.getUrlArquivo();\r\n link.target = this.target;\r\n\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n }\r\n\r\n}\r\n","import {Directive, ElementRef, Inject, InjectionToken, Input, OnInit, Optional, Self} from '@angular/core';\nimport {ARQUIVO_MANAGER_SERVICE, ArquivoManagerService} from './arquivo-manager.service';\n\nexport const MCL_IMAGE_PADRAO = new InjectionToken('MCL_IMAGE_PADRAO');\n\n@Directive({\n selector: '[mclImagemSrc],[mclImagemBackground]'\n})\nexport class ImagemDirective implements OnInit {\n\n private _path: any;\n\n private _setter: (url) => any;\n\n private backgroundSetter = (url) => {\n this.element.nativeElement.style.backgroundImage = `url(${url})`;\n };\n\n private srcSetter = (url) => {\n this.element.nativeElement.src = url;\n };\n\n constructor(\n @Inject(MCL_IMAGE_PADRAO) @Optional() private _padrao: string,\n @Self() private element: ElementRef,\n @Inject(ARQUIVO_MANAGER_SERVICE) private arquivoManagerService: ArquivoManagerService,\n ) {\n }\n\n @Input('mclImagemSrc')\n set imagemSrc(imagem: string | undefined) {\n this._setter = this.srcSetter;\n\n if (imagem) {\n if (this._path !== imagem) {\n this._path = imagem;\n this.setPath();\n }\n } else {\n this._setter(this._padrao);\n }\n }\n\n @Input('mclImagemBackground')\n set imagemBackground(imagem: string | undefined) {\n this._setter = this.backgroundSetter;\n\n if (imagem) {\n if (this._path !== imagem) {\n this._path = imagem;\n this.setPath();\n }\n } else {\n this._setter(this._padrao);\n }\n }\n\n @Input() set padrao(padrao: string) {\n this._padrao = padrao;\n\n if (this._setter) {\n this._setter(this.padrao);\n }\n }\n\n private async setPath() {\n const path = typeof this._path === 'string' ? this._path : this._path.path;\n if (path) {\n let url;\n if (path.startsWith('http://') || this._path.startsWith('https://')) {\n url = path;\n } else {\n url = await this.arquivoManagerService.downloadURL(path).toPromise();\n }\n this._setter(url);\n }\n }\n\n ngOnInit() {\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {PreviewArquivoComponent} from './preview-arquivo/preview-arquivo.component';\nimport {DownloadArquivoDirective} from './download-arquivo.directive';\nimport {MatIconModule} from '@angular/material/icon';\nimport {PdfViewerModule} from 'ng2-pdf-viewer';\nimport {DialogPreviewArquivoComponent} from './preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {MatProgressSpinnerModule} from '@angular/material/progress-spinner';\nimport {MatButtonModule} from '@angular/material/button';\nimport {ImageViewerModule} from '@jmcrommen/ngx-image-viewer';\nimport {ImagemDirective} from './imagem.directive';\n\n\n@NgModule({\n declarations: [PreviewArquivoComponent, DownloadArquivoDirective, DialogPreviewArquivoComponent, ImagemDirective],\n exports: [PreviewArquivoComponent, DownloadArquivoDirective],\n imports: [\n CommonModule,\n MatIconModule,\n PdfViewerModule,\n MatDialogModule,\n MatProgressSpinnerModule,\n MatButtonModule,\n ImageViewerModule\n ]\n})\nexport class ArquivoModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAGa,uBAAuB,GAAG,IAAI,cAAc,CAAC,yBAAyB;;MCYtE,6BAA6B;IAIxC,YACmC,YAA0B,EAClB,cAAqC;QAD7C,iBAAY,GAAZ,YAAY,CAAc;QAClB,mBAAc,GAAd,cAAc,CAAuB;QAJhF,gBAAW,GAAG,IAAI,CAAC;KAMlB;IAED,QAAQ;QACN,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;YACzB,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;KACF;IAED,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;KAC9B;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;KAC/B;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;KAChC;IAED,WAAW,CAAC,MAAM;QAChB,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE;YAC9B,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;KACF;IAED,gBAAgB,CAAC,CAAe;QAC9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;KAC1B;IAED,QAAQ;QACN,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,EAAE;YAChC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;YAEzC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC;YACrB,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;YAEvB,QAAQ,CAAC,IAAI,CAAC,WAA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