mapa-library-ui 0.77.4 → 0.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1070) hide show
  1. package/esm2020/lib/core/components/form-errors/form-errors.component.mjs +26 -0
  2. package/esm2020/lib/core/directives/custom-paginator-legacy.directive.mjs +39 -62
  3. package/esm2020/lib/core/directives/mat-input-autosize.directive.mjs +11 -8
  4. package/esm2020/lib/core/elements/errors.mjs +1 -1
  5. package/esm2020/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  6. package/esm2020/lib/core/interfaces/classification.interface.mjs +2 -0
  7. package/esm2020/lib/core/interfaces/table-column.interface.mjs +2 -0
  8. package/esm2020/lib/core/pipes/safe-html.pipe.mjs +21 -0
  9. package/esm2020/lib/core/services/html-sanitizer.service.mjs +23 -0
  10. package/esm2020/lib/core/services/mapa-i18n.service.mjs +36 -0
  11. package/esm2020/lib/core/services/validation-message-resolver.service.mjs +72 -0
  12. package/esm2020/public-api.mjs +10 -1
  13. package/esm2020/src/lib/components/benchmarking/lib/components/benchmarking/src/benchmark-chart.component.mjs +2 -2
  14. package/esm2020/src/lib/components/benchmarking/lib/components/benchmarking/src/benchmark-indicator/benchmark-indicator.component.mjs +2 -2
  15. package/esm2020/src/lib/components/breadcrumb/lib/components/breadcrumb/src/breadcrumb.component.mjs +3 -3
  16. package/esm2020/src/lib/components/button/button.mjs +5 -0
  17. package/esm2020/src/lib/components/{chart → button}/lib/components/button/src/button.component.mjs +2 -2
  18. package/esm2020/src/lib/components/button/mapa-library-ui-src-lib-components-button.mjs +2 -2
  19. package/esm2020/src/lib/components/button-icon/lib/components/button-icon/src/button-icon.component.mjs +11 -3
  20. package/esm2020/src/lib/components/capability/lib/components/button/src/button.component.mjs +2 -2
  21. package/esm2020/src/lib/components/capability/lib/components/capability/public-api.mjs +3 -1
  22. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.module.mjs +2 -2
  23. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.mjs +2 -2
  24. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.mjs +27 -6
  25. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.mjs +2 -2
  26. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.component.mjs +18 -4
  27. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.module.mjs +1 -1
  28. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.component.mjs +4 -4
  29. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.module.mjs +9 -11
  30. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.component.mjs +35 -9
  31. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.module.mjs +4 -3
  32. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator/capability-indicator.component.mjs +2 -2
  33. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.mjs +2 -2
  34. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.mjs +44 -8
  35. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-interval/capability-interval.component.mjs +2 -2
  36. package/esm2020/src/lib/components/capability/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.mjs +2 -5
  37. package/esm2020/src/lib/components/capability/lib/components/capability/src/essentials/services/reusable-interval-bar.service.mjs +11 -3
  38. package/esm2020/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.mjs +75 -99
  39. package/esm2020/src/lib/components/capability/lib/components/dropdown/src/dropdown.module.mjs +12 -5
  40. package/esm2020/src/lib/components/capability/lib/components/filters/src/filters.component.mjs +30 -11
  41. package/esm2020/src/lib/components/capability/lib/components/filters/src/filters.module.mjs +1 -1
  42. package/esm2020/src/lib/components/capability/lib/components/tag/src/tag.component.mjs +2 -2
  43. package/esm2020/src/lib/components/capability/lib/core/components/form-errors/form-errors.component.mjs +26 -0
  44. package/esm2020/src/lib/components/capability/lib/core/elements/errors.mjs +1 -1
  45. package/esm2020/src/lib/components/capability/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  46. package/esm2020/src/lib/components/capability/lib/core/pipes/safe-html.pipe.mjs +21 -0
  47. package/esm2020/src/lib/components/capability/lib/core/services/html-sanitizer.service.mjs +23 -0
  48. package/esm2020/src/lib/components/capability/lib/core/services/mapa-i18n.service.mjs +36 -0
  49. package/esm2020/src/lib/components/capability/lib/core/services/validation-message-resolver.service.mjs +72 -0
  50. package/esm2020/src/lib/components/chart/lib/components/chart/src/chart.component.mjs +11 -6
  51. package/esm2020/src/lib/components/chart/lib/components/chart/src/chart.module.mjs +2 -2
  52. package/esm2020/src/lib/components/checkbox/checkbox.mjs +5 -0
  53. package/esm2020/src/lib/components/{table/lib/components/svg-icon → checkbox/lib/components/checkbox}/public-api.mjs +4 -4
  54. package/esm2020/src/lib/components/checkbox/{src → lib/components/checkbox/src}/checkbox.component.mjs +1 -1
  55. package/esm2020/src/lib/components/checkbox/{src → lib/components/checkbox/src}/checkbox.module.mjs +1 -1
  56. package/esm2020/src/lib/components/checkbox/mapa-library-ui-src-lib-components-checkbox.mjs +2 -2
  57. package/esm2020/src/lib/components/datepicker/datepicker.mjs +5 -0
  58. package/esm2020/src/lib/components/datepicker/lib/components/datepicker/public-api.mjs +6 -0
  59. package/esm2020/src/lib/components/datepicker/lib/components/datepicker/src/datepicker.component.mjs +65 -0
  60. package/esm2020/src/lib/components/datepicker/lib/components/datepicker/src/datepicker.module.mjs +70 -0
  61. package/esm2020/src/lib/components/datepicker/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  62. package/esm2020/src/lib/components/datepicker/lib/core/services/mapa-i18n.service.mjs +36 -0
  63. package/esm2020/src/lib/components/datepicker/mapa-library-ui-src-lib-components-datepicker.mjs +2 -2
  64. package/esm2020/src/lib/components/dialog/lib/components/button/src/button.component.mjs +2 -2
  65. package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.component.mjs +6 -4
  66. package/esm2020/src/lib/components/dialog/lib/components/dialog/src/dialog.module.mjs +6 -3
  67. package/esm2020/src/lib/components/dialog/lib/core/pipes/safe-html.pipe.mjs +21 -0
  68. package/esm2020/src/lib/components/dialog/lib/core/services/html-sanitizer.service.mjs +23 -0
  69. package/esm2020/src/lib/components/dropdown/dropdown.mjs +1 -2
  70. package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.mjs +75 -99
  71. package/esm2020/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.module.mjs +12 -5
  72. package/esm2020/src/lib/components/dropdown/lib/core/components/form-errors/form-errors.component.mjs +26 -0
  73. package/esm2020/src/lib/components/dropdown/lib/core/elements/errors.mjs +1 -1
  74. package/esm2020/src/lib/components/dropdown/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  75. package/esm2020/src/lib/components/dropdown/lib/core/pipes/safe-html.pipe.mjs +21 -0
  76. package/esm2020/src/lib/components/dropdown/lib/core/services/html-sanitizer.service.mjs +23 -0
  77. package/esm2020/src/lib/components/dropdown/lib/core/services/mapa-i18n.service.mjs +36 -0
  78. package/esm2020/src/lib/components/dropdown/lib/core/services/validation-message-resolver.service.mjs +72 -0
  79. package/esm2020/src/lib/components/dropdown-tree/dropdown-tree.mjs +9 -0
  80. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.component.mjs +33 -16
  81. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.module.mjs +9 -41
  82. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/errors.mjs +1 -1
  83. package/esm2020/src/lib/components/dropdown-tree/mapa-library-ui-src-lib-components-dropdown-tree.mjs +2 -2
  84. package/esm2020/src/lib/components/empty/empty.mjs +5 -0
  85. package/esm2020/src/lib/components/empty/lib/components/empty/public-api.mjs +6 -0
  86. package/esm2020/src/lib/components/empty/{src → lib/components/empty/src}/empty.component.mjs +4 -3
  87. package/esm2020/src/lib/components/empty/lib/components/empty/src/empty.module.mjs +27 -0
  88. package/esm2020/src/lib/components/empty/lib/core/pipes/safe-html.pipe.mjs +21 -0
  89. package/esm2020/src/lib/components/empty/lib/core/services/html-sanitizer.service.mjs +23 -0
  90. package/esm2020/src/lib/components/empty/mapa-library-ui-src-lib-components-empty.mjs +2 -2
  91. package/esm2020/src/lib/components/filters/lib/components/button/src/button.component.mjs +2 -2
  92. package/esm2020/src/lib/components/filters/lib/components/filters/src/filters.component.mjs +30 -11
  93. package/esm2020/src/lib/components/filters/lib/components/filters/src/filters.module.mjs +1 -1
  94. package/esm2020/src/lib/components/filters/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  95. package/esm2020/src/lib/components/filters/lib/core/services/mapa-i18n.service.mjs +36 -0
  96. package/esm2020/src/lib/components/form/lib/components/button/src/button.component.mjs +2 -2
  97. package/esm2020/src/lib/components/form/lib/components/form/src/form.component.mjs +6 -5
  98. package/esm2020/src/lib/components/form/lib/components/form/src/form.module.mjs +3 -2
  99. package/esm2020/src/lib/components/form/lib/components/input/src/input.component.mjs +5 -4
  100. package/esm2020/src/lib/components/form/lib/components/input/src/input.module.mjs +13 -13
  101. package/esm2020/src/lib/components/form/lib/components/radio-button/src/radio-button.component.mjs +8 -3
  102. package/esm2020/src/lib/components/form/lib/components/slide-toggle/src/slide-toggle.component.mjs +8 -3
  103. package/esm2020/src/lib/components/form/lib/components/textarea/src/textarea.component.mjs +4 -3
  104. package/esm2020/src/lib/components/form/lib/components/textarea/src/textarea.module.mjs +7 -3
  105. package/esm2020/src/lib/components/form/lib/core/components/form-errors/form-errors.component.mjs +26 -0
  106. package/esm2020/src/lib/components/form/lib/core/directives/mat-input-autosize.directive.mjs +99 -0
  107. package/esm2020/src/lib/components/form/lib/core/elements/errors.mjs +1 -1
  108. package/esm2020/src/lib/components/form/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  109. package/esm2020/src/lib/components/form/lib/core/services/mapa-i18n.service.mjs +36 -0
  110. package/esm2020/src/lib/components/form/lib/core/services/validation-message-resolver.service.mjs +72 -0
  111. package/esm2020/src/lib/components/group-report/lib/components/group-report/src/group-report-interface.mjs +1 -1
  112. package/esm2020/src/lib/components/group-report/lib/components/group-report/src/group-report.component.mjs +7 -6
  113. package/esm2020/src/lib/components/group-report/lib/components/group-report/src/group-report.module.mjs +2 -2
  114. package/esm2020/src/lib/components/icon/icon.mjs +5 -0
  115. package/esm2020/src/lib/components/icon/mapa-library-ui-src-lib-components-icon.mjs +2 -2
  116. package/esm2020/src/lib/components/input/input.mjs +5 -0
  117. package/esm2020/src/lib/components/input/lib/components/input/public-api.mjs +6 -0
  118. package/esm2020/src/lib/components/input/lib/components/input/src/input.component.mjs +40 -0
  119. package/esm2020/src/lib/components/input/lib/components/input/src/input.module.mjs +60 -0
  120. package/esm2020/src/lib/components/input/lib/core/components/form-errors/form-errors.component.mjs +26 -0
  121. package/esm2020/src/lib/components/input/lib/core/directives/mat-input-autosize.directive.mjs +99 -0
  122. package/esm2020/src/lib/components/{group-report → input}/lib/core/elements/errors.mjs +1 -1
  123. package/esm2020/src/lib/components/input/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  124. package/esm2020/src/lib/components/input/lib/core/services/mapa-i18n.service.mjs +36 -0
  125. package/esm2020/src/lib/components/input/lib/core/services/validation-message-resolver.service.mjs +72 -0
  126. package/esm2020/src/lib/components/input/mapa-library-ui-src-lib-components-input.mjs +2 -2
  127. package/esm2020/src/lib/components/{table → menu}/lib/components/menu/src/menu.module.mjs +1 -1
  128. package/esm2020/src/lib/components/menu/mapa-library-ui-src-lib-components-menu.mjs +2 -2
  129. package/esm2020/src/lib/components/menu/menu.mjs +5 -0
  130. package/esm2020/src/lib/components/nav-list/lib/components/nav-list/src/nav-list.component.mjs +3 -3
  131. package/esm2020/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.mjs +8 -3
  132. package/esm2020/src/lib/components/report-item/lib/components/report-item/public-api.mjs +6 -0
  133. package/esm2020/src/lib/components/report-item/lib/components/report-item/src/report-item.component.mjs +63 -0
  134. package/esm2020/src/lib/components/report-item/{src → lib/components/report-item/src}/report-item.module.mjs +1 -1
  135. package/esm2020/src/lib/components/report-item/mapa-library-ui-src-lib-components-report-item.mjs +2 -2
  136. package/esm2020/src/lib/components/report-item/report-item.mjs +5 -0
  137. package/esm2020/src/lib/components/scale/lib/components/button/src/button.component.mjs +2 -2
  138. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-interval/capability-interval.component.mjs +2 -2
  139. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.mjs +2 -5
  140. package/esm2020/src/lib/components/scale/lib/components/filters/src/filters.component.mjs +30 -11
  141. package/esm2020/src/lib/components/scale/lib/components/filters/src/filters.module.mjs +1 -1
  142. package/esm2020/src/lib/components/scale/lib/components/group-report/src/group-report-interface.mjs +1 -1
  143. package/esm2020/src/lib/components/scale/lib/components/scale/src/details/details.component.mjs +3 -3
  144. package/esm2020/src/lib/components/scale/lib/components/scale/src/scale.component.mjs +25 -9
  145. package/esm2020/src/lib/components/scale/lib/components/scale/src/scale.interface.mjs +1 -1
  146. package/esm2020/src/lib/components/scale/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  147. package/esm2020/src/lib/components/scale/lib/core/services/mapa-i18n.service.mjs +36 -0
  148. package/esm2020/src/lib/components/scale-parameterization/lib/components/group-report/src/group-report-interface.mjs +1 -1
  149. package/esm2020/src/lib/components/scale-parameterization/lib/components/scale-parameterization/src/details/details.component.mjs +3 -3
  150. package/esm2020/src/lib/components/scale-parameterization/lib/components/scale-parameterization/src/scale-parameterization.component.mjs +24 -9
  151. package/esm2020/src/lib/components/scale-parameterization/lib/components/scale-parameterization/src/scale-parameterization.interface.mjs +1 -1
  152. package/esm2020/src/lib/components/scale-parameterization/lib/components/scale-parameterization/src/scale-parameterization.module.mjs +6 -6
  153. package/esm2020/src/lib/components/scale-parameterization/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  154. package/esm2020/src/lib/components/scale-parameterization/lib/core/services/mapa-i18n.service.mjs +36 -0
  155. package/esm2020/src/lib/components/slide-toggle/lib/components/slide-toggle/src/slide-toggle.component.mjs +8 -3
  156. package/esm2020/src/lib/components/svg-icon/lib/components/svg-icon/src/svg-icon.component.mjs +30 -18
  157. package/esm2020/src/lib/components/svg-icon/lib/components/svg-icon/src/svg-icon.module.mjs +5 -5
  158. package/esm2020/src/lib/components/svg-icon/lib/core/pipes/safe-html.pipe.mjs +21 -0
  159. package/esm2020/src/lib/components/svg-icon/lib/core/services/html-sanitizer.service.mjs +23 -0
  160. package/esm2020/src/lib/components/table/lib/components/table/src/paginator_customization.mjs +11 -16
  161. package/esm2020/src/lib/components/table/lib/components/table/src/table.component.mjs +74 -33
  162. package/esm2020/src/lib/components/table/lib/components/table/src/table.module.mjs +13 -9
  163. package/esm2020/src/lib/components/table/lib/core/directives/custom-paginator-legacy.directive.mjs +39 -62
  164. package/esm2020/src/lib/components/table/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  165. package/esm2020/src/lib/components/table/lib/core/js-brasil/index.mjs +16 -0
  166. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/create.mjs +455 -0
  167. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/createNumberMask.mjs +115 -0
  168. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/estados.mjs +34 -0
  169. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/index.mjs +34 -0
  170. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/inscricaoestadual.mjs +702 -0
  171. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/interfaces.mjs +2 -0
  172. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/iptu.mjs +25 -0
  173. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/iptu_create.mjs +60 -0
  174. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/iptu_mask.mjs +38 -0
  175. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/iptu_validate.mjs +67 -0
  176. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/mask.mjs +579 -0
  177. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/name.mjs +371 -0
  178. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/placa.mjs +162 -0
  179. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/rg.mjs +63 -0
  180. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/saude.mjs +62 -0
  181. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/utils.mjs +304 -0
  182. package/esm2020/src/lib/components/table/lib/core/js-brasil/src/validate.mjs +627 -0
  183. package/esm2020/src/lib/components/table/lib/core/pipes/cpf.mjs +17 -0
  184. package/esm2020/src/lib/components/table/lib/core/pipes/safe-html.pipe.mjs +21 -0
  185. package/esm2020/src/lib/components/table/lib/core/services/html-sanitizer.service.mjs +23 -0
  186. package/esm2020/src/lib/components/table/lib/core/services/mapa-i18n.service.mjs +36 -0
  187. package/esm2020/src/lib/components/{scale-parameterization → tag}/lib/components/tag/src/tag.component.mjs +2 -2
  188. package/esm2020/src/lib/components/tag/mapa-library-ui-src-lib-components-tag.mjs +2 -2
  189. package/esm2020/src/lib/components/tag/tag.mjs +5 -0
  190. package/esm2020/src/lib/components/textarea/lib/components/textarea/src/textarea.component.mjs +4 -3
  191. package/esm2020/src/lib/components/textarea/lib/components/textarea/src/textarea.module.mjs +7 -3
  192. package/esm2020/src/lib/components/textarea/lib/core/components/form-errors/form-errors.component.mjs +26 -0
  193. package/esm2020/src/lib/components/textarea/lib/core/elements/errors.mjs +1 -1
  194. package/esm2020/src/lib/components/textarea/lib/core/i18n/mapa-ui-texts.mjs +100 -0
  195. package/esm2020/src/lib/components/textarea/lib/core/services/mapa-i18n.service.mjs +36 -0
  196. package/esm2020/src/lib/components/textarea/lib/core/services/validation-message-resolver.service.mjs +72 -0
  197. package/esm2020/src/lib/components/tooltip/lib/components/tooltip/public-api.mjs +7 -0
  198. package/esm2020/src/lib/components/tooltip/mapa-library-ui-src-lib-components-tooltip.mjs +2 -2
  199. package/esm2020/src/lib/components/tooltip/tooltip.mjs +6 -0
  200. package/esm2020/src/lib/components/{group-report/lib/components/filters → warning/lib/components/warning}/public-api.mjs +4 -4
  201. package/esm2020/src/lib/components/warning/lib/components/warning/src/warning.component.mjs +43 -0
  202. package/esm2020/src/lib/components/warning/{src → lib/components/warning/src}/warning.module.mjs +1 -1
  203. package/esm2020/src/lib/components/warning/mapa-library-ui-src-lib-components-warning.mjs +2 -2
  204. package/esm2020/src/lib/components/warning/warning.mjs +5 -0
  205. package/fesm2015/mapa-library-ui-src-lib-components-benchmarking.mjs +4 -4
  206. package/fesm2015/mapa-library-ui-src-lib-components-benchmarking.mjs.map +1 -1
  207. package/fesm2015/mapa-library-ui-src-lib-components-breadcrumb.mjs +2 -2
  208. package/fesm2015/mapa-library-ui-src-lib-components-breadcrumb.mjs.map +1 -1
  209. package/fesm2015/mapa-library-ui-src-lib-components-button-icon.mjs +10 -2
  210. package/fesm2015/mapa-library-ui-src-lib-components-button-icon.mjs.map +1 -1
  211. package/fesm2015/mapa-library-ui-src-lib-components-button.mjs +6 -2
  212. package/fesm2015/mapa-library-ui-src-lib-components-button.mjs.map +1 -1
  213. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs +630 -306
  214. package/fesm2015/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  215. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs +13 -312
  216. package/fesm2015/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  217. package/fesm2015/mapa-library-ui-src-lib-components-checkbox.mjs +4 -0
  218. package/fesm2015/mapa-library-ui-src-lib-components-checkbox.mjs.map +1 -1
  219. package/fesm2015/mapa-library-ui-src-lib-components-datepicker.mjs +154 -14
  220. package/fesm2015/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
  221. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs +50 -8
  222. package/fesm2015/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  223. package/fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs +40 -348
  224. package/fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
  225. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +321 -254
  226. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  227. package/fesm2015/mapa-library-ui-src-lib-components-empty.mjs +52 -6
  228. package/fesm2015/mapa-library-ui-src-lib-components-empty.mjs.map +1 -1
  229. package/fesm2015/mapa-library-ui-src-lib-components-filters.mjs +148 -14
  230. package/fesm2015/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  231. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs +347 -30
  232. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  233. package/fesm2015/mapa-library-ui-src-lib-components-group-report.mjs +7 -40
  234. package/fesm2015/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
  235. package/fesm2015/mapa-library-ui-src-lib-components-icon.mjs +4 -0
  236. package/fesm2015/mapa-library-ui-src-lib-components-icon.mjs.map +1 -1
  237. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs +319 -15
  238. package/fesm2015/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  239. package/fesm2015/mapa-library-ui-src-lib-components-menu.mjs +4 -0
  240. package/fesm2015/mapa-library-ui-src-lib-components-menu.mjs.map +1 -1
  241. package/fesm2015/mapa-library-ui-src-lib-components-nav-list.mjs +2 -2
  242. package/fesm2015/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -1
  243. package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs +8 -2
  244. package/fesm2015/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
  245. package/fesm2015/mapa-library-ui-src-lib-components-report-item.mjs +48 -12
  246. package/fesm2015/mapa-library-ui-src-lib-components-report-item.mjs.map +1 -1
  247. package/fesm2015/mapa-library-ui-src-lib-components-scale-parameterization.mjs +134 -1304
  248. package/fesm2015/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
  249. package/fesm2015/mapa-library-ui-src-lib-components-scale.mjs +176 -32
  250. package/fesm2015/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
  251. package/fesm2015/mapa-library-ui-src-lib-components-slide-toggle.mjs +8 -2
  252. package/fesm2015/mapa-library-ui-src-lib-components-slide-toggle.mjs.map +1 -1
  253. package/fesm2015/mapa-library-ui-src-lib-components-svg-icon.mjs +61 -27
  254. package/fesm2015/mapa-library-ui-src-lib-components-svg-icon.mjs.map +1 -1
  255. package/fesm2015/mapa-library-ui-src-lib-components-table.mjs +3935 -234
  256. package/fesm2015/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  257. package/fesm2015/mapa-library-ui-src-lib-components-tag.mjs +6 -2
  258. package/fesm2015/mapa-library-ui-src-lib-components-tag.mjs.map +1 -1
  259. package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs +216 -7
  260. package/fesm2015/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  261. package/fesm2015/mapa-library-ui-src-lib-components-tooltip.mjs +4 -0
  262. package/fesm2015/mapa-library-ui-src-lib-components-tooltip.mjs.map +1 -1
  263. package/fesm2015/mapa-library-ui-src-lib-components-warning.mjs +12 -2
  264. package/fesm2015/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
  265. package/fesm2015/mapa-library-ui.mjs +297 -70
  266. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  267. package/fesm2020/mapa-library-ui-src-lib-components-benchmarking.mjs +4 -4
  268. package/fesm2020/mapa-library-ui-src-lib-components-benchmarking.mjs.map +1 -1
  269. package/fesm2020/mapa-library-ui-src-lib-components-breadcrumb.mjs +2 -2
  270. package/fesm2020/mapa-library-ui-src-lib-components-breadcrumb.mjs.map +1 -1
  271. package/fesm2020/mapa-library-ui-src-lib-components-button-icon.mjs +10 -2
  272. package/fesm2020/mapa-library-ui-src-lib-components-button-icon.mjs.map +1 -1
  273. package/fesm2020/mapa-library-ui-src-lib-components-button.mjs +6 -2
  274. package/fesm2020/mapa-library-ui-src-lib-components-button.mjs.map +1 -1
  275. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs +641 -303
  276. package/fesm2020/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
  277. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs +13 -306
  278. package/fesm2020/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
  279. package/fesm2020/mapa-library-ui-src-lib-components-checkbox.mjs +4 -0
  280. package/fesm2020/mapa-library-ui-src-lib-components-checkbox.mjs.map +1 -1
  281. package/fesm2020/mapa-library-ui-src-lib-components-datepicker.mjs +169 -14
  282. package/fesm2020/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
  283. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs +49 -8
  284. package/fesm2020/mapa-library-ui-src-lib-components-dialog.mjs.map +1 -1
  285. package/fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs +41 -343
  286. package/fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
  287. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +333 -254
  288. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  289. package/fesm2020/mapa-library-ui-src-lib-components-empty.mjs +51 -6
  290. package/fesm2020/mapa-library-ui-src-lib-components-empty.mjs.map +1 -1
  291. package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs +163 -14
  292. package/fesm2020/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
  293. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs +356 -30
  294. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  295. package/fesm2020/mapa-library-ui-src-lib-components-group-report.mjs +7 -40
  296. package/fesm2020/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
  297. package/fesm2020/mapa-library-ui-src-lib-components-icon.mjs +4 -0
  298. package/fesm2020/mapa-library-ui-src-lib-components-icon.mjs.map +1 -1
  299. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs +330 -15
  300. package/fesm2020/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
  301. package/fesm2020/mapa-library-ui-src-lib-components-menu.mjs +4 -0
  302. package/fesm2020/mapa-library-ui-src-lib-components-menu.mjs.map +1 -1
  303. package/fesm2020/mapa-library-ui-src-lib-components-nav-list.mjs +2 -2
  304. package/fesm2020/mapa-library-ui-src-lib-components-nav-list.mjs.map +1 -1
  305. package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs +7 -2
  306. package/fesm2020/mapa-library-ui-src-lib-components-radio-button.mjs.map +1 -1
  307. package/fesm2020/mapa-library-ui-src-lib-components-report-item.mjs +47 -12
  308. package/fesm2020/mapa-library-ui-src-lib-components-report-item.mjs.map +1 -1
  309. package/fesm2020/mapa-library-ui-src-lib-components-scale-parameterization.mjs +140 -1289
  310. package/fesm2020/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
  311. package/fesm2020/mapa-library-ui-src-lib-components-scale.mjs +191 -32
  312. package/fesm2020/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
  313. package/fesm2020/mapa-library-ui-src-lib-components-slide-toggle.mjs +7 -2
  314. package/fesm2020/mapa-library-ui-src-lib-components-slide-toggle.mjs.map +1 -1
  315. package/fesm2020/mapa-library-ui-src-lib-components-svg-icon.mjs +60 -27
  316. package/fesm2020/mapa-library-ui-src-lib-components-svg-icon.mjs.map +1 -1
  317. package/fesm2020/mapa-library-ui-src-lib-components-table.mjs +3954 -234
  318. package/fesm2020/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
  319. package/fesm2020/mapa-library-ui-src-lib-components-tag.mjs +6 -2
  320. package/fesm2020/mapa-library-ui-src-lib-components-tag.mjs.map +1 -1
  321. package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs +230 -7
  322. package/fesm2020/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
  323. package/fesm2020/mapa-library-ui-src-lib-components-tooltip.mjs +4 -0
  324. package/fesm2020/mapa-library-ui-src-lib-components-tooltip.mjs.map +1 -1
  325. package/fesm2020/mapa-library-ui-src-lib-components-warning.mjs +12 -2
  326. package/fesm2020/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
  327. package/fesm2020/mapa-library-ui.mjs +309 -70
  328. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  329. package/lib/core/components/form-errors/form-errors.component.d.ts +13 -0
  330. package/lib/core/directives/custom-paginator-legacy.directive.d.ts +10 -9
  331. package/lib/core/directives/mat-input-autosize.directive.d.ts +1 -2
  332. package/lib/core/elements/errors.d.ts +1 -2
  333. package/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  334. package/lib/core/pipes/safe-html.pipe.d.ts +10 -0
  335. package/lib/core/services/html-sanitizer.service.d.ts +10 -0
  336. package/lib/core/services/mapa-i18n.service.d.ts +13 -0
  337. package/lib/core/services/validation-message-resolver.service.d.ts +14 -0
  338. package/mapa-library-ui-0.90.0.tgz +0 -0
  339. package/package.json +14 -2
  340. package/public-api.d.ts +9 -0
  341. package/src/lib/components/button/button.d.ts +1 -0
  342. package/src/lib/components/button/index.d.ts +1 -1
  343. package/src/lib/components/button-icon/lib/components/button-icon/src/button-icon.component.d.ts +5 -3
  344. package/src/lib/components/capability/lib/components/capability/public-api.d.ts +2 -0
  345. package/src/lib/components/capability/lib/components/capability/src/capability-comparative/capability-comparative.module.d.ts +1 -1
  346. package/src/lib/components/capability/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.d.ts +10 -1
  347. package/src/lib/components/capability/lib/components/capability/src/capability-detail/capability-detail.component.d.ts +5 -2
  348. package/src/lib/components/capability/lib/components/capability/src/capability-dot/capability-dot.module.d.ts +3 -3
  349. package/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.component.d.ts +12 -2
  350. package/src/lib/components/capability/lib/components/capability/src/capability-expand/capability-expand.module.d.ts +2 -1
  351. package/src/lib/components/capability/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.d.ts +15 -3
  352. package/src/lib/components/capability/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.d.ts +0 -2
  353. package/src/lib/components/capability/lib/components/capability/src/essentials/services/reusable-interval-bar.service.d.ts +4 -3
  354. package/src/lib/components/capability/lib/components/dropdown/src/dropdown.component.d.ts +15 -13
  355. package/src/lib/components/capability/lib/components/dropdown/src/dropdown.module.d.ts +4 -2
  356. package/src/lib/components/capability/lib/components/filters/src/filters.component.d.ts +10 -2
  357. package/src/lib/components/capability/lib/core/components/form-errors/form-errors.component.d.ts +13 -0
  358. package/src/lib/components/capability/lib/core/elements/errors.d.ts +1 -2
  359. package/src/lib/components/capability/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  360. package/src/lib/components/capability/lib/core/pipes/safe-html.pipe.d.ts +10 -0
  361. package/src/lib/components/capability/lib/core/services/html-sanitizer.service.d.ts +10 -0
  362. package/src/lib/components/capability/lib/core/services/mapa-i18n.service.d.ts +13 -0
  363. package/src/lib/components/capability/lib/core/services/validation-message-resolver.service.d.ts +14 -0
  364. package/src/lib/components/chart/lib/components/chart/src/chart.component.d.ts +4 -3
  365. package/src/lib/components/chart/lib/components/chart/src/chart.module.d.ts +1 -1
  366. package/src/lib/components/checkbox/checkbox.d.ts +1 -0
  367. package/src/lib/components/checkbox/index.d.ts +1 -1
  368. package/src/lib/components/datepicker/datepicker.d.ts +1 -0
  369. package/src/lib/components/datepicker/index.d.ts +1 -1
  370. package/src/lib/components/datepicker/{src → lib/components/datepicker/src}/datepicker.component.d.ts +10 -1
  371. package/src/lib/components/datepicker/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  372. package/src/lib/components/datepicker/lib/core/services/mapa-i18n.service.d.ts +13 -0
  373. package/src/lib/components/dialog/lib/components/dialog/src/dialog.component.d.ts +3 -3
  374. package/src/lib/components/dialog/lib/components/dialog/src/dialog.module.d.ts +2 -1
  375. package/src/lib/components/dialog/lib/core/pipes/safe-html.pipe.d.ts +10 -0
  376. package/src/lib/components/dialog/lib/core/services/html-sanitizer.service.d.ts +10 -0
  377. package/src/lib/components/dropdown/dropdown.d.ts +0 -1
  378. package/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.component.d.ts +15 -13
  379. package/src/lib/components/dropdown/lib/components/dropdown/src/dropdown.module.d.ts +4 -2
  380. package/src/lib/components/dropdown/lib/core/components/form-errors/form-errors.component.d.ts +13 -0
  381. package/src/lib/components/dropdown/lib/core/elements/errors.d.ts +1 -2
  382. package/src/lib/components/dropdown/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  383. package/src/lib/components/dropdown/lib/core/pipes/safe-html.pipe.d.ts +10 -0
  384. package/src/lib/components/dropdown/lib/core/services/html-sanitizer.service.d.ts +10 -0
  385. package/src/lib/components/dropdown/lib/core/services/mapa-i18n.service.d.ts +13 -0
  386. package/src/lib/components/dropdown/lib/core/services/validation-message-resolver.service.d.ts +14 -0
  387. package/src/lib/components/dropdown-tree/{dropdown.d.ts → dropdown-tree.d.ts} +1 -1
  388. package/src/lib/components/dropdown-tree/index.d.ts +1 -1
  389. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.component.d.ts +7 -7
  390. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.module.d.ts +2 -4
  391. package/src/lib/components/dropdown-tree/lib/core/elements/errors.d.ts +1 -2
  392. package/src/lib/components/empty/empty.d.ts +1 -0
  393. package/src/lib/components/empty/index.d.ts +1 -1
  394. package/src/lib/components/empty/{src → lib/components/empty/src}/empty.module.d.ts +2 -1
  395. package/src/lib/components/empty/lib/core/pipes/safe-html.pipe.d.ts +10 -0
  396. package/src/lib/components/empty/lib/core/services/html-sanitizer.service.d.ts +10 -0
  397. package/src/lib/components/filters/lib/components/filters/src/filters.component.d.ts +10 -2
  398. package/src/lib/components/filters/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  399. package/src/lib/components/filters/lib/core/services/mapa-i18n.service.d.ts +13 -0
  400. package/src/lib/components/form/lib/components/form/src/form.component.d.ts +1 -2
  401. package/src/lib/components/form/lib/components/form/src/form.module.d.ts +5 -4
  402. package/src/lib/components/form/lib/components/input/src/input.component.d.ts +1 -1
  403. package/src/lib/components/form/lib/components/input/src/input.module.d.ts +3 -2
  404. package/src/lib/components/form/lib/components/radio-button/src/radio-button.component.d.ts +4 -4
  405. package/src/lib/components/form/lib/components/slide-toggle/src/slide-toggle.component.d.ts +4 -4
  406. package/src/lib/components/form/lib/components/textarea/src/textarea.component.d.ts +1 -1
  407. package/src/lib/components/form/lib/components/textarea/src/textarea.module.d.ts +2 -1
  408. package/src/lib/components/form/lib/core/components/form-errors/form-errors.component.d.ts +13 -0
  409. package/src/lib/components/form/lib/core/directives/mat-input-autosize.directive.d.ts +25 -0
  410. package/src/lib/components/form/lib/core/elements/errors.d.ts +1 -2
  411. package/src/lib/components/form/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  412. package/src/lib/components/form/lib/core/services/mapa-i18n.service.d.ts +13 -0
  413. package/src/lib/components/form/lib/core/services/validation-message-resolver.service.d.ts +14 -0
  414. package/src/lib/components/group-report/lib/components/group-report/src/group-report.component.d.ts +3 -3
  415. package/src/lib/components/group-report/lib/components/group-report/src/group-report.module.d.ts +1 -1
  416. package/src/lib/components/icon/icon.d.ts +1 -0
  417. package/src/lib/components/icon/index.d.ts +1 -1
  418. package/src/lib/components/input/index.d.ts +1 -1
  419. package/src/lib/components/input/input.d.ts +1 -0
  420. package/src/lib/components/input/{src → lib/components/input/src}/input.component.d.ts +1 -1
  421. package/src/lib/components/input/{src → lib/components/input/src}/input.module.d.ts +3 -2
  422. package/src/lib/components/input/lib/core/components/form-errors/form-errors.component.d.ts +13 -0
  423. package/src/lib/components/input/lib/core/directives/mat-input-autosize.directive.d.ts +25 -0
  424. package/src/lib/components/{chart → input}/lib/core/elements/errors.d.ts +1 -2
  425. package/src/lib/components/input/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  426. package/src/lib/components/input/lib/core/services/mapa-i18n.service.d.ts +13 -0
  427. package/src/lib/components/input/lib/core/services/validation-message-resolver.service.d.ts +14 -0
  428. package/src/lib/components/menu/index.d.ts +1 -1
  429. package/src/lib/components/menu/menu.d.ts +1 -0
  430. package/src/lib/components/nav-list/lib/components/nav-list/src/nav-list.component.d.ts +1 -1
  431. package/src/lib/components/radio-button/lib/components/radio-button/src/radio-button.component.d.ts +4 -4
  432. package/src/lib/components/report-item/index.d.ts +1 -1
  433. package/src/lib/components/report-item/lib/components/report-item/src/report-item.component.d.ts +33 -0
  434. package/src/lib/components/report-item/report-item.d.ts +1 -0
  435. package/src/lib/components/scale/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.d.ts +0 -2
  436. package/src/lib/components/scale/lib/components/filters/src/filters.component.d.ts +10 -2
  437. package/src/lib/components/scale/lib/components/scale/src/scale.component.d.ts +11 -3
  438. package/src/lib/components/scale/lib/components/scale/src/scale.interface.d.ts +1 -1
  439. package/src/lib/components/scale/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  440. package/src/lib/components/scale/lib/core/services/mapa-i18n.service.d.ts +13 -0
  441. package/src/lib/components/scale-parameterization/lib/components/scale-parameterization/src/scale-parameterization.component.d.ts +12 -4
  442. package/src/lib/components/scale-parameterization/lib/components/scale-parameterization/src/scale-parameterization.interface.d.ts +1 -1
  443. package/src/lib/components/scale-parameterization/lib/components/scale-parameterization/src/scale-parameterization.module.d.ts +3 -4
  444. package/src/lib/components/scale-parameterization/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  445. package/src/lib/components/scale-parameterization/lib/core/services/mapa-i18n.service.d.ts +13 -0
  446. package/src/lib/components/slide-toggle/lib/components/slide-toggle/src/slide-toggle.component.d.ts +4 -4
  447. package/src/lib/components/svg-icon/lib/components/svg-icon/src/svg-icon.component.d.ts +6 -3
  448. package/src/lib/components/svg-icon/lib/components/svg-icon/src/svg-icon.module.d.ts +3 -3
  449. package/src/lib/components/svg-icon/lib/core/pipes/safe-html.pipe.d.ts +10 -0
  450. package/src/lib/components/svg-icon/lib/core/services/html-sanitizer.service.d.ts +10 -0
  451. package/src/lib/components/table/lib/components/table/src/paginator_customization.d.ts +2 -1
  452. package/src/lib/components/table/lib/components/table/src/table.component.d.ts +18 -7
  453. package/src/lib/components/table/lib/components/table/src/table.module.d.ts +4 -3
  454. package/src/lib/components/table/lib/core/directives/custom-paginator-legacy.directive.d.ts +10 -9
  455. package/src/lib/components/table/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  456. package/src/lib/components/table/lib/core/js-brasil/index.d.ts +15 -0
  457. package/src/lib/components/table/lib/core/js-brasil/src/create.d.ts +37 -0
  458. package/src/lib/components/table/lib/core/js-brasil/src/createNumberMask.d.ts +13 -0
  459. package/src/lib/components/table/lib/core/js-brasil/src/estados.d.ts +7 -0
  460. package/src/lib/components/table/lib/core/js-brasil/src/index.d.ts +34 -0
  461. package/src/lib/components/table/lib/core/js-brasil/src/inscricaoestadual.d.ts +7 -0
  462. package/src/lib/components/table/lib/core/js-brasil/src/interfaces.d.ts +51 -0
  463. package/src/lib/components/table/lib/core/js-brasil/src/iptu.d.ts +3 -0
  464. package/src/lib/components/table/lib/core/js-brasil/src/iptu_create.d.ts +5 -0
  465. package/src/lib/components/table/lib/core/js-brasil/src/iptu_mask.d.ts +2 -0
  466. package/src/lib/components/table/lib/core/js-brasil/src/iptu_validate.d.ts +10 -0
  467. package/src/lib/components/table/lib/core/js-brasil/src/mask.d.ts +53 -0
  468. package/src/lib/components/table/lib/core/js-brasil/src/name.d.ts +9 -0
  469. package/src/lib/components/table/lib/core/js-brasil/src/placa.d.ts +6 -0
  470. package/src/lib/components/table/lib/core/js-brasil/src/rg.d.ts +5 -0
  471. package/src/lib/components/table/lib/core/js-brasil/src/saude.d.ts +84 -0
  472. package/src/lib/components/table/lib/core/js-brasil/src/utils.d.ts +71 -0
  473. package/src/lib/components/table/lib/core/js-brasil/src/validate.d.ts +90 -0
  474. package/src/lib/components/table/lib/core/pipes/cpf.d.ts +7 -0
  475. package/src/lib/components/table/lib/core/pipes/safe-html.pipe.d.ts +10 -0
  476. package/src/lib/components/table/lib/core/services/html-sanitizer.service.d.ts +10 -0
  477. package/src/lib/components/table/lib/core/services/mapa-i18n.service.d.ts +13 -0
  478. package/src/lib/components/tag/index.d.ts +1 -1
  479. package/src/lib/components/tag/tag.d.ts +1 -0
  480. package/src/lib/components/textarea/lib/components/textarea/src/textarea.component.d.ts +1 -1
  481. package/src/lib/components/textarea/lib/components/textarea/src/textarea.module.d.ts +2 -1
  482. package/src/lib/components/textarea/lib/core/components/form-errors/form-errors.component.d.ts +13 -0
  483. package/src/lib/components/textarea/lib/core/elements/errors.d.ts +1 -2
  484. package/src/lib/components/textarea/lib/core/i18n/mapa-ui-texts.d.ts +102 -0
  485. package/src/lib/components/textarea/lib/core/services/mapa-i18n.service.d.ts +13 -0
  486. package/src/lib/components/textarea/lib/core/services/validation-message-resolver.service.d.ts +14 -0
  487. package/src/lib/components/tooltip/index.d.ts +1 -1
  488. package/src/lib/components/tooltip/tooltip.d.ts +2 -0
  489. package/src/lib/components/warning/index.d.ts +1 -1
  490. package/src/lib/components/warning/{src → lib/components/warning/src}/warning.component.d.ts +3 -2
  491. package/src/lib/components/warning/warning.d.ts +1 -0
  492. package/esm2020/src/lib/components/button/public-api.mjs +0 -6
  493. package/esm2020/src/lib/components/button/src/button.component.mjs +0 -23
  494. package/esm2020/src/lib/components/button/src/button.module.mjs +0 -19
  495. package/esm2020/src/lib/components/button-icon/lib/core/interfaces/button-icon.interface.mjs +0 -2
  496. package/esm2020/src/lib/components/chart/lib/components/dropdown/public-api.mjs +0 -6
  497. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.mjs +0 -191
  498. package/esm2020/src/lib/components/chart/lib/components/dropdown/src/dropdown.module.mjs +0 -75
  499. package/esm2020/src/lib/components/chart/lib/core/elements/dropdown.mjs +0 -8
  500. package/esm2020/src/lib/components/chart/lib/core/elements/errors.mjs +0 -2
  501. package/esm2020/src/lib/components/chart/lib/core/interfaces/chart-options.interface.mjs +0 -2
  502. package/esm2020/src/lib/components/checkbox/public-api.mjs +0 -6
  503. package/esm2020/src/lib/components/datepicker/public-api.mjs +0 -6
  504. package/esm2020/src/lib/components/datepicker/src/datepicker.component.mjs +0 -44
  505. package/esm2020/src/lib/components/datepicker/src/datepicker.module.mjs +0 -70
  506. package/esm2020/src/lib/components/dialog/lib/core/interfaces/dialog-data.interface.mjs +0 -2
  507. package/esm2020/src/lib/components/dropdown/lib/components/button/public-api.mjs +0 -6
  508. package/esm2020/src/lib/components/dropdown/lib/components/button/src/button.component.mjs +0 -23
  509. package/esm2020/src/lib/components/dropdown/lib/components/button/src/button.module.mjs +0 -19
  510. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/public-api.mjs +0 -6
  511. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.component.mjs +0 -77
  512. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.module.mjs +0 -52
  513. package/esm2020/src/lib/components/dropdown/lib/core/elements/dropdown-tree.mjs +0 -8
  514. package/esm2020/src/lib/components/dropdown/lib/core/elements/index.mjs +0 -10
  515. package/esm2020/src/lib/components/dropdown/lib/core/elements/input-text.mjs +0 -8
  516. package/esm2020/src/lib/components/dropdown/lib/core/elements/radio-button.mjs +0 -8
  517. package/esm2020/src/lib/components/dropdown/lib/core/elements/slide-toggle.mjs +0 -8
  518. package/esm2020/src/lib/components/dropdown/lib/core/elements/textarea.mjs +0 -8
  519. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/button-icon.interface.mjs +0 -2
  520. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/chart-options.interface.mjs +0 -2
  521. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/classification.interface.mjs +0 -2
  522. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/dialog-data.interface.mjs +0 -2
  523. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/index.mjs +0 -7
  524. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/table-column.interface.mjs +0 -2
  525. package/esm2020/src/lib/components/dropdown/lib/core/interfaces/table-row-click-event.interface.mjs +0 -2
  526. package/esm2020/src/lib/components/dropdown-tree/dropdown.mjs +0 -9
  527. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/public-api.mjs +0 -6
  528. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/src/button.component.mjs +0 -23
  529. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/src/button.module.mjs +0 -19
  530. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/public-api.mjs +0 -6
  531. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.component.mjs +0 -191
  532. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.module.mjs +0 -75
  533. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/index.mjs +0 -10
  534. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/radio-button.mjs +0 -8
  535. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/slide-toggle.mjs +0 -8
  536. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/textarea.mjs +0 -8
  537. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/button-icon.interface.mjs +0 -2
  538. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/chart-options.interface.mjs +0 -2
  539. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/classification.interface.mjs +0 -2
  540. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/dialog-data.interface.mjs +0 -2
  541. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/index.mjs +0 -7
  542. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/table-column.interface.mjs +0 -2
  543. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/table-row-click-event.interface.mjs +0 -2
  544. package/esm2020/src/lib/components/empty/public-api.mjs +0 -6
  545. package/esm2020/src/lib/components/empty/src/empty.module.mjs +0 -24
  546. package/esm2020/src/lib/components/form/lib/core/elements/dropdown-tree.mjs +0 -8
  547. package/esm2020/src/lib/components/form/lib/core/elements/dropdown.mjs +0 -8
  548. package/esm2020/src/lib/components/form/lib/core/elements/index.mjs +0 -10
  549. package/esm2020/src/lib/components/form/lib/core/elements/radio-button.mjs +0 -8
  550. package/esm2020/src/lib/components/form/lib/core/elements/slide-toggle.mjs +0 -8
  551. package/esm2020/src/lib/components/form/lib/core/elements/textarea.mjs +0 -8
  552. package/esm2020/src/lib/components/form/lib/core/interfaces/button-icon.interface.mjs +0 -2
  553. package/esm2020/src/lib/components/form/lib/core/interfaces/chart-options.interface.mjs +0 -2
  554. package/esm2020/src/lib/components/form/lib/core/interfaces/classification.interface.mjs +0 -2
  555. package/esm2020/src/lib/components/form/lib/core/interfaces/dialog-data.interface.mjs +0 -2
  556. package/esm2020/src/lib/components/form/lib/core/interfaces/index.mjs +0 -7
  557. package/esm2020/src/lib/components/form/lib/core/interfaces/table-column.interface.mjs +0 -2
  558. package/esm2020/src/lib/components/form/lib/core/interfaces/table-row-click-event.interface.mjs +0 -2
  559. package/esm2020/src/lib/components/group-report/filters.mjs +0 -7
  560. package/esm2020/src/lib/components/group-report/lib/components/button/public-api.mjs +0 -6
  561. package/esm2020/src/lib/components/group-report/lib/components/button/src/button.component.mjs +0 -23
  562. package/esm2020/src/lib/components/group-report/lib/components/button/src/button.module.mjs +0 -19
  563. package/esm2020/src/lib/components/group-report/lib/components/capability/public-api.mjs +0 -26
  564. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +0 -17
  565. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative/capability-comparative.module.mjs +0 -32
  566. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.mjs +0 -24
  567. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.mjs +0 -19
  568. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.mjs +0 -20
  569. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.mjs +0 -19
  570. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.mjs +0 -19
  571. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.mjs +0 -19
  572. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-detail/capability-detail.component.mjs +0 -73
  573. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-detail/capability-detail.module.mjs +0 -64
  574. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-dot/capability-dot.component.mjs +0 -31
  575. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-dot/capability-dot.module.mjs +0 -22
  576. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-expand/capability-expand.component.mjs +0 -27
  577. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-expand/capability-expand.module.mjs +0 -22
  578. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-indicator/capability-indicator.component.mjs +0 -14
  579. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-indicator/capability-indicator.module.mjs +0 -18
  580. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.mjs +0 -33
  581. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.mjs +0 -21
  582. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.mjs +0 -27
  583. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.mjs +0 -21
  584. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-interval/capability-interval.component.mjs +0 -81
  585. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-interval/capability-interval.module.mjs +0 -18
  586. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.mjs +0 -31
  587. package/esm2020/src/lib/components/group-report/lib/components/capability/src/capability-interval-bar/capability-interval-bar.module.mjs +0 -20
  588. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/consts/capability-classification.const.mjs +0 -57
  589. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability-classification.interface.mjs +0 -2
  590. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.mjs +0 -2
  591. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability-item.interface.mjs +0 -2
  592. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability.interface.mjs +0 -2
  593. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/index.mjs +0 -4
  594. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/services/capability-classification.service.mjs +0 -14
  595. package/esm2020/src/lib/components/group-report/lib/components/capability/src/essentials/services/reusable-interval-bar.service.mjs +0 -32
  596. package/esm2020/src/lib/components/group-report/lib/components/dropdown/public-api.mjs +0 -6
  597. package/esm2020/src/lib/components/group-report/lib/components/dropdown/src/dropdown.component.mjs +0 -191
  598. package/esm2020/src/lib/components/group-report/lib/components/dropdown/src/dropdown.module.mjs +0 -75
  599. package/esm2020/src/lib/components/group-report/lib/components/filters/src/filters.component.mjs +0 -34
  600. package/esm2020/src/lib/components/group-report/lib/components/filters/src/filters.module.mjs +0 -38
  601. package/esm2020/src/lib/components/group-report/lib/components/tag/public-api.mjs +0 -6
  602. package/esm2020/src/lib/components/group-report/lib/components/tag/src/tag.component.mjs +0 -14
  603. package/esm2020/src/lib/components/group-report/lib/core/elements/action-button.mjs +0 -2
  604. package/esm2020/src/lib/components/group-report/lib/core/elements/dropdown.mjs +0 -8
  605. package/esm2020/src/lib/components/group-report/lib/core/elements/element-base.mjs +0 -37
  606. package/esm2020/src/lib/components/group-report/lib/core/elements/element-search.mjs +0 -2
  607. package/esm2020/src/lib/components/group-report/lib/core/interfaces/classification.interface.mjs +0 -2
  608. package/esm2020/src/lib/components/group-report/lib/core/interfaces/element-group.interface.mjs +0 -2
  609. package/esm2020/src/lib/components/group-report/lib/core/interfaces/element-option.interface.mjs +0 -2
  610. package/esm2020/src/lib/components/group-report/lib/core/interfaces/table-column.interface.mjs +0 -2
  611. package/esm2020/src/lib/components/icon/public-api.mjs +0 -6
  612. package/esm2020/src/lib/components/icon/src/icon.component.mjs +0 -26
  613. package/esm2020/src/lib/components/icon/src/icon.module.mjs +0 -19
  614. package/esm2020/src/lib/components/input/public-api.mjs +0 -6
  615. package/esm2020/src/lib/components/input/src/input.component.mjs +0 -39
  616. package/esm2020/src/lib/components/input/src/input.module.mjs +0 -60
  617. package/esm2020/src/lib/components/menu/public-api.mjs +0 -6
  618. package/esm2020/src/lib/components/menu/src/menu.component.mjs +0 -34
  619. package/esm2020/src/lib/components/menu/src/menu.module.mjs +0 -36
  620. package/esm2020/src/lib/components/nav-list/lib/core/interfaces/element-option.interface.mjs +0 -2
  621. package/esm2020/src/lib/components/radio-button/lib/core/elements/action-button.mjs +0 -2
  622. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +0 -37
  623. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-search.mjs +0 -2
  624. package/esm2020/src/lib/components/radio-button/lib/core/elements/errors.mjs +0 -2
  625. package/esm2020/src/lib/components/radio-button/lib/core/interfaces/element-group.interface.mjs +0 -2
  626. package/esm2020/src/lib/components/radio-button/lib/core/interfaces/element-option.interface.mjs +0 -2
  627. package/esm2020/src/lib/components/report-item/public-api.mjs +0 -6
  628. package/esm2020/src/lib/components/report-item/src/report-item.component.mjs +0 -32
  629. package/esm2020/src/lib/components/scale/lib/components/capability/public-api.mjs +0 -26
  630. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +0 -17
  631. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.module.mjs +0 -32
  632. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.mjs +0 -24
  633. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.mjs +0 -19
  634. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.mjs +0 -20
  635. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.mjs +0 -19
  636. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.mjs +0 -19
  637. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.mjs +0 -19
  638. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.component.mjs +0 -73
  639. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.module.mjs +0 -64
  640. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.component.mjs +0 -31
  641. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.module.mjs +0 -22
  642. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.component.mjs +0 -27
  643. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.module.mjs +0 -22
  644. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.component.mjs +0 -14
  645. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.module.mjs +0 -18
  646. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.mjs +0 -33
  647. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.mjs +0 -21
  648. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.mjs +0 -27
  649. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.mjs +0 -21
  650. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/consts/capability-classification.const.mjs +0 -57
  651. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-classification.interface.mjs +0 -2
  652. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.mjs +0 -2
  653. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/index.mjs +0 -4
  654. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/services/capability-classification.service.mjs +0 -14
  655. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/services/reusable-interval-bar.service.mjs +0 -32
  656. package/esm2020/src/lib/components/scale/lib/components/dropdown/public-api.mjs +0 -6
  657. package/esm2020/src/lib/components/scale/lib/components/dropdown/src/dropdown.component.mjs +0 -191
  658. package/esm2020/src/lib/components/scale/lib/components/dropdown/src/dropdown.module.mjs +0 -75
  659. package/esm2020/src/lib/components/scale/lib/components/tag/public-api.mjs +0 -6
  660. package/esm2020/src/lib/components/scale/lib/components/tag/src/tag.component.mjs +0 -14
  661. package/esm2020/src/lib/components/scale/lib/components/tag/src/tag.module.mjs +0 -24
  662. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.component.mjs +0 -21
  663. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.directive.mjs +0 -140
  664. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.enums.mjs +0 -16
  665. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.module.mjs +0 -19
  666. package/esm2020/src/lib/components/scale/lib/core/elements/action-button.mjs +0 -2
  667. package/esm2020/src/lib/components/scale/lib/core/elements/dropdown.mjs +0 -8
  668. package/esm2020/src/lib/components/scale/lib/core/elements/element-base.mjs +0 -37
  669. package/esm2020/src/lib/components/scale/lib/core/elements/element-search.mjs +0 -2
  670. package/esm2020/src/lib/components/scale/lib/core/elements/errors.mjs +0 -2
  671. package/esm2020/src/lib/components/scale/lib/core/interfaces/classification.interface.mjs +0 -2
  672. package/esm2020/src/lib/components/scale/lib/core/interfaces/element-group.interface.mjs +0 -2
  673. package/esm2020/src/lib/components/scale/lib/core/interfaces/element-option.interface.mjs +0 -2
  674. package/esm2020/src/lib/components/scale-parameterization/filters.mjs +0 -7
  675. package/esm2020/src/lib/components/scale-parameterization/lib/components/button/public-api.mjs +0 -6
  676. package/esm2020/src/lib/components/scale-parameterization/lib/components/button/src/button.component.mjs +0 -23
  677. package/esm2020/src/lib/components/scale-parameterization/lib/components/button/src/button.module.mjs +0 -19
  678. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/public-api.mjs +0 -26
  679. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +0 -17
  680. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative/capability-comparative.module.mjs +0 -32
  681. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.mjs +0 -24
  682. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.mjs +0 -19
  683. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.mjs +0 -20
  684. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.mjs +0 -19
  685. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.mjs +0 -19
  686. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.mjs +0 -19
  687. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-detail/capability-detail.component.mjs +0 -73
  688. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-detail/capability-detail.module.mjs +0 -64
  689. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-dot/capability-dot.component.mjs +0 -31
  690. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-dot/capability-dot.module.mjs +0 -22
  691. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-expand/capability-expand.component.mjs +0 -27
  692. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-expand/capability-expand.module.mjs +0 -22
  693. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator/capability-indicator.component.mjs +0 -14
  694. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator/capability-indicator.module.mjs +0 -18
  695. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.mjs +0 -33
  696. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.mjs +0 -21
  697. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.mjs +0 -27
  698. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.mjs +0 -21
  699. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval/capability-interval.component.mjs +0 -81
  700. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval/capability-interval.module.mjs +0 -18
  701. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.mjs +0 -31
  702. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval-bar/capability-interval-bar.module.mjs +0 -20
  703. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/consts/capability-classification.const.mjs +0 -57
  704. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability-classification.interface.mjs +0 -2
  705. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.mjs +0 -2
  706. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability-item.interface.mjs +0 -2
  707. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability.interface.mjs +0 -2
  708. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/index.mjs +0 -4
  709. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/services/capability-classification.service.mjs +0 -14
  710. package/esm2020/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/services/reusable-interval-bar.service.mjs +0 -32
  711. package/esm2020/src/lib/components/scale-parameterization/lib/components/dropdown/public-api.mjs +0 -6
  712. package/esm2020/src/lib/components/scale-parameterization/lib/components/dropdown/src/dropdown.component.mjs +0 -191
  713. package/esm2020/src/lib/components/scale-parameterization/lib/components/dropdown/src/dropdown.module.mjs +0 -75
  714. package/esm2020/src/lib/components/scale-parameterization/lib/components/filters/public-api.mjs +0 -6
  715. package/esm2020/src/lib/components/scale-parameterization/lib/components/filters/src/filters.component.mjs +0 -34
  716. package/esm2020/src/lib/components/scale-parameterization/lib/components/filters/src/filters.module.mjs +0 -38
  717. package/esm2020/src/lib/components/scale-parameterization/lib/components/icon/public-api.mjs +0 -6
  718. package/esm2020/src/lib/components/scale-parameterization/lib/components/icon/src/icon.component.mjs +0 -26
  719. package/esm2020/src/lib/components/scale-parameterization/lib/components/icon/src/icon.module.mjs +0 -19
  720. package/esm2020/src/lib/components/scale-parameterization/lib/components/tag/public-api.mjs +0 -6
  721. package/esm2020/src/lib/components/scale-parameterization/lib/components/tag/src/tag.module.mjs +0 -24
  722. package/esm2020/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.component.mjs +0 -21
  723. package/esm2020/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.directive.mjs +0 -140
  724. package/esm2020/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.enums.mjs +0 -16
  725. package/esm2020/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.module.mjs +0 -19
  726. package/esm2020/src/lib/components/scale-parameterization/lib/core/elements/action-button.mjs +0 -2
  727. package/esm2020/src/lib/components/scale-parameterization/lib/core/elements/dropdown.mjs +0 -8
  728. package/esm2020/src/lib/components/scale-parameterization/lib/core/elements/element-base.mjs +0 -37
  729. package/esm2020/src/lib/components/scale-parameterization/lib/core/elements/element-search.mjs +0 -2
  730. package/esm2020/src/lib/components/scale-parameterization/lib/core/elements/errors.mjs +0 -2
  731. package/esm2020/src/lib/components/scale-parameterization/lib/core/interfaces/classification.interface.mjs +0 -2
  732. package/esm2020/src/lib/components/scale-parameterization/lib/core/interfaces/element-group.interface.mjs +0 -2
  733. package/esm2020/src/lib/components/scale-parameterization/lib/core/interfaces/element-option.interface.mjs +0 -2
  734. package/esm2020/src/lib/components/slide-toggle/lib/core/elements/action-button.mjs +0 -2
  735. package/esm2020/src/lib/components/slide-toggle/lib/core/elements/element-base.mjs +0 -37
  736. package/esm2020/src/lib/components/slide-toggle/lib/core/elements/element-search.mjs +0 -2
  737. package/esm2020/src/lib/components/slide-toggle/lib/core/elements/errors.mjs +0 -2
  738. package/esm2020/src/lib/components/slide-toggle/lib/core/interfaces/element-group.interface.mjs +0 -2
  739. package/esm2020/src/lib/components/slide-toggle/lib/core/interfaces/element-option.interface.mjs +0 -2
  740. package/esm2020/src/lib/components/svg-icon/lib/components/svg-icon/src/safe-html.pipe.mjs +0 -20
  741. package/esm2020/src/lib/components/table/lib/components/svg-icon/src/safe-html.pipe.mjs +0 -20
  742. package/esm2020/src/lib/components/table/lib/components/svg-icon/src/svg-icon.component.mjs +0 -48
  743. package/esm2020/src/lib/components/table/lib/components/svg-icon/src/svg-icon.module.mjs +0 -19
  744. package/esm2020/src/lib/components/tag/public-api.mjs +0 -6
  745. package/esm2020/src/lib/components/tag/src/tag.component.mjs +0 -14
  746. package/esm2020/src/lib/components/tag/src/tag.module.mjs +0 -24
  747. package/esm2020/src/lib/components/textarea/lib/core/elements/action-button.mjs +0 -2
  748. package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +0 -37
  749. package/esm2020/src/lib/components/textarea/lib/core/elements/element-search.mjs +0 -2
  750. package/esm2020/src/lib/components/textarea/lib/core/elements/textarea.mjs +0 -8
  751. package/esm2020/src/lib/components/textarea/lib/core/interfaces/element-group.interface.mjs +0 -2
  752. package/esm2020/src/lib/components/textarea/lib/core/interfaces/element-option.interface.mjs +0 -2
  753. package/esm2020/src/lib/components/tooltip/public-api.mjs +0 -7
  754. package/esm2020/src/lib/components/tooltip/src/tooltip.component.mjs +0 -21
  755. package/esm2020/src/lib/components/tooltip/src/tooltip.directive.mjs +0 -140
  756. package/esm2020/src/lib/components/tooltip/src/tooltip.enums.mjs +0 -16
  757. package/esm2020/src/lib/components/tooltip/src/tooltip.module.mjs +0 -19
  758. package/esm2020/src/lib/components/warning/public-api.mjs +0 -6
  759. package/esm2020/src/lib/components/warning/src/warning.component.mjs +0 -37
  760. package/mapa-library-ui-0.77.4.tgz +0 -0
  761. package/src/lib/components/button-icon/lib/core/interfaces/button-icon.interface.d.ts +0 -6
  762. package/src/lib/components/chart/lib/components/button/public-api.d.ts +0 -2
  763. package/src/lib/components/chart/lib/components/button/src/button.component.d.ts +0 -10
  764. package/src/lib/components/chart/lib/components/button/src/button.module.d.ts +0 -9
  765. package/src/lib/components/chart/lib/components/dropdown/public-api.d.ts +0 -2
  766. package/src/lib/components/chart/lib/components/dropdown/src/dropdown.component.d.ts +0 -45
  767. package/src/lib/components/chart/lib/components/dropdown/src/dropdown.module.d.ts +0 -16
  768. package/src/lib/components/chart/lib/core/elements/dropdown.d.ts +0 -4
  769. package/src/lib/components/chart/lib/core/interfaces/chart-options.interface.d.ts +0 -19
  770. package/src/lib/components/dialog/lib/core/interfaces/dialog-data.interface.d.ts +0 -11
  771. package/src/lib/components/dropdown/lib/components/button/public-api.d.ts +0 -2
  772. package/src/lib/components/dropdown/lib/components/button/src/button.component.d.ts +0 -10
  773. package/src/lib/components/dropdown/lib/components/button/src/button.module.d.ts +0 -9
  774. package/src/lib/components/dropdown/lib/components/dropdown-tree/public-api.d.ts +0 -2
  775. package/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.component.d.ts +0 -37
  776. package/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.module.d.ts +0 -12
  777. package/src/lib/components/dropdown/lib/core/elements/dropdown-tree.d.ts +0 -4
  778. package/src/lib/components/dropdown/lib/core/elements/index.d.ts +0 -9
  779. package/src/lib/components/dropdown/lib/core/elements/input-text.d.ts +0 -4
  780. package/src/lib/components/dropdown/lib/core/elements/radio-button.d.ts +0 -4
  781. package/src/lib/components/dropdown/lib/core/elements/slide-toggle.d.ts +0 -4
  782. package/src/lib/components/dropdown/lib/core/elements/textarea.d.ts +0 -4
  783. package/src/lib/components/dropdown/lib/core/interfaces/button-icon.interface.d.ts +0 -6
  784. package/src/lib/components/dropdown/lib/core/interfaces/chart-options.interface.d.ts +0 -19
  785. package/src/lib/components/dropdown/lib/core/interfaces/classification.interface.d.ts +0 -6
  786. package/src/lib/components/dropdown/lib/core/interfaces/dialog-data.interface.d.ts +0 -11
  787. package/src/lib/components/dropdown/lib/core/interfaces/index.d.ts +0 -6
  788. package/src/lib/components/dropdown/lib/core/interfaces/table-column.interface.d.ts +0 -19
  789. package/src/lib/components/dropdown/lib/core/interfaces/table-row-click-event.interface.d.ts +0 -4
  790. package/src/lib/components/dropdown-tree/lib/components/button/public-api.d.ts +0 -2
  791. package/src/lib/components/dropdown-tree/lib/components/button/src/button.component.d.ts +0 -10
  792. package/src/lib/components/dropdown-tree/lib/components/button/src/button.module.d.ts +0 -9
  793. package/src/lib/components/dropdown-tree/lib/components/dropdown/public-api.d.ts +0 -2
  794. package/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.component.d.ts +0 -45
  795. package/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.module.d.ts +0 -16
  796. package/src/lib/components/dropdown-tree/lib/core/elements/index.d.ts +0 -9
  797. package/src/lib/components/dropdown-tree/lib/core/elements/radio-button.d.ts +0 -4
  798. package/src/lib/components/dropdown-tree/lib/core/elements/slide-toggle.d.ts +0 -4
  799. package/src/lib/components/dropdown-tree/lib/core/elements/textarea.d.ts +0 -4
  800. package/src/lib/components/dropdown-tree/lib/core/interfaces/button-icon.interface.d.ts +0 -6
  801. package/src/lib/components/dropdown-tree/lib/core/interfaces/chart-options.interface.d.ts +0 -19
  802. package/src/lib/components/dropdown-tree/lib/core/interfaces/dialog-data.interface.d.ts +0 -11
  803. package/src/lib/components/dropdown-tree/lib/core/interfaces/index.d.ts +0 -6
  804. package/src/lib/components/dropdown-tree/lib/core/interfaces/table-row-click-event.interface.d.ts +0 -4
  805. package/src/lib/components/form/lib/core/elements/dropdown-tree.d.ts +0 -4
  806. package/src/lib/components/form/lib/core/elements/dropdown.d.ts +0 -4
  807. package/src/lib/components/form/lib/core/elements/index.d.ts +0 -9
  808. package/src/lib/components/form/lib/core/elements/radio-button.d.ts +0 -4
  809. package/src/lib/components/form/lib/core/elements/slide-toggle.d.ts +0 -4
  810. package/src/lib/components/form/lib/core/elements/textarea.d.ts +0 -4
  811. package/src/lib/components/form/lib/core/interfaces/button-icon.interface.d.ts +0 -6
  812. package/src/lib/components/form/lib/core/interfaces/chart-options.interface.d.ts +0 -19
  813. package/src/lib/components/form/lib/core/interfaces/classification.interface.d.ts +0 -6
  814. package/src/lib/components/form/lib/core/interfaces/dialog-data.interface.d.ts +0 -11
  815. package/src/lib/components/form/lib/core/interfaces/index.d.ts +0 -6
  816. package/src/lib/components/form/lib/core/interfaces/table-column.interface.d.ts +0 -19
  817. package/src/lib/components/form/lib/core/interfaces/table-row-click-event.interface.d.ts +0 -4
  818. package/src/lib/components/group-report/filters.d.ts +0 -3
  819. package/src/lib/components/group-report/lib/components/button/public-api.d.ts +0 -2
  820. package/src/lib/components/group-report/lib/components/button/src/button.component.d.ts +0 -10
  821. package/src/lib/components/group-report/lib/components/button/src/button.module.d.ts +0 -9
  822. package/src/lib/components/group-report/lib/components/capability/public-api.d.ts +0 -22
  823. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +0 -10
  824. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative/capability-comparative.module.d.ts +0 -11
  825. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.d.ts +0 -9
  826. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.d.ts +0 -9
  827. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.d.ts +0 -9
  828. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.d.ts +0 -9
  829. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.d.ts +0 -9
  830. package/src/lib/components/group-report/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.d.ts +0 -9
  831. package/src/lib/components/group-report/lib/components/capability/src/capability-detail/capability-detail.component.d.ts +0 -29
  832. package/src/lib/components/group-report/lib/components/capability/src/capability-detail/capability-detail.module.d.ts +0 -17
  833. package/src/lib/components/group-report/lib/components/capability/src/capability-dot/capability-dot.component.d.ts +0 -17
  834. package/src/lib/components/group-report/lib/components/capability/src/capability-dot/capability-dot.module.d.ts +0 -10
  835. package/src/lib/components/group-report/lib/components/capability/src/capability-expand/capability-expand.component.d.ts +0 -16
  836. package/src/lib/components/group-report/lib/components/capability/src/capability-expand/capability-expand.module.d.ts +0 -10
  837. package/src/lib/components/group-report/lib/components/capability/src/capability-indicator/capability-indicator.component.d.ts +0 -7
  838. package/src/lib/components/group-report/lib/components/capability/src/capability-indicator/capability-indicator.module.d.ts +0 -8
  839. package/src/lib/components/group-report/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.d.ts +0 -12
  840. package/src/lib/components/group-report/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.d.ts +0 -9
  841. package/src/lib/components/group-report/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.d.ts +0 -14
  842. package/src/lib/components/group-report/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.d.ts +0 -9
  843. package/src/lib/components/group-report/lib/components/capability/src/capability-interval/capability-interval.component.d.ts +0 -29
  844. package/src/lib/components/group-report/lib/components/capability/src/capability-interval/capability-interval.module.d.ts +0 -8
  845. package/src/lib/components/group-report/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.d.ts +0 -16
  846. package/src/lib/components/group-report/lib/components/capability/src/capability-interval-bar/capability-interval-bar.module.d.ts +0 -10
  847. package/src/lib/components/group-report/lib/components/capability/src/essentials/consts/capability-classification.const.d.ts +0 -2
  848. package/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability-classification.interface.d.ts +0 -6
  849. package/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.d.ts +0 -10
  850. package/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability-item.interface.d.ts +0 -20
  851. package/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/capability.interface.d.ts +0 -8
  852. package/src/lib/components/group-report/lib/components/capability/src/essentials/interfaces/index.d.ts +0 -3
  853. package/src/lib/components/group-report/lib/components/capability/src/essentials/services/capability-classification.service.d.ts +0 -8
  854. package/src/lib/components/group-report/lib/components/capability/src/essentials/services/reusable-interval-bar.service.d.ts +0 -15
  855. package/src/lib/components/group-report/lib/components/dropdown/public-api.d.ts +0 -2
  856. package/src/lib/components/group-report/lib/components/dropdown/src/dropdown.component.d.ts +0 -45
  857. package/src/lib/components/group-report/lib/components/dropdown/src/dropdown.module.d.ts +0 -16
  858. package/src/lib/components/group-report/lib/components/filters/public-api.d.ts +0 -2
  859. package/src/lib/components/group-report/lib/components/filters/src/filters.component.d.ts +0 -14
  860. package/src/lib/components/group-report/lib/components/filters/src/filters.module.d.ts +0 -12
  861. package/src/lib/components/group-report/lib/components/tag/public-api.d.ts +0 -2
  862. package/src/lib/components/group-report/lib/core/elements/action-button.d.ts +0 -5
  863. package/src/lib/components/group-report/lib/core/elements/dropdown.d.ts +0 -4
  864. package/src/lib/components/group-report/lib/core/elements/element-base.d.ts +0 -75
  865. package/src/lib/components/group-report/lib/core/elements/element-search.d.ts +0 -7
  866. package/src/lib/components/group-report/lib/core/elements/errors.d.ts +0 -12
  867. package/src/lib/components/group-report/lib/core/interfaces/classification.interface.d.ts +0 -6
  868. package/src/lib/components/group-report/lib/core/interfaces/element-group.interface.d.ts +0 -5
  869. package/src/lib/components/group-report/lib/core/interfaces/element-option.interface.d.ts +0 -6
  870. package/src/lib/components/group-report/lib/core/interfaces/table-column.interface.d.ts +0 -19
  871. package/src/lib/components/icon/public-api.d.ts +0 -2
  872. package/src/lib/components/icon/src/icon.component.d.ts +0 -13
  873. package/src/lib/components/icon/src/icon.module.d.ts +0 -9
  874. package/src/lib/components/nav-list/lib/core/interfaces/element-option.interface.d.ts +0 -6
  875. package/src/lib/components/radio-button/lib/core/elements/action-button.d.ts +0 -5
  876. package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +0 -75
  877. package/src/lib/components/radio-button/lib/core/elements/element-search.d.ts +0 -7
  878. package/src/lib/components/radio-button/lib/core/elements/errors.d.ts +0 -12
  879. package/src/lib/components/radio-button/lib/core/interfaces/element-group.interface.d.ts +0 -5
  880. package/src/lib/components/radio-button/lib/core/interfaces/element-option.interface.d.ts +0 -6
  881. package/src/lib/components/report-item/src/report-item.component.d.ts +0 -18
  882. package/src/lib/components/scale/lib/components/capability/public-api.d.ts +0 -22
  883. package/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +0 -10
  884. package/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.module.d.ts +0 -11
  885. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.d.ts +0 -9
  886. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.d.ts +0 -9
  887. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.d.ts +0 -9
  888. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.d.ts +0 -9
  889. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.d.ts +0 -9
  890. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.d.ts +0 -9
  891. package/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.component.d.ts +0 -29
  892. package/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.module.d.ts +0 -17
  893. package/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.component.d.ts +0 -17
  894. package/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.module.d.ts +0 -10
  895. package/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.component.d.ts +0 -16
  896. package/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.module.d.ts +0 -10
  897. package/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.component.d.ts +0 -7
  898. package/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.module.d.ts +0 -8
  899. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.d.ts +0 -12
  900. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.d.ts +0 -9
  901. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.d.ts +0 -14
  902. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.d.ts +0 -9
  903. package/src/lib/components/scale/lib/components/capability/src/essentials/consts/capability-classification.const.d.ts +0 -2
  904. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-classification.interface.d.ts +0 -6
  905. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.d.ts +0 -10
  906. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/index.d.ts +0 -3
  907. package/src/lib/components/scale/lib/components/capability/src/essentials/services/capability-classification.service.d.ts +0 -8
  908. package/src/lib/components/scale/lib/components/capability/src/essentials/services/reusable-interval-bar.service.d.ts +0 -15
  909. package/src/lib/components/scale/lib/components/dropdown/public-api.d.ts +0 -2
  910. package/src/lib/components/scale/lib/components/dropdown/src/dropdown.component.d.ts +0 -45
  911. package/src/lib/components/scale/lib/components/dropdown/src/dropdown.module.d.ts +0 -16
  912. package/src/lib/components/scale/lib/components/tag/public-api.d.ts +0 -2
  913. package/src/lib/components/scale/lib/components/tag/src/tag.component.d.ts +0 -12
  914. package/src/lib/components/scale/lib/components/tag/src/tag.module.d.ts +0 -8
  915. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.component.d.ts +0 -15
  916. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.directive.d.ts +0 -32
  917. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.enums.d.ts +0 -13
  918. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.module.d.ts +0 -9
  919. package/src/lib/components/scale/lib/core/elements/action-button.d.ts +0 -5
  920. package/src/lib/components/scale/lib/core/elements/dropdown.d.ts +0 -4
  921. package/src/lib/components/scale/lib/core/elements/element-base.d.ts +0 -75
  922. package/src/lib/components/scale/lib/core/elements/element-search.d.ts +0 -7
  923. package/src/lib/components/scale/lib/core/elements/errors.d.ts +0 -12
  924. package/src/lib/components/scale/lib/core/interfaces/classification.interface.d.ts +0 -6
  925. package/src/lib/components/scale/lib/core/interfaces/element-group.interface.d.ts +0 -5
  926. package/src/lib/components/scale/lib/core/interfaces/element-option.interface.d.ts +0 -6
  927. package/src/lib/components/scale-parameterization/filters.d.ts +0 -3
  928. package/src/lib/components/scale-parameterization/lib/components/button/public-api.d.ts +0 -2
  929. package/src/lib/components/scale-parameterization/lib/components/button/src/button.component.d.ts +0 -10
  930. package/src/lib/components/scale-parameterization/lib/components/button/src/button.module.d.ts +0 -9
  931. package/src/lib/components/scale-parameterization/lib/components/capability/public-api.d.ts +0 -22
  932. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +0 -10
  933. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative/capability-comparative.module.d.ts +0 -11
  934. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.d.ts +0 -9
  935. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.d.ts +0 -9
  936. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.d.ts +0 -9
  937. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.d.ts +0 -9
  938. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.d.ts +0 -9
  939. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.d.ts +0 -9
  940. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-detail/capability-detail.component.d.ts +0 -29
  941. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-detail/capability-detail.module.d.ts +0 -17
  942. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-dot/capability-dot.component.d.ts +0 -17
  943. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-dot/capability-dot.module.d.ts +0 -10
  944. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-expand/capability-expand.component.d.ts +0 -16
  945. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-expand/capability-expand.module.d.ts +0 -10
  946. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator/capability-indicator.component.d.ts +0 -7
  947. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator/capability-indicator.module.d.ts +0 -8
  948. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.d.ts +0 -12
  949. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.d.ts +0 -9
  950. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.d.ts +0 -14
  951. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.d.ts +0 -9
  952. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval/capability-interval.component.d.ts +0 -29
  953. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval/capability-interval.module.d.ts +0 -8
  954. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.d.ts +0 -16
  955. package/src/lib/components/scale-parameterization/lib/components/capability/src/capability-interval-bar/capability-interval-bar.module.d.ts +0 -10
  956. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/consts/capability-classification.const.d.ts +0 -2
  957. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability-classification.interface.d.ts +0 -6
  958. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.d.ts +0 -10
  959. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability-item.interface.d.ts +0 -20
  960. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/capability.interface.d.ts +0 -8
  961. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/interfaces/index.d.ts +0 -3
  962. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/services/capability-classification.service.d.ts +0 -8
  963. package/src/lib/components/scale-parameterization/lib/components/capability/src/essentials/services/reusable-interval-bar.service.d.ts +0 -15
  964. package/src/lib/components/scale-parameterization/lib/components/dropdown/public-api.d.ts +0 -2
  965. package/src/lib/components/scale-parameterization/lib/components/dropdown/src/dropdown.component.d.ts +0 -45
  966. package/src/lib/components/scale-parameterization/lib/components/dropdown/src/dropdown.module.d.ts +0 -16
  967. package/src/lib/components/scale-parameterization/lib/components/filters/public-api.d.ts +0 -2
  968. package/src/lib/components/scale-parameterization/lib/components/filters/src/filters.component.d.ts +0 -14
  969. package/src/lib/components/scale-parameterization/lib/components/filters/src/filters.module.d.ts +0 -12
  970. package/src/lib/components/scale-parameterization/lib/components/icon/public-api.d.ts +0 -2
  971. package/src/lib/components/scale-parameterization/lib/components/icon/src/icon.component.d.ts +0 -13
  972. package/src/lib/components/scale-parameterization/lib/components/icon/src/icon.module.d.ts +0 -9
  973. package/src/lib/components/scale-parameterization/lib/components/tag/public-api.d.ts +0 -2
  974. package/src/lib/components/scale-parameterization/lib/components/tag/src/tag.component.d.ts +0 -12
  975. package/src/lib/components/scale-parameterization/lib/components/tag/src/tag.module.d.ts +0 -8
  976. package/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.component.d.ts +0 -15
  977. package/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.directive.d.ts +0 -32
  978. package/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.enums.d.ts +0 -13
  979. package/src/lib/components/scale-parameterization/lib/components/tooltip/src/tooltip.module.d.ts +0 -9
  980. package/src/lib/components/scale-parameterization/lib/core/elements/action-button.d.ts +0 -5
  981. package/src/lib/components/scale-parameterization/lib/core/elements/dropdown.d.ts +0 -4
  982. package/src/lib/components/scale-parameterization/lib/core/elements/element-base.d.ts +0 -75
  983. package/src/lib/components/scale-parameterization/lib/core/elements/element-search.d.ts +0 -7
  984. package/src/lib/components/scale-parameterization/lib/core/elements/errors.d.ts +0 -12
  985. package/src/lib/components/scale-parameterization/lib/core/interfaces/classification.interface.d.ts +0 -6
  986. package/src/lib/components/scale-parameterization/lib/core/interfaces/element-group.interface.d.ts +0 -5
  987. package/src/lib/components/scale-parameterization/lib/core/interfaces/element-option.interface.d.ts +0 -6
  988. package/src/lib/components/slide-toggle/lib/core/elements/action-button.d.ts +0 -5
  989. package/src/lib/components/slide-toggle/lib/core/elements/element-base.d.ts +0 -75
  990. package/src/lib/components/slide-toggle/lib/core/elements/element-search.d.ts +0 -7
  991. package/src/lib/components/slide-toggle/lib/core/elements/errors.d.ts +0 -12
  992. package/src/lib/components/slide-toggle/lib/core/interfaces/element-group.interface.d.ts +0 -5
  993. package/src/lib/components/slide-toggle/lib/core/interfaces/element-option.interface.d.ts +0 -6
  994. package/src/lib/components/svg-icon/lib/components/svg-icon/src/safe-html.pipe.d.ts +0 -10
  995. package/src/lib/components/table/lib/components/menu/public-api.d.ts +0 -2
  996. package/src/lib/components/table/lib/components/menu/src/menu.component.d.ts +0 -22
  997. package/src/lib/components/table/lib/components/menu/src/menu.module.d.ts +0 -11
  998. package/src/lib/components/table/lib/components/svg-icon/public-api.d.ts +0 -2
  999. package/src/lib/components/table/lib/components/svg-icon/src/safe-html.pipe.d.ts +0 -10
  1000. package/src/lib/components/table/lib/components/svg-icon/src/svg-icon.component.d.ts +0 -14
  1001. package/src/lib/components/table/lib/components/svg-icon/src/svg-icon.module.d.ts +0 -9
  1002. package/src/lib/components/tag/public-api.d.ts +0 -2
  1003. package/src/lib/components/tag/src/tag.component.d.ts +0 -12
  1004. package/src/lib/components/tag/src/tag.module.d.ts +0 -8
  1005. package/src/lib/components/textarea/lib/core/elements/action-button.d.ts +0 -5
  1006. package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +0 -75
  1007. package/src/lib/components/textarea/lib/core/elements/element-search.d.ts +0 -7
  1008. package/src/lib/components/textarea/lib/core/elements/textarea.d.ts +0 -4
  1009. package/src/lib/components/textarea/lib/core/interfaces/element-group.interface.d.ts +0 -5
  1010. package/src/lib/components/textarea/lib/core/interfaces/element-option.interface.d.ts +0 -6
  1011. package/src/lib/components/tooltip/src/tooltip.component.d.ts +0 -15
  1012. package/src/lib/components/tooltip/src/tooltip.directive.d.ts +0 -32
  1013. package/src/lib/components/tooltip/src/tooltip.enums.d.ts +0 -13
  1014. package/src/lib/components/tooltip/src/tooltip.module.d.ts +0 -9
  1015. /package/esm2020/src/lib/components/{chart → button}/lib/components/button/public-api.mjs +0 -0
  1016. /package/esm2020/src/lib/components/{chart → button}/lib/components/button/src/button.module.mjs +0 -0
  1017. /package/esm2020/src/lib/components/{group-report → icon}/lib/components/icon/public-api.mjs +0 -0
  1018. /package/esm2020/src/lib/components/{group-report → icon}/lib/components/icon/src/icon.component.mjs +0 -0
  1019. /package/esm2020/src/lib/components/{group-report → icon}/lib/components/icon/src/icon.module.mjs +0 -0
  1020. /package/esm2020/src/lib/components/{chart → input}/lib/core/elements/action-button.mjs +0 -0
  1021. /package/esm2020/src/lib/components/{chart → input}/lib/core/elements/element-base.mjs +0 -0
  1022. /package/esm2020/src/lib/components/{chart → input}/lib/core/elements/element-search.mjs +0 -0
  1023. /package/esm2020/src/lib/components/{dropdown-tree → input}/lib/core/elements/input-text.mjs +0 -0
  1024. /package/esm2020/src/lib/components/{chart → input}/lib/core/interfaces/element-group.interface.mjs +0 -0
  1025. /package/esm2020/src/lib/components/{chart → input}/lib/core/interfaces/element-option.interface.mjs +0 -0
  1026. /package/esm2020/src/lib/components/{table → menu}/lib/components/menu/public-api.mjs +0 -0
  1027. /package/esm2020/src/lib/components/{table → menu}/lib/components/menu/src/menu.component.mjs +0 -0
  1028. /package/esm2020/src/lib/components/{capability → tag}/lib/components/tag/public-api.mjs +0 -0
  1029. /package/esm2020/src/lib/components/{group-report → tag}/lib/components/tag/src/tag.module.mjs +0 -0
  1030. /package/esm2020/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.component.mjs +0 -0
  1031. /package/esm2020/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.directive.mjs +0 -0
  1032. /package/esm2020/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.enums.mjs +0 -0
  1033. /package/esm2020/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.module.mjs +0 -0
  1034. /package/{src/lib/components/dropdown-tree/lib → lib}/core/interfaces/classification.interface.d.ts +0 -0
  1035. /package/{src/lib/components/dropdown-tree/lib → lib}/core/interfaces/table-column.interface.d.ts +0 -0
  1036. /package/src/lib/components/button/{public-api.d.ts → lib/components/button/public-api.d.ts} +0 -0
  1037. /package/src/lib/components/button/{src → lib/components/button/src}/button.component.d.ts +0 -0
  1038. /package/src/lib/components/button/{src → lib/components/button/src}/button.module.d.ts +0 -0
  1039. /package/src/lib/components/checkbox/{public-api.d.ts → lib/components/checkbox/public-api.d.ts} +0 -0
  1040. /package/src/lib/components/checkbox/{src → lib/components/checkbox/src}/checkbox.component.d.ts +0 -0
  1041. /package/src/lib/components/checkbox/{src → lib/components/checkbox/src}/checkbox.module.d.ts +0 -0
  1042. /package/src/lib/components/datepicker/{public-api.d.ts → lib/components/datepicker/public-api.d.ts} +0 -0
  1043. /package/src/lib/components/datepicker/{src → lib/components/datepicker/src}/datepicker.module.d.ts +0 -0
  1044. /package/src/lib/components/empty/{public-api.d.ts → lib/components/empty/public-api.d.ts} +0 -0
  1045. /package/src/lib/components/empty/{src → lib/components/empty/src}/empty.component.d.ts +0 -0
  1046. /package/src/lib/components/{group-report → icon}/lib/components/icon/public-api.d.ts +0 -0
  1047. /package/src/lib/components/{group-report → icon}/lib/components/icon/src/icon.component.d.ts +0 -0
  1048. /package/src/lib/components/{group-report → icon}/lib/components/icon/src/icon.module.d.ts +0 -0
  1049. /package/src/lib/components/input/{public-api.d.ts → lib/components/input/public-api.d.ts} +0 -0
  1050. /package/src/lib/components/{chart → input}/lib/core/elements/action-button.d.ts +0 -0
  1051. /package/src/lib/components/{chart → input}/lib/core/elements/element-base.d.ts +0 -0
  1052. /package/src/lib/components/{chart → input}/lib/core/elements/element-search.d.ts +0 -0
  1053. /package/src/lib/components/{dropdown-tree → input}/lib/core/elements/input-text.d.ts +0 -0
  1054. /package/src/lib/components/{chart → input}/lib/core/interfaces/element-group.interface.d.ts +0 -0
  1055. /package/src/lib/components/{chart → input}/lib/core/interfaces/element-option.interface.d.ts +0 -0
  1056. /package/src/lib/components/menu/{public-api.d.ts → lib/components/menu/public-api.d.ts} +0 -0
  1057. /package/src/lib/components/menu/{src → lib/components/menu/src}/menu.component.d.ts +0 -0
  1058. /package/src/lib/components/menu/{src → lib/components/menu/src}/menu.module.d.ts +0 -0
  1059. /package/src/lib/components/report-item/{public-api.d.ts → lib/components/report-item/public-api.d.ts} +0 -0
  1060. /package/src/lib/components/report-item/{src → lib/components/report-item/src}/report-item.module.d.ts +0 -0
  1061. /package/src/lib/components/{capability → tag}/lib/components/tag/public-api.d.ts +0 -0
  1062. /package/src/lib/components/{group-report → tag}/lib/components/tag/src/tag.component.d.ts +0 -0
  1063. /package/src/lib/components/{group-report → tag}/lib/components/tag/src/tag.module.d.ts +0 -0
  1064. /package/src/lib/components/tooltip/{public-api.d.ts → lib/components/tooltip/public-api.d.ts} +0 -0
  1065. /package/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.component.d.ts +0 -0
  1066. /package/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.directive.d.ts +0 -0
  1067. /package/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.enums.d.ts +0 -0
  1068. /package/src/lib/components/{group-report → tooltip}/lib/components/tooltip/src/tooltip.module.d.ts +0 -0
  1069. /package/src/lib/components/warning/{public-api.d.ts → lib/components/warning/public-api.d.ts} +0 -0
  1070. /package/src/lib/components/warning/{src → lib/components/warning/src}/warning.module.d.ts +0 -0
@@ -1,36 +1,156 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Host, Self, Optional, EventEmitter, Component, Input, Output, ViewChild, Pipe, ViewEncapsulation, NgModule } from '@angular/core';
2
+ import { InjectionToken, Injectable, Optional, Inject, Directive, Host, Self, SecurityContext, Pipe, EventEmitter, Component, ViewEncapsulation, Input, ViewChild, Output, NgModule } from '@angular/core';
3
+ import { BehaviorSubject, Subject } from 'rxjs';
4
+ import { takeUntil } from 'rxjs/operators';
3
5
  import * as i1 from '@angular/material/paginator';
4
6
  import { MatPaginatorIntl, MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
5
7
  import moment from 'moment';
6
- import * as i10 from '@angular/material/sort';
8
+ import * as i11 from '@angular/material/sort';
7
9
  import { MatSort, MatSortModule } from '@angular/material/sort';
8
- import * as i9 from '@angular/material/table';
9
- import { MatTableDataSource, MatTableModule } from '@angular/material/table';
10
- import * as i2 from '@angular/material/menu';
10
+ import * as i10 from '@angular/material/table';
11
+ import { MatTableDataSource, MatTable, MatTableModule } from '@angular/material/table';
11
12
  import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
12
- import * as i1$1 from '@angular/common';
13
+ import * as i2 from '@angular/common';
13
14
  import { CommonModule } from '@angular/common';
14
- import * as i2$1 from '@angular/router';
15
+ import * as i3 from '@angular/router';
15
16
  import { RouterModule } from '@angular/router';
16
- import * as i3 from '@angular/material/icon';
17
- import { MatIconModule } from '@angular/material/icon';
18
- import * as i1$3 from '@angular/common/http';
19
- import * as i1$2 from '@angular/platform-browser';
20
- import * as i5 from '@angular/material/button';
17
+ import * as i4 from 'mapa-library-ui/src/lib/components/menu';
18
+ import { MapaMenuModule } from 'mapa-library-ui/src/lib/components/menu';
19
+ import * as i5 from 'mapa-library-ui/src/lib/components/svg-icon';
20
+ import { MapaSvgIconModule } from 'mapa-library-ui/src/lib/components/svg-icon';
21
+ import * as i6 from '@angular/material/button';
21
22
  import { MatButtonModule } from '@angular/material/button';
22
- import * as i6 from '@angular/material/checkbox';
23
+ import * as i7 from '@angular/material/checkbox';
23
24
  import { MatCheckboxModule } from '@angular/material/checkbox';
25
+ import * as i8 from '@angular/material/icon';
26
+ import { MatIconModule } from '@angular/material/icon';
27
+ import * as i1$1 from '@angular/platform-browser';
24
28
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
25
- import { MapaButtonModule } from 'mapa-library-ui/src/lib/components/button';
26
- import { CPFPipe } from 'mapa-library-ui';
29
+
30
+ const MAPA_UI_TEXTS = new InjectionToken("MAPA_UI_TEXTS");
31
+ const MAPA_UI_DEFAULT_TEXTS = {
32
+ common: {
33
+ selectAll: "Selecionar todos",
34
+ },
35
+ filters: {
36
+ clear: "Limpar filtros",
37
+ submit: "Filtrar",
38
+ },
39
+ datepicker: {
40
+ startDatePlaceholder: "Data inicial",
41
+ endDatePlaceholder: "Data final",
42
+ },
43
+ capability: {
44
+ groupAverageTitle: "Média geral do grupo",
45
+ individualAverageTitle: "Média geral do indivíduo",
46
+ conceptTitle: "Conceito",
47
+ resultTitle: "Resultado",
48
+ positiveIndicatorsTitle: "Indicadores positivos",
49
+ negativeIndicatorsTitle: "Indicadores negativos",
50
+ riskIndicatorsTitle: "Indicadores de risco",
51
+ precipitationRiskTitle: "Risco de acidente por precipitação",
52
+ negligenceRiskTitle: "Risco de acidente por negligência",
53
+ negativeDirectionLabel: "Direção Negativa |",
54
+ positiveDirectionLabel: "Direção Positiva |",
55
+ },
56
+ paginator: {
57
+ itemsPerPage: "Itens por página",
58
+ nextPage: "Próxima página",
59
+ previousPage: "Página anterior",
60
+ rangeLabel: (page, pageSize, length) => {
61
+ if (length === 0 || pageSize === 0) {
62
+ return `0 de ${length}`;
63
+ }
64
+ const startIndex = page * pageSize;
65
+ const endIndex = startIndex < length
66
+ ? Math.min(startIndex + pageSize, length)
67
+ : startIndex + pageSize;
68
+ return `${startIndex + 1} - ${endIndex} de ${length}`;
69
+ },
70
+ showingRangeLabel: (page, pageSize, length) => {
71
+ if (length === 0) {
72
+ return "Mostrando 0 - 0 de 0 item";
73
+ }
74
+ const startIndex = page * pageSize;
75
+ const endIndex = startIndex < length
76
+ ? Math.min(startIndex + pageSize, length)
77
+ : startIndex + pageSize;
78
+ const itemLabel = length === 1 ? "item" : "itens";
79
+ return `Mostrando ${startIndex + 1} - ${endIndex} de ${length} ${itemLabel}`;
80
+ },
81
+ },
82
+ validation: {
83
+ cnpj: "CNPJ inválido",
84
+ cpf: "CPF inválido",
85
+ email: "E-mail inválido",
86
+ max: (context) => { var _a; return `O valor máximo permitido é ${(_a = context === null || context === void 0 ? void 0 : context.max) !== null && _a !== void 0 ? _a : ""}`.trim(); },
87
+ maxLength: (context) => { var _a; return `O máximo permitido é ${(_a = context === null || context === void 0 ? void 0 : context.requiredLength) !== null && _a !== void 0 ? _a : ""} caracteres`.trim(); },
88
+ min: (context) => { var _a; return `O valor minimo permitido é ${(_a = context === null || context === void 0 ? void 0 : context.min) !== null && _a !== void 0 ? _a : ""}`.trim(); },
89
+ minLength: (context) => { var _a; return `O mínimo permitido é ${(_a = context === null || context === void 0 ? void 0 : context.requiredLength) !== null && _a !== void 0 ? _a : ""} caracteres`.trim(); },
90
+ pattern: "Formato inválido",
91
+ required: "Campo obrigatório",
92
+ },
93
+ };
94
+ function mergeMapaUiTexts(customTexts) {
95
+ var _a, _b, _c, _d, _e, _f;
96
+ return {
97
+ common: Object.assign(Object.assign({}, MAPA_UI_DEFAULT_TEXTS.common), ((_a = customTexts === null || customTexts === void 0 ? void 0 : customTexts.common) !== null && _a !== void 0 ? _a : {})),
98
+ filters: Object.assign(Object.assign({}, MAPA_UI_DEFAULT_TEXTS.filters), ((_b = customTexts === null || customTexts === void 0 ? void 0 : customTexts.filters) !== null && _b !== void 0 ? _b : {})),
99
+ datepicker: Object.assign(Object.assign({}, MAPA_UI_DEFAULT_TEXTS.datepicker), ((_c = customTexts === null || customTexts === void 0 ? void 0 : customTexts.datepicker) !== null && _c !== void 0 ? _c : {})),
100
+ capability: Object.assign(Object.assign({}, MAPA_UI_DEFAULT_TEXTS.capability), ((_d = customTexts === null || customTexts === void 0 ? void 0 : customTexts.capability) !== null && _d !== void 0 ? _d : {})),
101
+ paginator: Object.assign(Object.assign({}, MAPA_UI_DEFAULT_TEXTS.paginator), ((_e = customTexts === null || customTexts === void 0 ? void 0 : customTexts.paginator) !== null && _e !== void 0 ? _e : {})),
102
+ validation: Object.assign(Object.assign({}, MAPA_UI_DEFAULT_TEXTS.validation), ((_f = customTexts === null || customTexts === void 0 ? void 0 : customTexts.validation) !== null && _f !== void 0 ? _f : {})),
103
+ };
104
+ }
105
+ function provideMapaUiTexts(texts) {
106
+ return {
107
+ provide: MAPA_UI_TEXTS,
108
+ useValue: texts,
109
+ };
110
+ }
111
+
112
+ class MapaI18nService {
113
+ constructor(customTexts) {
114
+ this.textsSubject = new BehaviorSubject(mergeMapaUiTexts(customTexts));
115
+ this.texts$ = this.textsSubject.asObservable();
116
+ }
117
+ get texts() {
118
+ return this.textsSubject.value;
119
+ }
120
+ setTexts(texts) {
121
+ this.textsSubject.next(mergeMapaUiTexts(texts));
122
+ }
123
+ resolveValidationText(key, context) {
124
+ return this.resolveText(this.texts.validation[key], context);
125
+ }
126
+ resolveText(value, context) {
127
+ return typeof value === "function" ? value(context) : value;
128
+ }
129
+ }
130
+ MapaI18nService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaI18nService, deps: [{ token: MAPA_UI_TEXTS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
131
+ MapaI18nService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaI18nService, providedIn: "root" });
132
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaI18nService, decorators: [{
133
+ type: Injectable,
134
+ args: [{
135
+ providedIn: "root",
136
+ }]
137
+ }], ctorParameters: function () {
138
+ return [{ type: undefined, decorators: [{
139
+ type: Optional
140
+ }, {
141
+ type: Inject,
142
+ args: [MAPA_UI_TEXTS]
143
+ }] }];
144
+ } });
27
145
 
28
146
  class PaginatorLegacyDirective {
29
- constructor(matPag, ViewContainer, renderer) {
147
+ constructor(matPag, viewContainer, renderer, i18n) {
30
148
  this.matPag = matPag;
31
- this.ViewContainer = ViewContainer;
149
+ this.viewContainer = viewContainer;
32
150
  this.renderer = renderer;
151
+ this.i18n = i18n;
33
152
  this.buttons = [];
153
+ this.onDestroy$ = new Subject();
34
154
  this.buildPageNumbers = () => {
35
155
  let dots;
36
156
  let page;
@@ -38,35 +158,30 @@ class PaginatorLegacyDirective {
38
158
  let startIndex;
39
159
  let totalPages;
40
160
  totalPages = this.matPag.getNumberOfPages();
41
- // Container div with paginator elements
42
- const actionContainer = this.ViewContainer.element.nativeElement.querySelector('div.mat-paginator-range-actions');
43
- // Button that triggers the next page action
44
- const nextPageNode = this.ViewContainer.element.nativeElement.querySelector('button.mat-paginator-navigation-next');
45
- // Label showing the page range
46
- const pageRange = this.ViewContainer.element.nativeElement.querySelector('div.mat-paginator-range-label');
161
+ const actionContainer = this.viewContainer.element.nativeElement.querySelector('div.mat-paginator-range-actions');
162
+ const nextPageNode = this.viewContainer.element.nativeElement.querySelector('button.mat-paginator-navigation-next');
163
+ const pageRange = this.viewContainer.element.nativeElement.querySelector('div.mat-paginator-range-label');
47
164
  let prevButtonCount = this.buttons.length;
48
- // Remove buttons before creating new ones
49
165
  if (prevButtonCount > 0) {
50
166
  this.buttons.forEach((button) => {
51
167
  this.renderer.removeChild(actionContainer, button);
52
168
  });
53
- // Empty state array
54
169
  prevButtonCount = 0;
55
170
  }
56
171
  this.renderer.addClass(pageRange, 'custom-paginator-counter');
57
172
  this.renderer.addClass(actionContainer, 'custom-paginator-container');
58
- // Initialize next page and last page buttons
59
173
  if (prevButtonCount === 0) {
60
174
  const nodeArray = actionContainer.childNodes;
61
175
  setTimeout(() => {
176
+ var _a, _b;
62
177
  for (const node of nodeArray) {
63
178
  if (node.nodeName === 'BUTTON') {
64
- // Next Button styles
65
- if (node.innerHTML.length > 100 && node.disabled) {
179
+ const nodeTextLength = (_b = (_a = node.textContent) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
180
+ if (nodeTextLength > 100 && node.disabled) {
66
181
  this.renderer.addClass(node, 'custom-paginator-arrow-disabled');
67
182
  this.renderer.removeClass(node, 'custom-paginator-arrow-enabled');
68
183
  }
69
- else if (node.innerHTML.length > 100 && !node.disabled) {
184
+ else if (nodeTextLength > 100 && !node.disabled) {
70
185
  this.renderer.addClass(node, 'custom-paginator-arrow-enabled');
71
186
  this.renderer.removeClass(node, 'custom-paginator-arrow-disabled');
72
187
  }
@@ -105,51 +220,34 @@ class PaginatorLegacyDirective {
105
220
  }
106
221
  };
107
222
  this.currentPage = 1;
108
- this.pageGapTxt = ['•••', '---'];
223
+ this.pageGapTxt = ['...', '---'];
109
224
  this.showTotalPages = 2;
110
225
  this.checkPage = [0, 0, 0];
111
- // Display custom range label text
112
- this.matPag._intl.getRangeLabel = (page, pageSize, length) => {
113
- const startIndex = page * pageSize;
114
- const endIndex = startIndex < length
115
- ? Math.min(startIndex + pageSize, length)
116
- : startIndex + pageSize;
117
- if (length === 0) {
118
- return 'Mostrando 0 – 0 de 0 item';
119
- }
120
- if (length === 1) {
121
- return ('Mostrando ' +
122
- (startIndex + 1) +
123
- ' – ' +
124
- endIndex +
125
- ' de ' +
126
- length +
127
- ' item');
128
- }
129
- else {
130
- return ('Mostrando ' +
131
- (startIndex + 1) +
132
- ' – ' +
133
- endIndex +
134
- ' de ' +
135
- length +
136
- ' itens');
137
- }
138
- };
139
- // Subscribe to rerender buttons when next page and last page button is used
140
- this.matPag.page.subscribe((paginator) => {
226
+ this.matPag._intl.getRangeLabel = (page, pageSize, length) => this.i18n.texts.paginator.showingRangeLabel(page, pageSize, length);
227
+ this.matPag.page
228
+ .pipe(takeUntil(this.onDestroy$))
229
+ .subscribe((paginator) => {
141
230
  this.currentPage = paginator.pageIndex;
142
231
  this.matPag.pageIndex = paginator.pageIndex;
143
232
  this.initPageRange();
144
233
  });
145
- this.matPag._intl.itemsPerPageLabel = 'Itens por página';
146
- const paginatorIntl = this.matPag._intl;
147
- paginatorIntl.nextPageLabel = '';
148
- paginatorIntl.previousPageLabel = '';
234
+ this.i18n.texts$
235
+ .pipe(takeUntil(this.onDestroy$))
236
+ .subscribe(() => {
237
+ this.matPag._intl.itemsPerPageLabel = this.i18n.texts.paginator.itemsPerPage;
238
+ const paginatorIntl = this.matPag._intl;
239
+ paginatorIntl.nextPageLabel = this.i18n.texts.paginator.nextPage;
240
+ paginatorIntl.previousPageLabel = this.i18n.texts.paginator.previousPage;
241
+ paginatorIntl.changes.next();
242
+ });
243
+ }
244
+ ngAfterViewInit() {
245
+ this.rangeStart = 0;
246
+ this.rangeEnd = this.showTotalPages - 1;
247
+ this.initPageRange();
149
248
  }
150
249
  ngDoCheck() {
151
250
  var _a, _b, _c;
152
- // Reset paginator if the pageSize, pageIndex, length changes
153
251
  if (((_a = this.matPag) === null || _a === void 0 ? void 0 : _a.length) !== this.checkPage[0] ||
154
252
  ((_b = this.matPag) === null || _b === void 0 ? void 0 : _b.pageSize) !== this.checkPage[1] ||
155
253
  ((_c = this.matPag) === null || _c === void 0 ? void 0 : _c.pageIndex) !== this.checkPage[2]) {
@@ -167,6 +265,10 @@ class PaginatorLegacyDirective {
167
265
  ];
168
266
  }
169
267
  }
268
+ ngOnDestroy() {
269
+ this.onDestroy$.next();
270
+ this.onDestroy$.complete();
271
+ }
170
272
  createButton(index, pageIndex) {
171
273
  const linkBtn = this.renderer.createElement('button');
172
274
  this.renderer.setAttribute(linkBtn, 'class', 'custom-paginator-page');
@@ -205,13 +307,9 @@ class PaginatorLegacyDirective {
205
307
  break;
206
308
  }
207
309
  this.renderer.appendChild(linkBtn, text);
208
- // Add button to private array for state
209
310
  this.buttons.push(linkBtn);
210
311
  return linkBtn;
211
312
  }
212
- /**
213
- * @description calculates the button range based on class input parameters and based on current page index value.
214
- */
215
313
  initPageRange() {
216
314
  this.rangeStart = this.currentPage - this.showTotalPages / 2;
217
315
  this.rangeEnd = this.currentPage + this.showTotalPages / 2;
@@ -228,13 +326,8 @@ class PaginatorLegacyDirective {
228
326
  this.currentPage = index;
229
327
  this.initPageRange();
230
328
  }
231
- ngAfterViewInit() {
232
- this.rangeStart = 0;
233
- this.rangeEnd = this.showTotalPages - 1;
234
- this.initPageRange();
235
- }
236
329
  }
237
- PaginatorLegacyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginatorLegacyDirective, deps: [{ token: i1.MatPaginator, host: true, optional: true, self: true }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
330
+ PaginatorLegacyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginatorLegacyDirective, deps: [{ token: i1.MatPaginator, host: true, optional: true, self: true }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }, { token: MapaI18nService }], target: i0.ɵɵFactoryTarget.Directive });
238
331
  PaginatorLegacyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PaginatorLegacyDirective, isStandalone: true, selector: "[appStylePaginatorMv]", ngImport: i0 });
239
332
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginatorLegacyDirective, decorators: [{
240
333
  type: Directive,
@@ -249,120 +342,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
249
342
  type: Self
250
343
  }, {
251
344
  type: Optional
252
- }] }, { type: i0.ViewContainerRef }, { type: i0.Renderer2 }];
345
+ }] }, { type: i0.ViewContainerRef }, { type: i0.Renderer2 }, { type: MapaI18nService }];
253
346
  } });
254
347
 
255
- function CustomPaginator() {
348
+ function customPaginatorFactory(i18n) {
256
349
  const customPaginatorIntl = new MatPaginatorIntl();
257
- const rangeLabel = (page, pageSize, length) => {
258
- if (length == 0 || pageSize == 0) {
259
- return `0 de ${length}`;
260
- }
261
- length = Math.max(length, 0);
262
- const startIndex = page * pageSize;
263
- const endIndex = startIndex < length ?
264
- Math.min(startIndex + pageSize, length) :
265
- startIndex + pageSize;
266
- return `${startIndex + 1} - ${endIndex} de ${length}`;
350
+ const updateTexts = () => {
351
+ const paginatorTexts = i18n.texts.paginator;
352
+ customPaginatorIntl.itemsPerPageLabel = paginatorTexts.itemsPerPage;
353
+ customPaginatorIntl.nextPageLabel = paginatorTexts.nextPage;
354
+ customPaginatorIntl.previousPageLabel = paginatorTexts.previousPage;
355
+ customPaginatorIntl.getRangeLabel = paginatorTexts.rangeLabel;
356
+ customPaginatorIntl.changes.next();
267
357
  };
268
- customPaginatorIntl.itemsPerPageLabel = 'Itens por página:';
269
- customPaginatorIntl.nextPageLabel = 'Próxima página';
270
- customPaginatorIntl.previousPageLabel = 'Página anterior';
271
- customPaginatorIntl.getRangeLabel = rangeLabel;
358
+ updateTexts();
359
+ i18n.texts$.subscribe(() => updateTexts());
272
360
  return customPaginatorIntl;
273
361
  }
274
362
 
275
- class MapaMenuComponent {
276
- constructor() {
277
- this.items = [];
278
- this.emitMenu = new EventEmitter();
279
- }
280
- toggleMenu() {
281
- this.trigger.openMenu();
363
+ function sanitizeHtmlContent(sanitizer, value) {
364
+ var _a;
365
+ return (_a = sanitizer.sanitize(SecurityContext.HTML, value !== null && value !== void 0 ? value : "")) !== null && _a !== void 0 ? _a : "";
366
+ }
367
+ class HtmlSanitizerService {
368
+ constructor(sanitizer) {
369
+ this.sanitizer = sanitizer;
282
370
  }
283
- clickMenu(action) {
284
- this.emitMenu.emit({ action, data: this.data });
371
+ sanitize(value) {
372
+ return sanitizeHtmlContent(this.sanitizer, value);
285
373
  }
286
374
  }
287
- MapaMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
288
- MapaMenuComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaMenuComponent, selector: "mapa-menu", inputs: { items: "items", data: "data" }, outputs: { emitMenu: "emitMenu" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: "<mat-menu #menu=\"matMenu\" class=\"mapa-menu\">\n <button\n *ngFor=\"let item of items\"\n mat-menu-item\n (click)=\"clickMenu(item.action)\"\n class=\"mapa-menu__item\"\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n\n<img\n class=\"outside-menu-icon\"\n src=\"assets/images/icons/ThreePoints.svg\"\n (click)=\"toggleMenu()\"\n [matMenuTriggerFor]=\"menu\"\n/>\n", styles: [".outside-menu-icon{color:#50575e;display:flex;align-items:center;justify-content:center}.mat-menu-content mat-icon{color:var(--Grey-Grey-60, #50575e);font-size:16px;line-height:28px}.mapa-menu__item{display:flex;align-items:center}.mapa-menu__item img{margin-right:8px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuComponent, decorators: [{
290
- type: Component,
291
- args: [{ selector: "mapa-menu", template: "<mat-menu #menu=\"matMenu\" class=\"mapa-menu\">\n <button\n *ngFor=\"let item of items\"\n mat-menu-item\n (click)=\"clickMenu(item.action)\"\n class=\"mapa-menu__item\"\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <span>{{item.text}}</span>\n </button>\n</mat-menu>\n\n<img\n class=\"outside-menu-icon\"\n src=\"assets/images/icons/ThreePoints.svg\"\n (click)=\"toggleMenu()\"\n [matMenuTriggerFor]=\"menu\"\n/>\n", styles: [".outside-menu-icon{color:#50575e;display:flex;align-items:center;justify-content:center}.mat-menu-content mat-icon{color:var(--Grey-Grey-60, #50575e);font-size:16px;line-height:28px}.mapa-menu__item{display:flex;align-items:center}.mapa-menu__item img{margin-right:8px}\n"] }]
292
- }], propDecorators: { items: [{
293
- type: Input
294
- }], data: [{
295
- type: Input
296
- }], emitMenu: [{
297
- type: Output
298
- }], trigger: [{
299
- type: ViewChild,
300
- args: [MatMenuTrigger]
301
- }] } });
375
+ HtmlSanitizerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HtmlSanitizerService, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
376
+ HtmlSanitizerServiceprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HtmlSanitizerService, providedIn: "root" });
377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HtmlSanitizerService, decorators: [{
378
+ type: Injectable,
379
+ args: [{
380
+ providedIn: "root",
381
+ }]
382
+ }], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
302
383
 
303
384
  class SafeHtmlPipe {
304
- constructor(sanitized) {
305
- this.sanitized = sanitized;
385
+ constructor(htmlSanitizer) {
386
+ this.htmlSanitizer = htmlSanitizer;
306
387
  }
307
388
  transform(value) {
308
- return this.sanitized.bypassSecurityTrustHtml(value);
389
+ return this.htmlSanitizer.sanitize(value);
309
390
  }
310
391
  }
311
- SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
312
- SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SafeHtmlPipe, name: "safeHtml" });
392
+ SafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: HtmlSanitizerService }], target: i0.ɵɵFactoryTarget.Pipe });
393
+ SafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SafeHtmlPipe, isStandalone: true, name: "safeHtml" });
313
394
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SafeHtmlPipe, decorators: [{
314
395
  type: Pipe,
315
396
  args: [{
316
- name: 'safeHtml',
397
+ name: "safeHtml",
398
+ standalone: true,
317
399
  }]
318
- }], ctorParameters: function () { return [{ type: i1$2.DomSanitizer }]; } });
319
-
320
- class MapaSvgIconComponent {
321
- constructor(httpClient, cdr) {
322
- this.httpClient = httpClient;
323
- this.cdr = cdr;
324
- }
325
- ngOnChanges() {
326
- if (!this.name) {
327
- this.svgIcon = '';
328
- return;
329
- }
330
- if (this.color) {
331
- this.httpClient
332
- .get(`images/icons/${this.name}.svg`, { responseType: 'text' })
333
- .subscribe((value) => {
334
- if (this.color) {
335
- value = value.replaceAll('fill="#50575E"', `fill="${this.color}"`);
336
- value = value.replaceAll('fill="#181818"', `fill="${this.color}"`);
337
- value = value.replaceAll('fill="#7def7b"', `fill="${this.color}"`);
338
- value = value.replaceAll('stroke="#50575E"', `stroke="${this.color}"`);
339
- value = value.replaceAll('stroke="#181818"', `stroke="${this.color}"`);
340
- value = value.replaceAll('stroke="#7def7b"', `stroke="${this.color}"`);
341
- }
342
- this.svgIcon = value;
343
- });
344
- }
345
- else {
346
- const img = `<img src="images/icons/${this.name}.svg" alt="${this.name}" />`;
347
- this.svgIcon = img;
348
- }
349
- this.cdr.detectChanges();
350
- }
351
- }
352
- MapaSvgIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaSvgIconComponent, deps: [{ token: i1$3.HttpClient }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
353
- MapaSvgIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaSvgIconComponent, selector: "mapa-svg-icon", inputs: { name: "name", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<span *ngIf=\"svgIcon\" class=\"mapa__svg-icon\" [innerHTML]=\"svgIcon | safeHtml\"></span>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }] });
354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaSvgIconComponent, decorators: [{
355
- type: Component,
356
- args: [{ selector: "mapa-svg-icon", template: "<span *ngIf=\"svgIcon\" class=\"mapa__svg-icon\" [innerHTML]=\"svgIcon | safeHtml\"></span>" }]
357
- }], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { name: [{
358
- type: Input
359
- }], color: [{
360
- type: Input
361
- }] } });
400
+ }], ctorParameters: function () { return [{ type: HtmlSanitizerService }]; } });
362
401
 
363
402
  class MapaTableComponent {
364
- constructor(cdr) {
403
+ constructor(cdr, i18n) {
365
404
  this.cdr = cdr;
405
+ this.i18n = i18n;
366
406
  this.columns = [];
367
407
  this.data = [];
368
408
  this.pageIndex = 1;
@@ -376,30 +416,66 @@ class MapaTableComponent {
376
416
  this.onChangePage = new EventEmitter();
377
417
  this.onSortChange = new EventEmitter();
378
418
  this.displayedColumns = [];
419
+ this.texts = this.i18n.texts;
420
+ this.desktopTableVisible = true;
421
+ this.onDestroy$ = new Subject();
422
+ this.i18n.texts$
423
+ .pipe(takeUntil(this.onDestroy$))
424
+ .subscribe((texts) => {
425
+ this.texts = texts;
426
+ this.cdr.markForCheck();
427
+ });
428
+ }
429
+ get selectAllLabel() {
430
+ return this.texts.common.selectAll;
379
431
  }
380
432
  ngAfterViewInit() {
381
- this.dataSource = new MatTableDataSource(this.data);
382
- this.dataSource.sort = this.sort;
383
- this.displayedColumns = this.columns.map((column) => column.key);
384
- this.cdr.detectChanges();
433
+ this.refreshTableState();
434
+ this.cdr.markForCheck();
435
+ }
436
+ ngOnDestroy() {
437
+ this.onDestroy$.next();
438
+ this.onDestroy$.complete();
385
439
  }
386
440
  ngOnChanges(changes) {
387
- if (changes["data"]) {
388
- if (this.dataSource) {
441
+ if ((changes["data"] || changes["columns"]) && this.dataSource) {
442
+ if (changes["data"]) {
389
443
  this.data = changes["data"].currentValue;
390
- this.dataSource = new MatTableDataSource(this.data);
391
- this.dataSource.sort = this.sort;
392
- this.displayedColumns = this.columns.map((column) => column.key);
393
- this.cdr.detectChanges();
394
444
  }
445
+ if (changes["columns"]) {
446
+ this.columns = changes["columns"].currentValue;
447
+ }
448
+ this.refreshTableState();
449
+ if (changes["columns"]) {
450
+ this.rebuildDesktopTable();
451
+ }
452
+ this.cdr.markForCheck();
395
453
  }
396
454
  if (changes["filterControl"] && this.filterControl) {
397
455
  this.setupFilter();
398
456
  }
399
457
  }
458
+ refreshTableState() {
459
+ var _a;
460
+ this.dataSource = new MatTableDataSource(this.data);
461
+ this.dataSource.sort = this.sort;
462
+ this.displayedColumns = this.columns.map((column) => column.key);
463
+ (_a = this.table) === null || _a === void 0 ? void 0 : _a.renderRows();
464
+ }
465
+ rebuildDesktopTable() {
466
+ this.desktopTableVisible = false;
467
+ this.cdr.detectChanges();
468
+ this.desktopTableVisible = true;
469
+ this.cdr.detectChanges();
470
+ }
471
+ trackColumn(index, column) {
472
+ return `${index}:${column.key}:${column.label}`;
473
+ }
400
474
  setupFilter() {
401
475
  if (this.dataSource) {
402
- this.filterControl.valueChanges.subscribe((value) => {
476
+ this.filterControl.valueChanges
477
+ .pipe(takeUntil(this.onDestroy$))
478
+ .subscribe((value) => {
403
479
  this.dataSource.filter = value.trim().toLowerCase();
404
480
  });
405
481
  this.dataSource.filterPredicate = (data, filter) => {
@@ -484,7 +560,7 @@ class MapaTableComponent {
484
560
  }
485
561
  }
486
562
  generateColumns() {
487
- let columns = [{ key: "name", label: "", sort: false }];
563
+ const columns = [{ key: "name", label: "", sort: false }];
488
564
  this.columns = columns;
489
565
  }
490
566
  columnExists(columns, key) {
@@ -553,9 +629,7 @@ class MapaTableComponent {
553
629
  if (row.value) {
554
630
  return row.value + "%";
555
631
  }
556
- else {
557
- return "-";
558
- }
632
+ return "-";
559
633
  }
560
634
  catch (_a) {
561
635
  return "-";
@@ -632,12 +706,12 @@ class MapaTableComponent {
632
706
  return ((_a = image.split('/').pop()) === null || _a === void 0 ? void 0 : _a.split('.')[0]) || '';
633
707
  }
634
708
  }
635
- MapaTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTableComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
636
- MapaTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaTableComponent, selector: "mapa-table", inputs: { columns: "columns", data: "data", pageIndex: "pageIndex", pageSize: "pageSize", totalCount: "totalCount", totalPages: "totalPages", checkbox: "checkbox", selection: "selection", actions: "actions", filterControl: "filterControl", menuItems: "menuItems", menu: "menu", showPaginator: "showPaginator" }, outputs: { rowClick: "rowClick", selectedRows: "selectedRows", onChangePage: "onChangePage", onSortChange: "onSortChange" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, read: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"mapa-table\" *ngIf=\"dataSource && dataSource.data && dataSource.data.length > 0\">\n <div class=\"mapa-table--show-on-mobile\">\n <div *ngIf=\"checkbox\" class=\"mapa-table__select-all\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n >Selecionar todos</mat-checkbox>\n </div>\n <div *ngFor=\"let row of dataSource.data.values(); let i = index\">\n <div class=\"mapa-table__card mapa__card\">\n <div *ngFor=\"let column of columns; let j = index; let isFirst = first\" [ngClass]=\"'mapa-table__card--column-' + column.key\">\n <strong\n class=\"mapa-table__card--header\"\n [class.mapa-table__checkbox--header]=\"isFirst && checkbox\"\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'\">\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox: false }\"\n class=\"hidden\"\n ></div>\n </strong>\n <div\n class=\"mapa-table__card--column\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div *ngIf=\"column.key === 'actions' && actions\">\n <div *ngFor=\"let item of getContentFromColumn(row, 'actions') || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n \n <div *ngIf=\"column.key === 'menu'\">\n <div *ngIf=\"hasIndividualMenu(row); else generalMenu\" class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of getMenuItems(row)\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n <ng-template #generalMenu>\n <div class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of menuItems\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <mapa-svg-icon *ngIf=\"item.image\" [name]=\"setSvgName(item.image)\"></mapa-svg-icon>\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"mapa-table--show-on-desktop\">\n <table\n mat-table\n [dataSource]=\"dataSource\"\n matSort\n (matSortChange)=\"sortDataFunction($event)\"\n >\n <ng-container\n *ngFor=\"let column of columns; let isFirst = first\"\n [matColumnDef]=\"column.key\"\n >\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header\n [disabled]=\"!(column.key !== 'actions' ? column.sort : null)\"\n >\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox }\"\n ></div>\n </th>\n <td mat-cell *matCellDef=\"let row\" [style.width]=\"column?.width\">\n <div\n class=\"mapa-table__column\"\n (click)=\"emitRowClick(row, '')\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div\n class=\"mapa-table__column--actions\"\n *ngIf=\"column.key === 'actions' && actions\"\n >\n <div *ngFor=\"let item of row['actions'] || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n <div class=\"mapa-table__column--menu\" *ngIf=\"column.key === 'menu'\">\n <mapa-menu\n *ngIf=\"hasIndividualMenu(row); else generalMenu\"\n [items]=\"row?.menu\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n <ng-template #generalMenu>\n <mapa-menu\n *ngIf=\"menuItems && menuItems.length > 0\"\n [items]=\"menuItems\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns;\"\n class=\"row-hover\"\n ></tr>\n </table>\n </div>\n <section *ngIf=\"showPaginator\">\n <mat-paginator\n class=\"mapa-table__paginator-legacy\"\n itemsPerPageLabel=\"Item por p\u00E1gina\"\n appStylePaginatorMv\n [length]=\"totalCount\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"[5, 10, 25, 100]\"\n (page)=\"changePage($event)\"\n ></mat-paginator>\n </section>\n</section>\n\n<ng-template\n #tableHeader\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n ></mat-checkbox>\n </ng-container>\n <div>\n <span [innerHTML]=\"column.label\"></span>\n </div>\n <div\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu' && column.sort\"\n class=\"mapa-table--show-on-desktop\">\n <mat-icon>filter_list</mat-icon>\n </div>\n</ng-template>\n\n<ng-template\n #tableContent\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n let-row=\"row\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"$event ? selection?.toggle(row) : null; getSelectedValues()\"\n [checked]=\"selection?.isSelected(row)\"\n color=\"primary\"\n class=\"mapa-table__checkbox\"\n >\n </mat-checkbox>\n </ng-container>\n <!-- POR FAVOR, N\u00C3O QUEBRE LINHA ENTRE NG-CONTAINER/TEMPLATE E O VALOR CONTE\u00DADO -->\n <ng-container *ngIf=\"isMaskedData(column, row); else statusContent\"\n >{{ getValueAsDate(column, row) | date: column.mask }}</ng-container\n >\n <ng-template #statusContent>\n <ng-container *ngIf=\"column.status; else commonContent\">\n <ng-container *ngIf=\"isBoolean(column, row); else commonStatus\"\n ><span [innerHTML]=\"column.status.label[row[column.key] ? 1 : 0]\"></span\n ></ng-container>\n <ng-template #commonStatus\n ><span [innerHTML]=\"column.status.label[row[column.key]] || '-' \"></span\n ></ng-template>\n </ng-container>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key]\"></span\n ></ng-template>\n </ng-template>\n <ng-template #statusContent>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key]\"></span\n ></ng-template>\n </ng-template>\n</ng-template>\n", styles: [".mapa-table .mat-table{font-family:Inter,Arial,Helvetica,sans-serif;width:100%}.mapa-table .mat-table .mat-checkbox{margin:6px 8px 0 0;padding:0}.mapa-table td.mat-cell{padding:16px 0}.mapa-table .mat-table .mat-row .mat-cell{font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;color:#50575e}.mapa-table .row-hover:hover{box-shadow:0 2px 4px #00000021;outline:1px solid rgba(238,238,238,.93);cursor:pointer}.mapa-table .mat-table .mat-header-cell{border:none;border-bottom:1px solid #eee;font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:600;color:#50575e}.mapa-table .mat-mdc-row,.mapa-table .mdc-data-table__content,.mapa-table .mat-mdc-header-cell{--mat-table-row-item-label-text-font: \"Inter\", Arial, Helvetica, sans-serif}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#b6b6b6}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-frame{border-color:#ea561d}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-background{background-color:transparent}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-background{background-color:#ea561d}.mapa-table .mat-mdc-paginator-container{display:flex;justify-content:space-between}.mapa-table ::ng-deep .mat-mdc-paginator-page-size-label{display:none}.mapa-table__paginator-legacy .mat-paginator-container{font-family:Inter!important;justify-content:flex-start}.mapa-table__paginator-legacy .mat-paginator-page-size{margin-right:10vw}.mapa-table__paginator-legacy .custom-paginator-container{justify-content:flex-end}.mapa-table__paginator-legacy .custom-paginator-counter{white-space:nowrap;margin:0 4px 0 10px!important}.mapa-table__paginator-legacy .custom-paginator-page{border-radius:4px;outline:none;border:none;margin:.4em;font-size:14px;min-width:24px;width:auto;min-height:24px;max-height:24px;padding:1px 6px}.mapa-table__paginator-legacy .custom-paginator-page-enabled{color:#50575e;background:transparent;cursor:pointer}.mapa-table__paginator-legacy .custom-paginator-page-enabled:hover{background-color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-page-disabled{background-color:#ea561d;color:#fff}.mapa-table__paginator-legacy .custom-paginator-arrow-disabled{color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-arrow-enabled{color:#999}.hidden{display:none}.mapa-table{width:100%;white-space:nowrap}.mapa-table .mat-icon-button{width:unset!important;height:unset!important;line-height:unset!important}.mapa-table .mat-icon-button .mat-button-wrapper{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%!important}@media (min-width: 1201px){.mapa-table--show-on-mobile{display:none}.mapa-table--show-on-desktop{display:block}}@media (max-width: 1200px){.mapa-table--show-on-mobile{padding:20px}.mapa-table--show-on-mobile .mapa__card{width:unset!important}.mapa-table--show-on-desktop{display:none}}.mapa-table__select-all{display:flex;align-items:center;padding:16px 24px;font-size:12px;text-transform:uppercase}@media (max-width: 1200px){.mapa-table__checkbox{margin-right:8px}.mapa-table__checkbox--header{padding-left:24px}}.mapa-table__card{position:relative;padding:24px;display:flex;flex-direction:row;flex-wrap:wrap;gap:16px}.mapa-table__card--floating-content{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px}.mapa-table__card--floating-actions{position:absolute;bottom:16px;right:16px;color:#ea561d}.mapa-table__card--header{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;font-size:12px;text-transform:uppercase}.mapa-table__card--header mat-icon{height:16px;width:16px;font-size:16px}.mapa-table__card--column{padding:16px 0}.mapa-table__label{margin-top:4px}.mapa-table__column{padding:15px;align-items:center;display:flex}.mapa-table__column--actions{display:flex}.mapa-table__column--actions .mat-icon{color:#ea561d!important}.mapa-table__column--actions-item{display:flex!important;align-items:center;gap:8px}.mapa-table__column--menu{display:flex;align-items:center;justify-content:center;gap:8px}.mapa-table__column--menu .mapa-table__column--menu-item-text{display:flex;align-items:center;justify-content:center;font-size:12px;line-height:16px!important}.mapa-table__column--menu-item{display:flex;align-items:center;width:unset!important;height:unset!important}.mapa-table__column--menu-item img{margin-right:8px}.mapa-table__column--menu-item button{color:#ea561d!important}.mapa-table__column--menu-item button span{font-size:12px;text-transform:uppercase;display:flex}.mapa-table__column--header{width:100%}.mapa-table__column--header .mat-icon{cursor:pointer;position:relative;bottom:-3px;margin:0 7px;font-size:14px;height:14px;width:14px}.mapa-table__column--status{margin:auto;text-align:center;width:min-content;border-radius:4px;padding:4px 8px}.mapa-table__column--status-round{border-radius:50px}.mapa-table__column--ellipsis{display:inline-block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mapa-table__column--no-wrap{white-space:nowrap}.mapa-table__column--wrap{white-space:pre-wrap}.mapa-table__column--center-cell{display:flex;align-items:center;justify-content:center;width:100%}.mapa-table--column-actions,.mapa-table--column-menu{width:100%}.mapa-table__content--value{color:#fff;font-weight:500}.mapa-table .mat-sort-header-arrow{color:transparent}.mapa-table .mat-sort-header-content{width:100%!important}.mapa-table .mat-cell,.mapa-table .mat-header-cell{padding:0 10px!important}.mapa-table .mat-table{width:100%;overflow-x:auto}@media (max-width: 1000px){.mapa-table .mat-paginator-range-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.mapa-table .mat-paginator-range-label{padding:16px 0;text-align:center;width:100%}.mapa-table .mat-paginator-container{justify-content:center}}.mapa-table .classification{width:40px;height:40px;border-radius:24px;display:flex;justify-content:center;align-items:center}.mapa-table .roundCell{border-radius:10px}.mapa-table .general{border-radius:24px;border:1px solid #dcdcde;display:flex;justify-content:center;align-items:center;width:48px;height:48px}.mapa-table .name{color:#181818;text-align:left;font-family:Inter,Arial,Helvetica,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.mapa-table .cpf{color:#77838f;text-align:left;font-family:Inter,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.mapa-table .label_report{color:#181818;text-align:center;font-family:Inter,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#000}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f598a7;color:#000}.classification-7{background-color:#f56580;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px;font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400}.display-S{font-family:Inter,Arial,Helvetica,sans-serif;font-size:20px;font-style:normal;font-weight:400}.display-L{font-family:Inter,Arial,Helvetica,sans-serif;font-size:32px;font-style:normal;font-weight:400}.display-XG{font-family:Inter,Arial,Helvetica,sans-serif;font-size:48px;font-style:normal;font-weight:400}*{transition:opacity .4s ease-out,max-height .4s ease-out}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: MapaMenuComponent, selector: "mapa-menu", inputs: ["items", "data"], outputs: ["emitMenu"] }, { kind: "component", type: MapaSvgIconComponent, selector: "mapa-svg-icon", inputs: ["name", "color"] }, { kind: "component", type: i5.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i1.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i9.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i9.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i9.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i9.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i9.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i9.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i9.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i9.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i9.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i9.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "directive", type: PaginatorLegacyDirective, selector: "[appStylePaginatorMv]" }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
709
+ MapaTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTableComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: MapaI18nService }], target: i0.ɵɵFactoryTarget.Component });
710
+ MapaTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaTableComponent, selector: "mapa-table", inputs: { columns: "columns", data: "data", pageIndex: "pageIndex", pageSize: "pageSize", totalCount: "totalCount", totalPages: "totalPages", checkbox: "checkbox", selection: "selection", actions: "actions", filterControl: "filterControl", menuItems: "menuItems", menu: "menu", showPaginator: "showPaginator" }, outputs: { rowClick: "rowClick", selectedRows: "selectedRows", onChangePage: "onChangePage", onSortChange: "onSortChange" }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }, { propertyName: "table", first: true, predicate: MatTable, descendants: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, read: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"mapa-table\" *ngIf=\"dataSource && dataSource.data && dataSource.data.length > 0\">\n <div class=\"mapa-table--show-on-mobile\">\n <div *ngIf=\"checkbox\" class=\"mapa-table__select-all\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n > {{ selectAllLabel }}</mat-checkbox>\n </div>\n <div *ngFor=\"let row of dataSource.data.values(); let i = index\">\n <div class=\"mapa-table__card mapa__card\">\n <div *ngFor=\"let column of columns; trackBy: trackColumn; let j = index; let isFirst = first\" [ngClass]=\"'mapa-table__card--column-' + column.key\">\n <strong\n class=\"mapa-table__card--header\"\n [class.mapa-table__checkbox--header]=\"isFirst && checkbox\"\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'\">\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox: false }\"\n class=\"hidden\"\n ></div>\n </strong>\n <div\n class=\"mapa-table__card--column\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div *ngIf=\"column.key === 'actions' && actions\">\n <div *ngFor=\"let item of getContentFromColumn(row, 'actions') || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n \n <div *ngIf=\"column.key === 'menu'\">\n <div *ngIf=\"hasIndividualMenu(row); else generalMenu\" class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of getMenuItems(row)\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n <ng-template #generalMenu>\n <div class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of menuItems\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <mapa-svg-icon *ngIf=\"item.image\" [name]=\"setSvgName(item.image)\"></mapa-svg-icon>\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"mapa-table--show-on-desktop\">\n <table\n *ngIf=\"desktopTableVisible\"\n mat-table\n [dataSource]=\"dataSource\"\n matSort\n (matSortChange)=\"sortDataFunction($event)\"\n >\n <ng-container\n *ngFor=\"let column of columns; trackBy: trackColumn; let isFirst = first\"\n [matColumnDef]=\"column.key\"\n >\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header\n [disabled]=\"!(column.key !== 'actions' ? column.sort : null)\"\n >\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox }\"\n ></div>\n </th>\n <td mat-cell *matCellDef=\"let row\" [style.width]=\"column?.width\">\n <div\n class=\"mapa-table__column\"\n (click)=\"emitRowClick(row, '')\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div\n class=\"mapa-table__column--actions\"\n *ngIf=\"column.key === 'actions' && actions\"\n >\n <div *ngFor=\"let item of row['actions'] || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n <div class=\"mapa-table__column--menu\" *ngIf=\"column.key === 'menu'\">\n <mapa-menu\n *ngIf=\"hasIndividualMenu(row); else generalMenu\"\n [items]=\"row?.menu\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n <ng-template #generalMenu>\n <mapa-menu\n *ngIf=\"menuItems && menuItems.length > 0\"\n [items]=\"menuItems\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns;\"\n class=\"row-hover\"\n ></tr>\n </table>\n </div>\n <section *ngIf=\"showPaginator\">\n <mat-paginator\n class=\"mapa-table__paginator-legacy\"\n appStylePaginatorMv\n [length]=\"totalCount\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"[5, 10, 25, 100]\"\n (page)=\"changePage($event)\"\n ></mat-paginator>\n </section>\n</section>\n\n<ng-template\n #tableHeader\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n ></mat-checkbox>\n </ng-container>\n <div>\n <span [innerHTML]=\"column.label | safeHtml\"></span>\n </div>\n <div\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu' && column.sort\"\n class=\"mapa-table--show-on-desktop\">\n <mat-icon>filter_list</mat-icon>\n </div>\n</ng-template>\n\n<ng-template\n #tableContent\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n let-row=\"row\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"$event ? selection?.toggle(row) : null; getSelectedValues()\"\n [checked]=\"selection?.isSelected(row)\"\n color=\"primary\"\n class=\"mapa-table__checkbox\"\n >\n </mat-checkbox>\n </ng-container>\n <!-- POR FAVOR, N\u00C3O QUEBRE LINHA ENTRE NG-CONTAINER/TEMPLATE E O VALOR CONTE\u00DADO -->\n <ng-container *ngIf=\"isMaskedData(column, row); else statusContent\"\n >{{ getValueAsDate(column, row) | date: column.mask }}</ng-container\n >\n <ng-template #statusContent>\n <ng-container *ngIf=\"column.status; else commonContent\">\n <ng-container *ngIf=\"isBoolean(column, row); else commonStatus\"\n ><span [innerHTML]=\"column.status.label[row[column.key] ? 1 : 0] | safeHtml\"></span\n ></ng-container>\n <ng-template #commonStatus\n ><span [innerHTML]=\"(column.status.label[row[column.key]] || '-') | safeHtml\"></span\n ></ng-template>\n </ng-container>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key] | safeHtml\"></span\n ></ng-template>\n </ng-template>\n <ng-template #statusContent>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key] | safeHtml\"></span\n ></ng-template>\n </ng-template>\n</ng-template>\n\n\n", styles: [".mapa-table .mat-table{font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);width:100%}.mapa-table .mat-table .mat-checkbox{margin:6px 8px 0 0;padding:0}.mapa-table td.mat-cell{padding:16px 0}.mapa-table .mat-table .mat-row .mat-cell{font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:16px;font-style:normal;font-weight:400;color:#50575e}.mapa-table .row-hover:hover{box-shadow:0 2px 4px #00000021;outline:1px solid rgba(238,238,238,.93);cursor:pointer}.mapa-table .mat-table .mat-header-cell{border:none;border-bottom:1px solid #eee;font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:16px;font-style:normal;font-weight:600;color:#50575e}.mapa-table .mat-mdc-row,.mapa-table .mdc-data-table__content{--mat-table-row-item-label-text-font: var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif)}.mapa-table .mat-mdc-header-cell,.mapa-table .mdc-data-table__content{--mat-table-row-item-label-text-font: var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif)}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#b6b6b6}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-frame{border-color:#ea561d}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-background{background-color:transparent}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-background{background-color:#ea561d}.mapa-table .mat-mdc-paginator-container{display:flex;justify-content:space-between}.mapa-table ::ng-deep .mat-mdc-paginator-page-size-label{display:none}.mapa-table__paginator-legacy .mat-paginator-container{font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif)!important;justify-content:flex-start}.mapa-table__paginator-legacy .mat-paginator-page-size{margin-right:10vw}.mapa-table__paginator-legacy .custom-paginator-container{justify-content:flex-end}.mapa-table__paginator-legacy .custom-paginator-counter{white-space:nowrap;margin:0 4px 0 10px!important}.mapa-table__paginator-legacy .custom-paginator-page{border-radius:4px;outline:none;border:none;margin:.4em;font-size:14px;min-width:24px;width:auto;min-height:24px;max-height:24px;padding:1px 6px}.mapa-table__paginator-legacy .custom-paginator-page-enabled{color:#50575e;background:transparent;cursor:pointer}.mapa-table__paginator-legacy .custom-paginator-page-enabled:hover{background-color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-page-disabled{background-color:#ea561d;color:#fff}.mapa-table__paginator-legacy .custom-paginator-arrow-disabled{color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-arrow-enabled{color:#999}.hidden{display:none}.mapa-table{width:100%;white-space:nowrap}.mapa-table .mat-icon-button{width:unset!important;height:unset!important;line-height:unset!important}.mapa-table .mat-icon-button .mat-button-wrapper{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%!important}@media (min-width: 1201px){.mapa-table--show-on-mobile{display:none}.mapa-table--show-on-desktop{display:block}}@media (max-width: 1200px){.mapa-table--show-on-mobile{padding:20px}.mapa-table--show-on-mobile .mapa__card{width:unset!important}.mapa-table--show-on-desktop{display:none}}.mapa-table__select-all{display:flex;align-items:center;padding:16px 24px;font-size:12px;text-transform:uppercase}@media (max-width: 1200px){.mapa-table__checkbox{margin-right:8px}.mapa-table__checkbox--header{padding-left:24px}}.mapa-table__card{position:relative;padding:24px;display:flex;flex-direction:row;flex-wrap:wrap;gap:16px}.mapa-table__card--floating-content{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px}.mapa-table__card--floating-actions{position:absolute;bottom:16px;right:16px;color:#ea561d}.mapa-table__card--header{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;font-size:12px;text-transform:uppercase}.mapa-table__card--header mat-icon{height:16px;width:16px;font-size:16px}.mapa-table__card--column{padding:16px 0}.mapa-table__label{margin-top:4px}.mapa-table__column{padding:15px;align-items:center;display:flex}.mapa-table__column--actions{display:flex}.mapa-table__column--actions .mat-icon{color:#ea561d!important}.mapa-table__column--actions-item{display:flex!important;align-items:center;gap:8px}.mapa-table__column--menu{display:flex;align-items:center;justify-content:center;gap:8px}.mapa-table__column--menu .mapa-table__column--menu-item-text{display:flex;align-items:center;justify-content:center;font-size:12px;line-height:16px!important}.mapa-table__column--menu-item{display:flex;align-items:center;width:unset!important;height:unset!important}.mapa-table__column--menu-item img{margin-right:8px}.mapa-table__column--menu-item button{color:#ea561d!important}.mapa-table__column--menu-item button span{font-size:12px;text-transform:uppercase;display:flex}.mapa-table__column--header{width:100%}.mapa-table__column--header .mat-icon{cursor:pointer;position:relative;bottom:-3px;margin:0 7px;font-size:14px;height:14px;width:14px}.mapa-table__column--status{margin:auto;text-align:center;width:min-content;border-radius:4px;padding:4px 8px}.mapa-table__column--status-round{border-radius:50px}.mapa-table__column--ellipsis{display:inline-block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mapa-table__column--no-wrap{white-space:nowrap}.mapa-table__column--wrap{white-space:pre-wrap}.mapa-table__column--center-cell{display:flex;align-items:center;justify-content:center;width:100%}.mapa-table--column-actions,.mapa-table--column-menu{width:100%}.mapa-table__content--value{color:#fff;font-weight:500}.mapa-table .mat-sort-header-arrow{color:transparent}.mapa-table .mat-sort-header-content{width:100%!important}.mapa-table .mat-cell,.mapa-table .mat-header-cell{padding:0 10px!important}.mapa-table .mat-table{width:100%;overflow-x:auto}@media (max-width: 1000px){.mapa-table .mat-paginator-range-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.mapa-table .mat-paginator-range-label{padding:16px 0;text-align:center;width:100%}.mapa-table .mat-paginator-container{justify-content:center}}.mapa-table .classification{width:40px;height:40px;border-radius:24px;display:flex;justify-content:center;align-items:center}.mapa-table .roundCell{border-radius:10px}.mapa-table .general{border-radius:24px;border:1px solid #dcdcde;display:flex;justify-content:center;align-items:center;width:48px;height:48px}.mapa-table .name{color:#181818;text-align:left;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:14px;font-style:normal;font-weight:400;line-height:20px}.mapa-table .cpf{color:#77838f;text-align:left;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:12px;font-style:normal;font-weight:400;line-height:16px}.mapa-table .label_report{color:#181818;text-align:center;font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:12px;font-style:normal;font-weight:400;line-height:16px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#000}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f598a7;color:#000}.classification-7{background-color:#f56580;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:16px;font-style:normal;font-weight:400}.display-S{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:20px;font-style:normal;font-weight:400}.display-L{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:32px;font-style:normal;font-weight:400}.display-XG{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:48px;font-style:normal;font-weight:400}*{transition:opacity .4s ease-out,max-height .4s ease-out}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.MapaMenuComponent, selector: "mapa-menu", inputs: ["items", "data"], outputs: ["emitMenu"] }, { kind: "component", type: i5.MapaSvgIconComponent, selector: "mapa-svg-icon", inputs: ["name", "color"] }, { kind: "component", type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i1.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i10.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i10.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i10.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i10.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i10.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i10.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i10.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i10.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i10.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i10.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "directive", type: i11.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i11.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "directive", type: PaginatorLegacyDirective, selector: "[appStylePaginatorMv]" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], encapsulation: i0.ViewEncapsulation.None });
637
711
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTableComponent, decorators: [{
638
712
  type: Component,
639
- args: [{ selector: "mapa-table", encapsulation: ViewEncapsulation.None, template: "<section class=\"mapa-table\" *ngIf=\"dataSource && dataSource.data && dataSource.data.length > 0\">\n <div class=\"mapa-table--show-on-mobile\">\n <div *ngIf=\"checkbox\" class=\"mapa-table__select-all\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n >Selecionar todos</mat-checkbox>\n </div>\n <div *ngFor=\"let row of dataSource.data.values(); let i = index\">\n <div class=\"mapa-table__card mapa__card\">\n <div *ngFor=\"let column of columns; let j = index; let isFirst = first\" [ngClass]=\"'mapa-table__card--column-' + column.key\">\n <strong\n class=\"mapa-table__card--header\"\n [class.mapa-table__checkbox--header]=\"isFirst && checkbox\"\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'\">\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox: false }\"\n class=\"hidden\"\n ></div>\n </strong>\n <div\n class=\"mapa-table__card--column\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div *ngIf=\"column.key === 'actions' && actions\">\n <div *ngFor=\"let item of getContentFromColumn(row, 'actions') || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n \n <div *ngIf=\"column.key === 'menu'\">\n <div *ngIf=\"hasIndividualMenu(row); else generalMenu\" class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of getMenuItems(row)\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n <ng-template #generalMenu>\n <div class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of menuItems\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <mapa-svg-icon *ngIf=\"item.image\" [name]=\"setSvgName(item.image)\"></mapa-svg-icon>\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"mapa-table--show-on-desktop\">\n <table\n mat-table\n [dataSource]=\"dataSource\"\n matSort\n (matSortChange)=\"sortDataFunction($event)\"\n >\n <ng-container\n *ngFor=\"let column of columns; let isFirst = first\"\n [matColumnDef]=\"column.key\"\n >\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header\n [disabled]=\"!(column.key !== 'actions' ? column.sort : null)\"\n >\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox }\"\n ></div>\n </th>\n <td mat-cell *matCellDef=\"let row\" [style.width]=\"column?.width\">\n <div\n class=\"mapa-table__column\"\n (click)=\"emitRowClick(row, '')\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div\n class=\"mapa-table__column--actions\"\n *ngIf=\"column.key === 'actions' && actions\"\n >\n <div *ngFor=\"let item of row['actions'] || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n <div class=\"mapa-table__column--menu\" *ngIf=\"column.key === 'menu'\">\n <mapa-menu\n *ngIf=\"hasIndividualMenu(row); else generalMenu\"\n [items]=\"row?.menu\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n <ng-template #generalMenu>\n <mapa-menu\n *ngIf=\"menuItems && menuItems.length > 0\"\n [items]=\"menuItems\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns;\"\n class=\"row-hover\"\n ></tr>\n </table>\n </div>\n <section *ngIf=\"showPaginator\">\n <mat-paginator\n class=\"mapa-table__paginator-legacy\"\n itemsPerPageLabel=\"Item por p\u00E1gina\"\n appStylePaginatorMv\n [length]=\"totalCount\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"[5, 10, 25, 100]\"\n (page)=\"changePage($event)\"\n ></mat-paginator>\n </section>\n</section>\n\n<ng-template\n #tableHeader\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n ></mat-checkbox>\n </ng-container>\n <div>\n <span [innerHTML]=\"column.label\"></span>\n </div>\n <div\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu' && column.sort\"\n class=\"mapa-table--show-on-desktop\">\n <mat-icon>filter_list</mat-icon>\n </div>\n</ng-template>\n\n<ng-template\n #tableContent\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n let-row=\"row\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"$event ? selection?.toggle(row) : null; getSelectedValues()\"\n [checked]=\"selection?.isSelected(row)\"\n color=\"primary\"\n class=\"mapa-table__checkbox\"\n >\n </mat-checkbox>\n </ng-container>\n <!-- POR FAVOR, N\u00C3O QUEBRE LINHA ENTRE NG-CONTAINER/TEMPLATE E O VALOR CONTE\u00DADO -->\n <ng-container *ngIf=\"isMaskedData(column, row); else statusContent\"\n >{{ getValueAsDate(column, row) | date: column.mask }}</ng-container\n >\n <ng-template #statusContent>\n <ng-container *ngIf=\"column.status; else commonContent\">\n <ng-container *ngIf=\"isBoolean(column, row); else commonStatus\"\n ><span [innerHTML]=\"column.status.label[row[column.key] ? 1 : 0]\"></span\n ></ng-container>\n <ng-template #commonStatus\n ><span [innerHTML]=\"column.status.label[row[column.key]] || '-' \"></span\n ></ng-template>\n </ng-container>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key]\"></span\n ></ng-template>\n </ng-template>\n <ng-template #statusContent>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key]\"></span\n ></ng-template>\n </ng-template>\n</ng-template>\n", styles: [".mapa-table .mat-table{font-family:Inter,Arial,Helvetica,sans-serif;width:100%}.mapa-table .mat-table .mat-checkbox{margin:6px 8px 0 0;padding:0}.mapa-table td.mat-cell{padding:16px 0}.mapa-table .mat-table .mat-row .mat-cell{font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;color:#50575e}.mapa-table .row-hover:hover{box-shadow:0 2px 4px #00000021;outline:1px solid rgba(238,238,238,.93);cursor:pointer}.mapa-table .mat-table .mat-header-cell{border:none;border-bottom:1px solid #eee;font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:600;color:#50575e}.mapa-table .mat-mdc-row,.mapa-table .mdc-data-table__content,.mapa-table .mat-mdc-header-cell{--mat-table-row-item-label-text-font: \"Inter\", Arial, Helvetica, sans-serif}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#b6b6b6}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-frame{border-color:#ea561d}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-background{background-color:transparent}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-background{background-color:#ea561d}.mapa-table .mat-mdc-paginator-container{display:flex;justify-content:space-between}.mapa-table ::ng-deep .mat-mdc-paginator-page-size-label{display:none}.mapa-table__paginator-legacy .mat-paginator-container{font-family:Inter!important;justify-content:flex-start}.mapa-table__paginator-legacy .mat-paginator-page-size{margin-right:10vw}.mapa-table__paginator-legacy .custom-paginator-container{justify-content:flex-end}.mapa-table__paginator-legacy .custom-paginator-counter{white-space:nowrap;margin:0 4px 0 10px!important}.mapa-table__paginator-legacy .custom-paginator-page{border-radius:4px;outline:none;border:none;margin:.4em;font-size:14px;min-width:24px;width:auto;min-height:24px;max-height:24px;padding:1px 6px}.mapa-table__paginator-legacy .custom-paginator-page-enabled{color:#50575e;background:transparent;cursor:pointer}.mapa-table__paginator-legacy .custom-paginator-page-enabled:hover{background-color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-page-disabled{background-color:#ea561d;color:#fff}.mapa-table__paginator-legacy .custom-paginator-arrow-disabled{color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-arrow-enabled{color:#999}.hidden{display:none}.mapa-table{width:100%;white-space:nowrap}.mapa-table .mat-icon-button{width:unset!important;height:unset!important;line-height:unset!important}.mapa-table .mat-icon-button .mat-button-wrapper{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%!important}@media (min-width: 1201px){.mapa-table--show-on-mobile{display:none}.mapa-table--show-on-desktop{display:block}}@media (max-width: 1200px){.mapa-table--show-on-mobile{padding:20px}.mapa-table--show-on-mobile .mapa__card{width:unset!important}.mapa-table--show-on-desktop{display:none}}.mapa-table__select-all{display:flex;align-items:center;padding:16px 24px;font-size:12px;text-transform:uppercase}@media (max-width: 1200px){.mapa-table__checkbox{margin-right:8px}.mapa-table__checkbox--header{padding-left:24px}}.mapa-table__card{position:relative;padding:24px;display:flex;flex-direction:row;flex-wrap:wrap;gap:16px}.mapa-table__card--floating-content{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px}.mapa-table__card--floating-actions{position:absolute;bottom:16px;right:16px;color:#ea561d}.mapa-table__card--header{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;font-size:12px;text-transform:uppercase}.mapa-table__card--header mat-icon{height:16px;width:16px;font-size:16px}.mapa-table__card--column{padding:16px 0}.mapa-table__label{margin-top:4px}.mapa-table__column{padding:15px;align-items:center;display:flex}.mapa-table__column--actions{display:flex}.mapa-table__column--actions .mat-icon{color:#ea561d!important}.mapa-table__column--actions-item{display:flex!important;align-items:center;gap:8px}.mapa-table__column--menu{display:flex;align-items:center;justify-content:center;gap:8px}.mapa-table__column--menu .mapa-table__column--menu-item-text{display:flex;align-items:center;justify-content:center;font-size:12px;line-height:16px!important}.mapa-table__column--menu-item{display:flex;align-items:center;width:unset!important;height:unset!important}.mapa-table__column--menu-item img{margin-right:8px}.mapa-table__column--menu-item button{color:#ea561d!important}.mapa-table__column--menu-item button span{font-size:12px;text-transform:uppercase;display:flex}.mapa-table__column--header{width:100%}.mapa-table__column--header .mat-icon{cursor:pointer;position:relative;bottom:-3px;margin:0 7px;font-size:14px;height:14px;width:14px}.mapa-table__column--status{margin:auto;text-align:center;width:min-content;border-radius:4px;padding:4px 8px}.mapa-table__column--status-round{border-radius:50px}.mapa-table__column--ellipsis{display:inline-block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mapa-table__column--no-wrap{white-space:nowrap}.mapa-table__column--wrap{white-space:pre-wrap}.mapa-table__column--center-cell{display:flex;align-items:center;justify-content:center;width:100%}.mapa-table--column-actions,.mapa-table--column-menu{width:100%}.mapa-table__content--value{color:#fff;font-weight:500}.mapa-table .mat-sort-header-arrow{color:transparent}.mapa-table .mat-sort-header-content{width:100%!important}.mapa-table .mat-cell,.mapa-table .mat-header-cell{padding:0 10px!important}.mapa-table .mat-table{width:100%;overflow-x:auto}@media (max-width: 1000px){.mapa-table .mat-paginator-range-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.mapa-table .mat-paginator-range-label{padding:16px 0;text-align:center;width:100%}.mapa-table .mat-paginator-container{justify-content:center}}.mapa-table .classification{width:40px;height:40px;border-radius:24px;display:flex;justify-content:center;align-items:center}.mapa-table .roundCell{border-radius:10px}.mapa-table .general{border-radius:24px;border:1px solid #dcdcde;display:flex;justify-content:center;align-items:center;width:48px;height:48px}.mapa-table .name{color:#181818;text-align:left;font-family:Inter,Arial,Helvetica,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:20px}.mapa-table .cpf{color:#77838f;text-align:left;font-family:Inter,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.mapa-table .label_report{color:#181818;text-align:center;font-family:Inter,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:16px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#000}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f598a7;color:#000}.classification-7{background-color:#f56580;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px;font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400}.display-S{font-family:Inter,Arial,Helvetica,sans-serif;font-size:20px;font-style:normal;font-weight:400}.display-L{font-family:Inter,Arial,Helvetica,sans-serif;font-size:32px;font-style:normal;font-weight:400}.display-XG{font-family:Inter,Arial,Helvetica,sans-serif;font-size:48px;font-style:normal;font-weight:400}*{transition:opacity .4s ease-out,max-height .4s ease-out}\n"] }]
640
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { columns: [{
713
+ args: [{ selector: "mapa-table", encapsulation: ViewEncapsulation.None, template: "<section class=\"mapa-table\" *ngIf=\"dataSource && dataSource.data && dataSource.data.length > 0\">\n <div class=\"mapa-table--show-on-mobile\">\n <div *ngIf=\"checkbox\" class=\"mapa-table__select-all\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n > {{ selectAllLabel }}</mat-checkbox>\n </div>\n <div *ngFor=\"let row of dataSource.data.values(); let i = index\">\n <div class=\"mapa-table__card mapa__card\">\n <div *ngFor=\"let column of columns; trackBy: trackColumn; let j = index; let isFirst = first\" [ngClass]=\"'mapa-table__card--column-' + column.key\">\n <strong\n class=\"mapa-table__card--header\"\n [class.mapa-table__checkbox--header]=\"isFirst && checkbox\"\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'\">\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox: false }\"\n class=\"hidden\"\n ></div>\n </strong>\n <div\n class=\"mapa-table__card--column\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div *ngIf=\"column.key === 'actions' && actions\">\n <div *ngFor=\"let item of getContentFromColumn(row, 'actions') || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n \n <div *ngIf=\"column.key === 'menu'\">\n <div *ngIf=\"hasIndividualMenu(row); else generalMenu\" class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of getMenuItems(row)\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n <ng-template #generalMenu>\n <div class=\"mapa-table__column--menu\">\n <button\n *ngFor=\"let item of menuItems\"\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--menu-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{ item.icon }}</mat-icon>\n <mapa-svg-icon *ngIf=\"item.image\" [name]=\"setSvgName(item.image)\"></mapa-svg-icon>\n <span class=\"mapa-table__column--menu-item-text\">{{ item.text }}</span>\n </button>\n </div>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"mapa-table--show-on-desktop\">\n <table\n *ngIf=\"desktopTableVisible\"\n mat-table\n [dataSource]=\"dataSource\"\n matSort\n (matSortChange)=\"sortDataFunction($event)\"\n >\n <ng-container\n *ngFor=\"let column of columns; trackBy: trackColumn; let isFirst = first\"\n [matColumnDef]=\"column.key\"\n >\n <th\n mat-header-cell\n *matHeaderCellDef\n mat-sort-header\n [disabled]=\"!(column.key !== 'actions' ? column.sort : null)\"\n >\n <div\n [ngTemplateOutlet]=\"tableHeader\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox }\"\n ></div>\n </th>\n <td mat-cell *matCellDef=\"let row\" [style.width]=\"column?.width\">\n <div\n class=\"mapa-table__column\"\n (click)=\"emitRowClick(row, '')\"\n [class.mapa-table__column--center-cell]=\"column?.align === 'center'\"\n >\n <ng-container\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu'; else columnActionsOrMenu\"\n >\n <div class=\"mapa-table__content\">\n <div\n [style.width]=\"column?.width\"\n [class.mapa-table__column--ellipsis]=\"column?.collapse === 'overflow'\"\n [class.mapa-table__column--no-wrap]=\"column?.collapse === 'no-wrap'\"\n [class.mapa-table__column--wrap]=\"column?.collapse === 'wrap'\"\n [ngClass]=\"[hasCustomClass(column, row, column.key) ? getCustomClass(column, row, column.key) : '']\"\n >\n <div\n *ngIf=\"column?.status?.color; else commonColumn\"\n class=\"mapa-table__column--status\"\n [style.backgroundColor]=\"getBackgroundColor(column, row)\"\n [style.color]=\"getTextColor(column, row)\"\n [class.mapa-table__column--status-round]=\"column.status?.style == 'round'\"\n >\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </div>\n <ng-template #commonColumn>\n <div\n [ngTemplateOutlet]=\"tableContent\"\n [ngTemplateOutletContext]=\"{ selection, column, isFirst, checkbox, row }\"\n ></div>\n </ng-template>\n </div>\n </div>\n </ng-container>\n <ng-template #columnActionsOrMenu>\n <div\n class=\"mapa-table__column--actions\"\n *ngIf=\"column.key === 'actions' && actions\"\n >\n <div *ngFor=\"let item of row['actions'] || actions\">\n <a *ngIf=\"item.route; else commonClickAction\" [href]=\"item.route\" [routerLink]=\"item.route\">\n <button\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </a>\n <ng-template #commonClickAction>\n <button\n (click)=\"handleMenu({data: row, action: item.action})\"\n class=\"mapa-table__column--actions-item\"\n [title]=\"item.text\"\n mat-icon-button\n >\n <mat-icon *ngIf=\"item.icon\">{{item.icon}}</mat-icon>\n <img *ngIf=\"item.image\" [src]=\"item.image\" />\n <mapa-svg-icon *ngIf=\"item.svg\" [name]=\"setSvgName(item.svg)\"></mapa-svg-icon>\n <span *ngIf=\"item.showText\">{{ item.text }}</span>\n </button>\n </ng-template>\n </div>\n </div>\n <div class=\"mapa-table__column--menu\" *ngIf=\"column.key === 'menu'\">\n <mapa-menu\n *ngIf=\"hasIndividualMenu(row); else generalMenu\"\n [items]=\"row?.menu\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n <ng-template #generalMenu>\n <mapa-menu\n *ngIf=\"menuItems && menuItems.length > 0\"\n [items]=\"menuItems\"\n [data]=\"row\"\n (emitMenu)=\"handleMenu($event)\"\n ></mapa-menu>\n </ng-template>\n </div>\n </ng-template>\n </div>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns;\"\n class=\"row-hover\"\n ></tr>\n </table>\n </div>\n <section *ngIf=\"showPaginator\">\n <mat-paginator\n class=\"mapa-table__paginator-legacy\"\n appStylePaginatorMv\n [length]=\"totalCount\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"[5, 10, 25, 100]\"\n (page)=\"changePage($event)\"\n ></mat-paginator>\n </section>\n</section>\n\n<ng-template\n #tableHeader\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n *ngIf=\"selection\"\n (change)=\"$event ? toggleAllRows() : null\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n (click)=\"$event.stopPropagation()\"\n color=\"primary\"\n ></mat-checkbox>\n </ng-container>\n <div>\n <span [innerHTML]=\"column.label | safeHtml\"></span>\n </div>\n <div\n *ngIf=\"column.key !== 'actions' && column.key !== 'menu' && column.sort\"\n class=\"mapa-table--show-on-desktop\">\n <mat-icon>filter_list</mat-icon>\n </div>\n</ng-template>\n\n<ng-template\n #tableContent\n let-selection=\"selection\"\n let-column=\"column\"\n let-isFirst=\"isFirst\"\n let-checkbox=\"checkbox\"\n let-row=\"row\"\n>\n <ng-container *ngIf=\"isFirst && checkbox\">\n <mat-checkbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"$event ? selection?.toggle(row) : null; getSelectedValues()\"\n [checked]=\"selection?.isSelected(row)\"\n color=\"primary\"\n class=\"mapa-table__checkbox\"\n >\n </mat-checkbox>\n </ng-container>\n <!-- POR FAVOR, N\u00C3O QUEBRE LINHA ENTRE NG-CONTAINER/TEMPLATE E O VALOR CONTE\u00DADO -->\n <ng-container *ngIf=\"isMaskedData(column, row); else statusContent\"\n >{{ getValueAsDate(column, row) | date: column.mask }}</ng-container\n >\n <ng-template #statusContent>\n <ng-container *ngIf=\"column.status; else commonContent\">\n <ng-container *ngIf=\"isBoolean(column, row); else commonStatus\"\n ><span [innerHTML]=\"column.status.label[row[column.key] ? 1 : 0] | safeHtml\"></span\n ></ng-container>\n <ng-template #commonStatus\n ><span [innerHTML]=\"(column.status.label[row[column.key]] || '-') | safeHtml\"></span\n ></ng-template>\n </ng-container>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key] | safeHtml\"></span\n ></ng-template>\n </ng-template>\n <ng-template #statusContent>\n <ng-template #commonContent\n ><span [innerHTML]=\"row[column.key] | safeHtml\"></span\n ></ng-template>\n </ng-template>\n</ng-template>\n\n\n", styles: [".mapa-table .mat-table{font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);width:100%}.mapa-table .mat-table .mat-checkbox{margin:6px 8px 0 0;padding:0}.mapa-table td.mat-cell{padding:16px 0}.mapa-table .mat-table .mat-row .mat-cell{font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:16px;font-style:normal;font-weight:400;color:#50575e}.mapa-table .row-hover:hover{box-shadow:0 2px 4px #00000021;outline:1px solid rgba(238,238,238,.93);cursor:pointer}.mapa-table .mat-table .mat-header-cell{border:none;border-bottom:1px solid #eee;font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:16px;font-style:normal;font-weight:600;color:#50575e}.mapa-table .mat-mdc-row,.mapa-table .mdc-data-table__content{--mat-table-row-item-label-text-font: var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif)}.mapa-table .mat-mdc-header-cell,.mapa-table .mdc-data-table__content{--mat-table-row-item-label-text-font: var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif)}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-frame{border-color:#b6b6b6}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-frame{border-color:#ea561d}.mapa-table .mat-checkbox.mat-accent .mat-checkbox-background{background-color:transparent}.mapa-table .mat-checkbox.mat-accent.mat-checkbox-checked .mat-checkbox-background{background-color:#ea561d}.mapa-table .mat-mdc-paginator-container{display:flex;justify-content:space-between}.mapa-table ::ng-deep .mat-mdc-paginator-page-size-label{display:none}.mapa-table__paginator-legacy .mat-paginator-container{font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif)!important;justify-content:flex-start}.mapa-table__paginator-legacy .mat-paginator-page-size{margin-right:10vw}.mapa-table__paginator-legacy .custom-paginator-container{justify-content:flex-end}.mapa-table__paginator-legacy .custom-paginator-counter{white-space:nowrap;margin:0 4px 0 10px!important}.mapa-table__paginator-legacy .custom-paginator-page{border-radius:4px;outline:none;border:none;margin:.4em;font-size:14px;min-width:24px;width:auto;min-height:24px;max-height:24px;padding:1px 6px}.mapa-table__paginator-legacy .custom-paginator-page-enabled{color:#50575e;background:transparent;cursor:pointer}.mapa-table__paginator-legacy .custom-paginator-page-enabled:hover{background-color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-page-disabled{background-color:#ea561d;color:#fff}.mapa-table__paginator-legacy .custom-paginator-arrow-disabled{color:#dfe3e6}.mapa-table__paginator-legacy .custom-paginator-arrow-enabled{color:#999}.hidden{display:none}.mapa-table{width:100%;white-space:nowrap}.mapa-table .mat-icon-button{width:unset!important;height:unset!important;line-height:unset!important}.mapa-table .mat-icon-button .mat-button-wrapper{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%!important}@media (min-width: 1201px){.mapa-table--show-on-mobile{display:none}.mapa-table--show-on-desktop{display:block}}@media (max-width: 1200px){.mapa-table--show-on-mobile{padding:20px}.mapa-table--show-on-mobile .mapa__card{width:unset!important}.mapa-table--show-on-desktop{display:none}}.mapa-table__select-all{display:flex;align-items:center;padding:16px 24px;font-size:12px;text-transform:uppercase}@media (max-width: 1200px){.mapa-table__checkbox{margin-right:8px}.mapa-table__checkbox--header{padding-left:24px}}.mapa-table__card{position:relative;padding:24px;display:flex;flex-direction:row;flex-wrap:wrap;gap:16px}.mapa-table__card--floating-content{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:8px}.mapa-table__card--floating-actions{position:absolute;bottom:16px;right:16px;color:#ea561d}.mapa-table__card--header{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;font-size:12px;text-transform:uppercase}.mapa-table__card--header mat-icon{height:16px;width:16px;font-size:16px}.mapa-table__card--column{padding:16px 0}.mapa-table__label{margin-top:4px}.mapa-table__column{padding:15px;align-items:center;display:flex}.mapa-table__column--actions{display:flex}.mapa-table__column--actions .mat-icon{color:#ea561d!important}.mapa-table__column--actions-item{display:flex!important;align-items:center;gap:8px}.mapa-table__column--menu{display:flex;align-items:center;justify-content:center;gap:8px}.mapa-table__column--menu .mapa-table__column--menu-item-text{display:flex;align-items:center;justify-content:center;font-size:12px;line-height:16px!important}.mapa-table__column--menu-item{display:flex;align-items:center;width:unset!important;height:unset!important}.mapa-table__column--menu-item img{margin-right:8px}.mapa-table__column--menu-item button{color:#ea561d!important}.mapa-table__column--menu-item button span{font-size:12px;text-transform:uppercase;display:flex}.mapa-table__column--header{width:100%}.mapa-table__column--header .mat-icon{cursor:pointer;position:relative;bottom:-3px;margin:0 7px;font-size:14px;height:14px;width:14px}.mapa-table__column--status{margin:auto;text-align:center;width:min-content;border-radius:4px;padding:4px 8px}.mapa-table__column--status-round{border-radius:50px}.mapa-table__column--ellipsis{display:inline-block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mapa-table__column--no-wrap{white-space:nowrap}.mapa-table__column--wrap{white-space:pre-wrap}.mapa-table__column--center-cell{display:flex;align-items:center;justify-content:center;width:100%}.mapa-table--column-actions,.mapa-table--column-menu{width:100%}.mapa-table__content--value{color:#fff;font-weight:500}.mapa-table .mat-sort-header-arrow{color:transparent}.mapa-table .mat-sort-header-content{width:100%!important}.mapa-table .mat-cell,.mapa-table .mat-header-cell{padding:0 10px!important}.mapa-table .mat-table{width:100%;overflow-x:auto}@media (max-width: 1000px){.mapa-table .mat-paginator-range-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.mapa-table .mat-paginator-range-label{padding:16px 0;text-align:center;width:100%}.mapa-table .mat-paginator-container{justify-content:center}}.mapa-table .classification{width:40px;height:40px;border-radius:24px;display:flex;justify-content:center;align-items:center}.mapa-table .roundCell{border-radius:10px}.mapa-table .general{border-radius:24px;border:1px solid #dcdcde;display:flex;justify-content:center;align-items:center;width:48px;height:48px}.mapa-table .name{color:#181818;text-align:left;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:14px;font-style:normal;font-weight:400;line-height:20px}.mapa-table .cpf{color:#77838f;text-align:left;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:12px;font-style:normal;font-weight:400;line-height:16px}.mapa-table .label_report{color:#181818;text-align:center;font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:12px;font-style:normal;font-weight:400;line-height:16px}\n", ".classification-1{background-color:#073e92;color:#fff}.classification-2{background-color:#0e6ece;color:#fff}.classification-3{background-color:#2d9ced;color:#000}.classification-4{background-color:#68ceee;color:#000}.classification-5{background-color:#96f2ee;color:#000}.classification-6{background-color:#f598a7;color:#000}.classification-7{background-color:#f56580;color:#000}.classification-8{background-color:#f4284e;color:#fff}.classification-9{background-color:#c11c2f;color:#fff}.small-dot{width:12px;height:12px;border-radius:12px;padding:0;margin:0}.dot{width:16px;height:16px;border-radius:16px;padding:0;margin:0}.indicator{display:flex;padding:2px 4px 2px 16px;justify-content:space-between;align-items:center;border-radius:8px;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", \"Inter\", sans-serif);font-size:16px;font-style:normal;font-weight:400}.display-S{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:20px;font-style:normal;font-weight:400}.display-L{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:32px;font-style:normal;font-weight:400}.display-XG{font-family:var(--mapa-font-heading, \"Asap\", \"Inter\", sans-serif);font-size:48px;font-style:normal;font-weight:400}*{transition:opacity .4s ease-out,max-height .4s ease-out}\n"] }]
714
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: MapaI18nService }]; }, propDecorators: { columns: [{
641
715
  type: Input
642
716
  }], data: [{
643
717
  type: Input
@@ -666,6 +740,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
666
740
  }], trigger: [{
667
741
  type: ViewChild,
668
742
  args: [MatMenuTrigger]
743
+ }], table: [{
744
+ type: ViewChild,
745
+ args: [MatTable]
669
746
  }], rowClick: [{
670
747
  type: Output
671
748
  }], selectedRows: [{
@@ -682,56 +759,3678 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
682
759
  args: [MatSort]
683
760
  }] } });
684
761
 
685
- class MapaMenuModule {
686
- }
687
- MapaMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
688
- MapaMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, declarations: [MapaMenuComponent], imports: [CommonModule,
689
- MatMenuModule,
690
- MapaButtonModule,
691
- MatIconModule], exports: [MapaMenuComponent] });
692
- MapaMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, imports: [CommonModule,
693
- MatMenuModule,
694
- MapaButtonModule,
695
- MatIconModule] });
696
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaMenuModule, decorators: [{
697
- type: NgModule,
698
- args: [{
699
- declarations: [
700
- MapaMenuComponent
701
- ],
702
- imports: [
703
- CommonModule,
704
- MatMenuModule,
705
- MapaButtonModule,
706
- MatIconModule
707
- ],
708
- exports: [
709
- MapaMenuComponent,
710
- ]
711
- }]
712
- }] });
762
+ const ESTADOS_SIGLA = ['ac', 'al', 'am', 'ap', 'ba', 'ce', 'df', 'es', 'go', 'ma',
763
+ 'mg', 'ms', 'mt', 'pa', 'pb', 'pe', 'pi', 'pr', 'rj', 'rn', 'ro', 'rr', 'rs',
764
+ 'sc', 'se', 'sp', 'to'
765
+ ];
766
+ const ESTADOS = [
767
+ { name: 'Acre', shortname: 'AC', slug: 'acre' },
768
+ { name: 'Alagoas', shortname: 'AL', slug: 'alagoas' },
769
+ { name: 'Amapá', shortname: 'AP', slug: 'amapa' },
770
+ { name: 'Amazonas', shortname: 'AM', slug: 'amazonas' },
771
+ { name: 'Bahia', shortname: 'BA', slug: 'bahia' },
772
+ { name: 'Ceará', shortname: 'CE', slug: 'ceara' },
773
+ { name: 'Distrito Federal', shortname: 'DF', slug: 'distrito-federal' },
774
+ { name: 'Espírito Santo', shortname: 'ES', slug: 'espirito-santo' },
775
+ { name: 'Goiás', shortname: 'GO', slug: 'goias' },
776
+ { name: 'Maranhão', shortname: 'MA', slug: 'maranhao' },
777
+ { name: 'Mato Grosso', shortname: 'MT', slug: 'mato-grosso' },
778
+ { name: 'Mato Grosso do Sul', shortname: 'MS', slug: 'mato-grosso-do-sul' },
779
+ { name: 'Minas Gerais', shortname: 'MG', slug: 'minas-gerais' },
780
+ { name: 'Pará', shortname: 'PA', slug: 'para' },
781
+ { name: 'Paraíba', shortname: 'PB', slug: 'paraiba' },
782
+ { name: 'Paraná', shortname: 'PR', slug: 'parana' },
783
+ { name: 'Pernambuco', shortname: 'PE', slug: 'pernambuco' },
784
+ { name: 'Piauí', shortname: 'PI', slug: 'piaui' },
785
+ { name: 'Rio de Janeiro', shortname: 'RJ', slug: 'rio-de-janeiro' },
786
+ { name: 'Rio Grande do Norte', shortname: 'RN', slug: 'rio-grande-do-norte' },
787
+ { name: 'Rio Grande do Sul', shortname: 'RS', slug: 'rio-grande-do-sul' },
788
+ { name: 'Rondônia', shortname: 'RO', slug: 'rondonia' },
789
+ { name: 'Roraima', shortname: 'RR', slug: 'roraima' },
790
+ { name: 'Santa Catarina', shortname: 'SC', slug: 'santa-catarina' },
791
+ { name: 'São Paulo', shortname: 'SP', slug: 'sao-paulo' },
792
+ { name: 'Sergipe', shortname: 'SE', slug: 'sergipe' },
793
+ { name: 'Tocantins', shortname: 'TO', slug: 'tocantins' }
794
+ ];
713
795
 
714
- /*
715
- * Public API Surface of mapa-library-ui input
796
+ function isPresent(obj) {
797
+ return obj !== undefined && obj !== null;
798
+ }
799
+ function isArray(value) {
800
+ return (Array.isArray && Array.isArray(value)) || value instanceof Array;
801
+ }
802
+ function isString(value) {
803
+ return typeof value === 'string' || value instanceof String;
804
+ }
805
+ function isNumber(value) {
806
+ return typeof value === 'number' && !isNaN(value); // && value.length === undefined
807
+ }
808
+ function isNil(value) {
809
+ return typeof value === 'undefined' || value === null;
810
+ }
811
+ const strCaretTrap = '[]';
812
+ function processCaretTraps(mask) {
813
+ const indexes = [];
814
+ let indexOfCaretTrap;
815
+ while (indexOfCaretTrap = mask.indexOf(strCaretTrap), indexOfCaretTrap !== -1) { // eslint-disable-line
816
+ indexes.push(indexOfCaretTrap);
817
+ mask.splice(indexOfCaretTrap, 1);
818
+ }
819
+ return { maskWithoutCaretTraps: mask, indexes };
820
+ }
821
+ const modulo11 = (value) => {
822
+ let mults = [];
823
+ let weightVal = 2;
824
+ for (let i = 0; i < value.length; i++) {
825
+ // mults = [weightVal, ...mults]
826
+ mults.push(weightVal);
827
+ weightVal++;
828
+ if (weightVal > 9)
829
+ weightVal = 2;
830
+ }
831
+ mults = mults.reverse();
832
+ let sum = 0;
833
+ for (let i = 0; i < value.length; i++) {
834
+ sum += parseInt(value[i]) * mults[i];
835
+ }
836
+ const digit = (sum * 10) % 11;
837
+ return digit;
838
+ };
839
+ const modulo11Custom = (string, size, maxMult = string.length, by10 = true) => {
840
+ if (!by10)
841
+ size = 1;
842
+ for (let n = 1; n <= size; n++) {
843
+ let soma = 0;
844
+ let mult = 2;
845
+ for (let i = string.length - 1; i >= 0; i--) {
846
+ soma += (mult * parseInt(string.charAt(i)));
847
+ mult++;
848
+ if (mult > maxMult)
849
+ mult = 2;
850
+ }
851
+ let dig;
852
+ if (by10) {
853
+ dig = ((soma * 10) % 11) % 10;
854
+ }
855
+ else {
856
+ dig = soma % 11;
857
+ if (dig == 10)
858
+ dig = 0;
859
+ }
860
+ string += dig;
861
+ }
862
+ return string.substr(string.length - size, size);
863
+ };
864
+ const modulo11a = (string, size, mod) => {
865
+ let soma = 0;
866
+ for (let i = 1; i <= size; i++) {
867
+ // tslint:disable-next-line:radix
868
+ soma = soma + parseInt(string.substring(i - 1, i)) * (mod - i);
869
+ }
870
+ let resto = (soma * 10) % 11;
871
+ if ((resto === 10) || (resto === 11)) {
872
+ resto = 0;
873
+ }
874
+ return resto;
875
+ };
876
+ /**
877
+ *
878
+ * @param input
879
+ * ^ - Match line start
880
+ (\d) - match first digit and capture it in back reference #1 i.e. \1
881
+ (?!..) is a negative lookahead
882
+ (?!\1+$) means disallow the match if first digit is followed by same digit (captured group) till end.
883
+ \d{11}$ match next 11 digit followed by line end
716
884
  */
717
-
718
- class MapaSvgIconModule {
885
+ function allNumbersAreSame(inputValue) {
886
+ const input = getAllDigits(inputValue);
887
+ if (typeof input === 'string') {
888
+ const reg = new RegExp('^(\\d)(?!\\1+$)\\d{' + (input.length - 1) + '}$');
889
+ return reg.test(input);
890
+ }
891
+ return false;
719
892
  }
720
- MapaSvgIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaSvgIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
721
- MapaSvgIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaSvgIconModule, declarations: [MapaSvgIconComponent, SafeHtmlPipe], imports: [CommonModule], exports: [MapaSvgIconComponent] });
722
- MapaSvgIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaSvgIconModule, imports: [CommonModule] });
723
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaSvgIconModule, decorators: [{
724
- type: NgModule,
725
- args: [{
726
- declarations: [MapaSvgIconComponent, SafeHtmlPipe],
727
- exports: [MapaSvgIconComponent],
728
- imports: [CommonModule],
729
- }]
730
- }] });
893
+ function getAllDigits(input) {
894
+ if (!input.match) {
895
+ input = input.toString();
896
+ }
897
+ const match = input.match(/\d/g);
898
+ if (match) {
899
+ return match.join("");
900
+ }
901
+ return '';
902
+ }
903
+ function getAllWords(input) {
904
+ const match = input.match(/\w/g);
905
+ if (match) {
906
+ return match.join("");
907
+ }
908
+ return '';
909
+ }
910
+ function currencyToNumber(input) {
911
+ if (typeof input === 'number') {
912
+ return input;
913
+ }
914
+ input = input.replace(/ /g, '');
915
+ if (input.indexOf('$') !== -1) {
916
+ const vals = input.split('$');
917
+ input = vals[1];
918
+ }
919
+ // Keeping just numbers . and ,
920
+ input = input.replace(/[^0-9.,]+/, '');
921
+ // eua format
922
+ if (input.indexOf('.') === (input.length - 1) - 2) {
923
+ input = input.replace(/\,/g, '');
924
+ }
925
+ // br format
926
+ else {
927
+ input = input.replace(/\./g, '').replace(',', '.');
928
+ }
929
+ return parseFloat(input);
930
+ }
931
+ function numberToCurrency(value) {
932
+ return ' R$ ' + value.toFixed(2).replace('.', ',') + ' ';
933
+ }
934
+ ;
935
+ function slugify(value) {
936
+ return value.toString().toLowerCase()
937
+ .replace(/[àÀáÁâÂãäÄÅåª]+/g, 'a') // Special Characters #1
938
+ .replace(/[èÈéÉêÊëË]+/g, 'e') // Special Characters #2
939
+ .replace(/[ìÌíÍîÎïÏ]+/g, 'i') // Special Characters #3
940
+ .replace(/[òÒóÓôÔõÕöÖº]+/g, 'o') // Special Characters #4
941
+ .replace(/[ùÙúÚûÛüÜ]+/g, 'u') // Special Characters #5
942
+ .replace(/[ýÝÿŸ]+/g, 'y') // Special Characters #6
943
+ .replace(/[ñÑ]+/g, 'n') // Special Characters #7
944
+ .replace(/[çÇ]+/g, 'c') // Special Characters #8
945
+ .replace(/[ß]+/g, 'ss') // Special Characters #9
946
+ .replace(/[Ææ]+/g, 'ae') // Special Characters #10
947
+ .replace(/[Øøœ]+/g, 'oe') // Special Characters #11
948
+ .replace(/[%]+/g, 'pct') // Special Characters #12
949
+ .replace(/\s+/g, '-') // Replace spaces with -
950
+ .replace(/[^\w\-]+/g, '') // Remove all non-word chars
951
+ .replace(/\-\-+/g, '-') // Replace multiple - with single -
952
+ .replace(/^-+/, '') // Trim - from start of text
953
+ .replace(/-+$/, ''); // Trim - from end of text
954
+ }
955
+ ;
956
+ /**
957
+ *
958
+ * @param string ex. 12345
959
+ * @param size 11
960
+ * @param fill 0
961
+ *
962
+ * Returns: 00000012345
963
+ */
964
+ function fillString(string, size, fill) {
965
+ if (string.length < size) {
966
+ const dif = size - string.length;
967
+ for (let i = 0; i < dif; i++) {
968
+ string = fill + string;
969
+ }
970
+ }
971
+ return string;
972
+ }
973
+ function randArray(array) {
974
+ const index = randomNumber(0, array.length);
975
+ return array[index];
976
+ }
977
+ function rand(length, ...ranges) {
978
+ var str = ""; // the string (initialized to "")
979
+ while (length--) { // repeat this length of times
980
+ var ind = Math.floor(Math.random() * ranges.length); // get a random range from the ranges object
981
+ var min = ranges[ind][0].charCodeAt(0), // get the minimum char code allowed for this range
982
+ max = ranges[ind][1].charCodeAt(0); // get the maximum char code allowed for this range
983
+ var c = Math.floor(Math.random() * (max - min + 1)) + min; // get a random char code between min and max
984
+ str += String.fromCharCode(c); // convert it back into a character and append it to the string str
985
+ }
986
+ return str; // return str
987
+ }
988
+ function randomNumber(begin, end) {
989
+ const dif = end - begin;
990
+ const number = Math.floor(Math.random() * dif) + begin;
991
+ return number;
992
+ }
993
+ function randomLetter(size = 1, onlyCapitals = false) {
994
+ var text = "";
995
+ let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
996
+ if (onlyCapitals == false) {
997
+ possible += "abcdefghijklmnopqrstuvwxyz";
998
+ }
999
+ possible = possible.split('');
1000
+ for (let i = 0; i < size; i++) {
1001
+ const pos = Math.floor(Math.random() * possible.length);
1002
+ text += possible[pos];
1003
+ }
1004
+ return text;
1005
+ }
1006
+ function randomLetterOrNumber(size = 1, onlyCapitals = false) {
1007
+ var text = "";
1008
+ let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
1009
+ if (onlyCapitals == false) {
1010
+ possible += "abcdefghijklmnopqrstuvwxyz0123456789";
1011
+ }
1012
+ possible = possible.split('');
1013
+ for (let i = 0; i < size; i++) {
1014
+ const pos = Math.floor(Math.random() * possible.length);
1015
+ text += possible[pos];
1016
+ }
1017
+ return text;
1018
+ }
1019
+ const randomEstadoSigla = () => {
1020
+ const total = ESTADOS_SIGLA.length;
1021
+ return ESTADOS_SIGLA[Math.floor(Math.random() * total)];
1022
+ };
1023
+ const CORES = ["AMARELO", "AZUL", "BEGE", "BRANCA", "CINZA", "DOURADA", "GRENA", "LARANJA", "MARROM", "PRATA",
1024
+ "PRETA", "ROSA", "ROXA", "VERDE", "VERMELHA", "FANTASIA"];
1025
+ function getSpecialProperty(model, key) {
1026
+ return model[key];
1027
+ }
1028
+ /**
1029
+ *
1030
+ */
1031
+ const makeGenericFaker = (val, options = null) => {
1032
+ return () => {
1033
+ if (!val.textMask || !val.textMask.map) {
1034
+ return '';
1035
+ }
1036
+ const newData = val.textMask.map((c, index) => {
1037
+ if (options && options[index]) {
1038
+ return options[index]();
1039
+ }
1040
+ c = c.toString();
1041
+ if (c === /\d/.toString()) {
1042
+ return Math.floor(Math.random() * 10).toString();
1043
+ }
1044
+ else if (c === /[A-Za-z]/.toString()) {
1045
+ return randomLetter(1).toString();
1046
+ }
1047
+ else if (c === /\w/.toString()) {
1048
+ return randomLetterOrNumber(1).toString();
1049
+ }
1050
+ else if (c.indexOf('/[') === 0) { // /[1-9]/ ou /[5-9]/
1051
+ c = c.replace('/[', '').replace(']/', '');
1052
+ if (c.indexOf('-') > 0) {
1053
+ c = c.split('-');
1054
+ if (parseInt(c[1])) {
1055
+ const mult = c[1] - c[0];
1056
+ const plus = parseInt(c[0]);
1057
+ return (Math.floor(Math.random() * mult) + plus).toString();
1058
+ }
1059
+ else {
1060
+ return rand(1, [c[0], c[1]]);
1061
+ }
1062
+ }
1063
+ else if (c.indexOf('|') > 0) {
1064
+ c = c.split('|');
1065
+ const index = Math.floor(Math.random() * c.length);
1066
+ return c[index];
1067
+ }
1068
+ }
1069
+ else {
1070
+ return c;
1071
+ }
1072
+ });
1073
+ return newData.join('');
1074
+ };
1075
+ };
1076
+ const utilsBr$1 = {
1077
+ isPresent,
1078
+ isArray,
1079
+ isString,
1080
+ isNumber,
1081
+ isNil,
1082
+ processCaretTraps,
1083
+ allNumbersAreSame,
1084
+ getAllDigits,
1085
+ getAllWords,
1086
+ currencyToNumber,
1087
+ numberToCurrency,
1088
+ slugify,
1089
+ fillString,
1090
+ randArray,
1091
+ rand,
1092
+ randomNumber,
1093
+ randomLetter,
1094
+ randomLetterOrNumber,
1095
+ getSpecialProperty
1096
+ };
731
1097
 
732
- /*
733
- * Public API Surface of mapa-library-ui svg-icon
1098
+ /**
1099
+ * BASED ON https://github.com/gammasoft/ie/
734
1100
  */
1101
+ const generateInscricaoEstadual = {
1102
+ ac: function (valor) {
1103
+ if (tamanhoNaoE(valor, 13)) {
1104
+ return false;
1105
+ }
1106
+ if (naoComecaCom(valor, '01')) {
1107
+ return false;
1108
+ }
1109
+ const base = primeiros(valor, 11);
1110
+ const primeiroDigito = substracaoPor11SeMaiorQue2CasoContrario0(mod(base));
1111
+ const segundoDigito = substracaoPor11SeMaiorQue2CasoContrario0(mod(base + primeiroDigito));
1112
+ return base + primeiroDigito + segundoDigito;
1113
+ },
1114
+ am: function (valor) {
1115
+ if (tamanhoNaoE(valor)) {
1116
+ return false;
1117
+ }
1118
+ return calculoTrivialGenerate(valor);
1119
+ },
1120
+ al: function (valor) {
1121
+ if (tamanhoNaoE(valor)) {
1122
+ return false;
1123
+ }
1124
+ if (naoComecaCom(valor, '24')) {
1125
+ return false;
1126
+ }
1127
+ // FORMAÇÃO: 24XNNNNND, sendo:
1128
+ // 24 – Código do Estado
1129
+ // X – Tipo de empresa (0-Normal, 3-Produtor Rural, 5-Substituta, 7- Micro-Empresa Ambulante, 8-Micro-Empresa)
1130
+ // NNNNN – Número da empresa
1131
+ // D – Dígito de verificação calculado pelo Módulo11, pêsos 2 à 9 da direita para a esquerda, exceto D
1132
+ // Exemplo: Número 2 4 0 0 0 0 0 4 D
1133
+ // 2 4 X N N N N N D
1134
+ // Fonte: http://www.sintegra.gov.br/Cad_Estados/cad_AL.html
1135
+ const base = primeiros(valor);
1136
+ // Pesos 9 8 7 6 5 4 3 2
1137
+ // SOMA = (2 * 4) + (3 * 0) + (4 * 0) + (5 * 0) + (6 * 0) + (7 * 0) + (8 * 4) + (9 * 2) = 58
1138
+ const soma = base.split('').reduce((acc, v, i) => {
1139
+ return acc + (9 - i) * Number(v);
1140
+ }, 0);
1141
+ // PRODUTO = 58 * 10 = 580
1142
+ const produto = soma * 10;
1143
+ // RESTO = 580 – INTEIRO(580 / 11)*11 = 580 – (52*11) = 8
1144
+ const resto = produto - Math.floor(produto / 11) * 11;
1145
+ // DÍGITO = 8 - Caso RESTO seja igual a 10 o DÍGITO será 0 (zero)
1146
+ const digito = resto === 10 ? 0 : resto;
1147
+ return base + digito;
1148
+ },
1149
+ ap: function (valor) {
1150
+ if (tamanhoNaoE(valor)) {
1151
+ return false;
1152
+ }
1153
+ if (naoComecaCom(valor, '03')) {
1154
+ return false;
1155
+ }
1156
+ const base = primeiros(valor);
1157
+ let p, d;
1158
+ if (entre(base, 3000001, 3017000)) {
1159
+ p = 5;
1160
+ d = 0;
1161
+ }
1162
+ else if (entre(base, 3017001, 3019022)) {
1163
+ p = 9;
1164
+ d = 1;
1165
+ }
1166
+ else {
1167
+ p = 0;
1168
+ d = 0;
1169
+ }
1170
+ const resto = mod(p + base, [2, 3, 4, 5, 6, 7, 8, 9, 1]);
1171
+ let digito;
1172
+ if (resto === 1) {
1173
+ digito = 0;
1174
+ }
1175
+ else if (resto === 0) {
1176
+ digito = d;
1177
+ }
1178
+ else {
1179
+ digito = 11 - resto;
1180
+ }
1181
+ return base + digito;
1182
+ },
1183
+ ba: function (valor) {
1184
+ if (tamanhoNaoE(valor, 8) && tamanhoNaoE(valor)) {
1185
+ return false;
1186
+ }
1187
+ const base = primeiros(valor, valor.length - 2);
1188
+ let primeiroDigito, segundoDigito;
1189
+ const segundoMultiplicador = serie(2, 7);
1190
+ const primeiroMultiplicador = serie(2, 8);
1191
+ let primeiroResto, segundoResto;
1192
+ let digitoComparacao = valor.substring(0, 1);
1193
+ if (tamanhoE(valor, 9)) {
1194
+ segundoMultiplicador.push(8);
1195
+ primeiroMultiplicador.push(9);
1196
+ digitoComparacao = valor.substring(1, 2);
1197
+ }
1198
+ if ('0123458'.split('').indexOf(digitoComparacao) !== -1) {
1199
+ segundoResto = mod(base, segundoMultiplicador, 10);
1200
+ segundoDigito = segundoResto === 0 ? 0 : 10 - segundoResto;
1201
+ primeiroResto = mod(base + segundoDigito, primeiroMultiplicador, 10);
1202
+ primeiroDigito = primeiroResto === 0 ? 0 : 10 - primeiroResto;
1203
+ }
1204
+ else {
1205
+ segundoResto = mod(base, segundoMultiplicador);
1206
+ segundoDigito = substracaoPor11SeMaiorQue2CasoContrario0(segundoResto);
1207
+ primeiroResto = mod(base + segundoDigito, primeiroMultiplicador);
1208
+ primeiroDigito = substracaoPor11SeMaiorQue2CasoContrario0(primeiroResto);
1209
+ }
1210
+ return base + primeiroDigito + segundoDigito;
1211
+ },
1212
+ ce: function (valor) {
1213
+ if (tamanhoNaoE(valor)) {
1214
+ return false;
1215
+ }
1216
+ return calculoTrivialGenerate(valor);
1217
+ },
1218
+ df: function (valor) {
1219
+ if (tamanhoNaoE(valor, 13)) {
1220
+ return false;
1221
+ }
1222
+ if (naoComecaCom(valor, '07') && naoComecaCom(valor, '08')) {
1223
+ return false;
1224
+ }
1225
+ const base = primeiros(valor, 11);
1226
+ const primeiro = substracaoPor11SeMaiorQue2CasoContrario0(mod(base));
1227
+ const segundo = substracaoPor11SeMaiorQue2CasoContrario0(mod(base + primeiro));
1228
+ return base + primeiro + segundo;
1229
+ },
1230
+ es: function (valor) {
1231
+ return calculoTrivialGenerate(valor);
1232
+ },
1233
+ go: function (valor) {
1234
+ if (tamanhoNaoE(valor)) {
1235
+ return false;
1236
+ }
1237
+ // Verifica os digitos iniciais do estado
1238
+ // Fonte: https://appasp.economia.go.gov.br/Legislacao/arquivos/Secretario/IN/IN_1535_2022.htm
1239
+ if (['10', '11', '15', '20'].indexOf(valor.substring(0, 2)) === -1) {
1240
+ return false;
1241
+ }
1242
+ const base = primeiros(valor);
1243
+ if (base === '11094402') {
1244
+ return valor.substr(8) === '1' || valor.substr(8) === '0';
1245
+ }
1246
+ const resto = mod(base);
1247
+ let digito;
1248
+ if (resto === 0) {
1249
+ digito = 0;
1250
+ }
1251
+ else if (resto === 1) {
1252
+ if (entre(base, 10103105, 10119997)) {
1253
+ digito = 1;
1254
+ }
1255
+ else {
1256
+ digito = 0;
1257
+ }
1258
+ }
1259
+ else {
1260
+ digito = 11 - resto;
1261
+ }
1262
+ return base + digito;
1263
+ },
1264
+ ma: function (valor) {
1265
+ if (tamanhoNaoE(valor)) {
1266
+ return false;
1267
+ }
1268
+ if (naoComecaCom(valor, '12')) {
1269
+ return false;
1270
+ }
1271
+ return calculoTrivialGenerate(valor);
1272
+ },
1273
+ mg: function (valor) {
1274
+ if (tamanhoNaoE(valor, 13)) {
1275
+ return false;
1276
+ }
1277
+ const base = primeiros(valor, 11);
1278
+ const baseComZero = valor.substring(0, 3) + '0' + valor.substring(3, 11);
1279
+ let i = 0;
1280
+ const produtorioLiteral = baseComZero.split('').reduceRight(function (anterior, atual) {
1281
+ if (i > [2, 1].length - 1) {
1282
+ i = 0;
1283
+ }
1284
+ return ([2, 1][i++] * parseInt(atual, 10)).toString() + anterior.toString();
1285
+ }, '').split('').reduce(function (anterior, atual) {
1286
+ return anterior + parseInt(atual, 10);
1287
+ }, 0);
1288
+ let primeiro = ((Math.floor(produtorioLiteral / 10) + 1) * 10) - produtorioLiteral;
1289
+ if (primeiro === 10) {
1290
+ primeiro = 0;
1291
+ }
1292
+ const segundo = substracaoPor11SeMaiorQue2CasoContrario0(mod(base + primeiro, serie(2, 11)));
1293
+ return base + primeiro + segundo;
1294
+ },
1295
+ ms: function (valor) {
1296
+ if (naoComecaCom(valor, '28')) {
1297
+ return false;
1298
+ }
1299
+ return calculoTrivialGenerate(valor);
1300
+ },
1301
+ mt: function (valor) {
1302
+ if (tamanhoNaoE(valor, 11) && tamanhoNaoE(valor)) {
1303
+ return false;
1304
+ }
1305
+ const base = tamanhoE(valor, 11) ? valor.substring(0, 10) : primeiros(valor);
1306
+ return calculoTrivialGenerate(valor, base, true);
1307
+ },
1308
+ pa: function (valor) {
1309
+ if (tamanhoNaoE(valor)) {
1310
+ return false;
1311
+ }
1312
+ if (naoComecaCom(valor, '15') && naoComecaCom(valor, '75')) {
1313
+ return false;
1314
+ }
1315
+ return calculoTrivialGenerate(valor);
1316
+ },
1317
+ pb: function (valor) {
1318
+ if (tamanhoNaoE(valor)) {
1319
+ return false;
1320
+ }
1321
+ return calculoTrivialGenerate(valor);
1322
+ },
1323
+ pe: function (valor) {
1324
+ const base = valor.substring(0, valor.length - 2);
1325
+ const restoPrimeiro = mod(base);
1326
+ const primeiro = 11 - restoPrimeiro >= 10 ? 0 : 11 - restoPrimeiro;
1327
+ const restoSegundo = mod(base + primeiro);
1328
+ const segundo = 11 - restoSegundo >= 10 ? 0 : 11 - restoSegundo;
1329
+ return base + primeiro + segundo;
1330
+ },
1331
+ pi: function (valor) {
1332
+ return calculoTrivialGenerate(valor);
1333
+ },
1334
+ pr: function (valor) {
1335
+ if (tamanhoNaoE(valor, 10)) {
1336
+ return false;
1337
+ }
1338
+ const base = primeiros(valor);
1339
+ const restoPrimeiro = mod(base, serie(2, 7));
1340
+ const primeiro = 11 - restoPrimeiro >= 10 ? 0 : 11 - restoPrimeiro;
1341
+ const restoSegundo = mod(base + primeiro, serie(2, 7));
1342
+ const segundo = 11 - restoSegundo >= 10 ? 0 : 11 - restoSegundo;
1343
+ return base + primeiro + segundo;
1344
+ },
1345
+ rj: function (valor) {
1346
+ if (tamanhoNaoE(valor, 8)) {
1347
+ return false;
1348
+ }
1349
+ const base = primeiros(valor, 7);
1350
+ const digito = substracaoPor11SeMaiorQue2CasoContrario0(mod(base, serie(2, 7)));
1351
+ return base + digito;
1352
+ },
1353
+ rn: function (valor) {
1354
+ if (tamanhoNaoE(valor) && tamanhoNaoE(valor, 10)) {
1355
+ return false;
1356
+ }
1357
+ if (naoComecaCom(valor, '20')) {
1358
+ return false;
1359
+ }
1360
+ const base = valor.substring(0, valor.length - 1);
1361
+ const multiplicadores = serie(2, 9);
1362
+ if (tamanhoE(valor, 10)) {
1363
+ multiplicadores.push(10);
1364
+ }
1365
+ const resto = (mod(base, multiplicadores) * 10) % 11;
1366
+ const digito = resto === 10 ? 0 : resto;
1367
+ return base + digito;
1368
+ },
1369
+ ro: function (valor) {
1370
+ let base, digito, resultadoMod;
1371
+ if (tamanhoE(valor, 9)) {
1372
+ base = valor.substring(3, 8);
1373
+ digito = substracaoPor11SeMaiorQue2CasoContrario0(mod(base));
1374
+ return valor === valor.substring(0, 3) + base + digito;
1375
+ }
1376
+ else if (tamanhoE(valor, 14)) {
1377
+ base = primeiros(valor, 13);
1378
+ resultadoMod = mod(base);
1379
+ digito = resultadoMod <= 1 ? 1 : 11 - resultadoMod;
1380
+ return base + digito;
1381
+ }
1382
+ else {
1383
+ return false;
1384
+ }
1385
+ },
1386
+ rr: function (valor) {
1387
+ if (tamanhoNaoE(valor)) {
1388
+ return false;
1389
+ }
1390
+ if (naoComecaCom(valor, '24')) {
1391
+ return false;
1392
+ }
1393
+ const base = primeiros(valor);
1394
+ const digito = mod(base, [8, 7, 6, 5, 4, 3, 2, 1], 9);
1395
+ return base + digito;
1396
+ },
1397
+ rs: function (valor) {
1398
+ if (tamanhoNaoE(valor, 10)) {
1399
+ return false;
1400
+ }
1401
+ const base = primeiros(valor, 9);
1402
+ return calculoTrivialGenerate(valor, base, true);
1403
+ },
1404
+ sc: function (valor) {
1405
+ return calculoTrivialGenerate(valor);
1406
+ },
1407
+ se: function (valor) {
1408
+ if (tamanhoNaoE(valor)) {
1409
+ return false;
1410
+ }
1411
+ return calculoTrivialGenerate(valor);
1412
+ },
1413
+ sp: function (valor) {
1414
+ valor = valor.toUpperCase();
1415
+ let segundaBase;
1416
+ if (valor.substr(0, 1) === 'P') {
1417
+ if (tamanhoNaoE(valor, 13)) {
1418
+ return false;
1419
+ }
1420
+ const base = valor.substring(1, 9);
1421
+ segundaBase = valor.substring(10, 13);
1422
+ const resto = mod(base, [10, 8, 7, 6, 5, 4, 3, 1]).toString();
1423
+ const digito = resto.length > 1 ? resto[1] : resto[0];
1424
+ return 'P' + base + digito + segundaBase;
1425
+ }
1426
+ else {
1427
+ if (tamanhoNaoE(valor, 12)) {
1428
+ return false;
1429
+ }
1430
+ const primeiraBase = primeiros(valor);
1431
+ segundaBase = valor.substring(9, 11);
1432
+ const primeiroResto = mod(primeiraBase, [10, 8, 7, 6, 5, 4, 3, 1]).toString();
1433
+ const primeiro = primeiroResto.length > 1 ? primeiroResto[1] : primeiroResto[0];
1434
+ const segundoResto = mod(primeiraBase + primeiro + segundaBase, serie(2, 10)).toString();
1435
+ const segundo = segundoResto.length > 1 ? segundoResto[1] : segundoResto[0];
1436
+ return primeiraBase + primeiro + segundaBase + segundo;
1437
+ }
1438
+ },
1439
+ to: function (valor) {
1440
+ if (tamanhoNaoE(valor) && tamanhoNaoE(valor, 11)) {
1441
+ return false;
1442
+ }
1443
+ let base;
1444
+ if (tamanhoE(valor, 11)) {
1445
+ if (['01', '02', '03', '99'].indexOf(valor.substring(2, 4)) === -1) {
1446
+ return false;
1447
+ }
1448
+ base = valor.substring(0, 2) + valor.substring(4, 10);
1449
+ }
1450
+ else {
1451
+ base = primeiros(valor);
1452
+ }
1453
+ const digito = substracaoPor11SeMaiorQue2CasoContrario0(mod(base));
1454
+ return valor.substring(0, valor.length - 1) + digito;
1455
+ },
1456
+ };
1457
+ const funcoes = {
1458
+ ac: function (valor) {
1459
+ return valor === generateInscricaoEstadual['ac'](valor);
1460
+ },
1461
+ am: function (valor) {
1462
+ return valor === generateInscricaoEstadual['am'](valor);
1463
+ },
1464
+ al: function (valor) {
1465
+ return valor === generateInscricaoEstadual['al'](valor);
1466
+ },
1467
+ ap: function (valor) {
1468
+ return valor === generateInscricaoEstadual['ap'](valor);
1469
+ },
1470
+ ba: function (valor) {
1471
+ return valor === generateInscricaoEstadual['ba'](valor);
1472
+ },
1473
+ ce: function (valor) {
1474
+ return valor === generateInscricaoEstadual['ce'](valor);
1475
+ },
1476
+ df: function (valor) {
1477
+ return valor === generateInscricaoEstadual['df'](valor);
1478
+ },
1479
+ es: function (valor) {
1480
+ return valor === generateInscricaoEstadual['es'](valor);
1481
+ },
1482
+ go: function (valor) {
1483
+ return valor === generateInscricaoEstadual['go'](valor);
1484
+ },
1485
+ ma: function (valor) {
1486
+ return valor === generateInscricaoEstadual['ma'](valor);
1487
+ },
1488
+ mg: function (valor) {
1489
+ return valor === generateInscricaoEstadual['mg'](valor);
1490
+ },
1491
+ ms: function (valor) {
1492
+ return valor === generateInscricaoEstadual['ms'](valor);
1493
+ },
1494
+ mt: function (valor) {
1495
+ return valor === generateInscricaoEstadual['mt'](valor);
1496
+ },
1497
+ pa: function (valor) {
1498
+ return valor === generateInscricaoEstadual['pa'](valor);
1499
+ },
1500
+ pb: function (valor) {
1501
+ return valor === generateInscricaoEstadual['pb'](valor);
1502
+ },
1503
+ pe: function (valor) {
1504
+ return valor === generateInscricaoEstadual['pe'](valor);
1505
+ },
1506
+ pi: function (valor) {
1507
+ return valor === generateInscricaoEstadual['pi'](valor);
1508
+ },
1509
+ pr: function (valor) {
1510
+ return valor === generateInscricaoEstadual['pr'](valor);
1511
+ },
1512
+ rj: function (valor) {
1513
+ return valor === generateInscricaoEstadual['rj'](valor);
1514
+ },
1515
+ rn: function (valor) {
1516
+ return valor === generateInscricaoEstadual['rn'](valor);
1517
+ },
1518
+ ro: function (valor) {
1519
+ return valor === generateInscricaoEstadual['ro'](valor);
1520
+ },
1521
+ rr: function (valor) {
1522
+ return valor === generateInscricaoEstadual['rr'](valor);
1523
+ },
1524
+ rs: function (valor) {
1525
+ return valor === generateInscricaoEstadual['rs'](valor);
1526
+ },
1527
+ sc: function (valor) {
1528
+ return valor === generateInscricaoEstadual['sc'](valor);
1529
+ },
1530
+ se: function (valor) {
1531
+ return valor === generateInscricaoEstadual['se'](valor);
1532
+ },
1533
+ sp: function (valor) {
1534
+ return valor === generateInscricaoEstadual['sp'](valor);
1535
+ },
1536
+ to: function (valor) {
1537
+ return valor === generateInscricaoEstadual['to'](valor);
1538
+ },
1539
+ };
1540
+ function validate_inscricaoestadual(ie, estado) {
1541
+ if (eIndefinido(estado) || estado === null) {
1542
+ estado = '';
1543
+ }
1544
+ estado = estado.toLowerCase();
1545
+ if (estado !== '' && !(estado in funcoes)) {
1546
+ return new Error('estado não é válido');
1547
+ }
1548
+ if (eIndefinido(ie)) {
1549
+ return new Error('ie deve ser fornecida');
1550
+ }
1551
+ if (Array.isArray(ie)) {
1552
+ let retorno = true;
1553
+ ie.forEach(function (i) {
1554
+ if (!validate_inscricaoestadual(i, estado)) {
1555
+ retorno = false;
1556
+ }
1557
+ });
1558
+ return retorno;
1559
+ }
1560
+ if (typeof ie !== 'string') {
1561
+ return new Error('ie deve ser string ou array de strings');
1562
+ }
1563
+ if (!allNumbersAreSame(ie)) {
1564
+ return new Error('ie com todos dígitos iguais');
1565
+ }
1566
+ if (ie.match(/^ISENTO$/i)) {
1567
+ return true;
1568
+ }
1569
+ ie = ie.replace(/[\.|\-|\/|\s]/g, '');
1570
+ if (estado === '') {
1571
+ if (lookup(ie)) {
1572
+ return true;
1573
+ }
1574
+ else {
1575
+ return false;
1576
+ }
1577
+ }
1578
+ if (/^\d+$/.test(ie) || estado === 'sp' || funcoes[estado]) {
1579
+ return funcoes[estado](ie);
1580
+ }
1581
+ return false;
1582
+ }
1583
+ const MASKSIE = {
1584
+ ac: {
1585
+ text: '01.004.823/001-12',
1586
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, '-', /\d/, /\d/]
1587
+ },
1588
+ al: {
1589
+ text: '240000048',
1590
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1591
+ },
1592
+ am: {
1593
+ text: '04.145.871-0',
1594
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/]
1595
+ },
1596
+ ap: {
1597
+ text: '240000048',
1598
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1599
+ },
1600
+ ba: {
1601
+ text: '1234567-48',
1602
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/],
1603
+ textMaskFunction: function mask(userInput) {
1604
+ const numberLength = getSizeNumbers(userInput);
1605
+ if (!userInput || numberLength > 8) {
1606
+ return [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/];
1607
+ }
1608
+ else {
1609
+ return [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/];
1610
+ }
1611
+ }
1612
+ },
1613
+ ce: {
1614
+ text: '06.000001-5',
1615
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
1616
+ },
1617
+ df: {
1618
+ text: '06 000001 123-55',
1619
+ textMask: [/\d/, /\d/, ' ', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/]
1620
+ },
1621
+ es: {
1622
+ text: '082.560.67-6',
1623
+ textMask: [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, '-', /\d/]
1624
+ },
1625
+ go: {
1626
+ text: '06.000.001-5',
1627
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/]
1628
+ },
1629
+ ma: {
1630
+ text: '12.104.376-2',
1631
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/]
1632
+ },
1633
+ mg: {
1634
+ text: '001.819.263/0048',
1635
+ textMask: [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/]
1636
+ },
1637
+ ms: {
1638
+ text: '001819263',
1639
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1640
+ },
1641
+ mt: {
1642
+ text: '0018192630-1',
1643
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
1644
+ },
1645
+ pa: {
1646
+ text: '06-000001-5',
1647
+ textMask: [/\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
1648
+ },
1649
+ pb: {
1650
+ text: '06000001-5',
1651
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
1652
+ },
1653
+ pe: {
1654
+ text: '0192310-24',
1655
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/]
1656
+ },
1657
+ pi: {
1658
+ text: '19.301.656-7',
1659
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/]
1660
+ },
1661
+ pr: {
1662
+ text: '19301656-78',
1663
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/]
1664
+ },
1665
+ rj: {
1666
+ text: '20.040.04-1',
1667
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, '-', /\d/]
1668
+ },
1669
+ rn: {
1670
+ text: '20.040.040-1',
1671
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/],
1672
+ textMaskFunction: function mask(userInput) {
1673
+ const numberLength = getSizeNumbers(userInput);
1674
+ if (!userInput || numberLength > 9) {
1675
+ return [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/];
1676
+ }
1677
+ else {
1678
+ return [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/];
1679
+ }
1680
+ }
1681
+ },
1682
+ ro: {
1683
+ text: '101.62521-3',
1684
+ textMask: [/\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1685
+ },
1686
+ rr: {
1687
+ text: '24006628-1',
1688
+ textMask: [/\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1689
+ },
1690
+ rs: {
1691
+ text: '024/0440013',
1692
+ textMask: [/\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1693
+ },
1694
+ sc: {
1695
+ text: '271.234.563',
1696
+ textMask: [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/]
1697
+ },
1698
+ se: {
1699
+ text: '27123456-3',
1700
+ textMask: [/\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1701
+ },
1702
+ sp: {
1703
+ text: '114.814.878.119',
1704
+ textMask: [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/]
1705
+ },
1706
+ to: {
1707
+ text: '11 81 4878119',
1708
+ textMask: [/\d/, /\d/, ' ', /\d/, /\d/, ' ', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
1709
+ },
1710
+ };
1711
+ function getSizeNumbers(userInput) {
1712
+ const numbers = userInput.match(/\d/g);
1713
+ let numberLength = 0;
1714
+ if (numbers) {
1715
+ numberLength = numbers.join('').length;
1716
+ }
1717
+ return numberLength;
1718
+ }
1719
+ function eIndefinido(objeto) {
1720
+ return typeof objeto === typeof undefined;
1721
+ }
1722
+ function tamanhoNaoE(string, tamanho = 9) {
1723
+ if (eIndefinido(tamanho)) {
1724
+ tamanho = 9;
1725
+ }
1726
+ return string.length !== tamanho;
1727
+ }
1728
+ function tamanhoE(string, tamanho) {
1729
+ return !tamanhoNaoE(string, tamanho);
1730
+ }
1731
+ function serie(de, ate) {
1732
+ const resultado = [];
1733
+ while (de <= ate) {
1734
+ resultado.push(de++);
1735
+ }
1736
+ return resultado;
1737
+ }
1738
+ function primeiros(string, quantidade = 8) {
1739
+ if (eIndefinido(quantidade)) {
1740
+ quantidade = 8;
1741
+ }
1742
+ return string.substring(0, quantidade);
1743
+ }
1744
+ function substracaoPor11SeMaiorQue2CasoContrario0(valor) {
1745
+ return valor < 2 ? 0 : 11 - valor;
1746
+ }
1747
+ function mod(valor, multiplicadores = serie(2, 9), divisor = 11) {
1748
+ if (eIndefinido(divisor)) {
1749
+ divisor = 11;
1750
+ }
1751
+ if (eIndefinido(multiplicadores)) {
1752
+ multiplicadores = serie(2, 9);
1753
+ }
1754
+ let i = 0;
1755
+ return valor.split('').reduceRight(function (anterior, atual) {
1756
+ if (i > multiplicadores.length - 1) {
1757
+ i = 0;
1758
+ }
1759
+ return (multiplicadores[i++] * parseInt(atual, 10)) + anterior;
1760
+ }, 0) % divisor;
1761
+ }
1762
+ function calculoTrivialGenerate(valor, base = null, validarTamanho = false) {
1763
+ if (!validarTamanho && tamanhoNaoE(valor)) {
1764
+ return false;
1765
+ }
1766
+ if (eIndefinido(base)) {
1767
+ base = primeiros(valor);
1768
+ }
1769
+ if (!base) {
1770
+ base = primeiros(valor);
1771
+ }
1772
+ const digito = substracaoPor11SeMaiorQue2CasoContrario0(mod(base));
1773
+ return base + digito;
1774
+ }
1775
+ function naoComecaCom(string, valor) {
1776
+ return string.substring(0, valor.length) !== valor;
1777
+ }
1778
+ function entre(valor, limiteInferior, limiteSuperior) {
1779
+ if (typeof valor === 'string') {
1780
+ valor = parseInt(valor, 10);
1781
+ }
1782
+ return valor >= limiteInferior && valor <= limiteSuperior;
1783
+ }
1784
+ function lookup(ie) {
1785
+ const resultado = [];
1786
+ for (const estado in funcoes) {
1787
+ if (funcoes[estado](ie)) {
1788
+ resultado.push(estado);
1789
+ }
1790
+ }
1791
+ if (tamanhoE(resultado, 0)) {
1792
+ return false;
1793
+ }
1794
+ else {
1795
+ return resultado;
1796
+ }
1797
+ }
1798
+
1799
+ const PLACAS_RANGE = [
1800
+ ['AAA0001', 'BEZ9999', 'PR', '02/1990'],
1801
+ ['BFA0001', 'GKI9999', 'SP', '10/1991'],
1802
+ ['GKJ0001', 'HOK9999', 'MG', '09/1991'],
1803
+ ['HOL0001', 'HQE9999', 'MA', '01/1992'],
1804
+ ['HQF0001', 'HTW9999', 'MS', '03/1992'],
1805
+ ['HTX0001', 'HZA9999', 'CE', '10/1992'],
1806
+ ['HZB0001', 'IAP9999', 'SE', '09/1993'],
1807
+ ['IAQ0001', 'JDO9999', 'RS', '03/1992'],
1808
+ ['JDP0001', 'JKR9999', 'DF', '04/1994'],
1809
+ ['JKS0001', 'JSZ9999', 'BA', '08/1993'],
1810
+ ['JTA0001', 'JWE9999', 'PA', '07/1993'],
1811
+ ['JWF0001', 'JXY9999', 'AM', '09/1993'],
1812
+ ['JXZ0001', 'KAU9999', 'MT', '09/1993'],
1813
+ ['KAV0001', 'KFC9999', 'GO', '05/1994'],
1814
+ ['KFD0001', 'KME9999', 'PE', '08/1994'],
1815
+ ['KMF0001', 'LVE9999', 'RJ', '05/1994'],
1816
+ ['LVF0001', 'LWQ9999', 'PI', '04/1996'],
1817
+ ['LWR0001', 'MMM9999', 'SC', '06/1996'],
1818
+ ['MMN0001', 'MOW9999', 'PB', '07/1996'],
1819
+ ['MOX0001', 'MTZ9999', 'ES', '12/1995'],
1820
+ ['MUA0001', 'MVK9999', 'AL', '08/1996'],
1821
+ ['MVL0001', 'MXG9999', 'TO', '11/1996'],
1822
+ ['MXH0001', 'MZM9999', 'RN', '06/1998'],
1823
+ ['MZN0001', 'NAG9999', 'AC', '06/1998'],
1824
+ ['NAH0001', 'NBA9999', 'RR', '07/1998'],
1825
+ ['NBB0001', 'NEH9999', 'RO', '07/1998'],
1826
+ ['NEI0001', 'NFB9999', 'AP', '09/1998'],
1827
+ ['NFC0001', 'NGZ9999', 'GO', '08/2003'],
1828
+ ['NHA0001', 'NHT9999', 'MA', '12/2006'],
1829
+ ['NHU0001', 'NIX9999', 'PI', '05/2007'],
1830
+ ['NIY0001', 'NJW9999', 'MT', '10/2007'],
1831
+ ['NJX0001', 'NLU9999', 'GO', '11/2007'],
1832
+ ['NLV0001', 'NMO9999', 'AL', '01/2008'],
1833
+ ['NMP0001', 'NNI9999', 'MA', '05/2008'],
1834
+ ['NNJ0001', 'NOH9999', 'RN', '07/2008'],
1835
+ ['NOI0001', 'NPB9999', 'AM', '07/2008'],
1836
+ ['NPC0001', 'NPQ9999', 'MT', '09/2008'],
1837
+ ['NPR0001', 'NQK9999', 'PB', '11/2008'],
1838
+ ['NQL0001', 'NRE9999', 'CE', '12/2008'],
1839
+ ['NRF0001', 'NSD9999', 'MS', '11/2009'],
1840
+ ['NSE0001', 'NTC9999', 'PA', '11/2009'],
1841
+ ['NTD0001', 'NTW9999', 'BA', '02/2010'],
1842
+ ['NTX0001', 'NUG9999', 'MT', '03/2010'],
1843
+ ['NUH0001', 'NUL9999', 'RR', '06/2010'],
1844
+ ['NUM0001', 'NVF9999', 'CE', '06/2010'],
1845
+ ['NVG0001', 'NVN9999', 'SE', '03/2010'],
1846
+ ['NVO0001', 'NWR9999', 'GO', '03/2010'],
1847
+ ['NWS0001', 'NXQ9999', 'MA', '07/2010'],
1848
+ ['NXR0001', 'NXT9999', 'AC', '05/2011'],
1849
+ ['NXU0001', 'NXW9999', 'PE', '07/2010'],
1850
+ ['NXX0001', 'NYG9999', 'MG', '10/2011'],
1851
+ ['NYH0001', 'NZZ9999', 'BA', '10/2010'],
1852
+ ['OAA0001', 'OAO9999', 'AM', '12/2010'],
1853
+ ['OAP0001', 'OBS9999', 'MT', '05/2011'],
1854
+ ['OBT0001', 'OCA9999', 'PA', '07/2011'],
1855
+ ['OCB0001', 'OCU9999', 'CE', '02/2011'],
1856
+ ['OCV0001', 'ODT9999', 'ES', '05/2011'],
1857
+ ['ODU0001', 'OEI9999', 'PI', '09/2011'],
1858
+ ['OEJ0001', 'OES9999', 'SE', '08/2011'],
1859
+ ['OET0001', 'OFH9999', 'PB', '04/2011'],
1860
+ ['OFI0001', 'OFW9999', 'PA', '03/2011'],
1861
+ ['OFX0001', 'OGG9999', 'PB', '06/2011'],
1862
+ ['OGH0001', 'OHA9999', 'GO', '04/2011'],
1863
+ ['OHB0001', 'OHK9999', 'AL', '09/2011'],
1864
+ ['OHL0001', 'OHW9999', 'RO', '11/2011'],
1865
+ ['OHX0001', 'OIQ9999', 'CE', '12/2011'],
1866
+ ['OIR0001', 'OJQ9999', 'MA', '01/2012'],
1867
+ ['OJR0001', 'OKC9999', 'RN', '04/2012'],
1868
+ ['OKD0001', 'OKH9999', 'SC', '02/2014'],
1869
+ ['OKI0001', 'OLG9999', 'BA', '10/2011'],
1870
+ ['OLH0001', 'OLN9999', 'TO', '02/2012'],
1871
+ ['OLO0001', 'OMH9999', 'MG', '03/2012'],
1872
+ ['OMI0001', 'OOF9999', 'GO', '04/2012'],
1873
+ ['OOG0001', 'OOU9999', 'MS', '02/2012'],
1874
+ ['OOV0001', 'ORC9999', 'MG', '06/2012'],
1875
+ ['ORD0001', 'ORM9999', 'AL', '01/2012'],
1876
+ ['ORN0001', 'OSV9999', 'CE', '07/2012'],
1877
+ ['OSW0001', 'OTZ9999', 'PA', '08/2012'],
1878
+ ['OUA0001', 'OUE9999', 'PI', '11/2012'],
1879
+ ['OUF0001', 'OVD9999', 'BA', '12/2012'],
1880
+ ['OVE0001', 'OVF9999', 'ES', '12/2012'],
1881
+ ['OVG0001', 'OVG9999', 'AC', '05/2013'],
1882
+ ['OVH0001', 'OVL9999', 'ES', '07/2013'],
1883
+ ['OVM0001', 'OVV9999', 'DF', '11/2013'],
1884
+ ['OVW0001', 'OVY9999', 'PI', '10/2013'],
1885
+ ['OVZ0001', 'OWG9999', 'RN', '06/2013'],
1886
+ ['OWH0001', 'OXK9999', 'MG', '10/2013'],
1887
+ ['OXL0001', 'OXL9999', 'RO', '11/2013'],
1888
+ ['OXM0001', 'OXM9999', 'AM', '11/2013'],
1889
+ ['OXN0001', 'OXN9999', 'AL', '11/2013'],
1890
+ ['OXO0001', 'OXO9999', 'PB', '11/2013'],
1891
+ ['OXP0001', 'OXP9999', 'AC', '12/2013'],
1892
+ ['OXQ0001', 'OXZ9999', 'MA', '04/2014'],
1893
+ ['OYA0001', 'OYC9999', 'TO', '11/2013'],
1894
+ ['OYD0001', 'OYK9999', 'ES', '12/2013'],
1895
+ ['OYL0001', 'OYZ9999', 'PE', '02/2014'],
1896
+ ['OZA0001', 'OZA9999', 'CE', '01/2014'],
1897
+ ['OZB0001', 'OZB9999', 'SE', '01/2014'],
1898
+ ['OZC0001', 'OZV9999', 'BA', '03/2014'],
1899
+ ['OZW0001', 'PBZ9999', 'DF', '05/2014'],
1900
+ ['PCA0001', 'PED9999', 'PE', '12/2014'],
1901
+ ['PEE0001', 'PFQ9999', 'PE', '09/2010'],
1902
+ ['PFR0001', 'PGK9999', 'PE', '07/2012'],
1903
+ ['PGL0001', 'PGU9999', 'PE', '10/2013'],
1904
+ ['PGV0001', 'PGZ9999', 'PE', '12/2014'],
1905
+ ['PHA0001', 'PHZ9999', 'AM', '06/2014'],
1906
+ ['PIA0001', 'PIZ9999', 'PI', '06/2014'],
1907
+ ['PJA0001', 'PLZ9999', 'BA', '10/2014'],
1908
+ ['PMA0001', 'POZ9999', 'CE', '06/2014'],
1909
+ ['PPA0001', 'PPZ9999', 'ES', '08/2014'],
1910
+ ['PQA0001', 'PRZ9999', 'GO', '03/2015'],
1911
+ ['PSA0001', 'PTZ9999', 'MA', '12/2014'],
1912
+ ['PUA0001', 'PZZ9999', 'MG', '05/2014'],
1913
+ ['QAA0001', 'QAZ9999', 'MS', '12/2014'],
1914
+ ['QBA0001', 'QCZ9999', 'MT', '05/2014'],
1915
+ ['QDA0001', 'QEZ9999', 'PA', '10/2014'],
1916
+ ['QFA0001', 'QFZ9999', 'PB', '05/2014'],
1917
+ ['QGA0001', 'QGZ9999', 'RN', '09/2014'],
1918
+ ['QHA0001', 'QJZ9999', 'SC', '05/2014'],
1919
+ ['QKA0001', 'QKM9999', 'TO', '11/2014'],
1920
+ ['QKN0001', 'QKZ9999', 'SE', '06/2014'],
1921
+ ['QLA0001', 'QLM9999', 'AL', '09/2015'],
1922
+ ['QLN0001', 'QLT9999', 'AP', '01/2015'],
1923
+ ['QLU0001', 'QLZ9999', 'AC', '08/2014'],
1924
+ ['QMA0001', 'QMP9999', 'SE', '03/2017'],
1925
+ ['QMQ0001', 'QQZ9999', 'MG', '07/2017'],
1926
+ ['QRA0001', 'QRA9999', 'RO', '11/2017'],
1927
+ ['QRB0001', 'QRZ9999', 'ES', '05/2018'],
1928
+ ['QSA0001', 'QSZ9999', 'PB', '04/2018'],
1929
+ ['QTA0001', 'QTB9999', 'RO', '08/2018'],
1930
+ ['QTC0001', 'RIN9999', 'BR', '00/0000'],
1931
+ ['RIO0001', 'RIO9999', 'RJ', '09/2018'],
1932
+ ['RLA0001', 'SAU9999', 'BR', '00/0000'],
1933
+ ['SAV0001', 'SAV9999', 'SP', '09/2009'],
1934
+ ];
1935
+ const PLACAS_INVALID = { start: 'SAW0001', end: 'ZZZ9999' }; // || Sequências ainda não definidas
1936
+ function validate_placa(placa, incluiMercosul) {
1937
+ const placaClean = placa.toString()
1938
+ .replace(/-/g, '')
1939
+ .replace(/ /g, '')
1940
+ .toUpperCase();
1941
+ const regex = {
1942
+ legadoBR: /^[A-Z]{3}[0-9]{4}$/,
1943
+ mercosulBR: /^[A-Z]{3}[0-9]{1}[A-Z]{1}[0-9]{2}$/,
1944
+ mercosulAR: /^[A-Z]{2}[0-9]{3}[A-Z]{2}$|^[A-Z]{1}[0-9]{3}[A-Z]{3}$/,
1945
+ mercosulBO: /^[A-Z]{2}[0-9]{5}$/,
1946
+ mercosulPY: /^[A-Z]{4}[0-9]{3}$|^[0-9]{3}[A-Z]{4}$/,
1947
+ mercosulUY: /^[A-Z]{3}[0-9]{4}$/,
1948
+ };
1949
+ const isLegadoBRInvalid = placaClean >= PLACAS_INVALID.start && placaClean <= PLACAS_INVALID.end;
1950
+ if ((regex.legadoBR.test(placaClean) && !isLegadoBRInvalid)
1951
+ || (regex.mercosulBR.test(placaClean))
1952
+ || (incluiMercosul && ((regex.mercosulAR.test(placaClean))
1953
+ || (regex.mercosulBO.test(placaClean))
1954
+ || (regex.mercosulPY.test(placaClean))
1955
+ || (regex.mercosulUY.test(placaClean))))) {
1956
+ return true;
1957
+ }
1958
+ return false;
1959
+ }
1960
+
1961
+ /**
1962
+ *
1963
+ * @param uf - UF do número da guia. Ex: 35(SP), 81(PE)
1964
+ * @param ano - ANO do número da guia. Ex: 2018, 2019
1965
+ * @param tipo - TIPO da guia. Aih = 1, APAC = 2
1966
+ */
1967
+ function create_aih(value) {
1968
+ value = getAllDigits(value.toString());
1969
+ if (value.length > 12) {
1970
+ value = value.toString().substr(0, value.length - 1);
1971
+ }
1972
+ const cod = parseInt(value);
1973
+ const calc = Math.ceil(cod - (cod / 11));
1974
+ const digito = calc.toString().substr(-1);
1975
+ return digito;
1976
+ }
1977
+ function create_certidao(value) {
1978
+ if (value.length > 30) {
1979
+ value = value.substring(0, value.length - 2);
1980
+ }
1981
+ let b1 = parseInt(value.slice(29));
1982
+ let b2 = parseInt(value.slice(28, 29));
1983
+ let b3 = parseInt(value.slice(27, 28));
1984
+ let b4 = parseInt(value.slice(26, 27));
1985
+ let b5 = parseInt(value.slice(25, 26));
1986
+ let b6 = parseInt(value.slice(24, 25));
1987
+ let b7 = parseInt(value.slice(23, 24));
1988
+ let b8 = parseInt(value.slice(22, 23));
1989
+ let b9 = parseInt(value.slice(21, 22));
1990
+ let b10 = parseInt(value.slice(20, 21));
1991
+ let b11 = parseInt(value.slice(19, 20));
1992
+ let b12 = parseInt(value.slice(18, 19));
1993
+ let b13 = parseInt(value.slice(17, 18));
1994
+ let b14 = parseInt(value.slice(16, 17));
1995
+ let b15 = parseInt(value.slice(15, 16));
1996
+ let b16 = parseInt(value.slice(14, 15));
1997
+ let b17 = parseInt(value.slice(13, 14));
1998
+ let b18 = parseInt(value.slice(12, 13));
1999
+ let b19 = parseInt(value.slice(11, 12));
2000
+ let b20 = parseInt(value.slice(10, 11));
2001
+ let b21 = parseInt(value.slice(9, 10));
2002
+ let b22 = parseInt(value.slice(8, 9));
2003
+ let b23 = parseInt(value.slice(7, 8));
2004
+ let b24 = parseInt(value.slice(6, 7));
2005
+ let b25 = parseInt(value.slice(5, 6));
2006
+ let b26 = parseInt(value.slice(4, 5));
2007
+ let b27 = parseInt(value.slice(3, 4));
2008
+ let b28 = parseInt(value.slice(2, 3));
2009
+ let b29 = parseInt(value.slice(1, 2));
2010
+ let b30 = parseInt(value.slice(0, 1));
2011
+ let certPriDig = (b1 * 9 + b2 * 8 + b3 * 7 + b4 * 6 + b5 * 5 + b6 * 4 + b7 * 3 + b8 * 2 + b9 * 1 + b10 * 0 + b11 * 10 + b12 * 9 + b13 * 8 + b14 * 7 + b15 * 6 + b16 * 5 + b17 * 4 + b18 * 3 + b19 * 2 + b20 * 1 + b21 * 0 + b22 * 10 + b23 * 9 + b24 * 8 + b25 * 7 + b26 * 6 + b27 * 5 + b28 * 4 + b29 * 3 + b30 * 2) % 11;
2012
+ if (certPriDig == 10) {
2013
+ certPriDig = 1;
2014
+ }
2015
+ let certSegDig = (certPriDig * 9 + b1 * 8 + b2 * 7 + b3 * 6 + b4 * 5 + b5 * 4 + b6 * 3 + b7 * 2 + b8 * 1 + b9 * 0 + b10 * 10 + b11 * 9 + b12 * 8 + b13 * 7 + b14 * 6 + b15 * 5 + b16 * 4 + b17 * 3 + b18 * 2 + b19 * 1 + b20 * 0 + b21 * 10 + b22 * 9 + b23 * 8 + b24 * 7 + b25 * 6 + b26 * 5 + b27 * 4 + b28 * 3 + b29 * 2 + b30 * 1) % 11;
2016
+ if (certSegDig == 10) {
2017
+ certSegDig = 1;
2018
+ }
2019
+ let certDV = certPriDig * 10 + certSegDig;
2020
+ if (certDV == 0) {
2021
+ certDV = "00";
2022
+ }
2023
+ if (certDV > 0 && certDV < 10) {
2024
+ certDV = "0" + certDV;
2025
+ }
2026
+ return certDV.toString();
2027
+ }
2028
+ function create_cnhespelho(value) {
2029
+ let v1 = modulo11Custom(value.substr(0, value.length - 1), 1, 8, false);
2030
+ return v1;
2031
+ }
2032
+ function create_renachestadual(value) {
2033
+ const state = value.substr(0, 2).toLowerCase();
2034
+ if (!ESTADOS_SIGLA.includes(state)) {
2035
+ return false;
2036
+ }
2037
+ let digits = value.substr(2);
2038
+ digits = digits.replace(/[^\d]/g, '');
2039
+ if (digits.length !== 9) {
2040
+ return false;
2041
+ }
2042
+ let v1 = modulo11Custom(digits.substr(0, digits.length - 1), 1, 11);
2043
+ return '' + v1;
2044
+ }
2045
+ /**
2046
+ *
2047
+ * @param value
2048
+ * @returns
2049
+ */
2050
+ function create_renachseguranca(value) {
2051
+ value = value.replace(/[^\d]+/g, '');
2052
+ if (value.length !== 11) {
2053
+ return false;
2054
+ }
2055
+ let v1 = modulo11Custom(value.substr(0, value.length - 1), 1, 11);
2056
+ return "" + v1;
2057
+ }
2058
+ /**
2059
+ * Dígito verificador da CNH não é mais o módulo 11 conforme últimas resoluções
2060
+ * @param value
2061
+ * @returns
2062
+ */
2063
+ function create_cnh(value) {
2064
+ value = value.replace(/[^\d]+/g, '');
2065
+ if (value.length != 11 || value === '0') {
2066
+ return false;
2067
+ }
2068
+ // let v1 = modulo11Custom(value.substr(0, value.length - 2), 2);
2069
+ // if (v1 === '10') v1 = '00'
2070
+ let v1 = value.substr(-2);
2071
+ return v1;
2072
+ }
2073
+ function create_cnpj(cnpj) {
2074
+ cnpj = cnpj.replace(/[^\d]+/g, '');
2075
+ if (cnpj === '') {
2076
+ return false;
2077
+ }
2078
+ if (cnpj.length !== 14) {
2079
+ return false;
2080
+ }
2081
+ // Elimina CNPJs invalidos conhecidos
2082
+ if (cnpj === '00000000000000' ||
2083
+ cnpj === '11111111111111' ||
2084
+ cnpj === '22222222222222' ||
2085
+ cnpj === '33333333333333' ||
2086
+ cnpj === '44444444444444' ||
2087
+ cnpj === '55555555555555' ||
2088
+ cnpj === '66666666666666' ||
2089
+ cnpj === '77777777777777' ||
2090
+ cnpj === '88888888888888' ||
2091
+ cnpj === '99999999999999') {
2092
+ return false;
2093
+ }
2094
+ // Valida DVs
2095
+ let tamanho = cnpj.length - 2;
2096
+ let numeros = cnpj.substring(0, tamanho);
2097
+ let soma = 0;
2098
+ let pos = tamanho - 7;
2099
+ for (let i = tamanho; i >= 1; i--) {
2100
+ soma += numeros.charAt(tamanho - i) * pos--;
2101
+ if (pos < 2) {
2102
+ pos = 9;
2103
+ }
2104
+ }
2105
+ const resultados = [0, 0];
2106
+ resultados[0] = soma % 11 < 2 ? 0 : 11 - soma % 11;
2107
+ tamanho = tamanho + 1;
2108
+ numeros = cnpj.substring(0, tamanho);
2109
+ soma = 0;
2110
+ pos = tamanho - 7;
2111
+ for (let i = tamanho; i >= 1; i--) {
2112
+ soma += numeros.charAt(tamanho - i) * pos--;
2113
+ if (pos < 2) {
2114
+ pos = 9;
2115
+ }
2116
+ }
2117
+ resultados[1] = soma % 11 < 2 ? 0 : 11 - soma % 11;
2118
+ return resultados;
2119
+ }
2120
+ function create_cns(number) {
2121
+ number = getAllDigits(number);
2122
+ let somaInicial = 0;
2123
+ for (let i = 0; i < number.length - 1; i++) {
2124
+ somaInicial += parseInt(number[i]) * (15 - i);
2125
+ }
2126
+ let soma = somaInicial;
2127
+ let rest = 0;
2128
+ while (soma % 11 !== 0) {
2129
+ rest++;
2130
+ soma = somaInicial + (rest * 1);
2131
+ }
2132
+ return number.substr(-2, 1) + rest;
2133
+ }
2134
+ function create_cpf(strCPF) {
2135
+ strCPF = strCPF.replace(/[^\d]+/g, '');
2136
+ if (strCPF === '00000000000') {
2137
+ return false;
2138
+ }
2139
+ // const r1 = modulo11(strCPF.substr(0, strCPF.length - 2))
2140
+ // const r2 = modulo11(strCPF.substr(0, strCPF.length - 2) + '' + r1)
2141
+ // const restos = [
2142
+ // r1, r2
2143
+ // ];
2144
+ const restoscustom = modulo11Custom(strCPF.substr(0, strCPF.length - 2), 2, 12);
2145
+ return restoscustom;
2146
+ }
2147
+ function create_cartaocredito(number) {
2148
+ // if (number.length > 18) { alert("Erro. A rotina não abrange cartões\ncom mais de 18 dígitos (fora o DV).\nIntroduza 18 dígitos, no máximo."); }
2149
+ number = "00000000000000000" + number;
2150
+ number = number.slice(number.length - 18);
2151
+ let b1 = parseInt(number.slice(17));
2152
+ let b2 = parseInt(number.slice(16, 17));
2153
+ let b3 = parseInt(number.slice(15, 16));
2154
+ let b4 = parseInt(number.slice(14, 15));
2155
+ let b5 = parseInt(number.slice(13, 14));
2156
+ let b6 = parseInt(number.slice(12, 13));
2157
+ let b7 = parseInt(number.slice(11, 12));
2158
+ let b8 = parseInt(number.slice(10, 11));
2159
+ let b9 = parseInt(number.slice(9, 10));
2160
+ let b10 = parseInt(number.slice(8, 9));
2161
+ let b11 = parseInt(number.slice(7, 8));
2162
+ let b12 = parseInt(number.slice(6, 7));
2163
+ let b13 = parseInt(number.slice(5, 6));
2164
+ let b14 = parseInt(number.slice(4, 5));
2165
+ let b15 = parseInt(number.slice(3, 4));
2166
+ let b16 = parseInt(number.slice(2, 3));
2167
+ let b17 = parseInt(number.slice(1, 2));
2168
+ let b18 = parseInt(number.slice(0, 1));
2169
+ let ci17 = b1 * 2;
2170
+ if (ci17 > 9) {
2171
+ ci17 = ci17 - 9;
2172
+ }
2173
+ let ci1516 = b3 * 2;
2174
+ if (ci1516 > 9) {
2175
+ ci1516 = ci1516 - 9;
2176
+ }
2177
+ let ci1314 = b5 * 2;
2178
+ if (ci1314 > 9) {
2179
+ ci1314 = ci1314 - 9;
2180
+ }
2181
+ let ci1112 = b7 * 2;
2182
+ if (ci1112 > 9) {
2183
+ ci1112 = ci1112 - 9;
2184
+ }
2185
+ let ci910 = b9 * 2;
2186
+ if (ci910 > 9) {
2187
+ ci910 = ci910 - 9;
2188
+ }
2189
+ let ci78 = b11 * 2;
2190
+ if (ci78 > 9) {
2191
+ ci78 = ci78 - 9;
2192
+ }
2193
+ let ci56 = b13 * 2;
2194
+ if (ci56 > 9) {
2195
+ ci56 = ci56 - 9;
2196
+ }
2197
+ let ci34 = b15 * 2;
2198
+ if (ci34 > 9) {
2199
+ ci34 = ci34 - 9;
2200
+ }
2201
+ let ci12 = b17 * 2;
2202
+ if (ci12 > 9) {
2203
+ ci12 = ci12 - 9;
2204
+ }
2205
+ let ci1617 = b2;
2206
+ let ci1415 = b4;
2207
+ let ci1213 = b6;
2208
+ let ci1011 = b8;
2209
+ let ci89 = b10;
2210
+ let ci67 = b12;
2211
+ let ci45 = b14;
2212
+ let ci23 = b16;
2213
+ let ci01 = b18;
2214
+ let ccredDig = (ci1617 + ci1415 + ci1213 + ci1011 + ci89 + ci67 + ci45 + ci23 + ci01 + ci17 + ci1516 + ci1314 + ci1112 + ci910 + ci78 + ci56 + ci34 + ci12) % 10;
2215
+ ccredDig = 10 - ccredDig;
2216
+ if (ccredDig == 10) {
2217
+ ccredDig = 0;
2218
+ }
2219
+ return ccredDig;
2220
+ }
2221
+ function create_ect(number) {
2222
+ number = getAllDigits(number);
2223
+ number = "0000000" + number;
2224
+ number = number.slice(number.length - 8);
2225
+ let b1 = parseInt(number.slice(7));
2226
+ let b2 = parseInt(number.slice(6, 7));
2227
+ let b3 = parseInt(number.slice(5, 6));
2228
+ let b4 = parseInt(number.slice(4, 5));
2229
+ let b5 = parseInt(number.slice(3, 4));
2230
+ let b6 = parseInt(number.slice(2, 3));
2231
+ let b7 = parseInt(number.slice(1, 2));
2232
+ let b8 = parseInt(number.slice(0, 1));
2233
+ let regEctDig = (b1 * 7 + b2 * 9 + b3 * 5 + b4 * 3 + b5 * 2 + b6 * 4 + b7 * 6 + b8 * 8) % 11;
2234
+ regEctDig = 11 - regEctDig;
2235
+ if (regEctDig == 11) {
2236
+ regEctDig = 5;
2237
+ }
2238
+ if (regEctDig == 10) {
2239
+ regEctDig = 0;
2240
+ }
2241
+ return regEctDig;
2242
+ }
2243
+ function create_pispasep(number) {
2244
+ number = getAllDigits(number);
2245
+ let nis = fillString(number, 11, '0');
2246
+ let d;
2247
+ let p = 2, c = 9;
2248
+ for (d = 0; c >= 0; c--, (p < 9) ? p++ : p = 2) {
2249
+ d += parseInt(nis[c]) * p;
2250
+ }
2251
+ const digit = (((10 * d) % 11) % 10);
2252
+ return digit;
2253
+ }
2254
+ function create_renavam(renavam) {
2255
+ let dig1 = 0;
2256
+ while (renavam.length < 11) {
2257
+ renavam = '0' + renavam;
2258
+ }
2259
+ dig1 = (renavam.charCodeAt(0) - 48) * 3 + (renavam.charCodeAt(1) - 48) * 2 + (renavam.charCodeAt(2) - 48) * 9 + (renavam.charCodeAt(3) - 48) * 8 +
2260
+ (renavam.charCodeAt(4) - 48) * 7 + (renavam.charCodeAt(5) - 48) * 6 + (renavam.charCodeAt(6) - 48) * 5 +
2261
+ (renavam.charCodeAt(7) - 48) * 4 + (renavam.charCodeAt(8) - 48) * 3 + (renavam.charCodeAt(9) - 48) * 2;
2262
+ dig1 = dig1 * 10;
2263
+ let resto = (dig1 % 11);
2264
+ if (resto === 10) {
2265
+ return 0;
2266
+ }
2267
+ else {
2268
+ return resto;
2269
+ }
2270
+ }
2271
+ /**
2272
+ *
2273
+ * Font: http://ghiorzi.org/index.htm
2274
+ * @param number
2275
+ */
2276
+ function create_processo(number) {
2277
+ number = getAllDigits(number);
2278
+ number = "00000000000000000" + number;
2279
+ number = number.slice(number.length - 18);
2280
+ let b1 = parseInt(number.slice(0, 1)) * 10000000000;
2281
+ let b2 = parseInt(number.slice(1, 2)) * 1000000000;
2282
+ let b3 = parseInt(number.slice(2, 3)) * 100000000;
2283
+ let b4 = parseInt(number.slice(3, 4)) * 10000000;
2284
+ let b5 = parseInt(number.slice(4, 5)) * 1000000;
2285
+ let b6 = parseInt(number.slice(5, 6)) * 100000;
2286
+ let b7 = parseInt(number.slice(6, 7)) * 10000;
2287
+ let b8 = parseInt(number.slice(7, 8)) * 1000;
2288
+ let b9 = parseInt(number.slice(8, 9)) * 100;
2289
+ let b10 = parseInt(number.slice(9, 10)) * 10;
2290
+ let b11 = parseInt(number.slice(10, 11));
2291
+ const proc1a11 = b1 + b2 + b3 + b4 + b5 + b6 + b7 + b8 + b9 + b10 + b11;
2292
+ const resto1 = proc1a11 % 97;
2293
+ let b12 = parseInt(number.slice(11, 12)) * 1000000;
2294
+ let b13 = parseInt(number.slice(12, 13)) * 100000;
2295
+ let b14 = parseInt(number.slice(13, 14)) * 10000;
2296
+ let b15 = parseInt(number.slice(14, 15)) * 1000;
2297
+ let b16 = parseInt(number.slice(15, 16)) * 100;
2298
+ let b17 = parseInt(number.slice(16, 17)) * 10;
2299
+ let b18 = parseInt(number.slice(17));
2300
+ const proc12a18 = b12 + b13 + b14 + b15 + b16 + b17 + b18;
2301
+ const resto2 = (resto1 * 10000000 * 100 + proc12a18 * 100) % 97;
2302
+ let procJudDV = 98 - resto2;
2303
+ if (procJudDV < 10) {
2304
+ procJudDV = "0" + procJudDV;
2305
+ }
2306
+ let procJudCompl = b1 / 10000 + b2 / 10000 + b3 / 10000 + b4 / 10000 + b5 / 10000 + b6 / 10000 + b7 / 10000 + "-" + procJudDV + "." + b8 / 1000 + b9 / 100 + b10 / 10 + b11 + "." + b12 / 1000000 + "." + b13 / 100000 + b14 / 10000 + "." + b15 / 1000 + b16 / 100 + b17 / 10 + b18;
2307
+ procJudCompl = "000000" + procJudCompl;
2308
+ const result = procJudCompl.slice(procJudCompl.length - 25);
2309
+ return result;
2310
+ }
2311
+ function create_titulo_atual(titulo) {
2312
+ const tit = titulo;
2313
+ let dig1 = 0;
2314
+ let dig2 = 0;
2315
+ const tam = tit.length;
2316
+ const estado = tit.substr(tam - 4, 2);
2317
+ titulo = tit.substr(0, tam - 2);
2318
+ titulo = '000000000000' + titulo;
2319
+ titulo = titulo.substr(titulo.length - 11, titulo.length - 1);
2320
+ const exce = (estado === '01') || (estado === '02');
2321
+ dig1 = (titulo.charCodeAt(0) - 48) * 2 + (titulo.charCodeAt(1) - 48) * 9 + (titulo.charCodeAt(2) - 48) * 8 +
2322
+ (titulo.charCodeAt(3) - 48) * 7 + (titulo.charCodeAt(4) - 48) * 6 + (titulo.charCodeAt(5) - 48) * 5 +
2323
+ (titulo.charCodeAt(6) - 48) * 4 + (titulo.charCodeAt(7) - 48) * 3 + (titulo.charCodeAt(8) - 48) * 2;
2324
+ let resto = (dig1 % 11);
2325
+ if (resto === 0) {
2326
+ if (exce) {
2327
+ dig1 = 1;
2328
+ }
2329
+ else {
2330
+ dig1 = 0;
2331
+ }
2332
+ }
2333
+ else {
2334
+ if (resto === 1) {
2335
+ dig1 = 0;
2336
+ }
2337
+ else {
2338
+ dig1 = 11 - resto;
2339
+ }
2340
+ }
2341
+ dig2 = (titulo.charCodeAt(9) - 48) * 4 + (titulo.charCodeAt(10) - 48) * 3 + dig1 * 2;
2342
+ resto = (dig2 % 11);
2343
+ if (resto === 0) {
2344
+ if (exce) {
2345
+ dig2 = 1;
2346
+ }
2347
+ else {
2348
+ dig2 = 0;
2349
+ }
2350
+ }
2351
+ else {
2352
+ if (resto === 1) {
2353
+ dig2 = 0;
2354
+ }
2355
+ else {
2356
+ dig2 = 11 - resto;
2357
+ }
2358
+ }
2359
+ return dig1.toString() + dig2.toString();
2360
+ }
2361
+ function create_titulo(titNum) {
2362
+ titNum = getAllDigits(titNum);
2363
+ if (titNum.length > 11) {
2364
+ titNum = titNum.substr(0, 11);
2365
+ }
2366
+ titNum = "00000000" + titNum;
2367
+ titNum = titNum.slice(titNum.length - 11);
2368
+ let a1 = parseInt(titNum.slice(10));
2369
+ let a2 = parseInt(titNum.slice(9, 10));
2370
+ let a3 = parseInt(titNum.slice(8, 9));
2371
+ let a4 = parseInt(titNum.slice(7, 8));
2372
+ let a5 = parseInt(titNum.slice(6, 7));
2373
+ let a6 = parseInt(titNum.slice(5, 6));
2374
+ let a7 = parseInt(titNum.slice(4, 5));
2375
+ let a8 = parseInt(titNum.slice(3, 4));
2376
+ let a9 = parseInt(titNum.slice(2, 3));
2377
+ let a10 = parseInt(titNum.slice(1, 2));
2378
+ let a11 = parseInt(titNum.slice(0, 1));
2379
+ if (a2 * 10 + a1 == 0 || a2 * 10 + a1 > 28) {
2380
+ throw new Error("Esse nº é suspeito, porque a identificação da \nUF (últimos 2 dígitos) deve estar entre 01 e 28.");
2381
+ }
2382
+ let titExcecao1 = 0;
2383
+ let titExcecao2 = 0;
2384
+ let titPriDig = (a3 * 9 + a4 * 8 + a5 * 7 + a6 * 6 + a7 * 5 + a8 * 4 + a9 * 3 + a10 * 2 + a11 * 9) % 11;
2385
+ if (titPriDig == 0) {
2386
+ titExcecao1 = 1;
2387
+ }
2388
+ if (titPriDig == 10) {
2389
+ titPriDig = 0;
2390
+ }
2391
+ if ((a2 * 10 + a1 == 1 || a2 * 10 + a1 == 2) && (titExcecao1 == 1)) {
2392
+ titPriDig = 1;
2393
+ }
2394
+ let titSegDig = (titPriDig * 9 + a1 * 8 + a2 * 7) % 11;
2395
+ if (titSegDig == 0) {
2396
+ titExcecao2 = 1;
2397
+ }
2398
+ if (titSegDig == 10) {
2399
+ titSegDig = 0;
2400
+ }
2401
+ if ((a2 * 10 + a1 == 1 || a2 * 10 + a1 == 2) && (titExcecao2 == 1)) {
2402
+ titSegDig = 1;
2403
+ }
2404
+ let titDV = titPriDig * 10 + titSegDig;
2405
+ if (titDV == 0) {
2406
+ titDV = "00";
2407
+ }
2408
+ if (titDV > 0 && titDV < 10) {
2409
+ titDV = "0" + titDV;
2410
+ }
2411
+ return titDV.toString();
2412
+ }
2413
+
2414
+ function rg_sp(number) {
2415
+ // if(number.length>8){alert("Erro. Não existe RG SP\ncom mais de 8 dígitos.");}
2416
+ number = "0000000" + number;
2417
+ number = number.slice(number.length - 8);
2418
+ let b1 = parseInt(number.slice(7));
2419
+ let b2 = parseInt(number.slice(6, 7));
2420
+ let b3 = parseInt(number.slice(5, 6));
2421
+ let b4 = parseInt(number.slice(4, 5));
2422
+ let b5 = parseInt(number.slice(3, 4));
2423
+ let b6 = parseInt(number.slice(2, 3));
2424
+ let b7 = parseInt(number.slice(1, 2));
2425
+ let b8 = parseInt(number.slice(0, 1));
2426
+ let cispDig = (b1 * 2 + b2 * 3 + b3 * 4 + b4 * 5 + b5 * 6 + b6 * 7 + b7 * 8 + b8 * 9) % 11;
2427
+ if (cispDig == 10) {
2428
+ cispDig = "X";
2429
+ }
2430
+ return cispDig;
2431
+ }
2432
+ function rg_rj(number) {
2433
+ // if(number.length>8){alert("Erro. Não existe RG-RJ/MaSP-MG\ncom mais de 8 dígitos.");}
2434
+ number = "0000000" + number;
2435
+ number = number.slice(number.length - 8);
2436
+ let b1 = parseInt(number.slice(7));
2437
+ let b2 = parseInt(number.slice(6, 7));
2438
+ let b3 = parseInt(number.slice(5, 6));
2439
+ let b4 = parseInt(number.slice(4, 5));
2440
+ let b5 = parseInt(number.slice(3, 4));
2441
+ let b6 = parseInt(number.slice(2, 3));
2442
+ let b7 = parseInt(number.slice(1, 2));
2443
+ let b8 = parseInt(number.slice(0, 1));
2444
+ let ci7 = b1 * 2;
2445
+ if (ci7 > 9) {
2446
+ ci7 = ci7 - 9;
2447
+ }
2448
+ let ci56 = b3 * 2;
2449
+ if (ci56 > 9) {
2450
+ ci56 = ci56 - 9;
2451
+ }
2452
+ let ci34 = b5 * 2;
2453
+ if (ci34 > 9) {
2454
+ ci34 = ci34 - 9;
2455
+ }
2456
+ let ci12 = b7 * 2;
2457
+ if (ci12 > 9) {
2458
+ ci12 = ci12 - 9;
2459
+ }
2460
+ let ci67 = b2;
2461
+ let ci45 = b4;
2462
+ let ci23 = b6;
2463
+ let ci01 = b8;
2464
+ let cirjDig = (ci7 + ci56 + ci34 + ci12 + ci67 + ci45 + ci23 + ci01) % 10;
2465
+ cirjDig = 10 - cirjDig;
2466
+ if (cirjDig == 10) {
2467
+ cirjDig = 0;
2468
+ }
2469
+ return cirjDig;
2470
+ }
2471
+ const RG = {
2472
+ sp: rg_sp,
2473
+ rj: rg_rj
2474
+ };
2475
+
2476
+ const IPTUMASKS = {
2477
+ 'minas-gerais': {
2478
+ 'belo-horizonte': {
2479
+ text: '000.000.000.000.0',
2480
+ textMask: [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/]
2481
+ },
2482
+ 'contagem': {
2483
+ text: '20.040.040-1',
2484
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/],
2485
+ textMaskFunction: function mask(userInput) {
2486
+ const numbers = userInput.match(/\d/g);
2487
+ let numberLength = 0;
2488
+ if (numbers) {
2489
+ numberLength = numbers.join('').length;
2490
+ }
2491
+ if (!userInput || numberLength > 9) {
2492
+ return [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/];
2493
+ }
2494
+ else {
2495
+ return [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/];
2496
+ }
2497
+ }
2498
+ }
2499
+ },
2500
+ 'sao-paulo': {
2501
+ 'sao-paulo': {
2502
+ text: '00000000000-0',
2503
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
2504
+ }
2505
+ },
2506
+ 'parana': {
2507
+ 'curitiba': {
2508
+ text: '00000000000-0',
2509
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
2510
+ }
2511
+ }
2512
+ };
2513
+
2514
+ function create_iptu_ctba(number) {
2515
+ number = getAllDigits(number);
2516
+ let a1 = parseInt(number.slice(10));
2517
+ let a2 = parseInt(number.slice(9, 10));
2518
+ let a3 = parseInt(number.slice(8, 9));
2519
+ let a4 = parseInt(number.slice(7, 8));
2520
+ let a5 = parseInt(number.slice(6, 7));
2521
+ let a6 = parseInt(number.slice(5, 6));
2522
+ let a7 = parseInt(number.slice(4, 5));
2523
+ let a8 = parseInt(number.slice(3, 4));
2524
+ let a9 = parseInt(number.slice(2, 3));
2525
+ let a10 = parseInt(number.slice(1, 2));
2526
+ let a11 = parseInt(number.slice(0, 1));
2527
+ let iptuctbaDV = 10 - ((a1 * 2 + a2 * 3 + a3 * 4 + a4 * 7 + a5 * 8 + a6 * 9 + a7 * 2 + a8 * 3 + a9 * 4 + a10 * 7 + a11 * 8) % 10);
2528
+ if (iptuctbaDV == 10) {
2529
+ iptuctbaDV = 0;
2530
+ }
2531
+ return iptuctbaDV;
2532
+ }
2533
+ function create_iptu_sp(number) {
2534
+ let a1 = parseInt(number.slice(9));
2535
+ let a2 = parseInt(number.slice(8, 9));
2536
+ let a3 = parseInt(number.slice(7, 8));
2537
+ let a4 = parseInt(number.slice(6, 7));
2538
+ let a5 = parseInt(number.slice(5, 6));
2539
+ let a6 = parseInt(number.slice(4, 5));
2540
+ let a7 = parseInt(number.slice(3, 4));
2541
+ let a8 = parseInt(number.slice(2, 3));
2542
+ let a9 = parseInt(number.slice(1, 2));
2543
+ let a10 = parseInt(number.slice(0, 1));
2544
+ let iptuspDV = (a1 * 9 + a2 * 8 + a3 * 7 + a4 * 6 + a5 * 5 + a6 * 4 + a7 * 3 + a8 * 2 + a9 + a10 * 10) % 11;
2545
+ if (iptuspDV == 10) {
2546
+ iptuspDV = 1;
2547
+ }
2548
+ return iptuspDV;
2549
+ }
2550
+ const faker_iptu = (estado, cidade) => {
2551
+ if (!IPTUMASKS[estado] || !IPTUMASKS[estado][cidade]) {
2552
+ return;
2553
+ }
2554
+ let iptu = makeGenericFaker(IPTUMASKS[estado][cidade])();
2555
+ if (IPTUCREATE[estado] && IPTUCREATE[estado][cidade]) {
2556
+ const dv = IPTUCREATE[estado][cidade](iptu);
2557
+ const values = iptu.split('');
2558
+ values[values.length - 1] = dv;
2559
+ iptu = values.join('');
2560
+ }
2561
+ return iptu;
2562
+ };
2563
+ const IPTUCREATE = {
2564
+ 'sao-paulo': {
2565
+ 'sao-paulo': create_iptu_sp,
2566
+ },
2567
+ 'parana': {
2568
+ 'curitiba': create_iptu_ctba
2569
+ }
2570
+ };
2571
+
2572
+ const validateRemoveDigito = (number, max) => {
2573
+ number = getAllDigits(number.toString());
2574
+ if (number.length > max) {
2575
+ return false;
2576
+ }
2577
+ else if (number.length === max) {
2578
+ number = number.slice(0, -1);
2579
+ }
2580
+ return number;
2581
+ };
2582
+ function validate_iptu_ctba(value) {
2583
+ let number = validateRemoveDigito(value, 12);
2584
+ if (!number) {
2585
+ return false;
2586
+ }
2587
+ const dv = IPTUCREATE['parana']['curitiba'](number);
2588
+ return parseInt(value[value.length - 1]) === dv;
2589
+ }
2590
+ /**
2591
+ * Índice Cadastral, ou inscrição imobiliária, é o número de identificação do imóvel no cadastro da Prefeitura de Contagem.
2592
+ * O índice é composto por 12 (doze) ou 13 (treze) números, sendo: 2 (dois) para a zona fiscal;
2593
+ * 3 (três) ou 4 (quatro) para a quadra fiscal; 4 (quatro) para o lote fiscal; e 3 (três) para a unidade.
2594
+ */
2595
+ function validate_iptu_contagem(number) {
2596
+ number = validateRemoveDigito(number, 12);
2597
+ if (!number) {
2598
+ return false;
2599
+ }
2600
+ return true;
2601
+ }
2602
+ function validate_iptu_sp(value) {
2603
+ let number = validateRemoveDigito(value, 12);
2604
+ if (!number) {
2605
+ return false;
2606
+ }
2607
+ const dv = IPTUCREATE['sao-paulo']['sao-paulo'](number);
2608
+ return parseInt(value[value.length - 1]) === dv;
2609
+ }
2610
+ // export function validate_iptu(iptu: string) {
2611
+ // let iptuClean = iptu.replace(/\./g, '');
2612
+ // iptuClean = iptuClean.replace(/-/g, '');
2613
+ // const exp = /[a-z]{2}\-\d{2}\.\d{3}\.\d{3}/;
2614
+ // const expClean = /[a-z]{2}\d{8}/;
2615
+ // const state = iptu.substr(0, 2).toUpperCase();
2616
+ // if (!exp.test(iptu) && !expClean.test(iptuClean) && !(state in CEPRange)) {
2617
+ // return false;
2618
+ // }
2619
+ // if (IPTU[state]) {
2620
+ // const validateState = IPTU[state];
2621
+ // return validateState(iptu);
2622
+ // }
2623
+ // return true;
2624
+ // }
2625
+ const IPTUVALIDATE = {
2626
+ 'sao-paulo': {
2627
+ 'sao-paulo': validate_iptu_sp,
2628
+ },
2629
+ 'minas-gerais': {
2630
+ 'contagem': validate_iptu_contagem,
2631
+ },
2632
+ 'parana': {
2633
+ 'curitiba': validate_iptu_ctba
2634
+ }
2635
+ };
2636
+
2637
+ const create_iptu = (number, estado, cidade) => {
2638
+ if (!IPTUCREATE[estado] || !IPTUCREATE[estado][cidade]) {
2639
+ return true;
2640
+ }
2641
+ number = getAllDigits(number);
2642
+ return IPTUCREATE[estado][cidade](number);
2643
+ };
2644
+ const mask_iptu = (number, estado, cidade) => {
2645
+ if (!IPTUMASKS[estado] || !IPTUMASKS[estado][cidade]) {
2646
+ return number;
2647
+ }
2648
+ return IPTUMASKS[estado][cidade];
2649
+ };
2650
+ const validate_iptu = (number, estado, cidade) => {
2651
+ if (!IPTUVALIDATE[estado] || !IPTUVALIDATE[estado][cidade]) {
2652
+ return true;
2653
+ }
2654
+ number = getAllDigits(number);
2655
+ return IPTUVALIDATE[estado][cidade](number);
2656
+ };
2657
+
2658
+ function validate_aih(aih) {
2659
+ const aihClean = aih.replace(/[^\d]+/g, '');
2660
+ const dvOriginal = aihClean.substr(-1);
2661
+ const dv = create_aih(aihClean);
2662
+ return dvOriginal === dv;
2663
+ }
2664
+ function validate_celular(cel) {
2665
+ let celClean = cel.replace(/[^\d]+/g, '');
2666
+ celClean = celClean.replace(/_/g, '');
2667
+ if (celClean.length !== 11) {
2668
+ return false;
2669
+ }
2670
+ if (celClean[0] == 0 || celClean[2] < 5) {
2671
+ return false;
2672
+ }
2673
+ return true;
2674
+ }
2675
+ const CEPRange = {
2676
+ 'SP': /^([1][0-9]{3}|[01][0-9]{4})[0-9]{3}$/g,
2677
+ 'RJ': /^[2][0-8][0-9]{3}[0-9]{3}$/g,
2678
+ 'MS': /^[7][9][0-9]{3}[0-9]{3}$/g,
2679
+ 'MG': /^[3][0-9]{4}[0-9]{3}$/g,
2680
+ 'MT': /^[7][8][8][0-9]{2}[0-9]{3}$/g,
2681
+ 'AC': /^[6][9]{2}[0-9]{2}[0-9]{3}$/g,
2682
+ 'AL': /^[5][7][0-9]{3}[0-9]{3}$/g,
2683
+ 'AM': /^[6][9][0-8][0-9]{2}[0-9]{3}$/g,
2684
+ 'AP': /^[6][89][9][0-9]{2}[0-9]{3}$/g,
2685
+ 'BA': /^[4][0-8][0-9]{3}[0-9]{3}$/g,
2686
+ 'CE': /^[6][0-3][0-9]{3}[0-9]{3}$/g,
2687
+ 'DF': /^[7][0-3][0-6][0-9]{2}[0-9]{3}$/g,
2688
+ 'ES': /^[2][9][0-9]{3}[0-9]{3}$/g,
2689
+ 'GO': /^[7][3-6][7-9][0-9]{2}[0-9]{3}$/g,
2690
+ 'MA': /^[6][5][0-9]{3}[0-9]{3}$/g,
2691
+ 'PA': /^[6][6-8][0-8][0-9]{2}[0-9]{3}$/g,
2692
+ 'PB': /^[5][8][0-9]{3}[0-9]{3}$/g,
2693
+ 'PE': /^[5][0-6][0-9]{2}[0-9]{3}$/g,
2694
+ 'PI': /^[6][4][0-9]{3}[0-9]{3}$/g,
2695
+ 'PR': /^[8][0-7][0-9]{3}[0-9]{3}$/g,
2696
+ 'RN': /^[5][9][0-9]{3}[0-9]{3}$/g,
2697
+ 'RO': /^[7][8][9][0-9]{2}[0-9]{3}$/g,
2698
+ 'RR': /^[6][9][3][0-9]{2}[0-9]{3}$/g,
2699
+ 'RS': /^[9][0-9]{4}[0-9]{3}$/g,
2700
+ 'SC': /^[8][89][0-9]{3}[0-9]{3}$/g,
2701
+ 'SE': /^[4][9][0-9]{3}[0-9]{3}$/g,
2702
+ 'TO': /^[7][7][0-9]{3}[0-9]{3}$/g,
2703
+ };
2704
+ function validate_cep(cep) {
2705
+ const cepClean = cep.replace(/[^\d]+/g, '');
2706
+ const exp = /\d{2}\.\d{3}\-\d{3}/;
2707
+ if (!exp.test(cep) && cepClean.length !== 8) {
2708
+ return false;
2709
+ }
2710
+ return true;
2711
+ }
2712
+ function cep_ranges(cep) {
2713
+ cep = (cep.toString()).replace(/[^\d]+/g, '');
2714
+ cep = parseInt(cep, 10);
2715
+ const cepString = cep.toString();
2716
+ let found;
2717
+ for (let estado in CEPRange) {
2718
+ const v = CEPRange[estado];
2719
+ const r = new RegExp(v).test(cepString);
2720
+ if (r) {
2721
+ found = r;
2722
+ return true;
2723
+ }
2724
+ }
2725
+ if (!found) {
2726
+ return false;
2727
+ }
2728
+ return true;
2729
+ }
2730
+ function validate_certidao(value) {
2731
+ let certidao = getAllDigits(value);
2732
+ const format = /[0-9]{32}/;
2733
+ if (!format.test(certidao)) {
2734
+ return false;
2735
+ }
2736
+ let dvOriginal = certidao.substr(-2);
2737
+ const dv = create_certidao(certidao);
2738
+ return dv === dvOriginal;
2739
+ }
2740
+ /**
2741
+ *
2742
+ * @param chassi
2743
+ */
2744
+ function validate_chassi(chassi) {
2745
+ // 1 - Possuir o número "0" (ZERO) como 1º dígito.
2746
+ const zeroNoPrimeiroDigito = /^0/;
2747
+ if (zeroNoPrimeiroDigito.test(chassi)) {
2748
+ return false;
2749
+ }
2750
+ // 2 - Possuir espaço no chassi
2751
+ chassi = getAllWords(chassi); // espacoNoChassi
2752
+ // 3 - Se, a partir do 4º dígito, houver uma repetição consecutiva, por mais de seis vezes, do mesmo dígito
2753
+ // (alfabético ou numérico). Exemplos: 9BW11111119452687 e 9BWZZZ5268AAAAAAA.
2754
+ const repeticaoMaisDe6Vezes = /^.{4,}([0-9A-Z])\1{5,}/;
2755
+ if (repeticaoMaisDe6Vezes.test(chassi)) {
2756
+ return false;
2757
+ }
2758
+ // 4 - Apresente os caracteres "i", "I", "o", "O", "q", "Q".
2759
+ const caracteresiIoOqQ = /[iIoOqQ]/;
2760
+ if (caracteresiIoOqQ.test(chassi)) {
2761
+ return false;
2762
+ }
2763
+ // 5 - Os quatro últimos caracteres devem ser obrigatoriamente numéricos
2764
+ const ultimos4Numericos = /[0-9]{4}$/;
2765
+ if (!ultimos4Numericos.test(chassi)) {
2766
+ return false;
2767
+ }
2768
+ // 6 - Se possuir número de dígitos diferente de 17 (alfanuméricos).
2769
+ if (chassi.length > 17) {
2770
+ return false;
2771
+ }
2772
+ return true;
2773
+ }
2774
+ function validate_cnae(number) {
2775
+ if (!number)
2776
+ return true;
2777
+ return false;
2778
+ }
2779
+ /**
2780
+ *
2781
+ * II - Número do Espelho da CNH - segundo número de identificação nacional,
2782
+ * que será formado por 9 (nove) caracteres mais 1 (um) dígito verificador de segurança,
2783
+ * autorizado e controlado pelo DENATRAN, e identificará cada espelho de CNH expedida.
2784
+ * https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-denatran/resolucoes-contran
2785
+ * https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao5112014.pdf
2786
+ * 598: https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao59820162.pdf
2787
+ * @param value
2788
+ */
2789
+ function validate_cnhespelho(value) {
2790
+ value = value.replace(/[^\d]/g, '');
2791
+ if (value.length !== 10) {
2792
+ return false;
2793
+ }
2794
+ let check = create_cnhespelho(value);
2795
+ if (check === '0' || check === '1')
2796
+ check = '0';
2797
+ return value.substr(-1) == check;
2798
+ }
2799
+ /**
2800
+ *
2801
+ * III – Número do formulário RENACH - número de identificação
2802
+ * estadual, documento de coleta de dados do candidato/condutor gerado a cada serviço,
2803
+ * composto, obrigatoriamente, por 11 (onze) caracteres, sendo as duas primeiras
2804
+ * posições formadas pela sigla da Unidade de Federação expedidora, facultada a
2805
+ * utilização da última posição como dígito verificador de segurança.
2806
+ * a) O número do formulário RENACH identificará a Unidade da
2807
+ * Federação onde o condutor foi habilitado ou realizou alterações de dados no seu
2808
+ * cadastro pela última vez.
2809
+ * b) O Formulário RENACH que dá origem às informações na
2810
+ * BINCO e autorização para a impressão da CNH deverá ficar arquivado em seg
2811
+ * 598 - https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao59820162.pdf
2812
+ * 718 - https://www.gov.br/infraestrutura/pt-br/assuntos/transito/conteudo-contran/resolucoes/resolucao7182017.pdf
2813
+ * @param value
2814
+ */
2815
+ function validate_renachestadual(value) {
2816
+ const state = value.substr(0, 2).toLowerCase();
2817
+ if (!ESTADOS_SIGLA.includes(state)) {
2818
+ return false;
2819
+ }
2820
+ let digits = value.substr(2);
2821
+ digits = digits.replace(/[^\d]/g, '');
2822
+ if (digits.length !== 9) {
2823
+ return false;
2824
+ }
2825
+ let check = create_renachestadual(value);
2826
+ if (check === '0' || check === '1')
2827
+ check = '0';
2828
+ return value.substr(-1) == check;
2829
+ }
2830
+ function validate_renachseguranca(value) {
2831
+ value = value.replace(/[^\d]/g, '');
2832
+ if (value.length !== 11) {
2833
+ return false;
2834
+ }
2835
+ let check = create_renachseguranca(value);
2836
+ return value.substr(-1) == check;
2837
+ }
2838
+ /**
2839
+ * BINCO
2840
+ * I – o primeiro número de identificação nacional – Registro Nacional,
2841
+ * será gerado pelo sistema informatizado da Base Índice Nacional de Condutores –
2842
+ * BINCO, composto de 9 (nove) caracteres mais 2 (dois) dígitos verificadores de
2843
+ * segurança, sendo único para cada condutor e o acompanhará durante toda a
2844
+ * sua existência como condutor, não sendo permitida a sua reutilização para
2845
+ * outro condutor.
2846
+ * @param value
2847
+ * @returns
2848
+ */
2849
+ function validate_cnh(value) {
2850
+ value = value.toString().replace(/[^\d]/g, '');
2851
+ if (value.length !== 11) {
2852
+ return false;
2853
+ }
2854
+ let check = create_cnh(value);
2855
+ return value.substr(-2) == check;
2856
+ }
2857
+ function validate_cnpj(cnpj) {
2858
+ // Valida se tem apenas número, - ou .
2859
+ let precisaFicarVazio = cnpj.replace(/^[0-9./-]*$/gm, '');
2860
+ if (precisaFicarVazio != '')
2861
+ return false;
2862
+ cnpj = cnpj.replace(/[^\d]+/g, '');
2863
+ let tamanho = cnpj.length - 2;
2864
+ const digitos = cnpj.substring(tamanho);
2865
+ const resultados = create_cnpj(cnpj);
2866
+ if (!resultados ||
2867
+ resultados[0] !== parseInt(digitos.charAt(0), 10) ||
2868
+ resultados[1] !== parseInt(digitos.charAt(1), 10)) {
2869
+ return false;
2870
+ }
2871
+ return true;
2872
+ }
2873
+ function validate_contabanco(number) {
2874
+ if (!number)
2875
+ return false;
2876
+ return true;
2877
+ }
2878
+ /**
2879
+ * Referencia: http://www.receita.fazenda.gov.br/aplicacoes/atcta/funcoes.js
2880
+ * @param strCPF
2881
+ * @returns
2882
+ */
2883
+ function validate_cpf(strCPF) {
2884
+ // Valida se tem apenas número, - ou .
2885
+ let precisaFicarVazio = strCPF.replace(/^[0-9.-]*$/gm, '');
2886
+ if (precisaFicarVazio != '')
2887
+ return false;
2888
+ strCPF = strCPF.replace(/[^\d]+/g, '');
2889
+ if (strCPF.length !== 11) {
2890
+ return false;
2891
+ }
2892
+ //verifica se todos os numeros sao iguais
2893
+ const expIguais = /^(?!.*(\d)\1{10}).*$/;
2894
+ if (!strCPF.match(expIguais)) {
2895
+ return false;
2896
+ }
2897
+ // valida digito verificados
2898
+ const restos = create_cpf(strCPF);
2899
+ if (!restos || restos != strCPF.substr(-2)) {
2900
+ return false;
2901
+ }
2902
+ return true;
2903
+ }
2904
+ function validate_cpfcnpj(number) {
2905
+ return validate_cpf(number) || validate_cnpj(number);
2906
+ }
2907
+ function validate_cns(value) {
2908
+ const cns = getAllDigits(value);
2909
+ const definitivo = /[1-2][0-9]{10}00[0-1][0-9]/; // começam com 1 ou 2
2910
+ const provisorio = /[7-9][0-9]{14}/; // começam com 7,8 ou 9
2911
+ if (!definitivo.test(cns) && !provisorio.test(cns)) {
2912
+ return false;
2913
+ }
2914
+ let soma = 0;
2915
+ for (let i = 0; i < cns.length; i++) {
2916
+ soma += parseInt(cns[i]) * (15 - i);
2917
+ }
2918
+ return soma % 11 == 0;
2919
+ }
2920
+ function validate_cartaocredito(input) {
2921
+ let value;
2922
+ if (typeof input == 'string') {
2923
+ value = getAllDigits(input);
2924
+ }
2925
+ else {
2926
+ value = input.toString();
2927
+ }
2928
+ const number = value.slice(0, 16);
2929
+ const mes = parseInt(value.slice(16, 18));
2930
+ const ano = parseInt(value.slice(18, 20));
2931
+ const cvv = value.slice(20, 23);
2932
+ const d = new Date();
2933
+ const anoAtual = (d.getFullYear() - 2000);
2934
+ if (ano && ano < anoAtual) {
2935
+ return false;
2936
+ }
2937
+ if (mes && mes < d.getMonth() + 1 && ano === anoAtual) {
2938
+ return false;
2939
+ }
2940
+ if (cvv) {
2941
+ const validcvv = validate_cvv(cvv);
2942
+ if (validcvv.isValid === false) {
2943
+ return false;
2944
+ }
2945
+ }
2946
+ let found;
2947
+ Object.keys(creditCardValidator).forEach(key => {
2948
+ if (creditCardValidator[key].test(number)) {
2949
+ found = key;
2950
+ }
2951
+ });
2952
+ return !!found;
2953
+ }
2954
+ function validate_cvv(value, maxLength = 3) {
2955
+ maxLength = maxLength instanceof Array ? maxLength : [maxLength];
2956
+ if (typeof value !== 'string') {
2957
+ return { isValid: false, isPotentiallyValid: false };
2958
+ }
2959
+ if (!/^\d*$/.test(value)) {
2960
+ return { isValid: false, isPotentiallyValid: false };
2961
+ }
2962
+ var i = 0;
2963
+ const max = value.length;
2964
+ for (; i < maxLength.length; i++) {
2965
+ if (max === maxLength[i]) {
2966
+ return { isValid: true, isPotentiallyValid: true };
2967
+ }
2968
+ }
2969
+ if (value.length < Math.min.apply(null, maxLength)) {
2970
+ return { isValid: false, isPotentiallyValid: true };
2971
+ }
2972
+ var maximum = maxLength;
2973
+ var i = 0;
2974
+ for (; i < maxLength.length; i++) {
2975
+ maximum = maxLength[i] > maximum ? maxLength[i] : maximum;
2976
+ }
2977
+ if (value.length > maximum) {
2978
+ return { isValid: false, isPotentiallyValid: false };
2979
+ }
2980
+ return { isValid: true, isPotentiallyValid: true };
2981
+ }
2982
+ /**
2983
+ * A hash of valid CC abbreviations and regular expressions
2984
+ mc: Mastercard
2985
+ ec: Eurocard
2986
+ vi: Visa
2987
+ ax: American Express
2988
+ dc: Diners Club
2989
+ bl: Carte Blanch
2990
+ di: Discover
2991
+ jcb: JCB
2992
+ er: Enroute
2993
+ */
2994
+ const creditCardValidator = {
2995
+ 'mc': /5[1-5][0-9]{14}/,
2996
+ 'ec': /5[1-5][0-9]{14}/,
2997
+ 'vi': /4(?:[0-9]{12}|[0-9]{15})/,
2998
+ 'ax': /3[47][0-9]{13}/,
2999
+ 'dc': /3(?:0[0-5][0-9]{11}|[68][0-9]{12})/,
3000
+ 'bl': /3(?:0[0-5][0-9]{11}|[68][0-9]{12})/,
3001
+ 'di': /6011[0-9]{12}/,
3002
+ 'jcb': /(?:3[0-9]{15}|(2131|1800)[0-9]{11})/,
3003
+ 'er': /2(?:014|149)[0-9]{11}/
3004
+ };
3005
+ function validate_currency(currency) {
3006
+ if (typeof currency === 'number') {
3007
+ return true;
3008
+ }
3009
+ const regex = /^(R\$|R\$ )?(-)?(?!0(\.)?00)\d{1,3}((\.)?\d{3})*(,\d\d)?$/g;
3010
+ return regex.test(currency);
3011
+ }
3012
+ function validate_data(value) {
3013
+ if (!value) {
3014
+ return false;
3015
+ }
3016
+ const values = value.split('/');
3017
+ if (values.length !== 3) {
3018
+ return false;
3019
+ }
3020
+ const testData = new Date(values[1] + '/' + values[0] + '/' + values[2]);
3021
+ if (!testData.getTime()) {
3022
+ return false;
3023
+ }
3024
+ // if (parseInt(values[0]) > 31 || parseInt(values[1]) > 12 || parseInt(values[2]) < 1000) return false;
3025
+ return true;
3026
+ }
3027
+ function validate_date(value) {
3028
+ if (!value || value.length < 10) {
3029
+ return false;
3030
+ }
3031
+ const testData = new Date(value);
3032
+ if (!testData.getTime()) {
3033
+ return false;
3034
+ }
3035
+ return true;
3036
+ }
3037
+ function validate_datetime(time, options = {}) {
3038
+ if (!time) {
3039
+ return false;
3040
+ }
3041
+ time = time.toString();
3042
+ const values = time.split(' ');
3043
+ if (validate_date(values[0]) && validate_time(values[1], options)) {
3044
+ return true;
3045
+ }
3046
+ return false;
3047
+ }
3048
+ function validate_datahora(time, options = {}) {
3049
+ if (!time) {
3050
+ return false;
3051
+ }
3052
+ time = time.toString();
3053
+ const values = time.split(' ');
3054
+ if (validate_data(values[0]) && validate_time(values[1], options)) {
3055
+ return true;
3056
+ }
3057
+ return false;
3058
+ }
3059
+ function validate_ect(number) {
3060
+ number = getAllDigits(number);
3061
+ if (number.length > 9) {
3062
+ return false;
3063
+ }
3064
+ const nodigit = number.substr(0, number.length - 1);
3065
+ const dg = create_ect(nodigit);
3066
+ if (parseInt(number[number.length - 1]) === dg) {
3067
+ return true;
3068
+ }
3069
+ return false;
3070
+ }
3071
+ function validate_email(email) {
3072
+ var re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
3073
+ return re.test(String(email).toLowerCase());
3074
+ }
3075
+ function validate_endereco(number) {
3076
+ if (!number)
3077
+ return false;
3078
+ return true;
3079
+ }
3080
+ function validate_number(number) {
3081
+ if (number.split(',').length > 2) {
3082
+ return false;
3083
+ }
3084
+ const regexDecimal = /^\d+(?:\.\d{0,2})$/;
3085
+ const regex = /^[0-9]{0,10}[,]{1,1}[0-9]{0,4}/;
3086
+ const regexNumero = /^[0-9]{0,10}/;
3087
+ return regexDecimal.test(number) || regex.test(number) || regexNumero.test(number);
3088
+ }
3089
+ function validate_porcentagem(porcentagem) {
3090
+ porcentagem = porcentagem.split('%')[0];
3091
+ return validate_number(porcentagem);
3092
+ }
3093
+ function validate_processo(processo) {
3094
+ let processoClean = processo.replace(/\./g, '');
3095
+ processoClean = processoClean.replace(/\-/g, '');
3096
+ // const exp = /\d{7}\-\d{2}\.\d{4}\.\w{3}\.\d{4}/;
3097
+ // const expClean = /\d{13}\w{3}\d{4}/;
3098
+ // if (!exp.test(processo) && !expClean.test(processoClean)) {
3099
+ // return false;
3100
+ // }
3101
+ let processoValidado = create_processo(processo);
3102
+ if (parseInt(processoClean) !== parseInt(getAllDigits(processoValidado))) {
3103
+ return false;
3104
+ }
3105
+ return true;
3106
+ }
3107
+ function validate_pispasep(number) {
3108
+ number = getAllDigits(number);
3109
+ let nis = fillString(number, 11, '0');
3110
+ const regex = /\d{11}/; // /^\d{3}\.\d{5}\.\d{2}\-\d{1}$/;
3111
+ if (!regex.test(nis)) {
3112
+ return false;
3113
+ }
3114
+ const digit = create_pispasep(number);
3115
+ return nis[10].toString() == digit.toString();
3116
+ }
3117
+ function validate_renavam(renavam) {
3118
+ let renavamClean = renavam.replace(/\./g, '');
3119
+ renavamClean = renavamClean.replace(/\-/g, '');
3120
+ const dv = create_renavam(renavam);
3121
+ const tam = renavam.length;
3122
+ const digitos = renavam.substr(tam - 1, 1);
3123
+ if (digitos.charCodeAt(0) - 48 === dv) {
3124
+ return true;
3125
+ }
3126
+ else {
3127
+ return false;
3128
+ }
3129
+ }
3130
+ function validate_rg(rg) {
3131
+ let rgClean = rg.replace(/\./g, '');
3132
+ rgClean = rgClean.replace(/-/g, '');
3133
+ const exp = /[a-z]{2}\-\d{2}\.\d{3}\.\d{3}/;
3134
+ const expClean = /[a-z]{2}\d{8}/;
3135
+ const state = rg.substr(0, 2).toUpperCase();
3136
+ if (!exp.test(rg) && !expClean.test(rgClean) && !(state in CEPRange)) {
3137
+ return false;
3138
+ }
3139
+ const validateState = RG[state];
3140
+ if (validateState) {
3141
+ return validateState(rg);
3142
+ }
3143
+ return true;
3144
+ }
3145
+ function validate_senha(value, options = {}) {
3146
+ let finalregex = '^';
3147
+ // ^ The password string will start this way
3148
+ // (?=.*[a-z]) The string must contain at least 1 lowercase alphabetical character
3149
+ if (options.lowercase !== false) {
3150
+ finalregex = finalregex + '(?=.*[a-z])';
3151
+ }
3152
+ // (?=.*[A-Z]) The string must contain at least 1 uppercase alphabetical character
3153
+ if (options.uppercase !== false) {
3154
+ finalregex = finalregex + '(?=.*[A-Z])';
3155
+ }
3156
+ // (?=.*[0-9]) The string must contain at least 1 numeric character
3157
+ if (options.numeric !== false) {
3158
+ finalregex = finalregex + '(?=.*[0-9])';
3159
+ }
3160
+ // (?=.*[!@#\$%\^&\*]) The string must contain at least one special character, but we are escaping reserved RegEx characters to avoid conflict
3161
+ if (options.numeric !== false) {
3162
+ finalregex = finalregex + '(?=.*[!@#\\$%\\^&\\*])';
3163
+ }
3164
+ // (?=.{8,}) The string must be eight characters or longer
3165
+ if (!options.size) {
3166
+ options.size = 8;
3167
+ }
3168
+ finalregex = finalregex + `(?=.{${options.size},})`;
3169
+ const regex = new RegExp(finalregex);
3170
+ return regex.test(value);
3171
+ }
3172
+ function validate_site(value) {
3173
+ var re = /(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g;
3174
+ return re.test(String(value).toLowerCase());
3175
+ }
3176
+ function validate_sped(sped) {
3177
+ if (!sped)
3178
+ return false;
3179
+ return true;
3180
+ }
3181
+ function validate_telefone(tel) {
3182
+ const telClean = tel.replace(/[^\d]+/g, '');
3183
+ tel = tel.replace(/_/g, '');
3184
+ if (!(telClean.length === 10 || telClean.length === 11)) {
3185
+ return false;
3186
+ }
3187
+ if (telClean[0] == 0 || telClean[2] == 0) {
3188
+ return false;
3189
+ }
3190
+ return true;
3191
+ }
3192
+ function validate_time(time, options = {}) {
3193
+ const value = time.toString();
3194
+ if (options.diario) {
3195
+ const expression = /^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/;
3196
+ return expression.test(value);
3197
+ }
3198
+ else {
3199
+ const expression = /^([0-9]?[0-9]):([0-5][0-9])(:[0-5][0-9])?$/;
3200
+ return expression.test(value);
3201
+ }
3202
+ }
3203
+ function validate_titulo(titulo) {
3204
+ if (!titulo) {
3205
+ return false;
3206
+ }
3207
+ const tituloClean = titulo.replace(/\./g, '');
3208
+ const exp = /\d{4}\.\d{4}\.\d{4}/;
3209
+ const expClean = /\d{4}\d{4}\d{4}/;
3210
+ if (!exp.test(tituloClean) && !expClean.test(tituloClean)) {
3211
+ return false;
3212
+ }
3213
+ const tam = tituloClean.length;
3214
+ let dig;
3215
+ try {
3216
+ dig = create_titulo_atual(tituloClean);
3217
+ // const noDv = tituloClean.substr(0, tam - 2);
3218
+ // dig = create_titulo(noDv);
3219
+ }
3220
+ catch (e) {
3221
+ return false;
3222
+ }
3223
+ const digitos = tituloClean.substr(tam - 2, 2);
3224
+ if (digitos === dig) {
3225
+ return true;
3226
+ }
3227
+ else {
3228
+ return false;
3229
+ }
3230
+ }
3231
+ function validate_username(value) {
3232
+ var re = /^[a-z0-9_-]{3,16}$/igm;
3233
+ return re.test(String(value).toLowerCase());
3234
+ }
3235
+ const validateBr = {
3236
+ aih: validate_aih,
3237
+ cartaocredito: validate_cartaocredito,
3238
+ celular: validate_celular,
3239
+ cep: validate_cep,
3240
+ certidao: validate_certidao,
3241
+ chassi: validate_chassi,
3242
+ cnae: validate_cnae,
3243
+ cnh: validate_cnh,
3244
+ cnhespelho: validate_cnhespelho,
3245
+ renachestadual: validate_renachestadual,
3246
+ renachseguranca: validate_renachseguranca,
3247
+ cnpj: validate_cnpj,
3248
+ cns: validate_cns,
3249
+ contabanco: validate_contabanco,
3250
+ cpf: validate_cpf,
3251
+ cpfcnpj: validate_cpfcnpj,
3252
+ currency: validate_currency,
3253
+ data: validate_data,
3254
+ date: validate_date,
3255
+ datetime: validate_datetime,
3256
+ datahora: validate_datahora,
3257
+ ect: validate_ect,
3258
+ email: validate_email,
3259
+ endereco: validate_endereco,
3260
+ inscricaoestadual: validate_inscricaoestadual,
3261
+ iptu: validate_iptu,
3262
+ number: validate_number,
3263
+ porcentagem: validate_porcentagem,
3264
+ pispasep: validate_pispasep,
3265
+ placa: validate_placa,
3266
+ processo: validate_processo,
3267
+ renavam: validate_renavam,
3268
+ rg: validate_rg,
3269
+ senha: validate_senha,
3270
+ site: validate_site,
3271
+ sped: validate_sped,
3272
+ telefone: validate_telefone,
3273
+ time: validate_time,
3274
+ titulo: validate_titulo,
3275
+ username: validate_username
3276
+ };
3277
+
3278
+ const dollarSign = "$";
3279
+ const emptyString$1 = "";
3280
+ const comma = ",";
3281
+ const period = ".";
3282
+ const minus = "-";
3283
+ const minusRegExp = /-/;
3284
+ const nonDigitsRegExp = /\D+/g;
3285
+ const number = "number";
3286
+ const digitRegExp = /\d/;
3287
+ const caretTrap = "[]";
3288
+ function createNumberMask({ prefix = dollarSign, suffix = emptyString$1, includeThousandsSeparator = true, thousandsSeparatorSymbol = comma, allowDecimal = false, decimalSymbol = period, decimalLimit = 2, requireDecimal = false, allowNegative = false, allowLeadingZeroes = false, integerLimit = null, } = {}) {
3289
+ const prefixLength = (prefix && prefix.length) || 0;
3290
+ const suffixLength = (suffix && suffix.length) || 0;
3291
+ const thousandsSeparatorSymbolLength = (thousandsSeparatorSymbol && thousandsSeparatorSymbol.length) || 0;
3292
+ function numberMask(rawValue = emptyString$1) {
3293
+ const rawValueLength = rawValue.length;
3294
+ if (rawValue === emptyString$1 ||
3295
+ (rawValue[0] === prefix[0] && rawValueLength === 1)) {
3296
+ return prefix
3297
+ .split(emptyString$1)
3298
+ .concat(["" + digitRegExp])
3299
+ .concat(suffix.split(emptyString$1));
3300
+ }
3301
+ else if (rawValue === decimalSymbol && allowDecimal) {
3302
+ return prefix
3303
+ .split(emptyString$1)
3304
+ .concat(["0", decimalSymbol, "" + digitRegExp])
3305
+ .concat(suffix.split(emptyString$1));
3306
+ }
3307
+ const isNegative = rawValue[0] === minus && allowNegative;
3308
+ //If negative remove "-" sign
3309
+ if (isNegative) {
3310
+ rawValue = rawValue.toString().substr(1);
3311
+ }
3312
+ const indexOfLastDecimal = rawValue.lastIndexOf(decimalSymbol);
3313
+ const hasDecimal = indexOfLastDecimal !== -1;
3314
+ let integer;
3315
+ let fraction;
3316
+ let mask;
3317
+ // remove the suffix
3318
+ if (rawValue.slice(suffixLength * -1) === suffix) {
3319
+ rawValue = rawValue.slice(0, suffixLength * -1);
3320
+ }
3321
+ if (hasDecimal && (allowDecimal || requireDecimal)) {
3322
+ integer = rawValue.slice(rawValue.slice(0, prefixLength) === prefix ? prefixLength : 0, indexOfLastDecimal);
3323
+ fraction = rawValue.slice(indexOfLastDecimal + 1, rawValueLength);
3324
+ fraction = convertToMask(fraction.replace(nonDigitsRegExp, emptyString$1));
3325
+ }
3326
+ else {
3327
+ if (rawValue.slice(0, prefixLength) === prefix) {
3328
+ integer = rawValue.slice(prefixLength);
3329
+ }
3330
+ else {
3331
+ integer = rawValue;
3332
+ }
3333
+ }
3334
+ if (integerLimit && typeof integerLimit === number) {
3335
+ const thousandsSeparatorRegex = thousandsSeparatorSymbol === "."
3336
+ ? "[.]"
3337
+ : `${thousandsSeparatorSymbol}`;
3338
+ const numberOfThousandSeparators = (integer.match(new RegExp(thousandsSeparatorRegex, "g")) || []).length;
3339
+ integer = integer.slice(0, integerLimit +
3340
+ numberOfThousandSeparators * thousandsSeparatorSymbolLength);
3341
+ }
3342
+ integer = integer.replace(nonDigitsRegExp, emptyString$1);
3343
+ if (!allowLeadingZeroes) {
3344
+ integer = integer.replace(/^0+(0$|[^0])/, "$1");
3345
+ }
3346
+ integer = includeThousandsSeparator
3347
+ ? addThousandsSeparator(integer, thousandsSeparatorSymbol)
3348
+ : integer;
3349
+ mask = convertToMask(integer);
3350
+ if ((hasDecimal && allowDecimal) || requireDecimal === true) {
3351
+ if (rawValue[indexOfLastDecimal - 1] !== decimalSymbol) {
3352
+ mask.push(caretTrap);
3353
+ }
3354
+ mask.push(decimalSymbol, caretTrap);
3355
+ if (fraction) {
3356
+ if (typeof decimalLimit === number) {
3357
+ fraction = fraction.slice(0, decimalLimit);
3358
+ }
3359
+ mask = mask.concat(fraction);
3360
+ }
3361
+ if (requireDecimal === true &&
3362
+ rawValue[indexOfLastDecimal - 1] === decimalSymbol) {
3363
+ mask.push(digitRegExp);
3364
+ }
3365
+ }
3366
+ if (prefixLength > 0) {
3367
+ mask = prefix.split(emptyString$1).concat("" + mask);
3368
+ }
3369
+ if (isNegative) {
3370
+ // If user is entering a negative number, add a mask placeholder spot to attract the caret to it.
3371
+ if (mask.length === prefixLength) {
3372
+ mask.push(digitRegExp);
3373
+ }
3374
+ mask = [minusRegExp].concat(new RegExp("" + mask));
3375
+ }
3376
+ if (suffix.length > 0) {
3377
+ mask = mask.concat(suffix.split(emptyString$1));
3378
+ }
3379
+ return mask;
3380
+ }
3381
+ //numberMask.instanceOf = "createNumberMask";
3382
+ return numberMask;
3383
+ }
3384
+ function convertToMask(strNumber) {
3385
+ return strNumber
3386
+ .split(emptyString$1)
3387
+ .map((char) => (digitRegExp.test(char) ? digitRegExp : char));
3388
+ }
3389
+ function addThousandsSeparator(n, thousandsSeparatorSymbol) {
3390
+ return n.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparatorSymbol);
3391
+ }
3392
+
3393
+ const maskNumber = {
3394
+ decimalLimit: 2,
3395
+ thousandsSeparatorSymbol: '.',
3396
+ decimalSymbol: ',',
3397
+ allowDecimal: true,
3398
+ integerLimit: 17,
3399
+ prefix: '',
3400
+ suffix: ''
3401
+ };
3402
+ const MASKS = {
3403
+ aih: {
3404
+ text: '000000000000-0',
3405
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
3406
+ },
3407
+ cartaocredito: {
3408
+ text: '0000 0000 0000 0000 00/00 000',
3409
+ textMask: [/\d/, /\d/, /\d/, /\d/, ' ', /\d/, /\d/, /\d/, /\d/, ' ', /\d/, /\d/, /\d/, /\d/, '0', /\d/, /\d/, /\d/, /\d/, ' ', /\d/, /\d/, '/', /\d/, /\d/, ' ', /\d/, /\d/, /\d/]
3410
+ },
3411
+ celular: {
3412
+ text: '(00) 00000-0000',
3413
+ textMask: ['(', /[1-9]/, /\d/, ')', ' ', /[5-9]/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
3414
+ },
3415
+ cep: {
3416
+ text: '00.000-000',
3417
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/]
3418
+ },
3419
+ // certidao Certidões de Nascimento, Casamento ou Óbito
3420
+ certidao: {
3421
+ text: '000000.00.00.0000.0.00000.000.0000000-00',
3422
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, '.', /\d/, /\d/, '.',
3423
+ /\d/, /\d/, /\d/, /\d/, '.', /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, '.',
3424
+ /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/]
3425
+ },
3426
+ chassi: {
3427
+ text: 'AAA AAAAAA AA AA0000',
3428
+ textMask: [/[1-9]/, /\w/, /\w/, ' ', /\w/, /\w/, /\w/, /\w/, /\w/, /\w/, ' ', /\w/, /\w/, ' ', /\w/, /\w/, /\d/, /\d/, /\d/, /\d/]
3429
+ },
3430
+ cid: {
3431
+ textMask: false
3432
+ },
3433
+ cnae: {
3434
+ text: '0000-0/00',
3435
+ textMask: [/\d/, /\d/, /\d/, /\d/, '-', /\d/, '/', /\d/, /\d/]
3436
+ },
3437
+ cnh: {
3438
+ text: '000000000-00',
3439
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/]
3440
+ },
3441
+ renachseguranca: {
3442
+ text: '00000000000',
3443
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
3444
+ },
3445
+ renachestadual: {
3446
+ text: 'AA000000000',
3447
+ textMask: [/[A-S]/, /[A-Z]/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
3448
+ },
3449
+ cnhespelho: {
3450
+ text: '0000000000',
3451
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/]
3452
+ },
3453
+ cnpj: {
3454
+ text: '00.000.000/0000-00',
3455
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/]
3456
+ },
3457
+ cns: {
3458
+ text: '000 0000 0000 00-00',
3459
+ textMask: [/[1|2|7|8|9]/, /\d/, /\d/, ' ', /\d/, /\d/, /\d/, /\d/, ' ', /\d/, /\d/, /\d/, /\d/, ' ', /\d/, /\d/, '-', /\d/, /\d/]
3460
+ },
3461
+ contabanco: {
3462
+ text: '000 00000-0 00000-0',
3463
+ textMask: [/\d/, /\d/, /\d/, ' ', /\d/, /\d/, /\d/, /\d/, /\d/, '-',
3464
+ /\d/, ' ', /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
3465
+ },
3466
+ cpf: {
3467
+ text: '000.000.000-00',
3468
+ textMask: [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/]
3469
+ },
3470
+ cpfcnpj: {
3471
+ text: '00.000.000/0000-00',
3472
+ textMask: [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/],
3473
+ textMaskFunction: function mask(userInput) {
3474
+ const numbers = userInput.match(/\d/g);
3475
+ let numberLength = 0;
3476
+ if (numbers) {
3477
+ numberLength = numbers.join('').length;
3478
+ }
3479
+ if (!userInput || numberLength > 12) {
3480
+ return [/\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/];
3481
+ }
3482
+ else {
3483
+ return [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, '-', /\d/, /\d/];
3484
+ }
3485
+ }
3486
+ },
3487
+ currency: {
3488
+ text: '0.000,00',
3489
+ textMask: createNumberMask(Object.assign(Object.assign({}, maskNumber), { prefix: 'R$ ', allowNegative: true }))
3490
+ },
3491
+ data: {
3492
+ text: '00/00/0000',
3493
+ textMask: [/[0-3]/, /[0-9]/, '/', /[0-1]/, /[0-9]/, '/', /[0-2]/, /[0-9]/, /\d/, /\d/]
3494
+ },
3495
+ date: {
3496
+ text: '00/00/0000',
3497
+ textMask: [/[0-1]/, /[0-9]/, '/', /[0-3]/, /[0-9]/, '/', /[0-2]/, /[0-9]/, /\d/, /\d/]
3498
+ },
3499
+ datetime: {
3500
+ text: '00/00/0000 00:00',
3501
+ textMask: [/[0-1]/, /[0-9]/, '/', /[0-3]/, /[0-9]/, '/', /[0-2]/, /[0-9]/, /\d/, /\d/, ' ', /\d/, /\d/, ':', /[0-5]/, /\d/]
3502
+ },
3503
+ datahora: {
3504
+ text: '00/00/0000 00:00',
3505
+ textMask: [/[0-3]/, /[0-9]/, '/', /[0-1]/, /[0-9]/, '/', /[0-2]/, /[0-9]/, /\d/, /\d/, ' ', /\d/, /\d/, ':', /[0-5]/, /\d/]
3506
+ },
3507
+ ect: {
3508
+ text: '00000000-0',
3509
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/]
3510
+ },
3511
+ endereco: {
3512
+ text: '0000.0000.0000',
3513
+ textMask: [/\d/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, '.', /[0-2]/, /[0-9]/, /\d/, /\d/]
3514
+ },
3515
+ iptu: {
3516
+ text: '0000.0000.0000',
3517
+ textMask: [/\d/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, '.', /[0-2]/, /[0-9]/, /\d/, /\d/]
3518
+ },
3519
+ number: {
3520
+ text: '0.000,00',
3521
+ textMask: createNumberMask(maskNumber)
3522
+ },
3523
+ porcentagem: {
3524
+ text: '00,00%',
3525
+ textMask: createNumberMask(Object.assign(Object.assign({}, maskNumber), { suffix: '%' }))
3526
+ },
3527
+ pispasep: {
3528
+ text: '000.00000.00-0',
3529
+ textMask: [/\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, '-', /\d/]
3530
+ },
3531
+ placa: {
3532
+ text: 'AAA-0000',
3533
+ textMask: [/[A-S]/, /[A-Z]/, /[A-Z]/, '-', /\d/, /\d/, /\d/, /\d/]
3534
+ },
3535
+ processo: {
3536
+ text: '0000000-00.0000.AAA.0000',
3537
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, '.', /[A-Za-z]/, /[A-Za-z]/, /[A-Za-z]/, '.', /\d/, /\d/, /\d/, /\d/]
3538
+ },
3539
+ renavam: {
3540
+ text: '0000000000-00',
3541
+ textMask: [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/],
3542
+ textMaskFunction: function mask(userInput) {
3543
+ const numbers = userInput.match(/\d/g);
3544
+ let numberLength = 0;
3545
+ if (numbers) {
3546
+ numberLength = numbers.join('').length;
3547
+ }
3548
+ if (!userInput || numberLength < 9) {
3549
+ return [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/];
3550
+ }
3551
+ else {
3552
+ return [/\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/];
3553
+ }
3554
+ }
3555
+ },
3556
+ rg: {
3557
+ text: 'AA-00.000.000',
3558
+ textMask: [/[A-Za-z]/, /[A-Za-z]/, '-', /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/]
3559
+ },
3560
+ sped: {
3561
+ text: '0000.0000.0000',
3562
+ textMask: [/\d/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, '.', /[0-2]/, /[0-9]/, /\d/, /\d/]
3563
+ },
3564
+ telefone: {
3565
+ text: '(00) 00000-0000',
3566
+ textMask: ['(', /[1-9]/, /\d/, ')', ' ', /[1-9]/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
3567
+ textMaskFunction: function mask(userInput) {
3568
+ const numbers = userInput.match(/\d/g);
3569
+ let numberLength = 0;
3570
+ if (numbers) {
3571
+ numberLength = numbers.join('').length;
3572
+ }
3573
+ if (!userInput || numberLength > 10) {
3574
+ return ['(', /[1-9]/, /\d/, ')', ' ', /[1-9]/, /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
3575
+ }
3576
+ else {
3577
+ return ['(', /[1-9]/, /\d/, ')', ' ', /[1-9]/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
3578
+ }
3579
+ }
3580
+ },
3581
+ time: {
3582
+ text: '00:00',
3583
+ textMask: [/\d/, /\d/, ':', /[0-5]/, /\d/]
3584
+ },
3585
+ titulo: {
3586
+ text: '0000.0000.0000',
3587
+ textMask: [/\d/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, '.', /[0-2]/, /[0-9]/, /\d/, /\d/]
3588
+ },
3589
+ utils: {
3590
+ numberToString: (n) => {
3591
+ if (!n || typeof n === 'string') {
3592
+ return n;
3593
+ }
3594
+ return (n.toString()).replace('.', ',');
3595
+ },
3596
+ textMask: false
3597
+ }
3598
+ };
3599
+ const makeGeneric = (key) => {
3600
+ return (value) => {
3601
+ if (!value) {
3602
+ return '';
3603
+ }
3604
+ let mask = MASKS[key].textMask;
3605
+ let textMaskFunction = MASKS[key].textMaskFunction;
3606
+ if (typeof textMaskFunction === 'function') {
3607
+ mask = textMaskFunction(value);
3608
+ }
3609
+ return conformToMask(value, mask, { guide: false }).conformedValue;
3610
+ };
3611
+ };
3612
+ const maskBr$1 = {
3613
+ aih: makeGeneric('aih'),
3614
+ celular: makeGeneric('celular'),
3615
+ cep: makeGeneric('cep'),
3616
+ certidao: makeGeneric('certidao'),
3617
+ chassi: makeGeneric('chassi'),
3618
+ cnae: makeGeneric('cnae'),
3619
+ cnh: makeGeneric('cnh'),
3620
+ renachseguranca: makeGeneric('renachseguranca'),
3621
+ renachestadual: makeGeneric('renachestadual'),
3622
+ cnhespelho: makeGeneric('cnhespelho'),
3623
+ cnpj: makeGeneric('cnpj'),
3624
+ cns: makeGeneric('cns'),
3625
+ contabanco: makeGeneric('contabanco'),
3626
+ cpf: makeGeneric('cpf'),
3627
+ cpfcnpj: makeGeneric('cpfcnpj'),
3628
+ cartaocredito: makeGeneric('cartaocredito'),
3629
+ currency: (currencyValueInput, decimalsFormat = 2) => {
3630
+ return formatNumber(MASKS['currency'], currencyValueInput, decimalsFormat);
3631
+ },
3632
+ data: makeGeneric('data'),
3633
+ date: makeGeneric('date'),
3634
+ datetime: makeGeneric('datetime'),
3635
+ datahora: makeGeneric('datahora'),
3636
+ ect: makeGeneric('ect'),
3637
+ endereco: makeGeneric('endereco'),
3638
+ inscricaoestadual: (inscricaoestadualValue, estado) => {
3639
+ const ie = MASKSIE;
3640
+ const ieState = ie[estado];
3641
+ if (!inscricaoestadualValue || !estado || !ieState ||
3642
+ !ieState.textMask) {
3643
+ return '';
3644
+ }
3645
+ let mask = ieState.textMask;
3646
+ let textMaskFunction = ieState.textMaskFunction;
3647
+ if (typeof textMaskFunction === 'function') {
3648
+ mask = textMaskFunction(inscricaoestadualValue);
3649
+ }
3650
+ return conformToMask(inscricaoestadualValue, mask, { guide: false }).conformedValue;
3651
+ },
3652
+ iptu: (iptuValue, estado, cidade) => {
3653
+ const mask = mask_iptu(iptuValue, estado, cidade);
3654
+ if (!mask || typeof mask === 'string') {
3655
+ return '';
3656
+ }
3657
+ return conformToMask(iptuValue, mask.textMask, { guide: false }).conformedValue;
3658
+ },
3659
+ number: (numberValue, decimalsFormat = 2) => {
3660
+ return formatNumber(MASKS['number'], numberValue, decimalsFormat);
3661
+ },
3662
+ porcentagem: (porcentagemValue, decimalsFormat = 2) => {
3663
+ return formatNumber(MASKS['porcentagem'], porcentagemValue, decimalsFormat);
3664
+ },
3665
+ pispasep: makeGeneric('pispasep'),
3666
+ placa: makeGeneric('placa'),
3667
+ processo: makeGeneric('processo'),
3668
+ renavam: makeGeneric('renavam'),
3669
+ rg: makeGeneric('rg'),
3670
+ sped: makeGeneric('sped'),
3671
+ telefone: makeGeneric('telefone'),
3672
+ time: (value) => {
3673
+ if (value instanceof Date) {
3674
+ value = value.toTimeString().split(' ')[0];
3675
+ }
3676
+ return makeGeneric('time')(value);
3677
+ },
3678
+ titulo: makeGeneric('titulo')
3679
+ };
3680
+ /**
3681
+ * FROM TEXT-MASK
3682
+ */
3683
+ const placeholderChar = '_';
3684
+ const strFunction = 'function';
3685
+ const defaultPlaceholderChar = placeholderChar;
3686
+ const emptyArray = [];
3687
+ const emptyString = '';
3688
+ function conformToMask(inputValue = emptyString, mask = emptyArray, config = {}) {
3689
+ let rawValue = inputValue.toString();
3690
+ if (typeof inputValue === 'number') {
3691
+ rawValue = inputValue.toString();
3692
+ }
3693
+ if (inputValue instanceof Date) {
3694
+ rawValue = inputValue.toLocaleString("pt-br");
3695
+ }
3696
+ if (!isArray(mask)) {
3697
+ // If someone passes a function as the mask property, we should call the
3698
+ // function to get the mask array - Normally this is handled by the
3699
+ // `createTextMaskInputElement:update` function - this allows mask functions
3700
+ // to be used directly with `conformToMask`
3701
+ if (typeof mask === strFunction) {
3702
+ // call the mask function to get the mask array
3703
+ mask = mask(inputValue, config);
3704
+ // mask functions can setup caret traps to have some control over how the caret moves. We need to process
3705
+ // the mask for any caret traps. `processCaretTraps` will remove the caret traps from the mask
3706
+ mask = processCaretTraps(mask).maskWithoutCaretTraps;
3707
+ }
3708
+ else {
3709
+ throw new Error('Text-mask:conformToMask; The mask property must be an array.');
3710
+ }
3711
+ }
3712
+ // These configurations tell us how to conform the mask
3713
+ const guide = config.guide || true;
3714
+ const previousConformedValue = config.previousConformedValue || emptyString;
3715
+ const placeholder = convertMaskToPlaceholder(mask, placeholderChar);
3716
+ const currentCaretPosition = config.currentCaretPosition;
3717
+ const keepCharPositions = config.keepCharPositions;
3718
+ // The configs below indicate that the user wants the algorithm to work in *no guide* mode
3719
+ const suppressGuide = guide === false && previousConformedValue !== undefined;
3720
+ // Calculate lengths once for performance
3721
+ const rawValueLength = rawValue.length;
3722
+ const previousConformedValueLength = previousConformedValue.length;
3723
+ const placeholderLength = placeholder.length;
3724
+ const maskLength = mask.length;
3725
+ // This tells us the number of edited characters and the direction in which they were edited (+/-)
3726
+ const editDistance = rawValueLength - previousConformedValueLength;
3727
+ // In *no guide* mode, we need to know if the user is trying to add a character or not
3728
+ const isAddition = editDistance > 0;
3729
+ // Tells us the index of the first change. For (438) 394-4938 to (38) 394-4938, that would be 1
3730
+ const indexOfFirstChange = currentCaretPosition + (isAddition ? -editDistance : 0);
3731
+ // We're also gonna need the index of last change, which we can derive as follows...
3732
+ const indexOfLastChange = indexOfFirstChange + Math.abs(editDistance);
3733
+ // If `conformToMask` is configured to keep character positions, that is, for mask 111, previous value
3734
+ // _2_ and raw value 3_2_, the new conformed value should be 32_, not 3_2 (default behavior). That's in the case of
3735
+ // addition. And in the case of deletion, previous value _23, raw value _3, the new conformed string should be
3736
+ // __3, not _3_ (default behavior)
3737
+ //
3738
+ // The next block of logic handles keeping character positions for the case of deletion. (Keeping
3739
+ // character positions for the case of addition is further down since it is handled differently.)
3740
+ // To do this, we want to compensate for all characters that were deleted
3741
+ if (keepCharPositions === true && !isAddition) {
3742
+ // We will be storing the new placeholder characters in this variable.
3743
+ let compensatingPlaceholderChars = emptyString;
3744
+ // For every character that was deleted from a placeholder position, we add a placeholder char
3745
+ for (let i = indexOfFirstChange; i < indexOfLastChange; i++) {
3746
+ if (placeholder[i] === placeholderChar) {
3747
+ compensatingPlaceholderChars += placeholderChar;
3748
+ }
3749
+ }
3750
+ // Now we trick our algorithm by modifying the raw value to make it contain additional placeholder characters
3751
+ // That way when the we start laying the characters again on the mask, it will keep the non-deleted characters
3752
+ // in their positions.
3753
+ rawValue = (rawValue.slice(0, indexOfFirstChange) +
3754
+ compensatingPlaceholderChars +
3755
+ rawValue.slice(indexOfFirstChange, rawValueLength));
3756
+ }
3757
+ // Convert `rawValue` string to an array, and mark characters based on whether they are newly added or have
3758
+ // existed in the previous conformed value. Identifying new and old characters is needed for `conformToMask`
3759
+ // to work if it is configured to keep character positions.
3760
+ const rawValueArr = rawValue
3761
+ .split(emptyString)
3762
+ .map((char, i) => ({ char, isNew: i >= indexOfFirstChange && i < indexOfLastChange }));
3763
+ // The loop below removes masking characters from user input. For example, for mask
3764
+ // `00 (111)`, the placeholder would be `00 (___)`. If user input is `00 (234)`, the loop below
3765
+ // would remove all characters but `234` from the `rawValueArr`. The rest of the algorithm
3766
+ // then would lay `234` on top of the available placeholder positions in the mask.
3767
+ for (let i = rawValueLength - 1; i >= 0; i--) {
3768
+ const { char } = rawValueArr[i];
3769
+ if (char !== placeholderChar) {
3770
+ const shouldOffset = i >= indexOfFirstChange && previousConformedValueLength === maskLength;
3771
+ if (char === placeholder[(shouldOffset) ? i - editDistance : i]) {
3772
+ rawValueArr.splice(i, 1);
3773
+ }
3774
+ }
3775
+ }
3776
+ // This is the variable that we will be filling with characters as we figure them out
3777
+ // in the algorithm below
3778
+ let conformedValue = emptyString;
3779
+ let someCharsRejected = false;
3780
+ // Ok, so first we loop through the placeholder looking for placeholder characters to fill up.
3781
+ placeholderLoop: for (let i = 0; i < placeholderLength; i++) {
3782
+ const charInPlaceholder = placeholder[i];
3783
+ // We see one. Let's find out what we can put in it.
3784
+ if (charInPlaceholder === placeholderChar) {
3785
+ // But before that, do we actually have any user characters that need a place?
3786
+ if (rawValueArr.length > 0) {
3787
+ // We will keep chipping away at user input until either we run out of characters
3788
+ // or we find at least one character that we can map.
3789
+ while (rawValueArr.length > 0) {
3790
+ // Let's retrieve the first user character in the queue of characters we have left
3791
+ const shift = rawValueArr.shift();
3792
+ let rawValueChar = '', isNew = false;
3793
+ if (shift) {
3794
+ rawValueChar = shift.char;
3795
+ isNew = shift.isNew;
3796
+ }
3797
+ // If the character we got from the user input is a placeholder character (which happens
3798
+ // regularly because user input could be something like (540) 90_-____, which includes
3799
+ // a bunch of `_` which are placeholder characters) and we are not in *no guide* mode,
3800
+ // then we map this placeholder character to the current spot in the placeholder
3801
+ if (rawValueChar === placeholderChar && suppressGuide !== true) {
3802
+ conformedValue += placeholderChar;
3803
+ // And we go to find the next placeholder character that needs filling
3804
+ continue placeholderLoop;
3805
+ // Else if, the character we got from the user input is not a placeholder, let's see
3806
+ // if the current position in the mask can accept it.
3807
+ }
3808
+ else if (mask[i].test(rawValueChar)) {
3809
+ // we map the character differently based on whether we are keeping character positions or not.
3810
+ // If any of the conditions below are met, we simply map the raw value character to the
3811
+ // placeholder position.
3812
+ if (keepCharPositions !== true ||
3813
+ isNew === false ||
3814
+ previousConformedValue === emptyString ||
3815
+ guide === false ||
3816
+ !isAddition) {
3817
+ conformedValue += rawValueChar;
3818
+ }
3819
+ else {
3820
+ // We enter this block of code if we are trying to keep character positions and none of the conditions
3821
+ // above is met. In this case, we need to see if there's an available spot for the raw value character
3822
+ // to be mapped to. If we couldn't find a spot, we will discard the character.
3823
+ //
3824
+ // For example, for mask `1111`, previous conformed value `_2__`, raw value `942_2__`. We can map the
3825
+ // `9`, to the first available placeholder position, but then, there are no more spots available for the
3826
+ // `4` and `2`. So, we discard them and end up with a conformed value of `92__`.
3827
+ const rawValueArrLength = rawValueArr.length;
3828
+ let indexOfNextAvailablePlaceholderChar = null;
3829
+ // Let's loop through the remaining raw value characters. We are looking for either a suitable spot, ie,
3830
+ // a placeholder character or a non-suitable spot, ie, a non-placeholder character that is not new.
3831
+ // If we see a suitable spot first, we store its position and exit the loop. If we see a non-suitable
3832
+ // spot first, we exit the loop and our `indexOfNextAvailablePlaceholderChar` will stay as `null`.
3833
+ for (let i = 0; i < rawValueArrLength; i++) {
3834
+ const charData = rawValueArr[i];
3835
+ if (charData.char !== placeholderChar && charData.isNew === false) {
3836
+ break;
3837
+ }
3838
+ if (charData.char === placeholderChar) {
3839
+ indexOfNextAvailablePlaceholderChar = i;
3840
+ break;
3841
+ }
3842
+ }
3843
+ // If `indexOfNextAvailablePlaceholderChar` is not `null`, that means the character is not blocked.
3844
+ // We can map it. And to keep the character positions, we remove the placeholder character
3845
+ // from the remaining characters
3846
+ if (indexOfNextAvailablePlaceholderChar !== null) {
3847
+ conformedValue += rawValueChar;
3848
+ rawValueArr.splice(indexOfNextAvailablePlaceholderChar, 1);
3849
+ // If `indexOfNextAvailablePlaceholderChar` is `null`, that means the character is blocked. We have to
3850
+ // discard it.
3851
+ }
3852
+ else {
3853
+ i--;
3854
+ }
3855
+ }
3856
+ // Since we've mapped this placeholder position. We move on to the next one.
3857
+ continue placeholderLoop;
3858
+ }
3859
+ else {
3860
+ someCharsRejected = true;
3861
+ }
3862
+ }
3863
+ }
3864
+ // We reach this point when we've mapped all the user input characters to placeholder
3865
+ // positions in the mask. In *guide* mode, we append the left over characters in the
3866
+ // placeholder to the `conformedString`, but in *no guide* mode, we don't wanna do that.
3867
+ //
3868
+ // That is, for mask `(111)` and user input `2`, we want to return `(2`, not `(2__)`.
3869
+ if (suppressGuide === false) {
3870
+ conformedValue += placeholder.substr(i, placeholderLength);
3871
+ }
3872
+ // And we break
3873
+ break;
3874
+ // Else, the charInPlaceholder is not a placeholderChar. That is, we cannot fill it
3875
+ // with user input. So we just map it to the final output
3876
+ }
3877
+ else {
3878
+ conformedValue += charInPlaceholder;
3879
+ }
3880
+ }
3881
+ // The following logic is needed to deal with the case of deletion in *no guide* mode.
3882
+ //
3883
+ // Consider the silly mask `(111) /// 1`. What if user tries to delete the last placeholder
3884
+ // position? Something like `(589) /// `. We want to conform that to `(589`. Not `(589) /// `.
3885
+ // That's why the logic below finds the last filled placeholder character, and removes everything
3886
+ // from that point on.
3887
+ if (suppressGuide && isAddition === false) {
3888
+ let indexOfLastFilledPlaceholderChar = null;
3889
+ // Find the last filled placeholder position and substring from there
3890
+ for (let i = 0; i < conformedValue.length; i++) {
3891
+ if (placeholder[i] === placeholderChar) {
3892
+ indexOfLastFilledPlaceholderChar = i;
3893
+ }
3894
+ }
3895
+ if (indexOfLastFilledPlaceholderChar !== null) {
3896
+ // We substring from the beginning until the position after the last filled placeholder char.
3897
+ conformedValue = conformedValue.substr(0, indexOfLastFilledPlaceholderChar + 1);
3898
+ }
3899
+ else {
3900
+ // If we couldn't find `indexOfLastFilledPlaceholderChar` that means the user deleted
3901
+ // the first character in the mask. So we return an empty string.
3902
+ conformedValue = emptyString;
3903
+ }
3904
+ }
3905
+ return { conformedValue, meta: { someCharsRejected } };
3906
+ }
3907
+ function convertMaskToPlaceholder(mask = emptyArray, placeholderChar = defaultPlaceholderChar) {
3908
+ if (!isArray(mask)) {
3909
+ throw new Error('Text-mask:convertMaskToPlaceholder; The mask property must be an array.');
3910
+ }
3911
+ if (mask.indexOf(placeholderChar) !== -1) {
3912
+ throw new Error('Placeholder character must not be used as part of the mask. Please specify a character ' +
3913
+ 'that is not present in your mask as your placeholder character.\n\n' +
3914
+ `The placeholder character that was received is: ${JSON.stringify(placeholderChar)}\n\n` +
3915
+ `The mask that was received is: ${JSON.stringify(mask)}`);
3916
+ }
3917
+ return mask.map((char) => {
3918
+ return (char instanceof RegExp) ? placeholderChar : char;
3919
+ }).join('');
3920
+ }
3921
+ /**
3922
+ * Due to a bug on textmask, the requireDecimal its not working, so this function solves this problem
3923
+ * @param maskType
3924
+ * @param numberValue
3925
+ * @param decimalsFormat
3926
+ * @returns
3927
+ */
3928
+ function formatNumber(maskType, numberValue, decimalsFormat = 2) {
3929
+ if (!numberValue && numberValue !== 0) {
3930
+ return '';
3931
+ }
3932
+ if (!numberValue.split) {
3933
+ numberValue += '';
3934
+ numberValue = numberValue.replace('.', ',');
3935
+ }
3936
+ const vals = numberValue.split(',');
3937
+ if (!maskType.textMask || typeof maskType.textMask !== 'function') {
3938
+ return '';
3939
+ }
3940
+ const mask = maskType.textMask(vals[0]);
3941
+ let decimals = '';
3942
+ if (decimalsFormat == undefined) {
3943
+ decimals = vals.length > 1 ? ',' + vals[1] : '';
3944
+ }
3945
+ else {
3946
+ decimals = vals.length > 1 ? (vals[1] < 10 ? vals[1].toString() + '0' : vals[1].toString()) : '00';
3947
+ if (decimals.length > decimalsFormat) {
3948
+ decimals = decimals.substring(0, decimalsFormat);
3949
+ }
3950
+ }
3951
+ let conformedValue = conformToMask(numberValue, mask, { guide: false }).conformedValue;
3952
+ let suffix = '';
3953
+ if (conformedValue.indexOf('%') >= 0) {
3954
+ conformedValue = conformedValue.replace('%', '');
3955
+ suffix = '%';
3956
+ }
3957
+ return conformedValue + (decimalsFormat > 0 ? ',' + decimals : '') + suffix;
3958
+ }
3959
+
3960
+ const utilsBr = {
3961
+ isPresent,
3962
+ isArray,
3963
+ isString,
3964
+ isNumber,
3965
+ isNil,
3966
+ processCaretTraps,
3967
+ allNumbersAreSame,
3968
+ getAllDigits,
3969
+ getAllWords,
3970
+ currencyToNumber,
3971
+ modulo11,
3972
+ numberToCurrency,
3973
+ slugify,
3974
+ fillString,
3975
+ randArray,
3976
+ rand,
3977
+ randomNumber,
3978
+ randomLetter,
3979
+ randomLetterOrNumber,
3980
+ getSpecialProperty,
3981
+ MASKS,
3982
+ MASKSIE,
3983
+ PLACAS_RANGE,
3984
+ ESTADOS
3985
+ };
3986
+ const maskBr = maskBr$1;
3987
+
3988
+ const LOCALIZACAO_RUAS = ['Dois', 'Um', 'Principal', 'São José', 'Onze', 'São Paulo', 'Doze', 'Treze',
3989
+ 'Santo Antônio', 'Brasil', 'A', 'São Pedro', 'Quinze', 'São João',
3990
+ 'Quatorze', 'São Francisco', 'Sete de Setembro', 'Dezesseis', 'Quinze de Novembro',
3991
+ 'Tiradentes', 'Dezessete', 'Vinte', 'Bahia', 'Amazonas', 'Dezoito', 'São Sebastião', 'Paraná', 'Bela Vista', 'Santa Luzia', 'São Jorge',
3992
+ 'Castro Alves', 'Duque de Caxias', 'Projetada', 'Rui Barbosa', 'Santa Catarina', 'Minas Gerais', 'Santos Dumont',
3993
+ 'Espírito Santo', 'Vinte e Um', 'Vinte e Dois', 'da Paz', 'Treze de Maio', 'Rio de Janeiro',
3994
+ 'Goiás', 'Ceará', 'Belo Horizonte', 'das Flores', 'Sergipe', 'Vitória', 'José Bonifácio',
3995
+ 'Pernambuco', 'Piauí', 'Vinte e Três', 'Mato Grosso', 'Santa Maria', 'Dom Pedro II',
3996
+ 'Primeiro de Maio', 'Pará', 'Maranhão', 'Alagoas', 'Boa Vista', 'São Luiz', 'Vinte e Quatro', 'Paraíba', 'Santa Rita'];
3997
+ const LOCALIZACAO_LOGRADOUROS = ['Avenida', 'Rua', 'Marginal'];
3998
+ const LOCALIZACAO_COMPLEMENTOS = [`Apartamento`, 'Aeroporto', 'Anexo', `Andar`, `Bloco`, `Conjunto`, 'Cobertura', `Casa`,
3999
+ 'Fazenda', 'Fundos', 'Galeria', `Galpão`, `Lote`, `Loja`, `Portão`, `Quadra`, `Sala`, `Sobreloja`, 'Subsolo', 'Terreo'];
4000
+ const LOCALIZACAO_BAIRROS = ['Centro', 'Bela Vista', 'São José', 'Santo Antônio', 'São Francisco', 'Vila Nova',
4001
+ 'Boa Vista', 'Industrial', 'São Cristóvão', 'Planalto'];
4002
+ const LOCALIZACAO_ESTADOS = [
4003
+ { "nome": "Acre", "uf": "AC" },
4004
+ { "nome": "Alagoas", "uf": "AL" },
4005
+ { "nome": "Amapá", "uf": "AP" },
4006
+ { "nome": "Amazonas", "uf": "AM" },
4007
+ { "nome": "Bahia", "uf": "BA" },
4008
+ { "nome": "Ceará", "uf": "CE" },
4009
+ { "nome": "Distrito Federal", "uf": "DF" },
4010
+ { "nome": "Espírito Santo", "uf": "ES" },
4011
+ { "nome": "Goiás", "uf": "GO" },
4012
+ { "nome": "Maranhão", "uf": "MA" },
4013
+ { "nome": "Mato Grosso", "uf": "MT" },
4014
+ { "nome": "Mato Grosso do Sul", "uf": "MS" },
4015
+ { "nome": "Minas Gerais", "uf": "MG" },
4016
+ { "nome": "Pará", "uf": "PA" },
4017
+ { "nome": "Paraíba", "uf": "PB" },
4018
+ { "nome": "Paraná", "uf": "PR" },
4019
+ { "nome": "Pernambuco", "uf": "PE" },
4020
+ { "nome": "Piauí", "uf": "PI" },
4021
+ { "nome": "Rio de Janeiro", "uf": "RJ" },
4022
+ { "nome": "Rio Grande do Norte", "uf": "RN" },
4023
+ { "nome": "Rio Grande do Sul", "uf": "RS" },
4024
+ { "nome": "Rondônia", "uf": "RO" },
4025
+ { "nome": "Roraima", "uf": "RR" },
4026
+ { "nome": "Santa Catarina", "uf": "SC" },
4027
+ { "nome": "São Paulo", "uf": "SP" },
4028
+ { "nome": "Sergipe", "uf": "SE" },
4029
+ { "nome": "Tocantins", "uf": "TO" }
4030
+ ];
4031
+ const LOCALIZACAO_CIDADES = [
4032
+ ['São Paulo', 'São Paulo'],
4033
+ ['Rio de Janeiro', 'Rio de Janeiro'],
4034
+ ['Brasília', 'Distrito Federal'],
4035
+ ['Salvador', 'Bahia'],
4036
+ ['Fortaleza', 'Ceará'],
4037
+ ['Belo Horizonte', 'Minas Gerais'],
4038
+ ['Manaus', 'Amazonas'],
4039
+ ['Curitiba', 'Paraná'],
4040
+ ['Recife', 'Pernambuco'],
4041
+ ['Goiânia', 'Goiás'],
4042
+ ['Belém', 'Pará'],
4043
+ ['Porto Alegre', 'Rio Grande do Sul'],
4044
+ ['Guarulhos', 'São Paulo'],
4045
+ ['Campinas', 'São Paulo'],
4046
+ ['São Luís', 'Maranhão'],
4047
+ ['São Gonçalo', 'Rio de Janeiro'],
4048
+ ['Maceió', 'Alagoas'],
4049
+ ['Duque de Caxias', 'Rio de Janeiro'],
4050
+ ['Cuiabá', 'Mato Grosso'],
4051
+ ['Campo Grande', 'Mato Grosso do Sul'],
4052
+ ['Natal', 'Rio Grande do Norte'],
4053
+ ['Teresina', 'Piauí'],
4054
+ ['São Bernardo do Campo', 'São Paulo'],
4055
+ ['Nova Iguaçu', 'Rio de Janeiro'],
4056
+ ['João Pessoa', 'Paraíba'],
4057
+ ['São José dos Campos', 'São Paulo'],
4058
+ ['Santo André', 'São Paulo'],
4059
+ ['Ribeirão Preto', 'São Paulo'],
4060
+ ['Jaboatão dos Guararapes', 'Pernambuco'],
4061
+ ['Osasco', 'São Paulo'],
4062
+ ['Uberlândia', 'Minas Gerais'],
4063
+ ['Sorocaba', 'São Paulo'],
4064
+ ['Contagem', 'Minas Gerais'],
4065
+ ['Aracaju', 'Sergipe'],
4066
+ ['Feira de Santana', 'Bahia'],
4067
+ ['Cuiabá', 'Mato Grosso'],
4068
+ ['Joinville', 'Santa Catarina'],
4069
+ ['Aparecida de Goiânia', 'Goiás'],
4070
+ ['Londrina', 'Paraná'],
4071
+ ['Juiz de Fora', 'Minas Gerais'],
4072
+ ['Ananindeua', 'Pará'],
4073
+ ['Porto Velho', 'Rondônia'],
4074
+ ['Serra', 'Espírito Santo'],
4075
+ ['Niterói', 'Rio de Janeiro'],
4076
+ ['Belford Roxo', 'Rio de Janeiro'],
4077
+ ['Caxias do Sul', 'Rio Grande do Sul'],
4078
+ ['Campos dos Goytacazes Campos dos Goytacazes', 'Rio de Janeiro'],
4079
+ ['Macapá', 'Amapá'],
4080
+ ['Florianópolis', 'Santa Catarina'],
4081
+ ['Vila Velha', 'Espírito Santo'],
4082
+ ['Mauá', 'São Paulo'],
4083
+ ['São João de Meriti', 'Rio de Janeiro'],
4084
+ ['São José do Rio Preto', 'São Paulo'],
4085
+ ['Mogi das Cruzes', 'São Paulo'],
4086
+ ['Betim', 'Minas Gerais'],
4087
+ ['Santos', 'São Paulo'],
4088
+ ['Diadema', 'São Paulo'],
4089
+ ['Maringá', 'Paraná'],
4090
+ ['Jundiaí', 'São Paulo'],
4091
+ ['Campina Grande', 'Paraíba'],
4092
+ ['Montes Claros', 'Minas Gerais'],
4093
+ ['Rio Branco', 'Acre'],
4094
+ ['Piracicaba', 'São Paulo'],
4095
+ ['Carapicuíba', 'São Paulo'],
4096
+ ['Boa Vista', 'Roraima'],
4097
+ ['Olinda', 'Pernambuco'],
4098
+ ['Anápolis', 'Goiás'],
4099
+ ['Cariacica', 'Espírito Santo'],
4100
+ ['Bauru', 'São Paulo'],
4101
+ ['Itaquaquecetuba', 'São Paulo'],
4102
+ ['São Vicente', 'São Paulo'],
4103
+ ['Vitória', 'Espírito Santo'],
4104
+ ['Caucaia', 'Ceará'],
4105
+ ['Caruaru', 'Pernambuco'],
4106
+ ['Blumenau', 'Santa Catarina'],
4107
+ ['Franca', 'São Paulo'],
4108
+ ['Ponta Grossa', 'Paraná'],
4109
+ ['Petrolina', 'Pernambuco'],
4110
+ ['Canoas', 'Rio Grande do Sul'],
4111
+ ['Pelotas', 'Rio Grande do Sul'],
4112
+ ['Vitória da Conquista', 'Bahia'],
4113
+ ['Ribeirão das Neves', 'Minas Gerais'],
4114
+ ['Uberaba', 'Minas Gerais'],
4115
+ ['Paulista', 'Pernambuco'],
4116
+ ['Cascavel', 'Paraná'],
4117
+ ['Praia Grande', 'São Paulo'],
4118
+ ['São José dos Pinhais', 'Paraná'],
4119
+ ['Guarujá', 'São Paulo'],
4120
+ ['Taubaté', 'São Paulo'],
4121
+ ['Petrópolis', 'Rio de Janeiro'],
4122
+ ['Limeira', 'São Paulo'],
4123
+ ['Santarém', 'Pará'],
4124
+ ['Camaçari', 'Bahia'],
4125
+ ['Palmas', 'Tocantins'],
4126
+ ['Suzano', 'São Paulo'],
4127
+ ['Mossoró', 'Rio Grande do Norte'],
4128
+ ['Taboão da Serra', 'São Paulo'],
4129
+ ['Várzea Grande', 'Mato Grosso'],
4130
+ ['Sumaré', 'São Paulo'],
4131
+ ['Santa Maria', 'Rio Grande do Sul'],
4132
+ ['Gravataí', 'Rio Grande do Sul'],
4133
+ ['Governador Valadares', 'Minas Gerais'],
4134
+ ['Marabá', 'Pará'],
4135
+ ['Juazeiro do Norte', 'Ceará'],
4136
+ ['Barueri', 'São Paulo'],
4137
+ ['Embu das Artes', 'São Paulo'],
4138
+ ['Volta Redonda', 'Rio de Janeiro'],
4139
+ ['Ipatinga', 'Minas Gerais'],
4140
+ ['Parnamirim', 'Rio Grande do Norte'],
4141
+ ['Imperatriz', 'Maranhão'],
4142
+ ['Foz do Iguaçu', 'Paraná'],
4143
+ ['Macaé', 'Rio de Janeiro'],
4144
+ ['Viamão', 'Rio Grande do Sul'],
4145
+ ['São Carlos', 'São Paulo'],
4146
+ ['Indaiatuba', 'São Paulo'],
4147
+ ['Cotia', 'São Paulo'],
4148
+ ['Novo Hamburgo', 'Rio Grande do Sul'],
4149
+ ['São José', 'Santa Catarina'],
4150
+ ['Magé', 'Rio de Janeiro'],
4151
+ ['Colombo', 'Paraná'],
4152
+ ['Itaboraí', 'Rio de Janeiro'],
4153
+ ['Sete Lagoas', 'Minas Gerais'],
4154
+ ['Americana', 'São Paulo'],
4155
+ ['Marília', 'São Paulo'],
4156
+ ['Divinópolis', 'Minas Gerais'],
4157
+ ['Itapevi', 'São Paulo'],
4158
+ ['São Leopoldo', 'Rio Grande do Sul'],
4159
+ ['Araraquara', 'São Paulo'],
4160
+ ['Rio Verde', 'Goiás'],
4161
+ ['Jacareí', 'São Paulo'],
4162
+ ['Rondonópolis', 'Mato Grosso'],
4163
+ ['Arapiraca', 'Alagoas'],
4164
+ ['Hortolândia', 'São Paulo'],
4165
+ ['Presidente Prudente', 'São Paulo'],
4166
+ ['Maracanaú', 'Ceará'],
4167
+ ['Dourados', 'Mato Grosso do Sul'],
4168
+ ['Chapecó Chapecó', 'Santa Catarina'],
4169
+ ['Cabo Frio', 'Rio de Janeiro'],
4170
+ ['Itajaí', 'Santa Catarina'],
4171
+ ['Santa Luzia', 'Minas Gerais'],
4172
+ ['Juazeiro', 'Bahia'],
4173
+ ['Criciúma', 'Santa Catarina'],
4174
+ ['Itabuna', 'Bahia'],
4175
+ ['Águas Lindas de Goiás', 'Goiás'],
4176
+ ['Rio Grande', 'Rio Grande do Sul'],
4177
+ ['Alvorada', 'Rio Grande do Sul'],
4178
+ ['Cachoeiro de Itapemirim', 'Espírito Santo'],
4179
+ ['Sobral', 'Ceará'],
4180
+ ['Luziânia', 'Goiás'],
4181
+ ['Parauapebas', 'Pará'],
4182
+ ['Cabo de Santo Agostinho', 'Pernambuco'],
4183
+ ['Rio Claro', 'São Paulo'],
4184
+ ['Angra dos Reis', 'Rio de Janeiro'],
4185
+ ['Passo Fundo', 'Rio Grande do Sul'],
4186
+ ['Castanhal', 'Pará'],
4187
+ ['Lauro de Freitas', 'Bahia'],
4188
+ ['Araçatuba', 'São Paulo'],
4189
+ ['Ferraz de Vasconcelos', 'São Paulo'],
4190
+ ['Santa Bárbara do Oeste', 'São Paulo'],
4191
+ ['Nova Friburgo', 'Rio de Janeiro'],
4192
+ ['Barra Mansa', 'Rio de Janeiro'],
4193
+ ['Nossa Senhora do Socorro', 'Sergipe'],
4194
+ ['Teresópolis', 'Rio de Janeiro'],
4195
+ ['Guarapuava', 'Paraná'],
4196
+ ['Araguaína', 'Tocantins'],
4197
+ ['Ibirité', 'Minas Gerais'],
4198
+ ['Jaraguá do Sul', 'Santa Catarina'],
4199
+ ['São José de Ribamar', 'Maranhão'],
4200
+ ['Mesquita', 'Rio de Janeiro'],
4201
+ ['Francisco Morato', 'São Paulo'],
4202
+ ['Itapecerica da Serra', 'São Paulo'],
4203
+ ['Itu', 'São Paulo'],
4204
+ ['Linhares', 'Espírito Santo'],
4205
+ ['Palhoça', 'Santa Catarina'],
4206
+ ['Timon', 'Maranhão'],
4207
+ ['Bragança Paulista', 'São Paulo'],
4208
+ ['Valparaíso de Goiás', 'Goiás'],
4209
+ ['Pindamonhangaba', 'São Paulo'],
4210
+ ['Poços de Caldas', 'Minas Gerais'],
4211
+ ['Caxias', 'Maranhão'],
4212
+ ['Itapetininga', 'São Paulo'],
4213
+ ['Nilópolis', 'Rio de Janeiro'],
4214
+ ['Ilhéus', 'Bahia'],
4215
+ ['Maricá', 'Rio de Janeiro'],
4216
+ ['São Caetano do Sul', 'São Paulo'],
4217
+ ['Teixeira de Freitas', 'Bahia'],
4218
+ ['Camaragibe', 'Pernambuco'],
4219
+ ['Abaetetuba', 'Pará'],
4220
+ ['Lages', 'Santa Catarina'],
4221
+ ['Jequié', 'Bahia'],
4222
+ ['Barreiras', 'Bahia'],
4223
+ ['Paranaguá', 'Paraná'],
4224
+ ['Franco da Rocha', 'São Paulo'],
4225
+ ['Parnaíba', 'Piauí'],
4226
+ ['Patos de Minas', 'Minas Gerais'],
4227
+ ['Mogi Guaçu', 'São Paulo'],
4228
+ ['Alagoinhas', 'Bahia'],
4229
+ ['Pouso Alegre', 'Minas Gerais'],
4230
+ ['Rio das Ostras', 'Rio de Janeiro'],
4231
+ ['Queimados', 'Rio de Janeiro'],
4232
+ ['Jaú', 'São Paulo'],
4233
+ ['Porto Seguro', 'Bahia'],
4234
+ ['Botucatu', 'São Paulo'],
4235
+ ['Araucária', 'Paraná'],
4236
+ ['Sinop', 'Mato Grosso'],
4237
+ ['Atibaia', 'São Paulo'],
4238
+ ['Balneário Camboriú', 'Santa Catarina'],
4239
+ ['Sapucaia do Sul', 'Rio Grande do Sul'],
4240
+ ['Toledo', 'Paraná'],
4241
+ ['Teófilo Otoni', 'Minas Gerais'],
4242
+ ['Garanhuns', 'Pernambuco'],
4243
+ ['Santana de Parnaíba', 'São Paulo'],
4244
+ ['Vitória de Santo Antão', 'Pernambuco'],
4245
+ ['Cametá', 'Pará'],
4246
+ ['Barbacena', 'Minas Gerais'],
4247
+ ['Santa Rita', 'Paraíba'],
4248
+ ['Sabará', 'Minas Gerais'],
4249
+ ['Varginha', 'Minas Gerais'],
4250
+ ['Apucarana', 'Paraná'],
4251
+ ['Brusque', 'Santa Catarina'],
4252
+ ['Simões Filho', 'Bahia'],
4253
+ ['Araras', 'São Paulo'],
4254
+ ['Itaguaí', 'Rio de Janeiro'],
4255
+ ['Araruama', 'Rio de Janeiro'],
4256
+ ['Pinhais', 'Paraná'],
4257
+ ['Crato', 'Ceará'],
4258
+ ['Campo Largo', 'Paraná'],
4259
+ ['Marituba', 'Pará'],
4260
+ ['Resende', 'Rio de Janeiro'],
4261
+ ['Cubatão', 'São Paulo'],
4262
+ ['São Mateus', 'Espírito Santo'],
4263
+ ['Santa Cruz do Sul', 'Rio Grande do Sul'],
4264
+ ['Cachoeirinha', 'Rio Grande do Sul'],
4265
+ ['Itapipoca', 'Ceará'],
4266
+ ['Valinhos', 'São Paulo'],
4267
+ ['Maranguape', 'Ceará'],
4268
+ ['Ji-Paraná', 'Rondônia'],
4269
+ ['Conselheiro Lafaiete', 'Minas Gerais'],
4270
+ ['São Félix do Xingu', 'Pará'],
4271
+ ['Bragança', 'Pará'],
4272
+ ['Vespasiano', 'Minas Gerais'],
4273
+ ['Trindade', 'Goiás'],
4274
+ ['Uruguaiana', 'Rio Grande do Sul'],
4275
+ ['Sertãozinho', 'São Paulo'],
4276
+ ['Jandira', 'São Paulo'],
4277
+ ['Guarapari', 'Espírito Santo'],
4278
+ ['Barcarena', 'Pará'],
4279
+ ['Birigui', 'São Paulo'],
4280
+ ['Ribeirão Pires', 'São Paulo'],
4281
+ ['Arapongas', 'Paraná'],
4282
+ ['Codó', 'Maranhão'],
4283
+ ['Colatina', 'Espírito Santo'],
4284
+ ['Votorantim', 'São Paulo'],
4285
+ ['Paço do Lumiar', 'Maranhão'],
4286
+ ['Barretos', 'São Paulo'],
4287
+ ['Catanduva', 'São Paulo'],
4288
+ ['Várzea Paulista', 'São Paulo'],
4289
+ ['Guaratinguetá', 'São Paulo'],
4290
+ ['Tatuí', 'São Paulo'],
4291
+ ['Formosa', 'Goiás'],
4292
+ ['Caraguatatuba', 'São Paulo'],
4293
+ ['Três Lagoas', 'Mato Grosso do Sul'],
4294
+ ['Santana', 'Amapá'],
4295
+ ['Bagé', 'Rio Grande do Sul'],
4296
+ ['Itatiba', 'São Paulo'],
4297
+ ['Bento Gonçalves', 'Rio Grande do Sul'],
4298
+ ['Itabira', 'Minas Gerais'],
4299
+ ['Salto', 'São Paulo'],
4300
+ ['Almirante Tamandaré', 'Paraná'],
4301
+ ['Paulo Afonso', 'Bahia'],
4302
+ ['Poá', 'São Paulo'],
4303
+ ['Araguari', 'Minas Gerais'],
4304
+ ['Igarassu', 'Pernambuco'],
4305
+ ['Novo Gama', 'Goiás'],
4306
+ ['Ubá', 'Minas Gerais'],
4307
+ ['Senador Canedo', 'Goiás'],
4308
+ ['Passos', 'Minas Gerais'],
4309
+ ['Altamira', 'Pará'],
4310
+ ['Parintins', 'Amazonas'],
4311
+ ['Tucuruí', 'Pará'],
4312
+ ['Ourinhos', 'São Paulo'],
4313
+ ['Eunápolis', 'Bahia'],
4314
+ ['São Lourenço da Mata', 'Pernambuco'],
4315
+ ['Paragominas', 'Pará'],
4316
+ ['Piraquara', 'Paraná'],
4317
+ ['Açailândia', 'Maranhão'],
4318
+ ['Umuarama', 'Paraná'],
4319
+ ['Corumbá', 'Mato Grosso do Sul'],
4320
+ ['Coronel Fabriciano', 'Minas Gerais'],
4321
+ ['Paulínia', 'São Paulo'],
4322
+ ['Catalão', 'Goiás'],
4323
+ ['Muriaé', 'Minas Gerais'],
4324
+ ['Santa Cruz do Capibaribe', 'Pernambuco'],
4325
+ ['Ariquemes', 'Rondônia'],
4326
+ ['Patos', 'Paraíba'],
4327
+ ['Cambé', 'Paraná'],
4328
+ ['Tailândia', 'Pará'],
4329
+ ['Araxá', 'Minas Gerais'],
4330
+ ['Erechim', 'Rio Grande do Sul'],
4331
+ ['Tubarão', 'Santa Catarina'],
4332
+ ['Bacabal', 'Maranhão'],
4333
+ ['Japeri', 'Rio de Janeiro'],
4334
+ ['Itumbiara', 'Goiás'],
4335
+ ['Ituiutaba', 'Minas Gerais'],
4336
+ ['São Pedro da Aldeia', 'Rio de Janeiro'],
4337
+ ['Lagarto', 'Sergipe'],
4338
+ ['Assis', 'São Paulo'],
4339
+ ['Lavras', 'Minas Gerais'],
4340
+ ['Tangará da Serra', 'Mato Grosso'],
4341
+ ['Leme', 'São Paulo'],
4342
+ ['Itaperuna', 'Rio de Janeiro'],
4343
+ ['Breves', 'Pará'],
4344
+ ['Nova Serrana', 'Minas Gerais'],
4345
+ ['Iguatu', 'Ceará'],
4346
+ ['São Gonçalo do Amarante', 'Rio Grande do Norte'],
4347
+ ['Itanhaém', 'São Paulo'],
4348
+ ['Santo Antônio de Jesus', 'Bahia'],
4349
+ ['Caieiras', 'São Paulo'],
4350
+ ['Itacoatiara', 'Amazonas'],
4351
+ ['Itaituba', 'Pará'],
4352
+ ['Aracruz', 'Espírito Santo'],
4353
+ ['Jataí', 'Goiás'],
4354
+ ['Barra do Piraí', 'Rio de Janeiro'],
4355
+ ['Fazenda Rio Grande', 'Paraná'],
4356
+ ['Mairiporã', 'São Paulo']
4357
+ ];
4358
+
4359
+ const AIH_ESTADOS = {
4360
+ 'AC': '12', 'AL': '27', 'AP': '16', 'AM': '13', 'BA': '29', 'CE': '23', 'DF': '53',
4361
+ 'ES': '32', 'GO': '52', 'MA': '21', 'MT': '51', 'MS': '50', 'MG': '31', 'PA': '15',
4362
+ 'PB': '25', 'PR': '41', 'PE': '26', 'PI': '22', 'RJ': '33', 'RN': '24', 'RS': '43',
4363
+ 'RO': '11', 'RR': '14', 'SC': '42', 'SP': '35', 'SE': '28', 'TO': '17'
4364
+ };
4365
+ const AIH_TIPOS = {
4366
+ '1': 'AIH Normal',
4367
+ '2': 'APACs',
4368
+ '3': 'Códigos de procedimentos específicos da CNRAC',
4369
+ '4': 'APACs da CNRAC',
4370
+ '5': 'Procedimentos de longa permanência na AIH'
4371
+ };
4372
+ const CID_NAME = {
4373
+ 'A00-B99': 'Algumas doenças infecciosas e parasitárias',
4374
+ 'C00-D48': 'Neoplasmas (tumores)',
4375
+ 'D50-D89': 'Doenças do sangue e dos órgãos hematopoéticos e alguns transtornos imunitários',
4376
+ 'E00-E90': 'Doenças endócrinas, nutricionais e metabólicas',
4377
+ 'F00-F99': 'Transtornos mentais e comportamentais',
4378
+ 'G00-G99': 'Doenças do sistema nervoso',
4379
+ 'H00-H59': 'Doenças do olho e anexos',
4380
+ 'H60-H95': 'Doenças do ouvido e da apófise mastoide',
4381
+ 'I00-I99': 'Doenças do aparelho circulatório',
4382
+ 'J00-J99': 'Doenças do aparelho respiratório',
4383
+ 'K00-K93': 'Doenças do aparelho digestivo',
4384
+ 'L00-L99': 'Doenças da pele e do tecido subcutâneo',
4385
+ 'M00-M99': 'Doenças do sistema osteomuscular e do tecido conjuntivo',
4386
+ 'N00-N99': 'Doenças do aparelho geniturinário',
4387
+ 'O00-O99': 'Gravidez, parto e puerpério',
4388
+ 'P00-P96': 'Algumas afecções originadas no período perinatal',
4389
+ 'Q00-Q99': 'Malformações congênitas, deformidades e anomalias cromossômicas',
4390
+ 'R00-R99': 'Sintomas, sinais e achados anormais de exames clínicos e de laboratório, não classificados em outra parte',
4391
+ 'S00-T98': 'Lesões, envenenamentos e algumas outras conseqüências de causas externas',
4392
+ 'V01-Y98': 'Causas externas de morbidade e de mortalidade',
4393
+ 'Z00-Z99': 'Fatores que influenciam o estado de saúde e o contato com os serviços de saúde',
4394
+ 'U00-U99': 'Códigos para propósitos especiais',
4395
+ };
4396
+ const CID_REGEX = {
4397
+ 'A00-B99': /[A|B][0-9][0-9]/g,
4398
+ 'C00-D48': /[C0-90-9|[D0-90-9]/g,
4399
+ 'D50-D89': /[A|B][0-9][0-9]/g,
4400
+ 'E00-E90': /[A|B][0-9][0-9]/g,
4401
+ 'F00-F99': /[A|B][0-9][0-9]/g,
4402
+ 'G00-G99': /[A|B][0-9][0-9]/g,
4403
+ 'H00-H59': /[A|B][0-9][0-9]/g,
4404
+ 'H60-H95': /[A|B][0-9][0-9]/g,
4405
+ 'I00-I99': /[A|B][0-9][0-9]/g,
4406
+ 'J00-J99': /[A|B][0-9][0-9]/g,
4407
+ 'K00-K93': /[A|B][0-9][0-9]/g,
4408
+ 'L00-L99': /[A|B][0-9][0-9]/g,
4409
+ 'M00-M99': /[A|B][0-9][0-9]/g,
4410
+ 'N00-N99': /[A|B][0-9][0-9]/g,
4411
+ 'O00-O99': /[A|B][0-9][0-9]/g,
4412
+ 'P00-P96': /[A|B][0-9][0-9]/g,
4413
+ 'Q00-Q99': /[A|B][0-9][0-9]/g,
4414
+ 'R00-R99': /[A|B][0-9][0-9]/g,
4415
+ 'S00-T98': /[A|B][0-9][0-9]/g,
4416
+ 'V01-Y98': /[A|B][0-9][0-9]/g,
4417
+ 'Z00-Z99': /[A|B][0-9][0-9]/g,
4418
+ 'U00-U99': /[A|B][0-9][0-9]/g,
4419
+ };
4420
+
4421
+ class CPFPipe {
4422
+ transform(cpfValue) {
4423
+ return maskBr['cpf'](cpfValue);
4424
+ }
4425
+ }
4426
+ CPFPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CPFPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
4427
+ CPFPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CPFPipe, name: "cpf" });
4428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CPFPipe, decorators: [{
4429
+ type: Pipe,
4430
+ args: [{
4431
+ name: "cpf",
4432
+ }]
4433
+ }] });
735
4434
 
736
4435
  class MapaTableModule {
737
4436
  }
@@ -749,9 +4448,10 @@ MapaTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
749
4448
  MatSortModule,
750
4449
  PaginatorLegacyDirective,
751
4450
  FormsModule,
752
- ReactiveFormsModule], exports: [MapaTableComponent] });
4451
+ ReactiveFormsModule,
4452
+ SafeHtmlPipe], exports: [MapaTableComponent] });
753
4453
  MapaTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaTableModule, providers: [
754
- { provide: MatPaginatorIntl, useValue: CustomPaginator() },
4454
+ { provide: MatPaginatorIntl, useFactory: customPaginatorFactory, deps: [MapaI18nService] },
755
4455
  CPFPipe,
756
4456
  ], imports: [CommonModule,
757
4457
  RouterModule,
@@ -785,10 +4485,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
785
4485
  PaginatorLegacyDirective,
786
4486
  FormsModule,
787
4487
  ReactiveFormsModule,
4488
+ SafeHtmlPipe,
788
4489
  ],
789
4490
  exports: [MapaTableComponent],
790
4491
  providers: [
791
- { provide: MatPaginatorIntl, useValue: CustomPaginator() },
4492
+ { provide: MatPaginatorIntl, useFactory: customPaginatorFactory, deps: [MapaI18nService] },
792
4493
  CPFPipe,
793
4494
  ],
794
4495
  }]
@@ -806,5 +4507,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
806
4507
  * Generated bundle index. Do not edit.
807
4508
  */
808
4509
 
809
- export { CustomPaginator, MapaTableComponent, MapaTableModule, PaginatorLegacyDirective };
4510
+ export { MapaTableComponent, MapaTableModule, PaginatorLegacyDirective, customPaginatorFactory };
810
4511
  //# sourceMappingURL=mapa-library-ui-src-lib-components-table.mjs.map