@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/README.md
ADDED
package/executors.json
ADDED
package/generators.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"ui": {
|
|
4
|
+
"factory": "./src/generators/ui/generator",
|
|
5
|
+
"schema": "./src/generators/ui/schema.json",
|
|
6
|
+
"description": "spartan-ng ui generator"
|
|
7
|
+
},
|
|
8
|
+
"ui-theme": {
|
|
9
|
+
"factory": "./src/generators/theme/generator",
|
|
10
|
+
"schema": "./src/generators/theme/schema.json",
|
|
11
|
+
"description": "spartan-ng theme generator"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"schematics": {
|
|
15
|
+
"ui": {
|
|
16
|
+
"factory": "./src/generators/ui/compat",
|
|
17
|
+
"schema": "./src/generators/ui/schema.json",
|
|
18
|
+
"description": "spartan-ng ui generator"
|
|
19
|
+
},
|
|
20
|
+
"ui-theme": {
|
|
21
|
+
"factory": "./src/generators/theme/compat",
|
|
22
|
+
"schema": "./src/generators/theme/schema.json",
|
|
23
|
+
"description": "spartan-ng theme generator"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@spartan-ng/cli",
|
|
3
|
+
"version": "0.0.1-alpha.323",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@nx/js": "^17.1.0",
|
|
7
|
+
"@nx/devkit": "^17.1.0",
|
|
8
|
+
"@nx/angular": "^17.1.0",
|
|
9
|
+
"enquirer": "2.3.6",
|
|
10
|
+
"semver": "7.5.4"
|
|
11
|
+
},
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"tslib": "^2.3.0"
|
|
14
|
+
},
|
|
15
|
+
"executors": "./executors.json",
|
|
16
|
+
"generators": "./generators.json",
|
|
17
|
+
"schematics": "./generators.json",
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"main": "./src/index.js"
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hlmBaseGenerator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const js_1 = require("@nx/js");
|
|
7
|
+
const path = require("path");
|
|
8
|
+
const version_utils_1 = require("../../utils/version-utils");
|
|
9
|
+
const build_dependency_array_1 = require("./lib/build-dependency-array");
|
|
10
|
+
const get_target_library_directory_1 = require("./lib/get-target-library-directory");
|
|
11
|
+
const initialize_angular_library_1 = require("./lib/initialize-angular-library");
|
|
12
|
+
const versions_1 = require("./versions");
|
|
13
|
+
function hlmBaseGenerator(tree, options) {
|
|
14
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
|
+
const tasks = [];
|
|
16
|
+
const targetLibDir = (0, get_target_library_directory_1.getTargetLibraryDirectory)(options, tree);
|
|
17
|
+
if (options.angularCli) {
|
|
18
|
+
(0, js_1.addTsConfigPath)(tree, '@spartan-ng/' + options.publicName, [
|
|
19
|
+
`.${path.sep}${(0, devkit_1.joinPathFragments)(targetLibDir, 'src', 'index.ts')}`,
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
tasks.push(yield (0, initialize_angular_library_1.initializeAngularLibrary)(tree, options));
|
|
24
|
+
}
|
|
25
|
+
(0, devkit_1.generateFiles)(tree, path.join(__dirname, '..', 'ui', 'libs', options.internalName, 'files'), path.join(targetLibDir, 'src'), options);
|
|
26
|
+
const angularVersion = (0, version_utils_1.getInstalledPackageVersion)(tree, '@angular/core', versions_1.FALLBACK_ANGULAR_VERSION, true);
|
|
27
|
+
const existingCdkVersion = (0, version_utils_1.getInstalledPackageVersion)(tree, '@angular/cdk', versions_1.FALLBACK_ANGULAR_VERSION, true);
|
|
28
|
+
const dependencies = (0, build_dependency_array_1.buildDependencyArray)(options, angularVersion, existingCdkVersion);
|
|
29
|
+
const devDependencies = (0, build_dependency_array_1.buildDevDependencyArray)();
|
|
30
|
+
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, dependencies, devDependencies));
|
|
31
|
+
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
exports.hlmBaseGenerator = hlmBaseGenerator;
|
|
35
|
+
exports.default = hlmBaseGenerator;
|
|
36
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/base/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAOoB;AACpB,+BAAyC;AACzC,6BAA6B;AAC7B,6DAAuE;AACvE,yEAA6F;AAC7F,qFAA+E;AAC/E,iFAA4E;AAE5E,yCAAsD;AAEtD,SAAsB,gBAAgB,CAAC,IAAU,EAAE,OAA+B;;QACjF,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,MAAM,YAAY,GAAG,IAAA,wDAAyB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAE9D,IAAI,OAAO,CAAC,UAAU,EAAE;YACvB,IAAA,oBAAe,EAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,EAAE;gBAC1D,IAAI,IAAI,CAAC,GAAG,GAAG,IAAA,0BAAiB,EAAC,YAAY,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE;aACnE,CAAC,CAAC;SACH;aAAM;YACN,KAAK,CAAC,IAAI,CAAC,MAAM,IAAA,qDAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;SAC1D;QACD,IAAA,sBAAa,EACZ,IAAI,EACJ,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,EACvE,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,EAC9B,OAAO,CACP,CAAC;QAEF,MAAM,cAAc,GAAG,IAAA,0CAA0B,EAAC,IAAI,EAAE,eAAe,EAAE,mCAAwB,EAAE,IAAI,CAAC,CAAC;QACzG,MAAM,kBAAkB,GAAG,IAAA,0CAA0B,EAAC,IAAI,EAAE,cAAc,EAAE,mCAAwB,EAAE,IAAI,CAAC,CAAC;QAC5G,MAAM,YAAY,GAAG,IAAA,6CAAoB,EAAC,OAAO,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC;QACvF,MAAM,eAAe,GAAG,IAAA,gDAAuB,GAAE,CAAC;QAElD,KAAK,CAAC,IAAI,CAAC,IAAA,qCAA4B,EAAC,IAAI,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC;QAC9E,OAAO,IAAA,yBAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACnC,CAAC;CAAA;AAzBD,4CAyBC;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HlmBaseGeneratorSchema } from '../schema';
|
|
2
|
+
export declare function buildDependencyArray(options: HlmBaseGeneratorSchema, angularVersion: string, existingCdkVersion: string): Record<string, string>;
|
|
3
|
+
export declare function buildDevDependencyArray(): {
|
|
4
|
+
'tailwind-merge': string;
|
|
5
|
+
tailwindcss: string;
|
|
6
|
+
'tailwindcss-animate': string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildDevDependencyArray = exports.buildDependencyArray = void 0;
|
|
4
|
+
const versions_1 = require("../versions");
|
|
5
|
+
const BRAIN_DEPENDENCY_MAP = {
|
|
6
|
+
accordion: versions_1.SPARTAN_ACCORDION_BRAIN_VERSION,
|
|
7
|
+
alertdialog: versions_1.SPARTAN_ALERT_DIALOG_BRAIN_VERSION,
|
|
8
|
+
avatar: versions_1.SPARTAN_AVATAR_BRAIN_VERSION,
|
|
9
|
+
command: versions_1.SPARTAN_COMMAND_BRAIN_VERSION,
|
|
10
|
+
dialog: versions_1.SPARTAN_DIALOG_BRAIN_VERSION,
|
|
11
|
+
hovercard: versions_1.SPARTAN_HOVERCARD_BRAIN_VERSION,
|
|
12
|
+
menu: versions_1.SPARTAN_MENU_BRAIN_VERSION,
|
|
13
|
+
popover: versions_1.SPARTAN_POPOVER_BRAIN_VERSION,
|
|
14
|
+
progress: versions_1.SPARTAN_PROGRESS_BRAIN_VERSION,
|
|
15
|
+
radiogroup: versions_1.SPARTAN_RADIO_GROUP_BRAIN_VERSION,
|
|
16
|
+
separator: versions_1.SPARTAN_SEPARATOR_BRAIN_VERSION,
|
|
17
|
+
sheet: versions_1.SPARTAN_SHEET_BRAIN_VERSION,
|
|
18
|
+
switch: versions_1.SPARTAN_SWITCH_VERSION,
|
|
19
|
+
tabs: versions_1.SPARTAN_TABS_VERSION,
|
|
20
|
+
table: versions_1.SPARTAN_TABLE_VERSION,
|
|
21
|
+
toggle: versions_1.SPARTAN_TOGGLE_VERSION,
|
|
22
|
+
};
|
|
23
|
+
const DEPENDENT_ON_DIALOG = ['alertdialog', 'sheet', 'popover'];
|
|
24
|
+
function buildDependencyArray(options, angularVersion, existingCdkVersion) {
|
|
25
|
+
let dependencies = {
|
|
26
|
+
'@spartan-ng/ui-core': versions_1.SPARTAN_CORE_VERSION,
|
|
27
|
+
'@angular/cdk': existingCdkVersion !== null && existingCdkVersion !== void 0 ? existingCdkVersion : angularVersion,
|
|
28
|
+
};
|
|
29
|
+
if (options.peerDependencies) {
|
|
30
|
+
dependencies = Object.assign(Object.assign({}, dependencies), options.peerDependencies);
|
|
31
|
+
}
|
|
32
|
+
const brainDependencyVersion = BRAIN_DEPENDENCY_MAP[options.primitiveName];
|
|
33
|
+
if (brainDependencyVersion) {
|
|
34
|
+
dependencies = Object.assign(Object.assign({}, dependencies), { ['@spartan-ng/ui-' + options.primitiveName + '-brain']: brainDependencyVersion });
|
|
35
|
+
}
|
|
36
|
+
if (brainDependencyVersion && DEPENDENT_ON_DIALOG.includes(options.primitiveName)) {
|
|
37
|
+
dependencies = Object.assign(Object.assign({}, dependencies), { ['@spartan-ng/ui-dialog-brain']: brainDependencyVersion });
|
|
38
|
+
}
|
|
39
|
+
if (options.primitiveName === 'icon') {
|
|
40
|
+
dependencies = Object.assign(Object.assign({}, dependencies), { '@ng-icons/core': versions_1.NG_ICONS_VERSION });
|
|
41
|
+
}
|
|
42
|
+
return dependencies;
|
|
43
|
+
}
|
|
44
|
+
exports.buildDependencyArray = buildDependencyArray;
|
|
45
|
+
function buildDevDependencyArray() {
|
|
46
|
+
return {
|
|
47
|
+
'tailwind-merge': versions_1.TAILWIND_MERGE_VERSION,
|
|
48
|
+
tailwindcss: versions_1.TAILWINDCSS_VERSION,
|
|
49
|
+
'tailwindcss-animate': versions_1.TAILWIND_ANIMATE_VERSION,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.buildDevDependencyArray = buildDevDependencyArray;
|
|
53
|
+
//# sourceMappingURL=build-dependency-array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;;AACA,0CAsBqB;AAErB,MAAM,oBAAoB,GAAG;IAC5B,SAAS,EAAE,0CAA+B;IAC1C,WAAW,EAAE,6CAAkC;IAC/C,MAAM,EAAE,uCAA4B;IACpC,OAAO,EAAE,wCAA6B;IACtC,MAAM,EAAE,uCAA4B;IACpC,SAAS,EAAE,0CAA+B;IAC1C,IAAI,EAAE,qCAA0B;IAChC,OAAO,EAAE,wCAA6B;IACtC,QAAQ,EAAE,yCAA8B;IACxC,UAAU,EAAE,4CAAiC;IAC7C,SAAS,EAAE,0CAA+B;IAC1C,KAAK,EAAE,sCAA2B;IAClC,MAAM,EAAE,iCAAsB;IAC9B,IAAI,EAAE,+BAAoB;IAC1B,KAAK,EAAE,gCAAqB;IAC5B,MAAM,EAAE,iCAAsB;CAC9B,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,aAAa,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAEhE,SAAgB,oBAAoB,CACnC,OAA+B,EAC/B,cAAsB,EACtB,kBAA0B;IAE1B,IAAI,YAAY,GAA2B;QAC1C,qBAAqB,EAAE,+BAAoB;QAC3C,cAAc,EAAE,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,cAAc;KACpD,CAAC;IAEF,IAAI,OAAO,CAAC,gBAAgB,EAAE;QAC7B,YAAY,mCAAQ,YAAY,GAAK,OAAO,CAAC,gBAAgB,CAAE,CAAC;KAChE;IACD,MAAM,sBAAsB,GAAG,oBAAoB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC3E,IAAI,sBAAsB,EAAE;QAC3B,YAAY,mCAAQ,YAAY,KAAE,CAAC,iBAAiB,GAAG,OAAO,CAAC,aAAa,GAAG,QAAQ,CAAC,EAAE,sBAAsB,GAAE,CAAC;KACnH;IACD,IAAI,sBAAsB,IAAI,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QAClF,YAAY,mCAAQ,YAAY,KAAE,CAAC,6BAA6B,CAAC,EAAE,sBAAsB,GAAE,CAAC;KAC5F;IACD,IAAI,OAAO,CAAC,aAAa,KAAK,MAAM,EAAE;QACrC,YAAY,mCAAQ,YAAY,KAAE,gBAAgB,EAAE,2BAAgB,GAAE,CAAC;KACvE;IACD,OAAO,YAAY,CAAC;AACrB,CAAC;AAxBD,oDAwBC;AAED,SAAgB,uBAAuB;IACtC,OAAO;QACN,gBAAgB,EAAE,iCAAsB;QACxC,WAAW,EAAE,8BAAmB;QAChC,qBAAqB,EAAE,mCAAwB;KAC/C,CAAC;AACH,CAAC;AAND,0DAMC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTargetLibraryDirectory = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
function getTargetLibraryDirectory(options, tree) {
|
|
7
|
+
const { layoutDirectory, projectDirectory } = (0, devkit_1.extractLayoutDirectory)(options.directory);
|
|
8
|
+
const libsDir = options.rootProject ? '.' : layoutDirectory !== null && layoutDirectory !== void 0 ? layoutDirectory : (0, devkit_1.getWorkspaceLayout)(tree).libsDir;
|
|
9
|
+
return path.join(libsDir, projectDirectory, options.publicName);
|
|
10
|
+
}
|
|
11
|
+
exports.getTargetLibraryDirectory = getTargetLibraryDirectory;
|
|
12
|
+
//# sourceMappingURL=get-target-library-directory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-target-library-directory.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/get-target-library-directory.ts"],"names":[],"mappings":";;;AAAA,uCAA8E;AAC9E,6BAA6B;AAG7B,SAAgB,yBAAyB,CAAC,OAA+B,EAAE,IAAU;IACpF,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,GAAG,IAAA,+BAAsB,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACxF,MAAM,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC;IAChG,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;AACjE,CAAC;AAJD,8DAIC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initializeAngularLibrary = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
function initializeAngularLibrary(tree, options) {
|
|
6
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7
|
+
return yield (yield Promise.resolve().then(() => require(
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
'@nx/angular/generators'))).libraryGenerator(tree, {
|
|
11
|
+
name: options.publicName,
|
|
12
|
+
skipFormat: true,
|
|
13
|
+
simpleName: true,
|
|
14
|
+
buildable: true,
|
|
15
|
+
importPath: '@spartan-ng/' + options.publicName,
|
|
16
|
+
prefix: 'hlm',
|
|
17
|
+
skipModule: true,
|
|
18
|
+
standalone: false,
|
|
19
|
+
directory: options.directory,
|
|
20
|
+
tags: options.tags,
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.initializeAngularLibrary = initializeAngularLibrary;
|
|
25
|
+
//# sourceMappingURL=initialize-angular-library.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initialize-angular-library.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/initialize-angular-library.ts"],"names":[],"mappings":";;;;AAGA,SAAsB,wBAAwB,CAAC,IAAU,EAAE,OAA+B;;QACzF,OAAO,MAAM,CACZ;QACC,6DAA6D;QAC7D,aAAa;QACb,wBAAwB,EACxB,CACD,CAAC,gBAAgB,CAAC,IAAI,EAAE;YACxB,IAAI,EAAE,OAAO,CAAC,UAAU;YACxB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,IAAI;YAChB,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU;YAC/C,MAAM,EAAE,KAAK;YACb,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,KAAK;YACjB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;SAClB,CAAC,CAAC;IACJ,CAAC;CAAA;AAnBD,4DAmBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface HlmBaseGeneratorSchema {
|
|
2
|
+
primitiveName: string;
|
|
3
|
+
internalName: string;
|
|
4
|
+
publicName: string;
|
|
5
|
+
directory?: string;
|
|
6
|
+
rootProject?: boolean;
|
|
7
|
+
tags?: string;
|
|
8
|
+
peerDependencies?: Record<string, string>;
|
|
9
|
+
skipBrainDependencies?: boolean;
|
|
10
|
+
angularCli?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "HlmBaseGeneratorSchema",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"directory": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "A directory where the lib is placed.",
|
|
10
|
+
"x-priority": "important"
|
|
11
|
+
},
|
|
12
|
+
"tags": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Add tags to the library (used for linting)."
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const FALLBACK_ANGULAR_VERSION = "^17.0.0";
|
|
2
|
+
export declare const NG_ICONS_VERSION = "^25.1.0";
|
|
3
|
+
export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
4
|
+
export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
5
|
+
export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
6
|
+
export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
7
|
+
export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
8
|
+
export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.314";
|
|
9
|
+
export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
10
|
+
export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
11
|
+
export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
12
|
+
export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
13
|
+
export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
14
|
+
export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
15
|
+
export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
16
|
+
export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.314";
|
|
17
|
+
export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.314";
|
|
18
|
+
export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.314";
|
|
19
|
+
export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.314";
|
|
20
|
+
export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.314";
|
|
21
|
+
export declare const TAILWIND_MERGE_VERSION = "^1.14.0";
|
|
22
|
+
export declare const TAILWINDCSS_VERSION = "^3.0.2";
|
|
23
|
+
export declare const TAILWIND_ANIMATE_VERSION = "^1.0.6";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TAILWIND_ANIMATE_VERSION = exports.TAILWINDCSS_VERSION = exports.TAILWIND_MERGE_VERSION = exports.SPARTAN_TOGGLE_VERSION = exports.SPARTAN_TABLE_VERSION = exports.SPARTAN_TABS_VERSION = exports.SPARTAN_SWITCH_VERSION = exports.SPARTAN_SHEET_BRAIN_VERSION = exports.SPARTAN_SEPARATOR_BRAIN_VERSION = exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = exports.SPARTAN_PROGRESS_BRAIN_VERSION = exports.SPARTAN_POPOVER_BRAIN_VERSION = exports.SPARTAN_MENU_BRAIN_VERSION = exports.SPARTAN_HOVERCARD_BRAIN_VERSION = exports.SPARTAN_DIALOG_BRAIN_VERSION = exports.SPARTAN_CORE_VERSION = exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = exports.SPARTAN_COMMAND_BRAIN_VERSION = exports.SPARTAN_AVATAR_BRAIN_VERSION = exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = exports.SPARTAN_ACCORDION_BRAIN_VERSION = exports.NG_ICONS_VERSION = exports.FALLBACK_ANGULAR_VERSION = void 0;
|
|
4
|
+
// angular dependency
|
|
5
|
+
exports.FALLBACK_ANGULAR_VERSION = '^17.0.0';
|
|
6
|
+
// ng-icon dependency
|
|
7
|
+
exports.NG_ICONS_VERSION = '^25.1.0';
|
|
8
|
+
// spartan dependencies
|
|
9
|
+
exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
10
|
+
exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
11
|
+
exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
12
|
+
exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
13
|
+
exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
14
|
+
exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.314';
|
|
15
|
+
exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
16
|
+
exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
17
|
+
exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
18
|
+
exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
19
|
+
exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
20
|
+
exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
21
|
+
exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
22
|
+
exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.314';
|
|
23
|
+
exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.314';
|
|
24
|
+
exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.314';
|
|
25
|
+
exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.314';
|
|
26
|
+
exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.314';
|
|
27
|
+
// dev dependencies
|
|
28
|
+
exports.TAILWIND_MERGE_VERSION = '^1.14.0';
|
|
29
|
+
exports.TAILWINDCSS_VERSION = '^3.0.2';
|
|
30
|
+
exports.TAILWIND_ANIMATE_VERSION = '^1.0.6';
|
|
31
|
+
//# sourceMappingURL=versions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/base/versions.ts"],"names":[],"mappings":";;;AAAA,qBAAqB;AACR,QAAA,wBAAwB,GAAG,SAAS,CAAC;AAClD,qBAAqB;AACR,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAC1C,uBAAuB;AACV,QAAA,+BAA+B,GAAG,iBAAiB,CAAC;AACpD,QAAA,kCAAkC,GAAG,iBAAiB,CAAC;AACvD,QAAA,4BAA4B,GAAG,iBAAiB,CAAC;AACjD,QAAA,6BAA6B,GAAG,iBAAiB,CAAC;AAClD,QAAA,iCAAiC,GAAG,iBAAiB,CAAC;AACtD,QAAA,oBAAoB,GAAG,iBAAiB,CAAC;AACzC,QAAA,4BAA4B,GAAG,iBAAiB,CAAC;AACjD,QAAA,+BAA+B,GAAG,iBAAiB,CAAC;AACpD,QAAA,0BAA0B,GAAG,iBAAiB,CAAC;AAC/C,QAAA,6BAA6B,GAAG,iBAAiB,CAAC;AAClD,QAAA,8BAA8B,GAAG,iBAAiB,CAAC;AACnD,QAAA,iCAAiC,GAAG,iBAAiB,CAAC;AACtD,QAAA,+BAA+B,GAAG,iBAAiB,CAAC;AACpD,QAAA,2BAA2B,GAAG,iBAAiB,CAAC;AAChD,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,oBAAoB,GAAG,iBAAiB,CAAC;AACzC,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AACxD,mBAAmB;AACN,QAAA,sBAAsB,GAAG,SAAS,CAAC;AACnC,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAC/B,QAAA,wBAAwB,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
const generator_1 = require("./generator");
|
|
5
|
+
exports.default = (0, devkit_1.convertNxGenerator)(generator_1.default);
|
|
6
|
+
//# sourceMappingURL=compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/theme/compat.ts"],"names":[],"mappings":";;AAAA,uCAAgD;AAChD,2CAAyD;AAEzD,kBAAe,IAAA,2BAAkB,EAAC,mBAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const enquirer_1 = require("enquirer");
|
|
5
|
+
const get_project_names_1 = require("../../utils/get-project-names");
|
|
6
|
+
const add_theme_to_application_styles_1 = require("./libs/add-theme-to-application-styles");
|
|
7
|
+
const supported_theme_generator_map_1 = require("./libs/supported-theme-generator-map");
|
|
8
|
+
function addThemeToApplicationGenerator(tree) {
|
|
9
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const { projects, projectNames } = (0, get_project_names_1.getProjectsAndNames)(tree);
|
|
11
|
+
const response = yield (0, enquirer_1.prompt)({
|
|
12
|
+
type: 'select',
|
|
13
|
+
required: true,
|
|
14
|
+
name: 'app',
|
|
15
|
+
message: 'Choose which application you want to add the theme to:',
|
|
16
|
+
choices: projectNames,
|
|
17
|
+
});
|
|
18
|
+
const project = projects.get(response.app);
|
|
19
|
+
if (!project)
|
|
20
|
+
return;
|
|
21
|
+
const themeOptions = yield (0, enquirer_1.prompt)([
|
|
22
|
+
{
|
|
23
|
+
type: 'select',
|
|
24
|
+
required: true,
|
|
25
|
+
name: 'theme',
|
|
26
|
+
message: 'Choose which theme to apply. You can always re-run this generator and add a custom prefix to add other themes.',
|
|
27
|
+
choices: supported_theme_generator_map_1.SupportedThemes,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'select',
|
|
31
|
+
required: true,
|
|
32
|
+
name: 'radius',
|
|
33
|
+
initial: 2,
|
|
34
|
+
message: 'Which corner radius do you want to use with your theme:',
|
|
35
|
+
choices: [...supported_theme_generator_map_1.SupportedRadii],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: 'input',
|
|
39
|
+
name: 'stylesEntryPoint',
|
|
40
|
+
message: "Path to the styles entry point relative to the workspace root. If not provided the generator will do its best to find it and it will error if it can't.",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: 'input',
|
|
44
|
+
name: 'prefix',
|
|
45
|
+
message: "Prefix class name applied to your theme's style definitions: e.g., theme-rose, theme-zinc. Leave empty for global theme.",
|
|
46
|
+
},
|
|
47
|
+
]);
|
|
48
|
+
(0, add_theme_to_application_styles_1.addThemeToApplicationStyles)(tree, {
|
|
49
|
+
project: project.name,
|
|
50
|
+
radius: parseFloat(themeOptions.radius),
|
|
51
|
+
theme: themeOptions.theme,
|
|
52
|
+
addCdkStyles: themeOptions.addCdkStyles,
|
|
53
|
+
stylesEntryPoint: themeOptions.stylesEntryPoint,
|
|
54
|
+
prefix: themeOptions.prefix,
|
|
55
|
+
}, project);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
exports.default = addThemeToApplicationGenerator;
|
|
59
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/theme/generator.ts"],"names":[],"mappings":";;;AACA,uCAAkC;AAClC,qEAAoE;AACpE,4FAAqF;AACrF,wFAAuG;AAEvG,SAA8B,8BAA8B,CAAC,IAAU;;QACtE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAA,uCAAmB,EAAC,IAAI,CAAC,CAAC;QAE7D,MAAM,QAAQ,GAAoB,MAAM,IAAA,iBAAM,EAAC;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,wDAAwD;YACjE,OAAO,EAAE,YAAY;SACrB,CAAC,CAAC;QACH,MAAM,OAAO,GAAqC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAE7E,IAAI,CAAC,OAAO;YAAE,OAAO;QAErB,MAAM,YAAY,GAMd,MAAM,IAAA,iBAAM,EAAC;YAChB;gBACC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,OAAO;gBACb,OAAO,EACN,gHAAgH;gBACjH,OAAO,EAAE,+CAAe;aACxB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,yDAAyD;gBAClE,OAAO,EAAE,CAAC,GAAG,8CAAc,CAAC;aAC5B;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EACN,yJAAyJ;aAC1J;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EACN,0HAA0H;aAC3H;SACD,CAAC,CAAC;QAEH,IAAA,6DAA2B,EAC1B,IAAI,EACJ;YACC,OAAO,EAAE,OAAO,CAAC,IAAI;YACrB,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC;YACvC,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,YAAY,EAAE,YAAY,CAAC,YAAY;YACvC,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;YAC/C,MAAM,EAAE,YAAY,CAAC,MAAM;SAC3B,EACD,OAAO,CACP,CAAC;IACH,CAAC;CAAA;AA/DD,iDA+DC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProjectConfiguration, Tree } from '@nx/devkit';
|
|
2
|
+
import { SupportedTheme } from './supported-theme-generator-map';
|
|
3
|
+
export interface AddThemeToApplicationStylesOptions {
|
|
4
|
+
project: string;
|
|
5
|
+
theme: SupportedTheme;
|
|
6
|
+
radius: number;
|
|
7
|
+
addCdkStyles: boolean;
|
|
8
|
+
stylesEntryPoint?: string;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function addThemeToApplicationStyles(tree: Tree, options: AddThemeToApplicationStylesOptions, project: ProjectConfiguration): void;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// All credit goes to the incredible folks at Nx who use this code to update the app styles when adding tailwind
|
|
3
|
+
// Check out the code here: https://github.com/nrwl/nx/blob/master/packages/angular/src/generators/setup-tailwind/lib/update-application-styles.ts
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.addThemeToApplicationStyles = void 0;
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
const supported_theme_generator_map_1 = require("./supported-theme-generator-map");
|
|
8
|
+
function addThemeToApplicationStyles(tree, options, project) {
|
|
9
|
+
const prefix = options.prefix ? ` .${options.prefix}` : '';
|
|
10
|
+
let stylesEntryPoint = options.stylesEntryPoint;
|
|
11
|
+
if (stylesEntryPoint && !tree.exists(stylesEntryPoint)) {
|
|
12
|
+
throw new Error(`The provided styles entry point "${stylesEntryPoint}" could not be found.`);
|
|
13
|
+
}
|
|
14
|
+
if (!stylesEntryPoint) {
|
|
15
|
+
stylesEntryPoint = findStylesEntryPoint(tree, project);
|
|
16
|
+
if (!stylesEntryPoint) {
|
|
17
|
+
throw new Error((0, devkit_1.stripIndents) `Could not find a styles entry point for project "${options.project}".
|
|
18
|
+
Please specify a styles entry point using the "stylesEntryPoint" option.`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const stylesEntryPointContent = tree.read(stylesEntryPoint, 'utf-8');
|
|
22
|
+
const CDK_IMPORT = `@import '@angular/cdk/overlay-prebuilt.css';`;
|
|
23
|
+
const ckdOverlayImport = stylesEntryPointContent.includes(CDK_IMPORT) ? '' : CDK_IMPORT;
|
|
24
|
+
const rootFontSans = stylesEntryPointContent.includes('--font-sans')
|
|
25
|
+
? ''
|
|
26
|
+
: `:root {
|
|
27
|
+
--font-sans: ''
|
|
28
|
+
}`;
|
|
29
|
+
tree.write(stylesEntryPoint, (0, devkit_1.stripIndents) `
|
|
30
|
+
${ckdOverlayImport}
|
|
31
|
+
|
|
32
|
+
${stylesEntryPointContent}
|
|
33
|
+
|
|
34
|
+
${rootFontSans}
|
|
35
|
+
${supported_theme_generator_map_1.SupportedThemeGeneratorMap[options.theme](options.radius, prefix)}`);
|
|
36
|
+
}
|
|
37
|
+
exports.addThemeToApplicationStyles = addThemeToApplicationStyles;
|
|
38
|
+
function findStylesEntryPoint(tree, project) {
|
|
39
|
+
var _a, _b, _c, _d, _e, _f;
|
|
40
|
+
// first check for common names
|
|
41
|
+
const possibleStylesEntryPoints = [
|
|
42
|
+
(0, devkit_1.joinPathFragments)((_a = project.sourceRoot) !== null && _a !== void 0 ? _a : project.root, 'styles.css'),
|
|
43
|
+
(0, devkit_1.joinPathFragments)((_b = project.sourceRoot) !== null && _b !== void 0 ? _b : project.root, 'styles.scss'),
|
|
44
|
+
(0, devkit_1.joinPathFragments)((_c = project.sourceRoot) !== null && _c !== void 0 ? _c : project.root, 'styles.sass'),
|
|
45
|
+
(0, devkit_1.joinPathFragments)((_d = project.sourceRoot) !== null && _d !== void 0 ? _d : project.root, 'styles.less'),
|
|
46
|
+
];
|
|
47
|
+
const stylesEntryPoint = possibleStylesEntryPoints.find((s) => tree.exists(s));
|
|
48
|
+
if (stylesEntryPoint) {
|
|
49
|
+
return stylesEntryPoint;
|
|
50
|
+
}
|
|
51
|
+
// then check for the specified styles in the build configuration if it exists
|
|
52
|
+
const styles = (_f = (_e = project.targets) === null || _e === void 0 ? void 0 : _e['build'].options) === null || _f === void 0 ? void 0 : _f.styles;
|
|
53
|
+
if (!styles) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
// find the first style that belongs to the project source
|
|
57
|
+
const style = styles.find((s) => typeof s === 'string'
|
|
58
|
+
? s.startsWith(project.root) && tree.exists(s)
|
|
59
|
+
: s.input.startsWith(project.root) && s.inject !== false && tree.exists(s.input));
|
|
60
|
+
if (!style) {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
return typeof style === 'string' ? style : style.input;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=add-theme-to-application-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-theme-to-application-styles.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/theme/libs/add-theme-to-application-styles.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const SupportedThemeGeneratorMap: {
|
|
2
|
+
zinc: (radius: number, prefix?: string) => string;
|
|
3
|
+
slate: (radius: number, prefix?: string) => string;
|
|
4
|
+
stone: (radius: number, prefix?: string) => string;
|
|
5
|
+
gray: (radius: number, prefix?: string) => string;
|
|
6
|
+
neutral: (radius: number, prefix?: string) => string;
|
|
7
|
+
red: (radius: number, prefix?: string) => string;
|
|
8
|
+
rose: (radius: number, prefix?: string) => string;
|
|
9
|
+
blue: (radius: number, prefix?: string) => string;
|
|
10
|
+
green: (radius: number, prefix?: string) => string;
|
|
11
|
+
orange: (radius: number, prefix?: string) => string;
|
|
12
|
+
yellow: (radius: number, prefix?: string) => string;
|
|
13
|
+
violet: (radius: number, prefix?: string) => string;
|
|
14
|
+
};
|
|
15
|
+
export declare const SupportedThemes: string[];
|
|
16
|
+
export type SupportedTheme = keyof typeof SupportedThemeGeneratorMap;
|
|
17
|
+
export declare const SupportedRadii: readonly ["0", "0.3", "0.5", "0.75", "1.0"];
|