@spartan-ng/cli 0.0.1-alpha.366 → 0.0.1-alpha.367

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 (235) hide show
  1. package/package.json +5 -4
  2. package/src/generators/base/generator.js +22 -25
  3. package/src/generators/base/generator.js.map +1 -1
  4. package/src/generators/base/lib/build-dependency-array.js +6 -6
  5. package/src/generators/base/lib/build-dependency-array.js.map +1 -1
  6. package/src/generators/base/lib/get-target-library-directory.js +3 -2
  7. package/src/generators/base/lib/get-target-library-directory.js.map +1 -1
  8. package/src/generators/base/lib/initialize-angular-library.js +38 -19
  9. package/src/generators/base/lib/initialize-angular-library.js.map +1 -1
  10. package/src/generators/base/versions.d.ts +22 -22
  11. package/src/generators/base/versions.js +22 -22
  12. package/src/generators/base/versions.js.map +1 -1
  13. package/src/generators/theme/compat.js +2 -1
  14. package/src/generators/theme/compat.js.map +1 -1
  15. package/src/generators/theme/generator.js +45 -48
  16. package/src/generators/theme/generator.js.map +1 -1
  17. package/src/generators/theme/libs/add-theme-to-application-styles.js +12 -7
  18. package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
  19. package/src/generators/ui/add-dependent-primitive.js +12 -26
  20. package/src/generators/ui/add-dependent-primitive.js.map +1 -1
  21. package/src/generators/ui/compat.js +3 -2
  22. package/src/generators/ui/compat.js.map +1 -1
  23. package/src/generators/ui/generator.js +86 -64
  24. package/src/generators/ui/generator.js.map +1 -1
  25. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template +3 -10
  26. package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +1 -1
  27. package/src/generators/ui/libs/ui-accordion-helm/generator.d.ts +1 -1
  28. package/src/generators/ui/libs/ui-accordion-helm/generator.js +7 -4
  29. package/src/generators/ui/libs/ui-accordion-helm/generator.js.map +1 -1
  30. package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.directive.ts.template +3 -8
  31. package/src/generators/ui/libs/ui-alert-dialog-helm/generator.d.ts +1 -1
  32. package/src/generators/ui/libs/ui-alert-dialog-helm/generator.js +7 -4
  33. package/src/generators/ui/libs/ui-alert-dialog-helm/generator.js.map +1 -1
  34. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +1 -1
  35. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-icon.directive.ts.template +4 -10
  36. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +1 -1
  37. package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +4 -8
  38. package/src/generators/ui/libs/ui-alert-helm/generator.d.ts +1 -1
  39. package/src/generators/ui/libs/ui-alert-helm/generator.js +7 -4
  40. package/src/generators/ui/libs/ui-alert-helm/generator.js.map +1 -1
  41. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.spec.ts.template +2 -1
  42. package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.ts.template +9 -11
  43. package/src/generators/ui/libs/ui-aspect-ratio-helm/generator.d.ts +1 -1
  44. package/src/generators/ui/libs/ui-aspect-ratio-helm/generator.js +7 -4
  45. package/src/generators/ui/libs/ui-aspect-ratio-helm/generator.js.map +1 -1
  46. package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.spec.ts.template +2 -2
  47. package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.ts.template +2 -2
  48. package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.spec.ts.template +3 -3
  49. package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +6 -10
  50. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.spec.ts.template +2 -2
  51. package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +1 -1
  52. package/src/generators/ui/libs/ui-avatar-helm/generator.d.ts +1 -1
  53. package/src/generators/ui/libs/ui-avatar-helm/generator.js +7 -4
  54. package/src/generators/ui/libs/ui-avatar-helm/generator.js.map +1 -1
  55. package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +9 -22
  56. package/src/generators/ui/libs/ui-badge-helm/generator.d.ts +1 -1
  57. package/src/generators/ui/libs/ui-badge-helm/generator.js +7 -4
  58. package/src/generators/ui/libs/ui-badge-helm/generator.js.map +1 -1
  59. package/src/generators/ui/libs/ui-breadcrumb-helm/files/index.ts.template +32 -0
  60. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-ellipsis.component.ts.template +23 -0
  61. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-item.directive.ts.template +16 -0
  62. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-link.directive.ts.template +36 -0
  63. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-list.directive.ts.template +18 -0
  64. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-page.directive.ts.template +19 -0
  65. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-separator.component.ts.template +30 -0
  66. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb.directive.ts.template +19 -0
  67. package/src/generators/ui/libs/ui-breadcrumb-helm/generator.d.ts +3 -0
  68. package/src/generators/ui/libs/ui-breadcrumb-helm/generator.js +14 -0
  69. package/src/generators/ui/libs/ui-breadcrumb-helm/generator.js.map +1 -0
  70. package/src/generators/ui/libs/ui-button-helm/files/.DS_Store.template +0 -0
  71. package/src/generators/ui/libs/ui-button-helm/files/index.ts.template +1 -0
  72. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +13 -16
  73. package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.token.ts.template +22 -0
  74. package/src/generators/ui/libs/ui-button-helm/generator.d.ts +1 -1
  75. package/src/generators/ui/libs/ui-button-helm/generator.js +7 -4
  76. package/src/generators/ui/libs/ui-button-helm/generator.js.map +1 -1
  77. package/src/generators/ui/libs/ui-calendar-helm/files/index.ts.template +10 -0
  78. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +160 -0
  79. package/src/generators/ui/libs/ui-calendar-helm/generator.d.ts +3 -0
  80. package/src/generators/ui/libs/ui-calendar-helm/generator.js +14 -0
  81. package/src/generators/ui/libs/ui-calendar-helm/generator.js.map +1 -0
  82. package/src/generators/ui/libs/ui-card-helm/generator.d.ts +1 -1
  83. package/src/generators/ui/libs/ui-card-helm/generator.js +7 -4
  84. package/src/generators/ui/libs/ui-card-helm/generator.js.map +1 -1
  85. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.component.ts.template +3 -3
  86. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.component.ts.template +7 -3
  87. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.component.ts.template +11 -15
  88. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.component.ts.template +14 -15
  89. package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.component.ts.template +8 -8
  90. package/src/generators/ui/libs/ui-carousel-helm/generator.d.ts +1 -1
  91. package/src/generators/ui/libs/ui-carousel-helm/generator.js +7 -4
  92. package/src/generators/ui/libs/ui-carousel-helm/generator.js.map +1 -1
  93. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox-checkicon.component.ts.template +1 -1
  94. package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +11 -27
  95. package/src/generators/ui/libs/ui-checkbox-helm/generator.d.ts +1 -1
  96. package/src/generators/ui/libs/ui-checkbox-helm/generator.js +7 -4
  97. package/src/generators/ui/libs/ui-checkbox-helm/generator.js.map +1 -1
  98. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.directive.ts.template +5 -9
  99. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +3 -3
  100. package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template +3 -9
  101. package/src/generators/ui/libs/ui-command-helm/generator.d.ts +1 -1
  102. package/src/generators/ui/libs/ui-command-helm/generator.js +7 -4
  103. package/src/generators/ui/libs/ui-command-helm/generator.js.map +1 -1
  104. package/src/generators/ui/libs/ui-dialog-helm/files/.DS_Store.template +0 -0
  105. package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog.service.ts.template +3 -3
  106. package/src/generators/ui/libs/ui-dialog-helm/generator.d.ts +1 -1
  107. package/src/generators/ui/libs/ui-dialog-helm/generator.js +7 -4
  108. package/src/generators/ui/libs/ui-dialog-helm/generator.js.map +1 -1
  109. package/src/generators/ui/libs/ui-form-field-helm/files/lib/form-field.spec.ts.template +4 -2
  110. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.directive.ts.template +1 -0
  111. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.component.ts.template +6 -7
  112. package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.directive.ts.template +1 -0
  113. package/src/generators/ui/libs/ui-form-field-helm/generator.d.ts +1 -1
  114. package/src/generators/ui/libs/ui-form-field-helm/generator.js +7 -4
  115. package/src/generators/ui/libs/ui-form-field-helm/generator.js.map +1 -1
  116. package/src/generators/ui/libs/ui-hover-card-helm/generator.d.ts +1 -1
  117. package/src/generators/ui/libs/ui-hover-card-helm/generator.js +7 -4
  118. package/src/generators/ui/libs/ui-hover-card-helm/generator.js.map +1 -1
  119. package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +1 -0
  120. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.spec.ts.template +5 -5
  121. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.ts.template +26 -48
  122. package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +23 -0
  123. package/src/generators/ui/libs/ui-icon-helm/generator.d.ts +1 -1
  124. package/src/generators/ui/libs/ui-icon-helm/generator.js +7 -4
  125. package/src/generators/ui/libs/ui-icon-helm/generator.js.map +1 -1
  126. package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +26 -26
  127. package/src/generators/ui/libs/ui-input-helm/generator.d.ts +1 -1
  128. package/src/generators/ui/libs/ui-input-helm/generator.js +7 -4
  129. package/src/generators/ui/libs/ui-input-helm/generator.js.map +1 -1
  130. package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +14 -13
  131. package/src/generators/ui/libs/ui-label-helm/generator.d.ts +1 -1
  132. package/src/generators/ui/libs/ui-label-helm/generator.js +7 -4
  133. package/src/generators/ui/libs/ui-label-helm/generator.js.map +1 -1
  134. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.directive.ts.template +3 -9
  135. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +1 -1
  136. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +1 -1
  137. package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +1 -1
  138. package/src/generators/ui/libs/ui-menu-helm/generator.d.ts +1 -1
  139. package/src/generators/ui/libs/ui-menu-helm/generator.js +7 -4
  140. package/src/generators/ui/libs/ui-menu-helm/generator.js.map +1 -1
  141. package/src/generators/ui/libs/ui-pagination-helm/files/index.ts.template +3 -0
  142. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination.component.ts.template +269 -0
  143. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.directive.ts.template +3 -2
  144. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.component.ts.template +7 -7
  145. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.directive.ts.template +4 -2
  146. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.directive.ts.template +8 -6
  147. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.component.ts.template +10 -12
  148. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.component.ts.template +10 -12
  149. package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.directive.ts.template +6 -4
  150. package/src/generators/ui/libs/ui-pagination-helm/generator.d.ts +1 -1
  151. package/src/generators/ui/libs/ui-pagination-helm/generator.js +7 -4
  152. package/src/generators/ui/libs/ui-pagination-helm/generator.js.map +1 -1
  153. package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.directive.ts.template +3 -3
  154. package/src/generators/ui/libs/ui-popover-helm/generator.d.ts +1 -1
  155. package/src/generators/ui/libs/ui-popover-helm/generator.js +7 -4
  156. package/src/generators/ui/libs/ui-popover-helm/generator.js.map +1 -1
  157. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +12 -22
  158. package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +1 -1
  159. package/src/generators/ui/libs/ui-progress-helm/generator.d.ts +1 -1
  160. package/src/generators/ui/libs/ui-progress-helm/generator.js +7 -4
  161. package/src/generators/ui/libs/ui-progress-helm/generator.js.map +1 -1
  162. package/src/generators/ui/libs/ui-radio-group-helm/generator.d.ts +1 -1
  163. package/src/generators/ui/libs/ui-radio-group-helm/generator.js +7 -4
  164. package/src/generators/ui/libs/ui-radio-group-helm/generator.js.map +1 -1
  165. package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.component.ts.template +15 -44
  166. package/src/generators/ui/libs/ui-scroll-area-helm/generator.d.ts +1 -1
  167. package/src/generators/ui/libs/ui-scroll-area-helm/generator.js +7 -4
  168. package/src/generators/ui/libs/ui-scroll-area-helm/generator.js.map +1 -1
  169. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.directive.ts.template +2 -10
  170. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +4 -10
  171. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +2 -10
  172. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +4 -7
  173. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +0 -1
  174. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.directive.ts.template +0 -1
  175. package/src/generators/ui/libs/ui-select-helm/generator.d.ts +1 -1
  176. package/src/generators/ui/libs/ui-select-helm/generator.js +7 -4
  177. package/src/generators/ui/libs/ui-select-helm/generator.js.map +1 -1
  178. package/src/generators/ui/libs/ui-separator-helm/generator.d.ts +1 -1
  179. package/src/generators/ui/libs/ui-separator-helm/generator.js +7 -4
  180. package/src/generators/ui/libs/ui-separator-helm/generator.js.map +1 -1
  181. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +4 -4
  182. package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +1 -1
  183. package/src/generators/ui/libs/ui-sheet-helm/generator.d.ts +1 -1
  184. package/src/generators/ui/libs/ui-sheet-helm/generator.js +7 -4
  185. package/src/generators/ui/libs/ui-sheet-helm/generator.js.map +1 -1
  186. package/src/generators/ui/libs/ui-skeleton-helm/generator.d.ts +1 -1
  187. package/src/generators/ui/libs/ui-skeleton-helm/generator.js +7 -4
  188. package/src/generators/ui/libs/ui-skeleton-helm/generator.js.map +1 -1
  189. package/src/generators/ui/libs/ui-slider-helm/generator.d.ts +1 -1
  190. package/src/generators/ui/libs/ui-slider-helm/generator.js +7 -4
  191. package/src/generators/ui/libs/ui-slider-helm/generator.js.map +1 -1
  192. package/src/generators/ui/libs/ui-sonner-helm/files/lib/hlm-toaster.component.ts.template +21 -17
  193. package/src/generators/ui/libs/ui-sonner-helm/generator.d.ts +1 -1
  194. package/src/generators/ui/libs/ui-sonner-helm/generator.js +7 -4
  195. package/src/generators/ui/libs/ui-sonner-helm/generator.js.map +1 -1
  196. package/src/generators/ui/libs/ui-spinner-helm/generator.d.ts +1 -1
  197. package/src/generators/ui/libs/ui-spinner-helm/generator.js +7 -4
  198. package/src/generators/ui/libs/ui-spinner-helm/generator.js.map +1 -1
  199. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-ng-model.component.ignore.spec.ts.template +1 -0
  200. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +2 -1
  201. package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +37 -59
  202. package/src/generators/ui/libs/ui-switch-helm/generator.d.ts +1 -1
  203. package/src/generators/ui/libs/ui-switch-helm/generator.js +7 -4
  204. package/src/generators/ui/libs/ui-switch-helm/generator.js.map +1 -1
  205. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-caption.component.ts.template +1 -1
  206. package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.directive.ts.template +1 -1
  207. package/src/generators/ui/libs/ui-table-helm/generator.d.ts +1 -1
  208. package/src/generators/ui/libs/ui-table-helm/generator.js +7 -4
  209. package/src/generators/ui/libs/ui-table-helm/generator.js.map +1 -1
  210. package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template +16 -13
  211. package/src/generators/ui/libs/ui-tabs-helm/generator.d.ts +1 -1
  212. package/src/generators/ui/libs/ui-tabs-helm/generator.js +7 -4
  213. package/src/generators/ui/libs/ui-tabs-helm/generator.js.map +1 -1
  214. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +1 -1
  215. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +1 -1
  216. package/src/generators/ui/libs/ui-toggle-helm/generator.d.ts +1 -1
  217. package/src/generators/ui/libs/ui-toggle-helm/generator.js +7 -4
  218. package/src/generators/ui/libs/ui-toggle-helm/generator.js.map +1 -1
  219. package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template +1 -1
  220. package/src/generators/ui/libs/ui-tooltip-helm/generator.d.ts +1 -1
  221. package/src/generators/ui/libs/ui-tooltip-helm/generator.js +7 -4
  222. package/src/generators/ui/libs/ui-tooltip-helm/generator.js.map +1 -1
  223. package/src/generators/ui/libs/ui-typography-helm/generator.d.ts +1 -1
  224. package/src/generators/ui/libs/ui-typography-helm/generator.js +7 -4
  225. package/src/generators/ui/libs/ui-typography-helm/generator.js.map +1 -1
  226. package/src/generators/ui/primivite-deps.js +2 -2
  227. package/src/generators/ui/primivite-deps.js.map +1 -1
  228. package/src/generators/ui/primivites.d.ts +1 -1
  229. package/src/generators/ui/schema.json +0 -1
  230. package/src/generators/ui/supported-ui-libraries.json +184 -130
  231. package/src/utils/config.d.ts +5 -0
  232. package/src/utils/config.js +26 -0
  233. package/src/utils/config.js.map +1 -0
  234. package/src/utils/version-utils.js +3 -4
  235. package/src/utils/version-utils.js.map +1 -1
