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

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 +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 +4 -3
  117. package/esm2022/locale/lib/locale/options/index.mjs +1 -13
  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 +10 -2
  120. package/esm2022/locale/lib/locale/provide-locale.mjs +42 -0
  121. package/esm2022/locale/public-api.mjs +2 -1
  122. package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.directive.mjs +5 -1
  123. package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.module.mjs +8 -1
  124. package/esm2022/mask/lib/mask/mask-formatter.module.mjs +8 -1
  125. package/esm2022/mouse-events/lib/mouse-events/mouse-events.module.mjs +8 -1
  126. package/esm2022/navigation-button/lib/navigation-button/navigation-button.module.mjs +8 -1
  127. package/esm2022/number-input/lib/number-input/number-input.directive.mjs +2 -2
  128. package/esm2022/number-input/lib/number-input/number-input.module.mjs +9 -2
  129. package/esm2022/numeric/lib/numeric.module.mjs +8 -1
  130. package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.directive.mjs +178 -15
  131. package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.module.mjs +8 -1
  132. package/esm2022/object-card/lib/object-card/object-card.module.mjs +12 -1
  133. package/esm2022/panel/lib/panel/panel.module.mjs +11 -1
  134. package/esm2022/password-strength/lib/password-strength/password-strength.module.mjs +8 -1
  135. package/esm2022/picklist/lib/picklist/picklist.module.mjs +8 -1
  136. package/esm2022/pin-code-field/lib/pin-code-field.module.mjs +8 -1
  137. package/esm2022/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.mjs +8 -1
  138. package/esm2022/progressbar/lib/progressbar/progressbar.module.mjs +8 -1
  139. package/esm2022/rating-scale/lib/rating-scale/rating-scale.module.mjs +8 -1
  140. package/esm2022/select/lib/select/select.component.mjs +16 -3
  141. package/esm2022/select-button/lib/select-button/select-button.module.mjs +8 -1
  142. package/esm2022/shared/lib/shared/border-button/border-button.module.mjs +8 -1
  143. package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.mjs +8 -1
  144. package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.service.mjs +4 -3
  145. package/esm2022/slider/lib/slider/slider.module.mjs +8 -1
  146. package/esm2022/speech-recognition/lib/speech-recognition/speech-recognition.module.mjs +8 -1
  147. package/esm2022/split-button/lib/split-button/split-button.module.mjs +8 -1
  148. package/esm2022/stats-card/lib/stats-card/stats-card.module.mjs +8 -1
  149. package/esm2022/stepper/lib/stepper/stepper.module.mjs +8 -1
  150. package/esm2022/structure/lib/structure/structure.module.mjs +8 -1
  151. package/esm2022/switch/lib/switch/switch.module.mjs +8 -1
  152. package/esm2022/table/lib/table/table.module.mjs +9 -1
  153. package/esm2022/table-header/lib/table-header/table-header-checkox.module.mjs +8 -1
  154. package/esm2022/template/lib/template/template.module.mjs +8 -1
  155. package/esm2022/text-area/lib/text-area.module.mjs +8 -1
  156. package/esm2022/thumbnail/lib/thumbnail/thumbnail.module.mjs +8 -1
  157. package/esm2022/thumbnails/lib/thumbnails/thumbnails.module.mjs +8 -1
  158. package/esm2022/tiered-menu/lib/tiered-menu/tiered-menu.module.mjs +8 -1
  159. package/esm2022/tile/lib/tile/tile.module.mjs +11 -1
  160. package/esm2022/timeline/lib/timeline/timeline.module.mjs +8 -1
  161. package/esm2022/toast/lib/toast/toast.module.mjs +8 -1
  162. package/esm2022/token-list/lib/token-list/token-list.module.mjs +8 -1
  163. package/esm2022/tooltip/lib/tooltip/tooltip.module.mjs +8 -1
  164. package/esm2022/topbar/lib/topbar/topbar.module.mjs +11 -1
  165. package/esm2022/tree/lib/tree/tree.module.mjs +8 -1
  166. package/esm2022/workspace-switch/lib/workspace-switch/workspace-switch.module.mjs +8 -1
  167. package/fesm2022/seniorsistemas-angular-components-accordion.mjs +7 -0
  168. package/fesm2022/seniorsistemas-angular-components-accordion.mjs.map +1 -1
  169. package/fesm2022/seniorsistemas-angular-components-alert.mjs +7 -0
  170. package/fesm2022/seniorsistemas-angular-components-alert.mjs.map +1 -1
  171. package/fesm2022/seniorsistemas-angular-components-badge.mjs +10 -0
  172. package/fesm2022/seniorsistemas-angular-components-badge.mjs.map +1 -1
  173. package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs +25 -126
  174. package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs.map +1 -1
  175. package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs +5 -1
  176. package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs.map +1 -1
  177. package/fesm2022/seniorsistemas-angular-components-button.mjs +7 -0
  178. package/fesm2022/seniorsistemas-angular-components-button.mjs.map +1 -1
  179. package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs +7 -0
  180. package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs.map +1 -1
  181. package/fesm2022/seniorsistemas-angular-components-card.mjs +7 -0
  182. package/fesm2022/seniorsistemas-angular-components-card.mjs.map +1 -1
  183. package/fesm2022/seniorsistemas-angular-components-chat.mjs +7 -0
  184. package/fesm2022/seniorsistemas-angular-components-chat.mjs.map +1 -1
  185. package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs +7 -0
  186. package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs.map +1 -1
  187. package/fesm2022/seniorsistemas-angular-components-chips.mjs +7 -0
  188. package/fesm2022/seniorsistemas-angular-components-chips.mjs.map +1 -1
  189. package/fesm2022/seniorsistemas-angular-components-code-editor.mjs +164 -160
  190. package/fesm2022/seniorsistemas-angular-components-code-editor.mjs.map +1 -1
  191. package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs +7 -0
  192. package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs.map +1 -1
  193. package/fesm2022/seniorsistemas-angular-components-common.mjs +38 -2
  194. package/fesm2022/seniorsistemas-angular-components-common.mjs.map +1 -1
  195. package/fesm2022/seniorsistemas-angular-components-content-generator.mjs +7 -0
  196. package/fesm2022/seniorsistemas-angular-components-content-generator.mjs.map +1 -1
  197. package/fesm2022/seniorsistemas-angular-components-control-errors.mjs +7 -0
  198. package/fesm2022/seniorsistemas-angular-components-control-errors.mjs.map +1 -1
  199. package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs +10 -2
  200. package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs.map +1 -1
  201. package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs +75 -15
  202. package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs.map +1 -1
  203. package/fesm2022/seniorsistemas-angular-components-drawer.mjs +10 -0
  204. package/fesm2022/seniorsistemas-angular-components-drawer.mjs.map +1 -1
  205. package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +52 -208
  206. package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
  207. package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs +7 -0
  208. package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs.map +1 -1
  209. package/fesm2022/seniorsistemas-angular-components-empty-state.mjs +7 -0
  210. package/fesm2022/seniorsistemas-angular-components-empty-state.mjs.map +1 -1
  211. package/fesm2022/seniorsistemas-angular-components-fieldset.mjs +7 -0
  212. package/fesm2022/seniorsistemas-angular-components-fieldset.mjs.map +1 -1
  213. package/fesm2022/seniorsistemas-angular-components-file-picker.mjs +10 -2
  214. package/fesm2022/seniorsistemas-angular-components-file-picker.mjs.map +1 -1
  215. package/fesm2022/seniorsistemas-angular-components-gantt.mjs +7 -0
  216. package/fesm2022/seniorsistemas-angular-components-gantt.mjs.map +1 -1
  217. package/fesm2022/seniorsistemas-angular-components-global-search.mjs +18 -0
  218. package/fesm2022/seniorsistemas-angular-components-global-search.mjs.map +1 -1
  219. package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs +7 -0
  220. package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs.map +1 -1
  221. package/fesm2022/seniorsistemas-angular-components-help-popover.mjs +7 -0
  222. package/fesm2022/seniorsistemas-angular-components-help-popover.mjs.map +1 -1
  223. package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs +14 -2
  224. package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs.map +1 -1
  225. package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs +7 -0
  226. package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs.map +1 -1
  227. package/fesm2022/seniorsistemas-angular-components-info-sign.mjs +7 -0
  228. package/fesm2022/seniorsistemas-angular-components-info-sign.mjs.map +1 -1
  229. package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs +11 -4
  230. package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs.map +1 -1
  231. package/fesm2022/seniorsistemas-angular-components-input-group.mjs +7 -0
  232. package/fesm2022/seniorsistemas-angular-components-input-group.mjs.map +1 -1
  233. package/fesm2022/seniorsistemas-angular-components-input-mask.mjs +7 -0
  234. package/fesm2022/seniorsistemas-angular-components-input-mask.mjs.map +1 -1
  235. package/fesm2022/seniorsistemas-angular-components-input-text.mjs +7 -0
  236. package/fesm2022/seniorsistemas-angular-components-input-text.mjs.map +1 -1
  237. package/fesm2022/seniorsistemas-angular-components-insights.mjs +10 -0
  238. package/fesm2022/seniorsistemas-angular-components-insights.mjs.map +1 -1
  239. package/fesm2022/seniorsistemas-angular-components-kanban.mjs +13 -2
  240. package/fesm2022/seniorsistemas-angular-components-kanban.mjs.map +1 -1
  241. package/fesm2022/seniorsistemas-angular-components-label-value.mjs +7 -0
  242. package/fesm2022/seniorsistemas-angular-components-label-value.mjs.map +1 -1
  243. package/fesm2022/seniorsistemas-angular-components-loading-state.mjs +7 -0
  244. package/fesm2022/seniorsistemas-angular-components-loading-state.mjs.map +1 -1
  245. package/fesm2022/seniorsistemas-angular-components-locale.mjs +58 -5
  246. package/fesm2022/seniorsistemas-angular-components-locale.mjs.map +1 -1
  247. package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs +11 -0
  248. package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs.map +1 -1
  249. package/fesm2022/seniorsistemas-angular-components-mask.mjs +7 -0
  250. package/fesm2022/seniorsistemas-angular-components-mask.mjs.map +1 -1
  251. package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs +7 -0
  252. package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs.map +1 -1
  253. package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs +7 -0
  254. package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs.map +1 -1
  255. package/fesm2022/seniorsistemas-angular-components-number-input.mjs +9 -2
  256. package/fesm2022/seniorsistemas-angular-components-number-input.mjs.map +1 -1
  257. package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs +184 -14
  258. package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs.map +1 -1
  259. package/fesm2022/seniorsistemas-angular-components-numeric.mjs +7 -0
  260. package/fesm2022/seniorsistemas-angular-components-numeric.mjs.map +1 -1
  261. package/fesm2022/seniorsistemas-angular-components-object-card.mjs +11 -0
  262. package/fesm2022/seniorsistemas-angular-components-object-card.mjs.map +1 -1
  263. package/fesm2022/seniorsistemas-angular-components-panel.mjs +10 -0
  264. package/fesm2022/seniorsistemas-angular-components-panel.mjs.map +1 -1
  265. package/fesm2022/seniorsistemas-angular-components-password-strength.mjs +7 -0
  266. package/fesm2022/seniorsistemas-angular-components-password-strength.mjs.map +1 -1
  267. package/fesm2022/seniorsistemas-angular-components-picklist.mjs +7 -0
  268. package/fesm2022/seniorsistemas-angular-components-picklist.mjs.map +1 -1
  269. package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs +7 -0
  270. package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs.map +1 -1
  271. package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs +7 -0
  272. package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs.map +1 -1
  273. package/fesm2022/seniorsistemas-angular-components-progressbar.mjs +7 -0
  274. package/fesm2022/seniorsistemas-angular-components-progressbar.mjs.map +1 -1
  275. package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs +7 -0
  276. package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs.map +1 -1
  277. package/fesm2022/seniorsistemas-angular-components-select-button.mjs +7 -0
  278. package/fesm2022/seniorsistemas-angular-components-select-button.mjs.map +1 -1
  279. package/fesm2022/seniorsistemas-angular-components-select.mjs +15 -2
  280. package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -1
  281. package/fesm2022/seniorsistemas-angular-components-shared.mjs +7 -0
  282. package/fesm2022/seniorsistemas-angular-components-shared.mjs.map +1 -1
  283. package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs +10 -2
  284. package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs.map +1 -1
  285. package/fesm2022/seniorsistemas-angular-components-slider.mjs +7 -0
  286. package/fesm2022/seniorsistemas-angular-components-slider.mjs.map +1 -1
  287. package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs +7 -0
  288. package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs.map +1 -1
  289. package/fesm2022/seniorsistemas-angular-components-split-button.mjs +7 -0
  290. package/fesm2022/seniorsistemas-angular-components-split-button.mjs.map +1 -1
  291. package/fesm2022/seniorsistemas-angular-components-stats-card.mjs +7 -0
  292. package/fesm2022/seniorsistemas-angular-components-stats-card.mjs.map +1 -1
  293. package/fesm2022/seniorsistemas-angular-components-stepper.mjs +7 -0
  294. package/fesm2022/seniorsistemas-angular-components-stepper.mjs.map +1 -1
  295. package/fesm2022/seniorsistemas-angular-components-structure.mjs +7 -0
  296. package/fesm2022/seniorsistemas-angular-components-structure.mjs.map +1 -1
  297. package/fesm2022/seniorsistemas-angular-components-switch.mjs +7 -0
  298. package/fesm2022/seniorsistemas-angular-components-switch.mjs.map +1 -1
  299. package/fesm2022/seniorsistemas-angular-components-table-header.mjs +7 -0
  300. package/fesm2022/seniorsistemas-angular-components-table-header.mjs.map +1 -1
  301. package/fesm2022/seniorsistemas-angular-components-table.mjs +8 -0
  302. package/fesm2022/seniorsistemas-angular-components-table.mjs.map +1 -1
  303. package/fesm2022/seniorsistemas-angular-components-template.mjs +7 -0
  304. package/fesm2022/seniorsistemas-angular-components-template.mjs.map +1 -1
  305. package/fesm2022/seniorsistemas-angular-components-text-area.mjs +7 -0
  306. package/fesm2022/seniorsistemas-angular-components-text-area.mjs.map +1 -1
  307. package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs +7 -0
  308. package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs.map +1 -1
  309. package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs +7 -0
  310. package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs.map +1 -1
  311. package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs +7 -0
  312. package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs.map +1 -1
  313. package/fesm2022/seniorsistemas-angular-components-tile.mjs +10 -0
  314. package/fesm2022/seniorsistemas-angular-components-tile.mjs.map +1 -1
  315. package/fesm2022/seniorsistemas-angular-components-timeline.mjs +7 -0
  316. package/fesm2022/seniorsistemas-angular-components-timeline.mjs.map +1 -1
  317. package/fesm2022/seniorsistemas-angular-components-toast.mjs +7 -0
  318. package/fesm2022/seniorsistemas-angular-components-toast.mjs.map +1 -1
  319. package/fesm2022/seniorsistemas-angular-components-token-list.mjs +7 -0
  320. package/fesm2022/seniorsistemas-angular-components-token-list.mjs.map +1 -1
  321. package/fesm2022/seniorsistemas-angular-components-tooltip.mjs +7 -0
  322. package/fesm2022/seniorsistemas-angular-components-tooltip.mjs.map +1 -1
  323. package/fesm2022/seniorsistemas-angular-components-topbar.mjs +10 -0
  324. package/fesm2022/seniorsistemas-angular-components-topbar.mjs.map +1 -1
  325. package/fesm2022/seniorsistemas-angular-components-tree.mjs +7 -0
  326. package/fesm2022/seniorsistemas-angular-components-tree.mjs.map +1 -1
  327. package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs +7 -0
  328. package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs.map +1 -1
  329. package/fieldset/README.md +2 -2
  330. package/fieldset/lib/fieldset/fieldset.module.d.ts +7 -0
  331. package/file-picker/README.md +2 -2
  332. package/file-picker/lib/file-picker/file-picker.module.d.ts +7 -0
  333. package/file-upload/README.md +1 -1
  334. package/gantt/README.md +2 -2
  335. package/gantt/lib/gantt/gantt.module.d.ts +7 -0
  336. package/global-search/README.md +5 -2
  337. package/global-search/lib/global-search/global-search.module.d.ts +18 -0
  338. package/grid-menu/README.md +5 -4
  339. package/grid-menu/lib/grid-menu/grid-menu.module.d.ts +7 -0
  340. package/help-popover/README.md +5 -4
  341. package/help-popover/lib/help-popover/help-popover.module.d.ts +7 -0
  342. package/ia-insight/README.md +1 -1
  343. package/image-cropper/README.md +6 -5
  344. package/image-cropper/lib/image-cropper/image-cropper.module.d.ts +11 -0
  345. package/infinite-scroll/README.md +5 -4
  346. package/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.d.ts +7 -0
  347. package/info-sign/README.md +5 -4
  348. package/info-sign/lib/info-sign/info-sign.module.d.ts +7 -0
  349. package/inline-edit/README.md +5 -4
  350. package/inline-edit/lib/inline-edit/inline-edit.module.d.ts +7 -0
  351. package/input-group/lib/input-group/input-group.module.d.ts +7 -0
  352. package/input-mask/lib/input-mask/input-mask.module.d.ts +7 -0
  353. package/input-text/lib/input-text/input-text.module.d.ts +7 -0
  354. package/insights/README.md +6 -4
  355. package/insights/lib/insights/insights.module.d.ts +10 -0
  356. package/kanban/README.md +6 -4
  357. package/kanban/lib/kanban/kanban.module.d.ts +10 -0
  358. package/label-value/README.md +5 -4
  359. package/label-value/lib/label-value/label-value.module.d.ts +7 -0
  360. package/loading-state/README.md +9 -5
  361. package/loading-state/lib/loading-state/loading-state.module.d.ts +7 -0
  362. package/locale/lib/locale/locale.module.d.ts +13 -0
  363. package/locale/lib/locale/pipes/localized-bignumber-impure.pipe.d.ts +2 -2
  364. package/locale/lib/locale/pipes/localized-bignumber.pipe.d.ts +20 -1
  365. package/locale/lib/locale/provide-locale.d.ts +18 -0
  366. package/locale/public-api.d.ts +1 -0
  367. package/localized-number-input/README.md +32 -8
  368. package/localized-number-input/lib/localized-number-input/localized-number-input.directive.d.ts +4 -0
  369. package/localized-number-input/lib/localized-number-input/localized-number-input.module.d.ts +7 -0
  370. package/mask/lib/mask/mask-formatter.module.d.ts +7 -0
  371. package/mouse-events/README.md +5 -4
  372. package/mouse-events/lib/mouse-events/mouse-events.module.d.ts +7 -0
  373. package/navigation-button/README.md +5 -4
  374. package/navigation-button/lib/navigation-button/navigation-button.module.d.ts +7 -0
  375. package/number-input/lib/number-input/number-input.directive.d.ts +1 -1
  376. package/number-input/lib/number-input/number-input.module.d.ts +8 -1
  377. package/numeric/README.md +6 -5
  378. package/numeric/lib/numeric.module.d.ts +7 -0
  379. package/numeric-mask/README.md +44 -1
  380. package/numeric-mask/lib/numeric-mask/numeric-mask.directive.d.ts +65 -4
  381. package/numeric-mask/lib/numeric-mask/numeric-mask.module.d.ts +7 -0
  382. package/object-card/README.md +11 -4
  383. package/object-card/lib/object-card/object-card.module.d.ts +11 -0
  384. package/package.json +1 -1
  385. package/panel/README.md +8 -4
  386. package/panel/lib/panel/panel.module.d.ts +10 -0
  387. package/password-strength/README.md +6 -3
  388. package/password-strength/lib/password-strength/password-strength.module.d.ts +7 -0
  389. package/picklist/README.md +8 -5
  390. package/picklist/lib/picklist/picklist.module.d.ts +7 -0
  391. package/pin-code-field/lib/pin-code-field.module.d.ts +7 -0
  392. package/product-header/README.md +2 -2
  393. package/profile-picture-picker/README.md +6 -3
  394. package/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.d.ts +7 -0
  395. package/progressbar/README.md +6 -3
  396. package/progressbar/lib/progressbar/progressbar.module.d.ts +7 -0
  397. package/rating-scale/README.md +6 -3
  398. package/rating-scale/lib/rating-scale/rating-scale.module.d.ts +7 -0
  399. package/schematics/collection.json +40 -0
  400. package/schematics/migrations/migrate-app-to-standalone/index.d.ts +32 -0
  401. package/schematics/migrations/migrate-app-to-standalone/index.js +98 -0
  402. package/schematics/migrations/migrate-app-to-standalone/index.js.map +1 -0
  403. package/schematics/migrations/migrate-deprecated-apis/index.d.ts +49 -0
  404. package/schematics/migrations/migrate-deprecated-apis/index.js +660 -0
  405. package/schematics/migrations/migrate-deprecated-apis/index.js.map +1 -0
  406. package/schematics/migrations/migrate-deprecated-datepicker/index.d.ts +31 -0
  407. package/schematics/migrations/migrate-deprecated-datepicker/index.js +115 -0
  408. package/schematics/migrations/migrate-deprecated-datepicker/index.js.map +1 -0
  409. package/schematics/migrations/migrate-deprecated-dynamic-form/index.d.ts +52 -0
  410. package/schematics/migrations/migrate-deprecated-dynamic-form/index.js +661 -0
  411. package/schematics/migrations/migrate-deprecated-dynamic-form/index.js.map +1 -0
  412. package/schematics/migrations/migrate-deprecated-imports/index.d.ts +23 -0
  413. package/schematics/migrations/migrate-deprecated-imports/index.js +335 -0
  414. package/schematics/migrations/migrate-deprecated-imports/index.js.map +1 -0
  415. package/schematics/migrations/migrate-deprecated-selectors/index.d.ts +15 -0
  416. package/schematics/migrations/migrate-deprecated-selectors/index.js +76 -0
  417. package/schematics/migrations/migrate-deprecated-selectors/index.js.map +1 -0
  418. package/schematics/migrations/migrate-modules-to-standalone/index.d.ts +51 -0
  419. package/schematics/migrations/migrate-modules-to-standalone/index.js +632 -0
  420. package/schematics/migrations/migrate-modules-to-standalone/index.js.map +1 -0
  421. package/schematics/migrations/migrate-modules-to-standalone/modules-map.json +1656 -0
  422. package/schematics/migrations/migrate-v20/index.d.ts +9 -0
  423. package/schematics/migrations/migrate-v20/index.js +90 -0
  424. package/schematics/migrations/migrate-v20/index.js.map +1 -0
  425. package/schematics/migrations/migrate-v20/items.d.ts +7 -0
  426. package/schematics/migrations/migrate-v20/items.js +54 -0
  427. package/schematics/migrations/migrate-v20/items.js.map +1 -0
  428. package/schematics/migrations/migrate-v20/plan.d.ts +32 -0
  429. package/schematics/migrations/migrate-v20/plan.js +29 -0
  430. package/schematics/migrations/migrate-v20/plan.js.map +1 -0
  431. package/schematics/migrations.json +5 -1
  432. package/schematics/schema/app-standalone.schema.json +21 -0
  433. package/schematics/schema/migrate-v20.schema.json +33 -0
  434. package/schematics/schema/scope.schema.json +17 -0
  435. package/schematics/utils/ast-utils.js +16 -0
  436. package/schematics/utils/ast-utils.js.map +1 -1
  437. package/schematics/utils/eol.d.ts +5 -0
  438. package/schematics/utils/eol.js +17 -0
  439. package/schematics/utils/eol.js.map +1 -0
  440. package/schematics/utils/prompt-utils.d.ts +62 -0
  441. package/schematics/utils/prompt-utils.js +166 -0
  442. package/schematics/utils/prompt-utils.js.map +1 -0
  443. package/schematics/utils/report.d.ts +27 -0
  444. package/schematics/utils/report.js +70 -0
  445. package/schematics/utils/report.js.map +1 -0
  446. package/schematics/utils/scope.d.ts +17 -0
  447. package/schematics/utils/scope.js +55 -0
  448. package/schematics/utils/scope.js.map +1 -0
  449. package/schematics/utils/selection.d.ts +21 -0
  450. package/schematics/utils/selection.js +60 -0
  451. package/schematics/utils/selection.js.map +1 -0
  452. package/schematics/utils/symbol-utils.d.ts +31 -0
  453. package/schematics/utils/symbol-utils.js +202 -0
  454. package/schematics/utils/symbol-utils.js.map +1 -0
  455. package/schematics/utils/template-utils.d.ts +62 -0
  456. package/schematics/utils/template-utils.js +165 -0
  457. package/schematics/utils/template-utils.js.map +1 -0
  458. package/schematics/utils/tsconfig-paths.d.ts +5 -0
  459. package/schematics/utils/tsconfig-paths.js +73 -0
  460. package/schematics/utils/tsconfig-paths.js.map +1 -0
  461. package/select/lib/select/select.component.d.ts +8 -0
  462. package/select-button/README.md +6 -3
  463. package/select-button/lib/select-button/select-button.module.d.ts +7 -0
  464. package/shared/lib/shared/border-button/border-button.module.d.ts +7 -0
  465. package/sidebar/README.md +2 -2
  466. package/slide-in-bar/README.md +5 -5
  467. package/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.d.ts +7 -0
  468. package/slider/README.md +6 -3
  469. package/slider/lib/slider/slider.module.d.ts +7 -0
  470. package/speech-recognition/README.md +6 -3
  471. package/speech-recognition/lib/speech-recognition/speech-recognition.module.d.ts +7 -0
  472. package/split-button/README.md +6 -3
  473. package/split-button/lib/split-button/split-button.module.d.ts +7 -0
  474. package/stats-card/README.md +6 -3
  475. package/stats-card/lib/stats-card/stats-card.module.d.ts +7 -0
  476. package/stepper/README.md +6 -3
  477. package/stepper/lib/stepper/stepper.module.d.ts +7 -0
  478. package/structure/lib/structure/structure.module.d.ts +7 -0
  479. package/switch/README.md +6 -3
  480. package/switch/lib/switch/switch.module.d.ts +7 -0
  481. package/table/README.md +12 -4
  482. package/table/lib/table/table.module.d.ts +8 -0
  483. package/table-header/lib/table-header/table-header-checkox.module.d.ts +7 -0
  484. package/template/README.md +0 -11
  485. package/template/lib/template/template.module.d.ts +7 -0
  486. package/text-area/lib/text-area.module.d.ts +7 -0
  487. package/text-area-ia/README.md +1 -1
  488. package/thumbnail/lib/thumbnail/thumbnail.module.d.ts +7 -0
  489. package/thumbnails/lib/thumbnails/thumbnails.module.d.ts +7 -0
  490. package/tiered-menu/lib/tiered-menu/tiered-menu.module.d.ts +7 -0
  491. package/tile/lib/tile/tile.module.d.ts +10 -0
  492. package/timeline/lib/timeline/timeline.module.d.ts +7 -0
  493. package/toast/lib/toast/toast.module.d.ts +7 -0
  494. package/token-list/lib/token-list/token-list.module.d.ts +7 -0
  495. package/tooltip/lib/tooltip/tooltip.module.d.ts +7 -0
  496. package/topbar/lib/topbar/topbar.module.d.ts +10 -0
  497. package/tree/lib/tree/tree.module.d.ts +7 -0
  498. package/workspace-switch/lib/workspace-switch/workspace-switch.module.d.ts +7 -0
  499. package/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.d.ts +0 -664
  500. package/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.d.ts +0 -29
  501. package/esm2022/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.mjs +0 -96
  502. package/esm2022/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.mjs +0 -124
