@spartan-ng/cli 0.0.1-alpha.335 → 0.0.1-alpha.337

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 (148) hide show
  1. package/package.json +1 -1
  2. package/src/generators/base/versions.d.ts +20 -20
  3. package/src/generators/base/versions.js +20 -20
  4. package/src/generators/ui/generator.js +2 -2
  5. package/src/generators/ui/generator.js.map +1 -1
  6. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.directive.ts.template +3 -8
  7. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template +6 -11
  8. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template +9 -9
  9. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +3 -8
  10. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +4 -9
  11. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.directive.ts.template +3 -8
  12. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.component.ts.template +3 -8
  13. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +3 -8
  14. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.component.ts.template +3 -7
  15. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.component.ts.template +3 -7
  16. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.directive.ts.template +3 -7
  17. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.directive.ts.template +3 -7
  18. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +3 -11
  19. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +3 -11
  20. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +3 -11
  21. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.ts.template +3 -8
  22. package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.spec.ts.template +10 -6
  23. package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +5 -11
  24. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +3 -11
  25. package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +5 -14
  26. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +11 -11
  27. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.directive.ts.template +3 -11
  28. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template +3 -11
  29. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.directive.ts.template +6 -16
  30. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.directive.ts.template +6 -15
  31. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.directive.ts.template +3 -11
  32. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.directive.ts.template +3 -11
  33. package/src/generators/ui/libs/ui-carousel-helm/files/index.ts.template +26 -0
  34. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.component.ts.template +25 -0
  35. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.component.ts.template +26 -0
  36. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.component.ts.template +62 -0
  37. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.component.ts.template +62 -0
  38. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.component.ts.template +93 -0
  39. package/src/generators/ui/libs/ui-carousel-helm/generator.d.ts +3 -0
  40. package/src/generators/ui/libs/ui-carousel-helm/generator.js +12 -0
  41. package/src/generators/ui/libs/ui-carousel-helm/generator.js.map +1 -0
  42. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox-checkicon.component.ts.template +14 -15
  43. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +29 -17
  44. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.directive.ts.template +3 -11
  45. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +8 -14
  46. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.directive.ts.template +3 -11
  47. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.directive.ts.template +7 -13
  48. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input-wrapper.component.ts.template +5 -14
  49. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input.directive.ts.template +7 -12
  50. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template +3 -10
  51. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.directive.ts.template +7 -12
  52. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.directive.ts.template +3 -11
  53. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +5 -11
  54. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.directive.ts.template +7 -13
  55. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.directive.ts.template +7 -13
  56. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.component.ts.template +6 -11
  57. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template +3 -11
  58. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template +5 -11
  59. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template +5 -11
  60. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template +3 -7
  61. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template +5 -11
  62. package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.component.ts.template +2 -7
  63. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.spec.ts.template +3 -3
  64. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.directive.ts.template +3 -11
  65. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +5 -10
  66. package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +4 -10
  67. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +7 -13
  68. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +5 -11
  69. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template +12 -14
  70. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.directive.ts.template +8 -21
  71. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.directive.ts.template +3 -10
  72. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template +12 -14
  73. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.directive.ts.template +8 -21
  74. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +6 -14
  75. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +5 -15
  76. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +5 -11
  77. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +3 -11
  78. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +5 -11
  79. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +4 -12
  80. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.component.ts.template +7 -13
  81. package/src/generators/ui/libs/ui-pagination-helm/files/index.ts.template +33 -0
  82. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.directive.ts.template +21 -0
  83. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.componet.ts.template +23 -0
  84. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.directive.ts.template +22 -0
  85. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.directive.ts.template +56 -0
  86. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.componet.ts.template +31 -0
  87. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.componet.ts.template +31 -0
  88. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.directive.ts.template +25 -0
  89. package/src/generators/ui/libs/ui-pagination-helm/generator.d.ts +3 -0
  90. package/src/generators/ui/libs/ui-pagination-helm/generator.js +12 -0
  91. package/src/generators/ui/libs/ui-pagination-helm/generator.js.map +1 -0
  92. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.directive.ts.template +7 -13
  93. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.directive.ts.template +7 -13
  94. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +5 -11
  95. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +5 -11
  96. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.directive.ts.template +3 -11
  97. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +3 -11
  98. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template +5 -11
  99. package/src/generators/ui/libs/ui-select-helm/files/index.ts.template +38 -0
  100. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.directive.ts.template +34 -0
  101. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.directive.ts.template +22 -0
  102. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +38 -0
  103. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +54 -0
  104. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.component.ts.template +17 -0
  105. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.component.ts.template +17 -0
  106. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +44 -0
  107. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +26 -0
  108. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.directive.ts.template +21 -0
  109. package/src/generators/ui/libs/ui-select-helm/generator.d.ts +3 -0
  110. package/src/generators/ui/libs/ui-select-helm/generator.js +12 -0
  111. package/src/generators/ui/libs/ui-select-helm/generator.js.map +1 -0
  112. package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.directive.ts.template +7 -13
  113. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.directive.ts.template +7 -13
  114. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +6 -14
  115. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +3 -11
  116. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +5 -11
  117. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +3 -11
  118. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +11 -17
  119. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +3 -11
  120. package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.component.ts.template +3 -11
  121. package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.component.ts.template +5 -11
  122. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +7 -13
  123. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +19 -14
  124. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-caption.component.ts.template +10 -28
  125. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.component.ts.template +11 -27
  126. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-td.component.ts.template +8 -12
  127. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-th.component.ts.template +22 -23
  128. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-trow.component.ts.template +7 -24
  129. package/src/generators/ui/libs/ui-tabs-helm/files/index.ts.template +8 -1
  130. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template +9 -21
  131. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +5 -17
  132. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +9 -21
  133. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.component.ts.template +17 -0
  134. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +7 -13
  135. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +5 -11
  136. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.directive.ts.template +3 -11
  137. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.directive.ts.template +3 -11
  138. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.directive.ts.template +3 -11
  139. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.directive.ts.template +3 -11
  140. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.directive.ts.template +3 -11
  141. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.directive.ts.template +3 -11
  142. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.directive.ts.template +3 -11
  143. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.directive.ts.template +3 -11
  144. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.directive.ts.template +3 -11
  145. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.directive.ts.template +3 -11
  146. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.directive.ts.template +3 -11
  147. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.directive.ts.template +3 -11
  148. package/src/generators/ui/supported-ui-libraries.json +115 -82
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spartan-ng/cli",
3
- "version": "0.0.1-alpha.335",
3
+ "version": "0.0.1-alpha.337",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@nx/js": "^17.1.0",
@@ -1,24 +1,24 @@
1
- export declare const FALLBACK_ANGULAR_VERSION = "^17.0.0";
1
+ export declare const FALLBACK_ANGULAR_VERSION = "^17.1.0";
2
2
  export declare const NG_ICONS_VERSION = "^25.1.0";
