@spartan-ng/cli 0.0.1-alpha.519 → 0.0.1-alpha.520

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 (216) hide show
  1. package/package.json +1 -1
  2. package/src/generators/base/lib/deleteFiles.d.ts +1 -1
  3. package/src/generators/base/lib/initialize-angular-library.js.map +1 -1
  4. package/src/generators/base/schema.d.ts +1 -1
  5. package/src/generators/healthcheck/compat.d.ts +1 -1
  6. package/src/generators/healthcheck/generator.d.ts +2 -2
  7. package/src/generators/healthcheck/generator.js.map +1 -1
  8. package/src/generators/healthcheck/healthchecks/brain-imports.d.ts +1 -1
  9. package/src/generators/healthcheck/healthchecks/brain-imports.js.map +1 -1
  10. package/src/generators/healthcheck/healthchecks/brn-accordion-trigger.d.ts +1 -1
  11. package/src/generators/healthcheck/healthchecks/brn-accordion-trigger.js.map +1 -1
  12. package/src/generators/healthcheck/healthchecks/brn-checkbox-changed-event-rename.d.ts +1 -1
  13. package/src/generators/healthcheck/healthchecks/brn-checkbox-changed-event-rename.js.map +1 -1
  14. package/src/generators/healthcheck/healthchecks/brn-radio.d.ts +1 -1
  15. package/src/generators/healthcheck/healthchecks/brn-radio.js.map +1 -1
  16. package/src/generators/healthcheck/healthchecks/brn-separator.d.ts +1 -1
  17. package/src/generators/healthcheck/healthchecks/brn-separator.js.map +1 -1
  18. package/src/generators/healthcheck/healthchecks/brn-switch-changed-event-rename.d.ts +1 -1
  19. package/src/generators/healthcheck/healthchecks/brn-switch-changed-event-rename.js.map +1 -1
  20. package/src/generators/healthcheck/healthchecks/brn-toggle-group.d.ts +1 -1
  21. package/src/generators/healthcheck/healthchecks/brn-toggle-group.js.map +1 -1
  22. package/src/generators/healthcheck/healthchecks/core-imports.d.ts +1 -1
  23. package/src/generators/healthcheck/healthchecks/core-imports.js.map +1 -1
  24. package/src/generators/healthcheck/healthchecks/helm-imports.d.ts +1 -1
  25. package/src/generators/healthcheck/healthchecks/helm-imports.js.map +1 -1
  26. package/src/generators/healthcheck/healthchecks/hlm-date-picker.d.ts +1 -1
  27. package/src/generators/healthcheck/healthchecks/hlm-date-picker.js.map +1 -1
  28. package/src/generators/healthcheck/healthchecks/hlm-icon.d.ts +1 -1
  29. package/src/generators/healthcheck/healthchecks/hlm-icon.js.map +1 -1
  30. package/src/generators/healthcheck/healthchecks/hlm-progress.d.ts +1 -1
  31. package/src/generators/healthcheck/healthchecks/hlm-progress.js.map +1 -1
  32. package/src/generators/healthcheck/healthchecks/hlm-scroll-area.d.ts +1 -1
  33. package/src/generators/healthcheck/healthchecks/hlm-scroll-area.js.map +1 -1
  34. package/src/generators/healthcheck/healthchecks/hlm-select.d.ts +1 -1
  35. package/src/generators/healthcheck/healthchecks/hlm-select.js.map +1 -1
  36. package/src/generators/healthcheck/healthchecks/hlm.d.ts +1 -1
  37. package/src/generators/healthcheck/healthchecks/hlm.js.map +1 -1
  38. package/src/generators/healthcheck/healthchecks/module-imports.d.ts +1 -1
  39. package/src/generators/healthcheck/healthchecks/module-imports.js.map +1 -1
  40. package/src/generators/healthcheck/healthchecks/naming-conventions.d.ts +1 -1
  41. package/src/generators/healthcheck/healthchecks/naming-conventions.js.map +1 -1
  42. package/src/generators/healthcheck/healthchecks/version.d.ts +1 -1
  43. package/src/generators/healthcheck/healthchecks/version.js.map +1 -1
  44. package/src/generators/healthcheck/healthchecks.d.ts +1 -1
  45. package/src/generators/healthcheck/utils/reporter.d.ts +1 -1
  46. package/src/generators/healthcheck/utils/reporter.js.map +1 -1
  47. package/src/generators/healthcheck/utils/runner.d.ts +2 -2
  48. package/src/generators/migrate-brain-accordion-trigger/generator.d.ts +2 -2
  49. package/src/generators/migrate-brain-accordion-trigger/generator.js.map +1 -1
  50. package/src/generators/migrate-brain-accordion-trigger/utils/html-utils.d.ts +1 -1
  51. package/src/generators/migrate-brain-accordion-trigger/utils/html-utils.js.map +1 -1
  52. package/src/generators/migrate-brain-accordion-trigger/utils/shared-utils.d.ts +2 -2
  53. package/src/generators/migrate-brain-accordion-trigger/utils/shared-utils.js.map +1 -1
  54. package/src/generators/migrate-brain-imports/generator.d.ts +2 -2
  55. package/src/generators/migrate-brain-imports/generator.js.map +1 -1
  56. package/src/generators/migrate-brn-checkbox-changed-event/generator.d.ts +2 -2
  57. package/src/generators/migrate-brn-checkbox-changed-event/generator.js.map +1 -1
  58. package/src/generators/migrate-brn-switch-changed-event/generator.d.ts +2 -2
  59. package/src/generators/migrate-brn-switch-changed-event/generator.js.map +1 -1
  60. package/src/generators/migrate-core/generator.d.ts +2 -2
  61. package/src/generators/migrate-core/generator.js.map +1 -1
  62. package/src/generators/migrate-date-picker/generator.d.ts +2 -2
  63. package/src/generators/migrate-date-picker/generator.js.map +1 -1
  64. package/src/generators/migrate-helm-imports/generator.d.ts +2 -2
  65. package/src/generators/migrate-helm-imports/generator.js.map +1 -1
  66. package/src/generators/migrate-helm-libraries/compat.d.ts +1 -1
  67. package/src/generators/migrate-helm-libraries/generator.d.ts +2 -2
  68. package/src/generators/migrate-helm-libraries/generator.js.map +1 -1
  69. package/src/generators/migrate-helm-libraries/schema.d.ts +1 -1
  70. package/src/generators/migrate-hlm/generator.d.ts +2 -2
  71. package/src/generators/migrate-hlm/generator.js.map +1 -1
  72. package/src/generators/migrate-icon/generator.d.ts +2 -2
  73. package/src/generators/migrate-icon/generator.js.map +1 -1
  74. package/src/generators/migrate-module-imports/generator.d.ts +2 -2
  75. package/src/generators/migrate-module-imports/generator.js.map +1 -1
  76. package/src/generators/migrate-naming-convention/generator.d.ts +2 -2
  77. package/src/generators/migrate-naming-convention/generator.js.map +1 -1
  78. package/src/generators/migrate-progress/generator.d.ts +2 -2
  79. package/src/generators/migrate-progress/generator.js.map +1 -1
  80. package/src/generators/migrate-radio/generator.d.ts +2 -2
  81. package/src/generators/migrate-radio/generator.js.map +1 -1
  82. package/src/generators/migrate-scroll-area/generator.d.ts +2 -2
  83. package/src/generators/migrate-scroll-area/generator.js.map +1 -1
  84. package/src/generators/migrate-select/generator.d.ts +2 -2
  85. package/src/generators/migrate-select/generator.js.map +1 -1
  86. package/src/generators/migrate-separator/generator.d.ts +2 -2
  87. package/src/generators/migrate-separator/generator.js.map +1 -1
  88. package/src/generators/migrate-toggle-group/generator.d.ts +2 -2
  89. package/src/generators/migrate-toggle-group/generator.js.map +1 -1
  90. package/src/generators/theme/generator.js.map +1 -1
  91. package/src/generators/theme/libs/add-theme-to-application-styles.d.ts +1 -1
  92. package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
  93. package/src/generators/ui/generator.d.ts +4 -4
  94. package/src/generators/ui/generator.js +6 -1
  95. package/src/generators/ui/generator.js.map +1 -1
  96. package/src/generators/ui/libs/input-group/generator.d.ts +3 -0
  97. package/src/generators/ui/libs/input-group/generator.js +14 -0
  98. package/src/generators/ui/libs/input-group/generator.js.map +1 -0
  99. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-trigger.ts.template +1 -1
  100. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete.token.ts.template +1 -1
  101. package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete.ts.template +4 -4
  102. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.ts.template +1 -1
  103. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.token.ts.template +1 -1
  104. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +2 -2
  105. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +2 -2
  106. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.ts.template +2 -2
  107. package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.ts.template +1 -1
  108. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-slide-display.ts.template +2 -2
  109. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.ts.template +2 -2
  110. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-icon.ts.template +1 -1
  111. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.ts.template +1 -1
  112. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.token.ts.template +1 -1
  113. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template +4 -4
  114. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.token.ts.template +1 -1
  115. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +4 -4
  116. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.token.ts.template +1 -1
  117. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +4 -4
  118. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.ts.template +1 -1
  119. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.ts.template +3 -1
  120. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.ts.template +1 -1
  121. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.ts.template +1 -1
  122. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.ts.template +1 -1
  123. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +1 -1
  124. package/src/generators/ui/libs/ui-input-group-helm/files/index.ts.template +13 -0
  125. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-input-group.ts.template +50 -0
  126. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-prefix-addon.ts.template +36 -0
  127. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-prefix.ts.template +27 -0
  128. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-suffix-addon.ts.template +36 -0
  129. package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-suffix.ts.template +27 -0
  130. package/src/generators/ui/libs/ui-input-group-helm/generator.d.ts +3 -0
  131. package/src/generators/ui/libs/ui-input-group-helm/generator.js +14 -0
  132. package/src/generators/ui/libs/ui-input-group-helm/generator.js.map +1 -0
  133. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.ts.template +1 -1
  134. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +1 -1
  135. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-group.ts.template +1 -1
  136. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.ts.template +1 -1
  137. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +2 -2
  138. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +1 -1
  139. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.ts.template +1 -1
  140. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.ts.template +1 -1
  141. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.ts.template +1 -1
  142. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.ts.template +1 -1
  143. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.ts.template +2 -2
  144. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.ts.template +3 -3
  145. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.ts.template +1 -1
  146. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.ts.template +1 -1
  147. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination-query-params.ts.template +1 -1
  148. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination.ts.template +1 -1
  149. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.ts.template +1 -1
  150. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.ts.template +4 -4
  151. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.ts.template +4 -4
  152. package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.ts.template +2 -2
  153. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.ts.template +1 -1
  154. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.ts.template +1 -1
  155. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.ts.template +1 -1
  156. package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.ts.template +1 -1
  157. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.ts.template +1 -1
  158. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.ts.template +1 -1
  159. package/src/generators/ui/libs/ui-sidebar-helm/files/index.ts.template +75 -0
  160. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-content.ts.template +22 -0
  161. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-footer.ts.template +17 -0
  162. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-action.ts.template +25 -0
  163. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-content.ts.template +17 -0
  164. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-label.ts.template +23 -0
  165. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group.ts.template +19 -0
  166. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-header.ts.template +17 -0
  167. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-input.ts.template +21 -0
  168. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-inset.ts.template +29 -0
  169. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-action.ts.template +31 -0
  170. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-badge.ts.template +27 -0
  171. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-button.ts.template +72 -0
  172. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-item.ts.template +17 -0
  173. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-skeleton.ts.template +33 -0
  174. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-sub-button.ts.template +30 -0
  175. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-sub-item.ts.template +17 -0
  176. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-sub.ts.template +23 -0
  177. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu.ts.template +17 -0
  178. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-rail.ts.template +39 -0
  179. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-separator.ts.template +20 -0
  180. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-trigger.ts.template +42 -0
  181. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-wrapper.ts.template +25 -0
  182. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar.service.ts.template +106 -0
  183. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar.token.ts.template +31 -0
  184. package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar.ts.template +115 -0
  185. package/src/generators/ui/libs/ui-sidebar-helm/generator.d.ts +3 -0
  186. package/src/generators/ui/libs/ui-sidebar-helm/generator.js +14 -0
  187. package/src/generators/ui/libs/ui-sidebar-helm/generator.js.map +1 -0
  188. package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.ts.template +1 -1
  189. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +3 -3
  190. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.ts.template +1 -1
  191. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.ts.template +1 -1
  192. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.token.ts.template +1 -1
  193. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.ts.template +2 -2
  194. package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.ts.template +1 -1
  195. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.ts.template +1 -1
  196. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.ts.template +1 -1
  197. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.ts.template +1 -1
  198. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.ts.template +1 -1
  199. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.ts.template +1 -1
  200. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.ts.template +1 -1
  201. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.ts.template +1 -1
  202. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.ts.template +1 -1
  203. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.ts.template +1 -1
  204. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.ts.template +1 -1
  205. package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.ts.template +1 -1
  206. package/src/generators/ui/primitive-deps.js +2 -0
  207. package/src/generators/ui/primitive-deps.js.map +1 -1
  208. package/src/generators/ui/primitives.d.ts +1 -1
  209. package/src/generators/ui/schema.d.ts +1 -1
  210. package/src/generators/ui/supported-ui-libraries.json +47 -27
  211. package/src/utils/config.js.map +1 -1
  212. package/src/utils/hlm-class.d.ts +1 -1
  213. package/src/utils/tsconfig.d.ts +1 -1
  214. package/src/utils/tsconfig.js.map +1 -1
  215. package/src/utils/visit-files.d.ts +1 -1
  216. package/src/utils/visit-files.js.map +1 -1
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
- import { ClassValue } from 'clsx';
3
+ import type { ClassValue } from 'clsx';
4
4
  import { HlmCarousel } from './hlm-carousel';
