@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,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const enquirer_1 = require("enquirer");
|
|
6
|
+
const versions_1 = require("../base/versions");
|
|
7
|
+
function hlmUIGenerator(tree, options) {
|
|
8
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
+
const tasks = [];
|
|
10
|
+
const availablePrimitives = yield Promise.resolve().then(() => require('./supported-ui-libraries.json'));
|
|
11
|
+
const availablePrimitiveNames = [...Object.keys(availablePrimitives), 'collapsible', 'menubar', 'contextmenu'];
|
|
12
|
+
let response = { primitives: [] };
|
|
13
|
+
if (options.name && availablePrimitiveNames.includes(options.name)) {
|
|
14
|
+
response.primitives.push(options.name);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
response = yield (0, enquirer_1.prompt)({
|
|
18
|
+
type: 'multiselect',
|
|
19
|
+
required: true,
|
|
20
|
+
name: 'primitives',
|
|
21
|
+
message: 'Choose which primitives you want to copy',
|
|
22
|
+
choices: ['all', ...availablePrimitiveNames],
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
tasks.push(...(yield createPrimitiveLibraries(response, availablePrimitiveNames, availablePrimitives, tree, options)));
|
|
26
|
+
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
exports.default = hlmUIGenerator;
|
|
30
|
+
function createPrimitiveLibraries(response, availablePrimitiveNames, availablePrimitives, tree, options) {
|
|
31
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
const allPrimitivesSelected = response.primitives.includes('all');
|
|
33
|
+
const primitivesToCreate = allPrimitivesSelected ? availablePrimitiveNames : response.primitives;
|
|
34
|
+
const tasks = [];
|
|
35
|
+
if (!response.primitives.includes('all')) {
|
|
36
|
+
yield addIconForDependentPrimitive(primitivesToCreate, ['alert', 'command', 'menu']);
|
|
37
|
+
yield addButtonForDependentPrimitive(primitivesToCreate, ['alertdialog', 'command']);
|
|
38
|
+
}
|
|
39
|
+
yield replaceContextAndMenuBar(primitivesToCreate, allPrimitivesSelected);
|
|
40
|
+
if (primitivesToCreate.includes('collapsible')) {
|
|
41
|
+
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, { '@spartan-ng/ui-collapsible-brain': versions_1.SPARTAN_COLLAPSIBLE_BRAIN_VERSION }, {}));
|
|
42
|
+
}
|
|
43
|
+
if (primitivesToCreate.length === 1 && primitivesToCreate[0] === 'collapsible') {
|
|
44
|
+
return tasks;
|
|
45
|
+
}
|
|
46
|
+
for (const primitiveName of primitivesToCreate) {
|
|
47
|
+
if (primitiveName === 'collapsible')
|
|
48
|
+
continue;
|
|
49
|
+
const internalName = availablePrimitives[primitiveName]['internalName'];
|
|
50
|
+
const peerDependencies = availablePrimitives[primitiveName]['peerDependencies'];
|
|
51
|
+
const installTask = yield (yield Promise.resolve(`${
|
|
52
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
`./libs/${internalName}/generator`}`).then(s => require(s))).generator(tree, {
|
|
55
|
+
// get overwritten by each specific generator
|
|
56
|
+
internalName: '',
|
|
57
|
+
publicName: '',
|
|
58
|
+
primitiveName: '',
|
|
59
|
+
peerDependencies,
|
|
60
|
+
skipBrainDependencies: options.skipBrainDependencies,
|
|
61
|
+
directory: options.directory,
|
|
62
|
+
tags: options.tags,
|
|
63
|
+
rootProject: options.rootProject,
|
|
64
|
+
angularCli: options.angularCli,
|
|
65
|
+
});
|
|
66
|
+
tasks.push(installTask);
|
|
67
|
+
}
|
|
68
|
+
return tasks;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
const addIconForDependentPrimitive = (primitivesToCreate, primitivesDependingOnIcon) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
72
|
+
if (primitivesDependingOnIcon.some((primitive) => primitivesToCreate.includes(primitive))) {
|
|
73
|
+
//TODO: Need to check if icon is already installed and skip if it already is
|
|
74
|
+
const installIcon = (yield (0, enquirer_1.prompt)({
|
|
75
|
+
type: 'confirm',
|
|
76
|
+
name: 'installIcon',
|
|
77
|
+
initial: true,
|
|
78
|
+
message: 'Some of the primitives you are trying to install depend on the icon primitive. Do you want to add it to your project?',
|
|
79
|
+
}))['installIcon'];
|
|
80
|
+
if (installIcon) {
|
|
81
|
+
primitivesToCreate.push('icon');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
const addButtonForDependentPrimitive = (primitivesToCreate, primitivesDependingOnBtn) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
86
|
+
if (primitivesDependingOnBtn.some((primitive) => primitivesToCreate.includes(primitive))) {
|
|
87
|
+
//TODO: Need to check if icon is already installed and skip if it already is
|
|
88
|
+
const installBtn = (yield (0, enquirer_1.prompt)({
|
|
89
|
+
type: 'confirm',
|
|
90
|
+
name: 'installBtn',
|
|
91
|
+
initial: true,
|
|
92
|
+
message: 'Some of the primitives you are trying to install depend on the button primitive. Do you want to add it to your project?',
|
|
93
|
+
}))['installBtn'];
|
|
94
|
+
if (installBtn) {
|
|
95
|
+
primitivesToCreate.push('button');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
const replaceContextAndMenuBar = (primtivesToCreate, silent = false) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
+
const contextIndex = primtivesToCreate.indexOf('contextmenu');
|
|
101
|
+
if (contextIndex >= 0) {
|
|
102
|
+
if (!silent) {
|
|
103
|
+
yield (0, enquirer_1.prompt)({
|
|
104
|
+
type: 'confirm',
|
|
105
|
+
name: 'contextMenu',
|
|
106
|
+
message: 'The context menu is implemented as part of the menu-helm primitive. Adding menu primitive.',
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
primtivesToCreate.splice(contextIndex, 1);
|
|
110
|
+
}
|
|
111
|
+
const menubarIndex = primtivesToCreate.indexOf('menubar');
|
|
112
|
+
if (menubarIndex >= 0) {
|
|
113
|
+
if (!silent) {
|
|
114
|
+
yield (0, enquirer_1.prompt)({
|
|
115
|
+
type: 'confirm',
|
|
116
|
+
name: 'menubar',
|
|
117
|
+
message: 'The menubar is implemented as part of the menu-helm primitive. Adding menu primitive.',
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
primtivesToCreate.splice(menubarIndex, 1);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/generator.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { HlmAccordionContentDirective } from './lib/hlm-accordion-content.directive';
|
|
4
|
+
import { HlmAccordionIconComponent } from './lib/hlm-accordion-icon.component';
|
|
5
|
+
import { HlmAccordionItemDirective } from './lib/hlm-accordion-item.directive';
|
|
6
|
+
import { HlmAccordionTriggerDirective } from './lib/hlm-accordion-trigger.directive';
|
|
7
|
+
import { HlmAccordionDirective } from './lib/hlm-accordion.directive';
|
|
8
|
+
|
|
9
|
+
export * from './lib/hlm-accordion-content.directive';
|
|
10
|
+
export * from './lib/hlm-accordion-icon.component';
|
|
11
|
+
export * from './lib/hlm-accordion-item.directive';
|
|
12
|
+
export * from './lib/hlm-accordion-trigger.directive';
|
|
13
|
+
export * from './lib/hlm-accordion.directive';
|
|
14
|
+
|
|
15
|
+
export const HlmAccordionImports = [
|
|
16
|
+
HlmAccordionDirective,
|
|
17
|
+
HlmAccordionItemDirective,
|
|
18
|
+
HlmAccordionTriggerDirective,
|
|
19
|
+
HlmAccordionContentDirective,
|
|
20
|
+
HlmAccordionIconComponent,
|
|
21
|
+
] as const;
|
|
22
|
+
|
|
23
|
+
@NgModule({
|
|
24
|
+
imports: [...HlmAccordionImports],
|
|
25
|
+
exports: [...HlmAccordionImports],
|
|
26
|
+
})
|
|
27
|
+
export class HlmAccordionModule {}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
2
|
+
import {
|
|
3
|
+
computed,
|
|
4
|
+
Directive,
|
|
5
|
+
effect,
|
|
6
|
+
ElementRef,
|
|
7
|
+
inject,
|
|
8
|
+
Injector,
|
|
9
|
+
Input,
|
|
10
|
+
OnInit,
|
|
11
|
+
PLATFORM_ID,
|
|
12
|
+
signal,
|
|
13
|
+
} from '@angular/core';
|
|
14
|
+
import { hlm, injectCustomClassSettable } from '@spartan-ng/ui-core';
|
|
15
|
+
import { ClassValue } from 'clsx';
|
|
16
|
+
|
|
17
|
+
@Directive({
|
|
18
|
+
selector: '[hlmAccordionContent],brn-accordion-content[hlm]',
|
|
19
|
+
standalone: true,
|
|
20
|
+
host: {
|
|
21
|
+
'[style.height]': 'cssHeight()',
|
|
22
|
+
'[class]': '_computedClass()',
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
export class HlmAccordionContentDirective implements OnInit {
|
|
26
|
+
private readonly _host = injectCustomClassSettable({ optional: true });
|
|
27
|
+
private readonly _element = inject(ElementRef).nativeElement;
|
|
28
|
+
private readonly _injector = inject(Injector);
|
|
29
|
+
private readonly _platformId = inject(PLATFORM_ID);
|
|
30
|
+
|
|
31
|
+
private _changes?: MutationObserver;
|
|
32
|
+
|
|
33
|
+
public readonly height = signal('-1');
|
|
34
|
+
public readonly cssHeight = computed(() => (this.height() === '-1' ? 'auto' : this.height()));
|
|
35
|
+
public readonly state = signal('closed');
|
|
36
|
+
|
|
37
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
38
|
+
@Input()
|
|
39
|
+
set class(userCls: ClassValue) {
|
|
40
|
+
this._userCls.set(userCls);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
44
|
+
private _generateClass() {
|
|
45
|
+
return hlm('overflow-hidden text-sm transition-all', this._userCls());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public ngOnInit() {
|
|
49
|
+
this._host?.setClassToCustomElement('pt-1 pb-4');
|
|
50
|
+
|
|
51
|
+
if (isPlatformBrowser(this._platformId)) {
|
|
52
|
+
this._changes = new MutationObserver((mutations: MutationRecord[]) => {
|
|
53
|
+
mutations.forEach((mutation: MutationRecord) => {
|
|
54
|
+
if (mutation.attributeName !== 'data-state') return;
|
|
55
|
+
// eslint-disable-next-line
|
|
56
|
+
const state = (mutation.target as any).attributes.getNamedItem(mutation.attributeName)?.value;
|
|
57
|
+
this.state.set(state);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
Promise.resolve().then(() => {
|
|
63
|
+
this._changes?.observe(this._element, {
|
|
64
|
+
attributes: true,
|
|
65
|
+
childList: true,
|
|
66
|
+
characterData: true,
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
effect(
|
|
71
|
+
() => {
|
|
72
|
+
const isOpen = this.state() === 'open';
|
|
73
|
+
Promise.resolve().then(() => {
|
|
74
|
+
this.height.set(
|
|
75
|
+
isOpen ? getComputedStyle(this._element).getPropertyValue('--brn-collapsible-content-height') : '0px',
|
|
76
|
+
);
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
injector: this._injector,
|
|
81
|
+
allowSignalWrites: true,
|
|
82
|
+
},
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.component.ts.template
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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-accordion-icon',
|
|
7
|
+
standalone: true,
|
|
8
|
+
template: `
|
|
9
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
10
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
|
|
11
|
+
</svg>
|
|
12
|
+
`,
|
|
13
|
+
host: {
|
|
14
|
+
'[class]': '_computedClass()',
|
|
15
|
+
},
|
|
16
|
+
})
|
|
17
|
+
export class HlmAccordionIconComponent {
|
|
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('inline-block h-4 w-4 transition-transform duration-200', this._userCls());
|
|
27
|
+
}
|
|
28
|
+
}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.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: '[hlmAccordionItem],brn-accordion-item[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmAccordionItemDirective {
|
|
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('flex flex-1 flex-col border-b border-border', this._userCls());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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: '[hlmAccordionTrigger],brn-accordion-trigger[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[style.--tw-ring-offset-shadow]': '"0 0 #000"',
|
|
10
|
+
'[class]': '_computedClass()',
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
export class HlmAccordionTriggerDirective {
|
|
14
|
+
private _host = injectCustomClassSettable({ optional: true });
|
|
15
|
+
|
|
16
|
+
constructor() {
|
|
17
|
+
this._host?.setClassToCustomElement(this._generateClass());
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
21
|
+
@Input()
|
|
22
|
+
set class(inputs: ClassValue) {
|
|
23
|
+
this._userCls.set(inputs);
|
|
24
|
+
// cannot set in effect because it sets a signal
|
|
25
|
+
if (this._host) {
|
|
26
|
+
this._host.setClassToCustomElement(this._generateClass());
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
protected _computedClass = computed(() => {
|
|
31
|
+
return !this._host ? this._generateClass() : '';
|
|
32
|
+
});
|
|
33
|
+
private _generateClass() {
|
|
34
|
+
return hlm(
|
|
35
|
+
'w-full focus-visible:outline-none text-sm focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 flex flex-1 items-center justify-between py-4 px-0.5 font-medium underline-offset-4 hover:underline [&[data-state=open]>hlm-accordion-icon]:rotate-180',
|
|
36
|
+
this._userCls(),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.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: '[hlmAccordion],brn-accordion[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmAccordionDirective {
|
|
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('flex flex-col', 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: 'accordion', internalName: 'ui-accordion-helm', publicName: 'ui-accordion-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-accordion-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,WAAW,EAC1B,YAAY,EAAE,mBAAmB,EACjC,UAAU,EAAE,mBAAmB,IAC9B,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { HlmAlertDialogActionButtonDirective } from './lib/hlm-alert-dialog-action-button.directive';
|
|
4
|
+
import { HlmAlertDialogCancelButtonDirective } from './lib/hlm-alert-dialog-cancel-button.directive';
|
|
5
|
+
import { HlmAlertDialogCloseDirective } from './lib/hlm-alert-dialog-close.directive';
|
|
6
|
+
import { HlmAlertDialogContentDirective } from './lib/hlm-alert-dialog-content.directive';
|
|
7
|
+
import { HlmAlertDialogDescriptionDirective } from './lib/hlm-alert-dialog-description.directive';
|
|
8
|
+
import { HlmAlertDialogFooterComponent } from './lib/hlm-alert-dialog-footer.component';
|
|
9
|
+
import { HlmAlertDialogHeaderComponent } from './lib/hlm-alert-dialog-header.component';
|
|
10
|
+
import { HlmAlertDialogOverlayDirective } from './lib/hlm-alert-dialog-overlay.directive';
|
|
11
|
+
import { HlmAlertDialogTitleDirective } from './lib/hlm-alert-dialog-title.directive';
|
|
12
|
+
|
|
13
|
+
export * from './lib/hlm-alert-dialog-action-button.directive';
|
|
14
|
+
export * from './lib/hlm-alert-dialog-cancel-button.directive';
|
|
15
|
+
export * from './lib/hlm-alert-dialog-close.directive';
|
|
16
|
+
export * from './lib/hlm-alert-dialog-content.directive';
|
|
17
|
+
export * from './lib/hlm-alert-dialog-description.directive';
|
|
18
|
+
export * from './lib/hlm-alert-dialog-footer.component';
|
|
19
|
+
export * from './lib/hlm-alert-dialog-header.component';
|
|
20
|
+
export * from './lib/hlm-alert-dialog-overlay.directive';
|
|
21
|
+
export * from './lib/hlm-alert-dialog-title.directive';
|
|
22
|
+
|
|
23
|
+
export const HlmAlertDialogImports = [
|
|
24
|
+
HlmAlertDialogCloseDirective,
|
|
25
|
+
HlmAlertDialogContentDirective,
|
|
26
|
+
HlmAlertDialogDescriptionDirective,
|
|
27
|
+
HlmAlertDialogFooterComponent,
|
|
28
|
+
HlmAlertDialogHeaderComponent,
|
|
29
|
+
HlmAlertDialogOverlayDirective,
|
|
30
|
+
HlmAlertDialogTitleDirective,
|
|
31
|
+
HlmAlertDialogActionButtonDirective,
|
|
32
|
+
HlmAlertDialogCancelButtonDirective,
|
|
33
|
+
] as const;
|
|
34
|
+
|
|
35
|
+
@NgModule({
|
|
36
|
+
imports: [...HlmAlertDialogImports],
|
|
37
|
+
exports: [...HlmAlertDialogImports],
|
|
38
|
+
})
|
|
39
|
+
export class HlmAlertDialogModule {}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { HlmButtonDirective } from '@spartan-ng/ui-button-helm';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: 'button[hlmAlertDialogAction]',
|
|
6
|
+
standalone: true,
|
|
7
|
+
hostDirectives: [HlmButtonDirective],
|
|
8
|
+
})
|
|
9
|
+
export class HlmAlertDialogActionButtonDirective {}
|
|
@@ -0,0 +1,31 @@
|
|
|
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: 'button[hlmAlertDialogCancel]',
|
|
8
|
+
standalone: true,
|
|
9
|
+
hostDirectives: [HlmButtonDirective],
|
|
10
|
+
host: {
|
|
11
|
+
'[class]': '_computedClass()',
|
|
12
|
+
},
|
|
13
|
+
})
|
|
14
|
+
export class HlmAlertDialogCancelButtonDirective {
|
|
15
|
+
private _hlmBtn = inject(HlmButtonDirective, { host: true });
|
|
16
|
+
|
|
17
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
18
|
+
@Input()
|
|
19
|
+
set class(userCls: ClassValue) {
|
|
20
|
+
this._userCls.set(userCls);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
constructor() {
|
|
24
|
+
this._hlmBtn.variant = 'outline';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
28
|
+
private _generateClass() {
|
|
29
|
+
return hlm('mt-2 sm:mt-0', this._userCls());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -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: '[hlmAlertDialogClose],[brnAlertDialogClose][hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmAlertDialogCloseDirective {
|
|
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 [&>hlm-icon]:h-4 [&>hlm-icon]:w-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
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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: '[hlmAlertDialogContent],[brnAlertDialogContent][hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmAlertDialogContentDirective {
|
|
13
|
+
private _stateProvider = injectExposesStateProvider({ optional: true, host: true });
|
|
14
|
+
public state = this._stateProvider?.state ?? signal('closed');
|
|
15
|
+
private _renderer = inject(Renderer2);
|
|
16
|
+
private _element = inject(ElementRef);
|
|
17
|
+
|
|
18
|
+
constructor() {
|
|
19
|
+
effect(() => this._renderer.setAttribute(this._element.nativeElement, 'data-state', this.state()));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
private readonly _userCls = signal<ClassValue>('');
|
|
23
|
+
@Input()
|
|
24
|
+
set class(userCls: ClassValue) {
|
|
25
|
+
this._userCls.set(userCls);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
protected _computedClass = computed(() => this._generateClass());
|
|
29
|
+
private _generateClass() {
|
|
30
|
+
return hlm(
|
|
31
|
+
'relative grid w-full max-w-lg gap-4 border-border 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',
|
|
32
|
+
this._userCls(),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -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: '[hlmAlertDialogDescription],[brnAlertDialogDescription][hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmAlertDialogDescriptionDirective {
|
|
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
|
+
}
|
|
@@ -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-alert-dialog-footer',
|
|
7
|
+
standalone: true,
|
|
8
|
+
template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`,
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class HlmAlertDialogFooterComponent {
|
|
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
|
+
}
|
|
@@ -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-alert-dialog-header',
|
|
7
|
+
standalone: true,
|
|
8
|
+
template: `
|
|
9
|
+
<ng-content />
|
|
10
|
+
`,
|
|
11
|
+
host: {
|
|
12
|
+
'[class]': '_computedClass()',
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
export class HlmAlertDialogHeaderComponent {
|
|
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-2 text-center sm:text-left', this._userCls());
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -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: '[hlmAlertDialogOverlay],brn-alert-dialog-overlay[hlm]',
|
|
7
|
+
standalone: true,
|
|
8
|
+
host: {
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmAlertDialogOverlayDirective {
|
|
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
|
+
}
|