@main-class/componentes 1.18.7 → 1.19.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/arquivo/index.d.ts +6 -4
- package/arquivo/main-class-componentes-arquivo.d.ts +4 -0
- package/arquivo/main-class-componentes-arquivo.metadata.json +1 -0
- package/arquivo/package.json +11 -0
- package/arquivo/{download-arquivo.directive.d.ts → src/download-arquivo.directive.d.ts} +1 -1
- package/{core/imagem → arquivo/src}/imagem.directive.d.ts +1 -1
- package/arquivo/{preview-arquivo → src/preview-arquivo}/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +1 -1
- package/arquivo/{preview-arquivo → src/preview-arquivo}/preview-arquivo.component.d.ts +1 -1
- package/bundles/main-class-componentes-arquivo.umd.js +687 -0
- package/bundles/main-class-componentes-arquivo.umd.js.map +1 -0
- package/bundles/main-class-componentes-arquivo.umd.min.js +16 -0
- package/bundles/main-class-componentes-arquivo.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-core.umd.js +252 -0
- package/bundles/main-class-componentes-core.umd.js.map +1 -0
- package/bundles/main-class-componentes-core.umd.min.js +2 -0
- package/bundles/main-class-componentes-core.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-crud.umd.js +543 -0
- package/bundles/main-class-componentes-crud.umd.js.map +1 -0
- package/bundles/main-class-componentes-crud.umd.min.js +16 -0
- package/bundles/main-class-componentes-crud.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-date.umd.js +185 -0
- package/bundles/main-class-componentes-date.umd.js.map +1 -0
- package/bundles/main-class-componentes-date.umd.min.js +2 -0
- package/bundles/main-class-componentes-date.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-dialog.umd.js +206 -0
- package/bundles/main-class-componentes-dialog.umd.js.map +1 -0
- package/bundles/main-class-componentes-dialog.umd.min.js +2 -0
- package/bundles/main-class-componentes-dialog.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-form.umd.js +211 -0
- package/bundles/main-class-componentes-form.umd.js.map +1 -0
- package/bundles/main-class-componentes-form.umd.min.js +2 -0
- package/bundles/main-class-componentes-form.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-input.umd.js +2244 -0
- package/bundles/main-class-componentes-input.umd.js.map +1 -0
- package/bundles/main-class-componentes-input.umd.min.js +17 -0
- package/bundles/main-class-componentes-input.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-loader.umd.js +233 -0
- package/bundles/main-class-componentes-loader.umd.js.map +1 -0
- package/bundles/main-class-componentes-loader.umd.min.js +2 -0
- package/bundles/main-class-componentes-loader.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-misc.umd.js +1122 -0
- package/bundles/main-class-componentes-misc.umd.js.map +1 -0
- package/bundles/main-class-componentes-misc.umd.min.js +16 -0
- package/bundles/main-class-componentes-misc.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-model.umd.js +196 -0
- package/bundles/main-class-componentes-model.umd.js.map +1 -0
- package/bundles/main-class-componentes-model.umd.min.js +2 -0
- package/bundles/main-class-componentes-model.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-pipe.umd.js +55 -0
- package/bundles/main-class-componentes-pipe.umd.js.map +1 -0
- package/bundles/main-class-componentes-pipe.umd.min.js +2 -0
- package/bundles/main-class-componentes-pipe.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-scroll.umd.js +106 -0
- package/bundles/main-class-componentes-scroll.umd.js.map +1 -0
- package/bundles/main-class-componentes-scroll.umd.min.js +2 -0
- package/bundles/main-class-componentes-scroll.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-table.umd.js +787 -0
- package/bundles/main-class-componentes-table.umd.js.map +1 -0
- package/bundles/main-class-componentes-table.umd.min.js +17 -0
- package/bundles/main-class-componentes-table.umd.min.js.map +1 -0
- package/bundles/main-class-componentes-util.umd.js +31 -0
- package/bundles/main-class-componentes-util.umd.js.map +1 -0
- package/bundles/main-class-componentes-util.umd.min.js +2 -0
- package/bundles/main-class-componentes-util.umd.min.js.map +1 -0
- package/bundles/main-class-componentes.umd.js +13 -5512
- package/bundles/main-class-componentes.umd.js.map +1 -1
- package/bundles/main-class-componentes.umd.min.js +1 -1
- package/bundles/main-class-componentes.umd.min.js.map +1 -1
- package/core/index.d.ts +5 -14
- package/core/main-class-componentes-core.d.ts +4 -0
- package/core/main-class-componentes-core.metadata.json +1 -0
- package/core/package.json +11 -0
- package/core/src/core.module.d.ts +4 -0
- package/core/{mensageria → src/mensageria}/mensageria.service.d.ts +1 -2
- package/crud/index.d.ts +4 -5
- package/crud/main-class-componentes-crud.d.ts +4 -0
- package/crud/main-class-componentes-crud.metadata.json +1 -0
- package/crud/package.json +11 -0
- package/crud/{abstract-consulta-component.d.ts → src/abstract-consulta-component.d.ts} +3 -2
- package/crud/{abstract-consulta-paginada-component.d.ts → src/abstract-consulta-paginada-component.d.ts} +3 -2
- package/crud/{abstract-edicao-component.d.ts → src/abstract-edicao-component.d.ts} +2 -1
- package/crud/{abstract-edicao-modal-component.d.ts → src/abstract-edicao-modal-component.d.ts} +3 -1
- package/date/index.d.ts +3 -3
- package/date/main-class-componentes-date.d.ts +4 -0
- package/date/main-class-componentes-date.metadata.json +1 -0
- package/date/package.json +11 -0
- package/dialog/index.d.ts +4 -0
- package/dialog/main-class-componentes-dialog.d.ts +4 -0
- package/dialog/main-class-componentes-dialog.metadata.json +1 -0
- package/dialog/package.json +11 -0
- package/dialog/src/dialog.module.d.ts +2 -0
- package/esm2015/arquivo/index.js +7 -5
- package/esm2015/arquivo/main-class-componentes-arquivo.js +5 -0
- package/esm2015/arquivo/src/arquivo-manager.service.js +3 -0
- package/esm2015/arquivo/src/arquivo.module.js +30 -0
- package/esm2015/arquivo/src/download-arquivo.directive.js +44 -0
- package/esm2015/arquivo/src/imagem.directive.js +80 -0
- package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +56 -0
- package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +136 -0
- package/esm2015/core/index.js +6 -15
- package/esm2015/core/main-class-componentes-core.js +5 -0
- package/esm2015/core/src/core.module.js +27 -0
- package/esm2015/core/src/criptografia/criptografia.service.js +13 -0
- package/esm2015/core/src/mensageria/mensageria.service.js +48 -0
- package/esm2015/core/src/mobile/mobile.service.js +45 -0
- package/esm2015/core/src/validator/valida-modulo11.service.js +92 -0
- package/esm2015/crud/index.js +5 -6
- package/esm2015/crud/main-class-componentes-crud.js +5 -0
- package/esm2015/crud/src/abstract-consulta-component.js +60 -0
- package/esm2015/crud/src/abstract-consulta-paginada-component.js +48 -0
- package/esm2015/crud/src/abstract-edicao-component.js +29 -0
- package/esm2015/crud/src/abstract-edicao-modal-component.js +24 -0
- package/esm2015/date/index.js +4 -4
- package/esm2015/date/main-class-componentes-date.js +5 -0
- package/esm2015/date/src/date.module.js +19 -0
- package/esm2015/date/src/validator/data-validator.directive.js +97 -0
- package/esm2015/date/src/validator/futuro.directive.js +26 -0
- package/esm2015/dialog/index.js +5 -0
- package/esm2015/dialog/main-class-componentes-dialog.js +5 -0
- package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +40 -0
- package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +59 -0
- package/esm2015/dialog/src/dialog.module.js +28 -0
- package/esm2015/dialog/src/dialog.service.js +55 -0
- package/esm2015/form/index.js +5 -5
- package/esm2015/form/main-class-componentes-form.js +5 -0
- package/esm2015/form/src/form.component.js +103 -0
- package/esm2015/form/src/form.module.js +25 -0
- package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +31 -0
- package/esm2015/form/src/single-click.directive.js +35 -0
- package/esm2015/input/index.js +22 -22
- package/esm2015/input/main-class-componentes-input.js +6 -0
- package/esm2015/input/src/abstract-mat-form-field-control.js +110 -0
- package/esm2015/input/src/input-datetime/input-datetime.component.js +114 -0
- package/esm2015/input/{input-datetime → src/input-datetime}/input-datetime.module.js +3 -3
- package/esm2015/input/src/input-fileupload/input-fileupload.component.js +324 -0
- package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +34 -0
- package/esm2015/input/src/input-fileupload/input-fileupload.module.js +34 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +22 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +66 -0
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +23 -0
- package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +36 -0
- package/esm2015/input/src/option-checkbox/node-pool.js +93 -0
- package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +71 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.component.js +59 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.module.js +23 -0
- package/esm2015/input/src/option-checkbox/option-checkbox.service.js +52 -0
- package/esm2015/input/src/option-checkbox/option-node.js +24 -0
- package/esm2015/input/src/select-chips/select-chips.component.js +177 -0
- package/esm2015/input/src/select-chips/select-chips.module.js +25 -0
- package/esm2015/input/src/select-item/select-item.component.js +20 -0
- package/esm2015/input/src/select-item/select-item.module.js +15 -0
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +150 -0
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +21 -0
- package/esm2015/input/src/select-radio/select-radio.component.js +124 -0
- package/esm2015/input/src/select-radio/select-radio.module.js +21 -0
- package/esm2015/loader/index.js +4 -0
- package/esm2015/loader/main-class-componentes-loader.js +5 -0
- package/esm2015/loader/src/loader.component.js +112 -0
- package/esm2015/loader/src/loader.module.js +21 -0
- package/esm2015/loader/src/loader.service.js +70 -0
- package/esm2015/misc/index.js +27 -27
- package/esm2015/misc/main-class-componentes-misc.js +5 -0
- package/esm2015/misc/src/cnpj/cnpj-model.directive.js +13 -0
- package/esm2015/misc/src/cnpj/cnpj.directive.js +31 -0
- package/esm2015/misc/src/cnpj/cnpj.module.js +19 -0
- package/esm2015/misc/src/cnpj/cnpjs.pipe.js +15 -0
- package/esm2015/misc/src/cpf/cpf-model.directive.js +13 -0
- package/esm2015/misc/src/cpf/cpf.directive.js +31 -0
- package/esm2015/misc/src/cpf/cpf.module.js +19 -0
- package/esm2015/misc/src/cpf/cpf.pipe.js +15 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +25 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +32 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +19 -0
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +18 -0
- package/esm2015/misc/{info → src/info}/info.component.js +1 -1
- package/esm2015/misc/src/info/info.module.js +17 -0
- package/esm2015/misc/src/monetario/monetario-mask.js +34 -0
- package/esm2015/misc/src/monetario/monetario-model.directive.js +124 -0
- package/esm2015/misc/src/monetario/monetario.module.js +16 -0
- package/esm2015/misc/src/monetario/monetario.pipe.js +13 -0
- package/esm2015/misc/src/porcentagem/porcentagem-mask.js +34 -0
- package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +99 -0
- package/esm2015/misc/src/porcentagem/porcentagem.module.js +16 -0
- package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +13 -0
- package/esm2015/misc/src/telefone/telefone-model.directive.js +25 -0
- package/esm2015/misc/src/telefone/telefone.module.js +18 -0
- package/esm2015/misc/src/telefone/telefone.pipe.js +33 -0
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +23 -0
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +15 -0
- package/esm2015/model/index.js +3 -0
- package/esm2015/model/main-class-componentes-model.js +5 -0
- package/esm2015/model/src/masked-model.directive.js +149 -0
- package/esm2015/model/src/model.module.js +19 -0
- package/esm2015/pipe/index.js +3 -0
- package/esm2015/pipe/main-class-componentes-pipe.js +5 -0
- package/esm2015/pipe/src/nome-resumido.pipe.js +16 -0
- package/esm2015/pipe/src/pipe.module.js +16 -0
- package/esm2015/public-api.js +2 -11
- package/esm2015/scroll/index.js +3 -3
- package/esm2015/scroll/main-class-componentes-scroll.js +5 -0
- package/esm2015/scroll/src/scroll-container/scroll-container.component.js +69 -0
- package/esm2015/scroll/src/scroll.module.js +17 -0
- package/esm2015/table/index.js +12 -12
- package/esm2015/table/main-class-componentes-table.js +6 -0
- package/esm2015/table/src/column/column-cell.directive.js +15 -0
- package/esm2015/table/src/column/column-footer.directive.js +15 -0
- package/esm2015/table/src/column/column-header.directive.js +15 -0
- package/esm2015/table/src/column/column.directive.js +28 -0
- package/esm2015/table/src/infinite-table/infinite-table.component.js +92 -0
- package/esm2015/table/src/paginated-table/paginated-table.component.js +43 -0
- package/esm2015/table/{paginator → src/paginator}/paginator.component.js +1 -1
- package/esm2015/table/src/paginator-i18n.js +23 -0
- package/esm2015/table/src/table/table.component.js +119 -0
- package/esm2015/table/src/table.module.js +74 -0
- package/esm2015/table/src/td/td.component.js +19 -0
- package/esm2015/table/src/th/th.component.js +19 -0
- package/esm2015/util/index.js +2 -2
- package/esm2015/util/main-class-componentes-util.js +5 -0
- package/esm2015/util/src/string.util.js +12 -0
- package/fesm2015/main-class-componentes-arquivo.js +338 -0
- package/fesm2015/main-class-componentes-arquivo.js.map +1 -0
- package/fesm2015/main-class-componentes-core.js +219 -0
- package/fesm2015/main-class-componentes-core.js.map +1 -0
- package/fesm2015/main-class-componentes-crud.js +162 -0
- package/fesm2015/main-class-componentes-crud.js.map +1 -0
- package/fesm2015/main-class-componentes-date.js +143 -0
- package/fesm2015/main-class-componentes-date.js.map +1 -0
- package/fesm2015/main-class-componentes-dialog.js +177 -0
- package/fesm2015/main-class-componentes-dialog.js.map +1 -0
- package/fesm2015/main-class-componentes-form.js +191 -0
- package/fesm2015/main-class-componentes-form.js.map +1 -0
- package/fesm2015/main-class-componentes-input.js +1604 -0
- package/fesm2015/main-class-componentes-input.js.map +1 -0
- package/fesm2015/main-class-componentes-loader.js +206 -0
- package/fesm2015/main-class-componentes-loader.js.map +1 -0
- package/fesm2015/main-class-componentes-misc.js +688 -0
- package/fesm2015/main-class-componentes-misc.js.map +1 -0
- package/fesm2015/main-class-componentes-model.js +173 -0
- package/fesm2015/main-class-componentes-model.js.map +1 -0
- package/fesm2015/main-class-componentes-pipe.js +37 -0
- package/fesm2015/main-class-componentes-pipe.js.map +1 -0
- package/fesm2015/main-class-componentes-scroll.js +91 -0
- package/fesm2015/main-class-componentes-scroll.js.map +1 -0
- package/fesm2015/main-class-componentes-table.js +446 -0
- package/fesm2015/main-class-componentes-table.js.map +1 -0
- package/fesm2015/main-class-componentes-util.js +18 -0
- package/fesm2015/main-class-componentes-util.js.map +1 -0
- package/fesm2015/main-class-componentes.js +1 -4309
- package/fesm2015/main-class-componentes.js.map +1 -1
- package/form/index.d.ts +4 -4
- package/form/main-class-componentes-form.d.ts +4 -0
- package/form/main-class-componentes-form.metadata.json +1 -0
- package/form/package.json +11 -0
- package/input/index.d.ts +21 -21
- package/input/main-class-componentes-input.d.ts +5 -0
- package/input/main-class-componentes-input.metadata.json +1 -0
- package/input/package.json +11 -0
- package/input/{input-fileupload → src/input-fileupload}/input-fileupload.component.d.ts +2 -2
- package/loader/index.d.ts +3 -0
- package/loader/main-class-componentes-loader.d.ts +4 -0
- package/loader/main-class-componentes-loader.metadata.json +1 -0
- package/loader/package.json +11 -0
- package/{core/loader → loader/src}/loader.component.d.ts +1 -1
- package/loader/src/loader.module.d.ts +2 -0
- package/main-class-componentes.metadata.json +1 -1
- package/misc/index.d.ts +26 -26
- package/misc/main-class-componentes-misc.d.ts +4 -0
- package/misc/main-class-componentes-misc.metadata.json +1 -0
- package/misc/package.json +11 -0
- package/misc/{cnpj → src/cnpj}/cnpj-model.directive.d.ts +1 -1
- package/misc/{cnpj → src/cnpj}/cnpj.directive.d.ts +1 -1
- package/misc/{cpf → src/cpf}/cpf-model.directive.d.ts +1 -1
- package/misc/{cpf → src/cpf}/cpf.directive.d.ts +1 -1
- package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj-model.directive.d.ts +1 -1
- package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.directive.d.ts +1 -1
- package/misc/{monetario → src/monetario}/monetario-model.directive.d.ts +2 -2
- package/misc/{porcentagem → src/porcentagem}/porcentagem-model.directive.d.ts +2 -2
- package/misc/{telefone → src/telefone}/telefone-model.directive.d.ts +1 -1
- package/model/index.d.ts +2 -0
- package/model/main-class-componentes-model.d.ts +4 -0
- package/model/main-class-componentes-model.metadata.json +1 -0
- package/model/package.json +11 -0
- package/model/src/model.module.d.ts +2 -0
- package/package.json +1 -1
- package/pipe/index.d.ts +2 -0
- package/pipe/main-class-componentes-pipe.d.ts +4 -0
- package/pipe/main-class-componentes-pipe.metadata.json +1 -0
- package/pipe/package.json +11 -0
- package/pipe/src/pipe.module.d.ts +2 -0
- package/public-api.d.ts +2 -10
- package/scroll/index.d.ts +2 -2
- package/scroll/main-class-componentes-scroll.d.ts +4 -0
- package/scroll/main-class-componentes-scroll.metadata.json +1 -0
- package/scroll/package.json +11 -0
- package/table/index.d.ts +11 -11
- package/table/main-class-componentes-table.d.ts +5 -0
- package/table/main-class-componentes-table.metadata.json +1 -0
- package/table/package.json +11 -0
- package/table/{infinite-table → src/infinite-table}/infinite-table.component.d.ts +2 -1
- package/table/{paginated-table → src/paginated-table}/paginated-table.component.d.ts +2 -2
- package/table/{table → src/table}/table.component.d.ts +1 -1
- package/util/index.d.ts +1 -1
- package/util/main-class-componentes-util.d.ts +4 -0
- package/util/main-class-componentes-util.metadata.json +1 -0
- package/util/package.json +11 -0
- package/core/componentes.module.d.ts +0 -4
- package/crud/crud.module.d.ts +0 -2
- package/esm2015/arquivo/arquivo.module.js +0 -29
- package/esm2015/arquivo/download-arquivo.directive.js +0 -44
- package/esm2015/arquivo/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
- package/esm2015/arquivo/preview-arquivo/preview-arquivo.component.js +0 -136
- package/esm2015/core/arquivo/arquivo-manager.service.js +0 -3
- package/esm2015/core/componentes.module.js +0 -65
- package/esm2015/core/criptografia/criptografia.service.js +0 -13
- package/esm2015/core/dialog/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
- package/esm2015/core/dialog/dialog-iframe/dialog-iframe.component.js +0 -59
- package/esm2015/core/dialog/dialog.service.js +0 -56
- package/esm2015/core/form/model/masked-model.directive.js +0 -149
- package/esm2015/core/form/validator/valida-modulo11.service.js +0 -92
- package/esm2015/core/imagem/imagem.directive.js +0 -80
- package/esm2015/core/loader/loader.component.js +0 -112
- package/esm2015/core/loader/loader.service.js +0 -70
- package/esm2015/core/mensageria/mensageria.service.js +0 -49
- package/esm2015/core/mobile/mobile.service.js +0 -46
- package/esm2015/core/pipe/nome-resumido.pipe.js +0 -16
- package/esm2015/crud/abstract-consulta-component.js +0 -60
- package/esm2015/crud/abstract-consulta-paginada-component.js +0 -48
- package/esm2015/crud/abstract-edicao-component.js +0 -29
- package/esm2015/crud/abstract-edicao-modal-component.js +0 -24
- package/esm2015/crud/crud.module.js +0 -14
- package/esm2015/date/date.module.js +0 -19
- package/esm2015/date/validator/data-validator.directive.js +0 -96
- package/esm2015/date/validator/futuro.directive.js +0 -26
- package/esm2015/form/form.component.js +0 -103
- package/esm2015/form/form.module.js +0 -25
- package/esm2015/form/mensagens-erro/mensagens-erro.component.js +0 -31
- package/esm2015/form/single-click.directive.js +0 -35
- package/esm2015/input/abstract-mat-form-field-control.js +0 -110
- package/esm2015/input/input-datetime/input-datetime.component.js +0 -114
- package/esm2015/input/input-fileupload/input-fileupload.component.js +0 -324
- package/esm2015/input/input-fileupload/input-fileupload.directive.js +0 -34
- package/esm2015/input/input-fileupload/input-fileupload.module.js +0 -34
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
- package/esm2015/input/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
- package/esm2015/input/option-checkbox/all-option-checkbox.component.js +0 -36
- package/esm2015/input/option-checkbox/node-pool.js +0 -93
- package/esm2015/input/option-checkbox/option-checkbox-group.component.js +0 -71
- package/esm2015/input/option-checkbox/option-checkbox.component.js +0 -59
- package/esm2015/input/option-checkbox/option-checkbox.module.js +0 -23
- package/esm2015/input/option-checkbox/option-checkbox.service.js +0 -52
- package/esm2015/input/option-checkbox/option-node.js +0 -24
- package/esm2015/input/select-chips/select-chips.component.js +0 -177
- package/esm2015/input/select-chips/select-chips.module.js +0 -25
- package/esm2015/input/select-item/select-item.component.js +0 -20
- package/esm2015/input/select-item/select-item.module.js +0 -15
- package/esm2015/input/select-many-checkbox/select-many-checkbox.component.js +0 -150
- package/esm2015/input/select-many-checkbox/select-many-checkbox.module.js +0 -21
- package/esm2015/input/select-radio/select-radio.component.js +0 -124
- package/esm2015/input/select-radio/select-radio.module.js +0 -21
- package/esm2015/misc/cnpj/cnpj-model.directive.js +0 -13
- package/esm2015/misc/cnpj/cnpj.directive.js +0 -31
- package/esm2015/misc/cnpj/cnpj.module.js +0 -19
- package/esm2015/misc/cnpj/cnpjs.pipe.js +0 -15
- package/esm2015/misc/cpf/cpf-model.directive.js +0 -13
- package/esm2015/misc/cpf/cpf.directive.js +0 -31
- package/esm2015/misc/cpf/cpf.module.js +0 -19
- package/esm2015/misc/cpf/cpf.pipe.js +0 -15
- package/esm2015/misc/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.directive.js +0 -32
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.module.js +0 -19
- package/esm2015/misc/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
- package/esm2015/misc/info/info.module.js +0 -17
- package/esm2015/misc/monetario/monetario-mask.js +0 -34
- package/esm2015/misc/monetario/monetario-model.directive.js +0 -124
- package/esm2015/misc/monetario/monetario.module.js +0 -16
- package/esm2015/misc/monetario/monetario.pipe.js +0 -13
- package/esm2015/misc/porcentagem/porcentagem-mask.js +0 -34
- package/esm2015/misc/porcentagem/porcentagem-model.directive.js +0 -100
- package/esm2015/misc/porcentagem/porcentagem.module.js +0 -16
- package/esm2015/misc/porcentagem/porcentagem.pipe.js +0 -13
- package/esm2015/misc/telefone/telefone-model.directive.js +0 -25
- package/esm2015/misc/telefone/telefone.module.js +0 -18
- package/esm2015/misc/telefone/telefone.pipe.js +0 -33
- package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
- package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
- package/esm2015/scroll/scroll-container/scroll-container.component.js +0 -69
- package/esm2015/scroll/scroll.module.js +0 -17
- package/esm2015/table/column/column-cell.directive.js +0 -15
- package/esm2015/table/column/column-footer.directive.js +0 -15
- package/esm2015/table/column/column-header.directive.js +0 -15
- package/esm2015/table/column/column.directive.js +0 -28
- package/esm2015/table/infinite-table/infinite-table.component.js +0 -91
- package/esm2015/table/paginated-table/paginated-table.component.js +0 -43
- package/esm2015/table/paginator-i18n.js +0 -23
- package/esm2015/table/table/table.component.js +0 -119
- package/esm2015/table/table.module.js +0 -74
- package/esm2015/table/td/td.component.js +0 -19
- package/esm2015/table/th/th.component.js +0 -19
- package/esm2015/util/string.util.js +0 -12
- /package/{core/arquivo → arquivo/src}/arquivo-manager.service.d.ts +0 -0
- /package/arquivo/{arquivo.module.d.ts → src/arquivo.module.d.ts} +0 -0
- /package/core/{criptografia → src/criptografia}/criptografia.service.d.ts +0 -0
- /package/core/{mobile → src/mobile}/mobile.service.d.ts +0 -0
- /package/core/{form → src}/validator/valida-modulo11.service.d.ts +0 -0
- /package/date/{date.module.d.ts → src/date.module.d.ts} +0 -0
- /package/date/{validator → src/validator}/data-validator.directive.d.ts +0 -0
- /package/date/{validator → src/validator}/futuro.directive.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog-confirmacao/dialog-confirmacao.component.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog-iframe/dialog-iframe.component.d.ts +0 -0
- /package/{core/dialog → dialog/src}/dialog.service.d.ts +0 -0
- /package/form/{form.component.d.ts → src/form.component.d.ts} +0 -0
- /package/form/{form.module.d.ts → src/form.module.d.ts} +0 -0
- /package/form/{mensagens-erro → src/mensagens-erro}/mensagens-erro.component.d.ts +0 -0
- /package/form/{single-click.directive.d.ts → src/single-click.directive.d.ts} +0 -0
- /package/input/{abstract-mat-form-field-control.d.ts → src/abstract-mat-form-field-control.d.ts} +0 -0
- /package/input/{input-datetime → src/input-datetime}/input-datetime.component.d.ts +0 -0
- /package/input/{input-datetime → src/input-datetime}/input-datetime.module.d.ts +0 -0
- /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.directive.d.ts +0 -0
- /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.module.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional-validator.directive.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.component.d.ts +0 -0
- /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.module.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/all-option-checkbox.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/node-pool.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox-group.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.component.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.module.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.service.d.ts +0 -0
- /package/input/{option-checkbox → src/option-checkbox}/option-node.d.ts +0 -0
- /package/input/{select-chips → src/select-chips}/select-chips.component.d.ts +0 -0
- /package/input/{select-chips → src/select-chips}/select-chips.module.d.ts +0 -0
- /package/input/{select-item → src/select-item}/select-item.component.d.ts +0 -0
- /package/input/{select-item → src/select-item}/select-item.module.d.ts +0 -0
- /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.component.d.ts +0 -0
- /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.module.d.ts +0 -0
- /package/input/{select-radio → src/select-radio}/select-radio.component.d.ts +0 -0
- /package/input/{select-radio → src/select-radio}/select-radio.module.d.ts +0 -0
- /package/{core/loader → loader/src}/loader.service.d.ts +0 -0
- /package/misc/{cnpj → src/cnpj}/cnpj.module.d.ts +0 -0
- /package/misc/{cnpj → src/cnpj}/cnpjs.pipe.d.ts +0 -0
- /package/misc/{cpf → src/cpf}/cpf.module.d.ts +0 -0
- /package/misc/{cpf → src/cpf}/cpf.pipe.d.ts +0 -0
- /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.module.d.ts +0 -0
- /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.pipe.d.ts +0 -0
- /package/misc/{info → src/info}/info.component.d.ts +0 -0
- /package/misc/{info → src/info}/info.module.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario-mask.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario.module.d.ts +0 -0
- /package/misc/{monetario → src/monetario}/monetario.pipe.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem-mask.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem.module.d.ts +0 -0
- /package/misc/{porcentagem → src/porcentagem}/porcentagem.pipe.d.ts +0 -0
- /package/misc/{telefone → src/telefone}/telefone.module.d.ts +0 -0
- /package/misc/{telefone → src/telefone}/telefone.pipe.d.ts +0 -0
- /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.directive.d.ts +0 -0
- /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.module.d.ts +0 -0
- /package/{core/form/model → model/src}/masked-model.directive.d.ts +0 -0
- /package/{core/pipe → pipe/src}/nome-resumido.pipe.d.ts +0 -0
- /package/scroll/{scroll-container → src/scroll-container}/scroll-container.component.d.ts +0 -0
- /package/scroll/{scroll.module.d.ts → src/scroll.module.d.ts} +0 -0
- /package/table/{column → src/column}/column-cell.directive.d.ts +0 -0
- /package/table/{column → src/column}/column-footer.directive.d.ts +0 -0
- /package/table/{column → src/column}/column-header.directive.d.ts +0 -0
- /package/table/{column → src/column}/column.directive.d.ts +0 -0
- /package/table/{paginator → src/paginator}/paginator.component.d.ts +0 -0
- /package/table/{paginator-i18n.d.ts → src/paginator-i18n.d.ts} +0 -0
- /package/table/{table.module.d.ts → src/table.module.d.ts} +0 -0
- /package/table/{td → src/td}/td.component.d.ts +0 -0
- /package/table/{th → src/th}/th.component.d.ts +0 -0
- /package/util/{string.util.d.ts → src/string.util.d.ts} +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@main-class/componentes/pipe', ['exports', '@angular/core', '@angular/common'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['main-class'] = global['main-class'] || {}, global['main-class'].componentes = global['main-class'].componentes || {}, global['main-class'].componentes.pipe = {}), global.ng.core, global.ng.common));
|
|
5
|
+
}(this, (function (exports, core, common) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var NomeResumidoPipe = /** @class */ (function () {
|
|
8
|
+
function NomeResumidoPipe() {
|
|
9
|
+
}
|
|
10
|
+
NomeResumidoPipe.prototype.transform = function (value) {
|
|
11
|
+
var args = [];
|
|
12
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
13
|
+
args[_i - 1] = arguments[_i];
|
|
14
|
+
}
|
|
15
|
+
if (value && value.trim().indexOf(' ') >= 0) {
|
|
16
|
+
var parts = value.trim().split(' ');
|
|
17
|
+
return parts[0] + ' ' + parts[parts.length - 1];
|
|
18
|
+
}
|
|
19
|
+
return value;
|
|
20
|
+
};
|
|
21
|
+
return NomeResumidoPipe;
|
|
22
|
+
}());
|
|
23
|
+
NomeResumidoPipe.decorators = [
|
|
24
|
+
{ type: core.Pipe, args: [{
|
|
25
|
+
name: 'nomeResumido'
|
|
26
|
+
},] }
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
var PipeModule = /** @class */ (function () {
|
|
30
|
+
function PipeModule() {
|
|
31
|
+
}
|
|
32
|
+
return PipeModule;
|
|
33
|
+
}());
|
|
34
|
+
PipeModule.decorators = [
|
|
35
|
+
{ type: core.NgModule, args: [{
|
|
36
|
+
declarations: [
|
|
37
|
+
NomeResumidoPipe
|
|
38
|
+
],
|
|
39
|
+
imports: [
|
|
40
|
+
common.CommonModule,
|
|
41
|
+
]
|
|
42
|
+
},] }
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Generated bundle index. Do not edit.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
exports.NomeResumidoPipe = NomeResumidoPipe;
|
|
50
|
+
exports.PipeModule = PipeModule;
|
|
51
|
+
|
|
52
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
53
|
+
|
|
54
|
+
})));
|
|
55
|
+
//# sourceMappingURL=main-class-componentes-pipe.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-class-componentes-pipe.umd.js","sources":["../../../../projects/main-class/componentes/pipe/src/nome-resumido.pipe.ts","../../../../projects/main-class/componentes/pipe/src/pipe.module.ts","../../../../projects/main-class/componentes/pipe/main-class-componentes-pipe.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n name: 'nomeResumido'\n})\nexport class NomeResumidoPipe implements PipeTransform {\n transform(value: any, ...args: any[]): any {\n\n if (value && value.trim().indexOf(' ') >= 0) {\n const parts = value.trim().split(' ');\n return parts[0] + ' ' + parts[parts.length - 1];\n }\n\n return value;\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {NomeResumidoPipe} from './nome-resumido.pipe';\n\n\n@NgModule({\n declarations: [\n NomeResumidoPipe\n ],\n imports: [\n CommonModule,\n ]\n})\nexport class PipeModule {\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Pipe","NgModule","CommonModule"],"mappings":";;;;;;;QAKA;;QACE,oCAAS,GAAT,UAAU,KAAU;YAAE,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,6BAAc;;YAElC,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC3C,IAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACtC,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;aACjD;YAED,OAAO,KAAK,CAAC;SACd;;;;gBAZFA,SAAI,SAAC;oBACJ,IAAI,EAAE,cAAc;iBACrB;;;;QCSD;;;;;gBARCC,aAAQ,SAAC;oBACR,YAAY,EAAE;wBACZ,gBAAgB;qBACjB;oBACD,OAAO,EAAE;wBACPC,mBAAY;qBACb;iBACF;;;ICZD;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@main-class/componentes/pipe",["exports","@angular/core","@angular/common"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self)["main-class"]=e["main-class"]||{},e["main-class"].componentes=e["main-class"].componentes||{},e["main-class"].componentes.pipe={}),e.ng.core,e.ng.common)}(this,(function(e,n,o){"use strict";var r=function(){function e(){}return e.prototype.transform=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(e&&e.trim().indexOf(" ")>=0){var r=e.trim().split(" ");return r[0]+" "+r[r.length-1]}return e},e}();r.decorators=[{type:n.Pipe,args:[{name:"nomeResumido"}]}];var t=function(){};t.decorators=[{type:n.NgModule,args:[{declarations:[r],imports:[o.CommonModule]}]}],e.NomeResumidoPipe=r,e.PipeModule=t,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=main-class-componentes-pipe.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../projects/main-class/componentes/pipe/src/nome-resumido.pipe.ts","../../../../projects/main-class/componentes/pipe/src/pipe.module.ts"],"names":["NomeResumidoPipe","prototype","transform","value","args","_i","arguments","length","trim","indexOf","parts","split","Pipe","name","NgModule","declarations","imports","CommonModule"],"mappings":"wgBAKA,SAAAA,YACEA,EAAAC,UAAAC,UAAA,SAAUC,OAAY,IAAAC,EAAA,GAAAC,EAAA,EAAAA,EAAAC,UAAAC,OAAAF,IAAAD,EAAAC,EAAA,GAAAC,UAAAD,GAEpB,GAAIF,GAASA,EAAMK,OAAOC,QAAQ,MAAQ,EAAG,CAC3C,IAAMC,EAAQP,EAAMK,OAAOG,MAAM,KACjC,OAAOD,EAAM,GAAK,IAAMA,EAAMA,EAAMH,OAAS,GAG/C,OAAOJ,4BAXVS,EAAAA,KAAIR,KAAA,CAAC,CACJS,KAAM,yBCUR,iCARCC,EAAAA,SAAQV,KAAA,CAAC,CACRW,aAAc,CACZf,GAEFgB,QAAS,CACPC,EAAAA","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n name: 'nomeResumido'\n})\nexport class NomeResumidoPipe implements PipeTransform {\n transform(value: any, ...args: any[]): any {\n\n if (value && value.trim().indexOf(' ') >= 0) {\n const parts = value.trim().split(' ');\n return parts[0] + ' ' + parts[parts.length - 1];\n }\n\n return value;\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {NomeResumidoPipe} from './nome-resumido.pipe';\n\n\n@NgModule({\n declarations: [\n NomeResumidoPipe\n ],\n imports: [\n CommonModule,\n ]\n})\nexport class PipeModule {\n\n}\n"]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('lodash-es')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@main-class/componentes/scroll', ['exports', '@angular/core', '@angular/common', 'lodash-es'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['main-class'] = global['main-class'] || {}, global['main-class'].componentes = global['main-class'].componentes || {}, global['main-class'].componentes.scroll = {}), global.ng.core, global.ng.common, global.lodashEs));
|
|
5
|
+
}(this, (function (exports, core, common, lodashEs) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var ScrollDirection;
|
|
8
|
+
(function (ScrollDirection) {
|
|
9
|
+
ScrollDirection["UP"] = "up";
|
|
10
|
+
ScrollDirection["DOWN"] = "down";
|
|
11
|
+
})(ScrollDirection || (ScrollDirection = {}));
|
|
12
|
+
var ScrollListener;
|
|
13
|
+
(function (ScrollListener) {
|
|
14
|
+
ScrollListener["HOST"] = "scroll";
|
|
15
|
+
ScrollListener["WINDOW"] = "window:scroll";
|
|
16
|
+
})(ScrollListener || (ScrollListener = {}));
|
|
17
|
+
var ScrollContainerComponent = /** @class */ (function () {
|
|
18
|
+
function ScrollContainerComponent(elRef) {
|
|
19
|
+
var _this = this;
|
|
20
|
+
this.elRef = elRef;
|
|
21
|
+
this.scrollTop = 0;
|
|
22
|
+
this.more = true;
|
|
23
|
+
this.scrollDelay = 500;
|
|
24
|
+
this.scrollOffset = 200;
|
|
25
|
+
this.scrolled = new core.EventEmitter();
|
|
26
|
+
this.getListener = function () { return _this.elRef.nativeElement.clientHeight === _this.elRef.nativeElement.scrollHeight
|
|
27
|
+
? ScrollListener.WINDOW
|
|
28
|
+
: ScrollListener.HOST; };
|
|
29
|
+
this.roundTo = function (from, to) {
|
|
30
|
+
if (to === void 0) { to = _this.scrollOffset; }
|
|
31
|
+
return Math.floor(from / to) * to;
|
|
32
|
+
};
|
|
33
|
+
this.getScrollDirection = function (st) { return _this.scrollTop <= st ? ScrollDirection.DOWN : ScrollDirection.UP; };
|
|
34
|
+
this.handleScroll = function () { return _this.getListener() === ScrollListener.HOST
|
|
35
|
+
? _this.scrolled.emit(_this.canScroll(_this.$element))
|
|
36
|
+
: _this.scrolled.emit(_this.canScroll(_this.$window)); };
|
|
37
|
+
this.$element = this.elRef.nativeElement;
|
|
38
|
+
this.$window = document.documentElement;
|
|
39
|
+
}
|
|
40
|
+
ScrollContainerComponent.prototype.ngOnInit = function () {
|
|
41
|
+
this.setThrottle();
|
|
42
|
+
};
|
|
43
|
+
ScrollContainerComponent.prototype.ngOnChanges = function (changes) {
|
|
44
|
+
if (changes.scrollDelay) {
|
|
45
|
+
this.setThrottle();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
ScrollContainerComponent.prototype.setThrottle = function () {
|
|
49
|
+
this.$scroll = this.$windowScroll = lodashEs.throttle(this.handleScroll, this.scrollDelay);
|
|
50
|
+
};
|
|
51
|
+
ScrollContainerComponent.prototype.canScroll = function (e) {
|
|
52
|
+
var scrolled = this.more
|
|
53
|
+
&& this.getScrollDirection(e.scrollTop) === ScrollDirection.DOWN
|
|
54
|
+
&& this.roundTo(e.clientHeight) === this.roundTo(e.scrollHeight - e.scrollTop);
|
|
55
|
+
this.scrollTop = e.scrollTop;
|
|
56
|
+
return scrolled;
|
|
57
|
+
};
|
|
58
|
+
return ScrollContainerComponent;
|
|
59
|
+
}());
|
|
60
|
+
ScrollContainerComponent.decorators = [
|
|
61
|
+
{ type: core.Component, args: [{
|
|
62
|
+
selector: 'mcl-scroll-container',
|
|
63
|
+
template: "<ng-content></ng-content>\n",
|
|
64
|
+
styles: [":host{overflow-y:auto}"]
|
|
65
|
+
},] }
|
|
66
|
+
];
|
|
67
|
+
ScrollContainerComponent.ctorParameters = function () { return [
|
|
68
|
+
{ type: core.ElementRef }
|
|
69
|
+
]; };
|
|
70
|
+
ScrollContainerComponent.propDecorators = {
|
|
71
|
+
more: [{ type: core.Input }],
|
|
72
|
+
scrollDelay: [{ type: core.Input }],
|
|
73
|
+
scrollOffset: [{ type: core.Input }],
|
|
74
|
+
scrolled: [{ type: core.Output }],
|
|
75
|
+
$scroll: [{ type: core.HostListener, args: ['scroll',] }],
|
|
76
|
+
$windowScroll: [{ type: core.HostListener, args: ['window:scroll',] }]
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
var ScrollModule = /** @class */ (function () {
|
|
80
|
+
function ScrollModule() {
|
|
81
|
+
}
|
|
82
|
+
return ScrollModule;
|
|
83
|
+
}());
|
|
84
|
+
ScrollModule.decorators = [
|
|
85
|
+
{ type: core.NgModule, args: [{
|
|
86
|
+
declarations: [ScrollContainerComponent],
|
|
87
|
+
exports: [
|
|
88
|
+
ScrollContainerComponent
|
|
89
|
+
],
|
|
90
|
+
imports: [
|
|
91
|
+
common.CommonModule
|
|
92
|
+
]
|
|
93
|
+
},] }
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Generated bundle index. Do not edit.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
exports.ScrollContainerComponent = ScrollContainerComponent;
|
|
101
|
+
exports.ScrollModule = ScrollModule;
|
|
102
|
+
|
|
103
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
104
|
+
|
|
105
|
+
})));
|
|
106
|
+
//# sourceMappingURL=main-class-componentes-scroll.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-class-componentes-scroll.umd.js","sources":["../../../../projects/main-class/componentes/scroll/src/scroll-container/scroll-container.component.ts","../../../../projects/main-class/componentes/scroll/src/scroll.module.ts","../../../../projects/main-class/componentes/scroll/main-class-componentes-scroll.ts"],"sourcesContent":["import {Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnInit, Output} from '@angular/core';\nimport {throttle as _throttle} from 'lodash-es';\n\nenum ScrollDirection {\n UP = 'up',\n DOWN = 'down'\n}\n\nenum ScrollListener {\n HOST = 'scroll',\n WINDOW = 'window:scroll'\n}\n\n@Component({\n selector: 'mcl-scroll-container',\n templateUrl: './scroll-container.component.html',\n styleUrls: ['./scroll-container.component.scss']\n})\nexport class ScrollContainerComponent implements OnInit, OnChanges {\n\n private $element: Element;\n private $window: Element;\n public scrollTop = 0;\n @Input() more = true;\n @Input() scrollDelay = 500;\n @Input() scrollOffset = 200;\n @Output() scrolled: EventEmitter<boolean> = new EventEmitter<boolean>();\n @HostListener('scroll') $scroll: any;\n @HostListener('window:scroll') $windowScroll: any;\n\n constructor(private elRef: ElementRef) {\n this.$element = this.elRef.nativeElement;\n this.$window = document.documentElement as Element;\n }\n\n ngOnInit() {\n this.setThrottle();\n }\n\n ngOnChanges(changes) {\n if (changes.scrollDelay) {\n this.setThrottle();\n }\n }\n\n setThrottle() {\n this.$scroll = this.$windowScroll = _throttle(this.handleScroll, this.scrollDelay);\n }\n\n getListener = () => this.elRef.nativeElement.clientHeight === this.elRef.nativeElement.scrollHeight\n ? ScrollListener.WINDOW\n : ScrollListener.HOST\n\n roundTo = (from: number, to: number = this.scrollOffset) => Math.floor(from / to) * to;\n getScrollDirection = (st: number) => this.scrollTop <= st ? ScrollDirection.DOWN : ScrollDirection.UP;\n\n canScroll(e: Element): boolean {\n const scrolled = this.more\n && this.getScrollDirection(e.scrollTop) === ScrollDirection.DOWN\n && this.roundTo(e.clientHeight) === this.roundTo(e.scrollHeight - e.scrollTop);\n this.scrollTop = e.scrollTop;\n return scrolled;\n }\n\n handleScroll = () => this.getListener() === ScrollListener.HOST\n ? this.scrolled.emit(this.canScroll(this.$element))\n : this.scrolled.emit(this.canScroll(this.$window))\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\n\n\n\n@NgModule({\n declarations: [ScrollContainerComponent],\n exports: [\n ScrollContainerComponent\n ],\n imports: [\n CommonModule\n ]\n})\nexport class ScrollModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["EventEmitter","_throttle","Component","ElementRef","Input","Output","HostListener","NgModule","CommonModule"],"mappings":";;;;;;IAGA,IAAK,eAGJ;IAHD,WAAK,eAAe;QAClB,4BAAS,CAAA;QACT,gCAAa,CAAA;IACf,CAAC,EAHI,eAAe,KAAf,eAAe,QAGnB;IAED,IAAK,cAGJ;IAHD,WAAK,cAAc;QACjB,iCAAe,CAAA;QACf,0CAAwB,CAAA;IAC1B,CAAC,EAHI,cAAc,KAAd,cAAc,QAGlB;;QAmBC,kCAAoB,KAAiB;YAArC,iBAGC;YAHmB,UAAK,GAAL,KAAK,CAAY;YAR9B,cAAS,GAAG,CAAC,CAAC;YACZ,SAAI,GAAG,IAAI,CAAC;YACZ,gBAAW,GAAG,GAAG,CAAC;YAClB,iBAAY,GAAG,GAAG,CAAC;YAClB,aAAQ,GAA0B,IAAIA,iBAAY,EAAW,CAAC;YAuBxE,gBAAW,GAAG,cAAM,OAAA,KAAI,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,KAAK,KAAI,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY;kBAC/F,cAAc,CAAC,MAAM;kBACrB,cAAc,CAAC,IAAI,GAAA,CAAA;YAEvB,YAAO,GAAG,UAAC,IAAY,EAAE,EAA8B;gBAA9B,mBAAA,EAAA,KAAa,KAAI,CAAC,YAAY;gBAAK,OAAA,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE;aAAA,CAAC;YACvF,uBAAkB,GAAG,UAAC,EAAU,IAAK,OAAA,KAAI,CAAC,SAAS,IAAI,EAAE,GAAG,eAAe,CAAC,IAAI,GAAG,eAAe,CAAC,EAAE,GAAA,CAAC;YAUtG,iBAAY,GAAG,cAAM,OAAA,KAAI,CAAC,WAAW,EAAE,KAAK,cAAc,CAAC,IAAI;kBAC3D,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAI,CAAC,SAAS,CAAC,KAAI,CAAC,QAAQ,CAAC,CAAC;kBACjD,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAI,CAAC,SAAS,CAAC,KAAI,CAAC,OAAO,CAAC,CAAC,GAAA,CAAA;YAnClD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;YACzC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,eAA0B,CAAC;SACpD;QAED,2CAAQ,GAAR;YACE,IAAI,CAAC,WAAW,EAAE,CAAC;SACpB;QAED,8CAAW,GAAX,UAAY,OAAO;YACjB,IAAI,OAAO,CAAC,WAAW,EAAE;gBACvB,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB;SACF;QAED,8CAAW,GAAX;YACE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,GAAGC,iBAAS,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;SACpF;QASD,4CAAS,GAAT,UAAU,CAAU;YAClB,IAAM,QAAQ,GAAG,IAAI,CAAC,IAAI;mBACrB,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,eAAe,CAAC,IAAI;mBAC7D,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC;YACjF,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC;YAC7B,OAAO,QAAQ,CAAC;SACjB;;;;gBAjDFC,cAAS,SAAC;oBACT,QAAQ,EAAE,sBAAsB;oBAChC,uCAAgD;;iBAEjD;;;gBAjBkBC,eAAU;;;uBAuB1BC,UAAK;8BACLA,UAAK;+BACLA,UAAK;2BACLC,WAAM;0BACNC,iBAAY,SAAC,QAAQ;gCACrBA,iBAAY,SAAC,eAAe;;;;QCb/B;;;;;gBATCC,aAAQ,SAAC;oBACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE;wBACL,wBAAwB;qBAC3B;oBACD,OAAO,EAAE;wBACLC,mBAAY;qBACf;iBACJ;;;ICdD;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("lodash-es")):"function"==typeof define&&define.amd?define("@main-class/componentes/scroll",["exports","@angular/core","@angular/common","lodash-es"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["main-class"]=e["main-class"]||{},e["main-class"].componentes=e["main-class"].componentes||{},e["main-class"].componentes.scroll={}),e.ng.core,e.ng.common,e.lodashEs)}(this,(function(e,t,o,n){"use strict";var l,r;!function(e){e.UP="up",e.DOWN="down"}(l||(l={})),function(e){e.HOST="scroll",e.WINDOW="window:scroll"}(r||(r={}));var s=function(){function e(e){var o=this;this.elRef=e,this.scrollTop=0,this.more=!0,this.scrollDelay=500,this.scrollOffset=200,this.scrolled=new t.EventEmitter,this.getListener=function(){return o.elRef.nativeElement.clientHeight===o.elRef.nativeElement.scrollHeight?r.WINDOW:r.HOST},this.roundTo=function(e,t){return void 0===t&&(t=o.scrollOffset),Math.floor(e/t)*t},this.getScrollDirection=function(e){return o.scrollTop<=e?l.DOWN:l.UP},this.handleScroll=function(){return o.getListener()===r.HOST?o.scrolled.emit(o.canScroll(o.$element)):o.scrolled.emit(o.canScroll(o.$window))},this.$element=this.elRef.nativeElement,this.$window=document.documentElement}return e.prototype.ngOnInit=function(){this.setThrottle()},e.prototype.ngOnChanges=function(e){e.scrollDelay&&this.setThrottle()},e.prototype.setThrottle=function(){this.$scroll=this.$windowScroll=n.throttle(this.handleScroll,this.scrollDelay)},e.prototype.canScroll=function(e){var t=this.more&&this.getScrollDirection(e.scrollTop)===l.DOWN&&this.roundTo(e.clientHeight)===this.roundTo(e.scrollHeight-e.scrollTop);return this.scrollTop=e.scrollTop,t},e}();s.decorators=[{type:t.Component,args:[{selector:"mcl-scroll-container",template:"<ng-content></ng-content>\n",styles:[":host{overflow-y:auto}"]}]}],s.ctorParameters=function(){return[{type:t.ElementRef}]},s.propDecorators={more:[{type:t.Input}],scrollDelay:[{type:t.Input}],scrollOffset:[{type:t.Input}],scrolled:[{type:t.Output}],$scroll:[{type:t.HostListener,args:["scroll"]}],$windowScroll:[{type:t.HostListener,args:["window:scroll"]}]};var c=function(){};c.decorators=[{type:t.NgModule,args:[{declarations:[s],exports:[s],imports:[o.CommonModule]}]}],e.ScrollContainerComponent=s,e.ScrollModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=main-class-componentes-scroll.umd.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../projects/main-class/componentes/scroll/src/scroll-container/scroll-container.component.ts","../../../../projects/main-class/componentes/scroll/src/scroll.module.ts"],"names":["ScrollDirection","ScrollListener","ScrollContainerComponent","elRef","_this","this","scrollTop","more","scrollDelay","scrollOffset","scrolled","EventEmitter","getListener","nativeElement","clientHeight","scrollHeight","WINDOW","HOST","roundTo","from","to","Math","floor","getScrollDirection","st","DOWN","UP","handleScroll","emit","canScroll","$element","$window","document","documentElement","prototype","ngOnInit","setThrottle","ngOnChanges","changes","$scroll","$windowScroll","_throttle","e","Component","args","selector","template","ElementRef","Input","Output","HostListener","NgModule","declarations","exports","imports","CommonModule"],"mappings":"yiBAGA,IAAKA,EAKAC,GALL,SAAKD,GACHA,EAAA,GAAA,KACAA,EAAA,KAAA,OAFF,CAAKA,IAAAA,EAAe,KAKpB,SAAKC,GACHA,EAAA,KAAA,SACAA,EAAA,OAAA,gBAFF,CAAKA,IAAAA,EAAc,sBAsBjB,SAAAC,EAAoBC,GAApB,IAAAC,EAAAC,KAAoBA,KAAAF,MAAAA,EARbE,KAAAC,UAAY,EACVD,KAAAE,MAAO,EACPF,KAAAG,YAAc,IACdH,KAAAI,aAAe,IACdJ,KAAAK,SAAkC,IAAIC,EAAAA,aAuBhDN,KAAAO,YAAc,WAAM,OAAAR,EAAKD,MAAMU,cAAcC,eAAiBV,EAAKD,MAAMU,cAAcE,aACnFd,EAAee,OACff,EAAegB,MAEnBZ,KAAAa,QAAU,SAACC,EAAcC,GAAmC,YAAnC,IAAAA,IAAAA,EAAahB,EAAKK,cAAiBY,KAAKC,MAAMH,EAAOC,GAAMA,GACpFf,KAAAkB,mBAAqB,SAACC,GAAe,OAAApB,EAAKE,WAAakB,EAAKxB,EAAgByB,KAAOzB,EAAgB0B,IAUnGrB,KAAAsB,aAAe,WAAM,OAAAvB,EAAKQ,gBAAkBX,EAAegB,KACvDb,EAAKM,SAASkB,KAAKxB,EAAKyB,UAAUzB,EAAK0B,WACvC1B,EAAKM,SAASkB,KAAKxB,EAAKyB,UAAUzB,EAAK2B,WAnCzC1B,KAAKyB,SAAWzB,KAAKF,MAAMU,cAC3BR,KAAK0B,QAAUC,SAASC,uBAG1B/B,EAAAgC,UAAAC,SAAA,WACE9B,KAAK+B,eAGPlC,EAAAgC,UAAAG,YAAA,SAAYC,GACNA,EAAQ9B,aACVH,KAAK+B,eAITlC,EAAAgC,UAAAE,YAAA,WACE/B,KAAKkC,QAAUlC,KAAKmC,cAAgBC,EAAAA,SAAUpC,KAAKsB,aAActB,KAAKG,cAUxEN,EAAAgC,UAAAL,UAAA,SAAUa,GACR,IAAMhC,EAAWL,KAAKE,MACjBF,KAAKkB,mBAAmBmB,EAAEpC,aAAeN,EAAgByB,MACzDpB,KAAKa,QAAQwB,EAAE5B,gBAAkBT,KAAKa,QAAQwB,EAAE3B,aAAe2B,EAAEpC,WAEtE,OADAD,KAAKC,UAAYoC,EAAEpC,UACZI,4BAhDViC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,uBACVC,SAAA,6GAfiBC,EAAAA,4CAuBhBC,EAAAA,2BACAA,EAAAA,4BACAA,EAAAA,wBACAC,EAAAA,wBACAC,EAAAA,aAAYN,KAAA,CAAC,iCACbM,EAAAA,aAAYN,KAAA,CAAC,0BCbhB,iCATCO,EAAAA,SAAQP,KAAA,CAAC,CACNQ,aAAc,CAAClD,GACfmD,QAAS,CACLnD,GAEJoD,QAAS,CACLC,EAAAA","sourcesContent":["import {Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnInit, Output} from '@angular/core';\nimport {throttle as _throttle} from 'lodash-es';\n\nenum ScrollDirection {\n UP = 'up',\n DOWN = 'down'\n}\n\nenum ScrollListener {\n HOST = 'scroll',\n WINDOW = 'window:scroll'\n}\n\n@Component({\n selector: 'mcl-scroll-container',\n templateUrl: './scroll-container.component.html',\n styleUrls: ['./scroll-container.component.scss']\n})\nexport class ScrollContainerComponent implements OnInit, OnChanges {\n\n private $element: Element;\n private $window: Element;\n public scrollTop = 0;\n @Input() more = true;\n @Input() scrollDelay = 500;\n @Input() scrollOffset = 200;\n @Output() scrolled: EventEmitter<boolean> = new EventEmitter<boolean>();\n @HostListener('scroll') $scroll: any;\n @HostListener('window:scroll') $windowScroll: any;\n\n constructor(private elRef: ElementRef) {\n this.$element = this.elRef.nativeElement;\n this.$window = document.documentElement as Element;\n }\n\n ngOnInit() {\n this.setThrottle();\n }\n\n ngOnChanges(changes) {\n if (changes.scrollDelay) {\n this.setThrottle();\n }\n }\n\n setThrottle() {\n this.$scroll = this.$windowScroll = _throttle(this.handleScroll, this.scrollDelay);\n }\n\n getListener = () => this.elRef.nativeElement.clientHeight === this.elRef.nativeElement.scrollHeight\n ? ScrollListener.WINDOW\n : ScrollListener.HOST\n\n roundTo = (from: number, to: number = this.scrollOffset) => Math.floor(from / to) * to;\n getScrollDirection = (st: number) => this.scrollTop <= st ? ScrollDirection.DOWN : ScrollDirection.UP;\n\n canScroll(e: Element): boolean {\n const scrolled = this.more\n && this.getScrollDirection(e.scrollTop) === ScrollDirection.DOWN\n && this.roundTo(e.clientHeight) === this.roundTo(e.scrollHeight - e.scrollTop);\n this.scrollTop = e.scrollTop;\n return scrolled;\n }\n\n handleScroll = () => this.getListener() === ScrollListener.HOST\n ? this.scrolled.emit(this.canScroll(this.$element))\n : this.scrolled.emit(this.canScroll(this.$window))\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\n\n\n\n@NgModule({\n declarations: [ScrollContainerComponent],\n exports: [\n ScrollContainerComponent\n ],\n imports: [\n CommonModule\n ]\n})\nexport class ScrollModule { }\n"]}
|