@spartan-ng/cli 0.0.1-alpha.437 → 0.0.1-alpha.439

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 (58) hide show
  1. package/generators.json +5 -0
  2. package/package.json +1 -1
  3. package/src/generators/healthcheck/generator.js +2 -2
  4. package/src/generators/healthcheck/generator.js.map +1 -1
  5. package/src/generators/healthcheck/healthchecks/brn-toggle-group.d.ts +2 -0
  6. package/src/generators/healthcheck/healthchecks/brn-toggle-group.js +34 -0
  7. package/src/generators/healthcheck/healthchecks/brn-toggle-group.js.map +1 -0
  8. package/src/generators/migrate-brain-imports/import-map.d.ts +1 -0
  9. package/src/generators/migrate-brain-imports/import-map.js +1 -0
  10. package/src/generators/migrate-brain-imports/import-map.js.map +1 -1
  11. package/src/generators/migrate-toggle-group/compat.d.ts +2 -0
  12. package/src/generators/migrate-toggle-group/compat.js +7 -0
  13. package/src/generators/migrate-toggle-group/compat.js.map +1 -0
  14. package/src/generators/migrate-toggle-group/generator.d.ts +4 -0
  15. package/src/generators/migrate-toggle-group/generator.js +119 -0
  16. package/src/generators/migrate-toggle-group/generator.js.map +1 -0
  17. package/src/generators/migrate-toggle-group/schema.d.ts +3 -0
  18. package/src/generators/migrate-toggle-group/schema.json +14 -0
  19. package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-separator.component.ts.template +3 -4
  20. package/src/generators/ui/libs/ui-calendar-helm/files/index.ts.template +6 -2
  21. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.component.ts.template +178 -0
  22. package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +1 -1
  23. package/src/generators/ui/libs/ui-date-picker-helm/files/index.ts.template +6 -2
  24. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.component.ts.template +184 -0
  25. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.token.ts.template +43 -0
  26. package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.component.ts.template +8 -6
  27. package/src/generators/ui/libs/ui-input-otp-helm/files/index.ts.template +30 -0
  28. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-fake-caret.component.ts.template +12 -0
  29. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-group.directive.ts.template +16 -0
  30. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.component.ts.template +25 -0
  31. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.component.ts.template +33 -0
  32. package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.directive.ts.template +18 -0
  33. package/src/generators/ui/libs/ui-input-otp-helm/generator.d.ts +3 -0
  34. package/src/generators/ui/libs/ui-input-otp-helm/generator.js +14 -0
  35. package/src/generators/ui/libs/ui-input-otp-helm/generator.js.map +1 -0
  36. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +1 -1
  37. package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +1 -1
  38. package/src/generators/ui/libs/ui-slider-helm/files/index.ts.template +2 -9
  39. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +41 -8
  40. package/src/generators/ui/libs/ui-toggle-group-helm/files/index.ts.template +12 -0
  41. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.directive.ts.template +29 -0
  42. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.token.ts.template +12 -0
  43. package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.directive.ts.template +55 -0
  44. package/src/generators/ui/libs/ui-toggle-group-helm/generator.d.ts +3 -0
  45. package/src/generators/ui/libs/ui-toggle-group-helm/generator.js +14 -0
  46. package/src/generators/ui/libs/ui-toggle-group-helm/generator.js.map +1 -0
  47. package/src/generators/ui/libs/ui-toggle-helm/files/index.ts.template +0 -8
  48. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +16 -5
  49. package/src/generators/ui/supported-ui-libraries.json +67 -37
  50. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template +0 -19
  51. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template +0 -27
  52. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template +0 -29
  53. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-marks.directive.ts.template +0 -17
  54. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active-fill.directive.ts.template +0 -26
  55. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active.directive.ts.template +0 -20
  56. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-inactive.directive.ts.template +0 -17
  57. package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template +0 -54
  58. package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +0 -20
@@ -1,17 +1,9 @@
1
1
  import { NgModule } from '@angular/core';
2
- import { HlmToggleGroupDirective } from './lib/hlm-toggle-group.directive';
3
2
  import { HlmToggleDirective } from './lib/hlm-toggle.directive';
