@main-class/componentes 1.19.3 → 2.0.4

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.
Files changed (503) hide show
  1. package/arquivo/src/arquivo.module.d.ts +15 -0
  2. package/arquivo/src/download-arquivo.directive.d.ts +4 -1
  3. package/arquivo/src/imagem.directive.d.ts +3 -0
  4. package/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +3 -0
  5. package/arquivo/src/preview-arquivo/preview-arquivo.component.d.ts +4 -1
  6. package/core/src/core.module.d.ts +5 -0
  7. package/core/src/criptografia/criptografia.service.d.ts +3 -0
  8. package/core/src/mensageria/mensageria.service.d.ts +3 -0
  9. package/core/src/mobile/mobile.service.d.ts +3 -0
  10. package/core/src/validator/valida-modulo11.service.d.ts +3 -0
  11. package/crud/src/abstract-consulta-component.d.ts +3 -0
  12. package/crud/src/abstract-consulta-paginada-component.d.ts +3 -0
  13. package/crud/src/abstract-edicao-component.d.ts +3 -0
  14. package/date/src/date.module.d.ts +7 -0
  15. package/date/src/validator/data-validator.directive.d.ts +3 -0
  16. package/date/src/validator/futuro.directive.d.ts +3 -0
  17. package/dialog/src/dialog-confirmacao/dialog-confirmacao.component.d.ts +3 -0
  18. package/dialog/src/dialog-iframe/dialog-iframe.component.d.ts +3 -0
  19. package/dialog/src/dialog.module.d.ts +12 -0
  20. package/dialog/src/dialog.service.d.ts +3 -0
  21. package/esm2020/arquivo/src/arquivo.module.mjs +47 -0
  22. package/esm2020/arquivo/src/download-arquivo.directive.mjs +46 -0
  23. package/esm2020/arquivo/src/imagem.directive.mjs +89 -0
  24. package/esm2020/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.mjs +65 -0
  25. package/esm2020/arquivo/src/preview-arquivo/preview-arquivo.component.mjs +139 -0
  26. package/esm2020/core/src/core.module.mjs +32 -0
  27. package/esm2020/core/src/criptografia/criptografia.service.mjs +16 -0
  28. package/esm2020/core/src/mensageria/mensageria.service.mjs +57 -0
  29. package/esm2020/core/src/mobile/mobile.service.mjs +43 -0
  30. package/esm2020/core/src/validator/valida-modulo11.service.mjs +95 -0
  31. package/esm2020/crud/src/abstract-consulta-component.mjs +55 -0
  32. package/esm2020/crud/src/abstract-consulta-paginada-component.mjs +45 -0
  33. package/esm2020/crud/src/abstract-edicao-component.mjs +30 -0
  34. package/esm2020/crud/src/abstract-edicao-modal-component.mjs +19 -0
  35. package/esm2020/date/src/date.module.mjs +25 -0
  36. package/esm2020/date/src/validator/data-validator.directive.mjs +105 -0
  37. package/esm2020/date/src/validator/futuro.directive.mjs +33 -0
  38. package/esm2020/dialog/src/dialog-confirmacao/dialog-confirmacao.component.mjs +44 -0
  39. package/esm2020/dialog/src/dialog-iframe/dialog-iframe.component.mjs +60 -0
  40. package/esm2020/dialog/src/dialog.module.mjs +53 -0
  41. package/esm2020/dialog/src/dialog.service.mjs +53 -0
  42. package/esm2020/form/src/form.component.mjs +106 -0
  43. package/esm2020/form/src/form.module.mjs +36 -0
  44. package/esm2020/form/src/mensagens-erro/mensagens-erro.component.mjs +33 -0
  45. package/esm2020/form/src/single-click.directive.mjs +35 -0
  46. package/esm2020/input/main-class-componentes-input.mjs +5 -0
  47. package/esm2020/input/src/abstract-mat-form-field-control.mjs +116 -0
  48. package/esm2020/input/src/input-datetime/input-datetime.component.mjs +130 -0
  49. package/esm2020/input/src/input-datetime/input-datetime.module.mjs +101 -0
  50. package/esm2020/input/src/input-fileupload/input-fileupload.component.mjs +355 -0
  51. package/esm2020/input/src/input-fileupload/input-fileupload.directive.mjs +37 -0
  52. package/esm2020/input/src/input-fileupload/input-fileupload.module.mjs +57 -0
  53. package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.mjs +29 -0
  54. package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.component.mjs +78 -0
  55. package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.module.mjs +33 -0
  56. package/esm2020/input/src/option-checkbox/all-option-checkbox.component.mjs +38 -0
  57. package/esm2020/input/src/option-checkbox/option-checkbox-group.component.mjs +80 -0
  58. package/esm2020/input/src/option-checkbox/option-checkbox.component.mjs +62 -0
  59. package/esm2020/input/src/option-checkbox/option-checkbox.module.mjs +39 -0
  60. package/esm2020/input/src/option-checkbox/option-checkbox.service.mjs +54 -0
  61. package/esm2020/input/src/select-chips/select-chips.component.mjs +202 -0
  62. package/esm2020/input/src/select-chips/select-chips.module.mjs +40 -0
  63. package/esm2020/input/src/select-item/select-item.component.mjs +19 -0
  64. package/esm2020/input/src/select-item/select-item.module.mjs +20 -0
  65. package/esm2020/input/src/select-many-checkbox/select-many-checkbox.component.mjs +170 -0
  66. package/esm2020/input/src/select-many-checkbox/select-many-checkbox.module.mjs +32 -0
  67. package/esm2020/input/src/select-radio/select-radio.component.mjs +143 -0
  68. package/esm2020/input/src/select-radio/select-radio.module.mjs +32 -0
  69. package/esm2020/loader/src/loader.component.mjs +125 -0
  70. package/esm2020/loader/src/loader.module.mjs +37 -0
  71. package/esm2020/loader/src/loader.service.mjs +72 -0
  72. package/esm2020/misc/src/cnpj/cnpj-model.directive.mjs +17 -0
  73. package/esm2020/misc/src/cnpj/cnpj.directive.mjs +36 -0
  74. package/esm2020/misc/src/cnpj/cnpj.module.mjs +26 -0
  75. package/esm2020/misc/src/cnpj/cnpjs.pipe.mjs +19 -0
  76. package/esm2020/misc/src/cpf/cpf-model.directive.mjs +17 -0
  77. package/esm2020/misc/src/cpf/cpf.directive.mjs +36 -0
  78. package/esm2020/misc/src/cpf/cpf.module.mjs +24 -0
  79. package/esm2020/misc/src/cpf/cpf.pipe.mjs +19 -0
  80. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj-model.directive.mjs +29 -0
  81. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.directive.mjs +37 -0
  82. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.module.mjs +24 -0
  83. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.pipe.mjs +22 -0
  84. package/esm2020/misc/src/info/info.component.mjs +20 -0
  85. package/esm2020/misc/src/info/info.module.mjs +24 -0
  86. package/{esm2015/misc/src/monetario/monetario-mask.js → esm2020/misc/src/monetario/monetario-mask.mjs} +0 -2
  87. package/esm2020/misc/src/monetario/monetario-model.directive.mjs +133 -0
  88. package/esm2020/misc/src/monetario/monetario.module.mjs +21 -0
  89. package/esm2020/misc/src/monetario/monetario.pipe.mjs +17 -0
  90. package/{esm2015/misc/src/porcentagem/porcentagem-mask.js → esm2020/misc/src/porcentagem/porcentagem-mask.mjs} +0 -2
  91. package/esm2020/misc/src/porcentagem/porcentagem-model.directive.mjs +108 -0
  92. package/esm2020/misc/src/porcentagem/porcentagem.module.mjs +21 -0
  93. package/esm2020/misc/src/porcentagem/porcentagem.pipe.mjs +17 -0
  94. package/esm2020/misc/src/telefone/telefone-model.directive.mjs +29 -0
  95. package/esm2020/misc/src/telefone/telefone.module.mjs +25 -0
  96. package/esm2020/misc/src/telefone/telefone.pipe.mjs +37 -0
  97. package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.directive.mjs +25 -0
  98. package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.module.mjs +20 -0
  99. package/esm2020/model/src/masked-model.directive.mjs +155 -0
  100. package/esm2020/model/src/model.module.mjs +24 -0
  101. package/esm2020/pipe/src/nome-resumido.pipe.mjs +20 -0
  102. package/esm2020/pipe/src/pipe.module.mjs +24 -0
  103. package/esm2020/scroll/src/scroll-container/scroll-container.component.mjs +72 -0
  104. package/esm2020/scroll/src/scroll.module.mjs +22 -0
  105. package/{esm2015/table/main-class-componentes-table.js → esm2020/table/main-class-componentes-table.mjs} +1 -2
  106. package/esm2020/table/src/column/column-cell.directive.mjs +16 -0
  107. package/esm2020/table/src/column/column-footer.directive.mjs +16 -0
  108. package/esm2020/table/src/column/column-header.directive.mjs +16 -0
  109. package/esm2020/table/src/column/column.directive.mjs +37 -0
  110. package/esm2020/table/src/infinite-table/infinite-table.component.mjs +95 -0
  111. package/esm2020/table/src/paginated-table/paginated-table.component.mjs +52 -0
  112. package/esm2020/table/src/paginator/paginator.component.mjs +19 -0
  113. package/esm2020/table/src/table/table.component.mjs +127 -0
  114. package/esm2020/table/src/table.module.mjs +120 -0
  115. package/esm2020/table/src/td/td.component.mjs +18 -0
  116. package/esm2020/table/src/th/th.component.mjs +18 -0
  117. package/fesm2015/main-class-componentes-arquivo.mjs +389 -0
  118. package/fesm2015/main-class-componentes-arquivo.mjs.map +1 -0
  119. package/fesm2015/{main-class-componentes-core.js → main-class-componentes-core.mjs} +43 -37
  120. package/fesm2015/main-class-componentes-core.mjs.map +1 -0
  121. package/fesm2015/{main-class-componentes-crud.js → main-class-componentes-crud.mjs} +32 -22
  122. package/fesm2015/main-class-componentes-crud.mjs.map +1 -0
  123. package/fesm2015/main-class-componentes-date.mjs +162 -0
  124. package/fesm2015/main-class-componentes-date.mjs.map +1 -0
  125. package/fesm2015/main-class-componentes-dialog.mjs +206 -0
  126. package/fesm2015/main-class-componentes-dialog.mjs.map +1 -0
  127. package/fesm2015/main-class-componentes-form.mjs +209 -0
  128. package/fesm2015/main-class-componentes-form.mjs.map +1 -0
  129. package/fesm2015/main-class-componentes-input.mjs +1876 -0
  130. package/fesm2015/main-class-componentes-input.mjs.map +1 -0
  131. package/fesm2015/main-class-componentes-loader.mjs +236 -0
  132. package/fesm2015/main-class-componentes-loader.mjs.map +1 -0
  133. package/fesm2015/main-class-componentes-misc.mjs +787 -0
  134. package/fesm2015/main-class-componentes-misc.mjs.map +1 -0
  135. package/fesm2015/{main-class-componentes-model.js → main-class-componentes-model.mjs} +46 -36
  136. package/fesm2015/main-class-componentes-model.mjs.map +1 -0
  137. package/fesm2015/main-class-componentes-pipe.mjs +48 -0
  138. package/fesm2015/main-class-componentes-pipe.mjs.map +1 -0
  139. package/fesm2015/main-class-componentes-scroll.mjs +98 -0
  140. package/fesm2015/main-class-componentes-scroll.mjs.map +1 -0
  141. package/fesm2015/main-class-componentes-table.mjs +518 -0
  142. package/fesm2015/main-class-componentes-table.mjs.map +1 -0
  143. package/fesm2015/{main-class-componentes-util.js → main-class-componentes-util.mjs} +1 -1
  144. package/fesm2015/main-class-componentes-util.mjs.map +1 -0
  145. package/fesm2015/{main-class-componentes.js → main-class-componentes.mjs} +1 -1
  146. package/fesm2015/main-class-componentes.mjs.map +1 -0
  147. package/fesm2020/main-class-componentes-arquivo.mjs +372 -0
  148. package/fesm2020/main-class-componentes-arquivo.mjs.map +1 -0
  149. package/fesm2020/main-class-componentes-core.mjs +238 -0
  150. package/fesm2020/main-class-componentes-core.mjs.map +1 -0
  151. package/fesm2020/main-class-componentes-crud.mjs +151 -0
  152. package/fesm2020/main-class-componentes-crud.mjs.map +1 -0
  153. package/fesm2020/main-class-componentes-date.mjs +162 -0
  154. package/fesm2020/main-class-componentes-date.mjs.map +1 -0
  155. package/fesm2020/main-class-componentes-dialog.mjs +201 -0
  156. package/fesm2020/main-class-componentes-dialog.mjs.map +1 -0
  157. package/fesm2020/main-class-componentes-form.mjs +204 -0
  158. package/fesm2020/main-class-componentes-form.mjs.map +1 -0
  159. package/fesm2020/main-class-componentes-input.mjs +1860 -0
  160. package/fesm2020/main-class-componentes-input.mjs.map +1 -0
  161. package/fesm2020/main-class-componentes-loader.mjs +234 -0
  162. package/fesm2020/main-class-componentes-loader.mjs.map +1 -0
  163. package/fesm2020/main-class-componentes-misc.mjs +785 -0
  164. package/fesm2020/main-class-componentes-misc.mjs.map +1 -0
  165. package/fesm2020/main-class-componentes-model.mjs +183 -0
  166. package/fesm2020/main-class-componentes-model.mjs.map +1 -0
  167. package/fesm2020/main-class-componentes-pipe.mjs +48 -0
  168. package/fesm2020/main-class-componentes-pipe.mjs.map +1 -0
  169. package/fesm2020/main-class-componentes-scroll.mjs +98 -0
  170. package/fesm2020/main-class-componentes-scroll.mjs.map +1 -0
  171. package/fesm2020/main-class-componentes-table.mjs +510 -0
  172. package/fesm2020/main-class-componentes-table.mjs.map +1 -0
  173. package/fesm2020/main-class-componentes-util.mjs +18 -0
  174. package/fesm2020/main-class-componentes-util.mjs.map +1 -0
  175. package/fesm2020/main-class-componentes.mjs +9 -0
  176. package/fesm2020/main-class-componentes.mjs.map +1 -0
  177. package/form/src/form.component.d.ts +3 -0
  178. package/form/src/form.module.d.ts +10 -0
  179. package/form/src/mensagens-erro/mensagens-erro.component.d.ts +3 -0
  180. package/form/src/single-click.directive.d.ts +3 -0
  181. package/{main-class-componentes.d.ts → index.d.ts} +1 -0
  182. package/input/src/abstract-mat-form-field-control.d.ts +3 -0
  183. package/input/src/input-datetime/input-datetime.component.d.ts +5 -2
  184. package/input/src/input-datetime/input-datetime.module.d.ts +11 -0
  185. package/input/src/input-fileupload/input-fileupload.component.d.ts +3 -0
  186. package/input/src/input-fileupload/input-fileupload.directive.d.ts +3 -0
  187. package/input/src/input-fileupload/input-fileupload.module.d.ts +16 -0
  188. package/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.d.ts +3 -0
  189. package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +3 -0
  190. package/input/src/input-telefone-internacional/input-telefone-internacional.module.d.ts +9 -0
  191. package/input/src/option-checkbox/all-option-checkbox.component.d.ts +3 -0
  192. package/input/src/option-checkbox/option-checkbox-group.component.d.ts +3 -0
  193. package/input/src/option-checkbox/option-checkbox.component.d.ts +3 -0
  194. package/input/src/option-checkbox/option-checkbox.module.d.ts +10 -0
  195. package/input/src/option-checkbox/option-checkbox.service.d.ts +3 -0
  196. package/input/src/select-chips/select-chips.component.d.ts +9 -6
  197. package/input/src/select-chips/select-chips.module.d.ts +11 -0
  198. package/input/src/select-item/select-item.component.d.ts +3 -0
  199. package/input/src/select-item/select-item.module.d.ts +6 -0
  200. package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +3 -0
  201. package/input/src/select-many-checkbox/select-many-checkbox.module.d.ts +9 -0
  202. package/input/src/select-radio/select-radio.component.d.ts +3 -0
  203. package/input/src/select-radio/select-radio.module.d.ts +9 -0
  204. package/loader/src/loader.component.d.ts +3 -0
  205. package/loader/src/loader.module.d.ts +7 -0
  206. package/loader/src/loader.service.d.ts +3 -0
  207. package/misc/src/cnpj/cnpj-model.directive.d.ts +3 -0
  208. package/misc/src/cnpj/cnpj.directive.d.ts +3 -0
  209. package/misc/src/cnpj/cnpj.module.d.ts +9 -0
  210. package/misc/src/cnpj/cnpjs.pipe.d.ts +3 -0
  211. package/misc/src/cpf/cpf-model.directive.d.ts +3 -0
  212. package/misc/src/cpf/cpf.directive.d.ts +3 -0
  213. package/misc/src/cpf/cpf.module.d.ts +8 -0
  214. package/misc/src/cpf/cpf.pipe.d.ts +3 -0
  215. package/misc/src/cpf-cnpj/cpf-cnpj-model.directive.d.ts +3 -0
  216. package/misc/src/cpf-cnpj/cpf-cnpj.directive.d.ts +3 -0
  217. package/misc/src/cpf-cnpj/cpf-cnpj.module.d.ts +8 -0
  218. package/misc/src/cpf-cnpj/cpf-cnpj.pipe.d.ts +3 -0
  219. package/misc/src/info/info.component.d.ts +3 -0
  220. package/misc/src/info/info.module.d.ts +7 -0
  221. package/misc/src/monetario/monetario-model.directive.d.ts +3 -0
  222. package/misc/src/monetario/monetario.module.d.ts +7 -0
  223. package/misc/src/monetario/monetario.pipe.d.ts +3 -0
  224. package/misc/src/porcentagem/porcentagem-model.directive.d.ts +3 -0
  225. package/misc/src/porcentagem/porcentagem.module.d.ts +7 -0
  226. package/misc/src/porcentagem/porcentagem.pipe.d.ts +3 -0
  227. package/misc/src/telefone/telefone-model.directive.d.ts +3 -0
  228. package/misc/src/telefone/telefone.module.d.ts +8 -0
  229. package/misc/src/telefone/telefone.pipe.d.ts +3 -0
  230. package/misc/src/unsafe-inner-html/unsafe-inner-html.directive.d.ts +3 -0
  231. package/misc/src/unsafe-inner-html/unsafe-inner-html.module.d.ts +6 -0
  232. package/model/src/masked-model.directive.d.ts +3 -0
  233. package/model/src/model.module.d.ts +6 -0
  234. package/package.json +132 -8
  235. package/pipe/src/nome-resumido.pipe.d.ts +3 -0
  236. package/pipe/src/pipe.module.d.ts +6 -0
  237. package/scroll/src/scroll-container/scroll-container.component.d.ts +3 -0
  238. package/scroll/src/scroll.module.d.ts +6 -0
  239. package/table/src/column/column-cell.directive.d.ts +3 -0
  240. package/table/src/column/column-footer.directive.d.ts +3 -0
  241. package/table/src/column/column-header.directive.d.ts +3 -0
  242. package/table/src/column/column.directive.d.ts +3 -0
  243. package/table/src/infinite-table/infinite-table.component.d.ts +3 -0
  244. package/table/src/paginated-table/paginated-table.component.d.ts +3 -0
  245. package/table/src/paginator/paginator.component.d.ts +3 -0
  246. package/table/src/table/table.component.d.ts +3 -0
  247. package/table/src/table.module.d.ts +24 -0
  248. package/table/src/td/td.component.d.ts +3 -0
  249. package/table/src/th/th.component.d.ts +3 -0
  250. package/arquivo/main-class-componentes-arquivo.d.ts +0 -4
  251. package/arquivo/main-class-componentes-arquivo.metadata.json +0 -1
  252. package/arquivo/package.json +0 -11
  253. package/bundles/main-class-componentes-arquivo.umd.js +0 -687
  254. package/bundles/main-class-componentes-arquivo.umd.js.map +0 -1
  255. package/bundles/main-class-componentes-arquivo.umd.min.js +0 -16
  256. package/bundles/main-class-componentes-arquivo.umd.min.js.map +0 -1
  257. package/bundles/main-class-componentes-core.umd.js +0 -252
  258. package/bundles/main-class-componentes-core.umd.js.map +0 -1
  259. package/bundles/main-class-componentes-core.umd.min.js +0 -2
  260. package/bundles/main-class-componentes-core.umd.min.js.map +0 -1
  261. package/bundles/main-class-componentes-crud.umd.js +0 -543
  262. package/bundles/main-class-componentes-crud.umd.js.map +0 -1
  263. package/bundles/main-class-componentes-crud.umd.min.js +0 -16
  264. package/bundles/main-class-componentes-crud.umd.min.js.map +0 -1
  265. package/bundles/main-class-componentes-date.umd.js +0 -185
  266. package/bundles/main-class-componentes-date.umd.js.map +0 -1
  267. package/bundles/main-class-componentes-date.umd.min.js +0 -2
  268. package/bundles/main-class-componentes-date.umd.min.js.map +0 -1
  269. package/bundles/main-class-componentes-dialog.umd.js +0 -214
  270. package/bundles/main-class-componentes-dialog.umd.js.map +0 -1
  271. package/bundles/main-class-componentes-dialog.umd.min.js +0 -2
  272. package/bundles/main-class-componentes-dialog.umd.min.js.map +0 -1
  273. package/bundles/main-class-componentes-form.umd.js +0 -211
  274. package/bundles/main-class-componentes-form.umd.js.map +0 -1
  275. package/bundles/main-class-componentes-form.umd.min.js +0 -2
  276. package/bundles/main-class-componentes-form.umd.min.js.map +0 -1
  277. package/bundles/main-class-componentes-input.umd.js +0 -2251
  278. package/bundles/main-class-componentes-input.umd.js.map +0 -1
  279. package/bundles/main-class-componentes-input.umd.min.js +0 -17
  280. package/bundles/main-class-componentes-input.umd.min.js.map +0 -1
  281. package/bundles/main-class-componentes-loader.umd.js +0 -241
  282. package/bundles/main-class-componentes-loader.umd.js.map +0 -1
  283. package/bundles/main-class-componentes-loader.umd.min.js +0 -2
  284. package/bundles/main-class-componentes-loader.umd.min.js.map +0 -1
  285. package/bundles/main-class-componentes-misc.umd.js +0 -1122
  286. package/bundles/main-class-componentes-misc.umd.js.map +0 -1
  287. package/bundles/main-class-componentes-misc.umd.min.js +0 -16
  288. package/bundles/main-class-componentes-misc.umd.min.js.map +0 -1
  289. package/bundles/main-class-componentes-model.umd.js +0 -196
  290. package/bundles/main-class-componentes-model.umd.js.map +0 -1
  291. package/bundles/main-class-componentes-model.umd.min.js +0 -2
  292. package/bundles/main-class-componentes-model.umd.min.js.map +0 -1
  293. package/bundles/main-class-componentes-pipe.umd.js +0 -58
  294. package/bundles/main-class-componentes-pipe.umd.js.map +0 -1
  295. package/bundles/main-class-componentes-pipe.umd.min.js +0 -2
  296. package/bundles/main-class-componentes-pipe.umd.min.js.map +0 -1
  297. package/bundles/main-class-componentes-scroll.umd.js +0 -106
  298. package/bundles/main-class-componentes-scroll.umd.js.map +0 -1
  299. package/bundles/main-class-componentes-scroll.umd.min.js +0 -2
  300. package/bundles/main-class-componentes-scroll.umd.min.js.map +0 -1
  301. package/bundles/main-class-componentes-table.umd.js +0 -787
  302. package/bundles/main-class-componentes-table.umd.js.map +0 -1
  303. package/bundles/main-class-componentes-table.umd.min.js +0 -17
  304. package/bundles/main-class-componentes-table.umd.min.js.map +0 -1
  305. package/bundles/main-class-componentes-util.umd.js +0 -31
  306. package/bundles/main-class-componentes-util.umd.js.map +0 -1
  307. package/bundles/main-class-componentes-util.umd.min.js +0 -2
  308. package/bundles/main-class-componentes-util.umd.min.js.map +0 -1
  309. package/bundles/main-class-componentes.umd.js +0 -16
  310. package/bundles/main-class-componentes.umd.js.map +0 -1
  311. package/bundles/main-class-componentes.umd.min.js +0 -2
  312. package/bundles/main-class-componentes.umd.min.js.map +0 -1
  313. package/core/main-class-componentes-core.d.ts +0 -4
  314. package/core/main-class-componentes-core.metadata.json +0 -1
  315. package/core/package.json +0 -11
  316. package/crud/main-class-componentes-crud.d.ts +0 -4
  317. package/crud/main-class-componentes-crud.metadata.json +0 -1
  318. package/crud/package.json +0 -11
  319. package/date/main-class-componentes-date.d.ts +0 -4
  320. package/date/main-class-componentes-date.metadata.json +0 -1
  321. package/date/package.json +0 -11
  322. package/dialog/main-class-componentes-dialog.d.ts +0 -4
  323. package/dialog/main-class-componentes-dialog.metadata.json +0 -1
  324. package/dialog/package.json +0 -11
  325. package/esm2015/arquivo/src/arquivo.module.js +0 -30
  326. package/esm2015/arquivo/src/download-arquivo.directive.js +0 -44
  327. package/esm2015/arquivo/src/imagem.directive.js +0 -80
  328. package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
  329. package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +0 -136
  330. package/esm2015/core/src/core.module.js +0 -27
  331. package/esm2015/core/src/criptografia/criptografia.service.js +0 -13
  332. package/esm2015/core/src/mensageria/mensageria.service.js +0 -48
  333. package/esm2015/core/src/mobile/mobile.service.js +0 -45
  334. package/esm2015/core/src/validator/valida-modulo11.service.js +0 -92
  335. package/esm2015/crud/src/abstract-consulta-component.js +0 -60
  336. package/esm2015/crud/src/abstract-consulta-paginada-component.js +0 -48
  337. package/esm2015/crud/src/abstract-edicao-component.js +0 -29
  338. package/esm2015/crud/src/abstract-edicao-modal-component.js +0 -24
  339. package/esm2015/date/src/date.module.js +0 -19
  340. package/esm2015/date/src/validator/data-validator.directive.js +0 -97
  341. package/esm2015/date/src/validator/futuro.directive.js +0 -26
  342. package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
  343. package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +0 -59
  344. package/esm2015/dialog/src/dialog.module.js +0 -37
  345. package/esm2015/dialog/src/dialog.service.js +0 -55
  346. package/esm2015/form/src/form.component.js +0 -103
  347. package/esm2015/form/src/form.module.js +0 -25
  348. package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +0 -31
  349. package/esm2015/form/src/single-click.directive.js +0 -35
  350. package/esm2015/input/main-class-componentes-input.js +0 -6
  351. package/esm2015/input/src/abstract-mat-form-field-control.js +0 -110
  352. package/esm2015/input/src/input-datetime/input-datetime.component.js +0 -114
  353. package/esm2015/input/src/input-datetime/input-datetime.module.js +0 -60
  354. package/esm2015/input/src/input-fileupload/input-fileupload.component.js +0 -324
  355. package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +0 -34
  356. package/esm2015/input/src/input-fileupload/input-fileupload.module.js +0 -34
  357. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
  358. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
  359. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
  360. package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +0 -36
  361. package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +0 -71
  362. package/esm2015/input/src/option-checkbox/option-checkbox.component.js +0 -59
  363. package/esm2015/input/src/option-checkbox/option-checkbox.module.js +0 -30
  364. package/esm2015/input/src/option-checkbox/option-checkbox.service.js +0 -52
  365. package/esm2015/input/src/select-chips/select-chips.component.js +0 -177
  366. package/esm2015/input/src/select-chips/select-chips.module.js +0 -25
  367. package/esm2015/input/src/select-item/select-item.component.js +0 -20
  368. package/esm2015/input/src/select-item/select-item.module.js +0 -15
  369. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +0 -150
  370. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +0 -21
  371. package/esm2015/input/src/select-radio/select-radio.component.js +0 -124
  372. package/esm2015/input/src/select-radio/select-radio.module.js +0 -21
  373. package/esm2015/loader/src/loader.component.js +0 -112
  374. package/esm2015/loader/src/loader.module.js +0 -30
  375. package/esm2015/loader/src/loader.service.js +0 -70
  376. package/esm2015/misc/src/cnpj/cnpj-model.directive.js +0 -13
  377. package/esm2015/misc/src/cnpj/cnpj.directive.js +0 -31
  378. package/esm2015/misc/src/cnpj/cnpj.module.js +0 -19
  379. package/esm2015/misc/src/cnpj/cnpjs.pipe.js +0 -15
  380. package/esm2015/misc/src/cpf/cpf-model.directive.js +0 -13
  381. package/esm2015/misc/src/cpf/cpf.directive.js +0 -31
  382. package/esm2015/misc/src/cpf/cpf.module.js +0 -19
  383. package/esm2015/misc/src/cpf/cpf.pipe.js +0 -15
  384. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
  385. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +0 -32
  386. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +0 -19
  387. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
  388. package/esm2015/misc/src/info/info.component.js +0 -20
  389. package/esm2015/misc/src/info/info.module.js +0 -17
  390. package/esm2015/misc/src/monetario/monetario-model.directive.js +0 -124
  391. package/esm2015/misc/src/monetario/monetario.module.js +0 -16
  392. package/esm2015/misc/src/monetario/monetario.pipe.js +0 -13
  393. package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +0 -99
  394. package/esm2015/misc/src/porcentagem/porcentagem.module.js +0 -16
  395. package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +0 -13
  396. package/esm2015/misc/src/telefone/telefone-model.directive.js +0 -25
  397. package/esm2015/misc/src/telefone/telefone.module.js +0 -18
  398. package/esm2015/misc/src/telefone/telefone.pipe.js +0 -33
  399. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
  400. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
  401. package/esm2015/model/src/masked-model.directive.js +0 -149
  402. package/esm2015/model/src/model.module.js +0 -19
  403. package/esm2015/pipe/src/nome-resumido.pipe.js +0 -16
  404. package/esm2015/pipe/src/pipe.module.js +0 -19
  405. package/esm2015/scroll/src/scroll-container/scroll-container.component.js +0 -69
  406. package/esm2015/scroll/src/scroll.module.js +0 -17
  407. package/esm2015/table/src/column/column-cell.directive.js +0 -15
  408. package/esm2015/table/src/column/column-footer.directive.js +0 -15
  409. package/esm2015/table/src/column/column-header.directive.js +0 -15
  410. package/esm2015/table/src/column/column.directive.js +0 -28
  411. package/esm2015/table/src/infinite-table/infinite-table.component.js +0 -92
  412. package/esm2015/table/src/paginated-table/paginated-table.component.js +0 -43
  413. package/esm2015/table/src/paginator/paginator.component.js +0 -12
  414. package/esm2015/table/src/table/table.component.js +0 -119
  415. package/esm2015/table/src/table.module.js +0 -74
  416. package/esm2015/table/src/td/td.component.js +0 -19
  417. package/esm2015/table/src/th/th.component.js +0 -19
  418. package/fesm2015/main-class-componentes-arquivo.js +0 -338
  419. package/fesm2015/main-class-componentes-arquivo.js.map +0 -1
  420. package/fesm2015/main-class-componentes-core.js.map +0 -1
  421. package/fesm2015/main-class-componentes-crud.js.map +0 -1
  422. package/fesm2015/main-class-componentes-date.js +0 -143
  423. package/fesm2015/main-class-componentes-date.js.map +0 -1
  424. package/fesm2015/main-class-componentes-dialog.js +0 -185
  425. package/fesm2015/main-class-componentes-dialog.js.map +0 -1
  426. package/fesm2015/main-class-componentes-form.js +0 -191
  427. package/fesm2015/main-class-componentes-form.js.map +0 -1
  428. package/fesm2015/main-class-componentes-input.js +0 -1611
  429. package/fesm2015/main-class-componentes-input.js.map +0 -1
  430. package/fesm2015/main-class-componentes-loader.js +0 -214
  431. package/fesm2015/main-class-componentes-loader.js.map +0 -1
  432. package/fesm2015/main-class-componentes-misc.js +0 -688
  433. package/fesm2015/main-class-componentes-misc.js.map +0 -1
  434. package/fesm2015/main-class-componentes-model.js.map +0 -1
  435. package/fesm2015/main-class-componentes-pipe.js +0 -40
  436. package/fesm2015/main-class-componentes-pipe.js.map +0 -1
  437. package/fesm2015/main-class-componentes-scroll.js +0 -91
  438. package/fesm2015/main-class-componentes-scroll.js.map +0 -1
  439. package/fesm2015/main-class-componentes-table.js +0 -446
  440. package/fesm2015/main-class-componentes-table.js.map +0 -1
  441. package/fesm2015/main-class-componentes-util.js.map +0 -1
  442. package/fesm2015/main-class-componentes.js.map +0 -1
  443. package/form/main-class-componentes-form.d.ts +0 -4
  444. package/form/main-class-componentes-form.metadata.json +0 -1
  445. package/form/package.json +0 -11
  446. package/input/main-class-componentes-input.d.ts +0 -5
  447. package/input/main-class-componentes-input.metadata.json +0 -1
  448. package/input/package.json +0 -11
  449. package/loader/main-class-componentes-loader.d.ts +0 -4
  450. package/loader/main-class-componentes-loader.metadata.json +0 -1
  451. package/loader/package.json +0 -11
  452. package/main-class-componentes.metadata.json +0 -1
  453. package/misc/main-class-componentes-misc.d.ts +0 -4
  454. package/misc/main-class-componentes-misc.metadata.json +0 -1
  455. package/misc/package.json +0 -11
  456. package/model/main-class-componentes-model.d.ts +0 -4
  457. package/model/main-class-componentes-model.metadata.json +0 -1
  458. package/model/package.json +0 -11
  459. package/pipe/main-class-componentes-pipe.d.ts +0 -4
  460. package/pipe/main-class-componentes-pipe.metadata.json +0 -1
  461. package/pipe/package.json +0 -11
  462. package/scroll/main-class-componentes-scroll.d.ts +0 -4
  463. package/scroll/main-class-componentes-scroll.metadata.json +0 -1
  464. package/scroll/package.json +0 -11
  465. package/table/main-class-componentes-table.d.ts +0 -5
  466. package/table/main-class-componentes-table.metadata.json +0 -1
  467. package/table/package.json +0 -11
  468. package/util/main-class-componentes-util.d.ts +0 -4
  469. package/util/main-class-componentes-util.metadata.json +0 -1
  470. package/util/package.json +0 -11
  471. /package/{esm2015/arquivo/index.js → esm2020/arquivo/index.mjs} +0 -0
  472. /package/{esm2015/arquivo/main-class-componentes-arquivo.js → esm2020/arquivo/main-class-componentes-arquivo.mjs} +0 -0
  473. /package/{esm2015/arquivo/src/arquivo-manager.service.js → esm2020/arquivo/src/arquivo-manager.service.mjs} +0 -0
  474. /package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  475. /package/{esm2015/core/main-class-componentes-core.js → esm2020/core/main-class-componentes-core.mjs} +0 -0
  476. /package/{esm2015/crud/index.js → esm2020/crud/index.mjs} +0 -0
  477. /package/{esm2015/crud/main-class-componentes-crud.js → esm2020/crud/main-class-componentes-crud.mjs} +0 -0
  478. /package/{esm2015/date/index.js → esm2020/date/index.mjs} +0 -0
  479. /package/{esm2015/date/main-class-componentes-date.js → esm2020/date/main-class-componentes-date.mjs} +0 -0
  480. /package/{esm2015/dialog/index.js → esm2020/dialog/index.mjs} +0 -0
  481. /package/{esm2015/dialog/main-class-componentes-dialog.js → esm2020/dialog/main-class-componentes-dialog.mjs} +0 -0
  482. /package/{esm2015/form/index.js → esm2020/form/index.mjs} +0 -0
  483. /package/{esm2015/form/main-class-componentes-form.js → esm2020/form/main-class-componentes-form.mjs} +0 -0
  484. /package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  485. /package/{esm2015/input/src/option-checkbox/node-pool.js → esm2020/input/src/option-checkbox/node-pool.mjs} +0 -0
  486. /package/{esm2015/input/src/option-checkbox/option-node.js → esm2020/input/src/option-checkbox/option-node.mjs} +0 -0
  487. /package/{esm2015/loader/index.js → esm2020/loader/index.mjs} +0 -0
  488. /package/{esm2015/loader/main-class-componentes-loader.js → esm2020/loader/main-class-componentes-loader.mjs} +0 -0
  489. /package/{esm2015/main-class-componentes.js → esm2020/main-class-componentes.mjs} +0 -0
  490. /package/{esm2015/misc/index.js → esm2020/misc/index.mjs} +0 -0
  491. /package/{esm2015/misc/main-class-componentes-misc.js → esm2020/misc/main-class-componentes-misc.mjs} +0 -0
  492. /package/{esm2015/model/index.js → esm2020/model/index.mjs} +0 -0
  493. /package/{esm2015/model/main-class-componentes-model.js → esm2020/model/main-class-componentes-model.mjs} +0 -0
  494. /package/{esm2015/pipe/index.js → esm2020/pipe/index.mjs} +0 -0
  495. /package/{esm2015/pipe/main-class-componentes-pipe.js → esm2020/pipe/main-class-componentes-pipe.mjs} +0 -0
  496. /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  497. /package/{esm2015/scroll/index.js → esm2020/scroll/index.mjs} +0 -0
  498. /package/{esm2015/scroll/main-class-componentes-scroll.js → esm2020/scroll/main-class-componentes-scroll.mjs} +0 -0
  499. /package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  500. /package/{esm2015/table/src/paginator-i18n.js → esm2020/table/src/paginator-i18n.mjs} +0 -0
  501. /package/{esm2015/util/index.js → esm2020/util/index.mjs} +0 -0
  502. /package/{esm2015/util/main-class-componentes-util.js → esm2020/util/main-class-componentes-util.mjs} +0 -0
  503. /package/{esm2015/util/src/string.util.js → esm2020/util/src/string.util.mjs} +0 -0