3
- export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.322";
4
- export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.322";
5
- export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.322";
6
- export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.322";
7
- export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.322";
8
- export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.322";
9
- export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.322";
10
- export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.322";
11
- export declare const SPARTAN_LABEL_BRAIN_VERSION = "0.0.1-alpha.322";
12
- export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.322";
13
- export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.322";
14
- export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.322";
15
- export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.322";
16
- export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.322";
17
- export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.322";
18
- export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.322";
19
- export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.322";
20
- export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.322";
21
- export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.322";
3
+ export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.335";
4
+ export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.335";
5
+ export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.335";
6
+ export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.335";
7
+ export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.335";
8
+ export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.335";
9
+ export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.335";
10
+ export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.335";
11
+ export declare const SPARTAN_LABEL_BRAIN_VERSION = "0.0.1-alpha.335";
12
+ export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.335";
13
+ export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.335";
14
+ export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.335";
15
+ export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.335";
16
+ export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.335";
17
+ export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.335";
18
+ export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.335";
19
+ export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.335";
20
+ export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.335";
21
+ export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.335";
22
22
  export declare const TAILWIND_MERGE_VERSION = "^2.2.0";
23
23
  export declare const TAILWINDCSS_VERSION = "^3.0.2";
24
24
  export declare const TAILWIND_ANIMATE_VERSION = "^1.0.6";
