@main-class/componentes 1.19.3 → 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 +12 -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 +10 -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 +7 -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 -214
- 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 -2251
- 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 -241
- 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 -37
- 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 -30
- 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 -30
- 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 -185
- 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 -1611
- package/fesm2015/main-class-componentes-input.js.map +0 -1
- package/fesm2015/main-class-componentes-loader.js +0 -214
- 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,787 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/table'), require('rxjs'), require('@main-class/componentes/core'), require('@main-class/componentes/loader'), require('@angular/material/paginator'), require('@angular/material/button'), require('@angular/material/icon'), require('@ngx-translate/core'), require('@angular/material/form-field'), require('@angular/material/select'), require('@angular/material/tooltip')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@main-class/componentes/table', ['exports', '@angular/core', '@angular/common', '@angular/material/table', 'rxjs', '@main-class/componentes/core', '@main-class/componentes/loader', '@angular/material/paginator', '@angular/material/button', '@angular/material/icon', '@ngx-translate/core', '@angular/material/form-field', '@angular/material/select', '@angular/material/tooltip'], 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.table = {}), global.ng.core, global.ng.common, global.ng.material.table, global.rxjs, global['main-class'].componentes.core, global['main-class'].componentes.loader, global.ng.material.paginator, global.ng.material.button, global.ng.material.icon, global.core$2, global.ng.material.formField, global.ng.material.select, global.ng.material.tooltip));
|
|
5
|
-
}(this, (function (exports, core, common, table, rxjs, core$1, loader, paginator, button, icon, core$2, formField, select, tooltip) { 'use strict';
|
|
6
|
-
|
|
7
|
-
var ColumnHeaderDirective = /** @class */ (function () {
|
|
8
|
-
function ColumnHeaderDirective(template) {
|
|
9
|
-
this.template = template;
|
|
10
|
-
}
|
|
11
|
-
return ColumnHeaderDirective;
|
|
12
|
-
}());
|
|
13
|
-
ColumnHeaderDirective.decorators = [
|
|
14
|
-
{ type: core.Directive, args: [{
|
|
15
|
-
selector: '[mclColumnHeader]'
|
|
16
|
-
},] }
|
|
17
|
-
];
|
|
18
|
-
ColumnHeaderDirective.ctorParameters = function () { return [
|
|
19
|
-
{ type: core.TemplateRef }
|
|
20
|
-
]; };
|
|
21
|
-
|
|
22
|
-
var ColumnCellDirective = /** @class */ (function () {
|
|
23
|
-
function ColumnCellDirective(template) {
|
|
24
|
-
this.template = template;
|
|
25
|
-
}
|
|
26
|
-
return ColumnCellDirective;
|
|
27
|
-
}());
|
|
28
|
-
ColumnCellDirective.decorators = [
|
|
29
|
-
{ type: core.Directive, args: [{
|
|
30
|
-
selector: '[mclColumnCell]'
|
|
31
|
-
},] }
|
|
32
|
-
];
|
|
33
|
-
ColumnCellDirective.ctorParameters = function () { return [
|
|
34
|
-
{ type: core.TemplateRef }
|
|
35
|
-
]; };
|
|
36
|
-
|
|
37
|
-
var ColumnFooterDirective = /** @class */ (function () {
|
|
38
|
-
function ColumnFooterDirective(template) {
|
|
39
|
-
this.template = template;
|
|
40
|
-
}
|
|
41
|
-
return ColumnFooterDirective;
|
|
42
|
-
}());
|
|
43
|
-
ColumnFooterDirective.decorators = [
|
|
44
|
-
{ type: core.Directive, args: [{
|
|
45
|
-
selector: '[mclColumnFooter]'
|
|
46
|
-
},] }
|
|
47
|
-
];
|
|
48
|
-
ColumnFooterDirective.ctorParameters = function () { return [
|
|
49
|
-
{ type: core.TemplateRef }
|
|
50
|
-
]; };
|
|
51
|
-
|
|
52
|
-
var ColumnDirective = /** @class */ (function () {
|
|
53
|
-
function ColumnDirective() {
|
|
54
|
-
this.name = 'column_' + (++ColumnDirective.lastId);
|
|
55
|
-
this.viewType = 'both';
|
|
56
|
-
}
|
|
57
|
-
Object.defineProperty(ColumnDirective.prototype, "columnDefName", {
|
|
58
|
-
get: function () {
|
|
59
|
-
return this.viewType + '-' + this.name;
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
return ColumnDirective;
|
|
65
|
-
}());
|
|
66
|
-
ColumnDirective.lastId = 0;
|
|
67
|
-
ColumnDirective.decorators = [
|
|
68
|
-
{ type: core.Directive, args: [{
|
|
69
|
-
selector: 'mcl-column,[mclColumn]'
|
|
70
|
-
},] }
|
|
71
|
-
];
|
|
72
|
-
ColumnDirective.ctorParameters = function () { return []; };
|
|
73
|
-
ColumnDirective.propDecorators = {
|
|
74
|
-
name: [{ type: core.Input }],
|
|
75
|
-
viewType: [{ type: core.Input }],
|
|
76
|
-
header: [{ type: core.ContentChild, args: [ColumnHeaderDirective,] }],
|
|
77
|
-
cell: [{ type: core.ContentChild, args: [ColumnCellDirective,] }],
|
|
78
|
-
footer: [{ type: core.ContentChild, args: [ColumnFooterDirective,] }]
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
var TableComponent = /** @class */ (function () {
|
|
82
|
-
function TableComponent(mobileService) {
|
|
83
|
-
var _this = this;
|
|
84
|
-
this.mobileService = mobileService;
|
|
85
|
-
this.itemsSubject = new rxjs.BehaviorSubject([]);
|
|
86
|
-
this.emptyStateMessage = 'mcl.table.nenhum_registro_encontrado';
|
|
87
|
-
this.sticky = false;
|
|
88
|
-
this.currentColumns = [];
|
|
89
|
-
this.$activeColumnNames = [];
|
|
90
|
-
this.oldLength = 0;
|
|
91
|
-
this.mobileListener = function (mobile) { return _this.mergeColumnsDef(mobile); };
|
|
92
|
-
this.mobileService.addListener(this.mobileListener);
|
|
93
|
-
}
|
|
94
|
-
Object.defineProperty(TableComponent.prototype, "activeColumnNames", {
|
|
95
|
-
get: function () {
|
|
96
|
-
return this.$activeColumnNames;
|
|
97
|
-
},
|
|
98
|
-
enumerable: false,
|
|
99
|
-
configurable: true
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(TableComponent.prototype, "hasFooter", {
|
|
102
|
-
get: function () {
|
|
103
|
-
return !!this.currentColumns.find(function (col) { return !!col.footerCell; });
|
|
104
|
-
},
|
|
105
|
-
enumerable: false,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
108
|
-
TableComponent.prototype.mergeColumnsDef = function (mobile) {
|
|
109
|
-
var _this = this;
|
|
110
|
-
if (mobile === void 0) { mobile = this.mobileService.mobile; }
|
|
111
|
-
clearTimeout(this.$loading);
|
|
112
|
-
this.$loading = setTimeout(function () {
|
|
113
|
-
var ngContentModels = _this.columnsDef
|
|
114
|
-
.toArray().filter(function (model) { return (mobile && model.viewType !== 'web') ||
|
|
115
|
-
(!mobile && model.viewType !== 'mobile'); });
|
|
116
|
-
var _loop_1 = function (i) {
|
|
117
|
-
var model = _this.currentColumns[i];
|
|
118
|
-
if (!ngContentModels.find(function (col) { return col.columnDefName === model.name; })) {
|
|
119
|
-
_this.currentColumns.splice(i, 1);
|
|
120
|
-
_this.removeColumnDef(model);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
i++;
|
|
124
|
-
}
|
|
125
|
-
out_i_1 = i;
|
|
126
|
-
};
|
|
127
|
-
var out_i_1;
|
|
128
|
-
for (var i = 0; i < _this.currentColumns.length;) {
|
|
129
|
-
_loop_1(i);
|
|
130
|
-
i = out_i_1;
|
|
131
|
-
}
|
|
132
|
-
ngContentModels.forEach(function (model) {
|
|
133
|
-
if (!_this.currentColumnsContains(model)) {
|
|
134
|
-
var columnDef = _this.mapColumnDef(model);
|
|
135
|
-
_this.currentColumns.push(columnDef);
|
|
136
|
-
_this.addColumnDef(columnDef);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
_this.items = _this.getItems() || [];
|
|
140
|
-
_this.itemsSubject.next(_this.items);
|
|
141
|
-
_this.$activeColumnNames = _this.currentColumns.map(function (col) { return col.name; });
|
|
142
|
-
}, 80);
|
|
143
|
-
};
|
|
144
|
-
TableComponent.prototype.ngAfterViewInit = function () {
|
|
145
|
-
var _this = this;
|
|
146
|
-
this.columnsChangeSubscription = this.columnsDef.changes.subscribe(function (_) {
|
|
147
|
-
_this.mergeColumnsDef();
|
|
148
|
-
});
|
|
149
|
-
this.mergeColumnsDef();
|
|
150
|
-
};
|
|
151
|
-
TableComponent.prototype.ngDoCheck = function () {
|
|
152
|
-
var currentLength = this.getCurrentLength();
|
|
153
|
-
if (this.oldLength !== currentLength) {
|
|
154
|
-
this.oldLength = currentLength;
|
|
155
|
-
this.items = this.getItems() || [];
|
|
156
|
-
this.itemsSubject.next(this.items);
|
|
157
|
-
}
|
|
158
|
-
else if (this.items !== this.getItems()) {
|
|
159
|
-
this.items = this.getItems() || [];
|
|
160
|
-
this.itemsSubject.next(this.items);
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
TableComponent.prototype.getItems = function () {
|
|
164
|
-
return this.outerItems;
|
|
165
|
-
};
|
|
166
|
-
TableComponent.prototype.getCurrentLength = function () {
|
|
167
|
-
return (this.outerItems ? this.outerItems.length : 0);
|
|
168
|
-
};
|
|
169
|
-
TableComponent.prototype.ngOnDestroy = function () {
|
|
170
|
-
this.mobileService.removeListener(this.mobileListener);
|
|
171
|
-
this.columnsChangeSubscription.unsubscribe();
|
|
172
|
-
this.itemsSubject.complete();
|
|
173
|
-
};
|
|
174
|
-
TableComponent.prototype.removeColumnDef = function (columnDef) {
|
|
175
|
-
this.table.removeColumnDef(columnDef);
|
|
176
|
-
};
|
|
177
|
-
TableComponent.prototype.addColumnDef = function (columnDef) {
|
|
178
|
-
this.table.addColumnDef(columnDef);
|
|
179
|
-
};
|
|
180
|
-
TableComponent.prototype.mapColumnDef = function (column) {
|
|
181
|
-
var cdef = new table.MatColumnDef();
|
|
182
|
-
cdef.name = column.viewType + '-' + column.name;
|
|
183
|
-
cdef.cell = new table.MatCellDef(column.cell.template);
|
|
184
|
-
cdef.headerCell = new table.MatHeaderCellDef(column.header.template);
|
|
185
|
-
if (column.footer) {
|
|
186
|
-
cdef.footerCell = new table.MatFooterCellDef(column.footer.template);
|
|
187
|
-
}
|
|
188
|
-
return cdef;
|
|
189
|
-
};
|
|
190
|
-
TableComponent.prototype.currentColumnsContains = function (model) {
|
|
191
|
-
return !!this.currentColumns.find(function (def) { return def.name === model.columnDefName; });
|
|
192
|
-
};
|
|
193
|
-
return TableComponent;
|
|
194
|
-
}());
|
|
195
|
-
TableComponent.decorators = [
|
|
196
|
-
{ type: core.Component, args: [{
|
|
197
|
-
selector: 'mcl-table:not([page])',
|
|
198
|
-
template: "<table mat-table [dataSource]=\"itemsSubject\">\n\n <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: sticky\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: activeColumnNames;\"></tr>\n <ng-container *ngIf=\"hasFooter\">\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n </ng-container>\n\n</table>\n\n<div *ngIf=\"!items?.length && !emptyStatePlaceholder\" class=\"empty-state\">\n {{emptyStateMessage | translate}}\n</div>\n<ng-container *ngIf=\"!items?.length && emptyStatePlaceholder\">\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n</ng-container>\n",
|
|
199
|
-
styles: ["table{width:100%}table::ng-deep th:not(:last-child),table td:not(:last-child){padding-right:5px}table::ng-deep th.text-center,table td.text-center{text-align:center}table::ng-deep th.text-right,table td.text-right{text-align:right}table::ng-deep th.text-left,table td.text-left{text-align:left}.empty-state{padding:10px;text-align:center}table::ng-deep tbody tr{transition:.5s}table::ng-deep tbody tr:hover{background-color:rgba(0,0,0,.03)}table::ng-deep tbody td[routerLink]{cursor:pointer}"]
|
|
200
|
-
},] }
|
|
201
|
-
];
|
|
202
|
-
TableComponent.ctorParameters = function () { return [
|
|
203
|
-
{ type: core$1.MobileService }
|
|
204
|
-
]; };
|
|
205
|
-
TableComponent.propDecorators = {
|
|
206
|
-
emptyStateMessage: [{ type: core.Input }],
|
|
207
|
-
table: [{ type: core.ViewChild, args: [table.MatTable,] }],
|
|
208
|
-
emptyStatePlaceholder: [{ type: core.ContentChild, args: ['[mclEmptyState]', { read: core.ElementRef },] }],
|
|
209
|
-
columnsDef: [{ type: core.ContentChildren, args: [ColumnDirective,] }],
|
|
210
|
-
outerItems: [{ type: core.Input, args: ['items',] }],
|
|
211
|
-
sticky: [{ type: core.Input }]
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
var ThComponent = /** @class */ (function () {
|
|
215
|
-
function ThComponent(element) {
|
|
216
|
-
element.nativeElement.classList.add('mat-header-cell');
|
|
217
|
-
}
|
|
218
|
-
ThComponent.prototype.ngOnInit = function () {
|
|
219
|
-
};
|
|
220
|
-
return ThComponent;
|
|
221
|
-
}());
|
|
222
|
-
ThComponent.decorators = [
|
|
223
|
-
{ type: core.Component, args: [{
|
|
224
|
-
selector: 'th,mcl-th',
|
|
225
|
-
template: "<ng-content></ng-content>\n",
|
|
226
|
-
styles: [""]
|
|
227
|
-
},] }
|
|
228
|
-
];
|
|
229
|
-
ThComponent.ctorParameters = function () { return [
|
|
230
|
-
{ type: core.ElementRef, decorators: [{ type: core.Self }] }
|
|
231
|
-
]; };
|
|
232
|
-
|
|
233
|
-
var TdComponent = /** @class */ (function () {
|
|
234
|
-
function TdComponent(element) {
|
|
235
|
-
element.nativeElement.classList.add('mat-cell');
|
|
236
|
-
}
|
|
237
|
-
TdComponent.prototype.ngOnInit = function () {
|
|
238
|
-
};
|
|
239
|
-
return TdComponent;
|
|
240
|
-
}());
|
|
241
|
-
TdComponent.decorators = [
|
|
242
|
-
{ type: core.Component, args: [{
|
|
243
|
-
selector: 'td,mcl-td',
|
|
244
|
-
template: "<ng-content></ng-content>\n",
|
|
245
|
-
styles: [""]
|
|
246
|
-
},] }
|
|
247
|
-
];
|
|
248
|
-
TdComponent.ctorParameters = function () { return [
|
|
249
|
-
{ type: core.ElementRef, decorators: [{ type: core.Self }] }
|
|
250
|
-
]; };
|
|
251
|
-
|
|
252
|
-
/*! *****************************************************************************
|
|
253
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
254
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
255
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
256
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
257
|
-
|
|
258
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
259
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
260
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
261
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
262
|
-
|
|
263
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
264
|
-
and limitations under the License.
|
|
265
|
-
***************************************************************************** */
|
|
266
|
-
/* global Reflect, Promise */
|
|
267
|
-
var extendStatics = function (d, b) {
|
|
268
|
-
extendStatics = Object.setPrototypeOf ||
|
|
269
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
270
|
-
function (d, b) { for (var p in b)
|
|
271
|
-
if (b.hasOwnProperty(p))
|
|
272
|
-
d[p] = b[p]; };
|
|
273
|
-
return extendStatics(d, b);
|
|
274
|
-
};
|
|
275
|
-
function __extends(d, b) {
|
|
276
|
-
extendStatics(d, b);
|
|
277
|
-
function __() { this.constructor = d; }
|
|
278
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
279
|
-
}
|
|
280
|
-
var __assign = function () {
|
|
281
|
-
__assign = Object.assign || function __assign(t) {
|
|
282
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
283
|
-
s = arguments[i];
|
|
284
|
-
for (var p in s)
|
|
285
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
286
|
-
t[p] = s[p];
|
|
287
|
-
}
|
|
288
|
-
return t;
|
|
289
|
-
};
|
|
290
|
-
return __assign.apply(this, arguments);
|
|
291
|
-
};
|
|
292
|
-
function __rest(s, e) {
|
|
293
|
-
var t = {};
|
|
294
|
-
for (var p in s)
|
|
295
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
296
|
-
t[p] = s[p];
|
|
297
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
298
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
299
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
300
|
-
t[p[i]] = s[p[i]];
|
|
301
|
-
}
|
|
302
|
-
return t;
|
|
303
|
-
}
|
|
304
|
-
function __decorate(decorators, target, key, desc) {
|
|
305
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
307
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
308
|
-
else
|
|
309
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
310
|
-
if (d = decorators[i])
|
|
311
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
312
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
313
|
-
}
|
|
314
|
-
function __param(paramIndex, decorator) {
|
|
315
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
316
|
-
}
|
|
317
|
-
function __metadata(metadataKey, metadataValue) {
|
|
318
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
319
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
320
|
-
}
|
|
321
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
322
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
323
|
-
function fulfilled(value) { try {
|
|
324
|
-
step(generator.next(value));
|
|
325
|
-
}
|
|
326
|
-
catch (e) {
|
|
327
|
-
reject(e);
|
|
328
|
-
} }
|
|
329
|
-
function rejected(value) { try {
|
|
330
|
-
step(generator["throw"](value));
|
|
331
|
-
}
|
|
332
|
-
catch (e) {
|
|
333
|
-
reject(e);
|
|
334
|
-
} }
|
|
335
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
336
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
function __generator(thisArg, body) {
|
|
340
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
341
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
342
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
343
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
344
|
-
function step(op) {
|
|
345
|
-
if (f)
|
|
346
|
-
throw new TypeError("Generator is already executing.");
|
|
347
|
-
while (_)
|
|
348
|
-
try {
|
|
349
|
-
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)
|
|
350
|
-
return t;
|
|
351
|
-
if (y = 0, t)
|
|
352
|
-
op = [op[0] & 2, t.value];
|
|
353
|
-
switch (op[0]) {
|
|
354
|
-
case 0:
|
|
355
|
-
case 1:
|
|
356
|
-
t = op;
|
|
357
|
-
break;
|
|
358
|
-
case 4:
|
|
359
|
-
_.label++;
|
|
360
|
-
return { value: op[1], done: false };
|
|
361
|
-
case 5:
|
|
362
|
-
_.label++;
|
|
363
|
-
y = op[1];
|
|
364
|
-
op = [0];
|
|
365
|
-
continue;
|
|
366
|
-
case 7:
|
|
367
|
-
op = _.ops.pop();
|
|
368
|
-
_.trys.pop();
|
|
369
|
-
continue;
|
|
370
|
-
default:
|
|
371
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
372
|
-
_ = 0;
|
|
373
|
-
continue;
|
|
374
|
-
}
|
|
375
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
376
|
-
_.label = op[1];
|
|
377
|
-
break;
|
|
378
|
-
}
|
|
379
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
380
|
-
_.label = t[1];
|
|
381
|
-
t = op;
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
if (t && _.label < t[2]) {
|
|
385
|
-
_.label = t[2];
|
|
386
|
-
_.ops.push(op);
|
|
387
|
-
break;
|
|
388
|
-
}
|
|
389
|
-
if (t[2])
|
|
390
|
-
_.ops.pop();
|
|
391
|
-
_.trys.pop();
|
|
392
|
-
continue;
|
|
393
|
-
}
|
|
394
|
-
op = body.call(thisArg, _);
|
|
395
|
-
}
|
|
396
|
-
catch (e) {
|
|
397
|
-
op = [6, e];
|
|
398
|
-
y = 0;
|
|
399
|
-
}
|
|
400
|
-
finally {
|
|
401
|
-
f = t = 0;
|
|
402
|
-
}
|
|
403
|
-
if (op[0] & 5)
|
|
404
|
-
throw op[1];
|
|
405
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
function __exportStar(m, exports) {
|
|
409
|
-
for (var p in m)
|
|
410
|
-
if (!exports.hasOwnProperty(p))
|
|
411
|
-
exports[p] = m[p];
|
|
412
|
-
}
|
|
413
|
-
function __values(o) {
|
|
414
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
415
|
-
if (m)
|
|
416
|
-
return m.call(o);
|
|
417
|
-
return {
|
|
418
|
-
next: function () {
|
|
419
|
-
if (o && i >= o.length)
|
|
420
|
-
o = void 0;
|
|
421
|
-
return { value: o && o[i++], done: !o };
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
function __read(o, n) {
|
|
426
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
427
|
-
if (!m)
|
|
428
|
-
return o;
|
|
429
|
-
var i = m.call(o), r, ar = [], e;
|
|
430
|
-
try {
|
|
431
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
432
|
-
ar.push(r.value);
|
|
433
|
-
}
|
|
434
|
-
catch (error) {
|
|
435
|
-
e = { error: error };
|
|
436
|
-
}
|
|
437
|
-
finally {
|
|
438
|
-
try {
|
|
439
|
-
if (r && !r.done && (m = i["return"]))
|
|
440
|
-
m.call(i);
|
|
441
|
-
}
|
|
442
|
-
finally {
|
|
443
|
-
if (e)
|
|
444
|
-
throw e.error;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
return ar;
|
|
448
|
-
}
|
|
449
|
-
function __spread() {
|
|
450
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
451
|
-
ar = ar.concat(__read(arguments[i]));
|
|
452
|
-
return ar;
|
|
453
|
-
}
|
|
454
|
-
function __spreadArrays() {
|
|
455
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
456
|
-
s += arguments[i].length;
|
|
457
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
458
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
459
|
-
r[k] = a[j];
|
|
460
|
-
return r;
|
|
461
|
-
}
|
|
462
|
-
;
|
|
463
|
-
function __await(v) {
|
|
464
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
465
|
-
}
|
|
466
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
467
|
-
if (!Symbol.asyncIterator)
|
|
468
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
469
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
470
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
471
|
-
function verb(n) { if (g[n])
|
|
472
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
473
|
-
function resume(n, v) { try {
|
|
474
|
-
step(g[n](v));
|
|
475
|
-
}
|
|
476
|
-
catch (e) {
|
|
477
|
-
settle(q[0][3], e);
|
|
478
|
-
} }
|
|
479
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
480
|
-
function fulfill(value) { resume("next", value); }
|
|
481
|
-
function reject(value) { resume("throw", value); }
|
|
482
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
483
|
-
resume(q[0][0], q[0][1]); }
|
|
484
|
-
}
|
|
485
|
-
function __asyncDelegator(o) {
|
|
486
|
-
var i, p;
|
|
487
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
488
|
-
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; }
|
|
489
|
-
}
|
|
490
|
-
function __asyncValues(o) {
|
|
491
|
-
if (!Symbol.asyncIterator)
|
|
492
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
493
|
-
var m = o[Symbol.asyncIterator], i;
|
|
494
|
-
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);
|
|
495
|
-
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); }); }; }
|
|
496
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
497
|
-
}
|
|
498
|
-
function __makeTemplateObject(cooked, raw) {
|
|
499
|
-
if (Object.defineProperty) {
|
|
500
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
cooked.raw = raw;
|
|
504
|
-
}
|
|
505
|
-
return cooked;
|
|
506
|
-
}
|
|
507
|
-
;
|
|
508
|
-
function __importStar(mod) {
|
|
509
|
-
if (mod && mod.__esModule)
|
|
510
|
-
return mod;
|
|
511
|
-
var result = {};
|
|
512
|
-
if (mod != null)
|
|
513
|
-
for (var k in mod)
|
|
514
|
-
if (Object.hasOwnProperty.call(mod, k))
|
|
515
|
-
result[k] = mod[k];
|
|
516
|
-
result.default = mod;
|
|
517
|
-
return result;
|
|
518
|
-
}
|
|
519
|
-
function __importDefault(mod) {
|
|
520
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
var PAGINATION_CONFIGURATION = new core.InjectionToken('PAGINATION_CONFIGURATION');
|
|
524
|
-
var PaginatedTableComponent = /** @class */ (function (_super) {
|
|
525
|
-
__extends(PaginatedTableComponent, _super);
|
|
526
|
-
function PaginatedTableComponent(mobileService, paginationConfiguration) {
|
|
527
|
-
var _this = _super.call(this, mobileService) || this;
|
|
528
|
-
_this.paginate = new core.EventEmitter();
|
|
529
|
-
_this.sizes = (paginationConfiguration === null || paginationConfiguration === void 0 ? void 0 : paginationConfiguration.sizes) || [10, 25, 50];
|
|
530
|
-
return _this;
|
|
531
|
-
}
|
|
532
|
-
PaginatedTableComponent.prototype.getCurrentLength = function () {
|
|
533
|
-
return this.page && this.page.itens ? this.page.itens.length : 0;
|
|
534
|
-
};
|
|
535
|
-
PaginatedTableComponent.prototype.getItems = function () {
|
|
536
|
-
return this.page ? this.page.itens : undefined;
|
|
537
|
-
};
|
|
538
|
-
PaginatedTableComponent.prototype.paginaEvent = function (event) {
|
|
539
|
-
this.paginate.emit({
|
|
540
|
-
pagina: event.pageIndex + 1,
|
|
541
|
-
tamanhoPagina: event.pageSize,
|
|
542
|
-
loader: this.loader,
|
|
543
|
-
});
|
|
544
|
-
};
|
|
545
|
-
return PaginatedTableComponent;
|
|
546
|
-
}(TableComponent));
|
|
547
|
-
PaginatedTableComponent.decorators = [
|
|
548
|
-
{ type: core.Component, args: [{
|
|
549
|
-
selector: 'mcl-table[page]',
|
|
550
|
-
template: "<div #div>\n <table mat-table #matTable [dataSource]=\"itemsSubject\">\n\n <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: page && !page.totalItens\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: activeColumnNames;\"></tr>\n <ng-container *ngIf=\"hasFooter\">\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n </ng-container>\n\n </table>\n\n <mcl-loader [showOnInit]=\"true\" [component]=\"div\"></mcl-loader>\n</div>\n\n<div *ngIf=\"!items?.length && !emptyStatePlaceholder\" class=\"empty-state\">\n {{emptyStateMessage | translate}}\n</div>\n<ng-container *ngIf=\"!items?.length && emptyStatePlaceholder\">\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n</ng-container>\n\n<mcl-paginator [pageSize]=\"page?.tamanhoPagina\"\n (page)=\"paginaEvent($event)\"\n [pageIndex]=\"(page?.paginaAtual || 1) - 1\"\n [length]=\"page?.totalItens\"\n [pageSizeOptions]=\"sizes\"\n [showFirstLastButtons]=\"true\"\n *ngIf=\"page?.totalItens\">\n</mcl-paginator>\n",
|
|
551
|
-
styles: ["", "table{width:100%}table::ng-deep th:not(:last-child),table td:not(:last-child){padding-right:5px}table::ng-deep th.text-center,table td.text-center{text-align:center}table::ng-deep th.text-right,table td.text-right{text-align:right}table::ng-deep th.text-left,table td.text-left{text-align:left}.empty-state{padding:10px;text-align:center}table::ng-deep tbody tr{transition:.5s}table::ng-deep tbody tr:hover{background-color:rgba(0,0,0,.03)}table::ng-deep tbody td[routerLink]{cursor:pointer}"]
|
|
552
|
-
},] }
|
|
553
|
-
];
|
|
554
|
-
PaginatedTableComponent.ctorParameters = function () { return [
|
|
555
|
-
{ type: core$1.MobileService },
|
|
556
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [PAGINATION_CONFIGURATION,] }, { type: core.Optional }] }
|
|
557
|
-
]; };
|
|
558
|
-
PaginatedTableComponent.propDecorators = {
|
|
559
|
-
sizes: [{ type: core.Input }],
|
|
560
|
-
paginate: [{ type: core.Output }],
|
|
561
|
-
page: [{ type: core.Input }],
|
|
562
|
-
loader: [{ type: core.ViewChild, args: [loader.LoaderComponent,] }]
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
var getScrollParent = function (node) {
|
|
566
|
-
var regex = /(auto|scroll)/;
|
|
567
|
-
var parents = function ($node, ps) {
|
|
568
|
-
if ($node.parentNode === null || $node.parentNode === undefined) {
|
|
569
|
-
return ps;
|
|
570
|
-
}
|
|
571
|
-
return parents($node.parentNode, ps.concat([$node]));
|
|
572
|
-
};
|
|
573
|
-
var style = function ($node, prop) { return getComputedStyle($node, null).getPropertyValue(prop); };
|
|
574
|
-
var overflow = function ($node) { return style($node, 'overflow') + style($node, 'overflow-y'); };
|
|
575
|
-
var scroll = function ($node) { return regex.test(overflow($node)); };
|
|
576
|
-
/* eslint-disable consistent-return */
|
|
577
|
-
var scrollParent = function ($node) {
|
|
578
|
-
var e_1, _a;
|
|
579
|
-
if (!($node instanceof HTMLElement || $node instanceof SVGElement)) {
|
|
580
|
-
return;
|
|
581
|
-
}
|
|
582
|
-
var ps = parents($node, []);
|
|
583
|
-
try {
|
|
584
|
-
for (var ps_1 = __values(ps), ps_1_1 = ps_1.next(); !ps_1_1.done; ps_1_1 = ps_1.next()) {
|
|
585
|
-
var pi = ps_1_1.value;
|
|
586
|
-
if (scroll(pi)) {
|
|
587
|
-
return pi;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
592
|
-
finally {
|
|
593
|
-
try {
|
|
594
|
-
if (ps_1_1 && !ps_1_1.done && (_a = ps_1.return)) _a.call(ps_1);
|
|
595
|
-
}
|
|
596
|
-
finally { if (e_1) throw e_1.error; }
|
|
597
|
-
}
|
|
598
|
-
return document.scrollingElement || document.documentElement;
|
|
599
|
-
};
|
|
600
|
-
return scrollParent(node);
|
|
601
|
-
/* eslint-enable consistent-return */
|
|
602
|
-
};
|
|
603
|
-
var ɵ0 = getScrollParent;
|
|
604
|
-
var InfiniteTableComponent = /** @class */ (function (_super) {
|
|
605
|
-
__extends(InfiniteTableComponent, _super);
|
|
606
|
-
function InfiniteTableComponent(element, mobileService) {
|
|
607
|
-
var _this = _super.call(this, mobileService) || this;
|
|
608
|
-
_this.element = element;
|
|
609
|
-
_this.next = new core.EventEmitter();
|
|
610
|
-
_this.hasNext = false;
|
|
611
|
-
_this.scrollHeight = 200;
|
|
612
|
-
return _this;
|
|
613
|
-
}
|
|
614
|
-
Object.defineProperty(InfiniteTableComponent.prototype, "loading", {
|
|
615
|
-
get: function () {
|
|
616
|
-
return !this.loader || this.loader.shown;
|
|
617
|
-
},
|
|
618
|
-
enumerable: false,
|
|
619
|
-
configurable: true
|
|
620
|
-
});
|
|
621
|
-
// tslint:disable-next-line:use-lifecycle-interface
|
|
622
|
-
InfiniteTableComponent.prototype.ngAfterViewInit = function () {
|
|
623
|
-
var _this = this;
|
|
624
|
-
_super.prototype.ngAfterViewInit.call(this);
|
|
625
|
-
this.parent = getScrollParent(this.element.nativeElement);
|
|
626
|
-
this.parent.onscroll = function () {
|
|
627
|
-
if (_this.hasNext && !_this.loader.shown &&
|
|
628
|
-
(_this.parent.scrollHeight - _this.parent.clientHeight) - _this.parent.scrollTop < _this.scrollHeight) {
|
|
629
|
-
_this.loadMore();
|
|
630
|
-
}
|
|
631
|
-
};
|
|
632
|
-
this.next.emit(this.loader);
|
|
633
|
-
};
|
|
634
|
-
// tslint:disable-next-line:use-lifecycle-interface
|
|
635
|
-
InfiniteTableComponent.prototype.ngDoCheck = function () {
|
|
636
|
-
_super.prototype.ngDoCheck.call(this);
|
|
637
|
-
if (this.hasNext && !this.loader.shown && this.parent.scrollHeight === this.parent.clientHeight) {
|
|
638
|
-
this.loadMore();
|
|
639
|
-
}
|
|
640
|
-
};
|
|
641
|
-
// tslint:disable-next-line:use-lifecycle-interface
|
|
642
|
-
InfiniteTableComponent.prototype.ngOnDestroy = function () {
|
|
643
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
644
|
-
this.parent.onscroll = undefined;
|
|
645
|
-
};
|
|
646
|
-
InfiniteTableComponent.prototype.loadMore = function () {
|
|
647
|
-
if (this.hasNext) {
|
|
648
|
-
this.next.emit(this.loader);
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
return InfiniteTableComponent;
|
|
652
|
-
}(TableComponent));
|
|
653
|
-
InfiniteTableComponent.decorators = [
|
|
654
|
-
{ type: core.Component, args: [{
|
|
655
|
-
selector: 'mcl-infinite-table',
|
|
656
|
-
template: "<table mat-table [dataSource]=\"itemsSubject\">\n\n <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: activeColumnNames;\"></tr>\n <ng-container *ngIf=\"hasFooter\">\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n </ng-container>\n\n</table>\n\n<ng-container *ngIf=\"!hasNext && !loading && !items?.length\">\n <div *ngIf=\"!emptyStatePlaceholder\" class=\"empty-state\">\n {{emptyStateMessage | translate}}\n </div>\n <ng-container *ngIf=\"emptyStatePlaceholder\">\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n </ng-container>\n</ng-container>\n\n<div #div class=\"loading\" [ngClass]=\"{'hidden':!loading}\">\n <mcl-loader #loader [showOnInit]=\"true\" [component]=\"div\"></mcl-loader>\n</div>\n",
|
|
657
|
-
styles: [":host{justify-content:flex-start;display:flex;flex-direction:column}mcl-loader{flex-grow:0;flex-shrink:0;flex-basis:auto}.loading{height:100px;display:block}.loading.hidden{height:0;display:none}", "table{width:100%}table::ng-deep th:not(:last-child),table td:not(:last-child){padding-right:5px}table::ng-deep th.text-center,table td.text-center{text-align:center}table::ng-deep th.text-right,table td.text-right{text-align:right}table::ng-deep th.text-left,table td.text-left{text-align:left}.empty-state{padding:10px;text-align:center}table::ng-deep tbody tr{transition:.5s}table::ng-deep tbody tr:hover{background-color:rgba(0,0,0,.03)}table::ng-deep tbody td[routerLink]{cursor:pointer}"]
|
|
658
|
-
},] }
|
|
659
|
-
];
|
|
660
|
-
InfiniteTableComponent.ctorParameters = function () { return [
|
|
661
|
-
{ type: core.ElementRef, decorators: [{ type: core.Self }] },
|
|
662
|
-
{ type: core$1.MobileService }
|
|
663
|
-
]; };
|
|
664
|
-
InfiniteTableComponent.propDecorators = {
|
|
665
|
-
next: [{ type: core.Output }],
|
|
666
|
-
hasNext: [{ type: core.Input }],
|
|
667
|
-
scrollHeight: [{ type: core.Input }],
|
|
668
|
-
loader: [{ type: core.ViewChild, args: [loader.LoaderComponent,] }]
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
var PaginatorI18n = /** @class */ (function () {
|
|
672
|
-
function PaginatorI18n(translate) {
|
|
673
|
-
this.translate = translate;
|
|
674
|
-
}
|
|
675
|
-
PaginatorI18n.prototype.getPaginatorIntl = function () {
|
|
676
|
-
var paginatorIntl = new paginator.MatPaginatorIntl();
|
|
677
|
-
paginatorIntl.itemsPerPageLabel = this.translate.instant('mcl.table.items_per_page');
|
|
678
|
-
paginatorIntl.nextPageLabel = this.translate.instant('mcl.table.next_page');
|
|
679
|
-
paginatorIntl.previousPageLabel = this.translate.instant('mcl.table.previous_page');
|
|
680
|
-
paginatorIntl.firstPageLabel = this.translate.instant('mcl.table.first_page');
|
|
681
|
-
paginatorIntl.lastPageLabel = this.translate.instant('mcl.table.last_page');
|
|
682
|
-
paginatorIntl.getRangeLabel = this.getRangeLabel.bind(this);
|
|
683
|
-
return paginatorIntl;
|
|
684
|
-
};
|
|
685
|
-
PaginatorI18n.prototype.getRangeLabel = function (page, pageSize, length) {
|
|
686
|
-
length = Math.max(length, 0);
|
|
687
|
-
var startIndex = page * pageSize;
|
|
688
|
-
var endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;
|
|
689
|
-
return this.translate.instant('mcl.table.range', { startIndex: startIndex + 1, endIndex: endIndex, length: length });
|
|
690
|
-
};
|
|
691
|
-
return PaginatorI18n;
|
|
692
|
-
}());
|
|
693
|
-
|
|
694
|
-
var PaginatorComponent = /** @class */ (function (_super) {
|
|
695
|
-
__extends(PaginatorComponent, _super);
|
|
696
|
-
function PaginatorComponent() {
|
|
697
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
698
|
-
}
|
|
699
|
-
return PaginatorComponent;
|
|
700
|
-
}(paginator.MatPaginator));
|
|
701
|
-
PaginatorComponent.decorators = [
|
|
702
|
-
{ type: core.Component, args: [{
|
|
703
|
-
selector: 'mcl-paginator',
|
|
704
|
-
template: "<div class=\"mat-paginator-outer-container\">\n <div class=\"mat-paginator-container\">\n <div class=\"mat-paginator-page-size\" *ngIf=\"!hidePageSize\">\n <div class=\"mat-paginator-page-size-label\">\n {{_intl.itemsPerPageLabel}}\n </div>\n\n <mat-form-field\n *ngIf=\"_displayedPageSizeOptions.length > 1\"\n appearance=\"standard\"\n [color]=\"color\"\n class=\"mat-paginator-page-size-select\">\n <mat-select\n [value]=\"pageSize\"\n [disabled]=\"disabled\"\n [aria-label]=\"_intl.itemsPerPageLabel\"\n (selectionChange)=\"_changePageSize($event.value)\">\n <mat-option *ngFor=\"let pageSizeOption of _displayedPageSizeOptions\" [value]=\"pageSizeOption\">\n {{'mcl.table.option' | translate:{option:pageSizeOption} }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <div\n class=\"mat-paginator-page-size-value\"\n *ngIf=\"_displayedPageSizeOptions.length <= 1\">{{pageSize}}</div>\n </div>\n\n <div class=\"mat-paginator-range-actions\">\n\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-first\"\n (click)=\"firstPage()\"\n [attr.aria-label]=\"_intl.firstPageLabel\"\n [matTooltip]=\"_intl.firstPageLabel\"\n [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_previousButtonsDisabled()\"\n *ngIf=\"showFirstLastButtons\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-previous\"\n (click)=\"previousPage()\"\n [attr.aria-label]=\"_intl.previousPageLabel\"\n [matTooltip]=\"_intl.previousPageLabel\"\n [matTooltipDisabled]=\"_previousButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_previousButtonsDisabled()\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/>\n </svg>\n </button>\n\n <div class=\"mat-paginator-range-label\">\n {{_intl.getRangeLabel(pageIndex, pageSize, length)}}\n </div>\n\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-next\"\n (click)=\"nextPage()\"\n [attr.aria-label]=\"_intl.nextPageLabel\"\n [matTooltip]=\"_intl.nextPageLabel\"\n [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_nextButtonsDisabled()\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/>\n </svg>\n </button>\n <button mat-icon-button type=\"button\"\n class=\"mat-paginator-navigation-last\"\n (click)=\"lastPage()\"\n [attr.aria-label]=\"_intl.lastPageLabel\"\n [matTooltip]=\"_intl.lastPageLabel\"\n [matTooltipDisabled]=\"_nextButtonsDisabled()\"\n [matTooltipPosition]=\"'above'\"\n [disabled]=\"_nextButtonsDisabled()\"\n *ngIf=\"showFirstLastButtons\">\n <svg class=\"mat-paginator-icon\" viewBox=\"0 0 24 24\" focusable=\"false\">\n <path d=\"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\"/>\n </svg>\n </button>\n </div>\n </div>\n</div>\n",
|
|
705
|
-
styles: [".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0;width:81px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}"]
|
|
706
|
-
},] }
|
|
707
|
-
];
|
|
708
|
-
|
|
709
|
-
var TableModule = /** @class */ (function () {
|
|
710
|
-
function TableModule() {
|
|
711
|
-
}
|
|
712
|
-
return TableModule;
|
|
713
|
-
}());
|
|
714
|
-
TableModule.decorators = [
|
|
715
|
-
{ type: core.NgModule, args: [{
|
|
716
|
-
exports: [
|
|
717
|
-
TableComponent,
|
|
718
|
-
ColumnDirective,
|
|
719
|
-
ColumnHeaderDirective,
|
|
720
|
-
ColumnCellDirective,
|
|
721
|
-
ColumnFooterDirective,
|
|
722
|
-
ThComponent,
|
|
723
|
-
TdComponent,
|
|
724
|
-
PaginatedTableComponent,
|
|
725
|
-
InfiniteTableComponent,
|
|
726
|
-
PaginatorComponent
|
|
727
|
-
],
|
|
728
|
-
declarations: [
|
|
729
|
-
TableComponent,
|
|
730
|
-
ColumnDirective,
|
|
731
|
-
ColumnHeaderDirective,
|
|
732
|
-
ColumnCellDirective,
|
|
733
|
-
ColumnFooterDirective,
|
|
734
|
-
ThComponent,
|
|
735
|
-
TdComponent,
|
|
736
|
-
PaginatedTableComponent,
|
|
737
|
-
InfiniteTableComponent,
|
|
738
|
-
PaginatorComponent
|
|
739
|
-
],
|
|
740
|
-
imports: [
|
|
741
|
-
common.CommonModule,
|
|
742
|
-
table.MatTableModule,
|
|
743
|
-
paginator.MatPaginatorModule,
|
|
744
|
-
button.MatButtonModule,
|
|
745
|
-
icon.MatIconModule,
|
|
746
|
-
core$2.TranslateModule,
|
|
747
|
-
formField.MatFormFieldModule,
|
|
748
|
-
select.MatSelectModule,
|
|
749
|
-
tooltip.MatTooltipModule,
|
|
750
|
-
loader.LoaderModule,
|
|
751
|
-
],
|
|
752
|
-
providers: [
|
|
753
|
-
{
|
|
754
|
-
provide: paginator.MatPaginatorIntl, deps: [core$2.TranslateService],
|
|
755
|
-
useFactory: PaginatorIntlFactory
|
|
756
|
-
}
|
|
757
|
-
]
|
|
758
|
-
},] }
|
|
759
|
-
];
|
|
760
|
-
function PaginatorIntlFactory(translateService) {
|
|
761
|
-
return new PaginatorI18n(translateService).getPaginatorIntl();
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* Generated bundle index. Do not edit.
|
|
766
|
-
*/
|
|
767
|
-
|
|
768
|
-
exports.ColumnCellDirective = ColumnCellDirective;
|
|
769
|
-
exports.ColumnDirective = ColumnDirective;
|
|
770
|
-
exports.ColumnFooterDirective = ColumnFooterDirective;
|
|
771
|
-
exports.ColumnHeaderDirective = ColumnHeaderDirective;
|
|
772
|
-
exports.InfiniteTableComponent = InfiniteTableComponent;
|
|
773
|
-
exports.PAGINATION_CONFIGURATION = PAGINATION_CONFIGURATION;
|
|
774
|
-
exports.PaginatedTableComponent = PaginatedTableComponent;
|
|
775
|
-
exports.PaginatorComponent = PaginatorComponent;
|
|
776
|
-
exports.PaginatorIntlFactory = PaginatorIntlFactory;
|
|
777
|
-
exports.TableComponent = TableComponent;
|
|
778
|
-
exports.TableModule = TableModule;
|
|
779
|
-
exports.TdComponent = TdComponent;
|
|
780
|
-
exports.ThComponent = ThComponent;
|
|
781
|
-
exports.ɵ0 = ɵ0;
|
|
782
|
-
exports.ɵa = PaginatorI18n;
|
|
783
|
-
|
|
784
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
785
|
-
|
|
786
|
-
})));
|
|
787
|
-
//# sourceMappingURL=main-class-componentes-table.umd.js.map
|