@seniorsistemas/angular-components 19.9.15 → 19.10.0-develop-ef29acb7

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 (505) hide show
  1. package/README.md +84 -2
  2. package/accordion/README.md +5 -4
  3. package/accordion/lib/accordion/accordion.module.d.ts +7 -0
  4. package/alert/lib/alert/alert.module.d.ts +7 -0
  5. package/badge/README.md +5 -4
  6. package/badge/lib/badge/badge.module.d.ts +10 -0
  7. package/bignumber-input/README.md +5 -4
  8. package/bignumber-input/lib/bignumber-input/bignumber-input.directive.d.ts +16 -39
  9. package/bignumber-input/lib/bignumber-input/bignumber-input.module.d.ts +7 -0
  10. package/breadcrumb/README.md +5 -4
  11. package/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.d.ts +5 -1
  12. package/button/lib/button/button.module.d.ts +7 -0
  13. package/calendar-mask/README.md +5 -4
  14. package/calendar-mask/lib/calendar-mask/calendar-mask.module.d.ts +7 -0
  15. package/card/README.md +6 -5
  16. package/card/lib/card/card.module.d.ts +7 -0
  17. package/chat/README.md +11 -8
  18. package/chat/lib/chat/chat.module.d.ts +7 -0
  19. package/checkbox-list/README.md +5 -4
  20. package/checkbox-list/lib/checkbox-list/checkbox-list.module.d.ts +7 -0
  21. package/chips/README.md +5 -4
  22. package/chips/lib/chips/chips.module.d.ts +7 -0
  23. package/code-editor/README.md +5 -4
  24. package/code-editor/lib/code-editor/code-editor.module.d.ts +7 -0
  25. package/collapse-link/README.md +5 -4
  26. package/collapse-link/lib/collapse-link/collapse-link.module.d.ts +7 -0
  27. package/common/lib/angular-components.module.d.ts +9 -0
  28. package/common/lib/provide-angular-components.d.ts +19 -0
  29. package/common/lib/svg-factory/svg-factory.module.d.ts +7 -0
  30. package/common/public-api.d.ts +1 -0
  31. package/content-generator/README.md +2 -2
  32. package/content-generator/lib/content-generator/content-generator.module.d.ts +7 -0
  33. package/control-errors/README.md +2 -2
  34. package/control-errors/lib/control-errors/control-errors.module.d.ts +7 -0
  35. package/country-phone-picker/README.md +2 -2
  36. package/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.d.ts +7 -0
  37. package/currency/README.md +1 -1
  38. package/custom-fields/README.md +14 -3
  39. package/custom-fields/lib/custom-fields/custom-fields.module.d.ts +7 -0
  40. package/custom-fields/lib/custom-fields/models/custom-field-value-parser.d.ts +21 -0
  41. package/custom-fields/lib/custom-fields/models/index.d.ts +1 -0
  42. package/dialog/README.md +1 -1
  43. package/drawer/README.md +8 -4
  44. package/drawer/lib/drawer/drawer.module.d.ts +10 -0
  45. package/dynamic-form/README.md +18 -2
  46. package/dynamic-form/dynamic-form/dynamic-form.module.d.ts +7 -0
  47. package/dynamic-form/dynamic-form/form-field/addon-config.d.ts +10 -1
  48. package/dynamic-form/dynamic-form/form-field/configurations/fields/currency-field.d.ts +15 -15
  49. package/dynamic-form/dynamic-form/form-field/configurations/fields/number-field.d.ts +8 -6
  50. package/dynamic-form/dynamic-form/form-field/fields/bignumber/bignumber-field.component.d.ts +5 -2
  51. package/dynamic-form/public-api.d.ts +0 -1
  52. package/editable-overlay/README.md +2 -2
  53. package/editable-overlay/lib/editable-overlay/editable-overlay.module.d.ts +7 -0
  54. package/empty-state/README.md +5 -2
  55. package/empty-state/lib/empty-state/empty-state.module.d.ts +7 -0
  56. package/esm2022/accordion/lib/accordion/accordion.module.mjs +8 -1
  57. package/esm2022/alert/lib/alert/alert.module.mjs +8 -1
  58. package/esm2022/badge/lib/badge/badge.module.mjs +11 -1
  59. package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.directive.mjs +19 -127
  60. package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.module.mjs +8 -1
  61. package/esm2022/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.mjs +6 -2
  62. package/esm2022/button/lib/button/button.module.mjs +8 -1
  63. package/esm2022/calendar-mask/lib/calendar-mask/calendar-mask.module.mjs +8 -1
  64. package/esm2022/card/lib/card/card.module.mjs +8 -1
  65. package/esm2022/chat/lib/chat/chat.module.mjs +8 -1
  66. package/esm2022/checkbox-list/lib/checkbox-list/checkbox-list.module.mjs +8 -1
  67. package/esm2022/chips/lib/chips/chips.module.mjs +8 -1
  68. package/esm2022/code-editor/lib/code-editor/code-editor.component.mjs +10 -1
  69. package/esm2022/code-editor/lib/code-editor/code-editor.module.mjs +9 -15
  70. package/esm2022/collapse-link/lib/collapse-link/collapse-link.module.mjs +8 -1
  71. package/esm2022/common/lib/angular-components.module.mjs +10 -1
  72. package/esm2022/common/lib/provide-angular-components.mjs +22 -0
  73. package/esm2022/common/lib/svg-factory/svg-factory.module.mjs +8 -1
  74. package/esm2022/common/public-api.mjs +2 -1
  75. package/esm2022/content-generator/lib/content-generator/content-generator.module.mjs +8 -1
  76. package/esm2022/control-errors/lib/control-errors/control-errors.module.mjs +8 -1
  77. package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.mjs +8 -1
  78. package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.service.mjs +4 -3
  79. package/esm2022/custom-fields/lib/custom-fields/custom-fields.component.mjs +17 -13
  80. package/esm2022/custom-fields/lib/custom-fields/custom-fields.module.mjs +8 -1
  81. package/esm2022/custom-fields/lib/custom-fields/custom-fields.service.mjs +4 -3
  82. package/esm2022/custom-fields/lib/custom-fields/models/custom-field-type.mjs +4 -2
  83. package/esm2022/custom-fields/lib/custom-fields/models/custom-field-value-parser.mjs +46 -0
  84. package/esm2022/custom-fields/lib/custom-fields/models/index.mjs +2 -1
  85. package/esm2022/drawer/lib/drawer/drawer.module.mjs +11 -1
  86. package/esm2022/dynamic-form/dynamic-form/dynamic-form.module.mjs +8 -1
  87. package/esm2022/dynamic-form/dynamic-form/form-field/addon-config.mjs +6 -2
  88. package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/currency-field.mjs +1 -1
  89. package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/number-field.mjs +1 -1
  90. package/esm2022/dynamic-form/dynamic-form/form-field/fields/bignumber/bignumber-field.component.mjs +33 -10
  91. package/esm2022/dynamic-form/public-api.mjs +2 -7
  92. package/esm2022/editable-overlay/lib/editable-overlay/editable-overlay.module.mjs +8 -1
  93. package/esm2022/empty-state/lib/empty-state/empty-state.module.mjs +8 -1
  94. package/esm2022/fieldset/lib/fieldset/fieldset.module.mjs +8 -1
  95. package/esm2022/file-picker/lib/file-picker/file-picker.module.mjs +8 -1
  96. package/esm2022/file-picker/lib/file-picker/file-picker.service.mjs +4 -3
  97. package/esm2022/gantt/lib/gantt/gantt.module.mjs +8 -1
  98. package/esm2022/global-search/lib/global-search/global-search.module.mjs +19 -1
  99. package/esm2022/grid-menu/lib/grid-menu/grid-menu.module.mjs +8 -1
  100. package/esm2022/help-popover/lib/help-popover/help-popover.module.mjs +8 -1
  101. package/esm2022/image-cropper/lib/image-cropper/image-cropper.module.mjs +12 -1
  102. package/esm2022/image-cropper/lib/image-cropper/image-cropper.service.mjs +4 -3
  103. package/esm2022/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.mjs +8 -1
  104. package/esm2022/info-sign/lib/info-sign/info-sign.module.mjs +8 -1
  105. package/esm2022/inline-edit/lib/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.mjs +5 -5
  106. package/esm2022/inline-edit/lib/inline-edit/inline-edit.module.mjs +8 -1
  107. package/esm2022/input-group/lib/input-group/input-group.module.mjs +8 -1
  108. package/esm2022/input-mask/lib/input-mask/input-mask.module.mjs +8 -1
  109. package/esm2022/input-text/lib/input-text/input-text.module.mjs +8 -1
  110. package/esm2022/insights/lib/insights/insights.module.mjs +11 -1
  111. package/esm2022/kanban/lib/kanban/kanban-event.service.mjs +4 -3
  112. package/esm2022/kanban/lib/kanban/kanban.module.mjs +11 -1
  113. package/esm2022/label-value/lib/label-value/label-value.module.mjs +8 -1
  114. package/esm2022/loading-state/lib/loading-state/loading-state.module.mjs +8 -1
  115. package/esm2022/locale/lib/locale/locale.module.mjs +14 -1
  116. package/esm2022/locale/lib/locale/locale.service.mjs +10 -32
  117. package/esm2022/locale/lib/locale/options/index.mjs +1 -13
  118. package/esm2022/locale/lib/locale/options/locale-presets.mjs +199 -0
  119. package/esm2022/locale/lib/locale/pipes/localized-bignumber-impure.pipe.mjs +1 -1
  120. package/esm2022/locale/lib/locale/pipes/localized-bignumber.pipe.mjs +10 -2
  121. package/esm2022/locale/lib/locale/provide-locale.mjs +42 -0
  122. package/esm2022/locale/public-api.mjs +3 -1
  123. package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.directive.mjs +5 -1
  124. package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.module.mjs +8 -1
  125. package/esm2022/mask/lib/mask/mask-formatter.module.mjs +8 -1
  126. package/esm2022/mouse-events/lib/mouse-events/mouse-events.module.mjs +8 -1
  127. package/esm2022/navigation-button/lib/navigation-button/navigation-button.module.mjs +8 -1
  128. package/esm2022/number-input/lib/number-input/number-input.directive.mjs +2 -2
  129. package/esm2022/number-input/lib/number-input/number-input.module.mjs +9 -2
  130. package/esm2022/numeric/lib/numeric.module.mjs +8 -1
  131. package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.directive.mjs +178 -15
  132. package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.module.mjs +8 -1
  133. package/esm2022/object-card/lib/object-card/object-card.module.mjs +12 -1
  134. package/esm2022/panel/lib/panel/panel.module.mjs +11 -1
  135. package/esm2022/password-strength/lib/password-strength/password-strength.module.mjs +8 -1
  136. package/esm2022/picklist/lib/picklist/picklist.module.mjs +8 -1
  137. package/esm2022/pin-code-field/lib/pin-code-field.module.mjs +8 -1
  138. package/esm2022/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.mjs +8 -1
  139. package/esm2022/progressbar/lib/progressbar/progressbar.module.mjs +8 -1
  140. package/esm2022/rating-scale/lib/rating-scale/rating-scale.module.mjs +8 -1
  141. package/esm2022/select/lib/select/select.component.mjs +16 -3
  142. package/esm2022/select-button/lib/select-button/select-button.module.mjs +8 -1
  143. package/esm2022/shared/lib/shared/border-button/border-button.module.mjs +8 -1
  144. package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.mjs +8 -1
  145. package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.service.mjs +4 -3
  146. package/esm2022/slider/lib/slider/slider.module.mjs +8 -1
  147. package/esm2022/speech-recognition/lib/speech-recognition/speech-recognition.module.mjs +8 -1
  148. package/esm2022/split-button/lib/split-button/split-button.module.mjs +8 -1
  149. package/esm2022/stats-card/lib/stats-card/stats-card.module.mjs +8 -1
  150. package/esm2022/stepper/lib/stepper/stepper.module.mjs +8 -1
  151. package/esm2022/structure/lib/structure/structure.module.mjs +8 -1
  152. package/esm2022/switch/lib/switch/switch.module.mjs +8 -1
  153. package/esm2022/table/lib/table/table.module.mjs +9 -1
  154. package/esm2022/table-header/lib/table-header/table-header-checkox.module.mjs +8 -1
  155. package/esm2022/template/lib/template/template.module.mjs +8 -1
  156. package/esm2022/text-area/lib/text-area.module.mjs +8 -1
  157. package/esm2022/thumbnail/lib/thumbnail/thumbnail.module.mjs +8 -1
  158. package/esm2022/thumbnails/lib/thumbnails/thumbnails.module.mjs +8 -1
  159. package/esm2022/tiered-menu/lib/tiered-menu/tiered-menu.module.mjs +8 -1
  160. package/esm2022/tile/lib/tile/tile.module.mjs +11 -1
  161. package/esm2022/timeline/lib/timeline/timeline.module.mjs +8 -1
  162. package/esm2022/toast/lib/toast/toast.module.mjs +8 -1
  163. package/esm2022/token-list/lib/token-list/token-list.module.mjs +8 -1
  164. package/esm2022/tooltip/lib/tooltip/tooltip.module.mjs +8 -1
  165. package/esm2022/topbar/lib/topbar/topbar.module.mjs +11 -1
  166. package/esm2022/tree/lib/tree/tree.module.mjs +8 -1
  167. package/esm2022/workspace-switch/lib/workspace-switch/workspace-switch.module.mjs +8 -1
  168. package/fesm2022/seniorsistemas-angular-components-accordion.mjs +7 -0
  169. package/fesm2022/seniorsistemas-angular-components-accordion.mjs.map +1 -1
  170. package/fesm2022/seniorsistemas-angular-components-alert.mjs +7 -0
  171. package/fesm2022/seniorsistemas-angular-components-alert.mjs.map +1 -1
  172. package/fesm2022/seniorsistemas-angular-components-badge.mjs +10 -0
  173. package/fesm2022/seniorsistemas-angular-components-badge.mjs.map +1 -1
  174. package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs +25 -126
  175. package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs.map +1 -1
  176. package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs +5 -1
  177. package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs.map +1 -1
  178. package/fesm2022/seniorsistemas-angular-components-button.mjs +7 -0
  179. package/fesm2022/seniorsistemas-angular-components-button.mjs.map +1 -1
  180. package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs +7 -0
  181. package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs.map +1 -1
  182. package/fesm2022/seniorsistemas-angular-components-card.mjs +7 -0
  183. package/fesm2022/seniorsistemas-angular-components-card.mjs.map +1 -1
  184. package/fesm2022/seniorsistemas-angular-components-chat.mjs +7 -0
  185. package/fesm2022/seniorsistemas-angular-components-chat.mjs.map +1 -1
  186. package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs +7 -0
  187. package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs.map +1 -1
  188. package/fesm2022/seniorsistemas-angular-components-chips.mjs +7 -0
  189. package/fesm2022/seniorsistemas-angular-components-chips.mjs.map +1 -1
  190. package/fesm2022/seniorsistemas-angular-components-code-editor.mjs +164 -160
  191. package/fesm2022/seniorsistemas-angular-components-code-editor.mjs.map +1 -1
  192. package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs +7 -0
  193. package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs.map +1 -1
  194. package/fesm2022/seniorsistemas-angular-components-common.mjs +38 -2
  195. package/fesm2022/seniorsistemas-angular-components-common.mjs.map +1 -1
  196. package/fesm2022/seniorsistemas-angular-components-content-generator.mjs +7 -0
  197. package/fesm2022/seniorsistemas-angular-components-content-generator.mjs.map +1 -1
  198. package/fesm2022/seniorsistemas-angular-components-control-errors.mjs +7 -0
  199. package/fesm2022/seniorsistemas-angular-components-control-errors.mjs.map +1 -1
  200. package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs +10 -2
  201. package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs.map +1 -1
  202. package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs +75 -15
  203. package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs.map +1 -1
  204. package/fesm2022/seniorsistemas-angular-components-drawer.mjs +10 -0
  205. package/fesm2022/seniorsistemas-angular-components-drawer.mjs.map +1 -1
  206. package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +52 -208
  207. package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
  208. package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs +7 -0
  209. package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs.map +1 -1
  210. package/fesm2022/seniorsistemas-angular-components-empty-state.mjs +7 -0
  211. package/fesm2022/seniorsistemas-angular-components-empty-state.mjs.map +1 -1
  212. package/fesm2022/seniorsistemas-angular-components-fieldset.mjs +7 -0
  213. package/fesm2022/seniorsistemas-angular-components-fieldset.mjs.map +1 -1
  214. package/fesm2022/seniorsistemas-angular-components-file-picker.mjs +10 -2
  215. package/fesm2022/seniorsistemas-angular-components-file-picker.mjs.map +1 -1
  216. package/fesm2022/seniorsistemas-angular-components-gantt.mjs +7 -0
  217. package/fesm2022/seniorsistemas-angular-components-gantt.mjs.map +1 -1
  218. package/fesm2022/seniorsistemas-angular-components-global-search.mjs +18 -0
  219. package/fesm2022/seniorsistemas-angular-components-global-search.mjs.map +1 -1
  220. package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs +7 -0
  221. package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs.map +1 -1
  222. package/fesm2022/seniorsistemas-angular-components-help-popover.mjs +7 -0
  223. package/fesm2022/seniorsistemas-angular-components-help-popover.mjs.map +1 -1
  224. package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs +14 -2
  225. package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs.map +1 -1
  226. package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs +7 -0
  227. package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs.map +1 -1
  228. package/fesm2022/seniorsistemas-angular-components-info-sign.mjs +7 -0
  229. package/fesm2022/seniorsistemas-angular-components-info-sign.mjs.map +1 -1
  230. package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs +11 -4
  231. package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs.map +1 -1
  232. package/fesm2022/seniorsistemas-angular-components-input-group.mjs +7 -0
  233. package/fesm2022/seniorsistemas-angular-components-input-group.mjs.map +1 -1
  234. package/fesm2022/seniorsistemas-angular-components-input-mask.mjs +7 -0
  235. package/fesm2022/seniorsistemas-angular-components-input-mask.mjs.map +1 -1
  236. package/fesm2022/seniorsistemas-angular-components-input-text.mjs +7 -0
  237. package/fesm2022/seniorsistemas-angular-components-input-text.mjs.map +1 -1
  238. package/fesm2022/seniorsistemas-angular-components-insights.mjs +10 -0
  239. package/fesm2022/seniorsistemas-angular-components-insights.mjs.map +1 -1
  240. package/fesm2022/seniorsistemas-angular-components-kanban.mjs +13 -2
  241. package/fesm2022/seniorsistemas-angular-components-kanban.mjs.map +1 -1
  242. package/fesm2022/seniorsistemas-angular-components-label-value.mjs +7 -0
  243. package/fesm2022/seniorsistemas-angular-components-label-value.mjs.map +1 -1
  244. package/fesm2022/seniorsistemas-angular-components-loading-state.mjs +7 -0
  245. package/fesm2022/seniorsistemas-angular-components-loading-state.mjs.map +1 -1
  246. package/fesm2022/seniorsistemas-angular-components-locale.mjs +260 -33
  247. package/fesm2022/seniorsistemas-angular-components-locale.mjs.map +1 -1
  248. package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs +11 -0
  249. package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs.map +1 -1
  250. package/fesm2022/seniorsistemas-angular-components-mask.mjs +7 -0
  251. package/fesm2022/seniorsistemas-angular-components-mask.mjs.map +1 -1
  252. package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs +7 -0
  253. package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs.map +1 -1
  254. package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs +7 -0
  255. package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs.map +1 -1
  256. package/fesm2022/seniorsistemas-angular-components-number-input.mjs +9 -2
  257. package/fesm2022/seniorsistemas-angular-components-number-input.mjs.map +1 -1
  258. package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs +184 -14
  259. package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs.map +1 -1
  260. package/fesm2022/seniorsistemas-angular-components-numeric.mjs +7 -0
  261. package/fesm2022/seniorsistemas-angular-components-numeric.mjs.map +1 -1
  262. package/fesm2022/seniorsistemas-angular-components-object-card.mjs +11 -0
  263. package/fesm2022/seniorsistemas-angular-components-object-card.mjs.map +1 -1
  264. package/fesm2022/seniorsistemas-angular-components-panel.mjs +10 -0
  265. package/fesm2022/seniorsistemas-angular-components-panel.mjs.map +1 -1
  266. package/fesm2022/seniorsistemas-angular-components-password-strength.mjs +7 -0
  267. package/fesm2022/seniorsistemas-angular-components-password-strength.mjs.map +1 -1
  268. package/fesm2022/seniorsistemas-angular-components-picklist.mjs +7 -0
  269. package/fesm2022/seniorsistemas-angular-components-picklist.mjs.map +1 -1
  270. package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs +7 -0
  271. package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs.map +1 -1
  272. package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs +7 -0
  273. package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs.map +1 -1
  274. package/fesm2022/seniorsistemas-angular-components-progressbar.mjs +7 -0
  275. package/fesm2022/seniorsistemas-angular-components-progressbar.mjs.map +1 -1
  276. package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs +7 -0
  277. package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs.map +1 -1
  278. package/fesm2022/seniorsistemas-angular-components-select-button.mjs +7 -0
  279. package/fesm2022/seniorsistemas-angular-components-select-button.mjs.map +1 -1
  280. package/fesm2022/seniorsistemas-angular-components-select.mjs +15 -2
  281. package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -1
  282. package/fesm2022/seniorsistemas-angular-components-shared.mjs +7 -0
  283. package/fesm2022/seniorsistemas-angular-components-shared.mjs.map +1 -1
  284. package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs +10 -2
  285. package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs.map +1 -1
  286. package/fesm2022/seniorsistemas-angular-components-slider.mjs +7 -0
  287. package/fesm2022/seniorsistemas-angular-components-slider.mjs.map +1 -1
  288. package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs +7 -0
  289. package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs.map +1 -1
  290. package/fesm2022/seniorsistemas-angular-components-split-button.mjs +7 -0
  291. package/fesm2022/seniorsistemas-angular-components-split-button.mjs.map +1 -1
  292. package/fesm2022/seniorsistemas-angular-components-stats-card.mjs +7 -0
  293. package/fesm2022/seniorsistemas-angular-components-stats-card.mjs.map +1 -1
  294. package/fesm2022/seniorsistemas-angular-components-stepper.mjs +7 -0
  295. package/fesm2022/seniorsistemas-angular-components-stepper.mjs.map +1 -1
  296. package/fesm2022/seniorsistemas-angular-components-structure.mjs +7 -0
  297. package/fesm2022/seniorsistemas-angular-components-structure.mjs.map +1 -1
  298. package/fesm2022/seniorsistemas-angular-components-switch.mjs +7 -0
  299. package/fesm2022/seniorsistemas-angular-components-switch.mjs.map +1 -1
  300. package/fesm2022/seniorsistemas-angular-components-table-header.mjs +7 -0
  301. package/fesm2022/seniorsistemas-angular-components-table-header.mjs.map +1 -1
  302. package/fesm2022/seniorsistemas-angular-components-table.mjs +8 -0
  303. package/fesm2022/seniorsistemas-angular-components-table.mjs.map +1 -1
  304. package/fesm2022/seniorsistemas-angular-components-template.mjs +7 -0
  305. package/fesm2022/seniorsistemas-angular-components-template.mjs.map +1 -1
  306. package/fesm2022/seniorsistemas-angular-components-text-area.mjs +7 -0
  307. package/fesm2022/seniorsistemas-angular-components-text-area.mjs.map +1 -1
  308. package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs +7 -0
  309. package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs.map +1 -1
  310. package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs +7 -0
  311. package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs.map +1 -1
  312. package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs +7 -0
  313. package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs.map +1 -1
  314. package/fesm2022/seniorsistemas-angular-components-tile.mjs +10 -0
  315. package/fesm2022/seniorsistemas-angular-components-tile.mjs.map +1 -1
  316. package/fesm2022/seniorsistemas-angular-components-timeline.mjs +7 -0
  317. package/fesm2022/seniorsistemas-angular-components-timeline.mjs.map +1 -1
  318. package/fesm2022/seniorsistemas-angular-components-toast.mjs +7 -0
  319. package/fesm2022/seniorsistemas-angular-components-toast.mjs.map +1 -1
  320. package/fesm2022/seniorsistemas-angular-components-token-list.mjs +7 -0
  321. package/fesm2022/seniorsistemas-angular-components-token-list.mjs.map +1 -1
  322. package/fesm2022/seniorsistemas-angular-components-tooltip.mjs +7 -0
  323. package/fesm2022/seniorsistemas-angular-components-tooltip.mjs.map +1 -1
  324. package/fesm2022/seniorsistemas-angular-components-topbar.mjs +10 -0
  325. package/fesm2022/seniorsistemas-angular-components-topbar.mjs.map +1 -1
  326. package/fesm2022/seniorsistemas-angular-components-tree.mjs +7 -0
  327. package/fesm2022/seniorsistemas-angular-components-tree.mjs.map +1 -1
  328. package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs +7 -0
  329. package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs.map +1 -1
  330. package/fieldset/README.md +2 -2
  331. package/fieldset/lib/fieldset/fieldset.module.d.ts +7 -0
  332. package/file-picker/README.md +2 -2
  333. package/file-picker/lib/file-picker/file-picker.module.d.ts +7 -0
  334. package/file-upload/README.md +1 -1
  335. package/gantt/README.md +2 -2
  336. package/gantt/lib/gantt/gantt.module.d.ts +7 -0
  337. package/global-search/README.md +5 -2
  338. package/global-search/lib/global-search/global-search.module.d.ts +18 -0
  339. package/grid-menu/README.md +5 -4
  340. package/grid-menu/lib/grid-menu/grid-menu.module.d.ts +7 -0
  341. package/help-popover/README.md +5 -4
  342. package/help-popover/lib/help-popover/help-popover.module.d.ts +7 -0
  343. package/ia-insight/README.md +1 -1
  344. package/image-cropper/README.md +6 -5
  345. package/image-cropper/lib/image-cropper/image-cropper.module.d.ts +11 -0
  346. package/infinite-scroll/README.md +5 -4
  347. package/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.d.ts +7 -0
  348. package/info-sign/README.md +5 -4
  349. package/info-sign/lib/info-sign/info-sign.module.d.ts +7 -0
  350. package/inline-edit/README.md +5 -4
  351. package/inline-edit/lib/inline-edit/inline-edit.module.d.ts +7 -0
  352. package/input-group/lib/input-group/input-group.module.d.ts +7 -0
  353. package/input-mask/lib/input-mask/input-mask.module.d.ts +7 -0
  354. package/input-text/lib/input-text/input-text.module.d.ts +7 -0
  355. package/insights/README.md +6 -4
  356. package/insights/lib/insights/insights.module.d.ts +10 -0
  357. package/kanban/README.md +6 -4
  358. package/kanban/lib/kanban/kanban.module.d.ts +10 -0
  359. package/label-value/README.md +5 -4
  360. package/label-value/lib/label-value/label-value.module.d.ts +7 -0
  361. package/loading-state/README.md +9 -5
  362. package/loading-state/lib/loading-state/loading-state.module.d.ts +7 -0
  363. package/locale/lib/locale/locale.module.d.ts +13 -0
  364. package/locale/lib/locale/locale.service.d.ts +0 -3
  365. package/locale/lib/locale/options/locale-presets.d.ts +22 -0
  366. package/locale/lib/locale/pipes/localized-bignumber-impure.pipe.d.ts +2 -2
  367. package/locale/lib/locale/pipes/localized-bignumber.pipe.d.ts +20 -1
  368. package/locale/lib/locale/provide-locale.d.ts +18 -0
  369. package/locale/public-api.d.ts +2 -0
  370. package/localized-number-input/README.md +32 -8
  371. package/localized-number-input/lib/localized-number-input/localized-number-input.directive.d.ts +4 -0
  372. package/localized-number-input/lib/localized-number-input/localized-number-input.module.d.ts +7 -0
  373. package/mask/lib/mask/mask-formatter.module.d.ts +7 -0
  374. package/mouse-events/README.md +5 -4
  375. package/mouse-events/lib/mouse-events/mouse-events.module.d.ts +7 -0
  376. package/navigation-button/README.md +5 -4
  377. package/navigation-button/lib/navigation-button/navigation-button.module.d.ts +7 -0
  378. package/number-input/lib/number-input/number-input.directive.d.ts +1 -1
  379. package/number-input/lib/number-input/number-input.module.d.ts +8 -1
  380. package/numeric/README.md +6 -5
  381. package/numeric/lib/numeric.module.d.ts +7 -0
  382. package/numeric-mask/README.md +44 -1
  383. package/numeric-mask/lib/numeric-mask/numeric-mask.directive.d.ts +65 -4
  384. package/numeric-mask/lib/numeric-mask/numeric-mask.module.d.ts +7 -0
  385. package/object-card/README.md +11 -4
  386. package/object-card/lib/object-card/object-card.module.d.ts +11 -0
  387. package/package.json +1 -1
  388. package/panel/README.md +8 -4
  389. package/panel/lib/panel/panel.module.d.ts +10 -0
  390. package/password-strength/README.md +6 -3
  391. package/password-strength/lib/password-strength/password-strength.module.d.ts +7 -0
  392. package/picklist/README.md +8 -5
  393. package/picklist/lib/picklist/picklist.module.d.ts +7 -0
  394. package/pin-code-field/lib/pin-code-field.module.d.ts +7 -0
  395. package/product-header/README.md +2 -2
  396. package/profile-picture-picker/README.md +6 -3
  397. package/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.d.ts +7 -0
  398. package/progressbar/README.md +6 -3
  399. package/progressbar/lib/progressbar/progressbar.module.d.ts +7 -0
  400. package/rating-scale/README.md +6 -3
  401. package/rating-scale/lib/rating-scale/rating-scale.module.d.ts +7 -0
  402. package/schematics/collection.json +40 -0
  403. package/schematics/migrations/migrate-app-to-standalone/index.d.ts +32 -0
  404. package/schematics/migrations/migrate-app-to-standalone/index.js +98 -0
  405. package/schematics/migrations/migrate-app-to-standalone/index.js.map +1 -0
  406. package/schematics/migrations/migrate-deprecated-apis/index.d.ts +49 -0
  407. package/schematics/migrations/migrate-deprecated-apis/index.js +660 -0
  408. package/schematics/migrations/migrate-deprecated-apis/index.js.map +1 -0
  409. package/schematics/migrations/migrate-deprecated-datepicker/index.d.ts +31 -0
  410. package/schematics/migrations/migrate-deprecated-datepicker/index.js +115 -0
  411. package/schematics/migrations/migrate-deprecated-datepicker/index.js.map +1 -0
  412. package/schematics/migrations/migrate-deprecated-dynamic-form/index.d.ts +52 -0
  413. package/schematics/migrations/migrate-deprecated-dynamic-form/index.js +661 -0
  414. package/schematics/migrations/migrate-deprecated-dynamic-form/index.js.map +1 -0
  415. package/schematics/migrations/migrate-deprecated-imports/index.d.ts +23 -0
  416. package/schematics/migrations/migrate-deprecated-imports/index.js +335 -0
  417. package/schematics/migrations/migrate-deprecated-imports/index.js.map +1 -0
  418. package/schematics/migrations/migrate-deprecated-selectors/index.d.ts +15 -0
  419. package/schematics/migrations/migrate-deprecated-selectors/index.js +76 -0
  420. package/schematics/migrations/migrate-deprecated-selectors/index.js.map +1 -0
  421. package/schematics/migrations/migrate-modules-to-standalone/index.d.ts +51 -0
  422. package/schematics/migrations/migrate-modules-to-standalone/index.js +632 -0
  423. package/schematics/migrations/migrate-modules-to-standalone/index.js.map +1 -0
  424. package/schematics/migrations/migrate-modules-to-standalone/modules-map.json +1656 -0
  425. package/schematics/migrations/migrate-v20/index.d.ts +9 -0
  426. package/schematics/migrations/migrate-v20/index.js +90 -0
  427. package/schematics/migrations/migrate-v20/index.js.map +1 -0
  428. package/schematics/migrations/migrate-v20/items.d.ts +7 -0
  429. package/schematics/migrations/migrate-v20/items.js +54 -0
  430. package/schematics/migrations/migrate-v20/items.js.map +1 -0
  431. package/schematics/migrations/migrate-v20/plan.d.ts +32 -0
  432. package/schematics/migrations/migrate-v20/plan.js +29 -0
  433. package/schematics/migrations/migrate-v20/plan.js.map +1 -0
  434. package/schematics/migrations.json +5 -1
  435. package/schematics/schema/app-standalone.schema.json +21 -0
  436. package/schematics/schema/migrate-v20.schema.json +33 -0
  437. package/schematics/schema/scope.schema.json +17 -0
  438. package/schematics/utils/ast-utils.js +16 -0
  439. package/schematics/utils/ast-utils.js.map +1 -1
  440. package/schematics/utils/eol.d.ts +5 -0
  441. package/schematics/utils/eol.js +17 -0
  442. package/schematics/utils/eol.js.map +1 -0
  443. package/schematics/utils/prompt-utils.d.ts +62 -0
  444. package/schematics/utils/prompt-utils.js +166 -0
  445. package/schematics/utils/prompt-utils.js.map +1 -0
  446. package/schematics/utils/report.d.ts +27 -0
  447. package/schematics/utils/report.js +70 -0
  448. package/schematics/utils/report.js.map +1 -0
  449. package/schematics/utils/scope.d.ts +17 -0
  450. package/schematics/utils/scope.js +55 -0
  451. package/schematics/utils/scope.js.map +1 -0
  452. package/schematics/utils/selection.d.ts +21 -0
  453. package/schematics/utils/selection.js +60 -0
  454. package/schematics/utils/selection.js.map +1 -0
  455. package/schematics/utils/symbol-utils.d.ts +31 -0
  456. package/schematics/utils/symbol-utils.js +202 -0
  457. package/schematics/utils/symbol-utils.js.map +1 -0
  458. package/schematics/utils/template-utils.d.ts +62 -0
  459. package/schematics/utils/template-utils.js +165 -0
  460. package/schematics/utils/template-utils.js.map +1 -0
  461. package/schematics/utils/tsconfig-paths.d.ts +5 -0
  462. package/schematics/utils/tsconfig-paths.js +73 -0
  463. package/schematics/utils/tsconfig-paths.js.map +1 -0
  464. package/select/lib/select/select.component.d.ts +8 -0
  465. package/select-button/README.md +6 -3
  466. package/select-button/lib/select-button/select-button.module.d.ts +7 -0
  467. package/shared/lib/shared/border-button/border-button.module.d.ts +7 -0
  468. package/sidebar/README.md +2 -2
  469. package/slide-in-bar/README.md +5 -5
  470. package/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.d.ts +7 -0
  471. package/slider/README.md +6 -3
  472. package/slider/lib/slider/slider.module.d.ts +7 -0
  473. package/speech-recognition/README.md +6 -3
  474. package/speech-recognition/lib/speech-recognition/speech-recognition.module.d.ts +7 -0
  475. package/split-button/README.md +6 -3
  476. package/split-button/lib/split-button/split-button.module.d.ts +7 -0
  477. package/stats-card/README.md +6 -3
  478. package/stats-card/lib/stats-card/stats-card.module.d.ts +7 -0
  479. package/stepper/README.md +6 -3
  480. package/stepper/lib/stepper/stepper.module.d.ts +7 -0
  481. package/structure/lib/structure/structure.module.d.ts +7 -0
  482. package/switch/README.md +6 -3
  483. package/switch/lib/switch/switch.module.d.ts +7 -0
  484. package/table/README.md +12 -4
  485. package/table/lib/table/table.module.d.ts +8 -0
  486. package/table-header/lib/table-header/table-header-checkox.module.d.ts +7 -0
  487. package/template/README.md +0 -11
  488. package/template/lib/template/template.module.d.ts +7 -0
  489. package/text-area/lib/text-area.module.d.ts +7 -0
  490. package/text-area-ia/README.md +1 -1
  491. package/thumbnail/lib/thumbnail/thumbnail.module.d.ts +7 -0
  492. package/thumbnails/lib/thumbnails/thumbnails.module.d.ts +7 -0
  493. package/tiered-menu/lib/tiered-menu/tiered-menu.module.d.ts +7 -0
  494. package/tile/lib/tile/tile.module.d.ts +10 -0
  495. package/timeline/lib/timeline/timeline.module.d.ts +7 -0
  496. package/toast/lib/toast/toast.module.d.ts +7 -0
  497. package/token-list/lib/token-list/token-list.module.d.ts +7 -0
  498. package/tooltip/lib/tooltip/tooltip.module.d.ts +7 -0
  499. package/topbar/lib/topbar/topbar.module.d.ts +10 -0
  500. package/tree/lib/tree/tree.module.d.ts +7 -0
  501. package/workspace-switch/lib/workspace-switch/workspace-switch.module.d.ts +7 -0
  502. package/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.d.ts +0 -664
  503. package/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.d.ts +0 -29
  504. package/esm2022/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.mjs +0 -96
  505. package/esm2022/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.mjs +0 -124
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, inject, ElementRef, Renderer2, DestroyRef, model, forwardRef, Directive, NgModule } from '@angular/core';
2
+ import { input, model, output, inject, ElementRef, Renderer2, DestroyRef, forwardRef, Directive, NgModule } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
5
5
  import { LocaleService } from '@seniorsistemas/angular-components/locale';