4
3
 
5
- export * from './lib/hlm-toggle-group.directive';
6
4
  export * from './lib/hlm-toggle.directive';
7
5
  @NgModule({
8
6
  imports: [HlmToggleDirective],
9
7
  exports: [HlmToggleDirective],
10
8
  })
11
9
  export class HlmToggleModule {}
12
-
13
- @NgModule({
14
- imports: [HlmToggleDirective, HlmToggleGroupDirective],
15
- exports: [HlmToggleDirective, HlmToggleGroupDirective],
16
- })
17
- export class HlmToggleGroupModule {}
@@ -1,6 +1,6 @@
1
1
  import { Directive, computed, input } from '@angular/core';
2
2
  import { hlm } from '@spartan-ng/brain/core';
3
- import { type VariantProps, cva } from 'class-variance-authority';
3
+ import { cva, type VariantProps } from 'class-variance-authority';
4
4
  import type { ClassValue } from 'clsx';
5
5
 
6
6
  export const toggleVariants = cva(
@@ -23,7 +23,7 @@ export const toggleVariants = cva(
23
23
  },
24
24
  },
25
25
  );
26
- type ToggleVariants = VariantProps<typeof toggleVariants>;
26
+ export type ToggleVariants = VariantProps<typeof toggleVariants>;
27
27
 
28
28
  @Directive({
29
29
  selector: '[hlmToggle],[brnToggle][hlm]',
@@ -36,7 +36,18 @@ 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 readonly _computedClass = computed(() =>
40
- hlm(toggleVariants({ variant: this.variant(), size: this.size() }), this.userClass()),
41
- );
39
+
40
+ protected readonly _computedClass = computed(() => {
41
+ const variantToUse = this.variant();
42
+ const sizeToUse = this.size();
43
+ const userClass = this.userClass();
44
+
45
+ return hlm(
46
+ toggleVariants({
47
+ variant: variantToUse,
48
+ size: sizeToUse,
49
+ }),
50
+ userClass,
51
+ );
52
+ });
42
53
  }
@@ -5,7 +5,7 @@
5
5
  "@angular/core": ">=19.0.0",
6
6
  "@ng-icons/core": ">=29.0.0",
7
7
  "@ng-icons/lucide": ">=29.0.0",
8
- "@spartan-ng/brain": "0.0.1-alpha.437",
8
+ "@spartan-ng/brain": "0.0.1-alpha.439",
9
9
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
10
10
  "clsx": "^2.1.1"
11
11
  }
@@ -14,7 +14,7 @@
14
14
  "internalName": "ui-alert-helm",
15
15
  "peerDependencies": {
16
16
  "@angular/core": ">=19.0.0",
17
- "@spartan-ng/brain": "0.0.1-alpha.437",
17
+ "@spartan-ng/brain": "0.0.1-alpha.439",
18
18
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
19
19
  "class-variance-authority": "^0.7.0",
20
20
  "clsx": "^2.1.1"
@@ -24,7 +24,7 @@
24
24
  "internalName": "ui-alert-dialog-helm",
25
25
  "peerDependencies": {
26
26
  "@angular/core": ">=19.0.0",
27
- "@spartan-ng/brain": "0.0.1-alpha.437",
27
+ "@spartan-ng/brain": "0.0.1-alpha.439",
28
28
  "@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
29
29
  "clsx": "^2.1.1"
30
30
  }
@@ -34,7 +34,7 @@
34
34
  "peerDependencies": {
35
35
  "@angular/cdk": ">=19.0.0",
36
36
  "@angular/core": ">=19.0.0",
37
- "@spartan-ng/brain": "0.0.1-alpha.437",
37
+ "@spartan-ng/brain": "0.0.1-alpha.439",
38
38
  "clsx": "^2.1.1"
39
39
  }
40
40
  },
@@ -42,7 +42,7 @@
42
42
  "internalName": "ui-avatar-helm",
43
43
  "peerDependencies": {
44
44
  "@angular/core": ">=19.0.0",
45
- "@spartan-ng/brain": "0.0.1-alpha.437",
45
+ "@spartan-ng/brain": "0.0.1-alpha.439",
46
46
  "class-variance-authority": "^0.7.0",
47
47
  "clsx": "^2.1.1"
48
48
  }