@@ -2,29 +2,29 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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_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_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;
4
4
  // angular dependency
5
- exports.FALLBACK_ANGULAR_VERSION = '^17.0.0';
5
+ exports.FALLBACK_ANGULAR_VERSION = '^17.1.0';
6
6
  // ng-icon dependency
7
7
  exports.NG_ICONS_VERSION = '^25.1.0';
8
8
  // spartan dependencies
9
- exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.322';
10
- exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.322';
11
- exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.322';
12
- exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.322';
13
- exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.322';
14
- exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.322';
15
- exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.322';
16
- exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.322';
17
- exports.SPARTAN_LABEL_BRAIN_VERSION = '0.0.1-alpha.322';
18
- exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.322';
19
- exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.322';
20
- exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.322';
21
- exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.322';
22
- exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.322';
23
- exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.322';
24
- exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.322';
25
- exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.322';
26
- exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.322';
27
- exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.322';
9
+ exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.335';
10
+ exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.335';
11
+ exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.335';
12
+ exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.335';
13
+ exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.335';
14
+ exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.335';
15
+ exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.335';
16
+ exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.335';
17
+ exports.SPARTAN_LABEL_BRAIN_VERSION = '0.0.1-alpha.335';
18
+ exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.335';
19
+ exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.335';
20
+ exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.335';
21
+ exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.335';
22
+ exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.335';
23
+ exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.335';
24
+ exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.335';
25
+ exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.335';
26
+ exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.335';
27
+ exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.335';
28
28
  // dev dependencies
29
29
  exports.TAILWIND_MERGE_VERSION = '^2.2.0';
30
30
  exports.TAILWINDCSS_VERSION = '^3.0.2';
