@main-class/componentes 1.18.8 → 1.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/arquivo/index.d.ts +6 -4
  2. package/arquivo/main-class-componentes-arquivo.d.ts +4 -0
  3. package/arquivo/main-class-componentes-arquivo.metadata.json +1 -0
  4. package/arquivo/package.json +11 -0
  5. package/arquivo/{download-arquivo.directive.d.ts → src/download-arquivo.directive.d.ts} +1 -1
  6. package/{core/imagem → arquivo/src}/imagem.directive.d.ts +1 -1
  7. package/arquivo/{preview-arquivo → src/preview-arquivo}/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +1 -1
  8. package/arquivo/{preview-arquivo → src/preview-arquivo}/preview-arquivo.component.d.ts +1 -1
  9. package/bundles/main-class-componentes-arquivo.umd.js +687 -0
  10. package/bundles/main-class-componentes-arquivo.umd.js.map +1 -0
  11. package/bundles/main-class-componentes-arquivo.umd.min.js +16 -0
  12. package/bundles/main-class-componentes-arquivo.umd.min.js.map +1 -0
  13. package/bundles/main-class-componentes-core.umd.js +252 -0
  14. package/bundles/main-class-componentes-core.umd.js.map +1 -0
  15. package/bundles/main-class-componentes-core.umd.min.js +2 -0
  16. package/bundles/main-class-componentes-core.umd.min.js.map +1 -0
  17. package/bundles/main-class-componentes-crud.umd.js +543 -0
  18. package/bundles/main-class-componentes-crud.umd.js.map +1 -0
  19. package/bundles/main-class-componentes-crud.umd.min.js +16 -0
  20. package/bundles/main-class-componentes-crud.umd.min.js.map +1 -0
  21. package/bundles/main-class-componentes-date.umd.js +185 -0
  22. package/bundles/main-class-componentes-date.umd.js.map +1 -0
  23. package/bundles/main-class-componentes-date.umd.min.js +2 -0
  24. package/bundles/main-class-componentes-date.umd.min.js.map +1 -0
  25. package/bundles/main-class-componentes-dialog.umd.js +206 -0
  26. package/bundles/main-class-componentes-dialog.umd.js.map +1 -0
  27. package/bundles/main-class-componentes-dialog.umd.min.js +2 -0
  28. package/bundles/main-class-componentes-dialog.umd.min.js.map +1 -0
  29. package/bundles/main-class-componentes-form.umd.js +211 -0
  30. package/bundles/main-class-componentes-form.umd.js.map +1 -0
  31. package/bundles/main-class-componentes-form.umd.min.js +2 -0
  32. package/bundles/main-class-componentes-form.umd.min.js.map +1 -0
  33. package/bundles/main-class-componentes-input.umd.js +2244 -0
  34. package/bundles/main-class-componentes-input.umd.js.map +1 -0
  35. package/bundles/main-class-componentes-input.umd.min.js +17 -0
  36. package/bundles/main-class-componentes-input.umd.min.js.map +1 -0
  37. package/bundles/main-class-componentes-loader.umd.js +233 -0
  38. package/bundles/main-class-componentes-loader.umd.js.map +1 -0
  39. package/bundles/main-class-componentes-loader.umd.min.js +2 -0
  40. package/bundles/main-class-componentes-loader.umd.min.js.map +1 -0
  41. package/bundles/main-class-componentes-misc.umd.js +1122 -0
  42. package/bundles/main-class-componentes-misc.umd.js.map +1 -0
  43. package/bundles/main-class-componentes-misc.umd.min.js +16 -0
  44. package/bundles/main-class-componentes-misc.umd.min.js.map +1 -0
  45. package/bundles/main-class-componentes-model.umd.js +196 -0
  46. package/bundles/main-class-componentes-model.umd.js.map +1 -0
  47. package/bundles/main-class-componentes-model.umd.min.js +2 -0
  48. package/bundles/main-class-componentes-model.umd.min.js.map +1 -0
  49. package/bundles/main-class-componentes-pipe.umd.js +55 -0
  50. package/bundles/main-class-componentes-pipe.umd.js.map +1 -0
  51. package/bundles/main-class-componentes-pipe.umd.min.js +2 -0
  52. package/bundles/main-class-componentes-pipe.umd.min.js.map +1 -0
  53. package/bundles/main-class-componentes-scroll.umd.js +106 -0
  54. package/bundles/main-class-componentes-scroll.umd.js.map +1 -0
  55. package/bundles/main-class-componentes-scroll.umd.min.js +2 -0
  56. package/bundles/main-class-componentes-scroll.umd.min.js.map +1 -0
  57. package/bundles/main-class-componentes-table.umd.js +787 -0
  58. package/bundles/main-class-componentes-table.umd.js.map +1 -0
  59. package/bundles/main-class-componentes-table.umd.min.js +17 -0
  60. package/bundles/main-class-componentes-table.umd.min.js.map +1 -0
  61. package/bundles/main-class-componentes-util.umd.js +31 -0
  62. package/bundles/main-class-componentes-util.umd.js.map +1 -0
  63. package/bundles/main-class-componentes-util.umd.min.js +2 -0
  64. package/bundles/main-class-componentes-util.umd.min.js.map +1 -0
  65. package/bundles/main-class-componentes.umd.js +13 -5511
  66. package/bundles/main-class-componentes.umd.js.map +1 -1
  67. package/bundles/main-class-componentes.umd.min.js +1 -1
  68. package/bundles/main-class-componentes.umd.min.js.map +1 -1
  69. package/core/index.d.ts +5 -14
  70. package/core/main-class-componentes-core.d.ts +4 -0
  71. package/core/main-class-componentes-core.metadata.json +1 -0
  72. package/core/package.json +11 -0
  73. package/core/src/core.module.d.ts +4 -0
  74. package/core/{mensageria → src/mensageria}/mensageria.service.d.ts +1 -2
  75. package/crud/index.d.ts +4 -5
  76. package/crud/main-class-componentes-crud.d.ts +4 -0
  77. package/crud/main-class-componentes-crud.metadata.json +1 -0
  78. package/crud/package.json +11 -0
  79. package/crud/{abstract-consulta-component.d.ts → src/abstract-consulta-component.d.ts} +3 -2
  80. package/crud/{abstract-consulta-paginada-component.d.ts → src/abstract-consulta-paginada-component.d.ts} +3 -2
  81. package/crud/{abstract-edicao-component.d.ts → src/abstract-edicao-component.d.ts} +2 -1
  82. package/crud/{abstract-edicao-modal-component.d.ts → src/abstract-edicao-modal-component.d.ts} +3 -1
  83. package/date/index.d.ts +3 -3
  84. package/date/main-class-componentes-date.d.ts +4 -0
  85. package/date/main-class-componentes-date.metadata.json +1 -0
  86. package/date/package.json +11 -0
  87. package/dialog/index.d.ts +4 -0
  88. package/dialog/main-class-componentes-dialog.d.ts +4 -0
  89. package/dialog/main-class-componentes-dialog.metadata.json +1 -0
  90. package/dialog/package.json +11 -0
  91. package/dialog/src/dialog.module.d.ts +2 -0
  92. package/esm2015/arquivo/index.js +7 -5
  93. package/esm2015/arquivo/main-class-componentes-arquivo.js +5 -0
  94. package/esm2015/arquivo/src/arquivo-manager.service.js +3 -0
  95. package/esm2015/arquivo/src/arquivo.module.js +30 -0
  96. package/esm2015/arquivo/src/download-arquivo.directive.js +44 -0
  97. package/esm2015/arquivo/src/imagem.directive.js +80 -0
  98. package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +56 -0
  99. package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +136 -0
  100. package/esm2015/core/index.js +6 -15
  101. package/esm2015/core/main-class-componentes-core.js +5 -0
  102. package/esm2015/core/src/core.module.js +27 -0
  103. package/esm2015/core/src/criptografia/criptografia.service.js +13 -0
  104. package/esm2015/core/src/mensageria/mensageria.service.js +48 -0
  105. package/esm2015/core/src/mobile/mobile.service.js +45 -0
  106. package/esm2015/core/src/validator/valida-modulo11.service.js +92 -0
  107. package/esm2015/crud/index.js +5 -6
  108. package/esm2015/crud/main-class-componentes-crud.js +5 -0
  109. package/esm2015/crud/src/abstract-consulta-component.js +60 -0
  110. package/esm2015/crud/src/abstract-consulta-paginada-component.js +48 -0
  111. package/esm2015/crud/src/abstract-edicao-component.js +29 -0
  112. package/esm2015/crud/src/abstract-edicao-modal-component.js +24 -0
  113. package/esm2015/date/index.js +4 -4
  114. package/esm2015/date/main-class-componentes-date.js +5 -0
  115. package/esm2015/date/src/date.module.js +19 -0
  116. package/esm2015/date/src/validator/data-validator.directive.js +97 -0
  117. package/esm2015/date/src/validator/futuro.directive.js +26 -0
  118. package/esm2015/dialog/index.js +5 -0
  119. package/esm2015/dialog/main-class-componentes-dialog.js +5 -0
  120. package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +40 -0
  121. package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +59 -0
  122. package/esm2015/dialog/src/dialog.module.js +28 -0
  123. package/esm2015/dialog/src/dialog.service.js +55 -0
  124. package/esm2015/form/index.js +5 -5
  125. package/esm2015/form/main-class-componentes-form.js +5 -0
  126. package/esm2015/form/src/form.component.js +103 -0
  127. package/esm2015/form/src/form.module.js +25 -0
  128. package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +31 -0
  129. package/esm2015/form/src/single-click.directive.js +35 -0
  130. package/esm2015/input/index.js +22 -22
  131. package/esm2015/input/main-class-componentes-input.js +6 -0
  132. package/esm2015/input/src/abstract-mat-form-field-control.js +110 -0
  133. package/esm2015/input/src/input-datetime/input-datetime.component.js +114 -0
  134. package/esm2015/input/{input-datetime → src/input-datetime}/input-datetime.module.js +3 -3
  135. package/esm2015/input/src/input-fileupload/input-fileupload.component.js +324 -0
  136. package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +34 -0
  137. package/esm2015/input/src/input-fileupload/input-fileupload.module.js +34 -0
  138. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +22 -0
  139. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +66 -0
  140. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +23 -0
  141. package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +36 -0
  142. package/esm2015/input/src/option-checkbox/node-pool.js +93 -0
  143. package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +71 -0
  144. package/esm2015/input/src/option-checkbox/option-checkbox.component.js +59 -0
  145. package/esm2015/input/src/option-checkbox/option-checkbox.module.js +23 -0
  146. package/esm2015/input/src/option-checkbox/option-checkbox.service.js +52 -0
  147. package/esm2015/input/src/option-checkbox/option-node.js +24 -0
  148. package/esm2015/input/src/select-chips/select-chips.component.js +177 -0
  149. package/esm2015/input/src/select-chips/select-chips.module.js +25 -0
  150. package/esm2015/input/src/select-item/select-item.component.js +20 -0
  151. package/esm2015/input/src/select-item/select-item.module.js +15 -0
  152. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +150 -0
  153. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +21 -0
  154. package/esm2015/input/src/select-radio/select-radio.component.js +124 -0
  155. package/esm2015/input/src/select-radio/select-radio.module.js +21 -0
  156. package/esm2015/loader/index.js +4 -0
  157. package/esm2015/loader/main-class-componentes-loader.js +5 -0
  158. package/esm2015/loader/src/loader.component.js +112 -0
  159. package/esm2015/loader/src/loader.module.js +21 -0
  160. package/esm2015/loader/src/loader.service.js +70 -0
  161. package/esm2015/misc/index.js +27 -27
  162. package/esm2015/misc/main-class-componentes-misc.js +5 -0
  163. package/esm2015/misc/src/cnpj/cnpj-model.directive.js +13 -0
  164. package/esm2015/misc/src/cnpj/cnpj.directive.js +31 -0
  165. package/esm2015/misc/src/cnpj/cnpj.module.js +19 -0
  166. package/esm2015/misc/src/cnpj/cnpjs.pipe.js +15 -0
  167. package/esm2015/misc/src/cpf/cpf-model.directive.js +13 -0
  168. package/esm2015/misc/src/cpf/cpf.directive.js +31 -0
  169. package/esm2015/misc/src/cpf/cpf.module.js +19 -0
  170. package/esm2015/misc/src/cpf/cpf.pipe.js +15 -0
  171. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +25 -0
  172. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +32 -0
  173. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +19 -0
  174. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +18 -0
  175. package/esm2015/misc/{info → src/info}/info.component.js +1 -1
  176. package/esm2015/misc/src/info/info.module.js +17 -0
  177. package/esm2015/misc/src/monetario/monetario-mask.js +34 -0
  178. package/esm2015/misc/src/monetario/monetario-model.directive.js +124 -0
  179. package/esm2015/misc/src/monetario/monetario.module.js +16 -0
  180. package/esm2015/misc/src/monetario/monetario.pipe.js +13 -0
  181. package/esm2015/misc/src/porcentagem/porcentagem-mask.js +34 -0
  182. package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +99 -0
  183. package/esm2015/misc/src/porcentagem/porcentagem.module.js +16 -0
  184. package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +13 -0
  185. package/esm2015/misc/src/telefone/telefone-model.directive.js +25 -0
  186. package/esm2015/misc/src/telefone/telefone.module.js +18 -0
  187. package/esm2015/misc/src/telefone/telefone.pipe.js +33 -0
  188. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +23 -0
  189. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +15 -0
  190. package/esm2015/model/index.js +3 -0
  191. package/esm2015/model/main-class-componentes-model.js +5 -0
  192. package/esm2015/model/src/masked-model.directive.js +149 -0
  193. package/esm2015/model/src/model.module.js +19 -0
  194. package/esm2015/pipe/index.js +3 -0
  195. package/esm2015/pipe/main-class-componentes-pipe.js +5 -0
  196. package/esm2015/pipe/src/nome-resumido.pipe.js +16 -0
  197. package/esm2015/pipe/src/pipe.module.js +16 -0
  198. package/esm2015/public-api.js +2 -11
  199. package/esm2015/scroll/index.js +3 -3
  200. package/esm2015/scroll/main-class-componentes-scroll.js +5 -0
  201. package/esm2015/scroll/src/scroll-container/scroll-container.component.js +69 -0
  202. package/esm2015/scroll/src/scroll.module.js +17 -0
  203. package/esm2015/table/index.js +12 -12
  204. package/esm2015/table/main-class-componentes-table.js +6 -0
  205. package/esm2015/table/src/column/column-cell.directive.js +15 -0
  206. package/esm2015/table/src/column/column-footer.directive.js +15 -0
  207. package/esm2015/table/src/column/column-header.directive.js +15 -0
  208. package/esm2015/table/src/column/column.directive.js +28 -0
  209. package/esm2015/table/src/infinite-table/infinite-table.component.js +92 -0
  210. package/esm2015/table/src/paginated-table/paginated-table.component.js +43 -0
  211. package/esm2015/table/{paginator → src/paginator}/paginator.component.js +1 -1
  212. package/esm2015/table/src/paginator-i18n.js +23 -0
  213. package/esm2015/table/src/table/table.component.js +119 -0
  214. package/esm2015/table/src/table.module.js +74 -0
  215. package/esm2015/table/src/td/td.component.js +19 -0
  216. package/esm2015/table/src/th/th.component.js +19 -0
  217. package/esm2015/util/index.js +2 -2
  218. package/esm2015/util/main-class-componentes-util.js +5 -0
  219. package/esm2015/util/src/string.util.js +12 -0
  220. package/fesm2015/main-class-componentes-arquivo.js +338 -0
  221. package/fesm2015/main-class-componentes-arquivo.js.map +1 -0
  222. package/fesm2015/main-class-componentes-core.js +219 -0
  223. package/fesm2015/main-class-componentes-core.js.map +1 -0
  224. package/fesm2015/main-class-componentes-crud.js +162 -0
  225. package/fesm2015/main-class-componentes-crud.js.map +1 -0
  226. package/fesm2015/main-class-componentes-date.js +143 -0
  227. package/fesm2015/main-class-componentes-date.js.map +1 -0
  228. package/fesm2015/main-class-componentes-dialog.js +177 -0
  229. package/fesm2015/main-class-componentes-dialog.js.map +1 -0
  230. package/fesm2015/main-class-componentes-form.js +191 -0
  231. package/fesm2015/main-class-componentes-form.js.map +1 -0
  232. package/fesm2015/main-class-componentes-input.js +1604 -0
  233. package/fesm2015/main-class-componentes-input.js.map +1 -0
  234. package/fesm2015/main-class-componentes-loader.js +206 -0
  235. package/fesm2015/main-class-componentes-loader.js.map +1 -0
  236. package/fesm2015/main-class-componentes-misc.js +688 -0
  237. package/fesm2015/main-class-componentes-misc.js.map +1 -0
  238. package/fesm2015/main-class-componentes-model.js +173 -0
  239. package/fesm2015/main-class-componentes-model.js.map +1 -0
  240. package/fesm2015/main-class-componentes-pipe.js +37 -0
  241. package/fesm2015/main-class-componentes-pipe.js.map +1 -0
  242. package/fesm2015/main-class-componentes-scroll.js +91 -0
  243. package/fesm2015/main-class-componentes-scroll.js.map +1 -0
  244. package/fesm2015/main-class-componentes-table.js +446 -0
  245. package/fesm2015/main-class-componentes-table.js.map +1 -0
  246. package/fesm2015/main-class-componentes-util.js +18 -0
  247. package/fesm2015/main-class-componentes-util.js.map +1 -0
  248. package/fesm2015/main-class-componentes.js +1 -4308
  249. package/fesm2015/main-class-componentes.js.map +1 -1
  250. package/form/index.d.ts +4 -4
  251. package/form/main-class-componentes-form.d.ts +4 -0
  252. package/form/main-class-componentes-form.metadata.json +1 -0
  253. package/form/package.json +11 -0
  254. package/input/index.d.ts +21 -21
  255. package/input/main-class-componentes-input.d.ts +5 -0
  256. package/input/main-class-componentes-input.metadata.json +1 -0
  257. package/input/package.json +11 -0
  258. package/input/{input-fileupload → src/input-fileupload}/input-fileupload.component.d.ts +2 -2
  259. package/loader/index.d.ts +3 -0
  260. package/loader/main-class-componentes-loader.d.ts +4 -0
  261. package/loader/main-class-componentes-loader.metadata.json +1 -0
  262. package/loader/package.json +11 -0
  263. package/{core/loader → loader/src}/loader.component.d.ts +1 -1
  264. package/loader/src/loader.module.d.ts +2 -0
  265. package/main-class-componentes.metadata.json +1 -1
  266. package/misc/index.d.ts +26 -26
  267. package/misc/main-class-componentes-misc.d.ts +4 -0
  268. package/misc/main-class-componentes-misc.metadata.json +1 -0
  269. package/misc/package.json +11 -0
  270. package/misc/{cnpj → src/cnpj}/cnpj-model.directive.d.ts +1 -1
  271. package/misc/{cnpj → src/cnpj}/cnpj.directive.d.ts +1 -1
  272. package/misc/{cpf → src/cpf}/cpf-model.directive.d.ts +1 -1
  273. package/misc/{cpf → src/cpf}/cpf.directive.d.ts +1 -1
  274. package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj-model.directive.d.ts +1 -1
  275. package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.directive.d.ts +1 -1
  276. package/misc/{telefone → src/telefone}/telefone-model.directive.d.ts +1 -1
  277. package/model/index.d.ts +2 -0
  278. package/model/main-class-componentes-model.d.ts +4 -0
  279. package/model/main-class-componentes-model.metadata.json +1 -0
  280. package/model/package.json +11 -0
  281. package/model/src/model.module.d.ts +2 -0
  282. package/package.json +1 -1
  283. package/pipe/index.d.ts +2 -0
  284. package/pipe/main-class-componentes-pipe.d.ts +4 -0
  285. package/pipe/main-class-componentes-pipe.metadata.json +1 -0
  286. package/pipe/package.json +11 -0
  287. package/pipe/src/pipe.module.d.ts +2 -0
  288. package/public-api.d.ts +2 -10
  289. package/scroll/index.d.ts +2 -2
  290. package/scroll/main-class-componentes-scroll.d.ts +4 -0
  291. package/scroll/main-class-componentes-scroll.metadata.json +1 -0
  292. package/scroll/package.json +11 -0
  293. package/table/index.d.ts +11 -11
  294. package/table/main-class-componentes-table.d.ts +5 -0
  295. package/table/main-class-componentes-table.metadata.json +1 -0
  296. package/table/package.json +11 -0
  297. package/table/{infinite-table → src/infinite-table}/infinite-table.component.d.ts +2 -1
  298. package/table/{paginated-table → src/paginated-table}/paginated-table.component.d.ts +2 -2
  299. package/table/{table → src/table}/table.component.d.ts +1 -1
  300. package/util/index.d.ts +1 -1
  301. package/util/main-class-componentes-util.d.ts +4 -0
  302. package/util/main-class-componentes-util.metadata.json +1 -0
  303. package/util/package.json +11 -0
  304. package/core/componentes.module.d.ts +0 -4
  305. package/crud/crud.module.d.ts +0 -2
  306. package/esm2015/arquivo/arquivo.module.js +0 -29
  307. package/esm2015/arquivo/download-arquivo.directive.js +0 -44
  308. package/esm2015/arquivo/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
  309. package/esm2015/arquivo/preview-arquivo/preview-arquivo.component.js +0 -136
  310. package/esm2015/core/arquivo/arquivo-manager.service.js +0 -3
  311. package/esm2015/core/componentes.module.js +0 -65
  312. package/esm2015/core/criptografia/criptografia.service.js +0 -13
  313. package/esm2015/core/dialog/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
  314. package/esm2015/core/dialog/dialog-iframe/dialog-iframe.component.js +0 -59
  315. package/esm2015/core/dialog/dialog.service.js +0 -56
  316. package/esm2015/core/form/model/masked-model.directive.js +0 -149
  317. package/esm2015/core/form/validator/valida-modulo11.service.js +0 -92
  318. package/esm2015/core/imagem/imagem.directive.js +0 -80
  319. package/esm2015/core/loader/loader.component.js +0 -112
  320. package/esm2015/core/loader/loader.service.js +0 -70
  321. package/esm2015/core/mensageria/mensageria.service.js +0 -49
  322. package/esm2015/core/mobile/mobile.service.js +0 -46
  323. package/esm2015/core/pipe/nome-resumido.pipe.js +0 -16
  324. package/esm2015/crud/abstract-consulta-component.js +0 -60
  325. package/esm2015/crud/abstract-consulta-paginada-component.js +0 -48
  326. package/esm2015/crud/abstract-edicao-component.js +0 -29
  327. package/esm2015/crud/abstract-edicao-modal-component.js +0 -24
  328. package/esm2015/crud/crud.module.js +0 -14
  329. package/esm2015/date/date.module.js +0 -19
  330. package/esm2015/date/validator/data-validator.directive.js +0 -96
  331. package/esm2015/date/validator/futuro.directive.js +0 -26
  332. package/esm2015/form/form.component.js +0 -103
  333. package/esm2015/form/form.module.js +0 -25
  334. package/esm2015/form/mensagens-erro/mensagens-erro.component.js +0 -31
  335. package/esm2015/form/single-click.directive.js +0 -35
  336. package/esm2015/input/abstract-mat-form-field-control.js +0 -110
  337. package/esm2015/input/input-datetime/input-datetime.component.js +0 -114
  338. package/esm2015/input/input-fileupload/input-fileupload.component.js +0 -324
  339. package/esm2015/input/input-fileupload/input-fileupload.directive.js +0 -34
  340. package/esm2015/input/input-fileupload/input-fileupload.module.js +0 -34
  341. package/esm2015/input/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
  342. package/esm2015/input/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
  343. package/esm2015/input/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
  344. package/esm2015/input/option-checkbox/all-option-checkbox.component.js +0 -36
  345. package/esm2015/input/option-checkbox/node-pool.js +0 -93
  346. package/esm2015/input/option-checkbox/option-checkbox-group.component.js +0 -71
  347. package/esm2015/input/option-checkbox/option-checkbox.component.js +0 -59
  348. package/esm2015/input/option-checkbox/option-checkbox.module.js +0 -23
  349. package/esm2015/input/option-checkbox/option-checkbox.service.js +0 -52
  350. package/esm2015/input/option-checkbox/option-node.js +0 -24
  351. package/esm2015/input/select-chips/select-chips.component.js +0 -177
  352. package/esm2015/input/select-chips/select-chips.module.js +0 -25
  353. package/esm2015/input/select-item/select-item.component.js +0 -20
  354. package/esm2015/input/select-item/select-item.module.js +0 -15
  355. package/esm2015/input/select-many-checkbox/select-many-checkbox.component.js +0 -150
  356. package/esm2015/input/select-many-checkbox/select-many-checkbox.module.js +0 -21
  357. package/esm2015/input/select-radio/select-radio.component.js +0 -124
  358. package/esm2015/input/select-radio/select-radio.module.js +0 -21
  359. package/esm2015/misc/cnpj/cnpj-model.directive.js +0 -13
  360. package/esm2015/misc/cnpj/cnpj.directive.js +0 -31
  361. package/esm2015/misc/cnpj/cnpj.module.js +0 -19
  362. package/esm2015/misc/cnpj/cnpjs.pipe.js +0 -15
  363. package/esm2015/misc/cpf/cpf-model.directive.js +0 -13
  364. package/esm2015/misc/cpf/cpf.directive.js +0 -31
  365. package/esm2015/misc/cpf/cpf.module.js +0 -19
  366. package/esm2015/misc/cpf/cpf.pipe.js +0 -15
  367. package/esm2015/misc/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
  368. package/esm2015/misc/cpf-cnpj/cpf-cnpj.directive.js +0 -32
  369. package/esm2015/misc/cpf-cnpj/cpf-cnpj.module.js +0 -19
  370. package/esm2015/misc/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
  371. package/esm2015/misc/info/info.module.js +0 -17
  372. package/esm2015/misc/monetario/monetario-mask.js +0 -34
  373. package/esm2015/misc/monetario/monetario-model.directive.js +0 -124
  374. package/esm2015/misc/monetario/monetario.module.js +0 -16
  375. package/esm2015/misc/monetario/monetario.pipe.js +0 -13
  376. package/esm2015/misc/porcentagem/porcentagem-mask.js +0 -34
  377. package/esm2015/misc/porcentagem/porcentagem-model.directive.js +0 -99
  378. package/esm2015/misc/porcentagem/porcentagem.module.js +0 -16
  379. package/esm2015/misc/porcentagem/porcentagem.pipe.js +0 -13
  380. package/esm2015/misc/telefone/telefone-model.directive.js +0 -25
  381. package/esm2015/misc/telefone/telefone.module.js +0 -18
  382. package/esm2015/misc/telefone/telefone.pipe.js +0 -33
  383. package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
  384. package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
  385. package/esm2015/scroll/scroll-container/scroll-container.component.js +0 -69
  386. package/esm2015/scroll/scroll.module.js +0 -17
  387. package/esm2015/table/column/column-cell.directive.js +0 -15
  388. package/esm2015/table/column/column-footer.directive.js +0 -15
  389. package/esm2015/table/column/column-header.directive.js +0 -15
  390. package/esm2015/table/column/column.directive.js +0 -28
  391. package/esm2015/table/infinite-table/infinite-table.component.js +0 -91
  392. package/esm2015/table/paginated-table/paginated-table.component.js +0 -43
  393. package/esm2015/table/paginator-i18n.js +0 -23
  394. package/esm2015/table/table/table.component.js +0 -119
  395. package/esm2015/table/table.module.js +0 -74
  396. package/esm2015/table/td/td.component.js +0 -19
  397. package/esm2015/table/th/th.component.js +0 -19
  398. package/esm2015/util/string.util.js +0 -12
  399. /package/{core/arquivo → arquivo/src}/arquivo-manager.service.d.ts +0 -0
  400. /package/arquivo/{arquivo.module.d.ts → src/arquivo.module.d.ts} +0 -0
  401. /package/core/{criptografia → src/criptografia}/criptografia.service.d.ts +0 -0
  402. /package/core/{mobile → src/mobile}/mobile.service.d.ts +0 -0
  403. /package/core/{form → src}/validator/valida-modulo11.service.d.ts +0 -0
  404. /package/date/{date.module.d.ts → src/date.module.d.ts} +0 -0
  405. /package/date/{validator → src/validator}/data-validator.directive.d.ts +0 -0
  406. /package/date/{validator → src/validator}/futuro.directive.d.ts +0 -0
  407. /package/{core/dialog → dialog/src}/dialog-confirmacao/dialog-confirmacao.component.d.ts +0 -0
  408. /package/{core/dialog → dialog/src}/dialog-iframe/dialog-iframe.component.d.ts +0 -0
  409. /package/{core/dialog → dialog/src}/dialog.service.d.ts +0 -0
  410. /package/form/{form.component.d.ts → src/form.component.d.ts} +0 -0
  411. /package/form/{form.module.d.ts → src/form.module.d.ts} +0 -0
  412. /package/form/{mensagens-erro → src/mensagens-erro}/mensagens-erro.component.d.ts +0 -0
  413. /package/form/{single-click.directive.d.ts → src/single-click.directive.d.ts} +0 -0
  414. /package/input/{abstract-mat-form-field-control.d.ts → src/abstract-mat-form-field-control.d.ts} +0 -0
  415. /package/input/{input-datetime → src/input-datetime}/input-datetime.component.d.ts +0 -0
  416. /package/input/{input-datetime → src/input-datetime}/input-datetime.module.d.ts +0 -0
  417. /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.directive.d.ts +0 -0
  418. /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.module.d.ts +0 -0
  419. /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional-validator.directive.d.ts +0 -0
  420. /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.component.d.ts +0 -0
  421. /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.module.d.ts +0 -0
  422. /package/input/{option-checkbox → src/option-checkbox}/all-option-checkbox.component.d.ts +0 -0
  423. /package/input/{option-checkbox → src/option-checkbox}/node-pool.d.ts +0 -0
  424. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox-group.component.d.ts +0 -0
  425. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.component.d.ts +0 -0
  426. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.module.d.ts +0 -0
  427. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.service.d.ts +0 -0
  428. /package/input/{option-checkbox → src/option-checkbox}/option-node.d.ts +0 -0
  429. /package/input/{select-chips → src/select-chips}/select-chips.component.d.ts +0 -0
  430. /package/input/{select-chips → src/select-chips}/select-chips.module.d.ts +0 -0
  431. /package/input/{select-item → src/select-item}/select-item.component.d.ts +0 -0
  432. /package/input/{select-item → src/select-item}/select-item.module.d.ts +0 -0
  433. /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.component.d.ts +0 -0
  434. /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.module.d.ts +0 -0
  435. /package/input/{select-radio → src/select-radio}/select-radio.component.d.ts +0 -0
  436. /package/input/{select-radio → src/select-radio}/select-radio.module.d.ts +0 -0
  437. /package/{core/loader → loader/src}/loader.service.d.ts +0 -0
  438. /package/misc/{cnpj → src/cnpj}/cnpj.module.d.ts +0 -0
  439. /package/misc/{cnpj → src/cnpj}/cnpjs.pipe.d.ts +0 -0
  440. /package/misc/{cpf → src/cpf}/cpf.module.d.ts +0 -0
  441. /package/misc/{cpf → src/cpf}/cpf.pipe.d.ts +0 -0
  442. /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.module.d.ts +0 -0
  443. /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.pipe.d.ts +0 -0
  444. /package/misc/{info → src/info}/info.component.d.ts +0 -0
  445. /package/misc/{info → src/info}/info.module.d.ts +0 -0
  446. /package/misc/{monetario → src/monetario}/monetario-mask.d.ts +0 -0
  447. /package/misc/{monetario → src/monetario}/monetario-model.directive.d.ts +0 -0
  448. /package/misc/{monetario → src/monetario}/monetario.module.d.ts +0 -0
  449. /package/misc/{monetario → src/monetario}/monetario.pipe.d.ts +0 -0
  450. /package/misc/{porcentagem → src/porcentagem}/porcentagem-mask.d.ts +0 -0
  451. /package/misc/{porcentagem → src/porcentagem}/porcentagem-model.directive.d.ts +0 -0
  452. /package/misc/{porcentagem → src/porcentagem}/porcentagem.module.d.ts +0 -0
  453. /package/misc/{porcentagem → src/porcentagem}/porcentagem.pipe.d.ts +0 -0
  454. /package/misc/{telefone → src/telefone}/telefone.module.d.ts +0 -0
  455. /package/misc/{telefone → src/telefone}/telefone.pipe.d.ts +0 -0
  456. /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.directive.d.ts +0 -0
  457. /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.module.d.ts +0 -0
  458. /package/{core/form/model → model/src}/masked-model.directive.d.ts +0 -0
  459. /package/{core/pipe → pipe/src}/nome-resumido.pipe.d.ts +0 -0
  460. /package/scroll/{scroll-container → src/scroll-container}/scroll-container.component.d.ts +0 -0
  461. /package/scroll/{scroll.module.d.ts → src/scroll.module.d.ts} +0 -0
  462. /package/table/{column → src/column}/column-cell.directive.d.ts +0 -0
  463. /package/table/{column → src/column}/column-footer.directive.d.ts +0 -0
  464. /package/table/{column → src/column}/column-header.directive.d.ts +0 -0
  465. /package/table/{column → src/column}/column.directive.d.ts +0 -0
  466. /package/table/{paginator → src/paginator}/paginator.component.d.ts +0 -0
  467. /package/table/{paginator-i18n.d.ts → src/paginator-i18n.d.ts} +0 -0
  468. /package/table/{table.module.d.ts → src/table.module.d.ts} +0 -0
  469. /package/table/{td → src/td}/td.component.d.ts +0 -0
  470. /package/table/{th → src/th}/th.component.d.ts +0 -0
  471. /package/util/{string.util.d.ts → src/string.util.d.ts} +0 -0
@@ -0,0 +1,1122 @@
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