@@ -52,7 +52,7 @@
52
52
  "peerDependencies": {
53
53
  "@angular/cdk": ">=19.0.0",
54
54
  "@angular/core": ">=19.0.0",
55
- "@spartan-ng/brain": "0.0.1-alpha.437",
55
+ "@spartan-ng/brain": "0.0.1-alpha.439",
56
56
  "class-variance-authority": "^0.7.0",
57
57
  "clsx": "^2.1.1"
58
58
  }
@@ -64,7 +64,7 @@
64
64
  "@angular/router": ">=19.0.0",
65
65
  "@ng-icons/core": ">=29.0.0",
66
66
  "@ng-icons/lucide": ">=29.0.0",
67
- "@spartan-ng/brain": "0.0.1-alpha.437",
67
+ "@spartan-ng/brain": "0.0.1-alpha.439",
68
68
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
69
69
  "clsx": "^2.1.1"
70
70
  }
@@ -73,7 +73,7 @@
73
73
  "internalName": "ui-button-helm",
74
74
  "peerDependencies": {
75
75
  "@angular/core": ">=19.0.0",
76
- "@spartan-ng/brain": "0.0.1-alpha.437",
76
+ "@spartan-ng/brain": "0.0.1-alpha.439",
77
77
  "class-variance-authority": "^0.7.0",
78
78
  "clsx": "^2.1.1"
79
79
  }
@@ -85,7 +85,7 @@
85
85
  "@angular/core": ">=19.0.0",
86
86
  "@ng-icons/core": ">=29.0.0",
87
87
  "@ng-icons/lucide": ">=29.0.0",
88
- "@spartan-ng/brain": "0.0.1-alpha.437",
88
+ "@spartan-ng/brain": "0.0.1-alpha.439",
89
89
  "@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
90
90
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
91
91
  "clsx": "^2.1.1"
@@ -95,7 +95,7 @@
95
95
  "internalName": "ui-card-helm",
96
96
  "peerDependencies": {
97
97
  "@angular/core": ">=19.0.0",
98
- "@spartan-ng/brain": "0.0.1-alpha.437",
98
+ "@spartan-ng/brain": "0.0.1-alpha.439",
99
99
  "class-variance-authority": "^0.7.0",
100
100
  "clsx": "^2.1.1"
101
101
  }
@@ -105,7 +105,7 @@
105
105
  "peerDependencies": {
106
106
  "@angular/cdk": ">=19.0.0",
107
107
  "@angular/core": ">=19.0.0",
108
- "@spartan-ng/brain": "0.0.1-alpha.437",
108
+ "@spartan-ng/brain": "0.0.1-alpha.439",
109
109
  "@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
110
110
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
111
111
  "clsx": "^2.1.1"
@@ -119,7 +119,7 @@
119
119
  "@angular/forms": ">=19.0.0",
120
120
  "@ng-icons/core": ">=29.0.0",
121
121
  "@ng-icons/lucide": ">=29.0.0",
122
- "@spartan-ng/brain": "0.0.1-alpha.437",
122
+ "@spartan-ng/brain": "0.0.1-alpha.439",
123
123
  "@spartan-ng/ui-calendar-helm": "0.0.1-alpha.381",
124
124
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
125
125
  "@spartan-ng/ui-popover-helm": "0.0.1-alpha.381",
@@ -134,7 +134,7 @@
134
134
  "@angular/core": ">=19.0.0",
135
135
  "@ng-icons/core": ">=29.0.0",
136
136
  "@ng-icons/lucide": ">=29.0.0",
137
- "@spartan-ng/brain": "0.0.1-alpha.437",
137
+ "@spartan-ng/brain": "0.0.1-alpha.439",
138
138
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
139
139
  "clsx": "^2.1.1"
140
140
  }
