@spartan-ng/cli 0.0.1-alpha.492 → 0.0.1-alpha.494
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 +10 -0
- package/package.json +1 -1
- package/src/generators/healthcheck/generator.js +2 -0
- package/src/generators/healthcheck/generator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-radio.js +1 -1
- package/src/generators/healthcheck/healthchecks/brn-radio.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/naming-conventions.d.ts +2 -0
- package/src/generators/healthcheck/healthchecks/naming-conventions.js +39 -0
- package/src/generators/healthcheck/healthchecks/naming-conventions.js.map +1 -0
- package/src/generators/migrate-naming-convention/__snapshots__/generator.spec.ts.snap +213 -0
- package/src/generators/migrate-naming-convention/compat.d.ts +2 -0
- package/src/generators/migrate-naming-convention/compat.js +7 -0
- package/src/generators/migrate-naming-convention/compat.js.map +1 -0
- package/src/generators/migrate-naming-convention/generator.d.ts +4 -0
- package/src/generators/migrate-naming-convention/generator.js +97 -0
- package/src/generators/migrate-naming-convention/generator.js.map +1 -0
- package/src/generators/migrate-naming-convention/schema.d.ts +3 -0
- package/src/generators/migrate-naming-convention/schema.json +14 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/index.ts.template +15 -15
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-content.component.ts.template → hlm-accordion-content.ts.template} +2 -2
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-icon.directive.ts.template → hlm-accordion-icon.ts.template} +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-item.directive.ts.template → hlm-accordion-item.ts.template} +3 -3
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion-trigger.directive.ts.template → hlm-accordion-trigger.ts.template} +3 -3
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/{hlm-accordion.directive.ts.template → hlm-accordion.ts.template} +4 -4
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/index.ts.template +27 -27
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-action-button.ts.template +8 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-cancel-button.directive.ts.template → hlm-alert-dialog-cancel-button.ts.template} +3 -3
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-content.component.ts.template → hlm-alert-dialog-content.ts.template} +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-description.directive.ts.template → hlm-alert-dialog-description.ts.template} +3 -3
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-footer.component.ts.template → hlm-alert-dialog-footer.ts.template} +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-header.component.ts.template → hlm-alert-dialog-header.ts.template} +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-overlay.directive.ts.template → hlm-alert-dialog-overlay.ts.template} +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog-title.directive.ts.template → hlm-alert-dialog-title.ts.template} +3 -3
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/{hlm-alert-dialog.component.ts.template → hlm-alert-dialog.ts.template} +8 -8
- package/src/generators/ui/libs/ui-alert-helm/files/index.ts.template +9 -14
- package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert-description.directive.ts.template → hlm-alert-description.ts.template} +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert-icon.directive.ts.template → hlm-alert-icon.ts.template} +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert-title.directive.ts.template → hlm-alert-title.ts.template} +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/{hlm-alert.directive.ts.template → hlm-alert.ts.template} +1 -1
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/{helm-aspect-ratio.directive.ts.template → helm-aspect-ratio.ts.template} +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/index.ts.template +5 -5
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/{hlm-avatar-fallback.directive.ts.template → hlm-avatar-fallback.ts.template} +4 -4
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/index.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/{hlm-avatar.component.ts.template → hlm-avatar.ts.template} +2 -2
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/{hlm-avatar-image.directive.ts.template → hlm-avatar-image.ts.template} +4 -4
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/index.ts.template +1 -1
- package/src/generators/ui/libs/ui-badge-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-badge-helm/files/lib/{hlm-badge.directive.ts.template → hlm-badge.ts.template} +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/index.ts.template +21 -21
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-ellipsis.component.ts.template → hlm-breadcrumb-ellipsis.ts.template} +3 -3
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-item.directive.ts.template → hlm-breadcrumb-item.ts.template} +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-link.directive.ts.template → hlm-breadcrumb-link.ts.template} +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-list.directive.ts.template → hlm-breadcrumb-list.ts.template} +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-page.directive.ts.template → hlm-breadcrumb-page.ts.template} +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb-separator.component.ts.template → hlm-breadcrumb-separator.ts.template} +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/{hlm-breadcrumb.directive.ts.template → hlm-breadcrumb.ts.template} +1 -1
- package/src/generators/ui/libs/ui-button-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-button-helm/files/lib/{hlm-button.directive.ts.template → hlm-button.ts.template} +1 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/index.ts.template +5 -5
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/{hlm-calendar-multi.component.ts.template → hlm-calendar-multi.ts.template} +22 -22
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/{hlm-calendar.component.ts.template → hlm-calendar.ts.template} +22 -22
- package/src/generators/ui/libs/ui-card-helm/files/index.ts.template +21 -21
- package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-action.directive.ts.template → hlm-card-action.ts.template} +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-content.directive.ts.template → hlm-card-content.ts.template} +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-description.directive.ts.template → hlm-card-description.ts.template} +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-footer.directive.ts.template → hlm-card-footer.ts.template} +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-header.directive.ts.template → hlm-card-header.ts.template} +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card-title.directive.ts.template → hlm-card-title.ts.template} +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/{hlm-card.directive.ts.template → hlm-card.ts.template} +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/index.ts.template +18 -18
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-content.component.ts.template → hlm-carousel-content.ts.template} +3 -3
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-item.component.ts.template → hlm-carousel-item.ts.template} +3 -3
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-next.component.ts.template → hlm-carousel-next.ts.template} +8 -8
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-previous.component.ts.template → hlm-carousel-previous.ts.template} +8 -8
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel-slide-display.component.ts.template → hlm-carousel-slide-display.ts.template} +3 -3
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/{hlm-carousel.component.ts.template → hlm-carousel.ts.template} +1 -1
- package/src/generators/ui/libs/ui-checkbox-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/{hlm-checkbox.component.ts.template → hlm-checkbox.ts.template} +5 -5
- package/src/generators/ui/libs/ui-command-helm/files/index.ts.template +39 -39
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-dialog-close-button.directive.ts.template → hlm-command-dialog-close-button.ts.template} +4 -4
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-dialog.directive.ts.template → hlm-command-dialog.ts.template} +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-empty.directive.ts.template → hlm-command-empty.ts.template} +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-group-label.component.ts.template → hlm-command-group-label.ts.template} +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-group.component.ts.template → hlm-command-group.ts.template} +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-icon.directive.ts.template → hlm-command-icon.ts.template} +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-item.component.ts.template → hlm-command-item.ts.template} +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-list.component.ts.template → hlm-command-list.ts.template} +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-search-input.component.ts.template → hlm-command-search-input.ts.template} +3 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-search.component.ts.template → hlm-command-search.ts.template} +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-separator.component.ts.template → hlm-command-separator.ts.template} +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command-shortcut.component.ts.template → hlm-command-shortcut.ts.template} +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/{hlm-command.component.ts.template → hlm-command.ts.template} +3 -3
- package/src/generators/ui/libs/ui-date-picker-helm/files/index.ts.template +5 -5
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/{hlm-date-picker-multi.component.ts.template → hlm-date-picker-multi.ts.template} +7 -15
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/{hlm-date-picker.component.ts.template → hlm-date-picker.ts.template} +7 -15
- package/src/generators/ui/libs/ui-dialog-helm/files/index.ts.template +24 -24
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-close.directive.ts.template → hlm-dialog-close.ts.template} +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-content.component.ts.template → hlm-dialog-content.ts.template} +5 -5
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-description.directive.ts.template → hlm-dialog-description.ts.template} +3 -3
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-footer.component.ts.template → hlm-dialog-footer.ts.template} +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-header.component.ts.template → hlm-dialog-header.ts.template} +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-overlay.directive.ts.template → hlm-dialog-overlay.ts.template} +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog-title.directive.ts.template → hlm-dialog-title.ts.template} +3 -3
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog.service.ts.template +3 -3
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/{hlm-dialog.component.ts.template → hlm-dialog.ts.template} +6 -10
- package/src/generators/ui/libs/ui-form-field-helm/files/index.ts.template +8 -8
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/{hlm-error.directive.ts.template → hlm-error.ts.template} +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/{hlm-form-field.component.ts.template → hlm-form-field.ts.template} +3 -3
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/{hlm-hint.directive.ts.template → hlm-hint.ts.template} +1 -1
- package/src/generators/ui/libs/ui-hover-card-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/{hlm-hover-card-content.component.ts.template → hlm-hover-card-content.ts.template} +1 -1
- package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.token.ts.template +1 -1
- package/src/generators/ui/libs/ui-icon-helm/files/lib/{hlm-icon.directive.ts.template → hlm-icon.ts.template} +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-input-helm/files/lib/{hlm-input-error.directive.ts.template → hlm-input-error.ts.template} +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/{hlm-input.directive.ts.template → hlm-input.ts.template} +2 -2
- package/src/generators/ui/libs/ui-input-otp-helm/files/index.ts.template +15 -15
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-fake-caret.component.ts.template → hlm-input-otp-fake-caret.ts.template} +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-group.directive.ts.template → hlm-input-otp-group.ts.template} +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-separator.component.ts.template → hlm-input-otp-separator.ts.template} +3 -3
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp-slot.component.ts.template → hlm-input-otp-slot.ts.template} +4 -4
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/{hlm-input-otp.directive.ts.template → hlm-input-otp.ts.template} +1 -1
- package/src/generators/ui/libs/ui-label-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-label-helm/files/lib/{hlm-label.directive.ts.template → hlm-label.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/index.ts.template +42 -47
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-bar-item.directive.ts.template → hlm-menu-bar-item.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-bar.component.ts.template → hlm-menu-bar.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-group.component.ts.template → hlm-menu-group.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-check.component.ts.template → hlm-menu-item-check.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-checkbox.directive.ts.template → hlm-menu-item-checkbox.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-icon.directive.ts.template → hlm-menu-item-icon.ts.template} +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-radio.component.ts.template → hlm-menu-item-radio-indicator.ts.template} +4 -4
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-radio.directive.ts.template → hlm-menu-item-radio.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item-sub-indicator.component.ts.template → hlm-menu-item-sub-indicator.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-item.directive.ts.template → hlm-menu-item.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-label.component.ts.template → hlm-menu-label.ts.template} +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-separator.component.ts.template → hlm-menu-separator.ts.template} +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu-shortcut.component.ts.template → hlm-menu-shortcut.ts.template} +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-menu.component.ts.template → hlm-menu.ts.template} +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/{hlm-sub-menu.component.ts.template → hlm-sub-menu.ts.template} +3 -3
- package/src/generators/ui/libs/ui-pagination-helm/files/index.ts.template +27 -27
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-numbered-pagination-query-params.component.ts.template → hlm-numbered-pagination-query-params.ts.template} +16 -16
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-numbered-pagination.component.ts.template → hlm-numbered-pagination.ts.template} +15 -15
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-content.directive.ts.template → hlm-pagination-content.ts.template} +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-ellipsis.component.ts.template → hlm-pagination-ellipsis.ts.template} +3 -3
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-item.directive.ts.template → hlm-pagination-item.ts.template} +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-link.directive.ts.template → hlm-pagination-link.ts.template} +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-next.component.ts.template → hlm-pagination-next.ts.template} +6 -6
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-previous.component.ts.template → hlm-pagination-previous.ts.template} +6 -6
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination.directive.ts.template → hlm-pagination.ts.template} +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/index.ts.template +5 -5
- package/src/generators/ui/libs/ui-popover-helm/files/lib/{hlm-popover-close.directive.ts.template → hlm-popover-close.ts.template} +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/{hlm-popover-content.directive.ts.template → hlm-popover-content.ts.template} +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/index.ts.template +5 -5
- package/src/generators/ui/libs/ui-progress-helm/files/lib/{hlm-progress-indicator.directive.ts.template → hlm-progress-indicator.ts.template} +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/{hlm-progress.directive.ts.template → hlm-progress.ts.template} +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/index.ts.template +7 -7
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/{hlm-radio-group.component.ts.template → hlm-radio-group.ts.template} +3 -3
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/{hlm-radio-indicator.component.ts.template → hlm-radio-indicator.ts.template} +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/{hlm-radio.component.ts.template → hlm-radio.ts.template} +3 -3
- 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 → hlm-scroll-area.ts.template} +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/index.ts.template +27 -27
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-content.directive.ts.template → hlm-select-content.ts.template} +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-group.directive.ts.template → hlm-select-group.ts.template} +3 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-label.directive.ts.template → hlm-select-label.ts.template} +5 -5
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-option.component.ts.template → hlm-select-option.ts.template} +6 -6
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-scroll-down.component.ts.template → hlm-select-scroll-down.ts.template} +3 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-scroll-up.component.ts.template → hlm-select-scroll-up.ts.template} +3 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-trigger.component.ts.template → hlm-select-trigger.ts.template} +6 -6
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select-value.directive.ts.template → hlm-select-value.ts.template} +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/{hlm-select.directive.ts.template → hlm-select.ts.template} +1 -1
- package/src/generators/ui/libs/ui-separator-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-separator-helm/files/lib/{hlm-separator.directive.ts.template → hlm-separator.ts.template} +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/index.ts.template +24 -24
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-close.directive.ts.template → hlm-sheet-close.ts.template} +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-content.component.ts.template → hlm-sheet-content.ts.template} +5 -5
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-description.directive.ts.template → hlm-sheet-description.ts.template} +3 -3
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-footer.component.ts.template → hlm-sheet-footer.ts.template} +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-header.component.ts.template → hlm-sheet-header.ts.template} +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-overlay.directive.ts.template → hlm-sheet-overlay.ts.template} +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/{hlm-sheet-title.directive.ts.template → hlm-sheet-title.ts.template} +3 -3
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet.ts.template +30 -0
- package/src/generators/ui/libs/ui-skeleton-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/{hlm-skeleton.component.ts.template → hlm-skeleton.ts.template} +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-slider-helm/files/lib/{hlm-slider.component.ts.template → hlm-slider.ts.template} +8 -8
- package/src/generators/ui/libs/ui-sonner-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-sonner-helm/files/lib/{hlm-toaster.component.ts.template → hlm-toaster.ts.template} +1 -1
- package/src/generators/ui/libs/ui-spinner-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/{hlm-spinner.component.ts.template → hlm-spinner.ts.template} +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/index.ts.template +5 -5
- package/src/generators/ui/libs/ui-switch-helm/files/lib/{hlm-switch-thumb.directive.ts.template → hlm-switch-thumb.ts.template} +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/{hlm-switch.component.ts.template → hlm-switch.ts.template} +5 -5
- package/src/generators/ui/libs/ui-table-helm/files/index.ts.template +3 -21
- package/src/generators/ui/libs/ui-table-helm/files/lib/{hlm-table.directive.ts.template → hlm-table.ts.template} +8 -8
- package/src/generators/ui/libs/ui-tabs-helm/files/index.ts.template +11 -17
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-content.directive.ts.template → hlm-tabs-content.ts.template} +3 -3
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-list.component.ts.template → hlm-tabs-list.ts.template} +3 -3
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-paginated-list.component.ts.template → hlm-tabs-paginated-list.ts.template} +6 -10
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs-trigger.directive.ts.template → hlm-tabs-trigger.ts.template} +3 -3
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/{hlm-tabs.component.ts.template → hlm-tabs.ts.template} +3 -3
- package/src/generators/ui/libs/ui-toggle-group-helm/files/index.ts.template +6 -6
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.token.ts.template +5 -5
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/{hlm-toggle-group.directive.ts.template → hlm-toggle-group.ts.template} +3 -3
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/{hlm-toggle-item.directive.ts.template → hlm-toggle-item.ts.template} +1 -1
- package/src/generators/ui/libs/ui-toggle-helm/files/index.ts.template +4 -4
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/{hlm-toggle.directive.ts.template → hlm-toggle.ts.template} +1 -1
- package/src/generators/ui/libs/ui-tooltip-helm/files/index.ts.template +5 -5
- package/src/generators/ui/libs/ui-tooltip-helm/files/lib/{hlm-tooltip-trigger.directive.ts.template → hlm-tooltip-trigger.ts.template} +3 -3
- package/src/generators/ui/libs/ui-tooltip-helm/files/lib/{hlm-tooltip.component.ts.template → hlm-tooltip.ts.template} +3 -3
- package/src/generators/ui/libs/ui-typography-helm/files/index.ts.template +12 -12
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-blockquote.directive.ts.template → hlm-blockquote.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-code.directive.ts.template → hlm-code.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h1.directive.ts.template → hlm-h1.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h2.directive.ts.template → hlm-h2.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h3.directive.ts.template → hlm-h3.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-h4.directive.ts.template → hlm-h4.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-large.directive.ts.template → hlm-large.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-lead.directive.ts.template → hlm-lead.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-muted.directive.ts.template → hlm-muted.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-p.directive.ts.template → hlm-p.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-small.directive.ts.template → hlm-small.ts.template} +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/{hlm-ul.directive.ts.template → hlm-ul.ts.template} +1 -1
- package/src/generators/ui/supported-ui-libraries.json +40 -40
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-action-button.directive.ts.template +0 -8
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet.component.ts.template +0 -30
|
@@ -9,7 +9,7 @@ import type { ClassValue } from 'clsx';
|
|
|
9
9
|
'[class]': '_computedClass()',
|
|
10
10
|
},
|
|
11
11
|
})
|
|
12
|
-
export class
|
|
12
|
+
export class HlmCommandDialog {
|
|
13
13
|
private readonly _stateProvider = injectExposesStateProvider({ host: true });
|
|
14
14
|
public readonly state = this._stateProvider.state ?? signal('closed').asReadonly();
|
|
15
15
|
private readonly _renderer = inject(Renderer2);
|
|
@@ -8,7 +8,7 @@ import type { ClassValue } from 'clsx';
|
|
|
8
8
|
'[class]': '_computedClass()',
|
|
9
9
|
},
|
|
10
10
|
})
|
|
11
|
-
export class
|
|
11
|
+
export class HlmCommandEmpty {
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
protected readonly _computedClass = computed(() => hlm('py-6 text-center text-sm', this.userClass()));
|
|
14
14
|
}
|
|
@@ -10,7 +10,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
10
10
|
},
|
|
11
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
12
|
})
|
|
13
|
-
export class
|
|
13
|
+
export class HlmCommandGroupLabel {
|
|
14
14
|
/*** The user defined class */
|
|
15
15
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { BrnCommandGroup } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
@@ -7,7 +7,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
7
7
|
template: '<ng-content />',
|
|
8
8
|
hostDirectives: [
|
|
9
9
|
{
|
|
10
|
-
directive:
|
|
10
|
+
directive: BrnCommandGroup,
|
|
11
11
|
inputs: ['id'],
|
|
12
12
|
},
|
|
13
13
|
],
|
|
@@ -16,7 +16,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
16
16
|
},
|
|
17
17
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
18
|
})
|
|
19
|
-
export class
|
|
19
|
+
export class HlmCommandGroup {
|
|
20
20
|
/*** The user defined class */
|
|
21
21
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
22
22
|
|
|
@@ -10,7 +10,7 @@ import { ClassValue } from 'clsx';
|
|
|
10
10
|
},
|
|
11
11
|
providers: [provideHlmIconConfig({ size: 'sm' })],
|
|
12
12
|
})
|
|
13
|
-
export class
|
|
13
|
+
export class HlmCommandIcon {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
15
|
protected readonly _computedClass = computed(() =>
|
|
16
16
|
hlm('text-muted-foreground pointer-events-none shrink-0', this.userClass()),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { BrnCommandItem } from '@spartan-ng/brain/command';
|
|
4
4
|
import { hlm } from '@spartan-ng/brain/core';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -10,7 +10,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
10
10
|
`,
|
|
11
11
|
hostDirectives: [
|
|
12
12
|
{
|
|
13
|
-
directive:
|
|
13
|
+
directive: BrnCommandItem,
|
|
14
14
|
inputs: ['value', 'disabled', 'id'],
|
|
15
15
|
outputs: ['selected'],
|
|
16
16
|
},
|
|
@@ -20,7 +20,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
20
20
|
},
|
|
21
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
22
|
})
|
|
23
|
-
export class
|
|
23
|
+
export class HlmCommandItem {
|
|
24
24
|
/** The value this item represents. */
|
|
25
25
|
public readonly value = input<string>();
|
|
26
26
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { BrnCommandList } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
@@ -10,13 +10,13 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
10
10
|
},
|
|
11
11
|
hostDirectives: [
|
|
12
12
|
{
|
|
13
|
-
directive:
|
|
13
|
+
directive: BrnCommandList,
|
|
14
14
|
inputs: ['id'],
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
17
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18
18
|
})
|
|
19
|
-
export class
|
|
19
|
+
export class HlmCommandList {
|
|
20
20
|
/** The user defined class */
|
|
21
21
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
22
22
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { BrnCommandSearchInput } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: 'input[hlm-command-search-input]',
|
|
8
8
|
template: '',
|
|
9
|
-
hostDirectives: [{ directive:
|
|
9
|
+
hostDirectives: [{ directive: BrnCommandSearchInput, inputs: ['value'] }],
|
|
10
10
|
host: {
|
|
11
11
|
'[class]': '_computedClass()',
|
|
12
12
|
},
|
|
13
13
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
14
|
})
|
|
15
|
-
export class
|
|
15
|
+
export class HlmCommandSearchInput {
|
|
16
16
|
/*** The user defined class */
|
|
17
17
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
18
18
|
|
|
@@ -14,7 +14,7 @@ import type { ClassValue } from 'clsx';
|
|
|
14
14
|
providers: [provideHlmIconConfig({ size: 'sm' })],
|
|
15
15
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
16
|
})
|
|
17
|
-
export class
|
|
17
|
+
export class HlmCommandSearch {
|
|
18
18
|
/*** The user defined class */
|
|
19
19
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
20
20
|
|
|
@@ -10,7 +10,7 @@ import { hlm } from '@spartan-ng/brain/core';
|
|
|
10
10
|
},
|
|
11
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
12
|
})
|
|
13
|
-
export class
|
|
13
|
+
export class HlmCommandSeparator {
|
|
14
14
|
/*** The user defined class */
|
|
15
15
|
public readonly userClass = input<string>('', { alias: 'class' });
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ import { ClassValue } from 'clsx';
|
|
|
10
10
|
},
|
|
11
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
12
|
})
|
|
13
|
-
export class
|
|
13
|
+
export class HlmCommandShortcut {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
15
|
protected readonly _computedClass = computed(() =>
|
|
16
16
|
hlm('text-muted-foreground ml-auto text-xs tracking-widest', this.userClass()),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { BrnCommand } from '@spartan-ng/brain/command';
|
|
3
3
|
import { hlm } from '@spartan-ng/brain/core';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ import type { ClassValue } from 'clsx';
|
|
|
10
10
|
`,
|
|
11
11
|
hostDirectives: [
|
|
12
12
|
{
|
|
13
|
-
directive:
|
|
13
|
+
directive: BrnCommand,
|
|
14
14
|
inputs: ['id', 'filter'],
|
|
15
15
|
outputs: ['valueChange'],
|
|
16
16
|
},
|
|
@@ -20,7 +20,7 @@ import type { ClassValue } from 'clsx';
|
|
|
20
20
|
},
|
|
21
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
22
|
})
|
|
23
|
-
export class
|
|
23
|
+
export class HlmCommand {
|
|
24
24
|
/*** The user defined class */
|
|
25
25
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
26
26
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { HlmDatePicker } from './lib/hlm-date-picker';
|
|
3
|
+
import { HlmDatePickerMulti } from './lib/hlm-date-picker-multi';
|
|
4
4
|
|
|
5
5
|
export * from './lib/hlm-date-picker.token';
|
|
6
6
|
|
|
7
|
-
export * from './lib/hlm-date-picker
|
|
8
|
-
export * from './lib/hlm-date-picker
|
|
7
|
+
export * from './lib/hlm-date-picker';
|
|
8
|
+
export * from './lib/hlm-date-picker-multi';
|
|
9
9
|
|
|
10
|
-
export const HlmDatePickerImports = [
|
|
10
|
+
export const HlmDatePickerImports = [HlmDatePicker, HlmDatePickerMulti] as const;
|
|
11
11
|
|
|
12
12
|
@NgModule({
|
|
13
13
|
imports: [...HlmDatePickerImports],
|
|
@@ -17,30 +17,22 @@ import { lucideCalendar } from '@ng-icons/lucide';
|
|
|
17
17
|
import { hlm } from '@spartan-ng/brain/core';
|
|
18
18
|
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
19
19
|
import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
20
|
+
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
21
|
+
import { HlmCalendarMulti } from '@spartan-ng/helm/calendar';
|
|
22
|
+
import { HlmIcon } from '@spartan-ng/helm/icon';
|
|
23
|
+
import { HlmPopoverContent } from '@spartan-ng/helm/popover';
|
|
24
24
|
import type { ClassValue } from 'clsx';
|
|
25
25
|
import { injectHlmDatePickerMultiConfig } from './hlm-date-picker-multi.token';
|
|
26
26
|
|
|
27
27
|
export const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR = {
|
|
28
28
|
provide: NG_VALUE_ACCESSOR,
|
|
29
|
-
useExisting: forwardRef(() =>
|
|
29
|
+
useExisting: forwardRef(() => HlmDatePickerMulti),
|
|
30
30
|
multi: true,
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
@Component({
|
|
34
34
|
selector: 'hlm-date-picker-multi',
|
|
35
|
-
imports: [
|
|
36
|
-
NgIcon,
|
|
37
|
-
HlmIconDirective,
|
|
38
|
-
BrnPopoverComponent,
|
|
39
|
-
BrnPopoverTriggerDirective,
|
|
40
|
-
BrnPopoverContentDirective,
|
|
41
|
-
HlmPopoverContentDirective,
|
|
42
|
-
HlmCalendarMultiComponent,
|
|
43
|
-
],
|
|
35
|
+
imports: [NgIcon, HlmIcon, BrnPopover, BrnPopoverTrigger, BrnPopoverContent, HlmPopoverContent, HlmCalendarMulti],
|
|
44
36
|
providers: [HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR, provideIcons({ lucideCalendar })],
|
|
45
37
|
template: `
|
|
46
38
|
<brn-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_popoverState.set($event)">
|
|
@@ -75,7 +67,7 @@ export const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR = {
|
|
|
75
67
|
},
|
|
76
68
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
77
69
|
})
|
|
78
|
-
export class
|
|
70
|
+
export class HlmDatePickerMulti<T> implements ControlValueAccessor {
|
|
79
71
|
private readonly _config = injectHlmDatePickerMultiConfig<T>();
|
|
80
72
|
|
|
81
73
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -16,30 +16,22 @@ import { lucideChevronDown } from '@ng-icons/lucide';
|
|
|
16
16
|
import { hlm } from '@spartan-ng/brain/core';
|
|
17
17
|
import { BrnDialogState } from '@spartan-ng/brain/dialog';
|
|
18
18
|
import { type ChangeFn, type TouchFn } from '@spartan-ng/brain/forms';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
19
|
+
import { BrnPopover, BrnPopoverContent, BrnPopoverTrigger } from '@spartan-ng/brain/popover';
|
|
20
|
+
import { HlmCalendar } from '@spartan-ng/helm/calendar';
|
|
21
|
+
import { HlmIcon } from '@spartan-ng/helm/icon';
|
|
22
|
+
import { HlmPopoverContent } from '@spartan-ng/helm/popover';
|
|
23
23
|
import type { ClassValue } from 'clsx';
|
|
24
24
|
import { injectHlmDatePickerConfig } from './hlm-date-picker.token';
|
|
25
25
|
|
|
26
26
|
export const HLM_DATE_PICKER_VALUE_ACCESSOR = {
|
|
27
27
|
provide: NG_VALUE_ACCESSOR,
|
|
28
|
-
useExisting: forwardRef(() =>
|
|
28
|
+
useExisting: forwardRef(() => HlmDatePicker),
|
|
29
29
|
multi: true,
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
@Component({
|
|
33
33
|
selector: 'hlm-date-picker',
|
|
34
|
-
imports: [
|
|
35
|
-
NgIcon,
|
|
36
|
-
HlmIconDirective,
|
|
37
|
-
BrnPopoverComponent,
|
|
38
|
-
BrnPopoverTriggerDirective,
|
|
39
|
-
BrnPopoverContentDirective,
|
|
40
|
-
HlmPopoverContentDirective,
|
|
41
|
-
HlmCalendarComponent,
|
|
42
|
-
],
|
|
34
|
+
imports: [NgIcon, HlmIcon, BrnPopover, BrnPopoverTrigger, BrnPopoverContent, HlmPopoverContent, HlmCalendar],
|
|
43
35
|
providers: [HLM_DATE_PICKER_VALUE_ACCESSOR, provideIcons({ lucideChevronDown })],
|
|
44
36
|
template: `
|
|
45
37
|
<brn-popover sideOffset="5" [state]="_popoverState()" (stateChanged)="_popoverState.set($event)">
|
|
@@ -72,7 +64,7 @@ export const HLM_DATE_PICKER_VALUE_ACCESSOR = {
|
|
|
72
64
|
},
|
|
73
65
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
74
66
|
})
|
|
75
|
-
export class
|
|
67
|
+
export class HlmDatePicker<T> implements ControlValueAccessor {
|
|
76
68
|
private readonly _config = injectHlmDatePickerConfig<T>();
|
|
77
69
|
|
|
78
70
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { HlmDialog } from './lib/hlm-dialog';
|
|
4
|
+
import { HlmDialogClose } from './lib/hlm-dialog-close';
|
|
5
|
+
import { HlmDialogContent } from './lib/hlm-dialog-content';
|
|
6
|
+
import { HlmDialogDescription } from './lib/hlm-dialog-description';
|
|
7
|
+
import { HlmDialogFooter } from './lib/hlm-dialog-footer';
|
|
8
|
+
import { HlmDialogHeader } from './lib/hlm-dialog-header';
|
|
9
|
+
import { HlmDialogOverlay } from './lib/hlm-dialog-overlay';
|
|
10
|
+
import { HlmDialogTitle } from './lib/hlm-dialog-title';
|
|
11
11
|
|
|
12
|
-
export * from './lib/hlm-dialog
|
|
13
|
-
export * from './lib/hlm-dialog-
|
|
14
|
-
export * from './lib/hlm-dialog-
|
|
15
|
-
export * from './lib/hlm-dialog-
|
|
16
|
-
export * from './lib/hlm-dialog-
|
|
17
|
-
export * from './lib/hlm-dialog-
|
|
18
|
-
export * from './lib/hlm-dialog-
|
|
19
|
-
export * from './lib/hlm-dialog
|
|
12
|
+
export * from './lib/hlm-dialog';
|
|
13
|
+
export * from './lib/hlm-dialog-close';
|
|
14
|
+
export * from './lib/hlm-dialog-content';
|
|
15
|
+
export * from './lib/hlm-dialog-description';
|
|
16
|
+
export * from './lib/hlm-dialog-footer';
|
|
17
|
+
export * from './lib/hlm-dialog-header';
|
|
18
|
+
export * from './lib/hlm-dialog-overlay';
|
|
19
|
+
export * from './lib/hlm-dialog-title';
|
|
20
20
|
export * from './lib/hlm-dialog.service';
|
|
21
21
|
|
|
22
22
|
export const HlmDialogImports = [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
HlmDialog,
|
|
24
|
+
HlmDialogClose,
|
|
25
|
+
HlmDialogContent,
|
|
26
|
+
HlmDialogDescription,
|
|
27
|
+
HlmDialogFooter,
|
|
28
|
+
HlmDialogHeader,
|
|
29
|
+
HlmDialogOverlay,
|
|
30
|
+
HlmDialogTitle,
|
|
31
31
|
] as const;
|
|
32
32
|
|
|
33
33
|
@NgModule({
|
|
@@ -8,7 +8,7 @@ import type { ClassValue } from 'clsx';
|
|
|
8
8
|
'[class]': '_computedClass()',
|
|
9
9
|
},
|
|
10
10
|
})
|
|
11
|
-
export class
|
|
11
|
+
export class HlmDialogClose {
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
|
|
14
14
|
protected readonly _computedClass = computed(() =>
|
|
@@ -3,14 +3,14 @@ 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 { hlm } from '@spartan-ng/brain/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { BrnDialogClose, BrnDialogRef, injectBrnDialogContext } from '@spartan-ng/brain/dialog';
|
|
7
|
+
import { HlmIcon } from '@spartan-ng/helm/icon';
|
|
8
8
|
import type { ClassValue } from 'clsx';
|
|
9
|
-
import {
|
|
9
|
+
import { HlmDialogClose } from './hlm-dialog-close';
|
|
10
10
|
|
|
11
11
|
@Component({
|
|
12
12
|
selector: 'hlm-dialog-content',
|
|
13
|
-
imports: [NgComponentOutlet,
|
|
13
|
+
imports: [NgComponentOutlet, BrnDialogClose, HlmDialogClose, NgIcon, HlmIcon],
|
|
14
14
|
providers: [provideIcons({ lucideX })],
|
|
15
15
|
host: {
|
|
16
16
|
'[class]': '_computedClass()',
|
|
@@ -31,7 +31,7 @@ import { HlmDialogCloseDirective } from './hlm-dialog-close.directive';
|
|
|
31
31
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
32
|
encapsulation: ViewEncapsulation.None,
|
|
33
33
|
})
|
|
34
|
-
export class
|
|
34
|
+
export class HlmDialogContent {
|
|
35
35
|
private readonly _dialogRef = inject(BrnDialogRef);
|
|
36
36
|
private readonly _dialogContext = injectBrnDialogContext({ optional: true });
|
|
37
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
-
import {
|
|
3
|
+
import { BrnDialogDescription } from '@spartan-ng/brain/dialog';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -8,9 +8,9 @@ import type { ClassValue } from 'clsx';
|
|
|
8
8
|
host: {
|
|
9
9
|
'[class]': '_computedClass()',
|
|
10
10
|
},
|
|
11
|
-
hostDirectives: [
|
|
11
|
+
hostDirectives: [BrnDialogDescription],
|
|
12
12
|
})
|
|
13
|
-
export class
|
|
13
|
+
export class HlmDialogDescription {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
15
|
protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this.userClass()));
|
|
16
16
|
}
|
|
@@ -12,7 +12,7 @@ import type { ClassValue } from 'clsx';
|
|
|
12
12
|
},
|
|
13
13
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
14
|
})
|
|
15
|
-
export class
|
|
15
|
+
export class HlmDialogFooter {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
17
|
protected _computedClass = computed(() =>
|
|
18
18
|
hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this.userClass()),
|
|
@@ -12,7 +12,7 @@ import type { ClassValue } from 'clsx';
|
|
|
12
12
|
},
|
|
13
13
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
14
|
})
|
|
15
|
-
export class
|
|
15
|
+
export class HlmDialogHeader {
|
|
16
16
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
17
|
protected _computedClass = computed(() =>
|
|
18
18
|
hlm('flex flex-col space-y-1.5 text-center sm:text-left', this.userClass()),
|
|
@@ -8,7 +8,7 @@ export const hlmDialogOverlayClass =
|
|
|
8
8
|
@Directive({
|
|
9
9
|
selector: '[hlmDialogOverlay],brn-dialog-overlay[hlm]',
|
|
10
10
|
})
|
|
11
|
-
export class
|
|
11
|
+
export class HlmDialogOverlay {
|
|
12
12
|
private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });
|
|
13
13
|
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
-
import {
|
|
3
|
+
import { BrnDialogTitle } from '@spartan-ng/brain/dialog';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -8,9 +8,9 @@ import type { ClassValue } from 'clsx';
|
|
|
8
8
|
host: {
|
|
9
9
|
'[class]': '_computedClass()',
|
|
10
10
|
},
|
|
11
|
-
hostDirectives: [
|
|
11
|
+
hostDirectives: [BrnDialogTitle],
|
|
12
12
|
})
|
|
13
|
-
export class
|
|
13
|
+
export class HlmDialogTitle {
|
|
14
14
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
15
15
|
protected readonly _computedClass = computed(() =>
|
|
16
16
|
hlm('text-lg font-semibold leading-none tracking-tight', this.userClass()),
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
DEFAULT_BRN_DIALOG_OPTIONS,
|
|
7
7
|
cssClassesToArray,
|
|
8
8
|
} from '@spartan-ng/brain/dialog';
|
|
9
|
-
import {
|
|
10
|
-
import { hlmDialogOverlayClass } from './hlm-dialog-overlay
|
|
9
|
+
import { HlmDialogContent } from './hlm-dialog-content';
|
|
10
|
+
import { hlmDialogOverlayClass } from './hlm-dialog-overlay';
|
|
11
11
|
|
|
12
12
|
export type HlmDialogOptions<DialogContext = unknown> = BrnDialogOptions & {
|
|
13
13
|
contentClass?: string;
|
|
@@ -29,6 +29,6 @@ export class HlmDialogService {
|
|
|
29
29
|
context: { ...(options?.context ?? {}), $component: component, $dynamicComponentClass: options?.contentClass },
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
return this._brnDialogService.open(
|
|
32
|
+
return this._brnDialogService.open(HlmDialogContent, undefined, mergedOptions.context, mergedOptions);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
BrnDialogOverlayComponent,
|
|
5
|
-
provideBrnDialogDefaultOptions,
|
|
6
|
-
} from '@spartan-ng/brain/dialog';
|
|
7
|
-
import { HlmDialogOverlayDirective } from './hlm-dialog-overlay.directive';
|
|
2
|
+
import { BrnDialog, BrnDialogOverlay, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';
|
|
3
|
+
import { HlmDialogOverlay } from './hlm-dialog-overlay';
|
|
8
4
|
|
|
9
5
|
@Component({
|
|
10
6
|
selector: 'hlm-dialog',
|
|
11
|
-
imports: [
|
|
7
|
+
imports: [BrnDialogOverlay, HlmDialogOverlay],
|
|
12
8
|
providers: [
|
|
13
9
|
{
|
|
14
|
-
provide:
|
|
15
|
-
useExisting: forwardRef(() =>
|
|
10
|
+
provide: BrnDialog,
|
|
11
|
+
useExisting: forwardRef(() => HlmDialog),
|
|
16
12
|
},
|
|
17
13
|
provideBrnDialogDefaultOptions({
|
|
18
14
|
// add custom options here
|
|
@@ -26,4 +22,4 @@ import { HlmDialogOverlayDirective } from './hlm-dialog-overlay.directive';
|
|
|
26
22
|
encapsulation: ViewEncapsulation.None,
|
|
27
23
|
exportAs: 'hlmDialog',
|
|
28
24
|
})
|
|
29
|
-
export class
|
|
25
|
+
export class HlmDialog extends BrnDialog {}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { HlmError } from './lib/hlm-error';
|
|
3
|
+
import { HlmFormField } from './lib/hlm-form-field';
|
|
4
|
+
import { HlmHint } from './lib/hlm-hint';
|
|
5
5
|
|
|
6
|
-
export * from './lib/hlm-error
|
|
7
|
-
export * from './lib/hlm-form-field
|
|
8
|
-
export * from './lib/hlm-hint
|
|
6
|
+
export * from './lib/hlm-error';
|
|
7
|
+
export * from './lib/hlm-form-field';
|
|
8
|
+
export * from './lib/hlm-hint';
|
|
9
9
|
|
|
10
10
|
@NgModule({
|
|
11
|
-
imports: [
|
|
12
|
-
exports: [
|
|
11
|
+
imports: [HlmFormField, HlmError, HlmHint],
|
|
12
|
+
exports: [HlmFormField, HlmError, HlmHint],
|
|
13
13
|
})
|
|
14
14
|
export class HlmFormFieldModule {}
|
|
@@ -9,7 +9,7 @@ import { ClassValue } from 'clsx';
|
|
|
9
9
|
'[class]': '_computedClass()',
|
|
10
10
|
},
|
|
11
11
|
})
|
|
12
|
-
export class
|
|
12
|
+
export class HlmError {
|
|
13
13
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
14
|
protected readonly _computedClass = computed(() =>
|
|
15
15
|
hlm('block text-destructive text-sm font-medium', this.userClass()),
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import { hlm } from '@spartan-ng/brain/core';
|
|
11
11
|
import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
|
|
12
12
|
import { ClassValue } from 'clsx';
|
|
13
|
-
import {
|
|
13
|
+
import { HlmError } from './hlm-error';
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
16
16
|
selector: 'hlm-form-field',
|
|
@@ -31,12 +31,12 @@ import { HlmErrorDirective } from './hlm-error.directive';
|
|
|
31
31
|
},
|
|
32
32
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
33
|
})
|
|
34
|
-
export class
|
|
34
|
+
export class HlmFormField {
|
|
35
35
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
36
36
|
protected readonly _computedClass = computed(() => hlm('space-y-2 block', this.userClass()));
|
|
37
37
|
public readonly control = contentChild(BrnFormFieldControl);
|
|
38
38
|
|
|
39
|
-
public readonly errorChildren = contentChildren(
|
|
39
|
+
public readonly errorChildren = contentChildren(HlmError);
|
|
40
40
|
|
|
41
41
|
protected readonly _hasDisplayedMessage = computed<'error' | 'hint'>(() =>
|
|
42
42
|
this.errorChildren() && this.errorChildren().length > 0 && this.control()?.errorState() ? 'error' : 'hint',
|
|
@@ -9,7 +9,7 @@ import { ClassValue } from 'clsx';
|
|
|
9
9
|
'[class]': '_computedClass()',
|
|
10
10
|
},
|
|
11
11
|
})
|
|
12
|
-
export class
|
|
12
|
+
export class HlmHint {
|
|
13
13
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
14
|
protected readonly _computedClass = computed(() => hlm('block text-sm text-muted-foreground', this.userClass()));
|
|
15
15
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { HlmHoverCardContent } from './lib/hlm-hover-card-content';
|
|
3
3
|
|
|
4
|
-
export {
|
|
4
|
+
export { HlmHoverCardContent } from './lib/hlm-hover-card-content';
|
|
5
5
|
|
|
6
|
-
export const HlmHoverCardImports = [
|
|
6
|
+
export const HlmHoverCardImports = [HlmHoverCardContent] as const;
|
|
7
7
|
|
|
8
8
|
@NgModule({
|
|
9
9
|
imports: [...HlmHoverCardImports],
|
|
@@ -22,7 +22,7 @@ import type { ClassValue } from 'clsx';
|
|
|
22
22
|
`,
|
|
23
23
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
24
|
})
|
|
25
|
-
export class
|
|
25
|
+
export class HlmHoverCardContent {
|
|
26
26
|
private readonly _renderer = inject(Renderer2);
|
|
27
27
|
private readonly _element = inject(ElementRef);
|
|
28
28
|
|