@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
package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAlertDialogTitle } from '@spartan-ng/brain/alert-dialog';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
|
|
6
6
|
const alertVariants = cva(
|
|
7
|
-
'relative w-full rounded-lg border px-4 py-3 text-sm has-[>[hlmAlertIcon]]:grid has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] has-[>[hlmAlertIcon]]:gap-x-3
|
|
7
|
+
'relative w-full items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>[hlmAlertIcon]]:grid has-[>[hlmAlertIcon]]:grid-cols-[calc(theme(spacing.1)*4)_1fr] has-[>[hlmAlertIcon]]:gap-x-3 [&>[hlmAlertIcon]]:size-4 [&>[hlmAlertIcon]]:translate-y-0.5 [&>[hlmAlertIcon]]:text-current',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default: 'bg-card text-card-foreground',
|
|
12
12
|
destructive:
|
|
13
|
-
'text-destructive bg-card [&>[
|
|
13
|
+
'text-destructive bg-card [&>[hlmAlertDescription]]:text-destructive/90 [&>[hlmAlertDesc]]:text-destructive/90 [&>[hlmAlertIcon]]:text-current',
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
defaultVariants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type NumberInput, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
2
2
|
import { Directive, computed, input } from '@angular/core';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
const parseDividedString = (value: NumberInput): NumberInput => {
|
|
@@ -34,7 +34,7 @@ export class HlmAspectRatio {
|
|
|
34
34
|
|
|
35
35
|
protected readonly _computedClass = computed(() =>
|
|
36
36
|
hlm(
|
|
37
|
-
'relative w-full [&>*:first-child]:absolute [&>*:first-child]:
|
|
37
|
+
'relative w-full [&>*:first-child]:absolute [&>*:first-child]:h-full [&>*:first-child]:w-full [&>*:first-child]:object-cover',
|
|
38
38
|
this.userClass(),
|
|
39
39
|
),
|
|
40
40
|
);
|
package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject } from '@angular/core';
|
|
2
2
|
import { BrnAvatarFallback } from '@spartan-ng/brain/avatar';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: '[hlmAvatarFallback]',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAvatar } from '@spartan-ng/brain/avatar';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -22,6 +22,6 @@ export class HlmAvatar extends BrnAvatar {
|
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
23
|
|
|
24
24
|
protected readonly _computedClass = computed(() =>
|
|
25
|
-
hlm('relative flex shrink-0 overflow-hidden rounded-full
|
|
25
|
+
hlm('relative flex size-8 shrink-0 overflow-hidden rounded-full', this.userClass()),
|
|
26
26
|
);
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
2
|
import { BrnAvatarImage } from '@spartan-ng/brain/avatar';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
|
|
6
6
|
const badgeVariants = cva(
|
|
7
|
-
'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium
|
|
7
|
+
'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&_ng-icon]:pointer-events-none [&_ng-icon]:size-3',
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
|
-
default: '
|
|
12
|
-
secondary: '
|
|
11
|
+
default: 'bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent',
|
|
12
|
+
secondary: 'bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent',
|
|
13
13
|
destructive:
|
|
14
|
-
'
|
|
14
|
+
'bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white',
|
|
15
15
|
outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',
|
|
16
16
|
},
|
|
17
17
|
},
|
package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-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 { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
@@ -12,6 +12,6 @@ export class HlmBreadcrumbList {
|
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
|
|
14
14
|
protected readonly _computedClass = computed(() =>
|
|
15
|
-
hlm('text-muted-foreground flex flex-wrap items-center gap-1.5
|
|
15
|
+
hlm('text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5', this.userClass()),
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -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({
|
|
@@ -14,5 +14,5 @@ import type { ClassValue } from 'clsx';
|
|
|
14
14
|
export class HlmBreadcrumbPage {
|
|
15
15
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
16
|
|
|
17
|
-
protected readonly _computedClass = computed(() => hlm('font-normal
|
|
17
|
+
protected readonly _computedClass = computed(() => hlm('text-foreground font-normal', this.userClass()));
|
|
18
18
|
}
|
package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.ts.template
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { hlm } from '
|
|
4
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
5
5
|
import type { ClassValue } from 'clsx';
|
|
6
6
|
|
|
7
7
|
@Component({
|
|
@@ -24,5 +24,5 @@ import type { ClassValue } from 'clsx';
|
|
|
24
24
|
export class HlmBreadcrumbSeparator {
|
|
25
25
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
26
26
|
|
|
27
|
-
protected readonly _computedClass = computed(() => hlm('[&_ng-icon]:
|
|
27
|
+
protected readonly _computedClass = computed(() => hlm('[&_ng-icon]:block [&_ng-icon]:size-3.5', this.userClass()));
|
|
28
28
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Directive, computed, input, signal } from '@angular/core';
|
|
2
2
|
import { BrnButton } from '@spartan-ng/brain/button';
|
|
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
|
import { injectBrnButtonConfig } from './hlm-button.token';
|
|
7
7
|
|
|
8
8
|
export const buttonVariants = cva(
|
|
9
|
-
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_ng-icon]:pointer-events-none
|
|
9
|
+
'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 cursor-default items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
13
|
default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
|
|
14
14
|
destructive:
|
|
15
|
-
'bg-destructive
|
|
15
|
+
'bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white',
|
|
16
16
|
outline:
|
|
17
|
-
'
|
|
17
|
+
'bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border',
|
|
18
18
|
secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
|
|
19
19
|
ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
|
|
20
20
|
link: 'text-primary underline-offset-4 hover:underline',
|
|
21
21
|
},
|
|
22
22
|
size: {
|
|
23
23
|
default: 'h-9 px-4 py-2 has-[>ng-icon]:px-3',
|
|
24
|
-
sm: 'h-8
|
|
24
|
+
sm: 'h-8 gap-1.5 rounded-md px-3 has-[>ng-icon]:px-2.5',
|
|
25
25
|
lg: 'h-10 rounded-md px-6 has-[>ng-icon]:px-4',
|
|
26
26
|
icon: 'size-9',
|
|
27
27
|
},
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
Weekday,
|
|
26
26
|
} from '@spartan-ng/brain/calendar';
|
|
27
27
|
import { injectDateAdapter } from '@spartan-ng/brain/date-time';
|
|
28
|
-
import { buttonVariants } from '
|
|
29
|
-
import { HlmIcon } from '
|
|
30
|
-
import { hlm } from '
|
|
28
|
+
import { buttonVariants } from '<%- importAlias %>/button';
|
|
29
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
30
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
31
31
|
import type { ClassValue } from 'clsx';
|
|
32
32
|
|
|
33
33
|
@Component({
|
|
@@ -182,7 +182,7 @@ export class HlmCalendarMulti<T> {
|
|
|
182
182
|
protected readonly _btnClass = hlm(
|
|
183
183
|
buttonVariants({ variant: 'ghost' }),
|
|
184
184
|
'size-8 p-0 font-normal aria-selected:opacity-100',
|
|
185
|
-
'data-[outside]:text-muted-foreground data-[outside]:
|
|
185
|
+
'data-[outside]:text-muted-foreground data-[outside]:aria-selected:bg-accent/50 data-[outside]:aria-selected:text-muted-foreground data-[outside]:opacity-50 data-[outside]:aria-selected:opacity-30',
|
|
186
186
|
'data-[today]:bg-accent data-[today]:text-accent-foreground',
|
|
187
187
|
'data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground',
|
|
188
188
|
'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
Weekday,
|
|
26
26
|
} from '@spartan-ng/brain/calendar';
|
|
27
27
|
import { injectDateAdapter } from '@spartan-ng/brain/date-time';
|
|
28
|
-
import { buttonVariants } from '
|
|
29
|
-
import { HlmIcon } from '
|
|
30
|
-
import { hlm } from '
|
|
28
|
+
import { buttonVariants } from '<%- importAlias %>/button';
|
|
29
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
30
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
31
31
|
import type { ClassValue } from 'clsx';
|
|
32
32
|
|
|
33
33
|
@Component({
|
|
@@ -180,6 +180,6 @@ export class HlmCalendarRange<T> {
|
|
|
180
180
|
'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
|
|
181
181
|
'data-[range-start]:rounded-l-md',
|
|
182
182
|
'data-[range-end]:rounded-r-md',
|
|
183
|
-
'data-[range-between]:
|
|
183
|
+
'data-[range-between]:bg-accent data-[range-between]:text-accent-foreground data-[range-between]:rounded-none',
|
|
184
184
|
);
|
|
185
185
|
}
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
Weekday,
|
|
26
26
|
} from '@spartan-ng/brain/calendar';
|
|
27
27
|
import { injectDateAdapter } from '@spartan-ng/brain/date-time';
|
|
28
|
-
import { buttonVariants } from '
|
|
29
|
-
import { HlmIcon } from '
|
|
30
|
-
import { hlm } from '
|
|
28
|
+
import { buttonVariants } from '<%- importAlias %>/button';
|
|
29
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
30
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
31
31
|
import type { ClassValue } from 'clsx';
|
|
32
32
|
|
|
33
33
|
@Component({
|
|
@@ -170,7 +170,7 @@ export class HlmCalendar<T> {
|
|
|
170
170
|
protected readonly _btnClass = hlm(
|
|
171
171
|
buttonVariants({ variant: 'ghost' }),
|
|
172
172
|
'size-8 p-0 font-normal aria-selected:opacity-100',
|
|
173
|
-
'data-[outside]:text-muted-foreground data-[outside]:
|
|
173
|
+
'data-[outside]:text-muted-foreground data-[outside]:aria-selected:bg-accent/50 data-[outside]:aria-selected:text-muted-foreground data-[outside]:opacity-50 data-[outside]:aria-selected:opacity-30',
|
|
174
174
|
'data-[today]:bg-accent data-[today]:text-accent-foreground',
|
|
175
175
|
'data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary dark:hover:text-accent-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground',
|
|
176
176
|
'data-[disabled]:text-muted-foreground data-[disabled]:opacity-50',
|
|
@@ -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({
|
|
@@ -10,5 +10,5 @@ import type { ClassValue } from 'clsx';
|
|
|
10
10
|
})
|
|
11
11
|
export class HlmCardFooter {
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
|
-
protected readonly _computedClass = computed(() => hlm('
|
|
13
|
+
protected readonly _computedClass = computed(() => hlm('[.border-t]:pt-6 flex items-center px-6', this.userClass()));
|
|
14
14
|
}
|
|
@@ -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 HlmCardHeader {
|
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
protected readonly _computedClass = computed(() =>
|
|
14
14
|
hlm(
|
|
15
|
-
'@container/card-header
|
|
15
|
+
'@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6',
|
|
16
16
|
this.userClass(),
|
|
17
17
|
),
|
|
18
18
|
);
|
|
@@ -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({
|
|
@@ -10,5 +10,5 @@ import type { ClassValue } from 'clsx';
|
|
|
10
10
|
})
|
|
11
11
|
export class HlmCardTitle {
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
|
-
protected readonly _computedClass = computed(() => hlm('leading-none
|
|
13
|
+
protected readonly _computedClass = computed(() => hlm('font-semibold leading-none', this.userClass()));
|
|
14
14
|
}
|
|
@@ -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 { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
import { HlmCarousel } from './hlm-carousel';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
import { HlmCarousel } from './hlm-carousel';
|
|
5
5
|
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
} from '@angular/core';
|
|
11
11
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
12
12
|
import { lucideArrowRight } from '@ng-icons/lucide';
|
|
13
|
-
import { HlmButton, provideBrnButtonConfig } from '
|
|
14
|
-
import { HlmIcon } from '
|
|
15
|
-
import { hlm } from '
|
|
13
|
+
import { HlmButton, provideBrnButtonConfig } from '<%- importAlias %>/button';
|
|
14
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
15
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
16
16
|
import type { ClassValue } from 'clsx';
|
|
17
17
|
import { HlmCarousel } from './hlm-carousel';
|
|
18
18
|
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
} from '@angular/core';
|
|
11
11
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
12
12
|
import { lucideArrowLeft } from '@ng-icons/lucide';
|
|
13
|
-
import { HlmButton, provideBrnButtonConfig } from '
|
|
14
|
-
import { HlmIcon } from '
|
|
15
|
-
import { hlm } from '
|
|
13
|
+
import { HlmButton, provideBrnButtonConfig } from '<%- importAlias %>/button';
|
|
14
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
15
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
16
16
|
import type { ClassValue } from 'clsx';
|
|
17
17
|
import { HlmCarousel } from './hlm-carousel';
|
|
18
18
|
|
package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-slide-display.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
import { HlmCarousel } from './hlm-carousel';
|
|
5
5
|
|
|
@@ -15,8 +15,8 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
|
15
15
|
import { lucideCheck } from '@ng-icons/lucide';
|
|
16
16
|
import { BrnCheckbox } from '@spartan-ng/brain/checkbox';
|
|
17
17
|
import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
18
|
-
import { HlmIcon } from '
|
|
19
|
-
import { hlm } from '
|
|
18
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
19
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
20
20
|
import type { ClassValue } from 'clsx';
|
|
21
21
|
|
|
22
22
|
export const HLM_CHECKBOX_VALUE_ACCESSOR = {
|
|
@@ -66,7 +66,7 @@ export class HlmCheckbox implements ControlValueAccessor {
|
|
|
66
66
|
|
|
67
67
|
protected readonly _computedClass = computed(() =>
|
|
68
68
|
hlm(
|
|
69
|
-
'
|
|
69
|
+
'border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer size-4 shrink-0 cursor-default rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
70
70
|
this.userClass(),
|
|
71
71
|
this._state().disabled() ? 'cursor-not-allowed opacity-50' : '',
|
|
72
72
|
),
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.ts.template
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnDialogClose } from '@spartan-ng/brain/dialog';
|
|
3
|
-
import { HlmButton, provideBrnButtonConfig } from '
|
|
4
|
-
import { provideHlmIconConfig } from '
|
|
5
|
-
import { hlm } from '
|
|
3
|
+
import { HlmButton, provideBrnButtonConfig } from '<%- importAlias %>/button';
|
|
4
|
+
import { provideHlmIconConfig } from '<%- importAlias %>/icon';
|
|
5
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Directive({
|
|
@@ -17,7 +17,7 @@ export class HlmCommandDialogCloseButton {
|
|
|
17
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
18
18
|
protected readonly _computedClass = computed(() =>
|
|
19
19
|
hlm(
|
|
20
|
-
'
|
|
20
|
+
'focus-visible:ring-ring hover:bg-accent hover:text-accent-foreground ring-offset-background absolute right-3 top-3 inline-flex !h-5 h-10 !w-5 items-center justify-center rounded-md !p-1 px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
|
|
21
21
|
this.userClass(),
|
|
22
22
|
),
|
|
23
23
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Directive, ElementRef, Renderer2, computed, contentChild, effect, inject, input, signal } from '@angular/core';
|
|
2
2
|
import { BrnCommandSearchInputToken } from '@spartan-ng/brain/command';
|
|
3
3
|
import { 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({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommandGroup } from '@spartan-ng/brain/command';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'hlm-command-group',
|
|
@@ -22,6 +22,6 @@ export class HlmCommandGroup {
|
|
|
22
22
|
|
|
23
23
|
/*** The styles to apply */
|
|
24
24
|
protected readonly _computedClass = computed(() =>
|
|
25
|
-
hlm('text-foreground overflow-hidden p-1
|
|
25
|
+
hlm('text-foreground block overflow-hidden p-1 data-[hidden]:hidden', this.userClass()),
|
|
26
26
|
);
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Directive, 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 { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';
|
|
3
3
|
import { BrnCommandItem } from '@spartan-ng/brain/command';
|
|
4
|
-
import { hlm } from '
|
|
4
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'button[hlm-command-item]',
|
|
@@ -38,7 +38,7 @@ export class HlmCommandItem {
|
|
|
38
38
|
/*** The styles to apply */
|
|
39
39
|
protected readonly _computedClass = computed(() =>
|
|
40
40
|
hlm(
|
|
41
|
-
'data-[selected]:bg-accent data-[selected=true]:text-accent-foreground [&>ng-icon]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm
|
|
41
|
+
'data-[selected]:bg-accent data-[selected=true]:text-accent-foreground [&>ng-icon]:text-muted-foreground outline-hidden relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[hidden]:hidden data-[disabled]:opacity-50 [&>ng-icon]:pointer-events-none [&>ng-icon]:shrink-0 [&>ng-icon]:text-base',
|
|
42
42
|
this.userClass(),
|
|
43
43
|
),
|
|
44
44
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommandList } from '@spartan-ng/brain/command';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'hlm-command-list',
|
|
@@ -22,6 +22,6 @@ export class HlmCommandList {
|
|
|
22
22
|
|
|
23
23
|
/** The styles to apply */
|
|
24
24
|
protected readonly _computedClass = computed(() =>
|
|
25
|
-
hlm('max-h-[300px] overflow-
|
|
25
|
+
hlm('max-h-[300px] overflow-y-auto overflow-x-hidden', this.userClass()),
|
|
26
26
|
);
|
|
27
27
|
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search-input.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommandSearchInput } from '@spartan-ng/brain/command';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|