@main-class/componentes 1.18.8 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arquivo/index.d.ts +6 -4
- package/arquivo/main-class-componentes-arquivo.d.ts +4 -0
- package/arquivo/main-class-componentes-arquivo.metadata.json +1 -0
- package/arquivo/package.json +11 -0
- package/arquivo/{download-arquivo.directive.d.ts → src/download-arquivo.directive.d.ts} +1 -1
- package/{core/imagem → arquivo/src}/imagem.directive.d.ts +1 -1
- package/arquivo/{preview-arquivo → src/preview-arquivo}/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +1 -1
- package/arquivo/{preview-arquivo → src/preview-arquivo}/preview-arquivo.component.d.ts +1 -1
- package/bundles/main-class-componentes-arquivo.umd.js +687 -0
- package/bundles/main-class-componentes-arquivo.umd.js.map +1 -0
- package/bundles/main-class-componentes-arquivo.umd.min.js +16 -0
- package/bundles/main-class-componentes-arquivo.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-core.umd.js +252 -0
- package/bundles/main-class-componentes-core.umd.js.map +1 -0
- package/bundles/main-class-componentes-core.umd.min.js +2 -0
- package/bundles/main-class-componentes-core.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-crud.umd.js +543 -0
- package/bundles/main-class-componentes-crud.umd.js.map +1 -0
- package/bundles/main-class-componentes-crud.umd.min.js +16 -0
- package/bundles/main-class-componentes-crud.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-date.umd.js +185 -0
- package/bundles/main-class-componentes-date.umd.js.map +1 -0
- package/bundles/main-class-componentes-date.umd.min.js +2 -0
- package/bundles/main-class-componentes-date.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-dialog.umd.js +206 -0
- package/bundles/main-class-componentes-dialog.umd.js.map +1 -0
- package/bundles/main-class-componentes-dialog.umd.min.js +2 -0
- package/bundles/main-class-componentes-dialog.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-form.umd.js +211 -0
- package/bundles/main-class-componentes-form.umd.js.map +1 -0
- package/bundles/main-class-componentes-form.umd.min.js +2 -0
- package/bundles/main-class-componentes-form.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-input.umd.js +2244 -0
- package/bundles/main-class-componentes-input.umd.js.map +1 -0
- package/bundles/main-class-componentes-input.umd.min.js +17 -0
- package/bundles/main-class-componentes-input.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-loader.umd.js +233 -0
- package/bundles/main-class-componentes-loader.umd.js.map +1 -0
- package/bundles/main-class-componentes-loader.umd.min.js +2 -0
- package/bundles/main-class-componentes-loader.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-misc.umd.js +1122 -0
- package/bundles/main-class-componentes-misc.umd.js.map +1 -0
- package/bundles/main-class-componentes-misc.umd.min.js +16 -0
- package/bundles/main-class-componentes-misc.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-model.umd.js +196 -0
- package/bundles/main-class-componentes-model.umd.js.map +1 -0
- package/bundles/main-class-componentes-model.umd.min.js +2 -0
- package/bundles/main-class-componentes-model.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-pipe.umd.js +58 -0
- package/bundles/main-class-componentes-pipe.umd.js.map +1 -0
- package/bundles/main-class-componentes-pipe.umd.min.js +2 -0
- package/bundles/main-class-componentes-pipe.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-scroll.umd.js +106 -0
- package/bundles/main-class-componentes-scroll.umd.js.map +1 -0
- package/bundles/main-class-componentes-scroll.umd.min.js +2 -0
- package/bundles/main-class-componentes-scroll.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-table.umd.js +787 -0
- package/bundles/main-class-componentes-table.umd.js.map +1 -0
- package/bundles/main-class-componentes-table.umd.min.js +17 -0
- package/bundles/main-class-componentes-table.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-util.umd.js +31 -0
- package/bundles/main-class-componentes-util.umd.js.map +1 -0
- package/bundles/main-class-componentes-util.umd.min.js +2 -0
- package/bundles/main-class-componentes-util.umd.min.js.map +1 -0
- package/bundles/main-class-componentes.umd.js +13 -5511
- package/bundles/main-class-componentes.umd.js.map +1 -1
- package/bundles/main-class-componentes.umd.min.js +1 -1
- package/bundles/main-class-componentes.umd.min.js.map +1 -1
- package/core/index.d.ts +5 -14
- package/core/main-class-componentes-core.d.ts +4 -0
- package/core/main-class-componentes-core.metadata.json +1 -0
- package/core/package.json +11 -0
- package/core/src/core.module.d.ts +4 -0
- package/core/{mensageria → src/mensageria}/mensageria.service.d.ts +1 -2
- package/crud/index.d.ts +4 -5
- package/crud/main-class-componentes-crud.d.ts +4 -0
- package/crud/main-class-componentes-crud.metadata.json +1 -0
- package/crud/package.json +11 -0
- package/crud/{abstract-consulta-component.d.ts → src/abstract-consulta-component.d.ts} +3 -2
- package/crud/{abstract-consulta-paginada-component.d.ts → src/abstract-consulta-paginada-component.d.ts} +3 -2
- package/crud/{abstract-edicao-component.d.ts → src/abstract-edicao-component.d.ts} +2 -1
- package/crud/{abstract-edicao-modal-component.d.ts → src/abstract-edicao-modal-component.d.ts} +3 -1
- package/date/index.d.ts +3 -3
- package/date/main-class-componentes-date.d.ts +4 -0
- package/date/main-class-componentes-date.metadata.json +1 -0
- package/date/package.json +11 -0
- package/dialog/index.d.ts +4 -0
- package/dialog/main-class-componentes-dialog.d.ts +4 -0
- package/dialog/main-class-componentes-dialog.metadata.json +1 -0
- package/dialog/package.json +11 -0
- package/dialog/src/dialog.module.d.ts +2 -0
- package/esm2015/arquivo/index.js +7 -5
- package/esm2015/arquivo/main-class-componentes-arquivo.js +5 -0
- package/esm2015/arquivo/src/arquivo-manager.service.js +3 -0
- package/esm2015/arquivo/src/arquivo.module.js +30 -0
- package/esm2015/arquivo/src/download-arquivo.directive.js +44 -0
- package/esm2015/arquivo/src/imagem.directive.js +80 -0
- package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +56 -0
- package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +136 -0
- package/esm2015/core/index.js +6 -15
- package/esm2015/core/main-class-componentes-core.js +5 -0
- package/esm2015/core/src/core.module.js +27 -0
- package/esm2015/core/src/criptografia/criptografia.service.js +13 -0
- package/esm2015/core/src/mensageria/mensageria.service.js +48 -0
- package/esm2015/core/src/mobile/mobile.service.js +45 -0
- package/esm2015/core/src/validator/valida-modulo11.service.js +92 -0
- package/esm2015/crud/index.js +5 -6
- package/esm2015/crud/main-class-componentes-crud.js +5 -0
- package/esm2015/crud/src/abstract-consulta-component.js +60 -0
- package/esm2015/crud/src/abstract-consulta-paginada-component.js +48 -0
- package/esm2015/crud/src/abstract-edicao-component.js +29 -0
- package/esm2015/crud/src/abstract-edicao-modal-component.js +24 -0
- package/esm2015/date/index.js +4 -4
- package/esm2015/date/main-class-componentes-date.js +5 -0
- package/esm2015/date/src/date.module.js +19 -0
- package/esm2015/date/src/validator/data-validator.directive.js +97 -0
- package/esm2015/date/src/validator/futuro.directive.js +26 -0
- package/esm2015/dialog/index.js +5 -0
- package/esm2015/dialog/main-class-componentes-dialog.js +5 -0
- package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +40 -0
- package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +59 -0
- package/esm2015/dialog/src/dialog.module.js +28 -0
- package/esm2015/dialog/src/dialog.service.js +55 -0
- package/esm2015/form/index.js +5 -5
- package/esm2015/form/main-class-componentes-form.js +5 -0
- package/esm2015/form/src/form.component.js +103 -0
- package/esm2015/form/src/form.module.js +25 -0
- package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +31 -0
- package/esm2015/form/src/single-click.directive.js +35 -0
- package/esm2015/input/index.js +22 -22
- package/esm2015/input/main-class-componentes-input.js +6 -0
- package/esm2015/input/src/abstract-mat-form-field-control.js +110 -0
- package/esm2015/input/src/input-datetime/input-datetime.component.js +114 -0
- package/esm2015/input/{input-datetime → src/input-datetime}/input-datetime.module.js +3 -3
- package/esm2015/input/src/input-fileupload/input-fileupload.component.js +324 -0
- package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +34 -0
- package/esm2015/input/src/input-fileupload/input-fileupload.module.js +34 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +22 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +66 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +23 -0
- package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +36 -0
- package/esm2015/input/src/option-checkbox/node-pool.js +93 -0
- package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +71 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.component.js +59 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.module.js +23 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.service.js +52 -0
- package/esm2015/input/src/option-checkbox/option-node.js +24 -0
- package/esm2015/input/src/select-chips/select-chips.component.js +177 -0
- package/esm2015/input/src/select-chips/select-chips.module.js +25 -0
- package/esm2015/input/src/select-item/select-item.component.js +20 -0
- package/esm2015/input/src/select-item/select-item.module.js +15 -0
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +150 -0
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +21 -0
- package/esm2015/input/src/select-radio/select-radio.component.js +124 -0
- package/esm2015/input/src/select-radio/select-radio.module.js +21 -0
- package/esm2015/loader/index.js +4 -0
- package/esm2015/loader/main-class-componentes-loader.js +5 -0
- package/esm2015/loader/src/loader.component.js +112 -0
- package/esm2015/loader/src/loader.module.js +21 -0
- package/esm2015/loader/src/loader.service.js +70 -0
- package/esm2015/misc/index.js +27 -27
- package/esm2015/misc/main-class-componentes-misc.js +5 -0
- package/esm2015/misc/src/cnpj/cnpj-model.directive.js +13 -0
- package/esm2015/misc/src/cnpj/cnpj.directive.js +31 -0
- package/esm2015/misc/src/cnpj/cnpj.module.js +19 -0
- package/esm2015/misc/src/cnpj/cnpjs.pipe.js +15 -0
- package/esm2015/misc/src/cpf/cpf-model.directive.js +13 -0
- package/esm2015/misc/src/cpf/cpf.directive.js +31 -0
- package/esm2015/misc/src/cpf/cpf.module.js +19 -0
- package/esm2015/misc/src/cpf/cpf.pipe.js +15 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +25 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +32 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +19 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +18 -0
- package/esm2015/misc/{info → src/info}/info.component.js +1 -1
- package/esm2015/misc/src/info/info.module.js +17 -0
- package/esm2015/misc/src/monetario/monetario-mask.js +34 -0
- package/esm2015/misc/src/monetario/monetario-model.directive.js +124 -0
- package/esm2015/misc/src/monetario/monetario.module.js +16 -0
- package/esm2015/misc/src/monetario/monetario.pipe.js +13 -0
- package/esm2015/misc/src/porcentagem/porcentagem-mask.js +34 -0
- package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +99 -0
- package/esm2015/misc/src/porcentagem/porcentagem.module.js +16 -0
- package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +13 -0
- package/esm2015/misc/src/telefone/telefone-model.directive.js +25 -0
- package/esm2015/misc/src/telefone/telefone.module.js +18 -0
- package/esm2015/misc/src/telefone/telefone.pipe.js +33 -0
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +23 -0
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +15 -0
- package/esm2015/model/index.js +3 -0
- package/esm2015/model/main-class-componentes-model.js +5 -0
- package/esm2015/model/src/masked-model.directive.js +149 -0
- package/esm2015/model/src/model.module.js +19 -0
- package/esm2015/pipe/index.js +3 -0
- package/esm2015/pipe/main-class-componentes-pipe.js +5 -0
- package/esm2015/pipe/src/nome-resumido.pipe.js +16 -0
- package/esm2015/pipe/src/pipe.module.js +19 -0
- package/esm2015/public-api.js +2 -11
- package/esm2015/scroll/index.js +3 -3
- package/esm2015/scroll/main-class-componentes-scroll.js +5 -0
- package/esm2015/scroll/src/scroll-container/scroll-container.component.js +69 -0
- package/esm2015/scroll/src/scroll.module.js +17 -0
- package/esm2015/table/index.js +12 -12
- package/esm2015/table/main-class-componentes-table.js +6 -0
- package/esm2015/table/src/column/column-cell.directive.js +15 -0
- package/esm2015/table/src/column/column-footer.directive.js +15 -0
- package/esm2015/table/src/column/column-header.directive.js +15 -0
- package/esm2015/table/src/column/column.directive.js +28 -0
- package/esm2015/table/src/infinite-table/infinite-table.component.js +92 -0
- package/esm2015/table/src/paginated-table/paginated-table.component.js +43 -0
- package/esm2015/table/{paginator → src/paginator}/paginator.component.js +1 -1
- package/esm2015/table/src/paginator-i18n.js +23 -0
- package/esm2015/table/src/table/table.component.js +119 -0
- package/esm2015/table/src/table.module.js +74 -0
- package/esm2015/table/src/td/td.component.js +19 -0
- package/esm2015/table/src/th/th.component.js +19 -0
- package/esm2015/util/index.js +2 -2
- package/esm2015/util/main-class-componentes-util.js +5 -0
- package/esm2015/util/src/string.util.js +12 -0
- package/fesm2015/main-class-componentes-arquivo.js +338 -0
- package/fesm2015/main-class-componentes-arquivo.js.map +1 -0
- package/fesm2015/main-class-componentes-core.js +219 -0
- package/fesm2015/main-class-componentes-core.js.map +1 -0
- package/fesm2015/main-class-componentes-crud.js +162 -0
- package/fesm2015/main-class-componentes-crud.js.map +1 -0
- package/fesm2015/main-class-componentes-date.js +143 -0
- package/fesm2015/main-class-componentes-date.js.map +1 -0
- package/fesm2015/main-class-componentes-dialog.js +177 -0
- package/fesm2015/main-class-componentes-dialog.js.map +1 -0
- package/fesm2015/main-class-componentes-form.js +191 -0
- package/fesm2015/main-class-componentes-form.js.map +1 -0
- package/fesm2015/main-class-componentes-input.js +1604 -0
- package/fesm2015/main-class-componentes-input.js.map +1 -0
- package/fesm2015/main-class-componentes-loader.js +206 -0
- package/fesm2015/main-class-componentes-loader.js.map +1 -0
- package/fesm2015/main-class-componentes-misc.js +688 -0
- package/fesm2015/main-class-componentes-misc.js.map +1 -0
- package/fesm2015/main-class-componentes-model.js +173 -0
- package/fesm2015/main-class-componentes-model.js.map +1 -0
- package/fesm2015/main-class-componentes-pipe.js +40 -0
- package/fesm2015/main-class-componentes-pipe.js.map +1 -0
- package/fesm2015/main-class-componentes-scroll.js +91 -0
- package/fesm2015/main-class-componentes-scroll.js.map +1 -0
- package/fesm2015/main-class-componentes-table.js +446 -0
- package/fesm2015/main-class-componentes-table.js.map +1 -0
- package/fesm2015/main-class-componentes-util.js +18 -0
- package/fesm2015/main-class-componentes-util.js.map +1 -0
- package/fesm2015/main-class-componentes.js +1 -4308
- package/fesm2015/main-class-componentes.js.map +1 -1
- package/form/index.d.ts +4 -4
- package/form/main-class-componentes-form.d.ts +4 -0
- package/form/main-class-componentes-form.metadata.json +1 -0
- package/form/package.json +11 -0
- package/input/index.d.ts +21 -21
- package/input/main-class-componentes-input.d.ts +5 -0
- package/input/main-class-componentes-input.metadata.json +1 -0
- package/input/package.json +11 -0
- package/input/{input-fileupload → src/input-fileupload}/input-fileupload.component.d.ts +2 -2
- package/loader/index.d.ts +3 -0
- package/loader/main-class-componentes-loader.d.ts +4 -0
- package/loader/main-class-componentes-loader.metadata.json +1 -0
- package/loader/package.json +11 -0
- package/{core/loader → loader/src}/loader.component.d.ts +1 -1
- package/loader/src/loader.module.d.ts +2 -0
- package/main-class-componentes.metadata.json +1 -1
- package/misc/index.d.ts +26 -26
- package/misc/main-class-componentes-misc.d.ts +4 -0
- package/misc/main-class-componentes-misc.metadata.json +1 -0
- package/misc/package.json +11 -0
- package/misc/{cnpj → src/cnpj}/cnpj-model.directive.d.ts +1 -1
- package/misc/{cnpj → src/cnpj}/cnpj.directive.d.ts +1 -1
- package/misc/{cpf → src/cpf}/cpf-model.directive.d.ts +1 -1
- package/misc/{cpf → src/cpf}/cpf.directive.d.ts +1 -1
- package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj-model.directive.d.ts +1 -1
- package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.directive.d.ts +1 -1
- package/misc/{telefone → src/telefone}/telefone-model.directive.d.ts +1 -1
- package/model/index.d.ts +2 -0
- package/model/main-class-componentes-model.d.ts +4 -0
- package/model/main-class-componentes-model.metadata.json +1 -0
- package/model/package.json +11 -0
- package/model/src/model.module.d.ts +2 -0
- package/package.json +1 -1
- package/pipe/index.d.ts +2 -0
- package/pipe/main-class-componentes-pipe.d.ts +4 -0
- package/pipe/main-class-componentes-pipe.metadata.json +1 -0
- package/pipe/package.json +11 -0
- package/pipe/src/pipe.module.d.ts +2 -0
- package/public-api.d.ts +2 -10
- package/scroll/index.d.ts +2 -2
- package/scroll/main-class-componentes-scroll.d.ts +4 -0
- package/scroll/main-class-componentes-scroll.metadata.json +1 -0
- package/scroll/package.json +11 -0
- package/table/index.d.ts +11 -11
- package/table/main-class-componentes-table.d.ts +5 -0
- package/table/main-class-componentes-table.metadata.json +1 -0
- package/table/package.json +11 -0
- package/table/{infinite-table → src/infinite-table}/infinite-table.component.d.ts +2 -1
- package/table/{paginated-table → src/paginated-table}/paginated-table.component.d.ts +2 -2
- package/table/{table → src/table}/table.component.d.ts +1 -1
- package/util/index.d.ts +1 -1
- package/util/main-class-componentes-util.d.ts +4 -0
- package/util/main-class-componentes-util.metadata.json +1 -0
- package/util/package.json +11 -0
- package/core/componentes.module.d.ts +0 -4
- package/crud/crud.module.d.ts +0 -2
- package/esm2015/arquivo/arquivo.module.js +0 -29
- package/esm2015/arquivo/download-arquivo.directive.js +0 -44
- package/esm2015/arquivo/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
- package/esm2015/arquivo/preview-arquivo/preview-arquivo.component.js +0 -136
- package/esm2015/core/arquivo/arquivo-manager.service.js +0 -3
- package/esm2015/core/componentes.module.js +0 -65
- package/esm2015/core/criptografia/criptografia.service.js +0 -13
- package/esm2015/core/dialog/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
- package/esm2015/core/dialog/dialog-iframe/dialog-iframe.component.js +0 -59
- package/esm2015/core/dialog/dialog.service.js +0 -56
- package/esm2015/core/form/model/masked-model.directive.js +0 -149
- package/esm2015/core/form/validator/valida-modulo11.service.js +0 -92
- package/esm2015/core/imagem/imagem.directive.js +0 -80
- package/esm2015/core/loader/loader.component.js +0 -112
- package/esm2015/core/loader/loader.service.js +0 -70
- package/esm2015/core/mensageria/mensageria.service.js +0 -49
- package/esm2015/core/mobile/mobile.service.js +0 -46
- package/esm2015/core/pipe/nome-resumido.pipe.js +0 -16
- package/esm2015/crud/abstract-consulta-component.js +0 -60
- package/esm2015/crud/abstract-consulta-paginada-component.js +0 -48
- package/esm2015/crud/abstract-edicao-component.js +0 -29
- package/esm2015/crud/abstract-edicao-modal-component.js +0 -24
- package/esm2015/crud/crud.module.js +0 -14
- package/esm2015/date/date.module.js +0 -19
- package/esm2015/date/validator/data-validator.directive.js +0 -96
- package/esm2015/date/validator/futuro.directive.js +0 -26
- package/esm2015/form/form.component.js +0 -103
- package/esm2015/form/form.module.js +0 -25
- package/esm2015/form/mensagens-erro/mensagens-erro.component.js +0 -31
- package/esm2015/form/single-click.directive.js +0 -35
- package/esm2015/input/abstract-mat-form-field-control.js +0 -110
- package/esm2015/input/input-datetime/input-datetime.component.js +0 -114
- package/esm2015/input/input-fileupload/input-fileupload.component.js +0 -324
- package/esm2015/input/input-fileupload/input-fileupload.directive.js +0 -34
- package/esm2015/input/input-fileupload/input-fileupload.module.js +0 -34
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
- package/esm2015/input/option-checkbox/all-option-checkbox.component.js +0 -36
- package/esm2015/input/option-checkbox/node-pool.js +0 -93
- package/esm2015/input/option-checkbox/option-checkbox-group.component.js +0 -71
- package/esm2015/input/option-checkbox/option-checkbox.component.js +0 -59
- package/esm2015/input/option-checkbox/option-checkbox.module.js +0 -23
- package/esm2015/input/option-checkbox/option-checkbox.service.js +0 -52
- package/esm2015/input/option-checkbox/option-node.js +0 -24
- package/esm2015/input/select-chips/select-chips.component.js +0 -177
- package/esm2015/input/select-chips/select-chips.module.js +0 -25
- package/esm2015/input/select-item/select-item.component.js +0 -20
- package/esm2015/input/select-item/select-item.module.js +0 -15
- package/esm2015/input/select-many-checkbox/select-many-checkbox.component.js +0 -150
- package/esm2015/input/select-many-checkbox/select-many-checkbox.module.js +0 -21
- package/esm2015/input/select-radio/select-radio.component.js +0 -124
- package/esm2015/input/select-radio/select-radio.module.js +0 -21
- package/esm2015/misc/cnpj/cnpj-model.directive.js +0 -13
- package/esm2015/misc/cnpj/cnpj.directive.js +0 -31
- package/esm2015/misc/cnpj/cnpj.module.js +0 -19
- package/esm2015/misc/cnpj/cnpjs.pipe.js +0 -15
- package/esm2015/misc/cpf/cpf-model.directive.js +0 -13
- package/esm2015/misc/cpf/cpf.directive.js +0 -31
- package/esm2015/misc/cpf/cpf.module.js +0 -19
- package/esm2015/misc/cpf/cpf.pipe.js +0 -15
- package/esm2015/misc/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.directive.js +0 -32
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.module.js +0 -19
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
- package/esm2015/misc/info/info.module.js +0 -17
- package/esm2015/misc/monetario/monetario-mask.js +0 -34
- package/esm2015/misc/monetario/monetario-model.directive.js +0 -124
- package/esm2015/misc/monetario/monetario.module.js +0 -16
- package/esm2015/misc/monetario/monetario.pipe.js +0 -13
- package/esm2015/misc/porcentagem/porcentagem-mask.js +0 -34
- package/esm2015/misc/porcentagem/porcentagem-model.directive.js +0 -99
- package/esm2015/misc/porcentagem/porcentagem.module.js +0 -16
- package/esm2015/misc/porcentagem/porcentagem.pipe.js +0 -13
- package/esm2015/misc/telefone/telefone-model.directive.js +0 -25
- package/esm2015/misc/telefone/telefone.module.js +0 -18
- package/esm2015/misc/telefone/telefone.pipe.js +0 -33
- package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
- package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
- package/esm2015/scroll/scroll-container/scroll-container.component.js +0 -69
- package/esm2015/scroll/scroll.module.js +0 -17
- package/esm2015/table/column/column-cell.directive.js +0 -15
- package/esm2015/table/column/column-footer.directive.js +0 -15
- package/esm2015/table/column/column-header.directive.js +0 -15
- package/esm2015/table/column/column.directive.js +0 -28
- package/esm2015/table/infinite-table/infinite-table.component.js +0 -91
- package/esm2015/table/paginated-table/paginated-table.component.js +0 -43
- package/esm2015/table/paginator-i18n.js +0 -23
- package/esm2015/table/table/table.component.js +0 -119
- package/esm2015/table/table.module.js +0 -74
- package/esm2015/table/td/td.component.js +0 -19
- package/esm2015/table/th/th.component.js +0 -19
- package/esm2015/util/string.util.js +0 -12
- /package/{core/arquivo → arquivo/src}/arquivo-manager.service.d.ts +0 -0
- /package/arquivo/{arquivo.module.d.ts → src/arquivo.module.d.ts} +0 -0
- /package/core/{criptografia → src/criptografia}/criptografia.service.d.ts +0 -0
- /package/core/{mobile → src/mobile}/mobile.service.d.ts +0 -0
- /package/core/{form → src}/validator/valida-modulo11.service.d.ts +0 -0
- /package/date/{date.module.d.ts → src/date.module.d.ts} +0 -0
- /package/date/{validator → src/validator}/data-validator.directive.d.ts +0 -0
- /package/date/{validator → src/validator}/futuro.directive.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog-confirmacao/dialog-confirmacao.component.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog-iframe/dialog-iframe.component.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog.service.d.ts +0 -0
- /package/form/{form.component.d.ts → src/form.component.d.ts} +0 -0
- /package/form/{form.module.d.ts → src/form.module.d.ts} +0 -0
- /package/form/{mensagens-erro → src/mensagens-erro}/mensagens-erro.component.d.ts +0 -0
- /package/form/{single-click.directive.d.ts → src/single-click.directive.d.ts} +0 -0
- /package/input/{abstract-mat-form-field-control.d.ts → src/abstract-mat-form-field-control.d.ts} +0 -0
- /package/input/{input-datetime → src/input-datetime}/input-datetime.component.d.ts +0 -0
- /package/input/{input-datetime → src/input-datetime}/input-datetime.module.d.ts +0 -0
- /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.directive.d.ts +0 -0
- /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.module.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional-validator.directive.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.component.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.module.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/all-option-checkbox.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/node-pool.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox-group.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.module.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.service.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-node.d.ts +0 -0
- /package/input/{select-chips → src/select-chips}/select-chips.component.d.ts +0 -0
- /package/input/{select-chips → src/select-chips}/select-chips.module.d.ts +0 -0
- /package/input/{select-item → src/select-item}/select-item.component.d.ts +0 -0
- /package/input/{select-item → src/select-item}/select-item.module.d.ts +0 -0
- /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.component.d.ts +0 -0
- /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.module.d.ts +0 -0
- /package/input/{select-radio → src/select-radio}/select-radio.component.d.ts +0 -0
- /package/input/{select-radio → src/select-radio}/select-radio.module.d.ts +0 -0
- /package/{core/loader → loader/src}/loader.service.d.ts +0 -0
- /package/misc/{cnpj → src/cnpj}/cnpj.module.d.ts +0 -0
- /package/misc/{cnpj → src/cnpj}/cnpjs.pipe.d.ts +0 -0
- /package/misc/{cpf → src/cpf}/cpf.module.d.ts +0 -0
- /package/misc/{cpf → src/cpf}/cpf.pipe.d.ts +0 -0
- /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.module.d.ts +0 -0
- /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.pipe.d.ts +0 -0
- /package/misc/{info → src/info}/info.component.d.ts +0 -0
- /package/misc/{info → src/info}/info.module.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario-mask.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario-model.directive.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario.module.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario.pipe.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem-mask.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem-model.directive.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem.module.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem.pipe.d.ts +0 -0
- /package/misc/{telefone → src/telefone}/telefone.module.d.ts +0 -0
- /package/misc/{telefone → src/telefone}/telefone.pipe.d.ts +0 -0
- /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.directive.d.ts +0 -0
- /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.module.d.ts +0 -0
- /package/{core/form/model → model/src}/masked-model.directive.d.ts +0 -0
- /package/{core/pipe → pipe/src}/nome-resumido.pipe.d.ts +0 -0
- /package/scroll/{scroll-container → src/scroll-container}/scroll-container.component.d.ts +0 -0
- /package/scroll/{scroll.module.d.ts → src/scroll.module.d.ts} +0 -0
- /package/table/{column → src/column}/column-cell.directive.d.ts +0 -0
- /package/table/{column → src/column}/column-footer.directive.d.ts +0 -0
- /package/table/{column → src/column}/column-header.directive.d.ts +0 -0
- /package/table/{column → src/column}/column.directive.d.ts +0 -0
- /package/table/{paginator → src/paginator}/paginator.component.d.ts +0 -0
- /package/table/{paginator-i18n.d.ts → src/paginator-i18n.d.ts} +0 -0
- /package/table/{table.module.d.ts → src/table.module.d.ts} +0 -0
- /package/table/{td → src/td}/td.component.d.ts +0 -0
- /package/table/{th → src/th}/th.component.d.ts +0 -0
- /package/util/{string.util.d.ts → src/string.util.d.ts} +0 -0
|
@@ -0,0 +1,787 @@
|
|
|
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
|