@spartan-ng/cli 0.0.1-alpha.379 → 0.0.1-alpha.382
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 +30 -0
- package/package.json +4 -2
- package/src/generators/base/lib/build-dependency-array.js +1 -35
- package/src/generators/base/lib/build-dependency-array.js.map +1 -1
- package/src/generators/base/schema.d.ts +0 -1
- package/src/generators/base/versions.d.ts +1 -21
- package/src/generators/base/versions.js +2 -22
- package/src/generators/base/versions.js.map +1 -1
- package/src/generators/migrate-core/compat.d.ts +2 -0
- package/src/generators/migrate-core/compat.js +6 -0
- package/src/generators/migrate-core/compat.js.map +1 -0
- package/src/generators/migrate-core/generator.d.ts +4 -0
- package/src/generators/migrate-core/generator.js +52 -0
- package/src/generators/migrate-core/generator.js.map +1 -0
- package/src/generators/migrate-core/schema.d.ts +3 -0
- package/src/generators/migrate-core/schema.json +14 -0
- package/src/generators/migrate-icon/compat.d.ts +2 -0
- package/src/generators/migrate-icon/compat.js +6 -0
- package/src/generators/migrate-icon/compat.js.map +1 -0
- package/src/generators/migrate-icon/generator.d.ts +4 -0
- package/src/generators/migrate-icon/generator.js +286 -0
- package/src/generators/migrate-icon/generator.js.map +1 -0
- package/src/generators/migrate-icon/schema.d.ts +3 -0
- package/src/generators/migrate-icon/schema.json +14 -0
- package/src/generators/migrate-scroll-area/compat.d.ts +2 -0
- package/src/generators/migrate-scroll-area/compat.js +6 -0
- package/src/generators/migrate-scroll-area/compat.js.map +1 -0
- package/src/generators/migrate-scroll-area/generator.d.ts +4 -0
- package/src/generators/migrate-scroll-area/generator.js +112 -0
- package/src/generators/migrate-scroll-area/generator.js.map +1 -0
- package/src/generators/migrate-scroll-area/schema.d.ts +3 -0
- package/src/generators/migrate-scroll-area/schema.json +14 -0
- package/src/generators/ui/generator.js +0 -5
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template +4 -3
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-ellipsis.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-link.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-list.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-page.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb-separator.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/breadcrumb.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +7 -5
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox-checkicon.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input-wrapper.component.ts.template +2 -2
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +4 -7
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.directive.spec.ts.template +66 -0
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.directive.ts.template +41 -0
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +1 -4
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.directive.ts.template +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.component.ts.template +23 -0
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template +5 -2
- package/src/generators/ui/libs/ui-scroll-area-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.directive.ts.template +20 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.component.ts.template +4 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.component.ts.template +4 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +6 -6
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +5 -4
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-marks.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active-fill.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-inactive.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-sonner-helm/files/lib/hlm-toaster.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-caption.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-td.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-th.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-trow.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template +6 -5
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template +19 -24
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.directive.ts.template +1 -1
- package/src/generators/ui/schema.d.ts +0 -1
- package/src/generators/ui/supported-ui-libraries.json +69 -82
- package/src/utils/visit-files.d.ts +2 -0
- package/src/utils/visit-files.js +14 -0
- package/src/utils/visit-files.js.map +1 -0
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.spec.ts.template +0 -64
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.ts.template +0 -118
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.directive.ts.template +0 -15
- package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.component.ts.template +0 -49
package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
2
3
|
import { BRN_SLIDER, BRN_SLIDER_TRACK, BrnSliderTrackDirective } from '@spartan-ng/brain/slider';
|
|
3
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
import { HlmSliderTickMarkDirective } from './hlm-slider-tick-mark.directive';
|
|
6
6
|
import { HlmSliderTickMarksDirective } from './hlm-slider-tick-marks.directive';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
2
3
|
import { BRN_SLIDER, BrnSliderDirective } from '@spartan-ng/brain/slider';
|
|
3
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, input, numberAttribute } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
import { NgxSonnerToaster, type ToasterProps } from 'ngx-sonner';
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { Component, booleanAttribute, computed, forwardRef, input, model, output } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
4
5
|
import { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
5
6
|
import { BrnSwitchComponent, BrnSwitchThumbComponent } from '@spartan-ng/brain/switch';
|
|
6
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
7
7
|
import type { ClassValue } from 'clsx';
|
|
8
8
|
import { HlmSwitchThumbDirective } from './hlm-switch-thumb.directive';
|
|
9
9
|
export const HLM_SWITCH_VALUE_ACCESSOR = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, effect, input, signal } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive } from '@angular/core';
|
|
2
|
-
import { injectTableClassesSettable } from '@spartan-ng/
|
|
2
|
+
import { injectTableClassesSettable } from '@spartan-ng/brain/core';
|
|
3
3
|
|
|
4
4
|
@Directive({ standalone: true, selector: '[hlmTable],brn-table[hlm]' })
|
|
5
5
|
export class HlmTableDirective {
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
inject,
|
|
9
9
|
input,
|
|
10
10
|
} from '@angular/core';
|
|
11
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
11
12
|
import { BrnColumnDefComponent } from '@spartan-ng/brain/table';
|
|
12
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
13
13
|
import type { ClassValue } from 'clsx';
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
inject,
|
|
9
9
|
input,
|
|
10
10
|
} from '@angular/core';
|
|
11
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
11
12
|
import { BrnColumnDefComponent } from '@spartan-ng/brain/table';
|
|
12
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
13
13
|
import type { ClassValue } from 'clsx';
|
|
14
14
|
|
|
15
15
|
@Component({
|
package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
2
3
|
import { BrnTabsContentDirective } from '@spartan-ng/brain/tabs';
|
|
3
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, computed, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
2
3
|
import { BrnTabsListDirective } from '@spartan-ng/brain/tabs';
|
|
3
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
5
5
|
import type { ClassValue } from 'clsx';
|
|
6
6
|
|
package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { CdkObserveContent } from '@angular/cdk/observers';
|
|
2
2
|
import { Component, type ElementRef, computed, contentChildren, input, viewChild } from '@angular/core';
|
|
3
3
|
import { toObservable } from '@angular/core/rxjs-interop';
|
|
4
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
4
5
|
import { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';
|
|
6
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
5
7
|
import { BrnTabsPaginatedListDirective, BrnTabsTriggerDirective } from '@spartan-ng/brain/tabs';
|
|
6
8
|
import { buttonVariants } from '@spartan-ng/ui-button-helm';
|
|
7
|
-
import {
|
|
8
|
-
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
9
|
+
import { HlmIconDirective } from '@spartan-ng/ui-icon-helm';
|
|
9
10
|
import type { ClassValue } from 'clsx';
|
|
10
11
|
import { listVariants } from './hlm-tabs-list.component';
|
|
11
12
|
|
|
12
13
|
@Component({
|
|
13
14
|
selector: 'hlm-paginated-tabs-list',
|
|
14
15
|
standalone: true,
|
|
15
|
-
imports: [CdkObserveContent,
|
|
16
|
+
imports: [CdkObserveContent, NgIcon, HlmIconDirective],
|
|
16
17
|
providers: [provideIcons({ lucideChevronRight, lucideChevronLeft })],
|
|
17
18
|
template: `
|
|
18
19
|
<button
|
|
@@ -29,7 +30,7 @@ import { listVariants } from './hlm-tabs-list.component';
|
|
|
29
30
|
(mousedown)="_handlePaginatorPress('before', $event)"
|
|
30
31
|
(touchend)="_stopInterval()"
|
|
31
32
|
>
|
|
32
|
-
<
|
|
33
|
+
<ng-icon hlm size="base" name="lucideChevronLeft" />
|
|
33
34
|
</button>
|
|
34
35
|
|
|
35
36
|
<div #tabListContainer class="z-[1] flex grow overflow-hidden" (keydown)="_handleKeydown($event)">
|
|
@@ -54,7 +55,7 @@ import { listVariants } from './hlm-tabs-list.component';
|
|
|
54
55
|
(mousedown)="_handlePaginatorPress('after', $event)"
|
|
55
56
|
(touchend)="_stopInterval()"
|
|
56
57
|
>
|
|
57
|
-
<
|
|
58
|
+
<ng-icon hlm size="base" name="lucideChevronRight" />
|
|
58
59
|
</button>
|
|
59
60
|
`,
|
|
60
61
|
host: {
|
package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
2
3
|
import { BrnTabsTriggerDirective } from '@spartan-ng/brain/tabs';
|
|
3
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import { Directive
|
|
2
|
-
import { BrnTooltipTriggerDirective } from '@spartan-ng/brain/tooltip';
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnTooltipTriggerDirective, provideBrnTooltipDefaultOptions } from '@spartan-ng/brain/tooltip';
|
|
3
|
+
|
|
4
|
+
const DEFAULT_TOOLTIP_CONTENT_CLASSES =
|
|
5
|
+
'overflow-hidden rounded-md border border-border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md fade-in-0 zoom-in-95 ' +
|
|
6
|
+
'data-[state=open]:animate-in ' +
|
|
7
|
+
'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ' +
|
|
8
|
+
'data-[side=below]:slide-in-from-top-2 data-[side=above]:slide-in-from-bottom-2 ' +
|
|
9
|
+
'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 ';
|
|
3
10
|
|
|
4
11
|
@Directive({
|
|
5
12
|
selector: '[hlmTooltipTrigger]',
|
|
6
13
|
standalone: true,
|
|
14
|
+
providers: [
|
|
15
|
+
provideBrnTooltipDefaultOptions({
|
|
16
|
+
showDelay: 150,
|
|
17
|
+
hideDelay: 300,
|
|
18
|
+
exitAnimationDuration: 150,
|
|
19
|
+
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
20
|
+
}),
|
|
21
|
+
],
|
|
7
22
|
hostDirectives: [
|
|
8
23
|
{
|
|
9
24
|
directive: BrnTooltipTriggerDirective,
|
|
10
25
|
inputs: [
|
|
11
26
|
'brnTooltipDisabled: hlmTooltipDisabled',
|
|
27
|
+
'brnTooltipTrigger: hlmTooltipTrigger',
|
|
12
28
|
'aria-describedby',
|
|
13
29
|
'position',
|
|
14
30
|
'positionAtOrigin',
|
|
@@ -20,25 +36,4 @@ import { BrnTooltipTriggerDirective } from '@spartan-ng/brain/tooltip';
|
|
|
20
36
|
},
|
|
21
37
|
],
|
|
22
38
|
})
|
|
23
|
-
export class HlmTooltipTriggerDirective {
|
|
24
|
-
private readonly _brnTooltipTrigger: BrnTooltipTriggerDirective = inject(BrnTooltipTriggerDirective, { host: true });
|
|
25
|
-
|
|
26
|
-
constructor() {
|
|
27
|
-
if (this._brnTooltipTrigger) {
|
|
28
|
-
this._brnTooltipTrigger.exitAnimationDuration = 150;
|
|
29
|
-
this._brnTooltipTrigger.hideDelay = 300;
|
|
30
|
-
this._brnTooltipTrigger.showDelay = 150;
|
|
31
|
-
this._brnTooltipTrigger.tooltipContentClasses =
|
|
32
|
-
'overflow-hidden rounded-md border border-border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md fade-in-0 zoom-in-95 ' +
|
|
33
|
-
'data-[state=open]:animate-in ' +
|
|
34
|
-
'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ' +
|
|
35
|
-
'data-[side=below]:slide-in-from-top-2 data-[side=above]:slide-in-from-bottom-2 ' +
|
|
36
|
-
'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 ';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@Input()
|
|
41
|
-
public set hlmTooltipTrigger(value: string | TemplateRef<unknown> | null) {
|
|
42
|
-
this._brnTooltipTrigger.content = value;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
39
|
+
export class HlmTooltipTriggerDirective {}
|
package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.directive.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
export const hlmBlockquote = 'mt-6 border-border border-l-2 pl-6 italic';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
export const hlmCode = 'relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
export const hlmH1 = 'scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
export const hlmH3 = 'scroll-m-20 text-2xl font-semibold tracking-tight';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
3
|
import type { ClassValue } from 'clsx';
|
|
4
4
|
|
|
5
5
|
export const hlmH4 = 'scroll-m-20 text-xl font-semibold tracking-tight';
|