@@ -33,8 +33,8 @@ function createPrimitiveLibraries(response, availablePrimitiveNames, availablePr
33
33
  const primitivesToCreate = allPrimitivesSelected ? availablePrimitiveNames : response.primitives;
34
34
  const tasks = [];
35
35
  if (!response.primitives.includes('all')) {
36
- yield addIconForDependentPrimitive(primitivesToCreate, ['alert', 'command', 'menu', 'checkbox']);
37
- yield addButtonForDependentPrimitive(primitivesToCreate, ['alertdialog', 'command']);
36
+ yield addIconForDependentPrimitive(primitivesToCreate, ['alert', 'command', 'menu', 'checkbox', 'pagination']);
37
+ yield addButtonForDependentPrimitive(primitivesToCreate, ['alertdialog', 'command', 'pagination']);
38
38
  }
39
39
  yield replaceContextAndMenuBar(primitivesToCreate, allPrimitivesSelected);
40
40
  if (primitivesToCreate.includes('collapsible')) {
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/generator.ts"],"names":[],"mappings":";;;AAAA,uCAAqG;AACrG,uCAAkC;AAElC,+CAAqE;AAGrE,SAA8B,cAAc,CAAC,IAAU,EAAE,OAAwD;;QAChH,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,MAAM,mBAAmB,GAAG,2CAAa,+BAA+B,EAAC,CAAC;QAC1E,MAAM,uBAAuB,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;QAC/G,IAAI,QAAQ,GAA6B,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;QAC5D,IAAI,OAAO,CAAC,IAAI,IAAI,uBAAuB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACnE,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACvC;aAAM;YACN,QAAQ,GAAG,MAAM,IAAA,iBAAM,EAAC;gBACvB,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,YAAY;gBAClB,OAAO,EAAE,0CAA0C;gBACnD,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,uBAAuB,CAAC;aAC5C,CAAC,CAAC;SACH;QACD,KAAK,CAAC,IAAI,CACT,GAAG,CAAC,MAAM,wBAAwB,CAAC,QAAQ,EAAE,uBAAuB,E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4 @@
1
- import { computed, Directive, inject, Input, signal } from '@angular/core';
1
+ import { computed, Directive, inject, input } from '@angular/core';
2
2
  import { BrnAccordionContentComponent } from '@spartan-ng/ui-accordion-brain';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
@@ -13,17 +13,12 @@ import { ClassValue } from 'clsx';
13
13
  export class HlmAccordionContentDirective {
14
14
  private readonly _brn = inject(BrnAccordionContentComponent, { optional: true });
15
15
 
16
- private readonly _userCls = signal<ClassValue>('');
16
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
17
17
  protected readonly _computedClass = computed(() => {
18
18
  const gridRows = this._brn?.state() === 'open' ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]';
19
- return hlm('text-sm transition-all grid', gridRows, this._userCls());
19
+ return hlm('text-sm transition-all grid', gridRows, this._userClass());
20
20
  });
21
21
 
22
- @Input()
23
- set class(userCls: ClassValue) {
24
- this._userCls.set(userCls);
25
- }
26
-
27
22
  constructor() {
28
23
  this._brn?.setClassToCustomElement('pt-1 pb-4');
29
24
  }
@@ -1,5 +1,5 @@
1
- import { computed, Directive, inject, Input, signal } from '@angular/core';
2
- import { radixChevronDown } from '@ng-icons/radix-icons';
1
+ import { computed, Directive, inject, input } from '@angular/core';
2
+ import { lucideChevronDown } from '@ng-icons/lucide';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
5
5
  import { ClassValue } from 'clsx';
@@ -7,7 +7,7 @@ import { ClassValue } from 'clsx';
7
7
  @Directive({
8
8
  selector: 'hlm-icon[hlmAccordionIcon], hlm-icon[hlmAccIcon]',
9
9
  standalone: true,
10
- providers: [provideIcons({ radixChevronDown })],
10
+ providers: [provideIcons({ lucideChevronDown })],
11
11
  host: {
12
12
  '[class]': '_computedClass()',
13
13
  },
@@ -15,17 +15,12 @@ import { ClassValue } from 'clsx';
15
15
  export class HlmAccordionIconDirective {
16
16
  private readonly _hlmIcon = inject(HlmIconComponent);
17
17
 
18
- private readonly _userCls = signal<ClassValue>('');
18
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
19
19
  protected _computedClass = computed(() =>
20
- hlm('inline-block h-4 w-4 transition-transform duration-200', this._userCls()),
20
+ hlm('inline-block h-4 w-4 transition-transform duration-200', this._userClass()),
21
21
  );
22
22
 
23
- @Input()
24
- set class(userCls: ClassValue) {
25
- this._userCls.set(userCls);
26
- }
27
-
28
23
  constructor() {
29
- this._hlmIcon.name = 'radixChevronDown';
24
+ this._hlmIcon.name = 'lucideChevronDown';
30
25
  }
31
26
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, Input, signal } from '@angular/core';
1
+ import { computed, Directive, input } from '@angular/core';
2
2
  import { BrnAccordionItemDirective } from '@spartan-ng/ui-accordion-brain';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
@@ -9,16 +9,16 @@ import { ClassValue } from 'clsx';
9
9
  host: {
10
10
  '[class]': '_computedClass()',
11
11
  },
12
- hostDirectives: [BrnAccordionItemDirective],
12
+ hostDirectives: [
13
+ {
14
+ directive: BrnAccordionItemDirective,
15
+ inputs: ['isOpened'],
16
+ },
17
+ ],
13
18
  })
14
19
  export class HlmAccordionItemDirective {
15
- private readonly _userCls = signal<ClassValue>('');
20
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
16
21
  protected readonly _computedClass = computed(() =>
17
- hlm('flex flex-1 flex-col border-b border-border', this._userCls()),
22
+ hlm('flex flex-1 flex-col border-b border-border', this._userClass()),
18
23
  );
19
-
20
- @Input()
21
- set class(userCls: ClassValue) {
22
- this._userCls.set(userCls);
23
- }
24
24
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, Input, signal } from '@angular/core';
1
+ import { computed, Directive, input } from '@angular/core';
2
2
  import { BrnAccordionTriggerDirective } from '@spartan-ng/ui-accordion-brain';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
@@ -13,16 +13,11 @@ import { ClassValue } from 'clsx';
13
13
  hostDirectives: [BrnAccordionTriggerDirective],
14
14
  })