@@ -1,4 +1,6 @@
1
- import { ChangeDetectionStrategy, Component, booleanAttribute, input, numberAttribute } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, numberAttribute } from '@angular/core';
2
+ import { hlm } from '@spartan-ng/ui-core';
3
+ import type { ClassValue } from 'clsx';
2
4
  import { NgxSonnerToaster, type ToasterProps } from 'ngx-sonner';
3
5
 
4
6
  @Component({
@@ -20,35 +22,35 @@ import { NgxSonnerToaster, type ToasterProps } from 'ngx-sonner';
20
22
  [toastOptions]="toastOptions()"
21
23
  [offset]="offset()"
22
24
  [dir]="dir()"
23
- [class]="_class()"
24
- [style]="_style()"
25
+ [class]="_computedClass()"
26
+ [style]="userStyle()"
25
27
  />
26
28
  `,
27
29
  changeDetection: ChangeDetectionStrategy.OnPush,
28
30
  })
29
31
  export class HlmToasterComponent {
30
- invert = input<ToasterProps['invert'], boolean | string>(false, {
32
+ public readonly invert = input<ToasterProps['invert'], boolean | string>(false, {
31
33
  transform: booleanAttribute,
32
34
  });
33
- theme = input<ToasterProps['theme']>('light');
34
- position = input<ToasterProps['position']>('bottom-right');
35
- hotKey = input<ToasterProps['hotkey']>(['altKey', 'KeyT']);
36
- richColors = input<ToasterProps['richColors'], boolean | string>(false, {
35
+ public readonly theme = input<ToasterProps['theme']>('light');
36
+ public readonly position = input<ToasterProps['position']>('bottom-right');
37
+ public readonly hotKey = input<ToasterProps['hotkey']>(['altKey', 'KeyT']);
38
+ public readonly richColors = input<ToasterProps['richColors'], boolean | string>(false, {
37
39
  transform: booleanAttribute,
38
40
  });
39
- expand = input<ToasterProps['expand'], boolean | string>(false, {
41
+ public readonly expand = input<ToasterProps['expand'], boolean | string>(false, {
40
42
  transform: booleanAttribute,
41
43
  });
42
- duration = input<ToasterProps['duration'], number | string>(4000, {
44
+ public readonly duration = input<ToasterProps['duration'], number | string>(4000, {
43
45
  transform: numberAttribute,
44
46
  });
45
- visibleToasts = input<ToasterProps['visibleToasts'], number | string>(3, {
47
+ public readonly visibleToasts = input<ToasterProps['visibleToasts'], number | string>(3, {
46
48
  transform: numberAttribute,
47
49
  });
48
- closeButton = input<ToasterProps['closeButton'], boolean | string>(false, {
50
+ public readonly closeButton = input<ToasterProps['closeButton'], boolean | string>(false, {
49
51
  transform: booleanAttribute,
50
52
  });
51
- toastOptions = input<ToasterProps['toastOptions']>({
53
+ public readonly toastOptions = input<ToasterProps['toastOptions']>({
52
54
  classes: {
53
55
  toast:
54
56
  'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
@@ -57,8 +59,10 @@ export class HlmToasterComponent {
57
59
  cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',
58
60
  },
59
61
  });
60
- offset = input<ToasterProps['offset']>(null);
61
- dir = input<ToasterProps['dir']>('auto');
62
- _class = input('', { alias: 'class' });
63
- _style = input<Record<string, string>>({}, { alias: 'style' });
62
+ public readonly offset = input<ToasterProps['offset']>(null);
63
+ public readonly dir = input<ToasterProps['dir']>('auto');
64
+ public readonly userClass = input<ClassValue>('', { alias: 'class' });
65
+ public readonly userStyle = input<Record<string, string>>({}, { alias: 'style' });
66
+
67
+ protected readonly _computedClass = computed(() => hlm(this.userClass()));
64
68
  }
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'sonner', internalName: 'ui-sonner-helm', publicName: 'ui-sonner-helm' }));
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: 'sonner',
10
+ internalName: 'ui-sonner-helm',
11
+ publicName: 'ui-sonner-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-sonner-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,QAAQ,EACvB,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,gBAAgB,IAC3B,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-sonner-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,QAAQ;QACvB,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,gBAAgB;KAC5B,CAAC,CAAC;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'spinner', internalName: 'ui-spinner-helm', publicName: 'ui-spinner-helm' }));
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: 'spinner',
10
+ internalName: 'ui-spinner-helm',
11
+ publicName: 'ui-spinner-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-spinner-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,SAAS,EACxB,YAAY,EAAE,iBAAiB,EAC/B,UAAU,EAAE,iBAAiB,IAC5B,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-spinner-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,SAAS;QACxB,YAAY,EAAE,iBAAiB;QAC/B,UAAU,EAAE,iBAAiB;KAC7B,CAAC,CAAC;AACJ,CAAC"}
@@ -5,6 +5,7 @@ import { HlmSwitchComponent } from './hlm-switch.component';
5
5
  selector: 'hlm-switch-ng-model',
6
6
  standalone: true,
7
7
  template: `
8
+ <!-- eslint-disable-next-line @angular-eslint/template/label-has-associated-control -->
8
9
  <label class="flex items-center" hlmLabel>
9
10
  <hlm-switch
10
11
  [(ngModel)]="switchValue"
@@ -11,7 +11,8 @@ import type { ClassValue } from 'clsx';
11
11
  })
