@main-class/componentes 1.19.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (503) hide show
  1. package/arquivo/src/arquivo.module.d.ts +15 -0
  2. package/arquivo/src/download-arquivo.directive.d.ts +4 -1
  3. package/arquivo/src/imagem.directive.d.ts +3 -0
  4. package/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +3 -0
  5. package/arquivo/src/preview-arquivo/preview-arquivo.component.d.ts +4 -1
  6. package/core/src/core.module.d.ts +5 -0
  7. package/core/src/criptografia/criptografia.service.d.ts +3 -0
  8. package/core/src/mensageria/mensageria.service.d.ts +3 -0
  9. package/core/src/mobile/mobile.service.d.ts +3 -0
  10. package/core/src/validator/valida-modulo11.service.d.ts +3 -0
  11. package/crud/src/abstract-consulta-component.d.ts +3 -0
  12. package/crud/src/abstract-consulta-paginada-component.d.ts +3 -0
  13. package/crud/src/abstract-edicao-component.d.ts +3 -0
  14. package/date/src/date.module.d.ts +7 -0
  15. package/date/src/validator/data-validator.directive.d.ts +3 -0
  16. package/date/src/validator/futuro.directive.d.ts +3 -0
  17. package/dialog/src/dialog-confirmacao/dialog-confirmacao.component.d.ts +3 -0
  18. package/dialog/src/dialog-iframe/dialog-iframe.component.d.ts +3 -0
  19. package/dialog/src/dialog.module.d.ts +12 -0
  20. package/dialog/src/dialog.service.d.ts +3 -0
  21. package/esm2020/arquivo/src/arquivo.module.mjs +47 -0
  22. package/esm2020/arquivo/src/download-arquivo.directive.mjs +46 -0
  23. package/esm2020/arquivo/src/imagem.directive.mjs +89 -0
  24. package/esm2020/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.mjs +65 -0
  25. package/esm2020/arquivo/src/preview-arquivo/preview-arquivo.component.mjs +139 -0
  26. package/esm2020/core/src/core.module.mjs +32 -0
  27. package/esm2020/core/src/criptografia/criptografia.service.mjs +16 -0
  28. package/esm2020/core/src/mensageria/mensageria.service.mjs +57 -0
  29. package/esm2020/core/src/mobile/mobile.service.mjs +43 -0
  30. package/esm2020/core/src/validator/valida-modulo11.service.mjs +95 -0
  31. package/esm2020/crud/src/abstract-consulta-component.mjs +55 -0
  32. package/esm2020/crud/src/abstract-consulta-paginada-component.mjs +45 -0
  33. package/esm2020/crud/src/abstract-edicao-component.mjs +30 -0
  34. package/esm2020/crud/src/abstract-edicao-modal-component.mjs +19 -0
  35. package/esm2020/date/src/date.module.mjs +25 -0
  36. package/esm2020/date/src/validator/data-validator.directive.mjs +105 -0
  37. package/esm2020/date/src/validator/futuro.directive.mjs +33 -0
  38. package/esm2020/dialog/src/dialog-confirmacao/dialog-confirmacao.component.mjs +44 -0
  39. package/esm2020/dialog/src/dialog-iframe/dialog-iframe.component.mjs +60 -0
  40. package/esm2020/dialog/src/dialog.module.mjs +53 -0
  41. package/esm2020/dialog/src/dialog.service.mjs +53 -0
  42. package/esm2020/form/src/form.component.mjs +106 -0
  43. package/esm2020/form/src/form.module.mjs +36 -0
  44. package/esm2020/form/src/mensagens-erro/mensagens-erro.component.mjs +33 -0
  45. package/esm2020/form/src/single-click.directive.mjs +35 -0
  46. package/esm2020/input/main-class-componentes-input.mjs +5 -0
  47. package/esm2020/input/src/abstract-mat-form-field-control.mjs +116 -0
  48. package/esm2020/input/src/input-datetime/input-datetime.component.mjs +130 -0
  49. package/esm2020/input/src/input-datetime/input-datetime.module.mjs +101 -0
  50. package/esm2020/input/src/input-fileupload/input-fileupload.component.mjs +355 -0
  51. package/esm2020/input/src/input-fileupload/input-fileupload.directive.mjs +37 -0
  52. package/esm2020/input/src/input-fileupload/input-fileupload.module.mjs +57 -0
  53. package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.mjs +29 -0
  54. package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.component.mjs +78 -0
  55. package/esm2020/input/src/input-telefone-internacional/input-telefone-internacional.module.mjs +33 -0
  56. package/esm2020/input/src/option-checkbox/all-option-checkbox.component.mjs +38 -0
  57. package/esm2020/input/src/option-checkbox/option-checkbox-group.component.mjs +80 -0
  58. package/esm2020/input/src/option-checkbox/option-checkbox.component.mjs +62 -0
  59. package/esm2020/input/src/option-checkbox/option-checkbox.module.mjs +39 -0
  60. package/esm2020/input/src/option-checkbox/option-checkbox.service.mjs +54 -0
  61. package/esm2020/input/src/select-chips/select-chips.component.mjs +202 -0
  62. package/esm2020/input/src/select-chips/select-chips.module.mjs +40 -0
  63. package/esm2020/input/src/select-item/select-item.component.mjs +19 -0
  64. package/esm2020/input/src/select-item/select-item.module.mjs +20 -0
  65. package/esm2020/input/src/select-many-checkbox/select-many-checkbox.component.mjs +170 -0
  66. package/esm2020/input/src/select-many-checkbox/select-many-checkbox.module.mjs +32 -0
  67. package/esm2020/input/src/select-radio/select-radio.component.mjs +143 -0
  68. package/esm2020/input/src/select-radio/select-radio.module.mjs +32 -0
  69. package/esm2020/loader/src/loader.component.mjs +125 -0
  70. package/esm2020/loader/src/loader.module.mjs +37 -0
  71. package/esm2020/loader/src/loader.service.mjs +72 -0
  72. package/esm2020/misc/src/cnpj/cnpj-model.directive.mjs +17 -0
  73. package/esm2020/misc/src/cnpj/cnpj.directive.mjs +36 -0
  74. package/esm2020/misc/src/cnpj/cnpj.module.mjs +26 -0
  75. package/esm2020/misc/src/cnpj/cnpjs.pipe.mjs +19 -0
  76. package/esm2020/misc/src/cpf/cpf-model.directive.mjs +17 -0
  77. package/esm2020/misc/src/cpf/cpf.directive.mjs +36 -0
  78. package/esm2020/misc/src/cpf/cpf.module.mjs +24 -0
  79. package/esm2020/misc/src/cpf/cpf.pipe.mjs +19 -0
  80. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj-model.directive.mjs +29 -0
  81. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.directive.mjs +37 -0
  82. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.module.mjs +24 -0
  83. package/esm2020/misc/src/cpf-cnpj/cpf-cnpj.pipe.mjs +22 -0
  84. package/esm2020/misc/src/info/info.component.mjs +20 -0
  85. package/esm2020/misc/src/info/info.module.mjs +24 -0
  86. package/{esm2015/misc/src/monetario/monetario-mask.js → esm2020/misc/src/monetario/monetario-mask.mjs} +0 -2
  87. package/esm2020/misc/src/monetario/monetario-model.directive.mjs +133 -0
  88. package/esm2020/misc/src/monetario/monetario.module.mjs +21 -0
  89. package/esm2020/misc/src/monetario/monetario.pipe.mjs +17 -0
  90. package/{esm2015/misc/src/porcentagem/porcentagem-mask.js → esm2020/misc/src/porcentagem/porcentagem-mask.mjs} +0 -2
  91. package/esm2020/misc/src/porcentagem/porcentagem-model.directive.mjs +108 -0
  92. package/esm2020/misc/src/porcentagem/porcentagem.module.mjs +21 -0
  93. package/esm2020/misc/src/porcentagem/porcentagem.pipe.mjs +17 -0
  94. package/esm2020/misc/src/telefone/telefone-model.directive.mjs +29 -0
  95. package/esm2020/misc/src/telefone/telefone.module.mjs +25 -0
  96. package/esm2020/misc/src/telefone/telefone.pipe.mjs +37 -0
  97. package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.directive.mjs +25 -0
  98. package/esm2020/misc/src/unsafe-inner-html/unsafe-inner-html.module.mjs +20 -0
  99. package/esm2020/model/src/masked-model.directive.mjs +155 -0
  100. package/esm2020/model/src/model.module.mjs +24 -0
  101. package/esm2020/pipe/src/nome-resumido.pipe.mjs +20 -0
  102. package/esm2020/pipe/src/pipe.module.mjs +24 -0
  103. package/esm2020/scroll/src/scroll-container/scroll-container.component.mjs +72 -0
  104. package/esm2020/scroll/src/scroll.module.mjs +22 -0
  105. package/{esm2015/table/main-class-componentes-table.js → esm2020/table/main-class-componentes-table.mjs} +1 -2
  106. package/esm2020/table/src/column/column-cell.directive.mjs +16 -0
  107. package/esm2020/table/src/column/column-footer.directive.mjs +16 -0
  108. package/esm2020/table/src/column/column-header.directive.mjs +16 -0
  109. package/esm2020/table/src/column/column.directive.mjs +37 -0
  110. package/esm2020/table/src/infinite-table/infinite-table.component.mjs +95 -0
  111. package/esm2020/table/src/paginated-table/paginated-table.component.mjs +52 -0
  112. package/esm2020/table/src/paginator/paginator.component.mjs +19 -0
  113. package/esm2020/table/src/table/table.component.mjs +127 -0
  114. package/esm2020/table/src/table.module.mjs +120 -0
  115. package/esm2020/table/src/td/td.component.mjs +18 -0
  116. package/esm2020/table/src/th/th.component.mjs +18 -0
  117. package/fesm2015/main-class-componentes-arquivo.mjs +389 -0
  118. package/fesm2015/main-class-componentes-arquivo.mjs.map +1 -0
  119. package/fesm2015/{main-class-componentes-core.js → main-class-componentes-core.mjs} +43 -37
  120. package/fesm2015/main-class-componentes-core.mjs.map +1 -0
  121. package/fesm2015/{main-class-componentes-crud.js → main-class-componentes-crud.mjs} +32 -22
  122. package/fesm2015/main-class-componentes-crud.mjs.map +1 -0
  123. package/fesm2015/main-class-componentes-date.mjs +162 -0
  124. package/fesm2015/main-class-componentes-date.mjs.map +1 -0
  125. package/fesm2015/main-class-componentes-dialog.mjs +206 -0
  126. package/fesm2015/main-class-componentes-dialog.mjs.map +1 -0
  127. package/fesm2015/main-class-componentes-form.mjs +209 -0
  128. package/fesm2015/main-class-componentes-form.mjs.map +1 -0
  129. package/fesm2015/main-class-componentes-input.mjs +1876 -0
  130. package/fesm2015/main-class-componentes-input.mjs.map +1 -0
  131. package/fesm2015/main-class-componentes-loader.mjs +236 -0
  132. package/fesm2015/main-class-componentes-loader.mjs.map +1 -0
  133. package/fesm2015/main-class-componentes-misc.mjs +787 -0
  134. package/fesm2015/main-class-componentes-misc.mjs.map +1 -0
  135. package/fesm2015/{main-class-componentes-model.js → main-class-componentes-model.mjs} +46 -36
  136. package/fesm2015/main-class-componentes-model.mjs.map +1 -0
  137. package/fesm2015/main-class-componentes-pipe.mjs +48 -0
  138. package/fesm2015/main-class-componentes-pipe.mjs.map +1 -0
  139. package/fesm2015/main-class-componentes-scroll.mjs +98 -0
  140. package/fesm2015/main-class-componentes-scroll.mjs.map +1 -0
  141. package/fesm2015/main-class-componentes-table.mjs +518 -0
  142. package/fesm2015/main-class-componentes-table.mjs.map +1 -0
  143. package/fesm2015/{main-class-componentes-util.js → main-class-componentes-util.mjs} +1 -1
  144. package/fesm2015/main-class-componentes-util.mjs.map +1 -0
  145. package/fesm2015/{main-class-componentes.js → main-class-componentes.mjs} +1 -1
  146. package/fesm2015/main-class-componentes.mjs.map +1 -0
  147. package/fesm2020/main-class-componentes-arquivo.mjs +372 -0
  148. package/fesm2020/main-class-componentes-arquivo.mjs.map +1 -0
  149. package/fesm2020/main-class-componentes-core.mjs +238 -0
  150. package/fesm2020/main-class-componentes-core.mjs.map +1 -0
  151. package/fesm2020/main-class-componentes-crud.mjs +151 -0
  152. package/fesm2020/main-class-componentes-crud.mjs.map +1 -0
  153. package/fesm2020/main-class-componentes-date.mjs +162 -0
  154. package/fesm2020/main-class-componentes-date.mjs.map +1 -0
  155. package/fesm2020/main-class-componentes-dialog.mjs +201 -0
  156. package/fesm2020/main-class-componentes-dialog.mjs.map +1 -0
  157. package/fesm2020/main-class-componentes-form.mjs +204 -0
  158. package/fesm2020/main-class-componentes-form.mjs.map +1 -0
  159. package/fesm2020/main-class-componentes-input.mjs +1860 -0
  160. package/fesm2020/main-class-componentes-input.mjs.map +1 -0
  161. package/fesm2020/main-class-componentes-loader.mjs +234 -0
  162. package/fesm2020/main-class-componentes-loader.mjs.map +1 -0
  163. package/fesm2020/main-class-componentes-misc.mjs +785 -0
  164. package/fesm2020/main-class-componentes-misc.mjs.map +1 -0
  165. package/fesm2020/main-class-componentes-model.mjs +183 -0
  166. package/fesm2020/main-class-componentes-model.mjs.map +1 -0
  167. package/fesm2020/main-class-componentes-pipe.mjs +48 -0
  168. package/fesm2020/main-class-componentes-pipe.mjs.map +1 -0
  169. package/fesm2020/main-class-componentes-scroll.mjs +98 -0
  170. package/fesm2020/main-class-componentes-scroll.mjs.map +1 -0
  171. package/fesm2020/main-class-componentes-table.mjs +510 -0
  172. package/fesm2020/main-class-componentes-table.mjs.map +1 -0
  173. package/fesm2020/main-class-componentes-util.mjs +18 -0
  174. package/fesm2020/main-class-componentes-util.mjs.map +1 -0
  175. package/fesm2020/main-class-componentes.mjs +9 -0
  176. package/fesm2020/main-class-componentes.mjs.map +1 -0
  177. package/form/src/form.component.d.ts +3 -0
  178. package/form/src/form.module.d.ts +10 -0
  179. package/form/src/mensagens-erro/mensagens-erro.component.d.ts +3 -0
  180. package/form/src/single-click.directive.d.ts +3 -0
  181. package/{main-class-componentes.d.ts → index.d.ts} +1 -0
  182. package/input/src/abstract-mat-form-field-control.d.ts +3 -0
  183. package/input/src/input-datetime/input-datetime.component.d.ts +5 -2
  184. package/input/src/input-datetime/input-datetime.module.d.ts +11 -0
  185. package/input/src/input-fileupload/input-fileupload.component.d.ts +3 -0
  186. package/input/src/input-fileupload/input-fileupload.directive.d.ts +3 -0
  187. package/input/src/input-fileupload/input-fileupload.module.d.ts +16 -0
  188. package/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.d.ts +3 -0
  189. package/input/src/input-telefone-internacional/input-telefone-internacional.component.d.ts +3 -0
  190. package/input/src/input-telefone-internacional/input-telefone-internacional.module.d.ts +9 -0
  191. package/input/src/option-checkbox/all-option-checkbox.component.d.ts +3 -0
  192. package/input/src/option-checkbox/option-checkbox-group.component.d.ts +3 -0
  193. package/input/src/option-checkbox/option-checkbox.component.d.ts +3 -0
  194. package/input/src/option-checkbox/option-checkbox.module.d.ts +10 -0
  195. package/input/src/option-checkbox/option-checkbox.service.d.ts +3 -0
  196. package/input/src/select-chips/select-chips.component.d.ts +9 -6
  197. package/input/src/select-chips/select-chips.module.d.ts +11 -0
  198. package/input/src/select-item/select-item.component.d.ts +3 -0
  199. package/input/src/select-item/select-item.module.d.ts +6 -0
  200. package/input/src/select-many-checkbox/select-many-checkbox.component.d.ts +3 -0
  201. package/input/src/select-many-checkbox/select-many-checkbox.module.d.ts +9 -0
  202. package/input/src/select-radio/select-radio.component.d.ts +3 -0
  203. package/input/src/select-radio/select-radio.module.d.ts +9 -0
  204. package/loader/src/loader.component.d.ts +3 -0
  205. package/loader/src/loader.module.d.ts +7 -0
  206. package/loader/src/loader.service.d.ts +3 -0
  207. package/misc/src/cnpj/cnpj-model.directive.d.ts +3 -0
  208. package/misc/src/cnpj/cnpj.directive.d.ts +3 -0
  209. package/misc/src/cnpj/cnpj.module.d.ts +9 -0
  210. package/misc/src/cnpj/cnpjs.pipe.d.ts +3 -0
  211. package/misc/src/cpf/cpf-model.directive.d.ts +3 -0
  212. package/misc/src/cpf/cpf.directive.d.ts +3 -0
  213. package/misc/src/cpf/cpf.module.d.ts +8 -0
  214. package/misc/src/cpf/cpf.pipe.d.ts +3 -0
  215. package/misc/src/cpf-cnpj/cpf-cnpj-model.directive.d.ts +3 -0
  216. package/misc/src/cpf-cnpj/cpf-cnpj.directive.d.ts +3 -0
  217. package/misc/src/cpf-cnpj/cpf-cnpj.module.d.ts +8 -0
  218. package/misc/src/cpf-cnpj/cpf-cnpj.pipe.d.ts +3 -0
  219. package/misc/src/info/info.component.d.ts +3 -0
  220. package/misc/src/info/info.module.d.ts +7 -0
  221. package/misc/src/monetario/monetario-model.directive.d.ts +3 -0
  222. package/misc/src/monetario/monetario.module.d.ts +7 -0
  223. package/misc/src/monetario/monetario.pipe.d.ts +3 -0
  224. package/misc/src/porcentagem/porcentagem-model.directive.d.ts +3 -0
  225. package/misc/src/porcentagem/porcentagem.module.d.ts +7 -0
  226. package/misc/src/porcentagem/porcentagem.pipe.d.ts +3 -0
  227. package/misc/src/telefone/telefone-model.directive.d.ts +3 -0
  228. package/misc/src/telefone/telefone.module.d.ts +8 -0
  229. package/misc/src/telefone/telefone.pipe.d.ts +3 -0
  230. package/misc/src/unsafe-inner-html/unsafe-inner-html.directive.d.ts +3 -0
  231. package/misc/src/unsafe-inner-html/unsafe-inner-html.module.d.ts +6 -0
  232. package/model/src/masked-model.directive.d.ts +3 -0
  233. package/model/src/model.module.d.ts +6 -0
  234. package/package.json +135 -11
  235. package/pipe/src/nome-resumido.pipe.d.ts +3 -0
  236. package/pipe/src/pipe.module.d.ts +6 -0
  237. package/scroll/src/scroll-container/scroll-container.component.d.ts +3 -0
  238. package/scroll/src/scroll.module.d.ts +6 -0
  239. package/table/src/column/column-cell.directive.d.ts +3 -0
  240. package/table/src/column/column-footer.directive.d.ts +3 -0
  241. package/table/src/column/column-header.directive.d.ts +3 -0
  242. package/table/src/column/column.directive.d.ts +3 -0
  243. package/table/src/infinite-table/infinite-table.component.d.ts +3 -0
  244. package/table/src/paginated-table/paginated-table.component.d.ts +3 -0
  245. package/table/src/paginator/paginator.component.d.ts +3 -0
  246. package/table/src/table/table.component.d.ts +3 -0
  247. package/table/src/table.module.d.ts +24 -0
  248. package/table/src/td/td.component.d.ts +3 -0
  249. package/table/src/th/th.component.d.ts +3 -0
  250. package/arquivo/main-class-componentes-arquivo.d.ts +0 -4
  251. package/arquivo/main-class-componentes-arquivo.metadata.json +0 -1
  252. package/arquivo/package.json +0 -11
  253. package/bundles/main-class-componentes-arquivo.umd.js +0 -687
  254. package/bundles/main-class-componentes-arquivo.umd.js.map +0 -1
  255. package/bundles/main-class-componentes-arquivo.umd.min.js +0 -16
  256. package/bundles/main-class-componentes-arquivo.umd.min.js.map +0 -1
  257. package/bundles/main-class-componentes-core.umd.js +0 -252
  258. package/bundles/main-class-componentes-core.umd.js.map +0 -1
  259. package/bundles/main-class-componentes-core.umd.min.js +0 -2
  260. package/bundles/main-class-componentes-core.umd.min.js.map +0 -1
  261. package/bundles/main-class-componentes-crud.umd.js +0 -543
  262. package/bundles/main-class-componentes-crud.umd.js.map +0 -1
  263. package/bundles/main-class-componentes-crud.umd.min.js +0 -16
  264. package/bundles/main-class-componentes-crud.umd.min.js.map +0 -1
  265. package/bundles/main-class-componentes-date.umd.js +0 -185
  266. package/bundles/main-class-componentes-date.umd.js.map +0 -1
  267. package/bundles/main-class-componentes-date.umd.min.js +0 -2
  268. package/bundles/main-class-componentes-date.umd.min.js.map +0 -1
  269. package/bundles/main-class-componentes-dialog.umd.js +0 -214
  270. package/bundles/main-class-componentes-dialog.umd.js.map +0 -1
  271. package/bundles/main-class-componentes-dialog.umd.min.js +0 -2
  272. package/bundles/main-class-componentes-dialog.umd.min.js.map +0 -1
  273. package/bundles/main-class-componentes-form.umd.js +0 -211
  274. package/bundles/main-class-componentes-form.umd.js.map +0 -1
  275. package/bundles/main-class-componentes-form.umd.min.js +0 -2
  276. package/bundles/main-class-componentes-form.umd.min.js.map +0 -1
  277. package/bundles/main-class-componentes-input.umd.js +0 -2251
  278. package/bundles/main-class-componentes-input.umd.js.map +0 -1
  279. package/bundles/main-class-componentes-input.umd.min.js +0 -17
  280. package/bundles/main-class-componentes-input.umd.min.js.map +0 -1
  281. package/bundles/main-class-componentes-loader.umd.js +0 -241
  282. package/bundles/main-class-componentes-loader.umd.js.map +0 -1
  283. package/bundles/main-class-componentes-loader.umd.min.js +0 -2
  284. package/bundles/main-class-componentes-loader.umd.min.js.map +0 -1
  285. package/bundles/main-class-componentes-misc.umd.js +0 -1122
  286. package/bundles/main-class-componentes-misc.umd.js.map +0 -1
  287. package/bundles/main-class-componentes-misc.umd.min.js +0 -16
  288. package/bundles/main-class-componentes-misc.umd.min.js.map +0 -1
  289. package/bundles/main-class-componentes-model.umd.js +0 -196
  290. package/bundles/main-class-componentes-model.umd.js.map +0 -1
  291. package/bundles/main-class-componentes-model.umd.min.js +0 -2
  292. package/bundles/main-class-componentes-model.umd.min.js.map +0 -1
  293. package/bundles/main-class-componentes-pipe.umd.js +0 -58
  294. package/bundles/main-class-componentes-pipe.umd.js.map +0 -1
  295. package/bundles/main-class-componentes-pipe.umd.min.js +0 -2
  296. package/bundles/main-class-componentes-pipe.umd.min.js.map +0 -1
  297. package/bundles/main-class-componentes-scroll.umd.js +0 -106
  298. package/bundles/main-class-componentes-scroll.umd.js.map +0 -1
  299. package/bundles/main-class-componentes-scroll.umd.min.js +0 -2
  300. package/bundles/main-class-componentes-scroll.umd.min.js.map +0 -1
  301. package/bundles/main-class-componentes-table.umd.js +0 -787
  302. package/bundles/main-class-componentes-table.umd.js.map +0 -1
  303. package/bundles/main-class-componentes-table.umd.min.js +0 -17
  304. package/bundles/main-class-componentes-table.umd.min.js.map +0 -1
  305. package/bundles/main-class-componentes-util.umd.js +0 -31
  306. package/bundles/main-class-componentes-util.umd.js.map +0 -1
  307. package/bundles/main-class-componentes-util.umd.min.js +0 -2
  308. package/bundles/main-class-componentes-util.umd.min.js.map +0 -1
  309. package/bundles/main-class-componentes.umd.js +0 -16
  310. package/bundles/main-class-componentes.umd.js.map +0 -1
  311. package/bundles/main-class-componentes.umd.min.js +0 -2
  312. package/bundles/main-class-componentes.umd.min.js.map +0 -1
  313. package/core/main-class-componentes-core.d.ts +0 -4
  314. package/core/main-class-componentes-core.metadata.json +0 -1
  315. package/core/package.json +0 -11
  316. package/crud/main-class-componentes-crud.d.ts +0 -4
  317. package/crud/main-class-componentes-crud.metadata.json +0 -1
  318. package/crud/package.json +0 -11
  319. package/date/main-class-componentes-date.d.ts +0 -4
  320. package/date/main-class-componentes-date.metadata.json +0 -1
  321. package/date/package.json +0 -11
  322. package/dialog/main-class-componentes-dialog.d.ts +0 -4
  323. package/dialog/main-class-componentes-dialog.metadata.json +0 -1
  324. package/dialog/package.json +0 -11
  325. package/esm2015/arquivo/src/arquivo.module.js +0 -30
  326. package/esm2015/arquivo/src/download-arquivo.directive.js +0 -44
  327. package/esm2015/arquivo/src/imagem.directive.js +0 -80
  328. package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
  329. package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +0 -136
  330. package/esm2015/core/src/core.module.js +0 -27
  331. package/esm2015/core/src/criptografia/criptografia.service.js +0 -13
  332. package/esm2015/core/src/mensageria/mensageria.service.js +0 -48
  333. package/esm2015/core/src/mobile/mobile.service.js +0 -45
  334. package/esm2015/core/src/validator/valida-modulo11.service.js +0 -92
  335. package/esm2015/crud/src/abstract-consulta-component.js +0 -60
  336. package/esm2015/crud/src/abstract-consulta-paginada-component.js +0 -48
  337. package/esm2015/crud/src/abstract-edicao-component.js +0 -29
  338. package/esm2015/crud/src/abstract-edicao-modal-component.js +0 -24
  339. package/esm2015/date/src/date.module.js +0 -19
  340. package/esm2015/date/src/validator/data-validator.directive.js +0 -97
  341. package/esm2015/date/src/validator/futuro.directive.js +0 -26
  342. package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
  343. package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +0 -59
  344. package/esm2015/dialog/src/dialog.module.js +0 -37
  345. package/esm2015/dialog/src/dialog.service.js +0 -55
  346. package/esm2015/form/src/form.component.js +0 -103
  347. package/esm2015/form/src/form.module.js +0 -25
  348. package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +0 -31
  349. package/esm2015/form/src/single-click.directive.js +0 -35
  350. package/esm2015/input/main-class-componentes-input.js +0 -6
  351. package/esm2015/input/src/abstract-mat-form-field-control.js +0 -110
  352. package/esm2015/input/src/input-datetime/input-datetime.component.js +0 -114
  353. package/esm2015/input/src/input-datetime/input-datetime.module.js +0 -60
  354. package/esm2015/input/src/input-fileupload/input-fileupload.component.js +0 -324
  355. package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +0 -34
  356. package/esm2015/input/src/input-fileupload/input-fileupload.module.js +0 -34
  357. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
  358. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
  359. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
  360. package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +0 -36
  361. package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +0 -71
  362. package/esm2015/input/src/option-checkbox/option-checkbox.component.js +0 -59
  363. package/esm2015/input/src/option-checkbox/option-checkbox.module.js +0 -30
  364. package/esm2015/input/src/option-checkbox/option-checkbox.service.js +0 -52
  365. package/esm2015/input/src/select-chips/select-chips.component.js +0 -177
  366. package/esm2015/input/src/select-chips/select-chips.module.js +0 -25
  367. package/esm2015/input/src/select-item/select-item.component.js +0 -20
  368. package/esm2015/input/src/select-item/select-item.module.js +0 -15
  369. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +0 -150
  370. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +0 -21
  371. package/esm2015/input/src/select-radio/select-radio.component.js +0 -124
  372. package/esm2015/input/src/select-radio/select-radio.module.js +0 -21
  373. package/esm2015/loader/src/loader.component.js +0 -112
  374. package/esm2015/loader/src/loader.module.js +0 -30
  375. package/esm2015/loader/src/loader.service.js +0 -70
  376. package/esm2015/misc/src/cnpj/cnpj-model.directive.js +0 -13
  377. package/esm2015/misc/src/cnpj/cnpj.directive.js +0 -31
  378. package/esm2015/misc/src/cnpj/cnpj.module.js +0 -19
  379. package/esm2015/misc/src/cnpj/cnpjs.pipe.js +0 -15
  380. package/esm2015/misc/src/cpf/cpf-model.directive.js +0 -13
  381. package/esm2015/misc/src/cpf/cpf.directive.js +0 -31
  382. package/esm2015/misc/src/cpf/cpf.module.js +0 -19
  383. package/esm2015/misc/src/cpf/cpf.pipe.js +0 -15
  384. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
  385. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +0 -32
  386. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +0 -19
  387. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
  388. package/esm2015/misc/src/info/info.component.js +0 -20
  389. package/esm2015/misc/src/info/info.module.js +0 -17
  390. package/esm2015/misc/src/monetario/monetario-model.directive.js +0 -124
  391. package/esm2015/misc/src/monetario/monetario.module.js +0 -16
  392. package/esm2015/misc/src/monetario/monetario.pipe.js +0 -13
  393. package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +0 -99
  394. package/esm2015/misc/src/porcentagem/porcentagem.module.js +0 -16
  395. package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +0 -13
  396. package/esm2015/misc/src/telefone/telefone-model.directive.js +0 -25
  397. package/esm2015/misc/src/telefone/telefone.module.js +0 -18
  398. package/esm2015/misc/src/telefone/telefone.pipe.js +0 -33
  399. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
  400. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
  401. package/esm2015/model/src/masked-model.directive.js +0 -149
  402. package/esm2015/model/src/model.module.js +0 -19
  403. package/esm2015/pipe/src/nome-resumido.pipe.js +0 -16
  404. package/esm2015/pipe/src/pipe.module.js +0 -19
  405. package/esm2015/scroll/src/scroll-container/scroll-container.component.js +0 -69
  406. package/esm2015/scroll/src/scroll.module.js +0 -17
  407. package/esm2015/table/src/column/column-cell.directive.js +0 -15
  408. package/esm2015/table/src/column/column-footer.directive.js +0 -15
  409. package/esm2015/table/src/column/column-header.directive.js +0 -15
  410. package/esm2015/table/src/column/column.directive.js +0 -28
  411. package/esm2015/table/src/infinite-table/infinite-table.component.js +0 -92
  412. package/esm2015/table/src/paginated-table/paginated-table.component.js +0 -43
  413. package/esm2015/table/src/paginator/paginator.component.js +0 -12
  414. package/esm2015/table/src/table/table.component.js +0 -119
  415. package/esm2015/table/src/table.module.js +0 -74
  416. package/esm2015/table/src/td/td.component.js +0 -19
  417. package/esm2015/table/src/th/th.component.js +0 -19
  418. package/fesm2015/main-class-componentes-arquivo.js +0 -338
  419. package/fesm2015/main-class-componentes-arquivo.js.map +0 -1
  420. package/fesm2015/main-class-componentes-core.js.map +0 -1
  421. package/fesm2015/main-class-componentes-crud.js.map +0 -1
  422. package/fesm2015/main-class-componentes-date.js +0 -143
  423. package/fesm2015/main-class-componentes-date.js.map +0 -1
  424. package/fesm2015/main-class-componentes-dialog.js +0 -185
  425. package/fesm2015/main-class-componentes-dialog.js.map +0 -1
  426. package/fesm2015/main-class-componentes-form.js +0 -191
  427. package/fesm2015/main-class-componentes-form.js.map +0 -1
  428. package/fesm2015/main-class-componentes-input.js +0 -1611
  429. package/fesm2015/main-class-componentes-input.js.map +0 -1
  430. package/fesm2015/main-class-componentes-loader.js +0 -214
  431. package/fesm2015/main-class-componentes-loader.js.map +0 -1
  432. package/fesm2015/main-class-componentes-misc.js +0 -688
  433. package/fesm2015/main-class-componentes-misc.js.map +0 -1
  434. package/fesm2015/main-class-componentes-model.js.map +0 -1
  435. package/fesm2015/main-class-componentes-pipe.js +0 -40
  436. package/fesm2015/main-class-componentes-pipe.js.map +0 -1
  437. package/fesm2015/main-class-componentes-scroll.js +0 -91
  438. package/fesm2015/main-class-componentes-scroll.js.map +0 -1
  439. package/fesm2015/main-class-componentes-table.js +0 -446
  440. package/fesm2015/main-class-componentes-table.js.map +0 -1
  441. package/fesm2015/main-class-componentes-util.js.map +0 -1
  442. package/fesm2015/main-class-componentes.js.map +0 -1
  443. package/form/main-class-componentes-form.d.ts +0 -4
  444. package/form/main-class-componentes-form.metadata.json +0 -1
  445. package/form/package.json +0 -11
  446. package/input/main-class-componentes-input.d.ts +0 -5
  447. package/input/main-class-componentes-input.metadata.json +0 -1
  448. package/input/package.json +0 -11
  449. package/loader/main-class-componentes-loader.d.ts +0 -4
  450. package/loader/main-class-componentes-loader.metadata.json +0 -1
  451. package/loader/package.json +0 -11
  452. package/main-class-componentes.metadata.json +0 -1
  453. package/misc/main-class-componentes-misc.d.ts +0 -4
  454. package/misc/main-class-componentes-misc.metadata.json +0 -1
  455. package/misc/package.json +0 -11
  456. package/model/main-class-componentes-model.d.ts +0 -4
  457. package/model/main-class-componentes-model.metadata.json +0 -1
  458. package/model/package.json +0 -11
  459. package/pipe/main-class-componentes-pipe.d.ts +0 -4
  460. package/pipe/main-class-componentes-pipe.metadata.json +0 -1
  461. package/pipe/package.json +0 -11
  462. package/scroll/main-class-componentes-scroll.d.ts +0 -4
  463. package/scroll/main-class-componentes-scroll.metadata.json +0 -1
  464. package/scroll/package.json +0 -11
  465. package/table/main-class-componentes-table.d.ts +0 -5
  466. package/table/main-class-componentes-table.metadata.json +0 -1
  467. package/table/package.json +0 -11
  468. package/util/main-class-componentes-util.d.ts +0 -4
  469. package/util/main-class-componentes-util.metadata.json +0 -1
  470. package/util/package.json +0 -11
  471. /package/{esm2015/arquivo/index.js → esm2020/arquivo/index.mjs} +0 -0
  472. /package/{esm2015/arquivo/main-class-componentes-arquivo.js → esm2020/arquivo/main-class-componentes-arquivo.mjs} +0 -0
  473. /package/{esm2015/arquivo/src/arquivo-manager.service.js → esm2020/arquivo/src/arquivo-manager.service.mjs} +0 -0
  474. /package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
  475. /package/{esm2015/core/main-class-componentes-core.js → esm2020/core/main-class-componentes-core.mjs} +0 -0
  476. /package/{esm2015/crud/index.js → esm2020/crud/index.mjs} +0 -0
  477. /package/{esm2015/crud/main-class-componentes-crud.js → esm2020/crud/main-class-componentes-crud.mjs} +0 -0
  478. /package/{esm2015/date/index.js → esm2020/date/index.mjs} +0 -0
  479. /package/{esm2015/date/main-class-componentes-date.js → esm2020/date/main-class-componentes-date.mjs} +0 -0
  480. /package/{esm2015/dialog/index.js → esm2020/dialog/index.mjs} +0 -0
  481. /package/{esm2015/dialog/main-class-componentes-dialog.js → esm2020/dialog/main-class-componentes-dialog.mjs} +0 -0
  482. /package/{esm2015/form/index.js → esm2020/form/index.mjs} +0 -0
  483. /package/{esm2015/form/main-class-componentes-form.js → esm2020/form/main-class-componentes-form.mjs} +0 -0
  484. /package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
  485. /package/{esm2015/input/src/option-checkbox/node-pool.js → esm2020/input/src/option-checkbox/node-pool.mjs} +0 -0
  486. /package/{esm2015/input/src/option-checkbox/option-node.js → esm2020/input/src/option-checkbox/option-node.mjs} +0 -0
  487. /package/{esm2015/loader/index.js → esm2020/loader/index.mjs} +0 -0
  488. /package/{esm2015/loader/main-class-componentes-loader.js → esm2020/loader/main-class-componentes-loader.mjs} +0 -0
  489. /package/{esm2015/main-class-componentes.js → esm2020/main-class-componentes.mjs} +0 -0
  490. /package/{esm2015/misc/index.js → esm2020/misc/index.mjs} +0 -0
  491. /package/{esm2015/misc/main-class-componentes-misc.js → esm2020/misc/main-class-componentes-misc.mjs} +0 -0
  492. /package/{esm2015/model/index.js → esm2020/model/index.mjs} +0 -0
  493. /package/{esm2015/model/main-class-componentes-model.js → esm2020/model/main-class-componentes-model.mjs} +0 -0
  494. /package/{esm2015/pipe/index.js → esm2020/pipe/index.mjs} +0 -0
  495. /package/{esm2015/pipe/main-class-componentes-pipe.js → esm2020/pipe/main-class-componentes-pipe.mjs} +0 -0
  496. /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  497. /package/{esm2015/scroll/index.js → esm2020/scroll/index.mjs} +0 -0
  498. /package/{esm2015/scroll/main-class-componentes-scroll.js → esm2020/scroll/main-class-componentes-scroll.mjs} +0 -0
  499. /package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
  500. /package/{esm2015/table/src/paginator-i18n.js → esm2020/table/src/paginator-i18n.mjs} +0 -0
  501. /package/{esm2015/util/index.js → esm2020/util/index.mjs} +0 -0
  502. /package/{esm2015/util/main-class-componentes-util.js → esm2020/util/main-class-componentes-util.mjs} +0 -0
  503. /package/{esm2015/util/src/string.util.js → esm2020/util/src/string.util.mjs} +0 -0