@@ -72,6 +72,25 @@ export declare class NumericMaskDirective implements OnInit, OnChanges, ControlV
72
72
  * @default 'preserve'
73
73
  */
74
74
  decimalRoundingMode: import("@angular/core").InputSignal<"preserve" | "truncate" | "roundUp" | "roundDown">;
75
+ /**
76
+ * Maximum number of significant digits accepted by the field (integer + decimal part).
77
+ * Opt-in: when left `undefined` (default), there is no total-digit limit, no native `maxLength`
78
+ * is applied, pasted values are never rejected, and `placeholder` is never auto-calculated —
79
+ * i.e. the directive behaves exactly as before this input existed.
80
+ */
81
+ precision: import("@angular/core").InputSignal<number | undefined>;
82
+ /**
83
+ * Placeholder text shown when the field is empty. When `precision` is set and this is left
84
+ * unset, it is auto-calculated from `minDecimalPlaces` (e.g. `0,00`); has no effect otherwise.
85
+ */
86
+ placeholder: import("@angular/core").ModelSignal<string | undefined>;
87
+ /**
88
+ * Emitted when a pasted value is rejected for exceeding `precision`. Only fires when
89
+ * `precision` is set; emits the rejected pasted text.
90
+ */
91
+ pasteRejected: import("@angular/core").OutputEmitterRef<string>;
92
+ /** Native `maxLength` attribute, auto-calculated from `precision` when it is set. */
93
+ maxLength: number | undefined;
75
94
  private readonly elementRef;
