@main-class/componentes 2.2.1 → 3.0.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 (345) 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 -11
  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 -24
  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-chips-autocomplete/select-chips-autocomplete.component.mjs +0 -207
  178. package/esm2020/input/src/select-chips-autocomplete/select-chips-autocomplete.module.mjs +0 -40
  179. package/esm2020/input/src/select-item/select-item.component.mjs +0 -19
  180. package/esm2020/input/src/select-item/select-item.module.mjs +0 -20
  181. package/esm2020/input/src/select-many-checkbox/select-many-checkbox.component.mjs +0 -170
  182. package/esm2020/input/src/select-many-checkbox/select-many-checkbox.module.mjs +0 -32
  183. package/esm2020/input/src/select-radio/select-radio.component.mjs +0 -143
  184. package/esm2020/input/src/select-radio/select-radio.module.mjs +0 -32
  185. package/esm2020/loader/index.mjs +0 -4
  186. package/esm2020/loader/main-class-componentes-loader.mjs +0 -5
  187. package/esm2020/loader/src/loader.component.mjs +0 -125
  188. package/esm2020/loader/src/loader.module.mjs +0 -37
  189. package/esm2020/loader/src/loader.service.mjs +0 -72
  190. package/esm2020/main-class-componentes.mjs +0 -5
  191. package/esm2020/misc/index.mjs +0 -27
  192. package/esm2020/misc/main-class-componentes-misc.mjs +0 -5
  193. package/esm2020/misc/src/cnpj/cnpj-model.directive.mjs +0 -17
  194. package/esm2020/misc/src/cnpj/cnpj.directive.mjs +0 -36
  195. package/esm2020/misc/src/cnpj/cnpj.module.mjs +0 -26
  196. package/esm2020/misc/src/cnpj/cnpjs.pipe.mjs +0 -19
  197. package/esm2020/misc/src/cpf/cpf-model.directive.mjs +0 -17
  198. package/esm2020/misc/src/cpf/cpf.directive.mjs +0 -36
  199. package/esm2020/misc/src/cpf/cpf.module.mjs +0 -24
  200. package/esm2020/misc/src/cpf/cpf.pipe.mjs +0 -19
  201. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj-model.directive.mjs +0 -29
  202. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.directive.mjs +0 -37
  203. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.module.mjs +0 -24
  204. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.pipe.mjs +0 -22
  205. package/esm2020/misc/src/info/info.component.mjs +0 -20
  206. package/esm2020/misc/src/info/info.module.mjs +0 -24
  207. package/esm2020/misc/src/monetario/monetario-mask.mjs +0 -32
  208. package/esm2020/misc/src/monetario/monetario-model.directive.mjs +0 -133
  209. package/esm2020/misc/src/monetario/monetario.module.mjs +0 -21
  210. package/esm2020/misc/src/monetario/monetario.pipe.mjs +0 -17
  211. package/esm2020/misc/src/porcentagem/porcentagem-mask.mjs +0 -32
  212. package/esm2020/misc/src/porcentagem/porcentagem-model.directive.mjs +0 -108
  213. package/esm2020/misc/src/porcentagem/porcentagem.module.mjs +0 -21
  214. package/esm2020/misc/src/porcentagem/porcentagem.pipe.mjs +0 -17
  215. package/esm2020/misc/src/telefone/telefone-model.directive.mjs +0 -29
  216. package/esm2020/misc/src/telefone/telefone.module.mjs +0 -25
  217. package/esm2020/misc/src/telefone/telefone.pipe.mjs +0 -37
  218. package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.directive.mjs +0 -25
  219. package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.module.mjs +0 -20
  220. package/esm2020/model/index.mjs +0 -3
  221. package/esm2020/model/main-class-componentes-model.mjs +0 -5
  222. package/esm2020/model/src/masked-model.directive.mjs +0 -155
  223. package/esm2020/model/src/model.module.mjs +0 -24
  224. package/esm2020/pipe/index.mjs +0 -3
  225. package/esm2020/pipe/main-class-componentes-pipe.mjs +0 -5
  226. package/esm2020/pipe/src/nome-resumido.pipe.mjs +0 -20
  227. package/esm2020/pipe/src/pipe.module.mjs +0 -24
  228. package/esm2020/public-api.mjs +0 -5
  229. package/esm2020/scroll/index.mjs +0 -3
  230. package/esm2020/scroll/main-class-componentes-scroll.mjs +0 -5
  231. package/esm2020/scroll/src/scroll-container/scroll-container.component.mjs +0 -72
  232. package/esm2020/scroll/src/scroll.module.mjs +0 -22
  233. package/esm2020/table/index.mjs +0 -12
  234. package/esm2020/table/main-class-componentes-table.mjs +0 -5
  235. package/esm2020/table/src/column/column-cell.directive.mjs +0 -16
  236. package/esm2020/table/src/column/column-footer.directive.mjs +0 -16
  237. package/esm2020/table/src/column/column-header.directive.mjs +0 -16
  238. package/esm2020/table/src/column/column.directive.mjs +0 -37
  239. package/esm2020/table/src/infinite-table/infinite-table.component.mjs +0 -95
  240. package/esm2020/table/src/paginated-table/paginated-table.component.mjs +0 -69
  241. package/esm2020/table/src/paginator/paginator.component.mjs +0 -19
  242. package/esm2020/table/src/paginator-i18n.mjs +0 -23
  243. package/esm2020/table/src/table/table.component.mjs +0 -119
  244. package/esm2020/table/src/table.module.mjs +0 -120
  245. package/esm2020/table/src/td/td.component.mjs +0 -18
  246. package/esm2020/table/src/th/th.component.mjs +0 -18
  247. package/esm2020/util/index.mjs +0 -2
  248. package/esm2020/util/main-class-componentes-util.mjs +0 -5
  249. package/esm2020/util/src/string.util.mjs +0 -12
  250. package/fesm2015/main-class-componentes-arquivo.mjs +0 -389
  251. package/fesm2015/main-class-componentes-arquivo.mjs.map +0 -1
  252. package/fesm2015/main-class-componentes-core.mjs +0 -225
  253. package/fesm2015/main-class-componentes-core.mjs.map +0 -1
  254. package/fesm2015/main-class-componentes-crud.mjs +0 -176
  255. package/fesm2015/main-class-componentes-crud.mjs.map +0 -1
  256. package/fesm2015/main-class-componentes-date.mjs +0 -162
  257. package/fesm2015/main-class-componentes-date.mjs.map +0 -1
  258. package/fesm2015/main-class-componentes-dialog.mjs +0 -206
  259. package/fesm2015/main-class-componentes-dialog.mjs.map +0 -1
  260. package/fesm2015/main-class-componentes-form.mjs +0 -209
  261. package/fesm2015/main-class-componentes-form.mjs.map +0 -1
  262. package/fesm2015/main-class-componentes-input.mjs +0 -2103
  263. package/fesm2015/main-class-componentes-input.mjs.map +0 -1
  264. package/fesm2015/main-class-componentes-loader.mjs +0 -236
  265. package/fesm2015/main-class-componentes-loader.mjs.map +0 -1
  266. package/fesm2015/main-class-componentes-misc.mjs +0 -787
  267. package/fesm2015/main-class-componentes-misc.mjs.map +0 -1
  268. package/fesm2015/main-class-componentes-model.mjs +0 -183
  269. package/fesm2015/main-class-componentes-model.mjs.map +0 -1
  270. package/fesm2015/main-class-componentes-pipe.mjs +0 -48
  271. package/fesm2015/main-class-componentes-pipe.mjs.map +0 -1
  272. package/fesm2015/main-class-componentes-scroll.mjs +0 -98
  273. package/fesm2015/main-class-componentes-scroll.mjs.map +0 -1
  274. package/fesm2015/main-class-componentes-table.mjs +0 -532
  275. package/fesm2015/main-class-componentes-table.mjs.map +0 -1
  276. package/fesm2015/main-class-componentes-util.mjs +0 -18
  277. package/fesm2015/main-class-componentes-util.mjs.map +0 -1
  278. package/fesm2015/main-class-componentes.mjs.map +0 -1
  279. package/fesm2020/main-class-componentes-arquivo.mjs +0 -372
  280. package/fesm2020/main-class-componentes-arquivo.mjs.map +0 -1
  281. package/fesm2020/main-class-componentes-core.mjs.map +0 -1
  282. package/fesm2020/main-class-componentes-crud.mjs +0 -154
  283. package/fesm2020/main-class-componentes-crud.mjs.map +0 -1
  284. package/fesm2020/main-class-componentes-date.mjs +0 -162
  285. package/fesm2020/main-class-componentes-date.mjs.map +0 -1
  286. package/fesm2020/main-class-componentes-dialog.mjs +0 -201
  287. package/fesm2020/main-class-componentes-dialog.mjs.map +0 -1
  288. package/fesm2020/main-class-componentes-form.mjs +0 -204
  289. package/fesm2020/main-class-componentes-form.mjs.map +0 -1
  290. package/fesm2020/main-class-componentes-input.mjs +0 -2085
  291. package/fesm2020/main-class-componentes-input.mjs.map +0 -1
  292. package/fesm2020/main-class-componentes-loader.mjs.map +0 -1
  293. package/fesm2020/main-class-componentes-misc.mjs +0 -785
  294. package/fesm2020/main-class-componentes-misc.mjs.map +0 -1
  295. package/fesm2020/main-class-componentes-model.mjs +0 -183
  296. package/fesm2020/main-class-componentes-model.mjs.map +0 -1
  297. package/fesm2020/main-class-componentes-pipe.mjs +0 -48
  298. package/fesm2020/main-class-componentes-pipe.mjs.map +0 -1
  299. package/fesm2020/main-class-componentes-scroll.mjs +0 -98
  300. package/fesm2020/main-class-componentes-scroll.mjs.map +0 -1
  301. package/fesm2020/main-class-componentes-table.mjs +0 -519
  302. package/fesm2020/main-class-componentes-table.mjs.map +0 -1
  303. package/fesm2020/main-class-componentes-util.mjs +0 -18
  304. package/fesm2020/main-class-componentes-util.mjs.map +0 -1
  305. package/fesm2020/main-class-componentes.mjs +0 -9
  306. package/fesm2020/main-class-componentes.mjs.map +0 -1
  307. package/form/src/form.module.d.ts +0 -12
  308. package/input/src/input-datetime/input-datetime.module.d.ts +0 -13
  309. package/input/src/input-fileupload/input-fileupload.module.d.ts +0 -18
  310. package/input/src/input-telefone-internacional/input-telefone-internacional.module.d.ts +0 -11
  311. package/input/src/option-checkbox/option-checkbox.module.d.ts +0 -14
  312. package/input/src/select-chips/select-chips.module.d.ts +0 -13
  313. package/input/src/select-chips-autocomplete/select-chips-autocomplete.component.d.ts +0 -60
  314. package/input/src/select-chips-autocomplete/select-chips-autocomplete.module.d.ts +0 -13
  315. package/input/src/select-item/select-item.component.d.ts +0 -11
  316. package/input/src/select-item/select-item.module.d.ts +0 -8
  317. package/input/src/select-many-checkbox/select-many-checkbox.module.d.ts +0 -11
  318. package/input/src/select-radio/select-radio.module.d.ts +0 -11
  319. package/loader/src/loader.module.d.ts +0 -11
  320. package/misc/src/cnpj/cnpj-model.directive.d.ts +0 -8
  321. package/misc/src/cnpj/cnpj.module.d.ts +0 -11
  322. package/misc/src/cpf/cpf-model.directive.d.ts +0 -8
  323. package/misc/src/cpf/cpf.module.d.ts +0 -10
  324. package/misc/src/cpf-cnpj/cpf-cnpj-model.directive.d.ts +0 -10
  325. package/misc/src/cpf-cnpj/cpf-cnpj.module.d.ts +0 -10
  326. package/misc/src/info/info.component.d.ts +0 -9
  327. package/misc/src/info/info.module.d.ts +0 -9
  328. package/misc/src/monetario/monetario-model.directive.d.ts +0 -32
  329. package/misc/src/monetario/monetario.module.d.ts +0 -9
  330. package/misc/src/porcentagem/porcentagem-model.directive.d.ts +0 -28
  331. package/misc/src/porcentagem/porcentagem.module.d.ts +0 -9
  332. package/misc/src/telefone/telefone-model.directive.d.ts +0 -10
  333. package/misc/src/telefone/telefone.module.d.ts +0 -10
  334. package/misc/src/unsafe-inner-html/unsafe-inner-html.module.d.ts +0 -8
  335. package/model/index.d.ts +0 -2
  336. package/model/src/masked-model.directive.d.ts +0 -31
  337. package/model/src/model.module.d.ts +0 -8
  338. package/pipe/src/pipe.module.d.ts +0 -8
  339. package/scroll/index.d.ts +0 -2
  340. package/scroll/src/scroll-container/scroll-container.component.d.ts +0 -34
  341. package/scroll/src/scroll.module.d.ts +0 -8
  342. package/table/src/infinite-table/infinite-table.component.d.ts +0 -21
  343. package/table/src/table.module.d.ts +0 -29
  344. package/util/index.d.ts +0 -1
  345. package/util/src/string.util.d.ts +0 -4
