@main-class/componentes 2.2.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -10
- package/arquivo/index.d.ts +0 -1
- package/arquivo/src/download-arquivo.directive.d.ts +1 -1
- package/arquivo/src/imagem.directive.d.ts +2 -2
- package/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +1 -1
- package/arquivo/src/preview-arquivo/preview-arquivo.component.d.ts +6 -6
- package/core/index.d.ts +0 -1
- package/crud/index.d.ts +4 -1
- package/crud/src/abstract-consulta-paginada-component.d.ts +3 -3
- package/crud/src/abstract-edicao-component.d.ts +1 -1
- package/crud/src/query/query-field/query-field.component.d.ts +37 -0
- package/crud/src/query/query-form-field/query-form-field.component.d.ts +11 -0
- package/crud/src/query/query-form.component.d.ts +23 -0
- package/crud/src/query/query-modal-form/query-modal-form.component.d.ts +13 -0
- package/dialog/index.d.ts +7 -1
- package/dialog/src/dialog-confirmacao/dialog-confirmacao.component.d.ts +2 -2
- package/dialog/src/dialog-iframe/dialog-iframe.component.d.ts +1 -1
- package/dialog/src/dialog-sidebar/modal-template/modal-body.directive.d.ts +9 -0
- package/dialog/src/dialog-sidebar/modal-template/modal-close.directive.d.ts +9 -0
- package/dialog/src/dialog-sidebar/modal-template/modal-footer.directive.d.ts +6 -0
- package/dialog/src/dialog-sidebar/modal-template/modal-header.directive.d.ts +6 -0
- package/dialog/src/dialog-sidebar/modal-template/modal-template.component.d.ts +12 -0
- package/dialog/src/dialog-sidebar/modal.component.d.ts +8 -0
- package/dialog/src/dialog-sidebar/sidebar-modal-ref.d.ts +17 -0
- package/dialog/src/dialog.service.d.ts +6 -1
- package/fesm2022/main-class-componentes-arquivo.mjs +370 -0
- package/fesm2022/main-class-componentes-arquivo.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/main-class-componentes-core.mjs +36 -56
- package/fesm2022/main-class-componentes-core.mjs.map +1 -0
- package/fesm2022/main-class-componentes-crud.mjs +443 -0
- package/fesm2022/main-class-componentes-crud.mjs.map +1 -0
- package/fesm2022/main-class-componentes-dialog.mjs +393 -0
- package/fesm2022/main-class-componentes-dialog.mjs.map +1 -0
- package/fesm2022/main-class-componentes-form.mjs +196 -0
- package/fesm2022/main-class-componentes-form.mjs.map +1 -0
- package/fesm2022/main-class-componentes-input.mjs +2040 -0
- package/fesm2022/main-class-componentes-input.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/main-class-componentes-loader.mjs +38 -59
- package/fesm2022/main-class-componentes-loader.mjs.map +1 -0
- package/fesm2022/main-class-componentes-misc.mjs +353 -0
- package/fesm2022/main-class-componentes-misc.mjs.map +1 -0
- package/fesm2022/main-class-componentes-pipe.mjs +27 -0
- package/fesm2022/main-class-componentes-pipe.mjs.map +1 -0
- package/fesm2022/main-class-componentes-table.mjs +384 -0
- package/fesm2022/main-class-componentes-table.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/main-class-componentes.mjs +4 -1
- package/fesm2022/main-class-componentes.mjs.map +1 -0
- package/form/index.d.ts +0 -1
- package/form/src/form.component.d.ts +2 -2
- package/form/src/mensagens-erro/mensagens-erro.component.d.ts +6 -3
- package/form/src/single-click.directive.d.ts +2 -2
- package/input/index.d.ts +13 -11
- package/input/src/abstract-mat-form-field-control.d.ts +5 -5
- package/input/src/abstract-mat-form-field-select-control.d.ts +30 -0
- package/input/src/input-currency/input-currency.component.d.ts +11 -0
- package/input/src/input-datetime/input-datetime.component.d.ts +11 -12
- package/input/src/input-fileupload/input-fileupload.component.d.ts +5 -5
- package/input/src/input-fileupload/input-fileupload.directive.d.ts +1 -1
- package/input/src/input-mask/input-cep.component.d.ts +11 -0
- package/input/src/input-mask/input-cnpj.component.d.ts +11 -0
- package/input/src/input-mask/input-cpf-cnpj.component.d.ts +8 -0
- package/input/src/input-mask/input-cpf.component.d.ts +11 -0
- package/input/src/input-mask/input-mask.component.d.ts +20 -0
- package/input/src/input-mask/input-phone.component.d.ts +12 -0
- package/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.d.ts +1 -1
- package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +1 -1
- package/input/src/option-checkbox/all-option-checkbox.component.d.ts +3 -3
- package/input/src/option-checkbox/node-pool.d.ts +1 -1
- package/input/src/option-checkbox/option-checkbox-group.component.d.ts +2 -2
- package/input/src/option-checkbox/option-checkbox.component.d.ts +3 -3
- package/input/src/option-checkbox/option-node.d.ts +1 -1
- package/input/src/select-autocomplete/select-autocomplete.component.d.ts +21 -0
- package/input/src/select-chips/select-chips.component.d.ts +10 -53
- package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +9 -49
- package/input/src/select-option/delegate-option-provider.directive.d.ts +13 -0
- package/input/src/select-option/select-option-provider.d.ts +10 -0
- package/input/src/select-option/select-option.component.d.ts +10 -0
- package/input/src/select-option/select-option.d.ts +4 -0
- package/input/src/select-radio/select-radio.component.d.ts +7 -45
- package/loader/index.d.ts +0 -1
- package/loader/src/loader.component.d.ts +3 -3
- package/loader/src/loader.service.d.ts +3 -3
- package/misc/index.d.ts +1 -15
- package/misc/src/cnpj/cnpj.directive.d.ts +2 -2
- package/misc/src/cnpj/cnpjs.pipe.d.ts +2 -2
- package/misc/src/cpf/cpf.directive.d.ts +2 -2
- package/misc/src/cpf/cpf.pipe.d.ts +2 -2
- package/misc/src/cpf-cnpj/cpf-cnpj.directive.d.ts +2 -2
- package/misc/src/cpf-cnpj/cpf-cnpj.pipe.d.ts +2 -2
- package/misc/src/mask/mask.pipe.d.ts +8 -0
- package/misc/src/monetario/monetario-mask.d.ts +1 -1
- package/misc/src/monetario/monetario.pipe.d.ts +1 -1
- package/misc/src/porcentagem/porcentagem-mask.d.ts +1 -1
- package/misc/src/porcentagem/porcentagem.pipe.d.ts +1 -1
- package/misc/src/telefone/telefone.pipe.d.ts +1 -1
- package/misc/src/unsafe-inner-html/unsafe-inner-html.directive.d.ts +1 -1
- package/package.json +19 -99
- package/pipe/index.d.ts +0 -1
- package/pipe/src/nome-resumido.pipe.d.ts +1 -1
- package/public-api.d.ts +2 -2
- package/table/index.d.ts +0 -2
- package/table/src/column/column-cell.directive.d.ts +1 -1
- package/table/src/column/column-footer.directive.d.ts +1 -1
- package/table/src/column/column-header.directive.d.ts +1 -1
- package/table/src/column/column.directive.d.ts +2 -2
- package/table/src/paginated-table/paginated-table.component.d.ts +10 -8
- package/table/src/paginator/paginator.component.d.ts +1 -1
- package/table/src/table/table.component.d.ts +7 -7
- package/table/src/td/td.component.d.ts +1 -1
- package/table/src/th/th.component.d.ts +1 -1
- package/arquivo/src/arquivo.module.d.ts +0 -17
- package/core/src/core.module.d.ts +0 -9
- package/crud/src/abstract-consulta-component.d.ts +0 -30
- package/date/index.d.ts +0 -3
- package/date/src/date.module.d.ts +0 -9
- package/date/src/validator/data-validator.directive.d.ts +0 -23
- package/date/src/validator/futuro.directive.d.ts +0 -8
- package/dialog/src/dialog.module.d.ts +0 -16
- package/esm2020/arquivo/index.mjs +0 -7
- package/esm2020/arquivo/main-class-componentes-arquivo.mjs +0 -5
- package/esm2020/arquivo/src/arquivo-manager.service.mjs +0 -3
- package/esm2020/arquivo/src/arquivo.module.mjs +0 -47
- package/esm2020/arquivo/src/download-arquivo.directive.mjs +0 -46
- package/esm2020/arquivo/src/imagem.directive.mjs +0 -89
- package/esm2020/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.mjs +0 -65
- package/esm2020/arquivo/src/preview-arquivo/preview-arquivo.component.mjs +0 -139
- package/esm2020/core/index.mjs +0 -6
- package/esm2020/core/main-class-componentes-core.mjs +0 -5
- package/esm2020/core/src/core.module.mjs +0 -32
- package/esm2020/core/src/criptografia/criptografia.service.mjs +0 -16
- package/esm2020/core/src/mensageria/mensageria.service.mjs +0 -57
- package/esm2020/core/src/mobile/mobile.service.mjs +0 -43
- package/esm2020/core/src/validator/valida-modulo11.service.mjs +0 -95
- package/esm2020/crud/index.mjs +0 -5
- package/esm2020/crud/main-class-componentes-crud.mjs +0 -5
- package/esm2020/crud/src/abstract-consulta-component.mjs +0 -55
- package/esm2020/crud/src/abstract-consulta-paginada-component.mjs +0 -48
- package/esm2020/crud/src/abstract-edicao-component.mjs +0 -30
- package/esm2020/crud/src/abstract-edicao-modal-component.mjs +0 -19
- package/esm2020/date/index.mjs +0 -4
- package/esm2020/date/main-class-componentes-date.mjs +0 -5
- package/esm2020/date/src/date.module.mjs +0 -25
- package/esm2020/date/src/validator/data-validator.directive.mjs +0 -105
- package/esm2020/date/src/validator/futuro.directive.mjs +0 -33
- package/esm2020/dialog/index.mjs +0 -5
- package/esm2020/dialog/main-class-componentes-dialog.mjs +0 -5
- package/esm2020/dialog/src/dialog-confirmacao/dialog-confirmacao.component.mjs +0 -44
- package/esm2020/dialog/src/dialog-iframe/dialog-iframe.component.mjs +0 -60
- package/esm2020/dialog/src/dialog.module.mjs +0 -53
- package/esm2020/dialog/src/dialog.service.mjs +0 -53
- package/esm2020/form/index.mjs +0 -5
- package/esm2020/form/main-class-componentes-form.mjs +0 -5
- package/esm2020/form/src/form.component.mjs +0 -106
- package/esm2020/form/src/form.module.mjs +0 -36
- package/esm2020/form/src/mensagens-erro/mensagens-erro.component.mjs +0 -33
- package/esm2020/form/src/single-click.directive.mjs +0 -35
- package/esm2020/input/index.mjs +0 -24
- package/esm2020/input/main-class-componentes-input.mjs +0 -5
- package/esm2020/input/src/abstract-mat-form-field-control.mjs +0 -116
- package/esm2020/input/src/input-datetime/input-datetime.component.mjs +0 -130
- package/esm2020/input/src/input-datetime/input-datetime.module.mjs +0 -101
- package/esm2020/input/src/input-fileupload/input-fileupload.component.mjs +0 -357
- package/esm2020/input/src/input-fileupload/input-fileupload.directive.mjs +0 -37
- package/esm2020/input/src/input-fileupload/input-fileupload.module.mjs +0 -57
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.mjs +0 -29
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.component.mjs +0 -78
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.module.mjs +0 -33
- package/esm2020/input/src/option-checkbox/all-option-checkbox.component.mjs +0 -38
- package/esm2020/input/src/option-checkbox/node-pool.mjs +0 -93
- package/esm2020/input/src/option-checkbox/option-checkbox-group.component.mjs +0 -80
- package/esm2020/input/src/option-checkbox/option-checkbox.component.mjs +0 -62
- package/esm2020/input/src/option-checkbox/option-checkbox.module.mjs +0 -39
- package/esm2020/input/src/option-checkbox/option-checkbox.service.mjs +0 -54
- package/esm2020/input/src/option-checkbox/option-node.mjs +0 -24
- package/esm2020/input/src/select-chips/select-chips.component.mjs +0 -202
- package/esm2020/input/src/select-chips/select-chips.module.mjs +0 -40
- package/esm2020/input/src/select-chips-autocomplete/select-chips-autocomplete.component.mjs +0 -207
- package/esm2020/input/src/select-chips-autocomplete/select-chips-autocomplete.module.mjs +0 -40
- package/esm2020/input/src/select-item/select-item.component.mjs +0 -19
- package/esm2020/input/src/select-item/select-item.module.mjs +0 -20
- package/esm2020/input/src/select-many-checkbox/select-many-checkbox.component.mjs +0 -170
- package/esm2020/input/src/select-many-checkbox/select-many-checkbox.module.mjs +0 -32
- package/esm2020/input/src/select-radio/select-radio.component.mjs +0 -143
- package/esm2020/input/src/select-radio/select-radio.module.mjs +0 -32
- package/esm2020/loader/index.mjs +0 -4
- package/esm2020/loader/main-class-componentes-loader.mjs +0 -5
- package/esm2020/loader/src/loader.component.mjs +0 -125
- package/esm2020/loader/src/loader.module.mjs +0 -37
- package/esm2020/loader/src/loader.service.mjs +0 -72
- package/esm2020/main-class-componentes.mjs +0 -5
- package/esm2020/misc/index.mjs +0 -27
- package/esm2020/misc/main-class-componentes-misc.mjs +0 -5
- package/esm2020/misc/src/cnpj/cnpj-model.directive.mjs +0 -17
- package/esm2020/misc/src/cnpj/cnpj.directive.mjs +0 -36
- package/esm2020/misc/src/cnpj/cnpj.module.mjs +0 -26
- package/esm2020/misc/src/cnpj/cnpjs.pipe.mjs +0 -19
- package/esm2020/misc/src/cpf/cpf-model.directive.mjs +0 -17
- package/esm2020/misc/src/cpf/cpf.directive.mjs +0 -36
- package/esm2020/misc/src/cpf/cpf.module.mjs +0 -24
- package/esm2020/misc/src/cpf/cpf.pipe.mjs +0 -19
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj-model.directive.mjs +0 -29
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.directive.mjs +0 -37
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.module.mjs +0 -24
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.pipe.mjs +0 -22
- package/esm2020/misc/src/info/info.component.mjs +0 -20
- package/esm2020/misc/src/info/info.module.mjs +0 -24
- package/esm2020/misc/src/monetario/monetario-mask.mjs +0 -32
- package/esm2020/misc/src/monetario/monetario-model.directive.mjs +0 -133
- package/esm2020/misc/src/monetario/monetario.module.mjs +0 -21
- package/esm2020/misc/src/monetario/monetario.pipe.mjs +0 -17
- package/esm2020/misc/src/porcentagem/porcentagem-mask.mjs +0 -32
- package/esm2020/misc/src/porcentagem/porcentagem-model.directive.mjs +0 -108
- package/esm2020/misc/src/porcentagem/porcentagem.module.mjs +0 -21
- package/esm2020/misc/src/porcentagem/porcentagem.pipe.mjs +0 -17
- package/esm2020/misc/src/telefone/telefone-model.directive.mjs +0 -29
- package/esm2020/misc/src/telefone/telefone.module.mjs +0 -25
- package/esm2020/misc/src/telefone/telefone.pipe.mjs +0 -37
- package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.directive.mjs +0 -25
- package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.module.mjs +0 -20
- package/esm2020/model/index.mjs +0 -3
- package/esm2020/model/main-class-componentes-model.mjs +0 -5
- package/esm2020/model/src/masked-model.directive.mjs +0 -155
- package/esm2020/model/src/model.module.mjs +0 -24
- package/esm2020/pipe/index.mjs +0 -3
- package/esm2020/pipe/main-class-componentes-pipe.mjs +0 -5
- package/esm2020/pipe/src/nome-resumido.pipe.mjs +0 -20
- package/esm2020/pipe/src/pipe.module.mjs +0 -24
- package/esm2020/public-api.mjs +0 -5
- package/esm2020/scroll/index.mjs +0 -3
- package/esm2020/scroll/main-class-componentes-scroll.mjs +0 -5
- package/esm2020/scroll/src/scroll-container/scroll-container.component.mjs +0 -72
- package/esm2020/scroll/src/scroll.module.mjs +0 -22
- package/esm2020/table/index.mjs +0 -12
- package/esm2020/table/main-class-componentes-table.mjs +0 -5
- package/esm2020/table/src/column/column-cell.directive.mjs +0 -16
- package/esm2020/table/src/column/column-footer.directive.mjs +0 -16
- package/esm2020/table/src/column/column-header.directive.mjs +0 -16
- package/esm2020/table/src/column/column.directive.mjs +0 -37
- package/esm2020/table/src/infinite-table/infinite-table.component.mjs +0 -95
- package/esm2020/table/src/paginated-table/paginated-table.component.mjs +0 -69
- package/esm2020/table/src/paginator/paginator.component.mjs +0 -19
- package/esm2020/table/src/paginator-i18n.mjs +0 -23
- package/esm2020/table/src/table/table.component.mjs +0 -119
- package/esm2020/table/src/table.module.mjs +0 -120
- package/esm2020/table/src/td/td.component.mjs +0 -18
- package/esm2020/table/src/th/th.component.mjs +0 -18
- package/esm2020/util/index.mjs +0 -2
- package/esm2020/util/main-class-componentes-util.mjs +0 -5
- package/esm2020/util/src/string.util.mjs +0 -12
- package/fesm2015/main-class-componentes-arquivo.mjs +0 -389
- package/fesm2015/main-class-componentes-arquivo.mjs.map +0 -1
- package/fesm2015/main-class-componentes-core.mjs +0 -225
- package/fesm2015/main-class-componentes-core.mjs.map +0 -1
- package/fesm2015/main-class-componentes-crud.mjs +0 -176
- package/fesm2015/main-class-componentes-crud.mjs.map +0 -1
- package/fesm2015/main-class-componentes-date.mjs +0 -162
- package/fesm2015/main-class-componentes-date.mjs.map +0 -1
- package/fesm2015/main-class-componentes-dialog.mjs +0 -206
- package/fesm2015/main-class-componentes-dialog.mjs.map +0 -1
- package/fesm2015/main-class-componentes-form.mjs +0 -209
- package/fesm2015/main-class-componentes-form.mjs.map +0 -1
- package/fesm2015/main-class-componentes-input.mjs +0 -2103
- package/fesm2015/main-class-componentes-input.mjs.map +0 -1
- package/fesm2015/main-class-componentes-loader.mjs +0 -236
- package/fesm2015/main-class-componentes-loader.mjs.map +0 -1
- package/fesm2015/main-class-componentes-misc.mjs +0 -787
- package/fesm2015/main-class-componentes-misc.mjs.map +0 -1
- package/fesm2015/main-class-componentes-model.mjs +0 -183
- package/fesm2015/main-class-componentes-model.mjs.map +0 -1
- package/fesm2015/main-class-componentes-pipe.mjs +0 -48
- package/fesm2015/main-class-componentes-pipe.mjs.map +0 -1
- package/fesm2015/main-class-componentes-scroll.mjs +0 -98
- package/fesm2015/main-class-componentes-scroll.mjs.map +0 -1
- package/fesm2015/main-class-componentes-table.mjs +0 -532
- package/fesm2015/main-class-componentes-table.mjs.map +0 -1
- package/fesm2015/main-class-componentes-util.mjs +0 -18
- package/fesm2015/main-class-componentes-util.mjs.map +0 -1
- package/fesm2015/main-class-componentes.mjs.map +0 -1
- package/fesm2020/main-class-componentes-arquivo.mjs +0 -372
- package/fesm2020/main-class-componentes-arquivo.mjs.map +0 -1
- package/fesm2020/main-class-componentes-core.mjs.map +0 -1
- package/fesm2020/main-class-componentes-crud.mjs +0 -154
- package/fesm2020/main-class-componentes-crud.mjs.map +0 -1
- package/fesm2020/main-class-componentes-date.mjs +0 -162
- package/fesm2020/main-class-componentes-date.mjs.map +0 -1
- package/fesm2020/main-class-componentes-dialog.mjs +0 -201
- package/fesm2020/main-class-componentes-dialog.mjs.map +0 -1
- package/fesm2020/main-class-componentes-form.mjs +0 -204
- package/fesm2020/main-class-componentes-form.mjs.map +0 -1
- package/fesm2020/main-class-componentes-input.mjs +0 -2085
- package/fesm2020/main-class-componentes-input.mjs.map +0 -1
- package/fesm2020/main-class-componentes-loader.mjs.map +0 -1
- package/fesm2020/main-class-componentes-misc.mjs +0 -785
- package/fesm2020/main-class-componentes-misc.mjs.map +0 -1
- package/fesm2020/main-class-componentes-model.mjs +0 -183
- package/fesm2020/main-class-componentes-model.mjs.map +0 -1
- package/fesm2020/main-class-componentes-pipe.mjs +0 -48
- package/fesm2020/main-class-componentes-pipe.mjs.map +0 -1
- package/fesm2020/main-class-componentes-scroll.mjs +0 -98
- package/fesm2020/main-class-componentes-scroll.mjs.map +0 -1
- package/fesm2020/main-class-componentes-table.mjs +0 -519
- package/fesm2020/main-class-componentes-table.mjs.map +0 -1
- package/fesm2020/main-class-componentes-util.mjs +0 -18
- package/fesm2020/main-class-componentes-util.mjs.map +0 -1
- package/fesm2020/main-class-componentes.mjs +0 -9
- package/fesm2020/main-class-componentes.mjs.map +0 -1
- package/form/src/form.module.d.ts +0 -12
- package/input/src/input-datetime/input-datetime.module.d.ts +0 -13
- package/input/src/input-fileupload/input-fileupload.module.d.ts +0 -18
- package/input/src/input-telefone-internacional/input-telefone-internacional.module.d.ts +0 -11
- package/input/src/option-checkbox/option-checkbox.module.d.ts +0 -14
- package/input/src/select-chips/select-chips.module.d.ts +0 -13
- package/input/src/select-chips-autocomplete/select-chips-autocomplete.component.d.ts +0 -60
- package/input/src/select-chips-autocomplete/select-chips-autocomplete.module.d.ts +0 -13
- package/input/src/select-item/select-item.component.d.ts +0 -11
- package/input/src/select-item/select-item.module.d.ts +0 -8
- package/input/src/select-many-checkbox/select-many-checkbox.module.d.ts +0 -11
- package/input/src/select-radio/select-radio.module.d.ts +0 -11
- package/loader/src/loader.module.d.ts +0 -11
- package/misc/src/cnpj/cnpj-model.directive.d.ts +0 -8
- package/misc/src/cnpj/cnpj.module.d.ts +0 -11
- package/misc/src/cpf/cpf-model.directive.d.ts +0 -8
- package/misc/src/cpf/cpf.module.d.ts +0 -10
- package/misc/src/cpf-cnpj/cpf-cnpj-model.directive.d.ts +0 -10
- package/misc/src/cpf-cnpj/cpf-cnpj.module.d.ts +0 -10
- package/misc/src/info/info.component.d.ts +0 -9
- package/misc/src/info/info.module.d.ts +0 -9
- package/misc/src/monetario/monetario-model.directive.d.ts +0 -32
- package/misc/src/monetario/monetario.module.d.ts +0 -9
- package/misc/src/porcentagem/porcentagem-model.directive.d.ts +0 -28
- package/misc/src/porcentagem/porcentagem.module.d.ts +0 -9
- package/misc/src/telefone/telefone-model.directive.d.ts +0 -10
- package/misc/src/telefone/telefone.module.d.ts +0 -10
- package/misc/src/unsafe-inner-html/unsafe-inner-html.module.d.ts +0 -8
- package/model/index.d.ts +0 -2
- package/model/src/masked-model.directive.d.ts +0 -31
- package/model/src/model.module.d.ts +0 -8
- package/pipe/src/pipe.module.d.ts +0 -8
- package/scroll/index.d.ts +0 -2
- package/scroll/src/scroll-container/scroll-container.component.d.ts +0 -34
- package/scroll/src/scroll.module.d.ts +0 -8
- package/table/src/infinite-table/infinite-table.component.d.ts +0 -21
- package/table/src/table.module.d.ts +0 -29
- package/util/index.d.ts +0 -1
- package/util/src/string.util.d.ts +0 -4
|
@@ -1,532 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, ContentChild, ElementRef, Component, ViewChild, ContentChildren, Self, InjectionToken, EventEmitter, Inject, Optional, Output, NgModule } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i3 from '@angular/material/table';
|
|
6
|
-
import { MatColumnDef, MatCellDef, MatHeaderCellDef, MatFooterCellDef, MatTable, MatTableModule } from '@angular/material/table';
|
|
7
|
-
import { BehaviorSubject } from 'rxjs';
|
|
8
|
-
import * as i1 from '@main-class/componentes/core';
|
|
9
|
-
import * as i4 from '@ngx-translate/core';
|
|
10
|
-
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
11
|
-
import * as i4$2 from '@main-class/componentes/loader';
|
|
12
|
-
import { LoaderComponent, LoaderModule } from '@main-class/componentes/loader';
|
|
13
|
-
import { MatPaginator, MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
|
|
14
|
-
import * as i2$1 from '@angular/material/button';
|
|
15
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
16
|
-
import * as i3$1 from '@angular/material/form-field';
|
|
17
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
18
|
-
import * as i4$1 from '@angular/material/select';
|
|
19
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
20
|
-
import * as i5 from '@angular/material/core';
|
|
21
|
-
import * as i6 from '@angular/material/tooltip';
|
|
22
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
23
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
24
|
-
|
|
25
|
-
class ColumnHeaderDirective {
|
|
26
|
-
constructor(template) {
|
|
27
|
-
this.template = template;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
ColumnHeaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
31
|
-
ColumnHeaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: ColumnHeaderDirective, selector: "[mclColumnHeader]", ngImport: i0 });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnHeaderDirective, decorators: [{
|
|
33
|
-
type: Directive,
|
|
34
|
-
args: [{
|
|
35
|
-
selector: '[mclColumnHeader]'
|
|
36
|
-
}]
|
|
37
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
38
|
-
|
|
39
|
-
class ColumnCellDirective {
|
|
40
|
-
constructor(template) {
|
|
41
|
-
this.template = template;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
ColumnCellDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnCellDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
45
|
-
ColumnCellDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: ColumnCellDirective, selector: "[mclColumnCell]", ngImport: i0 });
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnCellDirective, decorators: [{
|
|
47
|
-
type: Directive,
|
|
48
|
-
args: [{
|
|
49
|
-
selector: '[mclColumnCell]'
|
|
50
|
-
}]
|
|
51
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
52
|
-
|
|
53
|
-
class ColumnFooterDirective {
|
|
54
|
-
constructor(template) {
|
|
55
|
-
this.template = template;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
ColumnFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnFooterDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
59
|
-
ColumnFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: ColumnFooterDirective, selector: "[mclColumnFooter]", ngImport: i0 });
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnFooterDirective, decorators: [{
|
|
61
|
-
type: Directive,
|
|
62
|
-
args: [{
|
|
63
|
-
selector: '[mclColumnFooter]'
|
|
64
|
-
}]
|
|
65
|
-
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
66
|
-
|
|
67
|
-
class ColumnDirective {
|
|
68
|
-
constructor() {
|
|
69
|
-
this.name = 'column_' + (++ColumnDirective.lastId);
|
|
70
|
-
this.viewType = 'both';
|
|
71
|
-
}
|
|
72
|
-
get columnDefName() {
|
|
73
|
-
return this.viewType + '-' + this.name;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
ColumnDirective.lastId = 0;
|
|
77
|
-
ColumnDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
78
|
-
ColumnDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: ColumnDirective, selector: "mcl-column,[mclColumn]", inputs: { name: "name", viewType: "viewType" }, queries: [{ propertyName: "header", first: true, predicate: ColumnHeaderDirective, descendants: true }, { propertyName: "cell", first: true, predicate: ColumnCellDirective, descendants: true }, { propertyName: "footer", first: true, predicate: ColumnFooterDirective, descendants: true }], ngImport: i0 });
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnDirective, decorators: [{
|
|
80
|
-
type: Directive,
|
|
81
|
-
args: [{
|
|
82
|
-
selector: 'mcl-column,[mclColumn]'
|
|
83
|
-
}]
|
|
84
|
-
}], ctorParameters: function () { return []; }, propDecorators: { name: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], viewType: [{
|
|
87
|
-
type: Input
|
|
88
|
-
}], header: [{
|
|
89
|
-
type: ContentChild,
|
|
90
|
-
args: [ColumnHeaderDirective]
|
|
91
|
-
}], cell: [{
|
|
92
|
-
type: ContentChild,
|
|
93
|
-
args: [ColumnCellDirective]
|
|
94
|
-
}], footer: [{
|
|
95
|
-
type: ContentChild,
|
|
96
|
-
args: [ColumnFooterDirective]
|
|
97
|
-
}] } });
|
|
98
|
-
|
|
99
|
-
class TableComponent {
|
|
100
|
-
constructor(mobileService) {
|
|
101
|
-
this.mobileService = mobileService;
|
|
102
|
-
this.itemsSubject = new BehaviorSubject([]);
|
|
103
|
-
this.emptyStateMessage = 'mcl.table.nenhum_registro_encontrado';
|
|
104
|
-
this.sticky = false;
|
|
105
|
-
this.currentColumns = [];
|
|
106
|
-
this.$activeColumnNames = [];
|
|
107
|
-
this.oldLength = 0;
|
|
108
|
-
this.mobileListener = (mobile) => this.mergeColumnsDef(mobile);
|
|
109
|
-
this.mobileService.addListener(this.mobileListener);
|
|
110
|
-
}
|
|
111
|
-
get activeColumnNames() {
|
|
112
|
-
return this.$activeColumnNames;
|
|
113
|
-
}
|
|
114
|
-
get hasFooter() {
|
|
115
|
-
return !!this.currentColumns.find(col => !!col.footerCell);
|
|
116
|
-
}
|
|
117
|
-
mergeColumnsDef(mobile = this.mobileService.mobile) {
|
|
118
|
-
clearTimeout(this.$loading);
|
|
119
|
-
this.$loading = setTimeout(() => {
|
|
120
|
-
const ngContentModels = this.columnsDef
|
|
121
|
-
.toArray().filter(model => (mobile && model.viewType !== 'web') ||
|
|
122
|
-
(!mobile && model.viewType !== 'mobile'));
|
|
123
|
-
for (let column of this.currentColumns) {
|
|
124
|
-
this.removeColumnDef(column);
|
|
125
|
-
}
|
|
126
|
-
this.currentColumns.slice(0, this.currentColumns.length);
|
|
127
|
-
ngContentModels.forEach((model, i) => {
|
|
128
|
-
const columnDef = this.mapColumnDef(model);
|
|
129
|
-
this.currentColumns.splice(i, 0, columnDef);
|
|
130
|
-
this.addColumnDef(columnDef);
|
|
131
|
-
});
|
|
132
|
-
this.items = this.getItems() || [];
|
|
133
|
-
this.itemsSubject.next(this.items);
|
|
134
|
-
this.$activeColumnNames = this.currentColumns.map(col => col.name);
|
|
135
|
-
}, 80);
|
|
136
|
-
}
|
|
137
|
-
ngAfterViewInit() {
|
|
138
|
-
this.columnsChangeSubscription = this.columnsDef.changes.subscribe((_) => {
|
|
139
|
-
this.mergeColumnsDef();
|
|
140
|
-
});
|
|
141
|
-
this.mergeColumnsDef();
|
|
142
|
-
}
|
|
143
|
-
ngDoCheck() {
|
|
144
|
-
const currentLength = this.getCurrentLength();
|
|
145
|
-
if (this.oldLength !== currentLength) {
|
|
146
|
-
this.oldLength = currentLength;
|
|
147
|
-
this.items = this.getItems() || [];
|
|
148
|
-
this.itemsSubject.next(this.items);
|
|
149
|
-
}
|
|
150
|
-
else if (this.items !== this.getItems()) {
|
|
151
|
-
this.items = this.getItems() || [];
|
|
152
|
-
this.itemsSubject.next(this.items);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
getItems() {
|
|
156
|
-
return this.outerItems;
|
|
157
|
-
}
|
|
158
|
-
getCurrentLength() {
|
|
159
|
-
return (this.outerItems ? this.outerItems.length : 0);
|
|
160
|
-
}
|
|
161
|
-
ngOnDestroy() {
|
|
162
|
-
this.mobileService.removeListener(this.mobileListener);
|
|
163
|
-
this.columnsChangeSubscription.unsubscribe();
|
|
164
|
-
this.itemsSubject.complete();
|
|
165
|
-
}
|
|
166
|
-
removeColumnDef(columnDef) {
|
|
167
|
-
this.table.removeColumnDef(columnDef);
|
|
168
|
-
}
|
|
169
|
-
addColumnDef(columnDef) {
|
|
170
|
-
this.table.addColumnDef(columnDef);
|
|
171
|
-
}
|
|
172
|
-
mapColumnDef(column) {
|
|
173
|
-
const cdef = new MatColumnDef();
|
|
174
|
-
cdef.name = column.viewType + '-' + column.name;
|
|
175
|
-
cdef.cell = new MatCellDef(column.cell.template);
|
|
176
|
-
cdef.headerCell = new MatHeaderCellDef(column.header.template);
|
|
177
|
-
if (column.footer) {
|
|
178
|
-
cdef.footerCell = new MatFooterCellDef(column.footer.template);
|
|
179
|
-
}
|
|
180
|
-
return cdef;
|
|
181
|
-
}
|
|
182
|
-
currentColumnsContains(model) {
|
|
183
|
-
return !!this.currentColumns.find(def => def.name === model.columnDefName);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableComponent, deps: [{ token: i1.MobileService }], target: i0.ɵɵFactoryTarget.Component });
|
|
187
|
-
TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableComponent, selector: "mcl-table:not([page])", inputs: { emptyStateMessage: "emptyStateMessage", outerItems: ["items", "outerItems"], sticky: "sticky" }, queries: [{ propertyName: "emptyStatePlaceholder", first: true, predicate: ["[mclEmptyState]"], descendants: true, read: ElementRef }, { propertyName: "columnsDef", predicate: ColumnDirective }], viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true }], ngImport: i0, 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", 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:#00000008}table::ng-deep tbody td[routerLink]{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
|
|
188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableComponent, decorators: [{
|
|
189
|
-
type: Component,
|
|
190
|
-
args: [{ selector: 'mcl-table:not([page])', 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", 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:#00000008}table::ng-deep tbody td[routerLink]{cursor:pointer}\n"] }]
|
|
191
|
-
}], ctorParameters: function () { return [{ type: i1.MobileService }]; }, propDecorators: { emptyStateMessage: [{
|
|
192
|
-
type: Input
|
|
193
|
-
}], table: [{
|
|
194
|
-
type: ViewChild,
|
|
195
|
-
args: [MatTable]
|
|
196
|
-
}], emptyStatePlaceholder: [{
|
|
197
|
-
type: ContentChild,
|
|
198
|
-
args: ['[mclEmptyState]', { read: ElementRef }]
|
|
199
|
-
}], columnsDef: [{
|
|
200
|
-
type: ContentChildren,
|
|
201
|
-
args: [ColumnDirective]
|
|
202
|
-
}], outerItems: [{
|
|
203
|
-
type: Input,
|
|
204
|
-
args: ['items']
|
|
205
|
-
}], sticky: [{
|
|
206
|
-
type: Input
|
|
207
|
-
}] } });
|
|
208
|
-
|
|
209
|
-
class ThComponent {
|
|
210
|
-
constructor(element) {
|
|
211
|
-
element.nativeElement.classList.add('mat-header-cell');
|
|
212
|
-
}
|
|
213
|
-
ngOnInit() {
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
ThComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ThComponent, deps: [{ token: i0.ElementRef, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
217
|
-
ThComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ThComponent, selector: "th,mcl-th", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] });
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ThComponent, decorators: [{
|
|
219
|
-
type: Component,
|
|
220
|
-
args: [{ selector: 'th,mcl-th', template: "<ng-content></ng-content>\n" }]
|
|
221
|
-
}], ctorParameters: function () {
|
|
222
|
-
return [{ type: i0.ElementRef, decorators: [{
|
|
223
|
-
type: Self
|
|
224
|
-
}] }];
|
|
225
|
-
} });
|
|
226
|
-
|
|
227
|
-
class TdComponent {
|
|
228
|
-
constructor(element) {
|
|
229
|
-
element.nativeElement.classList.add('mat-cell');
|
|
230
|
-
}
|
|
231
|
-
ngOnInit() {
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
TdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TdComponent, deps: [{ token: i0.ElementRef, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
235
|
-
TdComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TdComponent, selector: "td,mcl-td", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] });
|
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TdComponent, decorators: [{
|
|
237
|
-
type: Component,
|
|
238
|
-
args: [{ selector: 'td,mcl-td', template: "<ng-content></ng-content>\n" }]
|
|
239
|
-
}], ctorParameters: function () {
|
|
240
|
-
return [{ type: i0.ElementRef, decorators: [{
|
|
241
|
-
type: Self
|
|
242
|
-
}] }];
|
|
243
|
-
} });
|
|
244
|
-
|
|
245
|
-
class PaginatorComponent extends MatPaginator {
|
|
246
|
-
}
|
|
247
|
-
PaginatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
248
|
-
PaginatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginatorComponent, selector: "mcl-paginator", usesInheritance: true, ngImport: i0, 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=\"outline\"\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", styles: [".mat-mdc-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)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i4$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatorComponent, decorators: [{
|
|
250
|
-
type: Component,
|
|
251
|
-
args: [{ selector: 'mcl-paginator', 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=\"outline\"\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", styles: [".mat-mdc-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)}\n"] }]
|
|
252
|
-
}] });
|
|
253
|
-
|
|
254
|
-
const PAGINATION_CONFIGURATION = new InjectionToken('PAGINATION_CONFIGURATION');
|
|
255
|
-
class PaginatedTableComponent extends TableComponent {
|
|
256
|
-
constructor(mobileService, paginationConfiguration) {
|
|
257
|
-
super(mobileService);
|
|
258
|
-
this.paginate = new EventEmitter();
|
|
259
|
-
this.sizes = (paginationConfiguration === null || paginationConfiguration === void 0 ? void 0 : paginationConfiguration.sizes) || [10, 25, 50];
|
|
260
|
-
}
|
|
261
|
-
getCurrentLength() {
|
|
262
|
-
var _a, _b, _c;
|
|
263
|
-
return (_c = (((_a = this.page) === null || _a === void 0 ? void 0 : _a.itens) || ((_b = this.page) === null || _b === void 0 ? void 0 : _b.content))) === null || _c === void 0 ? void 0 : _c.length;
|
|
264
|
-
}
|
|
265
|
-
getItems() {
|
|
266
|
-
var _a, _b;
|
|
267
|
-
return ((_a = this.page) === null || _a === void 0 ? void 0 : _a.itens) || ((_b = this.page) === null || _b === void 0 ? void 0 : _b.content);
|
|
268
|
-
}
|
|
269
|
-
get totalItens() {
|
|
270
|
-
var _a, _b;
|
|
271
|
-
return ((_a = this.page) === null || _a === void 0 ? void 0 : _a.totalItens) || ((_b = this.page) === null || _b === void 0 ? void 0 : _b.totalElements);
|
|
272
|
-
}
|
|
273
|
-
get paginaAtual() {
|
|
274
|
-
var _a, _b, _c, _d;
|
|
275
|
-
const paginaMC = (_a = this.page) === null || _a === void 0 ? void 0 : _a.paginaAtual;
|
|
276
|
-
if (paginaMC !== null && paginaMC !== undefined) {
|
|
277
|
-
return (_b = this.page) === null || _b === void 0 ? void 0 : _b.paginaAtual;
|
|
278
|
-
}
|
|
279
|
-
const paginaSpring = (_c = this.page) === null || _c === void 0 ? void 0 : _c.number;
|
|
280
|
-
if (paginaSpring !== null && paginaSpring !== undefined) {
|
|
281
|
-
return ((_d = this.page) === null || _d === void 0 ? void 0 : _d.number) + 1;
|
|
282
|
-
}
|
|
283
|
-
return undefined;
|
|
284
|
-
}
|
|
285
|
-
get tamanhoPagina() {
|
|
286
|
-
var _a, _b;
|
|
287
|
-
return ((_a = this.page) === null || _a === void 0 ? void 0 : _a.tamanhoPagina) || ((_b = this.page) === null || _b === void 0 ? void 0 : _b.size);
|
|
288
|
-
}
|
|
289
|
-
paginaEvent(event) {
|
|
290
|
-
this.paginate.emit({
|
|
291
|
-
pagina: event.pageIndex + 1,
|
|
292
|
-
tamanhoPagina: event.pageSize,
|
|
293
|
-
loader: this.loader,
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
PaginatedTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatedTableComponent, deps: [{ token: i1.MobileService }, { token: PAGINATION_CONFIGURATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
298
|
-
PaginatedTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginatedTableComponent, selector: "mcl-table[page]", inputs: { sizes: "sizes", page: "page" }, outputs: { paginate: "paginate" }, viewQueries: [{ propertyName: "loader", first: true, predicate: LoaderComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div #div>\n <table mat-table #matTable [dataSource]=\"itemsSubject\">\n\n <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: 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]=\"tamanhoPagina\"\n (page)=\"paginaEvent($event)\"\n [pageIndex]=\"(paginaAtual || 1) - 1\"\n [length]=\"totalItens\"\n [pageSizeOptions]=\"sizes\"\n [showFirstLastButtons]=\"true\"\n *ngIf=\"totalItens\">\n</mcl-paginator>\n", 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:#00000008}table::ng-deep tbody td[routerLink]{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i4$2.LoaderComponent, selector: "mcl-loader", inputs: ["progresso", "show", "labelLoading", "showOnInit", "component"], exportAs: ["loader"] }, { kind: "component", type: PaginatorComponent, selector: "mcl-paginator" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginatedTableComponent, decorators: [{
|
|
300
|
-
type: Component,
|
|
301
|
-
args: [{ selector: 'mcl-table[page]', template: "<div #div>\n <table mat-table #matTable [dataSource]=\"itemsSubject\">\n\n <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: 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]=\"tamanhoPagina\"\n (page)=\"paginaEvent($event)\"\n [pageIndex]=\"(paginaAtual || 1) - 1\"\n [length]=\"totalItens\"\n [pageSizeOptions]=\"sizes\"\n [showFirstLastButtons]=\"true\"\n *ngIf=\"totalItens\">\n</mcl-paginator>\n", 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:#00000008}table::ng-deep tbody td[routerLink]{cursor:pointer}\n"] }]
|
|
302
|
-
}], ctorParameters: function () {
|
|
303
|
-
return [{ type: i1.MobileService }, { type: undefined, decorators: [{
|
|
304
|
-
type: Inject,
|
|
305
|
-
args: [PAGINATION_CONFIGURATION]
|
|
306
|
-
}, {
|
|
307
|
-
type: Optional
|
|
308
|
-
}] }];
|
|
309
|
-
}, propDecorators: { sizes: [{
|
|
310
|
-
type: Input
|
|
311
|
-
}], paginate: [{
|
|
312
|
-
type: Output
|
|
313
|
-
}], page: [{
|
|
314
|
-
type: Input
|
|
315
|
-
}], loader: [{
|
|
316
|
-
type: ViewChild,
|
|
317
|
-
args: [LoaderComponent]
|
|
318
|
-
}] } });
|
|
319
|
-
|
|
320
|
-
const getScrollParent = (node) => {
|
|
321
|
-
const regex = /(auto|scroll)/;
|
|
322
|
-
const parents = ($node, ps) => {
|
|
323
|
-
if ($node.parentNode === null || $node.parentNode === undefined) {
|
|
324
|
-
return ps;
|
|
325
|
-
}
|
|
326
|
-
return parents($node.parentNode, ps.concat([$node]));
|
|
327
|
-
};
|
|
328
|
-
const style = ($node, prop) => getComputedStyle($node, null).getPropertyValue(prop);
|
|
329
|
-
const overflow = $node => style($node, 'overflow') + style($node, 'overflow-y');
|
|
330
|
-
const scroll = $node => regex.test(overflow($node));
|
|
331
|
-
/* eslint-disable consistent-return */
|
|
332
|
-
const scrollParent = ($node) => {
|
|
333
|
-
if (!($node instanceof HTMLElement || $node instanceof SVGElement)) {
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
const ps = parents($node, []);
|
|
337
|
-
for (const pi of ps) {
|
|
338
|
-
if (scroll(pi)) {
|
|
339
|
-
return pi;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
return document.scrollingElement || document.documentElement;
|
|
343
|
-
};
|
|
344
|
-
return scrollParent(node);
|
|
345
|
-
/* eslint-enable consistent-return */
|
|
346
|
-
};
|
|
347
|
-
class InfiniteTableComponent extends TableComponent {
|
|
348
|
-
constructor(element, mobileService) {
|
|
349
|
-
super(mobileService);
|
|
350
|
-
this.element = element;
|
|
351
|
-
this.next = new EventEmitter();
|
|
352
|
-
this.hasNext = false;
|
|
353
|
-
this.scrollHeight = 200;
|
|
354
|
-
}
|
|
355
|
-
get loading() {
|
|
356
|
-
return !this.loader || this.loader.shown;
|
|
357
|
-
}
|
|
358
|
-
// tslint:disable-next-line:use-lifecycle-interface
|
|
359
|
-
ngAfterViewInit() {
|
|
360
|
-
super.ngAfterViewInit();
|
|
361
|
-
this.parent = getScrollParent(this.element.nativeElement);
|
|
362
|
-
this.parent.onscroll = () => {
|
|
363
|
-
if (this.hasNext && !this.loader.shown &&
|
|
364
|
-
(this.parent.scrollHeight - this.parent.clientHeight) - this.parent.scrollTop < this.scrollHeight) {
|
|
365
|
-
this.loadMore();
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
this.next.emit(this.loader);
|
|
369
|
-
}
|
|
370
|
-
// tslint:disable-next-line:use-lifecycle-interface
|
|
371
|
-
ngDoCheck() {
|
|
372
|
-
super.ngDoCheck();
|
|
373
|
-
if (this.hasNext && !this.loader.shown && this.parent.scrollHeight === this.parent.clientHeight) {
|
|
374
|
-
this.loadMore();
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
// tslint:disable-next-line:use-lifecycle-interface
|
|
378
|
-
ngOnDestroy() {
|
|
379
|
-
super.ngOnDestroy();
|
|
380
|
-
this.parent.onscroll = undefined;
|
|
381
|
-
}
|
|
382
|
-
loadMore() {
|
|
383
|
-
if (this.hasNext) {
|
|
384
|
-
this.next.emit(this.loader);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
InfiniteTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InfiniteTableComponent, deps: [{ token: i0.ElementRef, self: true }, { token: i1.MobileService }], target: i0.ɵɵFactoryTarget.Component });
|
|
389
|
-
InfiniteTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InfiniteTableComponent, selector: "mcl-infinite-table", inputs: { hasNext: "hasNext", scrollHeight: "scrollHeight" }, outputs: { next: "next" }, viewQueries: [{ propertyName: "loader", first: true, predicate: LoaderComponent, descendants: true }], usesInheritance: true, ngImport: i0, 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", 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}\n", "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:#00000008}table::ng-deep tbody td[routerLink]{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i4$2.LoaderComponent, selector: "mcl-loader", inputs: ["progresso", "show", "labelLoading", "showOnInit", "component"], exportAs: ["loader"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] });
|
|
390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InfiniteTableComponent, decorators: [{
|
|
391
|
-
type: Component,
|
|
392
|
-
args: [{ selector: 'mcl-infinite-table', 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", 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}\n", "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:#00000008}table::ng-deep tbody td[routerLink]{cursor:pointer}\n"] }]
|
|
393
|
-
}], ctorParameters: function () {
|
|
394
|
-
return [{ type: i0.ElementRef, decorators: [{
|
|
395
|
-
type: Self
|
|
396
|
-
}] }, { type: i1.MobileService }];
|
|
397
|
-
}, propDecorators: { next: [{
|
|
398
|
-
type: Output
|
|
399
|
-
}], hasNext: [{
|
|
400
|
-
type: Input
|
|
401
|
-
}], scrollHeight: [{
|
|
402
|
-
type: Input
|
|
403
|
-
}], loader: [{
|
|
404
|
-
type: ViewChild,
|
|
405
|
-
args: [LoaderComponent]
|
|
406
|
-
}] } });
|
|
407
|
-
|
|
408
|
-
class PaginatorI18n {
|
|
409
|
-
constructor(translate) {
|
|
410
|
-
this.translate = translate;
|
|
411
|
-
}
|
|
412
|
-
getPaginatorIntl() {
|
|
413
|
-
const paginatorIntl = new MatPaginatorIntl();
|
|
414
|
-
paginatorIntl.itemsPerPageLabel = this.translate.instant('mcl.table.items_per_page');
|
|
415
|
-
paginatorIntl.nextPageLabel = this.translate.instant('mcl.table.next_page');
|
|
416
|
-
paginatorIntl.previousPageLabel = this.translate.instant('mcl.table.previous_page');
|
|
417
|
-
paginatorIntl.firstPageLabel = this.translate.instant('mcl.table.first_page');
|
|
418
|
-
paginatorIntl.lastPageLabel = this.translate.instant('mcl.table.last_page');
|
|
419
|
-
paginatorIntl.getRangeLabel = this.getRangeLabel.bind(this);
|
|
420
|
-
return paginatorIntl;
|
|
421
|
-
}
|
|
422
|
-
getRangeLabel(page, pageSize, length) {
|
|
423
|
-
length = Math.max(length, 0);
|
|
424
|
-
const startIndex = page * pageSize;
|
|
425
|
-
const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;
|
|
426
|
-
return this.translate.instant('mcl.table.range', { startIndex: startIndex + 1, endIndex, length });
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
class TableModule {
|
|
431
|
-
}
|
|
432
|
-
TableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
433
|
-
TableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableModule, declarations: [TableComponent,
|
|
434
|
-
ColumnDirective,
|
|
435
|
-
ColumnHeaderDirective,
|
|
436
|
-
ColumnCellDirective,
|
|
437
|
-
ColumnFooterDirective,
|
|
438
|
-
ThComponent,
|
|
439
|
-
TdComponent,
|
|
440
|
-
PaginatedTableComponent,
|
|
441
|
-
InfiniteTableComponent,
|
|
442
|
-
PaginatorComponent], imports: [CommonModule,
|
|
443
|
-
MatTableModule,
|
|
444
|
-
MatPaginatorModule,
|
|
445
|
-
MatButtonModule,
|
|
446
|
-
MatIconModule,
|
|
447
|
-
TranslateModule,
|
|
448
|
-
MatFormFieldModule,
|
|
449
|
-
MatSelectModule,
|
|
450
|
-
MatTooltipModule,
|
|
451
|
-
LoaderModule], exports: [TableComponent,
|
|
452
|
-
ColumnDirective,
|
|
453
|
-
ColumnHeaderDirective,
|
|
454
|
-
ColumnCellDirective,
|
|
455
|
-
ColumnFooterDirective,
|
|
456
|
-
ThComponent,
|
|
457
|
-
TdComponent,
|
|
458
|
-
PaginatedTableComponent,
|
|
459
|
-
InfiniteTableComponent,
|
|
460
|
-
PaginatorComponent] });
|
|
461
|
-
TableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableModule, providers: [
|
|
462
|
-
{
|
|
463
|
-
provide: MatPaginatorIntl, deps: [TranslateService],
|
|
464
|
-
useFactory: PaginatorIntlFactory
|
|
465
|
-
}
|
|
466
|
-
], imports: [CommonModule,
|
|
467
|
-
MatTableModule,
|
|
468
|
-
MatPaginatorModule,
|
|
469
|
-
MatButtonModule,
|
|
470
|
-
MatIconModule,
|
|
471
|
-
TranslateModule,
|
|
472
|
-
MatFormFieldModule,
|
|
473
|
-
MatSelectModule,
|
|
474
|
-
MatTooltipModule,
|
|
475
|
-
LoaderModule] });
|
|
476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableModule, decorators: [{
|
|
477
|
-
type: NgModule,
|
|
478
|
-
args: [{
|
|
479
|
-
exports: [
|
|
480
|
-
TableComponent,
|
|
481
|
-
ColumnDirective,
|
|
482
|
-
ColumnHeaderDirective,
|
|
483
|
-
ColumnCellDirective,
|
|
484
|
-
ColumnFooterDirective,
|
|
485
|
-
ThComponent,
|
|
486
|
-
TdComponent,
|
|
487
|
-
PaginatedTableComponent,
|
|
488
|
-
InfiniteTableComponent,
|
|
489
|
-
PaginatorComponent
|
|
490
|
-
],
|
|
491
|
-
declarations: [
|
|
492
|
-
TableComponent,
|
|
493
|
-
ColumnDirective,
|
|
494
|
-
ColumnHeaderDirective,
|
|
495
|
-
ColumnCellDirective,
|
|
496
|
-
ColumnFooterDirective,
|
|
497
|
-
ThComponent,
|
|
498
|
-
TdComponent,
|
|
499
|
-
PaginatedTableComponent,
|
|
500
|
-
InfiniteTableComponent,
|
|
501
|
-
PaginatorComponent
|
|
502
|
-
],
|
|
503
|
-
imports: [
|
|
504
|
-
CommonModule,
|
|
505
|
-
MatTableModule,
|
|
506
|
-
MatPaginatorModule,
|
|
507
|
-
MatButtonModule,
|
|
508
|
-
MatIconModule,
|
|
509
|
-
TranslateModule,
|
|
510
|
-
MatFormFieldModule,
|
|
511
|
-
MatSelectModule,
|
|
512
|
-
MatTooltipModule,
|
|
513
|
-
LoaderModule,
|
|
514
|
-
],
|
|
515
|
-
providers: [
|
|
516
|
-
{
|
|
517
|
-
provide: MatPaginatorIntl, deps: [TranslateService],
|
|
518
|
-
useFactory: PaginatorIntlFactory
|
|
519
|
-
}
|
|
520
|
-
]
|
|
521
|
-
}]
|
|
522
|
-
}] });
|
|
523
|
-
function PaginatorIntlFactory(translateService) {
|
|
524
|
-
return new PaginatorI18n(translateService).getPaginatorIntl();
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* Generated bundle index. Do not edit.
|
|
529
|
-
*/
|
|
530
|
-
|
|
531
|
-
export { ColumnCellDirective, ColumnDirective, ColumnFooterDirective, ColumnHeaderDirective, InfiniteTableComponent, PAGINATION_CONFIGURATION, PaginatedTableComponent, PaginatorComponent, PaginatorIntlFactory, TableComponent, TableModule, TdComponent, ThComponent };
|
|
532
|
-
//# sourceMappingURL=main-class-componentes-table.mjs.map
|