76
95
  private readonly renderer;
77
96
  private readonly localeService;
@@ -82,6 +101,11 @@ export declare class NumericMaskDirective implements OnInit, OnChanges, ControlV
82
101
  thousandSeparator: import("@angular/core").ModelSignal<string>;
83
102
  protected currentLocale: string;
84
103
  private lastModelValue;
104
+ /** `protected`: subclasses with their own deprecated separator aliases (e.g. `BignumberInputDirective`) set this directly. */
105
+ protected _decimalSeparatorExplicit: boolean;
106
+ /** `protected`: see `_decimalSeparatorExplicit`. */
107
+ protected _thousandSeparatorExplicit: boolean;
108
+ private _lastAutoPlaceholder;
85
109
  ngOnChanges(changes: SimpleChanges): void;
86
110
  ngOnInit(): void;
87
111
  /**
@@ -97,9 +121,16 @@ export declare class NumericMaskDirective implements OnInit, OnChanges, ControlV
97
121
  */
98
122
  onBlur(): void;
99
123
  /**
100
- * Listener for paste events (clipboard)
124
+ * Listener for paste events (clipboard). When `precision` is set and the pasted value would
125
+ * exceed it, the paste is rejected outright (nothing is written) and `pasteRejected` fires.
101
126
  */
102
127
  onPaste(event: ClipboardEvent): void;
