@spartan-ng/cli 0.0.1-alpha.505 → 0.0.1-alpha.507
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators.json +20 -0
- package/package.json +1 -1
- package/src/generators/base/lib/build-dependency-array.d.ts +0 -1
- package/src/generators/base/lib/build-dependency-array.js +1 -1
- package/src/generators/base/lib/build-dependency-array.js.map +1 -1
- package/src/generators/healthcheck/generator.js +2 -0
- package/src/generators/healthcheck/generator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/hlm.d.ts +2 -0
- package/src/generators/healthcheck/healthchecks/hlm.js +32 -0
- package/src/generators/healthcheck/healthchecks/hlm.js.map +1 -0
- package/src/generators/healthcheck/healthchecks.d.ts +1 -1
- package/src/generators/healthcheck/healthchecks.js.map +1 -1
- package/src/generators/migrate-hlm/compat.d.ts +2 -0
- package/src/generators/migrate-hlm/compat.js +7 -0
- package/src/generators/migrate-hlm/compat.js.map +1 -0
- package/src/generators/migrate-hlm/generator.d.ts +4 -0
- package/src/generators/migrate-hlm/generator.js +102 -0
- package/src/generators/migrate-hlm/generator.js.map +1 -0
- package/src/generators/migrate-hlm/schema.d.ts +4 -0
- package/src/generators/migrate-hlm/schema.json +14 -0
- package/src/generators/theme/__snapshots__/generator.spec.ts.snap +40 -20
- package/src/generators/theme/libs/add-theme-to-application-styles.js +7 -7
- package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.ts.template +2 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.ts.template +2 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.ts.template +1 -1
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.ts.template +1 -1
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.ts.template +1 -1
- package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-ellipsis.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-link.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-list.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-page.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb.ts.template +1 -1
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.ts.template +1 -1
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.ts.template +12 -10
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-range.ts.template +12 -10
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.ts.template +12 -10
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-action.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-slide-display.ts.template +1 -1
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.ts.template +1 -1
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.ts.template +2 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search-input.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker-multi.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.ts.template +1 -1
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-range-picker.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.ts.template +2 -1
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.ts.template +1 -1
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.ts.template +2 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.ts.template +1 -1
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio-indicator.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.ts.template +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.ts.template +1 -1
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.ts.template +2 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.ts.template +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.ts.template +1 -1
- package/src/generators/ui/libs/ui-scroll-area-helm/files/lib/hlm-scroll-area.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.ts.template +2 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.ts.template +1 -1
- package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.ts.template +2 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.ts.template +2 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.ts.template +1 -1
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.ts.template +1 -1
- package/src/generators/ui/libs/ui-sonner-helm/files/lib/hlm-toaster.ts.template +1 -1
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.ts.template +1 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.ts.template +1 -1
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.ts.template +1 -1
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.ts.template +1 -1
- package/src/generators/ui/libs/ui-utils-helm/files/index.ts.template +1 -0
- package/src/generators/ui/libs/ui-utils-helm/files/lib/hlm.ts.template +6 -0
- package/src/generators/ui/libs/ui-utils-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-utils-helm/generator.js +14 -0
- package/src/generators/ui/libs/ui-utils-helm/generator.js.map +1 -0
- package/src/generators/ui/primitive-deps.js +42 -41
- package/src/generators/ui/primitive-deps.js.map +1 -1
- package/src/generators/ui/primitives.d.ts +1 -1
- package/src/generators/ui/supported-ui-libraries.json +36 -44
package/generators.json
CHANGED
|
@@ -64,6 +64,16 @@
|
|
|
64
64
|
"factory": "./src/generators/migrate-progress/generator",
|
|
65
65
|
"schema": "./src/generators/migrate-progress/schema.json",
|
|
66
66
|
"description": "Migrate brn-progress to hlm-progress"
|
|
67
|
+
},
|
|
68
|
+
"migrate-date-picker": {
|
|
69
|
+
"factory": "./src/generators/migrate-date-picker/generator",
|
|
70
|
+
"schema": "./src/generators/migrate-date-picker/schema.json",
|
|
71
|
+
"description": "Migrate hlm-date-picker changed event to dateChange"
|
|
72
|
+
},
|
|
73
|
+
"migrate-hlm": {
|
|
74
|
+
"factory": "./src/generators/migrate-hlm/generator",
|
|
75
|
+
"schema": "./src/generators/migrate-hlm/schema.json",
|
|
76
|
+
"description": "Migrate hlm import from @spartan-ng/brain to @spartan-ng/helm/utils"
|
|
67
77
|
}
|
|
68
78
|
},
|
|
69
79
|
"schematics": {
|
|
@@ -131,6 +141,16 @@
|
|
|
131
141
|
"factory": "./src/generators/migrate-progress/compat",
|
|
132
142
|
"schema": "./src/generators/migrate-progress/schema.json",
|
|
133
143
|
"description": "Migrate brn-progress to hlm-progress"
|
|
144
|
+
},
|
|
145
|
+
"migrate-date-picker": {
|
|
146
|
+
"factory": "./src/generators/migrate-date-picker/compat",
|
|
147
|
+
"schema": "./src/generators/migrate-date-picker/schema.json",
|
|
148
|
+
"description": "Migrate hlm-date-picker changed event to dateChange"
|
|
149
|
+
},
|
|
150
|
+
"migrate-hlm": {
|
|
151
|
+
"factory": "./src/generators/migrate-hlm/compat",
|
|
152
|
+
"schema": "./src/generators/migrate-hlm/schema.json",
|
|
153
|
+
"description": "Migrate hlm import from @spartan-ng/brain to @spartan-ng/helm/utils"
|
|
134
154
|
}
|
|
135
155
|
}
|
|
136
156
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { HlmBaseGeneratorSchema } from '../schema';
|
|
2
2
|
export declare function buildDependencyArray(options: HlmBaseGeneratorSchema, angularVersion: string, existingCdkVersion: string): Record<string, string>;
|
|
3
3
|
export declare function buildDevDependencyArray(): {
|
|
4
|
-
'tailwind-merge': string;
|
|
5
4
|
tailwindcss: string;
|
|
6
5
|
'tailwindcss-animate': string;
|
|
7
6
|
};
|
|
@@ -7,6 +7,7 @@ function buildDependencyArray(options, angularVersion, existingCdkVersion) {
|
|
|
7
7
|
let dependencies = {
|
|
8
8
|
'@angular/cdk': existingCdkVersion ?? angularVersion,
|
|
9
9
|
'@spartan-ng/brain': versions_1.SPARTAN_BRAIN_VERSION,
|
|
10
|
+
'tailwind-merge': versions_1.TAILWIND_MERGE_VERSION,
|
|
10
11
|
};
|
|
11
12
|
if (options.peerDependencies) {
|
|
12
13
|
dependencies = { ...dependencies, ...options.peerDependencies };
|
|
@@ -18,7 +19,6 @@ function buildDependencyArray(options, angularVersion, existingCdkVersion) {
|
|
|
18
19
|
}
|
|
19
20
|
function buildDevDependencyArray() {
|
|
20
21
|
return {
|
|
21
|
-
'tailwind-merge': versions_1.TAILWIND_MERGE_VERSION,
|
|
22
22
|
tailwindcss: versions_1.TAILWINDCSS_VERSION,
|
|
23
23
|
'tailwindcss-animate': versions_1.TAILWIND_ANIMATE_VERSION,
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;AASA,
|
|
1
|
+
{"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;AASA,oDAmBC;AAED,0DAKC;AAlCD,0CAMqB;AAErB,SAAgB,oBAAoB,CACnC,OAA+B,EAC/B,cAAsB,EACtB,kBAA0B;IAE1B,IAAI,YAAY,GAA2B;QAC1C,cAAc,EAAE,kBAAkB,IAAI,cAAc;QACpD,mBAAmB,EAAE,gCAAqB;QAC1C,gBAAgB,EAAE,iCAAsB;KACxC,CAAC;IAEF,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9B,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IACjE,CAAC;IAED,IAAI,OAAO,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;QACtC,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,gBAAgB,EAAE,2BAAgB,EAAE,CAAC;IACxE,CAAC;IACD,OAAO,YAAY,CAAC;AACrB,CAAC;AAED,SAAgB,uBAAuB;IACtC,OAAO;QACN,WAAW,EAAE,8BAAmB;QAChC,qBAAqB,EAAE,mCAAwB;KAC/C,CAAC;AACH,CAAC"}
|
|
@@ -8,6 +8,7 @@ const brn_radio_1 = require("./healthchecks/brn-radio");
|
|
|
8
8
|
const brn_toggle_group_1 = require("./healthchecks/brn-toggle-group");
|
|
9
9
|
const core_imports_1 = require("./healthchecks/core-imports");
|
|
10
10
|
const helm_imports_1 = require("./healthchecks/helm-imports");
|
|
11
|
+
const hlm_1 = require("./healthchecks/hlm");
|
|
11
12
|
const hlm_date_picker_1 = require("./healthchecks/hlm-date-picker");
|
|
12
13
|
const hlm_icon_1 = require("./healthchecks/hlm-icon");
|
|
13
14
|
const hlm_progress_1 = require("./healthchecks/hlm-progress");
|
|
@@ -33,6 +34,7 @@ async function healthcheckGenerator(tree, options) {
|
|
|
33
34
|
naming_conventions_1.namingConventionHealthcheck,
|
|
34
35
|
hlm_date_picker_1.datePickerHealthcheck,
|
|
35
36
|
hlm_progress_1.progressHealthcheck,
|
|
37
|
+
hlm_1.hlmImportHealthcheck,
|
|
36
38
|
];
|
|
37
39
|
const failedReports = [];
|
|
38
40
|
for (const healthcheck of healthchecks) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;AAoBA,oDA2CC;AA/DD,uCAAuD;AACvD,iDAAyG;AACzG,gEAAuE;AACvE,wDAAiE;AACjE,sEAAyE;AACzE,8DAAqE;AACrE,8DAAqE;AACrE,4CAA0D;AAC1D,oEAAuE;AACvE,sDAA8D;AAC9D,8DAAkE;AAClE,oEAAuE;AACvE,0DAA8D;AAC9D,0EAAgF;AAChF,oDAA4D;AAE5D,2CAA4C;AAC5C,+CAA+C;AAC/C,2CAAgD;AAEzC,KAAK,UAAU,oBAAoB,CAAC,IAAU,EAAE,OAA8D;IACpH,eAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAkB;QACnC,4BAAkB;QAClB,uCAAuB;QACvB,qCAAsB;QACtB,8BAAmB;QACnB,uCAAqB;QACrB,iCAAqB;QACrB,8BAAiB;QACjB,yCAAsB;QACtB,qCAAsB;QACtB,gDAA2B;QAC3B,uCAAqB;QACrB,kCAAmB;QACnB,0BAAoB;KACpB,CAAC;IAEF,MAAM,aAAa,GAAwB,EAAE,CAAC;IAE9C,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACvD,IAAA,sBAAW,EAAC,MAAM,CAAC,CAAC;QAEpB,IAAI,MAAM,CAAC,MAAM,KAAK,gCAAiB,CAAC,OAAO,EAAE,CAAC;YACjD,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;IACF,CAAC;IAED,KAAK,MAAM,MAAM,IAAI,aAAa,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,OAAO,IAAI,IAAA,mCAAoB,EAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAChE,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,IAAI,CAAC,MAAM,IAAA,mBAAU,EAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;YAE7E,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;YACxE,CAAC;QACF,CAAC;IACF,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hlmImportHealthcheck = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const generator_1 = tslib_1.__importDefault(require("../../migrate-hlm/generator"));
|
|
7
|
+
const healthchecks_1 = require("../healthchecks");
|
|
8
|
+
exports.hlmImportHealthcheck = {
|
|
9
|
+
name: 'Helm imports',
|
|
10
|
+
async detect(tree, failure) {
|
|
11
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, '/', (file) => {
|
|
12
|
+
// if the file is a .ts or .json file, check for helm imports/packages
|
|
13
|
+
if (!file.endsWith('.ts')) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const contents = tree.read(file, 'utf-8');
|
|
17
|
+
if (!contents) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
// If any import from @spartan-ng/brain/core contains hlm
|
|
21
|
+
if (/import\s*{[^}]*\bhlm\b[^}]*}\s*from\s*['"]@spartan-ng\/brain\/core['"]/.test(contents)) {
|
|
22
|
+
failure(`The { hlm } import from '@spartan-ng/brain/core' is deprecated; import it from '@spartan-ng/helm/utils' instead.`, healthchecks_1.HealthcheckSeverity.Error, true);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
fix: async (tree, { angularCli }) => {
|
|
27
|
+
await (0, generator_1.default)(tree, { skipFormat: true, angularCli });
|
|
28
|
+
return true;
|
|
29
|
+
},
|
|
30
|
+
prompt: 'Would you like to migrate hlm import?',
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=hlm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hlm.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/hlm.ts"],"names":[],"mappings":";;;;AAAA,uCAAkD;AAClD,oFAA8D;AAC9D,kDAAmE;AAEtD,QAAA,oBAAoB,GAAgB;IAChD,IAAI,EAAE,cAAc;IACpB,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO;QACzB,IAAA,6BAAoB,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,sEAAsE;YACtE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC3B,OAAO;YACR,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,OAAO;YACR,CAAC;YAED,yDAAyD;YACzD,IAAI,wEAAwE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC7F,OAAO,CACN,kHAAkH,EAClH,kCAAmB,CAAC,KAAK,EACzB,IAAI,CACJ,CAAC;YACH,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QACnC,MAAM,IAAA,mBAAmB,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,EAAE,uCAAuC;CAC/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"healthchecks.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/healthchecks.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"healthchecks.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/healthchecks.ts"],"names":[],"mappings":";;;AA6CA,oDAEC;AAnBD,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,+DAAO,CAAA;IACP,+DAAO,CAAA;IACP,+DAAO,CAAA;AACR,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC9B,+DAAK,CAAA;IACL,mEAAO,CAAA;AACR,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAKD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,WAAwB;IAC5D,OAAO,KAAK,IAAI,WAAW,CAAC;AAC7B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 generator_1 = tslib_1.__importDefault(require("./generator"));
|
|
6
|
+
exports.default = (0, devkit_1.convertNxGenerator)(generator_1.default);
|
|
7
|
+
//# sourceMappingURL=compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-hlm/compat.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,oEAAiD;AAEjD,kBAAe,IAAA,2BAAkB,EAAC,mBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.migrateHlmGenerator = migrateHlmGenerator;
|
|
37
|
+
const devkit_1 = require("@nx/devkit");
|
|
38
|
+
const config_1 = require("../../utils/config");
|
|
39
|
+
const visit_files_1 = require("../../utils/visit-files");
|
|
40
|
+
const generator_1 = require("../ui/generator");
|
|
41
|
+
async function migrateHlmGenerator(tree, { skipFormat, angularCli }) {
|
|
42
|
+
await ensureHelmUtilsInstalled(tree, angularCli);
|
|
43
|
+
replaceHlmImport(tree);
|
|
44
|
+
if (!skipFormat) {
|
|
45
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async function ensureHelmUtilsInstalled(tree, angularCli) {
|
|
49
|
+
const tsconfigPath = tree.exists('tsconfig.base.json')
|
|
50
|
+
? 'tsconfig.base.json'
|
|
51
|
+
: tree.exists('tsconfig.json')
|
|
52
|
+
? 'tsconfig.json'
|
|
53
|
+
: null;
|
|
54
|
+
if (!tsconfigPath) {
|
|
55
|
+
throw new Error('Could not find tsconfig.base.json or tsconfig.json to verify @spartan-ng/helm/utils.');
|
|
56
|
+
}
|
|
57
|
+
const tsconfig = JSON.parse(tree.read(tsconfigPath, 'utf-8') || '{}');
|
|
58
|
+
// Check compilerOptions.paths for @spartan-ng/helm/utils
|
|
59
|
+
const paths = tsconfig.compilerOptions?.paths || {};
|
|
60
|
+
const hasHelmUtils = Object.keys(paths).some((pkg) => pkg === '@spartan-ng/helm/utils');
|
|
61
|
+
if (!hasHelmUtils) {
|
|
62
|
+
const supportedLibraries = (await Promise.resolve().then(() => __importStar(require('../ui/supported-ui-libraries.json'))).then((m) => m.default));
|
|
63
|
+
const config = await (0, config_1.getOrCreateConfig)(tree);
|
|
64
|
+
await (0, generator_1.createPrimitiveLibraries)({
|
|
65
|
+
primitives: ['utils'],
|
|
66
|
+
}, Object.keys(supportedLibraries), supportedLibraries, tree, { angularCli, installPeerDependencies: true }, config);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function replaceHlmImport(tree) {
|
|
70
|
+
(0, visit_files_1.visitFiles)(tree, '.', (path) => {
|
|
71
|
+
if (!path.endsWith('.ts'))
|
|
72
|
+
return;
|
|
73
|
+
let content = tree.read(path, 'utf-8');
|
|
74
|
+
if (!content)
|
|
75
|
+
return;
|
|
76
|
+
// Find imports from @spartan-ng/brain/core
|
|
77
|
+
const importRegex = /import\s*{\s*([^}]*)\s*}\s*from\s*['"]@spartan-ng\/brain\/core['"];?/g;
|
|
78
|
+
content = content.replace(importRegex, (match, imports) => {
|
|
79
|
+
// Split the import specifiers
|
|
80
|
+
const specifiers = imports
|
|
81
|
+
.split(',')
|
|
82
|
+
.map((s) => s.trim())
|
|
83
|
+
.filter(Boolean);
|
|
84
|
+
if (!specifiers.includes('hlm')) {
|
|
85
|
+
// nothing to change
|
|
86
|
+
return match;
|
|
87
|
+
}
|
|
88
|
+
// Remove hlm from the original import
|
|
89
|
+
const remaining = specifiers.filter((s) => s !== 'hlm');
|
|
90
|
+
let newImports = '';
|
|
91
|
+
if (remaining.length > 0) {
|
|
92
|
+
newImports = `import { ${remaining.join(', ')} } from '@spartan-ng/brain/core';\n`;
|
|
93
|
+
}
|
|
94
|
+
// Always add hlm import from new package
|
|
95
|
+
newImports += `import { hlm } from '@spartan-ng/helm/utils';`;
|
|
96
|
+
return newImports;
|
|
97
|
+
});
|
|
98
|
+
tree.write(path, content);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
exports.default = migrateHlmGenerator;
|
|
102
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-hlm/generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,kDAOC;AArBD,uCAA+C;AAC/C,+CAAuD;AACvD,yDAA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AAY,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,qCAAqC,CAAC;YACpF,CAAC;YAED,yCAAyC;YACzC,UAAU,IAAI,+CAA+C,CAAC;YAE9D,OAAO,UAAU,CAAC;QACnB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "MigrateHLm",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"skipFormat": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false,
|
|
10
|
+
"description": "Skip formatting files"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": []
|
|
14
|
+
}
|
|
@@ -11,10 +11,10 @@ exports[`Theme generator Tailwind v3 should add the gray theme styles to the glo
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
:root {
|
|
14
|
+
color-scheme: light;
|
|
15
|
+
|
|
14
16
|
--font-sans: ''
|
|
15
|
-
}
|
|
16
17
|
|
|
17
|
-
:root {
|
|
18
18
|
--background: 0deg 0% 100%;
|
|
19
19
|
--foreground: 224.06deg 72.27% 4.17%;
|
|
20
20
|
--card: 0deg 0% 100%;
|
|
@@ -37,6 +37,8 @@ exports[`Theme generator Tailwind v3 should add the gray theme styles to the glo
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
:root.dark {
|
|
40
|
+
color-scheme: dark;
|
|
41
|
+
|
|
40
42
|
--background: 224.06deg 72.27% 4.17%;
|
|
41
43
|
--foreground: 344.54deg 18.99% 98.19%;
|
|
42
44
|
--card: 220.99deg 41.69% 11.07%;
|
|
@@ -75,10 +77,10 @@ exports[`Theme generator Tailwind v3 should add the neutral theme styles to the
|
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
:root {
|
|
80
|
+
color-scheme: light;
|
|
81
|
+
|
|
78
82
|
--font-sans: ''
|
|
79
|
-
}
|
|
80
83
|
|
|
81
|
-
:root {
|
|
82
84
|
--background: 0deg 0% 100%;
|
|
83
85
|
--foreground: 0deg 0.02% 3.94%;
|
|
84
86
|
--card: 0deg 0% 100%;
|
|
@@ -101,6 +103,8 @@ exports[`Theme generator Tailwind v3 should add the neutral theme styles to the
|
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
:root.dark {
|
|
106
|
+
color-scheme: dark;
|
|
107
|
+
|
|
104
108
|
--background: 0deg 0.02% 3.94%;
|
|
105
109
|
--foreground: 0deg 0.5% 98.03%;
|
|
106
110
|
--card: 0deg 0.02% 9.06%;
|
|
@@ -139,10 +143,10 @@ exports[`Theme generator Tailwind v3 should add the slate theme styles to the gl
|
|
|
139
143
|
|
|
140
144
|
|
|
141
145
|
:root {
|
|
146
|
+
color-scheme: light;
|
|
147
|
+
|
|
142
148
|
--font-sans: ''
|
|
143
|
-
}
|
|
144
149
|
|
|
145
|
-
:root {
|
|
146
150
|
--background: 0deg 0% 100%;
|
|
147
151
|
--foreground: 228.82deg 85.15% 5%;
|
|
148
152
|
--card: 0deg 0% 100%;
|
|
@@ -165,6 +169,8 @@ exports[`Theme generator Tailwind v3 should add the slate theme styles to the gl
|
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
:root.dark {
|
|
172
|
+
color-scheme: dark;
|
|
173
|
+
|
|
168
174
|
--background: 228.82deg 85.15% 5%;
|
|
169
175
|
--foreground: 344.69deg 27.87% 98.13%;
|
|
170
176
|
--card: 222.33deg 49.39% 11.3%;
|
|
@@ -203,10 +209,10 @@ exports[`Theme generator Tailwind v3 should add the stone theme styles to the gl
|
|
|
203
209
|
|
|
204
210
|
|
|
205
211
|
:root {
|
|
212
|
+
color-scheme: light;
|
|
213
|
+
|
|
206
214
|
--font-sans: ''
|
|
207
|
-
}
|
|
208
215
|
|
|
209
|
-
:root {
|
|
210
216
|
--background: 0deg 0% 100%;
|
|
211
217
|
--foreground: 344.17deg 10.1% 4.29%;
|
|
212
218
|
--card: 0deg 0% 100%;
|
|
@@ -229,6 +235,8 @@ exports[`Theme generator Tailwind v3 should add the stone theme styles to the gl
|
|
|
229
235
|
}
|
|
230
236
|
|
|
231
237
|
:root.dark {
|
|
238
|
+
color-scheme: dark;
|
|
239
|
+
|
|
232
240
|
--background: 344.17deg 10.1% 4.29%;
|
|
233
241
|
--foreground: 344deg 8.87% 98.11%;
|
|
234
242
|
--card: 344.37deg 6.88% 10.34%;
|
|
@@ -266,10 +274,10 @@ exports[`Theme generator Tailwind v3 should add the zinc theme styles to the glo
|
|
|
266
274
|
|
|
267
275
|
|
|
268
276
|
:root {
|
|
277
|
+
color-scheme: light;
|
|
278
|
+
|
|
269
279
|
--font-sans: ''
|
|
270
|
-
}
|
|
271
280
|
|
|
272
|
-
:root {
|
|
273
281
|
--background: 0deg 0% 100%;
|
|
274
282
|
--foreground: 344.97deg 13.46% 3.85%;
|
|
275
283
|
--card: 0deg 0% 100%;
|
|
@@ -292,6 +300,8 @@ exports[`Theme generator Tailwind v3 should add the zinc theme styles to the glo
|
|
|
292
300
|
}
|
|
293
301
|
|
|
294
302
|
:root.dark {
|
|
303
|
+
color-scheme: dark;
|
|
304
|
+
|
|
295
305
|
--background: 344.97deg 13.46% 3.85%;
|
|
296
306
|
--foreground: 0deg 0.5% 98.03%;
|
|
297
307
|
--card: 344.35deg 7.21% 9.8%;
|
|
@@ -326,10 +336,10 @@ exports[`Theme generator Tailwind v4 should add the gray theme styles to the glo
|
|
|
326
336
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
327
337
|
|
|
328
338
|
:root {
|
|
339
|
+
color-scheme: light;
|
|
340
|
+
|
|
329
341
|
--font-sans: ''
|
|
330
|
-
}
|
|
331
342
|
|
|
332
|
-
:root {
|
|
333
343
|
--background: oklch(1 0 0);
|
|
334
344
|
--foreground: oklch(0.13 0.028 261.692);
|
|
335
345
|
--card: oklch(1 0 0);
|
|
@@ -352,6 +362,8 @@ exports[`Theme generator Tailwind v4 should add the gray theme styles to the glo
|
|
|
352
362
|
}
|
|
353
363
|
|
|
354
364
|
:root.dark {
|
|
365
|
+
color-scheme: dark;
|
|
366
|
+
|
|
355
367
|
--background: oklch(0.13 0.028 261.692);
|
|
356
368
|
--foreground: oklch(0.985 0.002 247.839);
|
|
357
369
|
--card: oklch(0.21 0.034 264.665);
|
|
@@ -386,10 +398,10 @@ exports[`Theme generator Tailwind v4 should add the neutral theme styles to the
|
|
|
386
398
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
387
399
|
|
|
388
400
|
:root {
|
|
401
|
+
color-scheme: light;
|
|
402
|
+
|
|
389
403
|
--font-sans: ''
|
|
390
|
-
}
|
|
391
404
|
|
|
392
|
-
:root {
|
|
393
405
|
--background: oklch(1 0 0);
|
|
394
406
|
--foreground: oklch(0.145 0 0);
|
|
395
407
|
--card: oklch(1 0 0);
|
|
@@ -412,6 +424,8 @@ exports[`Theme generator Tailwind v4 should add the neutral theme styles to the
|
|
|
412
424
|
}
|
|
413
425
|
|
|
414
426
|
:root.dark {
|
|
427
|
+
color-scheme: dark;
|
|
428
|
+
|
|
415
429
|
--background: oklch(0.145 0 0);
|
|
416
430
|
--foreground: oklch(0.985 0 0);
|
|
417
431
|
--card: oklch(0.205 0 0);
|
|
@@ -446,10 +460,10 @@ exports[`Theme generator Tailwind v4 should add the slate theme styles to the gl
|
|
|
446
460
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
447
461
|
|
|
448
462
|
:root {
|
|
463
|
+
color-scheme: light;
|
|
464
|
+
|
|
449
465
|
--font-sans: ''
|
|
450
|
-
}
|
|
451
466
|
|
|
452
|
-
:root {
|
|
453
467
|
--background: oklch(1 0 0);
|
|
454
468
|
--foreground: oklch(0.129 0.042 264.695);
|
|
455
469
|
--card: oklch(1 0 0);
|
|
@@ -472,6 +486,8 @@ exports[`Theme generator Tailwind v4 should add the slate theme styles to the gl
|
|
|
472
486
|
}
|
|
473
487
|
|
|
474
488
|
:root.dark {
|
|
489
|
+
color-scheme: dark;
|
|
490
|
+
|
|
475
491
|
--background: oklch(0.129 0.042 264.695);
|
|
476
492
|
--foreground: oklch(0.984 0.003 247.858);
|
|
477
493
|
--card: oklch(0.208 0.042 265.755);
|
|
@@ -506,10 +522,10 @@ exports[`Theme generator Tailwind v4 should add the stone theme styles to the gl
|
|
|
506
522
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
507
523
|
|
|
508
524
|
:root {
|
|
525
|
+
color-scheme: light;
|
|
526
|
+
|
|
509
527
|
--font-sans: ''
|
|
510
|
-
}
|
|
511
528
|
|
|
512
|
-
:root {
|
|
513
529
|
--background: oklch(1 0 0);
|
|
514
530
|
--foreground: oklch(0.147 0.004 49.25);
|
|
515
531
|
--card: oklch(1 0 0);
|
|
@@ -532,6 +548,8 @@ exports[`Theme generator Tailwind v4 should add the stone theme styles to the gl
|
|
|
532
548
|
}
|
|
533
549
|
|
|
534
550
|
:root.dark {
|
|
551
|
+
color-scheme: dark;
|
|
552
|
+
|
|
535
553
|
--background: oklch(0.147 0.004 49.25);
|
|
536
554
|
--foreground: oklch(0.985 0.001 106.423);
|
|
537
555
|
--card: oklch(0.216 0.006 56.043);
|
|
@@ -566,10 +584,10 @@ exports[`Theme generator Tailwind v4 should add the zinc theme styles to the glo
|
|
|
566
584
|
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
567
585
|
|
|
568
586
|
:root {
|
|
587
|
+
color-scheme: light;
|
|
588
|
+
|
|
569
589
|
--font-sans: ''
|
|
570
|
-
}
|
|
571
590
|
|
|
572
|
-
:root {
|
|
573
591
|
--background: oklch(1 0 0);
|
|
574
592
|
--foreground: oklch(0.141 0.005 285.823);
|
|
575
593
|
--card: oklch(1 0 0);
|
|
@@ -592,6 +610,8 @@ exports[`Theme generator Tailwind v4 should add the zinc theme styles to the glo
|
|
|
592
610
|
}
|
|
593
611
|
|
|
594
612
|
:root.dark {
|
|
613
|
+
color-scheme: dark;
|
|
614
|
+
|
|
595
615
|
--background: oklch(0.141 0.005 285.823);
|
|
596
616
|
--foreground: oklch(0.985 0 0);
|
|
597
617
|
--card: oklch(0.21 0.006 285.885);
|
|
@@ -31,11 +31,7 @@ function addThemeToApplicationStyles(tree, options, project) {
|
|
|
31
31
|
const stylesEntryPointContent = tree.read(stylesEntryPoint, 'utf-8');
|
|
32
32
|
const CDK_IMPORT = `@import '@angular/cdk/overlay-prebuilt.css';`;
|
|
33
33
|
const ckdOverlayImport = stylesEntryPointContent.includes(CDK_IMPORT) ? '' : CDK_IMPORT;
|
|
34
|
-
const
|
|
35
|
-
? ''
|
|
36
|
-
: `:root {
|
|
37
|
-
--font-sans: ''
|
|
38
|
-
}`;
|
|
34
|
+
const fontSans = stylesEntryPointContent.includes('--font-sans') ? '' : `--font-sans: ''`;
|
|
39
35
|
const colorScheme = tailwindVersion === 4 ? colors_1.themes[options.theme].cssVarsV4 : colors_1.themes[options.theme].cssVarsV3;
|
|
40
36
|
tree.write(stylesEntryPoint, (0, devkit_1.stripIndents) `
|
|
41
37
|
${ckdOverlayImport}
|
|
@@ -43,15 +39,19 @@ function addThemeToApplicationStyles(tree, options, project) {
|
|
|
43
39
|
${stylesEntryPointContent}
|
|
44
40
|
${tailwindImport}
|
|
45
41
|
|
|
46
|
-
${rootFontSans}
|
|
47
|
-
|
|
48
42
|
:root${prefix} {
|
|
43
|
+
color-scheme: light;
|
|
44
|
+
|
|
45
|
+
${fontSans}
|
|
46
|
+
|
|
49
47
|
${Object.entries(colorScheme.light)
|
|
50
48
|
.map(([key, value]) => `--${key}: ${value};`)
|
|
51
49
|
.join('\n')}
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
:root.dark${prefix} {
|
|
53
|
+
color-scheme: dark;
|
|
54
|
+
|
|
55
55
|
${Object.entries(colorScheme.dark)
|
|
56
56
|
.map(([key, value]) => `--${key}: ${value};`)
|
|
57
57
|
.join('\n')}
|
|
@@ -1 +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":";AAAA,gHAAgH;AAChH,kJAAkJ;;AAelJ,kEA4EC;;AAzFD,uCAA6G;AAE7G,uDAAiC;AACjC,qCAA6C;AAU7C,SAAgB,2BAA2B,CAC1C,IAAU,EACV,OAA2C,EAC3C,OAA6B;IAE7B,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAc,IAAI,EAAE,cAAc,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,GAAG,WAAW,CAAC,eAAe,EAAE,CAAC;IAE7E,IAAI,eAAe,GAAG,CAAC,CAAC;IAExB,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QACpC,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,cAAc,GAAG,eAAe,KAAK,CAAC,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3G,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3D,IAAI,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAEhD,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CAAC,oCAAoC,gBAAgB,uBAAuB,CAAC,CAAC;IAC9F,CAAC;IAED,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACvB,gBAAgB,GAAG,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CACd,IAAA,qBAAY,EAAA,oDAAoD,OAAO,CAAC,OAAO;iFACF,CAC7E,CAAC;QACH,CAAC;IACF,CAAC;IAED,MAAM,uBAAuB,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAErE,MAAM,UAAU,GAAG,8CAA8C,CAAC;IAClE,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IAExF,MAAM,
|
|
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":";AAAA,gHAAgH;AAChH,kJAAkJ;;AAelJ,kEA4EC;;AAzFD,uCAA6G;AAE7G,uDAAiC;AACjC,qCAA6C;AAU7C,SAAgB,2BAA2B,CAC1C,IAAU,EACV,OAA2C,EAC3C,OAA6B;IAE7B,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAc,IAAI,EAAE,cAAc,CAAC,CAAC;IAChE,MAAM,IAAI,GAAG,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,GAAG,WAAW,CAAC,eAAe,EAAE,CAAC;IAE7E,IAAI,eAAe,GAAG,CAAC,CAAC;IAExB,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;QACpC,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,cAAc,GAAG,eAAe,KAAK,CAAC,CAAC,CAAC,CAAC,sDAAsD,CAAC,CAAC,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,EAAE,MAAM,CAAC;IAE1G,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,0DAA0D;IAC1D,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/B,OAAO,CAAC,KAAK,QAAQ;QACpB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CACjF,CAAC;IAEF,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;AACxD,CAAC"}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionContent } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
4
|
-
import { hlm } from '@spartan-ng/brain/core';
|
|
5
4
|
import { provideHlmIconConfig } from '@spartan-ng/helm/icon';
|
|
5
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
6
6
|
import type { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
8
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionItem } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionTrigger } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordion } from '@spartan-ng/brain/accordion';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|
package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.ts.template
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input, signal } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
3
4
|
import type { ClassValue } from 'clsx';
|
|
4
5
|
|
|
5
6
|
@Component({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directive, computed, input } from '@angular/core';
|
|
2
2
|
import { BrnAlertDialogDescription } from '@spartan-ng/brain/alert-dialog';
|
|
3
|
-
import { hlm } from '@spartan-ng/
|
|
3
|
+
import { hlm } from '@spartan-ng/helm/utils';
|
|
4
4
|
import type { ClassValue } from 'clsx';
|
|
5
5
|
|
|
6
6
|
@Directive({
|