@spartan-ng/cli 0.0.1-alpha.492 → 0.0.1-alpha.494

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 (230) hide show
  1. package/generators.json +10 -0
  2. package/package.json +1 -1
  3. package/src/generators/healthcheck/generator.js +2 -0
  4. package/src/generators/healthcheck/generator.js.map +1 -1
  5. package/src/generators/healthcheck/healthchecks/brn-radio.js +1 -1
  6. package/src/generators/healthcheck/healthchecks/brn-radio.js.map +1 -1
  7. package/src/generators/healthcheck/healthchecks/naming-conventions.d.ts +2 -0
  8. package/src/generators/healthcheck/healthchecks/naming-conventions.js +39 -0
  9. package/src/generators/healthcheck/healthchecks/naming-conventions.js.map +1 -0
  10. package/src/generators/migrate-naming-convention/__snapshots__/generator.spec.ts.snap +213 -0
  11. package/src/generators/migrate-naming-convention/compat.d.ts +2 -0
  12. package/src/generators/migrate-naming-convention/compat.js +7 -0
  13. package/src/generators/migrate-naming-convention/compat.js.map +1 -0
  14. package/src/generators/migrate-naming-convention/generator.d.ts +4 -0
  15. package/src/generators/migrate-naming-convention/generator.js +97 -0
  16. package/src/generators/migrate-naming-convention/generator.js.map +1 -0
  17. package/src/generators/migrate-naming-convention/schema.d.ts +3 -0
  18. package/src/generators/migrate-naming-convention/schema.json +14 -0
  19. package/src/generators/ui/libs/ui-accordion-helm/files/index.ts.template +15 -15
  20. package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-content.component.ts.template → hlm-accordion-content.ts.template} +2 -2
  21. package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-icon.directive.ts.template → hlm-accordion-icon.ts.template} +1 -1
  22. package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-item.directive.ts.template → hlm-accordion-item.ts.template} +3 -3
  23. package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-trigger.directive.ts.template → hlm-accordion-trigger.ts.template} +3 -3
  24. package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion.directive.ts.template → hlm-accordion.ts.template} +4 -4
  25. package/src/generators/ui/libs/ui-alert-dialog-helm/files/index.ts.template +27 -27
  26. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-action-button.ts.template +8 -0
  27. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-cancel-button.directive.ts.template → hlm-alert-dialog-cancel-button.ts.template} +3 -3
  28. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-content.component.ts.template → hlm-alert-dialog-content.ts.template} +1 -1
  29. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-description.directive.ts.template → hlm-alert-dialog-description.ts.template} +3 -3
  30. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-footer.component.ts.template → hlm-alert-dialog-footer.ts.template} +1 -1
  31. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-header.component.ts.template → hlm-alert-dialog-header.ts.template} +1 -1
  32. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-overlay.directive.ts.template → hlm-alert-dialog-overlay.ts.template} +1 -1
  33. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-title.directive.ts.template → hlm-alert-dialog-title.ts.template} +3 -3
  34. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog.component.ts.template → hlm-alert-dialog.ts.template} +8 -8
  35. package/src/generators/ui/libs/ui-alert-helm/files/index.ts.template +9 -14
  36. package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert-description.directive.ts.template → hlm-alert-description.ts.template} +1 -1
  37. package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert-icon.directive.ts.template → hlm-alert-icon.ts.template} +1 -1
  38. package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert-title.directive.ts.template → hlm-alert-title.ts.template} +1 -1
  39. package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert.directive.ts.template → hlm-alert.ts.template} +1 -1
  40. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/index.ts.template +4 -4
  41. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/{helm-aspect-ratio.directive.ts.template → helm-aspect-ratio.ts.template} +1 -1
  42. package/src/generators/ui/libs/ui-avatar-helm/files/index.ts.template +5 -5
  43. package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/{hlm-avatar-fallback.directive.ts.template → hlm-avatar-fallback.ts.template} +4 -4
  44. package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/index.ts.template +1 -1
  45. package/src/generators/ui/libs/ui-avatar-helm/files/lib/{hlm-avatar.component.ts.template → hlm-avatar.ts.template} +2 -2
  46. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/{hlm-avatar-image.directive.ts.template → hlm-avatar-image.ts.template} +4 -4
  47. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/index.ts.template +1 -1
  48. package/src/generators/ui/libs/ui-badge-helm/files/index.ts.template +3 -3
  49. package/src/generators/ui/libs/ui-badge-helm/files/lib/{hlm-badge.directive.ts.template → hlm-badge.ts.template} +1 -1
  50. package/src/generators/ui/libs/ui-breadcrumb-helm/files/index.ts.template +21 -21
  51. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-ellipsis.component.ts.template → hlm-breadcrumb-ellipsis.ts.template} +3 -3
  52. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-item.directive.ts.template → hlm-breadcrumb-item.ts.template} +1 -1
  53. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-link.directive.ts.template → hlm-breadcrumb-link.ts.template} +1 -1
  54. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-list.directive.ts.template → hlm-breadcrumb-list.ts.template} +1 -1
  55. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-page.directive.ts.template → hlm-breadcrumb-page.ts.template} +1 -1
  56. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-separator.component.ts.template → hlm-breadcrumb-separator.ts.template} +1 -1
  57. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb.directive.ts.template → hlm-breadcrumb.ts.template} +1 -1
  58. package/src/generators/ui/libs/ui-button-helm/files/index.ts.template +4 -4
  59. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.token.ts.template +1 -1
  60. package/src/generators/ui/libs/ui-button-helm/files/lib/{hlm-button.directive.ts.template → hlm-button.ts.template} +1 -1
  61. package/src/generators/ui/libs/ui-calendar-helm/files/index.ts.template +5 -5
  62. package/src/generators/ui/libs/ui-calendar-helm/files/lib/{hlm-calendar-multi.component.ts.template → hlm-calendar-multi.ts.template} +22 -22
  63. package/src/generators/ui/libs/ui-calendar-helm/files/lib/{hlm-calendar.component.ts.template → hlm-calendar.ts.template} +22 -22
  64. package/src/generators/ui/libs/ui-card-helm/files/index.ts.template +21 -21
  65. package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-action.directive.ts.template → hlm-card-action.ts.template} +1 -1
  66. package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-content.directive.ts.template → hlm-card-content.ts.template} +1 -1
  67. package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-description.directive.ts.template → hlm-card-description.ts.template} +1 -1
  68. package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-footer.directive.ts.template → hlm-card-footer.ts.template} +1 -1
  69. package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-header.directive.ts.template → hlm-card-header.ts.template} +1 -1
  70. package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-title.directive.ts.template → hlm-card-title.ts.template} +1 -1
  71. package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card.directive.ts.template → hlm-card.ts.template} +1 -1
  72. package/src/generators/ui/libs/ui-carousel-helm/files/index.ts.template +18 -18
  73. package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-content.component.ts.template → hlm-carousel-content.ts.template} +3 -3
  74. package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-item.component.ts.template → hlm-carousel-item.ts.template} +3 -3
  75. package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-next.component.ts.template → hlm-carousel-next.ts.template} +8 -8
  76. package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-previous.component.ts.template → hlm-carousel-previous.ts.template} +8 -8
  77. package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-slide-display.component.ts.template → hlm-carousel-slide-display.ts.template} +3 -3
  78. package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel.component.ts.template → hlm-carousel.ts.template} +1 -1
  79. package/src/generators/ui/libs/ui-checkbox-helm/files/index.ts.template +3 -3
  80. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/{hlm-checkbox.component.ts.template → hlm-checkbox.ts.template} +5 -5
  81. package/src/generators/ui/libs/ui-command-helm/files/index.ts.template +39 -39
  82. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-dialog-close-button.directive.ts.template → hlm-command-dialog-close-button.ts.template} +4 -4
  83. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-dialog.directive.ts.template → hlm-command-dialog.ts.template} +1 -1
  84. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-empty.directive.ts.template → hlm-command-empty.ts.template} +1 -1
  85. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-group-label.component.ts.template → hlm-command-group-label.ts.template} +1 -1
  86. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-group.component.ts.template → hlm-command-group.ts.template} +3 -3
  87. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-icon.directive.ts.template → hlm-command-icon.ts.template} +1 -1
  88. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-item.component.ts.template → hlm-command-item.ts.template} +3 -3
  89. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-list.component.ts.template → hlm-command-list.ts.template} +3 -3
  90. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-search-input.component.ts.template → hlm-command-search-input.ts.template} +3 -3
  91. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-search.component.ts.template → hlm-command-search.ts.template} +1 -1
  92. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-separator.component.ts.template → hlm-command-separator.ts.template} +1 -1
  93. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-shortcut.component.ts.template → hlm-command-shortcut.ts.template} +1 -1
  94. package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command.component.ts.template → hlm-command.ts.template} +3 -3
  95. package/src/generators/ui/libs/ui-date-picker-helm/files/index.ts.template +5 -5
  96. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/{hlm-date-picker-multi.component.ts.template → hlm-date-picker-multi.ts.template} +7 -15
  97. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/{hlm-date-picker.component.ts.template → hlm-date-picker.ts.template} +7 -15
  98. package/src/generators/ui/libs/ui-dialog-helm/files/index.ts.template +24 -24
  99. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-close.directive.ts.template → hlm-dialog-close.ts.template} +1 -1
  100. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-content.component.ts.template → hlm-dialog-content.ts.template} +5 -5
  101. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-description.directive.ts.template → hlm-dialog-description.ts.template} +3 -3
  102. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-footer.component.ts.template → hlm-dialog-footer.ts.template} +1 -1
  103. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-header.component.ts.template → hlm-dialog-header.ts.template} +1 -1
  104. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-overlay.directive.ts.template → hlm-dialog-overlay.ts.template} +1 -1
  105. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-title.directive.ts.template → hlm-dialog-title.ts.template} +3 -3
  106. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog.service.ts.template +3 -3
  107. package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog.component.ts.template → hlm-dialog.ts.template} +6 -10
  108. package/src/generators/ui/libs/ui-form-field-helm/files/index.ts.template +8 -8
  109. package/src/generators/ui/libs/ui-form-field-helm/files/lib/{hlm-error.directive.ts.template → hlm-error.ts.template} +1 -1
  110. package/src/generators/ui/libs/ui-form-field-helm/files/lib/{hlm-form-field.component.ts.template → hlm-form-field.ts.template} +3 -3
  111. package/src/generators/ui/libs/ui-form-field-helm/files/lib/{hlm-hint.directive.ts.template → hlm-hint.ts.template} +1 -1
  112. package/src/generators/ui/libs/ui-hover-card-helm/files/index.ts.template +3 -3
  113. package/src/generators/ui/libs/ui-hover-card-helm/files/lib/{hlm-hover-card-content.component.ts.template → hlm-hover-card-content.ts.template} +1 -1
  114. package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +4 -4
  115. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +1 -1
  116. package/src/generators/ui/libs/ui-icon-helm/files/lib/{hlm-icon.directive.ts.template → hlm-icon.ts.template} +1 -1
  117. package/src/generators/ui/libs/ui-input-helm/files/index.ts.template +4 -4
  118. package/src/generators/ui/libs/ui-input-helm/files/lib/{hlm-input-error.directive.ts.template → hlm-input-error.ts.template} +1 -1
  119. package/src/generators/ui/libs/ui-input-helm/files/lib/{hlm-input.directive.ts.template → hlm-input.ts.template} +2 -2
  120. package/src/generators/ui/libs/ui-input-otp-helm/files/index.ts.template +15 -15
  121. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-fake-caret.component.ts.template → hlm-input-otp-fake-caret.ts.template} +1 -1
  122. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-group.directive.ts.template → hlm-input-otp-group.ts.template} +1 -1
  123. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-separator.component.ts.template → hlm-input-otp-separator.ts.template} +3 -3
  124. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-slot.component.ts.template → hlm-input-otp-slot.ts.template} +4 -4
  125. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp.directive.ts.template → hlm-input-otp.ts.template} +1 -1
  126. package/src/generators/ui/libs/ui-label-helm/files/index.ts.template +4 -4
  127. package/src/generators/ui/libs/ui-label-helm/files/lib/{hlm-label.directive.ts.template → hlm-label.ts.template} +3 -3
  128. package/src/generators/ui/libs/ui-menu-helm/files/index.ts.template +42 -47
  129. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-bar-item.directive.ts.template → hlm-menu-bar-item.ts.template} +3 -3
  130. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-bar.component.ts.template → hlm-menu-bar.ts.template} +3 -3
  131. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-group.component.ts.template → hlm-menu-group.ts.template} +3 -3
  132. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-check.component.ts.template → hlm-menu-item-check.ts.template} +3 -3
  133. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-checkbox.directive.ts.template → hlm-menu-item-checkbox.ts.template} +3 -3
  134. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-icon.directive.ts.template → hlm-menu-item-icon.ts.template} +1 -1
  135. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-radio.component.ts.template → hlm-menu-item-radio-indicator.ts.template} +4 -4
  136. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-radio.directive.ts.template → hlm-menu-item-radio.ts.template} +3 -3
  137. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-sub-indicator.component.ts.template → hlm-menu-item-sub-indicator.ts.template} +3 -3
  138. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item.directive.ts.template → hlm-menu-item.ts.template} +3 -3
  139. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-label.component.ts.template → hlm-menu-label.ts.template} +1 -1
  140. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-separator.component.ts.template → hlm-menu-separator.ts.template} +1 -1
  141. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-shortcut.component.ts.template → hlm-menu-shortcut.ts.template} +1 -1
  142. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu.component.ts.template → hlm-menu.ts.template} +3 -3
  143. package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-sub-menu.component.ts.template → hlm-sub-menu.ts.template} +3 -3
  144. package/src/generators/ui/libs/ui-pagination-helm/files/index.ts.template +27 -27
  145. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-numbered-pagination-query-params.component.ts.template → hlm-numbered-pagination-query-params.ts.template} +16 -16
  146. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-numbered-pagination.component.ts.template → hlm-numbered-pagination.ts.template} +15 -15
  147. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-content.directive.ts.template → hlm-pagination-content.ts.template} +1 -1
  148. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-ellipsis.component.ts.template → hlm-pagination-ellipsis.ts.template} +3 -3
  149. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-item.directive.ts.template → hlm-pagination-item.ts.template} +1 -1
  150. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-link.directive.ts.template → hlm-pagination-link.ts.template} +1 -1
  151. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-next.component.ts.template → hlm-pagination-next.ts.template} +6 -6
  152. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-previous.component.ts.template → hlm-pagination-previous.ts.template} +6 -6
  153. package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination.directive.ts.template → hlm-pagination.ts.template} +1 -1
  154. package/src/generators/ui/libs/ui-popover-helm/files/index.ts.template +5 -5
  155. package/src/generators/ui/libs/ui-popover-helm/files/lib/{hlm-popover-close.directive.ts.template → hlm-popover-close.ts.template} +1 -1
  156. package/src/generators/ui/libs/ui-popover-helm/files/lib/{hlm-popover-content.directive.ts.template → hlm-popover-content.ts.template} +1 -1
  157. package/src/generators/ui/libs/ui-progress-helm/files/index.ts.template +5 -5
  158. package/src/generators/ui/libs/ui-progress-helm/files/lib/{hlm-progress-indicator.directive.ts.template → hlm-progress-indicator.ts.template} +1 -1
  159. package/src/generators/ui/libs/ui-progress-helm/files/lib/{hlm-progress.directive.ts.template → hlm-progress.ts.template} +1 -1
  160. package/src/generators/ui/libs/ui-radio-group-helm/files/index.ts.template +7 -7
  161. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/{hlm-radio-group.component.ts.template → hlm-radio-group.ts.template} +3 -3
  162. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/{hlm-radio-indicator.component.ts.template → hlm-radio-indicator.ts.template} +1 -1
  163. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/{hlm-radio.component.ts.template → hlm-radio.ts.template} +3 -3
  164. package/src/generators/ui/libs/ui-scroll-area-helm/files/index.ts.template +4 -4
  165. package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/{hlm-scroll-area.directive.ts.template → hlm-scroll-area.ts.template} +1 -1
  166. package/src/generators/ui/libs/ui-select-helm/files/index.ts.template +27 -27
  167. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-content.directive.ts.template → hlm-select-content.ts.template} +1 -1
  168. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-group.directive.ts.template → hlm-select-group.ts.template} +3 -3
  169. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-label.directive.ts.template → hlm-select-label.ts.template} +5 -5
  170. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-option.component.ts.template → hlm-select-option.ts.template} +6 -6
  171. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-scroll-down.component.ts.template → hlm-select-scroll-down.ts.template} +3 -3
  172. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-scroll-up.component.ts.template → hlm-select-scroll-up.ts.template} +3 -3
  173. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-trigger.component.ts.template → hlm-select-trigger.ts.template} +6 -6
  174. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-value.directive.ts.template → hlm-select-value.ts.template} +1 -1
  175. package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select.directive.ts.template → hlm-select.ts.template} +1 -1
  176. package/src/generators/ui/libs/ui-separator-helm/files/index.ts.template +4 -4
  177. package/src/generators/ui/libs/ui-separator-helm/files/lib/{hlm-separator.directive.ts.template → hlm-separator.ts.template} +1 -1
  178. package/src/generators/ui/libs/ui-sheet-helm/files/index.ts.template +24 -24
  179. package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-close.directive.ts.template → hlm-sheet-close.ts.template} +1 -1
  180. package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-content.component.ts.template → hlm-sheet-content.ts.template} +5 -5
  181. package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-description.directive.ts.template → hlm-sheet-description.ts.template} +3 -3
  182. package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-footer.component.ts.template → hlm-sheet-footer.ts.template} +1 -1
  183. package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-header.component.ts.template → hlm-sheet-header.ts.template} +1 -1
  184. package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-overlay.directive.ts.template → hlm-sheet-overlay.ts.template} +1 -1
  185. package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-title.directive.ts.template → hlm-sheet-title.ts.template} +3 -3
  186. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet.ts.template +30 -0
  187. package/src/generators/ui/libs/ui-skeleton-helm/files/index.ts.template +3 -3
  188. package/src/generators/ui/libs/ui-skeleton-helm/files/lib/{hlm-skeleton.component.ts.template → hlm-skeleton.ts.template} +1 -1
  189. package/src/generators/ui/libs/ui-slider-helm/files/index.ts.template +3 -3
  190. package/src/generators/ui/libs/ui-slider-helm/files/lib/{hlm-slider.component.ts.template → hlm-slider.ts.template} +8 -8
  191. package/src/generators/ui/libs/ui-sonner-helm/files/index.ts.template +3 -3
  192. package/src/generators/ui/libs/ui-sonner-helm/files/lib/{hlm-toaster.component.ts.template → hlm-toaster.ts.template} +1 -1
  193. package/src/generators/ui/libs/ui-spinner-helm/files/index.ts.template +3 -3
  194. package/src/generators/ui/libs/ui-spinner-helm/files/lib/{hlm-spinner.component.ts.template → hlm-spinner.ts.template} +1 -1
  195. package/src/generators/ui/libs/ui-switch-helm/files/index.ts.template +5 -5
  196. package/src/generators/ui/libs/ui-switch-helm/files/lib/{hlm-switch-thumb.directive.ts.template → hlm-switch-thumb.ts.template} +1 -1
  197. package/src/generators/ui/libs/ui-switch-helm/files/lib/{hlm-switch.component.ts.template → hlm-switch.ts.template} +5 -5
  198. package/src/generators/ui/libs/ui-table-helm/files/index.ts.template +3 -21
  199. package/src/generators/ui/libs/ui-table-helm/files/lib/{hlm-table.directive.ts.template → hlm-table.ts.template} +8 -8
  200. package/src/generators/ui/libs/ui-tabs-helm/files/index.ts.template +11 -17
  201. package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-content.directive.ts.template → hlm-tabs-content.ts.template} +3 -3
  202. package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-list.component.ts.template → hlm-tabs-list.ts.template} +3 -3
  203. package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-paginated-list.component.ts.template → hlm-tabs-paginated-list.ts.template} +6 -10
  204. package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-trigger.directive.ts.template → hlm-tabs-trigger.ts.template} +3 -3
  205. package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs.component.ts.template → hlm-tabs.ts.template} +3 -3
  206. package/src/generators/ui/libs/ui-toggle-group-helm/files/index.ts.template +6 -6
  207. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.token.ts.template +5 -5
  208. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/{hlm-toggle-group.directive.ts.template → hlm-toggle-group.ts.template} +3 -3
  209. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/{hlm-toggle-item.directive.ts.template → hlm-toggle-item.ts.template} +1 -1
  210. package/src/generators/ui/libs/ui-toggle-helm/files/index.ts.template +4 -4
  211. package/src/generators/ui/libs/ui-toggle-helm/files/lib/{hlm-toggle.directive.ts.template → hlm-toggle.ts.template} +1 -1
  212. package/src/generators/ui/libs/ui-tooltip-helm/files/index.ts.template +5 -5
  213. package/src/generators/ui/libs/ui-tooltip-helm/files/lib/{hlm-tooltip-trigger.directive.ts.template → hlm-tooltip-trigger.ts.template} +3 -3
  214. package/src/generators/ui/libs/ui-tooltip-helm/files/lib/{hlm-tooltip.component.ts.template → hlm-tooltip.ts.template} +3 -3
  215. package/src/generators/ui/libs/ui-typography-helm/files/index.ts.template +12 -12
  216. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-blockquote.directive.ts.template → hlm-blockquote.ts.template} +1 -1
  217. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-code.directive.ts.template → hlm-code.ts.template} +1 -1
  218. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h1.directive.ts.template → hlm-h1.ts.template} +1 -1
  219. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h2.directive.ts.template → hlm-h2.ts.template} +1 -1
  220. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h3.directive.ts.template → hlm-h3.ts.template} +1 -1
  221. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h4.directive.ts.template → hlm-h4.ts.template} +1 -1
  222. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-large.directive.ts.template → hlm-large.ts.template} +1 -1
  223. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-lead.directive.ts.template → hlm-lead.ts.template} +1 -1
  224. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-muted.directive.ts.template → hlm-muted.ts.template} +1 -1
  225. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-p.directive.ts.template → hlm-p.ts.template} +1 -1
  226. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-small.directive.ts.template → hlm-small.ts.template} +1 -1
  227. package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-ul.directive.ts.template → hlm-ul.ts.template} +1 -1
  228. package/src/generators/ui/supported-ui-libraries.json +40 -40
  229. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-action-button.directive.ts.template +0 -8
  230. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet.component.ts.template +0 -30