128
+ /**
129
+ * Whether a raw pasted string, once stripped of separators, has more significant digits
130
+ * than `precision` allows.
131
+ * @private
132
+ */
133
+ private exceedsPrecision;
103
134
  /**
104
135
  * Listener for special keys (+ and -)
105
136
  */
@@ -109,9 +140,24 @@ export declare class NumericMaskDirective implements OnInit, OnChanges, ControlV
109
140
  */
110
141
  onKeyPress(event: KeyboardEvent): void;
111
142
  /**
112
- * Updates separators according to the locale
143
+ * Updates separators according to the locale. An explicitly bound `decimalSeparator`/
144
+ * `thousandSeparator` (tracked in `ngOnChanges`) is restored afterwards, so a locale
145
+ * change never silently overrides a value the consumer set on purpose.
113
146
  */
114
147
  protected updateSeparators(): void;
148
+ /**
149
+ * Auto-calculates the native `maxLength` from `precision`, sized for the current separators
150
+ * and `maxDecimalPlaces`. No-op (leaves `maxLength` unset) while `precision` is `undefined`.
151
+ * `protected`: subclasses that map their own deprecated inputs into `minDecimalPlaces`/
152
+ * `maxDecimalPlaces`/`thousandSeparator` outside of a tracked `changes` key call this directly.
153
+ */
154
+ protected calculateMaxLength(): void;
155
+ /**
156
+ * Auto-calculates `placeholder` (e.g. `0,00`) from `minDecimalPlaces`, without overwriting
157
+ * a value the consumer set explicitly. No-op while `precision` is `undefined`.
158
+ * `protected`: see `calculateMaxLength`.
159
+ */
160
+ protected updatePlaceholder(): void;
115
161
  /**
116
162
  * Processes input value and updates the input and model
117
163
  * @private
@@ -164,6 +210,21 @@ export declare class NumericMaskDirective implements OnInit, OnChanges, ControlV
164
210
  * @private
165
211
  */
