@seniorsistemas/angular-components 19.9.15-develop-11ab86f5 → 19.9.15

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 (502) hide show
  1. package/README.md +2 -84
  2. package/accordion/README.md +4 -5
  3. package/accordion/lib/accordion/accordion.module.d.ts +0 -7
  4. package/alert/lib/alert/alert.module.d.ts +0 -7
  5. package/badge/README.md +4 -5
  6. package/badge/lib/badge/badge.module.d.ts +0 -10
  7. package/bignumber-input/README.md +4 -5
  8. package/bignumber-input/lib/bignumber-input/bignumber-input.directive.d.ts +39 -16
  9. package/bignumber-input/lib/bignumber-input/bignumber-input.module.d.ts +0 -7
  10. package/breadcrumb/README.md +4 -5
  11. package/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.d.ts +1 -5
  12. package/button/lib/button/button.module.d.ts +0 -7
  13. package/calendar-mask/README.md +4 -5
  14. package/calendar-mask/lib/calendar-mask/calendar-mask.module.d.ts +0 -7
  15. package/card/README.md +5 -6
  16. package/card/lib/card/card.module.d.ts +0 -7
  17. package/chat/README.md +8 -11
  18. package/chat/lib/chat/chat.module.d.ts +0 -7
  19. package/checkbox-list/README.md +4 -5
  20. package/checkbox-list/lib/checkbox-list/checkbox-list.module.d.ts +0 -7
  21. package/chips/README.md +4 -5
  22. package/chips/lib/chips/chips.module.d.ts +0 -7
  23. package/code-editor/README.md +4 -5
  24. package/code-editor/lib/code-editor/code-editor.module.d.ts +0 -7
  25. package/collapse-link/README.md +4 -5
  26. package/collapse-link/lib/collapse-link/collapse-link.module.d.ts +0 -7
  27. package/common/lib/angular-components.module.d.ts +0 -9
  28. package/common/lib/svg-factory/svg-factory.module.d.ts +0 -7
  29. package/common/public-api.d.ts +0 -1
  30. package/content-generator/README.md +2 -2
  31. package/content-generator/lib/content-generator/content-generator.module.d.ts +0 -7
  32. package/control-errors/README.md +2 -2
  33. package/control-errors/lib/control-errors/control-errors.module.d.ts +0 -7
  34. package/country-phone-picker/README.md +2 -2
  35. package/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.d.ts +0 -7
  36. package/currency/README.md +1 -1
  37. package/custom-fields/README.md +3 -14
  38. package/custom-fields/lib/custom-fields/custom-fields.module.d.ts +0 -7
  39. package/custom-fields/lib/custom-fields/models/index.d.ts +0 -1
  40. package/dialog/README.md +1 -1
  41. package/drawer/README.md +4 -8
  42. package/drawer/lib/drawer/drawer.module.d.ts +0 -10
  43. package/dynamic-form/README.md +2 -18
  44. package/dynamic-form/dynamic-form/dynamic-form.module.d.ts +0 -7
  45. package/dynamic-form/dynamic-form/form-field/addon-config.d.ts +1 -10
  46. package/dynamic-form/dynamic-form/form-field/configurations/fields/currency-field.d.ts +15 -15
  47. package/dynamic-form/dynamic-form/form-field/configurations/fields/number-field.d.ts +6 -8
  48. package/dynamic-form/dynamic-form/form-field/fields/bignumber/bignumber-field.component.d.ts +2 -5
  49. package/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.d.ts +664 -0
  50. package/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.d.ts +29 -0
  51. package/dynamic-form/public-api.d.ts +1 -0
  52. package/editable-overlay/README.md +2 -2
  53. package/editable-overlay/lib/editable-overlay/editable-overlay.module.d.ts +0 -7
  54. package/empty-state/README.md +2 -5
  55. package/empty-state/lib/empty-state/empty-state.module.d.ts +0 -7
  56. package/esm2022/accordion/lib/accordion/accordion.module.mjs +1 -8
  57. package/esm2022/alert/lib/alert/alert.module.mjs +1 -8
  58. package/esm2022/badge/lib/badge/badge.module.mjs +1 -11
  59. package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.directive.mjs +127 -19
  60. package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.module.mjs +1 -8
  61. package/esm2022/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.mjs +2 -6
  62. package/esm2022/button/lib/button/button.module.mjs +1 -8
  63. package/esm2022/calendar-mask/lib/calendar-mask/calendar-mask.module.mjs +1 -8
  64. package/esm2022/card/lib/card/card.module.mjs +1 -8
  65. package/esm2022/chat/lib/chat/chat.module.mjs +1 -8
  66. package/esm2022/checkbox-list/lib/checkbox-list/checkbox-list.module.mjs +1 -8
  67. package/esm2022/chips/lib/chips/chips.module.mjs +1 -8
  68. package/esm2022/code-editor/lib/code-editor/code-editor.component.mjs +1 -10
  69. package/esm2022/code-editor/lib/code-editor/code-editor.module.mjs +15 -9
  70. package/esm2022/collapse-link/lib/collapse-link/collapse-link.module.mjs +1 -8
  71. package/esm2022/common/lib/angular-components.module.mjs +1 -10
  72. package/esm2022/common/lib/svg-factory/svg-factory.module.mjs +1 -8
  73. package/esm2022/common/public-api.mjs +1 -2
  74. package/esm2022/content-generator/lib/content-generator/content-generator.module.mjs +1 -8
  75. package/esm2022/control-errors/lib/control-errors/control-errors.module.mjs +1 -8
  76. package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.mjs +1 -8
  77. package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.service.mjs +3 -4
  78. package/esm2022/custom-fields/lib/custom-fields/custom-fields.component.mjs +13 -17
  79. package/esm2022/custom-fields/lib/custom-fields/custom-fields.module.mjs +1 -8
  80. package/esm2022/custom-fields/lib/custom-fields/custom-fields.service.mjs +3 -4
  81. package/esm2022/custom-fields/lib/custom-fields/models/custom-field-type.mjs +2 -4
  82. package/esm2022/custom-fields/lib/custom-fields/models/index.mjs +1 -2
  83. package/esm2022/drawer/lib/drawer/drawer.module.mjs +1 -11
  84. package/esm2022/dynamic-form/dynamic-form/dynamic-form.module.mjs +1 -8
  85. package/esm2022/dynamic-form/dynamic-form/form-field/addon-config.mjs +2 -6
  86. package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/currency-field.mjs +1 -1
  87. package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/number-field.mjs +1 -1
  88. package/esm2022/dynamic-form/dynamic-form/form-field/fields/bignumber/bignumber-field.component.mjs +10 -33
  89. package/esm2022/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.mjs +96 -0
  90. package/esm2022/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.mjs +124 -0
  91. package/esm2022/dynamic-form/public-api.mjs +7 -2
  92. package/esm2022/editable-overlay/lib/editable-overlay/editable-overlay.module.mjs +1 -8
  93. package/esm2022/empty-state/lib/empty-state/empty-state.module.mjs +1 -8
  94. package/esm2022/fieldset/lib/fieldset/fieldset.module.mjs +1 -8
  95. package/esm2022/file-picker/lib/file-picker/file-picker.module.mjs +1 -8
  96. package/esm2022/file-picker/lib/file-picker/file-picker.service.mjs +3 -4
  97. package/esm2022/gantt/lib/gantt/gantt.module.mjs +1 -8
  98. package/esm2022/global-search/lib/global-search/global-search.module.mjs +1 -19
  99. package/esm2022/grid-menu/lib/grid-menu/grid-menu.module.mjs +1 -8
  100. package/esm2022/help-popover/lib/help-popover/help-popover.module.mjs +1 -8
  101. package/esm2022/image-cropper/lib/image-cropper/image-cropper.module.mjs +1 -12
  102. package/esm2022/image-cropper/lib/image-cropper/image-cropper.service.mjs +3 -4
  103. package/esm2022/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.mjs +1 -8
  104. package/esm2022/info-sign/lib/info-sign/info-sign.module.mjs +1 -8
  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 +1 -8
  107. package/esm2022/input-group/lib/input-group/input-group.module.mjs +1 -8
  108. package/esm2022/input-mask/lib/input-mask/input-mask.module.mjs +1 -8
  109. package/esm2022/input-text/lib/input-text/input-text.module.mjs +1 -8
  110. package/esm2022/insights/lib/insights/insights.module.mjs +1 -11
  111. package/esm2022/kanban/lib/kanban/kanban-event.service.mjs +3 -4
  112. package/esm2022/kanban/lib/kanban/kanban.module.mjs +1 -11
  113. package/esm2022/label-value/lib/label-value/label-value.module.mjs +1 -8
  114. package/esm2022/loading-state/lib/loading-state/loading-state.module.mjs +1 -8
  115. package/esm2022/locale/lib/locale/locale.module.mjs +1 -14
  116. package/esm2022/locale/lib/locale/locale.service.mjs +3 -4
  117. package/esm2022/locale/lib/locale/options/index.mjs +13 -1
  118. package/esm2022/locale/lib/locale/pipes/localized-bignumber-impure.pipe.mjs +1 -1
  119. package/esm2022/locale/lib/locale/pipes/localized-bignumber.pipe.mjs +2 -10
  120. package/esm2022/locale/public-api.mjs +1 -2
  121. package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.directive.mjs +1 -5
  122. package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.module.mjs +1 -8
  123. package/esm2022/mask/lib/mask/mask-formatter.module.mjs +1 -8
  124. package/esm2022/mouse-events/lib/mouse-events/mouse-events.module.mjs +1 -8
  125. package/esm2022/navigation-button/lib/navigation-button/navigation-button.module.mjs +1 -8
  126. package/esm2022/number-input/lib/number-input/number-input.directive.mjs +2 -2
  127. package/esm2022/number-input/lib/number-input/number-input.module.mjs +2 -9
  128. package/esm2022/numeric/lib/numeric.module.mjs +1 -8
  129. package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.directive.mjs +15 -178
  130. package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.module.mjs +1 -8
  131. package/esm2022/object-card/lib/object-card/object-card.module.mjs +1 -12
  132. package/esm2022/panel/lib/panel/panel.module.mjs +1 -11
  133. package/esm2022/password-strength/lib/password-strength/password-strength.module.mjs +1 -8
  134. package/esm2022/picklist/lib/picklist/picklist.module.mjs +1 -8
  135. package/esm2022/pin-code-field/lib/pin-code-field.module.mjs +1 -8
  136. package/esm2022/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.mjs +1 -8
  137. package/esm2022/progressbar/lib/progressbar/progressbar.module.mjs +1 -8
  138. package/esm2022/rating-scale/lib/rating-scale/rating-scale.module.mjs +1 -8
  139. package/esm2022/select/lib/select/select.component.mjs +3 -16
  140. package/esm2022/select-button/lib/select-button/select-button.module.mjs +1 -8
  141. package/esm2022/shared/lib/shared/border-button/border-button.module.mjs +1 -8
  142. package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.mjs +1 -8
  143. package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.service.mjs +3 -4
  144. package/esm2022/slider/lib/slider/slider.module.mjs +1 -8
  145. package/esm2022/speech-recognition/lib/speech-recognition/speech-recognition.module.mjs +1 -8
  146. package/esm2022/split-button/lib/split-button/split-button.module.mjs +1 -8
  147. package/esm2022/stats-card/lib/stats-card/stats-card.module.mjs +1 -8
  148. package/esm2022/stepper/lib/stepper/stepper.module.mjs +1 -8
  149. package/esm2022/structure/lib/structure/structure.module.mjs +1 -8
  150. package/esm2022/switch/lib/switch/switch.module.mjs +1 -8
  151. package/esm2022/table/lib/table/table.module.mjs +1 -9
  152. package/esm2022/table-header/lib/table-header/table-header-checkox.module.mjs +1 -8
  153. package/esm2022/template/lib/template/template.module.mjs +1 -8
  154. package/esm2022/text-area/lib/text-area.module.mjs +1 -8
  155. package/esm2022/thumbnail/lib/thumbnail/thumbnail.module.mjs +1 -8
  156. package/esm2022/thumbnails/lib/thumbnails/thumbnails.module.mjs +1 -8
  157. package/esm2022/tiered-menu/lib/tiered-menu/tiered-menu.module.mjs +1 -8
  158. package/esm2022/tile/lib/tile/tile.module.mjs +1 -11
  159. package/esm2022/timeline/lib/timeline/timeline.module.mjs +1 -8
  160. package/esm2022/toast/lib/toast/toast.module.mjs +1 -8
  161. package/esm2022/token-list/lib/token-list/token-list.module.mjs +1 -8
  162. package/esm2022/tooltip/lib/tooltip/tooltip.module.mjs +1 -8
  163. package/esm2022/topbar/lib/topbar/topbar.module.mjs +1 -11
  164. package/esm2022/tree/lib/tree/tree.module.mjs +1 -8
  165. package/esm2022/workspace-switch/lib/workspace-switch/workspace-switch.module.mjs +1 -8
  166. package/fesm2022/seniorsistemas-angular-components-accordion.mjs +0 -7
  167. package/fesm2022/seniorsistemas-angular-components-accordion.mjs.map +1 -1
  168. package/fesm2022/seniorsistemas-angular-components-alert.mjs +0 -7
  169. package/fesm2022/seniorsistemas-angular-components-alert.mjs.map +1 -1
  170. package/fesm2022/seniorsistemas-angular-components-badge.mjs +0 -10
  171. package/fesm2022/seniorsistemas-angular-components-badge.mjs.map +1 -1
  172. package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs +126 -25
  173. package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs.map +1 -1
  174. package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs +1 -5
  175. package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs.map +1 -1
  176. package/fesm2022/seniorsistemas-angular-components-button.mjs +0 -7
  177. package/fesm2022/seniorsistemas-angular-components-button.mjs.map +1 -1
  178. package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs +0 -7
  179. package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs.map +1 -1
  180. package/fesm2022/seniorsistemas-angular-components-card.mjs +0 -7
  181. package/fesm2022/seniorsistemas-angular-components-card.mjs.map +1 -1
  182. package/fesm2022/seniorsistemas-angular-components-chat.mjs +0 -7
  183. package/fesm2022/seniorsistemas-angular-components-chat.mjs.map +1 -1
  184. package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs +0 -7
  185. package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs.map +1 -1
  186. package/fesm2022/seniorsistemas-angular-components-chips.mjs +0 -7
  187. package/fesm2022/seniorsistemas-angular-components-chips.mjs.map +1 -1
  188. package/fesm2022/seniorsistemas-angular-components-code-editor.mjs +160 -164
  189. package/fesm2022/seniorsistemas-angular-components-code-editor.mjs.map +1 -1
  190. package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs +0 -7
  191. package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs.map +1 -1
  192. package/fesm2022/seniorsistemas-angular-components-common.mjs +2 -38
  193. package/fesm2022/seniorsistemas-angular-components-common.mjs.map +1 -1
  194. package/fesm2022/seniorsistemas-angular-components-content-generator.mjs +0 -7
  195. package/fesm2022/seniorsistemas-angular-components-content-generator.mjs.map +1 -1
  196. package/fesm2022/seniorsistemas-angular-components-control-errors.mjs +0 -7
  197. package/fesm2022/seniorsistemas-angular-components-control-errors.mjs.map +1 -1
  198. package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs +2 -10
  199. package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs.map +1 -1
  200. package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs +15 -75
  201. package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs.map +1 -1
  202. package/fesm2022/seniorsistemas-angular-components-drawer.mjs +0 -10
  203. package/fesm2022/seniorsistemas-angular-components-drawer.mjs.map +1 -1
  204. package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +208 -52
  205. package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
  206. package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs +0 -7
  207. package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs.map +1 -1
  208. package/fesm2022/seniorsistemas-angular-components-empty-state.mjs +0 -7
  209. package/fesm2022/seniorsistemas-angular-components-empty-state.mjs.map +1 -1
  210. package/fesm2022/seniorsistemas-angular-components-fieldset.mjs +0 -7
  211. package/fesm2022/seniorsistemas-angular-components-fieldset.mjs.map +1 -1
  212. package/fesm2022/seniorsistemas-angular-components-file-picker.mjs +2 -10
  213. package/fesm2022/seniorsistemas-angular-components-file-picker.mjs.map +1 -1
  214. package/fesm2022/seniorsistemas-angular-components-gantt.mjs +0 -7
  215. package/fesm2022/seniorsistemas-angular-components-gantt.mjs.map +1 -1
  216. package/fesm2022/seniorsistemas-angular-components-global-search.mjs +0 -18
  217. package/fesm2022/seniorsistemas-angular-components-global-search.mjs.map +1 -1
  218. package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs +0 -7
  219. package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs.map +1 -1
  220. package/fesm2022/seniorsistemas-angular-components-help-popover.mjs +0 -7
  221. package/fesm2022/seniorsistemas-angular-components-help-popover.mjs.map +1 -1
  222. package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs +2 -14
  223. package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs.map +1 -1
  224. package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs +0 -7
  225. package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs.map +1 -1
  226. package/fesm2022/seniorsistemas-angular-components-info-sign.mjs +0 -7
  227. package/fesm2022/seniorsistemas-angular-components-info-sign.mjs.map +1 -1
  228. package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs +4 -11
  229. package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs.map +1 -1
  230. package/fesm2022/seniorsistemas-angular-components-input-group.mjs +0 -7
  231. package/fesm2022/seniorsistemas-angular-components-input-group.mjs.map +1 -1
  232. package/fesm2022/seniorsistemas-angular-components-input-mask.mjs +0 -7
  233. package/fesm2022/seniorsistemas-angular-components-input-mask.mjs.map +1 -1
  234. package/fesm2022/seniorsistemas-angular-components-input-text.mjs +0 -7
  235. package/fesm2022/seniorsistemas-angular-components-input-text.mjs.map +1 -1
  236. package/fesm2022/seniorsistemas-angular-components-insights.mjs +0 -10
  237. package/fesm2022/seniorsistemas-angular-components-insights.mjs.map +1 -1
  238. package/fesm2022/seniorsistemas-angular-components-kanban.mjs +2 -13
  239. package/fesm2022/seniorsistemas-angular-components-kanban.mjs.map +1 -1
  240. package/fesm2022/seniorsistemas-angular-components-label-value.mjs +0 -7
  241. package/fesm2022/seniorsistemas-angular-components-label-value.mjs.map +1 -1
  242. package/fesm2022/seniorsistemas-angular-components-loading-state.mjs +0 -7
  243. package/fesm2022/seniorsistemas-angular-components-loading-state.mjs.map +1 -1
  244. package/fesm2022/seniorsistemas-angular-components-locale.mjs +5 -58
  245. package/fesm2022/seniorsistemas-angular-components-locale.mjs.map +1 -1
  246. package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs +0 -11
  247. package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs.map +1 -1
  248. package/fesm2022/seniorsistemas-angular-components-mask.mjs +0 -7
  249. package/fesm2022/seniorsistemas-angular-components-mask.mjs.map +1 -1
  250. package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs +0 -7
  251. package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs.map +1 -1
  252. package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs +0 -7
  253. package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs.map +1 -1
  254. package/fesm2022/seniorsistemas-angular-components-number-input.mjs +2 -9
  255. package/fesm2022/seniorsistemas-angular-components-number-input.mjs.map +1 -1
  256. package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs +14 -184
  257. package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs.map +1 -1
  258. package/fesm2022/seniorsistemas-angular-components-numeric.mjs +0 -7
  259. package/fesm2022/seniorsistemas-angular-components-numeric.mjs.map +1 -1
  260. package/fesm2022/seniorsistemas-angular-components-object-card.mjs +0 -11
  261. package/fesm2022/seniorsistemas-angular-components-object-card.mjs.map +1 -1
  262. package/fesm2022/seniorsistemas-angular-components-panel.mjs +0 -10
  263. package/fesm2022/seniorsistemas-angular-components-panel.mjs.map +1 -1
  264. package/fesm2022/seniorsistemas-angular-components-password-strength.mjs +0 -7
  265. package/fesm2022/seniorsistemas-angular-components-password-strength.mjs.map +1 -1
  266. package/fesm2022/seniorsistemas-angular-components-picklist.mjs +0 -7
  267. package/fesm2022/seniorsistemas-angular-components-picklist.mjs.map +1 -1
  268. package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs +0 -7
  269. package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs.map +1 -1
  270. package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs +0 -7
  271. package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs.map +1 -1
  272. package/fesm2022/seniorsistemas-angular-components-progressbar.mjs +0 -7
  273. package/fesm2022/seniorsistemas-angular-components-progressbar.mjs.map +1 -1
  274. package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs +0 -7
  275. package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs.map +1 -1
  276. package/fesm2022/seniorsistemas-angular-components-select-button.mjs +0 -7
  277. package/fesm2022/seniorsistemas-angular-components-select-button.mjs.map +1 -1
  278. package/fesm2022/seniorsistemas-angular-components-select.mjs +2 -15
  279. package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -1
  280. package/fesm2022/seniorsistemas-angular-components-shared.mjs +0 -7
  281. package/fesm2022/seniorsistemas-angular-components-shared.mjs.map +1 -1
  282. package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs +2 -10
  283. package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs.map +1 -1
  284. package/fesm2022/seniorsistemas-angular-components-slider.mjs +0 -7
  285. package/fesm2022/seniorsistemas-angular-components-slider.mjs.map +1 -1
  286. package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs +0 -7
  287. package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs.map +1 -1
  288. package/fesm2022/seniorsistemas-angular-components-split-button.mjs +0 -7
  289. package/fesm2022/seniorsistemas-angular-components-split-button.mjs.map +1 -1
  290. package/fesm2022/seniorsistemas-angular-components-stats-card.mjs +0 -7
  291. package/fesm2022/seniorsistemas-angular-components-stats-card.mjs.map +1 -1
  292. package/fesm2022/seniorsistemas-angular-components-stepper.mjs +0 -7
  293. package/fesm2022/seniorsistemas-angular-components-stepper.mjs.map +1 -1
  294. package/fesm2022/seniorsistemas-angular-components-structure.mjs +0 -7
  295. package/fesm2022/seniorsistemas-angular-components-structure.mjs.map +1 -1
  296. package/fesm2022/seniorsistemas-angular-components-switch.mjs +0 -7
  297. package/fesm2022/seniorsistemas-angular-components-switch.mjs.map +1 -1
  298. package/fesm2022/seniorsistemas-angular-components-table-header.mjs +0 -7
  299. package/fesm2022/seniorsistemas-angular-components-table-header.mjs.map +1 -1
  300. package/fesm2022/seniorsistemas-angular-components-table.mjs +0 -8
  301. package/fesm2022/seniorsistemas-angular-components-table.mjs.map +1 -1
  302. package/fesm2022/seniorsistemas-angular-components-template.mjs +0 -7
  303. package/fesm2022/seniorsistemas-angular-components-template.mjs.map +1 -1
  304. package/fesm2022/seniorsistemas-angular-components-text-area.mjs +0 -7
  305. package/fesm2022/seniorsistemas-angular-components-text-area.mjs.map +1 -1
  306. package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs +0 -7
  307. package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs.map +1 -1
  308. package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs +0 -7
  309. package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs.map +1 -1
  310. package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs +0 -7
  311. package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs.map +1 -1
  312. package/fesm2022/seniorsistemas-angular-components-tile.mjs +0 -10
  313. package/fesm2022/seniorsistemas-angular-components-tile.mjs.map +1 -1
  314. package/fesm2022/seniorsistemas-angular-components-timeline.mjs +0 -7
  315. package/fesm2022/seniorsistemas-angular-components-timeline.mjs.map +1 -1
  316. package/fesm2022/seniorsistemas-angular-components-toast.mjs +0 -7
  317. package/fesm2022/seniorsistemas-angular-components-toast.mjs.map +1 -1
  318. package/fesm2022/seniorsistemas-angular-components-token-list.mjs +0 -7
  319. package/fesm2022/seniorsistemas-angular-components-token-list.mjs.map +1 -1
  320. package/fesm2022/seniorsistemas-angular-components-tooltip.mjs +0 -7
  321. package/fesm2022/seniorsistemas-angular-components-tooltip.mjs.map +1 -1
  322. package/fesm2022/seniorsistemas-angular-components-topbar.mjs +0 -10
  323. package/fesm2022/seniorsistemas-angular-components-topbar.mjs.map +1 -1
  324. package/fesm2022/seniorsistemas-angular-components-tree.mjs +0 -7
  325. package/fesm2022/seniorsistemas-angular-components-tree.mjs.map +1 -1
  326. package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs +0 -7
  327. package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs.map +1 -1
  328. package/fieldset/README.md +2 -2
  329. package/fieldset/lib/fieldset/fieldset.module.d.ts +0 -7
  330. package/file-picker/README.md +2 -2
  331. package/file-picker/lib/file-picker/file-picker.module.d.ts +0 -7
  332. package/file-upload/README.md +1 -1
  333. package/gantt/README.md +2 -2
  334. package/gantt/lib/gantt/gantt.module.d.ts +0 -7
  335. package/global-search/README.md +2 -5
  336. package/global-search/lib/global-search/global-search.module.d.ts +0 -18
  337. package/grid-menu/README.md +4 -5
  338. package/grid-menu/lib/grid-menu/grid-menu.module.d.ts +0 -7
  339. package/help-popover/README.md +4 -5
  340. package/help-popover/lib/help-popover/help-popover.module.d.ts +0 -7
  341. package/ia-insight/README.md +1 -1
  342. package/image-cropper/README.md +5 -6
  343. package/image-cropper/lib/image-cropper/image-cropper.module.d.ts +0 -11
  344. package/infinite-scroll/README.md +4 -5
  345. package/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.d.ts +0 -7
  346. package/info-sign/README.md +4 -5
  347. package/info-sign/lib/info-sign/info-sign.module.d.ts +0 -7
  348. package/inline-edit/README.md +4 -5
  349. package/inline-edit/lib/inline-edit/inline-edit.module.d.ts +0 -7
  350. package/input-group/lib/input-group/input-group.module.d.ts +0 -7
  351. package/input-mask/lib/input-mask/input-mask.module.d.ts +0 -7
  352. package/input-text/lib/input-text/input-text.module.d.ts +0 -7
  353. package/insights/README.md +4 -6
  354. package/insights/lib/insights/insights.module.d.ts +0 -10
  355. package/kanban/README.md +4 -6
  356. package/kanban/lib/kanban/kanban.module.d.ts +0 -10
  357. package/label-value/README.md +4 -5
  358. package/label-value/lib/label-value/label-value.module.d.ts +0 -7
  359. package/loading-state/README.md +5 -9
  360. package/loading-state/lib/loading-state/loading-state.module.d.ts +0 -7
  361. package/locale/lib/locale/locale.module.d.ts +0 -13
  362. package/locale/lib/locale/pipes/localized-bignumber-impure.pipe.d.ts +2 -2
  363. package/locale/lib/locale/pipes/localized-bignumber.pipe.d.ts +1 -20
  364. package/locale/public-api.d.ts +0 -1
  365. package/localized-number-input/README.md +8 -32
  366. package/localized-number-input/lib/localized-number-input/localized-number-input.directive.d.ts +0 -4
  367. package/localized-number-input/lib/localized-number-input/localized-number-input.module.d.ts +0 -7
  368. package/mask/lib/mask/mask-formatter.module.d.ts +0 -7
  369. package/mouse-events/README.md +4 -5
  370. package/mouse-events/lib/mouse-events/mouse-events.module.d.ts +0 -7
  371. package/navigation-button/README.md +4 -5
  372. package/navigation-button/lib/navigation-button/navigation-button.module.d.ts +0 -7
  373. package/number-input/lib/number-input/number-input.directive.d.ts +1 -1
  374. package/number-input/lib/number-input/number-input.module.d.ts +1 -8
  375. package/numeric/README.md +5 -6
  376. package/numeric/lib/numeric.module.d.ts +0 -7
  377. package/numeric-mask/README.md +1 -44
  378. package/numeric-mask/lib/numeric-mask/numeric-mask.directive.d.ts +4 -65
  379. package/numeric-mask/lib/numeric-mask/numeric-mask.module.d.ts +0 -7
  380. package/object-card/README.md +4 -11
  381. package/object-card/lib/object-card/object-card.module.d.ts +0 -11
  382. package/package.json +1 -1
  383. package/panel/README.md +4 -8
  384. package/panel/lib/panel/panel.module.d.ts +0 -10
  385. package/password-strength/README.md +3 -6
  386. package/password-strength/lib/password-strength/password-strength.module.d.ts +0 -7
  387. package/picklist/README.md +5 -8
  388. package/picklist/lib/picklist/picklist.module.d.ts +0 -7
  389. package/pin-code-field/lib/pin-code-field.module.d.ts +0 -7
  390. package/product-header/README.md +2 -2
  391. package/profile-picture-picker/README.md +3 -6
  392. package/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.d.ts +0 -7
  393. package/progressbar/README.md +3 -6
  394. package/progressbar/lib/progressbar/progressbar.module.d.ts +0 -7
  395. package/rating-scale/README.md +3 -6
  396. package/rating-scale/lib/rating-scale/rating-scale.module.d.ts +0 -7
  397. package/schematics/collection.json +0 -40
  398. package/schematics/migrations.json +1 -5
  399. package/schematics/utils/ast-utils.js +0 -16
  400. package/schematics/utils/ast-utils.js.map +1 -1
  401. package/select/lib/select/select.component.d.ts +0 -8
  402. package/select-button/README.md +3 -6
  403. package/select-button/lib/select-button/select-button.module.d.ts +0 -7
  404. package/shared/lib/shared/border-button/border-button.module.d.ts +0 -7
  405. package/sidebar/README.md +2 -2
  406. package/slide-in-bar/README.md +5 -5
  407. package/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.d.ts +0 -7
  408. package/slider/README.md +3 -6
  409. package/slider/lib/slider/slider.module.d.ts +0 -7
  410. package/speech-recognition/README.md +3 -6
  411. package/speech-recognition/lib/speech-recognition/speech-recognition.module.d.ts +0 -7
  412. package/split-button/README.md +3 -6
  413. package/split-button/lib/split-button/split-button.module.d.ts +0 -7
  414. package/stats-card/README.md +3 -6
  415. package/stats-card/lib/stats-card/stats-card.module.d.ts +0 -7
  416. package/stepper/README.md +3 -6
  417. package/stepper/lib/stepper/stepper.module.d.ts +0 -7
  418. package/structure/lib/structure/structure.module.d.ts +0 -7
  419. package/switch/README.md +3 -6
  420. package/switch/lib/switch/switch.module.d.ts +0 -7
  421. package/table/README.md +4 -12
  422. package/table/lib/table/table.module.d.ts +0 -8
  423. package/table-header/lib/table-header/table-header-checkox.module.d.ts +0 -7
  424. package/template/README.md +11 -0
  425. package/template/lib/template/template.module.d.ts +0 -7
  426. package/text-area/lib/text-area.module.d.ts +0 -7
  427. package/text-area-ia/README.md +1 -1
  428. package/thumbnail/lib/thumbnail/thumbnail.module.d.ts +0 -7
  429. package/thumbnails/lib/thumbnails/thumbnails.module.d.ts +0 -7
  430. package/tiered-menu/lib/tiered-menu/tiered-menu.module.d.ts +0 -7
  431. package/tile/lib/tile/tile.module.d.ts +0 -10
  432. package/timeline/lib/timeline/timeline.module.d.ts +0 -7
  433. package/toast/lib/toast/toast.module.d.ts +0 -7
  434. package/token-list/lib/token-list/token-list.module.d.ts +0 -7
  435. package/tooltip/lib/tooltip/tooltip.module.d.ts +0 -7
  436. package/topbar/lib/topbar/topbar.module.d.ts +0 -10
  437. package/tree/lib/tree/tree.module.d.ts +0 -7
  438. package/workspace-switch/lib/workspace-switch/workspace-switch.module.d.ts +0 -7
  439. package/common/lib/provide-angular-components.d.ts +0 -19
  440. package/custom-fields/lib/custom-fields/models/custom-field-value-parser.d.ts +0 -21
  441. package/esm2022/common/lib/provide-angular-components.mjs +0 -22
  442. package/esm2022/custom-fields/lib/custom-fields/models/custom-field-value-parser.mjs +0 -46
  443. package/esm2022/locale/lib/locale/provide-locale.mjs +0 -42
  444. package/locale/lib/locale/provide-locale.d.ts +0 -18
  445. package/schematics/migrations/migrate-app-to-standalone/index.d.ts +0 -32
  446. package/schematics/migrations/migrate-app-to-standalone/index.js +0 -98
  447. package/schematics/migrations/migrate-app-to-standalone/index.js.map +0 -1
  448. package/schematics/migrations/migrate-deprecated-apis/index.d.ts +0 -49
  449. package/schematics/migrations/migrate-deprecated-apis/index.js +0 -660
  450. package/schematics/migrations/migrate-deprecated-apis/index.js.map +0 -1
  451. package/schematics/migrations/migrate-deprecated-datepicker/index.d.ts +0 -31
  452. package/schematics/migrations/migrate-deprecated-datepicker/index.js +0 -115
  453. package/schematics/migrations/migrate-deprecated-datepicker/index.js.map +0 -1
  454. package/schematics/migrations/migrate-deprecated-dynamic-form/index.d.ts +0 -52
  455. package/schematics/migrations/migrate-deprecated-dynamic-form/index.js +0 -661
  456. package/schematics/migrations/migrate-deprecated-dynamic-form/index.js.map +0 -1
  457. package/schematics/migrations/migrate-deprecated-imports/index.d.ts +0 -23
  458. package/schematics/migrations/migrate-deprecated-imports/index.js +0 -335
  459. package/schematics/migrations/migrate-deprecated-imports/index.js.map +0 -1
  460. package/schematics/migrations/migrate-deprecated-selectors/index.d.ts +0 -15
  461. package/schematics/migrations/migrate-deprecated-selectors/index.js +0 -76
  462. package/schematics/migrations/migrate-deprecated-selectors/index.js.map +0 -1
  463. package/schematics/migrations/migrate-modules-to-standalone/index.d.ts +0 -51
  464. package/schematics/migrations/migrate-modules-to-standalone/index.js +0 -632
  465. package/schematics/migrations/migrate-modules-to-standalone/index.js.map +0 -1
  466. package/schematics/migrations/migrate-modules-to-standalone/modules-map.json +0 -1656
  467. package/schematics/migrations/migrate-v20/index.d.ts +0 -9
  468. package/schematics/migrations/migrate-v20/index.js +0 -90
  469. package/schematics/migrations/migrate-v20/index.js.map +0 -1
  470. package/schematics/migrations/migrate-v20/items.d.ts +0 -7
  471. package/schematics/migrations/migrate-v20/items.js +0 -54
  472. package/schematics/migrations/migrate-v20/items.js.map +0 -1
  473. package/schematics/migrations/migrate-v20/plan.d.ts +0 -32
  474. package/schematics/migrations/migrate-v20/plan.js +0 -29
  475. package/schematics/migrations/migrate-v20/plan.js.map +0 -1
  476. package/schematics/schema/app-standalone.schema.json +0 -21
  477. package/schematics/schema/migrate-v20.schema.json +0 -33
  478. package/schematics/schema/scope.schema.json +0 -17
  479. package/schematics/utils/eol.d.ts +0 -5
  480. package/schematics/utils/eol.js +0 -17
  481. package/schematics/utils/eol.js.map +0 -1
  482. package/schematics/utils/prompt-utils.d.ts +0 -62
  483. package/schematics/utils/prompt-utils.js +0 -166
  484. package/schematics/utils/prompt-utils.js.map +0 -1
  485. package/schematics/utils/report.d.ts +0 -27
  486. package/schematics/utils/report.js +0 -70
  487. package/schematics/utils/report.js.map +0 -1
  488. package/schematics/utils/scope.d.ts +0 -17
  489. package/schematics/utils/scope.js +0 -55
  490. package/schematics/utils/scope.js.map +0 -1
  491. package/schematics/utils/selection.d.ts +0 -21
  492. package/schematics/utils/selection.js +0 -60
  493. package/schematics/utils/selection.js.map +0 -1
  494. package/schematics/utils/symbol-utils.d.ts +0 -31
  495. package/schematics/utils/symbol-utils.js +0 -202
  496. package/schematics/utils/symbol-utils.js.map +0 -1
  497. package/schematics/utils/template-utils.d.ts +0 -62
  498. package/schematics/utils/template-utils.js +0 -165
  499. package/schematics/utils/template-utils.js.map +0 -1
  500. package/schematics/utils/tsconfig-paths.d.ts +0 -5
  501. package/schematics/utils/tsconfig-paths.js +0 -73
  502. package/schematics/utils/tsconfig-paths.js.map +0 -1
