@spartan-ng/cli 0.0.1-alpha.556 → 0.0.1-alpha.558
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/ui/libs/accordion/files/lib/hlm-accordion-content.ts.template +2 -3
- package/src/generators/ui/libs/accordion/files/lib/hlm-accordion-item.ts.template +3 -3
- package/src/generators/ui/libs/accordion/files/lib/hlm-accordion-trigger.ts.template +1 -1
- package/src/generators/ui/libs/accordion/files/lib/hlm-accordion.ts.template +1 -1
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog-cancel-button.ts.template +1 -1
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog-content.ts.template +2 -3
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog-description.ts.template +1 -1
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog-footer.ts.template +5 -6
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog-header.ts.template +5 -6
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog-title.ts.template +1 -1
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog.ts.template +7 -8
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete-group.ts.template +2 -2
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete-item.ts.template +4 -4
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete-list.ts.template +5 -5
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete.ts.template +1 -1
- package/src/generators/ui/libs/avatar/files/lib/hlm-avatar.ts.template +1 -2
- package/src/generators/ui/libs/breadcrumb/files/lib/hlm-breadcrumb-ellipsis.ts.template +1 -1
- package/src/generators/ui/libs/breadcrumb/files/lib/hlm-breadcrumb-separator.ts.template +1 -1
- package/src/generators/ui/libs/button-group/files/lib/hlm-button-group-separator.ts.template +1 -1
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar-multi.ts.template +1 -1
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar-range.ts.template +1 -1
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar.ts.template +1 -1
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel-content.ts.template +1 -2
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel-item.ts.template +1 -2
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel-next.ts.template +4 -14
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel-previous.ts.template +4 -14
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel-slide-display.ts.template +4 -4
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel.ts.template +1 -3
- package/src/generators/ui/libs/checkbox/files/lib/hlm-checkbox.ts.template +11 -11
- package/src/generators/ui/libs/command/files/lib/hlm-command-dialog-close-button.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-group-label.ts.template +2 -2
- package/src/generators/ui/libs/command/files/lib/hlm-command-group.ts.template +2 -2
- package/src/generators/ui/libs/command/files/lib/hlm-command-icon.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-item.ts.template +4 -4
- package/src/generators/ui/libs/command/files/lib/hlm-command-list.ts.template +5 -5
- package/src/generators/ui/libs/command/files/lib/hlm-command-search-input.ts.template +2 -2
- package/src/generators/ui/libs/command/files/lib/hlm-command-search.ts.template +5 -5
- package/src/generators/ui/libs/command/files/lib/hlm-command-separator.ts.template +2 -2
- package/src/generators/ui/libs/command/files/lib/hlm-command-shortcut.ts.template +2 -2
- package/src/generators/ui/libs/command/files/lib/hlm-command.ts.template +4 -4
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker-multi.ts.template +4 -4
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker.ts.template +4 -4
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-range-picker.ts.template +4 -4
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog-content.ts.template +2 -3
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog-description.ts.template +1 -1
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog-footer.ts.template +4 -4
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog-header.ts.template +4 -4
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog.ts.template +3 -4
- package/src/generators/ui/libs/field/files/lib/hlm-field-error.ts.template +1 -1
- package/src/generators/ui/libs/field/files/lib/hlm-field-separator.ts.template +1 -1
- package/src/generators/ui/libs/form-field/files/lib/hlm-form-field.ts.template +4 -4
- package/src/generators/ui/libs/hover-card/files/lib/hlm-hover-card-content.ts.template +1 -1
- package/src/generators/ui/libs/input/files/lib/hlm-input.ts.template +3 -3
- package/src/generators/ui/libs/input-otp/files/lib/hlm-input-otp-fake-caret.ts.template +1 -1
- package/src/generators/ui/libs/input-otp/files/lib/hlm-input-otp-separator.ts.template +4 -4
- package/src/generators/ui/libs/input-otp/files/lib/hlm-input-otp-slot.ts.template +5 -5
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-bar-item.ts.template +1 -1
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-bar.ts.template +2 -2
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-group.ts.template +2 -2
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-item-check.ts.template +5 -5
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-item-checkbox.ts.template +3 -3
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-item-radio-indicator.ts.template +5 -5
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-item-radio.ts.template +3 -3
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-item-sub-indicator.ts.template +5 -5
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-item.ts.template +5 -5
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-label.ts.template +4 -4
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-separator.ts.template +2 -2
- package/src/generators/ui/libs/menu/files/lib/hlm-menu-shortcut.ts.template +4 -4
- package/src/generators/ui/libs/menu/files/lib/hlm-menu.ts.template +2 -2
- package/src/generators/ui/libs/menu/files/lib/hlm-sub-menu.ts.template +2 -2
- package/src/generators/ui/libs/navigation-menu/files/hlm-navigation-menu-item.ts.template +1 -1
- package/src/generators/ui/libs/navigation-menu/files/hlm-navigation-menu-link.ts.template +1 -1
- package/src/generators/ui/libs/navigation-menu/files/hlm-navigation-menu-list.ts.template +3 -3
- package/src/generators/ui/libs/navigation-menu/files/hlm-navigation-menu-trigger.ts.template +1 -1
- package/src/generators/ui/libs/navigation-menu/files/hlm-navigation-menu.ts.template +3 -3
- package/src/generators/ui/libs/pagination/files/lib/hlm-numbered-pagination-query-params.ts.template +13 -13
- package/src/generators/ui/libs/pagination/files/lib/hlm-numbered-pagination.ts.template +13 -13
- package/src/generators/ui/libs/pagination/files/lib/hlm-pagination-ellipsis.ts.template +1 -1
- package/src/generators/ui/libs/pagination/files/lib/hlm-pagination-next.ts.template +1 -1
- package/src/generators/ui/libs/pagination/files/lib/hlm-pagination-previous.ts.template +1 -1
- package/src/generators/ui/libs/progress/files/lib/hlm-progress-indicator.ts.template +1 -1
- package/src/generators/ui/libs/progress/files/lib/hlm-progress.ts.template +1 -1
- package/src/generators/ui/libs/radio-group/files/lib/hlm-radio-group.ts.template +1 -1
- package/src/generators/ui/libs/radio-group/files/lib/hlm-radio-indicator.ts.template +1 -1
- package/src/generators/ui/libs/radio-group/files/lib/hlm-radio.ts.template +9 -9
- package/src/generators/ui/libs/resizable/files/lib/hlm-resizable-group.ts.template +4 -4
- package/src/generators/ui/libs/resizable/files/lib/hlm-resizable-handle.ts.template +5 -5
- package/src/generators/ui/libs/resizable/files/lib/hlm-resizable-panel.ts.template +4 -4
- package/src/generators/ui/libs/select/files/lib/hlm-select-option.ts.template +2 -2
- package/src/generators/ui/libs/select/files/lib/hlm-select-scroll-down.ts.template +1 -1
- package/src/generators/ui/libs/select/files/lib/hlm-select-scroll-up.ts.template +1 -1
- package/src/generators/ui/libs/select/files/lib/hlm-select-trigger.ts.template +1 -1
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-content.ts.template +1 -1
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-description.ts.template +1 -1
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-footer.ts.template +4 -4
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-header.ts.template +4 -4
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-title.ts.template +1 -1
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet.ts.template +3 -4
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-action.ts.template +2 -1
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-button.ts.template +2 -1
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-skeleton.ts.template +10 -11
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-sub-button.ts.template +2 -1
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-trigger.ts.template +4 -4
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar.ts.template +9 -9
- package/src/generators/ui/libs/slider/files/lib/hlm-slider.ts.template +4 -4
- package/src/generators/ui/libs/sonner/files/lib/hlm-toaster.ts.template +1 -1
- package/src/generators/ui/libs/spinner/files/lib/hlm-spinner.ts.template +1 -1
- package/src/generators/ui/libs/switch/files/lib/hlm-switch.ts.template +2 -2
- package/src/generators/ui/libs/table/files/lib/hlm-table.ts.template +0 -1
- package/src/generators/ui/libs/tabs/files/lib/hlm-tabs-list.ts.template +2 -2
- package/src/generators/ui/libs/tabs/files/lib/hlm-tabs-paginated-list.ts.template +4 -4
- package/src/generators/ui/libs/tabs/files/lib/hlm-tabs.ts.template +2 -2
- package/src/generators/ui/libs/textarea/files/lib/hlm-textarea.ts.template +4 -4
- package/src/generators/ui/libs/toggle-group/files/lib/hlm-toggle-group.ts.template +1 -1
- package/src/generators/ui/libs/tooltip/files/lib/hlm-tooltip.ts.template +2 -3
- package/src/generators/ui/supported-ui-libraries.json +37 -36
|
@@ -4,11 +4,11 @@ import type { ClassValue } from 'clsx';
|
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'hlm-menu-separator',
|
|
7
|
-
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
8
|
host: {
|
|
9
9
|
'[class]': '_computedClass()',
|
|
10
10
|
},
|
|
11
|
-
|
|
11
|
+
template: '',
|
|
12
12
|
})
|
|
13
13
|
export class HlmMenuSeparator {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -4,13 +4,13 @@ import type { ClassValue } from 'clsx';
|
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'hlm-menu-shortcut',
|
|
7
|
-
|
|
8
|
-
<ng-content />
|
|
9
|
-
`,
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
8
|
host: {
|
|
11
9
|
'[class]': '_computedClass()',
|
|
12
10
|
},
|
|
13
|
-
|
|
11
|
+
template: `
|
|
12
|
+
<ng-content />
|
|
13
|
+
`,
|
|
14
14
|
})
|
|
15
15
|
export class HlmMenuShortcut {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -22,14 +22,14 @@ type MenuVariants = VariantProps<typeof menuVariants>;
|
|
|
22
22
|
|
|
23
23
|
@Component({
|
|
24
24
|
selector: 'hlm-menu',
|
|
25
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
|
+
hostDirectives: [BrnMenu],
|
|
25
27
|
host: {
|
|
26
28
|
'[class]': '_computedClass()',
|
|
27
29
|
},
|
|
28
|
-
hostDirectives: [BrnMenu],
|
|
29
30
|
template: `
|
|
30
31
|
<ng-content />
|
|
31
32
|
`,
|
|
32
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
33
|
})
|
|
34
34
|
export class HlmMenu {
|
|
35
35
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,14 +5,14 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'hlm-sub-menu',
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
+
hostDirectives: [BrnMenu],
|
|
8
10
|
host: {
|
|
9
11
|
'[class]': '_computedClass()',
|
|
10
12
|
},
|
|
11
|
-
hostDirectives: [BrnMenu],
|
|
12
13
|
template: `
|
|
13
14
|
<ng-content />
|
|
14
15
|
`,
|
|
15
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
16
|
})
|
|
17
17
|
export class HlmSubMenu {
|
|
18
18
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,10 +5,10 @@ import { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: 'li[hlmNavigationMenuItem]',
|
|
8
|
+
hostDirectives: [{ directive: BrnNavigationMenuItem, inputs: ['id'] }],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
},
|
|
11
|
-
hostDirectives: [{ directive: BrnNavigationMenuItem, inputs: ['id'] }],
|
|
12
12
|
})
|
|
13
13
|
export class HlmNavigationMenuItem {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,10 +5,10 @@ import { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: 'a[hlmNavigationMenuLink]',
|
|
8
|
+
hostDirectives: [{ directive: BrnNavigationMenuLink, inputs: ['active'] }],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
},
|
|
11
|
-
hostDirectives: [{ directive: BrnNavigationMenuLink, inputs: ['active'] }],
|
|
12
12
|
})
|
|
13
13
|
export class HlmNavigationMenuLink {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,14 +5,14 @@ import { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: 'ul[hlmNavigationMenuList]',
|
|
8
|
-
host: {
|
|
9
|
-
'[class]': '_computedClass()',
|
|
10
|
-
},
|
|
11
8
|
hostDirectives: [
|
|
12
9
|
{
|
|
13
10
|
directive: BrnNavigationMenuList,
|
|
14
11
|
},
|
|
15
12
|
],
|
|
13
|
+
host: {
|
|
14
|
+
'[class]': '_computedClass()',
|
|
15
|
+
},
|
|
16
16
|
})
|
|
17
17
|
export class HlmNavigationMenuList {
|
|
18
18
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/navigation-menu/files/hlm-navigation-menu-trigger.ts.template
CHANGED
|
@@ -5,10 +5,10 @@ import { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: 'button[hlmNavigationMenuTrigger]',
|
|
8
|
+
hostDirectives: [BrnNavigationMenuTrigger],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
},
|
|
11
|
-
hostDirectives: [BrnNavigationMenuTrigger],
|
|
12
12
|
})
|
|
13
13
|
export class HlmNavigationMenuTrigger {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,9 +5,6 @@ import { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: 'nav[hlmNavigationMenu]',
|
|
8
|
-
host: {
|
|
9
|
-
'[class]': '_computedClass()',
|
|
10
|
-
},
|
|
11
8
|
hostDirectives: [
|
|
12
9
|
{
|
|
13
10
|
directive: BrnNavigationMenu,
|
|
@@ -15,6 +12,9 @@ import { ClassValue } from 'clsx';
|
|
|
15
12
|
outputs: ['valueChange'],
|
|
16
13
|
},
|
|
17
14
|
],
|
|
15
|
+
host: {
|
|
16
|
+
'[class]': '_computedClass()',
|
|
17
|
+
},
|
|
18
18
|
})
|
|
19
19
|
export class HlmNavigationMenu {
|
|
20
20
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/pagination/files/lib/hlm-numbered-pagination-query-params.ts.template
CHANGED
|
@@ -23,6 +23,19 @@ import { HlmPaginationPrevious } from './hlm-pagination-previous';
|
|
|
23
23
|
|
|
24
24
|
@Component({
|
|
25
25
|
selector: 'hlm-numbered-pagination-query-params',
|
|
26
|
+
imports: [
|
|
27
|
+
FormsModule,
|
|
28
|
+
HlmPagination,
|
|
29
|
+
HlmPaginationContent,
|
|
30
|
+
HlmPaginationItem,
|
|
31
|
+
HlmPaginationPrevious,
|
|
32
|
+
HlmPaginationNext,
|
|
33
|
+
HlmPaginationLink,
|
|
34
|
+
HlmPaginationEllipsis,
|
|
35
|
+
BrnSelectImports,
|
|
36
|
+
HlmSelectImports,
|
|
37
|
+
],
|
|
38
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
39
|
template: `
|
|
27
40
|
<div class="flex items-center justify-between gap-2 px-4 py-2">
|
|
28
41
|
<div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
|
|
@@ -87,19 +100,6 @@ import { HlmPaginationPrevious } from './hlm-pagination-previous';
|
|
|
87
100
|
</brn-select>
|
|
88
101
|
</div>
|
|
89
102
|
`,
|
|
90
|
-
imports: [
|
|
91
|
-
FormsModule,
|
|
92
|
-
HlmPagination,
|
|
93
|
-
HlmPaginationContent,
|
|
94
|
-
HlmPaginationItem,
|
|
95
|
-
HlmPaginationPrevious,
|
|
96
|
-
HlmPaginationNext,
|
|
97
|
-
HlmPaginationLink,
|
|
98
|
-
HlmPaginationEllipsis,
|
|
99
|
-
BrnSelectImports,
|
|
100
|
-
HlmSelectImports,
|
|
101
|
-
],
|
|
102
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
103
103
|
})
|
|
104
104
|
export class HlmNumberedPaginationQueryParams {
|
|
105
105
|
/**
|
|
@@ -22,6 +22,19 @@ import { HlmPaginationPrevious } from './hlm-pagination-previous';
|
|
|
22
22
|
|
|
23
23
|
@Component({
|
|
24
24
|
selector: 'hlm-numbered-pagination',
|
|
25
|
+
imports: [
|
|
26
|
+
FormsModule,
|
|
27
|
+
HlmPagination,
|
|
28
|
+
HlmPaginationContent,
|
|
29
|
+
HlmPaginationItem,
|
|
30
|
+
HlmPaginationPrevious,
|
|
31
|
+
HlmPaginationNext,
|
|
32
|
+
HlmPaginationLink,
|
|
33
|
+
HlmPaginationEllipsis,
|
|
34
|
+
BrnSelectImports,
|
|
35
|
+
HlmSelectImports,
|
|
36
|
+
],
|
|
37
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
38
|
template: `
|
|
26
39
|
<div class="flex items-center justify-between gap-2 px-4 py-2">
|
|
27
40
|
<div class="flex items-center gap-1 text-sm text-nowrap text-gray-600">
|
|
@@ -72,19 +85,6 @@ import { HlmPaginationPrevious } from './hlm-pagination-previous';
|
|
|
72
85
|
</brn-select>
|
|
73
86
|
</div>
|
|
74
87
|
`,
|
|
75
|
-
imports: [
|
|
76
|
-
FormsModule,
|
|
77
|
-
HlmPagination,
|
|
78
|
-
HlmPaginationContent,
|
|
79
|
-
HlmPaginationItem,
|
|
80
|
-
HlmPaginationPrevious,
|
|
81
|
-
HlmPaginationNext,
|
|
82
|
-
HlmPaginationLink,
|
|
83
|
-
HlmPaginationEllipsis,
|
|
84
|
-
BrnSelectImports,
|
|
85
|
-
HlmSelectImports,
|
|
86
|
-
],
|
|
87
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
88
88
|
})
|
|
89
89
|
export class HlmNumberedPagination {
|
|
90
90
|
/**
|
|
@@ -9,13 +9,13 @@ import type { ClassValue } from 'clsx';
|
|
|
9
9
|
selector: 'hlm-pagination-ellipsis',
|
|
10
10
|
imports: [NgIcon, HlmIcon],
|
|
11
11
|
providers: [provideIcons({ lucideEllipsis })],
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
13
|
template: `
|
|
13
14
|
<span [class]="_computedClass()">
|
|
14
15
|
<ng-icon hlm size="sm" name="lucideEllipsis" />
|
|
15
16
|
<span class="sr-only">{{ srOnlyText() }}</span>
|
|
16
17
|
</span>
|
|
17
18
|
`,
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
19
|
})
|
|
20
20
|
export class HlmPaginationEllipsis {
|
|
21
21
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -13,6 +13,7 @@ import { HlmPaginationLink } from './hlm-pagination-link';
|
|
|
13
13
|
selector: 'hlm-pagination-next',
|
|
14
14
|
imports: [HlmPaginationLink, NgIcon, HlmIcon],
|
|
15
15
|
providers: [provideIcons({ lucideChevronRight })],
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
17
|
template: `
|
|
17
18
|
<a
|
|
18
19
|
[class]="_computedClass()"
|
|
@@ -27,7 +28,6 @@ import { HlmPaginationLink } from './hlm-pagination-link';
|
|
|
27
28
|
<ng-icon hlm size="sm" name="lucideChevronRight" />
|
|
28
29
|
</a>
|
|
29
30
|
`,
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
31
|
})
|
|
32
32
|
export class HlmPaginationNext {
|
|
33
33
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -13,6 +13,7 @@ import { HlmPaginationLink } from './hlm-pagination-link';
|
|
|
13
13
|
selector: 'hlm-pagination-previous',
|
|
14
14
|
imports: [HlmPaginationLink, NgIcon, HlmIcon],
|
|
15
15
|
providers: [provideIcons({ lucideChevronLeft })],
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
17
|
template: `
|
|
17
18
|
<a
|
|
18
19
|
[class]="_computedClass()"
|
|
@@ -27,7 +28,6 @@ import { HlmPaginationLink } from './hlm-pagination-link';
|
|
|
27
28
|
<span [class]="_labelClass()">{{ text() }}</span>
|
|
28
29
|
</a>
|
|
29
30
|
`,
|
|
30
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
31
31
|
})
|
|
32
32
|
export class HlmPaginationPrevious {
|
|
33
33
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,12 +5,12 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: '[hlmProgressIndicator],hlm-progress-indicator',
|
|
8
|
+
hostDirectives: [BrnProgressIndicator],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
'[class.animate-indeterminate]': '_indeterminate()',
|
|
11
12
|
'[style.transform]': '_transform()',
|
|
12
13
|
},
|
|
13
|
-
hostDirectives: [BrnProgressIndicator],
|
|
14
14
|
})
|
|
15
15
|
export class HlmProgressIndicator {
|
|
16
16
|
private readonly _progress = injectBrnProgress();
|
|
@@ -5,10 +5,10 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: 'hlm-progress,[hlmProgress]',
|
|
8
|
+
hostDirectives: [{ directive: BrnProgress, inputs: ['value', 'max', 'getValueLabel'] }],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
},
|
|
11
|
-
hostDirectives: [{ directive: BrnProgress, inputs: ['value', 'max', 'getValueLabel'] }],
|
|
12
12
|
})
|
|
13
13
|
export class HlmProgress {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,6 +5,7 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'hlm-radio-group',
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
9
|
hostDirectives: [
|
|
9
10
|
{
|
|
10
11
|
directive: BrnRadioGroup,
|
|
@@ -17,7 +18,6 @@ import type { ClassValue } from 'clsx';
|
|
|
17
18
|
'[class]': '_computedClass()',
|
|
18
19
|
},
|
|
19
20
|
template: '<ng-content />',
|
|
20
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
21
|
})
|
|
22
22
|
export class HlmRadioGroup {
|
|
23
23
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -4,6 +4,7 @@ import type { ClassValue } from 'clsx';
|
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'hlm-radio-indicator',
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7
8
|
host: {
|
|
8
9
|
'data-slot': 'radio-group-indicator',
|
|
9
10
|
'[class]': '_computedClass()',
|
|
@@ -11,7 +12,6 @@ import type { ClassValue } from 'clsx';
|
|
|
11
12
|
template: `
|
|
12
13
|
<div class="group-data-[checked=true]:bg-primary size-2 rounded-full bg-transparent"></div>
|
|
13
14
|
`,
|
|
14
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
15
|
})
|
|
16
16
|
export class HlmRadioIndicator {
|
|
17
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -19,6 +19,15 @@ import type { ClassValue } from 'clsx';
|
|
|
19
19
|
@Component({
|
|
20
20
|
selector: 'hlm-radio',
|
|
21
21
|
imports: [BrnRadio],
|
|
22
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
+
host: {
|
|
24
|
+
'[attr.id]': 'null',
|
|
25
|
+
'[attr.aria-label]': 'null',
|
|
26
|
+
'[attr.aria-labelledby]': 'null',
|
|
27
|
+
'[attr.aria-describedby]': 'null',
|
|
28
|
+
'[attr.data-disabled]': 'disabled() ? "" : null',
|
|
29
|
+
'data-slot': 'radio-group-item',
|
|
30
|
+
},
|
|
22
31
|
template: `
|
|
23
32
|
<brn-radio
|
|
24
33
|
[id]="id()"
|
|
@@ -35,15 +44,6 @@ import type { ClassValue } from 'clsx';
|
|
|
35
44
|
<ng-content />
|
|
36
45
|
</brn-radio>
|
|
37
46
|
`,
|
|
38
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
|
-
host: {
|
|
40
|
-
'[attr.id]': 'null',
|
|
41
|
-
'[attr.aria-label]': 'null',
|
|
42
|
-
'[attr.aria-labelledby]': 'null',
|
|
43
|
-
'[attr.aria-describedby]': 'null',
|
|
44
|
-
'[attr.data-disabled]': 'disabled() ? "" : null',
|
|
45
|
-
'data-slot': 'radio-group-item',
|
|
46
|
-
},
|
|
47
47
|
})
|
|
48
48
|
export class HlmRadio<T = unknown> {
|
|
49
49
|
private readonly _document = inject(DOCUMENT);
|
|
@@ -5,6 +5,7 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'hlm-resizable-group',
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
9
|
hostDirectives: [
|
|
9
10
|
{
|
|
10
11
|
directive: BrnResizableGroup,
|
|
@@ -12,13 +13,12 @@ import type { ClassValue } from 'clsx';
|
|
|
12
13
|
outputs: ['dragEnd', 'dragStart', 'layoutChange'],
|
|
13
14
|
},
|
|
14
15
|
],
|
|
15
|
-
template: `
|
|
16
|
-
<ng-content />
|
|
17
|
-
`,
|
|
18
16
|
host: {
|
|
19
17
|
'[class]': '_computedClass()',
|
|
20
18
|
},
|
|
21
|
-
|
|
19
|
+
template: `
|
|
20
|
+
<ng-content />
|
|
21
|
+
`,
|
|
22
22
|
})
|
|
23
23
|
export class HlmResizableGroup {
|
|
24
24
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -11,9 +11,13 @@ import { hlm } from '<%- importAlias %>/utils';
|
|
|
11
11
|
@Component({
|
|
12
12
|
selector: 'hlm-resizable-handle',
|
|
13
13
|
exportAs: 'hlmResizableHandle',
|
|
14
|
-
|
|
14
|
+
imports: [NgIcon, HlmIcon],
|
|
15
15
|
providers: [provideIcons({ lucideGripVertical })],
|
|
16
16
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
+
hostDirectives: [{ directive: BrnResizableHandle, inputs: ['withHandle', 'disabled'] }],
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
17
21
|
template: `
|
|
18
22
|
@if (_brnResizableHandle.withHandle()) {
|
|
19
23
|
<div class="bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border">
|
|
@@ -21,10 +25,6 @@ import { hlm } from '<%- importAlias %>/utils';
|
|
|
21
25
|
</div>
|
|
22
26
|
}
|
|
23
27
|
`,
|
|
24
|
-
host: {
|
|
25
|
-
'[class]': '_computedClass()',
|
|
26
|
-
},
|
|
27
|
-
imports: [NgIcon, HlmIcon],
|
|
28
28
|
})
|
|
29
29
|
export class HlmResizableHandle {
|
|
30
30
|
protected readonly _brnResizableHandle = inject(BrnResizableHandle);
|
|
@@ -5,19 +5,19 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'hlm-resizable-panel',
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
9
|
hostDirectives: [
|
|
9
10
|
{
|
|
10
11
|
directive: BrnResizablePanel,
|
|
11
12
|
inputs: ['defaultSize', 'id', 'collapsible', 'maxSize', 'minSize'],
|
|
12
13
|
},
|
|
13
14
|
],
|
|
14
|
-
template: `
|
|
15
|
-
<ng-content />
|
|
16
|
-
`,
|
|
17
15
|
host: {
|
|
18
16
|
'[class]': '_computedClass()',
|
|
19
17
|
},
|
|
20
|
-
|
|
18
|
+
template: `
|
|
19
|
+
<ng-content />
|
|
20
|
+
`,
|
|
21
21
|
})
|
|
22
22
|
export class HlmResizablePanel {
|
|
23
23
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -8,9 +8,10 @@ import type { ClassValue } from 'clsx';
|
|
|
8
8
|
|
|
9
9
|
@Component({
|
|
10
10
|
selector: 'hlm-option',
|
|
11
|
+
imports: [NgIcon, HlmIcon],
|
|
12
|
+
providers: [provideIcons({ lucideCheck })],
|
|
11
13
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
14
|
hostDirectives: [{ directive: BrnSelectOption, inputs: ['disabled', 'value'] }],
|
|
13
|
-
providers: [provideIcons({ lucideCheck })],
|
|
14
15
|
host: {
|
|
15
16
|
'[class]': '_computedClass()',
|
|
16
17
|
},
|
|
@@ -23,7 +24,6 @@ import type { ClassValue } from 'clsx';
|
|
|
23
24
|
|
|
24
25
|
<ng-content />
|
|
25
26
|
`,
|
|
26
|
-
imports: [NgIcon, HlmIcon],
|
|
27
27
|
})
|
|
28
28
|
export class HlmSelectOption {
|
|
29
29
|
protected readonly _brnSelectOption = inject(BrnSelectOption, { host: true });
|
|
@@ -9,13 +9,13 @@ import type { ClassValue } from 'clsx';
|
|
|
9
9
|
selector: 'hlm-select-scroll-down',
|
|
10
10
|
imports: [NgIcon, HlmIcon],
|
|
11
11
|
providers: [provideIcons({ lucideChevronDown })],
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
13
|
host: {
|
|
13
14
|
'[class]': '_computedClass()',
|
|
14
15
|
},
|
|
15
16
|
template: `
|
|
16
17
|
<ng-icon hlm size="sm" class="ml-2" name="lucideChevronDown" />
|
|
17
18
|
`,
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
19
|
})
|
|
20
20
|
export class HlmSelectScrollDown {
|
|
21
21
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -9,13 +9,13 @@ import type { ClassValue } from 'clsx';
|
|
|
9
9
|
selector: 'hlm-select-scroll-up',
|
|
10
10
|
imports: [NgIcon, HlmIcon],
|
|
11
11
|
providers: [provideIcons({ lucideChevronUp })],
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
13
|
host: {
|
|
13
14
|
'[class]': '_computedClass()',
|
|
14
15
|
},
|
|
15
16
|
template: `
|
|
16
17
|
<ng-icon hlm size="sm" class="ml-2" name="lucideChevronUp" />
|
|
17
18
|
`,
|
|
18
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
19
|
})
|
|
20
20
|
export class HlmSelectScrollUp {
|
|
21
21
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -26,6 +26,7 @@ export const selectTriggerVariants = cva(
|
|
|
26
26
|
selector: 'hlm-select-trigger',
|
|
27
27
|
imports: [BrnSelectTrigger, NgIcon, HlmIcon],
|
|
28
28
|
providers: [provideIcons({ lucideChevronDown })],
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
30
|
template: `
|
|
30
31
|
<button [class]="_computedClass()" #button hlmInput brnSelectTrigger type="button" [attr.data-size]="size()">
|
|
31
32
|
<ng-content />
|
|
@@ -36,7 +37,6 @@ export const selectTriggerVariants = cva(
|
|
|
36
37
|
}
|
|
37
38
|
</button>
|
|
38
39
|
`,
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
40
|
})
|
|
41
41
|
export class HlmSelectTrigger {
|
|
42
42
|
protected readonly _icon = contentChild(HlmIcon);
|
|
@@ -42,6 +42,7 @@ export const sheetVariants = cva(
|
|
|
42
42
|
selector: 'hlm-sheet-content',
|
|
43
43
|
imports: [HlmSheetClose, BrnSheetClose, NgIcon, HlmIcon],
|
|
44
44
|
providers: [provideIcons({ lucideX })],
|
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
46
|
host: {
|
|
46
47
|
'[class]': '_computedClass()',
|
|
47
48
|
'[attr.data-state]': 'state()',
|
|
@@ -53,7 +54,6 @@ export const sheetVariants = cva(
|
|
|
53
54
|
<ng-icon hlm size="sm" name="lucideX" />
|
|
54
55
|
</button>
|
|
55
56
|
`,
|
|
56
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
57
57
|
})
|
|
58
58
|
export class HlmSheetContent {
|
|
59
59
|
private readonly _stateProvider = injectExposesStateProvider({ host: true });
|
|
@@ -5,10 +5,10 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: '[hlmSheetDescription]',
|
|
8
|
+
hostDirectives: [BrnSheetDescription],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
},
|
|
11
|
-
hostDirectives: [BrnSheetDescription],
|
|
12
12
|
})
|
|
13
13
|
export class HlmSheetDescription {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -4,13 +4,13 @@ import type { ClassValue } from 'clsx';
|
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'hlm-sheet-footer',
|
|
7
|
-
|
|
8
|
-
<ng-content />
|
|
9
|
-
`,
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
8
|
host: {
|
|
11
9
|
'[class]': '_computedClass()',
|
|
12
10
|
},
|
|
13
|
-
|
|
11
|
+
template: `
|
|
12
|
+
<ng-content />
|
|
13
|
+
`,
|
|
14
14
|
})
|
|
15
15
|
export class HlmSheetFooter {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -4,13 +4,13 @@ import type { ClassValue } from 'clsx';
|
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'hlm-sheet-header',
|
|
7
|
-
|
|
8
|
-
<ng-content />
|
|
9
|
-
`,
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
8
|
host: {
|
|
11
9
|
'[class]': '_computedClass()',
|
|
12
10
|
},
|
|
13
|
-
|
|
11
|
+
template: `
|
|
12
|
+
<ng-content />
|
|
13
|
+
`,
|
|
14
14
|
})
|
|
15
15
|
export class HlmSheetHeader {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -5,10 +5,10 @@ import type { ClassValue } from 'clsx';
|
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: '[hlmSheetTitle]',
|
|
8
|
+
hostDirectives: [BrnSheetTitle],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
},
|
|
11
|
-
hostDirectives: [BrnSheetTitle],
|
|
12
12
|
})
|
|
13
13
|
export class HlmSheetTitle {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, forwardRef
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
|
2
2
|
import { BrnDialog, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';
|
|
3
3
|
import { BrnSheet, BrnSheetOverlay } from '@spartan-ng/brain/sheet';
|
|
4
4
|
import { HlmSheetOverlay } from './hlm-sheet-overlay';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'hlm-sheet',
|
|
8
|
+
exportAs: 'hlmSheet',
|
|
8
9
|
imports: [BrnSheetOverlay, HlmSheetOverlay],
|
|
9
10
|
providers: [
|
|
10
11
|
{
|
|
@@ -19,12 +20,10 @@ import { HlmSheetOverlay } from './hlm-sheet-overlay';
|
|
|
19
20
|
// add custom options here
|
|
20
21
|
}),
|
|
21
22
|
],
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
24
|
template: `
|
|
23
25
|
<brn-sheet-overlay hlm />
|
|
24
26
|
<ng-content />
|
|
25
27
|
`,
|
|
26
|
-
encapsulation: ViewEncapsulation.None,
|
|
27
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
28
|
-
exportAs: 'hlmSheet',
|
|
29
28
|
})
|
|
30
29
|
export class HlmSheet extends BrnSheet {}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BooleanInput } from '@angular/cdk/coercion';
|
|
1
2
|
import { booleanAttribute, computed, Directive, input } from '@angular/core';
|
|
2
3
|
import { hlm } from '<%- importAlias %>/utils';
|
|
3
4
|
import type { ClassValue } from 'clsx';
|
|
@@ -12,7 +13,7 @@ import type { ClassValue } from 'clsx';
|
|
|
12
13
|
})
|
|
13
14
|
export class HlmSidebarMenuAction {
|
|
14
15
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
|
-
public readonly showOnHover = input<boolean,
|
|
16
|
+
public readonly showOnHover = input<boolean, BooleanInput>(false, { transform: booleanAttribute });
|
|
16
17
|
protected readonly _computedClass = computed(() =>
|
|
17
18
|
hlm(
|
|
18
19
|
'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none hover:cursor-pointer focus-visible:ring-2 disabled:hover:cursor-default [&>_ng-icon]:size-4 [&>_ng-icon]:shrink-0',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type BooleanInput } from '@angular/cdk/coercion';
|
|
1
2
|
import { booleanAttribute, computed, Directive, inject, input } from '@angular/core';
|
|
2
3
|
import { BrnTooltipTrigger, provideBrnTooltipDefaultOptions } from '@spartan-ng/brain/tooltip';
|
|
3
4
|
import { DEFAULT_TOOLTIP_CONTENT_CLASSES } from '<%- importAlias %>/tooltip';
|
|
@@ -58,7 +59,7 @@ export class HlmSidebarMenuButton {
|
|
|
58
59
|
|
|
59
60
|
public readonly variant = input<'default' | 'outline'>('default');
|
|
60
61
|
public readonly size = input<'default' | 'sm' | 'lg'>('default');
|
|
61
|
-
public readonly isActive = input<boolean,
|
|
62
|
+
public readonly isActive = input<boolean, BooleanInput>(false, { transform: booleanAttribute });
|
|
62
63
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
63
64
|
|
|
64
65
|
protected readonly _isTooltipHidden = computed(
|