@spartan-ng/cli 0.0.1-alpha.508 → 0.0.1-alpha.510
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 +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/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/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 +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.ts.template +1 -1
- package/src/generators/ui/libs/ui-autocomplete-helm/files/index.ts.template +36 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-empty.ts.template +14 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-group.ts.template +27 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-item.ts.template +33 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-list.ts.template +27 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-search-input.ts.template +26 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-search.ts.template +28 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete-trigger.ts.template +32 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete.token.ts.template +23 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/files/lib/hlm-autocomplete.ts.template +286 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/generator.js +14 -0
- package/src/generators/ui/libs/ui-autocomplete-helm/generator.js.map +1 -0
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-page.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.ts.template +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +3 -3
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +3 -3
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.ts.template +3 -3
- 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 +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.ts.template +1 -1
- 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 +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.ts.template +3 -3
- 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 +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.ts.template +3 -3
- 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 +4 -16
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search-input.ts.template +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search.ts.template +4 -4
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.ts.template +3 -3
- 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 +3 -3
- 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 +21 -11
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +17 -7
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +21 -11
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.ts.template +2 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.ts.template +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.ts.template +1 -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-hover-card-helm/files/lib/hlm-hover-card-content.ts.template +1 -1
- 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 +2 -2
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +1 -1
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.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 +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.ts.template +1 -1
- 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 +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.ts.template +1 -1
- 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 +1 -1
- 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 +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-menu-helm/files/lib/hlm-menu.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.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-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 +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.ts.template +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.ts.template +2 -2
- 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 +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.ts.template +1 -1
- 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/lib/hlm-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.ts.template +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +1 -1
- 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 +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.ts.template +3 -3
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.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.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.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-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 +3 -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 +40 -28
- 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-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({
|
|
@@ -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({
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group-label.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
|
|
|
4
4
|
@Component({
|
|
5
5
|
selector: 'hlm-command-group-label',
|
|
@@ -11,10 +11,10 @@ import { hlm } from '@spartan-ng/helm/utils';
|
|
|
11
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
12
|
})
|
|
13
13
|
export class HlmCommandGroupLabel {
|
|
14
|
-
|
|
14
|
+
/** The user defined class */
|
|
15
15
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
/** The styles to apply */
|
|
18
18
|
protected readonly _computedClass = computed(() =>
|
|
19
19
|
hlm('text-muted-foreground px-2 py-1.5 text-xs font-medium', this.userClass()),
|
|
20
20
|
);
|
|
@@ -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',
|
|
@@ -17,10 +17,10 @@ import { hlm } from '@spartan-ng/helm/utils';
|
|
|
17
17
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
18
|
})
|
|
19
19
|
export class HlmCommandGroup {
|
|
20
|
-
|
|
20
|
+
/** The user defined class */
|
|
21
21
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
/** The styles to apply */
|
|
24
24
|
protected readonly _computedClass = computed(() =>
|
|
25
25
|
hlm('text-foreground block overflow-hidden p-1 data-[hidden]:hidden', this.userClass()),
|
|
26
26
|
);
|
|
@@ -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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
3
2
|
import { BrnCommandItem } from '@spartan-ng/brain/command';
|
|
4
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
5
4
|
|
|
6
5
|
@Component({
|
|
7
6
|
selector: 'button[hlm-command-item]',
|
|
@@ -21,21 +20,10 @@ import { hlm } from '@spartan-ng/helm/utils';
|
|
|
21
20
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
21
|
})
|
|
23
22
|
export class HlmCommandItem {
|
|
24
|
-
/** The
|
|
25
|
-
public readonly value = input<string>();
|
|
26
|
-
|
|
27
|
-
/** Whether the item is disabled. */
|
|
28
|
-
public readonly disabled = input<boolean, BooleanInput>(false, {
|
|
29
|
-
transform: booleanAttribute,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/** Emits when the item is selected. */
|
|
33
|
-
public readonly selected = output<void>();
|
|
34
|
-
|
|
35
|
-
/*** The user defined class */
|
|
23
|
+
/** The user defined class */
|
|
36
24
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
37
25
|
|
|
38
|
-
|
|
26
|
+
/** The styles to apply */
|
|
39
27
|
protected readonly _computedClass = computed(() =>
|
|
40
28
|
hlm(
|
|
41
29
|
'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',
|
|
@@ -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',
|
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({
|
|
@@ -13,10 +13,10 @@ import type { ClassValue } from 'clsx';
|
|
|
13
13
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
14
|
})
|
|
15
15
|
export class HlmCommandSearchInput {
|
|
16
|
-
|
|
16
|
+
/** The user defined class */
|
|
17
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/** The styles to apply */
|
|
20
20
|
protected readonly _computedClass = computed(() =>
|
|
21
21
|
hlm(
|
|
22
22
|
'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, 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
|
@Component({
|
|
@@ -15,10 +15,10 @@ import type { ClassValue } from 'clsx';
|
|
|
15
15
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
16
|
})
|
|
17
17
|
export class HlmCommandSearch {
|
|
18
|
-
|
|
18
|
+
/** The user defined class */
|
|
19
19
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
/** The styles to apply */
|
|
22
22
|
protected readonly _computedClass = computed(() =>
|
|
23
23
|
hlm('flex h-9 items-center gap-2 border-b px-3 [&>_ng-icon]:flex-none [&>_ng-icon]:opacity-50', this.userClass()),
|
|
24
24
|
);
|
|
@@ -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
|
|
|
4
4
|
@Component({
|
|
5
5
|
selector: 'hlm-command-separator',
|
|
@@ -11,9 +11,9 @@ import { hlm } from '@spartan-ng/helm/utils';
|
|
|
11
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
12
|
})
|
|
13
13
|
export class HlmCommandSeparator {
|
|
14
|
-
|
|
14
|
+
/** The user defined class */
|
|
15
15
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
/** The styles to apply */
|
|
18
18
|
protected readonly _computedClass = computed(() => hlm('bg-border -mx-1 block h-px', this.userClass()));
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnCommand } 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({
|
|
@@ -21,10 +21,10 @@ import type { ClassValue } from 'clsx';
|
|
|
21
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
22
|
})
|
|
23
23
|
export class HlmCommand {
|
|
24
|
-
|
|
24
|
+
/** The user defined class */
|
|
25
25
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
/** The styles to apply */
|
|
28
28
|
protected readonly _computedClass = computed(() =>
|
|
29
29
|
hlm('bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md', this.userClass()),
|
|
30
30
|
);
|
|
@@ -3,6 +3,7 @@ import { HlmDatePicker } from './lib/hlm-date-picker';
|
|
|
3
3
|
import { HlmDatePickerMulti } from './lib/hlm-date-picker-multi';
|
|
4
4
|
import { HlmDateRangePicker } from './lib/hlm-date-range-picker';
|
|
5
5
|
|
|
6
|
+
export * from './lib/hlm-date-picker-multi.token';
|
|
6
7
|
export * from './lib/hlm-date-picker.token';
|
|
7
8
|
|
|
8
9
|
export * from './lib/hlm-date-picker';
|
package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.token.ts.template
CHANGED
|
@@ -33,7 +33,7 @@ function getDefaultConfig<T>(): HlmDatePickerMultiConfig<T> {
|
|
|
33
33
|
|
|
34
34
|
const HlmDatePickerMultiConfigToken = new InjectionToken<HlmDatePickerMultiConfig<unknown>>('HlmDatePickerMultiConfig');
|
|
35
35
|
|
|
36
|
-
export function
|
|
36
|
+
export function provideHlmDatePickerMultiConfig<T>(config: Partial<HlmDatePickerMultiConfig<T>>): ValueProvider {
|
|
37
37
|
return { provide: HlmDatePickerMultiConfigToken, useValue: { ...getDefaultConfig(), ...config } };
|
|
38
38
|
}
|
|
39
39
|
|
package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template
CHANGED
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from '@angular/core';
|
|
14
14
|
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
15
15
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
16
|
-
import {
|
|
16
|
+
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
17
17
|
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
18
18
|
import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
|
|
19
19
|
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
20
|
-
import { HlmCalendarMulti } from '
|
|
21
|
-
import { HlmIcon } from '
|
|
22
|
-
import { HlmPopoverContent } from '
|
|
23
|
-
import { hlm } from '
|
|
20
|
+
import { HlmCalendarMulti } from '<%- importAlias %>/calendar';
|
|
21
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
22
|
+
import { HlmPopoverContent } from '<%- importAlias %>/popover';
|
|
23
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
24
24
|
import type { ClassValue } from 'clsx';
|
|
25
25
|
import { injectHlmDatePickerMultiConfig } from './hlm-date-picker-multi.token';
|
|
26
26
|
|
|
@@ -30,15 +30,21 @@ export const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR = {
|
|
|
30
30
|
multi: true,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
let nextId = 0;
|
|
34
|
+
|
|
33
35
|
@Component({
|
|
34
36
|
selector: 'hlm-date-picker-multi',
|
|
35
37
|
imports: [NgIcon, HlmIcon, BrnPopover, BrnPopoverTrigger, BrnPopoverContent, HlmPopoverContent, HlmCalendarMulti],
|
|
36
|
-
providers: [HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR, provideIcons({
|
|
38
|
+
providers: [HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR, provideIcons({ lucideChevronDown })],
|
|
37
39
|
template: `
|
|
38
40
|
<brn-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_popoverState.set($event)">
|
|
39
|
-
<button
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
<button
|
|
42
|
+
[id]="buttonId()"
|
|
43
|
+
type="button"
|
|
44
|
+
[class]="_computedClass()"
|
|
45
|
+
[disabled]="_mutableDisabled()"
|
|
46
|
+
brnPopoverTrigger
|
|
47
|
+
>
|
|
42
48
|
<span class="truncate">
|
|
43
49
|
@if (_formattedDate(); as formattedDate) {
|
|
44
50
|
{{ formattedDate }}
|
|
@@ -46,6 +52,8 @@ export const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR = {
|
|
|
46
52
|
<ng-content />
|
|
47
53
|
}
|
|
48
54
|
</span>
|
|
55
|
+
|
|
56
|
+
<ng-icon hlm size="sm" name="lucideChevronDown" />
|
|
49
57
|
</button>
|
|
50
58
|
|
|
51
59
|
<div hlmPopoverContent class="w-auto p-0" *brnPopoverContent="let ctx">
|
|
@@ -73,15 +81,17 @@ export class HlmDatePickerMulti<T> implements ControlValueAccessor {
|
|
|
73
81
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
74
82
|
protected readonly _computedClass = computed(() =>
|
|
75
83
|
hlm(
|
|
76
|
-
'ring-offset-background border-input bg-background hover:bg-accent hover:text-accent-foreground inline-flex h-
|
|
84
|
+
'ring-offset-background border-input bg-background hover:bg-accent dark:bg-input/30 dark:hover:bg-input/50 hover:text-accent-foreground inline-flex h-9 w-[280px] cursor-default items-center justify-between gap-2 whitespace-nowrap rounded-md border px-3 py-2 text-left text-sm font-normal transition-all disabled:pointer-events-none disabled:opacity-50',
|
|
77
85
|
'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
|
|
78
86
|
'disabled:pointer-events-none disabled:opacity-50',
|
|
79
87
|
'[&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
80
|
-
!this._mutableDate() ? 'text-muted-foreground' : '',
|
|
81
88
|
this.userClass(),
|
|
82
89
|
),
|
|
83
90
|
);
|
|
84
91
|
|
|
92
|
+
/** The id of the button that opens the date picker. */
|
|
93
|
+
public readonly buttonId = input<string>(`hlm-date-picker-multi-${nextId++}`);
|
|
94
|
+
|
|
85
95
|
/** The minimum date that can be selected.*/
|
|
86
96
|
public readonly min = input<T>();
|
|
87
97
|
|
|
@@ -16,10 +16,10 @@ import { lucideChevronDown } from '@ng-icons/lucide';
|
|
|
16
16
|
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
17
17
|
import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
|
|
18
18
|
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
19
|
-
import { HlmCalendar } from '
|
|
20
|
-
import { HlmIcon } from '
|
|
21
|
-
import { HlmPopoverContent } from '
|
|
22
|
-
import { hlm } from '
|
|
19
|
+
import { HlmCalendar } from '<%- importAlias %>/calendar';
|
|
20
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
21
|
+
import { HlmPopoverContent } from '<%- importAlias %>/popover';
|
|
22
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
23
23
|
import type { ClassValue } from 'clsx';
|
|
24
24
|
import { injectHlmDatePickerConfig } from './hlm-date-picker.token';
|
|
25
25
|
|
|
@@ -29,13 +29,21 @@ export const HLM_DATE_PICKER_VALUE_ACCESSOR = {
|
|
|
29
29
|
multi: true,
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
let nextId = 0;
|
|
33
|
+
|
|
32
34
|
@Component({
|
|
33
35
|
selector: 'hlm-date-picker',
|
|
34
36
|
imports: [NgIcon, HlmIcon, BrnPopover, BrnPopoverTrigger, BrnPopoverContent, HlmPopoverContent, HlmCalendar],
|
|
35
37
|
providers: [HLM_DATE_PICKER_VALUE_ACCESSOR, provideIcons({ lucideChevronDown })],
|
|
36
38
|
template: `
|
|
37
39
|
<brn-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_popoverState.set($event)">
|
|
38
|
-
<button
|
|
40
|
+
<button
|
|
41
|
+
[id]="buttonId()"
|
|
42
|
+
type="button"
|
|
43
|
+
[class]="_computedClass()"
|
|
44
|
+
[disabled]="_mutableDisabled()"
|
|
45
|
+
brnPopoverTrigger
|
|
46
|
+
>
|
|
39
47
|
<span class="truncate">
|
|
40
48
|
@if (_formattedDate(); as formattedDate) {
|
|
41
49
|
{{ formattedDate }}
|
|
@@ -70,15 +78,17 @@ export class HlmDatePicker<T> implements ControlValueAccessor {
|
|
|
70
78
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
71
79
|
protected readonly _computedClass = computed(() =>
|
|
72
80
|
hlm(
|
|
73
|
-
'ring-offset-background border-input bg-background hover:bg-accent dark:bg-input/30 dark:hover:bg-input/50 hover:text-accent-foreground inline-flex h-9 w-[280px] cursor-default items-center justify-
|
|
81
|
+
'ring-offset-background border-input bg-background hover:bg-accent dark:bg-input/30 dark:hover:bg-input/50 hover:text-accent-foreground inline-flex h-9 w-[280px] cursor-default items-center justify-between gap-2 whitespace-nowrap rounded-md border px-3 py-2 text-left text-sm font-normal transition-all disabled:pointer-events-none disabled:opacity-50',
|
|
74
82
|
'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
|
|
75
83
|
'disabled:pointer-events-none disabled:opacity-50',
|
|
76
84
|
'[&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
77
|
-
!this._mutableDate() ? 'text-muted-foreground' : '',
|
|
78
85
|
this.userClass(),
|
|
79
86
|
),
|
|
80
87
|
);
|
|
81
88
|
|
|
89
|
+
/** The id of the button that opens the date picker. */
|
|
90
|
+
public readonly buttonId = input<string>(`hlm-date-picker-${nextId++}`);
|
|
91
|
+
|
|
82
92
|
/** The minimum date that can be selected.*/
|
|
83
93
|
public readonly min = input<T>();
|
|
84
94
|
|
package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template
CHANGED
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from '@angular/core';
|
|
14
14
|
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
15
15
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
16
|
-
import {
|
|
16
|
+
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
17
17
|
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
18
18
|
import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
|
|
19
19
|
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
20
|
-
import { HlmCalendarRange } from '
|
|
21
|
-
import { HlmIcon } from '
|
|
22
|
-
import { HlmPopoverContent } from '
|
|
23
|
-
import { hlm } from '
|
|
20
|
+
import { HlmCalendarRange } from '<%- importAlias %>/calendar';
|
|
21
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
22
|
+
import { HlmPopoverContent } from '<%- importAlias %>/popover';
|
|
23
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
24
24
|
import type { ClassValue } from 'clsx';
|
|
25
25
|
import { injectHlmDateRangePickerConfig } from './hlm-date-range-picker.token';
|
|
26
26
|
|
|
@@ -30,10 +30,12 @@ export const HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR = {
|
|
|
30
30
|
multi: true,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
let nextId = 0;
|
|
34
|
+
|
|
33
35
|
@Component({
|
|
34
36
|
selector: 'hlm-date-range-picker',
|
|
35
37
|
imports: [NgIcon, HlmIcon, BrnPopover, BrnPopoverTrigger, BrnPopoverContent, HlmPopoverContent, HlmCalendarRange],
|
|
36
|
-
providers: [HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR, provideIcons({
|
|
38
|
+
providers: [HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR, provideIcons({ lucideChevronDown })],
|
|
37
39
|
template: `
|
|
38
40
|
<brn-popover
|
|
39
41
|
sideOffset="5"
|
|
@@ -41,9 +43,13 @@ export const HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR = {
|
|
|
41
43
|
(stateChanged)="_popoverState.set($event)"
|
|
42
44
|
(closed)="_onClose()"
|
|
43
45
|
>
|
|
44
|
-
<button
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
<button
|
|
47
|
+
[id]="buttonId()"
|
|
48
|
+
type="button"
|
|
49
|
+
[class]="_computedClass()"
|
|
50
|
+
[disabled]="_mutableDisabled()"
|
|
51
|
+
brnPopoverTrigger
|
|
52
|
+
>
|
|
47
53
|
<span class="truncate">
|
|
48
54
|
@if (_formattedDate(); as formattedDate) {
|
|
49
55
|
{{ formattedDate }}
|
|
@@ -51,6 +57,8 @@ export const HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR = {
|
|
|
51
57
|
<ng-content />
|
|
52
58
|
}
|
|
53
59
|
</span>
|
|
60
|
+
|
|
61
|
+
<ng-icon hlm size="sm" name="lucideChevronDown" />
|
|
54
62
|
</button>
|
|
55
63
|
|
|
56
64
|
<div hlmPopoverContent class="w-auto p-0" *brnPopoverContent="let ctx">
|
|
@@ -78,15 +86,17 @@ export class HlmDateRangePicker<T> implements ControlValueAccessor {
|
|
|
78
86
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
79
87
|
protected readonly _computedClass = computed(() =>
|
|
80
88
|
hlm(
|
|
81
|
-
'ring-offset-background border-input bg-background hover:bg-accent hover:text-accent-foreground inline-flex h-
|
|
89
|
+
'ring-offset-background border-input bg-background hover:bg-accent dark:bg-input/30 dark:hover:bg-input/50 hover:text-accent-foreground inline-flex h-9 w-[280px] cursor-default items-center justify-between gap-2 whitespace-nowrap rounded-md border px-3 py-2 text-left text-sm font-normal transition-all disabled:pointer-events-none disabled:opacity-50',
|
|
82
90
|
'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',
|
|
83
91
|
'disabled:pointer-events-none disabled:opacity-50',
|
|
84
92
|
'[&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
85
|
-
!this._mutableDate() ? 'text-muted-foreground' : '',
|
|
86
93
|
this.userClass(),
|
|
87
94
|
),
|
|
88
95
|
);
|
|
89
96
|
|
|
97
|
+
/** The id of the button that opens the date picker. */
|
|
98
|
+
public readonly buttonId = input<string>(`hlm-date-picker-range-${nextId++}`);
|
|
99
|
+
|
|
90
100
|
/** The minimum date that can be selected.*/
|
|
91
101
|
public readonly min = input<T>();
|
|
92
102
|
|
|
@@ -3,8 +3,8 @@ import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, inject
|
|
|
3
3
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
4
4
|
import { lucideX } from '@ng-icons/lucide';
|
|
5
5
|
import { BrnDialogClose, BrnDialogRef, injectBrnDialogContext } from '@spartan-ng/brain/dialog';
|
|
6
|
-
import { HlmIcon } from '
|
|
7
|
-
import { hlm } from '
|
|
6
|
+
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
7
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
8
8
|
import type { ClassValue } from 'clsx';
|
|
9
9
|
import { HlmDialogClose } from './hlm-dialog-close';
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnDialogDescription } from '@spartan-ng/brain/dialog';
|
|
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, effect, input, untracked } from '@angular/core';
|
|
2
2
|
import { injectCustomClassSettable } 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
|
export const hlmDialogOverlayClass =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnDialogTitle } from '@spartan-ng/brain/dialog';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
input,
|
|
9
9
|
} from '@angular/core';
|
|
10
10
|
import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
|
|
11
|
-
import { hlm } from '
|
|
11
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
12
12
|
import { ClassValue } from 'clsx';
|
|
13
13
|
import { HlmError } from './hlm-error';
|
|
14
14
|
|
package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.ts.template
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
signal,
|
|
11
11
|
} from '@angular/core';
|
|
12
12
|
import { injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
13
|
-
import { hlm } from '
|
|
13
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
14
14
|
import type { ClassValue } from 'clsx';
|
|
15
15
|
|
|
16
16
|
@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
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
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
|
-
import { hlm } from '
|
|
16
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
17
17
|
import { cva, VariantProps } from 'class-variance-authority';
|
|
18
18
|
import type { ClassValue } from 'clsx';
|
|
19
19
|
|
package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.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 { lucideMinus } 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,7 +1,7 @@
|
|
|
1
1
|
import { 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
|
-
import { hlm } from '
|
|
4
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
5
5
|
import { type ClassValue } from 'clsx';
|
|
6
6
|
import { HlmInputOtpFakeCaret } from './hlm-input-otp-fake-caret';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnLabel } from '@spartan-ng/brain/label';
|
|
3
|
-
import { hlm } from '
|
|
3
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|