@@ -150,7 +150,7 @@
150
150
  "peerDependencies": {
151
151
  "@angular/core": ">=19.0.0",
152
152
  "@angular/forms": ">=19.0.0",
153
- "@spartan-ng/brain": "0.0.1-alpha.437",
153
+ "@spartan-ng/brain": "0.0.1-alpha.439",
154
154
  "class-variance-authority": "^0.7.0",
155
155
  "clsx": "^2.1.1"
156
156
  }
@@ -159,7 +159,7 @@
159
159
  "internalName": "ui-label-helm",
160
160
  "peerDependencies": {
161
161
  "@angular/core": ">=19.0.0",
162
- "@spartan-ng/brain": "0.0.1-alpha.437",
162
+ "@spartan-ng/brain": "0.0.1-alpha.439",
163
163
  "class-variance-authority": "^0.7.0",
164
164
  "clsx": "^2.1.1"
165
165
  }
@@ -170,7 +170,7 @@
170
170
  "@angular/core": ">=19.0.0",
171
171
  "@ng-icons/core": ">=29.0.0",
172
172
  "@ng-icons/lucide": ">=29.0.0",
173
- "@spartan-ng/brain": "0.0.1-alpha.437",
173
+ "@spartan-ng/brain": "0.0.1-alpha.439",
174
174
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
175
175
  "class-variance-authority": "^0.7.0",
176
176
  "clsx": "^2.1.1"
@@ -180,7 +180,7 @@
180
180
  "internalName": "ui-popover-helm",
181
181
  "peerDependencies": {
182
182
  "@angular/core": ">=19.0.0",
183
- "@spartan-ng/brain": "0.0.1-alpha.437",
183
+ "@spartan-ng/brain": "0.0.1-alpha.439",
184
184
  "clsx": "^2.1.1"
185
185
  }
186
186
  },
@@ -188,7 +188,7 @@
188
188
  "internalName": "ui-progress-helm",
189
189
  "peerDependencies": {
190
190
  "@angular/core": ">=19.0.0",
191
- "@spartan-ng/brain": "0.0.1-alpha.437",
191
+ "@spartan-ng/brain": "0.0.1-alpha.439",
192
192
  "clsx": "^2.1.1"
193
193
  }
194
194
  },
@@ -196,7 +196,7 @@
196
196
  "internalName": "ui-radio-group-helm",
197
197
  "peerDependencies": {
198
198
  "@angular/core": ">=19.0.0",
199
- "@spartan-ng/brain": "0.0.1-alpha.437",
199
+ "@spartan-ng/brain": "0.0.1-alpha.439",
200
200
  "clsx": "^2.1.1"
201
201
  }
202
202
  },
@@ -204,7 +204,7 @@
204
204
  "internalName": "ui-scroll-area-helm",
205
205
  "peerDependencies": {
206
206
  "@angular/core": ">=19.0.0",
207
- "@spartan-ng/brain": "0.0.1-alpha.437",
207
+ "@spartan-ng/brain": "0.0.1-alpha.439",
208
208
  "clsx": "^2.1.1",
209
209
  "ngx-scrollbar": ">=16.0.0"
210
210
  }
@@ -213,7 +213,7 @@
213
213
  "internalName": "ui-separator-helm",
214
214
  "peerDependencies": {
215
215
  "@angular/core": ">=19.0.0",
216
- "@spartan-ng/brain": "0.0.1-alpha.437",
216
+ "@spartan-ng/brain": "0.0.1-alpha.439",
217
217
  "clsx": "^2.1.1"
218
218
  }
219
219
  },
@@ -223,7 +223,7 @@
223
223
  "@angular/core": ">=19.0.0",
224
224
  "@ng-icons/core": ">=29.0.0",
225
225
  "@ng-icons/lucide": ">=29.0.0",
226
- "@spartan-ng/brain": "0.0.1-alpha.437",
226
+ "@spartan-ng/brain": "0.0.1-alpha.439",
227
227
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
228
228
  "class-variance-authority": "^0.7.0",
229
229
  "clsx": "^2.1.1"
@@ -233,7 +233,7 @@
233
233
  "internalName": "ui-skeleton-helm",
234
234
  "peerDependencies": {
235
235
  "@angular/core": ">=19.0.0",
236
- "@spartan-ng/brain": "0.0.1-alpha.437",
236
+ "@spartan-ng/brain": "0.0.1-alpha.439",
237
237
  "clsx": "^2.1.1"
238
238
  }