@@ -1,22 +0,0 @@
1
- import { makeEnvironmentProviders } from '@angular/core';
2
- import { HostProjectConfigsInjectionToken } from './angular-components.module';
3
- /**
4
- * Registra a configuração do projeto hospedeiro (domínio e serviço) usada internamente pelos componentes.
5
- *
6
- * Substitui `AngularComponentsModule.forRoot(config)` e funciona em aplicações standalone
7
- * (`app.config.ts`) e também em `NgModule.providers`.
8
- *
9
- * @example
10
- * ```typescript
11
- * export const appConfig: ApplicationConfig = {
12
- * providers: [provideAngularComponents({ domain: 'erpx_fnd', service: 'cadastros' })],
13
- * };
14
- * ```
15
- *
16
- * @param config Domínio e serviço do projeto hospedeiro.
17
- * @returns Providers de ambiente para o injetor raiz.
18
- */
19
- export function provideAngularComponents(config) {
20
- return makeEnvironmentProviders([{ provide: HostProjectConfigsInjectionToken, useValue: config }]);
21
- }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZS1hbmd1bGFyLWNvbXBvbmVudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvY29tbW9uL3NyYy9saWIvcHJvdmlkZS1hbmd1bGFyLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUF3Qix3QkFBd0IsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUvRSxPQUFPLEVBQXNCLGdDQUFnQyxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFFbkc7Ozs7Ozs7Ozs7Ozs7OztHQWVHO0FBQ0gsTUFBTSxVQUFVLHdCQUF3QixDQUFDLE1BQTBCO0lBQy9ELE9BQU8sd0JBQXdCLENBQUMsQ0FBQyxFQUFFLE9BQU8sRUFBRSxnQ0FBZ0MsRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFLENBQUMsQ0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5leHBvcnQgZnVuY3Rpb24gcHJvdmlkZUFuZ3VsYXJDb21wb25lbnRzKGNvbmZpZzogSG9zdFByb2plY3RDb25maWdzKTogRW52aXJvbm1lbnRQcm92aWRlcnMge1xuICAgIHJldHVybiBtYWtlRW52aXJvbm1lbnRQcm92aWRlcnMoW3sgcHJvdmlkZTogSG9zdFByb2plY3RDb25maWdzSW5qZWN0aW9uVG9rZW4sIHVzZVZhbHVlOiBjb25maWcgfV0pO1xufVxuIl19
@@ -1,46 +0,0 @@
1
- import BigNumber from 'bignumber.js';
2
- /**
3
- * Tipos de campo do dynamic-form que representam valores numéricos no custom-fields.
4
- */
5
- const NUMERIC_FIELD_TYPES = ['integer', 'double', 'money'];
6
- /**
7
- * Verifica se o tipo do campo (já mapeado para o dynamic-form) é numérico.
8
- */
9
- export const isNumericFieldType = (type) => NUMERIC_FIELD_TYPES.includes(type);
10
- /**
11
- * Converte o valor numérico recebido do backend para o formato aceito pelo campo numérico
12
- * do dynamic-form (string em formato internacional, ex.: `'1234.50'`).
13
- *
14
- * Valores vazios ou inválidos resultam em `null`.
15
- */
16
- export const parseNumericValueFromApi = (value) => {
17
- if (value === null || value === undefined || value === '') {
18
- return null;
19
- }
20
- const bigNumber = new BigNumber(value);
21
- return bigNumber.isNaN() ? null : bigNumber.toFixed();
22
- };
23
- /**
24
- * Converte o valor do campo numérico (string em formato internacional) para `number`,
25
- * que é o formato esperado pelo backend do custom-fields.
26
- *
27
- * - Valores vazios resultam em `null`.
28
- * - Valores que não são numéricos (ex.: campos com máscara de texto) são devolvidos como estão.
29
- * - Valores que não cabem em `number` sem perda de precisão são convertidos mesmo assim,
30
- * emitindo um aviso no console.
31
- */
32
- export const parseNumericValueToApi = (value) => {
33
- if (value === null || value === undefined || value === '') {
34
- return null;
35
- }
36
- const bigNumber = new BigNumber(value);
37
- if (bigNumber.isNaN()) {
38
- return value;
39
- }
40
- const numeric = bigNumber.toNumber();
41
- if (!new BigNumber(numeric).isEqualTo(bigNumber)) {
42
- console.warn(`[s-custom-fields] O valor ${bigNumber.toFixed()} perde precisão ao ser convertido para number.`);
43
- }
44
- return numeric;
45
- };
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLWZpZWxkLXZhbHVlLXBhcnNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9jdXN0b20tZmllbGRzL3NyYy9saWIvY3VzdG9tLWZpZWxkcy9tb2RlbHMvY3VzdG9tLWZpZWxkLXZhbHVlLXBhcnNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFNBQVMsTUFBTSxjQUFjLENBQUM7QUFFckM7O0dBRUc7QUFDSCxNQUFNLG1CQUFtQixHQUFzQixDQUFDLFNBQVMsRUFBRSxRQUFRLEVBQUUsT0FBTyxDQUFDLENBQUM7QUFFOUU7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxDQUFDLElBQVksRUFBVyxFQUFFLENBQUMsbUJBQW1CLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBRWhHOzs7OztHQUtHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sd0JBQXdCLEdBQUcsQ0FBQyxLQUFjLEVBQWlCLEVBQUU7SUFDdEUsSUFBSSxLQUFLLEtBQUssSUFBSSxJQUFJLEtBQUssS0FBSyxTQUFTLElBQUksS0FBSyxLQUFLLEVBQUUsRUFBRSxDQUFDO1FBQ3hELE9BQU8sSUFBSSxDQUFDO0lBQ2hCLENBQUM7SUFFRCxNQUFNLFNBQVMsR0FBRyxJQUFJLFNBQVMsQ0FBQyxLQUF3QixDQUFDLENBQUM7SUFDMUQsT0FBTyxTQUFTLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyx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G4gICAgICAgIGNvbnNvbGUud2FybihgW3MtY3VzdG9tLWZpZWxkc10gTyB2YWxvciAke2JpZ051bWJlci50b0ZpeGVkKCl9IHBlcmRlIHByZWNpc8OjbyBhbyBzZXIgY29udmVydGlkbyBwYXJhIG51bWJlci5gKTtcbiAgICB9XG4gICAgcmV0dXJuIG51bWVyaWM7XG59O1xuIl19
@@ -1,42 +0,0 @@
1
- import { makeEnvironmentProviders } from '@angular/core';
2
- import { LocaleService } from './locale.service';
3
- import { LocalizedBignumberImpurePipe } from './pipes/localized-bignumber-impure.pipe';
4
- import { LocalizedBignumberPipe } from './pipes/localized-bignumber.pipe';
5
- import { LocalizedCurrencyImpurePipe } from './pipes/localized-currency-impure.pipe';
6
- import { LocalizedCurrencyPipe } from './pipes/localized-currency.pipe';
7
- import { LocalizedDateImpurePipe } from './pipes/localized-date-impure.pipe';
8
- import { LocalizedDatePipe } from './pipes/localized-date.pipe';
9
- import { LocalizedNumberPipe } from './pipes/localized-number.pipe';
10
- import { LocalizedTimeImpurePipe } from './pipes/localized-time-impure.pipe';
11
- import { LocalizedTimePipe } from './pipes/localized-time.pipe';
12
- /**
13
- * Registra o `LocaleService` e os pipes de localização como providers, para que possam ser injetados
14
- * em classes (`inject(LocalizedDatePipe)`).
15
- *
16
- * Substitui `LocaleModule.forRoot()` e funciona em aplicações standalone (`app.config.ts`) e também
17
- * em `NgModule.providers`. Para usar os pipes nos templates, importe os pipes standalone diretamente.
18
- *
19
- * @example
20
- * ```typescript
21
- * export const appConfig: ApplicationConfig = {
22
- * providers: [provideLocale()],
23
- * };
24
- * ```
25
- *
26
- * @returns Providers de ambiente para o injetor raiz.
27
- */
28
- export function provideLocale() {
29
- return makeEnvironmentProviders([
30
- LocaleService,
31
- LocalizedCurrencyPipe,
32
- LocalizedDatePipe,
33
- LocalizedTimePipe,
34
- LocalizedNumberPipe,
35
- LocalizedCurrencyImpurePipe,
36
- LocalizedDateImpurePipe,
37
- LocalizedTimeImpurePipe,
38
- Local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25tZW50UHJvdmlkZXJzIHtcbiAgICByZXR1cm4gbWFrZUVudmlyb25tZW50UHJvdmlkZXJzKFtcbiAgICAgICAgTG9jYWxlU2VydmljZSxcbiAgICAgICAgTG9jYWxpemVkQ3VycmVuY3lQaXBlLFxuICAgICAgICBMb2NhbGl6ZWREYXRlUGlwZSxcbiAgICAgICAgTG9jYWxpemVkVGltZVBpcGUsXG4gICAgICAgIExvY2FsaXplZE51bWJlclBpcGUsXG4gICAgICAgIExvY2FsaXplZEN1cnJlbmN5SW1wdXJlUGlwZSxcbiAgICAgICAgTG9jYWxpemVkRGF0ZUltcHVyZVBpcGUsXG4gICAgICAgIExvY2FsaXplZFRpbWVJbXB1cmVQaXBlLFxuICAgICAgICBMb2NhbGl6ZWRCaWdudW1iZXJQaXBlLFxuICAgICAgICBMb2NhbGl6ZWRCaWdudW1iZXJJbXB1cmVQaXBlLFxuICAgIF0pO1xufVxuIl19
@@ -1,18 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- /**
3
- * Registra o `LocaleService` e os pipes de localização como providers, para que possam ser injetados
4
- * em classes (`inject(LocalizedDatePipe)`).
5
- *
6
- * Substitui `LocaleModule.forRoot()` e funciona em aplicações standalone (`app.config.ts`) e também
7
- * em `NgModule.providers`. Para usar os pipes nos templates, importe os pipes standalone diretamente.
8
- *
9
- * @example
10
- * ```typescript
11
- * export const appConfig: ApplicationConfig = {
12
- * providers: [provideLocale()],
13
- * };
14
- * ```
15
- *
16
- * @returns Providers de ambiente para o injetor raiz.
17
- */
18
- export declare function provideLocale(): EnvironmentProviders;
@@ -1,32 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { MigrationReport } from '../../utils/report';
3
- import { ScopeOptions } from '../../utils/scope';
4
- /**
5
- * ATENÇÃO: este schematic é um **wrapper** do schematic oficial do Angular (`@angular/core:standalone`,
6
- * documentado em https://angular.dev/reference/migrations/standalone). Quem faz a migração é o Angular;
7
- * o angular-components apenas o chama com as opções escolhidas e na ordem recomendada.
8
- */
9
- export declare const ITEM_ID = "app-standalone";
10
- export declare const OFFICIAL_MIGRATION_DOC = "https://angular.dev/reference/migrations/standalone";
11
- /** Modos do schematic oficial, na ordem em que o Angular recomenda executá-los. */
12
- export declare const STANDALONE_MODES: readonly ["convert-to-standalone", "prune-ng-modules", "standalone-bootstrap"];
13
- export type StandaloneMode = (typeof STANDALONE_MODES)[number];
14
- /** O que cada modo do schematic oficial do Angular faz (conforme a documentação do Angular). */
15
- export declare const STANDALONE_MODE_DESCRIPTIONS: Readonly<Record<StandaloneMode, string>>;
16
- /**
17
- * Texto exibido ao final do `migrate-v20` (que não faz mais a pergunta): avisa que existe um schematic para as
18
- * migrações nativas do Angular, lista tudo o que elas fazem e deixa claro de quem é a responsabilidade.
19
- */
20
- export declare function standaloneNoticeLines(): string[];
21
- export interface AppStandaloneOptions extends ScopeOptions {
22
- /** Modos a executar (lista ou separados por vírgula). Padrão: os três. */
23
- mode?: string | string[];
24
- }
25
- export interface ResolvedModes {
26
- modes: StandaloneMode[];
27
- unknown: string[];
28
- }
29
- /** Normaliza `--mode`, descarta inválidos e devolve sempre na ordem recomendada pelo Angular. */
30
- export declare function resolveModes(raw: string | string[] | undefined): ResolvedModes;
31
- export declare function migrateAppToStandalone(options: AppStandaloneOptions, report: MigrationReport): Rule;
32
- export declare function migrate(options?: AppStandaloneOptions): Rule;
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STANDALONE_MODE_DESCRIPTIONS = exports.STANDALONE_MODES = exports.OFFICIAL_MIGRATION_DOC = exports.ITEM_ID = void 0;
4
- exports.standaloneNoticeLines = standaloneNoticeLines;
5
- exports.resolveModes = resolveModes;
6
- exports.migrateAppToStandalone = migrateAppToStandalone;
7
- exports.migrate = migrate;
8
- const schematics_1 = require("@angular-devkit/schematics");
9
- const rxjs_1 = require("rxjs");
10
- const report_1 = require("../../utils/report");
11
- const scope_1 = require("../../utils/scope");
12
- /**
13
- * ATENÇÃO: este schematic é um **wrapper** do schematic oficial do Angular (`@angular/core:standalone`,
14
- * documentado em https://angular.dev/reference/migrations/standalone). Quem faz a migração é o Angular;
15
- * o angular-components apenas o chama com as opções escolhidas e na ordem recomendada.
16
- */
17
- exports.ITEM_ID = 'app-standalone';
18
- exports.OFFICIAL_MIGRATION_DOC = 'https://angular.dev/reference/migrations/standalone';
19
- /** Modos do schematic oficial, na ordem em que o Angular recomenda executá-los. */
20
- exports.STANDALONE_MODES = ['convert-to-standalone', 'prune-ng-modules', 'standalone-bootstrap'];
21
- /** O que cada modo do schematic oficial do Angular faz (conforme a documentação do Angular). */
22
- exports.STANDALONE_MODE_DESCRIPTIONS = {
23
- 'convert-to-standalone': 'converte componentes, diretivas e pipes para standalone (remove `standalone: false` e adiciona as dependências ao `imports` de cada um) e atualiza os NgModules que os declaravam, que passam a importá-los em vez de declará-los.',
24
- 'prune-ng-modules': 'remove os NgModules que ficaram sem função depois da conversão (sem `declarations`, `providers` nem `bootstrap`, e que não são usados em testes) e as referências a eles nos `imports`/`exports` de outros módulos.',
25
- 'standalone-bootstrap': 'troca `platformBrowserDynamic().bootstrapModule(AppModule)` por `bootstrapApplication(AppComponent, ...)`, move os providers e imports do módulo raiz para a configuração do bootstrap (por exemplo, `app.config.ts`, usando funções como `provideRouter` e `provideHttpClient` quando há equivalente) e remove o módulo raiz.',
26
- };
27
- /**
28
- * Texto exibido ao final do `migrate-v20` (que não faz mais a pergunta): avisa que existe um schematic para as
29
- * migrações nativas do Angular, lista tudo o que elas fazem e deixa claro de quem é a responsabilidade.
30
- */
31
- function standaloneNoticeLines() {
32
- return [
33
- '',
34
- 'Migrações nativas do Angular (não executadas agora)',
35
- 'Existe um schematic que aplica no seu app as migrações nativas do Angular para standalone.',
36
- 'Essas migrações são feitas pelo Angular (@angular/core:standalone). O angular-components apenas chama o schematic oficial,',
37
- 'como um wrapper: o resultado e eventuais problemas dessa etapa vêm do schematic do Angular, e não do angular-components.',
38
- 'O que o Angular faz, em 3 modos executados nesta ordem:',
39
- ...exports.STANDALONE_MODES.map((mode, index) => ` ${index + 1}. ${mode}: ${exports.STANDALONE_MODE_DESCRIPTIONS[mode]}`),
40
- 'O Angular recomenda rodar um modo por vez, conferir o build e revisar o diff entre eles.',
41
- 'Para executar (use --mode=... e --path=... para limitar):',
42
- ' ng generate @seniorsistemas/angular-components:migrate-app-to-standalone',
43
- `Documentação do Angular: ${exports.OFFICIAL_MIGRATION_DOC}`,
44
- ];
45
- }
46
- /** Normaliza `--mode`, descarta inválidos e devolve sempre na ordem recomendada pelo Angular. */
47
- function resolveModes(raw) {
48
- if (raw === undefined || raw === null || (Array.isArray(raw) && raw.length === 0) || raw === '') {
49
- return { modes: [...exports.STANDALONE_MODES], unknown: [] };
50
- }
51
- const requested = (Array.isArray(raw) ? raw : [raw])
52
- .flatMap((entry) => String(entry).split(','))
53
- .map((entry) => entry.trim())
54
- .filter(Boolean);
55
- const unknown = requested.filter((entry) => !exports.STANDALONE_MODES.includes(entry));
56
- const modes = exports.STANDALONE_MODES.filter((mode) => requested.includes(mode));
57
- return { modes, unknown };
58
- }
59
- function migrateAppToStandalone(options, report) {
60
- return async (tree, context) => {
61
- const { modes, unknown } = resolveModes(options.mode);
62
- for (const entry of unknown) {
63
- context.logger.warn(`Modo "${entry}" ignorado. Valores aceitos: ${exports.STANDALONE_MODES.join(', ')}.`);
64
- }
65
- if (modes.length === 0)
66
- return tree;
67
- const scopeDir = (0, scope_1.resolveScopeDir)(tree, options, context);
68
- const path = scopeDir ? `./${scopeDir}` : './';
69
- context.logger.info([
70
- 'Conversão para standalone: este passo é um wrapper do schematic oficial do Angular',
71
- '(@angular/core:standalone). A migração é feita pelo Angular, não pelo angular-components.',
72
- `Documentação: ${exports.OFFICIAL_MIGRATION_DOC}`,
73
- `Modos: ${modes.join(' → ')} | pasta: ${path}`,
74
- ].join('\n'));
75
- let current = tree;
76
- for (const mode of modes) {
77
- try {
78
- current = await (0, rxjs_1.lastValueFrom)((0, schematics_1.callRule)((0, schematics_1.externalSchematic)('@angular/core', 'standalone-migration', { mode, path }), current, context));
79
- report.markChanged(exports.ITEM_ID, `@angular/core:standalone (${mode})`);
80
- }
81
- catch (error) {
82
- const reason = error instanceof Error ? error.message : String(error);
83
- report.addManual(exports.ITEM_ID, {
84
- file: 'angular.json',
85
- message: `o schematic oficial do Angular falhou no modo "${mode}" (${reason}). ` +
86
- `Corrija o build do projeto e rode "ng generate @angular/core:standalone" manualmente ` +
87
- `(${exports.OFFICIAL_MIGRATION_DOC}).`,
88
- }, context);
89
- break;
90
- }
91
- }
92
- return current;
93
- };
94
- }
95
- function migrate(options = {}) {
96
- return migrateAppToStandalone(options, new report_1.MigrationReport());
97
- }
98
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/angular-components/schematics/migrations/migrate-app-to-standalone/index.ts"],"names":[],"mappings":";;;AAgCA,sDAcC;AAaD,oCAWC;AAED,wDA6CC;AAED,0BAEC;AAzHD,2DAAuG;AACvG,+BAAqC;AACrC,+CAAqD;AACrD,6CAAkE;AAElE;;;;GAIG;AACU,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAE3B,QAAA,sBAAsB,GAAG,qDAAqD,CAAC;AAE5F,mFAAmF;AACtE,QAAA,gBAAgB,GAAG,CAAC,uBAAuB,EAAE,kBAAkB,EAAE,sBAAsB,CAAU,CAAC;AAG/G,gGAAgG;AACnF,QAAA,4BAA4B,GAA6C;IAClF,uBAAuB,EACnB,oOAAoO;IACxO,kBAAkB,EACd,qNAAqN;IACzN,sBAAsB,EAClB,gUAAgU;CACvU,CAAC;AAEF;;;GAGG;AACH,SAAgB,qBAAqB;IACjC,OAAO;QACH,EAAE;QACF,qDAAqD;QACrD,4FAA4F;QAC5F,4HAA4H;QAC5H,0HAA0H;QAC1H,yDAAyD;QACzD,GAAG,wBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,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MAAM,MAAM,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACtE,MAAM,CAAC,SAAS,CACZ,eAAO,EACP;oBACI,IAAI,EAAE,cAAc;oBACpB,OAAO,EACH,kDAAkD,IAAI,MAAM,MAAM,KAAK;wBACvE,uFAAuF;wBACvF,IAAI,8BAAsB,IAAI;iBACrC,EACD,OAAO,CACV,CAAC;gBACF,MAAM;YACV,CAAC;QACL,CAAC;QACD,OAAO,OAAO,CAAC;IACnB,CAAC,CAAC;AACN,CAAC;AAED,SAAgB,OAAO,CAAC,UAAgC,EAAE;IACtD,OAAO,sBAAsB,CAAC,OAAO,EAAE,IAAI,wBAAe,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -1,49 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { MigrationReport } from '../../utils/report';
3
- import { ScopeOptions } from '../../utils/scope';
4
- import { TemplateTransformResult } from '../../utils/template-utils';
5
- /**
6
- * Migra APIs depreciadas que têm substituto direto (renomeios mecânicos), sempre restritas ao elemento
7
- * ou símbolo correto, e avisa (`addManual`) onde a conversão é ambígua.
8
- *
9
- * Templates (HTML e `template:` inline): usa o scanner de tags de `template-utils` (nunca uma regex solta sobre o arquivo),
10
- * então `(onCodeChange)` só muda em `<s-code-editor>`, `[scale]` só em `<input sBignumberInput|sNumberInput>`, etc.
11
- *
12
- * Decisões:
13
- * - `sNumberInput`/`sBignumberInput`/`sLocalizedNumberInput` (e as respectivas `*Directive`/`*Module`) -> `sNumericMask`/
14
- * `NumericMaskDirective`. Os defaults das diretivas antigas diferem da `sNumericMask`, então são gravados de forma
15
- * explícita no template para preservar o comportamento: `[precision]="15"`, `[allowNegative]="true"`,
16
- * `[blockDecimalOverflow]="false"` e `[minDecimalPlaces]`/`[maxDecimalPlaces]` (a partir de `[scale]`, ou `0`).
17
- * Na `sLocalizedNumberInput`, `precision` (casas decimais) vira `maxDecimalPlaces` e sempre há aviso de revisão,
18
- * porque o valor do `FormControl` passa a ser `string` e o erro `invalidNumber` deixa de existir.
19
- * - `NumberAlignmentOption.X`/`BignumberAlignmentOption.X` -> `'left'`/`'right'` (o enum não tem mais efeito).
20
- * - `localizedCurrency` -> `localizedBignumber` (mesmos defaults: scale 2 e símbolo do locale; só a chave `currencySymbol`
21
- * vira `prefix`; `emptyAsZero: true` preserva a exibição de string vazia como 0); `localizedCurrencyImpure` ->
22
- * `localizedBignumberImpure` (preserva a detecção de mudança impura).
23
- * Argumento que não seja um objeto literal com chaves conhecidas -> aviso, sem reescrever.
24
- * - `localizedNumber` usava `Intl.NumberFormat` (sem prefixo, até 3 casas); vira `localizedBignumber: { prefix: '', scale: N, emptyAsZero: true, nullAsZero: true }`
25
- * (N = literal ou 0; as duas opções preservam a exibição de vazio e null como 0) e SEMPRE gera um aviso de revisão, porque o arredondamento/separadores podem divergir.
26
- * - Símbolos TS (pipes e `BreadcrumbModule`) só são trocados se todos os usos forem elementos de array (`imports`, etc.).
27
- * Se algum template ainda usa o pipe antigo (não migrável), o símbolo antigo é mantido ao lado do novo.
28
- */
29
- export declare const ITEM_ID = "apis";
30
- /** Migra um texto de template (HTML inteiro ou conteúdo de `template:` inline). */
31
- export declare function migrateTemplateText(text: string, options?: {
32
- quotesSafe: boolean;
33
- }): TemplateTransformResult;
34
- export type ReadTemplate = (relativeTo: string, templateUrl: string) => string | undefined;
35
- interface TsResult {
36
- updated: string;
37
- manual: Array<{
38
- line: number;
39
- message: string;
40
- }>;
41
- }
42
- /**
43
- * Migra um arquivo. `.html` (template), `.ts` (template inline, símbolos, enums e nós do rating-scale).
44
- * `readTemplate` resolve `templateUrl` para decidir se um pipe antigo ainda é usado.
45
- */
46
- export declare function migrateApisInContent(file: string, content: string, readTemplate?: ReadTemplate): TsResult;
47
- export declare function migrateDeprecatedApis(options: ScopeOptions, report: MigrationReport): Rule;
48
- export declare function migrate(options?: ScopeOptions): Rule;
49
- export {};