@main-class/componentes 2.1.9 → 3.0.0

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