@@ -76,6 +76,25 @@ class NumericMaskDirective {
76
76
  * @default 'preserve'
77
77
  */
78
78
  decimalRoundingMode = input('preserve');
79
+ /**
80
+ * Maximum number of significant digits accepted by the field (integer + decimal part).
81
+ * Opt-in: when left `undefined` (default), there is no total-digit limit, no native `maxLength`
82
+ * is applied, pasted values are never rejected, and `placeholder` is never auto-calculated —
83
+ * i.e. the directive behaves exactly as before this input existed.
84
+ */
85
+ precision = input(undefined);
86
+ /**
87
+ * Placeholder text shown when the field is empty. When `precision` is set and this is left
88
+ * unset, it is auto-calculated from `minDecimalPlaces` (e.g. `0,00`); has no effect otherwise.
89
+ */
90
+ placeholder = model(undefined);
91
+ /**
92
+ * Emitted when a pasted value is rejected for exceeding `precision`. Only fires when
93
+ * `precision` is set; emits the rejected pasted text.
94
+ */
95
+ pasteRejected = output();
96
+ /** Native `maxLength` attribute, auto-calculated from `precision` when it is set. */
97
+ maxLength;
79
98
  elementRef = inject((ElementRef));
80
99
  renderer = inject(Renderer2);
81
100
  localeService = inject(LocaleService, { optional: true });
@@ -86,17 +105,46 @@ class NumericMaskDirective {
86
105
  thousandSeparator = model('.');
87
106
  currentLocale = 'pt-BR';
88
107
  lastModelValue = null;
108
+ /** `protected`: subclasses with their own deprecated separator aliases (e.g. `BignumberInputDirective`) set this directly. */
109
+ _decimalSeparatorExplicit = false;
110
+ /** `protected`: see `_decimalSeparatorExplicit`. */
111
+ _thousandSeparatorExplicit = false;
112
+ _lastAutoPlaceholder;
89
113
  ngOnChanges(changes) {
90
114
  if (changes['locale'] && !changes['locale'].firstChange && this.locale()) {
91
115
  this.currentLocale = this.locale();
92
116
  this.updateSeparators();
93
117
  this.setInputMode();
94
118
  }
119
+ // Preserves an explicitly bound separator across later locale-driven recalculations
120
+ // (see `updateSeparators`): `changes['X']` is only present when the parent template
121
+ // actually binds that input (Angular never reports unbound inputs here, not even on
122
+ // the first change), so consumers who never touch these two keep today's locale-derived
123
+ // behavior. Checked by key presence alone — NOT the current value's truthiness, which
124
+ // would wrongly treat an intentional `[thousandSeparator]="''"` (no grouping) as "not
125
+ // explicit" and let a later locale change silently restore grouping.
126
+ if (changes['decimalSeparator']) {
127
+ this._decimalSeparatorExplicit = true;
128
+ }
129
+ if (changes['thousandSeparator']) {
130
+ this._thousandSeparatorExplicit = true;
131
+ }
132
+ if (changes['precision'] ||
133
+ changes['minDecimalPlaces'] ||
134
+ changes['maxDecimalPlaces'] ||
135
+ changes['decimalSeparator'] ||
136
+ changes['thousandSeparator']) {
137
+ this.calculateMaxLength();
138
+ }
139
+ if (changes['precision'] || changes['minDecimalPlaces'] || changes['decimalSeparator']) {
140
+ this.updatePlaceholder();
141
+ }
95
142
  }
96
143
  ngOnInit() {
97
144
  if (this.minDecimalPlaces() > this.maxDecimalPlaces()) {
98
145
  throw new Error(`NumericMaskDirective: minDecimalPlaces (${this.minDecimalPlaces()}) cannot be greater than maxDecimalPlaces (${this.maxDecimalPlaces()})`);
99
146
  }
147
+ this.updatePlaceholder();
100
148
  if (this.locale()) {
101
149
  this.currentLocale = this.locale();
102
150
  this.updateSeparators();
@@ -177,14 +225,35 @@ class NumericMaskDirective {
177
225
  this.onChange(modelValue);
178
226
  }
179
227
  /**
180
- * Listener for paste events (clipboard)
228
+ * Listener for paste events (clipboard). When `precision` is set and the pasted value would
229
+ * exceed it, the paste is rejected outright (nothing is written) and `pasteRejected` fires.
181
230
  */
182
231
  onPaste(event) {
183
- event.preventDefault();
184
232
  const pastedText = event.clipboardData?.getData('text') || '';
233
+ const precision = this.precision();
234
+ if (precision !== undefined && this.exceedsPrecision(pastedText, precision)) {
235
+ event.preventDefault();
236
+ this.pasteRejected.emit(pastedText);
237
+ return;
238
+ }
239
+ event.preventDefault();
185
240
  let value = this.parseClipboardValue(pastedText);
186
241
  this.processInputValue(value);
187
242
  }
243
+ /**
244
+ * Whether a raw pasted string, once stripped of separators, has more significant digits
245
+ * than `precision` allows.
246
+ * @private
247
+ */
248
+ exceedsPrecision(text, precision) {
249
+ const thousandSep = this.thousandSeparator();
250
+ const numericText = text
251
+ .replace(new RegExp(this.escapeRegex(thousandSep), 'g'), '')
252
+ .replace(this.decimalSeparator(), '.');
253
+ const [intPart, decimalPart = ''] = numericText.split('.');
254
+ const totalDigits = intPart.replace(/\D/g, '').length + decimalPart.slice(0, this.maxDecimalPlaces()).length;
255
+ return totalDigits > precision;
256
+ }
188
257
  /**
189
258
  * Listener for special keys (+ and -)
190
259
  */
@@ -256,12 +325,59 @@ class NumericMaskDirective {
256
325
  }
257
326
  }
258
327
  /**
259
- * Updates separators according to the locale
328
+ * Updates separators according to the locale. An explicitly bound `decimalSeparator`/
329
+ * `thousandSeparator` (tracked in `ngOnChanges`) is restored afterwards, so a locale
330
+ * change never silently overrides a value the consumer set on purpose.
260
331
  */
261
332
  updateSeparators() {
333
+ const explicitDecimal = this._decimalSeparatorExplicit ? this.decimalSeparator() : undefined;
334
+ const explicitThousand = this._thousandSeparatorExplicit ? this.thousandSeparator() : undefined;
262
335
  const formatted = new Intl.NumberFormat(this.currentLocale).format(1234.5);
263
336
  this.thousandSeparator.set(formatted[1]);
264
337
  this.decimalSeparator.set(formatted[5]);
338
+ if (explicitDecimal !== undefined) {
339
+ this.decimalSeparator.set(explicitDecimal);
340
+ }
341
+ if (explicitThousand !== undefined) {
342
+ this.thousandSeparator.set(explicitThousand);
343
+ }
344
+ this.calculateMaxLength();
345
+ this.updatePlaceholder();
346
+ }
347
+ /**
348
+ * Auto-calculates the native `maxLength` from `precision`, sized for the current separators
349
+ * and `maxDecimalPlaces`. No-op (leaves `maxLength` unset) while `precision` is `undefined`.
350
+ * `protected`: subclasses that map their own deprecated inputs into `minDecimalPlaces`/
351
+ * `maxDecimalPlaces`/`thousandSeparator` outside of a tracked `changes` key call this directly.
352
+ */
353
+ calculateMaxLength() {
354
+ const precision = this.precision();
355
+ if (precision === undefined) {
356
+ this.maxLength = undefined;
357
+ return;
358
+ }
359
+ const scale = this.maxDecimalPlaces();
360
+ const decSepLength = this.decimalSeparator()?.length ?? 0;
361
+ const thoSepLength = this.thousandSeparator()?.length ?? 0;
362
+ const DIGITS_GROUP_SIZE = 3;
363
+ let maxLength = precision + (scale ? decSepLength : 0);
364
+ maxLength += Math.ceil((precision - scale) / DIGITS_GROUP_SIZE - 1) * thoSepLength;
365
+ this.maxLength = maxLength;
366
+ }
367
+ /**
368
+ * Auto-calculates `placeholder` (e.g. `0,00`) from `minDecimalPlaces`, without overwriting
369
+ * a value the consumer set explicitly. No-op while `precision` is `undefined`.
370
+ * `protected`: see `calculateMaxLength`.
371
+ */
372
+ updatePlaceholder() {
373
+ if (this.precision() === undefined)
374
+ return;
375
+ const scale = this.minDecimalPlaces();
376
+ const autoPlaceholder = scale ? `0${this.decimalSeparator()}${''.padEnd(scale, '0')}` : '0';
377
+ if (this.placeholder() === undefined || this.placeholder() === this._lastAutoPlaceholder) {
378
+ this.placeholder.set(autoPlaceholder);
379
+ }
380
+ this._lastAutoPlaceholder = autoPlaceholder;
265
381
  }
266
382
  /**
267
383
  * Processes input value and updates the input and model
@@ -386,10 +502,18 @@ class NumericMaskDirective {
386
502
  */
387
503
  parseStringToValue(value) {
388
504
  const isNegative = value.startsWith('-');
389
- let numericStr = value
390
- .replace(/^-/, '')
391
- .replace(new RegExp(`\\${this.thousandSeparator()}`, 'g'), '')
392
- .replace(new RegExp(`\\${this.decimalSeparator()}`, 'g'), '.');
505
+ let numericStr = value.replace(/^-/, '');
506
+ // Guarded: an empty thousandSeparator (e.g. "no grouping") must not reach `new RegExp`,
507
+ // since a bare escaped-empty pattern (`new RegExp('\\' + '')`) throws
508
+ // "Invalid regular expression: \ at end of pattern".
509
+ const thousandSep = this.thousandSeparator();
510
+ if (thousandSep) {
511
+ numericStr = numericStr.replace(new RegExp(this.escapeRegex(thousandSep), 'g'), '');
512
+ }
513
+ const decimalSep = this.decimalSeparator();
514
+ if (decimalSep) {
515
+ numericStr = numericStr.replace(new RegExp(this.escapeRegex(decimalSep), 'g'), '.');
516
+ }
393
517
  if (numericStr === '.' || numericStr === '') {
394
518
  numericStr = '0';
395
519
  }
@@ -405,6 +529,28 @@ class NumericMaskDirective {
405
529
  }
406
530
  return { bigNumber, numeric: bigNumber.toNumber(), isNegative };
407
531
  }
532
+ /**
533
+ * Groups an integer digit string (optionally signed) using `thousandSeparator`.
534
+ *
535
+ * Previously this used `Intl.NumberFormat(currentLocale)` and then tried to strip the
536
+ * locale's own grouping via `.split(decimalSeparator())`, which (a) ignored a custom
537
+ * `thousandSeparator` entirely — always falling back to the locale's own grouping
538
+ * character instead, e.g. `thousandSeparator=""` had no effect — and (b) corrupted the
539
+ * result whenever the locale's grouping character happened to equal `decimalSeparator`
540
+ * (e.g. a custom `decimalSeparator="."` under `pt-BR`, which groups thousands with `.`
541
+ * too): `"1.234".split('.')[0]` returned `"1"` instead of `"1234"`. Grouping the digits
542
+ * directly with the directive's own (already locale/explicit-resolved) `thousandSeparator`
543
+ * avoids the detour through `Intl.NumberFormat` and both bugs.
544
+ * @private
545
+ */
546
+ groupIntegerDigits(integerPart) {
547
+ const numericValue = parseInt(integerPart, 10) || 0;
548
+ const isNegative = numericValue < 0;
549
+ const digits = Math.abs(numericValue).toString();
550
+ const sep = this.thousandSeparator();
551
+ const grouped = sep ? digits.replace(/\B(?=(\d{3})+(?!\d))/g, sep) : digits;
552
+ return isNegative ? `-${grouped}` : grouped;
553
+ }
408
554
  /**
409
555
  * Formats a numeric value according to the locale
410
556
  * Truncates (never rounds) to maxDecimalPlaces and pads with zeros to minDecimalPlaces
@@ -418,9 +564,7 @@ class NumericMaskDirective {
418
564
  const parts = formattedValue.split(this.decimalSeparator());
419
565
  const integerPart = parts[0];
420
566
  let decimalPart = parts[1] || '';
421
- const formattedInteger = new Intl.NumberFormat(this.currentLocale)
422
- .format(parseInt(integerPart, 10) || 0)
423
- .split(this.decimalSeparator())[0];
567
+ const formattedInteger = this.groupIntegerDigits(integerPart);
424
568
  const effectiveDecimalPlaces = decimalPart.replace(/0+$/, '').length;
425
569
  const decimalPlacesToShow = Math.max(this.minDecimalPlaces(), Math.min(effectiveDecimalPlaces, this.maxDecimalPlaces()));
426
570
  decimalPart = decimalPart.substring(0, decimalPlacesToShow).padEnd(decimalPlacesToShow, '0');
@@ -518,10 +662,13 @@ class NumericMaskDirective {
518
662
  this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', isDisabled);
519
663
  }
520
664
  validate(control) {
521
- const value = control.value;
522
- if (!value) {
665
+ const controlValue = control.value;
666
+ if (!controlValue) {
523
667
  return null;
524
668
  }
669
+ // The model may be set programmatically as a `number` (e.g. `patchValue` with a backend DTO),
670
+ // even though the value this directive emits is always a decimal `string`.
671
+ const value = String(controlValue);
525
672
  const numericValue = parseFloat(value);
526
673
  if (isNaN(numericValue)) {
527
674
  return null;
@@ -556,10 +703,24 @@ class NumericMaskDirective {
556
703
  },
557
704
  };
558
705
  }
706
+ const precision = this.precision();
707
+ if (precision !== undefined) {
708
+ const numericStr = String(value).replace('-', '');
709
+ const [intPart, decPart = ''] = numericStr.split('.');
710
+ const totalDigits = intPart.length + decPart.length;
711
+ if (totalDigits > precision) {
712
+ return {
713
+ exceedsPrecision: {
714
+ precision,
715
+ actual: totalDigits,
716
+ },
717
+ };
718
+ }
719
+ }
559
720
  return null;
560
721
  }
561
722
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
562
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.14", type: NumericMaskDirective, isStandalone: true, selector: "[sNumericMask]", inputs: { locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, minDecimalPlaces: { classPropertyName: "minDecimalPlaces", publicName: "minDecimalPlaces", isSignal: true, isRequired: false, transformFunction: null }, maxDecimalPlaces: { classPropertyName: "maxDecimalPlaces", publicName: "maxDecimalPlaces", isSignal: true, isRequired: false, transformFunction: null }, allowNegative: { classPropertyName: "allowNegative", publicName: "allowNegative", isSignal: true, isRequired: false, transformFunction: null }, allowScientificNotation: { classPropertyName: "allowScientificNotation", publicName: "allowScientificNotation", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, blockDecimalOverflow: { classPropertyName: "blockDecimalOverflow", publicName: "blockDecimalOverflow", isSignal: true, isRequired: false, transformFunction: null }, decimalRoundingMode: { classPropertyName: "decimalRoundingMode", publicName: "decimalRoundingMode", isSignal: true, isRequired: false, transformFunction: null }, decimalSeparator: { classPropertyName: "decimalSeparator", publicName: "decimalSeparator", isSignal: true, isRequired: false, transformFunction: null }, thousandSeparator: { classPropertyName: "thousandSeparator", publicName: "thousandSeparator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { decimalSeparator: "decimalSeparatorChange", thousandSeparator: "thousandSeparatorChange" }, host: { listeners: { "input": "onInput($event)", "focus": "onFocus()", "blur": "onBlur()", "paste": "onPaste($event)", "keydown": "onKeyDown($event)", "keypress": "onKeyPress($event)" }, properties: { "style.text-align": "\"right\"" } }, providers: [
723
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.14", type: NumericMaskDirective, isStandalone: true, selector: "[sNumericMask]", inputs: { locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, minDecimalPlaces: { classPropertyName: "minDecimalPlaces", publicName: "minDecimalPlaces", isSignal: true, isRequired: false, transformFunction: null }, maxDecimalPlaces: { classPropertyName: "maxDecimalPlaces", publicName: "maxDecimalPlaces", isSignal: true, isRequired: false, transformFunction: null }, allowNegative: { classPropertyName: "allowNegative", publicName: "allowNegative", isSignal: true, isRequired: false, transformFunction: null }, allowScientificNotation: { classPropertyName: "allowScientificNotation", publicName: "allowScientificNotation", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, blockDecimalOverflow: { classPropertyName: "blockDecimalOverflow", publicName: "blockDecimalOverflow", isSignal: true, isRequired: false, transformFunction: null }, decimalRoundingMode: { classPropertyName: "decimalRoundingMode", publicName: "decimalRoundingMode", isSignal: true, isRequired: false, transformFunction: null }, precision: { classPropertyName: "precision", publicName: "precision", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, decimalSeparator: { classPropertyName: "decimalSeparator", publicName: "decimalSeparator", isSignal: true, isRequired: false, transformFunction: null }, thousandSeparator: { classPropertyName: "thousandSeparator", publicName: "thousandSeparator", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { placeholder: "placeholderChange", pasteRejected: "pasteRejected", decimalSeparator: "decimalSeparatorChange", thousandSeparator: "thousandSeparatorChange" }, host: { listeners: { "input": "onInput($event)", "focus": "onFocus()", "blur": "onBlur()", "paste": "onPaste($event)", "keydown": "onKeyDown($event)", "keypress": "onKeyPress($event)" }, properties: { "style.text-align": "\"right\"", "attr.maxLength": "maxLength", "attr.placeholder": "placeholder()" } }, providers: [
563
724
  {
564
725
  provide: NG_VALUE_ACCESSOR,
565
726
  useExisting: forwardRef(() => NumericMaskDirective),
@@ -585,6 +746,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
585
746
  '(keydown)': 'onKeyDown($event)',
586
747
  '(keypress)': 'onKeyPress($event)',
587
748
  '[style.text-align]': '"right"',
749
+ '[attr.maxLength]': 'maxLength',
750
+ '[attr.placeholder]': 'placeholder()',
588
751
  },
589
752
  providers: [
590
753
  {
@@ -601,6 +764,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
601
764
  }]
602
765
  }] });
603
766
 
767
+ /**
768
+ * @deprecated Será removido na v20. Importe diretamente o standalone `NumericMaskDirective` (de
769
+ * `@seniorsistemas/angular-components/numeric-mask`) no lugar deste módulo.
770
+ *
771
+ * Migração automática (também executada pelo `ng update` na v20):
772
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
773
+ */
604
774
  class CurrencyMaskModule {
605
775
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CurrencyMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
606
776
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: CurrencyMaskModule, imports: [NumericMaskDirective], exports: [NumericMaskDirective] });
@@ -1 +1 @@
1
- {"version":3,"file":"seniorsistemas-angular-components-numeric-mask.mjs","sources":["../../projects/angular-components/numeric-mask/src/lib/numeric-mask/numeric-mask.directive.ts","../../projects/angular-components/numeric-mask/src/lib/numeric-mask/numeric-mask.module.ts","../../projects/angular-components/numeric-mask/src/seniorsistemas-angular-components-numeric-mask.ts"],"sourcesContent":["import {\n Directive,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n OnChanges,\n OnInit,\n Renderer2,\n SimpleChanges,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\n\nimport { LocaleService } from '@seniorsistemas/angular-components/locale';\nimport BigNumber from 'bignumber.js';\n\n/**\n * @description Diretiva de máscara numérica com suporte a internacionalização.\n *\n * Formata valores numéricos de acordo com o locale especificado, aplicando\n * separadores de milhar e decimal adequados, com suporte a valores negativos,\n * controle de casas decimais mín/máx e notação científica.\n *\n * @example\n * ```html\n * <input\n * type=\"text\"\n * sNumericMask\n * [locale]=\"'pt-BR'\"\n * [minDecimalPlaces]=\"2\"\n * [maxDecimalPlaces]=\"2\"\n * [allowNegative]=\"true\"\n * [(ngModel)]=\"value\"\n * />\n * ```\n * @category Numeric\n */\n@Directive({\n selector: '[sNumericMask]',\n standalone: true,\n host: {\n '(input)': 'onInput($event)',\n '(focus)': 'onFocus()',\n '(blur)': 'onBlur()',\n '(paste)': 'onPaste($event)',\n '(keydown)': 'onKeyDown($event)',\n '(keypress)': 'onKeyPress($event)',\n '[style.text-align]': '\"right\"',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NumericMaskDirective),\n multi: true,\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NumericMaskDirective),\n multi: true,\n },\n ],\n})\nexport class NumericMaskDirective implements OnInit, OnChanges, ControlValueAccessor, Validator {\n /**\n * Locale for formatting (e.g. 'pt-BR', 'en-US', 'de-DE')\n * If not provided, uses the locale from LocaleService\n */\n public locale = input<string | undefined>(undefined);\n\n /**\n * Minimum number of decimal places to display\n * @default 0\n */\n public minDecimalPlaces = input(0);\n\n /**\n * Maximum number of decimal places allowed\n * @default 10\n */\n public maxDecimalPlaces = input(10);\n\n /**\n * Allows negative values\n * @default false\n */\n public allowNegative = input(false);\n\n /**\n * Enables scientific notation support\n * @default true\n */\n public allowScientificNotation = input(true);\n\n /**\n * Minimum value allowed\n */\n public min = input<number | undefined>(undefined);\n\n /**\n * Maximum value allowed\n */\n public max = input<number | undefined>(undefined);\n\n /**\n * Blocks typing/pasting decimal digits beyond maxDecimalPlaces.\n * When maxDecimalPlaces is 0, the decimal separator itself cannot be entered.\n * @default true\n */\n public blockDecimalOverflow = input(true);\n\n /**\n * Strategy applied on blur when blockDecimalOverflow is false.\n * 'preserve' keeps the model at full precision; only the display is truncated (legacy behavior).\n * 'truncate' cuts the excess decimals without rounding (towards zero), updating the model too.\n * 'roundUp' always rounds to the next representable value above (ceiling), updating the model too.\n * 'roundDown' always rounds to the next representable value below (floor), updating the model too.\n * Has no effect while blockDecimalOverflow is true.\n * @default 'preserve'\n */\n public decimalRoundingMode = input<'preserve' | 'truncate' | 'roundUp' | 'roundDown'>('preserve');\n\n private readonly elementRef = inject(ElementRef<HTMLInputElement>);\n private readonly renderer = inject(Renderer2);\n private readonly localeService = inject(LocaleService, { optional: true });\n private readonly _destroyRef = inject(DestroyRef);\n\n private onChange: (value: string | null) => void = () => {};\n private onTouched: () => void = () => {};\n public decimalSeparator = model(',');\n public thousandSeparator = model('.');\n protected currentLocale = 'pt-BR';\n private lastModelValue: string | null = null;\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (changes['locale'] && !changes['locale'].firstChange && this.locale()) {\n this.currentLocale = this.locale()!;\n this.updateSeparators();\n this.setInputMode();\n }\n }\n\n public ngOnInit(): void {\n if (this.minDecimalPlaces() > this.maxDecimalPlaces()) {\n throw new Error(\n `NumericMaskDirective: minDecimalPlaces (${this.minDecimalPlaces()}) cannot be greater than maxDecimalPlaces (${this.maxDecimalPlaces()})`,\n );\n }\n\n if (this.locale()) {\n this.currentLocale = this.locale()!;\n this.updateSeparators();\n this.setInputMode();\n } else if (this.localeService) {\n this.localeService\n .get()\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n this.currentLocale = this.localeService!.getLocaleOptions()?.locale || 'pt-BR';\n this.updateSeparators();\n this.setInputMode();\n });\n } else {\n this.updateSeparators();\n this.setInputMode();\n }\n }\n\n /**\n * Listener for input events (typing)\n */\n public onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n let value = input.value;\n value = this.normalizeSeparators(value);\n this.processInputValue(value);\n }\n\n /**\n * Listener for focus events (gaining focus)\n */\n public onFocus(): void {\n const input = this.elementRef.nativeElement;\n const currentValue = input.value;\n\n if (!currentValue || currentValue.trim() === '') {\n return;\n }\n\n if (this.lastModelValue) {\n const displayValue = this.lastModelValue.replace('.', this.decimalSeparator());\n this.renderer.setProperty(input, 'value', displayValue);\n input.select();\n return;\n }\n\n const modelValue = this.toModelValue(currentValue);\n\n if (!modelValue) {\n return;\n }\n\n const displayValue = modelValue.replace('.', this.decimalSeparator());\n this.renderer.setProperty(input, 'value', displayValue);\n input.select();\n }\n\n /**\n * Listener for blur events (focus loss)\n */\n public onBlur(): void {\n this.onTouched();\n\n const currentValue = this.elementRef.nativeElement.value;\n\n if (!currentValue || currentValue.trim() === '') {\n this.onChange(null);\n this.lastModelValue = null;\n return;\n }\n\n let modelValue = this.toModelValue(currentValue);\n\n if (!modelValue) {\n this.onChange(null);\n this.lastModelValue = null;\n return;\n }\n\n const roundingMode = this.decimalRoundingMode();\n if (!this.blockDecimalOverflow() && roundingMode !== 'preserve') {\n const rounded = this.truncateToDecimalPlaces(\n new BigNumber(modelValue),\n this.maxDecimalPlaces(),\n this.resolveRoundingMode(roundingMode),\n );\n modelValue = rounded.toFixed();\n }\n\n this.lastModelValue = modelValue;\n const displayValue = this.fromModelValue(modelValue);\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', displayValue);\n this.onChange(modelValue);\n }\n\n /**\n * Listener for paste events (clipboard)\n */\n public onPaste(event: ClipboardEvent): void {\n event.preventDefault();\n\n const pastedText = event.clipboardData?.getData('text') || '';\n let value = this.parseClipboardValue(pastedText);\n\n this.processInputValue(value);\n }\n\n /**\n * Listener for special keys (+ and -)\n */\n public onKeyDown(event: KeyboardEvent): void {\n const key = event.key;\n\n if (key === '-' || key === '+') {\n const input = this.elementRef.nativeElement;\n const value = input.value;\n const cursorPosition = input.selectionStart || 0;\n\n if (key === '-' && this.allowScientificNotation()) {\n const charBeforeCursor = value[cursorPosition - 1];\n if (charBeforeCursor === 'e' || charBeforeCursor === 'E') {\n return;\n }\n }\n\n event.preventDefault();\n if (!this.allowNegative()) {\n return;\n }\n\n this.toggleSign(value, key === '-');\n }\n }\n\n /**\n * Listener for keypress to block invalid characters\n */\n public onKeyPress(event: KeyboardEvent): void {\n const key = event.key;\n const input = this.elementRef.nativeElement;\n const cursorPosition = input.selectionStart || 0;\n const value = input.value;\n\n if ((key === '-' || key === '+') && this.allowScientificNotation()) {\n const charBeforeCursor = value[cursorPosition - 1];\n if (charBeforeCursor === 'e' || charBeforeCursor === 'E') {\n return;\n }\n }\n\n if (key === '+' || key === '-') {\n event.preventDefault();\n return;\n }\n\n const isDigit = /^[0-9]$/.test(key);\n const isDecimalSeparator = key === ',' || key === '.';\n const isScientificNotation = (key === 'e' || key === 'E') && this.allowScientificNotation();\n const isControlKey = event.ctrlKey || event.metaKey || event.altKey;\n const isSpecialKey = [\n 'Backspace',\n 'Tab',\n 'Enter',\n 'Escape',\n 'ArrowLeft',\n 'ArrowRight',\n 'Delete',\n 'Home',\n 'End',\n ].includes(key);\n\n if (isScientificNotation) {\n if (value.includes('e') || value.includes('E')) {\n event.preventDefault();\n return;\n }\n\n const charBeforeCursor = value[cursorPosition - 1];\n if (!charBeforeCursor || !/^[0-9]$/.test(charBeforeCursor)) {\n event.preventDefault();\n return;\n }\n }\n\n if (!isDigit && !isDecimalSeparator && !isScientificNotation && !isControlKey && !isSpecialKey) {\n event.preventDefault();\n }\n }\n\n /**\n * Updates separators according to the locale\n */\n protected updateSeparators(): void {\n const formatted = new Intl.NumberFormat(this.currentLocale).format(1234.5);\n\n this.thousandSeparator.set(formatted[1]);\n this.decimalSeparator.set(formatted[5]);\n }\n\n /**\n * Processes input value and updates the input and model\n * @private\n */\n private processInputValue(value: string): void {\n if (!this.decimalSeparator() || !this.thousandSeparator()) {\n this.updateSeparators();\n }\n\n if (this.blockDecimalOverflow()) {\n value = this.applyBlockLimit(value);\n }\n\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);\n\n const modelValue = this.toModelValue(value);\n\n // During typing, clear the stored model value so onFocus will recalculate\n this.lastModelValue = null;\n\n this.onChange(modelValue);\n }\n\n /**\n * Sets inputmode for numeric keyboard on mobile devices\n * @private\n */\n private setInputMode(): void {\n this.renderer.setAttribute(this.elementRef.nativeElement, 'inputmode', 'decimal');\n this.renderer.setAttribute(this.elementRef.nativeElement, 'autocomplete', 'off');\n }\n\n /**\n * Removes separators from a formatted value\n * @private\n */\n private removeSeparators(value: string): string {\n if (!this.thousandSeparator()) {\n return value;\n }\n\n const thousandRegex = new RegExp(this.escapeRegex(this.thousandSeparator()), 'g');\n\n return value.replace(thousandRegex, '');\n }\n\n /**\n * Strips unnecessary trailing zeros from decimal part\n * @private\n */\n private stripTrailingZeros(value: string): string {\n const parts = value.split(this.decimalSeparator());\n if (parts.length === 2) {\n const decimalPart = parts[1].replace(/0+$/, '');\n return decimalPart.length > 0 ? parts[0] + this.decimalSeparator() + decimalPart : parts[0];\n }\n return value;\n }\n\n /**\n * Normalizes separators during typing\n * @private\n */\n private normalizeSeparators(value: string): string {\n value = this.removeSeparators(value);\n\n if (this.decimalSeparator() === ',') {\n value = value.replace(/\\./g, ',');\n } else if (this.decimalSeparator() === '.') {\n value = value.replace(/,/g, '.');\n }\n\n const parts = value.split(this.decimalSeparator());\n if (parts.length > 2) {\n value = parts[0] + this.decimalSeparator() + parts.slice(1).join('');\n }\n\n return value;\n }\n\n /**\n * Escapes special characters for use in regex\n * @private\n */\n private escapeRegex(str: string): string {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n /**\n * Truncates (or rounds, depending on roundingMode) a number to the specified decimal places\n * @private\n */\n private truncateToDecimalPlaces(\n bigNumber: BigNumber,\n decimalPlaces: number,\n roundingMode: BigNumber.RoundingMode = BigNumber.ROUND_DOWN,\n ): BigNumber {\n if (decimalPlaces < 0) {\n return bigNumber;\n }\n const multiplier = new BigNumber(10).pow(decimalPlaces);\n return bigNumber.multipliedBy(multiplier).integerValue(roundingMode).dividedBy(multiplier);\n }\n\n /**\n * Maps decimalRoundingMode to the corresponding BigNumber rounding mode\n * @private\n */\n private resolveRoundingMode(mode: 'truncate' | 'roundUp' | 'roundDown'): BigNumber.RoundingMode {\n if (mode === 'roundUp') {\n return BigNumber.ROUND_CEIL;\n }\n if (mode === 'roundDown') {\n return BigNumber.ROUND_FLOOR;\n }\n return BigNumber.ROUND_DOWN;\n }\n\n /**\n * Limits the decimal part of a value being typed/pasted to maxDecimalPlaces,\n * preserving any scientific notation exponent untouched\n * @private\n */\n private applyBlockLimit(value: string): string {\n const maxDecimals = this.maxDecimalPlaces();\n const eIndex = value.search(/[eE]/);\n const mantissa = eIndex >= 0 ? value.slice(0, eIndex) : value;\n const exponent = eIndex >= 0 ? value.slice(eIndex) : '';\n\n const sepIndex = mantissa.indexOf(this.decimalSeparator());\n if (sepIndex === -1) {\n return value;\n }\n\n if (maxDecimals === 0) {\n return mantissa.slice(0, sepIndex) + exponent;\n }\n\n return mantissa.slice(0, sepIndex + 1 + maxDecimals) + exponent;\n }\n\n /**\n * Parses a string value to its numeric representation, handling separators and sign\n * Returns BigNumber to preserve full precision and optional number conversion\n * @private\n */\n private parseStringToValue(value: string): { bigNumber: BigNumber; numeric: number; isNegative: boolean } {\n const isNegative = value.startsWith('-');\n let numericStr = value\n .replace(/^-/, '')\n .replace(new RegExp(`\\\\${this.thousandSeparator()}`, 'g'), '')\n .replace(new RegExp(`\\\\${this.decimalSeparator()}`, 'g'), '.');\n\n if (numericStr === '.' || numericStr === '') {\n numericStr = '0';\n } else if (numericStr.startsWith('.')) {\n numericStr = '0' + numericStr;\n }\n\n let bigNumber = new BigNumber(numericStr);\n if (bigNumber.isNaN()) {\n bigNumber = new BigNumber(0);\n }\n\n if (isNegative && this.allowNegative()) {\n bigNumber = bigNumber.negated();\n }\n\n return { bigNumber, numeric: bigNumber.toNumber(), isNegative };\n }\n\n /**\n * Formats a numeric value according to the locale\n * Truncates (never rounds) to maxDecimalPlaces and pads with zeros to minDecimalPlaces\n * @private\n */\n private formatNumeric(numeric: number | BigNumber): string {\n let bigNumeric = numeric instanceof BigNumber ? numeric : new BigNumber(numeric);\n\n const truncatedValue = this.truncateToDecimalPlaces(bigNumeric, this.maxDecimalPlaces());\n\n const valueStr = truncatedValue.toFixed(Math.max(this.minDecimalPlaces(), this.maxDecimalPlaces()));\n\n let formattedValue = valueStr.replace('.', this.decimalSeparator());\n\n const parts = formattedValue.split(this.decimalSeparator());\n const integerPart = parts[0];\n let decimalPart = parts[1] || '';\n\n const formattedInteger = new Intl.NumberFormat(this.currentLocale)\n .format(parseInt(integerPart, 10) || 0)\n .split(this.decimalSeparator())[0];\n\n const effectiveDecimalPlaces = decimalPart.replace(/0+$/, '').length;\n\n const decimalPlacesToShow = Math.max(\n this.minDecimalPlaces(),\n Math.min(effectiveDecimalPlaces, this.maxDecimalPlaces()),\n );\n\n decimalPart = decimalPart.substring(0, decimalPlacesToShow).padEnd(decimalPlacesToShow, '0');\n\n return decimalPart ? formattedInteger + this.decimalSeparator() + decimalPart : formattedInteger;\n }\n\n /**\n * Converts the formatted value to the model format (international standard string)\n * Always returns decimal notation, never scientific notation\n * Stores the full precision value without truncation\n * @private\n */\n private toModelValue(formattedValue: string): string | null {\n if (!formattedValue || formattedValue.trim() === '') {\n return null;\n }\n const { bigNumber } = this.parseStringToValue(formattedValue);\n return bigNumber.toFixed();\n }\n\n /**\n * Converts the model value to display format\n * @private\n */\n private fromModelValue(modelValue: string | null): string {\n if (modelValue === null || modelValue === undefined || modelValue === '') {\n return '';\n }\n const bigNumber = new BigNumber(modelValue);\n if (bigNumber.isNaN()) {\n return '';\n }\n return this.formatNumeric(bigNumber);\n }\n\n /**\n * Processes pasted value from clipboard\n * Converts scientific notation to decimal using BigNumber\n * @private\n */\n private parseClipboardValue(text: string): string {\n if (this.allowScientificNotation() && /[eE]/.test(text)) {\n try {\n const bigNumeric = new BigNumber(text);\n if (!bigNumeric.isNaN()) {\n return bigNumeric.toFixed().replace('.', this.decimalSeparator());\n }\n } catch {\n void 0;\n }\n }\n return this.normalizeSeparators(text);\n }\n\n /**\n * Toggles the sign (- or +) of a value\n * @private\n */\n private toggleSign(value: string, makeNegative: boolean): void {\n const input = this.elementRef.nativeElement;\n let newValue = value;\n\n if (makeNegative && !newValue.startsWith('-')) {\n newValue = '-' + newValue;\n } else if (!makeNegative && newValue.startsWith('-')) {\n newValue = newValue.substring(1);\n } else {\n return;\n }\n\n this.renderer.setProperty(input, 'value', newValue);\n const modelValue = this.toModelValue(newValue);\n this.lastModelValue = null;\n this.onChange(modelValue);\n }\n\n public writeValue(value: string | null): void {\n if (!this.decimalSeparator() || !this.thousandSeparator()) {\n this.updateSeparators();\n }\n const hasFocus = document.activeElement === this.elementRef.nativeElement;\n if (hasFocus) {\n const formattedValue = this.fromModelValue(value);\n const rawValue = this.stripTrailingZeros(this.removeSeparators(formattedValue));\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', rawValue);\n } else {\n const formattedValue = this.fromModelValue(value);\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', formattedValue);\n }\n }\n\n public registerOnChange(fn: (value: string | null) => void): void {\n this.onChange = fn;\n }\n\n public registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n public setDisabledState(isDisabled: boolean): void {\n this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', isDisabled);\n }\n\n public validate(control: AbstractControl): ValidationErrors | null {\n const value = control.value;\n\n if (!value) {\n return null;\n }\n\n const numericValue = parseFloat(value);\n\n if (isNaN(numericValue)) {\n return null;\n }\n\n if (!this.allowNegative() && numericValue < 0) {\n return { negativeNotAllowed: true };\n }\n\n const minValue = this.min();\n if (minValue !== undefined && numericValue < minValue) {\n return {\n min: {\n min: minValue,\n actual: numericValue,\n },\n };\n }\n\n const maxValue = this.max();\n if (maxValue !== undefined && numericValue > maxValue) {\n return {\n max: {\n max: maxValue,\n actual: numericValue,\n },\n };\n }\n\n const decimalPart = value.split('.')[1];\n\n if (decimalPart && decimalPart.length > this.maxDecimalPlaces()) {\n return {\n excessiveDecimalPlaces: {\n max: this.maxDecimalPlaces(),\n actual: decimalPart.length,\n },\n };\n }\n\n return null;\n }\n}\n\n","import { NgModule } from '@angular/core';\n\nimport { NumericMaskDirective } from './numeric-mask.directive';\n\n@NgModule({\n imports: [NumericMaskDirective],\n exports: [NumericMaskDirective],\n})\nexport class CurrencyMaskModule {}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA0BA;;;;;;;;;;;;;;;;;;;;AAoBG;MA0BU,oBAAoB,CAAA;AAC7B;;;AAGG;AACI,IAAA,MAAM,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAErD;;;AAGG;AACI,IAAA,gBAAgB,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAEnC;;;AAGG;AACI,IAAA,gBAAgB,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC;AAEpC;;;AAGG;AACI,IAAA,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;AAEpC;;;AAGG;AACI,IAAA,uBAAuB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;AAE7C;;AAEG;AACI,IAAA,GAAG,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAElD;;AAEG;AACI,IAAA,GAAG,GAAG,KAAK,CAAqB,SAAS,CAAC,CAAC;AAElD;;;;AAIG;AACI,IAAA,oBAAoB,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;AAE1C;;;;;;;;AAQG;AACI,IAAA,mBAAmB,GAAG,KAAK,CAAoD,UAAU,CAAC,CAAC;AAEjF,IAAA,UAAU,GAAG,MAAM,E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;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"seniorsistemas-angular-components-numeric-mask.mjs","sources":["../../projects/angular-components/numeric-mask/src/lib/numeric-mask/numeric-mask.directive.ts","../../projects/angular-components/numeric-mask/src/lib/numeric-mask/numeric-mask.module.ts","../../projects/angular-components/numeric-mask/src/seniorsistemas-angular-components-numeric-mask.ts"],"sourcesContent":["import {\n Directive,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n OnChanges,\n OnInit,\n output,\n Renderer2,\n SimpleChanges,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\n\nimport { LocaleService } from '@seniorsistemas/angular-components/locale';\nimport BigNumber from 'bignumber.js';\n\n/**\n * @description Diretiva de máscara numérica com suporte a internacionalização.\n *\n * Formata valores numéricos de acordo com o locale especificado, aplicando\n * separadores de milhar e decimal adequados, com suporte a valores negativos,\n * controle de casas decimais mín/máx e notação científica.\n *\n * @example\n * ```html\n * <input\n * type=\"text\"\n * sNumericMask\n * [locale]=\"'pt-BR'\"\n * [minDecimalPlaces]=\"2\"\n * [maxDecimalPlaces]=\"2\"\n * [allowNegative]=\"true\"\n * [(ngModel)]=\"value\"\n * />\n * ```\n * @category Numeric\n */\n@Directive({\n selector: '[sNumericMask]',\n standalone: true,\n host: {\n '(input)': 'onInput($event)',\n '(focus)': 'onFocus()',\n '(blur)': 'onBlur()',\n '(paste)': 'onPaste($event)',\n '(keydown)': 'onKeyDown($event)',\n '(keypress)': 'onKeyPress($event)',\n '[style.text-align]': '\"right\"',\n '[attr.maxLength]': 'maxLength',\n '[attr.placeholder]': 'placeholder()',\n },\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NumericMaskDirective),\n multi: true,\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => NumericMaskDirective),\n multi: true,\n },\n ],\n})\nexport class NumericMaskDirective implements OnInit, OnChanges, ControlValueAccessor, Validator {\n /**\n * Locale for formatting (e.g. 'pt-BR', 'en-US', 'de-DE')\n * If not provided, uses the locale from LocaleService\n */\n public locale = input<string | undefined>(undefined);\n\n /**\n * Minimum number of decimal places to display\n * @default 0\n */\n public minDecimalPlaces = input(0);\n\n /**\n * Maximum number of decimal places allowed\n * @default 10\n */\n public maxDecimalPlaces = input(10);\n\n /**\n * Allows negative values\n * @default false\n */\n public allowNegative = input(false);\n\n /**\n * Enables scientific notation support\n * @default true\n */\n public allowScientificNotation = input(true);\n\n /**\n * Minimum value allowed\n */\n public min = input<number | undefined>(undefined);\n\n /**\n * Maximum value allowed\n */\n public max = input<number | undefined>(undefined);\n\n /**\n * Blocks typing/pasting decimal digits beyond maxDecimalPlaces.\n * When maxDecimalPlaces is 0, the decimal separator itself cannot be entered.\n * @default true\n */\n public blockDecimalOverflow = input(true);\n\n /**\n * Strategy applied on blur when blockDecimalOverflow is false.\n * 'preserve' keeps the model at full precision; only the display is truncated (legacy behavior).\n * 'truncate' cuts the excess decimals without rounding (towards zero), updating the model too.\n * 'roundUp' always rounds to the next representable value above (ceiling), updating the model too.\n * 'roundDown' always rounds to the next representable value below (floor), updating the model too.\n * Has no effect while blockDecimalOverflow is true.\n * @default 'preserve'\n */\n public decimalRoundingMode = input<'preserve' | 'truncate' | 'roundUp' | 'roundDown'>('preserve');\n\n /**\n * Maximum number of significant digits accepted by the field (integer + decimal part).\n * Opt-in: when left `undefined` (default), there is no total-digit limit, no native `maxLength`\n * is applied, pasted values are never rejected, and `placeholder` is never auto-calculated —\n * i.e. the directive behaves exactly as before this input existed.\n */\n public precision = input<number | undefined>(undefined);\n\n /**\n * Placeholder text shown when the field is empty. When `precision` is set and this is left\n * unset, it is auto-calculated from `minDecimalPlaces` (e.g. `0,00`); has no effect otherwise.\n */\n public placeholder = model<string | undefined>(undefined);\n\n /**\n * Emitted when a pasted value is rejected for exceeding `precision`. Only fires when\n * `precision` is set; emits the rejected pasted text.\n */\n public pasteRejected = output<string>();\n\n /** Native `maxLength` attribute, auto-calculated from `precision` when it is set. */\n public maxLength: number | undefined;\n\n private readonly elementRef = inject(ElementRef<HTMLInputElement>);\n private readonly renderer = inject(Renderer2);\n private readonly localeService = inject(LocaleService, { optional: true });\n private readonly _destroyRef = inject(DestroyRef);\n\n private onChange: (value: string | null) => void = () => {};\n private onTouched: () => void = () => {};\n public decimalSeparator = model(',');\n public thousandSeparator = model('.');\n protected currentLocale = 'pt-BR';\n private lastModelValue: string | null = null;\n /** `protected`: subclasses with their own deprecated separator aliases (e.g. `BignumberInputDirective`) set this directly. */\n protected _decimalSeparatorExplicit = false;\n /** `protected`: see `_decimalSeparatorExplicit`. */\n protected _thousandSeparatorExplicit = false;\n private _lastAutoPlaceholder: string | undefined;\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (changes['locale'] && !changes['locale'].firstChange && this.locale()) {\n this.currentLocale = this.locale()!;\n this.updateSeparators();\n this.setInputMode();\n }\n // Preserves an explicitly bound separator across later locale-driven recalculations\n // (see `updateSeparators`): `changes['X']` is only present when the parent template\n // actually binds that input (Angular never reports unbound inputs here, not even on\n // the first change), so consumers who never touch these two keep today's locale-derived\n // behavior. Checked by key presence alone — NOT the current value's truthiness, which\n // would wrongly treat an intentional `[thousandSeparator]=\"''\"` (no grouping) as \"not\n // explicit\" and let a later locale change silently restore grouping.\n if (changes['decimalSeparator']) {\n this._decimalSeparatorExplicit = true;\n }\n if (changes['thousandSeparator']) {\n this._thousandSeparatorExplicit = true;\n }\n if (\n changes['precision'] ||\n changes['minDecimalPlaces'] ||\n changes['maxDecimalPlaces'] ||\n changes['decimalSeparator'] ||\n changes['thousandSeparator']\n ) {\n this.calculateMaxLength();\n }\n if (changes['precision'] || changes['minDecimalPlaces'] || changes['decimalSeparator']) {\n this.updatePlaceholder();\n }\n }\n\n public ngOnInit(): void {\n if (this.minDecimalPlaces() > this.maxDecimalPlaces()) {\n throw new Error(\n `NumericMaskDirective: minDecimalPlaces (${this.minDecimalPlaces()}) cannot be greater than maxDecimalPlaces (${this.maxDecimalPlaces()})`,\n );\n }\n\n this.updatePlaceholder();\n\n if (this.locale()) {\n this.currentLocale = this.locale()!;\n this.updateSeparators();\n this.setInputMode();\n } else if (this.localeService) {\n this.localeService\n .get()\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n this.currentLocale = this.localeService!.getLocaleOptions()?.locale || 'pt-BR';\n this.updateSeparators();\n this.setInputMode();\n });\n } else {\n this.updateSeparators();\n this.setInputMode();\n }\n }\n\n /**\n * Listener for input events (typing)\n */\n public onInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n let value = input.value;\n value = this.normalizeSeparators(value);\n this.processInputValue(value);\n }\n\n /**\n * Listener for focus events (gaining focus)\n */\n public onFocus(): void {\n const input = this.elementRef.nativeElement;\n const currentValue = input.value;\n\n if (!currentValue || currentValue.trim() === '') {\n return;\n }\n\n if (this.lastModelValue) {\n const displayValue = this.lastModelValue.replace('.', this.decimalSeparator());\n this.renderer.setProperty(input, 'value', displayValue);\n input.select();\n return;\n }\n\n const modelValue = this.toModelValue(currentValue);\n\n if (!modelValue) {\n return;\n }\n\n const displayValue = modelValue.replace('.', this.decimalSeparator());\n this.renderer.setProperty(input, 'value', displayValue);\n input.select();\n }\n\n /**\n * Listener for blur events (focus loss)\n */\n public onBlur(): void {\n this.onTouched();\n\n const currentValue = this.elementRef.nativeElement.value;\n\n if (!currentValue || currentValue.trim() === '') {\n this.onChange(null);\n this.lastModelValue = null;\n return;\n }\n\n let modelValue = this.toModelValue(currentValue);\n\n if (!modelValue) {\n this.onChange(null);\n this.lastModelValue = null;\n return;\n }\n\n const roundingMode = this.decimalRoundingMode();\n if (!this.blockDecimalOverflow() && roundingMode !== 'preserve') {\n const rounded = this.truncateToDecimalPlaces(\n new BigNumber(modelValue),\n this.maxDecimalPlaces(),\n this.resolveRoundingMode(roundingMode),\n );\n modelValue = rounded.toFixed();\n }\n\n this.lastModelValue = modelValue;\n const displayValue = this.fromModelValue(modelValue);\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', displayValue);\n this.onChange(modelValue);\n }\n\n /**\n * Listener for paste events (clipboard). When `precision` is set and the pasted value would\n * exceed it, the paste is rejected outright (nothing is written) and `pasteRejected` fires.\n */\n public onPaste(event: ClipboardEvent): void {\n const pastedText = event.clipboardData?.getData('text') || '';\n const precision = this.precision();\n\n if (precision !== undefined && this.exceedsPrecision(pastedText, precision)) {\n event.preventDefault();\n this.pasteRejected.emit(pastedText);\n return;\n }\n\n event.preventDefault();\n\n let value = this.parseClipboardValue(pastedText);\n\n this.processInputValue(value);\n }\n\n /**\n * Whether a raw pasted string, once stripped of separators, has more significant digits\n * than `precision` allows.\n * @private\n */\n private exceedsPrecision(text: string, precision: number): boolean {\n const thousandSep = this.thousandSeparator();\n const numericText = text\n .replace(new RegExp(this.escapeRegex(thousandSep), 'g'), '')\n .replace(this.decimalSeparator(), '.');\n const [intPart, decimalPart = ''] = numericText.split('.');\n const totalDigits =\n intPart.replace(/\\D/g, '').length + decimalPart.slice(0, this.maxDecimalPlaces()).length;\n return totalDigits > precision;\n }\n\n /**\n * Listener for special keys (+ and -)\n */\n public onKeyDown(event: KeyboardEvent): void {\n const key = event.key;\n\n if (key === '-' || key === '+') {\n const input = this.elementRef.nativeElement;\n const value = input.value;\n const cursorPosition = input.selectionStart || 0;\n\n if (key === '-' && this.allowScientificNotation()) {\n const charBeforeCursor = value[cursorPosition - 1];\n if (charBeforeCursor === 'e' || charBeforeCursor === 'E') {\n return;\n }\n }\n\n event.preventDefault();\n if (!this.allowNegative()) {\n return;\n }\n\n this.toggleSign(value, key === '-');\n }\n }\n\n /**\n * Listener for keypress to block invalid characters\n */\n public onKeyPress(event: KeyboardEvent): void {\n const key = event.key;\n const input = this.elementRef.nativeElement;\n const cursorPosition = input.selectionStart || 0;\n const value = input.value;\n\n if ((key === '-' || key === '+') && this.allowScientificNotation()) {\n const charBeforeCursor = value[cursorPosition - 1];\n if (charBeforeCursor === 'e' || charBeforeCursor === 'E') {\n return;\n }\n }\n\n if (key === '+' || key === '-') {\n event.preventDefault();\n return;\n }\n\n const isDigit = /^[0-9]$/.test(key);\n const isDecimalSeparator = key === ',' || key === '.';\n const isScientificNotation = (key === 'e' || key === 'E') && this.allowScientificNotation();\n const isControlKey = event.ctrlKey || event.metaKey || event.altKey;\n const isSpecialKey = [\n 'Backspace',\n 'Tab',\n 'Enter',\n 'Escape',\n 'ArrowLeft',\n 'ArrowRight',\n 'Delete',\n 'Home',\n 'End',\n ].includes(key);\n\n if (isScientificNotation) {\n if (value.includes('e') || value.includes('E')) {\n event.preventDefault();\n return;\n }\n\n const charBeforeCursor = value[cursorPosition - 1];\n if (!charBeforeCursor || !/^[0-9]$/.test(charBeforeCursor)) {\n event.preventDefault();\n return;\n }\n }\n\n if (!isDigit && !isDecimalSeparator && !isScientificNotation && !isControlKey && !isSpecialKey) {\n event.preventDefault();\n }\n }\n\n /**\n * Updates separators according to the locale. An explicitly bound `decimalSeparator`/\n * `thousandSeparator` (tracked in `ngOnChanges`) is restored afterwards, so a locale\n * change never silently overrides a value the consumer set on purpose.\n */\n protected updateSeparators(): void {\n const explicitDecimal = this._decimalSeparatorExplicit ? this.decimalSeparator() : undefined;\n const explicitThousand = this._thousandSeparatorExplicit ? this.thousandSeparator() : undefined;\n\n const formatted = new Intl.NumberFormat(this.currentLocale).format(1234.5);\n this.thousandSeparator.set(formatted[1]);\n this.decimalSeparator.set(formatted[5]);\n\n if (explicitDecimal !== undefined) {\n this.decimalSeparator.set(explicitDecimal);\n }\n if (explicitThousand !== undefined) {\n this.thousandSeparator.set(explicitThousand);\n }\n\n this.calculateMaxLength();\n this.updatePlaceholder();\n }\n\n /**\n * Auto-calculates the native `maxLength` from `precision`, sized for the current separators\n * and `maxDecimalPlaces`. No-op (leaves `maxLength` unset) while `precision` is `undefined`.\n * `protected`: subclasses that map their own deprecated inputs into `minDecimalPlaces`/\n * `maxDecimalPlaces`/`thousandSeparator` outside of a tracked `changes` key call this directly.\n */\n protected calculateMaxLength(): void {\n const precision = this.precision();\n if (precision === undefined) {\n this.maxLength = undefined;\n return;\n }\n\n const scale = this.maxDecimalPlaces();\n const decSepLength = this.decimalSeparator()?.length ?? 0;\n const thoSepLength = this.thousandSeparator()?.length ?? 0;\n const DIGITS_GROUP_SIZE = 3;\n\n let maxLength = precision + (scale ? decSepLength : 0);\n maxLength += Math.ceil((precision - scale) / DIGITS_GROUP_SIZE - 1) * thoSepLength;\n\n this.maxLength = maxLength;\n }\n\n /**\n * Auto-calculates `placeholder` (e.g. `0,00`) from `minDecimalPlaces`, without overwriting\n * a value the consumer set explicitly. No-op while `precision` is `undefined`.\n * `protected`: see `calculateMaxLength`.\n */\n protected updatePlaceholder(): void {\n if (this.precision() === undefined) return;\n\n const scale = this.minDecimalPlaces();\n const autoPlaceholder = scale ? `0${this.decimalSeparator()}${''.padEnd(scale, '0')}` : '0';\n\n if (this.placeholder() === undefined || this.placeholder() === this._lastAutoPlaceholder) {\n this.placeholder.set(autoPlaceholder);\n }\n\n this._lastAutoPlaceholder = autoPlaceholder;\n }\n\n /**\n * Processes input value and updates the input and model\n * @private\n */\n private processInputValue(value: string): void {\n if (!this.decimalSeparator() || !this.thousandSeparator()) {\n this.updateSeparators();\n }\n\n if (this.blockDecimalOverflow()) {\n value = this.applyBlockLimit(value);\n }\n\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', value);\n\n const modelValue = this.toModelValue(value);\n\n // During typing, clear the stored model value so onFocus will recalculate\n this.lastModelValue = null;\n\n this.onChange(modelValue);\n }\n\n /**\n * Sets inputmode for numeric keyboard on mobile devices\n * @private\n */\n private setInputMode(): void {\n this.renderer.setAttribute(this.elementRef.nativeElement, 'inputmode', 'decimal');\n this.renderer.setAttribute(this.elementRef.nativeElement, 'autocomplete', 'off');\n }\n\n /**\n * Removes separators from a formatted value\n * @private\n */\n private removeSeparators(value: string): string {\n if (!this.thousandSeparator()) {\n return value;\n }\n\n const thousandRegex = new RegExp(this.escapeRegex(this.thousandSeparator()), 'g');\n\n return value.replace(thousandRegex, '');\n }\n\n /**\n * Strips unnecessary trailing zeros from decimal part\n * @private\n */\n private stripTrailingZeros(value: string): string {\n const parts = value.split(this.decimalSeparator());\n if (parts.length === 2) {\n const decimalPart = parts[1].replace(/0+$/, '');\n return decimalPart.length > 0 ? parts[0] + this.decimalSeparator() + decimalPart : parts[0];\n }\n return value;\n }\n\n /**\n * Normalizes separators during typing\n * @private\n */\n private normalizeSeparators(value: string): string {\n value = this.removeSeparators(value);\n\n if (this.decimalSeparator() === ',') {\n value = value.replace(/\\./g, ',');\n } else if (this.decimalSeparator() === '.') {\n value = value.replace(/,/g, '.');\n }\n\n const parts = value.split(this.decimalSeparator());\n if (parts.length > 2) {\n value = parts[0] + this.decimalSeparator() + parts.slice(1).join('');\n }\n\n return value;\n }\n\n /**\n * Escapes special characters for use in regex\n * @private\n */\n private escapeRegex(str: string): string {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n }\n\n /**\n * Truncates (or rounds, depending on roundingMode) a number to the specified decimal places\n * @private\n */\n private truncateToDecimalPlaces(\n bigNumber: BigNumber,\n decimalPlaces: number,\n roundingMode: BigNumber.RoundingMode = BigNumber.ROUND_DOWN,\n ): BigNumber {\n if (decimalPlaces < 0) {\n return bigNumber;\n }\n const multiplier = new BigNumber(10).pow(decimalPlaces);\n return bigNumber.multipliedBy(multiplier).integerValue(roundingMode).dividedBy(multiplier);\n }\n\n /**\n * Maps decimalRoundingMode to the corresponding BigNumber rounding mode\n * @private\n */\n private resolveRoundingMode(mode: 'truncate' | 'roundUp' | 'roundDown'): BigNumber.RoundingMode {\n if (mode === 'roundUp') {\n return BigNumber.ROUND_CEIL;\n }\n if (mode === 'roundDown') {\n return BigNumber.ROUND_FLOOR;\n }\n return BigNumber.ROUND_DOWN;\n }\n\n /**\n * Limits the decimal part of a value being typed/pasted to maxDecimalPlaces,\n * preserving any scientific notation exponent untouched\n * @private\n */\n private applyBlockLimit(value: string): string {\n const maxDecimals = this.maxDecimalPlaces();\n const eIndex = value.search(/[eE]/);\n const mantissa = eIndex >= 0 ? value.slice(0, eIndex) : value;\n const exponent = eIndex >= 0 ? value.slice(eIndex) : '';\n\n const sepIndex = mantissa.indexOf(this.decimalSeparator());\n if (sepIndex === -1) {\n return value;\n }\n\n if (maxDecimals === 0) {\n return mantissa.slice(0, sepIndex) + exponent;\n }\n\n return mantissa.slice(0, sepIndex + 1 + maxDecimals) + exponent;\n }\n\n /**\n * Parses a string value to its numeric representation, handling separators and sign\n * Returns BigNumber to preserve full precision and optional number conversion\n * @private\n */\n private parseStringToValue(value: string): { bigNumber: BigNumber; numeric: number; isNegative: boolean } {\n const isNegative = value.startsWith('-');\n let numericStr = value.replace(/^-/, '');\n\n // Guarded: an empty thousandSeparator (e.g. \"no grouping\") must not reach `new RegExp`,\n // since a bare escaped-empty pattern (`new RegExp('\\\\' + '')`) throws\n // \"Invalid regular expression: \\ at end of pattern\".\n const thousandSep = this.thousandSeparator();\n if (thousandSep) {\n numericStr = numericStr.replace(new RegExp(this.escapeRegex(thousandSep), 'g'), '');\n }\n const decimalSep = this.decimalSeparator();\n if (decimalSep) {\n numericStr = numericStr.replace(new RegExp(this.escapeRegex(decimalSep), 'g'), '.');\n }\n\n if (numericStr === '.' || numericStr === '') {\n numericStr = '0';\n } else if (numericStr.startsWith('.')) {\n numericStr = '0' + numericStr;\n }\n\n let bigNumber = new BigNumber(numericStr);\n if (bigNumber.isNaN()) {\n bigNumber = new BigNumber(0);\n }\n\n if (isNegative && this.allowNegative()) {\n bigNumber = bigNumber.negated();\n }\n\n return { bigNumber, numeric: bigNumber.toNumber(), isNegative };\n }\n\n /**\n * Groups an integer digit string (optionally signed) using `thousandSeparator`.\n *\n * Previously this used `Intl.NumberFormat(currentLocale)` and then tried to strip the\n * locale's own grouping via `.split(decimalSeparator())`, which (a) ignored a custom\n * `thousandSeparator` entirely — always falling back to the locale's own grouping\n * character instead, e.g. `thousandSeparator=\"\"` had no effect — and (b) corrupted the\n * result whenever the locale's grouping character happened to equal `decimalSeparator`\n * (e.g. a custom `decimalSeparator=\".\"` under `pt-BR`, which groups thousands with `.`\n * too): `\"1.234\".split('.')[0]` returned `\"1\"` instead of `\"1234\"`. Grouping the digits\n * directly with the directive's own (already locale/explicit-resolved) `thousandSeparator`\n * avoids the detour through `Intl.NumberFormat` and both bugs.\n * @private\n */\n private groupIntegerDigits(integerPart: string): string {\n const numericValue = parseInt(integerPart, 10) || 0;\n const isNegative = numericValue < 0;\n const digits = Math.abs(numericValue).toString();\n const sep = this.thousandSeparator();\n const grouped = sep ? digits.replace(/\\B(?=(\\d{3})+(?!\\d))/g, sep) : digits;\n return isNegative ? `-${grouped}` : grouped;\n }\n\n /**\n * Formats a numeric value according to the locale\n * Truncates (never rounds) to maxDecimalPlaces and pads with zeros to minDecimalPlaces\n * @private\n */\n private formatNumeric(numeric: number | BigNumber): string {\n let bigNumeric = numeric instanceof BigNumber ? numeric : new BigNumber(numeric);\n\n const truncatedValue = this.truncateToDecimalPlaces(bigNumeric, this.maxDecimalPlaces());\n\n const valueStr = truncatedValue.toFixed(Math.max(this.minDecimalPlaces(), this.maxDecimalPlaces()));\n\n let formattedValue = valueStr.replace('.', this.decimalSeparator());\n\n const parts = formattedValue.split(this.decimalSeparator());\n const integerPart = parts[0];\n let decimalPart = parts[1] || '';\n\n const formattedInteger = this.groupIntegerDigits(integerPart);\n\n const effectiveDecimalPlaces = decimalPart.replace(/0+$/, '').length;\n\n const decimalPlacesToShow = Math.max(\n this.minDecimalPlaces(),\n Math.min(effectiveDecimalPlaces, this.maxDecimalPlaces()),\n );\n\n decimalPart = decimalPart.substring(0, decimalPlacesToShow).padEnd(decimalPlacesToShow, '0');\n\n return decimalPart ? formattedInteger + this.decimalSeparator() + decimalPart : formattedInteger;\n }\n\n /**\n * Converts the formatted value to the model format (international standard string)\n * Always returns decimal notation, never scientific notation\n * Stores the full precision value without truncation\n * @private\n */\n private toModelValue(formattedValue: string): string | null {\n if (!formattedValue || formattedValue.trim() === '') {\n return null;\n }\n const { bigNumber } = this.parseStringToValue(formattedValue);\n return bigNumber.toFixed();\n }\n\n /**\n * Converts the model value to display format\n * @private\n */\n private fromModelValue(modelValue: string | number | null): string {\n if (modelValue === null || modelValue === undefined || modelValue === '') {\n return '';\n }\n const bigNumber = new BigNumber(modelValue);\n if (bigNumber.isNaN()) {\n return '';\n }\n return this.formatNumeric(bigNumber);\n }\n\n /**\n * Processes pasted value from clipboard\n * Converts scientific notation to decimal using BigNumber\n * @private\n */\n private parseClipboardValue(text: string): string {\n if (this.allowScientificNotation() && /[eE]/.test(text)) {\n try {\n const bigNumeric = new BigNumber(text);\n if (!bigNumeric.isNaN()) {\n return bigNumeric.toFixed().replace('.', this.decimalSeparator());\n }\n } catch {\n void 0;\n }\n }\n return this.normalizeSeparators(text);\n }\n\n /**\n * Toggles the sign (- or +) of a value\n * @private\n */\n private toggleSign(value: string, makeNegative: boolean): void {\n const input = this.elementRef.nativeElement;\n let newValue = value;\n\n if (makeNegative && !newValue.startsWith('-')) {\n newValue = '-' + newValue;\n } else if (!makeNegative && newValue.startsWith('-')) {\n newValue = newValue.substring(1);\n } else {\n return;\n }\n\n this.renderer.setProperty(input, 'value', newValue);\n const modelValue = this.toModelValue(newValue);\n this.lastModelValue = null;\n this.onChange(modelValue);\n }\n\n public writeValue(value: string | number | null): void {\n if (!this.decimalSeparator() || !this.thousandSeparator()) {\n this.updateSeparators();\n }\n const hasFocus = document.activeElement === this.elementRef.nativeElement;\n if (hasFocus) {\n const formattedValue = this.fromModelValue(value);\n const rawValue = this.stripTrailingZeros(this.removeSeparators(formattedValue));\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', rawValue);\n } else {\n const formattedValue = this.fromModelValue(value);\n this.renderer.setProperty(this.elementRef.nativeElement, 'value', formattedValue);\n }\n }\n\n public registerOnChange(fn: (value: string | null) => void): void {\n this.onChange = fn;\n }\n\n public registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n public setDisabledState(isDisabled: boolean): void {\n this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', isDisabled);\n }\n\n public validate(control: AbstractControl): ValidationErrors | null {\n const controlValue: string | number | null | undefined = control.value;\n\n if (!controlValue) {\n return null;\n }\n\n // The model may be set programmatically as a `number` (e.g. `patchValue` with a backend DTO),\n // even though the value this directive emits is always a decimal `string`.\n const value = String(controlValue);\n const numericValue = parseFloat(value);\n\n if (isNaN(numericValue)) {\n return null;\n }\n\n if (!this.allowNegative() && numericValue < 0) {\n return { negativeNotAllowed: true };\n }\n\n const minValue = this.min();\n if (minValue !== undefined && numericValue < minValue) {\n return {\n min: {\n min: minValue,\n actual: numericValue,\n },\n };\n }\n\n const maxValue = this.max();\n if (maxValue !== undefined && numericValue > maxValue) {\n return {\n max: {\n max: maxValue,\n actual: numericValue,\n },\n };\n }\n\n const decimalPart = value.split('.')[1];\n\n if (decimalPart && decimalPart.length > this.maxDecimalPlaces()) {\n return {\n excessiveDecimalPlaces: {\n max: this.maxDecimalPlaces(),\n actual: decimalPart.length,\n },\n };\n }\n\n const precision = this.precision();\n if (precision !== undefined) {\n const numericStr = String(value).replace('-', '');\n const [intPart, decPart = ''] = numericStr.split('.');\n const totalDigits = intPart.length + decPart.length;\n\n if (totalDigits > precision) {\n return {\n exceedsPrecision: {\n precision,\n actual: totalDigits,\n },\n };\n }\n }\n\n return null;\n }\n}\n\n","import { NgModule } from '@angular/core';\n\nimport { NumericMaskDirective } from './numeric-mask.directive';\n\n/**\n * @deprecated Será removido na v20. Importe diretamente o standalone `NumericMaskDirective` (de\n * `@seniorsistemas/angular-components/numeric-mask`) no lugar deste módulo.\n *\n * Migração automática (também executada pelo `ng update` na v20):\n * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`\n */\n@NgModule({\n imports: [NumericMaskDirective],\n exports: [NumericMaskDirective],\n})\nexport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E,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
@@ -147,6 +147,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
147
147
  }]
148
148
  }] });
149
149
 
150
+ /**
151
+ * @deprecated Será removido na v20. Importe diretamente o standalone `NumericPipe` (de
152
+ * `@seniorsistemas/angular-components/numeric`) no lugar deste módulo.
153
+ *
154
+ * Migração automática (também executada pelo `ng update` na v20):
155
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
156
+ */
150
157
  class NumericModule {
151
158
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumericModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
152
159
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: NumericModule, imports: [NumericPipe], exports: [NumericPipe] });