@main-class/componentes 2.1.9 → 3.0.0
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 -9
- 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 -22
- 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-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 -1878
- 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 -1862
- 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-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
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, ContentChild, Input, ElementRef, ContentChildren, ViewChild, Component, InjectionToken, EventEmitter, Output, Inject, Optional, Self } from '@angular/core';
|
|
3
|
+
import { MatColumnDef, MatCellDef, MatHeaderCellDef, MatFooterCellDef, MatTable, MatHeaderRow, MatRow, MatFooterRow, MatHeaderRowDef, MatRowDef, MatFooterRowDef } from '@angular/material/table';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import * as i1 from '@main-class/componentes/core';
|
|
7
|
+
import { MatPaginator, MatPaginatorIntl } from '@angular/material/paginator';
|
|
8
|
+
import { LoaderComponent } from '@main-class/componentes/loader';
|
|
9
|
+
import { MatFormField } from '@angular/material/input';
|
|
10
|
+
import { MatSelect } from '@angular/material/select';
|
|
11
|
+
import { MatOption } from '@angular/material/autocomplete';
|
|
12
|
+
import { MatIconButton } from '@angular/material/button';
|
|
13
|
+
import { MatTooltip } from '@angular/material/tooltip';
|
|
14
|
+
|
|
15
|
+
class ColumnCellDirective {
|
|
16
|
+
template;
|
|
17
|
+
constructor(template) {
|
|
18
|
+
this.template = template;
|
|
19
|
+
}
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnCellDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ColumnCellDirective, isStandalone: true, selector: "[mclColumnCell]", ngImport: i0 });
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnCellDirective, decorators: [{
|
|
24
|
+
type: Directive,
|
|
25
|
+
args: [{
|
|
26
|
+
selector: '[mclColumnCell]'
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
29
|
+
|
|
30
|
+
class ColumnFooterDirective {
|
|
31
|
+
template;
|
|
32
|
+
constructor(template) {
|
|
33
|
+
this.template = template;
|
|
34
|
+
}
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnFooterDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ColumnFooterDirective, isStandalone: true, selector: "[mclColumnFooter]", ngImport: i0 });
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnFooterDirective, decorators: [{
|
|
39
|
+
type: Directive,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: '[mclColumnFooter]'
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
44
|
+
|
|
45
|
+
class ColumnHeaderDirective {
|
|
46
|
+
template;
|
|
47
|
+
constructor(template) {
|
|
48
|
+
this.template = template;
|
|
49
|
+
}
|
|
50
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
51
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ColumnHeaderDirective, isStandalone: true, selector: "[mclColumnHeader]", ngImport: i0 });
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnHeaderDirective, decorators: [{
|
|
54
|
+
type: Directive,
|
|
55
|
+
args: [{
|
|
56
|
+
selector: '[mclColumnHeader]'
|
|
57
|
+
}]
|
|
58
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
59
|
+
|
|
60
|
+
class ColumnDirective {
|
|
61
|
+
static lastId = 0;
|
|
62
|
+
name = 'column_' + (++ColumnDirective.lastId);
|
|
63
|
+
viewType = 'both';
|
|
64
|
+
header;
|
|
65
|
+
cell;
|
|
66
|
+
footer;
|
|
67
|
+
constructor() {
|
|
68
|
+
}
|
|
69
|
+
get columnDefName() {
|
|
70
|
+
return this.viewType + '-' + this.name;
|
|
71
|
+
}
|
|
72
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
73
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.5", type: ColumnDirective, isStandalone: true, 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 });
|
|
74
|
+
}
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ColumnDirective, decorators: [{
|
|
76
|
+
type: Directive,
|
|
77
|
+
args: [{
|
|
78
|
+
selector: 'mcl-column,[mclColumn]'
|
|
79
|
+
}]
|
|
80
|
+
}], ctorParameters: () => [], propDecorators: { name: [{
|
|
81
|
+
type: Input
|
|
82
|
+
}], viewType: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], header: [{
|
|
85
|
+
type: ContentChild,
|
|
86
|
+
args: [ColumnHeaderDirective]
|
|
87
|
+
}], cell: [{
|
|
88
|
+
type: ContentChild,
|
|
89
|
+
args: [ColumnCellDirective]
|
|
90
|
+
}], footer: [{
|
|
91
|
+
type: ContentChild,
|
|
92
|
+
args: [ColumnFooterDirective]
|
|
93
|
+
}] } });
|
|
94
|
+
|
|
95
|
+
class TableComponent {
|
|
96
|
+
mobileService;
|
|
97
|
+
itemsSubject = new BehaviorSubject([]);
|
|
98
|
+
emptyStateMessage = 'mcl.table.nenhum_registro_encontrado';
|
|
99
|
+
table;
|
|
100
|
+
emptyStatePlaceholder;
|
|
101
|
+
columnsDef;
|
|
102
|
+
items;
|
|
103
|
+
outerItems;
|
|
104
|
+
sticky = false;
|
|
105
|
+
currentColumns = [];
|
|
106
|
+
$activeColumnNames = [];
|
|
107
|
+
$loading;
|
|
108
|
+
oldLength = 0;
|
|
109
|
+
columnsChangeSubscription;
|
|
110
|
+
mobileListener = (mobile) => this.mergeColumnsDef(mobile);
|
|
111
|
+
constructor(mobileService) {
|
|
112
|
+
this.mobileService = mobileService;
|
|
113
|
+
this.mobileService.addListener(this.mobileListener);
|
|
114
|
+
}
|
|
115
|
+
get activeColumnNames() {
|
|
116
|
+
return this.$activeColumnNames;
|
|
117
|
+
}
|
|
118
|
+
get hasFooter() {
|
|
119
|
+
return !!this.currentColumns.find(col => !!col.footerCell);
|
|
120
|
+
}
|
|
121
|
+
mergeColumnsDef(mobile = this.mobileService.mobile) {
|
|
122
|
+
clearTimeout(this.$loading);
|
|
123
|
+
this.$loading = setTimeout(() => {
|
|
124
|
+
const ngContentModels = this.columnsDef
|
|
125
|
+
.toArray().filter(model => (mobile && model.viewType !== 'web') ||
|
|
126
|
+
(!mobile && model.viewType !== 'mobile'));
|
|
127
|
+
for (const column of this.currentColumns) {
|
|
128
|
+
this.removeColumnDef(column);
|
|
129
|
+
}
|
|
130
|
+
this.currentColumns.splice(0, this.currentColumns.length);
|
|
131
|
+
ngContentModels.forEach((model, i) => {
|
|
132
|
+
const columnDef = this.mapColumnDef(model);
|
|
133
|
+
this.currentColumns.splice(i, 0, columnDef);
|
|
134
|
+
this.addColumnDef(columnDef);
|
|
135
|
+
});
|
|
136
|
+
this.items = this.getItems() || [];
|
|
137
|
+
this.itemsSubject.next(this.items || []);
|
|
138
|
+
this.$activeColumnNames = this.currentColumns.map(col => col.name);
|
|
139
|
+
}, 80);
|
|
140
|
+
}
|
|
141
|
+
ngAfterViewInit() {
|
|
142
|
+
this.columnsChangeSubscription = this.columnsDef.changes.subscribe((_) => {
|
|
143
|
+
this.mergeColumnsDef();
|
|
144
|
+
});
|
|
145
|
+
this.mergeColumnsDef();
|
|
146
|
+
}
|
|
147
|
+
ngDoCheck() {
|
|
148
|
+
const currentLength = this.getCurrentLength();
|
|
149
|
+
if (this.oldLength !== currentLength) {
|
|
150
|
+
this.oldLength = currentLength;
|
|
151
|
+
this.items = this.getItems() || [];
|
|
152
|
+
this.itemsSubject.next(this.items);
|
|
153
|
+
}
|
|
154
|
+
else if (this.items !== this.getItems()) {
|
|
155
|
+
this.items = this.getItems() || [];
|
|
156
|
+
this.itemsSubject.next(this.items);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
getItems() {
|
|
160
|
+
return this.outerItems;
|
|
161
|
+
}
|
|
162
|
+
getCurrentLength() {
|
|
163
|
+
return (this.outerItems ? this.outerItems.length : 0);
|
|
164
|
+
}
|
|
165
|
+
ngOnDestroy() {
|
|
166
|
+
this.mobileService.removeListener(this.mobileListener);
|
|
167
|
+
this.columnsChangeSubscription?.unsubscribe();
|
|
168
|
+
this.itemsSubject.complete();
|
|
169
|
+
}
|
|
170
|
+
removeColumnDef(columnDef) {
|
|
171
|
+
this.table.removeColumnDef(columnDef);
|
|
172
|
+
}
|
|
173
|
+
addColumnDef(columnDef) {
|
|
174
|
+
this.table.addColumnDef(columnDef);
|
|
175
|
+
}
|
|
176
|
+
mapColumnDef(column) {
|
|
177
|
+
const cdef = new MatColumnDef();
|
|
178
|
+
cdef.name = column.viewType + '-' + column.name;
|
|
179
|
+
cdef.cell = new MatCellDef(column.cell.template);
|
|
180
|
+
cdef.headerCell = new MatHeaderCellDef(column.header.template);
|
|
181
|
+
if (column.footer) {
|
|
182
|
+
cdef.footerCell = new MatFooterCellDef(column.footer.template);
|
|
183
|
+
}
|
|
184
|
+
return cdef;
|
|
185
|
+
}
|
|
186
|
+
currentColumnsContains(model) {
|
|
187
|
+
return !!this.currentColumns.find(def => def.name === model.columnDefName);
|
|
188
|
+
}
|
|
189
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TableComponent, deps: [{ token: i1.MobileService }], target: i0.ɵɵFactoryTarget.Component });
|
|
190
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: TableComponent, isStandalone: true, 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 <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: sticky\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: activeColumnNames;\"></tr>\n\n @if (hasFooter) {\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n }\n</table>\n\n@if (!items?.length && !emptyStatePlaceholder) {\n <div class=\"empty-state\">\n {{ emptyStateMessage | translate }}\n </div>\n}\n\n@if (!items?.length && emptyStatePlaceholder) {\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n}\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: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
191
|
+
}
|
|
192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TableComponent, decorators: [{
|
|
193
|
+
type: Component,
|
|
194
|
+
args: [{ selector: 'mcl-table:not([page])', imports: [
|
|
195
|
+
MatTable,
|
|
196
|
+
MatHeaderRow,
|
|
197
|
+
MatRow,
|
|
198
|
+
MatFooterRow,
|
|
199
|
+
MatHeaderRowDef,
|
|
200
|
+
MatRowDef,
|
|
201
|
+
MatFooterRowDef,
|
|
202
|
+
TranslatePipe
|
|
203
|
+
], template: "<table mat-table [dataSource]=\"itemsSubject\">\n <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: sticky\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: activeColumnNames;\"></tr>\n\n @if (hasFooter) {\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n }\n</table>\n\n@if (!items?.length && !emptyStatePlaceholder) {\n <div class=\"empty-state\">\n {{ emptyStateMessage | translate }}\n </div>\n}\n\n@if (!items?.length && emptyStatePlaceholder) {\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n}\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"] }]
|
|
204
|
+
}], ctorParameters: () => [{ type: i1.MobileService }], propDecorators: { emptyStateMessage: [{
|
|
205
|
+
type: Input
|
|
206
|
+
}], table: [{
|
|
207
|
+
type: ViewChild,
|
|
208
|
+
args: [MatTable]
|
|
209
|
+
}], emptyStatePlaceholder: [{
|
|
210
|
+
type: ContentChild,
|
|
211
|
+
args: ['[mclEmptyState]', { read: ElementRef }]
|
|
212
|
+
}], columnsDef: [{
|
|
213
|
+
type: ContentChildren,
|
|
214
|
+
args: [ColumnDirective]
|
|
215
|
+
}], outerItems: [{
|
|
216
|
+
type: Input,
|
|
217
|
+
args: ['items']
|
|
218
|
+
}], sticky: [{
|
|
219
|
+
type: Input
|
|
220
|
+
}] } });
|
|
221
|
+
|
|
222
|
+
class PaginatorComponent extends MatPaginator {
|
|
223
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: PaginatorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
224
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: PaginatorComponent, isStandalone: true, 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 @if (_displayedPageSizeOptions.length > 1) {\n <mat-form-field\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\n @if (_displayedPageSizeOptions.length <= 1) {\n <div\n class=\"mat-paginator-page-size-value\">{{ pageSize }}\n </div>\n }\n </div>\n\n <div class=\"mat-paginator-range-actions\">\n\n @if (showFirstLastButtons) {\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 <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 }\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 @if (showFirstLastButtons) {\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 <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 }\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: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] });
|
|
225
|
+
}
|
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: PaginatorComponent, decorators: [{
|
|
227
|
+
type: Component,
|
|
228
|
+
args: [{ selector: 'mcl-paginator', imports: [
|
|
229
|
+
MatFormField,
|
|
230
|
+
TranslatePipe,
|
|
231
|
+
MatSelect,
|
|
232
|
+
MatOption,
|
|
233
|
+
MatIconButton,
|
|
234
|
+
MatTooltip,
|
|
235
|
+
], 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 @if (_displayedPageSizeOptions.length > 1) {\n <mat-form-field\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\n @if (_displayedPageSizeOptions.length <= 1) {\n <div\n class=\"mat-paginator-page-size-value\">{{ pageSize }}\n </div>\n }\n </div>\n\n <div class=\"mat-paginator-range-actions\">\n\n @if (showFirstLastButtons) {\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 <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 }\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 @if (showFirstLastButtons) {\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 <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 }\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"] }]
|
|
236
|
+
}] });
|
|
237
|
+
|
|
238
|
+
class PaginatorI18n {
|
|
239
|
+
translate;
|
|
240
|
+
constructor(translate) {
|
|
241
|
+
this.translate = translate;
|
|
242
|
+
}
|
|
243
|
+
getPaginatorIntl() {
|
|
244
|
+
const paginatorIntl = new MatPaginatorIntl();
|
|
245
|
+
paginatorIntl.itemsPerPageLabel = this.translate.instant('mcl.table.items_per_page');
|
|
246
|
+
paginatorIntl.nextPageLabel = this.translate.instant('mcl.table.next_page');
|
|
247
|
+
paginatorIntl.previousPageLabel = this.translate.instant('mcl.table.previous_page');
|
|
248
|
+
paginatorIntl.firstPageLabel = this.translate.instant('mcl.table.first_page');
|
|
249
|
+
paginatorIntl.lastPageLabel = this.translate.instant('mcl.table.last_page');
|
|
250
|
+
paginatorIntl.getRangeLabel = this.getRangeLabel.bind(this);
|
|
251
|
+
return paginatorIntl;
|
|
252
|
+
}
|
|
253
|
+
getRangeLabel(page, pageSize, length) {
|
|
254
|
+
length = Math.max(length, 0);
|
|
255
|
+
const startIndex = page * pageSize;
|
|
256
|
+
const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;
|
|
257
|
+
return this.translate.instant('mcl.table.range', { startIndex: startIndex + 1, endIndex, length });
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const PAGINATION_CONFIGURATION = new InjectionToken('mainclass.PAGINATION_CONFIGURATION');
|
|
262
|
+
function PaginatorIntlFactory(translateService) {
|
|
263
|
+
return new PaginatorI18n(translateService).getPaginatorIntl();
|
|
264
|
+
}
|
|
265
|
+
class PaginatedTableComponent extends TableComponent {
|
|
266
|
+
sizes;
|
|
267
|
+
paginate = new EventEmitter();
|
|
268
|
+
page;
|
|
269
|
+
loader;
|
|
270
|
+
constructor(mobileService, paginationConfiguration) {
|
|
271
|
+
super(mobileService);
|
|
272
|
+
this.sizes = paginationConfiguration?.sizes || [10, 25, 50];
|
|
273
|
+
}
|
|
274
|
+
getCurrentLength() {
|
|
275
|
+
return (this.page?.itens || this.page?.content)?.length;
|
|
276
|
+
}
|
|
277
|
+
getItems() {
|
|
278
|
+
return this.page?.itens || this.page?.content;
|
|
279
|
+
}
|
|
280
|
+
get totalItens() {
|
|
281
|
+
return this.page?.totalItens || this.page?.totalElements;
|
|
282
|
+
}
|
|
283
|
+
get paginaAtual() {
|
|
284
|
+
const paginaMC = this.page?.paginaAtual;
|
|
285
|
+
if (paginaMC !== null && paginaMC !== undefined) {
|
|
286
|
+
return this.page?.paginaAtual;
|
|
287
|
+
}
|
|
288
|
+
const paginaSpring = this.page?.number;
|
|
289
|
+
if (paginaSpring !== null && paginaSpring !== undefined) {
|
|
290
|
+
return (this.page?.number) + 1;
|
|
291
|
+
}
|
|
292
|
+
return undefined;
|
|
293
|
+
}
|
|
294
|
+
get tamanhoPagina() {
|
|
295
|
+
return this.page?.tamanhoPagina || this.page?.size;
|
|
296
|
+
}
|
|
297
|
+
paginaEvent(event) {
|
|
298
|
+
this.paginate.emit({
|
|
299
|
+
pagina: event.pageIndex + 1,
|
|
300
|
+
tamanhoPagina: event.pageSize,
|
|
301
|
+
loader: this.loader,
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: PaginatedTableComponent, deps: [{ token: i1.MobileService }, { token: PAGINATION_CONFIGURATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
305
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.5", type: PaginatedTableComponent, isStandalone: true, selector: "mcl-table[page]", inputs: { sizes: "sizes", page: "page" }, outputs: { paginate: "paginate" }, providers: [
|
|
306
|
+
{
|
|
307
|
+
provide: MatPaginatorIntl, deps: [TranslateService],
|
|
308
|
+
useFactory: PaginatorIntlFactory
|
|
309
|
+
}
|
|
310
|
+
], 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\n @if (hasFooter) {\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n }\n\n </table>\n\n <mcl-loader [showOnInit]=\"true\" [component]=\"div\"></mcl-loader>\n</div>\n\n@if (!items?.length && !emptyStatePlaceholder) {\n <div class=\"empty-state\">\n {{ emptyStateMessage | translate }}\n </div>\n}\n@if (!items?.length && emptyStatePlaceholder) {\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n}\n\n@if (totalItens) {\n <mcl-paginator [pageSize]=\"tamanhoPagina\"\n (page)=\"paginaEvent($event)\"\n [pageIndex]=\"(paginaAtual || 1) - 1\"\n [length]=\"totalItens\"\n [pageSizeOptions]=\"sizes\"\n [showFirstLastButtons]=\"true\">\n </mcl-paginator>\n}\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: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "component", type: MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "directive", type: MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "component", type: LoaderComponent, selector: "mcl-loader", inputs: ["progresso", "show", "labelLoading", "showOnInit", "component"], exportAs: ["loader"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: PaginatorComponent, selector: "mcl-paginator" }] });
|
|
311
|
+
}
|
|
312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: PaginatedTableComponent, decorators: [{
|
|
313
|
+
type: Component,
|
|
314
|
+
args: [{ selector: 'mcl-table[page]', imports: [
|
|
315
|
+
MatTable,
|
|
316
|
+
MatHeaderRow,
|
|
317
|
+
MatRow,
|
|
318
|
+
MatHeaderRowDef,
|
|
319
|
+
MatRowDef,
|
|
320
|
+
MatFooterRow,
|
|
321
|
+
MatFooterRowDef,
|
|
322
|
+
LoaderComponent,
|
|
323
|
+
TranslatePipe,
|
|
324
|
+
PaginatorComponent
|
|
325
|
+
], providers: [
|
|
326
|
+
{
|
|
327
|
+
provide: MatPaginatorIntl, deps: [TranslateService],
|
|
328
|
+
useFactory: PaginatorIntlFactory
|
|
329
|
+
}
|
|
330
|
+
], 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\n @if (hasFooter) {\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n }\n\n </table>\n\n <mcl-loader [showOnInit]=\"true\" [component]=\"div\"></mcl-loader>\n</div>\n\n@if (!items?.length && !emptyStatePlaceholder) {\n <div class=\"empty-state\">\n {{ emptyStateMessage | translate }}\n </div>\n}\n@if (!items?.length && emptyStatePlaceholder) {\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n}\n\n@if (totalItens) {\n <mcl-paginator [pageSize]=\"tamanhoPagina\"\n (page)=\"paginaEvent($event)\"\n [pageIndex]=\"(paginaAtual || 1) - 1\"\n [length]=\"totalItens\"\n [pageSizeOptions]=\"sizes\"\n [showFirstLastButtons]=\"true\">\n </mcl-paginator>\n}\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"] }]
|
|
331
|
+
}], ctorParameters: () => [{ type: i1.MobileService }, { type: undefined, decorators: [{
|
|
332
|
+
type: Inject,
|
|
333
|
+
args: [PAGINATION_CONFIGURATION]
|
|
334
|
+
}, {
|
|
335
|
+
type: Optional
|
|
336
|
+
}] }], propDecorators: { sizes: [{
|
|
337
|
+
type: Input
|
|
338
|
+
}], paginate: [{
|
|
339
|
+
type: Output
|
|
340
|
+
}], page: [{
|
|
341
|
+
type: Input
|
|
342
|
+
}], loader: [{
|
|
343
|
+
type: ViewChild,
|
|
344
|
+
args: [LoaderComponent]
|
|
345
|
+
}] } });
|
|
346
|
+
|
|
347
|
+
class TdComponent {
|
|
348
|
+
constructor(element) {
|
|
349
|
+
element.nativeElement.classList.add('mat-cell');
|
|
350
|
+
}
|
|
351
|
+
ngOnInit() {
|
|
352
|
+
}
|
|
353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TdComponent, deps: [{ token: i0.ElementRef, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
354
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: TdComponent, isStandalone: true, selector: "td,mcl-td", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] });
|
|
355
|
+
}
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: TdComponent, decorators: [{
|
|
357
|
+
type: Component,
|
|
358
|
+
args: [{ selector: 'td,mcl-td', template: "<ng-content></ng-content>\n" }]
|
|
359
|
+
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
360
|
+
type: Self
|
|
361
|
+
}] }] });
|
|
362
|
+
|
|
363
|
+
class ThComponent {
|
|
364
|
+
constructor(element) {
|
|
365
|
+
element.nativeElement.classList.add('mat-header-cell');
|
|
366
|
+
}
|
|
367
|
+
ngOnInit() {
|
|
368
|
+
}
|
|
369
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ThComponent, deps: [{ token: i0.ElementRef, self: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
370
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: ThComponent, isStandalone: true, selector: "th,mcl-th", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""] });
|
|
371
|
+
}
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ThComponent, decorators: [{
|
|
373
|
+
type: Component,
|
|
374
|
+
args: [{ selector: 'th,mcl-th', template: "<ng-content></ng-content>\n" }]
|
|
375
|
+
}], ctorParameters: () => [{ type: i0.ElementRef, decorators: [{
|
|
376
|
+
type: Self
|
|
377
|
+
}] }] });
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Generated bundle index. Do not edit.
|
|
381
|
+
*/
|
|
382
|
+
|
|
383
|
+
export { ColumnCellDirective, ColumnDirective, ColumnFooterDirective, ColumnHeaderDirective, PAGINATION_CONFIGURATION, PaginatedTableComponent, PaginatorComponent, PaginatorIntlFactory, TableComponent, TdComponent, ThComponent };
|
|
384
|
+
//# sourceMappingURL=main-class-componentes-table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-class-componentes-table.mjs","sources":["../../../../projects/main-class/componentes/table/src/column/column-cell.directive.ts","../../../../projects/main-class/componentes/table/src/column/column-footer.directive.ts","../../../../projects/main-class/componentes/table/src/column/column-header.directive.ts","../../../../projects/main-class/componentes/table/src/column/column.directive.ts","../../../../projects/main-class/componentes/table/src/table/table.component.ts","../../../../projects/main-class/componentes/table/src/table/table.component.html","../../../../projects/main-class/componentes/table/src/paginator/paginator.component.ts","../../../../projects/main-class/componentes/table/src/paginator/paginator.component.html","../../../../projects/main-class/componentes/table/src/paginator-i18n.ts","../../../../projects/main-class/componentes/table/src/paginated-table/paginated-table.component.ts","../../../../projects/main-class/componentes/table/src/paginated-table/paginated-table.component.html","../../../../projects/main-class/componentes/table/src/td/td.component.ts","../../../../projects/main-class/componentes/table/src/td/td.component.html","../../../../projects/main-class/componentes/table/src/th/th.component.ts","../../../../projects/main-class/componentes/table/src/th/th.component.html","../../../../projects/main-class/componentes/table/main-class-componentes-table.ts"],"sourcesContent":["import {Directive, TemplateRef} from '@angular/core';\n\n@Directive({\n selector: '[mclColumnCell]'\n})\nexport class ColumnCellDirective {\n constructor(\n public template: TemplateRef<any>\n ) {\n }\n}\n","import {Directive, TemplateRef} from '@angular/core';\n\n@Directive({\n selector: '[mclColumnFooter]'\n})\nexport class ColumnFooterDirective {\n\n constructor(\n public template: TemplateRef<any>\n ) { }\n}\n","import {Directive, TemplateRef} from '@angular/core';\n\n@Directive({\n selector: '[mclColumnHeader]'\n})\nexport class ColumnHeaderDirective {\n\n constructor(\n public template: TemplateRef<any>\n ) { }\n}\n","import {ContentChild, Directive, Input} from '@angular/core';\nimport {ColumnHeaderDirective} from './column-header.directive';\nimport {ColumnCellDirective} from './column-cell.directive';\nimport {ColumnFooterDirective} from './column-footer.directive';\n\n@Directive({\n selector: 'mcl-column,[mclColumn]'\n})\nexport class ColumnDirective {\n\n private static lastId = 0;\n\n @Input() name: string = 'column_' + (++ColumnDirective.lastId);\n @Input() viewType: 'web' | 'mobile' | 'both' = 'both';\n\n @ContentChild(ColumnHeaderDirective) header!: ColumnHeaderDirective;\n @ContentChild(ColumnCellDirective) cell!: ColumnCellDirective;\n @ContentChild(ColumnFooterDirective) footer?: ColumnFooterDirective;\n\n constructor() {\n }\n\n get columnDefName() {\n return this.viewType + '-' + this.name;\n }\n\n}\n","import {\n AfterViewInit,\n Component,\n ContentChild,\n ContentChildren,\n DoCheck,\n ElementRef,\n Input,\n OnDestroy,\n QueryList,\n ViewChild\n} from '@angular/core';\nimport {ColumnDirective} from '../column/column.directive';\nimport {\n MatCellDef,\n MatColumnDef,\n MatFooterCellDef, MatFooterRow, MatFooterRowDef,\n MatHeaderCellDef,\n MatHeaderRow, MatHeaderRowDef, MatRow, MatRowDef,\n MatTable\n} from '@angular/material/table';\nimport {BehaviorSubject, Subscription} from 'rxjs';\nimport {MobileService} from '@main-class/componentes/core';\nimport {TranslatePipe} from '@ngx-translate/core';\n\n@Component({\n selector: 'mcl-table:not([page])',\n templateUrl: './table.component.html',\n imports: [\n MatTable,\n MatHeaderRow,\n MatRow,\n MatFooterRow,\n MatHeaderRowDef,\n MatRowDef,\n MatFooterRowDef,\n TranslatePipe\n ],\n styleUrls: ['./table.component.scss']\n})\nexport class TableComponent<T> implements AfterViewInit, DoCheck, OnDestroy {\n\n itemsSubject = new BehaviorSubject<Array<any>>([]);\n\n @Input() emptyStateMessage = 'mcl.table.nenhum_registro_encontrado';\n\n @ViewChild(MatTable) table!: MatTable<T>;\n\n @ContentChild('[mclEmptyState]', {read: ElementRef}) emptyStatePlaceholder?: ElementRef;\n\n @ContentChildren(ColumnDirective) columnsDef!: QueryList<ColumnDirective>;\n\n items?: Array<T>;\n\n @Input('items') outerItems?: Array<T>;\n\n @Input() sticky = false;\n\n private currentColumns: Array<MatColumnDef> = [];\n private $activeColumnNames: Array<string> = [];\n private $loading: any;\n private oldLength: number | undefined = 0;\n private columnsChangeSubscription?: Subscription;\n private mobileListener = (mobile: any) => this.mergeColumnsDef(mobile);\n\n constructor(\n private mobileService: MobileService,\n ) {\n this.mobileService.addListener(this.mobileListener);\n }\n\n get activeColumnNames() {\n return this.$activeColumnNames;\n }\n\n get hasFooter(): boolean {\n return !!this.currentColumns.find(col => !!col.footerCell);\n }\n\n private mergeColumnsDef(mobile: boolean = this.mobileService.mobile) {\n clearTimeout(this.$loading);\n this.$loading = setTimeout(() => {\n const ngContentModels = this.columnsDef\n .toArray().filter(model => (mobile && model.viewType !== 'web') ||\n (!mobile && model.viewType !== 'mobile'));\n\n for (const column of this.currentColumns) {\n this.removeColumnDef(column);\n }\n this.currentColumns.splice(0,\n this.currentColumns.length);\n\n ngContentModels.forEach((model, i) => {\n const columnDef = this.mapColumnDef(model);\n this.currentColumns.splice(i, 0, columnDef);\n this.addColumnDef(columnDef);\n });\n\n this.items = this.getItems() || [];\n this.itemsSubject.next(this.items || []);\n this.$activeColumnNames = this.currentColumns.map(col => col.name);\n\n }, 80);\n }\n\n ngAfterViewInit() {\n this.columnsChangeSubscription = this.columnsDef.changes.subscribe((_) => {\n this.mergeColumnsDef();\n });\n this.mergeColumnsDef();\n }\n\n ngDoCheck() {\n const currentLength = this.getCurrentLength();\n if (this.oldLength !== currentLength) {\n this.oldLength = currentLength;\n this.items = this.getItems() || [];\n this.itemsSubject.next(this.items);\n } else if (this.items !== this.getItems()) {\n this.items = this.getItems() || [];\n this.itemsSubject.next(this.items);\n }\n }\n\n getItems() {\n return this.outerItems;\n }\n\n getCurrentLength(): number | undefined {\n return (this.outerItems ? this.outerItems.length : 0);\n }\n\n ngOnDestroy() {\n this.mobileService.removeListener(this.mobileListener);\n this.columnsChangeSubscription?.unsubscribe();\n this.itemsSubject.complete();\n }\n\n private removeColumnDef(columnDef: MatColumnDef) {\n this.table.removeColumnDef(columnDef);\n }\n\n private addColumnDef(columnDef: MatColumnDef) {\n this.table.addColumnDef(columnDef);\n }\n\n private mapColumnDef(column: ColumnDirective): MatColumnDef {\n const cdef = new MatColumnDef();\n cdef.name = column.viewType + '-' + column.name;\n cdef.cell = new MatCellDef(column.cell.template);\n cdef.headerCell = new MatHeaderCellDef(column.header.template);\n if (column.footer) {\n cdef.footerCell = new MatFooterCellDef(column.footer.template);\n }\n return cdef;\n }\n\n private currentColumnsContains(model: any): boolean {\n return !!this.currentColumns.find(def => def.name === model.columnDefName);\n }\n\n}\n","<table mat-table [dataSource]=\"itemsSubject\">\n <tr mat-header-row *matHeaderRowDef=\"activeColumnNames; sticky: sticky\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: activeColumnNames;\"></tr>\n\n @if (hasFooter) {\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n }\n</table>\n\n@if (!items?.length && !emptyStatePlaceholder) {\n <div class=\"empty-state\">\n {{ emptyStateMessage | translate }}\n </div>\n}\n\n@if (!items?.length && emptyStatePlaceholder) {\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n}\n","import {Component} from '@angular/core';\nimport {MatPaginator} from '@angular/material/paginator';\nimport {TranslatePipe} from '@ngx-translate/core';\nimport {MatFormField} from '@angular/material/input';\nimport {MatSelect} from '@angular/material/select';\nimport {MatOption} from '@angular/material/autocomplete';\nimport {MatIconButton} from '@angular/material/button';\nimport {MatTooltip} from '@angular/material/tooltip';\n\n@Component({\n selector: 'mcl-paginator',\n templateUrl: './paginator.component.html',\n imports: [\n MatFormField,\n TranslatePipe,\n MatSelect,\n MatOption,\n MatIconButton,\n MatTooltip,\n ],\n styleUrls: ['./paginator.component.scss']\n})\nexport class PaginatorComponent extends MatPaginator {\n\n}\n","<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 @if (_displayedPageSizeOptions.length > 1) {\n <mat-form-field\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\n @if (_displayedPageSizeOptions.length <= 1) {\n <div\n class=\"mat-paginator-page-size-value\">{{ pageSize }}\n </div>\n }\n </div>\n\n <div class=\"mat-paginator-range-actions\">\n\n @if (showFirstLastButtons) {\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 <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 }\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 @if (showFirstLastButtons) {\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 <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 }\n </div>\n </div>\n</div>\n","import {TranslateService} from '@ngx-translate/core';\nimport {MatPaginatorIntl} from '@angular/material/paginator';\n\nexport class PaginatorI18n {\n\n constructor(private readonly translate: TranslateService) {}\n\n getPaginatorIntl(): MatPaginatorIntl {\n const paginatorIntl = new MatPaginatorIntl();\n paginatorIntl.itemsPerPageLabel = this.translate.instant('mcl.table.items_per_page');\n paginatorIntl.nextPageLabel = this.translate.instant('mcl.table.next_page');\n paginatorIntl.previousPageLabel = this.translate.instant('mcl.table.previous_page');\n paginatorIntl.firstPageLabel = this.translate.instant('mcl.table.first_page');\n paginatorIntl.lastPageLabel = this.translate.instant('mcl.table.last_page');\n paginatorIntl.getRangeLabel = this.getRangeLabel.bind(this);\n return paginatorIntl;\n }\n\n private getRangeLabel(page: number, pageSize: number, length: number): string {\n length = Math.max(length, 0);\n const startIndex = page * pageSize;\n const endIndex = startIndex < length ? Math.min(startIndex + pageSize, length) : startIndex + pageSize;\n return this.translate.instant('mcl.table.range', { startIndex: startIndex + 1, endIndex, length });\n }\n}\n","import {Component, EventEmitter, Inject, InjectionToken, Input, Optional, Output, ViewChild} from '@angular/core';\nimport {TableComponent} from '../table/table.component';\nimport {MatPaginatorIntl, PageEvent} from '@angular/material/paginator';\nimport {LoaderComponent} from '@main-class/componentes/loader';\nimport {MobileService} from '@main-class/componentes/core';\nimport {TranslatePipe, TranslateService} from '@ngx-translate/core';\nimport {\n MatFooterRow,\n MatFooterRowDef,\n MatHeaderRow,\n MatHeaderRowDef,\n MatRow,\n MatRowDef,\n MatTable\n} from '@angular/material/table';\nimport {PaginatorComponent} from '../paginator/paginator.component';\nimport {PaginatorI18n} from '../paginator-i18n';\n\nexport const PAGINATION_CONFIGURATION = new InjectionToken('mainclass.PAGINATION_CONFIGURATION');\n\nexport interface MCPaginaDTO<T> {\n itens?: Array<T>;\n paginaAtual?: number;\n tamanhoPagina?: number;\n totalItens?: number;\n}\n\nexport interface SpringPage<T> {\n content?: Array<T>;\n number?: number;\n size?: number;\n totalElements?: number;\n}\n\nexport interface PaginationEvent {\n pagina: any;\n tamanhoPagina: number;\n loader: LoaderComponent;\n}\n\nexport interface PaginationConfiguration {\n sizes: Array<number>;\n}\n\n\nexport function PaginatorIntlFactory(translateService: TranslateService) {\n return new PaginatorI18n(translateService).getPaginatorIntl();\n}\n\n@Component({\n selector: 'mcl-table[page]',\n templateUrl: './paginated-table.component.html',\n styleUrls: [\n './paginated-table.component.scss',\n '../table/table.component.scss'\n ],\n imports: [\n MatTable,\n MatHeaderRow,\n MatRow,\n MatHeaderRowDef,\n MatRowDef,\n MatFooterRow,\n MatFooterRowDef,\n LoaderComponent,\n TranslatePipe,\n PaginatorComponent\n ],\n providers: [\n {\n provide: MatPaginatorIntl, deps: [TranslateService],\n useFactory: PaginatorIntlFactory\n }\n ]\n})\nexport class PaginatedTableComponent<T> extends TableComponent<T> {\n @Input() sizes;\n\n @Output() paginate = new EventEmitter<PaginationEvent>();\n\n @Input() page?: MCPaginaDTO<T> | SpringPage<T>;\n\n @ViewChild(LoaderComponent) loader?: LoaderComponent;\n\n constructor(\n mobileService: MobileService,\n @Inject(PAGINATION_CONFIGURATION) @Optional() paginationConfiguration?: PaginationConfiguration) {\n super(mobileService);\n\n this.sizes = paginationConfiguration?.sizes || [10, 25, 50];\n }\n\n override getCurrentLength(): number | undefined {\n return ((this.page as any)?.itens || (this.page as any)?.content)?.length;\n }\n\n override getItems(): Array<T> | undefined {\n return (this.page as any)?.itens || (this.page as any)?.content;\n }\n\n get totalItens(): number {\n return (this.page as any)?.totalItens || (this.page as any)?.totalElements;\n }\n\n get paginaAtual(): number | undefined {\n const paginaMC = (this.page as any)?.paginaAtual;\n if (paginaMC !== null && paginaMC !== undefined) {\n return (this.page as any)?.paginaAtual;\n }\n\n const paginaSpring = (this.page as any)?.number;\n if (paginaSpring !== null && paginaSpring !== undefined) {\n return ((this.page as any)?.number) + 1;\n }\n\n return undefined;\n }\n\n get tamanhoPagina(): number {\n return (this.page as any)?.tamanhoPagina || (this.page as any)?.size;\n }\n\n paginaEvent(event: PageEvent) {\n this.paginate.emit({\n pagina: event.pageIndex + 1,\n tamanhoPagina: event.pageSize,\n loader: this.loader!,\n });\n }\n}\n","<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\n @if (hasFooter) {\n <tr mat-footer-row *matFooterRowDef=\"activeColumnNames;\"></tr>\n }\n\n </table>\n\n <mcl-loader [showOnInit]=\"true\" [component]=\"div\"></mcl-loader>\n</div>\n\n@if (!items?.length && !emptyStatePlaceholder) {\n <div class=\"empty-state\">\n {{ emptyStateMessage | translate }}\n </div>\n}\n@if (!items?.length && emptyStatePlaceholder) {\n <ng-content select=\"[mclEmptyState]\"></ng-content>\n}\n\n@if (totalItens) {\n <mcl-paginator [pageSize]=\"tamanhoPagina\"\n (page)=\"paginaEvent($event)\"\n [pageIndex]=\"(paginaAtual || 1) - 1\"\n [length]=\"totalItens\"\n [pageSizeOptions]=\"sizes\"\n [showFirstLastButtons]=\"true\">\n </mcl-paginator>\n}\n","import {Component, ElementRef, OnInit, Self} from '@angular/core';\n\n@Component({\n selector: 'td,mcl-td',\n templateUrl: './td.component.html',\n styleUrls: ['./td.component.scss'],\n})\nexport class TdComponent implements OnInit {\n\n constructor(\n @Self() element: ElementRef\n ) {\n element.nativeElement.classList.add('mat-cell');\n }\n\n ngOnInit(): void {\n }\n\n}\n","<ng-content></ng-content>\n","import {Component, ElementRef, OnInit, Self} from '@angular/core';\n\n@Component({\n selector: 'th,mcl-th',\n templateUrl: './th.component.html',\n styleUrls: ['./th.component.scss']\n})\nexport class ThComponent implements OnInit {\n\n constructor(\n @Self() element: ElementRef\n ) {\n element.nativeElement.classList.add('mat-header-cell');\n }\n\n ngOnInit(): void {\n }\n\n\n}\n","<ng-content></ng-content>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAKa,mBAAmB,CAAA;AAErB,IAAA,QAAA;AADT,IAAA,WAAA,CACS,QAA0B,EAAA;QAA1B,IAAQ,CAAA,QAAA,GAAR,QAAQ;;uGAFN,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,U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../../../projects/main-class/componentes/main-class-componentes.ts"],"sourcesContent":["/*\n * Public API Surface of componentes\n */\n\nexport class MainClassComponentes {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;AAEG;MAEU,oBAAoB,CAAA;AAAG;;ACJpC;;AAEG;;;;"}
|
package/form/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class FormComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
6
6
|
submitted: EventEmitter<NgForm>;
|
|
7
7
|
throttleMillis: number;
|
|
8
8
|
private eventSubject;
|
|
9
|
-
private subscription
|
|
9
|
+
private subscription?;
|
|
10
10
|
models: QueryList<NgModel>;
|
|
11
11
|
form: NgForm;
|
|
12
12
|
private currentModels;
|
|
@@ -20,5 +20,5 @@ export declare class FormComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
|
20
20
|
reset(): Observable<any>;
|
|
21
21
|
submit(form: NgForm): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "mcl-form", never, { "throttleMillis": "throttleMillis"; }, { "submitted": "submitted"; }, ["models"], ["*"],
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "mcl-form", never, { "throttleMillis": { "alias": "throttleMillis"; "required": false; }; }, { "submitted": "submitted"; }, ["models"], ["*"], true, never>;
|
|
24
24
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormComponent } from '../form.component';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class MensagensErroComponent implements OnInit {
|
|
5
|
-
name
|
|
6
|
+
name?: string;
|
|
7
|
+
for?: FormControl;
|
|
6
8
|
form: FormComponent;
|
|
7
9
|
constructor(form: FormComponent);
|
|
8
10
|
ngOnInit(): void;
|
|
9
|
-
get
|
|
11
|
+
get control(): import("@angular/forms").AbstractControl<any, any> | undefined;
|
|
12
|
+
get errors(): string[] | undefined;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<MensagensErroComponent, [{ optional: true; host: true; }]>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MensagensErroComponent, "mcl-mensagens-erro,mat-error[name],[mat-error][name]", never, { "name": "name"; "form": "form"; }, {}, never, never,
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MensagensErroComponent, "mcl-mensagens-erro,mat-error[name],mat-error[for],[mat-error][name],[mat-error][for]", never, { "name": { "alias": "name"; "required": false; }; "for": { "alias": "for"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
15
|
}
|
|
@@ -2,12 +2,12 @@ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SingleClickDirective implements OnInit, OnDestroy {
|
|
4
4
|
private elementRef;
|
|
5
|
-
private subscription
|
|
5
|
+
private subscription?;
|
|
6
6
|
throttleMillis: number;
|
|
7
7
|
singleClick: EventEmitter<any>;
|
|
8
8
|
constructor(elementRef: ElementRef);
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
ngOnDestroy(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SingleClickDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SingleClickDirective, "[mclSingleClick],[singleClick]", never, { "throttleMillis": "throttleMillis"; }, { "singleClick": "singleClick"; }, never, never,
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SingleClickDirective, "[mclSingleClick],[singleClick]", never, { "throttleMillis": { "alias": "throttleMillis"; "required": false; }; }, { "singleClick": "singleClick"; }, never, never, true, never>;
|
|
13
13
|
}
|
package/input/index.d.ts
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
export * from './src/abstract-mat-form-field-control';
|
|
2
|
-
export * from './src/
|
|
2
|
+
export * from './src/abstract-mat-form-field-select-control';
|
|
3
|
+
export * from './src/input-currency/input-currency.component';
|
|
3
4
|
export * from './src/input-datetime/input-datetime.component';
|
|
4
|
-
export * from './src/input-fileupload/input-fileupload.module';
|
|
5
5
|
export * from './src/input-fileupload/input-fileupload.component';
|
|
6
6
|
export * from './src/input-fileupload/input-fileupload.directive';
|
|
7
|
+
export * from './src/input-mask/input-cnpj.component';
|
|
8
|
+
export * from './src/input-mask/input-cep.component';
|
|
9
|
+
export * from './src/input-mask/input-cpf-cnpj.component';
|
|
10
|
+
export * from './src/input-mask/input-cpf.component';
|
|
11
|
+
export * from './src/input-mask/input-mask.component';
|
|
12
|
+
export * from './src/input-mask/input-phone.component';
|
|
7
13
|
export * from './src/option-checkbox/all-option-checkbox.component';
|
|
8
14
|
export * from './src/option-checkbox/option-checkbox.component';
|
|
9
|
-
export * from './src/option-checkbox/option-checkbox.module';
|
|
10
15
|
export * from './src/option-checkbox/option-checkbox-group.component';
|
|
11
16
|
export * from './src/select-chips/select-chips.component';
|
|
12
|
-
export * from './src/select-
|
|
13
|
-
export * from './src/select-
|
|
14
|
-
export * from './src/select-
|
|
17
|
+
export * from './src/select-autocomplete/select-autocomplete.component';
|
|
18
|
+
export * from './src/select-option/select-option';
|
|
19
|
+
export * from './src/select-option/select-option-provider';
|
|
20
|
+
export * from './src/select-option/select-option.component';
|
|
21
|
+
export * from './src/select-option/delegate-option-provider.directive';
|
|
15
22
|
export * from './src/select-many-checkbox/select-many-checkbox.component';
|
|
16
|
-
export * from './src/select-many-checkbox/select-many-checkbox.module';
|
|
17
23
|
export * from './src/select-radio/select-radio.component';
|
|
18
|
-
export * from './src/select-radio/select-radio.module';
|
|
19
|
-
export * from './src/input-telefone-internacional/input-telefone-internacional.module';
|
|
20
24
|
export * from './src/input-telefone-internacional/input-telefone-internacional.component';
|
|
21
25
|
export * from './src/input-telefone-internacional/input-telefone-internacional-validator.directive';
|