239
239
  },
@@ -241,7 +241,7 @@
241
241
  "internalName": "ui-spinner-helm",
242
242
  "peerDependencies": {
243
243
  "@angular/core": ">=19.0.0",
244
- "@spartan-ng/brain": "0.0.1-alpha.437",
244
+ "@spartan-ng/brain": "0.0.1-alpha.439",
245
245
  "class-variance-authority": "^0.7.0",
246
246
  "clsx": "^2.1.1"
247
247
  }
@@ -252,7 +252,7 @@
252
252
  "@angular/cdk": ">=19.0.0",
253
253
  "@angular/core": ">=19.0.0",
254
254
  "@angular/forms": ">=19.0.0",
255
- "@spartan-ng/brain": "0.0.1-alpha.437",
255
+ "@spartan-ng/brain": "0.0.1-alpha.439",
256
256
  "clsx": "^2.1.1"
257
257
  }
258
258
  },
@@ -263,7 +263,7 @@
263
263
  "@angular/core": ">=19.0.0",
264
264
  "@ng-icons/core": ">=29.0.0",
265
265
  "@ng-icons/lucide": ">=29.0.0",
266
- "@spartan-ng/brain": "0.0.1-alpha.437",
266
+ "@spartan-ng/brain": "0.0.1-alpha.439",
267
267
  "@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
268
268
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
269
269
  "class-variance-authority": "^0.7.0",
@@ -274,7 +274,16 @@
274
274
  "internalName": "ui-toggle-helm",
275
275
  "peerDependencies": {
276
276
  "@angular/core": ">=19.0.0",
277
- "@spartan-ng/brain": "0.0.1-alpha.437",
277
+ "@spartan-ng/brain": "0.0.1-alpha.439",
278
+ "class-variance-authority": "^0.7.0",
279
+ "clsx": "^2.1.1"
280
+ }
281
+ },
282
+ "toggle-group": {
283
+ "internalName": "ui-toggle-group-helm",
284
+ "peerDependencies": {
285
+ "@angular/core": ">=19.0.0",
286
+ "@spartan-ng/brain": "0.0.1-alpha.436",
278
287
  "class-variance-authority": "^0.7.0",
279
288
  "clsx": "^2.1.1"
280
289
  }
@@ -283,7 +292,7 @@
283
292
  "internalName": "ui-typography-helm",
284
293
  "peerDependencies": {
285
294
  "@angular/core": ">=19.0.0",
286
- "@spartan-ng/brain": "0.0.1-alpha.437",
295
+ "@spartan-ng/brain": "0.0.1-alpha.439",
287
296
  "clsx": "^2.1.1"
288
297
  }
289
298
  },
@@ -292,7 +301,7 @@
292
301
  "peerDependencies": {
293
302
  "@angular/common": ">=19.0.0",
294
303
  "@angular/core": ">=19.0.0",
295
- "@spartan-ng/brain": "0.0.1-alpha.437",
304
+ "@spartan-ng/brain": "0.0.1-alpha.439",
296
305
  "clsx": "^2.1.1"
297
306
  }
298
307
  },
@@ -300,7 +309,7 @@
300
309
  "internalName": "ui-hover-card-helm",
301
310
  "peerDependencies": {
302
311
  "@angular/core": ">=19.0.0",
303
- "@spartan-ng/brain": "0.0.1-alpha.437",
312
+ "@spartan-ng/brain": "0.0.1-alpha.439",
304
313
  "clsx": "^2.1.1"
305
314
  }
306
315
  },
@@ -311,7 +320,7 @@
311
320
  "@angular/forms": ">=19.0.0",
312
321
  "@ng-icons/core": ">=29.0.0",
313
322
  "@ng-icons/lucide": ">=29.0.0",
314
- "@spartan-ng/brain": "0.0.1-alpha.437",
323
+ "@spartan-ng/brain": "0.0.1-alpha.439",
315
324
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
316
325
  "clsx": "^2.1.1"
317
326
  }