@@ -0,0 +1,1876 @@
1
+ import { Subject, Observable, BehaviorSubject, combineLatest } from 'rxjs';
2
+ import * as i0 from '@angular/core';
3
+ import { Component, ViewChild, HostBinding, Input, Optional, Self, Inject, LOCALE_ID, NgModule, EventEmitter, Output, Directive, Injectable, ContentChildren } from '@angular/core';
4
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
5
+ import * as i1 from '@angular/material/core';
6
+ import { MAT_DATE_LOCALE } from '@angular/material/core';
7
+ import * as i2 from '@angular/forms';
8
+ import { FormsModule, NG_VALIDATORS, NG_VALUE_ACCESSOR, UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
9
+ import * as i3$1 from '@angular/common';
10
+ import { CommonModule } from '@angular/common';
11
+ import * as i3 from '@angular/material/input';
12
+ import { MatInputModule } from '@angular/material/input';
13
+ import * as i4 from '@mat-datetimepicker/core';
14
+ import { DatetimeAdapter, MAT_DATETIME_FORMATS, MatDatetimepickerModule } from '@mat-datetimepicker/core';
15
+ import { MomentDatetimeModule, MatMomentDatetimeModule, MomentDatetimeAdapter } from '@mat-datetimepicker/moment';
16
+ import * as i12 from '@angular/material/form-field';
17
+ import { MatFormFieldControl } from '@angular/material/form-field';
18
+ import * as moment from 'moment';
19
+ import * as i5 from '@main-class/componentes/model';
20
+ import { ModelModule } from '@main-class/componentes/model';
21
+ import { __awaiter } from 'tslib';
22
+ import * as i9 from '@main-class/componentes/arquivo';
23
+ import { ARQUIVO_MANAGER_SERVICE, ArquivoModule } from '@main-class/componentes/arquivo';
24
+ import * as i4$1 from '@angular/material/chips';
25
+ import { MatChipsModule } from '@angular/material/chips';
26
+ import * as i5$1 from '@angular/material/progress-spinner';
27
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
28
+ import * as i6 from '@angular/material/icon';
29
+ import { MatIconModule } from '@angular/material/icon';
30
+ import * as i7 from '@angular/flex-layout/flex';
31
+ import * as i8 from '@angular/flex-layout/extended';
32
+ import * as i10 from '@angular/material/button';
33
+ import { MatButtonModule } from '@angular/material/button';
34
+ import * as i13 from '@angular/material/tooltip';
35
+ import { MatTooltipModule } from '@angular/material/tooltip';
36
+ import { FlexLayoutModule } from '@angular/flex-layout';
37
+ import { switchMap, map, startWith } from 'rxjs/operators';
38
+ import * as i3$2 from '@angular/material/checkbox';
39
+ import { MatCheckboxModule } from '@angular/material/checkbox';
40
+ import { StringUtil } from '@main-class/componentes/util';
41
+ import * as i5$2 from '@angular/material/autocomplete';
42
+ import { MatAutocompleteModule } from '@angular/material/autocomplete';
43
+ import * as i6$1 from '@angular/material/legacy-chips';
44
+ import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
45
+ import * as i4$2 from '@angular/material/radio';
46
+ import { MatRadioModule } from '@angular/material/radio';
47
+ import * as i4$3 from 'lac-mat-tel-input';
48
+ import { phoneNumberValidator, LacMatTelInputModule } from 'lac-mat-tel-input';
49
+
50
+ // tslint:disable-next-line:component-class-suffix
51
+ class AbstractMatFormFieldControl {
52
+ constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
53
+ this.errorStateMatcher = errorStateMatcher;
54
+ this.ngControl = ngControl;
55
+ this.parentForm = parentForm;
56
+ this.parentFormGroup = parentFormGroup;
57
+ this.$disabled = false;
58
+ this.$required = false;
59
+ this.focused = false;
60
+ this.stateChanges = new Subject();
61
+ this.id = `custom-input-${AbstractMatFormFieldControl.nextId++}`;
62
+ this.describedBy = '';
63
+ this.onChange = (val) => {
64
+ };
65
+ this.onTouched = () => {
66
+ };
67
+ if (this.ngControl != null) {
68
+ this.ngControl.valueAccessor = this;
69
+ }
70
+ }
71
+ get value() {
72
+ return this.$value;
73
+ }
74
+ set value(value) {
75
+ this.$value = value;
76
+ this.onChange(value);
77
+ this.stateChanges.next();
78
+ }
79
+ get empty() {
80
+ return !this.value;
81
+ }
82
+ onContainerClick(event) {
83
+ }
84
+ get shouldLabelFloat() {
85
+ return !this.empty || (this.input && this.input.nativeElement.value) || this.focused;
86
+ }
87
+ get placeholder() {
88
+ return this.$placeholder;
89
+ }
90
+ set placeholder(plh) {
91
+ this.$placeholder = plh;
92
+ this.stateChanges.next();
93
+ }
94
+ get required() {
95
+ return this.$required;
96
+ }
97
+ set required(value) {
98
+ this.$required = coerceBooleanProperty(value);
99
+ this.stateChanges.next();
100
+ }
101
+ get disabled() {
102
+ return this.$disabled;
103
+ }
104
+ set disabled(value) {
105
+ this.$disabled = coerceBooleanProperty(value);
106
+ this.stateChanges.next();
107
+ }
108
+ get errorState() {
109
+ return this.errorStateMatcher.isErrorState(this.ngControl.control, this.parentFormGroup || this.parentForm);
110
+ }
111
+ get controlType() {
112
+ return 'custom-input';
113
+ }
114
+ setDescribedByIds(ids) {
115
+ this.describedBy = ids.join(' ');
116
+ }
117
+ ngOnDestroy() {
118
+ this.stateChanges.complete();
119
+ }
120
+ registerOnTouched(fn) {
121
+ this.onTouched = fn;
122
+ }
123
+ registerOnChange(fn) {
124
+ this.onChange = fn;
125
+ }
126
+ setDisabledState(isDisabled) {
127
+ this.disabled = isDisabled;
128
+ }
129
+ writeValue(value) {
130
+ this.$value = value;
131
+ }
132
+ }
133
+ AbstractMatFormFieldControl.nextId = 0;
134
+ AbstractMatFormFieldControl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbstractMatFormFieldControl, deps: [{ token: i1.ErrorStateMatcher }, { token: i2.NgControl }, { token: i2.NgForm }, { token: i2.FormGroupDirective }], target: i0.ɵɵFactoryTarget.Component });
135
+ AbstractMatFormFieldControl.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AbstractMatFormFieldControl, selector: "ng-component", inputs: { placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: '', isInline: true });
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AbstractMatFormFieldControl, decorators: [{
137
+ type: Component,
138
+ args: [{
139
+ template: ''
140
+ }]
141
+ }], ctorParameters: function () { return [{ type: i1.ErrorStateMatcher }, { type: i2.NgControl }, { type: i2.NgForm }, { type: i2.FormGroupDirective }]; }, propDecorators: { input: [{
142
+ type: ViewChild,
143
+ args: ['input']
144
+ }], id: [{
145
+ type: HostBinding
146
+ }], describedBy: [{
147
+ type: HostBinding,
148
+ args: ['attr.aria-describedby']
149
+ }], shouldLabelFloat: [{
150
+ type: HostBinding,
151
+ args: ['class.floating']
152
+ }], placeholder: [{
153
+ type: Input
154
+ }], required: [{
155
+ type: Input
156
+ }], disabled: [{
157
+ type: Input
158
+ }] } });
159
+
160
+ class InputDatetimeComponent extends AbstractMatFormFieldControl {
161
+ constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup, adapter, formats) {
162
+ super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
163
+ this.adapter = adapter;
164
+ this.formats = formats;
165
+ this.type = 'date';
166
+ }
167
+ get empty() {
168
+ return !this.$maskedValue;
169
+ }
170
+ get maskedValue() {
171
+ return this.$maskedValue;
172
+ }
173
+ set maskedValue(maskedValue) {
174
+ if (this.$maskedValue !== maskedValue) {
175
+ this.onTouched();
176
+ this.$maskedValue = maskedValue;
177
+ if (maskedValue) {
178
+ if (maskedValue.match(new RegExp(`^${this.mask.replace(/#/g, '\\d')}$`))) {
179
+ this.innerValue = this.adapter.parse(maskedValue, this.format).toDate();
180
+ }
181
+ else {
182
+ this.innerValue = undefined;
183
+ }
184
+ }
185
+ else {
186
+ this.innerValue = undefined;
187
+ }
188
+ this.onChange(this.innerValue);
189
+ this.stateChanges.next();
190
+ }
191
+ }
192
+ get mask() {
193
+ switch (this.type) {
194
+ case 'date':
195
+ return '##/##/####';
196
+ case 'time':
197
+ return '##:##';
198
+ }
199
+ return '##/##/#### ##:##';
200
+ }
201
+ get format() {
202
+ switch (this.type) {
203
+ case 'date':
204
+ return this.formats.display.dateInput;
205
+ case 'time':
206
+ return this.formats.display.timeInput;
207
+ }
208
+ return this.formats.display.datetimeInput;
209
+ }
210
+ get value() {
211
+ return this.innerValue;
212
+ }
213
+ set value(value) {
214
+ if (this.innerValue !== value) {
215
+ this.onTouched();
216
+ if (value) {
217
+ this.innerValue = value instanceof Date ? value : value.toDate();
218
+ this.$maskedValue = this.adapter.format(moment(this.innerValue), this.format);
219
+ }
220
+ else {
221
+ this.innerValue = undefined;
222
+ this.$maskedValue = '';
223
+ }
224
+ this.onChange(this.innerValue);
225
+ this.stateChanges.next();
226
+ }
227
+ }
228
+ writeValue(value) {
229
+ this.innerValue = value;
230
+ if (value) {
231
+ this.$maskedValue = this.adapter.format(moment(value), this.format);
232
+ }
233
+ else {
234
+ this.$maskedValue = '';
235
+ }
236
+ this.stateChanges.next();
237
+ }
238
+ }
239
+ InputDatetimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputDatetimeComponent, deps: [{ token: i1.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }, { token: DatetimeAdapter }, { token: MAT_DATETIME_FORMATS }], target: i0.ɵɵFactoryTarget.Component });
240
+ InputDatetimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputDatetimeComponent, selector: "mcl-input-datetime", inputs: { type: "type", readonly: "readonly", name: "name" }, providers: [
241
+ {
242
+ provide: MatFormFieldControl,
243
+ useExisting: InputDatetimeComponent
244
+ }
245
+ ], viewQueries: [{ propertyName: "picker", first: true, predicate: ["pickerData"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"dateinput\">\n <input matInput autocomplete=\"false\" [disabled]=\"disabled\" ngModel\n [readonly]=\"readonly\" [(mclModel)]=\"maskedValue\" [mask]=\"mask\"\n (focus)=\"focused = true\" (blur)=\"focused = false\" [keepMask]=\"true\"\n />\n <mat-datetimepicker [disabled]=\"disabled || readonly\"\n [type]=\"type\" #pickerData></mat-datetimepicker>\n <mat-datetimepicker-toggle [for]=\"pickerData\"></mat-datetimepicker-toggle>\n</div>\n<input class=\"hidden\" [(ngModel)]=\"value\" [matDatetimepicker]=\"pickerData\" />\n", styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"], dependencies: [{ kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.MatDatetimepickerComponent, selector: "mat-datetimepicker", inputs: ["multiYearSelector", "twelvehour", "startView", "mode", "timeInterval", "ariaNextMonthLabel", "ariaPrevMonthLabel", "ariaNextYearLabel", "ariaPrevYearLabel", "preventSameDateTimeSelection", "panelClass", "startAt", "openOnFocus", "type", "touchUi", "disabled"], outputs: ["selectedChanged", "opened", "closed", "viewChanged"], exportAs: ["matDatetimepicker"] }, { kind: "component", type: i4.MatDatetimepickerToggleComponent, selector: "mat-datetimepicker-toggle", inputs: ["for", "disabled"], exportAs: ["matDatetimepickerToggle"] }, { kind: "directive", type: i4.MatDatetimepickerInputDirective, selector: "input[matDatetimepicker]", inputs: ["matDatetimepicker", "matDatepickerFilter", "value", "min", "max", "disabled"], outputs: ["dateChange", "dateInput"], exportAs: ["matDatepickerInput"] }, { kind: "directive", type: i5.MaskedModelDirective, selector: "[mclModel][ngModel][mask]", inputs: ["keepMask", "mask", "mclModel"], outputs: ["mclModelChange"] }] });
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputDatetimeComponent, decorators: [{
247
+ type: Component,
248
+ args: [{ selector: 'mcl-input-datetime', providers: [
249
+ {
250
+ provide: MatFormFieldControl,
251
+ useExisting: InputDatetimeComponent
252
+ }
253
+ ], template: "<div class=\"dateinput\">\n <input matInput autocomplete=\"false\" [disabled]=\"disabled\" ngModel\n [readonly]=\"readonly\" [(mclModel)]=\"maskedValue\" [mask]=\"mask\"\n (focus)=\"focused = true\" (blur)=\"focused = false\" [keepMask]=\"true\"\n />\n <mat-datetimepicker [disabled]=\"disabled || readonly\"\n [type]=\"type\" #pickerData></mat-datetimepicker>\n <mat-datetimepicker-toggle [for]=\"pickerData\"></mat-datetimepicker-toggle>\n</div>\n<input class=\"hidden\" [(ngModel)]=\"value\" [matDatetimepicker]=\"pickerData\" />\n", styles: [".dateinput{display:flex}.dateinput input{flex:1 1 auto}.dateinput mat-datetimepicker-toggle{margin:-16px 0 -6px}.hidden{display:none}\n"] }]
254
+ }], ctorParameters: function () {
255
+ return [{ type: i1.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{
256
+ type: Optional
257
+ }, {
258
+ type: Self
259
+ }] }, { type: i2.NgForm, decorators: [{
260
+ type: Optional
261
+ }] }, { type: i2.FormGroupDirective, decorators: [{
262
+ type: Optional
263
+ }] }, { type: i4.DatetimeAdapter, decorators: [{
264
+ type: Inject,
265
+ args: [DatetimeAdapter]
266
+ }] }, { type: undefined, decorators: [{
267
+ type: Inject,
268
+ args: [MAT_DATETIME_FORMATS]
269
+ }] }];
270
+ }, propDecorators: { type: [{
271
+ type: Input
272
+ }], readonly: [{
273
+ type: Input
274
+ }], name: [{
275
+ type: Input
276
+ }], picker: [{
277
+ type: ViewChild,
278
+ args: ['pickerData']
279
+ }] } });
280
+
281
+ class InputDatetimeModule {
282
+ }
283
+ InputDatetimeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputDatetimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
284
+ InputDatetimeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InputDatetimeModule, declarations: [InputDatetimeComponent], imports: [CommonModule,
285
+ MatInputModule,
286
+ FormsModule,
287
+ MomentDatetimeModule,
288
+ MatMomentDatetimeModule,
289
+ MatDatetimepickerModule,
290
+ ModelModule], exports: [InputDatetimeComponent] });
291
+ InputDatetimeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputDatetimeModule, providers: [
292
+ { provide: MAT_DATE_LOCALE, useExisting: LOCALE_ID },
293
+ {
294
+ provide: DatetimeAdapter,
295
+ useClass: MomentDatetimeAdapter
296
+ },
297
+ {
298
+ provide: MAT_DATETIME_FORMATS,
299
+ useValue: {
300
+ parse: {
301
+ dateInput: 'L',
302
+ monthInput: 'MMMM',
303
+ timeInput: 'LT',
304
+ datetimeInput: 'L LT'
305
+ },
306
+ display: {
307
+ dateInput: 'L',
308
+ monthInput: 'MMMM',
309
+ datetimeInput: 'L LT',
310
+ timeInput: 'LT',
311
+ monthYearLabel: 'MMM YYYY',
312
+ dateA11yLabel: 'LL',
313
+ monthYearA11yLabel: 'MMMM YYYY',
314
+ popupHeaderDateLabel: 'ddd, DD MMM'
315
+ }
316
+ }
317
+ }
318
+ ], imports: [CommonModule,
319
+ MatInputModule,
320
+ FormsModule,
321
+ MomentDatetimeModule,
322
+ MatMomentDatetimeModule,
323
+ MatDatetimepickerModule,
324
+ ModelModule] });
325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputDatetimeModule, decorators: [{
326
+ type: NgModule,
327
+ args: [{
328
+ declarations: [InputDatetimeComponent],
329
+ imports: [
330
+ CommonModule,
331
+ MatInputModule,
332
+ FormsModule,
333
+ MomentDatetimeModule,
334
+ MatMomentDatetimeModule,
335
+ MatDatetimepickerModule,
336
+ ModelModule,
337
+ ],
338
+ exports: [
339
+ InputDatetimeComponent
340
+ ],
341
+ providers: [
342
+ { provide: MAT_DATE_LOCALE, useExisting: LOCALE_ID },
343
+ {
344
+ provide: DatetimeAdapter,
345
+ useClass: MomentDatetimeAdapter
346
+ },
347
+ {
348
+ provide: MAT_DATETIME_FORMATS,
349
+ useValue: {
350
+ parse: {
351
+ dateInput: 'L',
352
+ monthInput: 'MMMM',
353
+ timeInput: 'LT',
354
+ datetimeInput: 'L LT'
355
+ },
356
+ display: {
357
+ dateInput: 'L',
358
+ monthInput: 'MMMM',
359
+ datetimeInput: 'L LT',
360
+ timeInput: 'LT',
361
+ monthYearLabel: 'MMM YYYY',
362
+ dateA11yLabel: 'LL',
363
+ monthYearA11yLabel: 'MMMM YYYY',
364
+ popupHeaderDateLabel: 'ddd, DD MMM'
365
+ }
366
+ }
367
+ }
368
+ ]
369
+ }]
370
+ }] });
371
+
372
+ class InputFileUploadComponent {
373
+ constructor(errorStateMatcher, ngControl, parentForm, changeDetectorRef, parentFormGroup, arquivoService) {
374
+ this.errorStateMatcher = errorStateMatcher;
375
+ this.ngControl = ngControl;
376
+ this.parentForm = parentForm;
377
+ this.changeDetectorRef = changeDetectorRef;
378
+ this.parentFormGroup = parentFormGroup;
379
+ this.arquivoService = arquivoService;
380
+ this.$disabled = false;
381
+ this.$required = false;
382
+ this.template = 'preview';
383
+ this.selectCancel = new EventEmitter();
384
+ this.stateChanges = new Subject();
385
+ this.change = new EventEmitter();
386
+ this.id = `input-fileupload-${InputFileUploadComponent.nextId++}`;
387
+ this.describedBy = '';
388
+ this.onChange = (val) => {
389
+ };
390
+ this.onTouched = () => {
391
+ };
392
+ if (this.ngControl != null) {
393
+ this.ngControl.valueAccessor = this;
394
+ }
395
+ }
396
+ get focused() {
397
+ return this.value && (this.multiple ? this.value.find(a => a.loading) : this.value.loading);
398
+ }
399
+ get empty() {
400
+ return !this.value;
401
+ }
402
+ onContainerClick(event) {
403
+ // Não necessário
404
+ }
405
+ get shouldLabelFloat() {
406
+ return true;
407
+ }
408
+ get placeholder() {
409
+ return this.$placeholder;
410
+ }
411
+ set placeholder(plh) {
412
+ this.$placeholder = plh;
413
+ this.stateChanges.next();
414
+ }
415
+ get required() {
416
+ return this.$required;
417
+ }
418
+ set required(value) {
419
+ this.$required = coerceBooleanProperty(value);
420
+ this.stateChanges.next();
421
+ }
422
+ get disabled() {
423
+ return this.$disabled;
424
+ }
425
+ set disabled(value) {
426
+ this.$disabled = coerceBooleanProperty(value);
427
+ this.stateChanges.next();
428
+ }
429
+ get errorState() {
430
+ return this.errorStateMatcher.isErrorState(this.ngControl.control, this.parentFormGroup || this.parentForm);
431
+ }
432
+ get controlType() {
433
+ return 'input-fileupload';
434
+ }
435
+ setDescribedByIds(ids) {
436
+ this.describedBy = ids.join(' ');
437
+ }
438
+ ngOnDestroy() {
439
+ this.stateChanges.complete();
440
+ }
441
+ upload(arquivo) {
442
+ return new Observable(observer => {
443
+ if (!this.validaFormato(arquivo.nome)) {
444
+ arquivo.error = { fileFormat: true };
445
+ observer.error('Formato inválido');
446
+ this.onChange(this.value);
447
+ this.change.emit(this.value);
448
+ this.stateChanges.next();
449
+ return;
450
+ }
451
+ if (this.limite) {
452
+ const total = this.parseLimite();
453
+ if (arquivo.length > total) {
454
+ arquivo.error = {
455
+ fileSize: {
456
+ limite: this.limite,
457
+ }
458
+ };
459
+ observer.error('Tamanho inválido');
460
+ this.onChange(this.value);
461
+ this.change.emit(this.value);
462
+ this.stateChanges.next();
463
+ return;
464
+ }
465
+ }
466
+ this.arquivoService.upload(arquivo.file)
467
+ .subscribe(event => {
468
+ if (event.type === 'conclusao') {
469
+ arquivo.progresso = undefined;
470
+ if (this.multiple) {
471
+ this.value = [
472
+ ...(this.value || []).map(a => a === arquivo ? event.attachment : a)
473
+ ];
474
+ this.onChange(this.value);
475
+ this.change.emit(this.value);
476
+ this.stateChanges.next();
477
+ }
478
+ else {
479
+ this.value = event.attachment;
480
+ this.onChange(event.attachment);
481
+ this.change.emit(event.attachment);
482
+ this.stateChanges.next();
483
+ }
484
+ observer.next();
485
+ observer.complete();
486
+ }
487
+ else if (event.type === 'progresso') {
488
+ arquivo.progresso = event.progresso;
489
+ this.stateChanges.next();
490
+ }
491
+ }, err => {
492
+ arquivo.error = { fileError: true };
493
+ this.onChange(this.value);
494
+ this.change.emit(this.value);
495
+ this.stateChanges.next();
496
+ observer.error(err);
497
+ });
498
+ });
499
+ }
500
+ parseLimite() {
501
+ let total = Number(this.limite.replace(/\D+/g, ''));
502
+ if (this.limite.toUpperCase().indexOf('GB') >= 0) {
503
+ total = total * 1024 * 1024 * 1024;
504
+ }
505
+ if (this.limite.toUpperCase().indexOf('MB') >= 0) {
506
+ total = total * 1024 * 1024;
507
+ }
508
+ if (this.limite.toUpperCase().indexOf('KB') >= 0) {
509
+ total = total * 1024;
510
+ }
511
+ return total;
512
+ }
513
+ validaFormato(filename) {
514
+ if (this.accept) {
515
+ let formats = [];
516
+ if (typeof this.accept === 'string') {
517
+ formats = [this.accept];
518
+ }
519
+ else {
520
+ formats = this.accept;
521
+ }
522
+ for (const format of formats) {
523
+ if (filename.toLowerCase().indexOf(format.toLowerCase()) === filename.length - format.length) {
524
+ return true;
525
+ }
526
+ }
527
+ return false;
528
+ }
529
+ return true;
530
+ }
531
+ uploadNext() {
532
+ if (this.multiple) {
533
+ if (this.value) {
534
+ for (const item of this.value) {
535
+ if (item.loading && !item.error) {
536
+ this.upload(item).subscribe(() => this.uploadNext(), err => this.uploadNext());
537
+ break;
538
+ }
539
+ }
540
+ }
541
+ }
542
+ else if (this.value && this.value.loading && !this.value.error) {
543
+ this.upload(this.value).subscribe(() => this.uploadNext(), err => this.uploadNext());
544
+ }
545
+ }
546
+ onFileChange(event) {
547
+ this.onTouched();
548
+ if (event.target.files && event.target.files.length) {
549
+ if (this.multiple) {
550
+ const arqs = [];
551
+ for (const file of event.target.files) {
552
+ arqs.push({
553
+ file,
554
+ loading: true,
555
+ nome: file.name,
556
+ length: file.size,
557
+ });
558
+ }
559
+ this.value = [
560
+ ...(this.value || []),
561
+ ...arqs
562
+ ];
563
+ this.onChange(this.value);
564
+ this.change.emit(this.value);
565
+ this.stateChanges.next();
566
+ }
567
+ else {
568
+ this.value = {
569
+ file: event.target.files[0],
570
+ length: event.target.files[0].size,
571
+ loading: true,
572
+ nome: event.target.files[0].name
573
+ };
574
+ this.onChange(this.value);
575
+ this.change.emit(this.value);
576
+ this.stateChanges.next();
577
+ }
578
+ this.uploadNext();
579
+ }
580
+ else {
581
+ this.selectCancel.emit();
582
+ }
583
+ event.target.value = '';
584
+ }
585
+ openFileChooser() {
586
+ if (!this.disabled) {
587
+ this.input.nativeElement.click();
588
+ }
589
+ }
590
+ remover(arquivo) {
591
+ return __awaiter(this, void 0, void 0, function* () {
592
+ if (this.value) {
593
+ if (this.multiple) {
594
+ if (Array.isArray(this.value)) {
595
+ this.value.splice(this.value.indexOf(arquivo), 1);
596
+ if (this.value.length) {
597
+ this.value = [...this.value];
598
+ this.onChange(this.value);
599
+ this.change.emit(this.value);
600
+ this.stateChanges.next();
601
+ }
602
+ else {
603
+ this.value = undefined;
604
+ this.onChange(undefined);
605
+ this.change.emit(undefined);
606
+ this.stateChanges.next();
607
+ }
608
+ }
609
+ }
610
+ else {
611
+ this.value = undefined;
612
+ this.onChange(undefined);
613
+ this.change.emit(undefined);
614
+ this.stateChanges.next();
615
+ }
616
+ }
617
+ });
618
+ }
619
+ registerOnTouched(fn) {
620
+ this.onTouched = fn;
621
+ }
622
+ registerOnChange(fn) {
623
+ this.onChange = fn;
624
+ }
625
+ setDisabledState(isDisabled) {
626
+ this.disabled = isDisabled;
627
+ }
628
+ writeValue(obj) {
629
+ if (obj) {
630
+ if (this.multiple) {
631
+ this.value = obj.map(a => typeof a === 'string' ? { url: a } : a);
632
+ this.stateChanges.next();
633
+ }
634
+ else if (typeof obj === 'string') {
635
+ this.value = { url: obj };
636
+ this.stateChanges.next();
637
+ }
638
+ else {
639
+ this.value = obj;
640
+ this.stateChanges.next();
641
+ }
642
+ }
643
+ else {
644
+ this.value = obj;
645
+ this.stateChanges.next();
646
+ }
647
+ }
648
+ }
649
+ InputFileUploadComponent.nextId = 0;
650
+ InputFileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFileUploadComponent, deps: [{ token: i1.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }, { token: i2.NgForm, optional: true }, { token: i0.ChangeDetectorRef }, { token: i2.FormGroupDirective, optional: true }, { token: ARQUIVO_MANAGER_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
651
+ InputFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputFileUploadComponent, selector: "mcl-input-fileupload", inputs: { multiple: "multiple", limite: "limite", accept: "accept", template: "template", placeholder: "placeholder", required: "required", disabled: "disabled" }, outputs: { selectCancel: "selectCancel", stateChanges: "change", change: "change" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [
652
+ {
653
+ provide: MatFormFieldControl,
654
+ useExisting: InputFileUploadComponent
655
+ }
656
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div *ngIf=\"multiple && template == 'chips'\" class=\"chips\">\r\n <mat-chip-list *ngIf=\"value?.length\">\r\n <mat-chip [ngClass]=\"{'error':arquivo.loading && arquivo.error,'success':!arquivo.loading}\"\r\n *ngFor=\"let arquivo of value\">\r\n <mat-spinner *ngIf=\"arquivo.loading && !arquivo.error\"\r\n [value]=\"arquivo.progresso\" [diameter]=\"24\"\r\n ></mat-spinner>\r\n <mat-icon *ngIf=\"arquivo.loading && arquivo.error\" class=\"error\">remove_circle_outline</mat-icon>\r\n <mat-icon *ngIf=\"!arquivo.loading\" class=\"success\">check_circle_outline</mat-icon>\r\n {{ arquivo.nome || arquivo.filename }}\r\n <a *ngIf=\"!disabled\" (click)=\"remover(arquivo)\" href=\"javascript:void(0)\">\r\n <mat-icon>close</mat-icon>\r\n </a>\r\n </mat-chip>\r\n </mat-chip-list>\r\n\r\n <hr *ngIf=\"value?.length && !disabled\"/>\r\n\r\n <input *ngIf=\"!disabled\" type=\"file\" (change)=\"onFileChange($event)\" #input [multiple]=\"multiple\"/>\r\n</div>\r\n\r\n<div *ngIf=\"multiple && template == 'preview'\" class=\"previews\">\r\n <div *ngIf=\"value?.length\" fxLayout=\"row wrap\" fxLayoutGap=\"20px\" fxFlexAlign=\"center\">\r\n <div *ngFor=\"let arquivo of value\">\r\n <div class=\"preview\" [ngClass]=\"{'error':arquivo.loading && arquivo.error,'success':!arquivo.loading}\">\r\n <mcl-preview-arquivo [group]=\"value\" [arquivo]=\"arquivo\"></mcl-preview-arquivo>\r\n\r\n <div class=\"footer\" *ngIf=\"!disabled\">\r\n <mat-spinner *ngIf=\"arquivo.loading && !arquivo.error\"\r\n [value]=\"arquivo.progresso\" [diameter]=\"24\"\r\n ></mat-spinner>\r\n <mat-icon *ngIf=\"arquivo.loading && arquivo.error\" class=\"error\">remove_circle_outline</mat-icon>\r\n <mat-icon *ngIf=\"!arquivo.loading\" class=\"success\">check_circle_outline</mat-icon>\r\n <span>{{ arquivo.nome || arquivo.filename }}</span>\r\n <a *ngIf=\"!disabled\" (click)=\"remover(arquivo)\" href=\"javascript:void(0)\">\r\n <mat-icon>close</mat-icon>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <hr *ngIf=\"value?.length && !disabled\"/>\r\n\r\n <input *ngIf=\"!disabled\" type=\"file\" (change)=\"onFileChange($event)\" #input [multiple]=\"multiple\"/>\r\n</div>\r\n\r\n\r\n<div *ngIf=\"template == 'manual'\">\r\n <input type=\"file\" [disabled]=\"disabled\" (change)=\"onFileChange($event)\" #input\r\n [multiple]=\"multiple\" style=\"display: none\"/>\r\n</div>\r\n\r\n<ng-container *ngIf=\"!multiple && template != 'manual'\">\r\n <input #input type=\"file\" style=\"display: none\"\r\n (change)=\"onFileChange($event)\"/>\r\n\r\n <div class=\"input\">\r\n <button mat-icon-button type=\"button\"\r\n (click)=\"openFileChooser()\"\r\n *ngIf=\"!value\"\r\n matPrefix>\r\n <mat-icon>attach_file</mat-icon>\r\n </button>\r\n <button mat-icon-button type=\"button\"\r\n [mclDownloadArquivo]=\"value\"\r\n *ngIf=\"value && !value.loading && !value.error\"\r\n matPrefix>\r\n <mat-icon>download</mat-icon>\r\n </button>\r\n <button mat-icon-button type=\"button\" matPrefix\r\n *ngIf=\"value?.error\" disabled>\r\n <mat-icon>warning</mat-icon>\r\n </button>\r\n <button mat-icon-button type=\"button\" matPrefix\r\n *ngIf=\"value?.loading && !value?.error\" disabled>\r\n <mat-spinner [value]=\"value.progresso\"\r\n [diameter]=\"24\"></mat-spinner>\r\n </button>\r\n <input matInput readonly (click)=\"openFileChooser()\" [required]=\"required\"\r\n *ngIf=\"!value\" value=\"Selecione um arquivo...\"/>\r\n <input matInput readonly [required]=\"required\"\r\n *ngIf=\"value && value.loading && !value.error\" value=\"Submetendo arquivo...\"/>\r\n <input matInput readonly [required]=\"required\"\r\n *ngIf=\"value && value.error\" [value]=\"value?.nome || value?.filename\"/>\r\n <input matInput readonly [mclDownloadArquivo]=\"value\" [required]=\"required\"\r\n *ngIf=\"value && !value.loading\" [value]=\"value?.nome || value?.filename\"/>\r\n <button mat-icon-button type=\"button\" matSuffix\r\n matTooltip=\"Remover\" (click)=\"remover(value)\"\r\n *ngIf=\"value && (!value.loading || value?.error) && !disabled\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n</ng-container>\r\n", styles: ["span{opacity:0;transition:opacity .2s}:host.floating span{opacity:1}mat-chip>mat-spinner,mat-chip>mat-icon,.preview .footer>mat-spinner,.preview .footer>mat-icon{margin-right:5px;vertical-align:middle}mat-chip a,.preview .footer a{padding:5px}mat-chip a mat-icon,.preview .footer a mat-icon{margin-left:10px;vertical-align:middle}mat-chip.error,.preview.error{color:red}mat-chip.success,.preview.success{color:green}.preview{text-align:center;width:200px;overflow:hidden;margin:0 auto 20px}.preview mcl-preview-arquivo{margin:auto;display:block}.preview .footer{display:flex;text-align:left}.preview .footer span{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview .footer mat-icon,.preview .footer a{flex:1}.input{display:flex}.input input{flex:1 1 auto}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disabled", "disableRipple", "tabIndex", "role", "id", "aria-label", "aria-description", "value", "removable", "highlighted"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "component", type: i5$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i7.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i7.DefaultFlexAlignDirective, selector: " [fxFlexAlign], [fxFlexAlign.xs], [fxFlexAlign.sm], [fxFlexAlign.md], [fxFlexAlign.lg], [fxFlexAlign.xl], [fxFlexAlign.lt-sm], [fxFlexAlign.lt-md], [fxFlexAlign.lt-lg], [fxFlexAlign.lt-xl], [fxFlexAlign.gt-xs], [fxFlexAlign.gt-sm], [fxFlexAlign.gt-md], [fxFlexAlign.gt-lg]", inputs: ["fxFlexAlign", "fxFlexAlign.xs", "fxFlexAlign.sm", "fxFlexAlign.md", "fxFlexAlign.lg", "fxFlexAlign.xl", "fxFlexAlign.lt-sm", "fxFlexAlign.lt-md", "fxFlexAlign.lt-lg", "fxFlexAlign.lt-xl", "fxFlexAlign.gt-xs", "fxFlexAlign.gt-sm", "fxFlexAlign.gt-md", "fxFlexAlign.gt-lg"] }, { kind: "directive", type: i8.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i9.PreviewArquivoComponent, selector: "mcl-preview-arquivo", inputs: ["showLoading", "height", "width", "group", "arquivo"] }, { kind: "directive", type: i9.DownloadArquivoDirective, selector: "[mclDownloadArquivo]", inputs: ["mclDownloadArquivo", "target"] }, { kind: "component", type: i10.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i12.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i12.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
657
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFileUploadComponent, decorators: [{
658
+ type: Component,
659
+ args: [{ selector: 'mcl-input-fileupload', providers: [
660
+ {
661
+ provide: MatFormFieldControl,
662
+ useExisting: InputFileUploadComponent
663
+ }
664
+ ], template: "<div *ngIf=\"multiple && template == 'chips'\" class=\"chips\">\r\n <mat-chip-list *ngIf=\"value?.length\">\r\n <mat-chip [ngClass]=\"{'error':arquivo.loading && arquivo.error,'success':!arquivo.loading}\"\r\n *ngFor=\"let arquivo of value\">\r\n <mat-spinner *ngIf=\"arquivo.loading && !arquivo.error\"\r\n [value]=\"arquivo.progresso\" [diameter]=\"24\"\r\n ></mat-spinner>\r\n <mat-icon *ngIf=\"arquivo.loading && arquivo.error\" class=\"error\">remove_circle_outline</mat-icon>\r\n <mat-icon *ngIf=\"!arquivo.loading\" class=\"success\">check_circle_outline</mat-icon>\r\n {{ arquivo.nome || arquivo.filename }}\r\n <a *ngIf=\"!disabled\" (click)=\"remover(arquivo)\" href=\"javascript:void(0)\">\r\n <mat-icon>close</mat-icon>\r\n </a>\r\n </mat-chip>\r\n </mat-chip-list>\r\n\r\n <hr *ngIf=\"value?.length && !disabled\"/>\r\n\r\n <input *ngIf=\"!disabled\" type=\"file\" (change)=\"onFileChange($event)\" #input [multiple]=\"multiple\"/>\r\n</div>\r\n\r\n<div *ngIf=\"multiple && template == 'preview'\" class=\"previews\">\r\n <div *ngIf=\"value?.length\" fxLayout=\"row wrap\" fxLayoutGap=\"20px\" fxFlexAlign=\"center\">\r\n <div *ngFor=\"let arquivo of value\">\r\n <div class=\"preview\" [ngClass]=\"{'error':arquivo.loading && arquivo.error,'success':!arquivo.loading}\">\r\n <mcl-preview-arquivo [group]=\"value\" [arquivo]=\"arquivo\"></mcl-preview-arquivo>\r\n\r\n <div class=\"footer\" *ngIf=\"!disabled\">\r\n <mat-spinner *ngIf=\"arquivo.loading && !arquivo.error\"\r\n [value]=\"arquivo.progresso\" [diameter]=\"24\"\r\n ></mat-spinner>\r\n <mat-icon *ngIf=\"arquivo.loading && arquivo.error\" class=\"error\">remove_circle_outline</mat-icon>\r\n <mat-icon *ngIf=\"!arquivo.loading\" class=\"success\">check_circle_outline</mat-icon>\r\n <span>{{ arquivo.nome || arquivo.filename }}</span>\r\n <a *ngIf=\"!disabled\" (click)=\"remover(arquivo)\" href=\"javascript:void(0)\">\r\n <mat-icon>close</mat-icon>\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <hr *ngIf=\"value?.length && !disabled\"/>\r\n\r\n <input *ngIf=\"!disabled\" type=\"file\" (change)=\"onFileChange($event)\" #input [multiple]=\"multiple\"/>\r\n</div>\r\n\r\n\r\n<div *ngIf=\"template == 'manual'\">\r\n <input type=\"file\" [disabled]=\"disabled\" (change)=\"onFileChange($event)\" #input\r\n [multiple]=\"multiple\" style=\"display: none\"/>\r\n</div>\r\n\r\n<ng-container *ngIf=\"!multiple && template != 'manual'\">\r\n <input #input type=\"file\" style=\"display: none\"\r\n (change)=\"onFileChange($event)\"/>\r\n\r\n <div class=\"input\">\r\n <button mat-icon-button type=\"button\"\r\n (click)=\"openFileChooser()\"\r\n *ngIf=\"!value\"\r\n matPrefix>\r\n <mat-icon>attach_file</mat-icon>\r\n </button>\r\n <button mat-icon-button type=\"button\"\r\n [mclDownloadArquivo]=\"value\"\r\n *ngIf=\"value && !value.loading && !value.error\"\r\n matPrefix>\r\n <mat-icon>download</mat-icon>\r\n </button>\r\n <button mat-icon-button type=\"button\" matPrefix\r\n *ngIf=\"value?.error\" disabled>\r\n <mat-icon>warning</mat-icon>\r\n </button>\r\n <button mat-icon-button type=\"button\" matPrefix\r\n *ngIf=\"value?.loading && !value?.error\" disabled>\r\n <mat-spinner [value]=\"value.progresso\"\r\n [diameter]=\"24\"></mat-spinner>\r\n </button>\r\n <input matInput readonly (click)=\"openFileChooser()\" [required]=\"required\"\r\n *ngIf=\"!value\" value=\"Selecione um arquivo...\"/>\r\n <input matInput readonly [required]=\"required\"\r\n *ngIf=\"value && value.loading && !value.error\" value=\"Submetendo arquivo...\"/>\r\n <input matInput readonly [required]=\"required\"\r\n *ngIf=\"value && value.error\" [value]=\"value?.nome || value?.filename\"/>\r\n <input matInput readonly [mclDownloadArquivo]=\"value\" [required]=\"required\"\r\n *ngIf=\"value && !value.loading\" [value]=\"value?.nome || value?.filename\"/>\r\n <button mat-icon-button type=\"button\" matSuffix\r\n matTooltip=\"Remover\" (click)=\"remover(value)\"\r\n *ngIf=\"value && (!value.loading || value?.error) && !disabled\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n</ng-container>\r\n", styles: ["span{opacity:0;transition:opacity .2s}:host.floating span{opacity:1}mat-chip>mat-spinner,mat-chip>mat-icon,.preview .footer>mat-spinner,.preview .footer>mat-icon{margin-right:5px;vertical-align:middle}mat-chip a,.preview .footer a{padding:5px}mat-chip a mat-icon,.preview .footer a mat-icon{margin-left:10px;vertical-align:middle}mat-chip.error,.preview.error{color:red}mat-chip.success,.preview.success{color:green}.preview{text-align:center;width:200px;overflow:hidden;margin:0 auto 20px}.preview mcl-preview-arquivo{margin:auto;display:block}.preview .footer{display:flex;text-align:left}.preview .footer span{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview .footer mat-icon,.preview .footer a{flex:1}.input{display:flex}.input input{flex:1 1 auto}\n"] }]
665
+ }], ctorParameters: function () {
666
+ return [{ type: i1.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{
667
+ type: Optional
668
+ }, {
669
+ type: Self
670
+ }] }, { type: i2.NgForm, decorators: [{
671
+ type: Optional
672
+ }] }, { type: i0.ChangeDetectorRef }, { type: i2.FormGroupDirective, decorators: [{
673
+ type: Optional
674
+ }] }, { type: undefined, decorators: [{
675
+ type: Inject,
676
+ args: [ARQUIVO_MANAGER_SERVICE]
677
+ }] }];
678
+ }, propDecorators: { multiple: [{
679
+ type: Input
680
+ }], limite: [{
681
+ type: Input
682
+ }], accept: [{
683
+ type: Input
684
+ }], template: [{
685
+ type: Input
686
+ }], input: [{
687
+ type: ViewChild,
688
+ args: ['input']
689
+ }], selectCancel: [{
690
+ type: Output
691
+ }], stateChanges: [{
692
+ type: Output,
693
+ args: ['change']
694
+ }], change: [{
695
+ type: Output
696
+ }], id: [{
697
+ type: HostBinding
698
+ }], describedBy: [{
699
+ type: HostBinding,
700
+ args: ['attr.aria-describedby']
701
+ }], shouldLabelFloat: [{
702
+ type: HostBinding,
703
+ args: ['class.floating']
704
+ }], placeholder: [{
705
+ type: Input
706
+ }], required: [{
707
+ type: Input
708
+ }], disabled: [{
709
+ type: Input
710
+ }] } });
711
+
712
+ class InputFileUploadValidatorDirective {
713
+ validate(control) {
714
+ if (control.value) {
715
+ if (this.multiple && Array.isArray(control.value)) {
716
+ const error = control.value.find(a => a.loading && a.error);
717
+ if (error) {
718
+ return error.error;
719
+ }
720
+ if (control.value.find(a => a.loading)) {
721
+ return { fileUploading: true };
722
+ }
723
+ }
724
+ else if (control.value.loading && control.value.error) {
725
+ return control.value.error;
726
+ }
727
+ else if (control.value.loading) {
728
+ return { fileUploading: true };
729
+ }
730
+ }
731
+ return undefined;
732
+ }
733
+ }
734
+ InputFileUploadValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFileUploadValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
735
+ InputFileUploadValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: InputFileUploadValidatorDirective, selector: "mcl-input-fileupload,[mclFileupload]", inputs: { multiple: "multiple" }, providers: [{ provide: NG_VALIDATORS, useExisting: InputFileUploadValidatorDirective, multi: true }], ngImport: i0 });
736
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFileUploadValidatorDirective, decorators: [{
737
+ type: Directive,
738
+ args: [{
739
+ selector: 'mcl-input-fileupload,[mclFileupload]',
740
+ providers: [{ provide: NG_VALIDATORS, useExisting: InputFileUploadValidatorDirective, multi: true }]
741
+ }]
742
+ }], propDecorators: { multiple: [{
743
+ type: Input
744
+ }] } });
745
+
746
+ class InputFileuploadModule {
747
+ }
748
+ InputFileuploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFileuploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
749
+ InputFileuploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InputFileuploadModule, declarations: [InputFileUploadComponent, InputFileUploadValidatorDirective], imports: [CommonModule,
750
+ FormsModule,
751
+ MatChipsModule,
752
+ MatProgressSpinnerModule,
753
+ MatIconModule,
754
+ FlexLayoutModule,
755
+ ArquivoModule,
756
+ MatButtonModule,
757
+ MatInputModule,
758
+ MatTooltipModule], exports: [InputFileUploadComponent, InputFileUploadValidatorDirective] });
759
+ InputFileuploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFileuploadModule, imports: [CommonModule,
760
+ FormsModule,
761
+ MatChipsModule,
762
+ MatProgressSpinnerModule,
763
+ MatIconModule,
764
+ FlexLayoutModule,
765
+ ArquivoModule,
766
+ MatButtonModule,
767
+ MatInputModule,
768
+ MatTooltipModule] });
769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFileuploadModule, decorators: [{
770
+ type: NgModule,
771
+ args: [{
772
+ declarations: [InputFileUploadComponent, InputFileUploadValidatorDirective],
773
+ exports: [InputFileUploadComponent, InputFileUploadValidatorDirective],
774
+ imports: [
775
+ CommonModule,
776
+ FormsModule,
777
+ MatChipsModule,
778
+ MatProgressSpinnerModule,
779
+ MatIconModule,
780
+ FlexLayoutModule,
781
+ ArquivoModule,
782
+ MatButtonModule,
783
+ MatInputModule,
784
+ MatTooltipModule,
785
+ ]
786
+ }]
787
+ }] });
788
+
789
+ class OptionNode {
790
+ constructor(pool, value, selected = false) {
791
+ this.pool = pool;
792
+ this.value = value;
793
+ this.subject = new BehaviorSubject(selected);
794
+ }
795
+ get model() {
796
+ return this.pool.model();
797
+ }
798
+ get observable() {
799
+ return this.subject;
800
+ }
801
+ setSelected(selected) {
802
+ this.subject.next(selected);
803
+ }
804
+ dispose() {
805
+ this.subject.complete();
806
+ }
807
+ touched() {
808
+ this.pool.touched();
809
+ }
810
+ }
811
+
812
+ class NodePool {
813
+ constructor(name) {
814
+ this.name = name;
815
+ this._nodes = new BehaviorSubject([]);
816
+ this._touch = new Subject();
817
+ this._groups = [];
818
+ this.lastValues = [];
819
+ }
820
+ model() {
821
+ return this._nodes
822
+ .pipe(switchMap(ns => combineLatest(ns
823
+ .map(n => n.observable
824
+ .pipe(map(selected => ({
825
+ selected,
826
+ value: n.value
827
+ })))))))
828
+ .pipe(map(ops => {
829
+ const model = ops.filter(o => o.selected).map(o => o.value);
830
+ return model.length ? model : undefined;
831
+ }));
832
+ }
833
+ touch() {
834
+ return this._touch;
835
+ }
836
+ all() {
837
+ return this._nodes
838
+ .pipe(switchMap(ns => combineLatest(ns
839
+ .map(n => n.observable))))
840
+ .pipe(map(ops => {
841
+ if (ops.length) {
842
+ const first = ops[0];
843
+ for (const o of ops) {
844
+ if (o !== first) {
845
+ return undefined;
846
+ }
847
+ }
848
+ return first;
849
+ }
850
+ return false;
851
+ }));
852
+ }
853
+ get empty() {
854
+ return !this._nodes.value.length && !this._groups.length;
855
+ }
856
+ dispose() {
857
+ this._nodes.complete();
858
+ this._touch.complete();
859
+ }
860
+ touched() {
861
+ this._touch.next(undefined);
862
+ }
863
+ register(value) {
864
+ const selected = !!this.lastValues && this.lastValues.indexOf(value) >= 0;
865
+ const node = new OptionNode(this, value, selected);
866
+ this._nodes.next([
867
+ ...this._nodes.value,
868
+ node
869
+ ]);
870
+ return node;
871
+ }
872
+ unregister(node) {
873
+ this._nodes.next(this._nodes.value.filter(n => n !== node));
874
+ node.dispose();
875
+ }
876
+ registerGroup(group) {
877
+ this._groups.push(group);
878
+ }
879
+ unregisterGroup(group) {
880
+ this._groups.splice(this._groups.indexOf(group), 1);
881
+ }
882
+ writeValue(values) {
883
+ if (values !== this.lastValues) {
884
+ this.lastValues = values || [];
885
+ if (values) {
886
+ this._nodes.value.forEach(n => {
887
+ n.setSelected(values.indexOf(n.value) >= 0);
888
+ });
889
+ }
890
+ else {
891
+ this._nodes.value.forEach(n => {
892
+ n.setSelected(false);
893
+ });
894
+ }
895
+ }
896
+ }
897
+ setAll(selected) {
898
+ this._nodes.value.forEach(m => m.setSelected(selected));
899
+ }
900
+ }
901
+
902
+ class OptionCheckboxService {
903
+ constructor() {
904
+ this.nodes = {};
905
+ }
906
+ getPool(name) {
907
+ if (!this.nodes[name]) {
908
+ this.nodes[name] = new NodePool(name);
909
+ }
910
+ return this.nodes[name];
911
+ }
912
+ registerGroup(name, group) {
913
+ const pool = this.getPool(name);
914
+ pool.registerGroup(group);
915
+ return pool;
916
+ }
917
+ unregisterGroup(name, group) {
918
+ if (this.nodes[name]) {
919
+ this.nodes[name].unregisterGroup(group);
920
+ if (this.nodes[name].empty) {
921
+ this.nodes[name].dispose();
922
+ this.nodes[name] = undefined;
923
+ }
924
+ }
925
+ }
926
+ unregister(name, node) {
927
+ if (this.nodes[name]) {
928
+ this.nodes[name].unregister(node);
929
+ if (this.nodes[name].empty) {
930
+ this.nodes[name].dispose();
931
+ this.nodes[name] = undefined;
932
+ }
933
+ }
934
+ }
935
+ register(name, value) {
936
+ return this.getPool(name).register(value);
937
+ }
938
+ setAll(name, selected) {
939
+ if (this.nodes[name]) {
940
+ this.nodes[name].setAll(selected);
941
+ }
942
+ }
943
+ writeValue(name, model) {
944
+ var _a;
945
+ (_a = this.getPool(name)) === null || _a === void 0 ? void 0 : _a.writeValue(model);
946
+ }
947
+ }
948
+ OptionCheckboxService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
949
+ OptionCheckboxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxService });
950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxService, decorators: [{
951
+ type: Injectable
952
+ }] });
953
+
954
+ class AllOptionCheckboxComponent {
955
+ constructor(fotonOptionCheckboxService) {
956
+ this.fotonOptionCheckboxService = fotonOptionCheckboxService;
957
+ this.change = new EventEmitter();
958
+ }
959
+ get name() {
960
+ return this._name;
961
+ }
962
+ set name(name) {
963
+ this._name = name;
964
+ this.pool = this.fotonOptionCheckboxService.getPool(name);
965
+ this.selected = this.pool.all();
966
+ }
967
+ setSelected(selected) {
968
+ this.pool.touched();
969
+ this.fotonOptionCheckboxService.setAll(this.name, selected);
970
+ this.change.emit();
971
+ }
972
+ }
973
+ AllOptionCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllOptionCheckboxComponent, deps: [{ token: OptionCheckboxService }], target: i0.ɵɵFactoryTarget.Component });
974
+ AllOptionCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AllOptionCheckboxComponent, selector: "mcl-option-checkbox[select-all-option]", inputs: { disabled: "disabled", name: "name" }, outputs: { change: "change" }, ngImport: i0, template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n", dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AllOptionCheckboxComponent, decorators: [{
976
+ type: Component,
977
+ args: [{ selector: 'mcl-option-checkbox[select-all-option]', template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n" }]
978
+ }], ctorParameters: function () { return [{ type: OptionCheckboxService }]; }, propDecorators: { disabled: [{
979
+ type: Input
980
+ }], change: [{
981
+ type: Output
982
+ }], name: [{
983
+ type: Input
984
+ }] } });
985
+
986
+ class OptionCheckboxComponent {
987
+ constructor(fotonOptionCheckboxService) {
988
+ this.fotonOptionCheckboxService = fotonOptionCheckboxService;
989
+ this.change = new EventEmitter();
990
+ }
991
+ setSelected(selected) {
992
+ if (this.node) {
993
+ this.node.touched();
994
+ this.node.setSelected(selected);
995
+ this.change.emit();
996
+ }
997
+ }
998
+ get value() {
999
+ return this.node ? this.node.value : undefined;
1000
+ }
1001
+ set value(v) {
1002
+ if (v != this.value) {
1003
+ if (this.node) {
1004
+ this.node.value = v;
1005
+ }
1006
+ else {
1007
+ this._value = v;
1008
+ }
1009
+ }
1010
+ }
1011
+ get name() {
1012
+ return this._name;
1013
+ }
1014
+ set name(n) {
1015
+ if (n !== this.name && !this.node) {
1016
+ this.node = this.fotonOptionCheckboxService.register(n, this._value);
1017
+ this.selected = this.node.observable;
1018
+ this._name = n;
1019
+ }
1020
+ }
1021
+ onBlur() {
1022
+ }
1023
+ ngOnDestroy() {
1024
+ this.fotonOptionCheckboxService.unregister(this.name, this.node);
1025
+ }
1026
+ }
1027
+ OptionCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxComponent, deps: [{ token: OptionCheckboxService }], target: i0.ɵɵFactoryTarget.Component });
1028
+ OptionCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OptionCheckboxComponent, selector: "mcl-option-checkbox:not([select-all-option])", inputs: { disabled: "disabled", value: "value", name: "name" }, outputs: { change: "change" }, ngImport: i0, template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n", dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
1029
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxComponent, decorators: [{
1030
+ type: Component,
1031
+ args: [{ selector: 'mcl-option-checkbox:not([select-all-option])', template: "<mat-checkbox [disabled]=\"disabled\"\n [ngModel]=\"selected | async\"\n (ngModelChange)=\"setSelected($event)\"\n [indeterminate]=\"(selected | async) === undefined\" >\n <ng-content></ng-content>\n</mat-checkbox>\n" }]
1032
+ }], ctorParameters: function () { return [{ type: OptionCheckboxService }]; }, propDecorators: { disabled: [{
1033
+ type: Input
1034
+ }], change: [{
1035
+ type: Output
1036
+ }], value: [{
1037
+ type: Input
1038
+ }], name: [{
1039
+ type: Input
1040
+ }] } });
1041
+
1042
+ class OptionCheckboxGroupComponent {
1043
+ constructor(optionCheckboxService) {
1044
+ this.optionCheckboxService = optionCheckboxService;
1045
+ this.change = new EventEmitter();
1046
+ this.touched = new EventEmitter();
1047
+ this.onTouchedCallback = () => {
1048
+ };
1049
+ this.onChangeCallback = () => {
1050
+ };
1051
+ }
1052
+ get name() {
1053
+ return this._name;
1054
+ }
1055
+ set name(n) {
1056
+ if (n !== this.name && !this.pool) {
1057
+ this.pool = this.optionCheckboxService.registerGroup(n, this);
1058
+ this.pool.touch().subscribe(() => {
1059
+ this.onTouchedCallback();
1060
+ this.touched.emit();
1061
+ });
1062
+ this.pool.model().subscribe(model => {
1063
+ clearTimeout(this.callbackTimeout);
1064
+ this.callbackTimeout = setTimeout(() => {
1065
+ this.onChangeCallback(model);
1066
+ this.change.emit(model);
1067
+ });
1068
+ });
1069
+ this._name = n;
1070
+ }
1071
+ }
1072
+ onBlur() {
1073
+ }
1074
+ ngOnDestroy() {
1075
+ this.optionCheckboxService.unregisterGroup(this.name, this);
1076
+ }
1077
+ writeValue(value) {
1078
+ this.optionCheckboxService.writeValue(this.name, value);
1079
+ }
1080
+ registerOnChange(fn) {
1081
+ this.onChangeCallback = fn;
1082
+ }
1083
+ registerOnTouched(fn) {
1084
+ this.onTouchedCallback = fn;
1085
+ }
1086
+ }
1087
+ OptionCheckboxGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxGroupComponent, deps: [{ token: OptionCheckboxService }], target: i0.ɵɵFactoryTarget.Component });
1088
+ OptionCheckboxGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: OptionCheckboxGroupComponent, selector: "mcl-option-checkbox-group", inputs: { disabled: "disabled", name: "name" }, outputs: { change: "change", touched: "touched" }, providers: [
1089
+ {
1090
+ provide: NG_VALUE_ACCESSOR,
1091
+ useExisting: OptionCheckboxGroupComponent,
1092
+ multi: true
1093
+ }
1094
+ ], ngImport: i0, template: '', isInline: true });
1095
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxGroupComponent, decorators: [{
1096
+ type: Component,
1097
+ args: [{
1098
+ selector: 'mcl-option-checkbox-group',
1099
+ template: '',
1100
+ providers: [
1101
+ {
1102
+ provide: NG_VALUE_ACCESSOR,
1103
+ useExisting: OptionCheckboxGroupComponent,
1104
+ multi: true
1105
+ }
1106
+ ]
1107
+ }]
1108
+ }], ctorParameters: function () { return [{ type: OptionCheckboxService }]; }, propDecorators: { disabled: [{
1109
+ type: Input
1110
+ }], change: [{
1111
+ type: Output
1112
+ }], touched: [{
1113
+ type: Output
1114
+ }], name: [{
1115
+ type: Input
1116
+ }] } });
1117
+
1118
+ class OptionCheckboxModule {
1119
+ static forRoot() {
1120
+ return {
1121
+ ngModule: OptionCheckboxModule,
1122
+ providers: [
1123
+ OptionCheckboxService
1124
+ ]
1125
+ };
1126
+ }
1127
+ }
1128
+ OptionCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1129
+ OptionCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxModule, declarations: [OptionCheckboxComponent, AllOptionCheckboxComponent, OptionCheckboxGroupComponent], imports: [CommonModule,
1130
+ FormsModule,
1131
+ MatCheckboxModule], exports: [OptionCheckboxComponent, AllOptionCheckboxComponent, OptionCheckboxGroupComponent] });
1132
+ OptionCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxModule, imports: [CommonModule,
1133
+ FormsModule,
1134
+ MatCheckboxModule] });
1135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OptionCheckboxModule, decorators: [{
1136
+ type: NgModule,
1137
+ args: [{
1138
+ declarations: [OptionCheckboxComponent, AllOptionCheckboxComponent, OptionCheckboxGroupComponent],
1139
+ exports: [OptionCheckboxComponent, AllOptionCheckboxComponent, OptionCheckboxGroupComponent],
1140
+ imports: [
1141
+ CommonModule,
1142
+ FormsModule,
1143
+ MatCheckboxModule,
1144
+ ]
1145
+ }]
1146
+ }] });
1147
+
1148
+ class SelectItemComponent {
1149
+ constructor() {
1150
+ }
1151
+ ngOnInit() {
1152
+ }
1153
+ }
1154
+ SelectItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1155
+ SelectItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectItemComponent, selector: "mcl-select-item", inputs: { label: "label", value: "value" }, ngImport: i0, template: "", styles: [""] });
1156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectItemComponent, decorators: [{
1157
+ type: Component,
1158
+ args: [{ selector: 'mcl-select-item', template: "" }]
1159
+ }], ctorParameters: function () { return []; }, propDecorators: { label: [{
1160
+ type: Input
1161
+ }], value: [{
1162
+ type: Input
1163
+ }] } });
1164
+
1165
+ class SelectChipsComponent {
1166
+ constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
1167
+ this.errorStateMatcher = errorStateMatcher;
1168
+ this.ngControl = ngControl;
1169
+ this.parentForm = parentForm;
1170
+ this.parentFormGroup = parentFormGroup;
1171
+ this.$disabled = false;
1172
+ this.$required = false;
1173
+ this.focused = false;
1174
+ this.filterCtrl = new UntypedFormControl();
1175
+ this.stateChanges = new Subject();
1176
+ this.id = `select-chips-${SelectChipsComponent.nextId++}`;
1177
+ this.describedBy = '';
1178
+ this.onChange = (val) => {
1179
+ };
1180
+ this.onTouched = () => {
1181
+ };
1182
+ if (this.ngControl != null) {
1183
+ this.ngControl.valueAccessor = this;
1184
+ }
1185
+ this.opcoesFiltradas = this.filterCtrl.valueChanges.pipe(startWith(null), map((filtro) => this._filter(filtro)));
1186
+ }
1187
+ get value() {
1188
+ return this.$value;
1189
+ }
1190
+ set value(value) {
1191
+ this.$value = value;
1192
+ this.stateChanges.next();
1193
+ }
1194
+ get empty() {
1195
+ return !this.value;
1196
+ }
1197
+ onContainerClick(event) {
1198
+ }
1199
+ get shouldLabelFloat() {
1200
+ return !this.empty || (this.input && this.input.nativeElement.value) || this.focused;
1201
+ }
1202
+ get placeholder() {
1203
+ return this.$placeholder;
1204
+ }
1205
+ set placeholder(plh) {
1206
+ this.$placeholder = plh;
1207
+ this.stateChanges.next();
1208
+ }
1209
+ get required() {
1210
+ return this.$required;
1211
+ }
1212
+ set required(value) {
1213
+ this.$required = coerceBooleanProperty(value);
1214
+ this.stateChanges.next();
1215
+ }
1216
+ get disabled() {
1217
+ return this.$disabled;
1218
+ }
1219
+ set disabled(value) {
1220
+ this.$disabled = coerceBooleanProperty(value);
1221
+ this.stateChanges.next();
1222
+ }
1223
+ get errorState() {
1224
+ return this.errorStateMatcher.isErrorState(this.ngControl.control, this.parentFormGroup || this.parentForm);
1225
+ }
1226
+ get controlType() {
1227
+ return 'select-chips';
1228
+ }
1229
+ setDescribedByIds(ids) {
1230
+ this.describedBy = ids.join(' ');
1231
+ }
1232
+ ngOnDestroy() {
1233
+ this.stateChanges.complete();
1234
+ }
1235
+ registerOnTouched(fn) {
1236
+ this.onTouched = fn;
1237
+ }
1238
+ registerOnChange(fn) {
1239
+ this.onChange = fn;
1240
+ }
1241
+ setDisabledState(isDisabled) {
1242
+ this.disabled = isDisabled;
1243
+ }
1244
+ writeValue(value) {
1245
+ this.value = value;
1246
+ this.filterCtrl.setValue(this.filterCtrl.value);
1247
+ }
1248
+ add(event) {
1249
+ this.onTouched();
1250
+ const input = event.input;
1251
+ const value = event.value;
1252
+ const selected = StringUtil.normalize((value || ''));
1253
+ const opcao = this.opcoes.toArray().find(op => StringUtil.normalize(op.label) === selected);
1254
+ if (opcao) {
1255
+ if (!this.value || !this.value.find(v => v === opcao.value)) {
1256
+ this.value = [
1257
+ ...(this.value || []),
1258
+ opcao.value
1259
+ ];
1260
+ this.onChange(this.value);
1261
+ }
1262
+ if (input) {
1263
+ input.value = '';
1264
+ }
1265
+ this.filterCtrl.setValue(null);
1266
+ }
1267
+ }
1268
+ remove(item) {
1269
+ this.onTouched();
1270
+ if (this.value) {
1271
+ const index = this.value.indexOf(item);
1272
+ if (index >= 0) {
1273
+ this.value.splice(index, 1);
1274
+ }
1275
+ if (!this.value.length) {
1276
+ this.value = undefined;
1277
+ }
1278
+ this.onChange(this.value);
1279
+ }
1280
+ }
1281
+ selected(event) {
1282
+ this.onTouched();
1283
+ if (!this.value || !this.value.find(v => v === event.option.value)) {
1284
+ this.value = [
1285
+ ...(this.value || []),
1286
+ event.option.value
1287
+ ];
1288
+ this.onChange(this.value);
1289
+ }
1290
+ this.filterInput.nativeElement.value = '';
1291
+ this.filterCtrl.setValue(null);
1292
+ }
1293
+ _filter(filtro) {
1294
+ const filterValue = filtro && StringUtil.normalize(filtro);
1295
+ return this.opcoes.toArray()
1296
+ .filter(opcao => !this.value || this.value.indexOf(opcao.value) < 0)
1297
+ .filter(opcao => !filterValue || StringUtil.normalize(opcao.label).indexOf(filterValue) >= 0);
1298
+ }
1299
+ }
1300
+ SelectChipsComponent.nextId = 0;
1301
+ SelectChipsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectChipsComponent, deps: [{ token: i1.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1302
+ SelectChipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectChipsComponent, selector: "mcl-select-chips", inputs: { placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [
1303
+ {
1304
+ provide: MatFormFieldControl,
1305
+ useExisting: SelectChipsComponent
1306
+ }
1307
+ ], queries: [{ propertyName: "opcoes", predicate: SelectItemComponent }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "filterInput", first: true, predicate: ["filterInput"], descendants: true }, { propertyName: "filterAutocomplete", first: true, predicate: ["filterAutocomplete"], descendants: true }], ngImport: i0, template: "<mat-chip-list #chipList >\n <mat-chip\n *ngFor=\"let item of value\"\n [removable]=\"!disabled\"\n (removed)=\"remove(item)\">\n {{item}}\n <mat-icon matChipRemove *ngIf=\"!disabled\" >cancel</mat-icon>\n </mat-chip>\n <input\n [placeholder]=\"placeholder\"\n #filterInput required\n (focusin)=\"focused = true\"\n (focusout)=\"focused = false\"\n [formControl]=\"filterCtrl\"\n [matAutocomplete]=\"filterAutocomplete\"\n [matChipInputFor]=\"chipList\"\n (matChipInputTokenEnd)=\"add($event)\">\n</mat-chip-list>\n<mat-autocomplete #filterAutocomplete=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let opcao of opcoesFiltradas | async\" [value]=\"opcao.value\">\n {{opcao.label}}\n </mat-option>\n</mat-autocomplete>\n", styles: [""], dependencies: [{ kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i5$2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple", "hideSingleSelectionIndicator"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i5$2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: i6$1.MatLegacyChipList, selector: "mat-chip-list", inputs: ["role", "aria-describedby", "errorStateMatcher", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "aria-orientation", "selectable", "tabIndex"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }, { kind: "directive", type: i6$1.MatLegacyChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "role", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { kind: "directive", type: i6$1.MatLegacyChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i6$1.MatLegacyChipRemove, selector: "[matChipRemove]" }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
1308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectChipsComponent, decorators: [{
1309
+ type: Component,
1310
+ args: [{ selector: 'mcl-select-chips', providers: [
1311
+ {
1312
+ provide: MatFormFieldControl,
1313
+ useExisting: SelectChipsComponent
1314
+ }
1315
+ ], template: "<mat-chip-list #chipList >\n <mat-chip\n *ngFor=\"let item of value\"\n [removable]=\"!disabled\"\n (removed)=\"remove(item)\">\n {{item}}\n <mat-icon matChipRemove *ngIf=\"!disabled\" >cancel</mat-icon>\n </mat-chip>\n <input\n [placeholder]=\"placeholder\"\n #filterInput required\n (focusin)=\"focused = true\"\n (focusout)=\"focused = false\"\n [formControl]=\"filterCtrl\"\n [matAutocomplete]=\"filterAutocomplete\"\n [matChipInputFor]=\"chipList\"\n (matChipInputTokenEnd)=\"add($event)\">\n</mat-chip-list>\n<mat-autocomplete #filterAutocomplete=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let opcao of opcoesFiltradas | async\" [value]=\"opcao.value\">\n {{opcao.label}}\n </mat-option>\n</mat-autocomplete>\n" }]
1316
+ }], ctorParameters: function () {
1317
+ return [{ type: i1.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{
1318
+ type: Optional
1319
+ }, {
1320
+ type: Self
1321
+ }] }, { type: i2.NgForm, decorators: [{
1322
+ type: Optional
1323
+ }] }, { type: i2.FormGroupDirective, decorators: [{
1324
+ type: Optional
1325
+ }] }];
1326
+ }, propDecorators: { input: [{
1327
+ type: ViewChild,
1328
+ args: ['input']
1329
+ }], id: [{
1330
+ type: HostBinding
1331
+ }], describedBy: [{
1332
+ type: HostBinding,
1333
+ args: ['attr.aria-describedby']
1334
+ }], opcoes: [{
1335
+ type: ContentChildren,
1336
+ args: [SelectItemComponent]
1337
+ }], filterInput: [{
1338
+ type: ViewChild,
1339
+ args: ['filterInput']
1340
+ }], filterAutocomplete: [{
1341
+ type: ViewChild,
1342
+ args: ['filterAutocomplete']
1343
+ }], shouldLabelFloat: [{
1344
+ type: HostBinding,
1345
+ args: ['class.floating']
1346
+ }], placeholder: [{
1347
+ type: Input
1348
+ }], required: [{
1349
+ type: Input
1350
+ }], disabled: [{
1351
+ type: Input
1352
+ }] } });
1353
+
1354
+ class SelectItemModule {
1355
+ }
1356
+ SelectItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1357
+ SelectItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SelectItemModule, declarations: [SelectItemComponent], imports: [CommonModule], exports: [SelectItemComponent] });
1358
+ SelectItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectItemModule, imports: [CommonModule] });
1359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectItemModule, decorators: [{
1360
+ type: NgModule,
1361
+ args: [{
1362
+ declarations: [SelectItemComponent],
1363
+ exports: [SelectItemComponent],
1364
+ imports: [
1365
+ CommonModule,
1366
+ ],
1367
+ }]
1368
+ }] });
1369
+
1370
+ class SelectChipsModule {
1371
+ }
1372
+ SelectChipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1373
+ SelectChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SelectChipsModule, declarations: [SelectChipsComponent], imports: [CommonModule,
1374
+ MatIconModule,
1375
+ ReactiveFormsModule,
1376
+ MatAutocompleteModule,
1377
+ SelectItemModule,
1378
+ MatLegacyChipsModule], exports: [SelectChipsComponent, SelectItemModule] });
1379
+ SelectChipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectChipsModule, imports: [CommonModule,
1380
+ MatIconModule,
1381
+ ReactiveFormsModule,
1382
+ MatAutocompleteModule,
1383
+ SelectItemModule,
1384
+ MatLegacyChipsModule, SelectItemModule] });
1385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectChipsModule, decorators: [{
1386
+ type: NgModule,
1387
+ args: [{
1388
+ declarations: [SelectChipsComponent],
1389
+ exports: [SelectChipsComponent, SelectItemModule],
1390
+ imports: [
1391
+ CommonModule,
1392
+ MatIconModule,
1393
+ ReactiveFormsModule,
1394
+ MatAutocompleteModule,
1395
+ SelectItemModule,
1396
+ MatLegacyChipsModule,
1397
+ ],
1398
+ }]
1399
+ }] });
1400
+
1401
+ class SelectManyCheckboxComponent {
1402
+ constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
1403
+ this.errorStateMatcher = errorStateMatcher;
1404
+ this.ngControl = ngControl;
1405
+ this.parentForm = parentForm;
1406
+ this.parentFormGroup = parentFormGroup;
1407
+ this.onChange = (val) => {
1408
+ };
1409
+ this.onTouched = () => {
1410
+ };
1411
+ this.$disabled = false;
1412
+ this.$required = false;
1413
+ this.layout = 'grid';
1414
+ this.layoutColumns = 3;
1415
+ this.stateChanges = new Subject();
1416
+ this.id = `select-radio-${SelectManyCheckboxComponent.nextId++}`;
1417
+ this.describedBy = '';
1418
+ if (this.ngControl != null) {
1419
+ this.ngControl.valueAccessor = this;
1420
+ }
1421
+ }
1422
+ ngAfterViewInit() {
1423
+ this.opcoes.changes.subscribe(() => {
1424
+ this.updateOpcoes();
1425
+ });
1426
+ }
1427
+ get value() {
1428
+ return this.$value;
1429
+ }
1430
+ set value(value) {
1431
+ this.$value = value;
1432
+ this.onChange(value);
1433
+ this.stateChanges.next();
1434
+ }
1435
+ get focused() {
1436
+ return false;
1437
+ }
1438
+ get empty() {
1439
+ return !this.value;
1440
+ }
1441
+ onContainerClick(event) {
1442
+ }
1443
+ get shouldLabelFloat() {
1444
+ return true;
1445
+ }
1446
+ get placeholder() {
1447
+ return this.$placeholder;
1448
+ }
1449
+ set placeholder(plh) {
1450
+ this.$placeholder = plh;
1451
+ this.stateChanges.next();
1452
+ }
1453
+ get required() {
1454
+ return this.$required;
1455
+ }
1456
+ set required(value) {
1457
+ this.$required = coerceBooleanProperty(value);
1458
+ this.stateChanges.next();
1459
+ }
1460
+ get disabled() {
1461
+ return this.$disabled;
1462
+ }
1463
+ set disabled(value) {
1464
+ this.$disabled = coerceBooleanProperty(value);
1465
+ this.stateChanges.next();
1466
+ }
1467
+ get errorState() {
1468
+ return this.errorStateMatcher.isErrorState(this.ngControl.control, this.parentFormGroup || this.parentForm);
1469
+ }
1470
+ get controlType() {
1471
+ return 'select-chips';
1472
+ }
1473
+ setDescribedByIds(ids) {
1474
+ this.describedBy = ids.join(' ');
1475
+ }
1476
+ ngOnDestroy() {
1477
+ this.stateChanges.complete();
1478
+ }
1479
+ registerOnTouched(fn) {
1480
+ this.onTouched = fn;
1481
+ }
1482
+ registerOnChange(fn) {
1483
+ this.onChange = fn;
1484
+ }
1485
+ setDisabledState(isDisabled) {
1486
+ this.disabled = isDisabled;
1487
+ }
1488
+ writeValue(value) {
1489
+ this.updateOpcoes(value);
1490
+ this.$value = value;
1491
+ }
1492
+ change(opcao, selected) {
1493
+ opcao._selected = selected;
1494
+ this.value = this.opcoesToValue();
1495
+ }
1496
+ updateOpcoes(value = this.value) {
1497
+ for (const opcao of this.opcoes) {
1498
+ opcao._selected = value && value.indexOf(opcao.value) >= 0;
1499
+ }
1500
+ }
1501
+ opcoesToValue() {
1502
+ const val = [];
1503
+ for (const opcao of this.opcoes) {
1504
+ if (opcao._selected) {
1505
+ val.push(opcao.value);
1506
+ }
1507
+ }
1508
+ return val.length ? val : undefined;
1509
+ }
1510
+ }
1511
+ SelectManyCheckboxComponent.nextId = 0;
1512
+ SelectManyCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectManyCheckboxComponent, deps: [{ token: i1.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1513
+ SelectManyCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectManyCheckboxComponent, selector: "mcl-select-many-checkbox", inputs: { layout: "layout", layoutColumns: "layoutColumns", placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [
1514
+ {
1515
+ provide: MatFormFieldControl,
1516
+ useExisting: SelectManyCheckboxComponent
1517
+ }
1518
+ ], queries: [{ propertyName: "opcoes", predicate: SelectItemComponent }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div class=\"mat-checkbox-container\"\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal','grid': layout === 'grid' }\"\n [ngStyle]=\"{'max-height': layout === 'grid' ? (((opcoes.length / layoutColumns) + 1) * 40) + 'px' : undefined}\">\n <mat-checkbox\n [required]=\"required\"\n [disabled]=\"disabled\"\n [checked]=\"opcao._selected\"\n (change)=\"change(opcao, $event.checked)\"\n *ngFor=\"let opcao of opcoes\">\n {{opcao.label}}\n </mat-checkbox>\n\n</div>\n", styles: [".mat-checkbox-container{display:flex;flex-wrap:wrap}.mat-checkbox-container.horizontal{flex-direction:row}.mat-checkbox-container.vertical,.mat-checkbox-container.grid{flex-direction:column}.mat-checkbox-container mat-checkbox{flex:1;padding:5px 5px 10px 0}@media (max-width: 750px){.mat-checkbox-container{max-height:none!important}.mat-checkbox-container.horizontal,.mat-checkbox-container.vertical,.mat-checkbox-container.grid{flex-direction:column}}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }] });
1519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectManyCheckboxComponent, decorators: [{
1520
+ type: Component,
1521
+ args: [{ selector: 'mcl-select-many-checkbox', providers: [
1522
+ {
1523
+ provide: MatFormFieldControl,
1524
+ useExisting: SelectManyCheckboxComponent
1525
+ }
1526
+ ], template: "<div class=\"mat-checkbox-container\"\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal','grid': layout === 'grid' }\"\n [ngStyle]=\"{'max-height': layout === 'grid' ? (((opcoes.length / layoutColumns) + 1) * 40) + 'px' : undefined}\">\n <mat-checkbox\n [required]=\"required\"\n [disabled]=\"disabled\"\n [checked]=\"opcao._selected\"\n (change)=\"change(opcao, $event.checked)\"\n *ngFor=\"let opcao of opcoes\">\n {{opcao.label}}\n </mat-checkbox>\n\n</div>\n", styles: [".mat-checkbox-container{display:flex;flex-wrap:wrap}.mat-checkbox-container.horizontal{flex-direction:row}.mat-checkbox-container.vertical,.mat-checkbox-container.grid{flex-direction:column}.mat-checkbox-container mat-checkbox{flex:1;padding:5px 5px 10px 0}@media (max-width: 750px){.mat-checkbox-container{max-height:none!important}.mat-checkbox-container.horizontal,.mat-checkbox-container.vertical,.mat-checkbox-container.grid{flex-direction:column}}\n"] }]
1527
+ }], ctorParameters: function () {
1528
+ return [{ type: i1.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{
1529
+ type: Optional
1530
+ }, {
1531
+ type: Self
1532
+ }] }, { type: i2.NgForm, decorators: [{
1533
+ type: Optional
1534
+ }] }, { type: i2.FormGroupDirective, decorators: [{
1535
+ type: Optional
1536
+ }] }];
1537
+ }, propDecorators: { layout: [{
1538
+ type: Input
1539
+ }], layoutColumns: [{
1540
+ type: Input
1541
+ }], input: [{
1542
+ type: ViewChild,
1543
+ args: ['input']
1544
+ }], id: [{
1545
+ type: HostBinding
1546
+ }], describedBy: [{
1547
+ type: HostBinding,
1548
+ args: ['attr.aria-describedby']
1549
+ }], opcoes: [{
1550
+ type: ContentChildren,
1551
+ args: [SelectItemComponent]
1552
+ }], shouldLabelFloat: [{
1553
+ type: HostBinding,
1554
+ args: ['class.floating']
1555
+ }], placeholder: [{
1556
+ type: Input
1557
+ }], required: [{
1558
+ type: Input
1559
+ }], disabled: [{
1560
+ type: Input
1561
+ }] } });
1562
+
1563
+ class SelectManyCheckboxModule {
1564
+ }
1565
+ SelectManyCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectManyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1566
+ SelectManyCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SelectManyCheckboxModule, declarations: [SelectManyCheckboxComponent], imports: [CommonModule,
1567
+ FormsModule,
1568
+ SelectItemModule,
1569
+ MatCheckboxModule], exports: [SelectManyCheckboxComponent, SelectItemModule] });
1570
+ SelectManyCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectManyCheckboxModule, imports: [CommonModule,
1571
+ FormsModule,
1572
+ SelectItemModule,
1573
+ MatCheckboxModule, SelectItemModule] });
1574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectManyCheckboxModule, decorators: [{
1575
+ type: NgModule,
1576
+ args: [{
1577
+ declarations: [SelectManyCheckboxComponent],
1578
+ exports: [SelectManyCheckboxComponent, SelectItemModule],
1579
+ imports: [
1580
+ CommonModule,
1581
+ FormsModule,
1582
+ SelectItemModule,
1583
+ MatCheckboxModule
1584
+ ],
1585
+ }]
1586
+ }] });
1587
+
1588
+ class SelectRadioComponent {
1589
+ constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
1590
+ this.errorStateMatcher = errorStateMatcher;
1591
+ this.ngControl = ngControl;
1592
+ this.parentForm = parentForm;
1593
+ this.parentFormGroup = parentFormGroup;
1594
+ this.onChange = (val) => {
1595
+ };
1596
+ this.onTouched = () => {
1597
+ };
1598
+ this.$disabled = false;
1599
+ this.$required = false;
1600
+ this.layout = 'vertical';
1601
+ this.stateChanges = new Subject();
1602
+ this.id = `select-radio-${SelectRadioComponent.nextId++}`;
1603
+ this.describedBy = '';
1604
+ if (this.ngControl != null) {
1605
+ this.ngControl.valueAccessor = this;
1606
+ }
1607
+ }
1608
+ get value() {
1609
+ return this.$value;
1610
+ }
1611
+ set value(value) {
1612
+ this.$value = value;
1613
+ this.onChange(value);
1614
+ this.stateChanges.next();
1615
+ }
1616
+ get focused() {
1617
+ return false;
1618
+ }
1619
+ get empty() {
1620
+ return !this.value;
1621
+ }
1622
+ onContainerClick(event) {
1623
+ }
1624
+ get shouldLabelFloat() {
1625
+ return true;
1626
+ }
1627
+ get placeholder() {
1628
+ return this.$placeholder;
1629
+ }
1630
+ set placeholder(plh) {
1631
+ this.$placeholder = plh;
1632
+ this.stateChanges.next();
1633
+ }
1634
+ get required() {
1635
+ return this.$required;
1636
+ }
1637
+ set required(value) {
1638
+ this.$required = coerceBooleanProperty(value);
1639
+ this.stateChanges.next();
1640
+ }
1641
+ get disabled() {
1642
+ return this.$disabled;
1643
+ }
1644
+ set disabled(value) {
1645
+ this.$disabled = coerceBooleanProperty(value);
1646
+ this.stateChanges.next();
1647
+ }
1648
+ get errorState() {
1649
+ return this.errorStateMatcher.isErrorState(this.ngControl.control, this.parentFormGroup || this.parentForm);
1650
+ }
1651
+ get controlType() {
1652
+ return 'select-chips';
1653
+ }
1654
+ setDescribedByIds(ids) {
1655
+ this.describedBy = ids.join(' ');
1656
+ }
1657
+ ngOnDestroy() {
1658
+ this.stateChanges.complete();
1659
+ }
1660
+ registerOnTouched(fn) {
1661
+ this.onTouched = fn;
1662
+ }
1663
+ registerOnChange(fn) {
1664
+ this.onChange = fn;
1665
+ }
1666
+ setDisabledState(isDisabled) {
1667
+ this.disabled = isDisabled;
1668
+ }
1669
+ writeValue(value) {
1670
+ this.value = value;
1671
+ }
1672
+ }
1673
+ SelectRadioComponent.nextId = 0;
1674
+ SelectRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectRadioComponent, deps: [{ token: i1.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1675
+ SelectRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectRadioComponent, selector: "mcl-select-radio", inputs: { layout: "layout", placeholder: "placeholder", required: "required", disabled: "disabled" }, host: { properties: { "id": "this.id", "attr.aria-describedby": "this.describedBy", "class.floating": "this.shouldLabelFloat" } }, providers: [
1676
+ {
1677
+ provide: MatFormFieldControl,
1678
+ useExisting: SelectRadioComponent
1679
+ }
1680
+ ], queries: [{ propertyName: "opcoes", predicate: SelectItemComponent }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<mat-radio-group\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal'}\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\">\n <mat-radio-button *ngFor=\"let opcao of opcoes\"\n [value]=\"opcao.value\">{{opcao.label}}</mat-radio-button>\n</mat-radio-group>\n", styles: ["mat-radio-group{display:flex}mat-radio-group.horizontal{flex-direction:row}mat-radio-group.vertical{flex-direction:column}mat-radio-group mat-radio-button{flex:1}@media (max-width: 750px){mat-radio-group.horizontal,mat-radio-group.vertical{flex-direction:column}mat-radio-group.horizontal mat-radio-button,mat-radio-group.vertical mat-radio-button{margin:10px 0}}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4$2.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$2.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }] });
1681
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectRadioComponent, decorators: [{
1682
+ type: Component,
1683
+ args: [{ selector: 'mcl-select-radio', providers: [
1684
+ {
1685
+ provide: MatFormFieldControl,
1686
+ useExisting: SelectRadioComponent
1687
+ }
1688
+ ], template: "<mat-radio-group\n [ngClass]=\"{'vertical':layout === 'vertical','horizontal':layout ==='horizontal'}\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\">\n <mat-radio-button *ngFor=\"let opcao of opcoes\"\n [value]=\"opcao.value\">{{opcao.label}}</mat-radio-button>\n</mat-radio-group>\n", styles: ["mat-radio-group{display:flex}mat-radio-group.horizontal{flex-direction:row}mat-radio-group.vertical{flex-direction:column}mat-radio-group mat-radio-button{flex:1}@media (max-width: 750px){mat-radio-group.horizontal,mat-radio-group.vertical{flex-direction:column}mat-radio-group.horizontal mat-radio-button,mat-radio-group.vertical mat-radio-button{margin:10px 0}}\n"] }]
1689
+ }], ctorParameters: function () {
1690
+ return [{ type: i1.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{
1691
+ type: Optional
1692
+ }, {
1693
+ type: Self
1694
+ }] }, { type: i2.NgForm, decorators: [{
1695
+ type: Optional
1696
+ }] }, { type: i2.FormGroupDirective, decorators: [{
1697
+ type: Optional
1698
+ }] }];
1699
+ }, propDecorators: { layout: [{
1700
+ type: Input
1701
+ }], input: [{
1702
+ type: ViewChild,
1703
+ args: ['input']
1704
+ }], id: [{
1705
+ type: HostBinding
1706
+ }], describedBy: [{
1707
+ type: HostBinding,
1708
+ args: ['attr.aria-describedby']
1709
+ }], opcoes: [{
1710
+ type: ContentChildren,
1711
+ args: [SelectItemComponent]
1712
+ }], shouldLabelFloat: [{
1713
+ type: HostBinding,
1714
+ args: ['class.floating']
1715
+ }], placeholder: [{
1716
+ type: Input
1717
+ }], required: [{
1718
+ type: Input
1719
+ }], disabled: [{
1720
+ type: Input
1721
+ }] } });
1722
+
1723
+ class SelectRadioModule {
1724
+ }
1725
+ SelectRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1726
+ SelectRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SelectRadioModule, declarations: [SelectRadioComponent], imports: [CommonModule,
1727
+ FormsModule,
1728
+ SelectItemModule,
1729
+ MatRadioModule], exports: [SelectRadioComponent, SelectItemModule] });
1730
+ SelectRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectRadioModule, imports: [CommonModule,
1731
+ FormsModule,
1732
+ SelectItemModule,
1733
+ MatRadioModule, SelectItemModule] });
1734
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectRadioModule, decorators: [{
1735
+ type: NgModule,
1736
+ args: [{
1737
+ declarations: [SelectRadioComponent],
1738
+ exports: [SelectRadioComponent, SelectItemModule],
1739
+ imports: [
1740
+ CommonModule,
1741
+ FormsModule,
1742
+ SelectItemModule,
1743
+ MatRadioModule
1744
+ ],
1745
+ }]
1746
+ }] });
1747
+
1748
+ class InputTelefoneInternacionalComponent extends AbstractMatFormFieldControl {
1749
+ constructor(errorStateMatcher, ngControl, parentForm, parentFormGroup) {
1750
+ super(errorStateMatcher, ngControl, parentForm, parentFormGroup);
1751
+ this.preferredContries = ['br'];
1752
+ this.blur = new EventEmitter();
1753
+ this.alwaysShowCountry = false;
1754
+ }
1755
+ get value() {
1756
+ return this.$innerValue;
1757
+ }
1758
+ set value(value) {
1759
+ this.$innerValue = value;
1760
+ this.stateChanges.next();
1761
+ this.onChange(value === null || value === void 0 ? void 0 : value.replace(/[^\d+]/g, ''));
1762
+ }
1763
+ get shouldLabelFloat() {
1764
+ return this.focused || !this.empty || this.alwaysShowCountry;
1765
+ }
1766
+ get empty() {
1767
+ return !this.value;
1768
+ }
1769
+ onFocus() {
1770
+ this.focused = true;
1771
+ this.stateChanges.next();
1772
+ }
1773
+ onBlur() {
1774
+ this.focused = false;
1775
+ this.stateChanges.next();
1776
+ this.blur.emit();
1777
+ }
1778
+ writeValue(value) {
1779
+ this.value = value;
1780
+ }
1781
+ }
1782
+ InputTelefoneInternacionalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalComponent, deps: [{ token: i1.ErrorStateMatcher }, { token: i2.NgControl, optional: true, self: true }, { token: i2.NgForm, optional: true }, { token: i2.FormGroupDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
1783
+ InputTelefoneInternacionalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputTelefoneInternacionalComponent, selector: "mcl-input-telefone-intl", inputs: { preferredContries: "preferredContries", readonly: "readonly", alwaysShowCountry: "alwaysShowCountry" }, outputs: { blur: "blur" }, providers: [
1784
+ {
1785
+ provide: MatFormFieldControl,
1786
+ useExisting: InputTelefoneInternacionalComponent
1787
+ },
1788
+ ], viewQueries: [{ propertyName: "telInput", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"input\">\n <lac-mat-country-selector\n [ngClass]=\"{'hidden': !focused && !value && !alwaysShowCountry}\"\n [preferredCountries]=\"preferredContries\"\n [selectorFor]=\"input\"\n searchPlaceholder=\"Filtrar paises...\"></lac-mat-country-selector>\n <lac-mat-tel-input #input\n [(ngModel)]=\"value\"\n (focusin)=\"onFocus()\" (focusout)=\"onBlur()\"></lac-mat-tel-input>\n</div>\n", styles: [".input{display:flex;align-items:center;margin:-8px 0;gap:8px}.input lac-mat-country-selector{transition:.3s}.input lac-mat-country-selector.hidden{opacity:0}.input lac-mat-tel-input{flex:1 1 auto}\n"], dependencies: [{ kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4$3.LacMatTelInputComponent, selector: "lac-mat-tel-input", inputs: ["required", "disabled", "internationalFormat"], outputs: ["blur"] }, { kind: "component", type: i4$3.LacMatCountrySelectorComponent, selector: "lac-mat-country-selector", inputs: ["preferredCountries", "onlyCountries", "selectorFor", "showDialCode", "disableSearch", "searchPlaceholder"], outputs: ["change"] }] });
1789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalComponent, decorators: [{
1790
+ type: Component,
1791
+ args: [{ selector: 'mcl-input-telefone-intl', providers: [
1792
+ {
1793
+ provide: MatFormFieldControl,
1794
+ useExisting: InputTelefoneInternacionalComponent
1795
+ },
1796
+ ], template: "<div class=\"input\">\n <lac-mat-country-selector\n [ngClass]=\"{'hidden': !focused && !value && !alwaysShowCountry}\"\n [preferredCountries]=\"preferredContries\"\n [selectorFor]=\"input\"\n searchPlaceholder=\"Filtrar paises...\"></lac-mat-country-selector>\n <lac-mat-tel-input #input\n [(ngModel)]=\"value\"\n (focusin)=\"onFocus()\" (focusout)=\"onBlur()\"></lac-mat-tel-input>\n</div>\n", styles: [".input{display:flex;align-items:center;margin:-8px 0;gap:8px}.input lac-mat-country-selector{transition:.3s}.input lac-mat-country-selector.hidden{opacity:0}.input lac-mat-tel-input{flex:1 1 auto}\n"] }]
1797
+ }], ctorParameters: function () {
1798
+ return [{ type: i1.ErrorStateMatcher }, { type: i2.NgControl, decorators: [{
1799
+ type: Optional
1800
+ }, {
1801
+ type: Self
1802
+ }] }, { type: i2.NgForm, decorators: [{
1803
+ type: Optional
1804
+ }] }, { type: i2.FormGroupDirective, decorators: [{
1805
+ type: Optional
1806
+ }] }];
1807
+ }, propDecorators: { preferredContries: [{
1808
+ type: Input
1809
+ }], readonly: [{
1810
+ type: Input
1811
+ }], blur: [{
1812
+ type: Output
1813
+ }], alwaysShowCountry: [{
1814
+ type: Input
1815
+ }], telInput: [{
1816
+ type: ViewChild,
1817
+ args: ['input']
1818
+ }] } });
1819
+
1820
+ class InputTelefoneInternacionalValidatorDirective {
1821
+ constructor() {
1822
+ }
1823
+ validate(control) {
1824
+ return phoneNumberValidator(control);
1825
+ }
1826
+ }
1827
+ InputTelefoneInternacionalValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1828
+ InputTelefoneInternacionalValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: InputTelefoneInternacionalValidatorDirective, selector: "mcl-input-telefone-intl,[mclInputTelefoneIntl]", providers: [{
1829
+ provide: NG_VALIDATORS,
1830
+ useExisting: InputTelefoneInternacionalValidatorDirective,
1831
+ multi: true,
1832
+ }], ngImport: i0 });
1833
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalValidatorDirective, decorators: [{
1834
+ type: Directive,
1835
+ args: [{
1836
+ selector: 'mcl-input-telefone-intl,[mclInputTelefoneIntl]',
1837
+ providers: [{
1838
+ provide: NG_VALIDATORS,
1839
+ useExisting: InputTelefoneInternacionalValidatorDirective,
1840
+ multi: true,
1841
+ }]
1842
+ }]
1843
+ }], ctorParameters: function () { return []; } });
1844
+
1845
+ class InputTelefoneInternacionalModule {
1846
+ }
1847
+ InputTelefoneInternacionalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1848
+ InputTelefoneInternacionalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalModule, declarations: [InputTelefoneInternacionalComponent, InputTelefoneInternacionalValidatorDirective], imports: [CommonModule,
1849
+ FormsModule,
1850
+ LacMatTelInputModule], exports: [InputTelefoneInternacionalComponent,
1851
+ InputTelefoneInternacionalValidatorDirective] });
1852
+ InputTelefoneInternacionalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalModule, imports: [CommonModule,
1853
+ FormsModule,
1854
+ LacMatTelInputModule] });
1855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTelefoneInternacionalModule, decorators: [{
1856
+ type: NgModule,
1857
+ args: [{
1858
+ declarations: [InputTelefoneInternacionalComponent, InputTelefoneInternacionalValidatorDirective],
1859
+ exports: [
1860
+ InputTelefoneInternacionalComponent,
1861
+ InputTelefoneInternacionalValidatorDirective
1862
+ ],
1863
+ imports: [
1864
+ CommonModule,
1865
+ FormsModule,
1866
+ LacMatTelInputModule,
1867
+ ]
1868
+ }]
1869
+ }] });
1870
+
1871
+ /**
1872
+ * Generated bundle index. Do not edit.
1873
+ */
1874
+
1875
+ export { AbstractMatFormFieldControl, AllOptionCheckboxComponent, InputDatetimeComponent, InputDatetimeModule, InputFileUploadComponent, InputFileUploadValidatorDirective, InputFileuploadModule, InputTelefoneInternacionalComponent, InputTelefoneInternacionalModule, InputTelefoneInternacionalValidatorDirective, OptionCheckboxComponent, OptionCheckboxGroupComponent, OptionCheckboxModule, SelectChipsComponent, SelectChipsModule, SelectItemComponent, SelectItemModule, SelectManyCheckboxComponent, SelectManyCheckboxModule, SelectRadioComponent, SelectRadioModule };
1876
+ //# sourceMappingURL=main-class-componentes-input.mjs.map