@spartan-ng/cli 0.0.1-alpha.379 → 0.0.1-alpha.382

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 (198) hide show
  1. package/generators.json +30 -0
  2. package/package.json +4 -2
  3. package/src/generators/base/lib/build-dependency-array.js +1 -35
  4. package/src/generators/base/lib/build-dependency-array.js.map +1 -1
  5. package/src/generators/base/schema.d.ts +0 -1
  6. package/src/generators/base/versions.d.ts +1 -21
  7. package/src/generators/base/versions.js +2 -22
  8. package/src/generators/base/versions.js.map +1 -1
  9. package/src/generators/migrate-core/compat.d.ts +2 -0
  10. package/src/generators/migrate-core/compat.js +6 -0
  11. package/src/generators/migrate-core/compat.js.map +1 -0
  12. package/src/generators/migrate-core/generator.d.ts +4 -0
  13. package/src/generators/migrate-core/generator.js +52 -0
  14. package/src/generators/migrate-core/generator.js.map +1 -0
  15. package/src/generators/migrate-core/schema.d.ts +3 -0
  16. package/src/generators/migrate-core/schema.json +14 -0
  17. package/src/generators/migrate-icon/compat.d.ts +2 -0
  18. package/src/generators/migrate-icon/compat.js +6 -0
  19. package/src/generators/migrate-icon/compat.js.map +1 -0
  20. package/src/generators/migrate-icon/generator.d.ts +4 -0
  21. package/src/generators/migrate-icon/generator.js +286 -0
  22. package/src/generators/migrate-icon/generator.js.map +1 -0
  23. package/src/generators/migrate-icon/schema.d.ts +3 -0
  24. package/src/generators/migrate-icon/schema.json +14 -0
  25. package/src/generators/migrate-scroll-area/compat.d.ts +2 -0
  26. package/src/generators/migrate-scroll-area/compat.js +6 -0
  27. package/src/generators/migrate-scroll-area/compat.js.map +1 -0
  28. package/src/generators/migrate-scroll-area/generator.d.ts +4 -0
  29. package/src/generators/migrate-scroll-area/generator.js +112 -0
  30. package/src/generators/migrate-scroll-area/generator.js.map +1 -0
  31. package/src/generators/migrate-scroll-area/schema.d.ts +3 -0
  32. package/src/generators/migrate-scroll-area/schema.json +14 -0
  33. package/src/generators/ui/generator.js +0 -5
  34. package/src/generators/ui/generator.js.map +1 -1
  35. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.component.ts.template +1 -1
  36. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template +4 -3
  37. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template +1 -1
  38. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +1 -1
  39. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +1 -1
  40. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.directive.ts.template +1 -1
  41. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.component.ts.template +1 -1
  42. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +1 -1
  43. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.component.ts.template +1 -1
  44. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.component.ts.template +1 -1
  45. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.directive.ts.template +1 -1
  46. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.directive.ts.template +1 -1
  47. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +1 -1
  48. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +1 -1
  49. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +1 -1
  50. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.ts.template +1 -1
  51. package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.ts.template +1 -1
  52. package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +1 -1
  53. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +1 -1
  54. package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +1 -1
  55. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-ellipsis.component.ts.template +5 -4
  56. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-item.directive.ts.template +1 -1
  57. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-link.directive.ts.template +1 -1
  58. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-list.directive.ts.template +1 -1
  59. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-page.directive.ts.template +1 -1
  60. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-separator.component.ts.template +5 -4
  61. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb.directive.ts.template +1 -1
  62. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +1 -1
  63. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +7 -5
  64. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.directive.ts.template +1 -1
  65. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template +1 -1
  66. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.directive.ts.template +1 -1
  67. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.directive.ts.template +1 -1
  68. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.directive.ts.template +1 -1
  69. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.directive.ts.template +1 -1
  70. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.component.ts.template +1 -1
  71. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.component.ts.template +1 -1
  72. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.component.ts.template +5 -4
  73. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.component.ts.template +5 -4
  74. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.component.ts.template +1 -1
  75. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox-checkicon.component.ts.template +5 -4
  76. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +1 -1
  77. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.directive.ts.template +1 -1
  78. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +1 -1
  79. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.directive.ts.template +1 -1
  80. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.directive.ts.template +1 -1
  81. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input-wrapper.component.ts.template +2 -2
  82. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input.directive.ts.template +1 -1
  83. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template +3 -3
  84. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.directive.ts.template +1 -1
  85. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.directive.ts.template +1 -1
  86. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +1 -1
  87. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.directive.ts.template +1 -1
  88. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.directive.ts.template +1 -1
  89. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.component.ts.template +5 -4
  90. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template +1 -1
  91. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template +1 -1
  92. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template +1 -1
  93. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template +1 -1
  94. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template +1 -1
  95. package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.component.ts.template +1 -1
  96. package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +4 -7
  97. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.directive.spec.ts.template +66 -0
  98. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.directive.ts.template +41 -0
  99. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +1 -4
  100. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.directive.ts.template +1 -1
  101. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +1 -1
  102. package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +1 -1
  103. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +1 -1
  104. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +1 -1
  105. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template +5 -4
  106. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.directive.ts.template +1 -1
  107. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.directive.ts.template +3 -3
  108. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template +5 -4
  109. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.directive.ts.template +1 -1
  110. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +5 -4
  111. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +1 -1
  112. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +1 -1
  113. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +1 -1
  114. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +1 -1
  115. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +1 -1
  116. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.component.ts.template +1 -1
  117. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.directive.ts.template +1 -1
  118. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.component.ts.template +5 -4
  119. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.directive.ts.template +1 -1
  120. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.directive.ts.template +1 -1
  121. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.component.ts.template +5 -4
  122. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.component.ts.template +5 -4
  123. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.directive.ts.template +1 -1
  124. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.directive.ts.template +1 -1
  125. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.directive.ts.template +1 -1
  126. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +1 -1
  127. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +1 -1
  128. package/src/generators/ui/libs/ui-radio-group-helm/files/index.ts.template +3 -3
  129. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.component.ts.template +23 -0
  130. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +1 -1
  131. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template +5 -2
  132. package/src/generators/ui/libs/ui-scroll-area-helm/files/index.ts.template +4 -4
  133. package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.directive.ts.template +20 -0
  134. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.directive.ts.template +1 -1
  135. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.directive.ts.template +1 -1
  136. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +1 -1
  137. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +5 -4
  138. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.component.ts.template +4 -3
  139. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.component.ts.template +4 -3
  140. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +6 -6
  141. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +1 -1
  142. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.directive.ts.template +1 -1
  143. package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.directive.ts.template +1 -1
  144. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.directive.ts.template +1 -1
  145. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +5 -4
  146. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +1 -1
  147. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +1 -1
  148. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +1 -1
  149. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +1 -1
  150. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +1 -1
  151. package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.component.ts.template +1 -1
  152. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template +1 -1
  153. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template +1 -1
  154. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template +1 -1
  155. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-marks.directive.ts.template +1 -1
  156. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active-fill.directive.ts.template +1 -1
  157. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active.directive.ts.template +1 -1
  158. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-inactive.directive.ts.template +1 -1
  159. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template +1 -1
  160. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +1 -1
  161. package/src/generators/ui/libs/ui-sonner-helm/files/lib/hlm-toaster.component.ts.template +1 -1
  162. package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.component.ts.template +1 -1
  163. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +1 -1
  164. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +1 -1
  165. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-caption.component.ts.template +1 -1
  166. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.component.ts.template +1 -1
  167. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.directive.ts.template +1 -1
  168. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-td.component.ts.template +1 -1
  169. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-th.component.ts.template +1 -1
  170. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-trow.component.ts.template +1 -1
  171. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template +1 -1
  172. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +1 -1
  173. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template +6 -5
  174. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +1 -1
  175. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +1 -1
  176. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +1 -1
  177. package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template +19 -24
  178. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.directive.ts.template +1 -1
  179. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.directive.ts.template +1 -1
  180. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.directive.ts.template +1 -1
  181. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.directive.ts.template +1 -1
  182. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.directive.ts.template +1 -1
  183. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.directive.ts.template +1 -1
  184. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.directive.ts.template +1 -1
  185. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.directive.ts.template +1 -1
  186. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.directive.ts.template +1 -1
  187. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.directive.ts.template +1 -1
  188. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.directive.ts.template +1 -1
  189. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.directive.ts.template +1 -1
  190. package/src/generators/ui/schema.d.ts +0 -1
  191. package/src/generators/ui/supported-ui-libraries.json +69 -82
  192. package/src/utils/visit-files.d.ts +2 -0
  193. package/src/utils/visit-files.js +14 -0
  194. package/src/utils/visit-files.js.map +1 -0
  195. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.spec.ts.template +0 -64
  196. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.ts.template +0 -118
  197. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.directive.ts.template +0 -15
  198. package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.component.ts.template +0 -49