package/generators.json CHANGED
@@ -54,6 +54,11 @@
54
54
  "factory": "./src/generators/migrate-helm-libraries/generator",
55
55
  "schema": "./src/generators/migrate-helm-libraries/schema.json",
56
56
  "description": "Migrate Helm libraries to their latest versions"
57
+ },
58
+ "migrate-naming-conventions": {
59
+ "factory": "./src/generators/migrate-naming-convention/generator",
60
+ "schema": "./src/generators/migrate-naming-convention/schema.json",
61
+ "description": "Migrate naming conventions to the latest standards"
57
62
  }
58
63
  },
59
64
  "schematics": {
@@ -111,6 +116,11 @@
111
116
  "factory": "./src/generators/migrate-helm-libraries/compat",
112
117
  "schema": "./src/generators/migrate-helm-libraries/schema.json",
113
118
  "description": "Migrate Helm libraries to their latest versions"
119
+ },
120
+ "migrate-naming-conventions": {
121
+ "factory": "./src/generators/migrate-naming-convention/compat",
122
+ "schema": "./src/generators/migrate-naming-convention/schema.json",
123
+ "description": "Migrate naming conventions to the latest standards"
114
124
  }
115
125
  }
116
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spartan-ng/cli",
3
- "version": "0.0.1-alpha.492",
3
+ "version": "0.0.1-alpha.494",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@nx/angular": ">=20.0.0",
@@ -11,6 +11,7 @@ const helm_imports_1 = require("./healthchecks/helm-imports");
11
11
  const hlm_icon_1 = require("./healthchecks/hlm-icon");