5
5
 
6
6
  @Component({
@@ -20,7 +20,7 @@ export class HlmCarouselSlideDisplay {
20
20
  protected readonly _currentSlide = computed(() => this._carousel.currentSlide() + 1);
21
21
 
22
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
23
- protected _computedClass = computed(() => hlm('', this.userClass()));
23
+ protected readonly _computedClass = computed(() => hlm('', this.userClass()));
24
24
 
25
25
  public readonly slideClass = input<ClassValue>('text-muted-foreground text-sm');
26
26
 
@@ -1,4 +1,4 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import {
3
3
  booleanAttribute,
4
4
  ChangeDetectionStrategy,
@@ -10,7 +10,7 @@ import {
10
10
  output,
11
11
  signal,
12
12
  } from '@angular/core';
13
- import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
13
+ import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
14
14
  import { NgIcon, provideIcons } from '@ng-icons/core';
15
15
  import { lucideCheck } from '@ng-icons/lucide';
16
16
  import { BrnCheckbox } from '@spartan-ng/brain/checkbox';
@@ -1,7 +1,7 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { provideHlmIconConfig } from '<%- importAlias %>/icon';
3
3
  import { hlm } from '<%- importAlias %>/utils';
4
- import { ClassValue } from 'clsx';
4
+ import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Directive({
7
7
  selector: '[hlmCommandIcon]',
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
- import { ClassValue } from 'clsx';
3
+ import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Component({
6
6
  selector: 'hlm-command-shortcut',
@@ -1,4 +1,4 @@
1
- import { inject, InjectionToken, ValueProvider } from '@angular/core';
1
+ import { inject, InjectionToken, type ValueProvider } from '@angular/core';
2
2
 
3
3
  export interface HlmDatePickerMultiConfig<T> {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';
2
2
  import {
3
3
  booleanAttribute,
4
4
  ChangeDetectionStrategy,
@@ -11,11 +11,11 @@ import {
11
11
  output,
12
12
  signal,
13
13
  } from '@angular/core';
14
- import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
14
+ import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
15
15
  import { NgIcon, provideIcons } from '@ng-icons/core';
16
16
  import { lucideChevronDown } from '@ng-icons/lucide';
17
- import { BrnDialogState } from '@spartan-ng/brain/dialog';
18
- import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
17
+ import type { BrnDialogState } from '@spartan-ng/brain/dialog';
18
+ import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
19
19
  import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
20
20
  import { HlmCalendarMulti } from '<%- importAlias %>/calendar';
21
21
  import { HlmIcon } from '<%- importAlias %>/icon';
@@ -1,4 +1,4 @@
1
- import { inject, InjectionToken, ValueProvider } from '@angular/core';
1
+ import { inject, InjectionToken, type ValueProvider } from '@angular/core';
2
2
 
3
3
  export interface HlmDatePickerConfig<T> {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import {
3
3
  booleanAttribute,
4
4
  ChangeDetectionStrategy,
@@ -10,11 +10,11 @@ import {
10
10
  output,
11
11
  signal,
12
12
  } from '@angular/core';
13
- import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
13
+ import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
14
14
  import { NgIcon, provideIcons } from '@ng-icons/core';
15
15
  import { lucideChevronDown } from '@ng-icons/lucide';
16
- import { BrnDialogState } from '@spartan-ng/brain/dialog';
17
- import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
16
+ import type { BrnDialogState } from '@spartan-ng/brain/dialog';
17
+ import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
18
18
  import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
19
19
  import { HlmCalendar } from '<%- importAlias %>/calendar';
20
20
  import { HlmIcon } from '<%- importAlias %>/icon';
@@ -1,4 +1,4 @@
1
- import { inject, InjectionToken, ValueProvider } from '@angular/core';
1
+ import { inject, InjectionToken, type ValueProvider } from '@angular/core';
2
2
 
3
3
  export interface HlmDateRangePickerConfig<T> {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import {
3
3
  booleanAttribute,
4
4
  ChangeDetectionStrategy,
@@ -11,11 +11,11 @@ import {
11
11
  signal,
12
12
  untracked,
13
13
  } from '@angular/core';
14
- import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
14
+ import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
15
15
  import { NgIcon, provideIcons } from '@ng-icons/core';
16
16
  import { lucideChevronDown } from '@ng-icons/lucide';
17
- import { BrnDialogState } from '@spartan-ng/brain/dialog';
18
- import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
17
+ import type { BrnDialogState } from '@spartan-ng/brain/dialog';
18
+ import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
19
19
  import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
20
20
  import { HlmCalendarRange } from '<%- importAlias %>/calendar';
21
21
  import { HlmIcon } from '<%- importAlias %>/icon';
@@ -14,7 +14,7 @@ import type { ClassValue } from 'clsx';
14
14
  })
15
15
  export class HlmDialogFooter {
16
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
- protected _computedClass = computed(() =>
17
+ protected readonly _computedClass = computed(() =>
18
18
  hlm('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', this.userClass()),
19
19
  );
20
20
  }
@@ -14,5 +14,7 @@ import type { ClassValue } from 'clsx';
14
14
  })
15
15
  export class HlmDialogHeader {
16
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
- protected _computedClass = computed(() => hlm('flex flex-col gap-2 text-center sm:text-left', this.userClass()));
17
+ protected readonly _computedClass = computed(() =>
18
+ hlm('flex flex-col gap-2 text-center sm:text-left', this.userClass()),
19
+ );
18
20
  }
@@ -1,6 +1,6 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
- import { ClassValue } from 'clsx';
3
+ import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
6
6
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -9,7 +9,7 @@ import {
9
9
  } from '@angular/core';
10
10
  import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
11
11
  import { hlm } from '<%- importAlias %>/utils';
12
- import { ClassValue } from 'clsx';
12
+ import type { ClassValue } from 'clsx';
13
13
  import { HlmError } from './hlm-error';
14
14
 
15
15
  @Component({
@@ -1,6 +1,6 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
- import { ClassValue } from 'clsx';
3
+ import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
6
6
  // eslint-disable-next-line @angular-eslint/directive-selector
@@ -1,4 +1,4 @@
1
- import { InjectionToken, ValueProvider, inject } from '@angular/core';
1
+ import { InjectionToken, type ValueProvider, inject } from '@angular/core';
2
2
  import type { IconSize } from './hlm-icon';
3
3
 
4
4
  export interface HlmIconConfig {
@@ -0,0 +1,13 @@
1
+ import { HlmInputGroup } from './lib/hlm-input-group';
2
+ import { HlmPrefix } from './lib/hlm-prefix';
3
+ import { HlmPrefixAddon } from './lib/hlm-prefix-addon';
4
+ import { HlmSuffix } from './lib/hlm-suffix';
5
+ import { HlmSuffixAddon } from './lib/hlm-suffix-addon';
6
+
7
+ export * from './lib/hlm-input-group';
8
+ export * from './lib/hlm-prefix';
9
+ export * from './lib/hlm-prefix-addon';
10
+ export * from './lib/hlm-suffix';
11
+ export * from './lib/hlm-suffix-addon';
12
+
13
+ export const HlmInputGroupImports = [HlmInputGroup, HlmSuffixAddon, HlmPrefixAddon, HlmPrefix, HlmSuffix] as const;
@@ -0,0 +1,50 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
+ import { provideHlmIconConfig } from '<%- importAlias %>/icon';
3
+ import { hlm } from '<%- importAlias %>/utils';
4
+ import type { ClassValue } from 'clsx';
5
+
6
+ @Component({
7
+ selector: 'hlm-input-group',
8
+ changeDetection: ChangeDetectionStrategy.OnPush,
9
+ providers: [
10
+ provideHlmIconConfig({
11
+ size: 'sm',
12
+ }),
13
+ ],
14
+ template: `
15
+ <ng-content select="hlm-prefix-addon, [hlmPrefixAddon]" />
16
+ <div [class]="_inputWrapperClasses()">
17
+ <ng-content select="hlm-prefix, [hlmPrefix]" />
18
+ <ng-content select="input[hlmInput], textarea[hlmInput]"></ng-content>
19
+ <ng-content select="hlm-suffix, [hlmSuffix]" />
20
+ </div>
21
+ <ng-content select="hlm-suffix-addon, [hlmSuffixAddon]" />
22
+ `,
23
+ host: {
24
+ '[class]': '_wrapperClasses()',
25
+ },
26
+ })
27
+ export class HlmInputGroup {
28
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
29
+ public readonly inputWrapperClass = input<ClassValue>('');
30
+
31
+ protected readonly _wrapperClasses = computed(() =>
32
+ hlm(
33
+ 'shadow-xs group flex w-full items-stretch rounded-md has-[*:disabled]:pointer-events-none has-[*:disabled]:opacity-50 ' +
34
+ // Reset inner input/textarea
35
+ '[&_[hlmInput]]:h-auto [&_[hlmInput]]:flex-1 [&_[hlmInput]]:border-0 [&_[hlmInput]]:bg-transparent [&_[hlmInput]]:px-0 [&_[hlmInput]]:py-0 [&_[hlmInput]]:shadow-none [&_[hlmInput]]:outline-none [&_[hlmInput]]:ring-0 [&_[hlmInput]]:ring-offset-0 [&_textarea[hlmInput]]:min-h-6' +
36
+ this.userClass(),
37
+ ),
38
+ );
39
+
40
+ protected readonly _inputWrapperClasses = computed(() =>
41
+ hlm(
42
+ 'border-input bg-background placeholder:text-muted-foreground focus-within:border-ring focus-within:ring-ring/50 z-20 flex h-auto min-h-9 w-full flex-row gap-1 rounded-md border px-3 text-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-none focus-within:ring-[3px]' +
43
+ // Invalid States
44
+ ' has-[>.ng-invalid.ng-touched]:text-destructive/20 dark:[&.ng-invalid.ng-touched]:text-destructive/40 has-[>.ng-invalid.ng-touched]:border-destructive has-[>.ng-invalid.ng-touched]:focus-within:ring-destructive' +
45
+ // Group addon specific
46
+ ' group-has-[hlm-prefix-addon,[hlmPrefixAddon]]:rounded-l-none group-has-[hlm-suffix-addon,[hlmSuffixAddon]]:rounded-r-none group-has-[hlm-prefix-addon,[hlmPrefixAddon]]:border-l-0 group-has-[hlm-suffix-addon,[hlmSuffixAddon]]:border-r-0',
47
+ this.inputWrapperClass(),
48
+ ),
49
+ );
50
+ }
@@ -0,0 +1,36 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
+ import { BrnAffixes } from '@spartan-ng/brain/input-group';
3
+ import { hlm } from '<%- importAlias %>/utils';
4
+ import type { ClassValue } from 'clsx';
5
+
6
+ @Component({
7
+ selector: 'hlm-prefix-addon,[hlmPrefixAddon]',
8
+ hostDirectives: [
9
+ {
10
+ directive: BrnAffixes,
11
+ inputs: ['tabindex'],
12
+ },
13
+ ],
14
+ template: `
15
+ <ng-content />
16
+ `,
17
+ changeDetection: ChangeDetectionStrategy.OnPush,
18
+ host: {
19
+ '[class]': '_computedClass()',
20
+ },
21
+ })
22
+ export class HlmPrefixAddon {
23
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
24
+ protected readonly _computedClass = computed(() =>
25
+ hlm(
26
+ 'bg-muted border-input focus-visible:border-ring focus-visible:ring-ring/50 block' +
27
+ ' text-muted-foreground inline-flex h-auto min-h-9' +
28
+ ' items-center justify-center whitespace-nowrap border' +
29
+ ' px-3 text-sm font-medium transition-colors' +
30
+ ' focus-visible:outline-none focus-visible:ring-[3px]' +
31
+ ' disabled:pointer-events-none disabled:opacity-50' +
32
+ ' rounded-l-md border-r-0',
33
+ this.userClass(),
34
+ ),
35
+ );
36
+ }
@@ -0,0 +1,27 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
+ import { BrnAffixes } from '@spartan-ng/brain/input-group';
3
+ import { hlm } from '<%- importAlias %>/utils';
4
+ import type { ClassValue } from 'clsx';
5
+
6
+ @Component({
7
+ selector: 'hlm-prefix,[hlmPrefix]',
8
+ hostDirectives: [
9
+ {
10
+ directive: BrnAffixes,
11
+ inputs: ['tabindex'],
12
+ },
13
+ ],
14
+ template: `
15
+ <ng-content />
16
+ `,
17
+ changeDetection: ChangeDetectionStrategy.OnPush,
18
+ host: {
19
+ '[class]': '_computedClass()',
20
+ },
21
+ })
22
+ export class HlmPrefix {
23
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
24
+ protected readonly _computedClass = computed(() =>
25
+ hlm('text-muted-foreground inset-y-0 z-10 flex items-center ' + this.userClass()),
26
+ );
27
+ }
@@ -0,0 +1,36 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
+ import { BrnAffixes } from '@spartan-ng/brain/input-group';
3
+ import { hlm } from '<%- importAlias %>/utils';
4
+ import type { ClassValue } from 'clsx';
5
+
6
+ @Component({
7
+ selector: 'hlm-suffix-addon,[hlmSuffixAddon]',
8
+ hostDirectives: [
9
+ {
10
+ directive: BrnAffixes,
11
+ inputs: ['tabindex'],
12
+ },
13
+ ],
14
+ template: `
15
+ <ng-content />
16
+ `,
17
+ changeDetection: ChangeDetectionStrategy.OnPush,
18
+ host: {
19
+ '[class]': '_computedClass()',
20
+ },
21
+ })
22
+ export class HlmSuffixAddon {
23
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
24
+ protected readonly _computedClass = computed(() =>
25
+ hlm(
26
+ 'bg-muted border-input focus-visible:border-ring focus-visible:ring-ring/50 block' +
27
+ ' text-muted-foreground inline-flex h-auto min-h-9' +
28
+ ' items-center justify-center whitespace-nowrap border' +
29
+ ' px-3 text-sm font-medium transition-colors' +
30
+ ' focus-visible:outline-none focus-visible:ring-[3px]' +
31
+ ' disabled:pointer-events-none disabled:opacity-50' +
32
+ ' border-p-0 rounded-r-md',
33
+ this.userClass(),
34
+ ),
35
+ );
36
+ }
@@ -0,0 +1,27 @@
1
+ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
+ import { BrnAffixes } from '@spartan-ng/brain/input-group';
3
+ import { hlm } from '<%- importAlias %>/utils';
4
+ import type { ClassValue } from 'clsx';
5
+
6
+ @Component({
7
+ selector: 'hlm-suffix,[hlmSuffix]',
8
+ hostDirectives: [
9
+ {
10
+ directive: BrnAffixes,
11
+ inputs: ['tabindex'],
12
+ },
13
+ ],
14
+ template: `
15
+ <ng-content />
16
+ `,
17
+ changeDetection: ChangeDetectionStrategy.OnPush,
18
+ host: {
19
+ '[class]': '_computedClass()',
20
+ },
21
+ })
22
+ export class HlmSuffix {
23
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
24
+ protected readonly _computedClass = computed(() =>
25
+ hlm('text-muted-foreground inset-y-0 z-10 flex items-center ' + this.userClass()),
26
+ );
27
+ }
@@ -0,0 +1,3 @@
1
+ import { Tree } from '@nx/devkit';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
+ export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generator = generator;
4
+ const tslib_1 = require("tslib");
5
+ const generator_1 = tslib_1.__importDefault(require("../../../base/generator"));
6
+ async function generator(tree, options) {
7
+ return await (0, generator_1.default)(tree, {
8
+ ...options,
9
+ primitiveName: 'input-group',
10
+ internalName: 'ui-input-group-helm',
11
+ publicName: 'ui-input-group-helm',
12
+ });
13
+ }
14
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-input-group-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AAVD,gFAAuD;AAGhD,KAAK,UAAU,SAAS,CAAC,IAAU,EAAE,OAA+B;IAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,EAAE;QACnC,GAAG,OAAO;QACV,aAAa,EAAE,aAAa;QAC5B,YAAY,EAAE,qBAAqB;QACnC,UAAU,EAAE,qBAAqB;KACjC,CAAC,CAAC;AACJ,CAAC"}
@@ -17,5 +17,5 @@ export type InputErrorVariants = VariantProps<typeof inputErrorVariants>;
17
17
  })
18
18
  export class HlmInputError {
19
19
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
20
- protected _computedClass = computed(() => hlm(inputErrorVariants(), this.userClass()));
20
+ protected readonly _computedClass = computed(() => hlm(inputErrorVariants(), this.userClass()));
21
21
  }
@@ -14,7 +14,7 @@ import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
14
14
  import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
15
15
  import { ErrorStateMatcher, ErrorStateTracker } from '@spartan-ng/brain/forms';
16
16
  import { hlm } from '<%- importAlias %>/utils';
17
- import { cva, VariantProps } from 'class-variance-authority';
17
+ import { cva, type VariantProps } from 'class-variance-authority';
18
18
  import type { ClassValue } from 'clsx';
19
19
 
20
20
  export const inputVariants = cva(
@@ -1,6 +1,6 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
- import { type ClassValue } from 'clsx';
3
+ import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
6
6
  selector: '[hlmInputOtpGroup]',
@@ -3,7 +3,7 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
3
3
  import { lucideMinus } from '@ng-icons/lucide';
4
4
  import { HlmIcon } from '<%- importAlias %>/icon';
5
5
  import { hlm } from '<%- importAlias %>/utils';
6
- import { type ClassValue } from 'clsx';
6
+ import type { ClassValue } from 'clsx';
7
7
 
8
8
  @Component({
9
9
  selector: 'hlm-input-otp-separator',
@@ -1,8 +1,8 @@
1
- import { NumberInput } from '@angular/cdk/coercion';
1
+ import type { NumberInput } from '@angular/cdk/coercion';
2
2
  import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';
3
3
  import { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';
4
4
  import { hlm } from '<%- importAlias %>/utils';
5
- import { type ClassValue } from 'clsx';
5
+ import type { ClassValue } from 'clsx';
6
6
  import { HlmInputOtpFakeCaret } from './hlm-input-otp-fake-caret';
7
7
 
8
8
  @Component({
@@ -1,6 +1,6 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
- import { type ClassValue } from 'clsx';
3
+ import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Directive({
6
6
  selector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',
@@ -14,7 +14,7 @@ import type { ClassValue } from 'clsx';
14
14
  })
15
15
  export class HlmMenuBar {
16
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
- protected _computedClass = computed(() =>
17
+ protected readonly _computedClass = computed(() =>
18
18
  hlm('bg-background shadow-xs flex h-9 items-center gap-1 rounded-md border p-1', this.userClass()),
19
19
  );
20
20
  }
@@ -20,7 +20,7 @@ import type { ClassValue } from 'clsx';
20
20
  })
21
21
  export class HlmMenuItemCheck {
22
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
23
- protected _computedClass = computed(() =>
23
+ protected readonly _computedClass = computed(() =>
24
24
  hlm(
25
25
  'absolute left-2 flex h-3.5 w-3.5 items-center justify-center opacity-0 group-[.checked]:opacity-100',
26
26
  this.userClass(),
@@ -12,5 +12,5 @@ import type { ClassValue } from 'clsx';
12
12
  })
13
13
  export class HlmMenuItemIcon {
14
14
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
15
- protected _computedClass = computed(() => hlm('mr-2', this.userClass()));
15
+ protected readonly _computedClass = computed(() => hlm('mr-2', this.userClass()));
16
16
  }
@@ -3,7 +3,7 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
3
3
  import { lucideChevronRight } from '@ng-icons/lucide';
4
4
  import { HlmIcon } from '<%- importAlias %>/icon';
5
5
  import { hlm } from '<%- importAlias %>/utils';
6
- import { ClassValue } from 'clsx';
6
+ import type { ClassValue } from 'clsx';
7
7
 
8
8
  @Component({
9
9
  selector: 'hlm-menu-item-sub-indicator',
@@ -1,8 +1,8 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import { booleanAttribute, computed, Directive, input } from '@angular/core';
3
3
  import { BrnMenuItem } from '@spartan-ng/brain/menu';
4
4
  import { hlm } from '<%- importAlias %>/utils';
5
- import { ClassValue } from 'clsx';
5
+ import type { ClassValue } from 'clsx';
6
6
 
7
7
  @Directive({
8
8
  selector: '[hlmMenuItem]',
@@ -1,7 +1,7 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
3
3
  import { hlm } from '<%- importAlias %>/utils';
4
- import { ClassValue } from 'clsx';
4
+ import type { ClassValue } from 'clsx';
5
5
 
6
6
  @Component({
7
7
  selector: 'hlm-menu-label',
@@ -20,7 +20,7 @@ export class HlmMenuLabel {
20
20
  });
21
21
 
22
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
23
- protected _computedClass = computed(() =>
23
+ protected readonly _computedClass = computed(() =>
24
24
  hlm('block px-2 py-1.5 text-sm font-medium data-[inset]:pl-8', this.userClass()),
25
25
  );
26
26
  }
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
- import { ClassValue } from 'clsx';
3
+ import type { ClassValue } from 'clsx';
4
4
 
5
5
  @Component({
6
6
  selector: 'hlm-menu-separator',
@@ -14,7 +14,7 @@ import type { ClassValue } from 'clsx';
14
14
  })
15
15
  export class HlmMenuShortcut {
16
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
- protected _computedClass = computed(() =>
17
+ protected readonly _computedClass = computed(() =>
18
18
  hlm('text-muted-foreground ml-auto text-xs tracking-widest', this.userClass()),
19
19
  );
20
20
  }
@@ -1,4 +1,4 @@
1
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';
2
2
  import {
3
3
  ChangeDetectionStrategy,
4
4
  Component,
@@ -1,4 +1,4 @@
1
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';
2
2
  import {
3
3
  ChangeDetectionStrategy,
4
4
  Component,
@@ -1,4 +1,4 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import { Directive, booleanAttribute, computed, input } from '@angular/core';
3
3
  import { RouterLink } from '@angular/router';
4
4
  import { type ButtonVariants, buttonVariants } from '<%- importAlias %>/button';
@@ -1,12 +1,12 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
3
- import { RouterLink } from '@angular/router';
3
+ import type { RouterLink } from '@angular/router';
4
4
  import { NgIcon, provideIcons } from '@ng-icons/core';
5
5
  import { lucideChevronRight } from '@ng-icons/lucide';
6
- import { ButtonVariants } from '<%- importAlias %>/button';
6
+ import type { ButtonVariants } from '<%- importAlias %>/button';
7
7
  import { HlmIcon } from '<%- importAlias %>/icon';
8
8
  import { hlm } from '<%- importAlias %>/utils';
9
- import { ClassValue } from 'clsx';
9
+ import type { ClassValue } from 'clsx';
10
10
  import { HlmPaginationLink } from './hlm-pagination-link';
11
11
 
12
12
  @Component({
@@ -1,12 +1,12 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
1
+ import type { BooleanInput } from '@angular/cdk/coercion';
2
2
  import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
3
- import { RouterLink } from '@angular/router';
3
+ import type { RouterLink } from '@angular/router';
4
4
  import { NgIcon, provideIcons } from '@ng-icons/core';
5
5
  import { lucideChevronLeft } from '@ng-icons/lucide';
6
- import { ButtonVariants } from '<%- importAlias %>/button';
6
+ import type { ButtonVariants } from '<%- importAlias %>/button';
7
7
  import { HlmIcon } from '<%- importAlias %>/icon';
8
8
  import { hlm } from '<%- importAlias %>/utils';
9
- import { ClassValue } from 'clsx';
9
+ import type { ClassValue } from 'clsx';
10
10
  import { HlmPaginationLink } from './hlm-pagination-link';
11
11
 
12
12
  @Component({