@spartan-ng/cli 0.0.1-alpha.519 → 0.0.1-alpha.520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/generators/base/lib/deleteFiles.d.ts +1 -1
- package/src/generators/base/lib/initialize-angular-library.js.map +1 -1
- package/src/generators/base/schema.d.ts +1 -1
- package/src/generators/healthcheck/compat.d.ts +1 -1
- package/src/generators/healthcheck/generator.d.ts +2 -2
- package/src/generators/healthcheck/generator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brain-imports.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/brain-imports.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-accordion-trigger.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/brn-accordion-trigger.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-checkbox-changed-event-rename.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/brn-checkbox-changed-event-rename.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-radio.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/brn-radio.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-separator.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/brn-separator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-switch-changed-event-rename.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/brn-switch-changed-event-rename.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-toggle-group.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/brn-toggle-group.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/core-imports.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/core-imports.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/helm-imports.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/helm-imports.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-date-picker.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-date-picker.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-icon.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-icon.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-progress.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-progress.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-scroll-area.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-scroll-area.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-select.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/hlm-select.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/hlm.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/hlm.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/module-imports.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/module-imports.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/naming-conventions.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/naming-conventions.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/version.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks/version.js.map +1 -1
- package/src/generators/healthcheck/healthchecks.d.ts +1 -1
- package/src/generators/healthcheck/utils/reporter.d.ts +1 -1
- package/src/generators/healthcheck/utils/reporter.js.map +1 -1
- package/src/generators/healthcheck/utils/runner.d.ts +2 -2
- package/src/generators/migrate-brain-accordion-trigger/generator.d.ts +2 -2
- package/src/generators/migrate-brain-accordion-trigger/generator.js.map +1 -1
- package/src/generators/migrate-brain-accordion-trigger/utils/html-utils.d.ts +1 -1
- package/src/generators/migrate-brain-accordion-trigger/utils/html-utils.js.map +1 -1
- package/src/generators/migrate-brain-accordion-trigger/utils/shared-utils.d.ts +2 -2
- package/src/generators/migrate-brain-accordion-trigger/utils/shared-utils.js.map +1 -1
- package/src/generators/migrate-brain-imports/generator.d.ts +2 -2
- package/src/generators/migrate-brain-imports/generator.js.map +1 -1
- package/src/generators/migrate-brn-checkbox-changed-event/generator.d.ts +2 -2
- package/src/generators/migrate-brn-checkbox-changed-event/generator.js.map +1 -1
- package/src/generators/migrate-brn-switch-changed-event/generator.d.ts +2 -2
- package/src/generators/migrate-brn-switch-changed-event/generator.js.map +1 -1
- package/src/generators/migrate-core/generator.d.ts +2 -2
- package/src/generators/migrate-core/generator.js.map +1 -1
- package/src/generators/migrate-date-picker/generator.d.ts +2 -2
- package/src/generators/migrate-date-picker/generator.js.map +1 -1
- package/src/generators/migrate-helm-imports/generator.d.ts +2 -2
- package/src/generators/migrate-helm-imports/generator.js.map +1 -1
- package/src/generators/migrate-helm-libraries/compat.d.ts +1 -1
- package/src/generators/migrate-helm-libraries/generator.d.ts +2 -2
- package/src/generators/migrate-helm-libraries/generator.js.map +1 -1
- package/src/generators/migrate-helm-libraries/schema.d.ts +1 -1
- package/src/generators/migrate-hlm/generator.d.ts +2 -2
- package/src/generators/migrate-hlm/generator.js.map +1 -1
- package/src/generators/migrate-icon/generator.d.ts +2 -2
- package/src/generators/migrate-icon/generator.js.map +1 -1
- package/src/generators/migrate-module-imports/generator.d.ts +2 -2
- package/src/generators/migrate-module-imports/generator.js.map +1 -1
- package/src/generators/migrate-naming-convention/generator.d.ts +2 -2
- package/src/generators/migrate-naming-convention/generator.js.map +1 -1
- package/src/generators/migrate-progress/generator.d.ts +2 -2
- package/src/generators/migrate-progress/generator.js.map +1 -1
- package/src/generators/migrate-radio/generator.d.ts +2 -2
- package/src/generators/migrate-radio/generator.js.map +1 -1
- package/src/generators/migrate-scroll-area/generator.d.ts +2 -2
- package/src/generators/migrate-scroll-area/generator.js.map +1 -1
- package/src/generators/migrate-select/generator.d.ts +2 -2
- package/src/generators/migrate-select/generator.js.map +1 -1
- package/src/generators/migrate-separator/generator.d.ts +2 -2
- package/src/generators/migrate-separator/generator.js.map +1 -1
- package/src/generators/migrate-toggle-group/generator.d.ts +2 -2
- package/src/generators/migrate-toggle-group/generator.js.map +1 -1
- package/src/generators/theme/generator.js.map +1 -1
- package/src/generators/theme/libs/add-theme-to-application-styles.d.ts +1 -1
- package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
- package/src/generators/ui/generator.d.ts +4 -4
- package/src/generators/ui/generator.js +6 -1
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/input-group/generator.d.ts +3 -0
- package/src/generators/ui/libs/input-group/generator.js +14 -0
- package/src/generators/ui/libs/input-group/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-trigger.ts.template +1 -1
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete.ts.template +4 -4
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.ts.template +1 -1
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +2 -2
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +2 -2
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.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-slide-display.ts.template +2 -2
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.ts.template +1 -1
- 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 +4 -4
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +4 -4
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +4 -4
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.ts.template +3 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.ts.template +1 -1
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-group-helm/files/index.ts.template +13 -0
- package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-input-group.ts.template +50 -0
- package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-prefix-addon.ts.template +36 -0
- package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-prefix.ts.template +27 -0
- package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-suffix-addon.ts.template +36 -0
- package/src/generators/ui/libs/ui-input-group-helm/files/lib/hlm-suffix.ts.template +27 -0
- package/src/generators/ui/libs/ui-input-group-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-input-group-helm/generator.js +14 -0
- package/src/generators/ui/libs/ui-input-group-helm/generator.js.map +1 -0
- 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 +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +2 -2
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.ts.template +1 -1
- 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 +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.ts.template +1 -1
- 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-link.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.ts.template +4 -4
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.ts.template +4 -4
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.ts.template +1 -1
- package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.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-sidebar-helm/files/index.ts.template +75 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-content.ts.template +22 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-footer.ts.template +17 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-action.ts.template +25 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-content.ts.template +17 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group-label.ts.template +23 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-group.ts.template +19 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-header.ts.template +17 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-input.ts.template +21 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-inset.ts.template +29 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-action.ts.template +31 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-badge.ts.template +27 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-button.ts.template +72 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-item.ts.template +17 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-skeleton.ts.template +33 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-sub-button.ts.template +30 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-sub-item.ts.template +17 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu-sub.ts.template +23 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-menu.ts.template +17 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-rail.ts.template +39 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-separator.ts.template +20 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-trigger.ts.template +42 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar-wrapper.ts.template +25 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar.service.ts.template +106 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar.token.ts.template +31 -0
- package/src/generators/ui/libs/ui-sidebar-helm/files/lib/hlm-sidebar.ts.template +115 -0
- package/src/generators/ui/libs/ui-sidebar-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-sidebar-helm/generator.js +14 -0
- package/src/generators/ui/libs/ui-sidebar-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +3 -3
- 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.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.token.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-tooltip-helm/files/lib/hlm-tooltip-trigger.ts.template +1 -1
- 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-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/schema.d.ts +1 -1
- package/src/generators/ui/supported-ui-libraries.json +47 -27
- package/src/utils/config.js.map +1 -1
- package/src/utils/hlm-class.d.ts +1 -1
- package/src/utils/tsconfig.d.ts +1 -1
- package/src/utils/tsconfig.js.map +1 -1
- package/src/utils/visit-files.d.ts +1 -1
- package/src/utils/visit-files.js.map +1 -1
package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-slide-display.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
-
import { ClassValue } from 'clsx';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
4
|
import { HlmCarousel } from './hlm-carousel';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -20,7 +20,7 @@ export class HlmCarouselSlideDisplay {
|
|
|
20
20
|
protected readonly _currentSlide = computed(() => this._carousel.currentSlide() + 1);
|
|
21
21
|
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
|
-
protected _computedClass = computed(() => hlm('', this.userClass()));
|
|
23
|
+
protected readonly _computedClass = computed(() => hlm('', this.userClass()));
|
|
24
24
|
|
|
25
25
|
public readonly slideClass = input<ClassValue>('text-muted-foreground text-sm');
|
|
26
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import {
|
|
3
3
|
booleanAttribute,
|
|
4
4
|
ChangeDetectionStrategy,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
output,
|
|
11
11
|
signal,
|
|
12
12
|
} from '@angular/core';
|
|
13
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
13
|
+
import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
14
14
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
15
15
|
import { lucideCheck } from '@ng-icons/lucide';
|
|
16
16
|
import { BrnCheckbox } from '@spartan-ng/brain/checkbox';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { provideHlmIconConfig } from '<%- importAlias %>/icon';
|
|
3
3
|
import { hlm } from '<%- importAlias %>/utils';
|
|
4
|
-
import { ClassValue } from 'clsx';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
7
|
selector: '[hlmCommandIcon]',
|
package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
2
|
import {
|
|
3
3
|
booleanAttribute,
|
|
4
4
|
ChangeDetectionStrategy,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
output,
|
|
12
12
|
signal,
|
|
13
13
|
} from '@angular/core';
|
|
14
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
14
|
+
import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
15
15
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
16
16
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
17
|
-
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
18
|
-
import {
|
|
17
|
+
import type { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
18
|
+
import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
19
19
|
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
20
20
|
import { HlmCalendarMulti } from '<%- importAlias %>/calendar';
|
|
21
21
|
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import {
|
|
3
3
|
booleanAttribute,
|
|
4
4
|
ChangeDetectionStrategy,
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
output,
|
|
11
11
|
signal,
|
|
12
12
|
} from '@angular/core';
|
|
13
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
13
|
+
import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
14
14
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
15
15
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
16
|
-
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
17
|
-
import {
|
|
16
|
+
import type { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
17
|
+
import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
18
18
|
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
19
19
|
import { HlmCalendar } from '<%- importAlias %>/calendar';
|
|
20
20
|
import { HlmIcon } from '<%- importAlias %>/icon';
|
package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import {
|
|
3
3
|
booleanAttribute,
|
|
4
4
|
ChangeDetectionStrategy,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
signal,
|
|
12
12
|
untracked,
|
|
13
13
|
} from '@angular/core';
|
|
14
|
-
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
14
|
+
import { type ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
15
15
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
16
16
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
17
|
-
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
18
|
-
import {
|
|
17
|
+
import type { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
18
|
+
import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
19
19
|
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
20
20
|
import { HlmCalendarRange } from '<%- importAlias %>/calendar';
|
|
21
21
|
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
@@ -14,7 +14,7 @@ import type { ClassValue } from 'clsx';
|
|
|
14
14
|
})
|
|
15
15
|
export class HlmDialogFooter {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
|
-
protected _computedClass = computed(() =>
|
|
17
|
+
protected readonly _computedClass = computed(() =>
|
|
18
18
|
hlm('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', this.userClass()),
|
|
19
19
|
);
|
|
20
20
|
}
|
|
@@ -14,5 +14,7 @@ import type { ClassValue } from 'clsx';
|
|
|
14
14
|
})
|
|
15
15
|
export class HlmDialogHeader {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
|
-
protected _computedClass = computed(() =>
|
|
17
|
+
protected readonly _computedClass = computed(() =>
|
|
18
|
+
hlm('flex flex-col gap-2 text-center sm:text-left', this.userClass()),
|
|
19
|
+
);
|
|
18
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
-
import { ClassValue } from 'clsx';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from '@angular/core';
|
|
10
10
|
import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
|
|
11
11
|
import { hlm } from '<%- importAlias %>/utils';
|
|
12
|
-
import { ClassValue } from 'clsx';
|
|
12
|
+
import type { ClassValue } from 'clsx';
|
|
13
13
|
import { HlmError } from './hlm-error';
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
-
import { ClassValue } from 'clsx';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HlmInputGroup } from './lib/hlm-input-group';
|
|
2
|
+
import { HlmPrefix } from './lib/hlm-prefix';
|
|
3
|
+
import { HlmPrefixAddon } from './lib/hlm-prefix-addon';
|
|
4
|
+
import { HlmSuffix } from './lib/hlm-suffix';
|
|
5
|
+
import { HlmSuffixAddon } from './lib/hlm-suffix-addon';
|
|
6
|
+
|
|
7
|
+
export * from './lib/hlm-input-group';
|
|
8
|
+
export * from './lib/hlm-prefix';
|
|
9
|
+
export * from './lib/hlm-prefix-addon';
|
|
10
|
+
export * from './lib/hlm-suffix';
|
|
11
|
+
export * from './lib/hlm-suffix-addon';
|
|
12
|
+
|
|
13
|
+
export const HlmInputGroupImports = [HlmInputGroup, HlmSuffixAddon, HlmPrefixAddon, HlmPrefix, HlmSuffix] as const;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { provideHlmIconConfig } from '<%- importAlias %>/icon';
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-input-group',
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
+
providers: [
|
|
10
|
+
provideHlmIconConfig({
|
|
11
|
+
size: 'sm',
|
|
12
|
+
}),
|
|
13
|
+
],
|
|
14
|
+
template: `
|
|
15
|
+
<ng-content select="hlm-prefix-addon, [hlmPrefixAddon]" />
|
|
16
|
+
<div [class]="_inputWrapperClasses()">
|
|
17
|
+
<ng-content select="hlm-prefix, [hlmPrefix]" />
|
|
18
|
+
<ng-content select="input[hlmInput], textarea[hlmInput]"></ng-content>
|
|
19
|
+
<ng-content select="hlm-suffix, [hlmSuffix]" />
|
|
20
|
+
</div>
|
|
21
|
+
<ng-content select="hlm-suffix-addon, [hlmSuffixAddon]" />
|
|
22
|
+
`,
|
|
23
|
+
host: {
|
|
24
|
+
'[class]': '_wrapperClasses()',
|
|
25
|
+
},
|
|
26
|
+
})
|
|
27
|
+
export class HlmInputGroup {
|
|
28
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
29
|
+
public readonly inputWrapperClass = input<ClassValue>('');
|
|
30
|
+
|
|
31
|
+
protected readonly _wrapperClasses = computed(() =>
|
|
32
|
+
hlm(
|
|
33
|
+
'shadow-xs group flex w-full items-stretch rounded-md has-[*:disabled]:pointer-events-none has-[*:disabled]:opacity-50 ' +
|
|
34
|
+
// Reset inner input/textarea
|
|
35
|
+
'[&_[hlmInput]]:h-auto [&_[hlmInput]]:flex-1 [&_[hlmInput]]:border-0 [&_[hlmInput]]:bg-transparent [&_[hlmInput]]:px-0 [&_[hlmInput]]:py-0 [&_[hlmInput]]:shadow-none [&_[hlmInput]]:outline-none [&_[hlmInput]]:ring-0 [&_[hlmInput]]:ring-offset-0 [&_textarea[hlmInput]]:min-h-6' +
|
|
36
|
+
this.userClass(),
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
protected readonly _inputWrapperClasses = computed(() =>
|
|
41
|
+
hlm(
|
|
42
|
+
'border-input bg-background placeholder:text-muted-foreground focus-within:border-ring focus-within:ring-ring/50 z-20 flex h-auto min-h-9 w-full flex-row gap-1 rounded-md border px-3 text-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-none focus-within:ring-[3px]' +
|
|
43
|
+
// Invalid States
|
|
44
|
+
' has-[>.ng-invalid.ng-touched]:text-destructive/20 dark:[&.ng-invalid.ng-touched]:text-destructive/40 has-[>.ng-invalid.ng-touched]:border-destructive has-[>.ng-invalid.ng-touched]:focus-within:ring-destructive' +
|
|
45
|
+
// Group addon specific
|
|
46
|
+
' group-has-[hlm-prefix-addon,[hlmPrefixAddon]]:rounded-l-none group-has-[hlm-suffix-addon,[hlmSuffixAddon]]:rounded-r-none group-has-[hlm-prefix-addon,[hlmPrefixAddon]]:border-l-0 group-has-[hlm-suffix-addon,[hlmSuffixAddon]]:border-r-0',
|
|
47
|
+
this.inputWrapperClass(),
|
|
48
|
+
),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnAffixes } from '@spartan-ng/brain/input-group';
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-prefix-addon,[hlmPrefixAddon]',
|
|
8
|
+
hostDirectives: [
|
|
9
|
+
{
|
|
10
|
+
directive: BrnAffixes,
|
|
11
|
+
inputs: ['tabindex'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
template: `
|
|
15
|
+
<ng-content />
|
|
16
|
+
`,
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
export class HlmPrefixAddon {
|
|
23
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
24
|
+
protected readonly _computedClass = computed(() =>
|
|
25
|
+
hlm(
|
|
26
|
+
'bg-muted border-input focus-visible:border-ring focus-visible:ring-ring/50 block' +
|
|
27
|
+
' text-muted-foreground inline-flex h-auto min-h-9' +
|
|
28
|
+
' items-center justify-center whitespace-nowrap border' +
|
|
29
|
+
' px-3 text-sm font-medium transition-colors' +
|
|
30
|
+
' focus-visible:outline-none focus-visible:ring-[3px]' +
|
|
31
|
+
' disabled:pointer-events-none disabled:opacity-50' +
|
|
32
|
+
' rounded-l-md border-r-0',
|
|
33
|
+
this.userClass(),
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnAffixes } from '@spartan-ng/brain/input-group';
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-prefix,[hlmPrefix]',
|
|
8
|
+
hostDirectives: [
|
|
9
|
+
{
|
|
10
|
+
directive: BrnAffixes,
|
|
11
|
+
inputs: ['tabindex'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
template: `
|
|
15
|
+
<ng-content />
|
|
16
|
+
`,
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
export class HlmPrefix {
|
|
23
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
24
|
+
protected readonly _computedClass = computed(() =>
|
|
25
|
+
hlm('text-muted-foreground inset-y-0 z-10 flex items-center ' + this.userClass()),
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnAffixes } from '@spartan-ng/brain/input-group';
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-suffix-addon,[hlmSuffixAddon]',
|
|
8
|
+
hostDirectives: [
|
|
9
|
+
{
|
|
10
|
+
directive: BrnAffixes,
|
|
11
|
+
inputs: ['tabindex'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
template: `
|
|
15
|
+
<ng-content />
|
|
16
|
+
`,
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
export class HlmSuffixAddon {
|
|
23
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
24
|
+
protected readonly _computedClass = computed(() =>
|
|
25
|
+
hlm(
|
|
26
|
+
'bg-muted border-input focus-visible:border-ring focus-visible:ring-ring/50 block' +
|
|
27
|
+
' text-muted-foreground inline-flex h-auto min-h-9' +
|
|
28
|
+
' items-center justify-center whitespace-nowrap border' +
|
|
29
|
+
' px-3 text-sm font-medium transition-colors' +
|
|
30
|
+
' focus-visible:outline-none focus-visible:ring-[3px]' +
|
|
31
|
+
' disabled:pointer-events-none disabled:opacity-50' +
|
|
32
|
+
' border-p-0 rounded-r-md',
|
|
33
|
+
this.userClass(),
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
+
import { BrnAffixes } from '@spartan-ng/brain/input-group';
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-suffix,[hlmSuffix]',
|
|
8
|
+
hostDirectives: [
|
|
9
|
+
{
|
|
10
|
+
directive: BrnAffixes,
|
|
11
|
+
inputs: ['tabindex'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
template: `
|
|
15
|
+
<ng-content />
|
|
16
|
+
`,
|
|
17
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
export class HlmSuffix {
|
|
23
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
24
|
+
protected readonly _computedClass = computed(() =>
|
|
25
|
+
hlm('text-muted-foreground inset-y-0 z-10 flex items-center ' + this.userClass()),
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = generator;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = tslib_1.__importDefault(require("../../../base/generator"));
|
|
6
|
+
async function generator(tree, options) {
|
|
7
|
+
return await (0, generator_1.default)(tree, {
|
|
8
|
+
...options,
|
|
9
|
+
primitiveName: 'input-group',
|
|
10
|
+
internalName: 'ui-input-group-helm',
|
|
11
|
+
publicName: 'ui-input-group-helm',
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-input-group-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AAVD,gFAAuD;AAGhD,KAAK,UAAU,SAAS,CAAC,IAAU,EAAE,OAA+B;IAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,EAAE;QACnC,GAAG,OAAO;QACV,aAAa,EAAE,aAAa;QAC5B,YAAY,EAAE,qBAAqB;QACnC,UAAU,EAAE,qBAAqB;KACjC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -17,5 +17,5 @@ export type InputErrorVariants = VariantProps<typeof inputErrorVariants>;
|
|
|
17
17
|
})
|
|
18
18
|
export class HlmInputError {
|
|
19
19
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
20
|
-
protected _computedClass = computed(() => hlm(inputErrorVariants(), this.userClass()));
|
|
20
|
+
protected readonly _computedClass = computed(() => hlm(inputErrorVariants(), this.userClass()));
|
|
21
21
|
}
|
|
@@ -14,7 +14,7 @@ import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
|
14
14
|
import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
|
|
15
15
|
import { ErrorStateMatcher, ErrorStateTracker } from '@spartan-ng/brain/forms';
|
|
16
16
|
import { hlm } from '<%- importAlias %>/utils';
|
|
17
|
-
import { cva, VariantProps } from 'class-variance-authority';
|
|
17
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
18
18
|
import type { ClassValue } from 'clsx';
|
|
19
19
|
|
|
20
20
|
export const inputVariants = cva(
|
package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.ts.template
CHANGED
|
@@ -3,7 +3,7 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
|
3
3
|
import { lucideMinus } from '@ng-icons/lucide';
|
|
4
4
|
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
5
|
import { hlm } from '<%- importAlias %>/utils';
|
|
6
|
-
import {
|
|
6
|
+
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
9
9
|
selector: 'hlm-input-otp-separator',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { NumberInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';
|
|
3
3
|
import { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';
|
|
4
4
|
import { hlm } from '<%- importAlias %>/utils';
|
|
5
|
-
import {
|
|
5
|
+
import type { ClassValue } from 'clsx';
|
|
6
6
|
import { HlmInputOtpFakeCaret } from './hlm-input-otp-fake-caret';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
-
import {
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',
|
|
@@ -14,7 +14,7 @@ import type { ClassValue } from 'clsx';
|
|
|
14
14
|
})
|
|
15
15
|
export class HlmMenuBar {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
|
-
protected _computedClass = computed(() =>
|
|
17
|
+
protected readonly _computedClass = computed(() =>
|
|
18
18
|
hlm('bg-background shadow-xs flex h-9 items-center gap-1 rounded-md border p-1', this.userClass()),
|
|
19
19
|
);
|
|
20
20
|
}
|
|
@@ -20,7 +20,7 @@ import type { ClassValue } from 'clsx';
|
|
|
20
20
|
})
|
|
21
21
|
export class HlmMenuItemCheck {
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
|
-
protected _computedClass = computed(() =>
|
|
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(),
|
|
@@ -12,5 +12,5 @@ import type { ClassValue } from 'clsx';
|
|
|
12
12
|
})
|
|
13
13
|
export class HlmMenuItemIcon {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
|
-
protected _computedClass = computed(() => hlm('mr-2', this.userClass()));
|
|
15
|
+
protected readonly _computedClass = computed(() => hlm('mr-2', this.userClass()));
|
|
16
16
|
}
|
package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.ts.template
CHANGED
|
@@ -3,7 +3,7 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
|
3
3
|
import { lucideChevronRight } from '@ng-icons/lucide';
|
|
4
4
|
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
5
|
import { hlm } from '<%- importAlias %>/utils';
|
|
6
|
-
import { ClassValue } from 'clsx';
|
|
6
|
+
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
9
9
|
selector: 'hlm-menu-item-sub-indicator',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { 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
4
|
import { hlm } from '<%- importAlias %>/utils';
|
|
5
|
-
import { ClassValue } from 'clsx';
|
|
5
|
+
import type { ClassValue } from 'clsx';
|
|
6
6
|
|
|
7
7
|
@Directive({
|
|
8
8
|
selector: '[hlmMenuItem]',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
3
3
|
import { hlm } from '<%- importAlias %>/utils';
|
|
4
|
-
import { ClassValue } from 'clsx';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'hlm-menu-label',
|
|
@@ -20,7 +20,7 @@ export class HlmMenuLabel {
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
|
-
protected _computedClass = computed(() =>
|
|
23
|
+
protected readonly _computedClass = computed(() =>
|
|
24
24
|
hlm('block px-2 py-1.5 text-sm font-medium data-[inset]:pl-8', this.userClass()),
|
|
25
25
|
);
|
|
26
26
|
}
|
|
@@ -14,7 +14,7 @@ import type { ClassValue } from 'clsx';
|
|
|
14
14
|
})
|
|
15
15
|
export class HlmMenuShortcut {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
|
-
protected _computedClass = computed(() =>
|
|
17
|
+
protected readonly _computedClass = computed(() =>
|
|
18
18
|
hlm('text-muted-foreground ml-auto text-xs tracking-widest', this.userClass()),
|
|
19
19
|
);
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { Directive, booleanAttribute, computed, input } from '@angular/core';
|
|
3
3
|
import { RouterLink } from '@angular/router';
|
|
4
4
|
import { type ButtonVariants, buttonVariants } from '<%- importAlias %>/button';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
3
|
-
import { RouterLink } from '@angular/router';
|
|
3
|
+
import type { 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 '<%- importAlias %>/button';
|
|
6
|
+
import type { ButtonVariants } from '<%- importAlias %>/button';
|
|
7
7
|
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
8
8
|
import { hlm } from '<%- importAlias %>/utils';
|
|
9
|
-
import { ClassValue } from 'clsx';
|
|
9
|
+
import type { ClassValue } from 'clsx';
|
|
10
10
|
import { HlmPaginationLink } from './hlm-pagination-link';
|
|
11
11
|
|
|
12
12
|
@Component({
|
package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.ts.template
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
3
|
-
import { RouterLink } from '@angular/router';
|
|
3
|
+
import type { 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 '<%- importAlias %>/button';
|
|
6
|
+
import type { ButtonVariants } from '<%- importAlias %>/button';
|
|
7
7
|
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
8
8
|
import { hlm } from '<%- importAlias %>/utils';
|
|
9
|
-
import { ClassValue } from 'clsx';
|
|
9
|
+
import type { ClassValue } from 'clsx';
|
|
10
10
|
import { HlmPaginationLink } from './hlm-pagination-link';
|
|
11
11
|
|
|
12
12
|
@Component({
|