@main-class/componentes 1.18.7 → 1.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/arquivo/index.d.ts +6 -4
  2. package/arquivo/main-class-componentes-arquivo.d.ts +4 -0
  3. package/arquivo/main-class-componentes-arquivo.metadata.json +1 -0
  4. package/arquivo/package.json +11 -0
  5. package/arquivo/{download-arquivo.directive.d.ts → src/download-arquivo.directive.d.ts} +1 -1
  6. package/{core/imagem → arquivo/src}/imagem.directive.d.ts +1 -1
  7. package/arquivo/{preview-arquivo → src/preview-arquivo}/dialog-preview-arquivo/dialog-preview-arquivo.component.d.ts +1 -1
  8. package/arquivo/{preview-arquivo → src/preview-arquivo}/preview-arquivo.component.d.ts +1 -1
  9. package/bundles/main-class-componentes-arquivo.umd.js +687 -0
  10. package/bundles/main-class-componentes-arquivo.umd.js.map +1 -0
  11. package/bundles/main-class-componentes-arquivo.umd.min.js +16 -0
  12. package/bundles/main-class-componentes-arquivo.umd.min.js.map +1 -0
  13. package/bundles/main-class-componentes-core.umd.js +252 -0
  14. package/bundles/main-class-componentes-core.umd.js.map +1 -0
  15. package/bundles/main-class-componentes-core.umd.min.js +2 -0
  16. package/bundles/main-class-componentes-core.umd.min.js.map +1 -0
  17. package/bundles/main-class-componentes-crud.umd.js +543 -0
  18. package/bundles/main-class-componentes-crud.umd.js.map +1 -0
  19. package/bundles/main-class-componentes-crud.umd.min.js +16 -0
  20. package/bundles/main-class-componentes-crud.umd.min.js.map +1 -0
  21. package/bundles/main-class-componentes-date.umd.js +185 -0
  22. package/bundles/main-class-componentes-date.umd.js.map +1 -0
  23. package/bundles/main-class-componentes-date.umd.min.js +2 -0
  24. package/bundles/main-class-componentes-date.umd.min.js.map +1 -0
  25. package/bundles/main-class-componentes-dialog.umd.js +206 -0
  26. package/bundles/main-class-componentes-dialog.umd.js.map +1 -0
  27. package/bundles/main-class-componentes-dialog.umd.min.js +2 -0
  28. package/bundles/main-class-componentes-dialog.umd.min.js.map +1 -0
  29. package/bundles/main-class-componentes-form.umd.js +211 -0
  30. package/bundles/main-class-componentes-form.umd.js.map +1 -0
  31. package/bundles/main-class-componentes-form.umd.min.js +2 -0
  32. package/bundles/main-class-componentes-form.umd.min.js.map +1 -0
  33. package/bundles/main-class-componentes-input.umd.js +2244 -0
  34. package/bundles/main-class-componentes-input.umd.js.map +1 -0
  35. package/bundles/main-class-componentes-input.umd.min.js +17 -0
  36. package/bundles/main-class-componentes-input.umd.min.js.map +1 -0
  37. package/bundles/main-class-componentes-loader.umd.js +233 -0
  38. package/bundles/main-class-componentes-loader.umd.js.map +1 -0
  39. package/bundles/main-class-componentes-loader.umd.min.js +2 -0
  40. package/bundles/main-class-componentes-loader.umd.min.js.map +1 -0
  41. package/bundles/main-class-componentes-misc.umd.js +1122 -0
  42. package/bundles/main-class-componentes-misc.umd.js.map +1 -0
  43. package/bundles/main-class-componentes-misc.umd.min.js +16 -0
  44. package/bundles/main-class-componentes-misc.umd.min.js.map +1 -0
  45. package/bundles/main-class-componentes-model.umd.js +196 -0
  46. package/bundles/main-class-componentes-model.umd.js.map +1 -0
  47. package/bundles/main-class-componentes-model.umd.min.js +2 -0
  48. package/bundles/main-class-componentes-model.umd.min.js.map +1 -0
  49. package/bundles/main-class-componentes-pipe.umd.js +55 -0
  50. package/bundles/main-class-componentes-pipe.umd.js.map +1 -0
  51. package/bundles/main-class-componentes-pipe.umd.min.js +2 -0
  52. package/bundles/main-class-componentes-pipe.umd.min.js.map +1 -0
  53. package/bundles/main-class-componentes-scroll.umd.js +106 -0
  54. package/bundles/main-class-componentes-scroll.umd.js.map +1 -0
  55. package/bundles/main-class-componentes-scroll.umd.min.js +2 -0
  56. package/bundles/main-class-componentes-scroll.umd.min.js.map +1 -0
  57. package/bundles/main-class-componentes-table.umd.js +787 -0
  58. package/bundles/main-class-componentes-table.umd.js.map +1 -0
  59. package/bundles/main-class-componentes-table.umd.min.js +17 -0
  60. package/bundles/main-class-componentes-table.umd.min.js.map +1 -0
  61. package/bundles/main-class-componentes-util.umd.js +31 -0
  62. package/bundles/main-class-componentes-util.umd.js.map +1 -0
  63. package/bundles/main-class-componentes-util.umd.min.js +2 -0
  64. package/bundles/main-class-componentes-util.umd.min.js.map +1 -0
  65. package/bundles/main-class-componentes.umd.js +13 -5512
  66. package/bundles/main-class-componentes.umd.js.map +1 -1
  67. package/bundles/main-class-componentes.umd.min.js +1 -1
  68. package/bundles/main-class-componentes.umd.min.js.map +1 -1
  69. package/core/index.d.ts +5 -14
  70. package/core/main-class-componentes-core.d.ts +4 -0
  71. package/core/main-class-componentes-core.metadata.json +1 -0
  72. package/core/package.json +11 -0
  73. package/core/src/core.module.d.ts +4 -0
  74. package/core/{mensageria → src/mensageria}/mensageria.service.d.ts +1 -2
  75. package/crud/index.d.ts +4 -5
  76. package/crud/main-class-componentes-crud.d.ts +4 -0
  77. package/crud/main-class-componentes-crud.metadata.json +1 -0
  78. package/crud/package.json +11 -0
  79. package/crud/{abstract-consulta-component.d.ts → src/abstract-consulta-component.d.ts} +3 -2
  80. package/crud/{abstract-consulta-paginada-component.d.ts → src/abstract-consulta-paginada-component.d.ts} +3 -2
  81. package/crud/{abstract-edicao-component.d.ts → src/abstract-edicao-component.d.ts} +2 -1
  82. package/crud/{abstract-edicao-modal-component.d.ts → src/abstract-edicao-modal-component.d.ts} +3 -1
  83. package/date/index.d.ts +3 -3
  84. package/date/main-class-componentes-date.d.ts +4 -0
  85. package/date/main-class-componentes-date.metadata.json +1 -0
  86. package/date/package.json +11 -0
  87. package/dialog/index.d.ts +4 -0
  88. package/dialog/main-class-componentes-dialog.d.ts +4 -0
  89. package/dialog/main-class-componentes-dialog.metadata.json +1 -0
  90. package/dialog/package.json +11 -0
  91. package/dialog/src/dialog.module.d.ts +2 -0
  92. package/esm2015/arquivo/index.js +7 -5
  93. package/esm2015/arquivo/main-class-componentes-arquivo.js +5 -0
  94. package/esm2015/arquivo/src/arquivo-manager.service.js +3 -0
  95. package/esm2015/arquivo/src/arquivo.module.js +30 -0
  96. package/esm2015/arquivo/src/download-arquivo.directive.js +44 -0
  97. package/esm2015/arquivo/src/imagem.directive.js +80 -0
  98. package/esm2015/arquivo/src/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +56 -0
  99. package/esm2015/arquivo/src/preview-arquivo/preview-arquivo.component.js +136 -0
  100. package/esm2015/core/index.js +6 -15
  101. package/esm2015/core/main-class-componentes-core.js +5 -0
  102. package/esm2015/core/src/core.module.js +27 -0
  103. package/esm2015/core/src/criptografia/criptografia.service.js +13 -0
  104. package/esm2015/core/src/mensageria/mensageria.service.js +48 -0
  105. package/esm2015/core/src/mobile/mobile.service.js +45 -0
  106. package/esm2015/core/src/validator/valida-modulo11.service.js +92 -0
  107. package/esm2015/crud/index.js +5 -6
  108. package/esm2015/crud/main-class-componentes-crud.js +5 -0
  109. package/esm2015/crud/src/abstract-consulta-component.js +60 -0
  110. package/esm2015/crud/src/abstract-consulta-paginada-component.js +48 -0
  111. package/esm2015/crud/src/abstract-edicao-component.js +29 -0
  112. package/esm2015/crud/src/abstract-edicao-modal-component.js +24 -0
  113. package/esm2015/date/index.js +4 -4
  114. package/esm2015/date/main-class-componentes-date.js +5 -0
  115. package/esm2015/date/src/date.module.js +19 -0
  116. package/esm2015/date/src/validator/data-validator.directive.js +97 -0
  117. package/esm2015/date/src/validator/futuro.directive.js +26 -0
  118. package/esm2015/dialog/index.js +5 -0
  119. package/esm2015/dialog/main-class-componentes-dialog.js +5 -0
  120. package/esm2015/dialog/src/dialog-confirmacao/dialog-confirmacao.component.js +40 -0
  121. package/esm2015/dialog/src/dialog-iframe/dialog-iframe.component.js +59 -0
  122. package/esm2015/dialog/src/dialog.module.js +28 -0
  123. package/esm2015/dialog/src/dialog.service.js +55 -0
  124. package/esm2015/form/index.js +5 -5
  125. package/esm2015/form/main-class-componentes-form.js +5 -0
  126. package/esm2015/form/src/form.component.js +103 -0
  127. package/esm2015/form/src/form.module.js +25 -0
  128. package/esm2015/form/src/mensagens-erro/mensagens-erro.component.js +31 -0
  129. package/esm2015/form/src/single-click.directive.js +35 -0
  130. package/esm2015/input/index.js +22 -22
  131. package/esm2015/input/main-class-componentes-input.js +6 -0
  132. package/esm2015/input/src/abstract-mat-form-field-control.js +110 -0
  133. package/esm2015/input/src/input-datetime/input-datetime.component.js +114 -0
  134. package/esm2015/input/{input-datetime → src/input-datetime}/input-datetime.module.js +3 -3
  135. package/esm2015/input/src/input-fileupload/input-fileupload.component.js +324 -0
  136. package/esm2015/input/src/input-fileupload/input-fileupload.directive.js +34 -0
  137. package/esm2015/input/src/input-fileupload/input-fileupload.module.js +34 -0
  138. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional-validator.directive.js +22 -0
  139. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.component.js +66 -0
  140. package/esm2015/input/src/input-telefone-internacional/input-telefone-internacional.module.js +23 -0
  141. package/esm2015/input/src/option-checkbox/all-option-checkbox.component.js +36 -0
  142. package/esm2015/input/src/option-checkbox/node-pool.js +93 -0
  143. package/esm2015/input/src/option-checkbox/option-checkbox-group.component.js +71 -0
  144. package/esm2015/input/src/option-checkbox/option-checkbox.component.js +59 -0
  145. package/esm2015/input/src/option-checkbox/option-checkbox.module.js +23 -0
  146. package/esm2015/input/src/option-checkbox/option-checkbox.service.js +52 -0
  147. package/esm2015/input/src/option-checkbox/option-node.js +24 -0
  148. package/esm2015/input/src/select-chips/select-chips.component.js +177 -0
  149. package/esm2015/input/src/select-chips/select-chips.module.js +25 -0
  150. package/esm2015/input/src/select-item/select-item.component.js +20 -0
  151. package/esm2015/input/src/select-item/select-item.module.js +15 -0
  152. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +150 -0
  153. package/esm2015/input/src/select-many-checkbox/select-many-checkbox.module.js +21 -0
  154. package/esm2015/input/src/select-radio/select-radio.component.js +124 -0
  155. package/esm2015/input/src/select-radio/select-radio.module.js +21 -0
  156. package/esm2015/loader/index.js +4 -0
  157. package/esm2015/loader/main-class-componentes-loader.js +5 -0
  158. package/esm2015/loader/src/loader.component.js +112 -0
  159. package/esm2015/loader/src/loader.module.js +21 -0
  160. package/esm2015/loader/src/loader.service.js +70 -0
  161. package/esm2015/misc/index.js +27 -27
  162. package/esm2015/misc/main-class-componentes-misc.js +5 -0
  163. package/esm2015/misc/src/cnpj/cnpj-model.directive.js +13 -0
  164. package/esm2015/misc/src/cnpj/cnpj.directive.js +31 -0
  165. package/esm2015/misc/src/cnpj/cnpj.module.js +19 -0
  166. package/esm2015/misc/src/cnpj/cnpjs.pipe.js +15 -0
  167. package/esm2015/misc/src/cpf/cpf-model.directive.js +13 -0
  168. package/esm2015/misc/src/cpf/cpf.directive.js +31 -0
  169. package/esm2015/misc/src/cpf/cpf.module.js +19 -0
  170. package/esm2015/misc/src/cpf/cpf.pipe.js +15 -0
  171. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj-model.directive.js +25 -0
  172. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.directive.js +32 -0
  173. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.module.js +19 -0
  174. package/esm2015/misc/src/cpf-cnpj/cpf-cnpj.pipe.js +18 -0
  175. package/esm2015/misc/{info → src/info}/info.component.js +1 -1
  176. package/esm2015/misc/src/info/info.module.js +17 -0
  177. package/esm2015/misc/src/monetario/monetario-mask.js +34 -0
  178. package/esm2015/misc/src/monetario/monetario-model.directive.js +124 -0
  179. package/esm2015/misc/src/monetario/monetario.module.js +16 -0
  180. package/esm2015/misc/src/monetario/monetario.pipe.js +13 -0
  181. package/esm2015/misc/src/porcentagem/porcentagem-mask.js +34 -0
  182. package/esm2015/misc/src/porcentagem/porcentagem-model.directive.js +99 -0
  183. package/esm2015/misc/src/porcentagem/porcentagem.module.js +16 -0
  184. package/esm2015/misc/src/porcentagem/porcentagem.pipe.js +13 -0
  185. package/esm2015/misc/src/telefone/telefone-model.directive.js +25 -0
  186. package/esm2015/misc/src/telefone/telefone.module.js +18 -0
  187. package/esm2015/misc/src/telefone/telefone.pipe.js +33 -0
  188. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.directive.js +23 -0
  189. package/esm2015/misc/src/unsafe-inner-html/unsafe-inner-html.module.js +15 -0
  190. package/esm2015/model/index.js +3 -0
  191. package/esm2015/model/main-class-componentes-model.js +5 -0
  192. package/esm2015/model/src/masked-model.directive.js +149 -0
  193. package/esm2015/model/src/model.module.js +19 -0
  194. package/esm2015/pipe/index.js +3 -0
  195. package/esm2015/pipe/main-class-componentes-pipe.js +5 -0
  196. package/esm2015/pipe/src/nome-resumido.pipe.js +16 -0
  197. package/esm2015/pipe/src/pipe.module.js +16 -0
  198. package/esm2015/public-api.js +2 -11
  199. package/esm2015/scroll/index.js +3 -3
  200. package/esm2015/scroll/main-class-componentes-scroll.js +5 -0
  201. package/esm2015/scroll/src/scroll-container/scroll-container.component.js +69 -0
  202. package/esm2015/scroll/src/scroll.module.js +17 -0
  203. package/esm2015/table/index.js +12 -12
  204. package/esm2015/table/main-class-componentes-table.js +6 -0
  205. package/esm2015/table/src/column/column-cell.directive.js +15 -0
  206. package/esm2015/table/src/column/column-footer.directive.js +15 -0
  207. package/esm2015/table/src/column/column-header.directive.js +15 -0
  208. package/esm2015/table/src/column/column.directive.js +28 -0
  209. package/esm2015/table/src/infinite-table/infinite-table.component.js +92 -0
  210. package/esm2015/table/src/paginated-table/paginated-table.component.js +43 -0
  211. package/esm2015/table/{paginator → src/paginator}/paginator.component.js +1 -1
  212. package/esm2015/table/src/paginator-i18n.js +23 -0
  213. package/esm2015/table/src/table/table.component.js +119 -0
  214. package/esm2015/table/src/table.module.js +74 -0
  215. package/esm2015/table/src/td/td.component.js +19 -0
  216. package/esm2015/table/src/th/th.component.js +19 -0
  217. package/esm2015/util/index.js +2 -2
  218. package/esm2015/util/main-class-componentes-util.js +5 -0
  219. package/esm2015/util/src/string.util.js +12 -0
  220. package/fesm2015/main-class-componentes-arquivo.js +338 -0
  221. package/fesm2015/main-class-componentes-arquivo.js.map +1 -0
  222. package/fesm2015/main-class-componentes-core.js +219 -0
  223. package/fesm2015/main-class-componentes-core.js.map +1 -0
  224. package/fesm2015/main-class-componentes-crud.js +162 -0
  225. package/fesm2015/main-class-componentes-crud.js.map +1 -0
  226. package/fesm2015/main-class-componentes-date.js +143 -0
  227. package/fesm2015/main-class-componentes-date.js.map +1 -0
  228. package/fesm2015/main-class-componentes-dialog.js +177 -0
  229. package/fesm2015/main-class-componentes-dialog.js.map +1 -0
  230. package/fesm2015/main-class-componentes-form.js +191 -0
  231. package/fesm2015/main-class-componentes-form.js.map +1 -0
  232. package/fesm2015/main-class-componentes-input.js +1604 -0
  233. package/fesm2015/main-class-componentes-input.js.map +1 -0
  234. package/fesm2015/main-class-componentes-loader.js +206 -0
  235. package/fesm2015/main-class-componentes-loader.js.map +1 -0
  236. package/fesm2015/main-class-componentes-misc.js +688 -0
  237. package/fesm2015/main-class-componentes-misc.js.map +1 -0
  238. package/fesm2015/main-class-componentes-model.js +173 -0
  239. package/fesm2015/main-class-componentes-model.js.map +1 -0
  240. package/fesm2015/main-class-componentes-pipe.js +37 -0
  241. package/fesm2015/main-class-componentes-pipe.js.map +1 -0
  242. package/fesm2015/main-class-componentes-scroll.js +91 -0
  243. package/fesm2015/main-class-componentes-scroll.js.map +1 -0
  244. package/fesm2015/main-class-componentes-table.js +446 -0
  245. package/fesm2015/main-class-componentes-table.js.map +1 -0
  246. package/fesm2015/main-class-componentes-util.js +18 -0
  247. package/fesm2015/main-class-componentes-util.js.map +1 -0
  248. package/fesm2015/main-class-componentes.js +1 -4309
  249. package/fesm2015/main-class-componentes.js.map +1 -1
  250. package/form/index.d.ts +4 -4
  251. package/form/main-class-componentes-form.d.ts +4 -0
  252. package/form/main-class-componentes-form.metadata.json +1 -0
  253. package/form/package.json +11 -0
  254. package/input/index.d.ts +21 -21
  255. package/input/main-class-componentes-input.d.ts +5 -0
  256. package/input/main-class-componentes-input.metadata.json +1 -0
  257. package/input/package.json +11 -0
  258. package/input/{input-fileupload → src/input-fileupload}/input-fileupload.component.d.ts +2 -2
  259. package/loader/index.d.ts +3 -0
  260. package/loader/main-class-componentes-loader.d.ts +4 -0
  261. package/loader/main-class-componentes-loader.metadata.json +1 -0
  262. package/loader/package.json +11 -0
  263. package/{core/loader → loader/src}/loader.component.d.ts +1 -1
  264. package/loader/src/loader.module.d.ts +2 -0
  265. package/main-class-componentes.metadata.json +1 -1
  266. package/misc/index.d.ts +26 -26
  267. package/misc/main-class-componentes-misc.d.ts +4 -0
  268. package/misc/main-class-componentes-misc.metadata.json +1 -0
  269. package/misc/package.json +11 -0
  270. package/misc/{cnpj → src/cnpj}/cnpj-model.directive.d.ts +1 -1
  271. package/misc/{cnpj → src/cnpj}/cnpj.directive.d.ts +1 -1
  272. package/misc/{cpf → src/cpf}/cpf-model.directive.d.ts +1 -1
  273. package/misc/{cpf → src/cpf}/cpf.directive.d.ts +1 -1
  274. package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj-model.directive.d.ts +1 -1
  275. package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.directive.d.ts +1 -1
  276. package/misc/{monetario → src/monetario}/monetario-model.directive.d.ts +2 -2
  277. package/misc/{porcentagem → src/porcentagem}/porcentagem-model.directive.d.ts +2 -2
  278. package/misc/{telefone → src/telefone}/telefone-model.directive.d.ts +1 -1
  279. package/model/index.d.ts +2 -0
  280. package/model/main-class-componentes-model.d.ts +4 -0
  281. package/model/main-class-componentes-model.metadata.json +1 -0
  282. package/model/package.json +11 -0
  283. package/model/src/model.module.d.ts +2 -0
  284. package/package.json +1 -1
  285. package/pipe/index.d.ts +2 -0
  286. package/pipe/main-class-componentes-pipe.d.ts +4 -0
  287. package/pipe/main-class-componentes-pipe.metadata.json +1 -0
  288. package/pipe/package.json +11 -0
  289. package/pipe/src/pipe.module.d.ts +2 -0
  290. package/public-api.d.ts +2 -10
  291. package/scroll/index.d.ts +2 -2
  292. package/scroll/main-class-componentes-scroll.d.ts +4 -0
  293. package/scroll/main-class-componentes-scroll.metadata.json +1 -0
  294. package/scroll/package.json +11 -0
  295. package/table/index.d.ts +11 -11
  296. package/table/main-class-componentes-table.d.ts +5 -0
  297. package/table/main-class-componentes-table.metadata.json +1 -0
  298. package/table/package.json +11 -0
  299. package/table/{infinite-table → src/infinite-table}/infinite-table.component.d.ts +2 -1
  300. package/table/{paginated-table → src/paginated-table}/paginated-table.component.d.ts +2 -2
  301. package/table/{table → src/table}/table.component.d.ts +1 -1
  302. package/util/index.d.ts +1 -1
  303. package/util/main-class-componentes-util.d.ts +4 -0
  304. package/util/main-class-componentes-util.metadata.json +1 -0
  305. package/util/package.json +11 -0
  306. package/core/componentes.module.d.ts +0 -4
  307. package/crud/crud.module.d.ts +0 -2
  308. package/esm2015/arquivo/arquivo.module.js +0 -29
  309. package/esm2015/arquivo/download-arquivo.directive.js +0 -44
  310. package/esm2015/arquivo/preview-arquivo/dialog-preview-arquivo/dialog-preview-arquivo.component.js +0 -56
  311. package/esm2015/arquivo/preview-arquivo/preview-arquivo.component.js +0 -136
  312. package/esm2015/core/arquivo/arquivo-manager.service.js +0 -3
  313. package/esm2015/core/componentes.module.js +0 -65
  314. package/esm2015/core/criptografia/criptografia.service.js +0 -13
  315. package/esm2015/core/dialog/dialog-confirmacao/dialog-confirmacao.component.js +0 -40
  316. package/esm2015/core/dialog/dialog-iframe/dialog-iframe.component.js +0 -59
  317. package/esm2015/core/dialog/dialog.service.js +0 -56
  318. package/esm2015/core/form/model/masked-model.directive.js +0 -149
  319. package/esm2015/core/form/validator/valida-modulo11.service.js +0 -92
  320. package/esm2015/core/imagem/imagem.directive.js +0 -80
  321. package/esm2015/core/loader/loader.component.js +0 -112
  322. package/esm2015/core/loader/loader.service.js +0 -70
  323. package/esm2015/core/mensageria/mensageria.service.js +0 -49
  324. package/esm2015/core/mobile/mobile.service.js +0 -46
  325. package/esm2015/core/pipe/nome-resumido.pipe.js +0 -16
  326. package/esm2015/crud/abstract-consulta-component.js +0 -60
  327. package/esm2015/crud/abstract-consulta-paginada-component.js +0 -48
  328. package/esm2015/crud/abstract-edicao-component.js +0 -29
  329. package/esm2015/crud/abstract-edicao-modal-component.js +0 -24
  330. package/esm2015/crud/crud.module.js +0 -14
  331. package/esm2015/date/date.module.js +0 -19
  332. package/esm2015/date/validator/data-validator.directive.js +0 -96
  333. package/esm2015/date/validator/futuro.directive.js +0 -26
  334. package/esm2015/form/form.component.js +0 -103
  335. package/esm2015/form/form.module.js +0 -25
  336. package/esm2015/form/mensagens-erro/mensagens-erro.component.js +0 -31
  337. package/esm2015/form/single-click.directive.js +0 -35
  338. package/esm2015/input/abstract-mat-form-field-control.js +0 -110
  339. package/esm2015/input/input-datetime/input-datetime.component.js +0 -114
  340. package/esm2015/input/input-fileupload/input-fileupload.component.js +0 -324
  341. package/esm2015/input/input-fileupload/input-fileupload.directive.js +0 -34
  342. package/esm2015/input/input-fileupload/input-fileupload.module.js +0 -34
  343. package/esm2015/input/input-telefone-internacional/input-telefone-internacional-validator.directive.js +0 -22
  344. package/esm2015/input/input-telefone-internacional/input-telefone-internacional.component.js +0 -66
  345. package/esm2015/input/input-telefone-internacional/input-telefone-internacional.module.js +0 -23
  346. package/esm2015/input/option-checkbox/all-option-checkbox.component.js +0 -36
  347. package/esm2015/input/option-checkbox/node-pool.js +0 -93
  348. package/esm2015/input/option-checkbox/option-checkbox-group.component.js +0 -71
  349. package/esm2015/input/option-checkbox/option-checkbox.component.js +0 -59
  350. package/esm2015/input/option-checkbox/option-checkbox.module.js +0 -23
  351. package/esm2015/input/option-checkbox/option-checkbox.service.js +0 -52
  352. package/esm2015/input/option-checkbox/option-node.js +0 -24
  353. package/esm2015/input/select-chips/select-chips.component.js +0 -177
  354. package/esm2015/input/select-chips/select-chips.module.js +0 -25
  355. package/esm2015/input/select-item/select-item.component.js +0 -20
  356. package/esm2015/input/select-item/select-item.module.js +0 -15
  357. package/esm2015/input/select-many-checkbox/select-many-checkbox.component.js +0 -150
  358. package/esm2015/input/select-many-checkbox/select-many-checkbox.module.js +0 -21
  359. package/esm2015/input/select-radio/select-radio.component.js +0 -124
  360. package/esm2015/input/select-radio/select-radio.module.js +0 -21
  361. package/esm2015/misc/cnpj/cnpj-model.directive.js +0 -13
  362. package/esm2015/misc/cnpj/cnpj.directive.js +0 -31
  363. package/esm2015/misc/cnpj/cnpj.module.js +0 -19
  364. package/esm2015/misc/cnpj/cnpjs.pipe.js +0 -15
  365. package/esm2015/misc/cpf/cpf-model.directive.js +0 -13
  366. package/esm2015/misc/cpf/cpf.directive.js +0 -31
  367. package/esm2015/misc/cpf/cpf.module.js +0 -19
  368. package/esm2015/misc/cpf/cpf.pipe.js +0 -15
  369. package/esm2015/misc/cpf-cnpj/cpf-cnpj-model.directive.js +0 -25
  370. package/esm2015/misc/cpf-cnpj/cpf-cnpj.directive.js +0 -32
  371. package/esm2015/misc/cpf-cnpj/cpf-cnpj.module.js +0 -19
  372. package/esm2015/misc/cpf-cnpj/cpf-cnpj.pipe.js +0 -18
  373. package/esm2015/misc/info/info.module.js +0 -17
  374. package/esm2015/misc/monetario/monetario-mask.js +0 -34
  375. package/esm2015/misc/monetario/monetario-model.directive.js +0 -124
  376. package/esm2015/misc/monetario/monetario.module.js +0 -16
  377. package/esm2015/misc/monetario/monetario.pipe.js +0 -13
  378. package/esm2015/misc/porcentagem/porcentagem-mask.js +0 -34
  379. package/esm2015/misc/porcentagem/porcentagem-model.directive.js +0 -100
  380. package/esm2015/misc/porcentagem/porcentagem.module.js +0 -16
  381. package/esm2015/misc/porcentagem/porcentagem.pipe.js +0 -13
  382. package/esm2015/misc/telefone/telefone-model.directive.js +0 -25
  383. package/esm2015/misc/telefone/telefone.module.js +0 -18
  384. package/esm2015/misc/telefone/telefone.pipe.js +0 -33
  385. package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.directive.js +0 -23
  386. package/esm2015/misc/unsafe-inner-html/unsafe-inner-html.module.js +0 -15
  387. package/esm2015/scroll/scroll-container/scroll-container.component.js +0 -69
  388. package/esm2015/scroll/scroll.module.js +0 -17
  389. package/esm2015/table/column/column-cell.directive.js +0 -15
  390. package/esm2015/table/column/column-footer.directive.js +0 -15
  391. package/esm2015/table/column/column-header.directive.js +0 -15
  392. package/esm2015/table/column/column.directive.js +0 -28
  393. package/esm2015/table/infinite-table/infinite-table.component.js +0 -91
  394. package/esm2015/table/paginated-table/paginated-table.component.js +0 -43
  395. package/esm2015/table/paginator-i18n.js +0 -23
  396. package/esm2015/table/table/table.component.js +0 -119
  397. package/esm2015/table/table.module.js +0 -74
  398. package/esm2015/table/td/td.component.js +0 -19
  399. package/esm2015/table/th/th.component.js +0 -19
  400. package/esm2015/util/string.util.js +0 -12
  401. /package/{core/arquivo → arquivo/src}/arquivo-manager.service.d.ts +0 -0
  402. /package/arquivo/{arquivo.module.d.ts → src/arquivo.module.d.ts} +0 -0
  403. /package/core/{criptografia → src/criptografia}/criptografia.service.d.ts +0 -0
  404. /package/core/{mobile → src/mobile}/mobile.service.d.ts +0 -0
  405. /package/core/{form → src}/validator/valida-modulo11.service.d.ts +0 -0
  406. /package/date/{date.module.d.ts → src/date.module.d.ts} +0 -0
  407. /package/date/{validator → src/validator}/data-validator.directive.d.ts +0 -0
  408. /package/date/{validator → src/validator}/futuro.directive.d.ts +0 -0
  409. /package/{core/dialog → dialog/src}/dialog-confirmacao/dialog-confirmacao.component.d.ts +0 -0
  410. /package/{core/dialog → dialog/src}/dialog-iframe/dialog-iframe.component.d.ts +0 -0
  411. /package/{core/dialog → dialog/src}/dialog.service.d.ts +0 -0
  412. /package/form/{form.component.d.ts → src/form.component.d.ts} +0 -0
  413. /package/form/{form.module.d.ts → src/form.module.d.ts} +0 -0
  414. /package/form/{mensagens-erro → src/mensagens-erro}/mensagens-erro.component.d.ts +0 -0
  415. /package/form/{single-click.directive.d.ts → src/single-click.directive.d.ts} +0 -0
  416. /package/input/{abstract-mat-form-field-control.d.ts → src/abstract-mat-form-field-control.d.ts} +0 -0
  417. /package/input/{input-datetime → src/input-datetime}/input-datetime.component.d.ts +0 -0
  418. /package/input/{input-datetime → src/input-datetime}/input-datetime.module.d.ts +0 -0
  419. /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.directive.d.ts +0 -0
  420. /package/input/{input-fileupload → src/input-fileupload}/input-fileupload.module.d.ts +0 -0
  421. /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional-validator.directive.d.ts +0 -0
  422. /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.component.d.ts +0 -0
  423. /package/input/{input-telefone-internacional → src/input-telefone-internacional}/input-telefone-internacional.module.d.ts +0 -0
  424. /package/input/{option-checkbox → src/option-checkbox}/all-option-checkbox.component.d.ts +0 -0
  425. /package/input/{option-checkbox → src/option-checkbox}/node-pool.d.ts +0 -0
  426. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox-group.component.d.ts +0 -0
  427. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.component.d.ts +0 -0
  428. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.module.d.ts +0 -0
  429. /package/input/{option-checkbox → src/option-checkbox}/option-checkbox.service.d.ts +0 -0
  430. /package/input/{option-checkbox → src/option-checkbox}/option-node.d.ts +0 -0
  431. /package/input/{select-chips → src/select-chips}/select-chips.component.d.ts +0 -0
  432. /package/input/{select-chips → src/select-chips}/select-chips.module.d.ts +0 -0
  433. /package/input/{select-item → src/select-item}/select-item.component.d.ts +0 -0
  434. /package/input/{select-item → src/select-item}/select-item.module.d.ts +0 -0
  435. /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.component.d.ts +0 -0
  436. /package/input/{select-many-checkbox → src/select-many-checkbox}/select-many-checkbox.module.d.ts +0 -0
  437. /package/input/{select-radio → src/select-radio}/select-radio.component.d.ts +0 -0
  438. /package/input/{select-radio → src/select-radio}/select-radio.module.d.ts +0 -0
  439. /package/{core/loader → loader/src}/loader.service.d.ts +0 -0
  440. /package/misc/{cnpj → src/cnpj}/cnpj.module.d.ts +0 -0
  441. /package/misc/{cnpj → src/cnpj}/cnpjs.pipe.d.ts +0 -0
  442. /package/misc/{cpf → src/cpf}/cpf.module.d.ts +0 -0
  443. /package/misc/{cpf → src/cpf}/cpf.pipe.d.ts +0 -0
  444. /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.module.d.ts +0 -0
  445. /package/misc/{cpf-cnpj → src/cpf-cnpj}/cpf-cnpj.pipe.d.ts +0 -0
  446. /package/misc/{info → src/info}/info.component.d.ts +0 -0
  447. /package/misc/{info → src/info}/info.module.d.ts +0 -0
  448. /package/misc/{monetario → src/monetario}/monetario-mask.d.ts +0 -0
  449. /package/misc/{monetario → src/monetario}/monetario.module.d.ts +0 -0
  450. /package/misc/{monetario → src/monetario}/monetario.pipe.d.ts +0 -0
  451. /package/misc/{porcentagem → src/porcentagem}/porcentagem-mask.d.ts +0 -0
  452. /package/misc/{porcentagem → src/porcentagem}/porcentagem.module.d.ts +0 -0
  453. /package/misc/{porcentagem → src/porcentagem}/porcentagem.pipe.d.ts +0 -0
  454. /package/misc/{telefone → src/telefone}/telefone.module.d.ts +0 -0
  455. /package/misc/{telefone → src/telefone}/telefone.pipe.d.ts +0 -0
  456. /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.directive.d.ts +0 -0
  457. /package/misc/{unsafe-inner-html → src/unsafe-inner-html}/unsafe-inner-html.module.d.ts +0 -0
  458. /package/{core/form/model → model/src}/masked-model.directive.d.ts +0 -0
  459. /package/{core/pipe → pipe/src}/nome-resumido.pipe.d.ts +0 -0
  460. /package/scroll/{scroll-container → src/scroll-container}/scroll-container.component.d.ts +0 -0
  461. /package/scroll/{scroll.module.d.ts → src/scroll.module.d.ts} +0 -0
  462. /package/table/{column → src/column}/column-cell.directive.d.ts +0 -0
  463. /package/table/{column → src/column}/column-footer.directive.d.ts +0 -0
  464. /package/table/{column → src/column}/column-header.directive.d.ts +0 -0
  465. /package/table/{column → src/column}/column.directive.d.ts +0 -0
  466. /package/table/{paginator → src/paginator}/paginator.component.d.ts +0 -0
  467. /package/table/{paginator-i18n.d.ts → src/paginator-i18n.d.ts} +0 -0
  468. /package/table/{table.module.d.ts → src/table.module.d.ts} +0 -0
  469. /package/table/{td → src/td}/td.component.d.ts +0 -0
  470. /package/table/{th → src/th}/th.component.d.ts +0 -0
  471. /package/util/{string.util.d.ts → src/string.util.d.ts} +0 -0