15
15
  export class HlmAccordionTriggerDirective {
16
- private readonly _userCls = signal<ClassValue>('');
16
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
17
17
  protected _computedClass = computed(() =>
18
18
  hlm(
19
19
  'w-full focus-visible:outline-none text-sm focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 flex flex-1 items-center justify-between py-4 px-0.5 font-medium underline-offset-4 hover:underline [&[data-state=open]>[hlmAccordionIcon]]:rotate-180 [&[data-state=open]>[hlmAccIcon]]:rotate-180',
20
- this._userCls(),
20
+ this._userClass(),
21
21
  ),
22
22
  );
23
-
24
- @Input()
25
- set class(inputs: ClassValue) {
26
- this._userCls.set(inputs);
27
- }
28
23
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, inject, Input, signal } from '@angular/core';
1
+ import { computed, Directive, inject, input } from '@angular/core';
2
2
  import { BrnAccordionDirective } from '@spartan-ng/ui-accordion-brain';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
@@ -9,18 +9,13 @@ import { ClassValue } from 'clsx';
9
9
  host: {
10
10
  '[class]': '_computedClass()',
11
11
  },
12
- hostDirectives: [BrnAccordionDirective],
12
+ hostDirectives: [{ directive: BrnAccordionDirective, inputs: ['type', 'dir', 'orientation'] }],
13
13
  })
14
14
  export class HlmAccordionDirective {
15
15
  private readonly _brn = inject(BrnAccordionDirective);
16
16
 
17
- private readonly _userCls = signal<ClassValue>('');
17
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
18
18
  protected readonly _computedClass = computed(() =>
19
- hlm('flex', this._brn.orientation === 'horizontal' ? 'flex-row' : 'flex-col', this._userCls()),
19
+ hlm('flex', this._brn.orientation === 'horizontal' ? 'flex-row' : 'flex-col', this._userClass()),
20
20
  );
21
-
22
- @Input()
23
- set class(userCls: ClassValue) {
24
- this._userCls.set(userCls);
25
- }
26
21
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, inject, Input, signal } from '@angular/core';
1
+ import { computed, Directive, inject, input } from '@angular/core';
2
2
  import { HlmButtonDirective } from '@spartan-ng/ui-button-helm';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
@@ -14,13 +14,8 @@ import { ClassValue } from 'clsx';
14
14
  export class HlmAlertDialogCancelButtonDirective {
15
15
  private readonly _hlmBtn = inject(HlmButtonDirective, { host: true });
16
16
 
17
- private readonly _userCls = signal<ClassValue>('');
18
- protected readonly _computedClass = computed(() => hlm('mt-2 sm:mt-0', this._userCls()));
19
-
20
- @Input()
21
- set class(userCls: ClassValue) {
22
- this._userCls.set(userCls);
23
- }
17
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
18
+ protected readonly _computedClass = computed(() => hlm('mt-2 sm:mt-0', this._userClass()));
24
19
 
25
20
  constructor() {
26
21
  this._hlmBtn.variant = 'outline';
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, computed, Input, signal, ViewEncapsulation } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, computed, input, signal, ViewEncapsulation } from '@angular/core';
2
2
  import { hlm, injectExposesStateProvider } from '@spartan-ng/ui-core';
3
3
  import { ClassValue } from 'clsx';
4
4
 
@@ -19,16 +19,11 @@ export class HlmAlertDialogContentComponent {
19
19
  private readonly _stateProvider = injectExposesStateProvider({ optional: true, host: true });
20
20
  public readonly state = this._stateProvider?.state ?? signal('closed');
21
21
 
22
- private readonly _userCls = signal<ClassValue>('');
22
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
23
23
  protected readonly _computedClass = computed(() =>
24
24
  hlm(
25
25
  'relative grid w-full max-w-lg gap-4 border-border border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%] sm:rounded-lg md:w-full',
26
- this._userCls(),
26
+ this._userClass(),
27
27
  ),
28
28
  );
29
-
30
- @Input()
31
- set class(userCls: ClassValue) {
32
- this._userCls.set(userCls);
33
- }
34
29
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, Input, signal } from '@angular/core';
1
+ import { computed, Directive, input } from '@angular/core';
2
2
  import { BrnAlertDialogDescriptionDirective } from '@spartan-ng/ui-alertdialog-brain';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