@@ -1,206 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, Inject, ViewChild, Injectable, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/material/dialog';
4
- import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
5
- import * as i2 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import * as i3 from '@angular/material/button';
8
- import { MatButtonModule } from '@angular/material/button';
9
- import * as i4 from '@angular/forms';
10
- import { FormsModule } from '@angular/forms';
11
- import * as i5 from '@ngx-translate/core';
12
- import { TranslateModule } from '@ngx-translate/core';
13
- import * as i2$1 from '@angular/platform-browser';
14
- import * as i4$1 from '@angular/material/icon';
15
- import { MatIconModule } from '@angular/material/icon';
16
- import { map } from 'rxjs/operators';
17
-
18
- class DialogConfirmacaoComponent {
19
- constructor(data, dialogRef) {
20
- this.data = data;
21
- this.dialogRef = dialogRef;
22
- }
23
- get titulo() {
24
- return this.data.titulo;
25
- }
26
- get mensagem() {
27
- return this.data.mensagem;
28
- }
29
- get okLabel() {
30
- return this.data.okLabel;
31
- }
32
- get cancelLabel() {
33
- return this.data.cancelLabel;
34
- }
35
- ngOnInit() {
36
- }
37
- confirma(form) {
38
- if (!form.valid) {
39
- return;
40
- }
41
- this.dialogRef.close(true);
42
- }
43
- }
44
- DialogConfirmacaoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogConfirmacaoComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
45
- DialogConfirmacaoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DialogConfirmacaoComponent, selector: "mcl-dialog-confirmacao", ngImport: i0, template: "<div mat-dialog-title>\n {{titulo | translate}}\n</div>\n\n<form (ngSubmit)=\"confirma(form)\" #form=\"ngForm\">\n <div mat-dialog-content>\n\n <p [innerHTML]=\"mensagem | translate\"></p>\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-stroked-button color=\"accent\">\n {{okLabel | translate}}\n </button>\n <button mat-flat-button color=\"warn\" type=\"button\" mat-dialog-close *ngIf=\"cancelLabel\">\n {{cancelLabel | translate}}\n </button>\n </div>\n</form>\n", styles: [".mat-mdc-dialog-content{width:95vw;max-width:280px;min-width:auto;margin:10px 60px;text-align:center;min-height:120px;display:flex;flex-direction:column;justify-content:center}[mat-dialog-title]{text-align:center;margin:40px 60px 20px}[mat-dialog-actions]{justify-content:center;margin:20px 60px 40px;flex-direction:row}@media (max-width: 750px){.mat-mdc-dialog-content{margin:10px 20px}}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogConfirmacaoComponent, decorators: [{
47
- type: Component,
48
- args: [{ selector: 'mcl-dialog-confirmacao', template: "<div mat-dialog-title>\n {{titulo | translate}}\n</div>\n\n<form (ngSubmit)=\"confirma(form)\" #form=\"ngForm\">\n <div mat-dialog-content>\n\n <p [innerHTML]=\"mensagem | translate\"></p>\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-stroked-button color=\"accent\">\n {{okLabel | translate}}\n </button>\n <button mat-flat-button color=\"warn\" type=\"button\" mat-dialog-close *ngIf=\"cancelLabel\">\n {{cancelLabel | translate}}\n </button>\n </div>\n</form>\n", styles: [".mat-mdc-dialog-content{width:95vw;max-width:280px;min-width:auto;margin:10px 60px;text-align:center;min-height:120px;display:flex;flex-direction:column;justify-content:center}[mat-dialog-title]{text-align:center;margin:40px 60px 20px}[mat-dialog-actions]{justify-content:center;margin:20px 60px 40px;flex-direction:row}@media (max-width: 750px){.mat-mdc-dialog-content{margin:10px 20px}}\n"] }]
49
- }], ctorParameters: function () {
50
- return [{ type: undefined, decorators: [{
51
- type: Inject,
52
- args: [MAT_DIALOG_DATA]
53
- }] }, { type: i1.MatDialogRef }];
54
- } });
55
-
56
- class DialogIframeComponent {
57
- constructor(dados, dialogRef, sanitizer) {
58
- this.dialogRef = dialogRef;
59
- this.titulo = dados.titulo;
60
- this.url = sanitizer.bypassSecurityTrustResourceUrl(dados.url);
61
- }
62
- ngAfterViewInit() {
63
- registerDialogOnIframe(this.iframe.nativeElement, () => this.close());
64
- }
65
- returnValue() {
66
- var _a;
67
- const fraContent = this.iframe.nativeElement.contentDocument ||
68
- ((_a = this.iframe.nativeElement.contentWindow) === null || _a === void 0 ? void 0 : _a.document);
69
- if (fraContent) {
70
- const divRetornoValue = fraContent.getElementById('returnValue');
71
- if (divRetornoValue) {
72
- const returnValue = divRetornoValue.innerText;
73
- if (returnValue) {
74
- return JSON.parse(returnValue);
75
- }
76
- }
77
- }
78
- return undefined;
79
- }
80
- close() {
81
- this.dialogRef.close(this.returnValue());
82
- }
83
- }
84
- DialogIframeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogIframeComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
85
- DialogIframeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DialogIframeComponent, selector: "mcl-dialog-iframe", viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: "<div mat-dialog-title >\n <h2>{{titulo}}</h2>\n <button mat-icon-button mat-dialog-close class=\"pull-right\" tabindex=\"-1\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div mat-dialog-content>\n <iframe #iframe width=\"560\" height=\"315\" [src]=\"url\" (close)=\"close()\" frameborder=\"0\"\n ></iframe>\n</div>\n", styles: ["[mat-dialog-title]{display:flex}[mat-dialog-title] h2{font-size:25px;flex:1 1 auto;margin:0 0 20px}[mat-dialog-title] mat-icon{vertical-align:middle}mat-dialog-content{margin:-24px;width:calc(100% + 48px);padding:0}mat-dialog-content iframe{width:100%;height:60vh;border:0}\n"], dependencies: [{ kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogIframeComponent, decorators: [{
87
- type: Component,
88
- args: [{ selector: 'mcl-dialog-iframe', template: "<div mat-dialog-title >\n <h2>{{titulo}}</h2>\n <button mat-icon-button mat-dialog-close class=\"pull-right\" tabindex=\"-1\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div mat-dialog-content>\n <iframe #iframe width=\"560\" height=\"315\" [src]=\"url\" (close)=\"close()\" frameborder=\"0\"\n ></iframe>\n</div>\n", styles: ["[mat-dialog-title]{display:flex}[mat-dialog-title] h2{font-size:25px;flex:1 1 auto;margin:0 0 20px}[mat-dialog-title] mat-icon{vertical-align:middle}mat-dialog-content{margin:-24px;width:calc(100% + 48px);padding:0}mat-dialog-content iframe{width:100%;height:60vh;border:0}\n"] }]
89
- }], ctorParameters: function () {
90
- return [{ type: undefined, decorators: [{
91
- type: Inject,
92
- args: [MAT_DIALOG_DATA]
93
- }] }, { type: i1.MatDialogRef }, { type: i2$1.DomSanitizer }];
94
- }, propDecorators: { iframe: [{
95
- type: ViewChild,
96
- args: ['iframe']
97
- }] } });
98
- function registerDialogOnIframe(iframe, callback) {
99
- window.addEventListener('dialogIframeClosed', () => callback());
100
- }
101
- function closeDialogIframe(returnValue) {
102
- if (returnValue) {
103
- const returnDiv = document.createElement('div');
104
- returnDiv.id = 'returnValue';
105
- returnDiv.innerText = JSON.stringify(returnValue);
106
- returnDiv.style.display = 'none';
107
- document.body.appendChild(returnDiv);
108
- }
109
- window.parent.dispatchEvent(new Event('dialogIframeClosed'));
110
- }
111
-
112
- class DialogService {
113
- constructor(dialog) {
114
- this.dialog = dialog;
115
- }
116
- confirma(mensagem, config = {}) {
117
- return this.dialog.open(DialogConfirmacaoComponent, {
118
- data: {
119
- titulo: config.titulo || 'mcl.dialog.confirmacao',
120
- mensagem,
121
- okLabel: config.okLabel || 'mcl.dialog.sim',
122
- cancelLabel: config.cancelLabel || 'mcl.dialog.nao'
123
- }
124
- }).afterClosed().pipe(map(result => !!result));
125
- }
126
- informa(mensagem, config = {}) {
127
- return this.dialog.open(DialogConfirmacaoComponent, {
128
- data: {
129
- titulo: config.titulo || 'mcl.dialog.informacao',
130
- mensagem,
131
- okLabel: config.okLabel || 'mcl.dialog.ok',
132
- }
133
- }).afterClosed().pipe(map(result => !!result));
134
- }
135
- iframe(url, titulo) {
136
- if (!!window.parent && window.parent !== window) {
137
- window.location.href = url;
138
- }
139
- else {
140
- return this.dialog.open(DialogIframeComponent, {
141
- data: {
142
- titulo,
143
- url,
144
- },
145
- panelClass: 'dialog-frame',
146
- }).afterClosed();
147
- }
148
- }
149
- }
150
- DialogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogService, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
151
- DialogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogService, providedIn: 'root' });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogService, decorators: [{
153
- type: Injectable,
154
- args: [{
155
- providedIn: 'root'
156
- }]
157
- }], ctorParameters: function () { return [{ type: i1.MatDialog }]; } });
158
-
159
- class DialogModule {
160
- static forRoot() {
161
- return {
162
- ngModule: DialogModule,
163
- providers: [
164
- DialogService
165
- ]
166
- };
167
- }
168
- }
169
- DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
170
- DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DialogModule, declarations: [DialogConfirmacaoComponent,
171
- DialogIframeComponent], imports: [CommonModule,
172
- TranslateModule,
173
- MatButtonModule,
174
- FormsModule,
175
- MatIconModule,
176
- MatDialogModule] });
177
- DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogModule, imports: [CommonModule,
178
- TranslateModule,
179
- MatButtonModule,
180
- FormsModule,
181
- MatIconModule,
182
- MatDialogModule] });
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DialogModule, decorators: [{
184
- type: NgModule,
185
- args: [{
186
- declarations: [
187
- DialogConfirmacaoComponent,
188
- DialogIframeComponent,
189
- ],
190
- imports: [
191
- CommonModule,
192
- TranslateModule,
193
- MatButtonModule,
194
- FormsModule,
195
- MatIconModule,
196
- MatDialogModule,
197
- ]
198
- }]
199
- }] });
200
-
201
- /**
202
- * Generated bundle index. Do not edit.
203
- */
204
-
205
- export { DialogConfirmacaoComponent, DialogIframeComponent, DialogModule, DialogService, closeDialogIframe };
206
- //# sourceMappingURL=main-class-componentes-dialog.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main-class-componentes-dialog.mjs","sources":["../../../../projects/main-class/componentes/dialog/src/dialog-confirmacao/dialog-confirmacao.component.ts","../../../../projects/main-class/componentes/dialog/src/dialog-confirmacao/dialog-confirmacao.component.html","../../../../projects/main-class/componentes/dialog/src/dialog-iframe/dialog-iframe.component.ts","../../../../projects/main-class/componentes/dialog/src/dialog-iframe/dialog-iframe.component.html","../../../../projects/main-class/componentes/dialog/src/dialog.service.ts","../../../../projects/main-class/componentes/dialog/src/dialog.module.ts","../../../../projects/main-class/componentes/dialog/main-class-componentes-dialog.ts"],"sourcesContent":["import {Component, Inject, OnInit} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {NgForm} from '@angular/forms';\n\nexport interface DialogConfirmacaoData {\n titulo: string;\n mensagem: string;\n okLabel: string;\n cancelLabel?: string;\n}\n\n@Component({\n selector: 'mcl-dialog-confirmacao',\n templateUrl: './dialog-confirmacao.component.html',\n styleUrls: ['./dialog-confirmacao.component.scss']\n})\nexport class DialogConfirmacaoComponent implements OnInit {\n\n constructor(\n @Inject(MAT_DIALOG_DATA) private data: DialogConfirmacaoData,\n private dialogRef: MatDialogRef<any>,\n ) {\n }\n\n get titulo() {\n return this.data.titulo;\n }\n\n get mensagem() {\n return this.data.mensagem;\n }\n\n get okLabel() {\n return this.data.okLabel;\n }\n\n get cancelLabel() {\n return this.data.cancelLabel;\n }\n\n ngOnInit(): void {\n }\n\n confirma(form: NgForm) {\n if (!form.valid) {\n return;\n }\n\n this.dialogRef.close(true);\n }\n}\n","<div mat-dialog-title>\n {{titulo | translate}}\n</div>\n\n<form (ngSubmit)=\"confirma(form)\" #form=\"ngForm\">\n <div mat-dialog-content>\n\n <p [innerHTML]=\"mensagem | translate\"></p>\n\n </div>\n\n <div mat-dialog-actions>\n <button mat-stroked-button color=\"accent\">\n {{okLabel | translate}}\n </button>\n <button mat-flat-button color=\"warn\" type=\"button\" mat-dialog-close *ngIf=\"cancelLabel\">\n {{cancelLabel | translate}}\n </button>\n </div>\n</form>\n","import {AfterViewInit, Component, ElementRef, Inject, ViewChild} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\nimport {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser';\n\nexport interface DialogIframData {\n url: string;\n titulo: string;\n}\n\n@Component({\n selector: 'mcl-dialog-iframe',\n templateUrl: './dialog-iframe.component.html',\n styleUrls: ['./dialog-iframe.component.scss']\n})\nexport class DialogIframeComponent implements AfterViewInit {\n\n titulo: string;\n url: SafeResourceUrl;\n\n @ViewChild('iframe') iframe: ElementRef;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) dados: DialogIframData,\n private dialogRef: MatDialogRef<any>,\n sanitizer: DomSanitizer,\n ) {\n this.titulo = dados.titulo;\n this.url = sanitizer.bypassSecurityTrustResourceUrl(dados.url);\n }\n\n ngAfterViewInit() {\n registerDialogOnIframe(this.iframe.nativeElement, () => this.close());\n }\n\n private returnValue() {\n const fraContent = this.iframe.nativeElement.contentDocument ||\n this.iframe.nativeElement.contentWindow?.document;\n\n if (fraContent) {\n const divRetornoValue = fraContent.getElementById('returnValue');\n\n if (divRetornoValue) {\n const returnValue = divRetornoValue.innerText;\n\n if (returnValue) {\n return JSON.parse(returnValue);\n }\n }\n }\n\n return undefined;\n }\n\n close() {\n this.dialogRef.close(this.returnValue());\n }\n}\n\nfunction registerDialogOnIframe(iframe, callback) {\n window.addEventListener('dialogIframeClosed', () => callback());\n}\n\nexport function closeDialogIframe(returnValue?: any) {\n if (returnValue) {\n const returnDiv = document.createElement('div');\n\n returnDiv.id = 'returnValue';\n returnDiv.innerText = JSON.stringify(returnValue);\n returnDiv.style.display = 'none';\n\n document.body.appendChild(returnDiv);\n }\n\n window.parent.dispatchEvent(new Event('dialogIframeClosed'));\n}\n","<div mat-dialog-title >\n <h2>{{titulo}}</h2>\n <button mat-icon-button mat-dialog-close class=\"pull-right\" tabindex=\"-1\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n<div mat-dialog-content>\n <iframe #iframe width=\"560\" height=\"315\" [src]=\"url\" (close)=\"close()\" frameborder=\"0\"\n ></iframe>\n</div>\n","import {Injectable} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {MatDialog} from '@angular/material/dialog';\nimport {DialogConfirmacaoComponent, DialogConfirmacaoData} from './dialog-confirmacao/dialog-confirmacao.component';\nimport {map} from 'rxjs/operators';\nimport {DialogIframeComponent} from './dialog-iframe/dialog-iframe.component';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DialogService {\n\n constructor(\n private dialog: MatDialog\n ) {\n }\n\n confirma(mensagem: string, config: {\n icon?: string,\n titulo?: string,\n okLabel?: string,\n cancelLabel?: string\n } = {}): Observable<boolean> {\n return this.dialog.open<DialogConfirmacaoComponent, DialogConfirmacaoData, boolean>(DialogConfirmacaoComponent, {\n data: {\n titulo: config.titulo || 'mcl.dialog.confirmacao',\n mensagem,\n okLabel: config.okLabel || 'mcl.dialog.sim',\n cancelLabel: config.cancelLabel || 'mcl.dialog.nao'\n }\n }).afterClosed().pipe(map(result => !!result));\n }\n\n informa(mensagem: string, config: {\n icon?: string,\n titulo?: string,\n okLabel?: string\n } = {}): Observable<boolean> {\n return this.dialog.open<DialogConfirmacaoComponent, DialogConfirmacaoData, boolean>(DialogConfirmacaoComponent, {\n data: {\n titulo: config.titulo || 'mcl.dialog.informacao',\n mensagem,\n okLabel: config.okLabel || 'mcl.dialog.ok',\n }\n }).afterClosed().pipe(map(result => !!result));\n }\n\n iframe(url: string, titulo: string): Observable<any> {\n if (!!window.parent && window.parent !== window) {\n window.location.href = url;\n } else {\n return this.dialog.open(DialogIframeComponent, {\n data: {\n titulo,\n url,\n },\n panelClass: 'dialog-frame',\n }).afterClosed();\n }\n }\n}\n","import {ModuleWithProviders, NgModule} from '@angular/core';\nimport {DialogConfirmacaoComponent} from './dialog-confirmacao/dialog-confirmacao.component';\nimport {DialogIframeComponent} from './dialog-iframe/dialog-iframe.component';\nimport {CommonModule} from '@angular/common';\nimport {TranslateModule} from '@ngx-translate/core';\nimport {MatButtonModule} from '@angular/material/button';\nimport {FormsModule} from '@angular/forms';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {DialogService} from './dialog.service';\n\n\n@NgModule({\n declarations: [\n DialogConfirmacaoComponent,\n DialogIframeComponent,\n ],\n imports: [\n CommonModule,\n TranslateModule,\n MatButtonModule,\n FormsModule,\n MatIconModule,\n MatDialogModule,\n ]\n})\nexport class DialogModule {\n\n static forRoot(): ModuleWithProviders<DialogModule> {\n return {\n ngModule: DialogModule,\n providers: [\n DialogService\n ]\n };\n }\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GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,iBAZrB,0BAA0B;AAC1B,QAAA,qBAAqB,aAGrB,YAAY;QACZ,eAAe;QACf,eAAe;QACf,WAAW;QACX,aAAa;QACb,eAAe,CAAA,EAAA,CAAA,CAAA;AAGN,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YARrB,YAAY;QACZ,eAAe;QACf,eAAe;QACf,WAAW;QACX,aAAa;QACb,eAAe,CAAA,EAAA,CAAA,CAAA;2FAGN,YAAY,EAAA,UAAA,EAAA,CAAA;kBAdxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,0BAA0B;wBAC1B,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,eAAe;wBACf,eAAe;wBACf,WAAW;wBACX,aAAa;wBACb,eAAe;AAChB,qBAAA;iBACF,CAAA;;;ACzBD;;AAEG;;;;"}
@@ -1,209 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Output, Input, ContentChildren, ViewChild, Directive, Host, Optional, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
- import * as i1 from '@angular/forms';
6
- import { NgModel, NgForm, FormsModule } from '@angular/forms';
7
- import { throttleTime } from 'rxjs/operators';
8
- import { Subject, Observable, fromEvent } from 'rxjs';
9
- import * as i3 from '@ngx-translate/core';
10
- import { TranslateModule } from '@ngx-translate/core';
11
-
12
- class FormComponent {
13
- constructor() {
14
- this.submitted = new EventEmitter();
15
- this.throttleMillis = 500;
16
- this.eventSubject = new Subject();
17
- this.currentModels = [];
18
- }
19
- ngOnInit() {
20
- this.subscription = this.eventSubject
21
- .pipe(throttleTime(this.throttleMillis))
22
- .subscribe((v) => {
23
- this.submitted.emit(v);
24
- });
25
- }
26
- ngOnDestroy() {
27
- var _a;
28
- this.eventSubject.complete();
29
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
30
- this.submitted.unsubscribe();
31
- }
32
- ngAfterViewInit() {
33
- this.models.changes.subscribe(() => {
34
- this.atualizaModels();
35
- });
36
- this.atualizaModels();
37
- }
38
- atualizaModels() {
39
- const ngContentModels = this.models.toArray();
40
- for (let i = 0; i < this.currentModels.length;) {
41
- const model = this.currentModels[i];
42
- if (ngContentModels.indexOf(model) < 0) {
43
- this.form.removeControl(model);
44
- model.control.setParent(undefined);
45
- this.currentModels.splice(i, 1);
46
- }
47
- else {
48
- i++;
49
- }
50
- }
51
- ngContentModels.forEach(model => {
52
- if (this.currentModels.indexOf(model) < 0) {
53
- this.currentModels.push(model);
54
- this.form.addControl(model);
55
- model.control.setParent(this.form.form);
56
- }
57
- });
58
- }
59
- touched() {
60
- this.models.toArray().forEach((model) => {
61
- model.control.markAsTouched();
62
- model.control.markAsDirty();
63
- model.control.updateValueAndValidity();
64
- });
65
- }
66
- untouched() {
67
- this.models.toArray().forEach((model) => {
68
- model.control.markAsPristine();
69
- model.control.markAsUntouched();
70
- model.control.updateValueAndValidity();
71
- });
72
- }
73
- reset() {
74
- this.form.resetForm();
75
- this.form.control.markAsPending();
76
- this.models.toArray().forEach((model) => {
77
- model.control.reset();
78
- model.control.setErrors(null);
79
- model.control.updateValueAndValidity();
80
- });
81
- return new Observable(observer => {
82
- setTimeout(() => {
83
- observer.next();
84
- observer.complete();
85
- }, 300);
86
- });
87
- }
88
- submit(form) {
89
- if (!form.valid) {
90
- this.touched();
91
- return;
92
- }
93
- this.eventSubject.next(form);
94
- }
95
- }
96
- FormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
97
- FormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormComponent, selector: "mcl-form", inputs: { throttleMillis: "throttleMillis" }, outputs: { submitted: "submitted" }, queries: [{ propertyName: "models", predicate: NgModel, descendants: true }], viewQueries: [{ propertyName: "form", first: true, predicate: NgForm, descendants: true }], ngImport: i0, template: "<form #form=\"ngForm\" (ngSubmit)=\"submit(form)\">\n <ng-content></ng-content>\n</form>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormComponent, decorators: [{
99
- type: Component,
100
- args: [{ selector: 'mcl-form', template: "<form #form=\"ngForm\" (ngSubmit)=\"submit(form)\">\n <ng-content></ng-content>\n</form>\n" }]
101
- }], ctorParameters: function () { return []; }, propDecorators: { submitted: [{
102
- type: Output
103
- }], throttleMillis: [{
104
- type: Input
105
- }], models: [{
106
- type: ContentChildren,
107
- args: [NgModel, { descendants: true }]
108
- }], form: [{
109
- type: ViewChild,
110
- args: [NgForm]
111
- }] } });
112
-
113
- class SingleClickDirective {
114
- constructor(elementRef) {
115
- this.elementRef = elementRef;
116
- this.throttleMillis = 500;
117
- this.singleClick = new EventEmitter();
118
- }
119
- ngOnInit() {
120
- this.subscription = fromEvent(this.elementRef.nativeElement, 'click')
121
- .pipe(throttleTime(this.throttleMillis))
122
- .subscribe((v) => {
123
- this.singleClick.emit(v);
124
- });
125
- }
126
- ngOnDestroy() {
127
- var _a;
128
- (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
129
- this.singleClick.unsubscribe();
130
- }
131
- }
132
- SingleClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SingleClickDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
133
- SingleClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: SingleClickDirective, selector: "[mclSingleClick],[singleClick]", inputs: { throttleMillis: "throttleMillis" }, outputs: { singleClick: "singleClick" }, ngImport: i0 });
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SingleClickDirective, decorators: [{
135
- type: Directive,
136
- args: [{
137
- selector: '[mclSingleClick],[singleClick]'
138
- }]
139
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { throttleMillis: [{
140
- type: Input
141
- }], singleClick: [{
142
- type: Output
143
- }] } });
144
-
145
- class MensagensErroComponent {
146
- constructor(form) {
147
- this.form = form;
148
- }
149
- ngOnInit() {
150
- }
151
- get errors() {
152
- var _a, _b, _c, _d, _e, _f;
153
- if (((_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.controls) && ((_d = (_c = this.form) === null || _c === void 0 ? void 0 : _c.form) === null || _d === void 0 ? void 0 : _d.controls[this.name]) && ((_f = (_e = this.form) === null || _e === void 0 ? void 0 : _e.form) === null || _f === void 0 ? void 0 : _f.controls[this.name].errors)) {
154
- return Object.keys(this.form.form.controls[this.name].errors);
155
- }
156
- return undefined;
157
- }
158
- }
159
- MensagensErroComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MensagensErroComponent, deps: [{ token: FormComponent, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component });
160
- MensagensErroComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: MensagensErroComponent, selector: "mcl-mensagens-erro,mat-error[name],[mat-error][name]", inputs: { name: "name", form: "form" }, ngImport: i0, template: "<span *ngFor=\"let error of errors\">\n {{'validation.' + error | translate:form.form.controls[name].errors[error]}}\n</span>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MensagensErroComponent, decorators: [{
162
- type: Component,
163
- args: [{ selector: 'mcl-mensagens-erro,mat-error[name],[mat-error][name]', template: "<span *ngFor=\"let error of errors\">\n {{'validation.' + error | translate:form.form.controls[name].errors[error]}}\n</span>\n" }]
164
- }], ctorParameters: function () {
165
- return [{ type: FormComponent, decorators: [{
166
- type: Host
167
- }, {
168
- type: Optional
169
- }] }];
170
- }, propDecorators: { name: [{
171
- type: Input
172
- }], form: [{
173
- type: Input
174
- }] } });
175
-
176
- class FormModule {
177
- }
178
- FormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
179
- FormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FormModule, declarations: [FormComponent, SingleClickDirective, MensagensErroComponent], imports: [CommonModule,
180
- FormsModule,
181
- TranslateModule], exports: [FormComponent,
182
- SingleClickDirective,
183
- MensagensErroComponent] });
184
- FormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormModule, imports: [CommonModule,
185
- FormsModule,
186
- TranslateModule] });
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormModule, decorators: [{
188
- type: NgModule,
189
- args: [{
190
- declarations: [FormComponent, SingleClickDirective, MensagensErroComponent],
191
- exports: [
192
- FormComponent,
193
- SingleClickDirective,
194
- MensagensErroComponent,
195
- ],
196
- imports: [
197
- CommonModule,
198
- FormsModule,
199
- TranslateModule
200
- ]
201
- }]
202
- }] });
203
-
204
- /**
205
- * Generated bundle index. Do not edit.
206
- */
207
-
208
- export { FormComponent, FormModule, MensagensErroComponent, SingleClickDirective };
209
- //# sourceMappingURL=main-class-componentes-form.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main-class-componentes-form.mjs","sources":["../../../../projects/main-class/componentes/form/src/form.component.ts","../../../../projects/main-class/componentes/form/src/form.component.html","../../../../projects/main-class/componentes/form/src/single-click.directive.ts","../../../../projects/main-class/componentes/form/src/mensagens-erro/mensagens-erro.component.ts","../../../../projects/main-class/componentes/form/src/mensagens-erro/mensagens-erro.component.html","../../../../projects/main-class/componentes/form/src/form.module.ts","../../../../projects/main-class/componentes/form/main-class-componentes-form.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n QueryList,\n ViewChild\n} from '@angular/core';\nimport {NgForm, NgModel} from '@angular/forms';\nimport {Subscription} from 'rxjs';\nimport {throttleTime} from 'rxjs/operators';\nimport {Observable, Subject} from 'rxjs';\n\n@Component({\n selector: 'mcl-form',\n templateUrl: './form.component.html',\n styleUrls: ['./form.component.scss']\n})\nexport class FormComponent implements OnInit, OnDestroy, AfterViewInit {\n\n @Output() submitted = new EventEmitter<NgForm>();\n\n @Input()\n throttleMillis = 500;\n\n private eventSubject = new Subject<NgForm>();\n private subscription: Subscription;\n\n @ContentChildren(NgModel, {descendants: true}) public models: QueryList<NgModel>;\n @ViewChild(NgForm) form: NgForm;\n\n private currentModels: Array<NgModel> = [];\n\n constructor() {\n }\n\n ngOnInit(): void {\n this.subscription = this.eventSubject\n .pipe(throttleTime(this.throttleMillis))\n .subscribe((v) => {\n this.submitted.emit(v);\n });\n }\n\n ngOnDestroy() {\n this.eventSubject.complete();\n this.subscription?.unsubscribe();\n this.submitted.unsubscribe();\n }\n\n ngAfterViewInit() {\n this.models.changes.subscribe(() => {\n this.atualizaModels();\n });\n\n this.atualizaModels();\n }\n\n private atualizaModels() {\n const ngContentModels = this.models.toArray();\n\n for (let i = 0; i < this.currentModels.length;) {\n const model = this.currentModels[i];\n if (ngContentModels.indexOf(model) < 0) {\n this.form.removeControl(model);\n model.control.setParent(undefined);\n this.currentModels.splice(i, 1);\n } else {\n i++;\n }\n }\n\n ngContentModels.forEach(model => {\n if (this.currentModels.indexOf(model) < 0) {\n this.currentModels.push(model);\n this.form.addControl(model);\n model.control.setParent(this.form.form);\n }\n });\n }\n\n touched() {\n this.models.toArray().forEach((model) => {\n model.control.markAsTouched();\n model.control.markAsDirty();\n model.control.updateValueAndValidity();\n });\n }\n\n untouched() {\n this.models.toArray().forEach((model) => {\n model.control.markAsPristine();\n model.control.markAsUntouched();\n model.control.updateValueAndValidity();\n });\n }\n\n reset(): Observable<any> {\n this.form.resetForm();\n this.form.control.markAsPending();\n this.models.toArray().forEach((model) => {\n model.control.reset();\n model.control.setErrors(null);\n model.control.updateValueAndValidity();\n });\n\n return new Observable(observer => {\n setTimeout(() => {\n observer.next();\n observer.complete();\n }, 300);\n });\n }\n\n submit(form: NgForm) {\n if (!form.valid) {\n this.touched();\n return;\n }\n\n this.eventSubject.next(form);\n }\n}\n","<form #form=\"ngForm\" (ngSubmit)=\"submit(form)\">\n <ng-content></ng-content>\n</form>\n","import {Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core';\nimport {fromEvent, Subscription} from 'rxjs';\nimport {throttleTime} from 'rxjs/operators';\n\n@Directive({\n selector: '[mclSingleClick],[singleClick]'\n})\nexport class SingleClickDirective implements OnInit, OnDestroy {\n private subscription: Subscription;\n\n @Input()\n throttleMillis = 500;\n\n @Output()\n singleClick = new EventEmitter();\n\n constructor(private elementRef: ElementRef) {\n }\n\n ngOnInit(): void {\n this.subscription = fromEvent(this.elementRef.nativeElement, 'click')\n .pipe(throttleTime(this.throttleMillis))\n .subscribe((v) => {\n this.singleClick.emit(v);\n });\n }\n\n ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n this.singleClick.unsubscribe();\n }\n\n}\n","import {Component, Host, Input, OnInit, Optional} from '@angular/core';\nimport {FormComponent} from '../form.component';\n\n@Component({\n selector: 'mcl-mensagens-erro,mat-error[name],[mat-error][name]',\n templateUrl: './mensagens-erro.component.html',\n styleUrls: ['./mensagens-erro.component.scss']\n})\nexport class MensagensErroComponent implements OnInit {\n\n @Input() name: string;\n @Input() form: FormComponent;\n\n constructor(\n @Host() @Optional() form: FormComponent\n ) {\n this.form = form;\n }\n\n ngOnInit(): void {\n }\n\n get errors() {\n if (this.form?.form?.controls && this.form?.form?.controls[this.name] && this.form?.form?.controls[this.name].errors) {\n return Object.keys(this.form.form.controls[this.name].errors);\n }\n\n return undefined;\n }\n\n}\n","<span *ngFor=\"let error of errors\">\n {{'validation.' + error | translate:form.form.controls[name].errors[error]}}\n</span>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport {FormComponent} from './form.component';\nimport { SingleClickDirective } from './single-click.directive';\nimport {FormsModule} from '@angular/forms';\nimport {MensagensErroComponent} from './mensagens-erro/mensagens-erro.component';\nimport {TranslateModule} from '@ngx-translate/core';\n\n\n\n@NgModule({\n declarations: [FormComponent, SingleClickDirective, MensagensErroComponent],\n exports: [\n FormComponent,\n SingleClickDirective,\n MensagensErroComponent,\n ],\n imports: [\n CommonModule,\n FormsModule,\n TranslateModule\n ]\n})\nexport class FormModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.FormComponent"],"mappings":";;;;;;;;;;;MAsBa,aAAa,CAAA;AAexB,IAAA,WAAA,GAAA;AAbU,QAAA,I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