@spartan-ng/cli 0.0.1-alpha.374 → 0.0.1-alpha.379
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 +7 -7
- package/src/generators/base/lib/build-dependency-array.js +2 -2
- package/src/generators/base/lib/build-dependency-array.js.map +1 -1
- package/src/generators/base/versions.d.ts +21 -21
- package/src/generators/base/versions.js +21 -21
- package/src/generators/migrate-brain-imports/generator.js +1 -1
- package/src/generators/migrate-brain-imports/generator.js.map +1 -1
- package/src/generators/migrate-brain-imports/import-map.d.ts +26 -0
- package/src/generators/migrate-brain-imports/import-map.js +26 -0
- package/src/generators/migrate-brain-imports/import-map.js.map +1 -1
- package/src/generators/ui/generator.js +1 -1
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog.component.ts.template +2 -2
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.spec.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.spec.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +3 -3
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog.service.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/form-field.spec.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +6 -6
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-group.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.component.ts.template +21 -4
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.component.ts.template +21 -4
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet.component.ts.template +2 -2
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active-fill.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +2 -2
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-td.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-th.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip.component.ts.template +1 -1
- package/src/generators/ui/supported-ui-libraries.json +116 -121
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { booleanAttribute, Component, computed, input } from '@angular/core';
|
|
2
3
|
import { RouterLink } from '@angular/router';
|
|
3
4
|
import { lucideChevronRight } from '@ng-icons/lucide';
|
|
5
|
+
import { ButtonVariants } from '@spartan-ng/ui-button-helm';
|
|
4
6
|
import { hlm } from '@spartan-ng/ui-core';
|
|
5
7
|
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
6
8
|
import { ClassValue } from 'clsx';
|
|
@@ -12,8 +14,16 @@ import { HlmPaginationLinkDirective } from './hlm-pagination-link.directive';
|
|
|
12
14
|
imports: [HlmPaginationLinkDirective, HlmIconComponent],
|
|
13
15
|
providers: [provideIcons({ lucideChevronRight })],
|
|
14
16
|
template: `
|
|
15
|
-
<a
|
|
16
|
-
|
|
17
|
+
<a
|
|
18
|
+
[class]="_computedClass()"
|
|
19
|
+
hlmPaginationLink
|
|
20
|
+
[link]="link()"
|
|
21
|
+
[queryParams]="queryParams()"
|
|
22
|
+
[queryParamsHandling]="queryParamsHandling()"
|
|
23
|
+
[size]="size()"
|
|
24
|
+
[attr.aria-label]="ariaLabel()"
|
|
25
|
+
>
|
|
26
|
+
<span [class.sr-only]="iconOnly()">{{ text() }}</span>
|
|
17
27
|
<hlm-icon size="sm" name="lucideChevronRight" />
|
|
18
28
|
</a>
|
|
19
29
|
`,
|
|
@@ -21,9 +31,16 @@ import { HlmPaginationLinkDirective } from './hlm-pagination-link.directive';
|
|
|
21
31
|
export class HlmPaginationNextComponent {
|
|
22
32
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
33
|
public readonly link = input<RouterLink['routerLink']>();
|
|
34
|
+
public readonly queryParams = input<RouterLink['queryParams']>();
|
|
35
|
+
public readonly queryParamsHandling = input<RouterLink['queryParamsHandling']>();
|
|
24
36
|
|
|
25
37
|
public readonly ariaLabel = input<string>('Go to next page', { alias: 'aria-label' });
|
|
26
38
|
public readonly text = input<string>('Next');
|
|
39
|
+
public readonly iconOnly = input<boolean, BooleanInput>(false, {
|
|
40
|
+
transform: booleanAttribute,
|
|
41
|
+
});
|
|
27
42
|
|
|
28
|
-
protected readonly
|
|
43
|
+
protected readonly size = computed<ButtonVariants['size']>(() => (this.iconOnly() ? 'icon' : 'default'));
|
|
44
|
+
|
|
45
|
+
protected readonly _computedClass = computed(() => hlm('gap-1', !this.iconOnly() ? 'pr-2.5' : '', this.userClass()));
|
|
29
46
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { booleanAttribute, Component, computed, input } from '@angular/core';
|
|
2
3
|
import { RouterLink } from '@angular/router';
|
|
3
4
|
import { lucideChevronLeft } from '@ng-icons/lucide';
|
|
5
|
+
import { ButtonVariants } from '@spartan-ng/ui-button-helm';
|
|
4
6
|
import { hlm } from '@spartan-ng/ui-core';
|
|
5
7
|
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
6
8
|
import { ClassValue } from 'clsx';
|
|
@@ -12,18 +14,33 @@ import { HlmPaginationLinkDirective } from './hlm-pagination-link.directive';
|
|
|
12
14
|
imports: [HlmPaginationLinkDirective, HlmIconComponent],
|
|
13
15
|
providers: [provideIcons({ lucideChevronLeft })],
|
|
14
16
|
template: `
|
|
15
|
-
<a
|
|
17
|
+
<a
|
|
18
|
+
[class]="_computedClass()"
|
|
19
|
+
hlmPaginationLink
|
|
20
|
+
[link]="link()"
|
|
21
|
+
[queryParams]="queryParams()"
|
|
22
|
+
[queryParamsHandling]="queryParamsHandling()"
|
|
23
|
+
[size]="size()"
|
|
24
|
+
[attr.aria-label]="ariaLabel()"
|
|
25
|
+
>
|
|
16
26
|
<hlm-icon size="sm" name="lucideChevronLeft" />
|
|
17
|
-
<span>{{ text() }}</span>
|
|
27
|
+
<span [class.sr-only]="iconOnly()">{{ text() }}</span>
|
|
18
28
|
</a>
|
|
19
29
|
`,
|
|
20
30
|
})
|
|
21
31
|
export class HlmPaginationPreviousComponent {
|
|
22
32
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
33
|
public readonly link = input<RouterLink['routerLink']>();
|
|
34
|
+
public readonly queryParams = input<RouterLink['queryParams']>();
|
|
35
|
+
public readonly queryParamsHandling = input<RouterLink['queryParamsHandling']>();
|
|
24
36
|
|
|
25
37
|
public readonly ariaLabel = input<string>('Go to previous page', { alias: 'aria-label' });
|
|
26
38
|
public readonly text = input<string>('Previous');
|
|
39
|
+
public readonly iconOnly = input<boolean, BooleanInput>(false, {
|
|
40
|
+
transform: booleanAttribute,
|
|
41
|
+
});
|
|
27
42
|
|
|
28
|
-
protected readonly
|
|
43
|
+
protected readonly size = computed<ButtonVariants['size']>(() => (this.iconOnly() ? 'icon' : 'default'));
|
|
44
|
+
|
|
45
|
+
protected readonly _computedClass = computed(() => hlm('gap-1', !this.iconOnly() ? 'pl-2.5' : '', this.userClass()));
|
|
29
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { injectBrnProgress } from '@spartan-ng/brain/progress';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { injectBrnProgress } from '@spartan-ng/ui-progress-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnSelectGroupDirective } from '@spartan-ng/brain/select';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnSelectGroupDirective } from '@spartan-ng/ui-select-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { BrnSelectLabelDirective } from '@spartan-ng/brain/select';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnSelectLabelDirective } from '@spartan-ng/ui-select-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
import { HlmSelectContentDirective } from './hlm-select-content.directive';
|
|
6
6
|
|
package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
2
|
import { lucideCheck } from '@ng-icons/lucide';
|
|
3
|
+
import { BrnSelectOptionDirective } from '@spartan-ng/brain/select';
|
|
3
4
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
5
|
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
5
|
-
import { BrnSelectOptionDirective } from '@spartan-ng/ui-select-brain';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Component, computed, contentChild, inject, input } from '@angular/core';
|
|
2
2
|
import { provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
4
|
+
import { BrnSelectComponent, BrnSelectTriggerDirective } from '@spartan-ng/brain/select';
|
|
4
5
|
import { hlm } from '@spartan-ng/ui-core';
|
|
5
6
|
import { HlmIconComponent } from '@spartan-ng/ui-icon-helm';
|
|
6
|
-
import { BrnSelectComponent, BrnSelectTriggerDirective } from '@spartan-ng/ui-select-brain';
|
|
7
7
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
8
8
|
import type { ClassValue } from 'clsx';
|
|
9
9
|
|
package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Component, ElementRef, Renderer2, computed, effect, inject, input, signal } from '@angular/core';
|
|
2
2
|
import { lucideX } from '@ng-icons/lucide';
|
|
3
|
+
import { BrnSheetCloseDirective } from '@spartan-ng/brain/sheet';
|
|
3
4
|
import { hlm, injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/ui-core';
|
|
4
5
|
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
5
|
-
import { BrnSheetCloseDirective } from '@spartan-ng/ui-sheet-brain';
|
|
6
6
|
import { cva } from 'class-variance-authority';
|
|
7
7
|
import type { ClassValue } from 'clsx';
|
|
8
8
|
import { HlmSheetCloseDirective } from './hlm-sheet-close.directive';
|
package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnSheetDescriptionDirective } from '@spartan-ng/brain/sheet';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnSheetDescriptionDirective } from '@spartan-ng/ui-sheet-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnSheetTitleDirective } from '@spartan-ng/brain/sheet';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnSheetTitleDirective } from '@spartan-ng/ui-sheet-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, forwardRef } from '@angular/core';
|
|
2
|
-
import { BrnDialogComponent } from '@spartan-ng/
|
|
3
|
-
import { BrnSheetComponent, BrnSheetOverlayComponent } from '@spartan-ng/
|
|
2
|
+
import { BrnDialogComponent } from '@spartan-ng/brain/dialog';
|
|
3
|
+
import { BrnSheetComponent, BrnSheetOverlayComponent } from '@spartan-ng/brain/sheet';
|
|
4
4
|
import { HlmSheetOverlayDirective } from './hlm-sheet-overlay.directive';
|
|
5
5
|
|
|
6
6
|
@Component({
|
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnSliderInputDirective } from '@spartan-ng/brain/slider';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnSliderInputDirective } from '@spartan-ng/ui-slider-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { BRN_SLIDER, BrnSliderThumbDirective } from '@spartan-ng/brain/slider';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BRN_SLIDER, BrnSliderThumbDirective } from '@spartan-ng/ui-slider-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { BRN_SLIDER, BrnSliderTickMarkDirective } from '@spartan-ng/brain/slider';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BRN_SLIDER, BrnSliderTickMarkDirective } from '@spartan-ng/ui-slider-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { BRN_SLIDER, BrnSliderTrackActiveFillDirective } from '@spartan-ng/brain/slider';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BRN_SLIDER, BrnSliderTrackActiveFillDirective } from '@spartan-ng/ui-slider-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { BRN_SLIDER, BRN_SLIDER_TRACK, BrnSliderTrackDirective } from '@spartan-ng/brain/slider';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BRN_SLIDER, BRN_SLIDER_TRACK, BrnSliderTrackDirective } from '@spartan-ng/ui-slider-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
import { HlmSliderTickMarkDirective } from './hlm-slider-tick-mark.directive';
|
|
6
6
|
import { HlmSliderTickMarksDirective } from './hlm-slider-tick-marks.directive';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { BRN_SLIDER, BrnSliderDirective } from '@spartan-ng/brain/slider';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BRN_SLIDER, BrnSliderDirective } from '@spartan-ng/ui-slider-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { Component, booleanAttribute, computed, forwardRef, input, model, output } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
5
|
+
import { BrnSwitchComponent, BrnSwitchThumbComponent } from '@spartan-ng/brain/switch';
|
|
4
6
|
import { hlm } from '@spartan-ng/ui-core';
|
|
5
|
-
import { ChangeFn, TouchFn } from '@spartan-ng/ui-forms-brain';
|
|
6
|
-
import { BrnSwitchComponent, BrnSwitchThumbComponent } from '@spartan-ng/ui-switch-brain';
|
|
7
7
|
import type { ClassValue } from 'clsx';
|
|
8
8
|
import { HlmSwitchThumbDirective } from './hlm-switch-thumb.directive';
|
|
9
9
|
export const HLM_SWITCH_VALUE_ACCESSOR = {
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
inject,
|
|
9
9
|
input,
|
|
10
10
|
} from '@angular/core';
|
|
11
|
+
import { BrnColumnDefComponent } from '@spartan-ng/brain/table';
|
|
11
12
|
import { hlm } from '@spartan-ng/ui-core';
|
|
12
|
-
import { BrnColumnDefComponent } from '@spartan-ng/ui-table-brain';
|
|
13
13
|
import type { ClassValue } from 'clsx';
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
inject,
|
|
9
9
|
input,
|
|
10
10
|
} from '@angular/core';
|
|
11
|
+
import { BrnColumnDefComponent } from '@spartan-ng/brain/table';
|
|
11
12
|
import { hlm } from '@spartan-ng/ui-core';
|
|
12
|
-
import { BrnColumnDefComponent } from '@spartan-ng/ui-table-brain';
|
|
13
13
|
import type { ClassValue } from 'clsx';
|
|
14
14
|
|
|
15
15
|
@Component({
|
package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnTabsContentDirective } from '@spartan-ng/brain/tabs';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnTabsContentDirective } from '@spartan-ng/ui-tabs-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnTabsListDirective } from '@spartan-ng/brain/tabs';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnTabsListDirective } from '@spartan-ng/ui-tabs-brain';
|
|
4
4
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
5
5
|
import type { ClassValue } from 'clsx';
|
|
6
6
|
|
package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template
CHANGED
|
@@ -2,10 +2,10 @@ import { CdkObserveContent } from '@angular/cdk/observers';
|
|
|
2
2
|
import { Component, type ElementRef, computed, contentChildren, input, viewChild } from '@angular/core';
|
|
3
3
|
import { toObservable } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';
|
|
5
|
+
import { BrnTabsPaginatedListDirective, BrnTabsTriggerDirective } from '@spartan-ng/brain/tabs';
|
|
5
6
|
import { buttonVariants } from '@spartan-ng/ui-button-helm';
|
|
6
7
|
import { hlm } from '@spartan-ng/ui-core';
|
|
7
8
|
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
8
|
-
import { BrnTabsPaginatedListDirective, BrnTabsTriggerDirective } from '@spartan-ng/ui-tabs-brain';
|
|
9
9
|
import type { ClassValue } from 'clsx';
|
|
10
10
|
import { listVariants } from './hlm-tabs-list.component';
|
|
11
11
|
|
package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnTabsTriggerDirective } from '@spartan-ng/brain/tabs';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
-
import { BrnTabsTriggerDirective } from '@spartan-ng/ui-tabs-brain';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, Input, type TemplateRef, inject } from '@angular/core';
|
|
2
|
-
import { BrnTooltipTriggerDirective } from '@spartan-ng/
|
|
2
|
+
import { BrnTooltipTriggerDirective } from '@spartan-ng/brain/tooltip';
|
|
3
3
|
|
|
4
4
|
@Directive({
|
|
5
5
|
selector: '[hlmTooltipTrigger]',
|