@@ -12,11 +12,6 @@ import { ClassValue } from 'clsx';
12
12
  hostDirectives: [BrnAlertDialogDescriptionDirective],
13
13
  })
14
14
  export class HlmAlertDialogDescriptionDirective {
15
- private readonly _userCls = signal<ClassValue>('');
16
- protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this._userCls()));
17
-
18
- @Input()
19
- set class(userCls: ClassValue) {
20
- this._userCls.set(userCls);
21
- }
15
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
16
+ protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this._userClass()));
22
17
  }
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, computed, Input, signal, ViewEncapsulation } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';
2
2
  import { hlm } from '@spartan-ng/ui-core';
3
3
  import { ClassValue } from 'clsx';
4
4
 
@@ -15,12 +15,8 @@ import { ClassValue } from 'clsx';
15
15
  encapsulation: ViewEncapsulation.None,
16
16
  })
17
17
  export class HlmAlertDialogFooterComponent {
18
- private readonly _userCls = signal<ClassValue>('');
18
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
19
19
  protected readonly _computedClass = computed(() =>
20
- hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this._userCls()),
20
+ hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this._userClass()),
21
21
  );
22
- @Input()
23
- set class(userCls: ClassValue) {
24
- this._userCls.set(userCls);
25
- }
26
22
  }
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, computed, Input, signal, ViewEncapsulation } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';
2
2
  import { hlm } from '@spartan-ng/ui-core';
3
3
  import { ClassValue } from 'clsx';
4
4
 
@@ -15,12 +15,8 @@ import { ClassValue } from 'clsx';
15
15
  encapsulation: ViewEncapsulation.None,
16
16
  })
17
17
  export class HlmAlertDialogHeaderComponent {
18
- private readonly _userCls = signal<ClassValue>('');
18
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
19
19
  protected readonly _computedClass = computed(() =>
20
- hlm('flex flex-col space-y-2 text-center sm:text-left', this._userCls()),
20
+ hlm('flex flex-col space-y-2 text-center sm:text-left', this._userClass()),
21
21
  );
22
- @Input()
23
- set class(userCls: ClassValue) {
24
- this._userCls.set(userCls);
25
- }
26
22
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, effect, Input, signal } from '@angular/core';
1
+ import { computed, Directive, effect, input } from '@angular/core';
2
2
  import { hlm, injectCustomClassSettable } from '@spartan-ng/ui-core';
3
3
  import { ClassValue } from 'clsx';
4
4
 
@@ -9,17 +9,13 @@ import { ClassValue } from 'clsx';
9
9
  export class HlmAlertDialogOverlayDirective {
10
10
  private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });
11
11
 
12
- private readonly _userCls = signal<ClassValue>('');
12
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
13
13
  protected readonly _computedClass = computed(() =>
14
14
  hlm(
15
15
  'bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
16
- this._userCls(),
16
+ this._userClass(),
17
17
  ),
18
18
  );
19
- @Input()
20
- set class(userCls: ClassValue) {
21
- this._userCls.set(userCls);
22
- }
23
19
 
24
20
  constructor() {
25
21
  effect(() => this._classSettable?.setClassToCustomElement(this._computedClass()));
@@ -1,4 +1,4 @@
1
- import { computed, Directive, Input, signal } from '@angular/core';
1
+ import { computed, Directive, input } from '@angular/core';
2
2
  import { BrnAlertDialogTitleDirective } from '@spartan-ng/ui-alertdialog-brain';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
@@ -12,10 +12,6 @@ import { ClassValue } from 'clsx';
12
12
  hostDirectives: [BrnAlertDialogTitleDirective],
13
13
  })
