@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 +1 @@
1
- {"version":3,"file":"seniorsistemas-angular-components-locale.mjs","sources":["../../projects/angular-components/locale/src/lib/locale/options/calendar.ts","../../projects/angular-components/locale/src/lib/locale/options/number.ts","../../projects/angular-components/locale/src/lib/locale/options/index.ts","../../projects/angular-components/locale/src/lib/locale/locale.service.ts","../../projects/angular-components/locale/src/lib/locale/apply-localized-mask.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-bignumber.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-bignumber-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-currency.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-currency-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-date.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-date-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-number.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-time.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-time-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/locale.module.ts","../../projects/angular-components/locale/src/seniorsistemas-angular-components-locale.ts"],"sourcesContent":["export interface ICalendarLocaleOptions {\n hourFormat?: string;\n dateFormat?: string;\n firstDayOfWeek?: number;\n today?: string;\n clear?: string;\n dayNames?: string[];\n dayNamesShort?: string[];\n dayNamesMin?: string[];\n monthNamesShort?: string[];\n monthNames?: string[];\n}\n\nexport class CalendarLocaleOptions implements ICalendarLocaleOptions {\n public hourFormat? = '24';\n public dateFormat? = 'dd/mm/yy';\n public firstDayOfWeek? = 0;\n public today? = 'Hoje';\n public clear? = 'Limpar';\n public dayNames?: string[] = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'];\n public dayNamesShort?: string[] = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'];\n public dayNamesMin?: string[] = ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'];\n public monthNamesShort?: string[] = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'];\n public monthNames?: string[] = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];\n\n constructor(config: ICalendarLocaleOptions = {}) {\n this.clear = config?.clear ?? this.clear;\n this.dateFormat = config?.dateFormat ?? this.dateFormat;\n this.dayNames = config?.dayNames ?? this.dayNames;\n this.dayNamesMin = config?.dayNamesMin ?? this.dayNamesMin;\n this.firstDayOfWeek = config?.firstDayOfWeek ?? this.firstDayOfWeek;\n this.hourFormat = config?.hourFormat ?? this.hourFormat;\n this.monthNames = config?.monthNames ?? this.monthNames;\n this.monthNamesShort = config?.monthNamesShort ?? this.monthNamesShort;\n this.today = config?.today ?? this.today;\n }\n}\n","export interface INumberLocaleOptions {\n thousandsSeparator?: string;\n decimalSeparator?: string;\n currencySymbol?: string;\n}\n\nexport class NumberLocaleOptions implements INumberLocaleOptions {\n public thousandsSeparator? = \".\";\n public decimalSeparator? = \",\";\n public currencySymbol? = \"R$\";\n\n constructor(config: INumberLocaleOptions = {}) {\n Object.assign(this, config);\n }\n}\n","import { CalendarLocaleOptions } from './calendar';\nimport { NumberLocaleOptions } from './number';\n\nexport interface ILocaleOptions {\n locale?: string;\n calendar?: CalendarLocaleOptions;\n number?: NumberLocaleOptions;\n}\n\nexport class LocaleOptions implements ILocaleOptions {\n locale? = 'pt-BR';\n calendar = new CalendarLocaleOptions({});\n number = new NumberLocaleOptions();\n\n constructor(config: ILocaleOptions = {}) {\n this.calendar = config.calendar ?? this.calendar;\n this.number = config.number ?? this.number;\n this.locale = config.locale ?? this.locale;\n // Object.keys(config).forEach(key => (this[key] = config[key] || this[key]));\n }\n}\n\n// /**\n// * @deprecated\n// */\n// export const DEFAULT_CALENDAR_LOCALE_OPTIONS = new CalendarLocaleOptions();\n\n// /**\n// * @deprecated\n// */\n// export const DEFAULT_NUMBER_LOCALE_OPTIONS = new NumberLocaleOptions();\n\n// /**\n// * @deprecated\n// */\n// export const DEFAULT_LOCALE_OPTIONS = new LocaleOptions();\n\nexport * from './calendar';\nexport * from './number';\n\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\n\nimport { user } from '@seniorsistemas/senior-platform-data';\nimport moment from 'moment';\nimport { from, Observable, of } from 'rxjs';\nimport { catchError, map, switchMap, tap } from 'rxjs/operators';\nimport { CookieService } from 'ngx-cookie-service';\n\nimport { ILocaleOptions, LocaleOptions } from './options/index';\n\nimport 'moment/locale/es';\nimport 'moment/locale/pt-br';\n\n/**\n * @description Serviço de localização que obtém e armazena o locale do usuário\n * a partir da plataforma Senior. Fornece separadores decimais e de milhar,\n * configurações de calendário e opções de formato PrimeNG com base no locale ativo.\n *\n * @category Locale\n */\n@Injectable()\nexport class LocaleService {\n private readonly http = inject(HttpClient);\n private readonly cookieService = inject(CookieService);\n\n private locale?: string;\n private localeOptions?: LocaleOptions;\n private readonly localeOptionsAddress = 'https://cdn.senior.com.br/primeng/locales';\n private readonly localeOptionsVersion = '3.0.0';\n private readonly VALID_MOMENT_LANGUAGES = {\n spanish: ['es-do', 'es-mx', 'es-us', 'es'],\n english: ['en', 'en-au', 'en-ca', 'en-gb', 'en-ie', 'en-il', 'en-in', 'en-nz', 'en-sg'],\n };\n\n get(): Observable<LocaleOptions> {\n return this.localeOptions\n ? of(this.localeOptions)\n : this.getLocaleConfig().pipe(\n tap(\n (localeOptions: LocaleOptions) =>\n (this.localeOptions = { ...localeOptions, locale: this.locale }),\n ),\n );\n }\n\n getLocale(): Observable<string> {\n return this.locale\n ? of(this.locale)\n : from(this.getUserData()).pipe(\n map((userData: any) => {\n const locale = <string>userData.locale || <string>userData.tenantLocale || 'pt-BR';\n this.locale = locale;\n return this.locale;\n }),\n );\n }\n\n /**\n * Returns an object with the locale options based on the user's locale(platform locale).\n * @return The locale options object.\n */\n getLocaleOptions(): LocaleOptions | undefined {\n return this.localeOptions;\n }\n\n private getUserData() {\n try {\n return of(JSON.parse(this.cookieService.get('com.senior.token')));\n } catch (ex) {\n console.warn('Unable to obtain user locale from cookie, calling getUser');\n return user.getUserData();\n }\n }\n\n /**\n * Set valid locale for moment js locale based on user current locale.\n * Sometimes the locale from user not exists in locale of moment, for example, is valid user with language 'es-CO' but for the momentjs the locale 'es-CO' not exist, so with this function will be applied the 'es' locale.\n * @param userLocale\n * @returns valid locale based in user locale.\n */\n private parseUserLocaleToMoment(userLocale: string): string {\n userLocale = userLocale.toLowerCase();\n if (userLocale.startsWith('es') && !this.VALID_MOMENT_LANGUAGES.spanish.includes(userLocale)) {\n userLocale = 'es';\n }\n if (userLocale.startsWith('en') && !this.VALID_MOMENT_LANGUAGES.english.includes(userLocale)) {\n userLocale = 'en';\n }\n return userLocale;\n }\n\n private getLocaleConfig(): Observable<LocaleOptions> {\n return this.getLocale().pipe(\n switchMap((locale: string) => {\n moment.locale(this.parseUserLocaleToMoment(locale));\n\n return this.http\n .get<ILocaleOptions>(`${this.localeOptionsAddress}/${this.localeOptionsVersion}/${locale}.json`)\n .pipe(map((response) => new LocaleOptions({ ...response, locale })));\n }),\n catchError((err: any) => {\n console.warn(`Error getting locale configuration. Using fallback.`, err);\n return user.getUserData();\n }),\n );\n }\n\n getGroupingSeparator(): string | undefined {\n const numberFormat = new Intl.NumberFormat(this.locale, {\n style: 'decimal',\n useGrouping: true,\n minimumFractionDigits: 5,\n maximumFractionDigits: 5,\n });\n\n // The default groupingSeparator for 'fr' is the character code 8239. We need it to be the regular space.\n if (this.locale?.includes('fr')) return ' ';\n\n return numberFormat.formatToParts(1000).find((part) => part.type === 'group')?.value;\n }\n\n getDecimalSeparator(): string | undefined {\n const numberFormat = new Intl.NumberFormat(this.locale, {\n style: 'decimal',\n minimumFractionDigits: 5,\n maximumFractionDigits: 5,\n });\n\n return numberFormat.formatToParts(1.2).find((part) => part.type === 'decimal')?.value;\n }\n}\n\n","import BigNumber from 'bignumber.js';\n\nexport interface LocalizedBignumberOptions {\n decimalSeparator?: string;\n thousandsSeparator?: string;\n scale?: number;\n prefix?: string;\n suffix?: string;\n allowNegative?: boolean;\n}\n\nexport function applyLocalizedMask(\n rawValue: any,\n options: Required<LocalizedBignumberOptions>,\n isNumber: boolean,\n): string {\n const { allowNegative, decimalSeparator, scale, prefix, suffix, thousandsSeparator } = options;\n const value = isNumber ? new BigNumber(rawValue).toFixed(scale).toString() : String(rawValue);\n const onlyNumbers = value.replace(/\\D/g, '');\n if (!onlyNumbers) {\n return '';\n }\n const integerPart =\n onlyNumbers\n .slice(0, onlyNumbers.length - scale)\n .replace(/^0*/g, '')\n .replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator) || '0';\n const decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);\n const newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;\n const isZero = !integerPart && !decimalPart;\n const operator = String(value).includes('-') && allowNegative && !isZero ? '-' : '';\n return `${operator}${prefix}${newValue}${suffix}`;\n}\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport { LocaleService } from '../locale.service';\r\nimport { map } from 'rxjs/operators';\r\nimport { of } from 'rxjs';\r\nimport BigNumber from 'bignumber.js';\r\nimport { applyLocalizedMask, LocalizedBignumberOptions } from '../apply-localized-mask';\r\n\r\nexport type { LocalizedBignumberOptions };\r\n\r\n@Pipe({\r\n name: 'localizedBignumber',\r\n standalone: true,\r\n})\r\nexport class LocalizedBignumberPipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n public transform(value?: any, options?: LocalizedBignumberOptions): any {\r\n return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);\r\n }\r\n\r\n private applyMask(value?: any, options?: LocalizedBignumberOptions) {\r\n return this.localeService.get().pipe(\r\n map((localeConfig) => {\r\n const configs: Required<LocalizedBignumberOptions> = {\r\n prefix: options?.prefix ?? localeConfig?.number?.currencySymbol ?? 'R$',\r\n thousandsSeparator: options?.thousandsSeparator ?? localeConfig?.number?.thousandsSeparator ?? '.',\r\n decimalSeparator: options?.decimalSeparator ?? localeConfig?.number?.decimalSeparator ?? ',',\r\n scale: options?.scale ?? 2,\r\n suffix: options?.suffix ?? '',\r\n allowNegative: options?.allowNegative ?? true,\r\n };\r\n const isNumber = !new BigNumber(value).isNaN();\r\n return applyLocalizedMask(value, configs, isNumber);\r\n }),\r\n );\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\nimport { LocalizedBignumberOptions, LocalizedBignumberPipe } from './localized-bignumber.pipe';\r\n\r\n@Pipe({\r\n name: 'localizedBignumberImpure',\r\n pure: false,\r\n standalone: true,\r\n})\r\nexport class LocalizedBignumberImpurePipe extends LocalizedBignumberPipe implements PipeTransform {\r\n public override transform(value?: any, options?: LocalizedBignumberOptions): any {\r\n return super.transform(value, options);\r\n }\r\n}\r\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport { LocaleService } from '../locale.service';\r\nimport { map } from 'rxjs/operators';\r\nimport { of } from 'rxjs';\r\nimport { INumberLocaleOptions, NumberLocaleOptions } from '../options';\r\n\r\nexport interface ILocalizedCurrencyPipeOptions extends INumberLocaleOptions {\r\n scale?: number;\r\n}\r\n\r\nexport class LocalizedCurrencyPipeOptions extends NumberLocaleOptions implements ILocalizedCurrencyPipeOptions {\r\n public scale = 2;\r\n\r\n constructor(config: ILocalizedCurrencyPipeOptions = {}) {\r\n super(config);\r\n }\r\n}\r\n\r\n/**\r\n * @deprecated Should use localizedBignumberPipe instead\r\n */\r\n@Pipe({\r\n name: 'localizedCurrency',\r\n standalone: true,\r\n})\r\nexport class LocalizedCurrencyPipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n public transform(value?: any, options?: LocalizedCurrencyPipeOptions): any {\r\n if (!options) {\r\n options = new LocalizedCurrencyPipeOptions();\r\n }\r\n return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);\r\n }\r\n\r\n private applyMask(value: any, options: LocalizedCurrencyPipeOptions) {\r\n return this.localeService.get().pipe(\r\n map((localeConfig) => {\r\n const config = { ...localeConfig.number, ...options };\r\n const { scale, currencySymbol, thousandsSeparator, decimalSeparator } = config;\r\n\r\n const rawValue = Number(value).toFixed(scale);\r\n const onlyNumbers = rawValue.replace(/[^0-9]/g, ``);\r\n const integerPart =\r\n onlyNumbers\r\n .slice(0, onlyNumbers.length - scale)\r\n .replace(/^0*/g, ``)\r\n .replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator!) || `0`;\r\n const decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);\r\n const newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;\r\n const isZero = !Number(onlyNumbers);\r\n const operator = rawValue.includes('-') && !isZero ? '-' : '';\r\n return `${operator}${currencySymbol}${newValue}`;\r\n }),\r\n );\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\nimport { LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions } from './localized-currency.pipe';\r\n\r\n/**\r\n * @deprecated Should use localizedBignumberPipe instead\r\n */\r\n@Pipe({\r\n name: 'localizedCurrencyImpure',\r\n pure: false,\r\n standalone: true,\r\n})\r\nexport class LocalizedCurrencyImpurePipe extends LocalizedCurrencyPipe implements PipeTransform {\r\n public override transform(\r\n value?: any,\r\n options: LocalizedCurrencyPipeOptions = new LocalizedCurrencyPipeOptions(),\r\n ): any {\r\n return super.transform(value, options);\r\n }\r\n}\r\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\n\r\nimport moment from 'moment';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport { LocaleService } from '../locale.service';\r\n\r\n@Pipe({\r\n name: 'localizedDate',\r\n standalone: true,\r\n})\r\nexport class LocalizedDatePipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n public transform(value: any, format: string = 'L LTS'): any {\r\n return this.localeService.get().pipe(map(() => (value ? moment(value).format(format) : value)));\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { LocalizedDatePipe } from './localized-date.pipe';\r\n\r\n@Pipe({\r\n name: 'localizedDateImpure',\r\n pure: false,\r\n standalone: true,\r\n})\r\nexport class LocalizedDateImpurePipe extends LocalizedDatePipe implements PipeTransform {}\r\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport { from } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { LocaleService } from '../locale.service';\r\n\r\n/**\r\n * @deprecated Should use localizedBignumberPipe instead\r\n */\r\n@Pipe({\r\n name: 'localizedNumber',\r\n standalone: true,\r\n})\r\nexport class LocalizedNumberPipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n transform(value: number | string, minimumFractionDigits?: number) {\r\n return from(this.localeService.getLocale()).pipe(\r\n map((locale: string) => {\r\n const numericValue = Number(value);\r\n\r\n if (!value && isNaN(numericValue)) return;\r\n\r\n return new Intl.NumberFormat(locale, {\r\n minimumFractionDigits: minimumFractionDigits || 0,\r\n }).format(Number(value));\r\n }),\r\n );\r\n }\r\n}\r\n\r\nexport interface Locale {\r\n localidade?: string;\r\n tenantLocale?: string;\r\n}\r\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport moment from 'moment';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport { LocaleService } from '../locale.service';\r\n\r\n@Pipe({\r\n name: 'localizedTime',\r\n standalone: true,\r\n})\r\nexport class LocalizedTimePipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n public transform(value: any, format: string = 'LTS'): any {\r\n return this.localeService.get().pipe(map(() => (value ? moment(value, 'HH:mm:ss').format(format) : value)));\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { LocalizedTimePipe } from './localized-time.pipe';\r\n\r\n@Pipe({\r\n name: 'localizedTimeImpure',\r\n pure: false,\r\n standalone: true,\r\n})\r\nexport class LocalizedTimeImpurePipe extends LocalizedTimePipe implements PipeTransform {}\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\n\r\nimport { LocaleService } from './locale.service';\r\nimport { LocalizedBignumberImpurePipe } from './pipes/localized-bignumber-impure.pipe';\r\nimport { LocalizedBignumberPipe } from './pipes/localized-bignumber.pipe';\r\nimport { LocalizedCurrencyImpurePipe } from './pipes/localized-currency-impure.pipe';\r\nimport { LocalizedCurrencyPipe } from './pipes/localized-currency.pipe';\r\nimport { LocalizedDateImpurePipe } from './pipes/localized-date-impure.pipe';\r\nimport { LocalizedDatePipe } from './pipes/localized-date.pipe';\r\nimport { LocalizedNumberPipe } from './pipes/localized-number.pipe';\r\nimport { LocalizedTimeImpurePipe } from './pipes/localized-time-impure.pipe';\r\nimport { LocalizedTimePipe } from './pipes/localized-time.pipe';\r\n\r\n@NgModule({\r\n imports: [\r\n LocalizedCurrencyPipe,\r\n LocalizedDatePipe,\r\n LocalizedTimePipe,\r\n LocalizedNumberPipe,\r\n LocalizedCurrencyImpurePipe,\r\n LocalizedDateImpurePipe,\r\n LocalizedTimeImpurePipe,\r\n LocalizedBignumberPipe,\r\n LocalizedBignumberImpurePipe,\r\n ],\r\n exports: [\r\n LocalizedCurrencyPipe,\r\n LocalizedDatePipe,\r\n LocalizedTimePipe,\r\n LocalizedNumberPipe,\r\n LocalizedCurrencyImpurePipe,\r\n LocalizedDateImpurePipe,\r\n LocalizedTimeImpurePipe,\r\n LocalizedBignumberPipe,\r\n LocalizedBignumberImpurePipe,\r\n ],\r\n})\r\nexport class LocaleModule {\r\n public static forRoot(): ModuleWithProviders<LocaleModule> {\r\n return {\r\n ngModule: LocaleModule,\r\n providers: [\r\n LocaleService,\r\n LocalizedCurrencyPipe,\r\n LocalizedDatePipe,\r\n LocalizedTimePipe,\r\n LocalizedNumberPipe,\r\n LocalizedCurrencyImpurePipe,\r\n LocalizedDateImpurePipe,\r\n LocalizedTimeImpurePipe,\r\n LocalizedBignumberPipe,\r\n LocalizedBignumberImpurePipe,\r\n ],\r\n };\r\n }\r\n\r\n public static forChild(): ModuleWithProviders<LocaleModule> {\r\n return {\r\n ngModule: LocaleModule,\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAaa,qBAAqB,CAAA;IACvB,UAAU,GAAI,IAAI,CAAC;IACnB,UAAU,GAAI,UAAU,CAAC;IACzB,cAAc,GAAI,CAAC,CAAC;IACpB,KAAK,GAAI,MAAM,CAAC;IAChB,KAAK,GAAI,QAAQ,CAAC;AAClB,IAAA,QAAQ,GAAc,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC7F,IAAA,aAAa,GAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7E,IAAA,WAAW,GAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC7D,eAAe,GAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClH,UAAU,GAAc,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,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locale.mjs","sources":["../../projects/angular-components/locale/src/lib/locale/options/calendar.ts","../../projects/angular-components/locale/src/lib/locale/options/number.ts","../../projects/angular-components/locale/src/lib/locale/options/index.ts","../../projects/angular-components/locale/src/lib/locale/options/locale-presets.ts","../../projects/angular-components/locale/src/lib/locale/locale.service.ts","../../projects/angular-components/locale/src/lib/locale/apply-localized-mask.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-bignumber.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-bignumber-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-currency.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-currency-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-date.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-date-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-number.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-time.pipe.ts","../../projects/angular-components/locale/src/lib/locale/pipes/localized-time-impure.pipe.ts","../../projects/angular-components/locale/src/lib/locale/locale.module.ts","../../projects/angular-components/locale/src/lib/locale/provide-locale.ts","../../projects/angular-components/locale/src/seniorsistemas-angular-components-locale.ts"],"sourcesContent":["export interface ICalendarLocaleOptions {\n hourFormat?: string;\n dateFormat?: string;\n firstDayOfWeek?: number;\n today?: string;\n clear?: string;\n dayNames?: string[];\n dayNamesShort?: string[];\n dayNamesMin?: string[];\n monthNamesShort?: string[];\n monthNames?: string[];\n}\n\nexport class CalendarLocaleOptions implements ICalendarLocaleOptions {\n public hourFormat? = '24';\n public dateFormat? = 'dd/mm/yy';\n public firstDayOfWeek? = 0;\n public today? = 'Hoje';\n public clear? = 'Limpar';\n public dayNames?: string[] = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'];\n public dayNamesShort?: string[] = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'];\n public dayNamesMin?: string[] = ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'];\n public monthNamesShort?: string[] = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'];\n public monthNames?: string[] = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];\n\n constructor(config: ICalendarLocaleOptions = {}) {\n this.clear = config?.clear ?? this.clear;\n this.dateFormat = config?.dateFormat ?? this.dateFormat;\n this.dayNames = config?.dayNames ?? this.dayNames;\n this.dayNamesMin = config?.dayNamesMin ?? this.dayNamesMin;\n this.firstDayOfWeek = config?.firstDayOfWeek ?? this.firstDayOfWeek;\n this.hourFormat = config?.hourFormat ?? this.hourFormat;\n this.monthNames = config?.monthNames ?? this.monthNames;\n this.monthNamesShort = config?.monthNamesShort ?? this.monthNamesShort;\n this.today = config?.today ?? this.today;\n }\n}\n","export interface INumberLocaleOptions {\n thousandsSeparator?: string;\n decimalSeparator?: string;\n currencySymbol?: string;\n}\n\nexport class NumberLocaleOptions implements INumberLocaleOptions {\n public thousandsSeparator? = \".\";\n public decimalSeparator? = \",\";\n public currencySymbol? = \"R$\";\n\n constructor(config: INumberLocaleOptions = {}) {\n Object.assign(this, config);\n }\n}\n","import { CalendarLocaleOptions } from './calendar';\nimport { NumberLocaleOptions } from './number';\n\nexport interface ILocaleOptions {\n locale?: string;\n calendar?: CalendarLocaleOptions;\n number?: NumberLocaleOptions;\n}\n\nexport class LocaleOptions implements ILocaleOptions {\n locale? = 'pt-BR';\n calendar = new CalendarLocaleOptions({});\n number = new NumberLocaleOptions();\n\n constructor(config: ILocaleOptions = {}) {\n this.calendar = config.calendar ?? this.calendar;\n this.number = config.number ?? this.number;\n this.locale = config.locale ?? this.locale;\n // Object.keys(config).forEach(key => (this[key] = config[key] || this[key]));\n }\n}\n\nexport * from './calendar';\nexport * from './number';\n\n","import { NumberLocaleOptions } from './number';\nimport { ILocaleOptions, LocaleOptions } from './index';\n\nconst PT_BR_PRESET: ILocaleOptions = {\n calendar: {\n hourFormat: '24',\n dateFormat: 'dd/mm/yy',\n firstDayOfWeek: 0,\n dayNames: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],\n dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],\n dayNamesMin: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],\n monthNames: [\n 'Janeiro',\n 'Fevereiro',\n 'Março',\n 'Abril',\n 'Maio',\n 'Junho',\n 'Julho',\n 'Agosto',\n 'Setembro',\n 'Outubro',\n 'Novembro',\n 'Dezembro',\n ],\n monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],\n today: 'Hoje',\n clear: 'Limpar',\n },\n number: {\n currencySymbol: 'R$',\n thousandsSeparator: '.',\n decimalSeparator: ',',\n },\n};\n\nconst ES_PRESET: ILocaleOptions = {\n calendar: {\n hourFormat: '24',\n dateFormat: 'dd/mm/yy',\n firstDayOfWeek: 0,\n dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],\n dayNamesShort: ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'],\n dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],\n monthNames: [\n 'Enero',\n 'Febrero',\n 'Marzo',\n 'Abril',\n 'Mayo',\n 'Junio',\n 'Julio',\n 'Agosto',\n 'Septiembre',\n 'Octubre',\n 'Noviembre',\n 'Diciembre',\n ],\n monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],\n today: 'Hoy',\n clear: 'Limpiar',\n },\n number: {\n currencySymbol: '€',\n thousandsSeparator: '.',\n decimalSeparator: ',',\n },\n};\n\nconst EN_US_PRESET: ILocaleOptions = {\n calendar: {\n hourFormat: '12',\n dateFormat: 'mm/dd/yy',\n firstDayOfWeek: 0,\n dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n dayNamesMin: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n monthNames: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December',\n ],\n monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n today: 'Today',\n clear: 'Clear',\n },\n number: {\n currencySymbol: '$',\n thousandsSeparator: ',',\n decimalSeparator: '.',\n },\n};\n\n/**\n * @description Configurações de locale embarcadas na biblioteca. Mesmo conteúdo publicado\n * anteriormente em `cdn.senior.com.br/primeng/locales/3.0.0`.\n */\nexport const LOCALE_PRESETS: Readonly<Record<string, ILocaleOptions>> = {\n 'pt-BR': PT_BR_PRESET,\n 'es-ES': ES_PRESET,\n 'es-419': ES_PRESET,\n 'en-US': EN_US_PRESET,\n};\n\n/** Preset usado para locales sem preset exato, a partir do idioma base. */\nconst BASE_LANGUAGE_PRESETS: Readonly<Record<string, ILocaleOptions>> = {\n pt: PT_BR_PRESET,\n es: ES_PRESET,\n en: EN_US_PRESET,\n};\n\n/**\n * @description Separador decimal do locale, obtido via `Intl.NumberFormat`.\n */\nexport function getLocaleDecimalSeparator(locale?: string): string | undefined {\n const numberFormat = new Intl.NumberFormat(locale, {\n style: 'decimal',\n minimumFractionDigits: 5,\n maximumFractionDigits: 5,\n });\n\n return numberFormat.formatToParts(1.2).find((part) => part.type === 'decimal')?.value;\n}\n\n/**\n * @description Separador de milhar do locale, obtido via `Intl.NumberFormat`.\n */\nexport function getLocaleGroupingSeparator(locale?: string): string | undefined {\n // The default groupingSeparator for 'fr' is the character code 8239. We need it to be the regular space.\n if (locale?.includes('fr')) return ' ';\n\n const numberFormat = new Intl.NumberFormat(locale, {\n style: 'decimal',\n useGrouping: true,\n minimumFractionDigits: 5,\n maximumFractionDigits: 5,\n });\n\n return numberFormat.formatToParts(1000).find((part) => part.type === 'group')?.value;\n}\n\n/**\n * @description Formato de data do locale na convenção usada pelos presets (`dd/mm/yy`, onde `yy` é o ano com 4 dígitos).\n */\nfunction getLocaleDateFormat(locale: string): string {\n const tokens: Partial<Record<Intl.DateTimeFormatPartTypes, string>> = { day: 'dd', month: 'mm', year: 'yy' };\n\n return new Intl.DateTimeFormat(locale, { day: '2-digit', month: '2-digit', year: 'numeric' })\n .formatToParts(new Date(2000, 0, 1))\n .map((part) => tokens[part.type] ?? part.value)\n .join('');\n}\n\nfunction getLocaleHourFormat(locale: string): string {\n const { hourCycle, hour12 } = new Intl.DateTimeFormat(locale, { hour: 'numeric' }).resolvedOptions();\n const is12h = hourCycle ? hourCycle === 'h11' || hourCycle === 'h12' : !!hour12;\n\n return is12h ? '12' : '24';\n}\n\nfunction findPreset(locale: string, presets: Readonly<Record<string, ILocaleOptions>>): ILocaleOptions | undefined {\n const key = Object.keys(presets).find((presetKey) => presetKey.toLowerCase() === locale.toLowerCase());\n return key ? presets[key] : undefined;\n}\n\nfunction clonePreset(preset: ILocaleOptions, locale: string): LocaleOptions {\n return new LocaleOptions({\n locale,\n calendar: structuredClone(preset.calendar),\n number: structuredClone(preset.number),\n });\n}\n\n/**\n * @description Monta as opções de locale sem acesso à rede.\n * Locales com preset exato (`pt-BR`, `es-ES`, `es-419`, `en-US`) retornam o preset.\n * Os demais usam os textos do preset do idioma base (ou pt-BR), com separadores e formatos\n * de data/hora derivados via `Intl`. O símbolo de moeda segue o padrão `R$`, pois não é\n * possível inferir a moeda a partir do idioma.\n */\nexport function buildLocaleOptions(locale: string): LocaleOptions {\n const exactPreset = findPreset(locale, LOCALE_PRESETS);\n if (exactPreset) {\n return clonePreset(exactPreset, locale);\n }\n\n const basePreset = findPreset(locale.split('-')[0], BASE_LANGUAGE_PRESETS) ?? PT_BR_PRESET;\n\n try {\n return new LocaleOptions({\n locale,\n calendar: {\n ...structuredClone(basePreset.calendar),\n dateFormat: getLocaleDateFormat(locale),\n hourFormat: getLocaleHourFormat(locale),\n },\n number: new NumberLocaleOptions({\n decimalSeparator: getLocaleDecimalSeparator(locale) ?? ',',\n thousandsSeparator: getLocaleGroupingSeparator(locale) ?? '',\n }),\n });\n } catch {\n // Locale inválido para o Intl (ex.: 'pt_BR').\n return clonePreset(PT_BR_PRESET, locale);\n }\n}\n","import { Injectable, inject } from '@angular/core';\n\nimport { user } from '@seniorsistemas/senior-platform-data';\nimport moment from 'moment';\nimport { from, Observable, of } from 'rxjs';\nimport { map, tap } from 'rxjs/operators';\nimport { CookieService } from 'ngx-cookie-service';\n\nimport { LocaleOptions } from './options/index';\nimport { buildLocaleOptions, getLocaleDecimalSeparator, getLocaleGroupingSeparator } from './options/locale-presets';\n\nimport 'moment/locale/es';\nimport 'moment/locale/pt-br';\n\n/**\n * @description Serviço de localização que obtém e armazena o locale do usuário\n * a partir da plataforma Senior. Fornece separadores decimais e de milhar,\n * configurações de calendário e opções de formato PrimeNG com base no locale ativo.\n *\n * @category Locale\n */\n@Injectable({ providedIn: 'root' })\nexport class LocaleService {\n private readonly cookieService = inject(CookieService);\n\n private locale?: string;\n private localeOptions?: LocaleOptions;\n private readonly VALID_MOMENT_LANGUAGES = {\n spanish: ['es-do', 'es-mx', 'es-us', 'es'],\n english: ['en', 'en-au', 'en-ca', 'en-gb', 'en-ie', 'en-il', 'en-in', 'en-nz', 'en-sg'],\n };\n\n get(): Observable<LocaleOptions> {\n return this.localeOptions\n ? of(this.localeOptions)\n : this.getLocaleConfig().pipe(\n tap(\n (localeOptions: LocaleOptions) =>\n (this.localeOptions = { ...localeOptions, locale: this.locale }),\n ),\n );\n }\n\n getLocale(): Observable<string> {\n return this.locale\n ? of(this.locale)\n : from(this.getUserData()).pipe(\n map((userData: any) => {\n const locale = <string>userData.locale || <string>userData.tenantLocale || 'pt-BR';\n this.locale = locale;\n return this.locale;\n }),\n );\n }\n\n /**\n * Returns an object with the locale options based on the user's locale(platform locale).\n * @return The locale options object.\n */\n getLocaleOptions(): LocaleOptions | undefined {\n return this.localeOptions;\n }\n\n private getUserData() {\n try {\n return of(JSON.parse(this.cookieService.get('com.senior.token')));\n } catch (ex) {\n console.warn('Unable to obtain user locale from cookie, calling getUser');\n return user.getUserData();\n }\n }\n\n /**\n * Set valid locale for moment js locale based on user current locale.\n * Sometimes the locale from user not exists in locale of moment, for example, is valid user with language 'es-CO' but for the momentjs the locale 'es-CO' not exist, so with this function will be applied the 'es' locale.\n * @param userLocale\n * @returns valid locale based in user locale.\n */\n private parseUserLocaleToMoment(userLocale: string): string {\n userLocale = userLocale.toLowerCase();\n if (userLocale.startsWith('es') && !this.VALID_MOMENT_LANGUAGES.spanish.includes(userLocale)) {\n userLocale = 'es';\n }\n if (userLocale.startsWith('en') && !this.VALID_MOMENT_LANGUAGES.english.includes(userLocale)) {\n userLocale = 'en';\n }\n return userLocale;\n }\n\n private getLocaleConfig(): Observable<LocaleOptions> {\n return this.getLocale().pipe(\n map((locale: string) => {\n moment.locale(this.parseUserLocaleToMoment(locale));\n return buildLocaleOptions(locale);\n }),\n );\n }\n\n getGroupingSeparator(): string | undefined {\n return getLocaleGroupingSeparator(this.locale);\n }\n\n getDecimalSeparator(): string | undefined {\n return getLocaleDecimalSeparator(this.locale);\n }\n}\n\n","import BigNumber from 'bignumber.js';\n\nexport interface LocalizedBignumberOptions {\n decimalSeparator?: string;\n thousandsSeparator?: string;\n scale?: number;\n prefix?: string;\n suffix?: string;\n allowNegative?: boolean;\n}\n\nexport function applyLocalizedMask(\n rawValue: any,\n options: Required<LocalizedBignumberOptions>,\n isNumber: boolean,\n): string {\n const { allowNegative, decimalSeparator, scale, prefix, suffix, thousandsSeparator } = options;\n const value = isNumber ? new BigNumber(rawValue).toFixed(scale).toString() : String(rawValue);\n const onlyNumbers = value.replace(/\\D/g, '');\n if (!onlyNumbers) {\n return '';\n }\n const integerPart =\n onlyNumbers\n .slice(0, onlyNumbers.length - scale)\n .replace(/^0*/g, '')\n .replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator) || '0';\n const decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);\n const newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;\n const isZero = !integerPart && !decimalPart;\n const operator = String(value).includes('-') && allowNegative && !isZero ? '-' : '';\n return `${operator}${prefix}${newValue}${suffix}`;\n}\n","import { Pipe, PipeTransform, inject } from '@angular/core';\nimport { LocaleService } from '../locale.service';\nimport { map } from 'rxjs/operators';\nimport { of } from 'rxjs';\nimport BigNumber from 'bignumber.js';\nimport { applyLocalizedMask, LocalizedBignumberOptions } from '../apply-localized-mask';\n\nexport type { LocalizedBignumberOptions };\n\n/**\n * Opções do pipe `localizedBignumber`: as da máscara mais as de compatibilidade com os pipes depreciados\n * `localizedNumber` e `localizedCurrency`, que formatavam valores vazios como `0`.\n */\nexport interface LocalizedBignumberPipeOptions extends LocalizedBignumberOptions {\n /**\n * Quando `true`, uma string vazia (ou só com espaços) é formatada como `0`, em vez de ficar vazia.\n * É o comportamento dos pipes depreciados `localizedNumber` e `localizedCurrency` (`Number('')` é `0`).\n * @default false\n */\n emptyAsZero?: boolean;\n /**\n * Quando `true`, `null` é formatado como `0`, em vez de ser devolvido como está.\n * É o comportamento do pipe depreciado `localizedNumber` (`Number(null)` é `0`). `undefined` nunca é convertido.\n * @default false\n */\n nullAsZero?: boolean;\n}\n\n@Pipe({\n name: 'localizedBignumber',\n standalone: true,\n})\nexport class LocalizedBignumberPipe implements PipeTransform {\n private localeService = inject(LocaleService);\n\n public transform(value?: any, options?: LocalizedBignumberPipeOptions): any {\n const input = this.coerceEmpty(value, options);\n return input !== undefined && input !== null ? this.applyMask(input, options) : of(input);\n }\n\n private coerceEmpty(value: any, options?: LocalizedBignumberPipeOptions): any {\n if (options?.nullAsZero && value === null) return 0;\n if (options?.emptyAsZero && typeof value === 'string' && value.trim() === '') return 0;\n return value;\n }\n\n private applyMask(value?: any, options?: LocalizedBignumberPipeOptions) {\n return this.localeService.get().pipe(\n map((localeConfig) => {\n const configs: Required<LocalizedBignumberOptions> = {\n prefix: options?.prefix ?? localeConfig?.number?.currencySymbol ?? 'R$',\n thousandsSeparator: options?.thousandsSeparator ?? localeConfig?.number?.thousandsSeparator ?? '.',\n decimalSeparator: options?.decimalSeparator ?? localeConfig?.number?.decimalSeparator ?? ',',\n scale: options?.scale ?? 2,\n suffix: options?.suffix ?? '',\n allowNegative: options?.allowNegative ?? true,\n };\n const isNumber = !new BigNumber(value).isNaN();\n return applyLocalizedMask(value, configs, isNumber);\n }),\n );\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { LocalizedBignumberPipe, LocalizedBignumberPipeOptions } from './localized-bignumber.pipe';\n\n@Pipe({\n name: 'localizedBignumberImpure',\n pure: false,\n standalone: true,\n})\nexport class LocalizedBignumberImpurePipe extends LocalizedBignumberPipe implements PipeTransform {\n public override transform(value?: any, options?: LocalizedBignumberPipeOptions): any {\n return super.transform(value, options);\n }\n}\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport { LocaleService } from '../locale.service';\r\nimport { map } from 'rxjs/operators';\r\nimport { of } from 'rxjs';\r\nimport { INumberLocaleOptions, NumberLocaleOptions } from '../options';\r\n\r\nexport interface ILocalizedCurrencyPipeOptions extends INumberLocaleOptions {\r\n scale?: number;\r\n}\r\n\r\nexport class LocalizedCurrencyPipeOptions extends NumberLocaleOptions implements ILocalizedCurrencyPipeOptions {\r\n public scale = 2;\r\n\r\n constructor(config: ILocalizedCurrencyPipeOptions = {}) {\r\n super(config);\r\n }\r\n}\r\n\r\n/**\r\n * @deprecated Should use localizedBignumberPipe instead\r\n */\r\n@Pipe({\r\n name: 'localizedCurrency',\r\n standalone: true,\r\n})\r\nexport class LocalizedCurrencyPipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n public transform(value?: any, options?: LocalizedCurrencyPipeOptions): any {\r\n if (!options) {\r\n options = new LocalizedCurrencyPipeOptions();\r\n }\r\n return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);\r\n }\r\n\r\n private applyMask(value: any, options: LocalizedCurrencyPipeOptions) {\r\n return this.localeService.get().pipe(\r\n map((localeConfig) => {\r\n const config = { ...localeConfig.number, ...options };\r\n const { scale, currencySymbol, thousandsSeparator, decimalSeparator } = config;\r\n\r\n const rawValue = Number(value).toFixed(scale);\r\n const onlyNumbers = rawValue.replace(/[^0-9]/g, ``);\r\n const integerPart =\r\n onlyNumbers\r\n .slice(0, onlyNumbers.length - scale)\r\n .replace(/^0*/g, ``)\r\n .replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator!) || `0`;\r\n const decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);\r\n const newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;\r\n const isZero = !Number(onlyNumbers);\r\n const operator = rawValue.includes('-') && !isZero ? '-' : '';\r\n return `${operator}${currencySymbol}${newValue}`;\r\n }),\r\n );\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\nimport { LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions } from './localized-currency.pipe';\r\n\r\n/**\r\n * @deprecated Should use localizedBignumberPipe instead\r\n */\r\n@Pipe({\r\n name: 'localizedCurrencyImpure',\r\n pure: false,\r\n standalone: true,\r\n})\r\nexport class LocalizedCurrencyImpurePipe extends LocalizedCurrencyPipe implements PipeTransform {\r\n public override transform(\r\n value?: any,\r\n options: LocalizedCurrencyPipeOptions = new LocalizedCurrencyPipeOptions(),\r\n ): any {\r\n return super.transform(value, options);\r\n }\r\n}\r\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\n\r\nimport moment from 'moment';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport { LocaleService } from '../locale.service';\r\n\r\n@Pipe({\r\n name: 'localizedDate',\r\n standalone: true,\r\n})\r\nexport class LocalizedDatePipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n public transform(value: any, format: string = 'L LTS'): any {\r\n return this.localeService.get().pipe(map(() => (value ? moment(value).format(format) : value)));\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { LocalizedDatePipe } from './localized-date.pipe';\r\n\r\n@Pipe({\r\n name: 'localizedDateImpure',\r\n pure: false,\r\n standalone: true,\r\n})\r\nexport class LocalizedDateImpurePipe extends LocalizedDatePipe implements PipeTransform {}\r\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport { from } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { LocaleService } from '../locale.service';\r\n\r\n/**\r\n * @deprecated Should use localizedBignumberPipe instead\r\n */\r\n@Pipe({\r\n name: 'localizedNumber',\r\n standalone: true,\r\n})\r\nexport class LocalizedNumberPipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n transform(value: number | string, minimumFractionDigits?: number) {\r\n return from(this.localeService.getLocale()).pipe(\r\n map((locale: string) => {\r\n const numericValue = Number(value);\r\n\r\n if (!value && isNaN(numericValue)) return;\r\n\r\n return new Intl.NumberFormat(locale, {\r\n minimumFractionDigits: minimumFractionDigits || 0,\r\n }).format(Number(value));\r\n }),\r\n );\r\n }\r\n}\r\n\r\nexport interface Locale {\r\n localidade?: string;\r\n tenantLocale?: string;\r\n}\r\n","import { Pipe, PipeTransform, inject } from '@angular/core';\r\nimport moment from 'moment';\r\nimport { map } from 'rxjs/operators';\r\n\r\nimport { LocaleService } from '../locale.service';\r\n\r\n@Pipe({\r\n name: 'localizedTime',\r\n standalone: true,\r\n})\r\nexport class LocalizedTimePipe implements PipeTransform {\r\n private localeService = inject(LocaleService);\r\n\r\n public transform(value: any, format: string = 'LTS'): any {\r\n return this.localeService.get().pipe(map(() => (value ? moment(value, 'HH:mm:ss').format(format) : value)));\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { LocalizedTimePipe } from './localized-time.pipe';\r\n\r\n@Pipe({\r\n name: 'localizedTimeImpure',\r\n pure: false,\r\n standalone: true,\r\n})\r\nexport class LocalizedTimeImpurePipe extends LocalizedTimePipe implements PipeTransform {}\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\n\r\nimport { LocaleService } from './locale.service';\r\nimport { LocalizedBignumberImpurePipe } from './pipes/localized-bignumber-impure.pipe';\r\nimport { LocalizedBignumberPipe } from './pipes/localized-bignumber.pipe';\r\nimport { LocalizedCurrencyImpurePipe } from './pipes/localized-currency-impure.pipe';\r\nimport { LocalizedCurrencyPipe } from './pipes/localized-currency.pipe';\r\nimport { LocalizedDateImpurePipe } from './pipes/localized-date-impure.pipe';\r\nimport { LocalizedDatePipe } from './pipes/localized-date.pipe';\r\nimport { LocalizedNumberPipe } from './pipes/localized-number.pipe';\r\nimport { LocalizedTimeImpurePipe } from './pipes/localized-time-impure.pipe';\r\nimport { LocalizedTimePipe } from './pipes/localized-time.pipe';\r\n\r\n/**\r\n * @deprecated Será removido na v20. Importe diretamente os standalones `LocalizedCurrencyPipe`,\r\n * `LocalizedDatePipe`, `LocalizedTimePipe`, `LocalizedNumberPipe`, `LocalizedCurrencyImpurePipe`,\r\n * `LocalizedDateImpurePipe`, `LocalizedTimeImpurePipe`, `LocalizedBignumberPipe` e\r\n * `LocalizedBignumberImpurePipe` (de `@seniorsistemas/angular-components/locale`) no lugar deste módulo.\r\n *\r\n * Substitua `LocaleModule.forRoot()` por `provideLocale()` (de `@seniorsistemas/angular-components/locale`).\r\n *\r\n * `LocaleModule.forChild()` não tem equivalente e pode ser removido.\r\n *\r\n * Migração automática (também executada pelo `ng update` na v20):\r\n * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`\r\n */\r\n@NgModule({\r\n imports: [\r\n LocalizedCurrencyPipe,\r\n LocalizedDatePipe,\r\n LocalizedTimePipe,\r\n LocalizedNumberPipe,\r\n LocalizedCurrencyImpurePipe,\r\n LocalizedDateImpurePipe,\r\n LocalizedTimeImpurePipe,\r\n LocalizedBignumberPipe,\r\n LocalizedBignumberImpurePipe,\r\n ],\r\n exports: [\r\n LocalizedCurrencyPipe,\r\n LocalizedDatePipe,\r\n LocalizedTimePipe,\r\n LocalizedNumberPipe,\r\n LocalizedCurrencyImpurePipe,\r\n LocalizedDateImpurePipe,\r\n LocalizedTimeImpurePipe,\r\n LocalizedBignumberPipe,\r\n LocalizedBignumberImpurePipe,\r\n ],\r\n})\r\nexport class LocaleModule {\r\n public static forRoot(): ModuleWithProviders<LocaleModule> {\r\n return {\r\n ngModule: LocaleModule,\r\n providers: [\r\n LocaleService,\r\n LocalizedCurrencyPipe,\r\n LocalizedDatePipe,\r\n LocalizedTimePipe,\r\n LocalizedNumberPipe,\r\n LocalizedCurrencyImpurePipe,\r\n LocalizedDateImpurePipe,\r\n LocalizedTimeImpurePipe,\r\n LocalizedBignumberPipe,\r\n LocalizedBignumberImpurePipe,\r\n ],\r\n };\r\n }\r\n\r\n public static forChild(): ModuleWithProviders<LocaleModule> {\r\n return {\r\n ngModule: LocaleModule,\r\n };\r\n }\r\n}\r\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\n\nimport { LocaleService } from './locale.service';\nimport { LocalizedBignumberImpurePipe } from './pipes/localized-bignumber-impure.pipe';\nimport { LocalizedBignumberPipe } from './pipes/localized-bignumber.pipe';\nimport { LocalizedCurrencyImpurePipe } from './pipes/localized-currency-impure.pipe';\nimport { LocalizedCurrencyPipe } from './pipes/localized-currency.pipe';\nimport { LocalizedDateImpurePipe } from './pipes/localized-date-impure.pipe';\nimport { LocalizedDatePipe } from './pipes/localized-date.pipe';\nimport { LocalizedNumberPipe } from './pipes/localized-number.pipe';\nimport { LocalizedTimeImpurePipe } from './pipes/localized-time-impure.pipe';\nimport { LocalizedTimePipe } from './pipes/localized-time.pipe';\n\n/**\n * Registra o `LocaleService` e os pipes de localização como providers, para que possam ser injetados\n * em classes (`inject(LocalizedDatePipe)`).\n *\n * Substitui `LocaleModule.forRoot()` e funciona em aplicações standalone (`app.config.ts`) e também\n * em `NgModule.providers`. Para usar os pipes nos templates, importe os pipes standalone diretamente.\n *\n * @example\n * ```typescript\n * export const appConfig: ApplicationConfig = {\n * providers: [provideLocale()],\n * };\n * ```\n *\n * @returns Providers de ambiente para o injetor raiz.\n */\nexport function provideLocale(): EnvironmentProviders {\n return makeEnvironmentProviders([\n LocaleService,\n LocalizedCurrencyPipe,\n LocalizedDatePipe,\n LocalizedTimePipe,\n LocalizedNumberPipe,\n LocalizedCurrencyImpurePipe,\n LocalizedDateImpurePipe,\n LocalizedTimeImpurePipe,\n LocalizedBignumberPipe,\n LocalizedBignumberImpurePipe,\n ]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MAaa,qBAAqB,CAAA;IACvB,UAAU,GAAI,IAAI,CAAC;IACnB,UAAU,GAAI,UAAU,CAAC;IACzB,cAAc,GAAI,CAAC,CAAC;IACpB,KAAK,GAAI,MAAM,CAAC;IAChB,KAAK,GAAI,QAAQ,CAAC;AAClB,IAAA,QAAQ,GAAc,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC7F,IAAA,aAAa,GAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7E,IAAA,WAAW,GAAc,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC7D,eAAe,GAAc,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,K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A2B;wBAC3B,uBAAuB;wBACvB,uBAAuB;wBACvB,sBAAsB;wBACtB,4BAA4B;AAC/B,qBAAA;AACJ,iBAAA,CAAA;;;ACpCD;;;;;;;;;;;;;;;AAeG;SACa,aAAa,GAAA;AACzB,IAAA,OAAO,wBAAwB,CAAC;QAC5B,aAAa;QACb,qBAAqB;QACrB,iBAAiB;QACjB,iBAAiB;QACjB,mBAAmB;QACnB,2BAA2B;QAC3B,uBAAuB;QACvB,uBAAuB;QACvB,sBAAsB;QACtB,4BAA4B;AAC/B,KAAA,CAAC,CAAC;AACP;;AC1CA;;AAEG;;;;"}
@@ -6,6 +6,10 @@ import { LocaleService } from '@seniorsistemas/angular-components/locale';
6
6
  import { first } from 'rxjs/operators';
7
7
 
8
8
  /**
9
+ * @deprecated Será removido na v20. Utilize a diretiva `sNumericMask` ao invés desta.
10
+ * O `precision` desta diretiva (casas decimais) corresponde ao `maxDecimalPlaces` da `sNumericMask`.
11
+ * Migração automática: `ng generate @seniorsistemas/angular-components:migrate-deprecated-apis`
12
+ *
9
13
  * @description Diretiva de validação para campos `<input>` que verificam se o valor digitado
10
14
  * é um número localizado válido (considerando separadores decimal e de milhar do locale ativo).
11
15
  * Ao ser integrada ao `NG_VALIDATORS`, adiciona o erro `invalidNumber` ao control quando
@@ -78,6 +82,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
78
82
  type: Input
79
83
  }] } });
80
84
 
85
+ /**
86
+ * @deprecated Será removido na v20. Importe diretamente o standalone `LocalizedNumberInputDirective` (de
87
+ * `@seniorsistemas/angular-components/localized-number-input`) no lugar deste módulo.
88
+ *
89
+ * Migração automática (também executada pelo `ng update` na v20):
90
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
91
+ */
81
92
  class LocalizedNumberInputModule {
82
93
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedNumberInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
83
94
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: LocalizedNumberInputModule, imports: [LocalizedNumberInputDirective], exports: [LocalizedNumberInputDirective] });
@@ -1 +1 @@
1
- {"version":3,"file":"seniorsistemas-angular-components-localized-number-input.mjs","sources":["../../projects/angular-components/localized-number-input/src/lib/localized-number-input/localized-number-input.directive.ts","../../projects/angular-components/localized-number-input/src/lib/localized-number-input/localized-number-input.module.ts","../../projects/angular-components/localized-number-input/src/seniorsistemas-angular-components-localized-number-input.ts"],"sourcesContent":["import { Directive, DestroyRef, forwardRef, Input, OnInit, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator } from '@angular/forms';\r\nimport { LocaleService } from '@seniorsistemas/angular-components/locale';\r\n\r\nimport { first } from 'rxjs/operators';\r\n\r\n/**\r\n * @description Diretiva de validação para campos `<input>` que verificam se o valor digitado\r\n * é um número localizado válido (considerando separadores decimal e de milhar do locale ativo).\r\n * Ao ser integrada ao `NG_VALIDATORS`, adiciona o erro `invalidNumber` ao control quando\r\n * o valor não corresponde ao formato esperado.\r\n *\r\n * @example\r\n * ```html\r\n * <input sLocalizedNumberInput [precision]=\"4\" formControlName=\"valor\" />\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Directive({\r\n selector: 'input[sLocalizedNumberInput]',\r\n providers: [\r\n {\r\n provide: NG_VALIDATORS,\r\n useExisting: forwardRef(() => LocalizedNumberInputDirective),\r\n multi: true,\r\n },\r\n ],\r\n standalone: true,\r\n})\r\nexport class LocalizedNumberInputDirective implements OnInit, Validator {\r\n private readonly localeService = inject(LocaleService);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n /** @description Separador decimal personalizado. Usa o do locale ativo se não informado. */\r\n @Input()\r\n public decimalSeparator?: string;\r\n\r\n /** @description Separador de milhar personalizado. Usa o do locale ativo se não informado. */\r\n @Input()\r\n public thousandsSeparator?: string;\r\n\r\n /** @description Número máximo de casas decimais aceitas na validação. @default 2 */\r\n @Input()\r\n public precision = 2;\r\n\r\n private numberRegex?: string;\r\n\r\n public ngOnInit(): void {\r\n // Gera a expressão regular para validar números de acordo com os separadores decimais e de milhares.\r\n // Exemplo: /^(\\+?)(\\-?)([0-9]{0,3})*((\\,[0-9]{3,3})|((\\,[0-9]{3,3})+(\\,[0-9]{3,3}))|((\\,[0-9]{3,3})+(\\.[0-9]{1,10})))?$/g\r\n // tslint:disable-next-line: max-line-length\r\n this.numberRegex = `^((\\\\+?)|(-?))([0-9]{1,3})+((\\\\${this.thousandsSeparator}[0-9]{3,3})|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.thousandsSeparator}[0-9]{3,3}))|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.decimalSeparator}[0-9]{1,2}))|(\\\\${this.decimalSeparator}[0-9]{1,${this.precision}}))?$`;\r\n\r\n this.localeService\r\n .getLocale()\r\n .pipe(first(), takeUntilDestroyed(this._destroyRef))\r\n .subscribe(() => {\r\n this.decimalSeparator = this.decimalSeparator ?? this.localeService.getDecimalSeparator();\r\n this.thousandsSeparator = this.thousandsSeparator ?? this.localeService.getGroupingSeparator();\r\n\r\n this.numberRegex = `^((\\\\+?)|(-?))([0-9]{1,3})+((\\\\${this.thousandsSeparator}[0-9]{3,3})|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.thousandsSeparator}[0-9]{3,3}))|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.decimalSeparator}[0-9]{1,2}))|(\\\\${this.decimalSeparator}[0-9]{1,${this.precision}}))?$`;\r\n });\r\n }\r\n\r\n public validate(control: AbstractControl): ValidationErrors | null {\r\n if (control.value && !String(control.value).match(new RegExp(this.numberRegex ?? '', 'g'))) {\r\n return { invalidNumber: true };\r\n }\r\n return null;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { LocalizedNumberInputDirective } from './localized-number-input.directive';\r\n\r\n@NgModule({\r\n imports: [LocalizedNumberInputDirective],\r\n exports: [LocalizedNumberInputDirective],\r\n})\r\nexport class LocalizedNumberInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAOA;;;;;;;;;;;;AAYG;MAYU,6BAA6B,CAAA;AACrB,IAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AACtC,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;;AAI3C,IAAA,gBAAgB,CAAU;;AAI1B,IAAA,kBAAkB,CAAU;;IAI5B,SAAS,GAAG,CAAC,CAAC;AAEb,IAAA,WAAW,CAAU;IAEtB,QAAQ,GAAA;;;;AAIX,QAAA,IAAI,CAAC,WAAW,GAAG,CAAA,+BAAA,EAAkC,IAAI,CAAC,kBAAkB,CAAmB,gBAAA,EAAA,IAAI,CAAC,kBAAkB,CAAkB,eAAA,EAAA,IAAI,CAAC,kBAAkB,CAAA,iBAAA,EAAoB,IAAI,CAAC,kBAAkB,CAAA,eAAA,EAAkB,IAAI,CAAC,gBAAgB,CAAmB,gBAAA,EAAA,IAAI,CAAC,gBAAgB,CAAW,QAAA,EAAA,IAAI,CAAC,SAAS,OAAO,CAAC;AAE1T,QAAA,IAAI,CAAC,aAAa;AACb,aAAA,SAAS,EAAE;aACX,IAAI,CAAC,KAAK,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aACnD,SAAS,CAAC,MAAK;AACZ,YAAA,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,CAAC;AAC1F,YAAA,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAC;AAE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AAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAGQ,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAXzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,8BAA8B;AACxC,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,WAAW,EAAE,UAAU,CAAC,mCAAmC,CAAC;AAC5D,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACJ,qBAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA,CAAA;8BAOU,gBAAgB,EAAA,CAAA;sBADtB,KAAK;gBAKC,kBAAkB,EAAA,CAAA;sBADxB,KAAK;gBAKC,SAAS,EAAA,CAAA;sBADf,KAAK;;;MCrCG,0BAA0B,CAAA;wGAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yGAA1B,0BAA0B,EAAA,OAAA,EAAA,CAHzB,6BAA6B,CAAA,EAAA,OAAA,EAAA,CAC7B,6BAA6B,CAAA,EAAA,CAAA,CAAA;yGAE9B,0BAA0B,EAAA,CAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,6BAA6B,CAAC;oBACxC,OAAO,EAAE,CAAC,6BAA6B,CAAC;AAC3C,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"seniorsistemas-angular-components-localized-number-input.mjs","sources":["../../projects/angular-components/localized-number-input/src/lib/localized-number-input/localized-number-input.directive.ts","../../projects/angular-components/localized-number-input/src/lib/localized-number-input/localized-number-input.module.ts","../../projects/angular-components/localized-number-input/src/seniorsistemas-angular-components-localized-number-input.ts"],"sourcesContent":["import { Directive, DestroyRef, forwardRef, Input, OnInit, inject } from '@angular/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator } from '@angular/forms';\r\nimport { LocaleService } from '@seniorsistemas/angular-components/locale';\r\n\r\nimport { first } from 'rxjs/operators';\r\n\r\n/**\r\n * @deprecated Será removido na v20. Utilize a diretiva `sNumericMask` ao invés desta.\r\n * O `precision` desta diretiva (casas decimais) corresponde ao `maxDecimalPlaces` da `sNumericMask`.\r\n * Migração automática: `ng generate @seniorsistemas/angular-components:migrate-deprecated-apis`\r\n *\r\n * @description Diretiva de validação para campos `<input>` que verificam se o valor digitado\r\n * é um número localizado válido (considerando separadores decimal e de milhar do locale ativo).\r\n * Ao ser integrada ao `NG_VALIDATORS`, adiciona o erro `invalidNumber` ao control quando\r\n * o valor não corresponde ao formato esperado.\r\n *\r\n * @example\r\n * ```html\r\n * <input sLocalizedNumberInput [precision]=\"4\" formControlName=\"valor\" />\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Directive({\r\n selector: 'input[sLocalizedNumberInput]',\r\n providers: [\r\n {\r\n provide: NG_VALIDATORS,\r\n useExisting: forwardRef(() => LocalizedNumberInputDirective),\r\n multi: true,\r\n },\r\n ],\r\n standalone: true,\r\n})\r\nexport class LocalizedNumberInputDirective implements OnInit, Validator {\r\n private readonly localeService = inject(LocaleService);\r\n private readonly _destroyRef = inject(DestroyRef);\r\n\r\n /** @description Separador decimal personalizado. Usa o do locale ativo se não informado. */\r\n @Input()\r\n public decimalSeparator?: string;\r\n\r\n /** @description Separador de milhar personalizado. Usa o do locale ativo se não informado. */\r\n @Input()\r\n public thousandsSeparator?: string;\r\n\r\n /** @description Número máximo de casas decimais aceitas na validação. @default 2 */\r\n @Input()\r\n public precision = 2;\r\n\r\n private numberRegex?: string;\r\n\r\n public ngOnInit(): void {\r\n // Gera a expressão regular para validar números de acordo com os separadores decimais e de milhares.\r\n // Exemplo: /^(\\+?)(\\-?)([0-9]{0,3})*((\\,[0-9]{3,3})|((\\,[0-9]{3,3})+(\\,[0-9]{3,3}))|((\\,[0-9]{3,3})+(\\.[0-9]{1,10})))?$/g\r\n // tslint:disable-next-line: max-line-length\r\n this.numberRegex = `^((\\\\+?)|(-?))([0-9]{1,3})+((\\\\${this.thousandsSeparator}[0-9]{3,3})|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.thousandsSeparator}[0-9]{3,3}))|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.decimalSeparator}[0-9]{1,2}))|(\\\\${this.decimalSeparator}[0-9]{1,${this.precision}}))?$`;\r\n\r\n this.localeService\r\n .getLocale()\r\n .pipe(first(), takeUntilDestroyed(this._destroyRef))\r\n .subscribe(() => {\r\n this.decimalSeparator = this.decimalSeparator ?? this.localeService.getDecimalSeparator();\r\n this.thousandsSeparator = this.thousandsSeparator ?? this.localeService.getGroupingSeparator();\r\n\r\n this.numberRegex = `^((\\\\+?)|(-?))([0-9]{1,3})+((\\\\${this.thousandsSeparator}[0-9]{3,3})|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.thousandsSeparator}[0-9]{3,3}))|((\\\\${this.thousandsSeparator}[0-9]{3,3})+(\\\\${this.decimalSeparator}[0-9]{1,2}))|(\\\\${this.decimalSeparator}[0-9]{1,${this.precision}}))?$`;\r\n });\r\n }\r\n\r\n public validate(control: AbstractControl): ValidationErrors | null {\r\n if (control.value && !String(control.value).match(new RegExp(this.numberRegex ?? '', 'g'))) {\r\n return { invalidNumber: true };\r\n }\r\n return null;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { LocalizedNumberInputDirective } from './localized-number-input.directive';\r\n\r\n/**\r\n * @deprecated Será removido na v20. Importe diretamente o standalone `LocalizedNumberInputDirective` (de\r\n * `@seniorsistemas/angular-components/localized-number-input`) no lugar deste módulo.\r\n *\r\n * Migração automática (também executada pelo `ng update` na v20):\r\n * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`\r\n */\r\n@NgModule({\r\n imports: [LocalizedNumberInputDirective],\r\n exports: [LocalizedNumberInputDirective],\r\n})\r\nexport class LocalizedNumberInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAOA;;;;;;;;;;;;;;;;AAgBG;MAYU,6BAA6B,CAAA;AACrB,IAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AACtC,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;;AAI3C,IAAA,gBAAgB,CAAU;;AAI1B,IAAA,kBAAkB,CAAU;;IAI5B,SAAS,GAAG,CAAC,CAAC;AAEb,IAAA,WAAW,CAAU;IAEtB,QAAQ,GAAA;;;;AAIX,QAAA,IAAI,CAAC,WAAW,GAAG,CAAA,+BAAA,EAAkC,IAAI,CAAC,kBAAkB,CAAmB,gBAAA,EAAA,IAAI,CAAC,kBAAkB,CAAkB,eAAA,EAAA,IAAI,CAAC,kBAAkB,CAAA,iBAAA,EAAoB,IAAI,CAAC,kBAAkB,CAAA,eAAA,EAAkB,IAAI,CAAC,gBAAgB,CAAmB,gBAAA,EAAA,IAAI,CAAC,gBAAgB,CAAW,QAAA,EAAA,IAAI,CAAC,SAAS,OAAO,CAAC;AAE1T,QAAA,IAAI,CAAC,aAAa;AACb,aAAA,SAAS,EAAE;aACX,IAAI,CAAC,KAAK,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aACnD,SAAS,CAAC,MAAK;AACZ,YAAA,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,CAAC;AAC1F,YAAA,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,aAAa,CAAC,oBAAoB,EAAE,CAAC;AAE/F,YAAA,IAAI,CAAC,WAAW,GAAG,CAAA,+BAAA,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AA6B,EAAA,UAAA,EAAA,CAAA;kBAXzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,8BAA8B;AACxC,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,WAAW,EAAE,UAAU,CAAC,mCAAmC,CAAC;AAC5D,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACJ,qBAAA;AACD,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA,CAAA;8BAOU,gBAAgB,EAAA,CAAA;sBADtB,KAAK;gBAKC,kBAAkB,EAAA,CAAA;sBADxB,KAAK;gBAKC,SAAS,EAAA,CAAA;sBADf,KAAK;;;AC7CV;;;;;;AAMG;MAKU,0BAA0B,CAAA;wGAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yGAA1B,0BAA0B,EAAA,OAAA,EAAA,CAHzB,6BAA6B,CAAA,EAAA,OAAA,EAAA,CAC7B,6BAA6B,CAAA,EAAA,CAAA,CAAA;yGAE9B,0BAA0B,EAAA,CAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,6BAA6B,CAAC;oBACxC,OAAO,EAAE,CAAC,6BAA6B,CAAC;AAC3C,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -77,6 +77,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
77
77
  }]
78
78
  }] });