12
12
  const hlm_scroll_area_1 = require("./healthchecks/hlm-scroll-area");
13
13
  const hlm_select_1 = require("./healthchecks/hlm-select");
14
+ const naming_conventions_1 = require("./healthchecks/naming-conventions");
14
15
  const version_1 = require("./healthchecks/version");
15
16
  const prompt_1 = require("./utils/prompt");
16
17
  const reporter_1 = require("./utils/reporter");
@@ -27,6 +28,7 @@ async function healthcheckGenerator(tree, options) {
27
28
  hlm_select_1.selectHealthcheck,
28
29
  brn_toggle_group_1.brainToggleHealthcheck,
29
30
  helm_imports_1.helmImportsHealthcheck,
31
+ naming_conventions_1.namingConventionHealthcheck,
30
32
  ];
31
33
  const failedReports = [];
32
34
  for (const healthcheck of healthchecks) {
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;AAgBA,oDAuCC;AAvDD,uCAAuD;AACvD,iDAAyG;AACzG,gEAAuE;AACvE,wDAAiE;AACjE,sEAAyE;AACzE,8DAAqE;AACrE,8DAAqE;AACrE,sDAA8D;AAC9D,oEAAuE;AACvE,0DAA8D;AAC9D,oDAA4D;AAE5D,2CAA4C;AAC5C,+CAA+C;AAC/C,2CAAgD;AAEzC,KAAK,UAAU,oBAAoB,CAAC,IAAU,EAAE,OAA8D;IACpH,eAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAkB;QACnC,4BAAkB;QAClB,uCAAuB;QACvB,qCAAsB;QACtB,8BAAmB;QACnB,uCAAqB;QACrB,iCAAqB;QACrB,8BAAiB;QACjB,yCAAsB;QACtB,qCAAsB;KACtB,CAAC;IAEF,MAAM,aAAa,GAAwB,EAAE,CAAC;IAE9C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACvD,IAAA,sBAAW,EAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,MAAM,CAAC,MAAM,KAAK,gCAAiB,CAAC,OAAO,EAAE,CAAC;YACjD,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;IACF,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,OAAO,IAAI,IAAA,mCAAoB,EAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAChE,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,MAAM,IAAA,mBAAU,EAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YAE7E,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;YACxE,CAAC;QACF,CAAC;IACF,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;AAiBA,oDAwCC;AAzDD,uCAAuD;AACvD,iDAAyG;AACzG,gEAAuE;AACvE,wDAAiE;AACjE,sEAAyE;AACzE,8DAAqE;AACrE,8DAAqE;AACrE,sDAA8D;AAC9D,oEAAuE;AACvE,0DAA8D;AAC9D,0EAAgF;AAChF,oDAA4D;AAE5D,2CAA4C;AAC5C,+CAA+C;AAC/C,2CAAgD;AAEzC,KAAK,UAAU,oBAAoB,CAAC,IAAU,EAAE,OAA8D;IACpH,eAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAkB;QACnC,4BAAkB;QAClB,uCAAuB;QACvB,qCAAsB;QACtB,8BAAmB;QACnB,uCAAqB;QACrB,iCAAqB;QACrB,8BAAiB;QACjB,yCAAsB;QACtB,qCAAsB;QACtB,gDAA2B;KAC3B,CAAC;IAEF,MAAM,aAAa,GAAwB,EAAE,CAAC;IAE9C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACvD,IAAA,sBAAW,EAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,MAAM,CAAC,MAAM,KAAK,gCAAiB,CAAC,OAAO,EAAE,CAAC;YACjD,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;IACF,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,OAAO,IAAI,IAAA,mCAAoB,EAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAChE,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,MAAM,IAAA,mBAAU,EAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YAE7E,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;YACxE,CAAC;QACF,CAAC;IACF,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
@@ -13,7 +13,7 @@ exports.brainRadioHealthcheck = {
13
13
  return;
14
14
  }
15
15
  // if it is the HlmRadioComponent itself skip it.
16
- if (file.endsWith('hlm-radio.component.ts')) {
16
+ if (file.endsWith('hlm-radio.component.ts') || file.endsWith('hlm-radio.ts')) {
17
17
  return;
18
18
  }
19
19
  const contents = tree.read(file, 'utf-8');
@@ -1 +1 @@
1
- {"version":3,"file":"brn-radio.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/brn-radio.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAClD,6DAAsE;AACtE,kDAAmE;AAEtD,QAAA,qBAAqB,GAAgB;IACjD,IAAI,EAAE,aAAa;IACnB,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO;QACzB,IAAA,6BAAoB,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,4DAA4D;YAC5D,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACtD,OAAO;YACR,CAAC;YACD,iDAAiD;YACjD,IAAI,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,EAAE,CAAC;gBAC7C,OAAO;YACR,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,OAAO;YACR,CAAC;YAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;gBACrC,OAAO,CACN,8EAA8E,EAC9E,kCAAmB,CAAC,KAAK,EACzB,IAAI,CACJ,CAAC;YACH,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACnB,MAAM,IAAA,iCAAqB,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,EAAE,wCAAwC;CAChD,CAAC"}
1
+ {"version":3,"file":"brn-radio.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/brn-radio.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAClD,6DAAsE;AACtE,kDAAmE;AAEtD,QAAA,qBAAqB,GAAgB;IACjD,IAAI,EAAE,aAAa;IACnB,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO;QACzB,IAAA,6BAAoB,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,4DAA4D;YAC5D,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACtD,OAAO;YACR,CAAC;YACD,iDAAiD;YACjD,IAAI,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;gBAC9E,OAAO;YACR,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,OAAO;YACR,CAAC;YAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;gBACrC,OAAO,CACN,8EAA8E,EAC9E,kCAAmB,CAAC,KAAK,EACzB,IAAI,CACJ,CAAC;YACH,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACnB,MAAM,IAAA,iCAAqB,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,EAAE,wCAAwC;CAChD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Healthcheck } from '../healthchecks';
2
+ export declare const namingConventionHealthcheck: Healthcheck;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.namingConventionHealthcheck = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nx/devkit");
6
+ const tsquery_1 = require("@phenomnomnominal/tsquery");
7
+ const generator_1 = tslib_1.__importDefault(require("../../migrate-naming-convention/generator"));
8
+ const healthchecks_1 = require("../healthchecks");
9
+ exports.namingConventionHealthcheck = {
10
+ name: 'Naming Conventions',
11
+ async detect(tree, failure) {
12
+ (0, devkit_1.visitNotIgnoredFiles)(tree, '/', (file) => {
13
+ // if the file is a .ts file check for old naming conventions
14
+ if (!file.endsWith('.ts')) {
15
+ return;
16
+ }
17
+ // check if there are any brain or helm identifiers that ends with Directive or Component
18
+ const contents = tree.read(file, 'utf-8');
19
+ if (!contents) {
20
+ return;
21
+ }
22
+ const identifiers = tsquery_1.tsquery.query(contents, 'Identifier');
23
+ for (const identifier of identifiers) {
24
+ const name = identifier.getText();
25
+ const startsWithPrefix = name.startsWith('Hlm') || name.startsWith('Brn');
26
+ const endsWithSuffix = name.endsWith('Directive') || name.endsWith('Component');
27
+ if (startsWithPrefix && endsWithSuffix) {
28
+ failure(`Found legacy naming pattern: ${name} in file ${file}. Consider renaming it to match the new conventions.`, healthchecks_1.HealthcheckSeverity.Warning, true);
29
+ }
30
+ }
31
+ });
32
+ },
33
+ fix: async (tree) => {
34
+ await (0, generator_1.default)(tree, { skipFormat: true });
35
+ return true;
36
+ },
37
+ prompt: 'Would you like to migrate to the updated naming conventions?',
38
+ };
39
+ //# sourceMappingURL=naming-conventions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming-conventions.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/naming-conventions.ts"],"names":[],"mappings":";;;;AAAA,uCAAkD;AAClD,uDAAoD;AAEpD,kGAAyF;AACzF,kDAAmE;AAEtD,QAAA,2BAA2B,GAAgB;IACvD,IAAI,EAAE,oBAAoB;IAC1B,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO;QACzB,IAAA,6BAAoB,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,6DAA6D;YAC7D,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC3B,OAAO;YACR,CAAC;YAED,yFAAyF;YACzF,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,OAAO;YACR,CAAC;YAED,MAAM,WAAW,GAAG,iBAAO,CAAC,KAAK,CAAgB,QAAQ,EAAE,YAAY,CAAC,CAAC;YAEzE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;gBACtC,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;gBAElC,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;gBAC1E,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;gBAEhF,IAAI,gBAAgB,IAAI,cAAc,EAAE,CAAC;oBACxC,OAAO,CACN,gCAAgC,IAAI,YAAY,IAAI,sDAAsD,EAC1G,kCAAmB,CAAC,OAAO,EAC3B,IAAI,CACJ,CAAC;gBACH,CAAC;YACF,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACnB,MAAM,IAAA,mBAAgC,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,EAAE,8DAA8D;CACtE,CAAC"}
@@ -0,0 +1,213 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`migrate-naming-conventions generator should not replace helm identifiers 1`] = `
4
+ "import { Component } from '@angular/core';
5
+ import { NgIcon } from '@ng-icons/core';
6
+ import {
7
+ HlmAccordionContent,
8
+ HlmAccordion,
9
+ HlmAccordionIcon,
10
+ HlmAccordionItem,
11
+ HlmAccordionTrigger,
12
+ } from '@spartan-ng/helm/accordion';
13
+ import { HlmIcon } from '@spartan-ng/helm/icon';
14
+
15
+ @Component({
16
+ selector: 'spartan-accordion-preview',
17
+ imports: [
18
+ HlmAccordion,
19
+ HlmAccordionItem,
20
+ HlmAccordionTrigger,
21
+ HlmAccordionIcon,
22
+ HlmAccordionContent,
23
+ NgIcon,
24
+ HlmIcon,
25
+ ],
26
+ template: \`
27
+ <div hlmAccordion>
28
+ <div hlmAccordionItem>
29
+ <button hlmAccordionTrigger>
30
+ Product Information
31
+ <ng-icon name="lucideChevronDown" hlm hlmAccIcon />
32
+ </button>
33
+ <hlm-accordion-content>
34
+ Our flagship product combines cutting-edge technology with sleek design. Built with premium materials, it
35
+ offers unparalleled performance and reliability.
36
+
37
+ <br />
38
+ <br />
39
+
40
+ Key features include advanced processing capabilities, and an intuitive user interface designed for both
41
+ beginners and experts.
42
+ </hlm-accordion-content>
43
+ </div>
44
+
45
+ <div hlmAccordionItem>
46
+ <button hlmAccordionTrigger>
47
+ Shipping Details
48
+ <ng-icon name="lucideChevronDown" hlm hlmAccIcon />
49
+ </button>
50
+ <hlm-accordion-content>
51
+ We offer worldwide shipping through trusted courier partners. Standard delivery takes 3-5 business days, while
52
+ express shipping ensures delivery within 1-2 business days.
53
+
54
+ <br />
55
+ <br />
56
+ All orders are carefully packaged and fully insured. Track your shipment in real-time through our dedicated
57
+ tracking portal.
58
+ </hlm-accordion-content>
59
+ </div>
60
+
61
+ <div hlmAccordionItem>
62
+ <button hlmAccordionTrigger>
63
+ Return Policy
64
+ <ng-icon name="lucideChevronDown" hlm hlmAccIcon />
65
+ </button>
66
+ <hlm-accordion-content>
67
+ We stand behind our products with a comprehensive 30-day return policy. If you're not completely satisfied,
68
+ simply return the item in its original condition.
69
+ <br />
70
+ <br />
71
+ Our hassle-free return process includes free return shipping and full refunds processed within 48 hours of
72
+ receiving the returned item.
73
+ </hlm-accordion-content>
74
+ </div>
75
+ </div>
76
+ \`,
77
+ })
78
+ export class AccordionPreviewComponent {}"
79
+ `;
80
+
81
+ exports[`migrate-naming-conventions generator should rename the identifiers that changed name 1`] = `
82
+ "import { Component } from '@angular/core';
83
+ import { BrnTooltipContentTemplate } from '@spartan-ng/brain/tooltip';
84
+ import {HlmMenuItemRadioIndicator} from '@spartan-ng/helm/menu';
85
+ import { BrnSelectValueTemplate } from '@spartan-ng/brain/select';
86
+
87
+ @Component({
88
+ selector: 'spartan-tooltip-preview',
89
+ imports: [BrnTooltipContentTemplate, HlmMenuItemRadioIndicator, BrnSelectValueTemplate],
90
+ template: \`
91
+ <brn-tooltip>
92
+ <button brnTooltipTrigger>Hover me</button>
93
+ <brn-tooltip-content>
94
+ <p>This is a tooltip!</p>
95
+ </brn-tooltip-content>
96
+ </brn-tooltip>
97
+ \`,
98
+ })
99
+ export class TooltipPreviewComponent {}"
100
+ `;
101
+
102
+ exports[`migrate-naming-conventions generator should replace brain identifiers 1`] = `
103
+ "
104
+ import { Component, signal } from '@angular/core';
105
+ import { NgIcon, provideIcons } from '@ng-icons/core';
106
+ import { lucideCheck, lucideChevronsUpDown, lucideSearch } from '@ng-icons/lucide';
107
+ import { BrnCommandImports } from '@spartan-ng/brain/command';
108
+ import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
109
+ import { HlmButton } from '@spartan-ng/helm/button';
110
+ import { HlmCommandImports } from '@spartan-ng/helm/command';
111
+ import { HlmIcon } from '@spartan-ng/helm/icon';
112
+ import { HlmPopoverContent } from '@spartan-ng/helm/popover';
113
+
114
+ type Framework = { label: string; value: string };
115
+
116
+ @Component({
117
+ selector: 'spartan-combobox-preview',
118
+ imports: [
119
+ BrnCommandImports,
120
+ HlmCommandImports,
121
+ NgIcon,
122
+ HlmIcon,
123
+ HlmButton,
124
+ BrnPopover,
125
+ BrnPopoverTrigger,
126
+ HlmPopoverContent,
127
+ BrnPopoverContent,
128
+ ],
129
+ providers: [provideIcons({ lucideChevronsUpDown, lucideSearch, lucideCheck })],
130
+ template: \`
131
+ <brn-popover [state]="state()" (stateChanged)="stateChanged($event)" sideOffset="5">
132
+ <button
133
+ class="w-[200px] justify-between"
134
+ id="edit-profile"
135
+ variant="outline"
136
+ brnPopoverTrigger
137
+ (click)="state.set('open')"
138
+ hlmBtn
139
+ >
140
+ {{ currentFramework() ? currentFramework()?.label : 'Select framework...' }}
141
+ <ng-icon hlm size="sm" name="lucideChevronsUpDown" class="opacity-50" />
142
+ </button>
143
+ <hlm-command *brnPopoverContent="let ctx" hlmPopoverContent class="w-[200px] p-0">
144
+ <hlm-command-search>
145
+ <ng-icon hlm name="lucideSearch" />
146
+ <input placeholder="Search framework..." hlm-command-search-input />
147
+ </hlm-command-search>
148
+ <div *brnCommandEmpty hlmCommandEmpty>No results found.</div>
149
+ <hlm-command-list>
150
+ <hlm-command-group>
151
+ @for (framework of frameworks; track framework) {
152
+ <button hlm-command-item [value]="framework.value" (selected)="commandSelected(framework)">
153
+ <span>{{ framework.label }}</span>
154
+ <ng-icon
155
+ hlm
156
+ class="ml-auto"
157
+ [class.opacity-0]="currentFramework()?.value !== framework.value"
158
+ name="lucideCheck"
159
+ hlmCommandIcon
160
+ />
161
+ </button>
162
+ }
163
+ </hlm-command-group>
164
+ </hlm-command-list>
165
+ </hlm-command>
166
+ </brn-popover>
167
+ \`,
168
+ })
169
+ export class ComboboxPreviewComponent {
170
+ public frameworks = [
171
+ {
172
+ label: 'AnalogJs',
173
+ value: 'analogjs',
174
+ },
175
+ {
176
+ label: 'Angular',
177
+ value: 'angular',
178
+ },
179
+ {
180
+ label: 'Vue',
181
+ value: 'vue',
182
+ },
183
+ {
184
+ label: 'Nuxt',
185
+ value: 'nuxt',
186
+ },
187
+ {
188
+ label: 'React',
189
+ value: 'react',
190
+ },
191
+ {
192
+ label: 'NextJs',
193
+ value: 'nextjs',
194
+ },
195
+ ];
196
+ public currentFramework = signal<Framework | undefined>(undefined);
197
+ public state = signal<'closed' | 'open'>('closed');
198
+
199
+ stateChanged(state: 'open' | 'closed') {
200
+ this.state.set(state);
201
+ }
202
+
203
+ commandSelected(framework: Framework) {
204
+ this.state.set('closed');
205
+ if (this.currentFramework()?.value === framework.value) {
206
+ this.currentFramework.set(undefined);
207
+ } else {
208
+ this.currentFramework.set(framework);
209
+ }
210
+ }
211
+ }
212
+ "
213
+ `;
@@ -0,0 +1,2 @@
1
+ declare const _default: (generatorOptions: import("./schema").MigrateNamingConventionsGeneratorSchema) => (tree: any, context: any) => Promise<any>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nx/devkit");
5
+ const generator_1 = tslib_1.__importDefault(require("./generator"));
6
+ exports.default = (0, devkit_1.convertNxGenerator)(generator_1.default);
7
+ //# sourceMappingURL=compat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-naming-convention/compat.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,oEAA2D;AAE3D,kBAAe,IAAA,2BAAkB,EAAC,mBAAgC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Tree } from '@nx/devkit';
2
+ import { MigrateNamingConventionsGeneratorSchema } from './schema';
3
+ export declare function migrateNamingConventionGenerator(tree: Tree, { skipFormat }: MigrateNamingConventionsGeneratorSchema): Promise<void>;
4
+ export default migrateNamingConventionGenerator;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.migrateNamingConventionGenerator = migrateNamingConventionGenerator;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const tsquery_1 = require("@phenomnomnominal/tsquery");
6
+ const visit_files_1 = require("../../utils/visit-files");
7
+ async function migrateNamingConventionGenerator(tree, { skipFormat }) {
8
+ updateBrainIdentifiers(tree);
9
+ updateHelmIdentifiers(tree);
10
+ if (!skipFormat) {
11
+ await (0, devkit_1.formatFiles)(tree);
12
+ }
13
+ }
14
+ const renamedIdentifiers = {
15
+ BrnTooltipContentDirective: 'BrnTooltipContentTemplate',
16
+ BrnSelectValueDirective: 'BrnSelectValueTemplate',
17
+ HlmSelectValueDirective: 'HlmSelectValueTemplate',
18
+ HlmMenuItemRadioComponent: 'HlmMenuItemRadioIndicator',
19
+ };
20
+ /**
21
+ * Detect any imports from `@spartan-ng/brain/*` that need to be updated.
22
+ * Get the identifiers that need to be replaced, and then replace them.
23
+ */
24
+ function updateBrainIdentifiers(tree) {
25
+ (0, visit_files_1.visitFiles)(tree, '/', (path) => {
26
+ if (!path.endsWith('.ts')) {
27
+ return;
28
+ }
29
+ let content = tree.read(path).toString('utf-8');
30
+ const importDeclarations = tsquery_1.tsquery.query(content, 'ImportDeclaration');
31
+ if (importDeclarations.length === 0) {
32
+ return;
33
+ }
34
+ const identifiersToReplace = [];
35
+ for (const importDeclaration of importDeclarations) {
36
+ const moduleSpecifier = importDeclaration.moduleSpecifier.getText();
37
+ if (moduleSpecifier.includes('@spartan-ng/brain/')) {
38
+ const identifiers = tsquery_1.tsquery.query(importDeclaration, 'Identifier');
39
+ // we only care about identifiers that end in 'Directive', 'Component'
40
+ for (const identifier of identifiers) {
41
+ const identifierText = identifier.getText();
42
+ if (identifierText.endsWith('Directive') || identifierText.endsWith('Component')) {
43
+ identifiersToReplace.push(identifierText);
44
+ }
45
+ }
46
+ }
47
+ }
48
+ // find all the identifiers in the file - we reverse the order to replace the exact identifiers based on position
49
+ const identifiers = tsquery_1.tsquery.query(content, 'Identifier').reverse();
50
+ for (const identifier of identifiers) {
51
+ if (!identifiersToReplace.includes(identifier.getText())) {
52
+ continue;
53
+ }
54
+ // determine the new identifier based on the old one, if it exists in the mapping use it, otherwise just remove
55
+ // the trailing 'Directive' or 'Component'
56
+ const oldIdentifier = identifier.getText();
57
+ const newIdentifier = renamedIdentifiers[oldIdentifier] || oldIdentifier.replace(/(Directive|Component)$/, '');
58
+ if (newIdentifier !== oldIdentifier) {
59
+ const start = identifier.getStart();
60
+ const end = identifier.getEnd();
61
+ content = content.slice(0, start) + newIdentifier + content.slice(end);
62
+ }
63
+ }
64
+ tree.write(path, content);
65
+ });
66
+ }
67
+ /**
68
+ * Helm identifiers are not necessarily just imports as the class declarations
69
+ * are defined in the users codebase so we need to update all identifiers that
70
+ * start with `Hlm` and end with `Directive` or `Component`.
71
+ * We also must check for known identifiers that have been renamed.
72
+ */
73
+ function updateHelmIdentifiers(tree) {
74
+ (0, visit_files_1.visitFiles)(tree, '/', (path) => {
75
+ if (!path.endsWith('.ts')) {
76
+ return;
77
+ }
78
+ let content = tree.read(path).toString('utf-8');
79
+ const identifiers = tsquery_1.tsquery.query(content, 'Identifier').reverse();
80
+ const identifiersToReplace = [];
81
+ for (const identifier of identifiers) {
82
+ const identifierText = identifier.getText();
83
+ if (identifierText.startsWith('Hlm') &&
84
+ (identifierText.endsWith('Directive') || identifierText.endsWith('Component'))) {
85
+ identifiersToReplace.push(identifierText);
86
+ }
87
+ }
88
+ // replace all identifiers in the content
89
+ for (const oldIdentifier of identifiersToReplace) {
90
+ const newIdentifier = renamedIdentifiers[oldIdentifier] || oldIdentifier.replace(/(Directive|Component)$/, '');
91
+ content = content.replace(new RegExp(`\\b${oldIdentifier}\\b`, 'g'), newIdentifier);
92
+ }
93
+ tree.write(path, content);
94
+ });
95
+ }
96
+ exports.default = migrateNamingConventionGenerator;
97
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-naming-convention/generator.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ export interface MigrateNamingConventionsGeneratorSchema {
2
+ skipFormat?: boolean;
3
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "MigrateNamingConventionSchema",
4
+ "title": "",
5
+ "type": "object",
6
+ "properties": {
7
+ "skipFormat": {
8
+ "type": "boolean",
9
+ "default": false,
10
+ "description": "Skip formatting files"
11
+ }
12
+ },
13
+ "required": []
14
+ }
@@ -1,23 +1,23 @@
1
1
  import { NgModule } from '@angular/core';
2
2
 
3
- import { HlmAccordionContentComponent } from './lib/hlm-accordion-content.component';
4
- import { HlmAccordionIconDirective } from './lib/hlm-accordion-icon.directive';
5
- import { HlmAccordionItemDirective } from './lib/hlm-accordion-item.directive';
6
- import { HlmAccordionTriggerDirective } from './lib/hlm-accordion-trigger.directive';
7
- import { HlmAccordionDirective } from './lib/hlm-accordion.directive';
3
+ import { HlmAccordion } from './lib/hlm-accordion';
4
+ import { HlmAccordionContent } from './lib/hlm-accordion-content';
5
+ import { HlmAccordionIcon } from './lib/hlm-accordion-icon';
6
+ import { HlmAccordionItem } from './lib/hlm-accordion-item';
7
+ import { HlmAccordionTrigger } from './lib/hlm-accordion-trigger';
8
8
 
9
- export * from './lib/hlm-accordion-content.component';
10
- export * from './lib/hlm-accordion-icon.directive';
11
- export * from './lib/hlm-accordion-item.directive';
12
- export * from './lib/hlm-accordion-trigger.directive';
13
- export * from './lib/hlm-accordion.directive';
9
+ export * from './lib/hlm-accordion';
10
+ export * from './lib/hlm-accordion-content';
11
+ export * from './lib/hlm-accordion-icon';
12
+ export * from './lib/hlm-accordion-item';
13
+ export * from './lib/hlm-accordion-trigger';
14
14
 
15
15
  export const HlmAccordionImports = [
16
- HlmAccordionDirective,
17
- HlmAccordionItemDirective,
18
- HlmAccordionTriggerDirective,
19
- HlmAccordionIconDirective,
20
- HlmAccordionContentComponent,
16
+ HlmAccordion,
17
+ HlmAccordionItem,
18
+ HlmAccordionTrigger,
19
+ HlmAccordionIcon,
20
+ HlmAccordionContent,
21
21
  ] as const;
22
22
 
23
23
  @NgModule({
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from '@angular/core';
2
- import { BrnAccordionContentComponent } from '@spartan-ng/brain/accordion';
2
+ import { BrnAccordionContent } from '@spartan-ng/brain/accordion';
3
3
  import { hlm } from '@spartan-ng/brain/core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
@@ -18,7 +18,7 @@ import type { ClassValue } from 'clsx';
18
18
  '[class]': '_computedClass()',
19
19
  },
20
20
  })
21
- export class HlmAccordionContentComponent extends BrnAccordionContentComponent {
21
+ export class HlmAccordionContent extends BrnAccordionContent {
22
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
23
23
  protected readonly _computedClass = computed(() => {
24
24
  const gridRows = this.state() === 'open' ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]';
@@ -12,7 +12,7 @@ import type { ClassValue } from 'clsx';
12
12
  '[class]': '_computedClass()',
13
13
  },
14
14
  })
15
- export class HlmAccordionIconDirective {
15
+ export class HlmAccordionIcon {
16
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
17
  protected readonly _computedClass = computed(() =>
18
18
  hlm(
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { BrnAccordionItemDirective } from '@spartan-ng/brain/accordion';
2
+ import { BrnAccordionItem } from '@spartan-ng/brain/accordion';
3
3
  import { hlm } from '@spartan-ng/brain/core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
@@ -10,12 +10,12 @@ import type { ClassValue } from 'clsx';
10
10
  },
11
11
  hostDirectives: [
12
12
  {
13
- directive: BrnAccordionItemDirective,
13
+ directive: BrnAccordionItem,
14
14
  inputs: ['isOpened'],
15
15
  },
16
16
  ],
17
17
  })
18
- export class HlmAccordionItemDirective {
18
+ export class HlmAccordionItem {
19
19
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
20
20
  protected readonly _computedClass = computed(() =>
21
21
  hlm('flex flex-1 flex-col border-b border-border', this.userClass()),
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
- import { BrnAccordionTriggerDirective } from '@spartan-ng/brain/accordion';
2
+ import { BrnAccordionTrigger } from '@spartan-ng/brain/accordion';
3
3
  import { hlm } from '@spartan-ng/brain/core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
@@ -9,9 +9,9 @@ import type { ClassValue } from 'clsx';
9
9
  '[style.--tw-ring-offset-shadow]': '"0 0 #000"',
10
10
  '[class]': '_computedClass()',
11
11
  },
12
- hostDirectives: [BrnAccordionTriggerDirective],
12
+ hostDirectives: [BrnAccordionTrigger],
13
13
  })
14
- export class HlmAccordionTriggerDirective {
14
+ export class HlmAccordionTrigger {
15
15
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
16
  protected readonly _computedClass = computed(() =>
17
17
  hlm(
@@ -1,5 +1,5 @@
1
1
  import { Directive, computed, inject, input } from '@angular/core';
2
- import { BrnAccordionDirective } from '@spartan-ng/brain/accordion';
2
+ import { BrnAccordion } from '@spartan-ng/brain/accordion';
3
3
  import { hlm } from '@spartan-ng/brain/core';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
@@ -8,10 +8,10 @@ import type { ClassValue } from 'clsx';
8
8
  host: {
9
9
  '[class]': '_computedClass()',
10
10
  },
11
- hostDirectives: [{ directive: BrnAccordionDirective, inputs: ['type', 'dir', 'orientation'] }],
11
+ hostDirectives: [{ directive: BrnAccordion, inputs: ['type', 'dir', 'orientation'] }],
12
12
  })
13
- export class HlmAccordionDirective {
14
- private readonly _brn = inject(BrnAccordionDirective);
13
+ export class HlmAccordion {
14
+ private readonly _brn = inject(BrnAccordion);
15
15
 
16
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
17
  protected readonly _computedClass = computed(() =>