166
212
  private parseStringToValue;
213
+ /**
214
+ * Groups an integer digit string (optionally signed) using `thousandSeparator`.
215
+ *
216
+ * Previously this used `Intl.NumberFormat(currentLocale)` and then tried to strip the
217
+ * locale's own grouping via `.split(decimalSeparator())`, which (a) ignored a custom
218
+ * `thousandSeparator` entirely — always falling back to the locale's own grouping
219
+ * character instead, e.g. `thousandSeparator=""` had no effect — and (b) corrupted the
220
+ * result whenever the locale's grouping character happened to equal `decimalSeparator`
221
+ * (e.g. a custom `decimalSeparator="."` under `pt-BR`, which groups thousands with `.`
222
+ * too): `"1.234".split('.')[0]` returned `"1"` instead of `"1234"`. Grouping the digits
223
+ * directly with the directive's own (already locale/explicit-resolved) `thousandSeparator`
224
+ * avoids the detour through `Intl.NumberFormat` and both bugs.
225
+ * @private
226
+ */
227
+ private groupIntegerDigits;
167
228
  /**
168
229
  * Formats a numeric value according to the locale
169
230
  * Truncates (never rounds) to maxDecimalPlaces and pads with zeros to minDecimalPlaces
@@ -193,11 +254,11 @@ export declare class NumericMaskDirective implements OnInit, OnChanges, ControlV
193
254
  * @private
194
255
  */
195
256
  private toggleSign;
196
- writeValue(value: string | null): void;
257
+ writeValue(value: string | number | null): void;
197
258
  registerOnChange(fn: (value: string | null) => void): void;
198
259
  registerOnTouched(fn: () => void): void;
199
260
  setDisabledState(isDisabled: boolean): void;
200
261
  validate(control: AbstractControl): ValidationErrors | null;
201
262
  static ɵfac: i0.ɵɵFactoryDeclaration<NumericMaskDirective, never>;