package/generators.json CHANGED
@@ -14,6 +14,21 @@
14
14
  "factory": "./src/generators/migrate-brain-imports/generator",
15
15
  "schema": "./src/generators/migrate-brain-imports/schema.json",
16
16
  "description": "Migrate Brain imports to use secondary entrypoints."
17
+ },
18
+ "migrate-scroll-area": {
19
+ "factory": "./src/generators/migrate-scroll-area/generator",
20
+ "schema": "./src/generators/migrate-scroll-area/schema.json",
21
+ "description": "Migrate hlm-scroll-area to ngx-scrollbar"
22
+ },
23
+ "migrate-icon": {
24
+ "factory": "./src/generators/migrate-icon/generator",
25
+ "schema": "./src/generators/migrate-icon/schema.json",
26
+ "description": "Migrate hlm-icon to ng-icon"
27
+ },
28
+ "migrate-core": {
29
+ "factory": "./src/generators/migrate-core/generator",
30
+ "schema": "./src/generators/migrate-core/schema.json",
31
+ "description": "Migrate core library to brain core entrypoing"
17
32
  }
18
33
  },
19
34
  "schematics": {
@@ -31,6 +46,21 @@
31
46
  "factory": "./src/generators/migrate-brain-imports/compat",
32
47
  "schema": "./src/generators/migrate-brain-imports/schema.json",
33
48
  "description": "Migrate Brain imports to use secondary entrypoints."
49
+ },
50
+ "migrate-scroll-area": {
51
+ "factory": "./src/generators/migrate-scroll-area/compat",
52
+ "schema": "./src/generators/migrate-scroll-area/schema.json",
53
+ "description": "Migrate hlm-scroll-area to ngx-scrollbar"
54
+ },
55
+ "migrate-icon": {
56
+ "factory": "./src/generators/migrate-icon/compat",
57
+ "schema": "./src/generators/migrate-icon/schema.json",
58
+ "description": "Migrate hlm-icon to ng-icon"
59
+ },
60
+ "migrate-core": {
61
+ "factory": "./src/generators/migrate-scroll-area/compat",
62
+ "schema": "./src/generators/migrate-core/schema.json",
63
+ "description": "Migrate core library to brain core entrypoing"
34
64
  }
35
65
  }
36
66
  }
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@spartan-ng/cli",
3
- "version": "0.0.1-alpha.379",
3
+ "version": "0.0.1-alpha.382",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@nx/angular": ">=20.0.0",
7
7
  "@nx/devkit": ">=20.0.0",
