@main-class/componentes 1.19.3 → 2.0.4

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