@spartan-ng/cli 0.0.1-alpha.613 → 0.0.1-alpha.614
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/autocomplete/files/lib/hlm-autocomplete-search.ts.template +11 -2
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete.ts.template +11 -2
- package/src/generators/ui/libs/combobox/files/lib/hlm-combobox-multiple.ts.template +20 -2
- package/src/generators/ui/libs/combobox/files/lib/hlm-combobox.ts.template +20 -2
- package/src/generators/ui/libs/command/files/index.ts.template +3 -6
- package/src/generators/ui/libs/command/files/lib/hlm-command-dialog.ts.template +46 -18
- package/src/generators/ui/libs/command/files/lib/hlm-command-input.ts.template +38 -0
- package/src/generators/ui/libs/command/files/lib/hlm-command-list.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-separator.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command.ts.template +3 -3
- package/src/generators/ui/libs/navigation-menu/files/hlm-navigation-menu.ts.template +1 -1
- package/src/generators/ui/supported-ui-libraries.json +43 -39
- package/src/generators/ui/libs/command/files/lib/hlm-command-search-input.ts.template +0 -19
- package/src/generators/ui/libs/command/files/lib/hlm-command-search.ts.template +0 -16
package/package.json
CHANGED
|
@@ -18,12 +18,21 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
18
18
|
hostDirectives: [
|
|
19
19
|
{
|
|
20
20
|
directive: BrnAutocompleteSearch,
|
|
21
|
-
inputs: ['disabled', 'value', 'search', 'itemToString'],
|
|
21
|
+
inputs: ['autoHighlight', 'disabled', 'value', 'search', 'itemToString'],
|
|
22
22
|
outputs: ['valueChange', 'searchChange'],
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
directive: BrnPopover,
|
|
26
|
-
inputs: [
|
|
26
|
+
inputs: [
|
|
27
|
+
'align',
|
|
28
|
+
'autoFocus',
|
|
29
|
+
'closeDelay',
|
|
30
|
+
'closeOnOutsidePointerEvents',
|
|
31
|
+
'sideOffset',
|
|
32
|
+
'state',
|
|
33
|
+
'offsetX',
|
|
34
|
+
'restoreFocus',
|
|
35
|
+
],
|
|
27
36
|
outputs: ['stateChanged', 'closed'],
|
|
28
37
|
},
|
|
29
38
|
],
|
|
@@ -18,12 +18,21 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
18
18
|
hostDirectives: [
|
|
19
19
|
{
|
|
20
20
|
directive: BrnAutocomplete,
|
|
21
|
-
inputs: ['disabled', 'value', 'search', 'itemToString', 'isItemEqualToValue'],
|
|
21
|
+
inputs: ['autoHighlight', 'disabled', 'value', 'search', 'itemToString', 'isItemEqualToValue'],
|
|
22
22
|
outputs: ['valueChange', 'searchChange'],
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
directive: BrnPopover,
|
|
26
|
-
inputs: [
|
|
26
|
+
inputs: [
|
|
27
|
+
'align',
|
|
28
|
+
'autoFocus',
|
|
29
|
+
'closeDelay',
|
|
30
|
+
'closeOnOutsidePointerEvents',
|
|
31
|
+
'sideOffset',
|
|
32
|
+
'state',
|
|
33
|
+
'offsetX',
|
|
34
|
+
'restoreFocus',
|
|
35
|
+
],
|
|
27
36
|
outputs: ['stateChanged', 'closed'],
|
|
28
37
|
},
|
|
29
38
|
],
|
|
@@ -18,12 +18,30 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
18
18
|
hostDirectives: [
|
|
19
19
|
{
|
|
20
20
|
directive: BrnComboboxMultiple,
|
|
21
|
-
inputs: [
|
|
21
|
+
inputs: [
|
|
22
|
+
'autoHighlight',
|
|
23
|
+
'disabled',
|
|
24
|
+
'filter',
|
|
25
|
+
'search',
|
|
26
|
+
'value',
|
|
27
|
+
'itemToString',
|
|
28
|
+
'filterOptions',
|
|
29
|
+
'isItemEqualToValue',
|
|
30
|
+
],
|
|
22
31
|
outputs: ['searchChange', 'valueChange'],
|
|
23
32
|
},
|
|
24
33
|
{
|
|
25
34
|
directive: BrnPopover,
|
|
26
|
-
inputs: [
|
|
35
|
+
inputs: [
|
|
36
|
+
'align',
|
|
37
|
+
'autoFocus',
|
|
38
|
+
'closeDelay',
|
|
39
|
+
'closeOnOutsidePointerEvents',
|
|
40
|
+
'sideOffset',
|
|
41
|
+
'state',
|
|
42
|
+
'offsetX',
|
|
43
|
+
'restoreFocus',
|
|
44
|
+
],
|
|
27
45
|
outputs: ['stateChanged', 'closed'],
|
|
28
46
|
},
|
|
29
47
|
],
|
|
@@ -18,12 +18,30 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
18
18
|
hostDirectives: [
|
|
19
19
|
{
|
|
20
20
|
directive: BrnCombobox,
|
|
21
|
-
inputs: [
|
|
21
|
+
inputs: [
|
|
22
|
+
'autoHighlight',
|
|
23
|
+
'disabled',
|
|
24
|
+
'filter',
|
|
25
|
+
'search',
|
|
26
|
+
'value',
|
|
27
|
+
'itemToString',
|
|
28
|
+
'filterOptions',
|
|
29
|
+
'isItemEqualToValue',
|
|
30
|
+
],
|
|
22
31
|
outputs: ['searchChange', 'valueChange'],
|
|
23
32
|
},
|
|
24
33
|
{
|
|
25
34
|
directive: BrnPopover,
|
|
26
|
-
inputs: [
|
|
35
|
+
inputs: [
|
|
36
|
+
'align',
|
|
37
|
+
'autoFocus',
|
|
38
|
+
'closeDelay',
|
|
39
|
+
'closeOnOutsidePointerEvents',
|
|
40
|
+
'sideOffset',
|
|
41
|
+
'state',
|
|
42
|
+
'offsetX',
|
|
43
|
+
'restoreFocus',
|
|
44
|
+
],
|
|
27
45
|
outputs: ['stateChanged', 'closed'],
|
|
28
46
|
},
|
|
29
47
|
],
|
|
@@ -4,10 +4,9 @@ import { HlmCommandEmpty } from './lib/hlm-command-empty';
|
|
|
4
4
|
import { HlmCommandEmptyState } from './lib/hlm-command-empty-state';
|
|
5
5
|
import { HlmCommandGroup } from './lib/hlm-command-group';
|
|
6
6
|
import { HlmCommandGroupLabel } from './lib/hlm-command-group-label';
|
|
7
|
+
import { HlmCommandInput } from './lib/hlm-command-input';
|
|
7
8
|
import { HlmCommandItem } from './lib/hlm-command-item';
|
|
8
9
|
import { HlmCommandList } from './lib/hlm-command-list';
|
|
9
|
-
import { HlmCommandSearch } from './lib/hlm-command-search';
|
|
10
|
-
import { HlmCommandSearchInput } from './lib/hlm-command-search-input';
|
|
11
10
|
import { HlmCommandSeparator } from './lib/hlm-command-separator';
|
|
12
11
|
import { HlmCommandShortcut } from './lib/hlm-command-shortcut';
|
|
13
12
|
|
|
@@ -17,10 +16,9 @@ export * from './lib/hlm-command-empty';
|
|
|
17
16
|
export * from './lib/hlm-command-empty-state';
|
|
18
17
|
export * from './lib/hlm-command-group';
|
|
19
18
|
export * from './lib/hlm-command-group-label';
|
|
19
|
+
export * from './lib/hlm-command-input';
|
|
20
20
|
export * from './lib/hlm-command-item';
|
|
21
21
|
export * from './lib/hlm-command-list';
|
|
22
|
-
export * from './lib/hlm-command-search';
|
|
23
|
-
export * from './lib/hlm-command-search-input';
|
|
24
22
|
export * from './lib/hlm-command-separator';
|
|
25
23
|
export * from './lib/hlm-command-shortcut';
|
|
26
24
|
|
|
@@ -31,10 +29,9 @@ export const HlmCommandImports = [
|
|
|
31
29
|
HlmCommandEmptyState,
|
|
32
30
|
HlmCommandGroup,
|
|
33
31
|
HlmCommandGroupLabel,
|
|
32
|
+
HlmCommandInput,
|
|
34
33
|
HlmCommandItem,
|
|
35
34
|
HlmCommandList,
|
|
36
|
-
HlmCommandSearchInput,
|
|
37
|
-
HlmCommandSearch,
|
|
38
35
|
HlmCommandSeparator,
|
|
39
36
|
HlmCommandShortcut,
|
|
40
37
|
] as const;
|
|
@@ -1,26 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import {
|
|
3
|
+
booleanAttribute,
|
|
4
|
+
ChangeDetectionStrategy,
|
|
5
|
+
Component,
|
|
6
|
+
computed,
|
|
7
|
+
input,
|
|
8
|
+
linkedSignal,
|
|
9
|
+
output,
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { BrnDialogContent, BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
12
|
+
import { HlmDialogImports } from '<%- importAlias %>/dialog';
|
|
13
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
14
|
+
import { ClassValue } from 'clsx';
|
|
4
15
|
|
|
5
|
-
@
|
|
6
|
-
selector: '
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'hlm-command-dialog',
|
|
18
|
+
imports: [HlmDialogImports, BrnDialogContent],
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
template: `
|
|
21
|
+
<hlm-dialog [state]="_state()" (stateChanged)="stateChanged($event)">
|
|
22
|
+
<hlm-dialog-content
|
|
23
|
+
*brnDialogContent="let ctx"
|
|
24
|
+
[class]="_computedDialogContentClass()"
|
|
25
|
+
[showCloseButton]="showCloseButton()"
|
|
26
|
+
>
|
|
27
|
+
<hlm-dialog-header class="sr-only">
|
|
28
|
+
<h2 hlmDialogTitle>{{ title() }}</h2>
|
|
29
|
+
<p hlmDialogDescription>{{ description() }}</p>
|
|
30
|
+
</hlm-dialog-header>
|
|
31
|
+
<ng-content />
|
|
32
|
+
</hlm-dialog-content>
|
|
33
|
+
</hlm-dialog>
|
|
34
|
+
`,
|
|
10
35
|
})
|
|
11
36
|
export class HlmCommandDialog {
|
|
12
|
-
|
|
13
|
-
|
|
37
|
+
public readonly title = input<string>('Command Palette');
|
|
38
|
+
public readonly description = input<string>('Search for a command to run...');
|
|
14
39
|
|
|
15
|
-
|
|
16
|
-
|
|
40
|
+
public readonly state = input<BrnDialogState>('closed');
|
|
41
|
+
protected readonly _state = linkedSignal(this.state);
|
|
17
42
|
|
|
18
|
-
|
|
19
|
-
const searchInput = this._searchInput();
|
|
43
|
+
public readonly showCloseButton = input<boolean, BooleanInput>(false, { transform: booleanAttribute });
|
|
20
44
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
45
|
+
public readonly dialogContentClass = input<ClassValue>('');
|
|
46
|
+
protected readonly _computedDialogContentClass = computed(() => hlm('w-96 p-0', this.dialogContentClass()));
|
|
47
|
+
|
|
48
|
+
public readonly stateChange = output<BrnDialogState>();
|
|
49
|
+
|
|
50
|
+
protected stateChanged(state: BrnDialogState) {
|
|
51
|
+
this.stateChange.emit(state);
|
|
52
|
+
this._state.set(state);
|
|
25
53
|
}
|
|
26
54
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
2
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
|
+
import { lucideSearch } from '@ng-icons/lucide';
|
|
4
|
+
import { BrnCommandInput } from '@spartan-ng/brain/command';
|
|
5
|
+
import { HlmInputGroupImports } from '<%- importAlias %>/input-group';
|
|
6
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'hlm-command-input',
|
|
10
|
+
imports: [HlmInputGroupImports, NgIcon, BrnCommandInput],
|
|
11
|
+
providers: [provideIcons({ lucideSearch })],
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
+
template: `
|
|
14
|
+
<hlm-input-group
|
|
15
|
+
class="bg-input/30 border-input/30 h-8 rounded-lg shadow-none *:data-[slot=input-group-addon]:pl-2"
|
|
16
|
+
>
|
|
17
|
+
<input
|
|
18
|
+
brnCommandInput
|
|
19
|
+
data-slot="command-input"
|
|
20
|
+
class="w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50"
|
|
21
|
+
[id]="id()"
|
|
22
|
+
[placeholder]="placeholder()"
|
|
23
|
+
/>
|
|
24
|
+
|
|
25
|
+
<hlm-input-group-addon>
|
|
26
|
+
<ng-icon name="lucideSearch" />
|
|
27
|
+
</hlm-input-group-addon>
|
|
28
|
+
</hlm-input-group>
|
|
29
|
+
`,
|
|
30
|
+
})
|
|
31
|
+
export class HlmCommandInput {
|
|
32
|
+
public readonly id = input<string | undefined>();
|
|
33
|
+
public readonly placeholder = input<string>('');
|
|
34
|
+
|
|
35
|
+
constructor() {
|
|
36
|
+
classes(() => 'p-1 pb-0');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -16,6 +16,6 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
16
16
|
})
|
|
17
17
|
export class HlmCommandList {
|
|
18
18
|
constructor() {
|
|
19
|
-
classes(() => 'max-h-
|
|
19
|
+
classes(() => 'no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -11,6 +11,6 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
11
11
|
})
|
|
12
12
|
export class HlmCommandSeparator {
|
|
13
13
|
constructor() {
|
|
14
|
-
classes(() => 'bg-border -mx-1 block h-px data-hidden:hidden');
|
|
14
|
+
classes(() => 'bg-border -mx-1 block h-px w-auto data-hidden:hidden');
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -7,8 +7,8 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
7
7
|
hostDirectives: [
|
|
8
8
|
{
|
|
9
9
|
directive: BrnCommand,
|
|
10
|
-
inputs: ['id', 'filter'],
|
|
11
|
-
outputs: ['valueChange'],
|
|
10
|
+
inputs: ['id', 'filter', 'search', 'disabled'],
|
|
11
|
+
outputs: ['valueChange', 'searchChange'],
|
|
12
12
|
},
|
|
13
13
|
],
|
|
14
14
|
host: {
|
|
@@ -17,6 +17,6 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
17
17
|
})
|
|
18
18
|
export class HlmCommand {
|
|
19
19
|
constructor() {
|
|
20
|
-
classes(() => 'bg-popover text-popover-foreground flex
|
|
20
|
+
classes(() => 'bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl p-1');
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -7,7 +7,7 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
7
7
|
hostDirectives: [
|
|
8
8
|
{
|
|
9
9
|
directive: BrnNavigationMenu,
|
|
10
|
-
inputs: ['value', 'delayDuration', 'skipDelayDuration', 'orientation'],
|
|
10
|
+
inputs: ['value', 'delayDuration', 'skipDelayDuration', 'orientation', 'openOn'],
|
|
11
11
|
outputs: ['valueChange'],
|
|
12
12
|
},
|
|
13
13
|
],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "accordion",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
6
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
6
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
7
7
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
8
8
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0"
|
|
9
9
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"name": "alert-dialog",
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
22
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
22
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
23
23
|
"clsx": "^2.1.1"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"name": "autocomplete",
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
37
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
37
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
38
38
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
39
39
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
40
40
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"name": "avatar",
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
47
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
47
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"badge": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"name": "button",
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
71
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
71
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
72
72
|
"class-variance-authority": "^0.7.0",
|
|
73
73
|
"clsx": "^2.1.1"
|
|
74
74
|
}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"name": "button-group",
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
80
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
80
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
81
81
|
"class-variance-authority": "^0.7.0"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
90
90
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
91
91
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
92
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
92
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
93
93
|
"clsx": "^2.1.1"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
118
118
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
119
119
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
120
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
120
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
121
121
|
"clsx": "^2.1.1"
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
"name": "collapsible",
|
|
126
126
|
"peerDependencies": {
|
|
127
127
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
128
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
128
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"combobox": {
|
|
132
132
|
"name": "combobox",
|
|
133
133
|
"peerDependencies": {
|
|
134
134
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
135
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
135
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
136
136
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
137
137
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
138
138
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
@@ -142,15 +142,19 @@
|
|
|
142
142
|
"command": {
|
|
143
143
|
"name": "command",
|
|
144
144
|
"peerDependencies": {
|
|
145
|
+
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
145
146
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
146
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
147
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
148
|
+
"clsx": "^2.1.1",
|
|
149
|
+
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
150
|
+
"@ng-icons/lucide": ">=32.0.0 <34.0.0"
|
|
147
151
|
}
|
|
148
152
|
},
|
|
149
153
|
"context-menu": {
|
|
150
154
|
"name": "context-menu",
|
|
151
155
|
"peerDependencies": {
|
|
152
156
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
153
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
157
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
154
158
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
155
159
|
"rxjs": "^7.8.0"
|
|
156
160
|
}
|
|
@@ -163,7 +167,7 @@
|
|
|
163
167
|
"@angular/forms": ">=20.0.0 <22.0.0",
|
|
164
168
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
165
169
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
166
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
170
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
167
171
|
"clsx": "^2.1.1"
|
|
168
172
|
}
|
|
169
173
|
},
|
|
@@ -171,7 +175,7 @@
|
|
|
171
175
|
"name": "dialog",
|
|
172
176
|
"peerDependencies": {
|
|
173
177
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
174
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
178
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
175
179
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
176
180
|
"@angular/common": ">=20.0.0 <22.0.0",
|
|
177
181
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
@@ -187,7 +191,7 @@
|
|
|
187
191
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
188
192
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
189
193
|
"rxjs": "^7.8.0",
|
|
190
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
194
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
191
195
|
}
|
|
192
196
|
},
|
|
193
197
|
"empty": {
|
|
@@ -210,14 +214,14 @@
|
|
|
210
214
|
"peerDependencies": {
|
|
211
215
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
212
216
|
"@angular/forms": ">=20.0.0 <22.0.0",
|
|
213
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
217
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
214
218
|
}
|
|
215
219
|
},
|
|
216
220
|
"hover-card": {
|
|
217
221
|
"name": "hover-card",
|
|
218
222
|
"peerDependencies": {
|
|
219
223
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
220
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
224
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
221
225
|
}
|
|
222
226
|
},
|
|
223
227
|
"icon": {
|
|
@@ -233,7 +237,7 @@
|
|
|
233
237
|
"peerDependencies": {
|
|
234
238
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
235
239
|
"@angular/forms": ">=20.0.0 <22.0.0",
|
|
236
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
240
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
237
241
|
"class-variance-authority": "^0.7.0",
|
|
238
242
|
"clsx": "^2.1.1"
|
|
239
243
|
}
|
|
@@ -252,7 +256,7 @@
|
|
|
252
256
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
253
257
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
254
258
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
255
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
259
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
256
260
|
}
|
|
257
261
|
},
|
|
258
262
|
"item": {
|
|
@@ -260,7 +264,7 @@
|
|
|
260
264
|
"peerDependencies": {
|
|
261
265
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
262
266
|
"class-variance-authority": "^0.7.0",
|
|
263
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
267
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
264
268
|
}
|
|
265
269
|
},
|
|
266
270
|
"kbd": {
|
|
@@ -273,14 +277,14 @@
|
|
|
273
277
|
"name": "label",
|
|
274
278
|
"peerDependencies": {
|
|
275
279
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
276
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
280
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
277
281
|
}
|
|
278
282
|
},
|
|
279
283
|
"menubar": {
|
|
280
284
|
"name": "menubar",
|
|
281
285
|
"peerDependencies": {
|
|
282
286
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
283
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
287
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
284
288
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
285
289
|
"rxjs": "^7.8.0"
|
|
286
290
|
}
|
|
@@ -289,7 +293,7 @@
|
|
|
289
293
|
"name": "navigation-menu",
|
|
290
294
|
"peerDependencies": {
|
|
291
295
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
292
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
296
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
293
297
|
}
|
|
294
298
|
},
|
|
295
299
|
"pagination": {
|
|
@@ -298,7 +302,7 @@
|
|
|
298
302
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
299
303
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
300
304
|
"@angular/forms": ">=20.0.0 <22.0.0",
|
|
301
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
305
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
302
306
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
303
307
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
304
308
|
"@angular/router": ">=20.0.0 <22.0.0"
|
|
@@ -308,21 +312,21 @@
|
|
|
308
312
|
"name": "popover",
|
|
309
313
|
"peerDependencies": {
|
|
310
314
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
311
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
315
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
312
316
|
}
|
|
313
317
|
},
|
|
314
318
|
"progress": {
|
|
315
319
|
"name": "progress",
|
|
316
320
|
"peerDependencies": {
|
|
317
321
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
318
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
322
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
319
323
|
}
|
|
320
324
|
},
|
|
321
325
|
"radio-group": {
|
|
322
326
|
"name": "radio-group",
|
|
323
327
|
"peerDependencies": {
|
|
324
328
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
325
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
329
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
326
330
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
327
331
|
"@angular/common": ">=20.0.0 <22.0.0",
|
|
328
332
|
"clsx": "^2.1.1"
|
|
@@ -332,7 +336,7 @@
|
|
|
332
336
|
"name": "resizable",
|
|
333
337
|
"peerDependencies": {
|
|
334
338
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
335
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
339
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
336
340
|
}
|
|
337
341
|
},
|
|
338
342
|
"scroll-area": {
|
|
@@ -346,7 +350,7 @@
|
|
|
346
350
|
"peerDependencies": {
|
|
347
351
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
348
352
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
349
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
353
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
350
354
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
351
355
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
352
356
|
"class-variance-authority": "^0.7.0",
|
|
@@ -357,14 +361,14 @@
|
|
|
357
361
|
"name": "separator",
|
|
358
362
|
"peerDependencies": {
|
|
359
363
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
360
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
364
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
361
365
|
}
|
|
362
366
|
},
|
|
363
367
|
"sheet": {
|
|
364
368
|
"name": "sheet",
|
|
365
369
|
"peerDependencies": {
|
|
366
370
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
367
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
371
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
368
372
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
369
373
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
370
374
|
"class-variance-authority": "^0.7.0",
|
|
@@ -376,7 +380,7 @@
|
|
|
376
380
|
"peerDependencies": {
|
|
377
381
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
378
382
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
379
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
383
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
380
384
|
"class-variance-authority": "^0.7.0",
|
|
381
385
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
382
386
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
@@ -394,7 +398,7 @@
|
|
|
394
398
|
"name": "slider",
|
|
395
399
|
"peerDependencies": {
|
|
396
400
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
397
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
401
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
398
402
|
}
|
|
399
403
|
},
|
|
400
404
|
"sonner": {
|
|
@@ -419,7 +423,7 @@
|
|
|
419
423
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
420
424
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
421
425
|
"@angular/forms": ">=20.0.0 <22.0.0",
|
|
422
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
426
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
423
427
|
"clsx": "^2.1.1"
|
|
424
428
|
}
|
|
425
429
|
},
|
|
@@ -433,7 +437,7 @@
|
|
|
433
437
|
"name": "tabs",
|
|
434
438
|
"peerDependencies": {
|
|
435
439
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
436
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
440
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
437
441
|
"class-variance-authority": "^0.7.0",
|
|
438
442
|
"@angular/cdk": ">=20.0.0 <22.0.0",
|
|
439
443
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
@@ -447,7 +451,7 @@
|
|
|
447
451
|
"peerDependencies": {
|
|
448
452
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
449
453
|
"@angular/forms": ">=20.0.0 <22.0.0",
|
|
450
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
454
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
451
455
|
"class-variance-authority": "^0.7.0",
|
|
452
456
|
"clsx": "^2.1.1"
|
|
453
457
|
}
|
|
@@ -456,7 +460,7 @@
|
|
|
456
460
|
"name": "toggle",
|
|
457
461
|
"peerDependencies": {
|
|
458
462
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
459
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
463
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
460
464
|
"class-variance-authority": "^0.7.0"
|
|
461
465
|
}
|
|
462
466
|
},
|
|
@@ -464,7 +468,7 @@
|
|
|
464
468
|
"name": "toggle-group",
|
|
465
469
|
"peerDependencies": {
|
|
466
470
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
467
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
471
|
+
"@spartan-ng/brain": "0.0.1-alpha.614",
|
|
468
472
|
"@angular/cdk": ">=20.0.0 <22.0.0"
|
|
469
473
|
}
|
|
470
474
|
},
|
|
@@ -472,7 +476,7 @@
|
|
|
472
476
|
"name": "tooltip",
|
|
473
477
|
"peerDependencies": {
|
|
474
478
|
"@angular/core": ">=20.0.0 <22.0.0",
|
|
475
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
479
|
+
"@spartan-ng/brain": "0.0.1-alpha.614"
|
|
476
480
|
}
|
|
477
481
|
},
|
|
478
482
|
"typography": {
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import { BrnCommandSearchInput } from '@spartan-ng/brain/command';
|
|
3
|
-
import { classes } from '<%- importAlias %>/utils';
|
|
4
|
-
|
|
5
|
-
@Directive({
|
|
6
|
-
selector: 'input[hlmCommandSearchInput],input[hlm-command-search-input]',
|
|
7
|
-
hostDirectives: [{ directive: BrnCommandSearchInput, inputs: ['value'] }],
|
|
8
|
-
host: {
|
|
9
|
-
'data-slot': 'command-search-input',
|
|
10
|
-
},
|
|
11
|
-
})
|
|
12
|
-
export class HlmCommandSearchInput {
|
|
13
|
-
constructor() {
|
|
14
|
-
classes(
|
|
15
|
-
() =>
|
|
16
|
-
'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import { provideHlmIconConfig } from '<%- importAlias %>/icon';
|
|
3
|
-
import { classes } from '<%- importAlias %>/utils';
|
|
4
|
-
|
|
5
|
-
@Directive({
|
|
6
|
-
selector: '[hlmCommandSearch],hlm-command-search',
|
|
7
|
-
providers: [provideHlmIconConfig({ size: 'sm' })],
|
|
8
|
-
host: {
|
|
9
|
-
'data-slot': 'command-search',
|
|
10
|
-
},
|
|
11
|
-
})
|
|
12
|
-
export class HlmCommandSearch {
|
|
13
|
-
constructor() {
|
|
14
|
-
classes(() => 'flex h-9 items-center gap-2 border-b px-3 [&>_ng-icon]:flex-none [&>_ng-icon]:opacity-50');
|
|
15
|
-
}
|
|
16
|
-
}
|