@@ -320,7 +329,7 @@
320
329
  "internalName": "ui-tooltip-helm",
321
330
  "peerDependencies": {
322
331
  "@angular/core": ">=19.0.0",
323
- "@spartan-ng/brain": "0.0.1-alpha.437"
332
+ "@spartan-ng/brain": "0.0.1-alpha.439"
324
333
  }
325
334
  },
326
335
  "pagination": {
@@ -332,7 +341,7 @@
332
341
  "@angular/router": ">=19.0.0",
333
342
  "@ng-icons/core": ">=29.0.0",
334
343
  "@ng-icons/lucide": ">=29.0.0",
335
- "@spartan-ng/brain": "0.0.1-alpha.437",
344
+ "@spartan-ng/brain": "0.0.1-alpha.439",
336
345
  "@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
337
346
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
338
347
  "@spartan-ng/ui-select-helm": "0.0.1-alpha.381",
@@ -346,7 +355,7 @@
346
355
  "@angular/core": ">=19.0.0",
347
356
  "@ng-icons/core": ">=29.0.0",
348
357
  "@ng-icons/lucide": ">=29.0.0",
349
- "@spartan-ng/brain": "0.0.1-alpha.437",
358
+ "@spartan-ng/brain": "0.0.1-alpha.439",
350
359
  "@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
351
360
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
352
361
  "clsx": "^2.1.1",
@@ -359,7 +368,7 @@
359
368
  "@angular/core": ">=19.0.0",
360
369
  "@ng-icons/core": ">=29.0.0",
361
370
  "@ng-icons/lucide": ">=29.0.0",
362
- "@spartan-ng/brain": "0.0.1-alpha.437",
371
+ "@spartan-ng/brain": "0.0.1-alpha.439",
363
372
  "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
364
373
  "class-variance-authority": "^0.7.0",
365
374
  "clsx": "^2.1.1"
@@ -380,14 +389,35 @@
380
389
  "internalName": "ui-form-field-helm",
381
390
  "peerDependencies": {
382
391
  "@angular/core": ">=19.0.0",
383
- "@spartan-ng/brain": "0.0.1-alpha.437"
392
+ "@spartan-ng/brain": "0.0.1-alpha.439"
384
393
  }
385
394
  },
386
395
  "slider": {
387
396
  "internalName": "ui-slider-helm",
388
397
  "peerDependencies": {
389
398
  "@angular/core": ">=19.0.0",
390
- "@spartan-ng/brain": "0.0.1-alpha.437",
399
+ "@spartan-ng/brain": "0.0.1-alpha.439",
400
+ "clsx": "^2.1.1"
401
+ }
402
+ },
403
+ "togglegroup": {
404
+ "internalName": "ui-toggle-group-helm",
405
+ "peerDependencies": {
406
+ "@angular/core": ">=18.0.0",
407
+ "@spartan-ng/brain": "0.0.1-alpha.439",
408
+ "class-variance-authority": "^0.7.0",
409
+ "clsx": "^2.1.1"
410
+ }
411
+ },
412
+ "inputotp": {
413
+ "internalName": "ui-input-otp-helm",
414
+ "peerDependencies": {
415
+ "@angular/cdk": "19.2.2",
416
+ "@angular/core": ">=19.0.0",
417
+ "@ng-icons/core": "29.10.0",
418
+ "@ng-icons/lucide": "30.3.0",
419
+ "@spartan-ng/brain": "0.0.1-alpha.439",
420
+ "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
391
421
  "clsx": "^2.1.1"
392
422
  }
393
423
  }