8
8
  "@nx/js": ">=20.0.0",
9
+ "@schematics/angular": ">=18.0.0",
9
10
  "enquirer": "2.3.6",
10
11
  "jsonc-eslint-parser": "^2.1.0",
11
12
  "nx": ">=20.0.0",
12
- "semver": "7.5.4"
13
+ "semver": "7.5.4",
14
+ "typescript": ">=5.0.0"
13
15
  },
14
16
  "peerDependencies": {
15
17
  "tslib": "^2.3.0"
@@ -3,48 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildDependencyArray = buildDependencyArray;
4
4
  exports.buildDevDependencyArray = buildDevDependencyArray;
5
5
  const versions_1 = require("../versions");
6
- const BRAIN_DEPENDENCY_MAP = {
7
- accordion: versions_1.SPARTAN_ACCORDION_BRAIN_VERSION,
8
- alertdialog: versions_1.SPARTAN_ALERT_DIALOG_BRAIN_VERSION,
9
- avatar: versions_1.SPARTAN_AVATAR_BRAIN_VERSION,
10
- command: versions_1.SPARTAN_COMMAND_BRAIN_VERSION,
11
- dialog: versions_1.SPARTAN_DIALOG_BRAIN_VERSION,
12
- hovercard: versions_1.SPARTAN_HOVERCARD_BRAIN_VERSION,
13
- label: versions_1.SPARTAN_LABEL_BRAIN_VERSION,
14
- menu: versions_1.SPARTAN_MENU_BRAIN_VERSION,
15
- popover: versions_1.SPARTAN_POPOVER_BRAIN_VERSION,
16
- progress: versions_1.SPARTAN_PROGRESS_BRAIN_VERSION,
17
- radiogroup: versions_1.SPARTAN_RADIO_GROUP_BRAIN_VERSION,
18
- select: versions_1.SPARTAN_SELECT_BRAIN_VERSION,
19
- separator: versions_1.SPARTAN_SEPARATOR_BRAIN_VERSION,
20
- sheet: versions_1.SPARTAN_SHEET_BRAIN_VERSION,
21
- switch: versions_1.SPARTAN_SWITCH_VERSION,
22
- tabs: versions_1.SPARTAN_TABS_VERSION,
23
- table: versions_1.SPARTAN_TABLE_VERSION,
24
- toggle: versions_1.SPARTAN_TOGGLE_VERSION,
25
- formfield: versions_1.SPARTAN_FORMFIELD_VERSION,
26
- };
27
- // TODO: can we combine this with primitive-deps.ts
28
- const DEPENDENT_ON_DIALOG = ['alertdialog', 'sheet', 'popover'];
29
- const DEPENDENT_ON_FORMS = ['input', 'select'];
30
6
  function buildDependencyArray(options, angularVersion, existingCdkVersion) {
31
7
  let dependencies = {
32
- '@spartan-ng/ui-core': versions_1.SPARTAN_CORE_VERSION,
33
8
  '@angular/cdk': existingCdkVersion ?? angularVersion,
9
+ '@spartan-ng/brain': versions_1.SPARTAN_BRAIN_VERSION,
34
10
  };
35
11
  if (options.peerDependencies) {
36
12
  dependencies = { ...dependencies, ...options.peerDependencies };
37
13
  }
38
- const brainDependencyVersion = BRAIN_DEPENDENCY_MAP[options.primitiveName];
39
- if (brainDependencyVersion) {
40
- dependencies = { ...dependencies, [`@spartan-ng/ui-${options.primitiveName}-brain`]: brainDependencyVersion };
41
- }
42
- if (brainDependencyVersion && DEPENDENT_ON_DIALOG.includes(options.primitiveName)) {
43
- dependencies = { ...dependencies, '@spartan-ng/brain/dialog': brainDependencyVersion };
44
- }
45
- if (brainDependencyVersion && DEPENDENT_ON_FORMS.includes(options.primitiveName)) {
46
- dependencies = { ...dependencies, '@spartan-ng/brain/forms': brainDependencyVersion };
47
- }
48
14
  if (options.primitiveName === 'icon') {
49
15
  dependencies = { ...dependencies, '@ng-icons/core': versions_1.NG_ICONS_VERSION };
50
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;AAsDA,oDA2BC;AAED,0DAMC;AAxFD,0CAyBqB;AAErB,MAAM,oBAAoB,GAAG;IAC5B,SAAS,EAAE,0CAA+B;IAC1C,WAAW,EAAE,6CAAkC;IAC/C,MAAM,EAAE,uCAA4B;IACpC,OAAO,EAAE,wCAA6B;IACtC,MAAM,EAAE,uCAA4B;IACpC,SAAS,EAAE,0CAA+B;IAC1C,KAAK,EAAE,sCAA2B;IAClC,IAAI,EAAE,qCAA0B;IAChC,OAAO,EAAE,wCAA6B;IACtC,QAAQ,EAAE,yCAA8B;IACxC,UAAU,EAAE,4CAAiC;IAC7C,MAAM,EAAE,uCAA4B;IACpC,SAAS,EAAE,0CAA+B;IAC1C,KAAK,EAAE,sCAA2B;IAClC,MAAM,EAAE,iCAAsB;IAC9B,IAAI,EAAE,+BAAoB;IAC1B,KAAK,EAAE,gCAAqB;IAC5B,MAAM,EAAE,iCAAsB;IAC9B,SAAS,EAAE,oCAAyB;CACpC,CAAC;AAEF,mDAAmD;AACnD,MAAM,mBAAmB,GAAG,CAAC,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAChE,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE/C,SAAgB,oBAAoB,CACnC,OAA+B,EAC/B,cAAsB,EACtB,kBAA0B;IAE1B,IAAI,YAAY,GAA2B;QAC1C,qBAAqB,EAAE,+BAAoB;QAC3C,cAAc,EAAE,kBAAkB,IAAI,cAAc;KACpD,CAAC;IAEF,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9B,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IACjE,CAAC;IACD,MAAM,sBAAsB,GAAG,oBAAoB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC3E,IAAI,sBAAsB,EAAE,CAAC;QAC5B,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,CAAC,kBAAkB,OAAO,CAAC,aAAa,QAAQ,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAC/G,CAAC;IACD,IAAI,sBAAsB,IAAI,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QACnF,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,CAAC;IACxF,CAAC;IACD,IAAI,sBAAsB,IAAI,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QAClF,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,CAAC;IACvF,CAAC;IACD,IAAI,OAAO,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;QACtC,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,gBAAgB,EAAE,2BAAgB,EAAE,CAAC;IACxE,CAAC;IACD,OAAO,YAAY,CAAC;AACrB,CAAC;AAED,SAAgB,uBAAuB;IACtC,OAAO;QACN,gBAAgB,EAAE,iCAAsB;QACxC,WAAW,EAAE,8BAAmB;QAChC,qBAAqB,EAAE,mCAAwB;KAC/C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;AASA,oDAkBC;AAED,0DAMC;AAlCD,0CAMqB;AAErB,SAAgB,oBAAoB,CACnC,OAA+B,EAC/B,cAAsB,EACtB,kBAA0B;IAE1B,IAAI,YAAY,GAA2B;QAC1C,cAAc,EAAE,kBAAkB,IAAI,cAAc;QACpD,mBAAmB,EAAE,gCAAqB;KAC1C,CAAC;IAEF,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9B,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IACjE,CAAC;IAED,IAAI,OAAO,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;QACtC,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,gBAAgB,EAAE,2BAAgB,EAAE,CAAC;IACxE,CAAC;IACD,OAAO,YAAY,CAAC;AACrB,CAAC;AAED,SAAgB,uBAAuB;IACtC,OAAO;QACN,gBAAgB,EAAE,iCAAsB;QACxC,WAAW,EAAE,8BAAmB;QAChC,qBAAqB,EAAE,mCAAwB;KAC/C,CAAC;AACH,CAAC"}
@@ -6,6 +6,5 @@ export interface HlmBaseGeneratorSchema {
6
6
  rootProject?: boolean;
7
7
  tags?: string;
8
8
  peerDependencies?: Record<string, string>;
9
- skipBrainDependencies?: boolean;
10
9
  angularCli?: boolean;
11
10
  }
@@ -1,26 +1,6 @@
1
1
  export declare const FALLBACK_ANGULAR_VERSION = "^18.0.0";
2
2
  export declare const NG_ICONS_VERSION = "^29.10.0";
3
- export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.379";
4
- export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.379";
5
- export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.379";
6
- export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.379";
7
- export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.379";
8
- export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.379";
9
- export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.379";
10
- export declare const SPARTAN_FORMFIELD_VERSION = "0.0.1-alpha.379";
11
- export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.379";
12
- export declare const SPARTAN_LABEL_BRAIN_VERSION = "0.0.1-alpha.379";
13
- export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.379";
14
- export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.379";
15
- export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.379";
16
- export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.379";
17
- export declare const SPARTAN_SELECT_BRAIN_VERSION = "0.0.1-alpha.379";
18
- export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.379";
19
- export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.379";
20
- export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.379";
21
- export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.379";
22
- export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.379";
23
- export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.379";
3
+ export declare const SPARTAN_BRAIN_VERSION = "0.0.1-alpha.381";
24
4
  export declare const TAILWIND_MERGE_VERSION = "^2.2.0";
25
5
  export declare const TAILWINDCSS_VERSION = "^3.0.2";
26
6
  export declare const TAILWIND_ANIMATE_VERSION = "^1.0.6";
@@ -1,32 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TAILWIND_ANIMATE_VERSION = exports.TAILWINDCSS_VERSION = exports.TAILWIND_MERGE_VERSION = exports.SPARTAN_TOGGLE_VERSION = exports.SPARTAN_TABLE_VERSION = exports.SPARTAN_TABS_VERSION = exports.SPARTAN_SWITCH_VERSION = exports.SPARTAN_SHEET_BRAIN_VERSION = exports.SPARTAN_SEPARATOR_BRAIN_VERSION = exports.SPARTAN_SELECT_BRAIN_VERSION = exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = exports.SPARTAN_PROGRESS_BRAIN_VERSION = exports.SPARTAN_POPOVER_BRAIN_VERSION = exports.SPARTAN_MENU_BRAIN_VERSION = exports.SPARTAN_LABEL_BRAIN_VERSION = exports.SPARTAN_HOVERCARD_BRAIN_VERSION = exports.SPARTAN_FORMFIELD_VERSION = exports.SPARTAN_DIALOG_BRAIN_VERSION = exports.SPARTAN_CORE_VERSION = exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = exports.SPARTAN_COMMAND_BRAIN_VERSION = exports.SPARTAN_AVATAR_BRAIN_VERSION = exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = exports.SPARTAN_ACCORDION_BRAIN_VERSION = exports.NG_ICONS_VERSION = exports.FALLBACK_ANGULAR_VERSION = void 0;
3
+ exports.TAILWIND_ANIMATE_VERSION = exports.TAILWINDCSS_VERSION = exports.TAILWIND_MERGE_VERSION = exports.SPARTAN_BRAIN_VERSION = exports.NG_ICONS_VERSION = exports.FALLBACK_ANGULAR_VERSION = void 0;
4
4
  // angular dependency
5
5
  exports.FALLBACK_ANGULAR_VERSION = '^18.0.0';
6
6
  // ng-icon dependency
7
7
  exports.NG_ICONS_VERSION = '^29.10.0';
8
8
  // spartan dependencies
9
- exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.379';
10
- exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.379';
11
- exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.379';
12
- exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.379';
13
- exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.379';
14
- exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.379';
15
- exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.379';
16
- exports.SPARTAN_FORMFIELD_VERSION = '0.0.1-alpha.379';
17
- exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.379';
18
- exports.SPARTAN_LABEL_BRAIN_VERSION = '0.0.1-alpha.379';
19
- exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.379';
20
- exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.379';
21
- exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.379';
22
- exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.379';
23
- exports.SPARTAN_SELECT_BRAIN_VERSION = '0.0.1-alpha.379';
24
- exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.379';
25
- exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.379';
26
- exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.379';
27
- exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.379';
28
- exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.379';
29
- exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.379';
9
+ exports.SPARTAN_BRAIN_VERSION = '0.0.1-alpha.381';
30
10
  // dev dependencies
31
11
  exports.TAILWIND_MERGE_VERSION = '^2.2.0';
32
12
  exports.TAILWINDCSS_VERSION = '^3.0.2';
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/base/versions.ts"],"names":[],"mappings":";;;AAAA,qBAAqB;AACR,QAAA,wBAAwB,GAAG,SAAS,CAAC;AAClD,qBAAqB;AACR,QAAA,gBAAgB,GAAG,UAAU,CAAC;AAC3C,uBAAuB;AACV,QAAA,+BAA+B,GAAG,iBAAiB,CAAC;AACpD,QAAA,kCAAkC,GAAG,iBAAiB,CAAC;AACvD,QAAA,4BAA4B,GAAG,iBAAiB,CAAC;AACjD,QAAA,6BAA6B,GAAG,iBAAiB,CAAC;AAClD,QAAA,iCAAiC,GAAG,iBAAiB,CAAC;AACtD,QAAA,oBAAoB,GAAG,iBAAiB,CAAC;AACzC,QAAA,4BAA4B,GAAG,iBAAiB,CAAC;AACjD,QAAA,yBAAyB,GAAG,iBAAiB,CAAC;AAC9C,QAAA,+BAA+B,GAAG,iBAAiB,CAAC;AACpD,QAAA,2BAA2B,GAAG,iBAAiB,CAAC;AAChD,QAAA,0BAA0B,GAAG,iBAAiB,CAAC;AAC/C,QAAA,6BAA6B,GAAG,iBAAiB,CAAC;AAClD,QAAA,8BAA8B,GAAG,iBAAiB,CAAC;AACnD,QAAA,iCAAiC,GAAG,iBAAiB,CAAC;AACtD,QAAA,4BAA4B,GAAG,iBAAiB,CAAC;AACjD,QAAA,+BAA+B,GAAG,iBAAiB,CAAC;AACpD,QAAA,2BAA2B,GAAG,iBAAiB,CAAC;AAChD,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,oBAAoB,GAAG,iBAAiB,CAAC;AACzC,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AACxD,mBAAmB;AACN,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAClC,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAC/B,QAAA,wBAAwB,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/base/versions.ts"],"names":[],"mappings":";;;AAAA,qBAAqB;AACR,QAAA,wBAAwB,GAAG,SAAS,CAAC;AAClD,qBAAqB;AACR,QAAA,gBAAgB,GAAG,UAAU,CAAC;AAC3C,uBAAuB;AACV,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AACvD,mBAAmB;AACN,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAClC,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAC/B,QAAA,wBAAwB,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const _default: (generatorOptions: import("./schema").MigrateCoreGeneratorSchema) => (tree: any, context: any) => Promise<any>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const generator_1 = require("./generator");
5
+ exports.default = (0, devkit_1.convertNxGenerator)(generator_1.migrateCoreGenerator);
6
+ //# sourceMappingURL=compat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-core/compat.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,2CAAmD;AAEnD,kBAAe,IAAA,2BAAkB,EAAC,gCAAoB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Tree } from '@nx/devkit';
2
+ import { MigrateCoreGeneratorSchema } from './schema';
3
+ export declare function migrateCoreGenerator(tree: Tree, options: MigrateCoreGeneratorSchema): Promise<void>;
4
+ export default migrateCoreGenerator;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.migrateCoreGenerator = migrateCoreGenerator;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const visit_files_1 = require("../../utils/visit-files");
6
+ async function migrateCoreGenerator(tree, options) {
7
+ updateImports(tree);
8
+ updateTailwindConfig(tree);
9
+ if (!options.skipFormat) {
10
+ await (0, devkit_1.formatFiles)(tree);
11
+ }
12
+ }
13
+ /**
14
+ * Update imports from @spartan-ng/ui-core to @spartan-ng/brain/core
15
+ */
16
+ function updateImports(tree) {
17
+ (0, visit_files_1.visitFiles)(tree, '/', (path) => {
18
+ const content = tree.read(path).toString('utf-8');
19
+ if (content.includes('@spartan-ng/ui-core')) {
20
+ const updatedCode = content
21
+ // Handle `import { ... } from '@spartan-ng/ui-core';`
22
+ .replace(/import\s+\{[^}]*\}\s+from\s+['"]@spartan-ng\/ui-core['"];/g, (match) => match.replace('@spartan-ng/ui-core', '@spartan-ng/brain/core'))
23
+ // Handle `import type { ... } from '@spartan-ng/ui-core';`
24
+ .replace(/import\s+type\s+\{[^}]*\}\s+from\s+['"]@spartan-ng\/ui-core['"];/g, (match) => match.replace('@spartan-ng/ui-core', '@spartan-ng/brain/core'))
25
+ // Handle `export { ... } from '@spartan-ng/ui-core';`
26
+ .replace(/export\s+\{[^}]*\}\s+from\s+['"]@spartan-ng\/ui-core['"];/g, (match) => match.replace('@spartan-ng/ui-core', '@spartan-ng/brain/core'))
27
+ // Handle `import * as name from '@spartan-ng/ui-core';`
28
+ .replace(/import\s+\*\s+as\s+\w+\s+from\s+['"]@spartan-ng\/ui-core['"];/g, (match) => match.replace('@spartan-ng/ui-core', '@spartan-ng/brain/core'))
29
+ // Handle `import defaultExport from '@spartan-ng/ui-core';`
30
+ .replace(/import\s+\w+\s+from\s+['"]@spartan-ng\/ui-core['"];/g, (match) => match.replace('@spartan-ng/ui-core', '@spartan-ng/brain/core'))
31
+ // Handle `export * from '@spartan-ng/ui-core';`
32
+ .replace(/export\s+\*\s+from\s+['"]@spartan-ng\/ui-core['"];/g, (match) => match.replace('@spartan-ng/ui-core', '@spartan-ng/brain/core'));
33
+ tree.write(path, updatedCode);
34
+ }
35
+ });
36
+ }
37
+ /**
38
+ * Update the tailwind config file
39
+ */
40
+ function updateTailwindConfig(tree) {
41
+ (0, visit_files_1.visitFiles)(tree, '/', (path) => {
42
+ // technically the tailwind config file could be anywhere and named anything
43
+ // but all we need to do is a simple string replace '@spartan-ng/ui-core/hlm-tailwind-preset' with '@spartan-ng/brain/hlm-tailwind-preset'
44
+ const content = tree.read(path).toString('utf-8');
45
+ if (content.includes('@spartan-ng/ui-core/hlm-tailwind-preset')) {
46
+ const updatedCode = content.replace(/@spartan-ng\/ui-core\/hlm-tailwind-preset/g, '@spartan-ng/brain/hlm-tailwind-preset');
47
+ tree.write(path, updatedCode);
48
+ }
49
+ });
50
+ }
51
+ exports.default = migrateCoreGenerator;
52
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-core/generator.ts"],"names":[],"mappings":";;AAIA,oDAOC;AAXD,uCAA+C;AAC/C,yDAAqD;AAG9C,KAAK,UAAU,oBAAoB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D,gDAAgD;iBAC/C,OAAO,CAAC,qDAAqD,EAAE,CAAC,KAAK,EAAE,EAAE,CACzE,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,CAC9D,CAAC;YAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC/B,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAAC,IAAU;IACvC,IAAA,wBAAU,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;QAC9B,4EAA4E;QAC5E,0IAA0I;QAC1I,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAElD,IAAI,OAAO,CAAC,QAAQ,CAAC,yCAAyC,CAAC,EAAE,CAAC;YACjE,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAClC,4CAA4C,EAC5C,uCAAuC,CACvC,CAAC;YAEF,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAC/B,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export interface MigrateCoreGeneratorSchema {
2
+ skipFormat?: boolean;
3
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "MigrateCore",
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
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (generatorOptions: import("./schema").MigrateIconGeneratorSchema) => (tree: any, context: any) => Promise<any>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ const generator_1 = require("./generator");
5
+ exports.default = (0, devkit_1.convertNxGenerator)(generator_1.migrateIconGenerator);
6
+ //# sourceMappingURL=compat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-icon/compat.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,2CAAmD;AAEnD,kBAAe,IAAA,2BAAkB,EAAC,gCAAoB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Tree } from '@nx/devkit';
2
+ import { MigrateIconGeneratorSchema } from './schema';
3
+ export declare function migrateIconGenerator(tree: Tree, { skipFormat }: MigrateIconGeneratorSchema): Promise<void>;
4
+ export default migrateIconGenerator;
@@ -0,0 +1,286 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.migrateIconGenerator = migrateIconGenerator;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nx/devkit");
6
+ const string_change_1 = require("@nx/devkit/src/utils/string-change");
7
+ const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
8
+ const typescript_1 = tslib_1.__importDefault(require("typescript"));
9
+ const visit_files_1 = require("../../utils/visit-files");
10
+ async function migrateIconGenerator(tree, { skipFormat }) {
11
+ replaceImports(tree);
12
+ replaceSelector(tree);
13
+ replaceProvideIcons(tree);
14
+ addAccordionIcon(tree);
15
+ replaceTailwindClasses(tree);
16
+ if (!skipFormat) {
17
+ await (0, devkit_1.formatFiles)(tree);
18
+ }
19
+ }
20
+ function replaceTailwindClasses(tree) {
21
+ (0, visit_files_1.visitFiles)(tree, '.', (path) => {
22
+ // if this is not a html or typescript file then skip
23
+ if (!path.endsWith('.ts') && !path.endsWith('.html')) {
24
+ return;
25
+ }
26
+ let content = tree.read(path, 'utf-8');
27
+ // if there are no icons then skip
28
+ if (!content || !content.includes('ng-icon')) {
29
+ return;
30
+ }
31
+ const changes = [];
32
+ const regex = /<ng-icon\b[^>]*>/g;
33
+ let match;
34
+ while ((match = regex.exec(content)) !== null) {
35
+ const startIndex = match.index;
36
+ // if there already is a size attribute then skip
37
+ if (match[0].includes('size=')) {
38
+ continue;
39
+ }
40
+ // get the class attribute
41
+ const classMatch = match[0].match(/class="([^"]*)"/);
42
+ if (!classMatch) {
43
+ continue;
44
+ }
45
+ const className = classMatch[1];
46
+ // get each class in the class attribute
47
+ const classes = className.split(' ');
48
+ // find any known size
49
+ const size = classes.find((c) => tailwindToSize(c) !== null);
50
+ if (!size) {
51
+ continue;
52
+ }
53
+ const sizeValue = tailwindToSize(size);
54
+ // remove the size class
55
+ let output = match[0]
56
+ .replace(/\b(w|h|size)-\S+\b/g, '')
57
+ .replace(/class=(["'])(\s*)(.+?)(\s*)\1/g, 'class=$1$3$1')
58
+ .replace(/\s*class="\s*"\s*/g, ' ');
59
+ // add the size attribute
60
+ output = output.replace(' hlm ', ` hlm size="${sizeValue}" `);
61
+ // delete the original line
62
+ changes.push({
63
+ type: string_change_1.ChangeType.Delete,
64
+ start: startIndex,
65
+ length: match[0].length,
66
+ });
67
+ // insert the new line
68
+ changes.push({
69
+ type: string_change_1.ChangeType.Insert,
70
+ index: startIndex,
71
+ text: output,
72
+ });
73
+ }
74
+ content = (0, string_change_1.applyChangesToString)(content, changes);
75
+ tree.write(path, content);
76
+ });
77
+ }
78
+ function tailwindToSize(className) {
79
+ // if this is not a width, height or size class then skip
80
+ if (/\b(w|h|size)-\S+\b/.test(className) === false) {
81
+ return null;
82
+ }
83
+ const [, value] = className.split('-');
84
+ // Handle specific Tailwind keywords
85
+ const keywordMapping = {
86
+ full: '100%',
87
+ screen: '100vw',
88
+ auto: 'auto',
89
+ min: 'min-content',
90
+ max: 'max-content',
91
+ fit: 'fit-content',
92
+ };
93
+ // Check if value is a keyword
94
+ if (keywordMapping[value]) {
95
+ return `${keywordMapping[value]};`;
96
+ }
97
+ // Convert numeric values to a number
98
+ const numericValue = parseFloat(value);
99
+ if (!isNaN(numericValue)) {
100
+ const px = numericValue * 4;
101
+ switch (px) {
102
+ case 12:
103
+ return 'xs';
104
+ case 16:
105
+ return 'sm';
106
+ case 24:
107
+ return 'base';
108
+ case 32:
109
+ return 'lg';
110
+ case 48:
111
+ return 'xl';
112
+ }
113
+ return `${px}px`;
114
+ }
115
+ // Handle other cases
116
+ return null;
117
+ }
118
+ function addAccordionIcon(tree) {
119
+ (0, visit_files_1.visitFiles)(tree, '.', (path) => {
120
+ // if this is not a html or typescript file then skip
121
+ if (!path.endsWith('.ts') && !path.endsWith('.html')) {
122
+ return;
123
+ }
124
+ let content = tree.read(path, 'utf-8');
125
+ if (!content) {
126
+ return;
127
+ }
128
+ // if there is no hlmAccIcon or hlmAccordionIcon then skip
129
+ if (!content.includes('hlmAccIcon') && !content.includes('hlmAccordionIcon')) {
130
+ return;
131
+ }
132
+ const changes = [];
133
+ // if an element is using hlmAccIcon or hlmAccordionIcon and has no name attribute then add the name attribute
134
+ const regex = /<ng-icon\b[^>]*(\bhlmAccIcon\b|\bhlmAccordionIcon\b)[^>]*>/g;
135
+ let match;
136
+ const results = [];
137
+ while ((match = regex.exec(content)) !== null) {
138
+ results.push({ match: match[0], index: match.index });
139
+ }
140
+ if (!results.length) {
141
+ return;
142
+ }
143
+ for (const { match, index } of results) {
144
+ if (!match.includes('name=')) {
145
+ const directive = match.includes('hlmAccIcon') ? 'hlmAccIcon' : 'hlmAccordionIcon';
146
+ const startIndex = index + match.indexOf(directive);
147
+ changes.push({
148
+ type: string_change_1.ChangeType.Insert,
149
+ index: startIndex + directive.length,
150
+ text: ` name="lucideChevronDown"`,
151
+ });
152
+ }
153
+ }
154
+ content = (0, string_change_1.applyChangesToString)(content, changes);
155
+ tree.write(path, content);
156
+ });
157
+ }
158
+ function replaceProvideIcons(tree) {
159
+ (0, visit_files_1.visitFiles)(tree, '.', (path) => {
160
+ // if this is not a typescript file then skip
161
+ if (!path.endsWith('.ts')) {
162
+ return;
163
+ }
164
+ let content = tree.read(path, 'utf-8');
165
+ // if the user is importing `provideIcons` from '@spartan-ng/ui-icon-helm' then we need to replace it with `provideIcons` from '@ng-icons/core'
166
+ if (!content || !content?.includes('provideIcons')) {
167
+ return;
168
+ }
169
+ const sourceFile = typescript_1.default.createSourceFile(path, content, typescript_1.default.ScriptTarget.Latest, true);
170
+ if (!(0, ast_utils_1.isImported)(sourceFile, 'provideIcons', '@spartan-ng/ui-icon-helm')) {
171
+ return;
172
+ }
173
+ const changes = [];
174
+ // remove the import of provideIcons from '@spartan-ng/ui-icon-helm'
175
+ // add the import of provideIcons from '@ng-icons/core'
176
+ changes.push({
177
+ type: string_change_1.ChangeType.Delete,
178
+ start: content.indexOf('provideIcons'),
179
+ length: 'provideIcons'.length,
180
+ });
181
+ changes.push({
182
+ type: string_change_1.ChangeType.Insert,
183
+ index: 0,
184
+ text: `import { provideIcons } from '@ng-icons/core';\n`,
185
+ });
186
+ content = (0, string_change_1.applyChangesToString)(content, changes);
187
+ tree.write(path, content);
188
+ });
189
+ }
190
+ function replaceSelector(tree) {
191
+ // if the element is `<ng-icon hlm` then we need to replace it with `<ng-icon hlm`
192
+ // we also need to replace the closing tag `</ng-icon>` with `</ng-icon>`
193
+ (0, visit_files_1.visitFiles)(tree, '.', (path) => {
194
+ // if this is not an html file or typescript file (inline templates) then skip
195
+ if (!path.endsWith('.html') && !path.endsWith('.ts')) {
196
+ return;
197
+ }
198
+ let content = tree.read(path, 'utf-8');
199
+ if (!content) {
200
+ return;
201
+ }
202
+ content = content.replace(/<hlm-icon/g, '<ng-icon hlm');
203
+ content = content.replace(/<\/hlm-icon>/g, '</ng-icon>');
204
+ tree.write(path, content);
205
+ });
206
+ }
207
+ function replaceImports(tree) {
208
+ // ng modules or standalone components will have import arrays that may need updated.
209
+ // if the import is `HlmIconModule` then we need to also import `NgIcon`,
210
+ // if the import is `HlmIconComponent` we need to rename it to `HlmIconDirective` and add the `NgIcon` import.
211
+ (0, visit_files_1.visitFiles)(tree, '.', (path) => {
212
+ // if the file is not a typescript file then skip
213
+ if (!path.endsWith('.ts')) {
214
+ return;
215
+ }
216
+ let content = tree.read(path, 'utf-8');
217
+ if (!content) {
218
+ return;
219
+ }
220
+ // convert the content to an ast
221
+ const sourceFile = typescript_1.default.createSourceFile(path, content, typescript_1.default.ScriptTarget.Latest, true);
222
+ // find all imports of HlmIconModule or HlmIconComponent
223
+ const imports = findHlmIconImports(sourceFile);
224
+ // if no imports are found then skip
225
+ if (imports.length === 0) {
226
+ return;
227
+ }
228
+ const changes = [];
229
+ for (const identifier of imports) {
230
+ // if the identifier is HlmIconModule then we need to add NgIcon to the imports
231
+ if (identifier.getText() === 'HlmIconModule') {
232
+ changes.push({
233
+ type: string_change_1.ChangeType.Insert,
234
+ index: identifier.getStart(),
235
+ text: 'NgIcon, ',
236
+ });
237
+ }
238
+ // if the identifier is HlmIconComponent then we need to rename it to HlmIconDirective and add NgIcon to the imports
239
+ if (identifier.getText() === 'HlmIconComponent') {
240
+ changes.push({
241
+ type: string_change_1.ChangeType.Insert,
242
+ index: identifier.getStart(),
243
+ text: 'NgIcon, ',
244
+ });
245
+ }
246
+ // check if the NgIcon import is already present
247
+ if (!hasImport(content, 'NgIcon', '@ng-icons/core')) {
248
+ changes.push({
249
+ type: string_change_1.ChangeType.Insert,
250
+ index: 0,
251
+ text: `import { NgIcon } from '@ng-icons/core';\n`,
252
+ });
253
+ }
254
+ }
255
+ content = (0, string_change_1.applyChangesToString)(content, changes);
256
+ // if there are any remaining uses of HlmIconComponent then replace them with HlmIconDirective
257
+ content = content.replace(/HlmIconComponent/g, 'HlmIconDirective');
258
+ tree.write(path, content);
259
+ });
260
+ }
261
+ function findHlmIconImports(node) {
262
+ const matches = [];
263
+ const visit = (node) => {
264
+ if (typescript_1.default.isPropertyAssignment(node) &&
265
+ node.name.getText() === 'imports' &&
266
+ typescript_1.default.isArrayLiteralExpression(node.initializer)) {
267
+ // check if the array literal contains the HlmIconModule or HlmIconComponent
268
+ node.initializer.elements.forEach((element) => {
269
+ if (typescript_1.default.isIdentifier(element)) {
270
+ if (element.getText() === 'HlmIconModule' || element.getText() === 'HlmIconComponent') {
271
+ matches.push(element);
272
+ }
273
+ }
274
+ });
275
+ }
276
+ typescript_1.default.forEachChild(node, visit);
277
+ };
278
+ visit(node);
279
+ return matches;
280
+ }
281
+ function hasImport(contents, importName, importPath) {
282
+ const sourceFile = typescript_1.default.createSourceFile('temp.ts', contents, typescript_1.default.ScriptTarget.Latest, true);
283
+ return (0, ast_utils_1.isImported)(sourceFile, importName, importPath);
284
+ }
285
+ exports.default = migrateIconGenerator;
286
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-icon/generator.ts"],"names":[],"mappings":";;AAOA,oDAUC;;AAjBD,uCAA+C;AAC/C,sEAAoG;AACpG,qEAAmE;AACnE,oEAA4B;AAC5B,yDAAqD;AAG9C,KAAK,UAAU,oBAAoB,CAAC,IAAU,EAAE,EAAE,UAAU,EAA8B;IAChG,cAAc,CAAC,IAAI,CAAC,CAAC;IACrB,eAAe,CAAC,IAAI,CAAC,CAAC;IACtB,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC1B,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvB,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAE7B,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,SAAS,sBAAsB,CAAC,IAAU;IACzC,IAAA,wBAAU,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;QAC9B,qDAAqD;QACrD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACtD,OAAO;QACR,CAAC;QAED,IAAI,OA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