@@ -0,0 +1,687 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/material/dialog'), require('rxjs'), require('@angular/material/icon'), require('ng2-pdf-viewer'), require('@angular/material/progress-spinner'), require('@angular/material/button'), require('@jmcrommen/ngx-image-viewer')) :
3
+ typeof define === 'function' && define.amd ? define('@main-class/componentes/arquivo', ['exports', '@angular/core', '@angular/common', '@angular/material/dialog', 'rxjs', '@angular/material/icon', 'ng2-pdf-viewer', '@angular/material/progress-spinner', '@angular/material/button', '@jmcrommen/ngx-image-viewer'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['main-class'] = global['main-class'] || {}, global['main-class'].componentes = global['main-class'].componentes || {}, global['main-class'].componentes.arquivo = {}), global.ng.core, global.ng.common, global.ng.material.dialog, global.rxjs, global.ng.material.icon, global.ng2PdfViewer, global.ng.material.progressSpinner, global.ng.material.button, global.ngxImageViewer));
5
+ }(this, (function (exports, core, common, dialog, rxjs, icon, ng2PdfViewer, progressSpinner, button, ngxImageViewer) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation. All rights reserved.
9
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
+ this file except in compliance with the License. You may obtain a copy of the
11
+ License at http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
+ MERCHANTABLITY OR NON-INFRINGEMENT.
17
+
18
+ See the Apache Version 2.0 License for specific language governing permissions
19
+ and limitations under the License.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+ var extendStatics = function (d, b) {
23
+ extendStatics = Object.setPrototypeOf ||
24
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
+ function (d, b) { for (var p in b)
26
+ if (b.hasOwnProperty(p))
27
+ d[p] = b[p]; };
28
+ return extendStatics(d, b);
29
+ };
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+ var __assign = function () {
36
+ __assign = Object.assign || function __assign(t) {
37
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38
+ s = arguments[i];
39
+ for (var p in s)
40
+ if (Object.prototype.hasOwnProperty.call(s, p))
41
+ t[p] = s[p];
42
+ }
43
+ return t;
44
+ };
45
+ return __assign.apply(this, arguments);
46
+ };
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s)
50
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
58
+ }
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
62
+ r = Reflect.decorate(decorators, target, key, desc);
63
+ else
64
+ for (var i = decorators.length - 1; i >= 0; i--)
65
+ if (d = decorators[i])
66
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
68
+ }
69
+ function __param(paramIndex, decorator) {
70
+ return function (target, key) { decorator(target, key, paramIndex); };
71
+ }
72
+ function __metadata(metadataKey, metadataValue) {
73
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
+ return Reflect.metadata(metadataKey, metadataValue);
75
+ }
76
+ function __awaiter(thisArg, _arguments, P, generator) {
77
+ return new (P || (P = Promise))(function (resolve, reject) {
78
+ function fulfilled(value) { try {
79
+ step(generator.next(value));
80
+ }
81
+ catch (e) {
82
+ reject(e);
83
+ } }
84
+ function rejected(value) { try {
85
+ step(generator["throw"](value));
86
+ }
87
+ catch (e) {
88
+ reject(e);
89
+ } }
90
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
91
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
92
+ });
93
+ }
94
+ function __generator(thisArg, body) {
95
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
96
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
97
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
98
+ function verb(n) { return function (v) { return step([n, v]); }; }
99
+ function step(op) {
100
+ if (f)
101
+ throw new TypeError("Generator is already executing.");
102
+ while (_)
103
+ try {
104
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
105
+ return t;
106
+ if (y = 0, t)
107
+ op = [op[0] & 2, t.value];
108
+ switch (op[0]) {
109
+ case 0:
110
+ case 1:
111
+ t = op;
112
+ break;
113
+ case 4:
114
+ _.label++;
115
+ return { value: op[1], done: false };
116
+ case 5:
117
+ _.label++;
118
+ y = op[1];
119
+ op = [0];
120
+ continue;
121
+ case 7:
122
+ op = _.ops.pop();
123
+ _.trys.pop();
124
+ continue;
125
+ default:
126
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
127
+ _ = 0;
128
+ continue;
129
+ }
130
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
131
+ _.label = op[1];
132
+ break;
133
+ }
134
+ if (op[0] === 6 && _.label < t[1]) {
135
+ _.label = t[1];
136
+ t = op;
137
+ break;
138
+ }
139
+ if (t && _.label < t[2]) {
140
+ _.label = t[2];
141
+ _.ops.push(op);
142
+ break;
143
+ }
144
+ if (t[2])
145
+ _.ops.pop();
146
+ _.trys.pop();
147
+ continue;
148
+ }
149
+ op = body.call(thisArg, _);
150
+ }
151
+ catch (e) {
152
+ op = [6, e];
153
+ y = 0;
154
+ }
155
+ finally {
156
+ f = t = 0;
157
+ }
158
+ if (op[0] & 5)
159
+ throw op[1];
160
+ return { value: op[0] ? op[1] : void 0, done: true };
161
+ }
162
+ }
163
+ function __exportStar(m, exports) {
164
+ for (var p in m)
165
+ if (!exports.hasOwnProperty(p))
166
+ exports[p] = m[p];
167
+ }
168
+ function __values(o) {
169
+ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
170
+ if (m)
171
+ return m.call(o);
172
+ return {
173
+ next: function () {
174
+ if (o && i >= o.length)
175
+ o = void 0;
176
+ return { value: o && o[i++], done: !o };
177
+ }
178
+ };
179
+ }
180
+ function __read(o, n) {
181
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
182
+ if (!m)
183
+ return o;
184
+ var i = m.call(o), r, ar = [], e;
185
+ try {
186
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
187
+ ar.push(r.value);
188
+ }
189
+ catch (error) {
190
+ e = { error: error };
191
+ }
192
+ finally {
193
+ try {
194
+ if (r && !r.done && (m = i["return"]))
195
+ m.call(i);
196
+ }
197
+ finally {
198
+ if (e)
199
+ throw e.error;
200
+ }
201
+ }
202
+ return ar;
203
+ }
204
+ function __spread() {
205
+ for (var ar = [], i = 0; i < arguments.length; i++)
206
+ ar = ar.concat(__read(arguments[i]));
207
+ return ar;
208
+ }
209
+ function __spreadArrays() {
210
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
211
+ s += arguments[i].length;
212
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
213
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
214
+ r[k] = a[j];
215
+ return r;
216
+ }
217
+ ;
218
+ function __await(v) {
219
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
220
+ }
221
+ function __asyncGenerator(thisArg, _arguments, generator) {
222
+ if (!Symbol.asyncIterator)
223
+ throw new TypeError("Symbol.asyncIterator is not defined.");
224
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
225
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
226
+ function verb(n) { if (g[n])
227
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
228
+ function resume(n, v) { try {
229
+ step(g[n](v));
230
+ }
231
+ catch (e) {
232
+ settle(q[0][3], e);
233
+ } }
234
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
235
+ function fulfill(value) { resume("next", value); }
236
+ function reject(value) { resume("throw", value); }
237
+ function settle(f, v) { if (f(v), q.shift(), q.length)
238
+ resume(q[0][0], q[0][1]); }
239
+ }
240
+ function __asyncDelegator(o) {
241
+ var i, p;
242
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
243
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
244
+ }
245
+ function __asyncValues(o) {
246
+ if (!Symbol.asyncIterator)
247
+ throw new TypeError("Symbol.asyncIterator is not defined.");
248
+ var m = o[Symbol.asyncIterator], i;
249
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
250
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
251
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
252
+ }
253
+ function __makeTemplateObject(cooked, raw) {
254
+ if (Object.defineProperty) {
255
+ Object.defineProperty(cooked, "raw", { value: raw });
256
+ }
257
+ else {
258
+ cooked.raw = raw;
259
+ }
260
+ return cooked;
261
+ }
262
+ ;
263
+ function __importStar(mod) {
264
+ if (mod && mod.__esModule)
265
+ return mod;
266
+ var result = {};
267
+ if (mod != null)
268
+ for (var k in mod)
269
+ if (Object.hasOwnProperty.call(mod, k))
270
+ result[k] = mod[k];
271
+ result.default = mod;
272
+ return result;
273
+ }
274
+ function __importDefault(mod) {
275
+ return (mod && mod.__esModule) ? mod : { default: mod };
276
+ }
277
+
278
+ var ARQUIVO_MANAGER_SERVICE = new core.InjectionToken('ARQUIVO_MANAGER_SERVICE');
279
+
280
+ var DialogPreviewArquivoComponent = /** @class */ (function () {
281
+ function DialogPreviewArquivoComponent(dadosPreview, arquivoService) {
282
+ this.dadosPreview = dadosPreview;
283
+ this.arquivoService = arquivoService;
284
+ this.loadingFile = true;
285
+ }
286
+ DialogPreviewArquivoComponent.prototype.ngOnInit = function () {
287
+ if (this.type === 'image') {
288
+ this.previewCarregado();
289
+ }
290
+ };
291
+ Object.defineProperty(DialogPreviewArquivoComponent.prototype, "src", {
292
+ get: function () {
293
+ return this.dadosPreview.src;
294
+ },
295
+ enumerable: false,
296
+ configurable: true
297
+ });
298
+ Object.defineProperty(DialogPreviewArquivoComponent.prototype, "type", {
299
+ get: function () {
300
+ return this.dadosPreview.type;
301
+ },
302
+ enumerable: false,
303
+ configurable: true
304
+ });
305
+ Object.defineProperty(DialogPreviewArquivoComponent.prototype, "group", {
306
+ get: function () {
307
+ return this.dadosPreview.group;
308
+ },
309
+ enumerable: false,
310
+ configurable: true
311
+ });
312
+ DialogPreviewArquivoComponent.prototype.handleEvent = function (evento) {
313
+ if (evento.name === 'download') {
314
+ this.download();
315
+ }
316
+ };
317
+ DialogPreviewArquivoComponent.prototype.previewCarregado = function (e) {
318
+ this.loadingFile = false;
319
+ };
320
+ DialogPreviewArquivoComponent.prototype.download = function () {
321
+ if (typeof this.src === 'string') {
322
+ var link = document.createElement('a');
323
+ link.href = this.src;
324
+ link.target = '_blank';
325
+ document.body.appendChild(link);
326
+ link.click();
327
+ document.body.removeChild(link);
328
+ }
329
+ else {
330
+ }
331
+ };
332
+ return DialogPreviewArquivoComponent;
333
+ }());
334
+ DialogPreviewArquivoComponent.decorators = [
335
+ { type: core.Component, args: [{
336
+ selector: 'mcl-dialog-preview-arquivo',
337
+ template: "<mat-dialog-content>\r\n <div class=\"spinner-wrapper\" *ngIf=\"loadingFile\">\r\n <mat-spinner style=\"margin: 0 auto\" [diameter]=\"50\" color=\"warn\"></mat-spinner>\r\n </div>\r\n\r\n <pdf-viewer (page-rendered)=\"previewCarregado($event)\" *ngIf=\"type === 'pdf'\"\r\n [src]=\"src\" [original-size]=\"false\"></pdf-viewer>\r\n\r\n <ngx-image-viewer [src]=\"group\" [index]=\"group.indexOf(src)\" *ngIf=\"type === 'image' && group\"\r\n [config]=\"{customBtns:[{name: 'download', icon: 'fa fa-download'}]}\"\r\n (customEvent)=\"handleEvent($event)\"></ngx-image-viewer>\r\n\r\n <ngx-image-viewer [src]=\"[src]\" [index]=\"0\" *ngIf=\"type === 'image' && !group\"\r\n [config]=\"{customBtns:[{name: 'download', icon: 'fa fa-download'}]}\"\r\n (customEvent)=\"handleEvent($event)\"></ngx-image-viewer>\r\n</mat-dialog-content>\r\n\r\n<div mat-dialog-actions>\r\n <button mat-button mat-dialog-close>\r\n <mat-icon>close</mat-icon>\r\n Fechar\r\n </button>\r\n\r\n <div class=\"spacer\"></div>\r\n\r\n <button mat-stroked-button (click)=\"download()\" *ngIf=\"!loadingFile\">\r\n <mat-icon>cloud_download</mat-icon>\r\n Realizar o Download\r\n </button>\r\n</div>\r\n",
338
+ styles: ["pdf-viewer{width:100%;display:block}.spinner-wrapper{margin:30px auto;width:800px;height:400px}.dialog-title-text{margin-right:10px;line-height:38px}[mat-dialog-title]{display:flex;padding:8px 24px 7px}[mat-dialog-title] .spacer{flex:1 1 auto}[mat-dialog-actions]{text-align:right}[mat-dialog-actions] button{margin-left:auto}[mat-dialog-actions] button mat-icon{vertical-align:middle;margin-right:10px}"]
339
+ },] }
340
+ ];
341
+ DialogPreviewArquivoComponent.ctorParameters = function () { return [
342
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
343
+ { type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
344
+ ]; };
345
+
346
+ var PreviewArquivoComponent = /** @class */ (function () {
347
+ function PreviewArquivoComponent(arquivoManagerService, dialog) {
348
+ this.arquivoManagerService = arquivoManagerService;
349
+ this.dialog = dialog;
350
+ this.showLoading = false;
351
+ this.height = '200px';
352
+ this.width = '200px';
353
+ }
354
+ PreviewArquivoComponent.prototype.ngOnInit = function () {
355
+ };
356
+ Object.defineProperty(PreviewArquivoComponent.prototype, "arquivo", {
357
+ get: function () {
358
+ return this.$url;
359
+ },
360
+ set: function (arquivo) {
361
+ var _this = this;
362
+ if (this.$arquivo !== arquivo) {
363
+ this.$arquivo = arquivo;
364
+ this.parseArquivo(arquivo)
365
+ .subscribe(function (arq) {
366
+ _this.src = arq.src;
367
+ _this.filename = arq.filename;
368
+ _this.$url = arq.url;
369
+ _this.type = arq.type;
370
+ });
371
+ }
372
+ },
373
+ enumerable: false,
374
+ configurable: true
375
+ });
376
+ PreviewArquivoComponent.prototype.parseArquivo = function (arquivo) {
377
+ var _this = this;
378
+ return new rxjs.Observable(function (observer) {
379
+ if (arquivo.loading) { // uploading
380
+ var type_1 = _this.parseType(arquivo.file.name);
381
+ observer.next({
382
+ type: type_1,
383
+ filename: arquivo.file.name,
384
+ });
385
+ _this.carregaArrayBuffFile(arquivo.file)
386
+ .then(function (src) {
387
+ observer.next({
388
+ src: src,
389
+ type: type_1,
390
+ filename: arquivo.file.name,
391
+ });
392
+ observer.complete();
393
+ })
394
+ .catch(function (err) { return observer.error(err); });
395
+ }
396
+ else if (typeof arquivo === 'string') { // puploading
397
+ var type = _this.parseType(arquivo.split('?')[0]);
398
+ observer.next({
399
+ type: type,
400
+ url: arquivo,
401
+ src: arquivo,
402
+ });
403
+ observer.complete();
404
+ }
405
+ else { // attachment
406
+ var type_2 = _this.parseType(arquivo.nome);
407
+ _this.arquivoManagerService.downloadURL(arquivo).subscribe(function (url) {
408
+ observer.next({
409
+ type: type_2,
410
+ url: url,
411
+ src: url,
412
+ });
413
+ observer.complete();
414
+ }, function (err) { return observer.error(err); });
415
+ }
416
+ });
417
+ };
418
+ PreviewArquivoComponent.prototype.carregaArrayBuffFile = function (file) {
419
+ return new Promise((function (resolve, reject) {
420
+ if (typeof (FileReader) !== 'undefined') {
421
+ var reader = new FileReader();
422
+ reader.onload = function (e) { return resolve(e.target.result); };
423
+ reader.onerror = function (e) { return reject(e); };
424
+ reader.readAsArrayBuffer(file);
425
+ }
426
+ else {
427
+ reject('FileReader not defined');
428
+ }
429
+ }));
430
+ };
431
+ PreviewArquivoComponent.prototype.parseType = function (filename) {
432
+ var format = filename.substring(filename.lastIndexOf('.') + 1).toLowerCase();
433
+ switch (format) {
434
+ case 'jpeg':
435
+ case 'jpg':
436
+ case 'png':
437
+ case 'gif':
438
+ return 'image';
439
+ case 'pdf':
440
+ return 'pdf';
441
+ }
442
+ return 'other';
443
+ };
444
+ PreviewArquivoComponent.prototype.abrePreview = function () {
445
+ return __awaiter(this, void 0, void 0, function () {
446
+ var group, src;
447
+ var _this = this;
448
+ return __generator(this, function (_a) {
449
+ switch (_a.label) {
450
+ case 0:
451
+ src = this.src;
452
+ if (!this.group) return [3 /*break*/, 2];
453
+ return [4 /*yield*/, Promise.all(this.group.map(function (arq) { return _this.parseArquivo(arq).toPromise(); }))];
454
+ case 1:
455
+ group = (_a.sent());
456
+ src = group[this.group.indexOf(this.$arquivo)].src;
457
+ group = group.filter(function (g) { return !!g.src && g.type === _this.type; }).map(function (g) { return g.src; });
458
+ _a.label = 2;
459
+ case 2:
460
+ this.dialog.open(DialogPreviewArquivoComponent, {
461
+ data: {
462
+ src: src,
463
+ group: group,
464
+ type: this.type,
465
+ },
466
+ });
467
+ return [2 /*return*/];
468
+ }
469
+ });
470
+ });
471
+ };
472
+ return PreviewArquivoComponent;
473
+ }());
474
+ PreviewArquivoComponent.decorators = [
475
+ { type: core.Component, args: [{
476
+ selector: 'mcl-preview-arquivo',
477
+ template: "<img *ngIf=\"src && type==='image'\" [src]=\"src\"\r\n [ngStyle]=\"{width:width,height:height}\"\r\n (click)=\"abrePreview()\"/>\r\n\r\n<div class=\"other\" *ngIf=\"!src || type === 'other'\"\r\n [ngStyle]=\"{width:width,height:height}\"\r\n [mclDownloadArquivo]=\"arquivo\">\r\n <mat-icon>insert_drive_file</mat-icon>\r\n <small>{{ filename }}</small>\r\n</div>\r\n\r\n<pdf-viewer [src]=\"src\" *ngIf=\"src && type === 'pdf'\"\r\n [ngStyle]=\"{width:width,height:height}\"\r\n [original-size]=\"false\"\r\n [page]=\"1\"\r\n [render-text]=\"false\"\r\n (click)=\"abrePreview()\"\r\n></pdf-viewer>\r\n",
478
+ styles: [".other,img,pdf-viewer{overflow:hidden;display:block;border-radius:5px;background:#efefef;border:1px solid #a9a9a9}.other.other,img.other,pdf-viewer.other{display:flex;flex-direction:column;justify-items:center}.other.other mat-icon,img.other mat-icon,pdf-viewer.other mat-icon{margin:auto;text-align:center;font-size:75px;height:75px;width:75px;line-height:75px}.other:hover,img:hover,pdf-viewer:hover{cursor:pointer}"]
479
+ },] }
480
+ ];
481
+ PreviewArquivoComponent.ctorParameters = function () { return [
482
+ { type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] },
483
+ { type: dialog.MatDialog }
484
+ ]; };
485
+ PreviewArquivoComponent.propDecorators = {
486
+ showLoading: [{ type: core.Input }],
487
+ height: [{ type: core.Input }],
488
+ width: [{ type: core.Input }],
489
+ group: [{ type: core.Input }],
490
+ arquivo: [{ type: core.Input }]
491
+ };
492
+
493
+ var DownloadArquivoDirective = /** @class */ (function () {
494
+ function DownloadArquivoDirective(arquivoService) {
495
+ this.arquivoService = arquivoService;
496
+ this.target = '_blank';
497
+ }
498
+ DownloadArquivoDirective.prototype.getUrlArquivo = function () {
499
+ return __awaiter(this, void 0, void 0, function () {
500
+ return __generator(this, function (_a) {
501
+ switch (_a.label) {
502
+ case 0:
503
+ if (typeof this.attachment === 'string') {
504
+ return [2 /*return*/, this.attachment];
505
+ }
506
+ return [4 /*yield*/, this.arquivoService.downloadURL(this.attachment).toPromise()];
507
+ case 1: return [2 /*return*/, _a.sent()];
508
+ }
509
+ });
510
+ });
511
+ };
512
+ DownloadArquivoDirective.prototype.download = function () {
513
+ return __awaiter(this, void 0, void 0, function () {
514
+ var link, _a;
515
+ return __generator(this, function (_b) {
516
+ switch (_b.label) {
517
+ case 0:
518
+ if (!this.attachment) {
519
+ return [2 /*return*/];
520
+ }
521
+ link = document.createElement('a');
522
+ _a = link;
523
+ return [4 /*yield*/, this.getUrlArquivo()];
524
+ case 1:
525
+ _a.href = _b.sent();
526
+ link.target = this.target;
527
+ document.body.appendChild(link);
528
+ link.click();
529
+ document.body.removeChild(link);
530
+ return [2 /*return*/];
531
+ }
532
+ });
533
+ });
534
+ };
535
+ return DownloadArquivoDirective;
536
+ }());
537
+ DownloadArquivoDirective.decorators = [
538
+ { type: core.Directive, args: [{
539
+ selector: '[mclDownloadArquivo]'
540
+ },] }
541
+ ];
542
+ DownloadArquivoDirective.ctorParameters = function () { return [
543
+ { type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
544
+ ]; };
545
+ DownloadArquivoDirective.propDecorators = {
546
+ attachment: [{ type: core.Input, args: ['mclDownloadArquivo',] }],
547
+ target: [{ type: core.Input }],
548
+ download: [{ type: core.HostListener, args: ['click',] }]
549
+ };
550
+
551
+ var MCL_IMAGE_PADRAO = new core.InjectionToken('MCL_IMAGE_PADRAO');
552
+ var ImagemDirective = /** @class */ (function () {
553
+ function ImagemDirective(_padrao, element, arquivoManagerService) {
554
+ var _this = this;
555
+ this._padrao = _padrao;
556
+ this.element = element;
557
+ this.arquivoManagerService = arquivoManagerService;
558
+ this.backgroundSetter = function (url) {
559
+ _this.element.nativeElement.style.backgroundImage = "url(" + url + ")";
560
+ };
561
+ this.srcSetter = function (url) {
562
+ _this.element.nativeElement.src = url;
563
+ };
564
+ }
565
+ Object.defineProperty(ImagemDirective.prototype, "imagemSrc", {
566
+ set: function (imagem) {
567
+ this._setter = this.srcSetter;
568
+ if (imagem) {
569
+ if (this._path !== imagem) {
570
+ this._path = imagem;
571
+ this.setPath();
572
+ }
573
+ }
574
+ else {
575
+ this._setter(this._padrao);
576
+ }
577
+ },
578
+ enumerable: false,
579
+ configurable: true
580
+ });
581
+ Object.defineProperty(ImagemDirective.prototype, "imagemBackground", {
582
+ set: function (imagem) {
583
+ this._setter = this.backgroundSetter;
584
+ if (imagem) {
585
+ if (this._path !== imagem) {
586
+ this._path = imagem;
587
+ this.setPath();
588
+ }
589
+ }
590
+ else {
591
+ this._setter(this._padrao);
592
+ }
593
+ },
594
+ enumerable: false,
595
+ configurable: true
596
+ });
597
+ Object.defineProperty(ImagemDirective.prototype, "padrao", {
598
+ set: function (padrao) {
599
+ this._padrao = padrao;
600
+ if (this._setter) {
601
+ this._setter(this.padrao);
602
+ }
603
+ },
604
+ enumerable: false,
605
+ configurable: true
606
+ });
607
+ ImagemDirective.prototype.setPath = function () {
608
+ return __awaiter(this, void 0, void 0, function () {
609
+ var path, url;
610
+ return __generator(this, function (_a) {
611
+ switch (_a.label) {
612
+ case 0:
613
+ path = typeof this._path === 'string' ? this._path : this._path.path;
614
+ if (!path) return [3 /*break*/, 4];
615
+ url = void 0;
616
+ if (!(path.startsWith('http://') || this._path.startsWith('https://'))) return [3 /*break*/, 1];
617
+ url = path;
618
+ return [3 /*break*/, 3];
619
+ case 1: return [4 /*yield*/, this.arquivoManagerService.downloadURL(path).toPromise()];
620
+ case 2:
621
+ url = _a.sent();
622
+ _a.label = 3;
623
+ case 3:
624
+ this._setter(url);
625
+ _a.label = 4;
626
+ case 4: return [2 /*return*/];
627
+ }
628
+ });
629
+ });
630
+ };
631
+ ImagemDirective.prototype.ngOnInit = function () {
632
+ };
633
+ return ImagemDirective;
634
+ }());
635
+ ImagemDirective.decorators = [
636
+ { type: core.Directive, args: [{
637
+ selector: '[mclImagemSrc],[mclImagemBackground]'
638
+ },] }
639
+ ];
640
+ ImagemDirective.ctorParameters = function () { return [
641
+ { type: String, decorators: [{ type: core.Inject, args: [MCL_IMAGE_PADRAO,] }, { type: core.Optional }] },
642
+ { type: core.ElementRef, decorators: [{ type: core.Self }] },
643
+ { type: undefined, decorators: [{ type: core.Inject, args: [ARQUIVO_MANAGER_SERVICE,] }] }
644
+ ]; };
645
+ ImagemDirective.propDecorators = {
646
+ imagemSrc: [{ type: core.Input, args: ['mclImagemSrc',] }],
647
+ imagemBackground: [{ type: core.Input, args: ['mclImagemBackground',] }],
648
+ padrao: [{ type: core.Input }]
649
+ };
650
+
651
+ var ArquivoModule = /** @class */ (function () {
652
+ function ArquivoModule() {
653
+ }
654
+ return ArquivoModule;
655
+ }());
656
+ ArquivoModule.decorators = [
657
+ { type: core.NgModule, args: [{
658
+ declarations: [PreviewArquivoComponent, DownloadArquivoDirective, DialogPreviewArquivoComponent, ImagemDirective],
659
+ exports: [PreviewArquivoComponent, DownloadArquivoDirective],
660
+ imports: [
661
+ common.CommonModule,
662
+ icon.MatIconModule,
663
+ ng2PdfViewer.PdfViewerModule,
664
+ dialog.MatDialogModule,
665
+ progressSpinner.MatProgressSpinnerModule,
666
+ button.MatButtonModule,
667
+ ngxImageViewer.ImageViewerModule
668
+ ]
669
+ },] }
670
+ ];
671
+
672
+ /**
673
+ * Generated bundle index. Do not edit.
674
+ */
675
+
676
+ exports.ARQUIVO_MANAGER_SERVICE = ARQUIVO_MANAGER_SERVICE;
677
+ exports.ArquivoModule = ArquivoModule;
678
+ exports.DialogPreviewArquivoComponent = DialogPreviewArquivoComponent;
679
+ exports.DownloadArquivoDirective = DownloadArquivoDirective;
680
+ exports.ImagemDirective = ImagemDirective;
681
+ exports.MCL_IMAGE_PADRAO = MCL_IMAGE_PADRAO;
682
+ exports.PreviewArquivoComponent = PreviewArquivoComponent;
683
+
684
+ Object.defineProperty(exports, '__esModule', { value: true });
685
+
686
+ })));
687
+ //# sourceMappingURL=main-class-componentes-arquivo.umd.js.map