79
79
 
80
+ /**
81
+ * @deprecated Será removido na v20. Importe diretamente o standalone `MaskFormatterPipe` (de
82
+ * `@seniorsistemas/angular-components/mask`) no lugar deste módulo.
83
+ *
84
+ * Migração automática (também executada pelo `ng update` na v20):
85
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
86
+ */
80
87
  class MaskFormatterModule {
81
88
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MaskFormatterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
82
89
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MaskFormatterModule, imports: [MaskFormatterPipe], exports: [MaskFormatterPipe] });
@@ -1 +1 @@
1
- {"version":3,"file":"seniorsistemas-angular-components-mask.mjs","sources":["../../projects/angular-components/mask/src/lib/mask/mask-formatter.pipe.ts","../../projects/angular-components/mask/src/lib/mask/mask-formatter.module.ts","../../projects/angular-components/mask/src/seniorsistemas-angular-components-mask.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * @description Pipe que aplica uma máscara de formatação a uma string,\r\n * suportando os tokens `9` (dígito), `a` (letra) e `*` (alfanumérico),\r\n * além de suporte a posições opcionais com `?`.\r\n *\r\n * @example\r\n * ```html\r\n * {{ '12345678901' | sMaskFormatter:'999.999.999-99' }}\r\n * ```\r\n *\r\n * @category Data\r\n */\r\n@Pipe({\r\n name: 'sMaskFormatter',\r\n standalone: true,\r\n})\r\nexport class MaskFormatterPipe implements PipeTransform {\r\n private _defs: any = {\r\n '9': '[0-9]',\r\n a: '[A-Za-z]',\r\n '*': '[A-Za-z]|[0-9]',\r\n };\r\n\r\n public transform(value: string, maskFormat: string): any {\r\n const buffer = [];\r\n let opcionalPos = -1;\r\n let pos = 0;\r\n const maskTokens = maskFormat.split('');\r\n const symbolsPosAfterOpcional = [];\r\n const hasOpcional = maskFormat.includes('?');\r\n\r\n for (let i = 0; i < maskTokens.length; i++) {\r\n const token = maskTokens[i];\r\n\r\n if (token !== '?') {\r\n if (this._defs[token]) {\r\n const tokenRegex = this._defs[token];\r\n const charAtPos = value.charAt(pos);\r\n const isValidChar = new RegExp(tokenRegex).test(charAtPos);\r\n if (isValidChar) {\r\n buffer.push(charAtPos);\r\n pos++;\r\n } else {\r\n throw new Error(\"Value doesn't match mask format\");\r\n }\r\n } else {\r\n buffer.push(token);\r\n if (hasOpcional && opcionalPos !== -1 && i > opcionalPos) {\r\n symbolsPosAfterOpcional.push(i);\r\n }\r\n }\r\n } else {\r\n opcionalPos = i;\r\n }\r\n }\r\n\r\n if (buffer[buffer.length - 1] !== value.charAt(value.length - 1) && symbolsPosAfterOpcional.length) {\r\n let formattedValue = buffer.join('');\r\n\r\n for (let i = 0; i < symbolsPosAfterOpcional.length; i++) {\r\n const symbolPos = symbolsPosAfterOpcional[i];\r\n\r\n const beforeSymbol = formattedValue.substring(0, symbolPos - 1);\r\n const symbol = formattedValue.substring(symbolPos - 1, symbolPos);\r\n const firstAfterSymbol = formattedValue.substring(symbolPos, symbolPos + 1);\r\n const endOfString = formattedValue.substring(symbolPos + 1);\r\n\r\n formattedValue = `${beforeSymbol}${firstAfterSymbol}${symbol}${endOfString}`;\r\n }\r\n return `${formattedValue}${value.substr(value.length - symbolsPosAfterOpcional.length)}`;\r\n }\r\n\r\n return buffer.join('');\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { MaskFormatterPipe } from './mask-formatter.pipe';\r\n\r\n@NgModule({\r\n imports: [MaskFormatterPipe],\r\n exports: [MaskFormatterPipe],\r\n})\r\nexport class MaskFormatterModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;AAWG;MAKU,iBAAiB,CAAA;AAClB,IAAA,KAAK,GAAQ;AACjB,QAAA,GAAG,EAAE,OAAO;AACZ,QAAA,CAAC,EAAE,UAAU;AACb,QAAA,GAAG,EAAE,gBAAgB;KACxB,CAAC;IAEK,SAAS,CAAC,KAAa,EAAE,UAAkB,EAAA;QAC9C,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,QAAA,IAAI,WAAW,GAAG,CAAC,CAAC,C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AAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,gBAAgB;AACtB,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA,CAAA;;;MCTY,mBAAmB,CAAA;wGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yGAAnB,mBAAmB,EAAA,OAAA,EAAA,CAHlB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CACjB,iBAAiB,CAAA,EAAA,CAAA,CAAA;yGAElB,mBAAmB,EAAA,CAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC/B,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"seniorsistemas-angular-components-mask.mjs","sources":["../../projects/angular-components/mask/src/lib/mask/mask-formatter.pipe.ts","../../projects/angular-components/mask/src/lib/mask/mask-formatter.module.ts","../../projects/angular-components/mask/src/seniorsistemas-angular-components-mask.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n/**\r\n * @description Pipe que aplica uma máscara de formatação a uma string,\r\n * suportando os tokens `9` (dígito), `a` (letra) e `*` (alfanumérico),\r\n * além de suporte a posições opcionais com `?`.\r\n *\r\n * @example\r\n * ```html\r\n * {{ '12345678901' | sMaskFormatter:'999.999.999-99' }}\r\n * ```\r\n *\r\n * @category Data\r\n */\r\n@Pipe({\r\n name: 'sMaskFormatter',\r\n standalone: true,\r\n})\r\nexport class MaskFormatterPipe implements PipeTransform {\r\n private _defs: any = {\r\n '9': '[0-9]',\r\n a: '[A-Za-z]',\r\n '*': '[A-Za-z]|[0-9]',\r\n };\r\n\r\n public transform(value: string, maskFormat: string): any {\r\n const buffer = [];\r\n let opcionalPos = -1;\r\n let pos = 0;\r\n const maskTokens = maskFormat.split('');\r\n const symbolsPosAfterOpcional = [];\r\n const hasOpcional = maskFormat.includes('?');\r\n\r\n for (let i = 0; i < maskTokens.length; i++) {\r\n const token = maskTokens[i];\r\n\r\n if (token !== '?') {\r\n if (this._defs[token]) {\r\n const tokenRegex = this._defs[token];\r\n const charAtPos = value.charAt(pos);\r\n const isValidChar = new RegExp(tokenRegex).test(charAtPos);\r\n if (isValidChar) {\r\n buffer.push(charAtPos);\r\n pos++;\r\n } else {\r\n throw new Error(\"Value doesn't match mask format\");\r\n }\r\n } else {\r\n buffer.push(token);\r\n if (hasOpcional && opcionalPos !== -1 && i > opcionalPos) {\r\n symbolsPosAfterOpcional.push(i);\r\n }\r\n }\r\n } else {\r\n opcionalPos = i;\r\n }\r\n }\r\n\r\n if (buffer[buffer.length - 1] !== value.charAt(value.length - 1) && symbolsPosAfterOpcional.length) {\r\n let formattedValue = buffer.join('');\r\n\r\n for (let i = 0; i < symbolsPosAfterOpcional.length; i++) {\r\n const symbolPos = symbolsPosAfterOpcional[i];\r\n\r\n const beforeSymbol = formattedValue.substring(0, symbolPos - 1);\r\n const symbol = formattedValue.substring(symbolPos - 1, symbolPos);\r\n const firstAfterSymbol = formattedValue.substring(symbolPos, symbolPos + 1);\r\n const endOfString = formattedValue.substring(symbolPos + 1);\r\n\r\n formattedValue = `${beforeSymbol}${firstAfterSymbol}${symbol}${endOfString}`;\r\n }\r\n return `${formattedValue}${value.substr(value.length - symbolsPosAfterOpcional.length)}`;\r\n }\r\n\r\n return buffer.join('');\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { MaskFormatterPipe } from './mask-formatter.pipe';\r\n\r\n/**\r\n * @deprecated Será removido na v20. Importe diretamente o standalone `MaskFormatterPipe` (de\r\n * `@seniorsistemas/angular-components/mask`) no lugar deste módulo.\r\n *\r\n * Migração automática (também executada pelo `ng update` na v20):\r\n * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`\r\n */\r\n@NgModule({\r\n imports: [MaskFormatterPipe],\r\n exports: [MaskFormatterPipe],\r\n})\r\nexport class MaskFormatterModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;AAWG;MAKU,iBAAiB,CAAA;AAClB,IAAA,KAAK,GAAQ;AACjB,QAAA,GAAG,EAAE,OAAO;AACZ,QAAA,CAAC,EAAE,UAAU;AACb,QAAA,GAAG,EAAE,gBAAgB;KACxB,CAAC;IAEK,SAAS,CAAC,KAAa,EAAE,UAAkB,EAAA;QAC9C,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,QAAA,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC;QACrB,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxC,MAAM,uBAAuB,GAAG,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAE7C,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACxC,YAAA,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AAE5B,YAAA,IAAI,KAAK,KAAK,GAAG,EAAE;AACf,gBAAA,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;oBACnB,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACrC,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,oBAAA,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,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ata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
114
114
  args: ['touchstart', ['$event']]
115
115
  }] } });
116
116
 
117
+ /**
118
+ * @deprecated Será removido na v20. Importe diretamente os standalones `LongPressDirective` e
119
+ * `DoubleClickDirective` (de `@seniorsistemas/angular-components/mouse-events`) no lugar deste módulo.
120
+ *
121
+ * Migração automática (também executada pelo `ng update` na v20):
122
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
123
+ */
117
124
  class MouseEventsModule {
118
125
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: MouseEventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
119
126
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: MouseEventsModule, imports: [DoubleClickDirective, LongPressDirective], exports: [LongPressDirective, DoubleClickDirective] });
@@ -1 +1 @@
1
- {"version":3,"file":"seniorsistemas-angular-components-mouse-events.mjs","sources":["../../projects/angular-components/mouse-events/src/lib/mouse-events/double-click.directive.ts","../../projects/angular-components/mouse-events/src/lib/mouse-events/long-press.directive.ts","../../projects/angular-components/mouse-events/src/lib/mouse-events/mouse-events.module.ts","../../projects/angular-components/mouse-events/src/seniorsistemas-angular-components-mouse-events.ts"],"sourcesContent":["import { Directive, EventEmitter, HostListener, Output } from '@angular/core';\n\n/**\n * @description Diretiva que detecta duplo clique em um elemento com um intervalo\n * configurável entre cliques (`_DOUBLE_CLICK_DELAY`). Emite o evento `doubleClicked`\n * somente quando dois cliques ocorrem dentro do intervalo definido.\n *\n * @example\n * ```html\n * <div sDoubleClick (doubleClicked)=\"onDoubleClick($event)\">Duplo clique aqui</div>\n * ```\n *\n * @category Inputs\n */\n@Directive({\n selector: '[sDoubleClick]',\n standalone: true,\n})\nexport class DoubleClickDirective {\n /** @description Emitido quando um duplo clique é detectado dentro do intervalo de tempo. */\n @Output() public doubleClicked: EventEmitter<PointerEvent> = new EventEmitter();\n\n private _timeout: number | undefined;\n private _DOUBLE_CLICK_DELAY = 500;\n\n @HostListener('click', ['$event'])\n public onClick(event: PointerEvent): void {\n this.handleOnClickEvent(event);\n }\n\n private handleOnClickEvent(event: PointerEvent): void {\n if (this._timeout) {\n this.clearTimeout();\n this.doubleClicked.emit(event);\n } else {\n this._timeout = setTimeout(() => this.clearTimeout(), this._DOUBLE_CLICK_DELAY) as unknown as number;\n }\n }\n\n private clearTimeout(): void {\n clearTimeout(this._timeout);\n this._timeout = undefined;\n }\n}\n\n","import { Directive, EventEmitter, HostListener, Input, OnDestroy, OnInit, Output } from '@angular/core';\r\n\r\nimport { Subject } from 'rxjs';\r\nimport { debounceTime, repeat, takeUntil } from 'rxjs/operators';\r\n\r\n/**\r\n * @description Diretiva que detecta o gesto de pressão longa (long press) em um elemento.\r\n * Emite o evento `sLongPress` após o tempo configurado em `sLongPressDelay` sem que o\r\n * botão do mouse ou o toque seja liberado.\r\n *\r\n * @example\r\n * ```html\r\n * <button [sLongPressDelay]=\"800\" (sLongPress)=\"onLongPress($event)\">Segurar</button>\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Directive({\r\n selector: '[sLongPress]',\r\n standalone: true,\r\n})\r\nexport class LongPressDirective implements OnInit, OnDestroy {\r\n /** @description Tempo em milissegundos para disparar o long press. @default 500 */\r\n @Input()\r\n public sLongPressDelay = 500;\r\n\r\n /** @description Emitido quando o elemento é pressionado por mais de `sLongPressDelay` ms. */\r\n @Output()\r\n public sLongPress = new EventEmitter<MouseEvent>();\r\n\r\n public mouseUp = new Subject<MouseEvent>();\r\n public mouseDown = new Subject<MouseEvent>();\r\n public ngUnsubscribe: Subject<void> = new Subject();\r\n\r\n @HostListener('mouseup', ['$event'])\r\n @HostListener('touchend', ['$event'])\r\n public onMouseUp(event: MouseEvent) {\r\n this.mouseUp.next(event);\r\n }\r\n\r\n @HostListener('mousedown', ['$event'])\r\n @HostListener('touchstart', ['$event'])\r\n public onMouseDown(event: MouseEvent) {\r\n this.mouseDown.next(event);\r\n }\r\n\r\n public ngOnInit() {\r\n this.mouseDown\r\n .pipe(debounceTime(this.sLongPressDelay), takeUntil(this.mouseUp), repeat(), takeUntil(this.ngUnsubscribe))\r\n .subscribe((event) => this.sLongPress.emit(event));\r\n }\r\n\r\n public ngOnDestroy() {\r\n this.ngUnsubscribe.next();\r\n this.ngUnsubscribe.complete();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { DoubleClickDirective } from './double-click.directive';\r\nimport { LongPressDirective } from './long-press.directive';\r\n\r\n@NgModule({\r\n imports: [DoubleClickDirective, LongPressDirective],\r\n exports: [LongPressDirective, DoubleClickDirective],\r\n})\r\nexport class MouseEventsModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAEA;;;;;;;;;;;AAWG;MAKU,oBAAoB,CAAA;;AAEZ,IAAA,aAAa,GAA+B,IAAI,YAAY,EAAE,CAAC;AAExE,IAAA,QAAQ,CAAqB;IAC7B,mBAAmB,GAAG,GAAG,CAAC;AAG3B,IAAA,OAAO,CAAC,KAAmB,EAAA;AAC9B,QAAA,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;KAClC;AAEO,IAAA,kBAAkB,CAAC,KAAmB,EAAA;AAC1C,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,IAAI,CAAC,YAAY,EAAE,CAAC;AACpB,YAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;aAAM;AACH,YAAA,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,CAAC,mBAAmB,CAAsB,CAAC;SACxG;KACJ;IAEO,YAAY,GAAA;AAChB,QAAA,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC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CAAA;sBAFjB,YAAY;uBAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAA;;sBACpC,YAAY;uBAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,CAAA;;;MChC7B,iBAAiB,CAAA;wGAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHhB,oBAAoB,EAAE,kBAAkB,CACxC,EAAA,OAAA,EAAA,CAAA,kBAAkB,EAAE,oBAAoB,CAAA,EAAA,CAAA,CAAA;yGAEzC,iBAAiB,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;AACnD,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;AACtD,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"seniorsistemas-angular-components-mouse-events.mjs","sources":["../../projects/angular-components/mouse-events/src/lib/mouse-events/double-click.directive.ts","../../projects/angular-components/mouse-events/src/lib/mouse-events/long-press.directive.ts","../../projects/angular-components/mouse-events/src/lib/mouse-events/mouse-events.module.ts","../../projects/angular-components/mouse-events/src/seniorsistemas-angular-components-mouse-events.ts"],"sourcesContent":["import { Directive, EventEmitter, HostListener, Output } from '@angular/core';\n\n/**\n * @description Diretiva que detecta duplo clique em um elemento com um intervalo\n * configurável entre cliques (`_DOUBLE_CLICK_DELAY`). Emite o evento `doubleClicked`\n * somente quando dois cliques ocorrem dentro do intervalo definido.\n *\n * @example\n * ```html\n * <div sDoubleClick (doubleClicked)=\"onDoubleClick($event)\">Duplo clique aqui</div>\n * ```\n *\n * @category Inputs\n */\n@Directive({\n selector: '[sDoubleClick]',\n standalone: true,\n})\nexport class DoubleClickDirective {\n /** @description Emitido quando um duplo clique é detectado dentro do intervalo de tempo. */\n @Output() public doubleClicked: EventEmitter<PointerEvent> = new EventEmitter();\n\n private _timeout: number | undefined;\n private _DOUBLE_CLICK_DELAY = 500;\n\n @HostListener('click', ['$event'])\n public onClick(event: PointerEvent): void {\n this.handleOnClickEvent(event);\n }\n\n private handleOnClickEvent(event: PointerEvent): void {\n if (this._timeout) {\n this.clearTimeout();\n this.doubleClicked.emit(event);\n } else {\n this._timeout = setTimeout(() => this.clearTimeout(), this._DOUBLE_CLICK_DELAY) as unknown as number;\n }\n }\n\n private clearTimeout(): void {\n clearTimeout(this._timeout);\n this._timeout = undefined;\n }\n}\n\n","import { Directive, EventEmitter, HostListener, Input, OnDestroy, OnInit, Output } from '@angular/core';\r\n\r\nimport { Subject } from 'rxjs';\r\nimport { debounceTime, repeat, takeUntil } from 'rxjs/operators';\r\n\r\n/**\r\n * @description Diretiva que detecta o gesto de pressão longa (long press) em um elemento.\r\n * Emite o evento `sLongPress` após o tempo configurado em `sLongPressDelay` sem que o\r\n * botão do mouse ou o toque seja liberado.\r\n *\r\n * @example\r\n * ```html\r\n * <button [sLongPressDelay]=\"800\" (sLongPress)=\"onLongPress($event)\">Segurar</button>\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Directive({\r\n selector: '[sLongPress]',\r\n standalone: true,\r\n})\r\nexport class LongPressDirective implements OnInit, OnDestroy {\r\n /** @description Tempo em milissegundos para disparar o long press. @default 500 */\r\n @Input()\r\n public sLongPressDelay = 500;\r\n\r\n /** @description Emitido quando o elemento é pressionado por mais de `sLongPressDelay` ms. */\r\n @Output()\r\n public sLongPress = new EventEmitter<MouseEvent>();\r\n\r\n public mouseUp = new Subject<MouseEvent>();\r\n public mouseDown = new Subject<MouseEvent>();\r\n public ngUnsubscribe: Subject<void> = new Subject();\r\n\r\n @HostListener('mouseup', ['$event'])\r\n @HostListener('touchend', ['$event'])\r\n public onMouseUp(event: MouseEvent) {\r\n this.mouseUp.next(event);\r\n }\r\n\r\n @HostListener('mousedown', ['$event'])\r\n @HostListener('touchstart', ['$event'])\r\n public onMouseDown(event: MouseEvent) {\r\n this.mouseDown.next(event);\r\n }\r\n\r\n public ngOnInit() {\r\n this.mouseDown\r\n .pipe(debounceTime(this.sLongPressDelay), takeUntil(this.mouseUp), repeat(), takeUntil(this.ngUnsubscribe))\r\n .subscribe((event) => this.sLongPress.emit(event));\r\n }\r\n\r\n public ngOnDestroy() {\r\n this.ngUnsubscribe.next();\r\n this.ngUnsubscribe.complete();\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { DoubleClickDirective } from './double-click.directive';\r\nimport { LongPressDirective } from './long-press.directive';\r\n\r\n/**\r\n * @deprecated Será removido na v20. Importe diretamente os standalones `LongPressDirective` e\r\n * `DoubleClickDirective` (de `@seniorsistemas/angular-components/mouse-events`) no lugar deste módulo.\r\n *\r\n * Migração automática (também executada pelo `ng update` na v20):\r\n * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`\r\n */\r\n@NgModule({\r\n imports: [DoubleClickDirective, LongPressDirective],\r\n exports: [LongPressDirective, DoubleClickDirective],\r\n})\r\nexport class MouseEventsModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAEA;;;;;;;;;;;AAWG;MAKU,oBAAoB,CAAA;;AAEZ,IAAA,aAAa,GAA+B,IAAI,YAAY,EAAE,CAAC;AAExE,IAAA,QAAQ,CAAqB;IAC7B,mBAAmB,GAAG,GAAG,CAAC;AAG3B,IAAA,OAAO,CAAC,KAAmB,EAAA;AAC9B,QAAA,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;KAClC;AAEO,IAAA,kBAAkB,CAAC,KA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EG;;;;"}
@@ -149,6 +149,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
149
149
  type: Output
150
150
  }] } });
151
151
 
152
+ /**
153
+ * @deprecated Será removido na v20. Importe diretamente o standalone `NavigationButtonComponent` (de
154
+ * `@seniorsistemas/angular-components/navigation-button`) no lugar deste módulo.
155
+ *
156
+ * Migração automática (também executada pelo `ng update` na v20):
157
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
158
+ */
152
159
  class NavigationButtonModule {
153
160
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NavigationButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
154
161
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: NavigationButtonModule, imports: [NavigationButtonComponent], exports: [NavigationButtonComponent] });
@@ -1 +1 @@
1
- {"version":3,"file":"seniorsistemas-angular-components-navigation-button.mjs","sources":["../../projects/angular-components/navigation-button/src/lib/navigation-button/navigation-button.component.ts","../../projects/angular-components/navigation-button/src/lib/navigation-button/navigation-button.component.html","../../projects/angular-components/navigation-button/src/lib/navigation-button/navigation-button.module.ts","../../projects/angular-components/navigation-button/src/seniorsistemas-angular-components-navigation-button.ts"],"sourcesContent":["import {\r\n Component,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n forwardRef,\r\n OnInit,\r\n AfterViewInit,\r\n ChangeDetectorRef,\r\n inject,\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\n\r\nimport { NavigationButtonItem } from './models/navigation-button-item';\r\nimport { NavigationButtonStepChangedInfo } from './models';\r\nimport { TieredMenuItemData, TieredMenuDirective } from '@seniorsistemas/angular-components/tiered-menu';\r\nimport { NgClass } from '@angular/common';\r\nimport { TooltipDirective } from '@seniorsistemas/angular-components/tooltip';\r\n\r\n/**\r\n * @description Componente de navegação por etapas que exibe o estado atual (step)\r\n * com suporte a avanço, retrocesso e seleção direta via dropdown (`TieredMenu`).\r\n * Implementa `ControlValueAccessor` para integração com formulários Angular.\r\n *\r\n * @example\r\n * ```html\r\n * <s-navigation-button\r\n * [steps]=\"etapas\"\r\n * (stepChanged)=\"onEtapaMudou($event)\" />\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Component({\r\n selector: 's-navigation-button',\r\n templateUrl: './navigation-button.component.html',\r\n styleUrls: ['./navigation-button.component.scss'],\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => NavigationButtonComponent),\r\n multi: true,\r\n },\r\n ],\r\n standalone: true,\r\n imports: [NgClass, TieredMenuDirective, TooltipDirective],\r\n})\r\nexport class NavigationButtonComponent implements ControlValueAccessor, OnInit, AfterViewInit {\r\n private readonly changeDetectorRef = inject(ChangeDetectorRef);\r\n\r\n /** @description Lista de etapas de navegação. Campo obrigatório. */\r\n @Input({ required: true })\r\n public steps!: NavigationButtonItem[];\r\n\r\n /** @description Valor padrão a ser selecionado ao inicializar o componente. */\r\n @Input()\r\n public defaultValue: unknown;\r\n\r\n /** @description Texto exibido no tooltip do botão principal. */\r\n @Input()\r\n public tooltip?: string;\r\n\r\n /** @description Quando `true`, emite `stepChanged` durante a inicialização com a etapa atual. @default false */\r\n @Input()\r\n public changeOnInit = false;\r\n\r\n /** @description Emitido quando o usuário navega para uma nova etapa, com informações da etapa anterior e atual. */\r\n @Output()\r\n public stepChanged: EventEmitter<NavigationButtonStepChangedInfo> = new EventEmitter();\r\n\r\n public currentIndex = 0;\r\n public isDisabled = false;\r\n public tieredMenuItems: TieredMenuItemData[] = [];\r\n\r\n private _onChange?: (value: unknown) => void;\r\n private _onTouched?: () => void;\r\n private _value: unknown;\r\n\r\n public ngOnInit(): void {\r\n this._createTieredMenuItems();\r\n\r\n if (this.changeOnInit) {\r\n this.stepChanged.emit({\r\n previous: null,\r\n current: this.steps[this.currentIndex],\r\n });\r\n }\r\n }\r\n\r\n public ngAfterViewInit(): void {\r\n this._setDefaultValue();\r\n }\r\n\r\n private _setDefaultValue(): void {\r\n if (this.defaultValue) {\r\n this._value = this.defaultValue;\r\n\r\n const index = this.steps.findIndex((step) => step.value === this._value);\r\n this.currentIndex = index !== -1 ? index : 0;\r\n this.stepChanged.emit({\r\n previous: null,\r\n current: this.steps[this.currentIndex],\r\n });\r\n\r\n this.changeDetectorRef.detectChanges();\r\n }\r\n }\r\n\r\n public writeValue(value: unknown): void {\r\n this._value = value;\r\n\r\n const index = this.steps.findIndex((step) => step.value === this._value);\r\n this.currentIndex = index !== -1 ? index : 0;\r\n }\r\n\r\n public registerOnChange(onChange: (value: unknown) => void): void {\r\n this._onChange = onChange;\r\n }\r\n\r\n public registerOnTouched(onTouched: () => void): void {\r\n this._onTouched = onTouched;\r\n }\r\n\r\n public setDisabledState?(isDisabled: boolean): void {\r\n this.isDisabled = isDisabled;\r\n }\r\n\r\n public onNext(): void {\r\n if (this.isDisabled) return;\r\n\r\n const previous = this.steps[this.currentIndex];\r\n\r\n if (this.currentIndex < this.steps.length - 1) {\r\n this.currentIndex++;\r\n\r\n const current = this.steps[this.currentIndex];\r\n\r\n this._onChange && this._onChange(current.value);\r\n this.stepChanged.emit({ previous, current });\r\n }\r\n\r\n this._onTouched && this._onTouched();\r\n }\r\n\r\n public onPrevious(): void {\r\n if (this.isDisabled) return;\r\n\r\n const previous = this.steps[this.currentIndex];\r\n\r\n if (this.currentIndex > 0) {\r\n this.currentIndex--;\r\n\r\n const current = this.steps[this.currentIndex];\r\n\r\n this._onChange && this._onChange(current.value);\r\n this.stepChanged.emit({ previous, current });\r\n }\r\n\r\n this._onTouched && this._onTouched();\r\n }\r\n\r\n private _createTieredMenuItems() {\r\n this.steps.forEach((step: NavigationButtonItem) => {\r\n this.tieredMenuItems.push({\r\n label: step.label,\r\n command: () => {\r\n const index = this.steps.findIndex((s) => s === step);\r\n if (this.currentIndex !== index) {\r\n this._onChange && this._onChange(step.value);\r\n this.stepChanged.emit({\r\n previous: this.steps[this.currentIndex],\r\n current: step,\r\n });\r\n this.currentIndex = index;\r\n }\r\n\r\n this._onTouched && this._onTouched();\r\n },\r\n });\r\n });\r\n }\r\n}\r\n","<div\n class=\"navigation-button\"\n [ngClass]=\"{ 'navigation-button--disabled': isDisabled }\"\n>\n <button\n class=\"option option--previous\"\n [ngClass]=\"{ 'option--disabled': currentIndex === 0 }\"\n (click)=\"onPrevious()\"\n >\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n\n @if (steps[currentIndex].tooltip || tooltip) {\n <button\n [sTooltip]=\"steps[currentIndex].tooltip || tooltip\"\n class=\"step\"\n sTieredMenu\n [items]=\"tieredMenuItems\"\n [focusedItem]=\"tieredMenuItems[currentIndex]\"\n >\n {{ steps[currentIndex].label }}\n </button>\n } @else {\n <button class=\"step\">\n {{ steps[currentIndex].label }}\n </button>\n }\n <button\n class=\"option option--next\"\n [ngClass]=\"{ 'option--disabled': currentIndex === steps.length - 1 }\"\n (click)=\"onNext()\"\n >\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n</div>\n","import { NgModule } from '@angular/core';\r\nimport { NavigationButtonComponent } from './navigation-button.component';\r\n\r\n@NgModule({\r\n imports: [NavigationButtonComponent],\r\n exports: [NavigationButtonComponent],\r\n})\r\nexport class NavigationButtonModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAmBA;;;;;;;;;;;;;AAaG;MAeU,yBAAyB,CAAA;AACjB,IAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;;AAIxD,IAAA,KAAK,CAA0B;;AAI/B,IAAA,YAAY,CAAU;;AAItB,IAAA,OAAO,CAAU;;IAIjB,YAAY,GAAG,KAAK,CAAC;;AAIrB,IAAA,WAAW,GAAkD,IAAI,YAAY,EAAE,CAAC;IAEhF,YAAY,GAAG,CAAC,CAAC;IACjB,UA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,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,+BAA+B,CAAC;AACxD,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;qBACJ,EACW,UAAA,EAAA,IAAI,WACP,CAAC,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,siCAAA,EAAA,MAAA,EAAA,CAAA,g5BAAA,CAAA,EAAA,CAAA;8BAOlD,KAAK,EAAA,CAAA;sBADX,KAAK;uBAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAA;gBAKlB,YAAY,EAAA,CAAA;sBADlB,KAAK;gBAKC,OAAO,EAAA,CAAA;sBADb,KAAK;gBAKC,YAAY,EAAA,CAAA;sBADlB,KAAK;gBAKC,WAAW,EAAA,CAAA;sBADjB,MAAM;;;ME5DE,sBAAsB,CAAA;wGAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yGAAtB,sBAAsB,EAAA,OAAA,EAAA,CAHrB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CACzB,yBAAyB,CAAA,EAAA,CAAA,CAAA;yGAE1B,sBAAsB,EAAA,CAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,yBAAyB,CAAC;oBACpC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"seniorsistemas-angular-components-navigation-button.mjs","sources":["../../projects/angular-components/navigation-button/src/lib/navigation-button/navigation-button.component.ts","../../projects/angular-components/navigation-button/src/lib/navigation-button/navigation-button.component.html","../../projects/angular-components/navigation-button/src/lib/navigation-button/navigation-button.module.ts","../../projects/angular-components/navigation-button/src/seniorsistemas-angular-components-navigation-button.ts"],"sourcesContent":["import {\r\n Component,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n forwardRef,\r\n OnInit,\r\n AfterViewInit,\r\n ChangeDetectorRef,\r\n inject,\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\n\r\nimport { NavigationButtonItem } from './models/navigation-button-item';\r\nimport { NavigationButtonStepChangedInfo } from './models';\r\nimport { TieredMenuItemData, TieredMenuDirective } from '@seniorsistemas/angular-components/tiered-menu';\r\nimport { NgClass } from '@angular/common';\r\nimport { TooltipDirective } from '@seniorsistemas/angular-components/tooltip';\r\n\r\n/**\r\n * @description Componente de navegação por etapas que exibe o estado atual (step)\r\n * com suporte a avanço, retrocesso e seleção direta via dropdown (`TieredMenu`).\r\n * Implementa `ControlValueAccessor` para integração com formulários Angular.\r\n *\r\n * @example\r\n * ```html\r\n * <s-navigation-button\r\n * [steps]=\"etapas\"\r\n * (stepChanged)=\"onEtapaMudou($event)\" />\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Component({\r\n selector: 's-navigation-button',\r\n templateUrl: './navigation-button.component.html',\r\n styleUrls: ['./navigation-button.component.scss'],\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => NavigationButtonComponent),\r\n multi: true,\r\n },\r\n ],\r\n standalone: true,\r\n imports: [NgClass, TieredMenuDirective, TooltipDirective],\r\n})\r\nexport class NavigationButtonComponent implements ControlValueAccessor, OnInit, AfterViewInit {\r\n private readonly changeDetectorRef = inject(ChangeDetectorRef);\r\n\r\n /** @description Lista de etapas de navegação. Campo obrigatório. */\r\n @Input({ required: true })\r\n public steps!: NavigationButtonItem[];\r\n\r\n /** @description Valor padrão a ser selecionado ao inicializar o componente. */\r\n @Input()\r\n public defaultValue: unknown;\r\n\r\n /** @description Texto exibido no tooltip do botão principal. */\r\n @Input()\r\n public tooltip?: string;\r\n\r\n /** @description Quando `true`, emite `stepChanged` durante a inicialização com a etapa atual. @default false */\r\n @Input()\r\n public changeOnInit = false;\r\n\r\n /** @description Emitido quando o usuário navega para uma nova etapa, com informações da etapa anterior e atual. */\r\n @Output()\r\n public stepChanged: EventEmitter<NavigationButtonStepChangedInfo> = new EventEmitter();\r\n\r\n public currentIndex = 0;\r\n public isDisabled = false;\r\n public tieredMenuItems: TieredMenuItemData[] = [];\r\n\r\n private _onChange?: (value: unknown) => void;\r\n private _onTouched?: () => void;\r\n private _value: unknown;\r\n\r\n public ngOnInit(): void {\r\n this._createTieredMenuItems();\r\n\r\n if (this.changeOnInit) {\r\n this.stepChanged.emit({\r\n previous: null,\r\n current: this.steps[this.currentIndex],\r\n });\r\n }\r\n }\r\n\r\n public ngAfterViewInit(): void {\r\n this._setDefaultValue();\r\n }\r\n\r\n private _setDefaultValue(): void {\r\n if (this.defaultValue) {\r\n this._value = this.defaultValue;\r\n\r\n const index = this.steps.findIndex((step) => step.value === this._value);\r\n this.currentIndex = index !== -1 ? index : 0;\r\n this.stepChanged.emit({\r\n previous: null,\r\n current: this.steps[this.currentIndex],\r\n });\r\n\r\n this.changeDetectorRef.detectChanges();\r\n }\r\n }\r\n\r\n public writeValue(value: unknown): void {\r\n this._value = value;\r\n\r\n const index = this.steps.findIndex((step) => step.value === this._value);\r\n this.currentIndex = index !== -1 ? index : 0;\r\n }\r\n\r\n public registerOnChange(onChange: (value: unknown) => void): void {\r\n this._onChange = onChange;\r\n }\r\n\r\n public registerOnTouched(onTouched: () => void): void {\r\n this._onTouched = onTouched;\r\n }\r\n\r\n public setDisabledState?(isDisabled: boolean): void {\r\n this.isDisabled = isDisabled;\r\n }\r\n\r\n public onNext(): void {\r\n if (this.isDisabled) return;\r\n\r\n const previous = this.steps[this.currentIndex];\r\n\r\n if (this.currentIndex < this.steps.length - 1) {\r\n this.currentIndex++;\r\n\r\n const current = this.steps[this.currentIndex];\r\n\r\n this._onChange && this._onChange(current.value);\r\n this.stepChanged.emit({ previous, current });\r\n }\r\n\r\n this._onTouched && this._onTouched();\r\n }\r\n\r\n public onPrevious(): void {\r\n if (this.isDisabled) return;\r\n\r\n const previous = this.steps[this.currentIndex];\r\n\r\n if (this.currentIndex > 0) {\r\n this.currentIndex--;\r\n\r\n const current = this.steps[this.currentIndex];\r\n\r\n this._onChange && this._onChange(current.value);\r\n this.stepChanged.emit({ previous, current });\r\n }\r\n\r\n this._onTouched && this._onTouched();\r\n }\r\n\r\n private _createTieredMenuItems() {\r\n this.steps.forEach((step: NavigationButtonItem) => {\r\n this.tieredMenuItems.push({\r\n label: step.label,\r\n command: () => {\r\n const index = this.steps.findIndex((s) => s === step);\r\n if (this.currentIndex !== index) {\r\n this._onChange && this._onChange(step.value);\r\n this.stepChanged.emit({\r\n previous: this.steps[this.currentIndex],\r\n current: step,\r\n });\r\n this.currentIndex = index;\r\n }\r\n\r\n this._onTouched && this._onTouched();\r\n },\r\n });\r\n });\r\n }\r\n}\r\n","<div\n class=\"navigation-button\"\n [ngClass]=\"{ 'navigation-button--disabled': isDisabled }\"\n>\n <button\n class=\"option option--previous\"\n [ngClass]=\"{ 'option--disabled': currentIndex === 0 }\"\n (click)=\"onPrevious()\"\n >\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n\n @if (steps[currentIndex].tooltip || tooltip) {\n <button\n [sTooltip]=\"steps[currentIndex].tooltip || tooltip\"\n class=\"step\"\n sTieredMenu\n [items]=\"tieredMenuItems\"\n [focusedItem]=\"tieredMenuItems[currentIndex]\"\n >\n {{ steps[currentIndex].label }}\n </button>\n } @else {\n <button class=\"step\">\n {{ steps[currentIndex].label }}\n </button>\n }\n <button\n class=\"option option--next\"\n [ngClass]=\"{ 'option--disabled': currentIndex === steps.length - 1 }\"\n (click)=\"onNext()\"\n >\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n</div>\n","import { NgModule } from '@angular/core';\r\nimport { NavigationButtonComponent } from './navigation-button.component';\r\n\r\n/**\r\n * @deprecated Será removido na v20. Importe diretamente o standalone `NavigationButtonComponent` (de\r\n * `@seniorsistemas/angular-components/navigation-button`) no lugar deste módulo.\r\n *\r\n * Migração automática (também executada pelo `ng update` na v20):\r\n * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`\r\n */\r\n@NgModule({\r\n imports: [NavigationButtonComponent],\r\n exports: [NavigationButtonComponent],\r\n})\r\nexport class NavigationButtonModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAmBA;;;;;;;;;;;;;AAaG;MAeU,yBAAyB,CAAA;AACjB,IAAA,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;;AAIxD,IAAA,KAAK,CAA0B;;AAI/B,IAAA,YAAY,CAAU;;AAItB,IAAA,OAAO,CAAU;;IAIjB,YAAY,GAAG,KAAK,CAAC;;AAIrB,IAAA,WAAW,GAAkD,IAAI,YAAY,EAAE,CAAC;IAEhF,YAAY,GAAG,CAAC,CAAC;IACjB,UAAU,GAAG,KAAK,CAAC;IACnB,eAAe,GAAyB,EAAE,CAAC;AAE1C,IAAA,SAAS,CAA4B;AACrC,IAAA,UAAU,CAAc;AACxB,IAAA,MAAM,CAAU;IAEjB,QAAQ,GAAA;QACX,IAAI,CAAC,sBAAsB,EAAE,CAAC;AAE9B,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;AACnB,YAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;AAClB,gBAAA,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;AACzC,aAAA,CAAC,CAAC;SACN;KACJ;IAEM,eAAe,GAAA;QAClB,IAAI,CAAC,gBAAgB,EAAE,CAAC;KAC3B;IAEO,gBAAgB,GAAA;AACpB,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;AACnB,YAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;YAEhC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,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AA,EAAA,CAAA,CAAA;yGAAtB,sBAAsB,EAAA,OAAA,EAAA,CAHrB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CACzB,yBAAyB,CAAA,EAAA,CAAA,CAAA;yGAE1B,sBAAsB,EAAA,CAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,yBAAyB,CAAC;oBACpC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
@@ -12,7 +12,7 @@ var NumberAlignmentOption;
12
12
  NumberAlignmentOption["LEFT"] = "left";
13
13
  })(NumberAlignmentOption || (NumberAlignmentOption = {}));
