@main-class/componentes 1.19.2 → 2.0.4
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/src/arquivo.module.d.ts +15 -0
- package/arquivo/src/download-arquivo.directive.d.ts +4 -1
- package/arquivo/src/imagem.directive.d.ts +3 -0
- package/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +3 -0
- package/arquivo/src/preview-arquivo/preview-arquivo.component.d.ts +4 -1
- package/core/src/core.module.d.ts +5 -0
- package/core/src/criptografia/criptografia.service.d.ts +3 -0
- package/core/src/mensageria/mensageria.service.d.ts +3 -0
- package/core/src/mobile/mobile.service.d.ts +3 -0
- package/core/src/validator/valida-modulo11.service.d.ts +3 -0
- package/crud/src/abstract-consulta-component.d.ts +3 -0
- package/crud/src/abstract-consulta-paginada-component.d.ts +3 -0
- package/crud/src/abstract-edicao-component.d.ts +3 -0
- package/date/src/date.module.d.ts +7 -0
- package/date/src/validator/data-validator.directive.d.ts +3 -0
- package/date/src/validator/futuro.directive.d.ts +3 -0
- package/dialog/src/dialog-confirmacao/dialog-confirmacao.component.d.ts +3 -0
- package/dialog/src/dialog-iframe/dialog-iframe.component.d.ts +3 -0
- package/dialog/src/dialog.module.d.ts +14 -0
- package/dialog/src/dialog.service.d.ts +3 -0
- package/esm2020/arquivo/src/arquivo.module.mjs +47 -0
- package/esm2020/arquivo/src/download-arquivo.directive.mjs +46 -0
- package/esm2020/arquivo/src/imagem.directive.mjs +89 -0
- package/esm2020/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.mjs +65 -0
- package/esm2020/arquivo/src/preview-arquivo/preview-arquivo.component.mjs +139 -0
- package/esm2020/core/src/core.module.mjs +32 -0
- package/esm2020/core/src/criptografia/criptografia.service.mjs +16 -0
- package/esm2020/core/src/mensageria/mensageria.service.mjs +57 -0
- package/esm2020/core/src/mobile/mobile.service.mjs +43 -0
- package/esm2020/core/src/validator/valida-modulo11.service.mjs +95 -0
- package/esm2020/crud/src/abstract-consulta-component.mjs +55 -0
- package/esm2020/crud/src/abstract-consulta-paginada-component.mjs +45 -0
- package/esm2020/crud/src/abstract-edicao-component.mjs +30 -0
- package/esm2020/crud/src/abstract-edicao-modal-component.mjs +19 -0
- package/esm2020/date/src/date.module.mjs +25 -0
- package/esm2020/date/src/validator/data-validator.directive.mjs +105 -0
- package/esm2020/date/src/validator/futuro.directive.mjs +33 -0
- package/esm2020/dialog/src/dialog-confirmacao/dialog-confirmacao.component.mjs +44 -0
- package/esm2020/dialog/src/dialog-iframe/dialog-iframe.component.mjs +60 -0
- package/esm2020/dialog/src/dialog.module.mjs +53 -0
- package/esm2020/dialog/src/dialog.service.mjs +53 -0
- package/esm2020/form/src/form.component.mjs +106 -0
- package/esm2020/form/src/form.module.mjs +36 -0
- package/esm2020/form/src/mensagens-erro/mensagens-erro.component.mjs +33 -0
- package/esm2020/form/src/single-click.directive.mjs +35 -0
- package/esm2020/input/main-class-componentes-input.mjs +5 -0
- package/esm2020/input/src/abstract-mat-form-field-control.mjs +116 -0
- package/esm2020/input/src/input-datetime/input-datetime.component.mjs +130 -0
- package/esm2020/input/src/input-datetime/input-datetime.module.mjs +101 -0
- package/esm2020/input/src/input-fileupload/input-fileupload.component.mjs +355 -0
- package/esm2020/input/src/input-fileupload/input-fileupload.directive.mjs +37 -0
- package/esm2020/input/src/input-fileupload/input-fileupload.module.mjs +57 -0
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.mjs +29 -0
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.component.mjs +78 -0
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.module.mjs +33 -0
- package/esm2020/input/src/option-checkbox/all-option-checkbox.component.mjs +38 -0
- package/esm2020/input/src/option-checkbox/option-checkbox-group.component.mjs +80 -0
- package/esm2020/input/src/option-checkbox/option-checkbox.component.mjs +62 -0
- package/esm2020/input/src/option-checkbox/option-checkbox.module.mjs +39 -0
- package/esm2020/input/src/option-checkbox/option-checkbox.service.mjs +54 -0
- package/esm2020/input/src/select-chips/select-chips.component.mjs +202 -0
- package/esm2020/input/src/select-chips/select-chips.module.mjs +40 -0
- package/esm2020/input/src/select-item/select-item.component.mjs +19 -0
- package/esm2020/input/src/select-item/select-item.module.mjs +20 -0
- package/esm2020/input/src/select-many-checkbox/select-many-checkbox.component.mjs +170 -0
- package/esm2020/input/src/select-many-checkbox/select-many-checkbox.module.mjs +32 -0
- package/esm2020/input/src/select-radio/select-radio.component.mjs +143 -0
- package/esm2020/input/src/select-radio/select-radio.module.mjs +32 -0
- package/esm2020/loader/src/loader.component.mjs +125 -0
- package/esm2020/loader/src/loader.module.mjs +37 -0
- package/esm2020/loader/src/loader.service.mjs +72 -0
- package/esm2020/misc/src/cnpj/cnpj-model.directive.mjs +17 -0
- package/esm2020/misc/src/cnpj/cnpj.directive.mjs +36 -0
- package/esm2020/misc/src/cnpj/cnpj.module.mjs +26 -0
- package/esm2020/misc/src/cnpj/cnpjs.pipe.mjs +19 -0
- package/esm2020/misc/src/cpf/cpf-model.directive.mjs +17 -0
- package/esm2020/misc/src/cpf/cpf.directive.mjs +36 -0
- package/esm2020/misc/src/cpf/cpf.module.mjs +24 -0
- package/esm2020/misc/src/cpf/cpf.pipe.mjs +19 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj-model.directive.mjs +29 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.directive.mjs +37 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.module.mjs +24 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.pipe.mjs +22 -0
- package/esm2020/misc/src/info/info.component.mjs +20 -0
- package/esm2020/misc/src/info/info.module.mjs +24 -0
- package/{esm2015/misc/src/monetario/monetario-mask.js → esm2020/misc/src/monetario/monetario-mask.mjs} +0 -2
- package/esm2020/misc/src/monetario/monetario-model.directive.mjs +133 -0
- package/esm2020/misc/src/monetario/monetario.module.mjs +21 -0
- package/esm2020/misc/src/monetario/monetario.pipe.mjs +17 -0
- package/{esm2015/misc/src/porcentagem/porcentagem-mask.js → esm2020/misc/src/porcentagem/porcentagem-mask.mjs} +0 -2
- package/esm2020/misc/src/porcentagem/porcentagem-model.directive.mjs +108 -0
- package/esm2020/misc/src/porcentagem/porcentagem.module.mjs +21 -0
- package/esm2020/misc/src/porcentagem/porcentagem.pipe.mjs +17 -0
- package/esm2020/misc/src/telefone/telefone-model.directive.mjs +29 -0
- package/esm2020/misc/src/telefone/telefone.module.mjs +25 -0
- package/esm2020/misc/src/telefone/telefone.pipe.mjs +37 -0
- package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.directive.mjs +25 -0
- package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.module.mjs +20 -0
- package/esm2020/model/src/masked-model.directive.mjs +155 -0
- package/esm2020/model/src/model.module.mjs +24 -0
- package/esm2020/pipe/src/nome-resumido.pipe.mjs +20 -0
- package/esm2020/pipe/src/pipe.module.mjs +24 -0
- package/esm2020/scroll/src/scroll-container/scroll-container.component.mjs +72 -0
- package/esm2020/scroll/src/scroll.module.mjs +22 -0
- package/{esm2015/table/main-class-componentes-table.js → esm2020/table/main-class-componentes-table.mjs} +1 -2
- package/esm2020/table/src/column/column-cell.directive.mjs +16 -0
- package/esm2020/table/src/column/column-footer.directive.mjs +16 -0
- package/esm2020/table/src/column/column-header.directive.mjs +16 -0
- package/esm2020/table/src/column/column.directive.mjs +37 -0
- package/esm2020/table/src/infinite-table/infinite-table.component.mjs +95 -0
- package/esm2020/table/src/paginated-table/paginated-table.component.mjs +52 -0
- package/esm2020/table/src/paginator/paginator.component.mjs +19 -0
- package/esm2020/table/src/table/table.component.mjs +127 -0
- package/esm2020/table/src/table.module.mjs +120 -0
- package/esm2020/table/src/td/td.component.mjs +18 -0
- package/esm2020/table/src/th/th.component.mjs +18 -0
- package/fesm2015/main-class-componentes-arquivo.mjs +389 -0
- package/fesm2015/main-class-componentes-arquivo.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-core.js → main-class-componentes-core.mjs} +43 -37
- package/fesm2015/main-class-componentes-core.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-crud.js → main-class-componentes-crud.mjs} +32 -22
- package/fesm2015/main-class-componentes-crud.mjs.map +1 -0
- package/fesm2015/main-class-componentes-date.mjs +162 -0
- package/fesm2015/main-class-componentes-date.mjs.map +1 -0
- package/fesm2015/main-class-componentes-dialog.mjs +206 -0
- package/fesm2015/main-class-componentes-dialog.mjs.map +1 -0
- package/fesm2015/main-class-componentes-form.mjs +209 -0
- package/fesm2015/main-class-componentes-form.mjs.map +1 -0
- package/fesm2015/main-class-componentes-input.mjs +1876 -0
- package/fesm2015/main-class-componentes-input.mjs.map +1 -0
- package/fesm2015/main-class-componentes-loader.mjs +236 -0
- package/fesm2015/main-class-componentes-loader.mjs.map +1 -0
- package/fesm2015/main-class-componentes-misc.mjs +787 -0
- package/fesm2015/main-class-componentes-misc.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-model.js → main-class-componentes-model.mjs} +46 -36
- package/fesm2015/main-class-componentes-model.mjs.map +1 -0
- package/fesm2015/main-class-componentes-pipe.mjs +48 -0
- package/fesm2015/main-class-componentes-pipe.mjs.map +1 -0
- package/fesm2015/main-class-componentes-scroll.mjs +98 -0
- package/fesm2015/main-class-componentes-scroll.mjs.map +1 -0
- package/fesm2015/main-class-componentes-table.mjs +518 -0
- package/fesm2015/main-class-componentes-table.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-util.js → main-class-componentes-util.mjs} +1 -1
- package/fesm2015/main-class-componentes-util.mjs.map +1 -0
- package/fesm2015/{main-class-componentes.js → main-class-componentes.mjs} +1 -1
- package/fesm2015/main-class-componentes.mjs.map +1 -0
- package/fesm2020/main-class-componentes-arquivo.mjs +372 -0
- package/fesm2020/main-class-componentes-arquivo.mjs.map +1 -0
- package/fesm2020/main-class-componentes-core.mjs +238 -0
- package/fesm2020/main-class-componentes-core.mjs.map +1 -0
- package/fesm2020/main-class-componentes-crud.mjs +151 -0
- package/fesm2020/main-class-componentes-crud.mjs.map +1 -0
- package/fesm2020/main-class-componentes-date.mjs +162 -0
- package/fesm2020/main-class-componentes-date.mjs.map +1 -0
- package/fesm2020/main-class-componentes-dialog.mjs +201 -0
- package/fesm2020/main-class-componentes-dialog.mjs.map +1 -0
- package/fesm2020/main-class-componentes-form.mjs +204 -0
- package/fesm2020/main-class-componentes-form.mjs.map +1 -0
- package/fesm2020/main-class-componentes-input.mjs +1860 -0
- package/fesm2020/main-class-componentes-input.mjs.map +1 -0
- package/fesm2020/main-class-componentes-loader.mjs +234 -0
- package/fesm2020/main-class-componentes-loader.mjs.map +1 -0
- package/fesm2020/main-class-componentes-misc.mjs +785 -0
- package/fesm2020/main-class-componentes-misc.mjs.map +1 -0
- package/fesm2020/main-class-componentes-model.mjs +183 -0
- package/fesm2020/main-class-componentes-model.mjs.map +1 -0
- package/fesm2020/main-class-componentes-pipe.mjs +48 -0
- package/fesm2020/main-class-componentes-pipe.mjs.map +1 -0
- package/fesm2020/main-class-componentes-scroll.mjs +98 -0
- package/fesm2020/main-class-componentes-scroll.mjs.map +1 -0
- package/fesm2020/main-class-componentes-table.mjs +510 -0
- package/fesm2020/main-class-componentes-table.mjs.map +1 -0
- package/fesm2020/main-class-componentes-util.mjs +18 -0
- package/fesm2020/main-class-componentes-util.mjs.map +1 -0
- package/fesm2020/main-class-componentes.mjs +9 -0
- package/fesm2020/main-class-componentes.mjs.map +1 -0
- package/form/src/form.component.d.ts +3 -0
- package/form/src/form.module.d.ts +10 -0
- package/form/src/mensagens-erro/mensagens-erro.component.d.ts +3 -0
- package/form/src/single-click.directive.d.ts +3 -0
- package/{main-class-componentes.d.ts → index.d.ts} +1 -0
- package/input/src/abstract-mat-form-field-control.d.ts +3 -0
- package/input/src/input-datetime/input-datetime.component.d.ts +5 -2
- package/input/src/input-datetime/input-datetime.module.d.ts +11 -0
- package/input/src/input-fileupload/input-fileupload.component.d.ts +3 -0
- package/input/src/input-fileupload/input-fileupload.directive.d.ts +3 -0
- package/input/src/input-fileupload/input-fileupload.module.d.ts +16 -0
- package/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.d.ts +3 -0
- package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +3 -0
- package/input/src/input-telefone-internacional/input-telefone-internacional.module.d.ts +9 -0
- package/input/src/option-checkbox/all-option-checkbox.component.d.ts +3 -0
- package/input/src/option-checkbox/option-checkbox-group.component.d.ts +3 -0
- package/input/src/option-checkbox/option-checkbox.component.d.ts +3 -0
- package/input/src/option-checkbox/option-checkbox.module.d.ts +12 -0
- package/input/src/option-checkbox/option-checkbox.service.d.ts +3 -0
- package/input/src/select-chips/select-chips.component.d.ts +9 -6
- package/input/src/select-chips/select-chips.module.d.ts +11 -0
- package/input/src/select-item/select-item.component.d.ts +3 -0
- package/input/src/select-item/select-item.module.d.ts +6 -0
- package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +3 -0
- package/input/src/select-many-checkbox/select-many-checkbox.module.d.ts +9 -0
- package/input/src/select-radio/select-radio.component.d.ts +3 -0
- package/input/src/select-radio/select-radio.module.d.ts +9 -0
- package/loader/src/loader.component.d.ts +3 -0
- package/loader/src/loader.module.d.ts +9 -0
- package/loader/src/loader.service.d.ts +3 -0
- package/misc/src/cnpj/cnpj-model.directive.d.ts +3 -0
- package/misc/src/cnpj/cnpj.directive.d.ts +3 -0
- package/misc/src/cnpj/cnpj.module.d.ts +9 -0
- package/misc/src/cnpj/cnpjs.pipe.d.ts +3 -0
- package/misc/src/cpf/cpf-model.directive.d.ts +3 -0
- package/misc/src/cpf/cpf.directive.d.ts +3 -0
- package/misc/src/cpf/cpf.module.d.ts +8 -0
- package/misc/src/cpf/cpf.pipe.d.ts +3 -0
- package/misc/src/cpf-cnpj/cpf-cnpj-model.directive.d.ts +3 -0
- package/misc/src/cpf-cnpj/cpf-cnpj.directive.d.ts +3 -0
- package/misc/src/cpf-cnpj/cpf-cnpj.module.d.ts +8 -0
- package/misc/src/cpf-cnpj/cpf-cnpj.pipe.d.ts +3 -0
- package/misc/src/info/info.component.d.ts +3 -0
- package/misc/src/info/info.module.d.ts +7 -0
- package/misc/src/monetario/monetario-model.directive.d.ts +3 -0
- package/misc/src/monetario/monetario.module.d.ts +7 -0
- package/misc/src/monetario/monetario.pipe.d.ts +3 -0
- package/misc/src/porcentagem/porcentagem-model.directive.d.ts +3 -0
- package/misc/src/porcentagem/porcentagem.module.d.ts +7 -0
- package/misc/src/porcentagem/porcentagem.pipe.d.ts +3 -0
- package/misc/src/telefone/telefone-model.directive.d.ts +3 -0
- package/misc/src/telefone/telefone.module.d.ts +8 -0
- package/misc/src/telefone/telefone.pipe.d.ts +3 -0
- package/misc/src/unsafe-inner-html/unsafe-inner-html.directive.d.ts +3 -0
- package/misc/src/unsafe-inner-html/unsafe-inner-html.module.d.ts +6 -0
- package/model/src/masked-model.directive.d.ts +3 -0
- package/model/src/model.module.d.ts +6 -0
- package/package.json +132 -8
- package/pipe/src/nome-resumido.pipe.d.ts +3 -0
- package/pipe/src/pipe.module.d.ts +6 -0
- package/scroll/src/scroll-container/scroll-container.component.d.ts +3 -0
- package/scroll/src/scroll.module.d.ts +6 -0
- package/table/src/column/column-cell.directive.d.ts +3 -0
- package/table/src/column/column-footer.directive.d.ts +3 -0
- package/table/src/column/column-header.directive.d.ts +3 -0
- package/table/src/column/column.directive.d.ts +3 -0
- package/table/src/infinite-table/infinite-table.component.d.ts +3 -0
- package/table/src/paginated-table/paginated-table.component.d.ts +3 -0
- package/table/src/paginator/paginator.component.d.ts +3 -0
- package/table/src/table/table.component.d.ts +3 -0
- package/table/src/table.module.d.ts +24 -0
- package/table/src/td/td.component.d.ts +3 -0
- package/table/src/th/th.component.d.ts +3 -0
- package/arquivo/main-class-componentes-arquivo.d.ts +0 -4
- package/arquivo/main-class-componentes-arquivo.metadata.json +0 -1
- package/arquivo/package.json +0 -11
- package/bundles/main-class-componentes-arquivo.umd.js +0 -687
- package/bundles/main-class-componentes-arquivo.umd.js.map +0 -1
- package/bundles/main-class-componentes-arquivo.umd.min.js +0 -16
- package/bundles/main-class-componentes-arquivo.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-core.umd.js +0 -252
- package/bundles/main-class-componentes-core.umd.js.map +0 -1
- package/bundles/main-class-componentes-core.umd.min.js +0 -2
- package/bundles/main-class-componentes-core.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-crud.umd.js +0 -543
- package/bundles/main-class-componentes-crud.umd.js.map +0 -1
- package/bundles/main-class-componentes-crud.umd.min.js +0 -16
- package/bundles/main-class-componentes-crud.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-date.umd.js +0 -185
- package/bundles/main-class-componentes-date.umd.js.map +0 -1
- package/bundles/main-class-componentes-date.umd.min.js +0 -2
- package/bundles/main-class-componentes-date.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-dialog.umd.js +0 -206
- package/bundles/main-class-componentes-dialog.umd.js.map +0 -1
- package/bundles/main-class-componentes-dialog.umd.min.js +0 -2
- package/bundles/main-class-componentes-dialog.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-form.umd.js +0 -211
- package/bundles/main-class-componentes-form.umd.js.map +0 -1
- package/bundles/main-class-componentes-form.umd.min.js +0 -2
- package/bundles/main-class-componentes-form.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-input.umd.js +0 -2244
- package/bundles/main-class-componentes-input.umd.js.map +0 -1
- package/bundles/main-class-componentes-input.umd.min.js +0 -17
- package/bundles/main-class-componentes-input.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-loader.umd.js +0 -233
- package/bundles/main-class-componentes-loader.umd.js.map +0 -1
- package/bundles/main-class-componentes-loader.umd.min.js +0 -2
- package/bundles/main-class-componentes-loader.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-misc.umd.js +0 -1122
- package/bundles/main-class-componentes-misc.umd.js.map +0 -1
- package/bundles/main-class-componentes-misc.umd.min.js +0 -16
- package/bundles/main-class-componentes-misc.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-model.umd.js +0 -196
- package/bundles/main-class-componentes-model.umd.js.map +0 -1
- package/bundles/main-class-componentes-model.umd.min.js +0 -2
- package/bundles/main-class-componentes-model.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-pipe.umd.js +0 -58
- package/bundles/main-class-componentes-pipe.umd.js.map +0 -1
- package/bundles/main-class-componentes-pipe.umd.min.js +0 -2
- package/bundles/main-class-componentes-pipe.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-scroll.umd.js +0 -106
- package/bundles/main-class-componentes-scroll.umd.js.map +0 -1
- package/bundles/main-class-componentes-scroll.umd.min.js +0 -2
- package/bundles/main-class-componentes-scroll.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-table.umd.js +0 -787
- package/bundles/main-class-componentes-table.umd.js.map +0 -1
- package/bundles/main-class-componentes-table.umd.min.js +0 -17
- package/bundles/main-class-componentes-table.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-util.umd.js +0 -31
- package/bundles/main-class-componentes-util.umd.js.map +0 -1
- package/bundles/main-class-componentes-util.umd.min.js +0 -2
- package/bundles/main-class-componentes-util.umd.min.js.map +0 -1
- package/bundles/main-class-componentes.umd.js +0 -16
- package/bundles/main-class-componentes.umd.js.map +0 -1
- package/bundles/main-class-componentes.umd.min.js +0 -2
- package/bundles/main-class-componentes.umd.min.js.map +0 -1
- package/core/main-class-componentes-core.d.ts +0 -4
- package/core/main-class-componentes-core.metadata.json +0 -1
- package/core/package.json +0 -11
- package/crud/main-class-componentes-crud.d.ts +0 -4
- package/crud/main-class-componentes-crud.metadata.json +0 -1
- package/crud/package.json +0 -11
- package/date/main-class-componentes-date.d.ts +0 -4
- package/date/main-class-componentes-date.metadata.json +0 -1
- package/date/package.json +0 -11
- package/dialog/main-class-componentes-dialog.d.ts +0 -4
- package/dialog/main-class-componentes-dialog.metadata.json +0 -1
- package/dialog/package.json +0 -11
- package/esm2015/arquivo/src/arquivo.module.js +0 -30
- package/esm2015/arquivo/src/download-arquivo.directive.js +0 -44
- package/esm2015/arquivo/src/imagem.directive.js +0 -80
- package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
- package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +0 -136
- package/esm2015/core/src/core.module.js +0 -27
- package/esm2015/core/src/criptografia/criptografia.service.js +0 -13
- package/esm2015/core/src/mensageria/mensageria.service.js +0 -48
- package/esm2015/core/src/mobile/mobile.service.js +0 -45
- package/esm2015/core/src/validator/valida-modulo11.service.js +0 -92
- package/esm2015/crud/src/abstract-consulta-component.js +0 -60
- package/esm2015/crud/src/abstract-consulta-paginada-component.js +0 -48
- package/esm2015/crud/src/abstract-edicao-component.js +0 -29
- package/esm2015/crud/src/abstract-edicao-modal-component.js +0 -24
- package/esm2015/date/src/date.module.js +0 -19
- package/esm2015/date/src/validator/data-validator.directive.js +0 -97
- package/esm2015/date/src/validator/futuro.directive.js +0 -26
- package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
- package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +0 -59
- package/esm2015/dialog/src/dialog.module.js +0 -28
- package/esm2015/dialog/src/dialog.service.js +0 -55
- package/esm2015/form/src/form.component.js +0 -103
- package/esm2015/form/src/form.module.js +0 -25
- package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +0 -31
- package/esm2015/form/src/single-click.directive.js +0 -35
- package/esm2015/input/main-class-componentes-input.js +0 -6
- package/esm2015/input/src/abstract-mat-form-field-control.js +0 -110
- package/esm2015/input/src/input-datetime/input-datetime.component.js +0 -114
- package/esm2015/input/src/input-datetime/input-datetime.module.js +0 -60
- package/esm2015/input/src/input-fileupload/input-fileupload.component.js +0 -324
- package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +0 -34
- package/esm2015/input/src/input-fileupload/input-fileupload.module.js +0 -34
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
- package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +0 -36
- package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +0 -71
- package/esm2015/input/src/option-checkbox/option-checkbox.component.js +0 -59
- package/esm2015/input/src/option-checkbox/option-checkbox.module.js +0 -23
- package/esm2015/input/src/option-checkbox/option-checkbox.service.js +0 -52
- package/esm2015/input/src/select-chips/select-chips.component.js +0 -177
- package/esm2015/input/src/select-chips/select-chips.module.js +0 -25
- package/esm2015/input/src/select-item/select-item.component.js +0 -20
- package/esm2015/input/src/select-item/select-item.module.js +0 -15
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +0 -150
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +0 -21
- package/esm2015/input/src/select-radio/select-radio.component.js +0 -124
- package/esm2015/input/src/select-radio/select-radio.module.js +0 -21
- package/esm2015/loader/src/loader.component.js +0 -112
- package/esm2015/loader/src/loader.module.js +0 -21
- package/esm2015/loader/src/loader.service.js +0 -70
- package/esm2015/misc/src/cnpj/cnpj-model.directive.js +0 -13
- package/esm2015/misc/src/cnpj/cnpj.directive.js +0 -31
- package/esm2015/misc/src/cnpj/cnpj.module.js +0 -19
- package/esm2015/misc/src/cnpj/cnpjs.pipe.js +0 -15
- package/esm2015/misc/src/cpf/cpf-model.directive.js +0 -13
- package/esm2015/misc/src/cpf/cpf.directive.js +0 -31
- package/esm2015/misc/src/cpf/cpf.module.js +0 -19
- package/esm2015/misc/src/cpf/cpf.pipe.js +0 -15
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +0 -32
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +0 -19
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
- package/esm2015/misc/src/info/info.component.js +0 -20
- package/esm2015/misc/src/info/info.module.js +0 -17
- package/esm2015/misc/src/monetario/monetario-model.directive.js +0 -124
- package/esm2015/misc/src/monetario/monetario.module.js +0 -16
- package/esm2015/misc/src/monetario/monetario.pipe.js +0 -13
- package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +0 -99
- package/esm2015/misc/src/porcentagem/porcentagem.module.js +0 -16
- package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +0 -13
- package/esm2015/misc/src/telefone/telefone-model.directive.js +0 -25
- package/esm2015/misc/src/telefone/telefone.module.js +0 -18
- package/esm2015/misc/src/telefone/telefone.pipe.js +0 -33
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
- package/esm2015/model/src/masked-model.directive.js +0 -149
- package/esm2015/model/src/model.module.js +0 -19
- package/esm2015/pipe/src/nome-resumido.pipe.js +0 -16
- package/esm2015/pipe/src/pipe.module.js +0 -19
- package/esm2015/scroll/src/scroll-container/scroll-container.component.js +0 -69
- package/esm2015/scroll/src/scroll.module.js +0 -17
- package/esm2015/table/src/column/column-cell.directive.js +0 -15
- package/esm2015/table/src/column/column-footer.directive.js +0 -15
- package/esm2015/table/src/column/column-header.directive.js +0 -15
- package/esm2015/table/src/column/column.directive.js +0 -28
- package/esm2015/table/src/infinite-table/infinite-table.component.js +0 -92
- package/esm2015/table/src/paginated-table/paginated-table.component.js +0 -43
- package/esm2015/table/src/paginator/paginator.component.js +0 -12
- package/esm2015/table/src/table/table.component.js +0 -119
- package/esm2015/table/src/table.module.js +0 -74
- package/esm2015/table/src/td/td.component.js +0 -19
- package/esm2015/table/src/th/th.component.js +0 -19
- package/fesm2015/main-class-componentes-arquivo.js +0 -338
- package/fesm2015/main-class-componentes-arquivo.js.map +0 -1
- package/fesm2015/main-class-componentes-core.js.map +0 -1
- package/fesm2015/main-class-componentes-crud.js.map +0 -1
- package/fesm2015/main-class-componentes-date.js +0 -143
- package/fesm2015/main-class-componentes-date.js.map +0 -1
- package/fesm2015/main-class-componentes-dialog.js +0 -177
- package/fesm2015/main-class-componentes-dialog.js.map +0 -1
- package/fesm2015/main-class-componentes-form.js +0 -191
- package/fesm2015/main-class-componentes-form.js.map +0 -1
- package/fesm2015/main-class-componentes-input.js +0 -1604
- package/fesm2015/main-class-componentes-input.js.map +0 -1
- package/fesm2015/main-class-componentes-loader.js +0 -206
- package/fesm2015/main-class-componentes-loader.js.map +0 -1
- package/fesm2015/main-class-componentes-misc.js +0 -688
- package/fesm2015/main-class-componentes-misc.js.map +0 -1
- package/fesm2015/main-class-componentes-model.js.map +0 -1
- package/fesm2015/main-class-componentes-pipe.js +0 -40
- package/fesm2015/main-class-componentes-pipe.js.map +0 -1
- package/fesm2015/main-class-componentes-scroll.js +0 -91
- package/fesm2015/main-class-componentes-scroll.js.map +0 -1
- package/fesm2015/main-class-componentes-table.js +0 -446
- package/fesm2015/main-class-componentes-table.js.map +0 -1
- package/fesm2015/main-class-componentes-util.js.map +0 -1
- package/fesm2015/main-class-componentes.js.map +0 -1
- package/form/main-class-componentes-form.d.ts +0 -4
- package/form/main-class-componentes-form.metadata.json +0 -1
- package/form/package.json +0 -11
- package/input/main-class-componentes-input.d.ts +0 -5
- package/input/main-class-componentes-input.metadata.json +0 -1
- package/input/package.json +0 -11
- package/loader/main-class-componentes-loader.d.ts +0 -4
- package/loader/main-class-componentes-loader.metadata.json +0 -1
- package/loader/package.json +0 -11
- package/main-class-componentes.metadata.json +0 -1
- package/misc/main-class-componentes-misc.d.ts +0 -4
- package/misc/main-class-componentes-misc.metadata.json +0 -1
- package/misc/package.json +0 -11
- package/model/main-class-componentes-model.d.ts +0 -4
- package/model/main-class-componentes-model.metadata.json +0 -1
- package/model/package.json +0 -11
- package/pipe/main-class-componentes-pipe.d.ts +0 -4
- package/pipe/main-class-componentes-pipe.metadata.json +0 -1
- package/pipe/package.json +0 -11
- package/scroll/main-class-componentes-scroll.d.ts +0 -4
- package/scroll/main-class-componentes-scroll.metadata.json +0 -1
- package/scroll/package.json +0 -11
- package/table/main-class-componentes-table.d.ts +0 -5
- package/table/main-class-componentes-table.metadata.json +0 -1
- package/table/package.json +0 -11
- package/util/main-class-componentes-util.d.ts +0 -4
- package/util/main-class-componentes-util.metadata.json +0 -1
- package/util/package.json +0 -11
- /package/{esm2015/arquivo/index.js → esm2020/arquivo/index.mjs} +0 -0
- /package/{esm2015/arquivo/main-class-componentes-arquivo.js → esm2020/arquivo/main-class-componentes-arquivo.mjs} +0 -0
- /package/{esm2015/arquivo/src/arquivo-manager.service.js → esm2020/arquivo/src/arquivo-manager.service.mjs} +0 -0
- /package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
- /package/{esm2015/core/main-class-componentes-core.js → esm2020/core/main-class-componentes-core.mjs} +0 -0
- /package/{esm2015/crud/index.js → esm2020/crud/index.mjs} +0 -0
- /package/{esm2015/crud/main-class-componentes-crud.js → esm2020/crud/main-class-componentes-crud.mjs} +0 -0
- /package/{esm2015/date/index.js → esm2020/date/index.mjs} +0 -0
- /package/{esm2015/date/main-class-componentes-date.js → esm2020/date/main-class-componentes-date.mjs} +0 -0
- /package/{esm2015/dialog/index.js → esm2020/dialog/index.mjs} +0 -0
- /package/{esm2015/dialog/main-class-componentes-dialog.js → esm2020/dialog/main-class-componentes-dialog.mjs} +0 -0
- /package/{esm2015/form/index.js → esm2020/form/index.mjs} +0 -0
- /package/{esm2015/form/main-class-componentes-form.js → esm2020/form/main-class-componentes-form.mjs} +0 -0
- /package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
- /package/{esm2015/input/src/option-checkbox/node-pool.js → esm2020/input/src/option-checkbox/node-pool.mjs} +0 -0
- /package/{esm2015/input/src/option-checkbox/option-node.js → esm2020/input/src/option-checkbox/option-node.mjs} +0 -0
- /package/{esm2015/loader/index.js → esm2020/loader/index.mjs} +0 -0
- /package/{esm2015/loader/main-class-componentes-loader.js → esm2020/loader/main-class-componentes-loader.mjs} +0 -0
- /package/{esm2015/main-class-componentes.js → esm2020/main-class-componentes.mjs} +0 -0
- /package/{esm2015/misc/index.js → esm2020/misc/index.mjs} +0 -0
- /package/{esm2015/misc/main-class-componentes-misc.js → esm2020/misc/main-class-componentes-misc.mjs} +0 -0
- /package/{esm2015/model/index.js → esm2020/model/index.mjs} +0 -0
- /package/{esm2015/model/main-class-componentes-model.js → esm2020/model/main-class-componentes-model.mjs} +0 -0
- /package/{esm2015/pipe/index.js → esm2020/pipe/index.mjs} +0 -0
- /package/{esm2015/pipe/main-class-componentes-pipe.js → esm2020/pipe/main-class-componentes-pipe.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- /package/{esm2015/scroll/index.js → esm2020/scroll/index.mjs} +0 -0
- /package/{esm2015/scroll/main-class-componentes-scroll.js → esm2020/scroll/main-class-componentes-scroll.mjs} +0 -0
- /package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- /package/{esm2015/table/src/paginator-i18n.js → esm2020/table/src/paginator-i18n.mjs} +0 -0
- /package/{esm2015/util/index.js → esm2020/util/index.mjs} +0 -0
- /package/{esm2015/util/main-class-componentes-util.js → esm2020/util/main-class-componentes-util.mjs} +0 -0
- /package/{esm2015/util/src/string.util.js → esm2020/util/src/string.util.mjs} +0 -0
|
@@ -1,687 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/dialog'), require('rxjs'), require('@angular/material/icon'), require('ng2-pdf-viewer'), require('@angular/material/progress-spinner'), require('@angular/material/button'), require('@jmcrommen/ngx-image-viewer')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@main-class/componentes/arquivo', ['exports', '@angular/core', '@angular/common', '@angular/material/dialog', 'rxjs', '@angular/material/icon', 'ng2-pdf-viewer', '@angular/material/progress-spinner', '@angular/material/button', '@jmcrommen/ngx-image-viewer'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['main-class'] = global['main-class'] || {}, global['main-class'].componentes = global['main-class'].componentes || {}, global['main-class'].componentes.arquivo = {}), global.ng.core, global.ng.common, global.ng.material.dialog, global.rxjs, global.ng.material.icon, global.ng2PdfViewer, global.ng.material.progressSpinner, global.ng.material.button, global.ngxImageViewer));
|
|
5
|
-
}(this, (function (exports, core, common, dialog, rxjs, icon, ng2PdfViewer, progressSpinner, button, ngxImageViewer) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
10
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
11
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
|
|
13
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
15
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
17
|
-
|
|
18
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
|
-
and limitations under the License.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (b.hasOwnProperty(p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
extendStatics(d, b);
|
|
32
|
-
function __() { this.constructor = d; }
|
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
-
}
|
|
35
|
-
var __assign = function () {
|
|
36
|
-
__assign = Object.assign || function __assign(t) {
|
|
37
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
38
|
-
s = arguments[i];
|
|
39
|
-
for (var p in s)
|
|
40
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
41
|
-
t[p] = s[p];
|
|
42
|
-
}
|
|
43
|
-
return t;
|
|
44
|
-
};
|
|
45
|
-
return __assign.apply(this, arguments);
|
|
46
|
-
};
|
|
47
|
-
function __rest(s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s)
|
|
50
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
-
t[p] = s[p];
|
|
52
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
-
t[p[i]] = s[p[i]];
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
}
|
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
62
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
63
|
-
else
|
|
64
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
65
|
-
if (d = decorators[i])
|
|
66
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
67
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
68
|
-
}
|
|
69
|
-
function __param(paramIndex, decorator) {
|
|
70
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
71
|
-
}
|
|
72
|
-
function __metadata(metadataKey, metadataValue) {
|
|
73
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
74
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
75
|
-
}
|
|
76
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
77
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
78
|
-
function fulfilled(value) { try {
|
|
79
|
-
step(generator.next(value));
|
|
80
|
-
}
|
|
81
|
-
catch (e) {
|
|
82
|
-
reject(e);
|
|
83
|
-
} }
|
|
84
|
-
function rejected(value) { try {
|
|
85
|
-
step(generator["throw"](value));
|
|
86
|
-
}
|
|
87
|
-
catch (e) {
|
|
88
|
-
reject(e);
|
|
89
|
-
} }
|
|
90
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
91
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function __generator(thisArg, body) {
|
|
95
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
96
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
97
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
98
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
99
|
-
function step(op) {
|
|
100
|
-
if (f)
|
|
101
|
-
throw new TypeError("Generator is already executing.");
|
|
102
|
-
while (_)
|
|
103
|
-
try {
|
|
104
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
105
|
-
return t;
|
|
106
|
-
if (y = 0, t)
|
|
107
|
-
op = [op[0] & 2, t.value];
|
|
108
|
-
switch (op[0]) {
|
|
109
|
-
case 0:
|
|
110
|
-
case 1:
|
|
111
|
-
t = op;
|
|
112
|
-
break;
|
|
113
|
-
case 4:
|
|
114
|
-
_.label++;
|
|
115
|
-
return { value: op[1], done: false };
|
|
116
|
-
case 5:
|
|
117
|
-
_.label++;
|
|
118
|
-
y = op[1];
|
|
119
|
-
op = [0];
|
|
120
|
-
continue;
|
|
121
|
-
case 7:
|
|
122
|
-
op = _.ops.pop();
|
|
123
|
-
_.trys.pop();
|
|
124
|
-
continue;
|
|
125
|
-
default:
|
|
126
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
127
|
-
_ = 0;
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
131
|
-
_.label = op[1];
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
135
|
-
_.label = t[1];
|
|
136
|
-
t = op;
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
if (t && _.label < t[2]) {
|
|
140
|
-
_.label = t[2];
|
|
141
|
-
_.ops.push(op);
|
|
142
|
-
break;
|
|
143
|
-
}
|
|
144
|
-
if (t[2])
|
|
145
|
-
_.ops.pop();
|
|
146
|
-
_.trys.pop();
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
op = body.call(thisArg, _);
|
|
150
|
-
}
|
|
151
|
-
catch (e) {
|
|
152
|
-
op = [6, e];
|
|
153
|
-
y = 0;
|
|
154
|
-
}
|
|
155
|
-
finally {
|
|
156
|
-
f = t = 0;
|
|
157
|
-
}
|
|
158
|
-
if (op[0] & 5)
|
|
159
|
-
throw op[1];
|
|
160
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
function __exportStar(m, exports) {
|
|
164
|
-
for (var p in m)
|
|
165
|
-
if (!exports.hasOwnProperty(p))
|
|
166
|
-
exports[p] = m[p];
|
|
167
|
-
}
|
|
168
|
-
function __values(o) {
|
|
169
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
170
|
-
if (m)
|
|
171
|
-
return m.call(o);
|
|
172
|
-
return {
|
|
173
|
-
next: function () {
|
|
174
|
-
if (o && i >= o.length)
|
|
175
|
-
o = void 0;
|
|
176
|
-
return { value: o && o[i++], done: !o };
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
function __read(o, n) {
|
|
181
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
182
|
-
if (!m)
|
|
183
|
-
return o;
|
|
184
|
-
var i = m.call(o), r, ar = [], e;
|
|
185
|
-
try {
|
|
186
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
187
|
-
ar.push(r.value);
|
|
188
|
-
}
|
|
189
|
-
catch (error) {
|
|
190
|
-
e = { error: error };
|
|
191
|
-
}
|
|
192
|
-
finally {
|
|
193
|
-
try {
|
|
194
|
-
if (r && !r.done && (m = i["return"]))
|
|
195
|
-
m.call(i);
|
|
196
|
-
}
|
|
197
|
-
finally {
|
|
198
|
-
if (e)
|
|
199
|
-
throw e.error;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return ar;
|
|
203
|
-
}
|
|
204
|
-
function __spread() {
|
|
205
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
206
|
-
ar = ar.concat(__read(arguments[i]));
|
|
207
|
-
return ar;
|
|
208
|
-
}
|
|
209
|
-
function __spreadArrays() {
|
|
210
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
211
|
-
s += arguments[i].length;
|
|
212
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
213
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
214
|
-
r[k] = a[j];
|
|
215
|
-
return r;
|
|
216
|
-
}
|
|
217
|
-
;
|
|
218
|
-
function __await(v) {
|
|
219
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
220
|
-
}
|
|
221
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
222
|
-
if (!Symbol.asyncIterator)
|
|
223
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
224
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
225
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
226
|
-
function verb(n) { if (g[n])
|
|
227
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
228
|
-
function resume(n, v) { try {
|
|
229
|
-
step(g[n](v));
|
|
230
|
-
}
|
|
231
|
-
catch (e) {
|
|
232
|
-
settle(q[0][3], e);
|
|
233
|
-
} }
|
|
234
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
235
|
-
function fulfill(value) { resume("next", value); }
|
|
236
|
-
function reject(value) { resume("throw", value); }
|
|
237
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
238
|
-
resume(q[0][0], q[0][1]); }
|
|
239
|
-
}
|
|
240
|
-
function __asyncDelegator(o) {
|
|
241
|
-
var i, p;
|
|
242
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
243
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
244
|
-
}
|
|
245
|
-
function __asyncValues(o) {
|
|
246
|
-
if (!Symbol.asyncIterator)
|
|
247
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
248
|
-
var m = o[Symbol.asyncIterator], i;
|
|
249
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
250
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
251
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
252
|
-
}
|
|
253
|
-
function __makeTemplateObject(cooked, raw) {
|
|
254
|
-
if (Object.defineProperty) {
|
|
255
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
cooked.raw = raw;
|
|
259
|
-
}
|
|
260
|
-
return cooked;
|
|
261
|
-
}
|
|
262
|
-
;
|
|
263
|
-
function __importStar(mod) {
|
|
264
|
-
if (mod && mod.__esModule)
|
|
265
|
-
return mod;
|
|
266
|
-
var result = {};
|
|
267
|
-
if (mod != null)
|
|
268
|
-
for (var k in mod)
|
|
269
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
270
|
-
result[k] = mod[k];
|
|
271
|
-
result.default = mod;
|
|
272
|
-
return result;
|
|
273
|
-
}
|
|
274
|
-
function __importDefault(mod) {
|
|
275
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
var ARQUIVO_MANAGER_SERVICE = new core.InjectionToken('ARQUIVO_MANAGER_SERVICE');
|
|
279
|
-
|
|
280
|
-
var DialogPreviewArquivoComponent = /** @class */ (function () {
|
|
281
|
-
function DialogPreviewArquivoComponent(dadosPreview, arquivoService) {
|
|
282
|
-
this.dadosPreview = dadosPreview;
|
|
283
|
-
this.arquivoService = arquivoService;
|
|
284
|
-
this.loadingFile = true;
|
|
285
|
-
}
|
|
286
|
-
DialogPreviewArquivoComponent.prototype.ngOnInit = function () {
|
|
287
|
-
if (this.type === 'image') {
|
|
288
|
-
this.previewCarregado();
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
Object.defineProperty(DialogPreviewArquivoComponent.prototype, "src", {
|
|
292
|
-
get: function () {
|
|
293
|
-
return this.dadosPreview.src;
|
|
294
|
-
},
|
|
295
|
-
enumerable: false,
|
|
296
|
-
configurable: true
|
|
297
|
-
});
|
|
298
|
-
Object.defineProperty(DialogPreviewArquivoComponent.prototype, "type", {
|
|
299
|
-
get: function () {
|
|
300
|
-
return this.dadosPreview.type;
|
|
301
|
-
},
|
|
302
|
-
enumerable: false,
|
|
303
|
-
configurable: true
|
|
304
|
-
});
|
|
305
|
-
Object.defineProperty(DialogPreviewArquivoComponent.prototype, "group", {
|
|
306
|
-
get: function () {
|
|
307
|
-
return this.dadosPreview.group;
|
|
308
|
-
},
|
|
309
|
-
enumerable: false,
|
|
310
|
-
configurable: true
|
|
311
|
-
});
|
|
312
|
-
DialogPreviewArquivoComponent.prototype.handleEvent = function (evento) {
|
|
313
|
-
if (evento.name === 'download') {
|
|
314
|
-
this.download();
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
DialogPreviewArquivoComponent.prototype.previewCarregado = function (e) {
|
|
318
|
-
this.loadingFile = false;
|
|
319
|
-
};
|
|
320
|
-
DialogPreviewArquivoComponent.prototype.download = function () {
|
|
321
|
-
if (typeof this.src === 'string') {
|
|
322
|
-
var link = document.createElement('a');
|
|
323
|
-
link.href = this.src;
|
|
324
|
-
link.target = '_blank';
|
|
325
|
-
document.body.appendChild(link);
|
|
326
|
-
link.click();
|
|
327
|
-
document.body.removeChild(link);
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
return DialogPreviewArquivoComponent;
|
|
333
|
-
}());
|
|
334
|
-
DialogPreviewArquivoComponent.decorators = [
|
|
335
|
-
{ type: core.Component, args: [{
|
|
336
|
-
selector: 'mcl-dialog-preview-arquivo',
|
|
337
|
-
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",
|
|
338
|
-
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}"]
|
|
339
|
-
},] }
|
|
340
|
-
];
|
|
341
|
-
DialogPreviewArquivoComponent.ctorParameters = function () { return [
|
|
342
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
|
343
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
|
|
344
|
-
]; };
|
|
345
|
-
|
|
346
|
-
var PreviewArquivoComponent = /** @class */ (function () {
|
|
347
|
-
function PreviewArquivoComponent(arquivoManagerService, dialog) {
|
|
348
|
-
this.arquivoManagerService = arquivoManagerService;
|
|
349
|
-
this.dialog = dialog;
|
|
350
|
-
this.showLoading = false;
|
|
351
|
-
this.height = '200px';
|
|
352
|
-
this.width = '200px';
|
|
353
|
-
}
|
|
354
|
-
PreviewArquivoComponent.prototype.ngOnInit = function () {
|
|
355
|
-
};
|
|
356
|
-
Object.defineProperty(PreviewArquivoComponent.prototype, "arquivo", {
|
|
357
|
-
get: function () {
|
|
358
|
-
return this.$url;
|
|
359
|
-
},
|
|
360
|
-
set: function (arquivo) {
|
|
361
|
-
var _this = this;
|
|
362
|
-
if (this.$arquivo !== arquivo) {
|
|
363
|
-
this.$arquivo = arquivo;
|
|
364
|
-
this.parseArquivo(arquivo)
|
|
365
|
-
.subscribe(function (arq) {
|
|
366
|
-
_this.src = arq.src;
|
|
367
|
-
_this.filename = arq.filename;
|
|
368
|
-
_this.$url = arq.url;
|
|
369
|
-
_this.type = arq.type;
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
enumerable: false,
|
|
374
|
-
configurable: true
|
|
375
|
-
});
|
|
376
|
-
PreviewArquivoComponent.prototype.parseArquivo = function (arquivo) {
|
|
377
|
-
var _this = this;
|
|
378
|
-
return new rxjs.Observable(function (observer) {
|
|
379
|
-
if (arquivo.loading) { // uploading
|
|
380
|
-
var type_1 = _this.parseType(arquivo.file.name);
|
|
381
|
-
observer.next({
|
|
382
|
-
type: type_1,
|
|
383
|
-
filename: arquivo.file.name,
|
|
384
|
-
});
|
|
385
|
-
_this.carregaArrayBuffFile(arquivo.file)
|
|
386
|
-
.then(function (src) {
|
|
387
|
-
observer.next({
|
|
388
|
-
src: src,
|
|
389
|
-
type: type_1,
|
|
390
|
-
filename: arquivo.file.name,
|
|
391
|
-
});
|
|
392
|
-
observer.complete();
|
|
393
|
-
})
|
|
394
|
-
.catch(function (err) { return observer.error(err); });
|
|
395
|
-
}
|
|
396
|
-
else if (typeof arquivo === 'string') { // puploading
|
|
397
|
-
var type = _this.parseType(arquivo.split('?')[0]);
|
|
398
|
-
observer.next({
|
|
399
|
-
type: type,
|
|
400
|
-
url: arquivo,
|
|
401
|
-
src: arquivo,
|
|
402
|
-
});
|
|
403
|
-
observer.complete();
|
|
404
|
-
}
|
|
405
|
-
else { // attachment
|
|
406
|
-
var type_2 = _this.parseType(arquivo.nome);
|
|
407
|
-
_this.arquivoManagerService.downloadURL(arquivo).subscribe(function (url) {
|
|
408
|
-
observer.next({
|
|
409
|
-
type: type_2,
|
|
410
|
-
url: url,
|
|
411
|
-
src: url,
|
|
412
|
-
});
|
|
413
|
-
observer.complete();
|
|
414
|
-
}, function (err) { return observer.error(err); });
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
};
|
|
418
|
-
PreviewArquivoComponent.prototype.carregaArrayBuffFile = function (file) {
|
|
419
|
-
return new Promise((function (resolve, reject) {
|
|
420
|
-
if (typeof (FileReader) !== 'undefined') {
|
|
421
|
-
var reader = new FileReader();
|
|
422
|
-
reader.onload = function (e) { return resolve(e.target.result); };
|
|
423
|
-
reader.onerror = function (e) { return reject(e); };
|
|
424
|
-
reader.readAsArrayBuffer(file);
|
|
425
|
-
}
|
|
426
|
-
else {
|
|
427
|
-
reject('FileReader not defined');
|
|
428
|
-
}
|
|
429
|
-
}));
|
|
430
|
-
};
|
|
431
|
-
PreviewArquivoComponent.prototype.parseType = function (filename) {
|
|
432
|
-
var format = filename.substring(filename.lastIndexOf('.') + 1).toLowerCase();
|
|
433
|
-
switch (format) {
|
|
434
|
-
case 'jpeg':
|
|
435
|
-
case 'jpg':
|
|
436
|
-
case 'png':
|
|
437
|
-
case 'gif':
|
|
438
|
-
return 'image';
|
|
439
|
-
case 'pdf':
|
|
440
|
-
return 'pdf';
|
|
441
|
-
}
|
|
442
|
-
return 'other';
|
|
443
|
-
};
|
|
444
|
-
PreviewArquivoComponent.prototype.abrePreview = function () {
|
|
445
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
446
|
-
var group, src;
|
|
447
|
-
var _this = this;
|
|
448
|
-
return __generator(this, function (_a) {
|
|
449
|
-
switch (_a.label) {
|
|
450
|
-
case 0:
|
|
451
|
-
src = this.src;
|
|
452
|
-
if (!this.group) return [3 /*break*/, 2];
|
|
453
|
-
return [4 /*yield*/, Promise.all(this.group.map(function (arq) { return _this.parseArquivo(arq).toPromise(); }))];
|
|
454
|
-
case 1:
|
|
455
|
-
group = (_a.sent());
|
|
456
|
-
src = group[this.group.indexOf(this.$arquivo)].src;
|
|
457
|
-
group = group.filter(function (g) { return !!g.src && g.type === _this.type; }).map(function (g) { return g.src; });
|
|
458
|
-
_a.label = 2;
|
|
459
|
-
case 2:
|
|
460
|
-
this.dialog.open(DialogPreviewArquivoComponent, {
|
|
461
|
-
data: {
|
|
462
|
-
src: src,
|
|
463
|
-
group: group,
|
|
464
|
-
type: this.type,
|
|
465
|
-
},
|
|
466
|
-
});
|
|
467
|
-
return [2 /*return*/];
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
});
|
|
471
|
-
};
|
|
472
|
-
return PreviewArquivoComponent;
|
|
473
|
-
}());
|
|
474
|
-
PreviewArquivoComponent.decorators = [
|
|
475
|
-
{ type: core.Component, args: [{
|
|
476
|
-
selector: 'mcl-preview-arquivo',
|
|
477
|
-
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",
|
|
478
|
-
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}"]
|
|
479
|
-
},] }
|
|
480
|
-
];
|
|
481
|
-
PreviewArquivoComponent.ctorParameters = function () { return [
|
|
482
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] },
|
|
483
|
-
{ type: dialog.MatDialog }
|
|
484
|
-
]; };
|
|
485
|
-
PreviewArquivoComponent.propDecorators = {
|
|
486
|
-
showLoading: [{ type: core.Input }],
|
|
487
|
-
height: [{ type: core.Input }],
|
|
488
|
-
width: [{ type: core.Input }],
|
|
489
|
-
group: [{ type: core.Input }],
|
|
490
|
-
arquivo: [{ type: core.Input }]
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
var DownloadArquivoDirective = /** @class */ (function () {
|
|
494
|
-
function DownloadArquivoDirective(arquivoService) {
|
|
495
|
-
this.arquivoService = arquivoService;
|
|
496
|
-
this.target = '_blank';
|
|
497
|
-
}
|
|
498
|
-
DownloadArquivoDirective.prototype.getUrlArquivo = function () {
|
|
499
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
500
|
-
return __generator(this, function (_a) {
|
|
501
|
-
switch (_a.label) {
|
|
502
|
-
case 0:
|
|
503
|
-
if (typeof this.attachment === 'string') {
|
|
504
|
-
return [2 /*return*/, this.attachment];
|
|
505
|
-
}
|
|
506
|
-
return [4 /*yield*/, this.arquivoService.downloadURL(this.attachment).toPromise()];
|
|
507
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
});
|
|
511
|
-
};
|
|
512
|
-
DownloadArquivoDirective.prototype.download = function () {
|
|
513
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
514
|
-
var link, _a;
|
|
515
|
-
return __generator(this, function (_b) {
|
|
516
|
-
switch (_b.label) {
|
|
517
|
-
case 0:
|
|
518
|
-
if (!this.attachment) {
|
|
519
|
-
return [2 /*return*/];
|
|
520
|
-
}
|
|
521
|
-
link = document.createElement('a');
|
|
522
|
-
_a = link;
|
|
523
|
-
return [4 /*yield*/, this.getUrlArquivo()];
|
|
524
|
-
case 1:
|
|
525
|
-
_a.href = _b.sent();
|
|
526
|
-
link.target = this.target;
|
|
527
|
-
document.body.appendChild(link);
|
|
528
|
-
link.click();
|
|
529
|
-
document.body.removeChild(link);
|
|
530
|
-
return [2 /*return*/];
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
});
|
|
534
|
-
};
|
|
535
|
-
return DownloadArquivoDirective;
|
|
536
|
-
}());
|
|
537
|
-
DownloadArquivoDirective.decorators = [
|
|
538
|
-
{ type: core.Directive, args: [{
|
|
539
|
-
selector: '[mclDownloadArquivo]'
|
|
540
|
-
},] }
|
|
541
|
-
];
|
|
542
|
-
DownloadArquivoDirective.ctorParameters = function () { return [
|
|
543
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
|
|
544
|
-
]; };
|
|
545
|
-
DownloadArquivoDirective.propDecorators = {
|
|
546
|
-
attachment: [{ type: core.Input, args: ['mclDownloadArquivo',] }],
|
|
547
|
-
target: [{ type: core.Input }],
|
|
548
|
-
download: [{ type: core.HostListener, args: ['click',] }]
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
var MCL_IMAGE_PADRAO = new core.InjectionToken('MCL_IMAGE_PADRAO');
|
|
552
|
-
var ImagemDirective = /** @class */ (function () {
|
|
553
|
-
function ImagemDirective(_padrao, element, arquivoManagerService) {
|
|
554
|
-
var _this = this;
|
|
555
|
-
this._padrao = _padrao;
|
|
556
|
-
this.element = element;
|
|
557
|
-
this.arquivoManagerService = arquivoManagerService;
|
|
558
|
-
this.backgroundSetter = function (url) {
|
|
559
|
-
_this.element.nativeElement.style.backgroundImage = "url(" + url + ")";
|
|
560
|
-
};
|
|
561
|
-
this.srcSetter = function (url) {
|
|
562
|
-
_this.element.nativeElement.src = url;
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
Object.defineProperty(ImagemDirective.prototype, "imagemSrc", {
|
|
566
|
-
set: function (imagem) {
|
|
567
|
-
this._setter = this.srcSetter;
|
|
568
|
-
if (imagem) {
|
|
569
|
-
if (this._path !== imagem) {
|
|
570
|
-
this._path = imagem;
|
|
571
|
-
this.setPath();
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
575
|
-
this._setter(this._padrao);
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
enumerable: false,
|
|
579
|
-
configurable: true
|
|
580
|
-
});
|
|
581
|
-
Object.defineProperty(ImagemDirective.prototype, "imagemBackground", {
|
|
582
|
-
set: function (imagem) {
|
|
583
|
-
this._setter = this.backgroundSetter;
|
|
584
|
-
if (imagem) {
|
|
585
|
-
if (this._path !== imagem) {
|
|
586
|
-
this._path = imagem;
|
|
587
|
-
this.setPath();
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
else {
|
|
591
|
-
this._setter(this._padrao);
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
enumerable: false,
|
|
595
|
-
configurable: true
|
|
596
|
-
});
|
|
597
|
-
Object.defineProperty(ImagemDirective.prototype, "padrao", {
|
|
598
|
-
set: function (padrao) {
|
|
599
|
-
this._padrao = padrao;
|
|
600
|
-
if (this._setter) {
|
|
601
|
-
this._setter(this.padrao);
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
enumerable: false,
|
|
605
|
-
configurable: true
|
|
606
|
-
});
|
|
607
|
-
ImagemDirective.prototype.setPath = function () {
|
|
608
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
609
|
-
var path, url;
|
|
610
|
-
return __generator(this, function (_a) {
|
|
611
|
-
switch (_a.label) {
|
|
612
|
-
case 0:
|
|
613
|
-
path = typeof this._path === 'string' ? this._path : this._path.path;
|
|
614
|
-
if (!path) return [3 /*break*/, 4];
|
|
615
|
-
url = void 0;
|
|
616
|
-
if (!(path.startsWith('http://') || this._path.startsWith('https://'))) return [3 /*break*/, 1];
|
|
617
|
-
url = path;
|
|
618
|
-
return [3 /*break*/, 3];
|
|
619
|
-
case 1: return [4 /*yield*/, this.arquivoManagerService.downloadURL(path).toPromise()];
|
|
620
|
-
case 2:
|
|
621
|
-
url = _a.sent();
|
|
622
|
-
_a.label = 3;
|
|
623
|
-
case 3:
|
|
624
|
-
this._setter(url);
|
|
625
|
-
_a.label = 4;
|
|
626
|
-
case 4: return [2 /*return*/];
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
});
|
|
630
|
-
};
|
|
631
|
-
ImagemDirective.prototype.ngOnInit = function () {
|
|
632
|
-
};
|
|
633
|
-
return ImagemDirective;
|
|
634
|
-
}());
|
|
635
|
-
ImagemDirective.decorators = [
|
|
636
|
-
{ type: core.Directive, args: [{
|
|
637
|
-
selector: '[mclImagemSrc],[mclImagemBackground]'
|
|
638
|
-
},] }
|
|
639
|
-
];
|
|
640
|
-
ImagemDirective.ctorParameters = function () { return [
|
|
641
|
-
{ type: String, decorators: [{ type: core.Inject, args: [MCL_IMAGE_PADRAO,] }, { type: core.Optional }] },
|
|
642
|
-
{ type: core.ElementRef, decorators: [{ type: core.Self }] },
|
|
643
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
|
|
644
|
-
]; };
|
|
645
|
-
ImagemDirective.propDecorators = {
|
|
646
|
-
imagemSrc: [{ type: core.Input, args: ['mclImagemSrc',] }],
|
|
647
|
-
imagemBackground: [{ type: core.Input, args: ['mclImagemBackground',] }],
|
|
648
|
-
padrao: [{ type: core.Input }]
|
|
649
|
-
};
|
|
650
|
-
|
|
651
|
-
var ArquivoModule = /** @class */ (function () {
|
|
652
|
-
function ArquivoModule() {
|
|
653
|
-
}
|
|
654
|
-
return ArquivoModule;
|
|
655
|
-
}());
|
|
656
|
-
ArquivoModule.decorators = [
|
|
657
|
-
{ type: core.NgModule, args: [{
|
|
658
|
-
declarations: [PreviewArquivoComponent, DownloadArquivoDirective, DialogPreviewArquivoComponent, ImagemDirective],
|
|
659
|
-
exports: [PreviewArquivoComponent, DownloadArquivoDirective],
|
|
660
|
-
imports: [
|
|
661
|
-
common.CommonModule,
|
|
662
|
-
icon.MatIconModule,
|
|
663
|
-
ng2PdfViewer.PdfViewerModule,
|
|
664
|
-
dialog.MatDialogModule,
|
|
665
|
-
progressSpinner.MatProgressSpinnerModule,
|
|
666
|
-
button.MatButtonModule,
|
|
667
|
-
ngxImageViewer.ImageViewerModule
|
|
668
|
-
]
|
|
669
|
-
},] }
|
|
670
|
-
];
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Generated bundle index. Do not edit.
|
|
674
|
-
*/
|
|
675
|
-
|
|
676
|
-
exports.ARQUIVO_MANAGER_SERVICE = ARQUIVO_MANAGER_SERVICE;
|
|
677
|
-
exports.ArquivoModule = ArquivoModule;
|
|
678
|
-
exports.DialogPreviewArquivoComponent = DialogPreviewArquivoComponent;
|
|
679
|
-
exports.DownloadArquivoDirective = DownloadArquivoDirective;
|
|
680
|
-
exports.ImagemDirective = ImagemDirective;
|
|
681
|
-
exports.MCL_IMAGE_PADRAO = MCL_IMAGE_PADRAO;
|
|
682
|
-
exports.PreviewArquivoComponent = PreviewArquivoComponent;
|
|
683
|
-
|
|
684
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
685
|
-
|
|
686
|
-
})));
|
|
687
|
-
//# sourceMappingURL=main-class-componentes-arquivo.umd.js.map
|