@spartan-ng/cli 0.0.1-alpha.336 → 0.0.1-alpha.338
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/package.json +4 -4
- package/src/generators/base/generator.js +8 -3
- package/src/generators/base/generator.js.map +1 -1
- package/src/generators/base/lib/build-dependency-array.js +1 -0
- package/src/generators/base/lib/build-dependency-array.js.map +1 -1
- package/src/generators/base/versions.d.ts +2 -1
- package/src/generators/base/versions.js +3 -2
- package/src/generators/base/versions.js.map +1 -1
- package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
- package/src/generators/ui/generator.js +9 -2
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.directive.ts.template +3 -8
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template +7 -11
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template +9 -9
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +3 -8
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template +4 -9
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-cancel-button.directive.ts.template +3 -8
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.component.ts.template +3 -8
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +3 -8
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.component.ts.template +3 -7
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.component.ts.template +3 -7
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.directive.ts.template +3 -7
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-title.directive.ts.template +3 -7
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog.component.ts.template +1 -2
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-aspect-ratio-helm/files/lib/helm-aspect-ratio.directive.ts.template +3 -8
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.spec.ts.template +10 -6
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +5 -14
- package/src/generators/ui/libs/ui-button-helm/files/.DS_Store.template +0 -0
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +11 -11
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.directive.ts.template +4 -16
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.directive.ts.template +4 -16
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-carousel-helm/files/index.ts.template +26 -0
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-content.component.ts.template +25 -0
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-item.component.ts.template +26 -0
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-next.component.ts.template +62 -0
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel-previous.component.ts.template +62 -0
- package/src/generators/ui/libs/ui-carousel-helm/files/lib/hlm-carousel.component.ts.template +93 -0
- package/src/generators/ui/libs/ui-carousel-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-carousel-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-carousel-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox-checkicon.component.ts.template +11 -20
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +50 -46
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog-close-button.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +8 -14
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-empty.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input-wrapper.component.ts.template +5 -14
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-input.directive.ts.template +7 -12
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item-icon.directive.ts.template +3 -10
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.directive.ts.template +7 -12
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.directive.ts.template +7 -13
- 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 +1 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-close.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-content.component.ts.template +24 -17
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-description.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-footer.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-header.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template +9 -13
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-title.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog.component.ts.template +1 -2
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog.service.ts.template +35 -0
- package/src/generators/ui/libs/ui-hover-card-helm/files/lib/hlm-hover-card-content.component.ts.template +3 -10
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.spec.ts.template +3 -3
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.component.ts.template +4 -4
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input-error.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +5 -10
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +4 -10
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-check.component.ts.template +12 -14
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-checkbox.directive.ts.template +8 -21
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-icon.directive.ts.template +3 -10
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.component.ts.template +12 -14
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-radio.directive.ts.template +8 -21
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +6 -14
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +5 -15
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +3 -11
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +4 -12
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-sub-menu.component.ts.template +7 -13
- package/src/generators/ui/libs/ui-pagination-helm/files/index.ts.template +33 -0
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-content.directive.ts.template +21 -0
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-ellipsis.componet.ts.template +23 -0
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-item.directive.ts.template +22 -0
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-link.directive.ts.template +56 -0
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-next.componet.ts.template +31 -0
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination-previous.componet.ts.template +31 -0
- package/src/generators/ui/libs/ui-pagination-helm/files/lib/hlm-pagination.directive.ts.template +25 -0
- package/src/generators/ui/libs/ui-pagination-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-pagination-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-pagination-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-close.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-popover-helm/files/lib/hlm-popover-content.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +5 -11
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +5 -11
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +3 -11
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template +5 -11
- package/src/generators/ui/libs/ui-select-helm/files/index.ts.template +38 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-content.directive.ts.template +34 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-group.directive.ts.template +22 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +38 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +54 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.component.ts.template +17 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.component.ts.template +17 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +44 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select.directive.ts.template +21 -0
- package/src/generators/ui/libs/ui-select-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-select-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-select-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-separator-helm/files/lib/hlm-separator.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +6 -14
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +3 -11
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +11 -17
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet.component.ts.template +1 -2
- package/src/generators/ui/libs/ui-skeleton-helm/files/lib/hlm-skeleton.component.ts.template +3 -11
- package/src/generators/ui/libs/ui-spinner-helm/files/lib/hlm-spinner.component.ts.template +5 -11
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +19 -14
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-caption.component.ts.template +10 -28
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.component.ts.template +11 -27
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-td.component.ts.template +8 -12
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-th.component.ts.template +22 -23
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-trow.component.ts.template +7 -24
- package/src/generators/ui/libs/ui-tabs-helm/files/index.ts.template +8 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-content.directive.ts.template +9 -21
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +5 -17
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +9 -21
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.component.ts.template +17 -0
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle-group.directive.ts.template +7 -13
- package/src/generators/ui/libs/ui-toggle-helm/files/lib/hlm-toggle.directive.ts.template +5 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-blockquote.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-code.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h1.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h2.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h3.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-h4.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-large.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-lead.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-muted.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-p.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-small.directive.ts.template +3 -11
- package/src/generators/ui/libs/ui-typography-helm/files/lib/hlm-ul.directive.ts.template +3 -11
- package/src/generators/ui/supported-ui-libraries.json +115 -81
- package/src/utils/get-project-names.js.map +1 -1
- package/src/utils/version-utils.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spartan-ng/cli",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.338",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@nx/js": "^
|
|
7
|
-
"@nx/devkit": "^
|
|
8
|
-
"@nx/angular": "^
|
|
6
|
+
"@nx/js": "^18.0.7",
|
|
7
|
+
"@nx/devkit": "^18.0.7",
|
|
8
|
+
"@nx/angular": "^18.0.7",
|
|
9
9
|
"enquirer": "2.3.6",
|
|
10
10
|
"semver": "7.5.4"
|
|
11
11
|
},
|
|
@@ -4,6 +4,7 @@ exports.hlmBaseGenerator = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const js_1 = require("@nx/js");
|
|
7
|
+
const ts_config_1 = require("@nx/js/src/utils/typescript/ts-config");
|
|
7
8
|
const path = require("path");
|
|
8
9
|
const version_utils_1 = require("../../utils/version-utils");
|
|
9
10
|
const build_dependency_array_1 = require("./lib/build-dependency-array");
|
|
@@ -14,10 +15,14 @@ function hlmBaseGenerator(tree, options) {
|
|
|
14
15
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
15
16
|
const tasks = [];
|
|
16
17
|
const targetLibDir = (0, get_target_library_directory_1.getTargetLibraryDirectory)(options, tree);
|
|
18
|
+
const existingPathsByAlias = (0, ts_config_1.readTsConfigPaths)((0, ts_config_1.getRootTsConfigPathInTree)(tree));
|
|
19
|
+
const tsConfigAliasToUse = '@spartan-ng/' + options.publicName;
|
|
20
|
+
if (Object.keys(existingPathsByAlias).includes(tsConfigAliasToUse)) {
|
|
21
|
+
console.log(`Skipping ${tsConfigAliasToUse}. It's already installed!`);
|
|
22
|
+
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
23
|
+
}
|
|
17
24
|
if (options.angularCli) {
|
|
18
|
-
(0, js_1.addTsConfigPath)(tree,
|
|
19
|
-
`.${path.sep}${(0, devkit_1.joinPathFragments)(targetLibDir, 'src', 'index.ts')}`,
|
|
20
|
-
]);
|
|
25
|
+
(0, js_1.addTsConfigPath)(tree, tsConfigAliasToUse, [`.${path.sep}${(0, devkit_1.joinPathFragments)(targetLibDir, 'src', 'index.ts')}`]);
|
|
21
26
|
}
|
|
22
27
|
else {
|
|
23
28
|
tasks.push(yield (0, initialize_angular_library_1.initializeAngularLibrary)(tree, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/base/generator.ts"],"names":[],"mappings":";;;;AAAA,uCAOoB;AACpB,+BAAyC;AACzC,6BA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AAC,EAAE,CAAC,CAAC,CAAC;QAClH,CAAC;aAAM,CAAC;YACP,KAAK,CAAC,IAAI,CAAC,MAAM,IAAA,qDAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;QAC3D,CAAC;QAED,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;AAhCD,4CAgCC;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -14,6 +14,7 @@ const BRAIN_DEPENDENCY_MAP = {
|
|
|
14
14
|
popover: versions_1.SPARTAN_POPOVER_BRAIN_VERSION,
|
|
15
15
|
progress: versions_1.SPARTAN_PROGRESS_BRAIN_VERSION,
|
|
16
16
|
radiogroup: versions_1.SPARTAN_RADIO_GROUP_BRAIN_VERSION,
|
|
17
|
+
select: versions_1.SPARTAN_SELECT_BRAIN_VERSION,
|
|
17
18
|
separator: versions_1.SPARTAN_SEPARATOR_BRAIN_VERSION,
|
|
18
19
|
sheet: versions_1.SPARTAN_SHEET_BRAIN_VERSION,
|
|
19
20
|
switch: versions_1.SPARTAN_SWITCH_VERSION,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;;AACA,0CAwBqB;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,KAAK,EAAE,sCAA2B;IAClC,IAAI,EAAE,qCAA0B;IAChC,OAAO,EAAE,wCAA6B;IACtC,QAAQ,EAAE,yCAA8B;IACxC,UAAU,EAAE,4CAAiC;IAC7C,MAAM,EAAE,uCAA4B;IACpC,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,CAAC;QAC9B,YAAY,mCAAQ,YAAY,GAAK,OAAO,CAAC,gBAAgB,CAAE,CAAC;IACjE,CAAC;IACD,MAAM,sBAAsB,GAAG,oBAAoB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC3E,IAAI,sBAAsB,EAAE,CAAC;QAC5B,YAAY,mCAAQ,YAAY,KAAE,CAAC,iBAAiB,GAAG,OAAO,CAAC,aAAa,GAAG,QAAQ,CAAC,EAAE,sBAAsB,GAAE,CAAC;IACpH,CAAC;IACD,IAAI,sBAAsB,IAAI,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QACnF,YAAY,mCAAQ,YAAY,KAAE,CAAC,6BAA6B,CAAC,EAAE,sBAAsB,GAAE,CAAC;IAC7F,CAAC;IACD,IAAI,OAAO,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;QACtC,YAAY,mCAAQ,YAAY,KAAE,gBAAgB,EAAE,2BAAgB,GAAE,CAAC;IACxE,CAAC;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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FALLBACK_ANGULAR_VERSION = "^17.
|
|
1
|
+
export declare const FALLBACK_ANGULAR_VERSION = "^17.1.0";
|
|
2
2
|
export declare const NG_ICONS_VERSION = "^25.1.0";
|
|
3
3
|
export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
4
4
|
export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
@@ -13,6 +13,7 @@ export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
|
13
13
|
export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
14
14
|
export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
15
15
|
export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
16
|
+
export declare const SPARTAN_SELECT_BRAIN_VERSION = "0.0.1-alpha.337";
|
|
16
17
|
export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
17
18
|
export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.335";
|
|
18
19
|
export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.335";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
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_LABEL_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;
|
|
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_SELECT_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_LABEL_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
4
|
// angular dependency
|
|
5
|
-
exports.FALLBACK_ANGULAR_VERSION = '^17.
|
|
5
|
+
exports.FALLBACK_ANGULAR_VERSION = '^17.1.0';
|
|
6
6
|
// ng-icon dependency
|
|
7
7
|
exports.NG_ICONS_VERSION = '^25.1.0';
|
|
8
8
|
// spartan dependencies
|
|
@@ -19,6 +19,7 @@ exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.335';
|
|
|
19
19
|
exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.335';
|
|
20
20
|
exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.335';
|
|
21
21
|
exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.335';
|
|
22
|
+
exports.SPARTAN_SELECT_BRAIN_VERSION = '0.0.1-alpha.337';
|
|
22
23
|
exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.335';
|
|
23
24
|
exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.335';
|
|
24
25
|
exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.335';
|
|
@@ -1 +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,2BAA2B,GAAG,iBAAiB,CAAC;AAChD,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,QAAQ,CAAC;AAClC,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAC/B,QAAA,wBAAwB,GAAG,QAAQ,CAAC"}
|
|
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,2BAA2B,GAAG,iBAAiB,CAAC;AAChD,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,4BAA4B,GAAG,iBAAiB,CAAC;AACjD,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,QAAQ,CAAC;AAClC,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAC/B,QAAA,wBAAwB,GAAG,QAAQ,CAAC"}
|
|
@@ -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,uCAAyF;AACzF,mFAA6F;AAW7F,SAAgB,2BAA2B,CAC1C,IAAU,EACV,OAA2C,EAC3C,OAA6B;IAE7B,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;
|
|
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,uCAAyF;AACzF,mFAA6F;AAW7F,SAAgB,2BAA2B,CAC1C,IAAU,EACV,OAA2C,EAC3C,OAA6B;IAE7B,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,CAA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C,UAAU,mCAAI,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC;KACpE,CAAC;IAEF,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/E,IAAI,gBAAgB,EAAE,CAAC;QACtB,OAAO,gBAAgB,CAAC;IACzB,CAAC;IAED,8EAA8E;IAC9E,MAAM,MAAM,GAAuD,MAAA,MAAA,OAAO,CAAC,OAAO,0CAAG,OAAO,EAAE,OAAO,0CAAE,MAAM,CAAC;IAE9G,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"}
|
|
@@ -33,8 +33,15 @@ function createPrimitiveLibraries(response, availablePrimitiveNames, availablePr
|
|
|
33
33
|
const primitivesToCreate = allPrimitivesSelected ? availablePrimitiveNames : response.primitives;
|
|
34
34
|
const tasks = [];
|
|
35
35
|
if (!response.primitives.includes('all')) {
|
|
36
|
-
yield addIconForDependentPrimitive(primitivesToCreate, [
|
|
37
|
-
|
|
36
|
+
yield addIconForDependentPrimitive(primitivesToCreate, [
|
|
37
|
+
'alert',
|
|
38
|
+
'command',
|
|
39
|
+
'menu',
|
|
40
|
+
'checkbox',
|
|
41
|
+
'pagination',
|
|
42
|
+
'select',
|
|
43
|
+
]);
|
|
44
|
+
yield addButtonForDependentPrimitive(primitivesToCreate, ['alertdialog', 'command', 'pagination']);
|
|
38
45
|
}
|
|
39
46
|
yield replaceContextAndMenuBar(primitivesToCreate, allPrimitivesSelected);
|
|
40
47
|
if (primitivesToCreate.includes('collapsible')) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/generator.ts"],"names":[],"mappings":";;;AAAA,uCAAqG;AACrG,uCAAkC;AAElC,+CAAqE;AAGrE,SAA8B,cAAc,CAAC,IAAU,EAAE,OAAwD;;QAChH,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,MAAM,mBAAmB,GAAG,2CAAa,+BAA+B,EAAC,CAAC;QAC1E,MAAM,uBAAuB,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;QAC/G,IAAI,QAAQ,GAA6B,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;QAC5D,IAAI,OAAO,CAAC,IAAI,IAAI,uBAAuB,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/generator.ts"],"names":[],"mappings":";;;AAAA,uCAAqG;AACrG,uCAAkC;AAElC,+CAAqE;AAGrE,SAA8B,cAAc,CAAC,IAAU,EAAE,OAAwD;;QAChH,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,MAAM,mBAAmB,GAAG,2CAA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ACf,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,IAAI;YACb,OAAO,EACN,yHAAyH;SAC1H,CAAC,CACF,CAAC,YAAY,CAAC,CAAC;QAChB,IAAI,UAAU,EAAE,CAAC;YAChB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnC,CAAC;IACF,CAAC;AACF,CAAC,CAAA,CAAC;AACF,MAAM,wBAAwB,GAAG,CAAO,iBAA2B,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;IACtF,MAAM,YAAY,GAAG,iBAAiB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC9D,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,IAAA,iBAAM,EAAC;gBACZ,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,4FAA4F;aACrG,CAAC,CAAC;QACJ,CAAC;QACD,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;IACD,MAAM,YAAY,GAAG,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC1D,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,IAAA,iBAAM,EAAC;gBACZ,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,uFAAuF;aAChG,CAAC,CAAC;QACJ,CAAC;QACD,iBAAiB,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;AACF,CAAC,CAAA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive, inject,
|
|
1
|
+
import { computed, Directive, inject, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionContentComponent } from '@spartan-ng/ui-accordion-brain';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -13,17 +13,12 @@ import { ClassValue } from 'clsx';
|
|
|
13
13
|
export class HlmAccordionContentDirective {
|
|
14
14
|
private readonly _brn = inject(BrnAccordionContentComponent, { optional: true });
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
17
|
protected readonly _computedClass = computed(() => {
|
|
18
18
|
const gridRows = this._brn?.state() === 'open' ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]';
|
|
19
|
-
return hlm('text-sm transition-all grid', gridRows, this.
|
|
19
|
+
return hlm('text-sm transition-all grid', gridRows, this.userClass());
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
@Input()
|
|
23
|
-
set class(userCls: ClassValue) {
|
|
24
|
-
this._userCls.set(userCls);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
22
|
constructor() {
|
|
28
23
|
this._brn?.setClassToCustomElement('pt-1 pb-4');
|
|
29
24
|
}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed, Directive, inject,
|
|
2
|
-
import {
|
|
1
|
+
import { computed, Directive, inject, input } from '@angular/core';
|
|
2
|
+
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
@@ -7,7 +7,7 @@ import { ClassValue } from 'clsx';
|
|
|
7
7
|
@Directive({
|
|
8
8
|
selector: 'hlm-icon[hlmAccordionIcon], hlm-icon[hlmAccIcon]',
|
|
9
9
|
standalone: true,
|
|
10
|
-
providers: [provideIcons({
|
|
10
|
+
providers: [provideIcons({ lucideChevronDown })],
|
|
11
11
|
host: {
|
|
12
12
|
'[class]': '_computedClass()',
|
|
13
13
|
},
|
|
@@ -15,17 +15,13 @@ import { ClassValue } from 'clsx';
|
|
|
15
15
|
export class HlmAccordionIconDirective {
|
|
16
16
|
private readonly _hlmIcon = inject(HlmIconComponent);
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
19
19
|
protected _computedClass = computed(() =>
|
|
20
|
-
hlm('inline-block h-4 w-4 transition-transform duration-200', this.
|
|
20
|
+
hlm('inline-block h-4 w-4 transition-transform duration-200', this.userClass()),
|
|
21
21
|
);
|
|
22
22
|
|
|
23
|
-
@Input()
|
|
24
|
-
set class(userCls: ClassValue) {
|
|
25
|
-
this._userCls.set(userCls);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
constructor() {
|
|
29
|
-
this._hlmIcon.
|
|
24
|
+
this._hlmIcon.size = 'none';
|
|
25
|
+
this._hlmIcon.name = 'lucideChevronDown';
|
|
30
26
|
}
|
|
31
27
|
}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-item.directive.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive,
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionItemDirective } from '@spartan-ng/ui-accordion-brain';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -9,16 +9,16 @@ import { ClassValue } from 'clsx';
|
|
|
9
9
|
host: {
|
|
10
10
|
'[class]': '_computedClass()',
|
|
11
11
|
},
|
|
12
|
-
hostDirectives: [
|
|
12
|
+
hostDirectives: [
|
|
13
|
+
{
|
|
14
|
+
directive: BrnAccordionItemDirective,
|
|
15
|
+
inputs: ['isOpened'],
|
|
16
|
+
},
|
|
17
|
+
],
|
|
13
18
|
})
|
|
14
19
|
export class HlmAccordionItemDirective {
|
|
15
|
-
|
|
20
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
21
|
protected readonly _computedClass = computed(() =>
|
|
17
|
-
hlm('flex flex-1 flex-col border-b border-border', this.
|
|
22
|
+
hlm('flex flex-1 flex-col border-b border-border', this.userClass()),
|
|
18
23
|
);
|
|
19
|
-
|
|
20
|
-
@Input()
|
|
21
|
-
set class(userCls: ClassValue) {
|
|
22
|
-
this._userCls.set(userCls);
|
|
23
|
-
}
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive,
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionTriggerDirective } from '@spartan-ng/ui-accordion-brain';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -13,16 +13,11 @@ import { ClassValue } from 'clsx';
|
|
|
13
13
|
hostDirectives: [BrnAccordionTriggerDirective],
|
|
14
14
|
})
|
|
15
15
|
export class HlmAccordionTriggerDirective {
|
|
16
|
-
|
|
16
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
17
|
protected _computedClass = computed(() =>
|
|
18
18
|
hlm(
|
|
19
19
|
'w-full focus-visible:outline-none text-sm focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 flex flex-1 items-center justify-between py-4 px-0.5 font-medium underline-offset-4 hover:underline [&[data-state=open]>[hlmAccordionIcon]]:rotate-180 [&[data-state=open]>[hlmAccIcon]]:rotate-180',
|
|
20
|
-
this.
|
|
20
|
+
this.userClass(),
|
|
21
21
|
),
|
|
22
22
|
);
|
|
23
|
-
|
|
24
|
-
@Input()
|
|
25
|
-
set class(inputs: ClassValue) {
|
|
26
|
-
this._userCls.set(inputs);
|
|
27
|
-
}
|
|
28
23
|
}
|
package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion.directive.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive, inject,
|
|
1
|
+
import { computed, Directive, inject, input } from '@angular/core';
|
|
2
2
|
import { BrnAccordionDirective } from '@spartan-ng/ui-accordion-brain';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -9,18 +9,13 @@ import { ClassValue } from 'clsx';
|
|
|
9
9
|
host: {
|
|
10
10
|
'[class]': '_computedClass()',
|
|
11
11
|
},
|
|
12
|
-
hostDirectives: [BrnAccordionDirective],
|
|
12
|
+
hostDirectives: [{ directive: BrnAccordionDirective, inputs: ['type', 'dir', 'orientation'] }],
|
|
13
13
|
})
|
|
14
14
|
export class HlmAccordionDirective {
|
|
15
15
|
private readonly _brn = inject(BrnAccordionDirective);
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
18
18
|
protected readonly _computedClass = computed(() =>
|
|
19
|
-
hlm('flex', this._brn.orientation === 'horizontal' ? 'flex-row' : 'flex-col', this.
|
|
19
|
+
hlm('flex', this._brn.orientation === 'horizontal' ? 'flex-row' : 'flex-col', this.userClass()),
|
|
20
20
|
);
|
|
21
|
-
|
|
22
|
-
@Input()
|
|
23
|
-
set class(userCls: ClassValue) {
|
|
24
|
-
this._userCls.set(userCls);
|
|
25
|
-
}
|
|
26
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive, inject,
|
|
1
|
+
import { computed, Directive, inject, input } from '@angular/core';
|
|
2
2
|
import { HlmButtonDirective } from '@spartan-ng/ui-button-helm';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -14,13 +14,8 @@ import { ClassValue } from 'clsx';
|
|
|
14
14
|
export class HlmAlertDialogCancelButtonDirective {
|
|
15
15
|
private readonly _hlmBtn = inject(HlmButtonDirective, { host: true });
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
protected readonly _computedClass = computed(() => hlm('mt-2 sm:mt-0', this.
|
|
19
|
-
|
|
20
|
-
@Input()
|
|
21
|
-
set class(userCls: ClassValue) {
|
|
22
|
-
this._userCls.set(userCls);
|
|
23
|
-
}
|
|
17
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
18
|
+
protected readonly _computedClass = computed(() => hlm('mt-2 sm:mt-0', this.userClass()));
|
|
24
19
|
|
|
25
20
|
constructor() {
|
|
26
21
|
this._hlmBtn.variant = 'outline';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input, signal, ViewEncapsulation } from '@angular/core';
|
|
2
2
|
import { hlm, injectExposesStateProvider } from '@spartan-ng/ui-core';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -19,16 +19,11 @@ export class HlmAlertDialogContentComponent {
|
|
|
19
19
|
private readonly _stateProvider = injectExposesStateProvider({ optional: true, host: true });
|
|
20
20
|
public readonly state = this._stateProvider?.state ?? signal('closed');
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
23
23
|
protected readonly _computedClass = computed(() =>
|
|
24
24
|
hlm(
|
|
25
25
|
'relative grid w-full max-w-lg gap-4 border-border border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[2%] data-[state=open]:slide-in-from-top-[2%] sm:rounded-lg md:w-full',
|
|
26
|
-
this.
|
|
26
|
+
this.userClass(),
|
|
27
27
|
),
|
|
28
28
|
);
|
|
29
|
-
|
|
30
|
-
@Input()
|
|
31
|
-
set class(userCls: ClassValue) {
|
|
32
|
-
this._userCls.set(userCls);
|
|
33
|
-
}
|
|
34
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive,
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { BrnAlertDialogDescriptionDirective } from '@spartan-ng/ui-alertdialog-brain';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -12,11 +12,6 @@ import { ClassValue } from 'clsx';
|
|
|
12
12
|
hostDirectives: [BrnAlertDialogDescriptionDirective],
|
|
13
13
|
})
|
|
14
14
|
export class HlmAlertDialogDescriptionDirective {
|
|
15
|
-
|
|
16
|
-
protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this.
|
|
17
|
-
|
|
18
|
-
@Input()
|
|
19
|
-
set class(userCls: ClassValue) {
|
|
20
|
-
this._userCls.set(userCls);
|
|
21
|
-
}
|
|
15
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
|
+
protected readonly _computedClass = computed(() => hlm('text-sm text-muted-foreground', this.userClass()));
|
|
22
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -15,12 +15,8 @@ import { ClassValue } from 'clsx';
|
|
|
15
15
|
encapsulation: ViewEncapsulation.None,
|
|
16
16
|
})
|
|
17
17
|
export class HlmAlertDialogFooterComponent {
|
|
18
|
-
|
|
18
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
19
19
|
protected readonly _computedClass = computed(() =>
|
|
20
|
-
hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this.
|
|
20
|
+
hlm('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this.userClass()),
|
|
21
21
|
);
|
|
22
|
-
@Input()
|
|
23
|
-
set class(userCls: ClassValue) {
|
|
24
|
-
this._userCls.set(userCls);
|
|
25
|
-
}
|
|
26
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed,
|
|
1
|
+
import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -15,12 +15,8 @@ import { ClassValue } from 'clsx';
|
|
|
15
15
|
encapsulation: ViewEncapsulation.None,
|
|
16
16
|
})
|
|
17
17
|
export class HlmAlertDialogHeaderComponent {
|
|
18
|
-
|
|
18
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
19
19
|
protected readonly _computedClass = computed(() =>
|
|
20
|
-
hlm('flex flex-col space-y-2 text-center sm:text-left', this.
|
|
20
|
+
hlm('flex flex-col space-y-2 text-center sm:text-left', this.userClass()),
|
|
21
21
|
);
|
|
22
|
-
@Input()
|
|
23
|
-
set class(userCls: ClassValue) {
|
|
24
|
-
this._userCls.set(userCls);
|
|
25
|
-
}
|
|
26
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive, effect,
|
|
1
|
+
import { computed, Directive, effect, input } from '@angular/core';
|
|
2
2
|
import { hlm, injectCustomClassSettable } from '@spartan-ng/ui-core';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
|
|
@@ -9,17 +9,13 @@ import { ClassValue } from 'clsx';
|
|
|
9
9
|
export class HlmAlertDialogOverlayDirective {
|
|
10
10
|
private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
protected readonly _computedClass = computed(() =>
|
|
14
14
|
hlm(
|
|
15
15
|
'bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
|
|
16
|
-
this.
|
|
16
|
+
this.userClass(),
|
|
17
17
|
),
|
|
18
18
|
);
|
|
19
|
-
@Input()
|
|
20
|
-
set class(userCls: ClassValue) {
|
|
21
|
-
this._userCls.set(userCls);
|
|
22
|
-
}
|
|
23
19
|
|
|
24
20
|
constructor() {
|
|
25
21
|
effect(() => this._classSettable?.setClassToCustomElement(this._computedClass()));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive,
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { BrnAlertDialogTitleDirective } from '@spartan-ng/ui-alertdialog-brain';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -12,10 +12,6 @@ import { ClassValue } from 'clsx';
|
|
|
12
12
|
hostDirectives: [BrnAlertDialogTitleDirective],
|
|
13
13
|
})
|
|
14
14
|
export class HlmAlertDialogTitleDirective {
|
|
15
|
-
|
|
16
|
-
protected readonly _computedClass = computed(() => hlm('text-lg font-semibold', this.
|
|
17
|
-
@Input()
|
|
18
|
-
set class(userCls: ClassValue) {
|
|
19
|
-
this._userCls.set(userCls);
|
|
20
|
-
}
|
|
15
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
16
|
+
protected readonly _computedClass = computed(() => hlm('text-lg font-semibold', this.userClass()));
|
|
21
17
|
}
|
package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog.component.ts.template
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, forwardRef, ViewEncapsulation } from '@angular/core';
|
|
2
2
|
import { BrnAlertDialogComponent, BrnAlertDialogOverlayComponent } from '@spartan-ng/ui-alertdialog-brain';
|
|
3
|
-
import { BrnDialogComponent
|
|
3
|
+
import { BrnDialogComponent } from '@spartan-ng/ui-dialog-brain';
|
|
4
4
|
import { HlmAlertDialogOverlayDirective } from './hlm-alert-dialog-overlay.directive';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -11,7 +11,6 @@ import { HlmAlertDialogOverlayDirective } from './hlm-alert-dialog-overlay.direc
|
|
|
11
11
|
<ng-content />
|
|
12
12
|
`,
|
|
13
13
|
providers: [
|
|
14
|
-
provideBrnDialog(),
|
|
15
14
|
{
|
|
16
15
|
provide: BrnDialogComponent,
|
|
17
16
|
useExisting: forwardRef(() => HlmAlertDialogComponent),
|
package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive,
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
3
|
import { cva, VariantProps } from 'class-variance-authority';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -16,14 +16,6 @@ export type AlertDescriptionVariants = VariantProps<typeof alertDescriptionVaria
|
|
|
16
16
|
},
|
|
17
17
|
})
|
|
18
18
|
export class HlmAlertDescriptionDirective {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
set class(userCls: ClassValue) {
|
|
22
|
-
this._userCls.set(userCls);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
protected _computedClass = computed(() => this._generateClass());
|
|
26
|
-
private _generateClass() {
|
|
27
|
-
return hlm(alertDescriptionVariants(), this._userCls());
|
|
28
|
-
}
|
|
19
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
20
|
+
protected _computedClass = computed(() => hlm(alertDescriptionVariants(), this.userClass()));
|
|
29
21
|
}
|
package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive,
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
3
|
import { cva, VariantProps } from 'class-variance-authority';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -16,14 +16,6 @@ export type AlertTitleVariants = VariantProps<typeof alertTitleVariants>;
|
|
|
16
16
|
},
|
|
17
17
|
})
|
|
18
18
|
export class HlmAlertTitleDirective {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
set class(userCls: ClassValue) {
|
|
22
|
-
this._userCls.set(userCls);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
protected _computedClass = computed(() => this._generateClass());
|
|
26
|
-
private _generateClass() {
|
|
27
|
-
return hlm(alertTitleVariants(), this._userCls());
|
|
28
|
-
}
|
|
19
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
20
|
+
protected _computedClass = computed(() => hlm(alertTitleVariants(), this.userClass()));
|
|
29
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, Directive, Input, signal } from '@angular/core';
|
|
1
|
+
import { computed, Directive, Input, input, signal } from '@angular/core';
|
|
2
2
|
import { hlm } from '@spartan-ng/ui-core';
|
|
3
3
|
import { cva, VariantProps } from 'class-variance-authority';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
@@ -29,20 +29,12 @@ export type AlertVariants = VariantProps<typeof alertVariants>;
|
|
|
29
29
|
},
|
|
30
30
|
})
|
|
31
31
|
export class HlmAlertDirective {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
set class(userCls: ClassValue) {
|
|
35
|
-
this._userCls.set(userCls);
|
|
36
|
-
}
|
|
32
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
33
|
+
protected _computedClass = computed(() => hlm(alertVariants({ variant: this._variant() }), this.userClass()));
|
|
37
34
|
|
|
38
35
|
private readonly _variant = signal<AlertVariants['variant']>('default');
|
|
39
36
|
@Input()
|
|
40
37
|
set variant(variant: AlertVariants['variant']) {
|
|
41
38
|
this._variant.set(variant);
|
|
42
39
|
}
|
|
43
|
-
|
|
44
|
-
protected _computedClass = computed(() => this._generateClass());
|
|
45
|
-
private _generateClass() {
|
|
46
|
-
return hlm(alertVariants({ variant: this._variant() }), this._userCls());
|
|
47
|
-
}
|
|
48
40
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { AfterViewInit, computed, Directive, ElementRef, inject, Input, signal } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, computed, Directive, ElementRef, inject, input, Input, signal } from '@angular/core';
|
|
3
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
|
|
@@ -27,8 +27,8 @@ export class HlmAspectRatioDirective implements AfterViewInit {
|
|
|
27
27
|
return `${100 / this._ratio()}%`;
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
protected readonly _computedClass = computed(() => hlm(`relative w-full`, this.
|
|
30
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
31
|
+
protected readonly _computedClass = computed(() => hlm(`relative w-full`, this.userClass()));
|
|
32
32
|
|
|
33
33
|
@Input()
|
|
34
34
|
set hlmAspectRatio(value: NumberInput) {
|
|
@@ -36,11 +36,6 @@ export class HlmAspectRatioDirective implements AfterViewInit {
|
|
|
36
36
|
this._ratio.set(coerced <= 0 ? 1 : coerced);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
@Input()
|
|
40
|
-
set class(userCls: ClassValue) {
|
|
41
|
-
this._userCls.set(userCls);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
39
|
ngAfterViewInit() {
|
|
45
40
|
// support delayed addition of image to dom
|
|
46
41
|
const child = this._el.firstElementChild;
|