@@ -1,19 +0,0 @@
1
- import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { BrnSliderInputDirective } from '@spartan-ng/brain/slider';
4
- import type { ClassValue } from 'clsx';
5
-
6
- @Directive({
7
- selector: 'input[hlmSliderInput], input[brnSliderInput]',
8
- standalone: true,
9
- hostDirectives: [BrnSliderInputDirective],
10
- host: {
11
- '[class]': '_computedClass()',
12
- },
13
- })
14
- export class HlmSliderInputDirective {
15
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
16
- protected _computedClass = computed(() =>
17
- hlm('w-full h-5 -top-1.5 left-0 opacity-0 absolute cursor-pointer transition-all', this.userClass()),
18
- );
19
- }
@@ -1,27 +0,0 @@
1
- import { Directive, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { BRN_SLIDER, BrnSliderThumbDirective } from '@spartan-ng/brain/slider';
4
- import type { ClassValue } from 'clsx';
5
-
6
- @Directive({
7
- selector: 'hlm-slider-thumb, brn-slider-thumb [hlm]',
8
- standalone: true,
9
- host: {
10
- '[class]': '_computedClass()',
11
- '[attr.dir]': '_direction()',
12
- },
13
- hostDirectives: [BrnSliderThumbDirective],
14
- })
15
- export class HlmSliderThumbDirective {
16
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
- protected _computedClass = computed(() =>
18
- hlm(
19
- '-translate-y-1/2 h-5 w-5 absolute rounded-full top-1/2 ltr:left-0 rtl:right-0 bg-secondary border-2 border-black cursor-pointer pointer-events-none transition-all',
20
- this._brnSlider.brnSliderTrack()?.brnSliderInput()?.isFocused() ? 'ring-2 ring-gray-400' : '',
21
- this.userClass(),
22
- ),
23
- );
24
- protected _direction = computed(() => this._brnSlider.direction());
25
-
26
- private readonly _brnSlider = inject(BRN_SLIDER);
27
- }
@@ -1,29 +0,0 @@
1
- import { Directive, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { BRN_SLIDER, BrnSliderTickMarkDirective } from '@spartan-ng/brain/slider';
4
- import type { ClassValue } from 'clsx';
5
-
6
- @Directive({
7
- selector: '[hlmSliderTickMark]',
8
- standalone: true,
9
- host: {
10
- '[class]': '_computedClass()',
11
- '[attr.dir]': '_direction()',
12
- },
13
- hostDirectives: [{ directive: BrnSliderTickMarkDirective, inputs: ['data'] }],
14
- })
15
- export class HlmSliderTickMarkDirective {
16
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
- public readonly active = input<boolean>();
18
-
19
- protected _computedClass = computed(() =>
20
- hlm(
21
- 'absolute w-1 h-1 top-0.5 rounded-full rtl:right-0',
22
- this.active() ? 'bg-secondary' : 'bg-primary',
23
- this.userClass(),
24
- ),
25
- );
26
- protected _direction = computed(() => this._brnSlider.direction());
27
-
28
- private readonly _brnSlider = inject(BRN_SLIDER);
29
- }
@@ -1,17 +0,0 @@
1
- import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- @Directive({
6
- selector: '[hlmSliderTickMarks]',
7
- standalone: true,
8
- host: {
9
- '[class]': '_computedClass()',
10
- },
11
- })
12
- export class HlmSliderTickMarksDirective {
13
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
14
- protected _computedClass = computed(() =>
15
- hlm('h-full w-full relative -top-4 cursor-pointer pointer-events-none transition-all', this.userClass()),
16
- );
17
- }
@@ -1,26 +0,0 @@
1
- import { Directive, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { BRN_SLIDER, BrnSliderTrackActiveFillDirective } from '@spartan-ng/brain/slider';
4
- import type { ClassValue } from 'clsx';
5
-
6
- @Directive({
7
- selector: '[hlmSliderTrackActiveFill]',
8
- standalone: true,
9
- hostDirectives: [BrnSliderTrackActiveFillDirective],
10
- host: {
11
- '[class]': '_computedClass()',
12
- '[attr.dir]': '_direction()',
13
- },
14
- })
15
- export class HlmSliderTrackActiveFillDirective {
16
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
17
- protected _computedClass = computed(() =>
18
- hlm(
19
- 'h-full w-full absolute top-0 pointer-events-none bg-primary ltr:origin-left rtl:origin-right transition-all scale-x-0',
20
- this.userClass(),
21
- ),
22
- );
23
- protected _direction = computed(() => this._brnSlider.direction());
24
-
25
- private readonly _brnSlider = inject(BRN_SLIDER);
26
- }
@@ -1,20 +0,0 @@
1
- import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- @Directive({
6
- selector: '[hlmSliderTrackActive]',
7
- standalone: true,
8
- host: {
9
- '[class]': '_computedClass()',
10
- },
11
- })
12
- export class HlmSliderTrackActiveDirective {
13
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
14
- protected _computedClass = computed(() =>
15
- hlm(
16
- 'h-full w-full relative -top-2 pointer-events-none overflow-hidden rounded-full transition-all',
17
- this.userClass(),
18
- ),
19
- );
20
- }
@@ -1,17 +0,0 @@
1
- import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- @Directive({
6
- selector: '[hlmSliderTrackInactive]',
7
- standalone: true,
8
- host: {
9
- '[class]': '_computedClass()',
10
- },
11
- })
12
- export class HlmSliderTrackInactiveDirective {
13
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
14
- protected _computedClass = computed(() =>
15
- hlm('w-full h-full bg-secondary rounded-full transition-all', this.userClass()),
16
- );
17
- }
@@ -1,54 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import { BRN_SLIDER, BRN_SLIDER_TRACK, BrnSliderTrackDirective } from '@spartan-ng/brain/slider';
4
- import type { ClassValue } from 'clsx';
5
- import { HlmSliderTickMarkDirective } from './hlm-slider-tick-mark.directive';
6
- import { HlmSliderTickMarksDirective } from './hlm-slider-tick-marks.directive';
7
- import { HlmSliderTrackActiveFillDirective } from './hlm-slider-track-active-fill.directive';
8
- import { HlmSliderTrackActiveDirective } from './hlm-slider-track-active.directive';
9
- import { HlmSliderTrackInactiveDirective } from './hlm-slider-track-inactive.directive';
10
-
11
- @Component({
12
- selector: 'hlm-slider-track, brn-slider-track [hlm]',
13
- changeDetection: ChangeDetectionStrategy.OnPush,
14
- template: `
15
- <ng-content></ng-content>
16
- <div class="flex w-full flex-wrap">
17
- <div hlmSliderTrackInactive></div>
18
- <div hlmSliderTrackActive>
19
- <div hlmSliderTrackActiveFill></div>
20
- </div>
21
- @if (_brnSlider.showTickMarks()) {
22
- <div hlmSliderTickMarks>
23
- @for (tickMark of _brnSliderTrack.tickMarks(); track $index) {
24
- <div
25
- hlmSliderTickMark
26
- [data]="{ tickMarkIndex: $index, totalTickMarks: _brnSliderTrack.tickMarks().length }"
27
- [active]="tickMark"
28
- ></div>
29
- }
30
- </div>
31
- }
32
- </div>
33
- `,
34
- host: {
35
- '[class]': '_computedClass()',
36
- },
37
- hostDirectives: [BrnSliderTrackDirective],
38
- imports: [
39
- HlmSliderTrackInactiveDirective,
40
- HlmSliderTrackActiveDirective,
41
- HlmSliderTrackActiveFillDirective,
42
- HlmSliderTickMarksDirective,
43
- HlmSliderTickMarkDirective,
44
- ],
45
- })
46
- export class HlmSliderTrackComponent {
47
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
48
- protected _computedClass = computed(() =>
49
- hlm('flex w-full h-2 px-3 self-center relative transition-all', this.userClass()),
50
- );
51
-
52
- protected readonly _brnSlider = inject(BRN_SLIDER);
53
- protected readonly _brnSliderTrack = inject(BRN_SLIDER_TRACK, { host: true });
54
- }
@@ -1,20 +0,0 @@
1
- import { Directive, computed, input } from '@angular/core';
2
- import { hlm } from '@spartan-ng/brain/core';
3
- import type { ClassValue } from 'clsx';
4
-
5
- @Directive({
6
- selector: 'brn-toggle-group[hlm],[hlmToggleGroup]',
7
- standalone: true,
8
- host: {
9
- '[class]': '_computedClass()',
10
- },
11
- })
12
- export class HlmToggleGroupDirective {
13
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
14
- protected readonly _computedClass = computed(() =>
15
- hlm(
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
- this.userClass(),
18
- ),
19
- );
20
- }