14
14
  export class HlmAlertDialogTitleDirective {
15
- private readonly _userCls = signal<ClassValue>('');
16
- protected readonly _computedClass = computed(() => hlm('text-lg font-semibold', this._userCls()));
17
- @Input()
18
- set class(userCls: ClassValue) {
19
- this._userCls.set(userCls);
20
- }
15
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
16
+ protected readonly _computedClass = computed(() => hlm('text-lg font-semibold', this._userClass()));
21
17
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, Input, signal } from '@angular/core';
1
+ import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '@spartan-ng/ui-core';
3
3
  import { cva, VariantProps } from 'class-variance-authority';
4
4
  import { ClassValue } from 'clsx';
@@ -16,14 +16,6 @@ export type AlertDescriptionVariants = VariantProps<typeof alertDescriptionVaria
16
16
  },
17
17
  })
18
18
  export class HlmAlertDescriptionDirective {
19
- private readonly _userCls = signal<ClassValue>('');
20
- @Input()
21
- set class(userCls: ClassValue) {
22
- this._userCls.set(userCls);
23
- }
24
-
25
- protected _computedClass = computed(() => this._generateClass());
26
- private _generateClass() {
27
- return hlm(alertDescriptionVariants(), this._userCls());
28
- }
19
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
20
+ protected _computedClass = computed(() => hlm(alertDescriptionVariants(), this._userClass()));
29
21
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, Input, signal } from '@angular/core';
1
+ import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '@spartan-ng/ui-core';
3
3
  import { cva, VariantProps } from 'class-variance-authority';
4
4
  import { ClassValue } from 'clsx';
@@ -16,14 +16,6 @@ export type AlertTitleVariants = VariantProps<typeof alertTitleVariants>;
16
16
  },
17
17
  })
18
18
  export class HlmAlertTitleDirective {
19
- private readonly _userCls = signal<ClassValue>('');
20
- @Input()
21
- set class(userCls: ClassValue) {
22
- this._userCls.set(userCls);
23
- }
24
-
25
- protected _computedClass = computed(() => this._generateClass());
26
- private _generateClass() {
27
- return hlm(alertTitleVariants(), this._userCls());
28
- }
19
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
20
+ protected _computedClass = computed(() => hlm(alertTitleVariants(), this._userClass()));
29
21
  }
@@ -1,4 +1,4 @@
1
- import { computed, Directive, Input, signal } from '@angular/core';
1
+ import { computed, Directive, Input, input, signal } from '@angular/core';
2
2
  import { hlm } from '@spartan-ng/ui-core';
3
3
  import { cva, VariantProps } from 'class-variance-authority';
4
4
  import { ClassValue } from 'clsx';
@@ -29,20 +29,12 @@ export type AlertVariants = VariantProps<typeof alertVariants>;
29
29
  },
30
30
  })
31
31
  export class HlmAlertDirective {
32
- private readonly _userCls = signal<ClassValue>('');
33
- @Input()
34
- set class(userCls: ClassValue) {
35
- this._userCls.set(userCls);
36
- }
32
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
33
+ protected _computedClass = computed(() => hlm(alertVariants({ variant: this._variant() }), this._userClass()));
37
34
 
38
35
  private readonly _variant = signal<AlertVariants['variant']>('default');
39
36
  @Input()
40
37
  set variant(variant: AlertVariants['variant']) {
41
38
  this._variant.set(variant);
42
39
  }
43
-
44
- protected _computedClass = computed(() => this._generateClass());
45
- private _generateClass() {
46
- return hlm(alertVariants({ variant: this._variant() }), this._userCls());
47
- }
48
40
  }
@@ -1,5 +1,5 @@
1
1
  import { coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';
2
- import { AfterViewInit, computed, Directive, ElementRef, inject, Input, signal } from '@angular/core';
2
+ import { AfterViewInit, computed, Directive, ElementRef, inject, input, Input, signal } from '@angular/core';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { ClassValue } from 'clsx';
5
5
 
@@ -27,8 +27,8 @@ export class HlmAspectRatioDirective implements AfterViewInit {
27
27
  return `${100 / this._ratio()}%`;
28
28
  });
29
29
 
30
- private readonly _userCls = signal<ClassValue>('');
31
- protected readonly _computedClass = computed(() => hlm(`relative w-full`, this._userCls()));
30
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
31
+ protected readonly _computedClass = computed(() => hlm(`relative w-full`, this._userClass()));
32
32
 
