@spartan-ng/cli 0.0.1-alpha.507 → 0.0.1-alpha.509
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/generators.json +6 -0
- package/package.json +3 -2
- package/src/generators/base/generator.js +1 -1
- package/src/generators/base/generator.js.map +1 -1
- package/src/generators/base/lib/initialize-angular-library.d.ts +1 -1
- package/src/generators/base/lib/initialize-angular-library.js +2 -2
- package/src/generators/base/lib/initialize-angular-library.js.map +1 -1
- package/src/generators/base/schema.d.ts +1 -0
- package/src/generators/healthcheck/generator.js +2 -0
- package/src/generators/healthcheck/generator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-separator.d.ts +2 -0
- package/src/generators/healthcheck/healthchecks/brn-separator.js +34 -0
- package/src/generators/healthcheck/healthchecks/brn-separator.js.map +1 -0
- package/src/generators/migrate-helm-libraries/generator.js +10 -4
- package/src/generators/migrate-helm-libraries/generator.js.map +1 -1
- package/src/generators/migrate-helm-libraries/schema.d.ts +1 -0
- package/src/generators/migrate-separator/compat.d.ts +2 -0
- package/src/generators/migrate-separator/compat.js +7 -0
- package/src/generators/migrate-separator/compat.js.map +1 -0
- package/src/generators/migrate-separator/generator.d.ts +4 -0
- package/src/generators/migrate-separator/generator.js +78 -0
- package/src/generators/migrate-separator/generator.js.map +1 -0
- package/src/generators/migrate-separator/schema.d.ts +3 -0
- package/src/generators/migrate-separator/schema.json +14 -0
- package/src/generators/ui/generator.d.ts +1 -0
- package/src/generators/ui/generator.js +2 -0
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.ts.template +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-action-button.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.ts.template +2 -2
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.ts.template +3 -3
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.ts.template +2 -2
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.ts.template +2 -2
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.ts.template +1 -1
- package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.ts.template +5 -5
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-ellipsis.ts.template +2 -2
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-link.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-list.ts.template +2 -2
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-page.ts.template +2 -2
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.ts.template +2 -2
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb.ts.template +1 -1
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.ts.template +5 -5
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +4 -4
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +4 -4
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.ts.template +4 -4
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-action.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.ts.template +2 -2
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.ts.template +2 -2
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.ts.template +2 -2
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.ts.template +3 -3
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.ts.template +3 -3
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-slide-display.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.ts.template +1 -1
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.ts.template +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.ts.template +4 -4
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-icon.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search-input.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/index.ts.template +1 -0
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template +22 -12
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +18 -8
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +22 -12
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.ts.template +3 -3
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.ts.template +2 -4
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.ts.template +3 -5
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.ts.template +2 -2
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.ts.template +2 -2
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.ts.template +2 -2
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +2 -2
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.ts.template +2 -2
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +3 -3
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +2 -2
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.ts.template +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio-indicator.ts.template +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.ts.template +2 -2
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination-query-params.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.ts.template +2 -2
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.ts.template +2 -2
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.ts.template +3 -3
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.ts.template +3 -3
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.ts.template +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.ts.template +2 -2
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.ts.template +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.ts.template +2 -2
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.ts.template +2 -2
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.ts.template +1 -1
- package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.ts.template +3 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.ts.template +3 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.ts.template +1 -1
- package/src/generators/ui/libs/ui-separator-helm/files/index.ts.template +4 -2
- package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.ts.template +6 -7
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.ts.template +2 -2
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.ts.template +3 -3
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.ts.template +2 -2
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.ts.template +2 -2
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.ts.template +1 -1
- package/src/generators/ui/libs/ui-sonner-helm/files/lib/hlm-toaster.ts.template +1 -1
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.ts.template +2 -2
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.ts.template +2 -2
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +2 -2
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.ts.template +3 -3
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.ts.template +4 -4
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.ts.template +2 -2
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.ts.template +2 -2
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.ts.template +6 -6
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.ts.template +3 -3
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.ts.template +1 -1
- package/src/generators/ui/primitive-deps.js +2 -0
- package/src/generators/ui/primitive-deps.js.map +1 -1
- package/src/generators/ui/primitives.d.ts +1 -1
- package/src/generators/ui/supported-ui-libraries.json +26 -25
- package/src/utils/config.d.ts +18 -6
- package/src/utils/config.js +49 -3
- package/src/utils/config.js.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
-
import { HlmIcon } from '
|
|
5
|
-
import { hlm } from '
|
|
4
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -22,7 +22,7 @@ export class HlmMenuItemCheck {
|
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
23
|
protected _computedClass = computed(() =>
|
|
24
24
|
hlm(
|
|
25
|
-
'
|
|
25
|
+
'absolute left-2 flex h-3.5 w-3.5 items-center justify-center opacity-0 group-[.checked]:opacity-100',
|
|
26
26
|
this.userClass(),
|
|
27
27
|
),
|
|
28
28
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnMenuItemCheckbox } from '@spartan-ng/brain/menu';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -20,7 +20,7 @@ export class HlmMenuItemCheckbox {
|
|
|
20
20
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
21
21
|
protected readonly _computedClass = computed(() =>
|
|
22
22
|
hlm(
|
|
23
|
-
'
|
|
23
|
+
'hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground group relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors disabled:pointer-events-none disabled:opacity-50',
|
|
24
24
|
this.userClass(),
|
|
25
25
|
),
|
|
26
26
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { provideHlmIconConfig } from '
|
|
3
|
-
import { hlm } from '
|
|
2
|
+
import { provideHlmIconConfig } from '<%- importAlias %>/icon';
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio-indicator.ts.template
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
-
import { HlmIcon } from '
|
|
5
|
-
import { hlm } from '
|
|
4
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -22,7 +22,7 @@ export class HlmMenuItemRadioIndicator {
|
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
23
|
protected readonly _computedClass = computed(() =>
|
|
24
24
|
hlm(
|
|
25
|
-
'
|
|
25
|
+
'absolute left-2 flex h-3.5 w-3.5 items-center justify-center opacity-0 group-[.checked]:opacity-100',
|
|
26
26
|
this.userClass(),
|
|
27
27
|
),
|
|
28
28
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnMenuItemRadio } from '@spartan-ng/brain/menu';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -20,7 +20,7 @@ export class HlmMenuItemRadio {
|
|
|
20
20
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
21
21
|
protected readonly _computedClass = computed(() =>
|
|
22
22
|
hlm(
|
|
23
|
-
'
|
|
23
|
+
'hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground group relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors disabled:pointer-events-none disabled:opacity-50',
|
|
24
24
|
this.userClass(),
|
|
25
25
|
),
|
|
26
26
|
);
|
package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.ts.template
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
-
import { HlmIcon } from '
|
|
5
|
-
import { hlm } from '
|
|
4
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { booleanAttribute, computed, Directive, input } from '@angular/core';
|
|
3
3
|
import { BrnMenuItem } from '@spartan-ng/brain/menu';
|
|
4
|
-
import { hlm } from '
|
|
4
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
6
6
|
|
|
7
7
|
@Directive({
|
|
@@ -29,7 +29,7 @@ export class HlmMenuItem {
|
|
|
29
29
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
30
30
|
protected readonly _computedClass = computed(() =>
|
|
31
31
|
hlm(
|
|
32
|
-
`hover:bg-accent focus-visible:bg-accent
|
|
32
|
+
`hover:bg-accent focus-visible:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:!text-destructive [&_ng-icon]:text-muted-foreground relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0`,
|
|
33
33
|
this.userClass(),
|
|
34
34
|
),
|
|
35
35
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
@@ -12,5 +12,5 @@ import { ClassValue } from 'clsx';
|
|
|
12
12
|
})
|
|
13
13
|
export class HlmMenuSeparator {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
|
-
protected readonly _computedClass = computed(() => hlm('
|
|
15
|
+
protected readonly _computedClass = computed(() => hlm('bg-border -mx-1 my-1 block h-px', this.userClass()));
|
|
16
16
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnMenu } from '@spartan-ng/brain/menu';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
5
5
|
import type { ClassValue } from 'clsx';
|
|
6
6
|
|
|
7
7
|
export const menuVariants = cva(
|
|
8
|
-
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-top overflow-
|
|
8
|
+
'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-top overflow-y-auto overflow-x-hidden rounded-md border p-1 shadow-md',
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnMenu } from '@spartan-ng/brain/menu';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -18,7 +18,7 @@ export class HlmSubMenu {
|
|
|
18
18
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
19
19
|
protected readonly _computedClass = computed(() =>
|
|
20
20
|
hlm(
|
|
21
|
-
'border-border
|
|
21
|
+
'border-border bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg',
|
|
22
22
|
this.userClass(),
|
|
23
23
|
),
|
|
24
24
|
);
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@angular/core';
|
|
12
12
|
import { FormsModule } from '@angular/forms';
|
|
13
13
|
import { BrnSelectImports } from '@spartan-ng/brain/select';
|
|
14
|
-
import { HlmSelectImports } from '
|
|
14
|
+
import { HlmSelectImports } from '<%- importAlias %>/select';
|
|
15
15
|
import { createPageArray, outOfBoundCorrection } from './hlm-numbered-pagination';
|
|
16
16
|
import { HlmPagination } from './hlm-pagination';
|
|
17
17
|
import { HlmPaginationContent } from './hlm-pagination-content';
|
package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-numbered-pagination.ts.template
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@angular/core';
|
|
12
12
|
import { FormsModule } from '@angular/forms';
|
|
13
13
|
import { BrnSelectImports } from '@spartan-ng/brain/select';
|
|
14
|
-
import { HlmSelectImports } from '
|
|
14
|
+
import { HlmSelectImports } from '<%- importAlias %>/select';
|
|
15
15
|
import { HlmPagination } from './hlm-pagination';
|
|
16
16
|
import { HlmPaginationContent } from './hlm-pagination-content';
|
|
17
17
|
import { HlmPaginationEllipsis } from './hlm-pagination-ellipsis';
|
package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.ts.template
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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
|
-
import { HlmIcon } from '
|
|
5
|
-
import { hlm } from '
|
|
4
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { Directive, booleanAttribute, computed, input } from '@angular/core';
|
|
3
3
|
import { RouterLink } from '@angular/router';
|
|
4
|
-
import { type ButtonVariants, buttonVariants } from '
|
|
5
|
-
import { hlm } from '
|
|
4
|
+
import { type ButtonVariants, buttonVariants } from '<%- importAlias %>/button';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
7
7
|
import type { ClassValue } from 'clsx';
|
|
8
8
|
|
|
@@ -3,9 +3,9 @@ import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input }
|
|
|
3
3
|
import { RouterLink } from '@angular/router';
|
|
4
4
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
5
5
|
import { lucideChevronRight } from '@ng-icons/lucide';
|
|
6
|
-
import { ButtonVariants } from '
|
|
7
|
-
import { HlmIcon } from '
|
|
8
|
-
import { hlm } from '
|
|
6
|
+
import { ButtonVariants } from '<%- importAlias %>/button';
|
|
7
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
8
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { HlmPaginationLink } from './hlm-pagination-link';
|
|
11
11
|
|
package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.ts.template
CHANGED
|
@@ -3,9 +3,9 @@ import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input }
|
|
|
3
3
|
import { RouterLink } from '@angular/router';
|
|
4
4
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
5
5
|
import { lucideChevronLeft } from '@ng-icons/lucide';
|
|
6
|
-
import { ButtonVariants } from '
|
|
7
|
-
import { HlmIcon } from '
|
|
8
|
-
import { hlm } from '
|
|
6
|
+
import { ButtonVariants } from '<%- importAlias %>/button';
|
|
7
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
8
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
9
9
|
import { ClassValue } from 'clsx';
|
|
10
10
|
import { HlmPaginationLink } from './hlm-pagination-link';
|
|
11
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
@@ -12,7 +12,7 @@ export class HlmPopoverClose {
|
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
protected readonly _computedClass = computed(() =>
|
|
14
14
|
hlm(
|
|
15
|
-
'absolute right-4 top-4 rounded-sm opacity-70
|
|
15
|
+
'ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none',
|
|
16
16
|
this.userClass(),
|
|
17
17
|
),
|
|
18
18
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, ElementRef, Renderer2, computed, effect, inject, input, signal } from '@angular/core';
|
|
2
2
|
import { injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -24,7 +24,7 @@ export class HlmPopoverContent {
|
|
|
24
24
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
25
25
|
protected readonly _computedClass = computed(() =>
|
|
26
26
|
hlm(
|
|
27
|
-
'
|
|
27
|
+
'border-border bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative w-72 rounded-md border p-4 shadow-md outline-none',
|
|
28
28
|
this.userClass(),
|
|
29
29
|
),
|
|
30
30
|
);
|
package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { BrnProgressIndicator, injectBrnProgress } from '@spartan-ng/brain/progress';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { BrnProgress } from '@spartan-ng/brain/progress';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -13,6 +13,6 @@ import type { ClassValue } from 'clsx';
|
|
|
13
13
|
export class HlmProgress {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
15
|
protected readonly _computedClass = computed(() =>
|
|
16
|
-
hlm('
|
|
16
|
+
hlm('bg-primary/20 relative inline-flex h-2 w-full overflow-hidden rounded-full', this.userClass()),
|
|
17
17
|
);
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnRadioGroup } from '@spartan-ng/brain/radio-group';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
@@ -16,7 +16,7 @@ export class HlmRadioIndicator {
|
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
17
|
protected readonly _computedClass = computed(() =>
|
|
18
18
|
hlm(
|
|
19
|
-
'
|
|
19
|
+
'border-input text-primary group-has-[:focus-visible]:border-ring group-has-[:focus-visible]:ring-ring/50 dark:bg-input/30 shadow-xs group-data=[disabled=true]:cursor-not-allowed group-data=[disabled=true]:opacity-50 relative flex aspect-square size-4 shrink-0 items-center justify-center rounded-full border outline-none transition-[color,box-shadow] group-has-[:focus-visible]:ring-[3px]',
|
|
20
20
|
this.userClass(),
|
|
21
21
|
),
|
|
22
22
|
);
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
signal,
|
|
15
15
|
} from '@angular/core';
|
|
16
16
|
import { BrnRadio, BrnRadioChange } from '@spartan-ng/brain/radio-group';
|
|
17
|
-
import { hlm } from '
|
|
17
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
18
18
|
import { ClassValue } from 'clsx';
|
|
19
19
|
|
|
20
20
|
@Component({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { Directive, booleanAttribute, computed, input } from '@angular/core';
|
|
3
3
|
import { injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
4
|
-
import { hlm } from '
|
|
4
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
5
5
|
import type { ClassValue } from 'clsx';
|
|
6
6
|
|
|
7
7
|
@Directive({
|
|
@@ -22,7 +22,7 @@ export class HlmSelectContent {
|
|
|
22
22
|
|
|
23
23
|
protected readonly _computedClass = computed(() =>
|
|
24
24
|
hlm(
|
|
25
|
-
'
|
|
25
|
+
'border-border bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 w-full min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md data-[side=bottom]:top-[2px] data-[side=top]:bottom-[2px]',
|
|
26
26
|
this.userClass(),
|
|
27
27
|
),
|
|
28
28
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnSelectGroup } from '@spartan-ng/brain/select';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
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
2
|
import { BrnSelectLabel } from '@spartan-ng/brain/select';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
import { HlmSelectContent } from './hlm-select-content';
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ export class HlmSelectLabel {
|
|
|
18
18
|
protected readonly _computedClass = computed(() =>
|
|
19
19
|
hlm(
|
|
20
20
|
'text-muted-foreground px-2 py-1.5 text-xs',
|
|
21
|
-
this._stickyLabels() ? 'sticky top-0
|
|
21
|
+
this._stickyLabels() ? 'bg-popover sticky top-0 z-[2] block' : '',
|
|
22
22
|
this.userClass(),
|
|
23
23
|
),
|
|
24
24
|
);
|
|
@@ -2,8 +2,8 @@ import { ChangeDetectionStrategy, Component, computed, inject, input } from '@an
|
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideCheck } from '@ng-icons/lucide';
|
|
4
4
|
import { BrnSelectOption } from '@spartan-ng/brain/select';
|
|
5
|
-
import { HlmIcon } from '
|
|
6
|
-
import { hlm } from '
|
|
5
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
6
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
7
7
|
import type { ClassValue } from 'clsx';
|
|
8
8
|
|
|
9
9
|
@Component({
|
|
@@ -30,7 +30,7 @@ export class HlmSelectOption {
|
|
|
30
30
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
31
31
|
protected readonly _computedClass = computed(() =>
|
|
32
32
|
hlm(
|
|
33
|
-
'data-[active]:bg-accent data-[active]:text-accent-foreground [&>ng-icon]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8
|
|
33
|
+
'data-[active]:bg-accent data-[active]:text-accent-foreground [&>ng-icon]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>ng-icon]:pointer-events-none [&>ng-icon]:size-4 [&>ng-icon]:shrink-0',
|
|
34
34
|
this.userClass(),
|
|
35
35
|
),
|
|
36
36
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
4
|
-
import { HlmIcon } from '
|
|
5
|
-
import { hlm } from '
|
|
4
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronUp } from '@ng-icons/lucide';
|
|
4
|
-
import { HlmIcon } from '
|
|
5
|
-
import { hlm } from '
|
|
4
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -2,13 +2,13 @@ import { ChangeDetectionStrategy, Component, computed, contentChild, inject, inp
|
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
4
4
|
import { BrnSelect, BrnSelectTrigger } from '@spartan-ng/brain/select';
|
|
5
|
-
import { HlmIcon } from '
|
|
6
|
-
import { hlm } from '
|
|
5
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
6
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
7
7
|
import { cva } from 'class-variance-authority';
|
|
8
8
|
import type { ClassValue } from 'clsx';
|
|
9
9
|
|
|
10
10
|
export const selectTriggerVariants = cva(
|
|
11
|
-
`border-input [&>ng-icon]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm
|
|
11
|
+
`border-input [&>ng-icon]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 dark:bg-input/30 dark:hover:bg-input/50 shadow-xs flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 [&>ng-icon]:pointer-events-none [&>ng-icon]:size-4 [&>ng-icon]:shrink-0`,
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
error: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
@@ -11,6 +11,6 @@ import type { ClassValue } from 'clsx';
|
|
|
11
11
|
export class HlmSelectValue {
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
protected readonly _computedClass = computed(() =>
|
|
14
|
-
hlm('line-clamp-1 flex items-center gap-2
|
|
14
|
+
hlm('data-[placeholder]:text-muted-foreground line-clamp-1 flex items-center gap-2', this.userClass()),
|
|
15
15
|
);
|
|
16
16
|
}
|
|
@@ -3,8 +3,10 @@ import { HlmSeparator } from './lib/hlm-separator';
|
|
|
3
3
|
|
|
4
4
|
export * from './lib/hlm-separator';
|
|
5
5
|
|
|
6
|
+
export const HlmSeparatorImports = [HlmSeparator] as const;
|
|
7
|
+
|
|
6
8
|
@NgModule({
|
|
7
|
-
imports: [
|
|
8
|
-
exports: [
|
|
9
|
+
imports: [...HlmSeparatorImports],
|
|
10
|
+
exports: [...HlmSeparatorImports],
|
|
9
11
|
})
|
|
10
12
|
export class HlmSeparatorModule {}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { BrnSeparator } from '@spartan-ng/brain/separator';
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
4
|
import type { ClassValue } from 'clsx';
|
|
4
5
|
|
|
5
|
-
export type HlmSeparatorOrientation = 'horizontal' | 'vertical';
|
|
6
6
|
@Directive({
|
|
7
|
-
selector: '[hlmSeparator],
|
|
7
|
+
selector: '[hlmSeparator],hlm-separator',
|
|
8
|
+
hostDirectives: [{ directive: BrnSeparator, inputs: ['orientation', 'decorative'] }],
|
|
8
9
|
host: {
|
|
9
10
|
'[class]': '_computedClass()',
|
|
10
11
|
},
|
|
11
12
|
})
|
|
12
13
|
export class HlmSeparator {
|
|
13
|
-
public readonly orientation = input<HlmSeparatorOrientation>('horizontal');
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
15
|
protected _computedClass = computed(() =>
|
|
16
16
|
hlm(
|
|
17
|
-
'inline-flex shrink-0
|
|
18
|
-
this.orientation() === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',
|
|
17
|
+
'bg-border inline-flex shrink-0 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px',
|
|
19
18
|
this.userClass(),
|
|
20
19
|
),
|
|
21
20
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
@@ -12,7 +12,7 @@ export class HlmSheetClose {
|
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
protected readonly _computedClass = computed(() =>
|
|
14
14
|
hlm(
|
|
15
|
-
'ring-offset-background focus:ring-ring data-[state=open]:bg-secondary
|
|
15
|
+
'ring-offset-background focus:ring-ring data-[state=open]:bg-secondary rounded-xs focus:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none',
|
|
16
16
|
this.userClass(),
|
|
17
17
|
),
|
|
18
18
|
);
|
|
@@ -13,8 +13,8 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
|
13
13
|
import { lucideX } from '@ng-icons/lucide';
|
|
14
14
|
import { injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
15
15
|
import { BrnSheetClose } from '@spartan-ng/brain/sheet';
|
|
16
|
-
import { HlmIcon } from '
|
|
17
|
-
import { hlm } from '
|
|
16
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
17
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
18
18
|
import { cva } from 'class-variance-authority';
|
|
19
19
|
import type { ClassValue } from 'clsx';
|
|
20
20
|
import { HlmSheetClose } from './hlm-sheet-close';
|
|
@@ -29,7 +29,7 @@ export const sheetVariants = cva(
|
|
|
29
29
|
'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
|
|
30
30
|
left: 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
|
|
31
31
|
right:
|
|
32
|
-
'inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm
|
|
32
|
+
'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
defaultVariants: {
|