@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
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { computed, Directive, effect, ElementRef, inject, Input, Renderer2, signal } from '@angular/core';
|
|
2
|
+
import { hlm, injectExposesStateProvider } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import { HlmCommandDirective } from './hlm-command.directive';
|
|
5
|
+
|
|
6
|
+
@Directive({
|
|
7
|
+
selector: '[hlmCmdDialog]',
|
|
8
|
+
standalone: true,
|
|
9
|
+
hostDirectives: [HlmCommandDirective],
|
|
10
|
+
host: {
|
|
11
|
+
'[class]': '_computedClass()',
|
|
12
|
+
},
|
|
13
|
+
})
|
|
14
|
+
export class HlmCommandDialogDirective {
|
|
15
|
+
private _stateProvider = injectExposesStateProvider({ host: true });
|
|
16
|
+
public state = this._stateProvider.state ?? signal('closed').asReadonly();
|
|
17
|
+
private _renderer = inject(Renderer2);
|
|
18
|
+
private _element = inject(ElementRef);
|
|
19
|
+
|
|
20
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
21
|
+
@Input()
|
|
22
|
+
set class(userCls: ClassValue) {
|
|
23
|
+
this._userCls.set(userCls);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
constructor() {
|
|
27
|
+
effect(() => {
|
|
28
|
+
this._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state());
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
33
|
+
private _generateClass() {
|
|
34
|
+
return hlm(
|
|
35
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%]',
|
|
36
|
+
this._userCls(),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.directive.ts.template
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmCmdEmpty]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmCommandEmptyDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm('py-6 text-center text-sm', this._userCls());
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.directive.ts.template
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: 'brn-cmd-group[hlm],cmdk-group[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmCommandGroupDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm(
|
|
22
|
+
'block [&[cmdk-hidden="true"]]:hidden\n' +
|
|
23
|
+
'[&_.cmdk-group-label]:px-2 [&_.cmdk-group-label]:py-1.5 [&_.cmdk-group-label]:text-xs [&_.cmdk-group-label]:font-medium [&_.cmdk-group-label]:text-muted-foreground\n' +
|
|
24
|
+
'[&_.cmdk-group-content]:flex [&_.cmdk-group-content]:flex-col [&_.cmdk-group-content]:flex-col overflow-hidden p-1 text-foreground',
|
|
25
|
+
this._userCls(),
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Component, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'hlm-cmd-input-wrapper',
|
|
7
|
+
standalone: true,
|
|
8
|
+
template: '<ng-content/>',
|
|
9
|
+
host: {
|
|
10
|
+
'[class]': '_computedClass()',
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
export class HlmCommandInputWrapperComponent {
|
|
14
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
15
|
+
@Input()
|
|
16
|
+
set class(userCls: ClassValue) {
|
|
17
|
+
this._userCls.set(userCls);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
21
|
+
private _generateClass() {
|
|
22
|
+
return hlm(
|
|
23
|
+
'flex space-x-2 items-center border-b border-border px-3 [&_hlm-icon]:h-5 [&_hlm-icon]:w-5',
|
|
24
|
+
this._userCls(),
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input.directive.ts.template
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlm][brnCmdInput],[hlm][cmdkInput]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmCommandInputDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm(
|
|
22
|
+
'h-11 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
|
|
23
|
+
this._userCls(),
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { computed, Directive, inject, Input, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { HlmIconComponent } from '@spartan-ng/ui-icon-helm';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Directive({
|
|
7
|
+
selector: '[hlmCmdIcon]',
|
|
8
|
+
standalone: true,
|
|
9
|
+
host: {
|
|
10
|
+
'[class]': '_computedClass()',
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
export class HlmCommandItemIconDirective {
|
|
14
|
+
private _menuIcon = inject(HlmIconComponent, { host: true, optional: true });
|
|
15
|
+
|
|
16
|
+
constructor() {
|
|
17
|
+
if (!this._menuIcon) return;
|
|
18
|
+
this._menuIcon.size = 'none';
|
|
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('mr-2 h-4 w-4', this._userCls());
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.directive.ts.template
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { computed, Directive, Input, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlm][brnCmdItem],[hlm][cmdkItem]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
// This is needed after changes to the underlying CMDK library used for the BrnCommand primitive
|
|
11
|
+
// Ideally we would remove the dependency on this outside module. If you are open to that please
|
|
12
|
+
// reach out and if you are feeling super ambitious you can implement it yourself and open a PR!
|
|
13
|
+
'[style.display]': '"flex"',
|
|
14
|
+
},
|
|
15
|
+
})
|
|
16
|
+
export class HlmCommandItemDirective {
|
|
17
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
18
|
+
@Input()
|
|
19
|
+
set class(userCls: ClassValue) {
|
|
20
|
+
this._userCls.set(userCls);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
24
|
+
private _generateClass() {
|
|
25
|
+
return hlm(
|
|
26
|
+
'items-center relative cursor-default select-none rounded-sm px-2 py-1.5 text-sm outline-none\n' +
|
|
27
|
+
'aria-selected:bg-accent aria-selected:text-accent-foreground\n' +
|
|
28
|
+
'hover:bg-accent/50\n' +
|
|
29
|
+
'disabled:pointer-events-none disabled:opacity-50',
|
|
30
|
+
this._userCls(),
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.directive.ts.template
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: 'cmdk-list[hlm],brn-cmd-list[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmCommandListDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm('max-h-[300px] overflow-y-auto overflow-x-hidden', this._userCls());
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.directive.ts.template
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Directive({
|
|
4
|
+
selector: 'cmdk-separator[hlm],brn-cmd-separator[hlm],[hlmCmdSeparator]',
|
|
5
|
+
standalone: true,
|
|
6
|
+
host: {
|
|
7
|
+
class: '[&_hr]:border-border [&[cmdk-hidden="true"]]:hidden',
|
|
8
|
+
},
|
|
9
|
+
})
|
|
10
|
+
export class HlmCommandSeparatorDirective {}
|
package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'hlm-cmd-shortcut',
|
|
7
|
+
standalone: true,
|
|
8
|
+
template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`,
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class HlmCommandShortcutComponent {
|
|
16
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
17
|
+
@Input()
|
|
18
|
+
set class(userCls: ClassValue) {
|
|
19
|
+
this._userCls.set(userCls);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
23
|
+
private _generateClass() {
|
|
24
|
+
return hlm('ml-auto font-light text-xs tracking-widest opacity-60', this._userCls());
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: 'cmdk-command[hlm],brn-cmd[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmCommandDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm(
|
|
22
|
+
'flex h-full w-full flex-col overflow-hidden rounded-md border border-border bg-popover text-popover-foreground',
|
|
23
|
+
this._userCls(),
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -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: 'command', internalName: 'ui-command-helm', publicName: 'ui-command-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-command-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,SAAS,EACxB,YAAY,EAAE,iBAAiB,EAC/B,UAAU,EAAE,iBAAiB,IAC5B,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { HlmDialogCloseDirective } from './lib/hlm-dialog-close.directive';
|
|
4
|
+
import { HlmDialogContentDirective } from './lib/hlm-dialog-content.directive';
|
|
5
|
+
import { HlmDialogDescriptionDirective } from './lib/hlm-dialog-description.directive';
|
|
6
|
+
import { HlmDialogFooterComponent } from './lib/hlm-dialog-footer.component';
|
|
7
|
+
import { HlmDialogHeaderComponent } from './lib/hlm-dialog-header.component';
|
|
8
|
+
import { HlmDialogOverlayDirective } from './lib/hlm-dialog-overlay.directive';
|
|
9
|
+
import { HlmDialogTitleDirective } from './lib/hlm-dialog-title.directive';
|
|
10
|
+
|
|
11
|
+
export * from './lib/hlm-dialog-close.directive';
|
|
12
|
+
export * from './lib/hlm-dialog-content.directive';
|
|
13
|
+
export * from './lib/hlm-dialog-description.directive';
|
|
14
|
+
export * from './lib/hlm-dialog-footer.component';
|
|
15
|
+
export * from './lib/hlm-dialog-header.component';
|
|
16
|
+
export * from './lib/hlm-dialog-overlay.directive';
|
|
17
|
+
export * from './lib/hlm-dialog-title.directive';
|
|
18
|
+
|
|
19
|
+
export const HlmDialogImports = [
|
|
20
|
+
HlmDialogCloseDirective,
|
|
21
|
+
HlmDialogContentDirective,
|
|
22
|
+
HlmDialogDescriptionDirective,
|
|
23
|
+
HlmDialogFooterComponent,
|
|
24
|
+
HlmDialogHeaderComponent,
|
|
25
|
+
HlmDialogOverlayDirective,
|
|
26
|
+
HlmDialogTitleDirective,
|
|
27
|
+
] as const;
|
|
28
|
+
|
|
29
|
+
@NgModule({
|
|
30
|
+
imports: [...HlmDialogImports],
|
|
31
|
+
exports: [...HlmDialogImports],
|
|
32
|
+
})
|
|
33
|
+
export class HlmDialogModule {}
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.directive.ts.template
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDialogClose],[brnDialogClose][hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmDialogCloseDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm(
|
|
22
|
+
'absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground',
|
|
23
|
+
this._userCls,
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.directive.ts.template
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { computed, Directive, effect, ElementRef, inject, Input, Renderer2, signal } from '@angular/core';
|
|
2
|
+
import { hlm, injectExposesStateProvider } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDialogContent],[brnDialogContent][hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmDialogContentDirective {
|
|
13
|
+
private _statusProvider = injectExposesStateProvider({ host: true });
|
|
14
|
+
public state = this._statusProvider.state ?? signal('closed').asReadonly();
|
|
15
|
+
private _renderer = inject(Renderer2);
|
|
16
|
+
private _element = inject(ElementRef);
|
|
17
|
+
|
|
18
|
+
constructor() {
|
|
19
|
+
effect(() => {
|
|
20
|
+
this._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state());
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
25
|
+
@Input()
|
|
26
|
+
set class(userCls: ClassValue) {
|
|
27
|
+
this._userCls.set(userCls);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
31
|
+
private _generateClass() {
|
|
32
|
+
return hlm(
|
|
33
|
+
'border-border grid w-full max-w-lg relative gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%] sm:rounded-lg md:w-full',
|
|
34
|
+
this._userCls(),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDialogDescription],[brnDialogDescription][hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmDialogDescriptionDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm('text-sm text-muted-foreground', this._userCls());
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'hlm-dialog-footer',
|
|
7
|
+
standalone: true,
|
|
8
|
+
template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`,
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class HlmDialogFooterComponent {
|
|
16
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
17
|
+
@Input()
|
|
18
|
+
set class(userCls: ClassValue) {
|
|
19
|
+
this._userCls.set(userCls);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
23
|
+
private _generateClass() {
|
|
24
|
+
return hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this._userCls());
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'hlm-dialog-header',
|
|
7
|
+
standalone: true,
|
|
8
|
+
template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`,
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class HlmDialogHeaderComponent {
|
|
16
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
17
|
+
@Input()
|
|
18
|
+
set class(userCls: ClassValue) {
|
|
19
|
+
this._userCls.set(userCls);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
23
|
+
private _generateClass() {
|
|
24
|
+
return hlm('flex flex-col space-y-1.5 text-center sm:text-left', this._userCls());
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm, injectCustomClassSettable } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDialogOverlay],brn-dialog-overlay[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmDialogOverlayDirective {
|
|
13
|
+
private _classSettable = injectCustomClassSettable({ optional: true, host: true });
|
|
14
|
+
|
|
15
|
+
constructor() {
|
|
16
|
+
this._classSettable?.setClassToCustomElement(this._computedClass());
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
20
|
+
@Input()
|
|
21
|
+
set class(userCls: ClassValue) {
|
|
22
|
+
this._userCls.set(userCls);
|
|
23
|
+
this._classSettable?.setClassToCustomElement(this._computedClass());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
27
|
+
private _generateClass() {
|
|
28
|
+
return hlm(
|
|
29
|
+
'bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
30
|
+
this._userCls(),
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Directive, Input, computed, signal } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDialogTitle],[brnDialogTitle][hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmDialogTitleDirective {
|
|
13
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
14
|
+
@Input()
|
|
15
|
+
set class(userCls: ClassValue) {
|
|
16
|
+
this._userCls.set(userCls);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
20
|
+
private _generateClass() {
|
|
21
|
+
return hlm('text-lg font-semibold leading-none tracking-tight', this._userCls());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -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: 'dialog', internalName: 'ui-dialog-helm', publicName: 'ui-dialog-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-dialog-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,12 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { HlmHoverCardContentDirective } from './lib/hlm-hover-card-content.directive';
|
|
3
|
+
|
|
4
|
+
export { HlmHoverCardContentDirective } from './lib/hlm-hover-card-content.directive';
|
|
5
|
+
|
|
6
|
+
export const HlmHoverCardImports = [HlmHoverCardContentDirective] as const;
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
imports: [...HlmHoverCardImports],
|
|
10
|
+
exports: [...HlmHoverCardImports],
|
|
11
|
+
})
|
|
12
|
+
export class HlmHoverCardModule {}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { computed, Directive, effect, ElementRef, inject, Input, Renderer2, signal } from '@angular/core';
|
|
2
|
+
import { hlm, injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/ui-core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmHoverCardContent]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmHoverCardContentDirective {
|
|
13
|
+
private readonly _renderer = inject(Renderer2);
|
|
14
|
+
private readonly _element = inject(ElementRef);
|
|
15
|
+
private readonly _statusProvider = injectExposesStateProvider({ host: true });
|
|
16
|
+
private readonly _sideProvider = injectExposedSideProvider({ host: true });
|
|
17
|
+
|
|
18
|
+
private _inputs: ClassValue = '';
|
|
19
|
+
|
|
20
|
+
public readonly state = this._statusProvider.state ?? signal('closed').asReadonly();
|
|
21
|
+
public readonly side = this._sideProvider.side ?? signal('bottom').asReadonly();
|
|
22
|
+
|
|
23
|
+
constructor() {
|
|
24
|
+
effect(() => {
|
|
25
|
+
this._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state());
|
|
26
|
+
this._renderer.setAttribute(this._element.nativeElement, 'data-side', this.side());
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
31
|
+
@Input()
|
|
32
|
+
set class(userCls: ClassValue) {
|
|
33
|
+
this._userCls.set(userCls);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
37
|
+
private _generateClass() {
|
|
38
|
+
return hlm(
|
|
39
|
+
'z-50 w-64 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none',
|
|
40
|
+
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
41
|
+
this._inputs,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|