33
33
  @Input()
34
34
  set hlmAspectRatio(value: NumberInput) {
@@ -36,11 +36,6 @@ export class HlmAspectRatioDirective implements AfterViewInit {
36
36
  this._ratio.set(coerced <= 0 ? 1 : coerced);
37
37
  }
38
38
 
39
- @Input()
40
- set class(userCls: ClassValue) {
41
- this._userCls.set(userCls);
42
- }
43
-
44
39
  ngAfterViewInit() {
45
40
  // support delayed addition of image to dom
46
41
  const child = this._el.firstElementChild;
@@ -1,4 +1,4 @@
1
- import { Component } from '@angular/core';
1
+ import { Component, Input } from '@angular/core';
2
2
  import { ComponentFixture, TestBed } from '@angular/core/testing';
3
3
  import { BrnAvatarFallbackDirective, BrnAvatarImageDirective } from '@spartan-ng/ui-avatar-brain';
4
4
  import { HlmAvatarComponent } from './hlm-avatar.component';
@@ -7,13 +7,15 @@ import { HlmAvatarComponent } from './hlm-avatar.component';
7
7
  selector: 'hlm-mock',
8
8
  imports: [BrnAvatarImageDirective, BrnAvatarFallbackDirective, HlmAvatarComponent],
9
9
  template: `
10
- <hlm-avatar id="fallbackOnly">
10
+ <hlm-avatar [class]="class" id="fallbackOnly">
11
11
  <span brnAvatarFallback>fallback</span>
12
12
  </hlm-avatar>
13
13
  `,
14
14
  standalone: true,
15
15
  })
16
- class MockComponent {}
16
+ class MockComponent {
17
+ @Input() class: string = '';
18
+ }
17
19
 
18
20
  describe('HlmAvatarComponent', () => {
19
21
  let component: HlmAvatarComponent;
@@ -34,9 +36,11 @@ describe('HlmAvatarComponent', () => {
34
36
  });
35
37
 
36
38
  it('should add any user defined classes', () => {
37
- component.class = 'test-class';
38
- fixture.detectChanges();
39
- expect(fixture.nativeElement.className).toContain('test-class');
39
+ const mockFixture = TestBed.createComponent(MockComponent);
40
+ mockFixture.componentRef.setInput('class', 'test-class');
41
+ mockFixture.detectChanges();
42
+ const avatar = mockFixture.nativeElement.querySelector('hlm-avatar');
43
+ expect(avatar.className).toContain('test-class');
40
44
  });
41
45
 
42
46
  it('should change the size when the variant is changed', () => {
@@ -1,4 +1,4 @@
1
- import { ChangeDetectionStrategy, Component, computed, Input, signal, ViewEncapsulation } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, computed, input, Input, signal, ViewEncapsulation } from '@angular/core';
2
2
  import { BrnAvatarComponent } from '@spartan-ng/ui-avatar-brain';
3
3
  import { hlm } from '@spartan-ng/ui-core';
4
4
  import { cva, VariantProps } from 'class-variance-authority';
@@ -36,20 +36,14 @@ type AvatarVariants = VariantProps<typeof avatarVariants>;
36
36
  `,
37
37
  })
38
38
  export class HlmAvatarComponent extends BrnAvatarComponent {
39
- private readonly _userCls = signal<ClassValue>('');
40
-
41
- @Input()
42
- set class(userCls: ClassValue) {
43
- this._userCls.set(userCls);
44
- }
39
+ private readonly _userClass = input<ClassValue>('', { alias: 'class' });
40
+ protected readonly _computedClass = computed(() =>
41
+ hlm(avatarVariants({ variant: this._variant() }), this._userClass()),
42
+ );
45
43
 
46
44
  private readonly _variant = signal<AvatarVariants['variant']>('medium');
47
45
  @Input()
48
46
  set variant(variant: AvatarVariants['variant']) {
49
47
  this._variant.set(variant);
50
48
  }
51
-
52
- protected readonly _computedClass = computed(() =>
53
- hlm(avatarVariants({ variant: this._variant() }), this._userCls()),
54
- );
55
49
  }