@@ -1,1122 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@main-class/componentes/model'), require('@angular/forms'), require('@main-class/componentes/core'), require('@angular/common'), require('@angular/material/icon'), require('rxjs')) :
3
- typeof define === 'function' && define.amd ? define('@main-class/componentes/misc', ['exports', '@angular/core', '@main-class/componentes/model', '@angular/forms', '@main-class/componentes/core', '@angular/common', '@angular/material/icon', 'rxjs'], 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.misc = {}), global.ng.core, global['main-class'].componentes.model, global.ng.forms, global['main-class'].componentes.core, global.ng.common, global.ng.material.icon, global.rxjs));
5
- }(this, (function (exports, core, model, forms, core$1, common, icon, rxjs) { 'use strict';
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation. All rights reserved.
9
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
- this file except in compliance with the License. You may obtain a copy of the
11
- License at http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
- MERCHANTABLITY OR NON-INFRINGEMENT.
17
-
18
- See the Apache Version 2.0 License for specific language governing permissions
19
- and limitations under the License.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
- var extendStatics = function (d, b) {
23
- extendStatics = Object.setPrototypeOf ||
24
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
- function (d, b) { for (var p in b)
26
- if (b.hasOwnProperty(p))
27
- d[p] = b[p]; };
28
- return extendStatics(d, b);
29
- };
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
- var __assign = function () {
36
- __assign = Object.assign || function __assign(t) {
37
- for (var s, i = 1, n = arguments.length; i < n; i++) {
38
- s = arguments[i];
39
- for (var p in s)
40
- if (Object.prototype.hasOwnProperty.call(s, p))
41
- t[p] = s[p];
42
- }
43
- return t;
44
- };
45
- return __assign.apply(this, arguments);
46
- };
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s)
50
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
- t[p] = s[p];
52
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
- t[p[i]] = s[p[i]];
56
- }
57
- return t;
58
- }
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
62
- r = Reflect.decorate(decorators, target, key, desc);
63
- else
64
- for (var i = decorators.length - 1; i >= 0; i--)
65
- if (d = decorators[i])
66
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
- return c > 3 && r && Object.defineProperty(target, key, r), r;
68
- }
69
- function __param(paramIndex, decorator) {
70
- return function (target, key) { decorator(target, key, paramIndex); };
71
- }
72
- function __metadata(metadataKey, metadataValue) {
73
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
- return Reflect.metadata(metadataKey, metadataValue);
75
- }
76
- function __awaiter(thisArg, _arguments, P, generator) {
77
- return new (P || (P = Promise))(function (resolve, reject) {
78
- function fulfilled(value) { try {
79
- step(generator.next(value));
80
- }
81
- catch (e) {
82
- reject(e);
83
- } }
84
- function rejected(value) { try {
85
- step(generator["throw"](value));
86
- }
87
- catch (e) {
88
- reject(e);
89
- } }
90
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
91
- step((generator = generator.apply(thisArg, _arguments || [])).next());
92
- });
93
- }
94
- function __generator(thisArg, body) {
95
- var _ = { label: 0, sent: function () { if (t[0] & 1)
96
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
97
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
98
- function verb(n) { return function (v) { return step([n, v]); }; }
99
- function step(op) {
100
- if (f)
101
- throw new TypeError("Generator is already executing.");
102
- while (_)
103
- try {
104
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
105
- return t;
106
- if (y = 0, t)
107
- op = [op[0] & 2, t.value];
108
- switch (op[0]) {
109
- case 0:
110
- case 1:
111
- t = op;
112
- break;
113
- case 4:
114
- _.label++;
115
- return { value: op[1], done: false };
116
- case 5:
117
- _.label++;
118
- y = op[1];
119
- op = [0];
120
- continue;
121
- case 7:
122
- op = _.ops.pop();
123
- _.trys.pop();
124
- continue;
125
- default:
126
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
127
- _ = 0;
128
- continue;
129
- }
130
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
131
- _.label = op[1];
132
- break;
133
- }
134
- if (op[0] === 6 && _.label < t[1]) {
135
- _.label = t[1];
136
- t = op;
137
- break;
138
- }
139
- if (t && _.label < t[2]) {
140
- _.label = t[2];
141
- _.ops.push(op);
142
- break;
143
- }
144
- if (t[2])
145
- _.ops.pop();
146
- _.trys.pop();
147
- continue;
148
- }
149
- op = body.call(thisArg, _);
150
- }
151
- catch (e) {
152
- op = [6, e];
153
- y = 0;
154
- }
155
- finally {
156
- f = t = 0;
157
- }
158
- if (op[0] & 5)
159
- throw op[1];
160
- return { value: op[0] ? op[1] : void 0, done: true };
161
- }
162
- }
163
- function __exportStar(m, exports) {
164
- for (var p in m)
165
- if (!exports.hasOwnProperty(p))
166
- exports[p] = m[p];
167
- }
168
- function __values(o) {
169
- var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
170
- if (m)
171
- return m.call(o);
172
- return {
173
- next: function () {
174
- if (o && i >= o.length)
175
- o = void 0;
176
- return { value: o && o[i++], done: !o };
177
- }
178
- };
179
- }
180
- function __read(o, n) {
181
- var m = typeof Symbol === "function" && o[Symbol.iterator];
182
- if (!m)
183
- return o;
184
- var i = m.call(o), r, ar = [], e;
185
- try {
186
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
187
- ar.push(r.value);
188
- }
189
- catch (error) {
190
- e = { error: error };
191
- }
192
- finally {
193
- try {
194
- if (r && !r.done && (m = i["return"]))
195
- m.call(i);
196
- }
197
- finally {
198
- if (e)
199
- throw e.error;
200
- }
201
- }
202
- return ar;
203
- }
204
- function __spread() {
205
- for (var ar = [], i = 0; i < arguments.length; i++)
206
- ar = ar.concat(__read(arguments[i]));
207
- return ar;
208
- }
209
- function __spreadArrays() {
210
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
211
- s += arguments[i].length;
212
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
213
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
214
- r[k] = a[j];
215
- return r;
216
- }
217
- ;
218
- function __await(v) {
219
- return this instanceof __await ? (this.v = v, this) : new __await(v);
220
- }
221
- function __asyncGenerator(thisArg, _arguments, generator) {
222
- if (!Symbol.asyncIterator)
223
- throw new TypeError("Symbol.asyncIterator is not defined.");
224
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
225
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
226
- function verb(n) { if (g[n])
227
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
228
- function resume(n, v) { try {
229
- step(g[n](v));
230
- }
231
- catch (e) {
232
- settle(q[0][3], e);
233
- } }
234
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
235
- function fulfill(value) { resume("next", value); }
236
- function reject(value) { resume("throw", value); }
237
- function settle(f, v) { if (f(v), q.shift(), q.length)
238
- resume(q[0][0], q[0][1]); }
239
- }
240
- function __asyncDelegator(o) {
241
- var i, p;
242
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
243
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
244
- }
245
- function __asyncValues(o) {
246
- if (!Symbol.asyncIterator)
247
- throw new TypeError("Symbol.asyncIterator is not defined.");
248
- var m = o[Symbol.asyncIterator], i;
249
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
250
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
251
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
252
- }
253
- function __makeTemplateObject(cooked, raw) {
254
- if (Object.defineProperty) {
255
- Object.defineProperty(cooked, "raw", { value: raw });
256
- }
257
- else {
258
- cooked.raw = raw;
259
- }
260
- return cooked;
261
- }
262
- ;
263
- function __importStar(mod) {
264
- if (mod && mod.__esModule)
265
- return mod;
266
- var result = {};
267
- if (mod != null)
268
- for (var k in mod)
269
- if (Object.hasOwnProperty.call(mod, k))
270
- result[k] = mod[k];
271
- result.default = mod;
272
- return result;
273
- }
274
- function __importDefault(mod) {
275
- return (mod && mod.__esModule) ? mod : { default: mod };
276
- }
277
-
278
- var CnpjModelDirective = /** @class */ (function (_super) {
279
- __extends(CnpjModelDirective, _super);
280
- function CnpjModelDirective() {
281
- return _super !== null && _super.apply(this, arguments) || this;
282
- }
283
- CnpjModelDirective.prototype.ngOnInit = function () {
284
- this.mask = '##.###.###/####-##';
285
- };
286
- return CnpjModelDirective;
287
- }(model.MaskedModelDirective));
288
- CnpjModelDirective.decorators = [
289
- { type: core.Directive, args: [{
290
- selector: '[mclModel][ngModel][cnpj]:not([mask])',
291
- },] }
292
- ];
293
-
294
- var CnpjDirective = /** @class */ (function () {
295
- function CnpjDirective(modulo11Service) {
296
- this.modulo11Service = modulo11Service;
297
- }
298
- CnpjDirective.prototype.validate = function (control) {
299
- if (control.value) {
300
- var unmasked = control.value.replace(/\D+/g, '');
301
- if (unmasked.length !== 14 || !this.modulo11Service.isValidCgc(unmasked)) {
302
- return { cnpj: true };
303
- }
304
- }
305
- return null;
306
- };
307
- return CnpjDirective;
308
- }());
309
- CnpjDirective.decorators = [
310
- { type: core.Directive, args: [{
311
- selector: '[mclCnpj],[mclModel][cnpj]',
312
- providers: [{
313
- provide: forms.NG_VALIDATORS,
314
- useExisting: CnpjDirective,
315
- multi: true
316
- }]
317
- },] }
318
- ];
319
- CnpjDirective.ctorParameters = function () { return [
320
- { type: core$1.ValidaModulo11Service }
321
- ]; };
322
-
323
- var CnpjsPipe = /** @class */ (function () {
324
- function CnpjsPipe() {
325
- }
326
- CnpjsPipe.prototype.transform = function (value) {
327
- var args = [];
328
- for (var _i = 1; _i < arguments.length; _i++) {
329
- args[_i - 1] = arguments[_i];
330
- }
331
- if (value) {
332
- return model.doApplyMask(value, '##.###.###/####-##');
333
- }
334
- };
335
- return CnpjsPipe;
336
- }());
337
- CnpjsPipe.decorators = [
338
- { type: core.Pipe, args: [{
339
- name: 'cnpj'
340
- },] }
341
- ];
342
-
343
- var CnpjModule = /** @class */ (function () {
344
- function CnpjModule() {
345
- }
346
- return CnpjModule;
347
- }());
348
- CnpjModule.decorators = [
349
- { type: core.NgModule, args: [{
350
- declarations: [CnpjDirective, CnpjModelDirective, CnpjsPipe],
351
- exports: [CnpjDirective, CnpjModelDirective, CnpjsPipe],
352
- imports: [
353
- common.CommonModule,
354
- core$1.CoreModule,
355
- ]
356
- },] }
357
- ];
358
-
359
- var CpfModelDirective = /** @class */ (function (_super) {
360
- __extends(CpfModelDirective, _super);
361
- function CpfModelDirective() {
362
- return _super !== null && _super.apply(this, arguments) || this;
363
- }
364
- CpfModelDirective.prototype.ngOnInit = function () {
365
- this.mask = '###.###.###-##';
366
- };
367
- return CpfModelDirective;
368
- }(model.MaskedModelDirective));
369
- CpfModelDirective.decorators = [
370
- { type: core.Directive, args: [{
371
- selector: '[mclModel][ngModel][cpf]:not([mask])',
372
- },] }
373
- ];
374
-
375
- var CpfDirective = /** @class */ (function () {
376
- function CpfDirective(modulo11Service) {
377
- this.modulo11Service = modulo11Service;
378
- }
379
- CpfDirective.prototype.validate = function (control) {
380
- if (control.value) {
381
- var unmasked = control.value.replace(/\D+/g, '');
382
- if (unmasked.length !== 11 || !this.modulo11Service.isValidCpf(unmasked)) {
383
- return { cpf: true };
384
- }
385
- }
386
- return null;
387
- };
388
- return CpfDirective;
389
- }());
390
- CpfDirective.decorators = [
391
- { type: core.Directive, args: [{
392
- selector: '[mclCpf],[mclModel][cpf]',
393
- providers: [{
394
- provide: forms.NG_VALIDATORS,
395
- useExisting: CpfDirective,
396
- multi: true
397
- }]
398
- },] }
399
- ];
400
- CpfDirective.ctorParameters = function () { return [
401
- { type: core$1.ValidaModulo11Service }
402
- ]; };
403
-
404
- var CpfPipe = /** @class */ (function () {
405
- function CpfPipe() {
406
- }
407
- CpfPipe.prototype.transform = function (value) {
408
- var args = [];
409
- for (var _i = 1; _i < arguments.length; _i++) {
410
- args[_i - 1] = arguments[_i];
411
- }
412
- if (value) {
413
- return model.doApplyMask(value, '###.###.###-##');
414
- }
415
- };
416
- return CpfPipe;
417
- }());
418
- CpfPipe.decorators = [
419
- { type: core.Pipe, args: [{
420
- name: 'cpf'
421
- },] }
422
- ];
423
-
424
- var CpfModule = /** @class */ (function () {
425
- function CpfModule() {
426
- }
427
- return CpfModule;
428
- }());
429
- CpfModule.decorators = [
430
- { type: core.NgModule, args: [{
431
- declarations: [CpfModelDirective, CpfDirective, CpfPipe],
432
- exports: [
433
- CpfModelDirective, CpfDirective, CpfPipe
434
- ],
435
- imports: [
436
- common.CommonModule
437
- ]
438
- },] }
439
- ];
440
-
441
- var CpfCnpjModelDirective = /** @class */ (function (_super) {
442
- __extends(CpfCnpjModelDirective, _super);
443
- function CpfCnpjModelDirective() {
444
- return _super !== null && _super.apply(this, arguments) || this;
445
- }
446
- CpfCnpjModelDirective.prototype.ngOnInit = function () {
447
- this.mask = '###.###.###-##';
448
- };
449
- CpfCnpjModelDirective.prototype.applyMask = function (value) {
450
- if (value && value.replace(/\D/g, '').length > 11) {
451
- return model.doApplyMask(value, '##.###.###/####-##');
452
- }
453
- return model.doApplyMask(value, '###.###.###-##');
454
- };
455
- CpfCnpjModelDirective.prototype.removeMask = function (value) {
456
- if (value && value.replace(/\D/g, '').length > 11) {
457
- return model.doRemoveMask(value, '##.###.###/####-##');
458
- }
459
- return model.doRemoveMask(value, '###.###.###-##');
460
- };
461
- return CpfCnpjModelDirective;
462
- }(model.MaskedModelDirective));
463
- CpfCnpjModelDirective.decorators = [
464
- { type: core.Directive, args: [{
465
- selector: '[mclModel][ngModel][cpfCnpj]:not([mask])',
466
- },] }
467
- ];
468
-
469
- var CpfCnpjDirective = /** @class */ (function () {
470
- function CpfCnpjDirective(modulo11Service) {
471
- this.modulo11Service = modulo11Service;
472
- }
473
- CpfCnpjDirective.prototype.validate = function (control) {
474
- if (control.value) {
475
- var unmasked = control.value.replace(/\D+/g, '');
476
- if ((unmasked.length !== 11 || !this.modulo11Service.isValidCpf(unmasked)) &&
477
- (unmasked.length !== 14 || !this.modulo11Service.isValidCgc(unmasked))) {
478
- return { cpfCnpj: true };
479
- }
480
- }
481
- return null;
482
- };
483
- return CpfCnpjDirective;
484
- }());
485
- CpfCnpjDirective.decorators = [
486
- { type: core.Directive, args: [{
487
- selector: '[mclCpfCnpj],[mclModel][cpfCnpj]',
488
- providers: [{
489
- provide: forms.NG_VALIDATORS,
490
- useExisting: CpfCnpjDirective,
491
- multi: true
492
- }]
493
- },] }
494
- ];
495
- CpfCnpjDirective.ctorParameters = function () { return [
496
- { type: core$1.ValidaModulo11Service }
497
- ]; };
498
-
499
- var CpfCnpjPipe = /** @class */ (function () {
500
- function CpfCnpjPipe() {
501
- }
502
- CpfCnpjPipe.prototype.transform = function (value) {
503
- var args = [];
504
- for (var _i = 1; _i < arguments.length; _i++) {
505
- args[_i - 1] = arguments[_i];
506
- }
507
- if (value) {
508
- if (value.length > 11) {
509
- return model.doApplyMask(value, '##.###.###/####-##');
510
- }
511
- return model.doApplyMask(value, '###.###.###-##');
512
- }
513
- };
514
- return CpfCnpjPipe;
515
- }());
516
- CpfCnpjPipe.decorators = [
517
- { type: core.Pipe, args: [{
518
- name: 'cpfCnpj'
519
- },] }
520
- ];
521
-
522
- var CpfCnpjModule = /** @class */ (function () {
523
- function CpfCnpjModule() {
524
- }
525
- return CpfCnpjModule;
526
- }());
527
- CpfCnpjModule.decorators = [
528
- { type: core.NgModule, args: [{
529
- declarations: [CpfCnpjModelDirective, CpfCnpjDirective, CpfCnpjPipe],
530
- exports: [
531
- CpfCnpjModelDirective, CpfCnpjDirective, CpfCnpjPipe
532
- ],
533
- imports: [
534
- common.CommonModule
535
- ]
536
- },] }
537
- ];
538
-
539
- var InfoComponent = /** @class */ (function () {
540
- function InfoComponent() {
541
- this.tipo = 'info';
542
- }
543
- InfoComponent.prototype.ngOnInit = function () {
544
- };
545
- return InfoComponent;
546
- }());
547
- InfoComponent.decorators = [
548
- { type: core.Component, args: [{
549
- selector: 'mcl-info',
550
- 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",
551
- 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}"]
552
- },] }
553
- ];
554
- InfoComponent.ctorParameters = function () { return []; };
555
- InfoComponent.propDecorators = {
556
- tipo: [{ type: core.Input }]
557
- };
558
-
559
- var InfoModule = /** @class */ (function () {
560
- function InfoModule() {
561
- }
562
- return InfoModule;
563
- }());
564
- InfoModule.decorators = [
565
- { type: core.NgModule, args: [{
566
- declarations: [InfoComponent],
567
- exports: [InfoComponent],
568
- imports: [
569
- common.CommonModule,
570
- icon.MatIconModule
571
- ]
572
- },] }
573
- ];
574
-
575
- var monetarioMask = function (value, prefixo, milhar, fracional, mascara) {
576
- if (prefixo === void 0) { prefixo = 'R$'; }
577
- if (milhar === void 0) { milhar = '.'; }
578
- if (fracional === void 0) { fracional = ','; }
579
- if (mascara === void 0) { mascara = '###.###.###.###.###,##'; }
580
- if (!value) {
581
- return undefined;
582
- }
583
- var maskedValue = '';
584
- var valorRestante = value.replace(/\D/g, '').replace(/^0+/, '');
585
- while (valorRestante.length < (mascara.length - mascara.indexOf(','))) {
586
- valorRestante = '0' + valorRestante;
587
- }
588
- for (var i = mascara.length - 1; i >= 0 && valorRestante.length; i--) {
589
- if (mascara[i] === '.') {
590
- maskedValue = milhar + maskedValue;
591
- continue;
592
- }
593
- else if (mascara[i] === ',') {
594
- maskedValue = fracional + maskedValue;
595
- continue;
596
- }
597
- var ultimoRemovido = removerUltimo(valorRestante);
598
- valorRestante = ultimoRemovido.restante;
599
- maskedValue = ultimoRemovido.ultimo + maskedValue;
600
- }
601
- return prefixo + maskedValue;
602
- };
603
- var removerUltimo = function (value) {
604
- var tamanho = value.length;
605
- return {
606
- ultimo: value.charAt(tamanho - 1),
607
- restante: value.substring(0, tamanho - 1)
608
- };
609
- };
610
- var ɵ0 = removerUltimo;
611
-
612
- var MonetarioModelDirective = /** @class */ (function () {
613
- function MonetarioModelDirective(ngControl) {
614
- this.ngControl = ngControl;
615
- this.$mascara = '###.###.###.###.###,##';
616
- this.$symbol = 'R$';
617
- this.$thousandDivider = '.';
618
- this.$fractionalDivider = ',';
619
- this.value = null;
620
- this.displayValue = null;
621
- this.mclModelChange = new core.EventEmitter();
622
- }
623
- MonetarioModelDirective.prototype.delay = function (ms) {
624
- if (ms === void 0) { ms = 0; }
625
- return new rxjs.Observable(function (observer) {
626
- var timeout = setTimeout(function () { return observer.next(); }, ms);
627
- return function () { return clearTimeout(timeout); };
628
- });
629
- };
630
- MonetarioModelDirective.prototype.processValue = function (displayValue) {
631
- return this.keepMask ? displayValue :
632
- monetarioMask(displayValue, '', '', '.', this.$mascara);
633
- };
634
- Object.defineProperty(MonetarioModelDirective.prototype, "symbol", {
635
- set: function (symbol) {
636
- if (symbol !== this.$symbol) {
637
- this.$symbol = symbol;
638
- this.defineValue();
639
- }
640
- },
641
- enumerable: false,
642
- configurable: true
643
- });
644
- Object.defineProperty(MonetarioModelDirective.prototype, "thousandDivider", {
645
- set: function (thousandDivider) {
646
- if (thousandDivider !== this.$thousandDivider) {
647
- this.$thousandDivider = thousandDivider;
648
- this.defineValue();
649
- }
650
- },
651
- enumerable: false,
652
- configurable: true
653
- });
654
- Object.defineProperty(MonetarioModelDirective.prototype, "fractionalDivider", {
655
- set: function (fractionalDivider) {
656
- if (fractionalDivider !== this.$fractionalDivider) {
657
- this.$fractionalDivider = fractionalDivider;
658
- this.defineValue();
659
- }
660
- },
661
- enumerable: false,
662
- configurable: true
663
- });
664
- Object.defineProperty(MonetarioModelDirective.prototype, "mascara", {
665
- set: function (mascara) {
666
- if (mascara !== this.$mascara) {
667
- this.$mascara = mascara;
668
- this.defineValue();
669
- }
670
- },
671
- enumerable: false,
672
- configurable: true
673
- });
674
- Object.defineProperty(MonetarioModelDirective.prototype, "maskValue", {
675
- set: function (value) {
676
- if (value !== this.value) {
677
- this.value = value;
678
- this.defineValue();
679
- }
680
- },
681
- enumerable: false,
682
- configurable: true
683
- });
684
- MonetarioModelDirective.prototype.onInput = function (event) {
685
- var target = event.target;
686
- var value = target.value;
687
- this.onValueChange(value);
688
- };
689
- MonetarioModelDirective.prototype.updateValue = function (value) {
690
- var _this = this;
691
- this.value = value;
692
- this.mclModelChange.emit(value);
693
- this.delay().subscribe(function () { return _this.ngControl.control.updateValueAndValidity(); });
694
- };
695
- MonetarioModelDirective.prototype.defineValue = function () {
696
- var _this = this;
697
- var value = this.value;
698
- var displayValue = null;
699
- if (value !== null && value !== undefined) {
700
- displayValue = monetarioMask(value, this.$symbol, this.$thousandDivider, this.$fractionalDivider, this.$mascara);
701
- value = this.processValue(displayValue);
702
- }
703
- this.delay().subscribe(function () {
704
- if (_this.displayValue !== displayValue) {
705
- _this.displayValue = displayValue;
706
- _this.ngControl.control.setValue(displayValue);
707
- _this.delay().subscribe(function () {
708
- if (value !== _this.value) {
709
- return _this.updateValue(value);
710
- }
711
- });
712
- }
713
- });
714
- };
715
- MonetarioModelDirective.prototype.onValueChange = function (newValue) {
716
- if (newValue !== this.displayValue) {
717
- var displayValue = newValue;
718
- var value = void 0;
719
- if ((newValue == null) || (newValue.trim() === '')) {
720
- value = null;
721
- }
722
- else {
723
- displayValue = monetarioMask(newValue, this.$symbol, this.$thousandDivider, this.$fractionalDivider, this.$mascara);
724
- value = this.processValue(displayValue);
725
- }
726
- this.displayValue = displayValue;
727
- if (newValue !== displayValue) {
728
- this.ngControl.control.setValue(displayValue);
729
- }
730
- if (value !== this.value) {
731
- this.updateValue(value);
732
- }
733
- }
734
- };
735
- return MonetarioModelDirective;
736
- }());
737
- MonetarioModelDirective.decorators = [
738
- { type: core.Directive, args: [{
739
- selector: '[mclModel][ngModel][monetario]',
740
- },] }
741
- ];
742
- MonetarioModelDirective.ctorParameters = function () { return [
743
- { type: forms.NgControl }
744
- ]; };
745
- MonetarioModelDirective.propDecorators = {
746
- keepMask: [{ type: core.Input }],
747
- mclModelChange: [{ type: core.Output }],
748
- symbol: [{ type: core.Input }],
749
- thousandDivider: [{ type: core.Input }],
750
- fractionalDivider: [{ type: core.Input }],
751
- mascara: [{ type: core.Input }],
752
- maskValue: [{ type: core.Input, args: ['mclModel',] }],
753
- onInput: [{ type: core.HostListener, args: ['input', ['$event'],] }]
754
- };
755
-
756
- var MonetarioPipe = /** @class */ (function () {
757
- function MonetarioPipe() {
758
- }
759
- MonetarioPipe.prototype.transform = function (value, symbol, thousandDivider, fractionalDivider, mascara) {
760
- if (symbol === void 0) { symbol = 'R$'; }
761
- if (thousandDivider === void 0) { thousandDivider = '.'; }
762
- if (fractionalDivider === void 0) { fractionalDivider = ','; }
763
- if (mascara === void 0) { mascara = '###.###.###.###.###,##'; }
764
- return monetarioMask(value, symbol, thousandDivider, fractionalDivider, mascara);
765
- };
766
- return MonetarioPipe;
767
- }());
768
- MonetarioPipe.decorators = [
769
- { type: core.Pipe, args: [{
770
- name: 'mclMonetario'
771
- },] }
772
- ];
773
-
774
- var MonetarioModule = /** @class */ (function () {
775
- function MonetarioModule() {
776
- }
777
- return MonetarioModule;
778
- }());
779
- MonetarioModule.decorators = [
780
- { type: core.NgModule, args: [{
781
- declarations: [MonetarioModelDirective, MonetarioPipe],
782
- exports: [MonetarioModelDirective, MonetarioPipe],
783
- imports: [
784
- common.CommonModule
785
- ]
786
- },] }
787
- ];
788
-
789
- var porcentagemMask = function (value, sufixo, milhar, fracional, mascara) {
790
- if (sufixo === void 0) { sufixo = '%'; }
791
- if (milhar === void 0) { milhar = '.'; }
792
- if (fracional === void 0) { fracional = ','; }
793
- if (mascara === void 0) { mascara = '###.###.###.###.###,##'; }
794
- if (!value) {
795
- return undefined;
796
- }
797
- var maskedValue = '';
798
- var valorRestante = value.replace(/\D/g, '').replace(/^0+/, '');
799
- while (valorRestante.length < 3) {
800
- valorRestante = '0' + valorRestante;
801
- }
802
- for (var i = mascara.length - 1; i >= 0 && valorRestante.length; i--) {
803
- if (mascara[i] === '.') {
804
- maskedValue = milhar + maskedValue;
805
- continue;
806
- }
807
- else if (mascara[i] === ',') {
808
- maskedValue = fracional + maskedValue;
809
- continue;
810
- }
811
- var ultimoRemovido = removerUltimo$1(valorRestante);
812
- valorRestante = ultimoRemovido.restante;
813
- maskedValue = ultimoRemovido.ultimo + maskedValue;
814
- }
815
- return maskedValue + sufixo;
816
- };
817
- var removerUltimo$1 = function (value) {
818
- var tamanho = value.length;
819
- return {
820
- ultimo: value.charAt(tamanho - 1),
821
- restante: value.substring(0, tamanho - 1)
822
- };
823
- };
824
- var ɵ0$1 = removerUltimo$1;
825
-
826
- var PorcentagemModelDirective = /** @class */ (function () {
827
- function PorcentagemModelDirective(ngControl) {
828
- this.ngControl = ngControl;
829
- this.mascara = '###.###.###.###.###,##';
830
- this.symbol = '%';
831
- this.thousandDivider = '.';
832
- this.fractionalDivider = ',';
833
- this.displayValue = null;
834
- this.mclModelChange = new core.EventEmitter();
835
- }
836
- PorcentagemModelDirective.prototype.delay = function (ms) {
837
- if (ms === void 0) { ms = 0; }
838
- return new rxjs.Observable(function (observer) {
839
- var timeout = setTimeout(function () { return observer.next(); }, ms);
840
- return function () { return clearTimeout(timeout); };
841
- });
842
- };
843
- PorcentagemModelDirective.prototype.processValue = function (displayValue) {
844
- return this.keepMask ? displayValue :
845
- porcentagemMask(displayValue, '', '', '.', this.mascara);
846
- };
847
- Object.defineProperty(PorcentagemModelDirective.prototype, "maskValue", {
848
- set: function (value) {
849
- if (value !== this.value) {
850
- this.value = value;
851
- this.defineValue();
852
- }
853
- },
854
- enumerable: false,
855
- configurable: true
856
- });
857
- PorcentagemModelDirective.prototype.onInput = function (event) {
858
- var target = event.target;
859
- var value = target.value;
860
- this.onValueChange(value);
861
- };
862
- PorcentagemModelDirective.prototype.updateValue = function (value) {
863
- var _this = this;
864
- this.value = value;
865
- this.mclModelChange.emit(value);
866
- this.delay().subscribe(function () { return _this.ngControl.control.updateValueAndValidity(); });
867
- };
868
- PorcentagemModelDirective.prototype.defineValue = function () {
869
- var _this = this;
870
- var value = this.value;
871
- var displayValue = null;
872
- if (value !== null && value !== undefined) {
873
- displayValue = porcentagemMask(value, this.symbol, this.thousandDivider, this.fractionalDivider, this.mascara);
874
- value = this.processValue(displayValue);
875
- }
876
- this.delay().subscribe(function () {
877
- if (_this.displayValue !== displayValue) {
878
- _this.displayValue = displayValue;
879
- _this.ngControl.control.setValue(displayValue);
880
- _this.delay().subscribe(function () {
881
- if (value !== _this.value) {
882
- return _this.updateValue(value);
883
- }
884
- });
885
- }
886
- });
887
- };
888
- PorcentagemModelDirective.prototype.onValueChange = function (newValue) {
889
- if (newValue !== this.displayValue) {
890
- var displayValue = newValue;
891
- var value = void 0;
892
- if ((newValue == null) || (newValue.trim() === '')) {
893
- value = null;
894
- }
895
- else {
896
- displayValue = porcentagemMask(newValue);
897
- value = this.processValue(displayValue);
898
- }
899
- this.displayValue = displayValue;
900
- if (newValue !== displayValue) {
901
- this.ngControl.control.setValue(displayValue);
902
- }
903
- if (value !== this.value) {
904
- this.updateValue(value);
905
- }
906
- }
907
- };
908
- return PorcentagemModelDirective;
909
- }());
910
- PorcentagemModelDirective.decorators = [
911
- { type: core.Directive, args: [{
912
- selector: '[mclModel][ngModel][porcentagem]',
913
- },] }
914
- ];
915
- PorcentagemModelDirective.ctorParameters = function () { return [
916
- { type: forms.NgControl }
917
- ]; };
918
- PorcentagemModelDirective.propDecorators = {
919
- mascara: [{ type: core.Input }],
920
- symbol: [{ type: core.Input }],
921
- thousandDivider: [{ type: core.Input }],
922
- fractionalDivider: [{ type: core.Input }],
923
- keepMask: [{ type: core.Input }],
924
- mclModelChange: [{ type: core.Output }],
925
- maskValue: [{ type: core.Input, args: ['mclModel',] }],
926
- onInput: [{ type: core.HostListener, args: ['input', ['$event'],] }]
927
- };
928
-
929
- var PorcentagemPipe = /** @class */ (function () {
930
- function PorcentagemPipe() {
931
- }
932
- PorcentagemPipe.prototype.transform = function (value, symbol, thousandDivider, fractionalDivider, mascara) {
933
- if (symbol === void 0) { symbol = '%'; }
934
- if (thousandDivider === void 0) { thousandDivider = '.'; }
935
- if (fractionalDivider === void 0) { fractionalDivider = ','; }
936
- if (mascara === void 0) { mascara = '###.###.###.###.###,##'; }
937
- return porcentagemMask(value, symbol, thousandDivider, fractionalDivider, mascara);
938
- };
939
- return PorcentagemPipe;
940
- }());
941
- PorcentagemPipe.decorators = [
942
- { type: core.Pipe, args: [{
943
- name: 'mclPorcentagem'
944
- },] }
945
- ];
946
-
947
- var PorcentagemModule = /** @class */ (function () {
948
- function PorcentagemModule() {
949
- }
950
- return PorcentagemModule;
951
- }());
952
- PorcentagemModule.decorators = [
953
- { type: core.NgModule, args: [{
954
- declarations: [PorcentagemModelDirective, PorcentagemPipe],
955
- exports: [PorcentagemModelDirective, PorcentagemPipe],
956
- imports: [
957
- common.CommonModule
958
- ]
959
- },] }
960
- ];
961
-
962
- var TelefoneModelDirective = /** @class */ (function (_super) {
963
- __extends(TelefoneModelDirective, _super);
964
- function TelefoneModelDirective() {
965
- return _super !== null && _super.apply(this, arguments) || this;
966
- }
967
- TelefoneModelDirective.prototype.ngOnInit = function () {
968
- this.mask = '(##) #### ####';
969
- };
970
- TelefoneModelDirective.prototype.applyMask = function (value) {
971
- if (value.length > 10) {
972
- return model.doApplyMask(value, '(##) ##### ####');
973
- }
974
- return model.doApplyMask(value, '(##) #### ####');
975
- };
976
- TelefoneModelDirective.prototype.removeMask = function (value) {
977
- if (value.length > 10) {
978
- return model.doRemoveMask(value, '(##) ##### ####');
979
- }
980
- return model.doRemoveMask(value, '(##) #### ####');
981
- };
982
- return TelefoneModelDirective;
983
- }(model.MaskedModelDirective));
984
- TelefoneModelDirective.decorators = [
985
- { type: core.Directive, args: [{
986
- selector: '[mclModel][ngModel][telefone]:not([mask])',
987
- },] }
988
- ];
989
-
990
- var TelefonePipe = /** @class */ (function () {
991
- function TelefonePipe() {
992
- }
993
- TelefonePipe.prototype.transform = function (value) {
994
- var args = [];
995
- for (var _i = 1; _i < arguments.length; _i++) {
996
- args[_i - 1] = arguments[_i];
997
- }
998
- if (!value) {
999
- return '-';
1000
- }
1001
- value = value.replace(/\D/g, '');
1002
- if (!value || value.length > 11 || value === '0') {
1003
- return '-';
1004
- }
1005
- switch (value.length) {
1006
- case 11:
1007
- return '(' + value.substring(0, 2) + ') ' + value.substring(2, 7) + '-' + value.substring(7);
1008
- case 10:
1009
- return '(' + value.substring(0, 2) + ') ' + value.substring(2, 6) + '-' + value.substring(6);
1010
- case 9:
1011
- return value.substring(0, 5) + '-' + value.substring(5);
1012
- case 8:
1013
- return value.substring(0, 4) + '-' + value.substring(4);
1014
- case 2:
1015
- case 3:
1016
- return '(' + value + ')';
1017
- default:
1018
- return value;
1019
- }
1020
- };
1021
- return TelefonePipe;
1022
- }());
1023
- TelefonePipe.decorators = [
1024
- { type: core.Pipe, args: [{
1025
- name: 'telefone'
1026
- },] }
1027
- ];
1028
-
1029
- var TelefoneModule = /** @class */ (function () {
1030
- function TelefoneModule() {
1031
- }
1032
- return TelefoneModule;
1033
- }());
1034
- TelefoneModule.decorators = [
1035
- { type: core.NgModule, args: [{
1036
- declarations: [TelefonePipe, TelefoneModelDirective],
1037
- exports: [TelefonePipe, TelefoneModelDirective],
1038
- imports: [
1039
- common.CommonModule,
1040
- core$1.CoreModule
1041
- ]
1042
- },] }
1043
- ];
1044
-
1045
- var UnsafeInnerHtmlDirective = /** @class */ (function () {
1046
- function UnsafeInnerHtmlDirective(sanitizer, element) {
1047
- this.sanitizer = sanitizer;
1048
- this.element = element;
1049
- }
1050
- Object.defineProperty(UnsafeInnerHtmlDirective.prototype, "unsafeInnerHtml", {
1051
- set: function (value) {
1052
- this.element.nativeElement.innerHTML = value || '';
1053
- },
1054
- enumerable: false,
1055
- configurable: true
1056
- });
1057
- return UnsafeInnerHtmlDirective;
1058
- }());
1059
- UnsafeInnerHtmlDirective.decorators = [
1060
- { type: core.Directive, args: [{
1061
- selector: '[mclUnsafeInnerHtml]'
1062
- },] }
1063
- ];
1064
- UnsafeInnerHtmlDirective.ctorParameters = function () { return [
1065
- { type: core.Sanitizer },
1066
- { type: core.ElementRef, decorators: [{ type: core.Self }] }
1067
- ]; };
1068
- UnsafeInnerHtmlDirective.propDecorators = {
1069
- unsafeInnerHtml: [{ type: core.Input, args: ['mclUnsafeInnerHtml',] }]
1070
- };
1071
-
1072
- var UnsafeInnerHtmlModule = /** @class */ (function () {
1073
- function UnsafeInnerHtmlModule() {
1074
- }
1075
- return UnsafeInnerHtmlModule;
1076
- }());
1077
- UnsafeInnerHtmlModule.decorators = [
1078
- { type: core.NgModule, args: [{
1079
- declarations: [UnsafeInnerHtmlDirective],
1080
- exports: [UnsafeInnerHtmlDirective],
1081
- imports: [
1082
- common.CommonModule
1083
- ]
1084
- },] }
1085
- ];
1086
-
1087
- /**
1088
- * Generated bundle index. Do not edit.
1089
- */
1090
-
1091
- exports.CnpjDirective = CnpjDirective;
1092
- exports.CnpjModelDirective = CnpjModelDirective;
1093
- exports.CnpjModule = CnpjModule;
1094
- exports.CnpjsPipe = CnpjsPipe;
1095
- exports.CpfCnpjDirective = CpfCnpjDirective;
1096
- exports.CpfCnpjModelDirective = CpfCnpjModelDirective;
1097
- exports.CpfCnpjModule = CpfCnpjModule;
1098
- exports.CpfCnpjPipe = CpfCnpjPipe;
1099
- exports.CpfDirective = CpfDirective;
1100
- exports.CpfModelDirective = CpfModelDirective;
1101
- exports.CpfModule = CpfModule;
1102
- exports.CpfPipe = CpfPipe;
1103
- exports.InfoComponent = InfoComponent;
1104
- exports.InfoModule = InfoModule;
1105
- exports.MonetarioModelDirective = MonetarioModelDirective;
1106
- exports.MonetarioModule = MonetarioModule;
1107
- exports.MonetarioPipe = MonetarioPipe;
1108
- exports.PorcentagemModelDirective = PorcentagemModelDirective;
1109
- exports.PorcentagemModule = PorcentagemModule;
1110
- exports.PorcentagemPipe = PorcentagemPipe;
1111
- exports.TelefoneModelDirective = TelefoneModelDirective;
1112
- exports.TelefoneModule = TelefoneModule;
1113
- exports.TelefonePipe = TelefonePipe;
1114
- exports.UnsafeInnerHtmlDirective = UnsafeInnerHtmlDirective;
1115
- exports.UnsafeInnerHtmlModule = UnsafeInnerHtmlModule;
1116
- exports.monetarioMask = monetarioMask;
1117
- exports.ɵ0 = ɵ0;
1118
-
1119
- Object.defineProperty(exports, '__esModule', { value: true });
1120
-
1121
- })));
1122
- //# sourceMappingURL=main-class-componentes-misc.umd.js.map