@spartan-ng/cli 0.0.1-alpha.361 → 0.0.1-alpha.362
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.
- package/package.json +1 -1
- package/src/generators/base/versions.d.ts +20 -20
- package/src/generators/base/versions.js +20 -20
- package/src/generators/theme/libs/supported-theme-generator-map.js +24 -0
- package/src/generators/theme/libs/supported-theme-generator-map.js.map +1 -1
- package/src/generators/ui/add-dependent-primitive.d.ts +1 -0
- package/src/generators/ui/add-dependent-primitive.js +36 -0
- package/src/generators/ui/add-dependent-primitive.js.map +1 -0
- package/src/generators/ui/generator.js +3 -49
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.component.ts.template +38 -0
- package/src/generators/ui/libs/ui-button-helm/files/.DS_Store.template +0 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/.DS_Store.template +0 -0
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/index.ts.template +6 -6
- package/src/generators/ui/libs/ui-slider-helm/files/index.ts.template +11 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template +19 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template +27 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template +29 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-marks.directive.ts.template +17 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active-fill.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active.directive.ts.template +20 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-inactive.directive.ts.template +20 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template +55 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +28 -0
- package/src/generators/ui/libs/{ui-form-field → ui-slider-helm}/generator.js +1 -1
- package/src/generators/ui/libs/ui-slider-helm/generator.js.map +1 -0
- package/src/generators/ui/primivite-deps.d.ts +3 -0
- package/src/generators/ui/primivite-deps.js +58 -0
- package/src/generators/ui/primivite-deps.js.map +1 -0
- package/src/generators/ui/primivites.d.ts +1 -0
- package/src/generators/ui/primivites.js +3 -0
- package/src/generators/ui/primivites.js.map +1 -0
- package/src/generators/ui/supported-ui-libraries.json +71 -61
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.directive.ts.template +0 -25
- package/src/generators/ui/libs/ui-form-field/files/index.ts.template +0 -14
- package/src/generators/ui/libs/ui-form-field/files/lib/directives/hlm-error.directive.ts.template +0 -10
- package/src/generators/ui/libs/ui-form-field/files/lib/directives/hlm-hint.directive.ts.template +0 -10
- package/src/generators/ui/libs/ui-form-field/files/lib/hlm-form-field.component.ts.template +0 -41
- package/src/generators/ui/libs/ui-form-field/generator.js.map +0 -1
- /package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-ellipsis.componet.ts.template → hlm-pagination-ellipsis.component.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-next.componet.ts.template → hlm-pagination-next.component.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-previous.componet.ts.template → hlm-pagination-previous.component.ts.template} +0 -0
- /package/src/generators/ui/libs/{ui-form-field → ui-slider-helm}/generator.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare const FALLBACK_ANGULAR_VERSION = "^18.0.0";
|
|
2
2
|
export declare const NG_ICONS_VERSION = "^25.1.0";
|
|
3
|
-
export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.
|
|
4
|
-
export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.
|
|
5
|
-
export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.
|
|
6
|
-
export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.
|
|
7
|
-
export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.
|
|
8
|
-
export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.
|
|
9
|
-
export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.
|
|
10
|
-
export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.
|
|
11
|
-
export declare const SPARTAN_LABEL_BRAIN_VERSION = "0.0.1-alpha.
|
|
12
|
-
export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.
|
|
13
|
-
export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.
|
|
14
|
-
export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.
|
|
15
|
-
export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.
|
|
16
|
-
export declare const SPARTAN_SELECT_BRAIN_VERSION = "0.0.1-alpha.
|
|
17
|
-
export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.
|
|
18
|
-
export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.
|
|
19
|
-
export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.
|
|
20
|
-
export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.
|
|
21
|
-
export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.
|
|
22
|
-
export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.
|
|
3
|
+
export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
4
|
+
export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
5
|
+
export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
6
|
+
export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
7
|
+
export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
8
|
+
export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.354";
|
|
9
|
+
export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
10
|
+
export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
11
|
+
export declare const SPARTAN_LABEL_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
12
|
+
export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
13
|
+
export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
14
|
+
export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
15
|
+
export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
16
|
+
export declare const SPARTAN_SELECT_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
17
|
+
export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
18
|
+
export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.354";
|
|
19
|
+
export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.354";
|
|
20
|
+
export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.354";
|
|
21
|
+
export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.354";
|
|
22
|
+
export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.354";
|
|
23
23
|
export declare const TAILWIND_MERGE_VERSION = "^2.2.0";
|
|
24
24
|
export declare const TAILWINDCSS_VERSION = "^3.0.2";
|
|
25
25
|
export declare const TAILWIND_ANIMATE_VERSION = "^1.0.6";
|
|
@@ -6,26 +6,26 @@ exports.FALLBACK_ANGULAR_VERSION = '^18.0.0';
|
|
|
6
6
|
// ng-icon dependency
|
|
7
7
|
exports.NG_ICONS_VERSION = '^25.1.0';
|
|
8
8
|
// spartan dependencies
|
|
9
|
-
exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.
|
|
10
|
-
exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.
|
|
11
|
-
exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.
|
|
12
|
-
exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.
|
|
13
|
-
exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.
|
|
14
|
-
exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.
|
|
15
|
-
exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.
|
|
16
|
-
exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.
|
|
17
|
-
exports.SPARTAN_LABEL_BRAIN_VERSION = '0.0.1-alpha.
|
|
18
|
-
exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.
|
|
19
|
-
exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.
|
|
20
|
-
exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.
|
|
21
|
-
exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.
|
|
22
|
-
exports.SPARTAN_SELECT_BRAIN_VERSION = '0.0.1-alpha.
|
|
23
|
-
exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.
|
|
24
|
-
exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.
|
|
25
|
-
exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.
|
|
26
|
-
exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.
|
|
27
|
-
exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.
|
|
28
|
-
exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.
|
|
9
|
+
exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
10
|
+
exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
11
|
+
exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
12
|
+
exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
13
|
+
exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
14
|
+
exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.354';
|
|
15
|
+
exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
16
|
+
exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
17
|
+
exports.SPARTAN_LABEL_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
18
|
+
exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
19
|
+
exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
20
|
+
exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
21
|
+
exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
22
|
+
exports.SPARTAN_SELECT_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
23
|
+
exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
24
|
+
exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.354';
|
|
25
|
+
exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.354';
|
|
26
|
+
exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.354';
|
|
27
|
+
exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.354';
|
|
28
|
+
exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.354';
|
|
29
29
|
// dev dependencies
|
|
30
30
|
exports.TAILWIND_MERGE_VERSION = '^2.2.0';
|
|
31
31
|
exports.TAILWINDCSS_VERSION = '^3.0.2';
|
|
@@ -24,6 +24,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
24
24
|
--input: 240 5.9% 90%;
|
|
25
25
|
--ring: 240 5.9% 10%;
|
|
26
26
|
--radius: ${radius}rem;
|
|
27
|
+
color-scheme: light;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.dark${prefix} {
|
|
@@ -46,6 +47,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
46
47
|
--border: 240 3.7% 15.9%;
|
|
47
48
|
--input: 240 3.7% 15.9%;
|
|
48
49
|
--ring: 240 4.9% 83.9%;
|
|
50
|
+
color-scheme: dark;
|
|
49
51
|
}
|
|
50
52
|
`,
|
|
51
53
|
slate: (radius, prefix = '') => `
|
|
@@ -70,6 +72,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
70
72
|
--destructive-foreground: 210 40% 98%;
|
|
71
73
|
--ring: 222.2 84% 4.9%;
|
|
72
74
|
--radius: ${radius}rem;
|
|
75
|
+
color-scheme: light;
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
.dark${prefix} {
|
|
@@ -92,6 +95,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
92
95
|
--destructive: 0 62.8% 30.6%;
|
|
93
96
|
--destructive-foreground: 210 40% 98%;
|
|
94
97
|
--ring: 212.7 26.8% 83.9;
|
|
98
|
+
color-scheme: dark;
|
|
95
99
|
}
|
|
96
100
|
`,
|
|
97
101
|
stone: (radius, prefix = '') => `
|
|
@@ -116,6 +120,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
116
120
|
--destructive-foreground: 60 9.1% 97.8%;
|
|
117
121
|
--ring: 20 14.3% 4.1%;
|
|
118
122
|
--radius: ${radius}rem;
|
|
123
|
+
color-scheme: light;
|
|
119
124
|
}
|
|
120
125
|
|
|
121
126
|
.dark${prefix} {
|
|
@@ -138,6 +143,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
138
143
|
--destructive: 0 62.8% 30.6%;
|
|
139
144
|
--destructive-foreground: 60 9.1% 97.8%;
|
|
140
145
|
--ring: 24 5.7% 82.9%;
|
|
146
|
+
color-scheme: dark;
|
|
141
147
|
}
|
|
142
148
|
`,
|
|
143
149
|
gray: (radius, prefix = '') => `
|
|
@@ -162,6 +168,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
162
168
|
--destructive-foreground: 210 20% 98%;
|
|
163
169
|
--ring: 224 71.4% 4.1%;
|
|
164
170
|
--radius: ${radius}rem;
|
|
171
|
+
color-scheme: light;
|
|
165
172
|
}
|
|
166
173
|
|
|
167
174
|
.dark${prefix} {
|
|
@@ -184,6 +191,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
184
191
|
--destructive: 0 62.8% 30.6%;
|
|
185
192
|
--destructive-foreground: 210 20% 98%;
|
|
186
193
|
--ring: 216 12.2% 83.9%;
|
|
194
|
+
color-scheme: dark;
|
|
187
195
|
}
|
|
188
196
|
`,
|
|
189
197
|
neutral: (radius, prefix = '') => `
|
|
@@ -208,6 +216,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
208
216
|
--destructive-foreground: 0 0% 98%;
|
|
209
217
|
--ring: 0 0% 3.9%;
|
|
210
218
|
--radius: ${radius}rem;
|
|
219
|
+
color-scheme: light;
|
|
211
220
|
}
|
|
212
221
|
|
|
213
222
|
.dark${prefix} {
|
|
@@ -230,6 +239,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
230
239
|
--destructive: 0 62.8% 30.6%;
|
|
231
240
|
--destructive-foreground: 0 0% 98%;
|
|
232
241
|
--ring: 0 0% 83.1%;
|
|
242
|
+
color-scheme: dark;
|
|
233
243
|
}
|
|
234
244
|
`,
|
|
235
245
|
red: (radius, prefix = '') => `
|
|
@@ -254,6 +264,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
254
264
|
--destructive-foreground: 0 0% 98%;
|
|
255
265
|
--ring: 0 72.2% 50.6%;
|
|
256
266
|
--radius: ${radius}rem;
|
|
267
|
+
color-scheme: light;
|
|
257
268
|
}
|
|
258
269
|
|
|
259
270
|
.dark${prefix} {
|
|
@@ -276,6 +287,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
276
287
|
--destructive: 0 62.8% 30.6%;
|
|
277
288
|
--destructive-foreground: 0 0% 98%;
|
|
278
289
|
--ring: 0 72.2% 50.6%;
|
|
290
|
+
color-scheme: dark;
|
|
279
291
|
}
|
|
280
292
|
`,
|
|
281
293
|
rose: (radius, prefix = '') => `
|
|
@@ -300,6 +312,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
300
312
|
--input: 240 5.9% 90%;
|
|
301
313
|
--ring: 346.8 77.2% 49.8%;
|
|
302
314
|
--radius: ${radius}rem;
|
|
315
|
+
color-scheme: light;
|
|
303
316
|
}
|
|
304
317
|
|
|
305
318
|
.dark${prefix} {
|
|
@@ -322,6 +335,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
322
335
|
--border: 240 3.7% 15.9%;
|
|
323
336
|
--input: 240 3.7% 15.9%;
|
|
324
337
|
--ring: 346.8 77.2% 49.8%;
|
|
338
|
+
color-scheme: dark;
|
|
325
339
|
}
|
|
326
340
|
`,
|
|
327
341
|
blue: (radius, prefix = '') => `
|
|
@@ -346,6 +360,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
346
360
|
--input: 240 5.9% 90%;
|
|
347
361
|
--ring: 346.8 77.2% 49.8%;
|
|
348
362
|
--radius: ${radius}rem;
|
|
363
|
+
color-scheme: light;
|
|
349
364
|
}
|
|
350
365
|
|
|
351
366
|
.dark${prefix} {
|
|
@@ -368,6 +383,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
368
383
|
--border: 240 3.7% 15.9%;
|
|
369
384
|
--input: 240 3.7% 15.9%;
|
|
370
385
|
--ring: 346.8 77.2% 49.8%;
|
|
386
|
+
color-scheme: dark;
|
|
371
387
|
}
|
|
372
388
|
`,
|
|
373
389
|
green: (radius, prefix = '') => `
|
|
@@ -392,6 +408,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
392
408
|
--input: 240 5.9% 90%;
|
|
393
409
|
--ring: 142.1 76.2% 36.3%;
|
|
394
410
|
--radius: ${radius}rem;
|
|
411
|
+
color-scheme: light;
|
|
395
412
|
}
|
|
396
413
|
|
|
397
414
|
.dark${prefix} {
|
|
@@ -414,6 +431,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
414
431
|
--border: 240 3.7% 15.9%;
|
|
415
432
|
--input: 240 3.7% 15.9%;
|
|
416
433
|
--ring: 142.4 71.8% 29.2%;
|
|
434
|
+
color-scheme: dark;
|
|
417
435
|
}
|
|
418
436
|
`,
|
|
419
437
|
orange: (radius, prefix = '') => `
|
|
@@ -438,6 +456,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
438
456
|
--input: 20 5.9% 90%;
|
|
439
457
|
--ring: 24.6 95% 53.1%;
|
|
440
458
|
--radius: ${radius}rem;
|
|
459
|
+
color-scheme: light;
|
|
441
460
|
}
|
|
442
461
|
|
|
443
462
|
.dark${prefix} {
|
|
@@ -460,6 +479,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
460
479
|
--border: 12 6.5% 15.1%;
|
|
461
480
|
--input: 12 6.5% 15.1%;
|
|
462
481
|
--ring: 20.5 90.2% 48.2%;
|
|
482
|
+
color-scheme: dark;
|
|
463
483
|
}
|
|
464
484
|
`,
|
|
465
485
|
yellow: (radius, prefix = '') => `
|
|
@@ -484,6 +504,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
484
504
|
--destructive-foreground: 60 9.1% 97.8%;
|
|
485
505
|
--ring: 20 14.3% 4.1%;
|
|
486
506
|
--radius: ${radius}rem;
|
|
507
|
+
color-scheme: light;
|
|
487
508
|
}
|
|
488
509
|
|
|
489
510
|
.dark${prefix} {
|
|
@@ -506,6 +527,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
506
527
|
--destructive: 0 62.8% 30.6%;
|
|
507
528
|
--destructive-foreground: 60 9.1% 97.8%;
|
|
508
529
|
--ring: 35.5 91.7% 32.9%;
|
|
530
|
+
color-scheme: dark;
|
|
509
531
|
}
|
|
510
532
|
`,
|
|
511
533
|
violet: (radius, prefix = '') => `
|
|
@@ -530,6 +552,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
530
552
|
--destructive-foreground: 210 20% 98%;
|
|
531
553
|
--ring: 262.1 83.3% 57.8%;
|
|
532
554
|
--radius: ${radius}rem;
|
|
555
|
+
color-scheme: light;
|
|
533
556
|
}
|
|
534
557
|
|
|
535
558
|
.dark${prefix} {
|
|
@@ -552,6 +575,7 @@ exports.SupportedThemeGeneratorMap = {
|
|
|
552
575
|
--destructive: 0 62.8% 30.6%;
|
|
553
576
|
--destructive-foreground: 210 20% 98%;
|
|
554
577
|
--ring: 263.4 70% 50.4%;
|
|
578
|
+
color-scheme: dark;
|
|
555
579
|
}
|
|
556
580
|
`,
|
|
557
581
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-theme-generator-map.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/theme/libs/supported-theme-generator-map.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACzC,IAAI,EAAE,CAAC,MAAc,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC;OACjC,MAAM;;;;;;;;;;;;;;;;;;;;gBAoBG,MAAM
|
|
1
|
+
{"version":3,"file":"supported-theme-generator-map.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/theme/libs/supported-theme-generator-map.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACzC,IAAI,EAAE,CAAC,MAAc,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;;;;;;;;;;;;;;;;;;;;gBAoBG,MAAM;;;;SAIb,MAAM;;;;;;;;;;;;;;;;;;;;;;CAsBd;IACA,KAAK,EAAE,CAAC,MAAc,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC;OAClC,MAAM;;;;;;;;;;;;;;;;;;;;gBAoBG,MAAM;;;;SAIb,MAAM;;;;;;;;;;;;;;;;;;;;;;CAsBd;IACA,MAAM,EAAE,CAAC,MAAc,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC;OACnC,MAAM;;;;;;;;;;;;;;;;;;;;gBAoBG,MAAM;;;;SAIb,MAAM;;;;;;;;;;;;;;;;;;;;;;CAsBd;IACA,MAAM,EAAE,CAAC,MAAc,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC;OACnC,MAAM;;;;;;;;;;;;;;;;;;;;gBAoBG,MAAM;;;;SAIb,MAAM;;;;;;;;;;;;;;;;;;;;;;CAsBd;IACA,MAAM,EAAE,CAAC,MAAc,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,CAAC;OACnC,MAAM;;;;;;;;;;;;;;;;;;;;gBAoBG,MAAM;;;;SAIb,MAAM;;;;;;;;;;;;;;;;;;;;;;CAsBd;CACA,CAAC;AAEW,QAAA,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,kCAA0B,CAAC,CAAC;AAI1D,QAAA,cAAc,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const addDependentPrimitives: (primitivesToCreate: string[]) => Promise<void>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addDependentPrimitives = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const enquirer_1 = require("enquirer");
|
|
6
|
+
const primivite_deps_1 = require("./primivite-deps");
|
|
7
|
+
const addDependentPrimitives = (primitivesToCreate) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
8
|
+
var _a, e_1, _b, _c;
|
|
9
|
+
const dependentPrimitives = (0, primivite_deps_1.getDependentPrimitives)(primitivesToCreate);
|
|
10
|
+
try {
|
|
11
|
+
for (var _d = true, dependentPrimitives_1 = tslib_1.__asyncValues(dependentPrimitives), dependentPrimitives_1_1; dependentPrimitives_1_1 = yield dependentPrimitives_1.next(), _a = dependentPrimitives_1_1.done, !_a; _d = true) {
|
|
12
|
+
_c = dependentPrimitives_1_1.value;
|
|
13
|
+
_d = false;
|
|
14
|
+
const primitive = _c;
|
|
15
|
+
const promptName = `install${primitive.charAt(0).toUpperCase() + primitive.slice(1)}`;
|
|
16
|
+
const installPrimitive = (yield (0, enquirer_1.prompt)({
|
|
17
|
+
type: 'confirm',
|
|
18
|
+
name: promptName,
|
|
19
|
+
initial: true,
|
|
20
|
+
message: `Some of the primitives you are trying to install depend on the ${primitive} primitive. Do you want to add it to your project?`,
|
|
21
|
+
}))[promptName];
|
|
22
|
+
if (installPrimitive) {
|
|
23
|
+
primitivesToCreate.push(primitive);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
28
|
+
finally {
|
|
29
|
+
try {
|
|
30
|
+
if (!_d && !_a && (_b = dependentPrimitives_1.return)) yield _b.call(dependentPrimitives_1);
|
|
31
|
+
}
|
|
32
|
+
finally { if (e_1) throw e_1.error; }
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
exports.addDependentPrimitives = addDependentPrimitives;
|
|
36
|
+
//# sourceMappingURL=add-dependent-primitive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-dependent-primitive.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/add-dependent-primitive.ts"],"names":[],"mappings":";;;;AAAA,uCAAkC;AAClC,qDAA0D;AAGnD,MAAM,sBAAsB,GAAG,CAAO,kBAA4B,EAAE,EAAE;;IAC5E,MAAM,mBAAmB,GAAG,IAAA,uCAAsB,EAAC,kBAAiC,CAAC,CAAC;;QAEtF,KAA8B,eAAA,wBAAA,sBAAA,mBAAmB,CAAA,yBAAA,mHAAE,CAAC;YAAtB,mCAAmB;YAAnB,WAAmB;YAAtC,MAAM,SAAS,KAAA,CAAA;YACzB,MAAM,UAAU,GAAG,UAAU,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YACtF,MAAM,gBAAgB,GAAG,CACxB,MAAM,IAAA,iBAAM,EAAC;gBACZ,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,kEAAkE,SAAS,oDAAoD;aACxI,CAAC,CACF,CAAC,UAAU,CAAC,CAAC;YACd,IAAI,gBAAgB,EAAE,CAAC;gBACtB,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACpC,CAAC;QACF,CAAC;;;;;;;;;AACF,CAAC,CAAA,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC"}
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const enquirer_1 = require("enquirer");
|
|
6
6
|
const versions_1 = require("../base/versions");
|
|
7
|
+
const add_dependent_primitive_1 = require("./add-dependent-primitive");
|
|
7
8
|
function hlmUIGenerator(tree, options) {
|
|
8
9
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
10
|
const tasks = [];
|
|
@@ -19,7 +20,7 @@ function hlmUIGenerator(tree, options) {
|
|
|
19
20
|
required: true,
|
|
20
21
|
name: 'primitives',
|
|
21
22
|
message: 'Choose which primitives you want to copy',
|
|
22
|
-
choices: ['all', ...availablePrimitiveNames],
|
|
23
|
+
choices: ['all', ...availablePrimitiveNames.sort()],
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
tasks.push(...(yield createPrimitiveLibraries(response, availablePrimitiveNames, availablePrimitives, tree, options)));
|
|
@@ -33,17 +34,7 @@ function createPrimitiveLibraries(response, availablePrimitiveNames, availablePr
|
|
|
33
34
|
const primitivesToCreate = allPrimitivesSelected ? availablePrimitiveNames : response.primitives;
|
|
34
35
|
const tasks = [];
|
|
35
36
|
if (!response.primitives.includes('all')) {
|
|
36
|
-
yield
|
|
37
|
-
'accordion',
|
|
38
|
-
'alert',
|
|
39
|
-
'command',
|
|
40
|
-
'menu',
|
|
41
|
-
'checkbox',
|
|
42
|
-
'pagination',
|
|
43
|
-
'select',
|
|
44
|
-
'sonner',
|
|
45
|
-
]);
|
|
46
|
-
yield addButtonForDependentPrimitive(primitivesToCreate, ['alertdialog', 'command', 'pagination']);
|
|
37
|
+
yield (0, add_dependent_primitive_1.addDependentPrimitives)(primitivesToCreate);
|
|
47
38
|
}
|
|
48
39
|
yield replaceContextAndMenuBar(primitivesToCreate, allPrimitivesSelected);
|
|
49
40
|
if (primitivesToCreate.includes('collapsible')) {
|
|
@@ -77,43 +68,6 @@ function createPrimitiveLibraries(response, availablePrimitiveNames, availablePr
|
|
|
77
68
|
return tasks;
|
|
78
69
|
});
|
|
79
70
|
}
|
|
80
|
-
const addIconForDependentPrimitive = (primitivesToCreate, primitivesDependingOnIcon) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
81
|
-
if (primitivesToCreate.includes('icon')) {
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (primitivesDependingOnIcon.some((primitive) => primitivesToCreate.includes(primitive))) {
|
|
85
|
-
const installIcon = (yield (0, enquirer_1.prompt)({
|
|
86
|
-
type: 'confirm',
|
|
87
|
-
name: 'installIcon',
|
|
88
|
-
initial: true,
|
|
89
|
-
message: 'Some of the primitives you are trying to install depend on the icon primitive. Do you want to add it to your project?',
|
|
90
|
-
})
|
|
91
|
-
// biome-ignore lint/complexity/useLiteralKeys: <explanation>
|
|
92
|
-
)['installIcon'];
|
|
93
|
-
;
|
|
94
|
-
if (installIcon) {
|
|
95
|
-
primitivesToCreate.push('icon');
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
const addButtonForDependentPrimitive = (primitivesToCreate, primitivesDependingOnBtn) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
-
if (primitivesToCreate.includes('button')) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
if (primitivesDependingOnBtn.some((primitive) => primitivesToCreate.includes(primitive))) {
|
|
104
|
-
const installBtn = (yield (0, enquirer_1.prompt)({
|
|
105
|
-
type: 'confirm',
|
|
106
|
-
name: 'installBtn',
|
|
107
|
-
initial: true,
|
|
108
|
-
message: 'Some of the primitives you are trying to install depend on the button primitive. Do you want to add it to your project?',
|
|
109
|
-
})
|
|
110
|
-
// biome-ignore lint/complexity/useLiteralKeys: <explanation>
|
|
111
|
-
)['installBtn'];
|
|
112
|
-
if (installBtn) {
|
|
113
|
-
primitivesToCreate.push('button');
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
71
|
const replaceContextAndMenuBar = (primtivesToCreate_1, ...args_1) => tslib_1.__awaiter(void 0, [primtivesToCreate_1, ...args_1], void 0, function* (primtivesToCreate, silent = false) {
|
|
118
72
|
const contextIndex = primtivesToCreate.indexOf('contextmenu');
|
|
119
73
|
if (contextIndex >= 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/generator.ts"],"names":[],"mappings":";;;AAAA,uCAA+G;AAC/G,uCAAkC;AAElC,+CAAqE;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/generator.ts"],"names":[],"mappings":";;;AAAA,uC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,SAAS;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,UAAU,EAAE,OAAO,CAAC,UAAU;aAC9B,CAAC,CAAC;YAEH,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,CAAC;QAED,OAAO,KAAK,CAAC;IACd,CAAC;CAAA;AAED,MAAM,wBAAwB,GAAG,iCAAoD,EAAE,gFAA/C,iBAA2B,EAAE,MAAM,GAAG,KAAK;IAClF,MAAM,YAAY,GAAG,iBAAiB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC9D,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,IAAA,iBAAM,EAAC;gBACZ,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,4FAA4F;aACrG,CAAC,CAAC;QACJ,CAAC;QACD,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,YAAY,GAAG,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC1D,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,IAAA,iBAAM,EAAC;gBACZ,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,uFAAuF;aAChG,CAAC,CAAC;QACJ,CAAC;QACD,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;AACF,CAAC,CAAA,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { HlmAccordionContentComponent } from './lib/hlm-accordion-content.component';
|
|
4
4
|
import { HlmAccordionIconDirective } from './lib/hlm-accordion-icon.directive';
|
|
5
5
|
import { HlmAccordionItemDirective } from './lib/hlm-accordion-item.directive';
|
|
6
6
|
import { HlmAccordionTriggerDirective } from './lib/hlm-accordion-trigger.directive';
|
|
7
7
|
import { HlmAccordionDirective } from './lib/hlm-accordion.directive';
|
|
8
8
|
|
|
9
|
-
export * from './lib/hlm-accordion-content.directive';
|
|
10
9
|
export * from './lib/hlm-accordion-icon.directive';
|
|
11
10
|
export * from './lib/hlm-accordion-item.directive';
|
|
12
11
|
export * from './lib/hlm-accordion-trigger.directive';
|
|
13
12
|
export * from './lib/hlm-accordion.directive';
|
|
13
|
+
export * from './lib/hlm-accordion-content.component';
|
|
14
14
|
|
|
15
15
|
export const HlmAccordionImports = [
|
|
16
16
|
HlmAccordionDirective,
|
|
17
17
|
HlmAccordionItemDirective,
|
|
18
18
|
HlmAccordionTriggerDirective,
|
|
19
|
-
HlmAccordionContentDirective,
|
|
20
19
|
HlmAccordionIconDirective,
|
|
20
|
+
HlmAccordionContentComponent,
|
|
21
21
|
] as const;
|
|
22
22
|
|
|
23
23
|
@NgModule({
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, effect, input } from '@angular/core';
|
|
2
|
+
import { BrnAccordionContentComponent } from '@spartan-ng/ui-accordion-brain';
|
|
3
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-accordion-content',
|
|
8
|
+
template: `
|
|
9
|
+
<div [attr.inert]="_addInert()" style="overflow: hidden">
|
|
10
|
+
<p [class]="_contentClass()">
|
|
11
|
+
<ng-content />
|
|
12
|
+
</p>
|
|
13
|
+
</div>
|
|
14
|
+
`,
|
|
15
|
+
standalone: true,
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
+
encapsulation: ViewEncapsulation.None,
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
export class HlmAccordionContentComponent extends BrnAccordionContentComponent {
|
|
23
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
24
|
+
protected readonly _computedClass = computed(() => {
|
|
25
|
+
const gridRows = this.state() === 'open' ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]';
|
|
26
|
+
return hlm('text-sm transition-all grid', gridRows, this.userClass());
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
effect(
|
|
32
|
+
() => {
|
|
33
|
+
this.setClassToCustomElement('pt-1 pb-4');
|
|
34
|
+
},
|
|
35
|
+
{ allowSignalWrites: true },
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Directive, type DoCheck,
|
|
1
|
+
import { Directive, type DoCheck, Injector, Input, computed, effect, inject, input, signal } from '@angular/core';
|
|
2
2
|
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { BrnFormFieldControl } from '@spartan-ng/ui-form-field-brain';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
import { HlmPaginationContentDirective } from './lib/hlm-pagination-content.directive';
|
|
4
|
-
import { HlmPaginationEllipsisComponent } from './lib/hlm-pagination-ellipsis.
|
|
4
|
+
import { HlmPaginationEllipsisComponent } from './lib/hlm-pagination-ellipsis.component';
|
|
5
5
|
import { HlmPaginationItemDirective } from './lib/hlm-pagination-item.directive';
|
|
6
6
|
import { HlmPaginationLinkDirective } from './lib/hlm-pagination-link.directive';
|
|
7
|
-
import { HlmPaginationNextComponent } from './lib/hlm-pagination-next.
|
|
8
|
-
import { HlmPaginationPreviousComponent } from './lib/hlm-pagination-previous.
|
|
7
|
+
import { HlmPaginationNextComponent } from './lib/hlm-pagination-next.component';
|
|
8
|
+
import { HlmPaginationPreviousComponent } from './lib/hlm-pagination-previous.component';
|
|
9
9
|
import { HlmPaginationDirective } from './lib/hlm-pagination.directive';
|
|
10
10
|
|
|
11
11
|
export * from './lib/hlm-pagination-content.directive';
|
|
12
|
-
export * from './lib/hlm-pagination-ellipsis.
|
|
12
|
+
export * from './lib/hlm-pagination-ellipsis.component';
|
|
13
13
|
export * from './lib/hlm-pagination-item.directive';
|
|
14
14
|
export * from './lib/hlm-pagination-link.directive';
|
|
15
|
-
export * from './lib/hlm-pagination-next.
|
|
16
|
-
export * from './lib/hlm-pagination-previous.
|
|
15
|
+
export * from './lib/hlm-pagination-next.component';
|
|
16
|
+
export * from './lib/hlm-pagination-previous.component';
|
|
17
17
|
export * from './lib/hlm-pagination.directive';
|
|
18
18
|
|
|
19
19
|
export const HlmPaginationImports = [
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HlmSliderInputDirective } from './lib/hlm-slider-input.directive';
|
|
2
|
+
import { HlmSliderThumbDirective } from './lib/hlm-slider-thumb.directive';
|
|
3
|
+
import { HlmSliderTrackComponent } from './lib/hlm-slider-track.component';
|
|
4
|
+
import { HlmSliderComponent } from './lib/hlm-slider.component';
|
|
5
|
+
|
|
6
|
+
export const HlmSliderImports = [
|
|
7
|
+
HlmSliderComponent,
|
|
8
|
+
HlmSliderTrackComponent,
|
|
9
|
+
HlmSliderInputDirective,
|
|
10
|
+
HlmSliderThumbDirective,
|
|
11
|
+
] as const;
|
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { BrnSliderInputDirective } from '@spartan-ng/ui-slider-brain';
|
|
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
|
+
}
|
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { BRN_SLIDER, BrnSliderThumbDirective } from '@spartan-ng/ui-slider-brain';
|
|
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
|
+
}
|
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { BRN_SLIDER, BrnSliderTickMarkDirective } from '@spartan-ng/ui-slider-brain';
|
|
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
|
+
}
|