@main-class/componentes 1.19.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arquivo/src/arquivo.module.d.ts +15 -0
- package/arquivo/src/download-arquivo.directive.d.ts +4 -1
- package/arquivo/src/imagem.directive.d.ts +3 -0
- package/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +3 -0
- package/arquivo/src/preview-arquivo/preview-arquivo.component.d.ts +4 -1
- package/core/src/core.module.d.ts +5 -0
- package/core/src/criptografia/criptografia.service.d.ts +3 -0
- package/core/src/mensageria/mensageria.service.d.ts +3 -0
- package/core/src/mobile/mobile.service.d.ts +3 -0
- package/core/src/validator/valida-modulo11.service.d.ts +3 -0
- package/crud/src/abstract-consulta-component.d.ts +3 -0
- package/crud/src/abstract-consulta-paginada-component.d.ts +3 -0
- package/crud/src/abstract-edicao-component.d.ts +3 -0
- package/date/src/date.module.d.ts +7 -0
- package/date/src/validator/data-validator.directive.d.ts +3 -0
- package/date/src/validator/futuro.directive.d.ts +3 -0
- package/dialog/src/dialog-confirmacao/dialog-confirmacao.component.d.ts +3 -0
- package/dialog/src/dialog-iframe/dialog-iframe.component.d.ts +3 -0
- package/dialog/src/dialog.module.d.ts +12 -0
- package/dialog/src/dialog.service.d.ts +3 -0
- package/esm2020/arquivo/src/arquivo.module.mjs +47 -0
- package/esm2020/arquivo/src/download-arquivo.directive.mjs +46 -0
- package/esm2020/arquivo/src/imagem.directive.mjs +89 -0
- package/esm2020/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.mjs +65 -0
- package/esm2020/arquivo/src/preview-arquivo/preview-arquivo.component.mjs +139 -0
- package/esm2020/core/src/core.module.mjs +32 -0
- package/esm2020/core/src/criptografia/criptografia.service.mjs +16 -0
- package/esm2020/core/src/mensageria/mensageria.service.mjs +57 -0
- package/esm2020/core/src/mobile/mobile.service.mjs +43 -0
- package/esm2020/core/src/validator/valida-modulo11.service.mjs +95 -0
- package/esm2020/crud/src/abstract-consulta-component.mjs +55 -0
- package/esm2020/crud/src/abstract-consulta-paginada-component.mjs +45 -0
- package/esm2020/crud/src/abstract-edicao-component.mjs +30 -0
- package/esm2020/crud/src/abstract-edicao-modal-component.mjs +19 -0
- package/esm2020/date/src/date.module.mjs +25 -0
- package/esm2020/date/src/validator/data-validator.directive.mjs +105 -0
- package/esm2020/date/src/validator/futuro.directive.mjs +33 -0
- package/esm2020/dialog/src/dialog-confirmacao/dialog-confirmacao.component.mjs +44 -0
- package/esm2020/dialog/src/dialog-iframe/dialog-iframe.component.mjs +60 -0
- package/esm2020/dialog/src/dialog.module.mjs +53 -0
- package/esm2020/dialog/src/dialog.service.mjs +53 -0
- package/esm2020/form/src/form.component.mjs +106 -0
- package/esm2020/form/src/form.module.mjs +36 -0
- package/esm2020/form/src/mensagens-erro/mensagens-erro.component.mjs +33 -0
- package/esm2020/form/src/single-click.directive.mjs +35 -0
- package/esm2020/input/main-class-componentes-input.mjs +5 -0
- package/esm2020/input/src/abstract-mat-form-field-control.mjs +116 -0
- package/esm2020/input/src/input-datetime/input-datetime.component.mjs +130 -0
- package/esm2020/input/src/input-datetime/input-datetime.module.mjs +101 -0
- package/esm2020/input/src/input-fileupload/input-fileupload.component.mjs +355 -0
- package/esm2020/input/src/input-fileupload/input-fileupload.directive.mjs +37 -0
- package/esm2020/input/src/input-fileupload/input-fileupload.module.mjs +57 -0
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.mjs +29 -0
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.component.mjs +78 -0
- package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.module.mjs +33 -0
- package/esm2020/input/src/option-checkbox/all-option-checkbox.component.mjs +38 -0
- package/esm2020/input/src/option-checkbox/option-checkbox-group.component.mjs +80 -0
- package/esm2020/input/src/option-checkbox/option-checkbox.component.mjs +62 -0
- package/esm2020/input/src/option-checkbox/option-checkbox.module.mjs +39 -0
- package/esm2020/input/src/option-checkbox/option-checkbox.service.mjs +54 -0
- package/esm2020/input/src/select-chips/select-chips.component.mjs +202 -0
- package/esm2020/input/src/select-chips/select-chips.module.mjs +40 -0
- package/esm2020/input/src/select-item/select-item.component.mjs +19 -0
- package/esm2020/input/src/select-item/select-item.module.mjs +20 -0
- package/esm2020/input/src/select-many-checkbox/select-many-checkbox.component.mjs +170 -0
- package/esm2020/input/src/select-many-checkbox/select-many-checkbox.module.mjs +32 -0
- package/esm2020/input/src/select-radio/select-radio.component.mjs +143 -0
- package/esm2020/input/src/select-radio/select-radio.module.mjs +32 -0
- package/esm2020/loader/src/loader.component.mjs +125 -0
- package/esm2020/loader/src/loader.module.mjs +37 -0
- package/esm2020/loader/src/loader.service.mjs +72 -0
- package/esm2020/misc/src/cnpj/cnpj-model.directive.mjs +17 -0
- package/esm2020/misc/src/cnpj/cnpj.directive.mjs +36 -0
- package/esm2020/misc/src/cnpj/cnpj.module.mjs +26 -0
- package/esm2020/misc/src/cnpj/cnpjs.pipe.mjs +19 -0
- package/esm2020/misc/src/cpf/cpf-model.directive.mjs +17 -0
- package/esm2020/misc/src/cpf/cpf.directive.mjs +36 -0
- package/esm2020/misc/src/cpf/cpf.module.mjs +24 -0
- package/esm2020/misc/src/cpf/cpf.pipe.mjs +19 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj-model.directive.mjs +29 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.directive.mjs +37 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.module.mjs +24 -0
- package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.pipe.mjs +22 -0
- package/esm2020/misc/src/info/info.component.mjs +20 -0
- package/esm2020/misc/src/info/info.module.mjs +24 -0
- package/{esm2015/misc/src/monetario/monetario-mask.js → esm2020/misc/src/monetario/monetario-mask.mjs} +0 -2
- package/esm2020/misc/src/monetario/monetario-model.directive.mjs +133 -0
- package/esm2020/misc/src/monetario/monetario.module.mjs +21 -0
- package/esm2020/misc/src/monetario/monetario.pipe.mjs +17 -0
- package/{esm2015/misc/src/porcentagem/porcentagem-mask.js → esm2020/misc/src/porcentagem/porcentagem-mask.mjs} +0 -2
- package/esm2020/misc/src/porcentagem/porcentagem-model.directive.mjs +108 -0
- package/esm2020/misc/src/porcentagem/porcentagem.module.mjs +21 -0
- package/esm2020/misc/src/porcentagem/porcentagem.pipe.mjs +17 -0
- package/esm2020/misc/src/telefone/telefone-model.directive.mjs +29 -0
- package/esm2020/misc/src/telefone/telefone.module.mjs +25 -0
- package/esm2020/misc/src/telefone/telefone.pipe.mjs +37 -0
- package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.directive.mjs +25 -0
- package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.module.mjs +20 -0
- package/esm2020/model/src/masked-model.directive.mjs +155 -0
- package/esm2020/model/src/model.module.mjs +24 -0
- package/esm2020/pipe/src/nome-resumido.pipe.mjs +20 -0
- package/esm2020/pipe/src/pipe.module.mjs +24 -0
- package/esm2020/scroll/src/scroll-container/scroll-container.component.mjs +72 -0
- package/esm2020/scroll/src/scroll.module.mjs +22 -0
- package/{esm2015/table/main-class-componentes-table.js → esm2020/table/main-class-componentes-table.mjs} +1 -2
- package/esm2020/table/src/column/column-cell.directive.mjs +16 -0
- package/esm2020/table/src/column/column-footer.directive.mjs +16 -0
- package/esm2020/table/src/column/column-header.directive.mjs +16 -0
- package/esm2020/table/src/column/column.directive.mjs +37 -0
- package/esm2020/table/src/infinite-table/infinite-table.component.mjs +95 -0
- package/esm2020/table/src/paginated-table/paginated-table.component.mjs +52 -0
- package/esm2020/table/src/paginator/paginator.component.mjs +19 -0
- package/esm2020/table/src/table/table.component.mjs +127 -0
- package/esm2020/table/src/table.module.mjs +120 -0
- package/esm2020/table/src/td/td.component.mjs +18 -0
- package/esm2020/table/src/th/th.component.mjs +18 -0
- package/fesm2015/main-class-componentes-arquivo.mjs +389 -0
- package/fesm2015/main-class-componentes-arquivo.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-core.js → main-class-componentes-core.mjs} +43 -37
- package/fesm2015/main-class-componentes-core.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-crud.js → main-class-componentes-crud.mjs} +32 -22
- package/fesm2015/main-class-componentes-crud.mjs.map +1 -0
- package/fesm2015/main-class-componentes-date.mjs +162 -0
- package/fesm2015/main-class-componentes-date.mjs.map +1 -0
- package/fesm2015/main-class-componentes-dialog.mjs +206 -0
- package/fesm2015/main-class-componentes-dialog.mjs.map +1 -0
- package/fesm2015/main-class-componentes-form.mjs +209 -0
- package/fesm2015/main-class-componentes-form.mjs.map +1 -0
- package/fesm2015/main-class-componentes-input.mjs +1876 -0
- package/fesm2015/main-class-componentes-input.mjs.map +1 -0
- package/fesm2015/main-class-componentes-loader.mjs +236 -0
- package/fesm2015/main-class-componentes-loader.mjs.map +1 -0
- package/fesm2015/main-class-componentes-misc.mjs +787 -0
- package/fesm2015/main-class-componentes-misc.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-model.js → main-class-componentes-model.mjs} +46 -36
- package/fesm2015/main-class-componentes-model.mjs.map +1 -0
- package/fesm2015/main-class-componentes-pipe.mjs +48 -0
- package/fesm2015/main-class-componentes-pipe.mjs.map +1 -0
- package/fesm2015/main-class-componentes-scroll.mjs +98 -0
- package/fesm2015/main-class-componentes-scroll.mjs.map +1 -0
- package/fesm2015/main-class-componentes-table.mjs +518 -0
- package/fesm2015/main-class-componentes-table.mjs.map +1 -0
- package/fesm2015/{main-class-componentes-util.js → main-class-componentes-util.mjs} +1 -1
- package/fesm2015/main-class-componentes-util.mjs.map +1 -0
- package/fesm2015/{main-class-componentes.js → main-class-componentes.mjs} +1 -1
- package/fesm2015/main-class-componentes.mjs.map +1 -0
- package/fesm2020/main-class-componentes-arquivo.mjs +372 -0
- package/fesm2020/main-class-componentes-arquivo.mjs.map +1 -0
- package/fesm2020/main-class-componentes-core.mjs +238 -0
- package/fesm2020/main-class-componentes-core.mjs.map +1 -0
- package/fesm2020/main-class-componentes-crud.mjs +151 -0
- package/fesm2020/main-class-componentes-crud.mjs.map +1 -0
- package/fesm2020/main-class-componentes-date.mjs +162 -0
- package/fesm2020/main-class-componentes-date.mjs.map +1 -0
- package/fesm2020/main-class-componentes-dialog.mjs +201 -0
- package/fesm2020/main-class-componentes-dialog.mjs.map +1 -0
- package/fesm2020/main-class-componentes-form.mjs +204 -0
- package/fesm2020/main-class-componentes-form.mjs.map +1 -0
- package/fesm2020/main-class-componentes-input.mjs +1860 -0
- package/fesm2020/main-class-componentes-input.mjs.map +1 -0
- package/fesm2020/main-class-componentes-loader.mjs +234 -0
- package/fesm2020/main-class-componentes-loader.mjs.map +1 -0
- package/fesm2020/main-class-componentes-misc.mjs +785 -0
- package/fesm2020/main-class-componentes-misc.mjs.map +1 -0
- package/fesm2020/main-class-componentes-model.mjs +183 -0
- package/fesm2020/main-class-componentes-model.mjs.map +1 -0
- package/fesm2020/main-class-componentes-pipe.mjs +48 -0
- package/fesm2020/main-class-componentes-pipe.mjs.map +1 -0
- package/fesm2020/main-class-componentes-scroll.mjs +98 -0
- package/fesm2020/main-class-componentes-scroll.mjs.map +1 -0
- package/fesm2020/main-class-componentes-table.mjs +510 -0
- package/fesm2020/main-class-componentes-table.mjs.map +1 -0
- package/fesm2020/main-class-componentes-util.mjs +18 -0
- package/fesm2020/main-class-componentes-util.mjs.map +1 -0
- package/fesm2020/main-class-componentes.mjs +9 -0
- package/fesm2020/main-class-componentes.mjs.map +1 -0
- package/form/src/form.component.d.ts +3 -0
- package/form/src/form.module.d.ts +10 -0
- package/form/src/mensagens-erro/mensagens-erro.component.d.ts +3 -0
- package/form/src/single-click.directive.d.ts +3 -0
- package/{main-class-componentes.d.ts → index.d.ts} +1 -0
- package/input/src/abstract-mat-form-field-control.d.ts +3 -0
- package/input/src/input-datetime/input-datetime.component.d.ts +5 -2
- package/input/src/input-datetime/input-datetime.module.d.ts +11 -0
- package/input/src/input-fileupload/input-fileupload.component.d.ts +3 -0
- package/input/src/input-fileupload/input-fileupload.directive.d.ts +3 -0
- package/input/src/input-fileupload/input-fileupload.module.d.ts +16 -0
- package/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.d.ts +3 -0
- package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +3 -0
- package/input/src/input-telefone-internacional/input-telefone-internacional.module.d.ts +9 -0
- package/input/src/option-checkbox/all-option-checkbox.component.d.ts +3 -0
- package/input/src/option-checkbox/option-checkbox-group.component.d.ts +3 -0
- package/input/src/option-checkbox/option-checkbox.component.d.ts +3 -0
- package/input/src/option-checkbox/option-checkbox.module.d.ts +10 -0
- package/input/src/option-checkbox/option-checkbox.service.d.ts +3 -0
- package/input/src/select-chips/select-chips.component.d.ts +9 -6
- package/input/src/select-chips/select-chips.module.d.ts +11 -0
- package/input/src/select-item/select-item.component.d.ts +3 -0
- package/input/src/select-item/select-item.module.d.ts +6 -0
- package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +3 -0
- package/input/src/select-many-checkbox/select-many-checkbox.module.d.ts +9 -0
- package/input/src/select-radio/select-radio.component.d.ts +3 -0
- package/input/src/select-radio/select-radio.module.d.ts +9 -0
- package/loader/src/loader.component.d.ts +3 -0
- package/loader/src/loader.module.d.ts +7 -0
- package/loader/src/loader.service.d.ts +3 -0
- package/misc/src/cnpj/cnpj-model.directive.d.ts +3 -0
- package/misc/src/cnpj/cnpj.directive.d.ts +3 -0
- package/misc/src/cnpj/cnpj.module.d.ts +9 -0
- package/misc/src/cnpj/cnpjs.pipe.d.ts +3 -0
- package/misc/src/cpf/cpf-model.directive.d.ts +3 -0
- package/misc/src/cpf/cpf.directive.d.ts +3 -0
- package/misc/src/cpf/cpf.module.d.ts +8 -0
- package/misc/src/cpf/cpf.pipe.d.ts +3 -0
- package/misc/src/cpf-cnpj/cpf-cnpj-model.directive.d.ts +3 -0
- package/misc/src/cpf-cnpj/cpf-cnpj.directive.d.ts +3 -0
- package/misc/src/cpf-cnpj/cpf-cnpj.module.d.ts +8 -0
- package/misc/src/cpf-cnpj/cpf-cnpj.pipe.d.ts +3 -0
- package/misc/src/info/info.component.d.ts +3 -0
- package/misc/src/info/info.module.d.ts +7 -0
- package/misc/src/monetario/monetario-model.directive.d.ts +3 -0
- package/misc/src/monetario/monetario.module.d.ts +7 -0
- package/misc/src/monetario/monetario.pipe.d.ts +3 -0
- package/misc/src/porcentagem/porcentagem-model.directive.d.ts +3 -0
- package/misc/src/porcentagem/porcentagem.module.d.ts +7 -0
- package/misc/src/porcentagem/porcentagem.pipe.d.ts +3 -0
- package/misc/src/telefone/telefone-model.directive.d.ts +3 -0
- package/misc/src/telefone/telefone.module.d.ts +8 -0
- package/misc/src/telefone/telefone.pipe.d.ts +3 -0
- package/misc/src/unsafe-inner-html/unsafe-inner-html.directive.d.ts +3 -0
- package/misc/src/unsafe-inner-html/unsafe-inner-html.module.d.ts +6 -0
- package/model/src/masked-model.directive.d.ts +3 -0
- package/model/src/model.module.d.ts +6 -0
- package/package.json +135 -11
- package/pipe/src/nome-resumido.pipe.d.ts +3 -0
- package/pipe/src/pipe.module.d.ts +6 -0
- package/scroll/src/scroll-container/scroll-container.component.d.ts +3 -0
- package/scroll/src/scroll.module.d.ts +6 -0
- package/table/src/column/column-cell.directive.d.ts +3 -0
- package/table/src/column/column-footer.directive.d.ts +3 -0
- package/table/src/column/column-header.directive.d.ts +3 -0
- package/table/src/column/column.directive.d.ts +3 -0
- package/table/src/infinite-table/infinite-table.component.d.ts +3 -0
- package/table/src/paginated-table/paginated-table.component.d.ts +3 -0
- package/table/src/paginator/paginator.component.d.ts +3 -0
- package/table/src/table/table.component.d.ts +3 -0
- package/table/src/table.module.d.ts +24 -0
- package/table/src/td/td.component.d.ts +3 -0
- package/table/src/th/th.component.d.ts +3 -0
- package/arquivo/main-class-componentes-arquivo.d.ts +0 -4
- package/arquivo/main-class-componentes-arquivo.metadata.json +0 -1
- package/arquivo/package.json +0 -11
- package/bundles/main-class-componentes-arquivo.umd.js +0 -687
- package/bundles/main-class-componentes-arquivo.umd.js.map +0 -1
- package/bundles/main-class-componentes-arquivo.umd.min.js +0 -16
- package/bundles/main-class-componentes-arquivo.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-core.umd.js +0 -252
- package/bundles/main-class-componentes-core.umd.js.map +0 -1
- package/bundles/main-class-componentes-core.umd.min.js +0 -2
- package/bundles/main-class-componentes-core.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-crud.umd.js +0 -543
- package/bundles/main-class-componentes-crud.umd.js.map +0 -1
- package/bundles/main-class-componentes-crud.umd.min.js +0 -16
- package/bundles/main-class-componentes-crud.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-date.umd.js +0 -185
- package/bundles/main-class-componentes-date.umd.js.map +0 -1
- package/bundles/main-class-componentes-date.umd.min.js +0 -2
- package/bundles/main-class-componentes-date.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-dialog.umd.js +0 -214
- package/bundles/main-class-componentes-dialog.umd.js.map +0 -1
- package/bundles/main-class-componentes-dialog.umd.min.js +0 -2
- package/bundles/main-class-componentes-dialog.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-form.umd.js +0 -211
- package/bundles/main-class-componentes-form.umd.js.map +0 -1
- package/bundles/main-class-componentes-form.umd.min.js +0 -2
- package/bundles/main-class-componentes-form.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-input.umd.js +0 -2251
- package/bundles/main-class-componentes-input.umd.js.map +0 -1
- package/bundles/main-class-componentes-input.umd.min.js +0 -17
- package/bundles/main-class-componentes-input.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-loader.umd.js +0 -241
- package/bundles/main-class-componentes-loader.umd.js.map +0 -1
- package/bundles/main-class-componentes-loader.umd.min.js +0 -2
- package/bundles/main-class-componentes-loader.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-misc.umd.js +0 -1122
- package/bundles/main-class-componentes-misc.umd.js.map +0 -1
- package/bundles/main-class-componentes-misc.umd.min.js +0 -16
- package/bundles/main-class-componentes-misc.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-model.umd.js +0 -196
- package/bundles/main-class-componentes-model.umd.js.map +0 -1
- package/bundles/main-class-componentes-model.umd.min.js +0 -2
- package/bundles/main-class-componentes-model.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-pipe.umd.js +0 -58
- package/bundles/main-class-componentes-pipe.umd.js.map +0 -1
- package/bundles/main-class-componentes-pipe.umd.min.js +0 -2
- package/bundles/main-class-componentes-pipe.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-scroll.umd.js +0 -106
- package/bundles/main-class-componentes-scroll.umd.js.map +0 -1
- package/bundles/main-class-componentes-scroll.umd.min.js +0 -2
- package/bundles/main-class-componentes-scroll.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-table.umd.js +0 -787
- package/bundles/main-class-componentes-table.umd.js.map +0 -1
- package/bundles/main-class-componentes-table.umd.min.js +0 -17
- package/bundles/main-class-componentes-table.umd.min.js.map +0 -1
- package/bundles/main-class-componentes-util.umd.js +0 -31
- package/bundles/main-class-componentes-util.umd.js.map +0 -1
- package/bundles/main-class-componentes-util.umd.min.js +0 -2
- package/bundles/main-class-componentes-util.umd.min.js.map +0 -1
- package/bundles/main-class-componentes.umd.js +0 -16
- package/bundles/main-class-componentes.umd.js.map +0 -1
- package/bundles/main-class-componentes.umd.min.js +0 -2
- package/bundles/main-class-componentes.umd.min.js.map +0 -1
- package/core/main-class-componentes-core.d.ts +0 -4
- package/core/main-class-componentes-core.metadata.json +0 -1
- package/core/package.json +0 -11
- package/crud/main-class-componentes-crud.d.ts +0 -4
- package/crud/main-class-componentes-crud.metadata.json +0 -1
- package/crud/package.json +0 -11
- package/date/main-class-componentes-date.d.ts +0 -4
- package/date/main-class-componentes-date.metadata.json +0 -1
- package/date/package.json +0 -11
- package/dialog/main-class-componentes-dialog.d.ts +0 -4
- package/dialog/main-class-componentes-dialog.metadata.json +0 -1
- package/dialog/package.json +0 -11
- package/esm2015/arquivo/src/arquivo.module.js +0 -30
- package/esm2015/arquivo/src/download-arquivo.directive.js +0 -44
- package/esm2015/arquivo/src/imagem.directive.js +0 -80
- package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
- package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +0 -136
- package/esm2015/core/src/core.module.js +0 -27
- package/esm2015/core/src/criptografia/criptografia.service.js +0 -13
- package/esm2015/core/src/mensageria/mensageria.service.js +0 -48
- package/esm2015/core/src/mobile/mobile.service.js +0 -45
- package/esm2015/core/src/validator/valida-modulo11.service.js +0 -92
- package/esm2015/crud/src/abstract-consulta-component.js +0 -60
- package/esm2015/crud/src/abstract-consulta-paginada-component.js +0 -48
- package/esm2015/crud/src/abstract-edicao-component.js +0 -29
- package/esm2015/crud/src/abstract-edicao-modal-component.js +0 -24
- package/esm2015/date/src/date.module.js +0 -19
- package/esm2015/date/src/validator/data-validator.directive.js +0 -97
- package/esm2015/date/src/validator/futuro.directive.js +0 -26
- package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
- package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +0 -59
- package/esm2015/dialog/src/dialog.module.js +0 -37
- package/esm2015/dialog/src/dialog.service.js +0 -55
- package/esm2015/form/src/form.component.js +0 -103
- package/esm2015/form/src/form.module.js +0 -25
- package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +0 -31
- package/esm2015/form/src/single-click.directive.js +0 -35
- package/esm2015/input/main-class-componentes-input.js +0 -6
- package/esm2015/input/src/abstract-mat-form-field-control.js +0 -110
- package/esm2015/input/src/input-datetime/input-datetime.component.js +0 -114
- package/esm2015/input/src/input-datetime/input-datetime.module.js +0 -60
- package/esm2015/input/src/input-fileupload/input-fileupload.component.js +0 -324
- package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +0 -34
- package/esm2015/input/src/input-fileupload/input-fileupload.module.js +0 -34
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
- package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
- package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +0 -36
- package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +0 -71
- package/esm2015/input/src/option-checkbox/option-checkbox.component.js +0 -59
- package/esm2015/input/src/option-checkbox/option-checkbox.module.js +0 -30
- package/esm2015/input/src/option-checkbox/option-checkbox.service.js +0 -52
- package/esm2015/input/src/select-chips/select-chips.component.js +0 -177
- package/esm2015/input/src/select-chips/select-chips.module.js +0 -25
- package/esm2015/input/src/select-item/select-item.component.js +0 -20
- package/esm2015/input/src/select-item/select-item.module.js +0 -15
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +0 -150
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +0 -21
- package/esm2015/input/src/select-radio/select-radio.component.js +0 -124
- package/esm2015/input/src/select-radio/select-radio.module.js +0 -21
- package/esm2015/loader/src/loader.component.js +0 -112
- package/esm2015/loader/src/loader.module.js +0 -30
- package/esm2015/loader/src/loader.service.js +0 -70
- package/esm2015/misc/src/cnpj/cnpj-model.directive.js +0 -13
- package/esm2015/misc/src/cnpj/cnpj.directive.js +0 -31
- package/esm2015/misc/src/cnpj/cnpj.module.js +0 -19
- package/esm2015/misc/src/cnpj/cnpjs.pipe.js +0 -15
- package/esm2015/misc/src/cpf/cpf-model.directive.js +0 -13
- package/esm2015/misc/src/cpf/cpf.directive.js +0 -31
- package/esm2015/misc/src/cpf/cpf.module.js +0 -19
- package/esm2015/misc/src/cpf/cpf.pipe.js +0 -15
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +0 -32
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +0 -19
- package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
- package/esm2015/misc/src/info/info.component.js +0 -20
- package/esm2015/misc/src/info/info.module.js +0 -17
- package/esm2015/misc/src/monetario/monetario-model.directive.js +0 -124
- package/esm2015/misc/src/monetario/monetario.module.js +0 -16
- package/esm2015/misc/src/monetario/monetario.pipe.js +0 -13
- package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +0 -99
- package/esm2015/misc/src/porcentagem/porcentagem.module.js +0 -16
- package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +0 -13
- package/esm2015/misc/src/telefone/telefone-model.directive.js +0 -25
- package/esm2015/misc/src/telefone/telefone.module.js +0 -18
- package/esm2015/misc/src/telefone/telefone.pipe.js +0 -33
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
- package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
- package/esm2015/model/src/masked-model.directive.js +0 -149
- package/esm2015/model/src/model.module.js +0 -19
- package/esm2015/pipe/src/nome-resumido.pipe.js +0 -16
- package/esm2015/pipe/src/pipe.module.js +0 -19
- package/esm2015/scroll/src/scroll-container/scroll-container.component.js +0 -69
- package/esm2015/scroll/src/scroll.module.js +0 -17
- package/esm2015/table/src/column/column-cell.directive.js +0 -15
- package/esm2015/table/src/column/column-footer.directive.js +0 -15
- package/esm2015/table/src/column/column-header.directive.js +0 -15
- package/esm2015/table/src/column/column.directive.js +0 -28
- package/esm2015/table/src/infinite-table/infinite-table.component.js +0 -92
- package/esm2015/table/src/paginated-table/paginated-table.component.js +0 -43
- package/esm2015/table/src/paginator/paginator.component.js +0 -12
- package/esm2015/table/src/table/table.component.js +0 -119
- package/esm2015/table/src/table.module.js +0 -74
- package/esm2015/table/src/td/td.component.js +0 -19
- package/esm2015/table/src/th/th.component.js +0 -19
- package/fesm2015/main-class-componentes-arquivo.js +0 -338
- package/fesm2015/main-class-componentes-arquivo.js.map +0 -1
- package/fesm2015/main-class-componentes-core.js.map +0 -1
- package/fesm2015/main-class-componentes-crud.js.map +0 -1
- package/fesm2015/main-class-componentes-date.js +0 -143
- package/fesm2015/main-class-componentes-date.js.map +0 -1
- package/fesm2015/main-class-componentes-dialog.js +0 -185
- package/fesm2015/main-class-componentes-dialog.js.map +0 -1
- package/fesm2015/main-class-componentes-form.js +0 -191
- package/fesm2015/main-class-componentes-form.js.map +0 -1
- package/fesm2015/main-class-componentes-input.js +0 -1611
- package/fesm2015/main-class-componentes-input.js.map +0 -1
- package/fesm2015/main-class-componentes-loader.js +0 -214
- package/fesm2015/main-class-componentes-loader.js.map +0 -1
- package/fesm2015/main-class-componentes-misc.js +0 -688
- package/fesm2015/main-class-componentes-misc.js.map +0 -1
- package/fesm2015/main-class-componentes-model.js.map +0 -1
- package/fesm2015/main-class-componentes-pipe.js +0 -40
- package/fesm2015/main-class-componentes-pipe.js.map +0 -1
- package/fesm2015/main-class-componentes-scroll.js +0 -91
- package/fesm2015/main-class-componentes-scroll.js.map +0 -1
- package/fesm2015/main-class-componentes-table.js +0 -446
- package/fesm2015/main-class-componentes-table.js.map +0 -1
- package/fesm2015/main-class-componentes-util.js.map +0 -1
- package/fesm2015/main-class-componentes.js.map +0 -1
- package/form/main-class-componentes-form.d.ts +0 -4
- package/form/main-class-componentes-form.metadata.json +0 -1
- package/form/package.json +0 -11
- package/input/main-class-componentes-input.d.ts +0 -5
- package/input/main-class-componentes-input.metadata.json +0 -1
- package/input/package.json +0 -11
- package/loader/main-class-componentes-loader.d.ts +0 -4
- package/loader/main-class-componentes-loader.metadata.json +0 -1
- package/loader/package.json +0 -11
- package/main-class-componentes.metadata.json +0 -1
- package/misc/main-class-componentes-misc.d.ts +0 -4
- package/misc/main-class-componentes-misc.metadata.json +0 -1
- package/misc/package.json +0 -11
- package/model/main-class-componentes-model.d.ts +0 -4
- package/model/main-class-componentes-model.metadata.json +0 -1
- package/model/package.json +0 -11
- package/pipe/main-class-componentes-pipe.d.ts +0 -4
- package/pipe/main-class-componentes-pipe.metadata.json +0 -1
- package/pipe/package.json +0 -11
- package/scroll/main-class-componentes-scroll.d.ts +0 -4
- package/scroll/main-class-componentes-scroll.metadata.json +0 -1
- package/scroll/package.json +0 -11
- package/table/main-class-componentes-table.d.ts +0 -5
- package/table/main-class-componentes-table.metadata.json +0 -1
- package/table/package.json +0 -11
- package/util/main-class-componentes-util.d.ts +0 -4
- package/util/main-class-componentes-util.metadata.json +0 -1
- package/util/package.json +0 -11
- /package/{esm2015/arquivo/index.js → esm2020/arquivo/index.mjs} +0 -0
- /package/{esm2015/arquivo/main-class-componentes-arquivo.js → esm2020/arquivo/main-class-componentes-arquivo.mjs} +0 -0
- /package/{esm2015/arquivo/src/arquivo-manager.service.js → esm2020/arquivo/src/arquivo-manager.service.mjs} +0 -0
- /package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
- /package/{esm2015/core/main-class-componentes-core.js → esm2020/core/main-class-componentes-core.mjs} +0 -0
- /package/{esm2015/crud/index.js → esm2020/crud/index.mjs} +0 -0
- /package/{esm2015/crud/main-class-componentes-crud.js → esm2020/crud/main-class-componentes-crud.mjs} +0 -0
- /package/{esm2015/date/index.js → esm2020/date/index.mjs} +0 -0
- /package/{esm2015/date/main-class-componentes-date.js → esm2020/date/main-class-componentes-date.mjs} +0 -0
- /package/{esm2015/dialog/index.js → esm2020/dialog/index.mjs} +0 -0
- /package/{esm2015/dialog/main-class-componentes-dialog.js → esm2020/dialog/main-class-componentes-dialog.mjs} +0 -0
- /package/{esm2015/form/index.js → esm2020/form/index.mjs} +0 -0
- /package/{esm2015/form/main-class-componentes-form.js → esm2020/form/main-class-componentes-form.mjs} +0 -0
- /package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
- /package/{esm2015/input/src/option-checkbox/node-pool.js → esm2020/input/src/option-checkbox/node-pool.mjs} +0 -0
- /package/{esm2015/input/src/option-checkbox/option-node.js → esm2020/input/src/option-checkbox/option-node.mjs} +0 -0
- /package/{esm2015/loader/index.js → esm2020/loader/index.mjs} +0 -0
- /package/{esm2015/loader/main-class-componentes-loader.js → esm2020/loader/main-class-componentes-loader.mjs} +0 -0
- /package/{esm2015/main-class-componentes.js → esm2020/main-class-componentes.mjs} +0 -0
- /package/{esm2015/misc/index.js → esm2020/misc/index.mjs} +0 -0
- /package/{esm2015/misc/main-class-componentes-misc.js → esm2020/misc/main-class-componentes-misc.mjs} +0 -0
- /package/{esm2015/model/index.js → esm2020/model/index.mjs} +0 -0
- /package/{esm2015/model/main-class-componentes-model.js → esm2020/model/main-class-componentes-model.mjs} +0 -0
- /package/{esm2015/pipe/index.js → esm2020/pipe/index.mjs} +0 -0
- /package/{esm2015/pipe/main-class-componentes-pipe.js → esm2020/pipe/main-class-componentes-pipe.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- /package/{esm2015/scroll/index.js → esm2020/scroll/index.mjs} +0 -0
- /package/{esm2015/scroll/main-class-componentes-scroll.js → esm2020/scroll/main-class-componentes-scroll.mjs} +0 -0
- /package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- /package/{esm2015/table/src/paginator-i18n.js → esm2020/table/src/paginator-i18n.mjs} +0 -0
- /package/{esm2015/util/index.js → esm2020/util/index.mjs} +0 -0
- /package/{esm2015/util/main-class-componentes-util.js → esm2020/util/main-class-componentes-util.mjs} +0 -0
- /package/{esm2015/util/src/string.util.js → esm2020/util/src/string.util.mjs} +0 -0
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, Pipe, NgModule, Component, Input, EventEmitter, Output, HostListener, Self } from '@angular/core';
|
|
3
|
+
import { MaskedModelDirective, doApplyMask, doRemoveMask } from '@main-class/componentes/model';
|
|
4
|
+
import * as i1$2 from '@angular/forms';
|
|
5
|
+
import { NG_VALIDATORS } from '@angular/forms';
|
|
6
|
+
import * as i1 from '@main-class/componentes/core';
|
|
7
|
+
import { CoreModule } from '@main-class/componentes/core';
|
|
8
|
+
import * as i1$1 from '@angular/common';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
import * as i2 from '@angular/material/icon';
|
|
11
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
+
import { Observable } from 'rxjs';
|
|
13
|
+
|
|
14
|
+
class CnpjModelDirective extends MaskedModelDirective {
|
|
15
|
+
ngOnInit() {
|
|
16
|
+
this.mask = '##.###.###/####-##';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
CnpjModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjModelDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
CnpjModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: CnpjModelDirective, selector: "[mclModel][ngModel][cnpj]:not([mask])", usesInheritance: true, ngImport: i0 });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjModelDirective, decorators: [{
|
|
22
|
+
type: Directive,
|
|
23
|
+
args: [{
|
|
24
|
+
selector: '[mclModel][ngModel][cnpj]:not([mask])',
|
|
25
|
+
}]
|
|
26
|
+
}] });
|
|
27
|
+
|
|
28
|
+
class CnpjDirective {
|
|
29
|
+
constructor(modulo11Service) {
|
|
30
|
+
this.modulo11Service = modulo11Service;
|
|
31
|
+
}
|
|
32
|
+
validate(control) {
|
|
33
|
+
if (control.value) {
|
|
34
|
+
const unmasked = control.value.replace(/\D+/g, '');
|
|
35
|
+
if (unmasked.length !== 14 || !this.modulo11Service.isValidCgc(unmasked)) {
|
|
36
|
+
return { cnpj: true };
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
CnpjDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjDirective, deps: [{ token: i1.ValidaModulo11Service }], target: i0.ɵɵFactoryTarget.Directive });
|
|
43
|
+
CnpjDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: CnpjDirective, selector: "[mclCnpj],[mclModel][cnpj]", providers: [{
|
|
44
|
+
provide: NG_VALIDATORS,
|
|
45
|
+
useExisting: CnpjDirective,
|
|
46
|
+
multi: true
|
|
47
|
+
}], ngImport: i0 });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjDirective, decorators: [{
|
|
49
|
+
type: Directive,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: '[mclCnpj],[mclModel][cnpj]',
|
|
52
|
+
providers: [{
|
|
53
|
+
provide: NG_VALIDATORS,
|
|
54
|
+
useExisting: CnpjDirective,
|
|
55
|
+
multi: true
|
|
56
|
+
}]
|
|
57
|
+
}]
|
|
58
|
+
}], ctorParameters: function () { return [{ type: i1.ValidaModulo11Service }]; } });
|
|
59
|
+
|
|
60
|
+
class CnpjsPipe {
|
|
61
|
+
transform(value, ...args) {
|
|
62
|
+
if (value) {
|
|
63
|
+
return doApplyMask(value, '##.###.###/####-##');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
CnpjsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
68
|
+
CnpjsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CnpjsPipe, name: "cnpj" });
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjsPipe, decorators: [{
|
|
70
|
+
type: Pipe,
|
|
71
|
+
args: [{
|
|
72
|
+
name: 'cnpj'
|
|
73
|
+
}]
|
|
74
|
+
}] });
|
|
75
|
+
|
|
76
|
+
class CnpjModule {
|
|
77
|
+
}
|
|
78
|
+
CnpjModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
79
|
+
CnpjModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CnpjModule, declarations: [CnpjDirective, CnpjModelDirective, CnpjsPipe], imports: [CommonModule,
|
|
80
|
+
CoreModule], exports: [CnpjDirective, CnpjModelDirective, CnpjsPipe] });
|
|
81
|
+
CnpjModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjModule, imports: [CommonModule,
|
|
82
|
+
CoreModule] });
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CnpjModule, decorators: [{
|
|
84
|
+
type: NgModule,
|
|
85
|
+
args: [{
|
|
86
|
+
declarations: [CnpjDirective, CnpjModelDirective, CnpjsPipe],
|
|
87
|
+
exports: [CnpjDirective, CnpjModelDirective, CnpjsPipe],
|
|
88
|
+
imports: [
|
|
89
|
+
CommonModule,
|
|
90
|
+
CoreModule,
|
|
91
|
+
]
|
|
92
|
+
}]
|
|
93
|
+
}] });
|
|
94
|
+
|
|
95
|
+
class CpfModelDirective extends MaskedModelDirective {
|
|
96
|
+
ngOnInit() {
|
|
97
|
+
this.mask = '###.###.###-##';
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
CpfModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfModelDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
101
|
+
CpfModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: CpfModelDirective, selector: "[mclModel][ngModel][cpf]:not([mask])", usesInheritance: true, ngImport: i0 });
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfModelDirective, decorators: [{
|
|
103
|
+
type: Directive,
|
|
104
|
+
args: [{
|
|
105
|
+
selector: '[mclModel][ngModel][cpf]:not([mask])',
|
|
106
|
+
}]
|
|
107
|
+
}] });
|
|
108
|
+
|
|
109
|
+
class CpfDirective {
|
|
110
|
+
constructor(modulo11Service) {
|
|
111
|
+
this.modulo11Service = modulo11Service;
|
|
112
|
+
}
|
|
113
|
+
validate(control) {
|
|
114
|
+
if (control.value) {
|
|
115
|
+
const unmasked = control.value.replace(/\D+/g, '');
|
|
116
|
+
if (unmasked.length !== 11 || !this.modulo11Service.isValidCpf(unmasked)) {
|
|
117
|
+
return { cpf: true };
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
CpfDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfDirective, deps: [{ token: i1.ValidaModulo11Service }], target: i0.ɵɵFactoryTarget.Directive });
|
|
124
|
+
CpfDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: CpfDirective, selector: "[mclCpf],[mclModel][cpf]", providers: [{
|
|
125
|
+
provide: NG_VALIDATORS,
|
|
126
|
+
useExisting: CpfDirective,
|
|
127
|
+
multi: true
|
|
128
|
+
}], ngImport: i0 });
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfDirective, decorators: [{
|
|
130
|
+
type: Directive,
|
|
131
|
+
args: [{
|
|
132
|
+
selector: '[mclCpf],[mclModel][cpf]',
|
|
133
|
+
providers: [{
|
|
134
|
+
provide: NG_VALIDATORS,
|
|
135
|
+
useExisting: CpfDirective,
|
|
136
|
+
multi: true
|
|
137
|
+
}]
|
|
138
|
+
}]
|
|
139
|
+
}], ctorParameters: function () { return [{ type: i1.ValidaModulo11Service }]; } });
|
|
140
|
+
|
|
141
|
+
class CpfPipe {
|
|
142
|
+
transform(value, ...args) {
|
|
143
|
+
if (value) {
|
|
144
|
+
return doApplyMask(value, '###.###.###-##');
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
CpfPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
149
|
+
CpfPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CpfPipe, name: "cpf" });
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfPipe, decorators: [{
|
|
151
|
+
type: Pipe,
|
|
152
|
+
args: [{
|
|
153
|
+
name: 'cpf'
|
|
154
|
+
}]
|
|
155
|
+
}] });
|
|
156
|
+
|
|
157
|
+
class CpfModule {
|
|
158
|
+
}
|
|
159
|
+
CpfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
160
|
+
CpfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CpfModule, declarations: [CpfModelDirective, CpfDirective, CpfPipe], imports: [CommonModule], exports: [CpfModelDirective, CpfDirective, CpfPipe] });
|
|
161
|
+
CpfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfModule, imports: [CommonModule] });
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfModule, decorators: [{
|
|
163
|
+
type: NgModule,
|
|
164
|
+
args: [{
|
|
165
|
+
declarations: [CpfModelDirective, CpfDirective, CpfPipe],
|
|
166
|
+
exports: [
|
|
167
|
+
CpfModelDirective, CpfDirective, CpfPipe
|
|
168
|
+
],
|
|
169
|
+
imports: [
|
|
170
|
+
CommonModule
|
|
171
|
+
]
|
|
172
|
+
}]
|
|
173
|
+
}] });
|
|
174
|
+
|
|
175
|
+
class CpfCnpjModelDirective extends MaskedModelDirective {
|
|
176
|
+
ngOnInit() {
|
|
177
|
+
this.mask = '###.###.###-##';
|
|
178
|
+
}
|
|
179
|
+
applyMask(value) {
|
|
180
|
+
if (value && value.replace(/\D/g, '').length > 11) {
|
|
181
|
+
return doApplyMask(value, '##.###.###/####-##');
|
|
182
|
+
}
|
|
183
|
+
return doApplyMask(value, '###.###.###-##');
|
|
184
|
+
}
|
|
185
|
+
removeMask(value) {
|
|
186
|
+
if (value && value.replace(/\D/g, '').length > 11) {
|
|
187
|
+
return doRemoveMask(value, '##.###.###/####-##');
|
|
188
|
+
}
|
|
189
|
+
return doRemoveMask(value, '###.###.###-##');
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
CpfCnpjModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjModelDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
193
|
+
CpfCnpjModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: CpfCnpjModelDirective, selector: "[mclModel][ngModel][cpfCnpj]:not([mask])", usesInheritance: true, ngImport: i0 });
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjModelDirective, decorators: [{
|
|
195
|
+
type: Directive,
|
|
196
|
+
args: [{
|
|
197
|
+
selector: '[mclModel][ngModel][cpfCnpj]:not([mask])',
|
|
198
|
+
}]
|
|
199
|
+
}] });
|
|
200
|
+
|
|
201
|
+
class CpfCnpjDirective {
|
|
202
|
+
constructor(modulo11Service) {
|
|
203
|
+
this.modulo11Service = modulo11Service;
|
|
204
|
+
}
|
|
205
|
+
validate(control) {
|
|
206
|
+
if (control.value) {
|
|
207
|
+
const unmasked = control.value.replace(/\D+/g, '');
|
|
208
|
+
if ((unmasked.length !== 11 || !this.modulo11Service.isValidCpf(unmasked)) &&
|
|
209
|
+
(unmasked.length !== 14 || !this.modulo11Service.isValidCgc(unmasked))) {
|
|
210
|
+
return { cpfCnpj: true };
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return null;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
CpfCnpjDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjDirective, deps: [{ token: i1.ValidaModulo11Service }], target: i0.ɵɵFactoryTarget.Directive });
|
|
217
|
+
CpfCnpjDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: CpfCnpjDirective, selector: "[mclCpfCnpj],[mclModel][cpfCnpj]", providers: [{
|
|
218
|
+
provide: NG_VALIDATORS,
|
|
219
|
+
useExisting: CpfCnpjDirective,
|
|
220
|
+
multi: true
|
|
221
|
+
}], ngImport: i0 });
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjDirective, decorators: [{
|
|
223
|
+
type: Directive,
|
|
224
|
+
args: [{
|
|
225
|
+
selector: '[mclCpfCnpj],[mclModel][cpfCnpj]',
|
|
226
|
+
providers: [{
|
|
227
|
+
provide: NG_VALIDATORS,
|
|
228
|
+
useExisting: CpfCnpjDirective,
|
|
229
|
+
multi: true
|
|
230
|
+
}]
|
|
231
|
+
}]
|
|
232
|
+
}], ctorParameters: function () { return [{ type: i1.ValidaModulo11Service }]; } });
|
|
233
|
+
|
|
234
|
+
class CpfCnpjPipe {
|
|
235
|
+
transform(value, ...args) {
|
|
236
|
+
if (value) {
|
|
237
|
+
if (value.length > 11) {
|
|
238
|
+
return doApplyMask(value, '##.###.###/####-##');
|
|
239
|
+
}
|
|
240
|
+
return doApplyMask(value, '###.###.###-##');
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
CpfCnpjPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
245
|
+
CpfCnpjPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjPipe, name: "cpfCnpj" });
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjPipe, decorators: [{
|
|
247
|
+
type: Pipe,
|
|
248
|
+
args: [{
|
|
249
|
+
name: 'cpfCnpj'
|
|
250
|
+
}]
|
|
251
|
+
}] });
|
|
252
|
+
|
|
253
|
+
class CpfCnpjModule {
|
|
254
|
+
}
|
|
255
|
+
CpfCnpjModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
256
|
+
CpfCnpjModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjModule, declarations: [CpfCnpjModelDirective, CpfCnpjDirective, CpfCnpjPipe], imports: [CommonModule], exports: [CpfCnpjModelDirective, CpfCnpjDirective, CpfCnpjPipe] });
|
|
257
|
+
CpfCnpjModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjModule, imports: [CommonModule] });
|
|
258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CpfCnpjModule, decorators: [{
|
|
259
|
+
type: NgModule,
|
|
260
|
+
args: [{
|
|
261
|
+
declarations: [CpfCnpjModelDirective, CpfCnpjDirective, CpfCnpjPipe],
|
|
262
|
+
exports: [
|
|
263
|
+
CpfCnpjModelDirective, CpfCnpjDirective, CpfCnpjPipe
|
|
264
|
+
],
|
|
265
|
+
imports: [
|
|
266
|
+
CommonModule
|
|
267
|
+
]
|
|
268
|
+
}]
|
|
269
|
+
}] });
|
|
270
|
+
|
|
271
|
+
class InfoComponent {
|
|
272
|
+
constructor() {
|
|
273
|
+
this.tipo = 'info';
|
|
274
|
+
}
|
|
275
|
+
ngOnInit() {
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
InfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
279
|
+
InfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InfoComponent, selector: "mcl-info", inputs: { tipo: "tipo" }, ngImport: i0, template: "<div class=\"info\" [ngClass]=\"{'alert':tipo === 'alert'}\">\n <mat-icon *ngIf=\"tipo === 'info'\">info</mat-icon>\n <mat-icon *ngIf=\"tipo === 'alert'\">warning</mat-icon>\n <label>\n <ng-content select=\"[mcl-info-title]\"></ng-content>\n </label>\n <ng-content></ng-content>\n</div>\n", styles: [".info{background-color:#f3f3f3;color:#666;border-radius:5px;border:1px solid #ddd;padding:18px 15px 18px 50px;margin-bottom:20px;position:relative}.info mat-icon{position:absolute;top:15px;left:15px}.info label{font-weight:700}.info.alert{background-color:#ffd4cd;color:#994141;border:1px solid #ffa29e}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InfoComponent, decorators: [{
|
|
281
|
+
type: Component,
|
|
282
|
+
args: [{ selector: 'mcl-info', template: "<div class=\"info\" [ngClass]=\"{'alert':tipo === 'alert'}\">\n <mat-icon *ngIf=\"tipo === 'info'\">info</mat-icon>\n <mat-icon *ngIf=\"tipo === 'alert'\">warning</mat-icon>\n <label>\n <ng-content select=\"[mcl-info-title]\"></ng-content>\n </label>\n <ng-content></ng-content>\n</div>\n", styles: [".info{background-color:#f3f3f3;color:#666;border-radius:5px;border:1px solid #ddd;padding:18px 15px 18px 50px;margin-bottom:20px;position:relative}.info mat-icon{position:absolute;top:15px;left:15px}.info label{font-weight:700}.info.alert{background-color:#ffd4cd;color:#994141;border:1px solid #ffa29e}\n"] }]
|
|
283
|
+
}], ctorParameters: function () { return []; }, propDecorators: { tipo: [{
|
|
284
|
+
type: Input
|
|
285
|
+
}] } });
|
|
286
|
+
|
|
287
|
+
class InfoModule {
|
|
288
|
+
}
|
|
289
|
+
InfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InfoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
290
|
+
InfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InfoModule, declarations: [InfoComponent], imports: [CommonModule,
|
|
291
|
+
MatIconModule], exports: [InfoComponent] });
|
|
292
|
+
InfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InfoModule, imports: [CommonModule,
|
|
293
|
+
MatIconModule] });
|
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InfoModule, decorators: [{
|
|
295
|
+
type: NgModule,
|
|
296
|
+
args: [{
|
|
297
|
+
declarations: [InfoComponent],
|
|
298
|
+
exports: [InfoComponent],
|
|
299
|
+
imports: [
|
|
300
|
+
CommonModule,
|
|
301
|
+
MatIconModule
|
|
302
|
+
]
|
|
303
|
+
}]
|
|
304
|
+
}] });
|
|
305
|
+
|
|
306
|
+
const monetarioMask = (value, prefixo = 'R$', milhar = '.', fracional = ',', mascara = '###.###.###.###.###,##') => {
|
|
307
|
+
if (!value) {
|
|
308
|
+
return undefined;
|
|
309
|
+
}
|
|
310
|
+
let maskedValue = '';
|
|
311
|
+
let valorRestante = value.replace(/\D/g, '').replace(/^0+/, '');
|
|
312
|
+
while (valorRestante.length < (mascara.length - mascara.indexOf(','))) {
|
|
313
|
+
valorRestante = '0' + valorRestante;
|
|
314
|
+
}
|
|
315
|
+
for (let i = mascara.length - 1; i >= 0 && valorRestante.length; i--) {
|
|
316
|
+
if (mascara[i] === '.') {
|
|
317
|
+
maskedValue = milhar + maskedValue;
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
else if (mascara[i] === ',') {
|
|
321
|
+
maskedValue = fracional + maskedValue;
|
|
322
|
+
continue;
|
|
323
|
+
}
|
|
324
|
+
const ultimoRemovido = removerUltimo$1(valorRestante);
|
|
325
|
+
valorRestante = ultimoRemovido.restante;
|
|
326
|
+
maskedValue = ultimoRemovido.ultimo + maskedValue;
|
|
327
|
+
}
|
|
328
|
+
return prefixo + maskedValue;
|
|
329
|
+
};
|
|
330
|
+
const removerUltimo$1 = (value) => {
|
|
331
|
+
const tamanho = value.length;
|
|
332
|
+
return {
|
|
333
|
+
ultimo: value.charAt(tamanho - 1),
|
|
334
|
+
restante: value.substring(0, tamanho - 1)
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
class MonetarioModelDirective {
|
|
339
|
+
constructor(ngControl) {
|
|
340
|
+
this.ngControl = ngControl;
|
|
341
|
+
this.$mascara = '###.###.###.###.###,##';
|
|
342
|
+
this.$symbol = 'R$';
|
|
343
|
+
this.$thousandDivider = '.';
|
|
344
|
+
this.$fractionalDivider = ',';
|
|
345
|
+
this.value = null;
|
|
346
|
+
this.displayValue = null;
|
|
347
|
+
this.mclModelChange = new EventEmitter();
|
|
348
|
+
}
|
|
349
|
+
delay(ms = 0) {
|
|
350
|
+
return new Observable(observer => {
|
|
351
|
+
const timeout = setTimeout(() => observer.next(), ms);
|
|
352
|
+
return () => clearTimeout(timeout);
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
processValue(displayValue) {
|
|
356
|
+
return this.keepMask ? displayValue :
|
|
357
|
+
monetarioMask(displayValue, '', '', '.', this.$mascara);
|
|
358
|
+
}
|
|
359
|
+
set symbol(symbol) {
|
|
360
|
+
if (symbol !== this.$symbol) {
|
|
361
|
+
this.$symbol = symbol;
|
|
362
|
+
this.defineValue();
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
set thousandDivider(thousandDivider) {
|
|
366
|
+
if (thousandDivider !== this.$thousandDivider) {
|
|
367
|
+
this.$thousandDivider = thousandDivider;
|
|
368
|
+
this.defineValue();
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
set fractionalDivider(fractionalDivider) {
|
|
372
|
+
if (fractionalDivider !== this.$fractionalDivider) {
|
|
373
|
+
this.$fractionalDivider = fractionalDivider;
|
|
374
|
+
this.defineValue();
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
set mascara(mascara) {
|
|
378
|
+
if (mascara !== this.$mascara) {
|
|
379
|
+
this.$mascara = mascara;
|
|
380
|
+
this.defineValue();
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
set maskValue(value) {
|
|
384
|
+
if (value !== this.value) {
|
|
385
|
+
this.value = value;
|
|
386
|
+
this.defineValue();
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
onInput(event) {
|
|
390
|
+
const target = event.target;
|
|
391
|
+
const value = target.value;
|
|
392
|
+
this.onValueChange(value);
|
|
393
|
+
}
|
|
394
|
+
updateValue(value) {
|
|
395
|
+
this.value = value;
|
|
396
|
+
this.mclModelChange.emit(value);
|
|
397
|
+
this.delay().subscribe(() => this.ngControl.control.updateValueAndValidity());
|
|
398
|
+
}
|
|
399
|
+
defineValue() {
|
|
400
|
+
let value = this.value;
|
|
401
|
+
let displayValue = null;
|
|
402
|
+
if (value !== null && value !== undefined) {
|
|
403
|
+
displayValue = monetarioMask(value, this.$symbol, this.$thousandDivider, this.$fractionalDivider, this.$mascara);
|
|
404
|
+
value = this.processValue(displayValue);
|
|
405
|
+
}
|
|
406
|
+
this.delay().subscribe(() => {
|
|
407
|
+
if (this.displayValue !== displayValue) {
|
|
408
|
+
this.displayValue = displayValue;
|
|
409
|
+
this.ngControl.control.setValue(displayValue);
|
|
410
|
+
this.delay().subscribe(() => {
|
|
411
|
+
if (value !== this.value) {
|
|
412
|
+
return this.updateValue(value);
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
onValueChange(newValue) {
|
|
419
|
+
if (newValue !== this.displayValue) {
|
|
420
|
+
let displayValue = newValue;
|
|
421
|
+
let value;
|
|
422
|
+
if ((newValue == null) || (newValue.trim() === '')) {
|
|
423
|
+
value = null;
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
displayValue = monetarioMask(newValue, this.$symbol, this.$thousandDivider, this.$fractionalDivider, this.$mascara);
|
|
427
|
+
value = this.processValue(displayValue);
|
|
428
|
+
}
|
|
429
|
+
this.displayValue = displayValue;
|
|
430
|
+
if (newValue !== displayValue) {
|
|
431
|
+
this.ngControl.control.setValue(displayValue);
|
|
432
|
+
}
|
|
433
|
+
if (value !== this.value) {
|
|
434
|
+
this.updateValue(value);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
MonetarioModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MonetarioModelDirective, deps: [{ token: i1$2.NgControl }], target: i0.ɵɵFactoryTarget.Directive });
|
|
440
|
+
MonetarioModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MonetarioModelDirective, selector: "[mclModel][ngModel][monetario]", inputs: { keepMask: "keepMask", symbol: "symbol", thousandDivider: "thousandDivider", fractionalDivider: "fractionalDivider", mascara: "mascara", maskValue: ["mclModel", "maskValue"] }, outputs: { mclModelChange: "mclModelChange" }, host: { listeners: { "input": "onInput($event)" } }, ngImport: i0 });
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MonetarioModelDirective, decorators: [{
|
|
442
|
+
type: Directive,
|
|
443
|
+
args: [{
|
|
444
|
+
selector: '[mclModel][ngModel][monetario]',
|
|
445
|
+
}]
|
|
446
|
+
}], ctorParameters: function () { return [{ type: i1$2.NgControl }]; }, propDecorators: { keepMask: [{
|
|
447
|
+
type: Input
|
|
448
|
+
}], mclModelChange: [{
|
|
449
|
+
type: Output
|
|
450
|
+
}], symbol: [{
|
|
451
|
+
type: Input
|
|
452
|
+
}], thousandDivider: [{
|
|
453
|
+
type: Input
|
|
454
|
+
}], fractionalDivider: [{
|
|
455
|
+
type: Input
|
|
456
|
+
}], mascara: [{
|
|
457
|
+
type: Input
|
|
458
|
+
}], maskValue: [{
|
|
459
|
+
type: Input,
|
|
460
|
+
args: ['mclModel']
|
|
461
|
+
}], onInput: [{
|
|
462
|
+
type: HostListener,
|
|
463
|
+
args: ['input', ['$event']]
|
|
464
|
+
}] } });
|
|
465
|
+
|
|
466
|
+
class MonetarioPipe {
|
|
467
|
+
transform(value, symbol = 'R$', thousandDivider = '.', fractionalDivider = ',', mascara = '###.###.###.###.###,##') {
|
|
468
|
+
return monetarioMask(value, symbol, thousandDivider, fractionalDivider, mascara);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
MonetarioPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MonetarioPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
472
|
+
MonetarioPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MonetarioPipe, name: "mclMonetario" });
|
|
473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MonetarioPipe, decorators: [{
|
|
474
|
+
type: Pipe,
|
|
475
|
+
args: [{
|
|
476
|
+
name: 'mclMonetario'
|
|
477
|
+
}]
|
|
478
|
+
}] });
|
|
479
|
+
|
|
480
|
+
class MonetarioModule {
|
|
481
|
+
}
|
|
482
|
+
MonetarioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MonetarioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
483
|
+
MonetarioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MonetarioModule, declarations: [MonetarioModelDirective, MonetarioPipe], imports: [CommonModule], exports: [MonetarioModelDirective, MonetarioPipe] });
|
|
484
|
+
MonetarioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MonetarioModule, imports: [CommonModule] });
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MonetarioModule, decorators: [{
|
|
486
|
+
type: NgModule,
|
|
487
|
+
args: [{
|
|
488
|
+
declarations: [MonetarioModelDirective, MonetarioPipe],
|
|
489
|
+
exports: [MonetarioModelDirective, MonetarioPipe],
|
|
490
|
+
imports: [
|
|
491
|
+
CommonModule
|
|
492
|
+
]
|
|
493
|
+
}]
|
|
494
|
+
}] });
|
|
495
|
+
|
|
496
|
+
const porcentagemMask = (value, sufixo = '%', milhar = '.', fracional = ',', mascara = '###.###.###.###.###,##') => {
|
|
497
|
+
if (!value) {
|
|
498
|
+
return undefined;
|
|
499
|
+
}
|
|
500
|
+
let maskedValue = '';
|
|
501
|
+
let valorRestante = value.replace(/\D/g, '').replace(/^0+/, '');
|
|
502
|
+
while (valorRestante.length < 3) {
|
|
503
|
+
valorRestante = '0' + valorRestante;
|
|
504
|
+
}
|
|
505
|
+
for (let i = mascara.length - 1; i >= 0 && valorRestante.length; i--) {
|
|
506
|
+
if (mascara[i] === '.') {
|
|
507
|
+
maskedValue = milhar + maskedValue;
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
else if (mascara[i] === ',') {
|
|
511
|
+
maskedValue = fracional + maskedValue;
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
const ultimoRemovido = removerUltimo(valorRestante);
|
|
515
|
+
valorRestante = ultimoRemovido.restante;
|
|
516
|
+
maskedValue = ultimoRemovido.ultimo + maskedValue;
|
|
517
|
+
}
|
|
518
|
+
return maskedValue + sufixo;
|
|
519
|
+
};
|
|
520
|
+
const removerUltimo = (value) => {
|
|
521
|
+
const tamanho = value.length;
|
|
522
|
+
return {
|
|
523
|
+
ultimo: value.charAt(tamanho - 1),
|
|
524
|
+
restante: value.substring(0, tamanho - 1)
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
class PorcentagemModelDirective {
|
|
529
|
+
constructor(ngControl) {
|
|
530
|
+
this.ngControl = ngControl;
|
|
531
|
+
this.mascara = '###.###.###.###.###,##';
|
|
532
|
+
this.symbol = '%';
|
|
533
|
+
this.thousandDivider = '.';
|
|
534
|
+
this.fractionalDivider = ',';
|
|
535
|
+
this.displayValue = null;
|
|
536
|
+
this.mclModelChange = new EventEmitter();
|
|
537
|
+
}
|
|
538
|
+
delay(ms = 0) {
|
|
539
|
+
return new Observable(observer => {
|
|
540
|
+
const timeout = setTimeout(() => observer.next(), ms);
|
|
541
|
+
return () => clearTimeout(timeout);
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
processValue(displayValue) {
|
|
545
|
+
return this.keepMask ? displayValue :
|
|
546
|
+
porcentagemMask(displayValue, '', '', '.', this.mascara);
|
|
547
|
+
}
|
|
548
|
+
set maskValue(value) {
|
|
549
|
+
if (value !== this.value) {
|
|
550
|
+
this.value = value;
|
|
551
|
+
this.defineValue();
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
onInput(event) {
|
|
555
|
+
const target = event.target;
|
|
556
|
+
const value = target.value;
|
|
557
|
+
this.onValueChange(value);
|
|
558
|
+
}
|
|
559
|
+
updateValue(value) {
|
|
560
|
+
this.value = value;
|
|
561
|
+
this.mclModelChange.emit(value);
|
|
562
|
+
this.delay().subscribe(() => this.ngControl.control.updateValueAndValidity());
|
|
563
|
+
}
|
|
564
|
+
defineValue() {
|
|
565
|
+
let value = this.value;
|
|
566
|
+
let displayValue = null;
|
|
567
|
+
if (value !== null && value !== undefined) {
|
|
568
|
+
displayValue = porcentagemMask(value, this.symbol, this.thousandDivider, this.fractionalDivider, this.mascara);
|
|
569
|
+
value = this.processValue(displayValue);
|
|
570
|
+
}
|
|
571
|
+
this.delay().subscribe(() => {
|
|
572
|
+
if (this.displayValue !== displayValue) {
|
|
573
|
+
this.displayValue = displayValue;
|
|
574
|
+
this.ngControl.control.setValue(displayValue);
|
|
575
|
+
this.delay().subscribe(() => {
|
|
576
|
+
if (value !== this.value) {
|
|
577
|
+
return this.updateValue(value);
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
onValueChange(newValue) {
|
|
584
|
+
if (newValue !== this.displayValue) {
|
|
585
|
+
let displayValue = newValue;
|
|
586
|
+
let value;
|
|
587
|
+
if ((newValue == null) || (newValue.trim() === '')) {
|
|
588
|
+
value = null;
|
|
589
|
+
}
|
|
590
|
+
else {
|
|
591
|
+
displayValue = porcentagemMask(newValue);
|
|
592
|
+
value = this.processValue(displayValue);
|
|
593
|
+
}
|
|
594
|
+
this.displayValue = displayValue;
|
|
595
|
+
if (newValue !== displayValue) {
|
|
596
|
+
this.ngControl.control.setValue(displayValue);
|
|
597
|
+
}
|
|
598
|
+
if (value !== this.value) {
|
|
599
|
+
this.updateValue(value);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
PorcentagemModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemModelDirective, deps: [{ token: i1$2.NgControl }], target: i0.ɵɵFactoryTarget.Directive });
|
|
605
|
+
PorcentagemModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: PorcentagemModelDirective, selector: "[mclModel][ngModel][porcentagem]", inputs: { mascara: "mascara", symbol: "symbol", thousandDivider: "thousandDivider", fractionalDivider: "fractionalDivider", keepMask: "keepMask", maskValue: ["mclModel", "maskValue"] }, outputs: { mclModelChange: "mclModelChange" }, host: { listeners: { "input": "onInput($event)" } }, ngImport: i0 });
|
|
606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemModelDirective, decorators: [{
|
|
607
|
+
type: Directive,
|
|
608
|
+
args: [{
|
|
609
|
+
selector: '[mclModel][ngModel][porcentagem]',
|
|
610
|
+
}]
|
|
611
|
+
}], ctorParameters: function () { return [{ type: i1$2.NgControl }]; }, propDecorators: { mascara: [{
|
|
612
|
+
type: Input
|
|
613
|
+
}], symbol: [{
|
|
614
|
+
type: Input
|
|
615
|
+
}], thousandDivider: [{
|
|
616
|
+
type: Input
|
|
617
|
+
}], fractionalDivider: [{
|
|
618
|
+
type: Input
|
|
619
|
+
}], keepMask: [{
|
|
620
|
+
type: Input
|
|
621
|
+
}], mclModelChange: [{
|
|
622
|
+
type: Output
|
|
623
|
+
}], maskValue: [{
|
|
624
|
+
type: Input,
|
|
625
|
+
args: ['mclModel']
|
|
626
|
+
}], onInput: [{
|
|
627
|
+
type: HostListener,
|
|
628
|
+
args: ['input', ['$event']]
|
|
629
|
+
}] } });
|
|
630
|
+
|
|
631
|
+
class PorcentagemPipe {
|
|
632
|
+
transform(value, symbol = '%', thousandDivider = '.', fractionalDivider = ',', mascara = '###.###.###.###.###,##') {
|
|
633
|
+
return porcentagemMask(value, symbol, thousandDivider, fractionalDivider, mascara);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
PorcentagemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
637
|
+
PorcentagemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemPipe, name: "mclPorcentagem" });
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemPipe, decorators: [{
|
|
639
|
+
type: Pipe,
|
|
640
|
+
args: [{
|
|
641
|
+
name: 'mclPorcentagem'
|
|
642
|
+
}]
|
|
643
|
+
}] });
|
|
644
|
+
|
|
645
|
+
class PorcentagemModule {
|
|
646
|
+
}
|
|
647
|
+
PorcentagemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
648
|
+
PorcentagemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemModule, declarations: [PorcentagemModelDirective, PorcentagemPipe], imports: [CommonModule], exports: [PorcentagemModelDirective, PorcentagemPipe] });
|
|
649
|
+
PorcentagemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemModule, imports: [CommonModule] });
|
|
650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PorcentagemModule, decorators: [{
|
|
651
|
+
type: NgModule,
|
|
652
|
+
args: [{
|
|
653
|
+
declarations: [PorcentagemModelDirective, PorcentagemPipe],
|
|
654
|
+
exports: [PorcentagemModelDirective, PorcentagemPipe],
|
|
655
|
+
imports: [
|
|
656
|
+
CommonModule
|
|
657
|
+
]
|
|
658
|
+
}]
|
|
659
|
+
}] });
|
|
660
|
+
|
|
661
|
+
class TelefoneModelDirective extends MaskedModelDirective {
|
|
662
|
+
ngOnInit() {
|
|
663
|
+
this.mask = '(##) #### ####';
|
|
664
|
+
}
|
|
665
|
+
applyMask(value) {
|
|
666
|
+
if (value.length > 10) {
|
|
667
|
+
return doApplyMask(value, '(##) ##### ####');
|
|
668
|
+
}
|
|
669
|
+
return doApplyMask(value, '(##) #### ####');
|
|
670
|
+
}
|
|
671
|
+
removeMask(value) {
|
|
672
|
+
if (value.length > 10) {
|
|
673
|
+
return doRemoveMask(value, '(##) ##### ####');
|
|
674
|
+
}
|
|
675
|
+
return doRemoveMask(value, '(##) #### ####');
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
TelefoneModelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TelefoneModelDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
679
|
+
TelefoneModelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: TelefoneModelDirective, selector: "[mclModel][ngModel][telefone]:not([mask])", usesInheritance: true, ngImport: i0 });
|
|
680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TelefoneModelDirective, decorators: [{
|
|
681
|
+
type: Directive,
|
|
682
|
+
args: [{
|
|
683
|
+
selector: '[mclModel][ngModel][telefone]:not([mask])',
|
|
684
|
+
}]
|
|
685
|
+
}] });
|
|
686
|
+
|
|
687
|
+
class TelefonePipe {
|
|
688
|
+
transform(value, ...args) {
|
|
689
|
+
if (!value) {
|
|
690
|
+
return '-';
|
|
691
|
+
}
|
|
692
|
+
value = value.replace(/\D/g, '');
|
|
693
|
+
if (!value || value.length > 11 || value === '0') {
|
|
694
|
+
return '-';
|
|
695
|
+
}
|
|
696
|
+
switch (value.length) {
|
|
697
|
+
case 11:
|
|
698
|
+
return '(' + value.substring(0, 2) + ') ' + value.substring(2, 7) + '-' + value.substring(7);
|
|
699
|
+
case 10:
|
|
700
|
+
return '(' + value.substring(0, 2) + ') ' + value.substring(2, 6) + '-' + value.substring(6);
|
|
701
|
+
case 9:
|
|
702
|
+
return value.substring(0, 5) + '-' + value.substring(5);
|
|
703
|
+
case 8:
|
|
704
|
+
return value.substring(0, 4) + '-' + value.substring(4);
|
|
705
|
+
case 2:
|
|
706
|
+
case 3:
|
|
707
|
+
return '(' + value + ')';
|
|
708
|
+
default:
|
|
709
|
+
return value;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
TelefonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TelefonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
714
|
+
TelefonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TelefonePipe, name: "telefone" });
|
|
715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TelefonePipe, decorators: [{
|
|
716
|
+
type: Pipe,
|
|
717
|
+
args: [{
|
|
718
|
+
name: 'telefone'
|
|
719
|
+
}]
|
|
720
|
+
}] });
|
|
721
|
+
|
|
722
|
+
class TelefoneModule {
|
|
723
|
+
}
|
|
724
|
+
TelefoneModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TelefoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
725
|
+
TelefoneModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TelefoneModule, declarations: [TelefonePipe, TelefoneModelDirective], imports: [CommonModule,
|
|
726
|
+
CoreModule], exports: [TelefonePipe, TelefoneModelDirective] });
|
|
727
|
+
TelefoneModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TelefoneModule, imports: [CommonModule,
|
|
728
|
+
CoreModule] });
|
|
729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TelefoneModule, decorators: [{
|
|
730
|
+
type: NgModule,
|
|
731
|
+
args: [{
|
|
732
|
+
declarations: [TelefonePipe, TelefoneModelDirective],
|
|
733
|
+
exports: [TelefonePipe, TelefoneModelDirective],
|
|
734
|
+
imports: [
|
|
735
|
+
CommonModule,
|
|
736
|
+
CoreModule
|
|
737
|
+
]
|
|
738
|
+
}]
|
|
739
|
+
}] });
|
|
740
|
+
|
|
741
|
+
class UnsafeInnerHtmlDirective {
|
|
742
|
+
constructor(sanitizer, element) {
|
|
743
|
+
this.sanitizer = sanitizer;
|
|
744
|
+
this.element = element;
|
|
745
|
+
}
|
|
746
|
+
set unsafeInnerHtml(value) {
|
|
747
|
+
this.element.nativeElement.innerHTML = value || '';
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
UnsafeInnerHtmlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UnsafeInnerHtmlDirective, deps: [{ token: i0.Sanitizer }, { token: i0.ElementRef, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
751
|
+
UnsafeInnerHtmlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: UnsafeInnerHtmlDirective, selector: "[mclUnsafeInnerHtml]", inputs: { unsafeInnerHtml: ["mclUnsafeInnerHtml", "unsafeInnerHtml"] }, ngImport: i0 });
|
|
752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UnsafeInnerHtmlDirective, decorators: [{
|
|
753
|
+
type: Directive,
|
|
754
|
+
args: [{
|
|
755
|
+
selector: '[mclUnsafeInnerHtml]'
|
|
756
|
+
}]
|
|
757
|
+
}], ctorParameters: function () {
|
|
758
|
+
return [{ type: i0.Sanitizer }, { type: i0.ElementRef, decorators: [{
|
|
759
|
+
type: Self
|
|
760
|
+
}] }];
|
|
761
|
+
}, propDecorators: { unsafeInnerHtml: [{
|
|
762
|
+
type: Input,
|
|
763
|
+
args: ['mclUnsafeInnerHtml']
|
|
764
|
+
}] } });
|
|
765
|
+
|
|
766
|
+
class UnsafeInnerHtmlModule {
|
|
767
|
+
}
|
|
768
|
+
UnsafeInnerHtmlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UnsafeInnerHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
769
|
+
UnsafeInnerHtmlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: UnsafeInnerHtmlModule, declarations: [UnsafeInnerHtmlDirective], imports: [CommonModule], exports: [UnsafeInnerHtmlDirective] });
|
|
770
|
+
UnsafeInnerHtmlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UnsafeInnerHtmlModule, imports: [CommonModule] });
|
|
771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UnsafeInnerHtmlModule, decorators: [{
|
|
772
|
+
type: NgModule,
|
|
773
|
+
args: [{
|
|
774
|
+
declarations: [UnsafeInnerHtmlDirective],
|
|
775
|
+
exports: [UnsafeInnerHtmlDirective],
|
|
776
|
+
imports: [
|
|
777
|
+
CommonModule
|
|
778
|
+
]
|
|
779
|
+
}]
|
|
780
|
+
}] });
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Generated bundle index. Do not edit.
|
|
784
|
+
*/
|
|
785
|
+
|
|
786
|
+
export { CnpjDirective, CnpjModelDirective, CnpjModule, CnpjsPipe, CpfCnpjDirective, CpfCnpjModelDirective, CpfCnpjModule, CpfCnpjPipe, CpfDirective, CpfModelDirective, CpfModule, CpfPipe, InfoComponent, InfoModule, MonetarioModelDirective, MonetarioModule, MonetarioPipe, PorcentagemModelDirective, PorcentagemModule, PorcentagemPipe, TelefoneModelDirective, TelefoneModule, TelefonePipe, UnsafeInnerHtmlDirective, UnsafeInnerHtmlModule, monetarioMask };
|
|
787
|
+
//# sourceMappingURL=main-class-componentes-misc.mjs.map
|