12
12
  export class HlmSwitchThumbDirective {
13
13
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
14
- protected _computedClass = computed(() =>
14
+
15
+ protected readonly _computedClass = computed(() =>
15
16
  hlm(
16
17
  'block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform group-data-[state=checked]:translate-x-5 group-data-[state=unchecked]:translate-x-0',
17
18
  this.userClass(),
@@ -1,20 +1,11 @@
1
- import {
2
- Component,
3
- EventEmitter,
4
- Input,
5
- Output,
6
- booleanAttribute,
7
- computed,
8
- forwardRef,
9
- input,
10
- signal,
11
- } from '@angular/core';
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { Component, booleanAttribute, computed, forwardRef, input, model, output } from '@angular/core';
12
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
13
4
  import { hlm } from '@spartan-ng/ui-core';
5
+ import { ChangeFn, TouchFn } from '@spartan-ng/ui-forms-brain';
14
6
  import { BrnSwitchComponent, BrnSwitchThumbComponent } from '@spartan-ng/ui-switch-brain';
15
7
  import type { ClassValue } from 'clsx';
16
8
  import { HlmSwitchThumbDirective } from './hlm-switch-thumb.directive';
17
-
18
9
  export const HLM_SWITCH_VALUE_ACCESSOR = {
19
10
  provide: NG_VALUE_ACCESSOR,
20
11
  useExisting: forwardRef(() => HlmSwitchComponent),
@@ -35,14 +26,14 @@ export const HLM_SWITCH_VALUE_ACCESSOR = {
35
26
  template: `
36
27
  <brn-switch
37
28
  [class]="_computedClass()"
38
- [checked]="_checked()"
39
- (changed)="_handleChange($event)"
29
+ [checked]="checked()"
30
+ (changed)="handleChange($event)"
40
31
  (touched)="_onTouched()"
41
- [disabled]="_disabled()"
42
- [id]="id"
43
- [aria-label]="ariaLabel"
44
- [aria-labelledby]="ariaLabelledby"
45
- [aria-describedby]="ariaDescribedby"
32
+ [disabled]="disabled()"
33
+ [id]="id()"
34
+ [aria-label]="ariaLabel()"
35
+ [aria-labelledby]="ariaLabelledby()"
36
+ [aria-describedby]="ariaDescribedby()"
46
37
  >
47
38
  <brn-switch-thumb hlm />
48
39
  </brn-switch>
@@ -51,69 +42,56 @@ export const HLM_SWITCH_VALUE_ACCESSOR = {
51
42
  })
52
43
  export class HlmSwitchComponent {
53
44
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
54
- protected _computedClass = computed(() =>
45
+ protected readonly _computedClass = computed(() =>
55
46
  hlm(
56
47
  'group inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input',
57
- this._disabled() ? 'cursor-not-allowed opacity-50' : '',
48
+ this.disabled() ? 'cursor-not-allowed opacity-50' : '',
58
49
  this.userClass(),
59
50
  ),
60
51
  );
61
52
 
62
- @Output()
63
- public changed = new EventEmitter<boolean>();
53
+ public readonly checked = model<boolean>(false);
64
54
 
65
- protected _handleChange(value: boolean): void {
66
- this._checked.set(value);
67
- this._onChange(value);
68
- this.changed.emit(value);
69
- }
70
-
71
- protected _checked = signal(false);
72
- @Input({ transform: booleanAttribute })
73
- set checked(value: boolean) {
74
- this._checked.set(value);
75
- }
76
-
77
- protected readonly _disabled = signal(false);
78
- @Input({ transform: booleanAttribute })
79
- set disabled(value: boolean) {
80
- this._disabled.set(value);
81
- }
55
+ public readonly disabled = input<boolean, BooleanInput>(false, {
56
+ transform: booleanAttribute,
57
+ });
82
58
 
83
59
  /** Used to set the id on the underlying brn element. */
84
- @Input()
85
- id: string | null = null;
60
+ public readonly id = input<string | null>(null);
86
61
 
87
62
  /** Used to set the aria-label attribute on the underlying brn element. */
88
- @Input('aria-label')
89
- ariaLabel: string | null = null;
63
+ public readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });
90
64
 
91
65
  /** Used to set the aria-labelledby attribute on the underlying brn element. */
92
- @Input('aria-labelledby')
93
- ariaLabelledby: string | null = null;
66
+ public readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });
94
67
 
95
68
  /** Used to set the aria-describedby attribute on the underlying brn element. */
96
- @Input('aria-describedby')
97
- ariaDescribedby: string | null = null;
69
+ public readonly ariaDescribedby = input<string | null>(null, { alias: 'aria-describedby' });
70
+
71
+ public readonly changed = output<boolean>();
72
+
73
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
74
+ protected _onChange: ChangeFn<boolean> = () => {};
75
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
76
+ protected _onTouched: TouchFn = () => {};
77
+
78
+ protected handleChange(value: boolean): void {
79
+ this.checked.set(value);
80
+ this._onChange(value);
81
+ this.changed.emit(value);
82
+ }
98
83
 
99
84
  /** CONROL VALUE ACCESSOR */
100
85
 
101
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
102
- writeValue(value: any): void {
103
- this.checked = !!value;
86
+ writeValue(value: boolean): void {
87
+ this.checked.set(Boolean(value));
104
88
  }
105
- // eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars,,@typescript-eslint/no-explicit-any
106
- protected _onChange = (_: any) => {};
107
- // eslint-disable-next-line @typescript-eslint/no-empty-function
108
- protected _onTouched = () => {};
109
89
 
110
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
111
- registerOnChange(fn: any): void {
90
+ registerOnChange(fn: ChangeFn<boolean>): void {
112
91
  this._onChange = fn;
113
92
  }
114
93
 
115
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
116
- registerOnTouched(fn: any): void {
94
+ registerOnTouched(fn: TouchFn): void {
117
95
  this._onTouched = fn;
118
96
  }
119
97
  }
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'switch', internalName: 'ui-switch-helm', publicName: 'ui-switch-helm' }));
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: 'switch',
10
+ internalName: 'ui-switch-helm',
11
+ publicName: 'ui-switch-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-switch-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,QAAQ,EACvB,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,gBAAgB,IAC3B,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-switch-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,QAAQ;QACvB,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,gBAAgB;KAC5B,CAAC,CAAC;AACJ,CAAC"}
@@ -10,7 +10,7 @@ import {
10
10
  } from '@angular/core';
11
11
  import { hlm } from '@spartan-ng/ui-core';
12
12
  import type { ClassValue } from 'clsx';
13
- import { HlmTableComponent } from '../index';
13
+ import { HlmTableComponent } from './hlm-table.component';
14
14
 
15
15
  let captionIdSequence = 0;
16
16
 
@@ -3,7 +3,7 @@ import { injectTableClassesSettable } from '@spartan-ng/ui-core';
3
3
 
4
4
  @Directive({ standalone: true, selector: '[hlmTable],brn-table[hlm]' })
5
5
  export class HlmTableDirective {
6
- private _tableClassesSettable = injectTableClassesSettable({ host: true, optional: true });
6
+ private readonly _tableClassesSettable = injectTableClassesSettable({ host: true, optional: true });
7
7
 
8
8
  constructor() {
9
9
  this._tableClassesSettable?.setTableClasses({
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'table', internalName: 'ui-table-helm', publicName: 'ui-table-helm' }));
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: 'table',
10
+ internalName: 'ui-table-helm',
11
+ publicName: 'ui-table-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-table-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,OAAO,EACtB,YAAY,EAAE,eAAe,EAC7B,UAAU,EAAE,eAAe,IAC1B,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-table-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,OAAO;QACtB,YAAY,EAAE,eAAe;QAC7B,UAAU,EAAE,eAAe;KAC3B,CAAC,CAAC;AACJ,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { CdkObserveContent } from '@angular/cdk/observers';
2
- import { Component, ContentChildren, type ElementRef, type QueryList, ViewChild, computed, input } from '@angular/core';
2
+ import { Component, type ElementRef, computed, contentChildren, input, viewChild } from '@angular/core';
3
+ import { toObservable } from '@angular/core/rxjs-interop';
3
4
  import { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';
4
5
  import { buttonVariants } from '@spartan-ng/ui-button-helm';
5
6
  import { hlm } from '@spartan-ng/ui-core';
@@ -61,25 +62,27 @@ import { listVariants } from './hlm-tabs-list.component';
61
62
  },
62
63
  })
63
64
  export class HlmTabsPaginatedListComponent extends BrnTabsPaginatedListDirective {
64
- @ContentChildren(BrnTabsTriggerDirective, { descendants: false })
65
- _items!: QueryList<BrnTabsTriggerDirective>;
66
- @ViewChild('tabListContainer', { static: true })
67
- _tabListContainer!: ElementRef;
68
- @ViewChild('tabList', { static: true }) _tabList!: ElementRef;
69
- @ViewChild('tabListInner', { static: true }) _tabListInner!: ElementRef;
70
- @ViewChild('nextPaginator') _nextPaginator!: ElementRef<HTMLElement>;
71
- @ViewChild('previousPaginator') _previousPaginator!: ElementRef<HTMLElement>;
65
+ public readonly _items = contentChildren(BrnTabsTriggerDirective, { descendants: false });
66
+ public readonly _itemsChanges = toObservable(this._items);
67
+
68
+ public readonly _tabListContainer = viewChild.required<ElementRef<HTMLElement>>('tabListContainer');
69
+ public readonly _tabList = viewChild.required<ElementRef<HTMLElement>>('tabList');
70
+ public readonly _tabListInner = viewChild.required<ElementRef<HTMLElement>>('tabListInner');
71
+ public readonly _nextPaginator = viewChild.required<ElementRef<HTMLElement>>('nextPaginator');
72
+ public readonly _previousPaginator = viewChild.required<ElementRef<HTMLElement>>('previousPaginator');
72
73
 
73
74
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
74
- protected _computedClass = computed(() => hlm('flex overflow-hidden relative flex-shrink-0', this.userClass()));
75
+ protected readonly _computedClass = computed(() =>
76
+ hlm('flex overflow-hidden relative gap-1 flex-shrink-0', this.userClass()),
77
+ );
75
78
 
76
79
  public readonly tabLisClass = input<ClassValue>('', { alias: 'class' });
77
- protected _tabListClass = computed(() => hlm(listVariants(), this.tabLisClass()));
80
+ protected readonly _tabListClass = computed(() => hlm(listVariants(), this.tabLisClass()));
78
81
 
79
82
  public readonly paginationButtonClass = input<ClassValue>('', { alias: 'class' });
80
- protected _paginationButtonClass = computed(() =>
83
+ protected readonly _paginationButtonClass = computed(() =>
81
84
  hlm(
82
- 'relative z-[2] select-none data-[pagination=previous]:pr-1 data-[pagination=next]:pl-1 disabled:cursor-default',
85
+ 'relative z-[2] select-none disabled:cursor-default',
83
86
  buttonVariants({ variant: 'ghost', size: 'icon' }),
84
87
  this.paginationButtonClass(),
85
88
  ),
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'tabs', internalName: 'ui-tabs-helm', publicName: 'ui-tabs-helm' }));
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: 'tabs',
10
+ internalName: 'ui-tabs-helm',
11
+ publicName: 'ui-tabs-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-tabs-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,cAAc,EAC5B,UAAU,EAAE,cAAc,IACzB,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-tabs-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,MAAM;QACrB,YAAY,EAAE,cAAc;QAC5B,UAAU,EAAE,cAAc;KAC1B,CAAC,CAAC;AACJ,CAAC"}
@@ -11,7 +11,7 @@ import type { ClassValue } from 'clsx';
11
11
  })
12
12
  export class HlmToggleGroupDirective {
13
13
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
14
- protected _computedClass = computed(() =>
14
+ protected readonly _computedClass = computed(() =>
15
15
  hlm(
16
16
  'inline-flex items-center rounded-md [&>[hlm][brnToggle][variant="outline"]]:-mx-[0.5px] [&>[hlm][brnToggle]]:rounded-none focus:[&>[hlm][brnToggle]]:z-10 first-of-type:[&>[hlm][brnToggle]]:rounded-l-md last-of-type:[&>[hlm][brnToggle]]:rounded-r-md',
17
17
  this.userClass(),
@@ -36,7 +36,7 @@ export class HlmToggleDirective {
36
36
  public readonly variant = input<ToggleVariants['variant']>('default');
37
37
  public readonly size = input<ToggleVariants['size']>('default');
38
38
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
39
- protected _computedClass = computed(() =>
39
+ protected readonly _computedClass = computed(() =>
40
40
  hlm(toggleVariants({ variant: this.variant(), size: this.size() }), this.userClass()),
41
41
  );
42
42
  }
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'toggle', internalName: 'ui-toggle-helm', publicName: 'ui-toggle-helm' }));
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: 'toggle',
10
+ internalName: 'ui-toggle-helm',
11
+ publicName: 'ui-toggle-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-toggle-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,QAAQ,EACvB,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,gBAAgB,IAC3B,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-toggle-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,QAAQ;QACvB,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,gBAAgB;KAC5B,CAAC,CAAC;AACJ,CAAC"}
@@ -38,7 +38,7 @@ export class HlmTooltipTriggerDirective {
38
38
  }
39
39
 
40
40
  @Input()
41
- set hlmTooltipTrigger(value: string | TemplateRef<unknown> | null) {
41
+ public set hlmTooltipTrigger(value: string | TemplateRef<unknown> | null) {
42
42
  this._brnTooltipTrigger.content = value;
43
43
  }
44
44
  }
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'tooltip', internalName: 'ui-tooltip-helm', publicName: 'ui-tooltip-helm' }));
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: 'tooltip',
10
+ internalName: 'ui-tooltip-helm',
11
+ publicName: 'ui-tooltip-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-tooltip-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,SAAS,EACxB,YAAY,EAAE,iBAAiB,EAC/B,UAAU,EAAE,iBAAiB,IAC5B,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-tooltip-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,SAAS;QACxB,YAAY,EAAE,iBAAiB;QAC/B,UAAU,EAAE,iBAAiB;KAC7B,CAAC,CAAC;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { HlmBaseGeneratorSchema } from '../../../base/schema';
2
+ import type { HlmBaseGeneratorSchema } from '../../../base/schema';
3
3
  export declare function generator(tree: Tree, options: HlmBaseGeneratorSchema): Promise<import("@nx/devkit").GeneratorCallback>;
@@ -2,10 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generator = generator;
4
4
  const tslib_1 = require("tslib");
5
- const generator_1 = require("../../../base/generator");
6
- function generator(tree, options) {
7
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
- return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'typography', internalName: 'ui-typography-helm', publicName: 'ui-typography-helm' }));
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: 'typography',
10
+ internalName: 'ui-typography-helm',
11
+ publicName: 'ui-typography-helm',
9
12
  });
10
13
  }
11
14
  //# sourceMappingURL=generator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-typography-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AATD,uDAAuD;AAEvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,oBAAoB,EAClC,UAAU,EAAE,oBAAoB,IAC/B,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-typography-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,YAAY;QAC3B,YAAY,EAAE,oBAAoB;QAClC,UAAU,EAAE,oBAAoB;KAChC,CAAC,CAAC;AACJ,CAAC"}
@@ -8,6 +8,7 @@ exports.primitiveDependencies = {
8
8
  aspectratio: [],
9
9
  avatar: [],
10
10
  badge: [],
11
+ breadcrumb: ['icon'],
11
12
  button: [],
12
13
  card: [],
13
14
  carousel: [],
@@ -41,10 +42,9 @@ exports.primitiveDependencies = {
41
42
  tooltip: [],
42
43
  };
43
44
  const getDependentPrimitives = (primitives) => {
44
- var _a;
45
45
  const dependentPrimitives = new Set();
46
46
  for (const primitive of primitives) {
47
- const deps = (_a = exports.primitiveDependencies[primitive]) !== null && _a !== void 0 ? _a : [];
47
+ const deps = exports.primitiveDependencies[primitive] ?? [];
48
48
  for (const dep of deps) {
49
49
  if (!primitives.includes(dep)) {
50
50
  // only add the dependent primitive if it's not already in the list of primitives to create