@spartan-ng/cli 0.0.1-alpha.457 → 0.0.1-alpha.458
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/ui-breadcrumb-helm/files/index.ts.template +14 -14
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{breadcrumb-ellipsis.component.ts.template → hlm-breadcrumb-ellipsis.component.ts.template} +2 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{breadcrumb-separator.component.ts.template → hlm-breadcrumb-separator.component.ts.template} +2 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.component.ts.template +11 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +11 -1
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +12 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group-label.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search-input.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.component.ts.template +2 -0
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.component.ts.template +12 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.component.ts.template +12 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-fake-caret.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-group.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.component.ts.template +2 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +12 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +12 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template +10 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.component.ts.template +2 -1
- package/src/generators/ui/supported-ui-libraries.json +39 -39
- /package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{breadcrumb-item.directive.ts.template → hlm-breadcrumb-item.directive.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{breadcrumb-link.directive.ts.template → hlm-breadcrumb-link.directive.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{breadcrumb-list.directive.ts.template → hlm-breadcrumb-list.directive.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{breadcrumb-page.directive.ts.template → hlm-breadcrumb-page.directive.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{breadcrumb.directive.ts.template → hlm-breadcrumb.directive.ts.template} +0 -0
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { HlmBreadcrumbEllipsisComponent } from './lib/breadcrumb-ellipsis.component';
|
|
3
|
-
import { HlmBreadcrumbItemDirective } from './lib/breadcrumb-item.directive';
|
|
4
|
-
import { HlmBreadcrumbLinkDirective } from './lib/breadcrumb-link.directive';
|
|
5
|
-
import { HlmBreadcrumbListDirective } from './lib/breadcrumb-list.directive';
|
|
6
|
-
import { HlmBreadcrumbPageDirective } from './lib/breadcrumb-page.directive';
|
|
7
|
-
import { HlmBreadcrumbSeparatorComponent } from './lib/breadcrumb-separator.component';
|
|
8
|
-
import { HlmBreadcrumbDirective } from './lib/breadcrumb.directive';
|
|
2
|
+
import { HlmBreadcrumbEllipsisComponent } from './lib/hlm-breadcrumb-ellipsis.component';
|
|
3
|
+
import { HlmBreadcrumbItemDirective } from './lib/hlm-breadcrumb-item.directive';
|
|
4
|
+
import { HlmBreadcrumbLinkDirective } from './lib/hlm-breadcrumb-link.directive';
|
|
5
|
+
import { HlmBreadcrumbListDirective } from './lib/hlm-breadcrumb-list.directive';
|
|
6
|
+
import { HlmBreadcrumbPageDirective } from './lib/hlm-breadcrumb-page.directive';
|
|
7
|
+
import { HlmBreadcrumbSeparatorComponent } from './lib/hlm-breadcrumb-separator.component';
|
|
8
|
+
import { HlmBreadcrumbDirective } from './lib/hlm-breadcrumb.directive';
|
|
9
9
|
|
|
10
|
-
export * from './lib/breadcrumb-ellipsis.component';
|
|
11
|
-
export * from './lib/breadcrumb-item.directive';
|
|
12
|
-
export * from './lib/breadcrumb-link.directive';
|
|
13
|
-
export * from './lib/breadcrumb-list.directive';
|
|
14
|
-
export * from './lib/breadcrumb-page.directive';
|
|
15
|
-
export * from './lib/breadcrumb-separator.component';
|
|
16
|
-
export * from './lib/breadcrumb.directive';
|
|
10
|
+
export * from './lib/hlm-breadcrumb-ellipsis.component';
|
|
11
|
+
export * from './lib/hlm-breadcrumb-item.directive';
|
|
12
|
+
export * from './lib/hlm-breadcrumb-link.directive';
|
|
13
|
+
export * from './lib/hlm-breadcrumb-list.directive';
|
|
14
|
+
export * from './lib/hlm-breadcrumb-page.directive';
|
|
15
|
+
export * from './lib/hlm-breadcrumb-separator.component';
|
|
16
|
+
export * from './lib/hlm-breadcrumb.directive';
|
|
17
17
|
|
|
18
18
|
export const HlmBreadCrumbImports = [
|
|
19
19
|
HlmBreadcrumbDirective,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideEllipsis } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
@@ -15,6 +15,7 @@ import type { ClassValue } from 'clsx';
|
|
|
15
15
|
<span class="sr-only">More</span>
|
|
16
16
|
</span>
|
|
17
17
|
`,
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
19
|
})
|
|
19
20
|
export class HlmBreadcrumbEllipsisComponent {
|
|
20
21
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronRight } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
@@ -19,6 +19,7 @@ import type { ClassValue } from 'clsx';
|
|
|
19
19
|
<ng-icon name="lucideChevronRight" />
|
|
20
20
|
</ng-content>
|
|
21
21
|
`,
|
|
22
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
23
|
})
|
|
23
24
|
export class HlmBreadcrumbSeparatorComponent {
|
|
24
25
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.component.ts.template
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
booleanAttribute,
|
|
6
|
+
computed,
|
|
7
|
+
input,
|
|
8
|
+
model,
|
|
9
|
+
numberAttribute,
|
|
10
|
+
viewChild,
|
|
11
|
+
} from '@angular/core';
|
|
3
12
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
4
13
|
import { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';
|
|
5
14
|
import {
|
|
@@ -109,6 +118,7 @@ import type { ClassValue } from 'clsx';
|
|
|
109
118
|
</div>
|
|
110
119
|
</div>
|
|
111
120
|
`,
|
|
121
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
112
122
|
})
|
|
113
123
|
export class HlmCalendarMultiComponent<T> {
|
|
114
124
|
public readonly calendarClass = input<ClassValue>('');
|
package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
booleanAttribute,
|
|
6
|
+
computed,
|
|
7
|
+
input,
|
|
8
|
+
model,
|
|
9
|
+
numberAttribute,
|
|
10
|
+
viewChild,
|
|
11
|
+
} from '@angular/core';
|
|
3
12
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
4
13
|
import { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';
|
|
5
14
|
import {
|
|
@@ -107,6 +116,7 @@ import type { ClassValue } from 'clsx';
|
|
|
107
116
|
</div>
|
|
108
117
|
</div>
|
|
109
118
|
`,
|
|
119
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
110
120
|
})
|
|
111
121
|
export class HlmCalendarComponent<T> {
|
|
112
122
|
public readonly calendarClass = input<ClassValue>('');
|
package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
booleanAttribute,
|
|
5
|
+
computed,
|
|
6
|
+
forwardRef,
|
|
7
|
+
input,
|
|
8
|
+
model,
|
|
9
|
+
output,
|
|
10
|
+
signal,
|
|
11
|
+
} from '@angular/core';
|
|
2
12
|
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
13
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
4
14
|
import { lucideCheck } from '@ng-icons/lucide';
|
|
@@ -43,6 +53,7 @@ export const HLM_CHECKBOX_VALUE_ACCESSOR = {
|
|
|
43
53
|
},
|
|
44
54
|
providers: [HLM_CHECKBOX_VALUE_ACCESSOR],
|
|
45
55
|
viewProviders: [provideIcons({ lucideCheck })],
|
|
56
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
57
|
})
|
|
47
58
|
export class HlmCheckboxComponent implements ControlValueAccessor {
|
|
48
59
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
|
|
4
4
|
@Component({
|
|
@@ -9,6 +9,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
9
9
|
role: 'presentation',
|
|
10
10
|
'[class]': '_computedClass()',
|
|
11
11
|
},
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
13
|
})
|
|
13
14
|
export class HlmCommandGroupLabelComponent {
|
|
14
15
|
/*** The user defined class */
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommandGroupDirective } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
|
|
@@ -15,6 +15,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
15
15
|
host: {
|
|
16
16
|
'[class]': '_computedClass()',
|
|
17
17
|
},
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
19
|
})
|
|
19
20
|
export class HlmCommandGroupComponent {
|
|
20
21
|
/*** The user defined class */
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.component.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { booleanAttribute, Component, computed, input, output } from '@angular/core';
|
|
2
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';
|
|
3
3
|
import { BrnCommandItemDirective } from '@spartan-ng/brain/command';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
5
5
|
|
|
@@ -19,6 +19,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
19
19
|
host: {
|
|
20
20
|
'[class]': '_computedClass()',
|
|
21
21
|
},
|
|
22
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
23
|
})
|
|
23
24
|
export class HlmCommandItemComponent {
|
|
24
25
|
/** The value this item represents. */
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommandListDirective } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
|
|
@@ -15,6 +15,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
15
15
|
inputs: ['id'],
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
19
|
})
|
|
19
20
|
export class HlmCommandListComponent {
|
|
20
21
|
/** The user defined class */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommandSearchInputDirective } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
|
|
@@ -10,6 +10,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
10
10
|
host: {
|
|
11
11
|
'[class]': '_computedClass()',
|
|
12
12
|
},
|
|
13
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
14
|
})
|
|
14
15
|
export class HlmCommandSearchInputComponent {
|
|
15
16
|
/*** The user defined class */
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import { provideHlmIconConfig } from '@spartan-ng/ui-icon-helm';
|
|
4
4
|
|
|
@@ -12,6 +12,7 @@ import { provideHlmIconConfig } from '@spartan-ng/ui-icon-helm';
|
|
|
12
12
|
'[class]': '_computedClass()',
|
|
13
13
|
},
|
|
14
14
|
providers: [provideHlmIconConfig({ size: 'sm' })],
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
16
|
})
|
|
16
17
|
export class HlmCommandSearchComponent {
|
|
17
18
|
/*** The user defined class */
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
|
|
4
4
|
@Component({
|
|
@@ -9,6 +9,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
9
9
|
role: 'separator',
|
|
10
10
|
'[class]': '_computedClass()',
|
|
11
11
|
},
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
13
|
})
|
|
13
14
|
export class HlmCommandSeparatorComponent {
|
|
14
15
|
/*** The user defined class */
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
@Component({
|
|
4
4
|
standalone: true,
|
|
@@ -7,5 +7,6 @@ import { Component } from '@angular/core';
|
|
|
7
7
|
host: {
|
|
8
8
|
class: 'font-light ml-auto opacity-60 text-xs tracking-widest',
|
|
9
9
|
},
|
|
10
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
11
|
})
|
|
11
12
|
export class HlmCommandShortcutComponent {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommandDirective } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
|
|
@@ -18,6 +18,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
18
18
|
host: {
|
|
19
19
|
'[class]': '_computedClass()',
|
|
20
20
|
},
|
|
21
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
22
|
})
|
|
22
23
|
export class HlmCommandComponent {
|
|
23
24
|
/*** The user defined class */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
2
|
import {
|
|
3
3
|
booleanAttribute,
|
|
4
|
+
ChangeDetectionStrategy,
|
|
4
5
|
Component,
|
|
5
6
|
computed,
|
|
6
7
|
forwardRef,
|
|
@@ -72,6 +73,7 @@ export const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR = {
|
|
|
72
73
|
host: {
|
|
73
74
|
class: 'block',
|
|
74
75
|
},
|
|
76
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
75
77
|
})
|
|
76
78
|
export class HlmDatePickerMultiComponent<T> {
|
|
77
79
|
private readonly _config = injectHlmDatePickerMultiConfig<T>();
|
package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.component.ts.template
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
booleanAttribute,
|
|
4
|
+
ChangeDetectionStrategy,
|
|
5
|
+
Component,
|
|
6
|
+
computed,
|
|
7
|
+
forwardRef,
|
|
8
|
+
input,
|
|
9
|
+
model,
|
|
10
|
+
output,
|
|
11
|
+
signal,
|
|
12
|
+
} from '@angular/core';
|
|
3
13
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
14
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
5
15
|
import { lucideCalendar } from '@ng-icons/lucide';
|
|
@@ -60,6 +70,7 @@ export const HLM_DATE_PICKER_VALUE_ACCESSOR = {
|
|
|
60
70
|
host: {
|
|
61
71
|
class: 'block',
|
|
62
72
|
},
|
|
73
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
63
74
|
})
|
|
64
75
|
export class HlmDatePickerComponent<T> {
|
|
65
76
|
private readonly _config = injectHlmDatePickerConfig<T>();
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ import type { ClassValue } from 'clsx';
|
|
|
11
11
|
host: {
|
|
12
12
|
'[class]': '_computedClass()',
|
|
13
13
|
},
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
15
|
})
|
|
15
16
|
export class HlmDialogFooterComponent {
|
|
16
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ import type { ClassValue } from 'clsx';
|
|
|
11
11
|
host: {
|
|
12
12
|
'[class]': '_computedClass()',
|
|
13
13
|
},
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
15
|
})
|
|
15
16
|
export class HlmDialogHeaderComponent {
|
|
16
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, contentChild, contentChildren, effect } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect } from '@angular/core';
|
|
2
2
|
import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
|
|
3
3
|
import { HlmErrorDirective } from './hlm-error.directive';
|
|
4
4
|
|
|
@@ -20,6 +20,7 @@ import { HlmErrorDirective } from './hlm-error.directive';
|
|
|
20
20
|
host: {
|
|
21
21
|
class: 'space-y-2 block',
|
|
22
22
|
},
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
24
|
})
|
|
24
25
|
export class HlmFormFieldComponent {
|
|
25
26
|
public readonly control = contentChild(BrnFormFieldControl);
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
ElementRef,
|
|
5
|
+
Renderer2,
|
|
6
|
+
computed,
|
|
7
|
+
effect,
|
|
8
|
+
inject,
|
|
9
|
+
input,
|
|
10
|
+
signal,
|
|
11
|
+
} from '@angular/core';
|
|
2
12
|
import { hlm, injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
3
13
|
import type { ClassValue } from 'clsx';
|
|
4
14
|
|
|
@@ -11,6 +21,7 @@ import type { ClassValue } from 'clsx';
|
|
|
11
21
|
template: `
|
|
12
22
|
<ng-content />
|
|
13
23
|
`,
|
|
24
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
25
|
})
|
|
15
26
|
export class HlmHoverCardContentComponent {
|
|
16
27
|
private readonly _renderer = inject(Renderer2);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
@Component({
|
|
4
4
|
selector: 'hlm-input-otp-fake-caret',
|
|
@@ -8,5 +8,6 @@ import { Component } from '@angular/core';
|
|
|
8
8
|
<div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
|
|
9
9
|
</div>
|
|
10
10
|
`,
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
12
|
})
|
|
12
13
|
export class HlmInputOtpFakeCaretComponent {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideDot } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
@@ -16,6 +16,7 @@ import { type ClassValue } from 'clsx';
|
|
|
16
16
|
role: 'separator',
|
|
17
17
|
'[class]': '_computedClass()',
|
|
18
18
|
},
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
20
|
})
|
|
20
21
|
export class HlmInputOtpSeparatorComponent {
|
|
21
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.component.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NumberInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { Component, computed, input, numberAttribute } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
import { BrnInputOtpSlotComponent } from '@spartan-ng/brain/input-otp';
|
|
5
5
|
import { type ClassValue } from 'clsx';
|
|
@@ -16,6 +16,7 @@ import { HlmInputOtpFakeCaretComponent } from './hlm-input-otp-fake-caret.compon
|
|
|
16
16
|
host: {
|
|
17
17
|
'[class]': '_computedClass()',
|
|
18
18
|
},
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
20
|
})
|
|
20
21
|
export class HlmInputOtpSlotComponent {
|
|
21
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import { BrnMenuBarDirective } from '@spartan-ng/brain/menu';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
@@ -11,6 +11,7 @@ import type { ClassValue } from 'clsx';
|
|
|
11
11
|
},
|
|
12
12
|
hostDirectives: [BrnMenuBarDirective],
|
|
13
13
|
template: '<ng-content/>',
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
15
|
})
|
|
15
16
|
export class HlmMenuBarComponent {
|
|
16
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
2
|
import { BrnMenuGroupDirective } from '@spartan-ng/brain/menu';
|
|
3
3
|
|
|
4
4
|
@Component({
|
|
@@ -11,5 +11,6 @@ import { BrnMenuGroupDirective } from '@spartan-ng/brain/menu';
|
|
|
11
11
|
template: `
|
|
12
12
|
<ng-content />
|
|
13
13
|
`,
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
15
|
})
|
|
15
16
|
export class HlmMenuGroupComponent {}
|
package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideCheck } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
@@ -16,6 +16,7 @@ import type { ClassValue } from 'clsx';
|
|
|
16
16
|
host: {
|
|
17
17
|
'[class]': '_computedClass()',
|
|
18
18
|
},
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
20
|
})
|
|
20
21
|
export class HlmMenuItemCheckComponent {
|
|
21
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideCircle } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
@@ -16,6 +16,7 @@ import type { ClassValue } from 'clsx';
|
|
|
16
16
|
host: {
|
|
17
17
|
'[class]': '_computedClass()',
|
|
18
18
|
},
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
20
|
})
|
|
20
21
|
export class HlmMenuItemRadioComponent {
|
|
21
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronRight } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
@@ -15,6 +15,7 @@ import type { ClassValue } from 'clsx';
|
|
|
15
15
|
host: {
|
|
16
16
|
'[class]': '_computedClass()',
|
|
17
17
|
},
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
19
|
})
|
|
19
20
|
export class HlmMenuItemSubIndicatorComponent {
|
|
20
21
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Input, booleanAttribute, computed, input, signal } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, booleanAttribute, computed, input, signal } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ import type { ClassValue } from 'clsx';
|
|
|
11
11
|
host: {
|
|
12
12
|
'[class]': '_computedClass()',
|
|
13
13
|
},
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
15
|
})
|
|
15
16
|
export class HlmMenuLabelComponent {
|
|
16
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -9,6 +9,7 @@ import type { ClassValue } from 'clsx';
|
|
|
9
9
|
host: {
|
|
10
10
|
'[class]': '_computedClass()',
|
|
11
11
|
},
|
|
12
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
13
|
})
|
|
13
14
|
export class HlmMenuSeparatorComponent {
|
|
14
15
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -11,6 +11,7 @@ import type { ClassValue } from 'clsx';
|
|
|
11
11
|
host: {
|
|
12
12
|
'[class]': '_computedClass()',
|
|
13
13
|
},
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
15
|
})
|
|
15
16
|
export class HlmMenuShortcutComponent {
|
|
16
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Input, computed, input, signal } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input, computed, input, signal } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import { BrnMenuDirective } from '@spartan-ng/brain/menu';
|
|
4
4
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
@@ -30,6 +30,7 @@ type MenuVariants = VariantProps<typeof menuVariants>;
|
|
|
30
30
|
template: `
|
|
31
31
|
<ng-content />
|
|
32
32
|
`,
|
|
33
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
34
|
})
|
|
34
35
|
export class HlmMenuComponent {
|
|
35
36
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import { BrnMenuDirective } from '@spartan-ng/brain/menu';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
@@ -13,6 +13,7 @@ import type { ClassValue } from 'clsx';
|
|
|
13
13
|
template: `
|
|
14
14
|
<ng-content />
|
|
15
15
|
`,
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
17
|
})
|
|
17
18
|
export class HlmSubMenuComponent {
|
|
18
19
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, computed, input } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideEllipsis } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
@@ -15,6 +15,7 @@ import { ClassValue } from 'clsx';
|
|
|
15
15
|
<span class="sr-only">More pages</span>
|
|
16
16
|
</span>
|
|
17
17
|
`,
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
19
|
})
|
|
19
20
|
export class HlmPaginationEllipsisComponent {
|
|
20
21
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { booleanAttribute, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
3
3
|
import { RouterLink } from '@angular/router';
|
|
4
4
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
5
5
|
import { lucideChevronRight } from '@ng-icons/lucide';
|
|
@@ -27,6 +27,7 @@ import { HlmPaginationLinkDirective } from './hlm-pagination-link.directive';
|
|
|
27
27
|
<ng-icon hlm size="sm" name="lucideChevronRight" />
|
|
28
28
|
</a>
|
|
29
29
|
`,
|
|
30
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
31
|
})
|
|
31
32
|
export class HlmPaginationNextComponent {
|
|
32
33
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { booleanAttribute, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
3
3
|
import { RouterLink } from '@angular/router';
|
|
4
4
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
5
5
|
import { lucideChevronLeft } from '@ng-icons/lucide';
|
|
@@ -27,6 +27,7 @@ import { HlmPaginationLinkDirective } from './hlm-pagination-link.directive';
|
|
|
27
27
|
<span [class.sr-only]="iconOnly()">{{ text() }}</span>
|
|
28
28
|
</a>
|
|
29
29
|
`,
|
|
30
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
31
|
})
|
|
31
32
|
export class HlmPaginationPreviousComponent {
|
|
32
33
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|