14
14
  /**
15
- * @deprecated Use a diretiva `sNumericMask` em vez desta.
15
+ * @deprecated Use a diretiva `sBignumberInput` em vez desta.
16
16
  * @description Alias de `BignumberInputDirective` mantido por compatibilidade.
17
17
  * Todos os inputs e outputs são idênticos ao `sBignumberInput`.
18
18
  *
@@ -49,7 +49,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
49
49
  }] });
50
50
 
51
51
  /**
52
- * @deprecated Should use 'BignumberInputModule' instead
52
+ * @deprecated Será removido na v20. Importe diretamente o standalone `BignumberInputDirective` (de
53
+ * `@seniorsistemas/angular-components/bignumber-input`) no lugar deste módulo.
54
+ *
55
+ * Atenção: o `sNumberInput` está depreciado em favor do `sNumericMask`; revise os templates (o schematic
56
+ * `migrate-deprecated-apis` faz essa troca e grava os defaults antigos de forma explícita).
57
+ *
58
+ * Migração automática (também executada pelo `ng update` na v20):
59
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
53
60
  */
54
61
  class NumberInputModule {
55
62
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: NumberInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1 +1 @@
1
- {"version":3,"file":"seniorsistemas-angular-components-number-input.mjs","sources":["../../projects/angular-components/number-input/src/lib/number-input/number-input.directive.ts","../../projects/angular-components/number-input/src/lib/number-input/number-input.module.ts","../../projects/angular-components/number-input/src/seniorsistemas-angular-components-number-input.ts"],"sourcesContent":["import { Directive, forwardRef } from '@angular/core';\r\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\r\n\r\nimport { BignumberInputDirective } from '@seniorsistemas/angular-components/bignumber-input';\r\n\r\n/**\r\n * @deprecated Este enum é mantido apenas por compatibilidade. Utilize as strings `'left'` ou `'right'` diretamente.\r\n */\r\nexport enum NumberAlignmentOption {\r\n RIGHT = 'right',\r\n LEFT = 'left',\r\n}\r\n\r\n/**\r\n * @deprecated Use a diretiva `sNumericMask` em vez desta.\r\n * @description Alias de `BignumberInputDirective` mantido por compatibilidade.\r\n * Todos os inputs e outputs são idênticos ao `sBignumberInput`.\r\n *\r\n * @example\r\n * ```html\r\n * <input sNumberInput [precision]=\"10\" [scale]=\"2\" />\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Directive({\r\n selector: 'input[sNumberInput]',\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => NumberInputDirective),\r\n multi: true,\r\n },\r\n ],\r\n standalone: true,\r\n})\r\nexport class NumberInputDirective extends BignumberInputDirective {}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { BignumberInputModule } from '@seniorsistemas/angular-components/bignumber-input';\r\n\r\nimport { NumberInputDirective } from './number-input.directive';\r\n\r\n/**\r\n * @deprecated Should use 'BignumberInputModule' instead\r\n */\r\n@NgModule({\r\n imports: [NumberInputDirective],\r\n exports: [NumberInputDirective],\r\n})\r\nexport class NumberInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;AAEG;IACS,sBAGX;AAHD,CAAA,UAAY,qB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EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;yGAAjB,iBAAiB,EAAA,OAAA,EAAA,CAHhB,oBAAoB,CAAA,EAAA,OAAA,EAAA,CACpB,oBAAoB,CAAA,EAAA,CAAA,CAAA;yGAErB,iBAAiB,EAAA,CAAA,CAAA;;4FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"seniorsistemas-angular-components-number-input.mjs","sources":["../../projects/angular-components/number-input/src/lib/number-input/number-input.directive.ts","../../projects/angular-components/number-input/src/lib/number-input/number-input.module.ts","../../projects/angular-components/number-input/src/seniorsistemas-angular-components-number-input.ts"],"sourcesContent":["import { Directive, forwardRef } from '@angular/core';\r\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\r\n\r\nimport { BignumberInputDirective } from '@seniorsistemas/angular-components/bignumber-input';\r\n\r\n/**\r\n * @deprecated Este enum é mantido apenas por compatibilidade. Utilize as strings `'left'` ou `'right'` diretamente.\r\n */\r\nexport enum NumberAlignmentOption {\r\n RIGHT = 'right',\r\n LEFT = 'left',\r\n}\r\n\r\n/**\r\n * @deprecated Use a diretiva `sBignumberInput` em vez desta.\r\n * @description Alias de `BignumberInputDirective` mantido por compatibilidade.\r\n * Todos os inputs e outputs são idênticos ao `sBignumberInput`.\r\n *\r\n * @example\r\n * ```html\r\n * <input sNumberInput [precision]=\"10\" [scale]=\"2\" />\r\n * ```\r\n *\r\n * @category Inputs\r\n */\r\n@Directive({\r\n selector: 'input[sNumberInput]',\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => NumberInputDirective),\r\n multi: true,\r\n },\r\n ],\r\n standalone: true,\r\n})\r\nexport class NumberInputDirective extends BignumberInputDirective {}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { BignumberInputModule } from '@seniorsistemas/angular-components/bignumber-input';\r\n\r\nimport { NumberInputDirective } from './number-input.directive';\r\n\r\n/**\r\n * @deprecated Será removido na v20. Importe diretamente o standalone `BignumberInputDirective` (de\r\n * `@seniorsistemas/angular-components/bignumber-input`) no lugar deste módulo.\r\n *\r\n * Atenção: o `sNumberInput` está depreciado em favor do `sNumericMask`; revise os templates (o schematic\r\n * `migrate-deprecated-apis` faz essa troca e grava os defaults antigos de forma explícita).\r\n *\r\n * Migração automática (também executada pelo `ng update` na v20):\r\n * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`\r\n */\r\n@NgModule({\r\n imports: [NumberInputDirective],\r\n exports: [NumberInputDirective],\r\n})\r\nexport class NumberInputModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;AAEG;IACS,sBAGX;AAHD,CAAA,UAAY,qBAAqB,EAAA;AAC7B,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACjB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,GAGhC,EAAA,CAAA,CAAA,CAAA;AAED;;;;;;;;;;;AAWG;AAYG,MAAO,oBAAqB,SAAQ,uBAAuB,CAAA;wGAApD,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,EATlB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,SAAA,EAAA;AACP,YAAA;AACI,gBAAA,OAAO,E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