202
- static ɵdir: i0.ɵɵDirectiveDeclaration<NumericMaskDirective, "[sNumericMask]", never, { "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "minDecimalPlaces": { "alias": "minDecimalPlaces"; "required": false; "isSignal": true; }; "maxDecimalPlaces": { "alias": "maxDecimalPlaces"; "required": false; "isSignal": true; }; "allowNegative": { "alias": "allowNegative"; "required": false; "isSignal": true; }; "allowScientificNotation": { "alias": "allowScientificNotation"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "blockDecimalOverflow": { "alias": "blockDecimalOverflow"; "required": false; "isSignal": true; }; "decimalRoundingMode": { "alias": "decimalRoundingMode"; "required": false; "isSignal": true; }; "decimalSeparator": { "alias": "decimalSeparator"; "required": false; "isSignal": true; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; "isSignal": true; }; }, { "decimalSeparator": "decimalSeparatorChange"; "thousandSeparator": "thousandSeparatorChange"; }, never, never, true, never>;
263
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NumericMaskDirective, "[sNumericMask]", never, { "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "minDecimalPlaces": { "alias": "minDecimalPlaces"; "required": false; "isSignal": true; }; "maxDecimalPlaces": { "alias": "maxDecimalPlaces"; "required": false; "isSignal": true; }; "allowNegative": { "alias": "allowNegative"; "required": false; "isSignal": true; }; "allowScientificNotation": { "alias": "allowScientificNotation"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "blockDecimalOverflow": { "alias": "blockDecimalOverflow"; "required": false; "isSignal": true; }; "decimalRoundingMode": { "alias": "decimalRoundingMode"; "required": false; "isSignal": true; }; "precision": { "alias": "precision"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "decimalSeparator": { "alias": "decimalSeparator"; "required": false; "isSignal": true; }; "thousandSeparator": { "alias": "thousandSeparator"; "required": false; "isSignal": true; }; }, { "placeholder": "placeholderChange"; "pasteRejected": "pasteRejected"; "decimalSeparator": "decimalSeparatorChange"; "thousandSeparator": "thousandSeparatorChange"; }, never, never, true, never>;
203
264
  }
@@ -1,5 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./numeric-mask.directive";
3
+ /**
4
+ * @deprecated Será removido na v20. Importe diretamente o standalone `NumericMaskDirective` (de
5
+ * `@seniorsistemas/angular-components/numeric-mask`) no lugar deste módulo.
6
+ *
7
+ * Migração automática (também executada pelo `ng update` na v20):
8
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
9
+ */
3
10
  export declare class CurrencyMaskModule {
4
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyMaskModule, never>;
5
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<CurrencyMaskModule, never, [typeof i1.NumericMaskDirective], [typeof i1.NumericMaskDirective]>;
@@ -19,10 +19,17 @@ Componente de card para exibição de um objeto de análise com cabeçalho princ
19
19
  ## Instalação
20
20
 
21
21
  ```typescript
22
- import { ObjectCardModule } from '@seniorsistemas/angular-components/object-card';
23
-
24
- @NgModule({ imports: [ObjectCardModule] })
25
- export class MeuModulo {}
22
+ import {
23
+ ObjectCardComponent,
24
+ ObjectCardMainComponent,
25
+ ObjectCardFieldComponent,
26
+ } from '@seniorsistemas/angular-components/object-card';
27
+
28
+ @Component({
29
+ standalone: true,
30
+ imports: [ObjectCardComponent, ObjectCardMainComponent, ObjectCardFieldComponent],
31
+ })
32
+ export class MeuComponent {}
26
33
  ```
27
34
 
28
35
  ## Uso básico
@@ -3,6 +3,17 @@ import * as i1 from "@seniorsistemas/angular-components/thumbnail";
3
3
  import * as i2 from "./object-card.component";
4
4
  import * as i3 from "./elements/main/object-card-main.component";
5
5
  import * as i4 from "./elements/field/object-card-field.component";
6
+ /**
7
+ * @deprecated Será removido na v20. Importe diretamente os standalones `ObjectCardComponent`,
8
+ * `ObjectCardMainComponent` e `ObjectCardFieldComponent` (de
9
+ * `@seniorsistemas/angular-components/object-card`) no lugar deste módulo.
10
+ *
11
+ * Este módulo também reexportava `ThumbnailComponent` (`@seniorsistemas/angular-components/thumbnail`, usado
12
+ * em templates por `<s-thumbnail>`). Se o seu template usa algum deles, importe-o diretamente.
13
+ *
14
+ * Migração automática (também executada pelo `ng update` na v20):
15
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
16
+ */
6
17
  export declare class ObjectCardModule {
7
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ObjectCardModule, never>;
8
19
  static ɵmod: i0.ɵɵNgModuleDeclaration<ObjectCardModule, never, [typeof i1.ThumbnailModule, typeof i2.ObjectCardComponent, typeof i3.ObjectCardMainComponent, typeof i4.ObjectCardFieldComponent], [typeof i1.ThumbnailModule, typeof i2.ObjectCardComponent, typeof i3.ObjectCardMainComponent, typeof i4.ObjectCardFieldComponent]>;
package/package.json CHANGED
@@ -707,5 +707,5 @@
707
707
  "schematics": "./schematics/collection.json",
708
708
  "sideEffects": true,
709
709
  "typings": "index.d.ts",
710
- "version": "19.9.14-develop-23365630"
710
+ "version": "19.9.15-develop-11ab86f5"
711
711
  }
package/panel/README.md CHANGED
@@ -19,10 +19,14 @@ Componente container com cabeçalho, corpo e rodapé opcionais. Suporta colapso
19
19
  ## Instalação
20
20
 
21
21
  ```typescript
22
- import { PanelModule } from '@seniorsistemas/angular-components/panel';
23
-
24
- @NgModule({ imports: [PanelModule] })
25
- export class MeuModulo {}
22
+ import { PanelComponent } from '@seniorsistemas/angular-components/panel';
23
+ import { TemplateDirective } from '@seniorsistemas/angular-components/template';
24
+
25
+ @Component({
26
+ standalone: true,
27
+ imports: [PanelComponent, TemplateDirective],
28
+ })
29
+ export class MeuComponent {}
26
30
  ```
27
31
 
28
32
  ## Uso básico
@@ -1,6 +1,16 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./panel.component";
3
3
  import * as i2 from "@seniorsistemas/angular-components/template";
4
+ /**
5
+ * @deprecated Será removido na v20. Importe diretamente o standalone `PanelComponent` (de
6
+ * `@seniorsistemas/angular-components/panel`) no lugar deste módulo.
7
+ *
8
+ * Este módulo também reexportava `TemplateDirective` (`@seniorsistemas/angular-components/template`, usado em
9
+ * templates por `[sTemplate]`). Se o seu template usa algum deles, importe-o diretamente.
10
+ *
11
+ * Migração automática (também executada pelo `ng update` na v20):
12
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
13
+ */
4
14
  export declare class PanelModule {
5
15
  static ɵfac: i0.ɵɵFactoryDeclaration<PanelModule, never>;
6
16
  static ɵmod: i0.ɵɵNgModuleDeclaration<PanelModule, never, [typeof i1.PanelComponent], [typeof i1.PanelComponent, typeof i2.TemplateModule]>;
@@ -18,10 +18,13 @@ Diretiva Angular que adiciona um indicador visual de força de senha a qualquer
18
18
  ## Instalação
19
19
 
20
20
  ```typescript
21
- import { PasswordStrengthModule } from '@seniorsistemas/angular-components/password-strength';
21
+ import { PasswordStrengthDirective } from '@seniorsistemas/angular-components/password-strength';
22
22
 
23
- @NgModule({ imports: [PasswordStrengthModule] })
24
- export class MeuModulo {}
23
+ @Component({
24
+ standalone: true,
25
+ imports: [PasswordStrengthDirective],
26
+ })
27
+ export class MeuComponent {}
25
28
  ```
26
29
 
27
30
  ## Uso básico
@@ -1,5 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./password-strength.directive";
3
+ /**
4
+ * @deprecated Será removido na v20. Importe diretamente o standalone `PasswordStrengthDirective` (de
5
+ * `@seniorsistemas/angular-components/password-strength`) no lugar deste módulo.
6
+ *
7
+ * Migração automática (também executada pelo `ng update` na v20):
8
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
9
+ */
3
10
  export declare class PasswordStrengthModule {
4
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PasswordStrengthModule, never>;
5
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<PasswordStrengthModule, never, [typeof i1.PasswordStrengthDirective], [typeof i1.PasswordStrengthDirective]>;
@@ -19,11 +19,14 @@ Componente para transferência de itens entre duas listas — disponíveis e sel
19
19
  ## Instalação
20
20
 
21
21
  ```typescript
22
- import { PicklistModule } from '@seniorsistemas/angular-components/picklist';
23
- import { TemplateModule } from '@seniorsistemas/angular-components/template';
24
-
25
- @NgModule({ imports: [PicklistModule, TemplateModule] })
26
- export class MeuModulo {}
22
+ import { PicklistComponent } from '@seniorsistemas/angular-components/picklist';
23
+ import { TemplateDirective } from '@seniorsistemas/angular-components/template';
24
+
25
+ @Component({
26
+ standalone: true,
27
+ imports: [PicklistComponent, TemplateDirective],
28
+ })
29
+ export class MeuComponent {}
27
30
  ```
28
31
 
29
32
  ## Uso básico
@@ -1,5 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./picklist.component";
3
+ /**
4
+ * @deprecated Será removido na v20. Importe diretamente o standalone `PicklistComponent` (de
5
+ * `@seniorsistemas/angular-components/picklist`) no lugar deste módulo.
6
+ *
7
+ * Migração automática (também executada pelo `ng update` na v20):
8
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
9
+ */
3
10
  export declare class PicklistModule {
4
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PicklistModule, never>;
5
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<PicklistModule, never, [typeof i1.PicklistComponent], [typeof i1.PicklistComponent]>;
@@ -1,5 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./pin-code-field/pin-code-field.component";
3
+ /**
4
+ * @deprecated Será removido na v20. Importe diretamente o standalone `PinCodeFieldComponent` (de
5
+ * `@seniorsistemas/angular-components/pin-code-field`) no lugar deste módulo.
6
+ *
7
+ * Migração automática (também executada pelo `ng update` na v20):
8
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
9
+ */
3
10
  export declare class PinCodeFieldModule {
4
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PinCodeFieldModule, never>;
5
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<PinCodeFieldModule, never, [typeof i1.PinCodeFieldComponent], [typeof i1.PinCodeFieldComponent]>;
@@ -12,7 +12,7 @@ O pacote `product-header` re-exporta `TopbarComponent` e `TopbarModule` do pacot
12
12
 
13
13
  ## Quando não usar
14
14
 
15
- - Em todo código novo — use `TopbarComponent` ou `TopbarModule` do pacote `@seniorsistemas/angular-components/topbar`
15
+ - Em todo código novo — use `TopbarComponent` do pacote `@seniorsistemas/angular-components/topbar`
16
16
 
17
17
  ## Migração
18
18
 
@@ -21,7 +21,7 @@ O pacote `product-header` re-exporta `TopbarComponent` e `TopbarModule` do pacot
21
21
  import { ProductHeaderModule } from '@seniorsistemas/angular-components/product-header';
22
22
 
23
23
  // Depois (recomendado)
24
- import { TopbarModule } from '@seniorsistemas/angular-components/topbar';
24
+ import { TopbarComponent } from '@seniorsistemas/angular-components/topbar';
25
25
  ```
26
26
 
27
27
  ```html
@@ -19,10 +19,13 @@ Componente para seleção, recorte e gerenciamento de foto de perfil. Permite se
19
19
  ## Instalação
20
20
 
21
21
  ```typescript
22
- import { ProfilePicturePickerModule } from '@seniorsistemas/angular-components/profile-picture-picker';
22
+ import { ProfilePicturePickerComponent } from '@seniorsistemas/angular-components/profile-picture-picker';
23
23
 
24
- @NgModule({ imports: [ProfilePicturePickerModule] })
25
- export class MeuModulo {}
24
+ @Component({
25
+ standalone: true,
26
+ imports: [ProfilePicturePickerComponent],
27
+ })
28
+ export class MeuComponent {}
26
29
  ```
27
30
 
28
31
  ## Uso básico
@@ -1,5 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./profile-picture-picker.component";
3
+ /**
4
+ * @deprecated Será removido na v20. Importe diretamente o standalone `ProfilePicturePickerComponent` (de
5
+ * `@seniorsistemas/angular-components/profile-picture-picker`) no lugar deste módulo.
6
+ *
7
+ * Migração automática (também executada pelo `ng update` na v20):
8
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
9
+ */
3
10
  export declare class ProfilePicturePickerModule {
4
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ProfilePicturePickerModule, never>;
5
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<ProfilePicturePickerModule, never, [typeof i1.ProfilePicturePickerComponent], [typeof i1.ProfilePicturePickerComponent]>;
@@ -19,10 +19,13 @@ Componente de barra de progresso para representar visualmente o avanço de uma o
19
19
  ## Instalação
20
20
 
21
21
  ```typescript
22
- import { ProgressBarModule } from '@seniorsistemas/angular-components/progressbar';
22
+ import { ProgressBarComponent } from '@seniorsistemas/angular-components/progressbar';
23
23
 
24
- @NgModule({ imports: [ProgressBarModule] })
25
- export class MeuModulo {}
24
+ @Component({
25
+ standalone: true,
26
+ imports: [ProgressBarComponent],
27
+ })
28
+ export class MeuComponent {}
26
29
  ```
27
30
 
28
31
  ## Uso básico
@@ -1,5 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./progressbar.component";
3
+ /**
4
+ * @deprecated Será removido na v20. Importe diretamente o standalone `ProgressBarComponent` (de
5
+ * `@seniorsistemas/angular-components/progressbar`) no lugar deste módulo.
6
+ *
7
+ * Migração automática (também executada pelo `ng update` na v20):
8
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
9
+ */
3
10
  export declare class ProgressBarModule {
4
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarModule, never>;
5
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<ProgressBarModule, never, [typeof i1.ProgressBarComponent], [typeof i1.ProgressBarComponent]>;
@@ -20,10 +20,13 @@ Componente de escala de avaliação que permite ao usuário selecionar um nó de
20
20
  ## Instalação
21
21
 
22
22
  ```typescript
23
- import { RatingScaleModule } from '@seniorsistemas/angular-components/rating-scale';
23
+ import { RatingScaleComponent } from '@seniorsistemas/angular-components/rating-scale';
24
24
 
25
- @NgModule({ imports: [RatingScaleModule] })
26
- export class MeuModulo {}
25
+ @Component({
26
+ standalone: true,
27
+ imports: [RatingScaleComponent],
28
+ })
29
+ export class MeuComponent {}
27
30
  ```
28
31
 
29
32
  ## Uso básico
@@ -1,5 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./rating-scale.component";
3
+ /**
4
+ * @deprecated Será removido na v20. Importe diretamente o standalone `RatingScaleComponent` (de
5
+ * `@seniorsistemas/angular-components/rating-scale`) no lugar deste módulo.
6
+ *
7
+ * Migração automática (também executada pelo `ng update` na v20):
8
+ * `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
9
+ */
3
10
  export declare class RatingScaleModule {
4
11
  static ɵfac: i0.ɵɵFactoryDeclaration<RatingScaleModule, never>;
5
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<RatingScaleModule, never, [typeof i1.RatingScaleComponent], [typeof i1.RatingScaleComponent]>;
@@ -24,6 +24,46 @@
24
24
  "migrate-fieldset-body-template": {
25
25
  "description": "Envolve o conteúdo projetado do s-fieldset em <ng-template sTemplate=\"body\">, mantendo templates de slot como sTemplate=\"header\" fora do body, e garante o TemplateDirective no escopo do componente (standalone ou via NgModule)",
26
26
  "factory": "./migrations/migrate-fieldset-body-template/index#migrate"
27
+ },
28
+ "migrate-deprecated-selectors": {
29
+ "description": "Troca os selectors depreciados (removidos na v20) pelos novos em templates e estilos: s-sidebar→s-drawer, s-slide-panel→s-slide-in-bar, s-steps→s-stepper, s-product-header→s-topbar, s-ia-insight→s-insights, s-file-upload→s-file-picker, s-text-area-ia→s-content-generator, s-breadcrumb→s-dynamic-breadcrumb",
30
+ "factory": "./migrations/migrate-deprecated-selectors/index#migrate",
31
+ "schema": "./schema/scope.schema.json"
32
+ },
33
+ "migrate-deprecated-imports": {
34
+ "description": "Troca os pacotes alias depreciados (removidos na v20) e seus símbolos pelos novos: sidebar→drawer, slide-panel→slide-in-bar, steps→stepper, product-header→topbar, ia-insight→insights, text-area-ia→content-generator, file-upload→file-picker",
35
+ "factory": "./migrations/migrate-deprecated-imports/index#migrate",
36
+ "schema": "./schema/scope.schema.json"
37
+ },
38
+ "migrate-deprecated-apis": {
39
+ "description": "Migra APIs depreciadas com substituto direto: (onCodeChange)→(codeChange), (changedImage)→(imageChange), sNumberInput/sBignumberInput/sLocalizedNumberInput (e as respectivas *Directive/*Module)→sNumericMask/NumericMaskDirective com os defaults antigos explícitos, [scale]→[minDecimalPlaces]/[maxDecimalPlaces], [thousandsSeparator]→[thousandSeparator], remoção de [alignTo], NumberAlignmentOption→'left'/'right', pipes localizedNumber/localizedCurrency→localizedBignumber, icon→selectedIcon/unselectedIcon no rating-scale e BreadcrumbModule→DynamicBreadcrumbComponent. Avisa o que não dá para converter com segurança.",
40
+ "factory": "./migrations/migrate-deprecated-apis/index#migrate",
41
+ "schema": "./schema/scope.schema.json"
42
+ },
43
+ "migrate-deprecated-dynamic-form": {
44
+ "description": "Migra os tipos de campo e propriedades depreciados do dynamic-form: integer vira number (scale 0, sem negativos nem autoClear), textAreaIA vira contentGenerator, calendarLocaleOptions vira dateFormat/hourFormat, remove priority/appendTo e troca [fields] por [configs] (DynamicStructure[]). O tipo money é estável e não é migrado. Execute depois de migrate-dynamic-form.",
45
+ "factory": "./migrations/migrate-deprecated-dynamic-form/index#migrate",
46
+ "schema": "./schema/scope.schema.json"
47
+ },
48
+ "migrate-deprecated-datepicker": {
49
+ "description": "Remove o uso das diretivas depreciadas sCalendarMask (CalendarMaskDirective) e sDatepickerNoPeriodTab (DatepickerNoPeriodTabDirective) dos templates e dos imports, e avisa a troca de p-calendar por s-datepicker.",
50
+ "factory": "./migrations/migrate-deprecated-datepicker/index#migrate",
51
+ "schema": "./schema/scope.schema.json"
52
+ },
53
+ "migrate-modules-to-standalone": {
54
+ "description": "Troca os NgModules da biblioteca (ButtonModule, TableModule, LocaleModule etc.) pelos componentes, diretivas e pipes standalone que eles reexportam, e converte forRoot() em provideAngularComponents()/provideLocale().",
55
+ "factory": "./migrations/migrate-modules-to-standalone/index#migrate",
56
+ "schema": "./schema/scope.schema.json"
57
+ },
58
+ "migrate-app-to-standalone": {
59
+ "description": "Wrapper do schematic oficial do Angular (@angular/core:standalone): converte o app para standalone (convert-to-standalone, prune-ng-modules e standalone-bootstrap, nessa ordem). A migração é feita pelo Angular, não pelo angular-components.",
60
+ "factory": "./migrations/migrate-app-to-standalone/index#migrate",
61
+ "schema": "./schema/app-standalone.schema.json"
62
+ },
63
+ "migrate-v20": {
64
+ "description": "Prepara o projeto para a v20: pergunta quais migrações executar (com \"Marcar todos\") e roda seletores, pacotes alias, APIs depreciadas, dynamic-form, datepicker e módulos → standalone. Não pergunta sobre o app standalone: ao final avisa que existe o schematic migrate-app-to-standalone (migrações nativas do Angular, feitas pelo Angular). Aceita --all, --items, --skip, --path e --project para uso sem terminal interativo. Pelo ng generate, atualize a lib antes: o código migrado usa APIs novas (provideLocale, provideAngularComponents).",
65
+ "factory": "./migrations/migrate-v20/index#migrate",
66
+ "schema": "./schema/migrate-v20.schema.json"
27
67
  }
28
68
  }
29
69
  }
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,98 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/angular-components/schematics/migrations/migrate-app-to-standalone/index.ts"],"names":[],"mappings":"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"}