@spartan-ng/cli 0.0.1-alpha.323
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/README.md +11 -0
- package/executors.json +3 -0
- package/generators.json +26 -0
- package/package.json +22 -0
- package/src/generators/base/generator.d.ts +4 -0
- package/src/generators/base/generator.js +36 -0
- package/src/generators/base/generator.js.map +1 -0
- package/src/generators/base/lib/build-dependency-array.d.ts +7 -0
- package/src/generators/base/lib/build-dependency-array.js +53 -0
- package/src/generators/base/lib/build-dependency-array.js.map +1 -0
- package/src/generators/base/lib/get-target-library-directory.d.ts +3 -0
- package/src/generators/base/lib/get-target-library-directory.js +12 -0
- package/src/generators/base/lib/get-target-library-directory.js.map +1 -0
- package/src/generators/base/lib/initialize-angular-library.d.ts +3 -0
- package/src/generators/base/lib/initialize-angular-library.js +25 -0
- package/src/generators/base/lib/initialize-angular-library.js.map +1 -0
- package/src/generators/base/schema.d.ts +11 -0
- package/src/generators/base/schema.json +17 -0
- package/src/generators/base/versions.d.ts +23 -0
- package/src/generators/base/versions.js +31 -0
- package/src/generators/base/versions.js.map +1 -0
- package/src/generators/theme/compat.d.ts +2 -0
- package/src/generators/theme/compat.js +6 -0
- package/src/generators/theme/compat.js.map +1 -0
- package/src/generators/theme/generator.d.ts +2 -0
- package/src/generators/theme/generator.js +59 -0
- package/src/generators/theme/generator.js.map +1 -0
- package/src/generators/theme/libs/add-theme-to-application-styles.d.ts +11 -0
- package/src/generators/theme/libs/add-theme-to-application-styles.js +65 -0
- package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -0
- package/src/generators/theme/libs/supported-theme-generator-map.d.ts +17 -0
- package/src/generators/theme/libs/supported-theme-generator-map.js +560 -0
- package/src/generators/theme/libs/supported-theme-generator-map.js.map +1 -0
- package/src/generators/theme/schema.json +7 -0
- package/src/generators/ui/compat.d.ts +5 -0
- package/src/generators/ui/compat.js +7 -0
- package/src/generators/ui/compat.js.map +1 -0
- package/src/generators/ui/generator.d.ts +5 -0
- package/src/generators/ui/generator.js +123 -0
- package/src/generators/ui/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/index.ts.template +27 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.directive.ts.template +85 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.component.ts.template +28 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +39 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-accordion-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-accordion-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-accordion-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/index.ts.template +39 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-action-button.directive.ts.template +9 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.directive.ts.template +31 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-close.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.directive.ts.template +35 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.directive.ts.template +33 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-alert-dialog-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-alert-helm/files/index.ts.template +24 -0
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +29 -0
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-icon.directive.ts.template +15 -0
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +29 -0
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +48 -0
- package/src/generators/ui/libs/ui-alert-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-alert-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-alert-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.spec.ts.template +73 -0
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.ts.template +53 -0
- package/src/generators/ui/libs/ui-aspect-ratio-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-aspect-ratio-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-aspect-ratio-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/index.ts.template +17 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.spec.ts.template +70 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.ts.template +40 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/index.ts.template +1 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.spec.ts.template +61 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +58 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.spec.ts.template +44 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +28 -0
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/index.ts.template +1 -0
- package/src/generators/ui/libs/ui-avatar-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-avatar-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-avatar-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-badge-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +73 -0
- package/src/generators/ui/libs/ui-badge-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-badge-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-badge-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-button-helm/files/.DS_Store.template +0 -0
- package/src/generators/ui/libs/ui-button-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +63 -0
- package/src/generators/ui/libs/ui-button-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-button-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-button-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-card-helm/files/index.ts.template +30 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.directive.ts.template +30 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template +30 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.directive.ts.template +43 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.directive.ts.template +43 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.directive.ts.template +30 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.directive.ts.template +33 -0
- package/src/generators/ui/libs/ui-card-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-card-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-card-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-command-helm/files/index.ts.template +49 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.directive.ts.template +30 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +39 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.directive.ts.template +28 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input-wrapper.component.ts.template +27 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template +30 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.directive.ts.template +33 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-loader.directive.ts.template +7 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.directive.ts.template +10 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-command-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-command-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-command-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/.DS_Store.template +0 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/index.ts.template +33 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.directive.ts.template +37 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template +33 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-dialog-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-dialog-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-dialog-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-hover-card-helm/files/index.ts.template +12 -0
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.directive.ts.template +44 -0
- package/src/generators/ui/libs/ui-hover-card-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-hover-card-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-hover-card-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +13 -0
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.spec.ts.template +64 -0
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.ts.template +96 -0
- package/src/generators/ui/libs/ui-icon-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-icon-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-icon-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-input-helm/files/index.ts.template +12 -0
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.directive.ts.template +30 -0
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +57 -0
- package/src/generators/ui/libs/ui-input-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-input-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-input-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-label-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +56 -0
- package/src/generators/ui/libs/ui-label-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-label-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-label-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-menu-helm/files/index.ts.template +62 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template +30 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.directive.ts.template +30 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template +30 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +30 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +33 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +32 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +24 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.directive.ts.template +46 -0
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-menu-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-menu-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-menu-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-popover-helm/files/index.ts.template +15 -0
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.directive.ts.template +37 -0
- package/src/generators/ui/libs/ui-popover-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-popover-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-popover-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-progress-helm/files/index.ts.template +15 -0
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +44 -0
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-progress-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-progress-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-progress-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-radio-group-helm/files/index.ts.template +17 -0
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +32 -0
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-radio-group-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-radio-group-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-radio-group-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-scroll-area-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.component.ts.template +78 -0
- package/src/generators/ui/libs/ui-scroll-area-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-scroll-area-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-scroll-area-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-separator-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.directive.ts.template +34 -0
- package/src/generators/ui/libs/ui-separator-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-separator-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-separator-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/index.ts.template +31 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.directive.ts.template +55 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +33 -0
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +23 -0
- package/src/generators/ui/libs/ui-sheet-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-sheet-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-sheet-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-skeleton-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.component.ts.template +24 -0
- package/src/generators/ui/libs/ui-skeleton-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-skeleton-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-skeleton-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-spinner-helm/files/index.ts.template +10 -0
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.component.ts.template +62 -0
- package/src/generators/ui/libs/ui-spinner-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-spinner-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-spinner-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-switch-helm/files/index.ts.template +14 -0
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-switch-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-switch-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-switch-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-table-helm/files/index.ts.template +27 -0
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.component.ts.template +30 -0
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.directive.ts.template +17 -0
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-td.component.ts.template +37 -0
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-th.component.ts.template +40 -0
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-trow.component.ts.template +33 -0
- package/src/generators/ui/libs/ui-table-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-table-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-table-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-tabs-helm/files/index.ts.template +17 -0
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.directive.ts.template +43 -0
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-tabs-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-tabs-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-tabs-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-toggle-helm/files/index.ts.template +17 -0
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +58 -0
- package/src/generators/ui/libs/ui-toggle-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-toggle-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-toggle-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-typography-helm/files/index.ts.template +12 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-typography-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-typography-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-typography-helm/generator.js.map +1 -0
- package/src/generators/ui/schema.d.ts +7 -0
- package/src/generators/ui/schema.json +26 -0
- package/src/generators/ui/supported-ui-libraries.json +246 -0
- package/src/index.d.ts +0 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -0
- package/src/utils/get-project-names.d.ts +5 -0
- package/src/utils/get-project-names.js +16 -0
- package/src/utils/get-project-names.js.map +1 -0
- package/src/utils/version-utils.d.ts +2 -0
- package/src/utils/version-utils.js +20 -0
- package/src/utils/version-utils.js.map +1 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
+
import { HlmAvatarImageDirective } from './hlm-avatar-image.directive';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'hlm-mock',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [HlmAvatarImageDirective],
|
|
9
|
+
template: `
|
|
10
|
+
<img hlmAvatarImage [class]="userCls" />
|
|
11
|
+
`,
|
|
12
|
+
})
|
|
13
|
+
class HlmMockComponent {
|
|
14
|
+
userCls = '';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
describe('HlmAvatarImageDirective', () => {
|
|
18
|
+
let component: HlmMockComponent;
|
|
19
|
+
let fixture: ComponentFixture<HlmMockComponent>;
|
|
20
|
+
|
|
21
|
+
beforeEach(() => {
|
|
22
|
+
fixture = TestBed.createComponent(HlmMockComponent);
|
|
23
|
+
component = fixture.componentInstance;
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('should compile', () => {
|
|
27
|
+
expect(component).toBeTruthy();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should add the default classes if no inputs are provided', () => {
|
|
31
|
+
fixture.detectChanges();
|
|
32
|
+
expect(fixture.nativeElement.querySelector('img').className).toBe('aspect-square h-full object-cover w-full');
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('should add any user defined classes', async () => {
|
|
36
|
+
component.userCls = 'test-class';
|
|
37
|
+
fixture.detectChanges();
|
|
38
|
+
|
|
39
|
+
// fallback uses Promise.resolve().then() so we need to wait for the next tick
|
|
40
|
+
setTimeout(() => {
|
|
41
|
+
expect(fixture.nativeElement.querySelector('img').className).toContain('test-class');
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
});
|
package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { computed, Directive, inject, Input, signal } from '@angular/core';
|
|
2
|
+
import { BrnAvatarImageDirective } from '@spartan-ng/ui-avatar-brain';
|
|
3
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Directive({
|
|
7
|
+
selector: 'img[hlmAvatarImage]',
|
|
8
|
+
standalone: true,
|
|
9
|
+
exportAs: 'avatarImage',
|
|
10
|
+
hostDirectives: [BrnAvatarImageDirective],
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class HlmAvatarImageDirective {
|
|
16
|
+
canShow = inject(BrnAvatarImageDirective).canShow;
|
|
17
|
+
|
|
18
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
19
|
+
@Input()
|
|
20
|
+
set class(userCls: ClassValue) {
|
|
21
|
+
this._userCls.set(userCls);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
25
|
+
private _generateClass() {
|
|
26
|
+
return hlm('aspect-square object-cover h-full w-full', this._userCls());
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './hlm-avatar-image.directive';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = require("../../../base/generator");
|
|
6
|
+
function generator(tree, options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'avatar', internalName: 'ui-avatar-helm', publicName: 'ui-avatar-helm' }));
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
exports.generator = generator;
|
|
12
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-avatar-helm/generator.ts"],"names":[],"mappings":";;;;AACA,uDAAuD;AAGvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,QAAQ,EACvB,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,gBAAgB,IAC3B,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { HlmBadgeDirective } from './lib/hlm-badge.directive';
|
|
3
|
+
|
|
4
|
+
export * from './lib/hlm-badge.directive';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
imports: [HlmBadgeDirective],
|
|
8
|
+
exports: [HlmBadgeDirective],
|
|
9
|
+
})
|
|
10
|
+
export class HlmBadgeModule {}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Directive, Input, booleanAttribute, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const badgeVariants = cva(
|
|
7
|
+
'inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: 'bg-primary border-transparent text-primary-foreground',
|
|
12
|
+
secondary: 'bg-secondary border-transparent text-secondary-foreground',
|
|
13
|
+
destructive: 'bg-destructive border-transparent text-destructive-foreground',
|
|
14
|
+
outline: 'text-foreground border-border',
|
|
15
|
+
},
|
|
16
|
+
static: { true: '', false: '' },
|
|
17
|
+
},
|
|
18
|
+
compoundVariants: [
|
|
19
|
+
{
|
|
20
|
+
variant: 'default',
|
|
21
|
+
static: false,
|
|
22
|
+
class: 'hover:bg-primary/80',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
variant: 'secondary',
|
|
26
|
+
static: false,
|
|
27
|
+
class: 'hover:bg-secondary/80',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
variant: 'destructive',
|
|
31
|
+
static: false,
|
|
32
|
+
class: 'hover:bg-destructive/80',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
variant: 'default',
|
|
37
|
+
static: false,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
);
|
|
41
|
+
type badgeVariants = VariantProps<typeof badgeVariants>;
|
|
42
|
+
|
|
43
|
+
@Directive({
|
|
44
|
+
selector: '[hlmBadge]',
|
|
45
|
+
standalone: true,
|
|
46
|
+
host: {
|
|
47
|
+
'[class]': '_computedClass()',
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
export class HlmBadgeDirective {
|
|
51
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
52
|
+
@Input()
|
|
53
|
+
set class(userCls: ClassValue) {
|
|
54
|
+
this._userCls.set(userCls);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private readonly _variant = signal<badgeVariants['variant']>('default');
|
|
58
|
+
@Input()
|
|
59
|
+
set variant(variant: badgeVariants['variant']) {
|
|
60
|
+
this._variant.set(variant);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private readonly _static = signal<badgeVariants['static']>(false);
|
|
64
|
+
@Input({ transform: booleanAttribute })
|
|
65
|
+
set static(value: badgeVariants['static']) {
|
|
66
|
+
this._static.set(value);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
70
|
+
private _generateClass() {
|
|
71
|
+
return hlm(badgeVariants({ variant: this._variant(), static: this._static() }), this._userCls());
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = require("../../../base/generator");
|
|
6
|
+
function generator(tree, options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'badge', internalName: 'ui-badge-helm', publicName: 'ui-badge-helm' }));
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
exports.generator = generator;
|
|
12
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-badge-helm/generator.ts"],"names":[],"mappings":";;;;AACA,uDAAuD;AAGvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,OAAO,EACtB,YAAY,EAAE,eAAe,EAC7B,UAAU,EAAE,eAAe,IAC1B,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { HlmButtonDirective } from './lib/hlm-button.directive';
|
|
3
|
+
|
|
4
|
+
export * from './lib/hlm-button.directive';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
imports: [HlmButtonDirective],
|
|
8
|
+
exports: [HlmButtonDirective],
|
|
9
|
+
})
|
|
10
|
+
export class HlmButtonModule {}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const buttonVariants = cva(
|
|
7
|
+
'inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background',
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
12
|
+
destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
|
|
13
|
+
outline: 'border border-input hover:bg-accent hover:text-accent-foreground',
|
|
14
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
15
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
|
16
|
+
link: 'underline-offset-4 hover:underline text-primary',
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
default: 'h-10 py-2 px-4',
|
|
20
|
+
sm: 'h-9 px-3 rounded-md',
|
|
21
|
+
lg: 'h-11 px-8 rounded-md',
|
|
22
|
+
icon: 'h-10 w-10',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
variant: 'default',
|
|
27
|
+
size: 'default',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
);
|
|
31
|
+
type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
32
|
+
|
|
33
|
+
@Directive({
|
|
34
|
+
selector: '[hlmBtn]',
|
|
35
|
+
standalone: true,
|
|
36
|
+
host: {
|
|
37
|
+
'[class]': '_computedClass()',
|
|
38
|
+
},
|
|
39
|
+
})
|
|
40
|
+
export class HlmButtonDirective {
|
|
41
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
42
|
+
@Input()
|
|
43
|
+
set class(userCls: ClassValue) {
|
|
44
|
+
this._userCls.set(userCls);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
private readonly _variant = signal<ButtonVariants['variant']>('default');
|
|
48
|
+
@Input()
|
|
49
|
+
set variant(variant: ButtonVariants['variant']) {
|
|
50
|
+
this._variant.set(variant);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
private readonly _size = signal<ButtonVariants['size']>('default');
|
|
54
|
+
@Input()
|
|
55
|
+
set size(size: ButtonVariants['size']) {
|
|
56
|
+
this._size.set(size);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
60
|
+
private _generateClass() {
|
|
61
|
+
return hlm(buttonVariants({ variant: this._variant(), size: this._size() }), this._userCls());
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = require("../../../base/generator");
|
|
6
|
+
function generator(tree, options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'button', internalName: 'ui-button-helm', publicName: 'ui-button-helm' }));
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
exports.generator = generator;
|
|
12
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-button-helm/generator.ts"],"names":[],"mappings":";;;;AACA,uDAAuD;AAGvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,QAAQ,EACvB,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EAAE,gBAAgB,IAC3B,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { HlmCardContentDirective } from './lib/hlm-card-content.directive';
|
|
4
|
+
import { HlmCardDescriptionDirective } from './lib/hlm-card-description.directive';
|
|
5
|
+
import { HlmCardFooterDirective } from './lib/hlm-card-footer.directive';
|
|
6
|
+
import { HlmCardHeaderDirective } from './lib/hlm-card-header.directive';
|
|
7
|
+
import { HlmCardTitleDirective } from './lib/hlm-card-title.directive';
|
|
8
|
+
import { HlmCardDirective } from './lib/hlm-card.directive';
|
|
9
|
+
|
|
10
|
+
export * from './lib/hlm-card-content.directive';
|
|
11
|
+
export * from './lib/hlm-card-description.directive';
|
|
12
|
+
export * from './lib/hlm-card-footer.directive';
|
|
13
|
+
export * from './lib/hlm-card-header.directive';
|
|
14
|
+
export * from './lib/hlm-card-title.directive';
|
|
15
|
+
export * from './lib/hlm-card.directive';
|
|
16
|
+
|
|
17
|
+
export const HlmCardImports = [
|
|
18
|
+
HlmCardDirective,
|
|
19
|
+
HlmCardHeaderDirective,
|
|
20
|
+
HlmCardFooterDirective,
|
|
21
|
+
HlmCardTitleDirective,
|
|
22
|
+
HlmCardDescriptionDirective,
|
|
23
|
+
HlmCardContentDirective,
|
|
24
|
+
] as const;
|
|
25
|
+
|
|
26
|
+
@NgModule({
|
|
27
|
+
imports: [...HlmCardImports],
|
|
28
|
+
exports: [...HlmCardImports],
|
|
29
|
+
})
|
|
30
|
+
export class HlmCardModule {}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const cardContentVariants = cva('p-6 pt-0', {
|
|
7
|
+
variants: {},
|
|
8
|
+
defaultVariants: {},
|
|
9
|
+
});
|
|
10
|
+
export type CardContentVariants = VariantProps<typeof cardContentVariants>;
|
|
11
|
+
|
|
12
|
+
@Directive({
|
|
13
|
+
selector: '[hlmCardContent]',
|
|
14
|
+
standalone: true,
|
|
15
|
+
host: {
|
|
16
|
+
'[class]': '_computedClass()',
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
export class HlmCardContentDirective {
|
|
20
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
21
|
+
@Input()
|
|
22
|
+
set class(userCls: ClassValue) {
|
|
23
|
+
this._userCls.set(userCls);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
27
|
+
private _generateClass() {
|
|
28
|
+
return hlm(cardContentVariants(), this._userCls());
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const cardDescriptionVariants = cva('text-sm text-muted-foreground', {
|
|
7
|
+
variants: {},
|
|
8
|
+
defaultVariants: {},
|
|
9
|
+
});
|
|
10
|
+
export type CardDescriptionVariants = VariantProps<typeof cardDescriptionVariants>;
|
|
11
|
+
|
|
12
|
+
@Directive({
|
|
13
|
+
selector: '[hlmCardDescription]',
|
|
14
|
+
standalone: true,
|
|
15
|
+
host: {
|
|
16
|
+
'[class]': '_computedClass()',
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
export class HlmCardDescriptionDirective {
|
|
20
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
21
|
+
@Input()
|
|
22
|
+
set class(userCls: ClassValue) {
|
|
23
|
+
this._userCls.set(userCls);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
27
|
+
private _generateClass() {
|
|
28
|
+
return hlm(cardDescriptionVariants(), this._userCls());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const cardFooterVariants = cva('flex p-6 pt-0', {
|
|
7
|
+
variants: {
|
|
8
|
+
direction: {
|
|
9
|
+
row: 'flex-row items-center space-x-1.5',
|
|
10
|
+
column: 'flex-col space-y-1.5',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
direction: 'row',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
export type CardFooterVariants = VariantProps<typeof cardFooterVariants>;
|
|
18
|
+
|
|
19
|
+
@Directive({
|
|
20
|
+
selector: '[hlmCardFooter]',
|
|
21
|
+
standalone: true,
|
|
22
|
+
host: {
|
|
23
|
+
'[class]': '_computedClass()',
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
export class HlmCardFooterDirective {
|
|
27
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
28
|
+
@Input()
|
|
29
|
+
set class(userCls: ClassValue) {
|
|
30
|
+
this._userCls.set(userCls);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
private readonly _direction = signal<CardFooterVariants['direction']>('row');
|
|
34
|
+
@Input()
|
|
35
|
+
set direction(direction: CardFooterVariants['direction']) {
|
|
36
|
+
this._direction.set(direction);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
40
|
+
private _generateClass() {
|
|
41
|
+
return hlm(cardFooterVariants({ direction: this._direction() }), this._userCls());
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const cardHeaderVariants = cva('flex p-6', {
|
|
7
|
+
variants: {
|
|
8
|
+
direction: {
|
|
9
|
+
row: 'flex-row items-center space-x-1.5',
|
|
10
|
+
column: 'flex-col space-y-1.5',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
direction: 'column',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
export type CardHeaderVariants = VariantProps<typeof cardHeaderVariants>;
|
|
18
|
+
|
|
19
|
+
@Directive({
|
|
20
|
+
selector: '[hlmCardHeader]',
|
|
21
|
+
standalone: true,
|
|
22
|
+
host: {
|
|
23
|
+
'[class]': '_computedClass()',
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
export class HlmCardHeaderDirective {
|
|
27
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
28
|
+
@Input()
|
|
29
|
+
set class(userCls: ClassValue) {
|
|
30
|
+
this._userCls.set(userCls);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
private readonly _direction = signal<CardHeaderVariants['direction']>('column');
|
|
34
|
+
@Input()
|
|
35
|
+
set direction(direction: CardHeaderVariants['direction']) {
|
|
36
|
+
this._direction.set(direction);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
40
|
+
private _generateClass() {
|
|
41
|
+
return hlm(cardHeaderVariants({ direction: this._direction() }), this._userCls());
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const cardTitleVariants = cva('text-lg font-semibold leading-none tracking-tight', {
|
|
7
|
+
variants: {},
|
|
8
|
+
defaultVariants: {},
|
|
9
|
+
});
|
|
10
|
+
export type CardTitleVariants = VariantProps<typeof cardTitleVariants>;
|
|
11
|
+
|
|
12
|
+
@Directive({
|
|
13
|
+
selector: '[hlmCardTitle]',
|
|
14
|
+
standalone: true,
|
|
15
|
+
host: {
|
|
16
|
+
'[class]': '_computedClass()',
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
export class HlmCardTitleDirective {
|
|
20
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
21
|
+
@Input()
|
|
22
|
+
set class(userCls: ClassValue) {
|
|
23
|
+
this._userCls.set(userCls);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
27
|
+
private _generateClass() {
|
|
28
|
+
return hlm(cardTitleVariants(), this._userCls());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { VariantProps, cva } from 'class-variance-authority';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const cardVariants = cva(
|
|
7
|
+
'rounded-lg border border-border bg-card focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-card-foreground shadow-sm',
|
|
8
|
+
{
|
|
9
|
+
variants: {},
|
|
10
|
+
defaultVariants: {},
|
|
11
|
+
},
|
|
12
|
+
);
|
|
13
|
+
export type CardVariants = VariantProps<typeof cardVariants>;
|
|
14
|
+
|
|
15
|
+
@Directive({
|
|
16
|
+
selector: '[hlmCard]',
|
|
17
|
+
standalone: true,
|
|
18
|
+
host: {
|
|
19
|
+
'[class]': '_computedClass()',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
export class HlmCardDirective {
|
|
23
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
24
|
+
@Input()
|
|
25
|
+
set class(userCls: ClassValue) {
|
|
26
|
+
this._userCls.set(userCls);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
30
|
+
private _generateClass() {
|
|
31
|
+
return hlm(cardVariants(), this._userCls());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = require("../../../base/generator");
|
|
6
|
+
function generator(tree, options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'card', internalName: 'ui-card-helm', publicName: 'ui-card-helm' }));
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
exports.generator = generator;
|
|
12
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-card-helm/generator.ts"],"names":[],"mappings":";;;;AACA,uDAAuD;AAGvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,cAAc,EAC5B,UAAU,EAAE,cAAc,IACzB,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { HlmCommandDialogCloseButtonDirective } from './lib/hlm-command-dialog-close-button.directive';
|
|
4
|
+
import { HlmCommandDialogDirective } from './lib/hlm-command-dialog.directive';
|
|
5
|
+
import { HlmCommandEmptyDirective } from './lib/hlm-command-empty.directive';
|
|
6
|
+
import { HlmCommandGroupDirective } from './lib/hlm-command-group.directive';
|
|
7
|
+
import { HlmCommandInputWrapperComponent } from './lib/hlm-command-input-wrapper.component';
|
|
8
|
+
import { HlmCommandInputDirective } from './lib/hlm-command-input.directive';
|
|
9
|
+
import { HlmCommandItemIconDirective } from './lib/hlm-command-item-icon.directive';
|
|
10
|
+
import { HlmCommandItemDirective } from './lib/hlm-command-item.directive';
|
|
11
|
+
import { HlmCommandListDirective } from './lib/hlm-command-list.directive';
|
|
12
|
+
import { HlmCommandSeparatorDirective } from './lib/hlm-command-separator.directive';
|
|
13
|
+
import { HlmCommandShortcutComponent } from './lib/hlm-command-shortcut.component';
|
|
14
|
+
import { HlmCommandDirective } from './lib/hlm-command.directive';
|
|
15
|
+
|
|
16
|
+
export * from './lib/hlm-command-dialog-close-button.directive';
|
|
17
|
+
export * from './lib/hlm-command-dialog.directive';
|
|
18
|
+
export * from './lib/hlm-command-empty.directive';
|
|
19
|
+
export * from './lib/hlm-command-group.directive';
|
|
20
|
+
export * from './lib/hlm-command-input-wrapper.component';
|
|
21
|
+
export * from './lib/hlm-command-input.directive';
|
|
22
|
+
export * from './lib/hlm-command-item-icon.directive';
|
|
23
|
+
export * from './lib/hlm-command-item.directive';
|
|
24
|
+
export * from './lib/hlm-command-list.directive';
|
|
25
|
+
export * from './lib/hlm-command-loader.directive';
|
|
26
|
+
export * from './lib/hlm-command-separator.directive';
|
|
27
|
+
export * from './lib/hlm-command-shortcut.component';
|
|
28
|
+
export * from './lib/hlm-command.directive';
|
|
29
|
+
|
|
30
|
+
export const HlmCommandImports = [
|
|
31
|
+
HlmCommandDirective,
|
|
32
|
+
HlmCommandInputDirective,
|
|
33
|
+
HlmCommandItemDirective,
|
|
34
|
+
HlmCommandSeparatorDirective,
|
|
35
|
+
HlmCommandGroupDirective,
|
|
36
|
+
HlmCommandListDirective,
|
|
37
|
+
HlmCommandShortcutComponent,
|
|
38
|
+
HlmCommandItemIconDirective,
|
|
39
|
+
HlmCommandEmptyDirective,
|
|
40
|
+
HlmCommandInputWrapperComponent,
|
|
41
|
+
HlmCommandDialogCloseButtonDirective,
|
|
42
|
+
HlmCommandDialogDirective,
|
|
43
|
+
] as const;
|
|
44
|
+
|
|
45
|
+
@NgModule({
|
|
46
|
+
imports: [...HlmCommandImports],
|
|
47
|
+
exports: [...HlmCommandImports],
|
|
48
|
+
})
|
|
49
|
+
export class HlmCommandModule {}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { computed, Directive, inject, Input, signal } from '@angular/core';
|
|
2
|
+
import { HlmButtonDirective } from '@spartan-ng/ui-button-helm';
|
|
3
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Directive({
|
|
7
|
+
selector: '[hlmCmdDialogCloseBtn]',
|
|
8
|
+
standalone: true,
|
|
9
|
+
hostDirectives: [HlmButtonDirective],
|
|
10
|
+
host: {
|
|
11
|
+
'[class]': '_computedClass()',
|
|
12
|
+
},
|
|
13
|
+
})
|
|
14
|
+
export class HlmCommandDialogCloseButtonDirective {
|
|
15
|
+
private _hlmBtn = inject(HlmButtonDirective, { host: true });
|
|
16
|
+
constructor() {
|
|
17
|
+
this._hlmBtn.variant = 'ghost';
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
21
|
+
@Input()
|
|
22
|
+
set class(userCls: ClassValue) {
|
|
23
|
+
this._userCls.set(userCls);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
27
|
+
private _generateClass() {
|
|
28
|
+
return hlm('!p-1 !h-5 !w-5', this._userCls());
|
|
29
|
+
}
|
|
30
|
+
}
|