@spartan-ng/cli 0.0.1-alpha.400 → 0.0.1-alpha.401
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 +10 -0
- package/package.json +1 -1
- package/src/generators/healthcheck/generator.js +2 -0
- package/src/generators/healthcheck/generator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/brn-radio.d.ts +2 -0
- package/src/generators/healthcheck/healthchecks/brn-radio.js +30 -0
- package/src/generators/healthcheck/healthchecks/brn-radio.js.map +1 -0
- package/src/generators/migrate-radio/compat.d.ts +2 -0
- package/src/generators/migrate-radio/compat.js +7 -0
- package/src/generators/migrate-radio/compat.js.map +1 -0
- package/src/generators/migrate-radio/generator.d.ts +4 -0
- package/src/generators/migrate-radio/generator.js +49 -0
- package/src/generators/migrate-radio/generator.js.map +1 -0
- package/src/generators/migrate-radio/schema.d.ts +3 -0
- package/src/generators/migrate-radio/schema.json +14 -0
- package/src/generators/ui/libs/ui-radio-group-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.component.ts.template +63 -0
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +1 -1
- package/src/generators/ui/supported-ui-libraries.json +36 -36
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template +0 -20
package/generators.json
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"schema": "./src/generators/migrate-icon/schema.json",
|
|
26
26
|
"description": "Migrate hlm-icon to ng-icon"
|
|
27
27
|
},
|
|
28
|
+
"migrate-radio": {
|
|
29
|
+
"factory": "./src/generators/migrate-radio/generator",
|
|
30
|
+
"schema": "./src/generators/migrate-radio/schema.json",
|
|
31
|
+
"description": "Migrate brn-radio to hlm-radio"
|
|
32
|
+
},
|
|
28
33
|
"migrate-core": {
|
|
29
34
|
"factory": "./src/generators/migrate-core/generator",
|
|
30
35
|
"schema": "./src/generators/migrate-core/schema.json",
|
|
@@ -62,6 +67,11 @@
|
|
|
62
67
|
"schema": "./src/generators/migrate-icon/schema.json",
|
|
63
68
|
"description": "Migrate hlm-icon to ng-icon"
|
|
64
69
|
},
|
|
70
|
+
"migrate-radio": {
|
|
71
|
+
"factory": "./src/generators/migrate-radio/compat",
|
|
72
|
+
"schema": "./src/generators/migrate-radio/schema.json",
|
|
73
|
+
"description": "Migrate brn-radio to hlm-radio"
|
|
74
|
+
},
|
|
65
75
|
"migrate-core": {
|
|
66
76
|
"factory": "./src/generators/migrate-scroll-area/compat",
|
|
67
77
|
"schema": "./src/generators/migrate-core/schema.json",
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ exports.healthcheckGenerator = healthcheckGenerator;
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const healthchecks_1 = require("./healthchecks");
|
|
6
6
|
const brain_imports_1 = require("./healthchecks/brain-imports");
|
|
7
|
+
const brn_radio_1 = require("./healthchecks/brn-radio");
|
|
7
8
|
const core_imports_1 = require("./healthchecks/core-imports");
|
|
8
9
|
const hlm_icon_1 = require("./healthchecks/hlm-icon");
|
|
9
10
|
const hlm_scroll_area_1 = require("./healthchecks/hlm-scroll-area");
|
|
@@ -19,6 +20,7 @@ async function healthcheckGenerator(tree, options) {
|
|
|
19
20
|
core_imports_1.coreImportsHealthcheck,
|
|
20
21
|
hlm_icon_1.helmIconHealthcheck,
|
|
21
22
|
hlm_scroll_area_1.scrollAreaHealthcheck,
|
|
23
|
+
brn_radio_1.brainRadioHealthcheck,
|
|
22
24
|
];
|
|
23
25
|
// store all the failed healthchecks that can be fixed
|
|
24
26
|
const failedReports = [];
|
|
@@ -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.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C,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.brainRadioHealthcheck = void 0;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const generator_1 = require("../../migrate-radio/generator");
|
|
6
|
+
const healthchecks_1 = require("../healthchecks");
|
|
7
|
+
exports.brainRadioHealthcheck = {
|
|
8
|
+
name: 'Brain Radio',
|
|
9
|
+
async detect(tree, failure) {
|
|
10
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, '/', (file) => {
|
|
11
|
+
// if the file is a .ts or .htlm file, check for brain radio
|
|
12
|
+
if (!file.endsWith('.ts') && !file.endsWith('.html')) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const contents = tree.read(file, 'utf-8');
|
|
16
|
+
if (!contents) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (contents.includes('<brn-radio')) {
|
|
20
|
+
failure(`The <brn-radio> component is deprecated. Please use the <hlm-radio> instead.`, healthchecks_1.HealthcheckSeverity.Error, true);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
fix: async (tree) => {
|
|
25
|
+
await (0, generator_1.migrateRadioGenerator)(tree, { skipFormat: true });
|
|
26
|
+
return true;
|
|
27
|
+
},
|
|
28
|
+
prompt: 'Would you like to migrate brain radio?',
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=brn-radio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brn-radio.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/brn-radio.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAClD,6DAAsE;AACtE,kDAAmE;AAEtD,QAAA,qBAAqB,GAAgB;IACjD,IAAI,EAAE,aAAa;IACnB,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO;QACzB,IAAA,6BAAoB,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;YACxC,4DAA4D;YAC5D,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBACtD,OAAO;YACR,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAE1C,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACf,OAAO;YACR,CAAC;YAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;gBACrC,OAAO,CACN,8EAA8E,EAC9E,kCAAmB,CAAC,KAAK,EACzB,IAAI,CACJ,CAAC;YACH,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACnB,MAAM,IAAA,iCAAqB,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,EAAE,wCAAwC;CAChD,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-radio/compat.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,oEAAgD;AAEhD,kBAAe,IAAA,2BAAkB,EAAC,mBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrateRadioGenerator = migrateRadioGenerator;
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const visit_files_1 = require("../../utils/visit-files");
|
|
6
|
+
async function migrateRadioGenerator(tree, { skipFormat }) {
|
|
7
|
+
updateImports(tree);
|
|
8
|
+
replaceSelector(tree);
|
|
9
|
+
if (!skipFormat) {
|
|
10
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function replaceSelector(tree) {
|
|
14
|
+
// if the element is `<brn-radio hlm` then we need to replace it with `<hlm-radio`
|
|
15
|
+
// we also need to replace the closing tag `</brn-radio>` with `</hlm-radio>`
|
|
16
|
+
(0, visit_files_1.visitFiles)(tree, '.', (path) => {
|
|
17
|
+
// if this is not an html file or typescript file (inline templates) then skip
|
|
18
|
+
if (!path.endsWith('.html') && !path.endsWith('.ts')) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
let content = tree.read(path, 'utf-8');
|
|
22
|
+
if (!content) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
content = content.replace(/<brn-radio hlm/g, '<hlm-radio');
|
|
26
|
+
content = content.replace(/<\/brn-radio>/g, '</hlm-radio>');
|
|
27
|
+
tree.write(path, content);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Update imports remove BrnRadioComponent import and replace HlmRadioDirective with HlmRadioComponent
|
|
32
|
+
*/
|
|
33
|
+
function updateImports(tree) {
|
|
34
|
+
(0, visit_files_1.visitFiles)(tree, '/', (path) => {
|
|
35
|
+
const content = tree.read(path).toString('utf-8');
|
|
36
|
+
if (content.includes('@spartan-ng/brain/radio-group') || content.includes('@spartan-ng/ui-radiogroup-helm')) {
|
|
37
|
+
const updatedContent = content
|
|
38
|
+
// Handle `import { BrnRadioComponent } from '@spartan-ng/brain/radio-group';`
|
|
39
|
+
.replace("import { BrnRadioComponent } from '@spartan-ng/brain/radio-group';", '')
|
|
40
|
+
// Remove `BrnRadioComponent` with optional comma and whitespace
|
|
41
|
+
.replace(/BrnRadioComponent,?\s?/, '')
|
|
42
|
+
// Replace all `HlmRadioDirective` with `HlmRadioComponent`
|
|
43
|
+
.replaceAll('HlmRadioDirective', 'HlmRadioComponent');
|
|
44
|
+
tree.write(path, updatedContent);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
exports.default = migrateRadioGenerator;
|
|
49
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-radio/generator.ts"],"names":[],"mappings":";;AAIA,sDAOC;AAXD,uCAA+C;AAC/C,yDAAqD;AAG9C,KAAK,UAAU,qBAAqB,CAAC,IAAU,EAAE,EAAE,UAAU,EAA+B;IAClG,aAAa,CAAC,IAAI,CAAC,CAAC;IACpB,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,SAAS,eAAe,CAAC,IAAU;IAClC,kFAAkF;IAClF,6EAA6E;IAC7E,IAAA,wBAAU,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE;QAC9B,8EAA8E;QAC9E,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACtD,OAAO;Q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
|
+
"properties": {
|
|
7
|
+
"skipFormat": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false,
|
|
10
|
+
"description": "Skip formatting files"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": []
|
|
14
|
+
}
|
|
@@ -2,13 +2,13 @@ import { NgModule } from '@angular/core';
|
|
|
2
2
|
|
|
3
3
|
import { HlmRadioGroupComponent } from './lib/hlm-radio-group.component';
|
|
4
4
|
import { HlmRadioIndicatorComponent } from './lib/hlm-radio-indicator.component';
|
|
5
|
-
import {
|
|
5
|
+
import { HlmRadioComponent } from './lib/hlm-radio.component';
|
|
6
6
|
|
|
7
7
|
export * from './lib/hlm-radio-group.component';
|
|
8
8
|
export * from './lib/hlm-radio-indicator.component';
|
|
9
|
-
export * from './lib/hlm-radio.
|
|
9
|
+
export * from './lib/hlm-radio.component';
|
|
10
10
|
|
|
11
|
-
export const HlmRadioGroupImports = [HlmRadioGroupComponent,
|
|
11
|
+
export const HlmRadioGroupImports = [HlmRadioGroupComponent, HlmRadioComponent, HlmRadioIndicatorComponent];
|
|
12
12
|
|
|
13
13
|
@NgModule({
|
|
14
14
|
imports: [...HlmRadioGroupImports],
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { booleanAttribute, Component, computed, input, output } from '@angular/core';
|
|
2
|
+
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
+
import { BrnRadioChange, BrnRadioComponent } from '@spartan-ng/brain/radio-group';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-radio',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [BrnRadioComponent],
|
|
10
|
+
template: `
|
|
11
|
+
<brn-radio
|
|
12
|
+
[id]="id()"
|
|
13
|
+
[class]="_computedClass()"
|
|
14
|
+
[value]="value()"
|
|
15
|
+
[required]="required()"
|
|
16
|
+
[disabled]="disabled()"
|
|
17
|
+
[aria-label]="ariaLabel()"
|
|
18
|
+
[aria-labelledby]="ariaLabelledby()"
|
|
19
|
+
[aria-describedby]="ariaDescribedby()"
|
|
20
|
+
(change)="change.emit($event)"
|
|
21
|
+
>
|
|
22
|
+
<ng-content select="[target],[indicator]" indicator />
|
|
23
|
+
<ng-content />
|
|
24
|
+
</brn-radio>
|
|
25
|
+
`,
|
|
26
|
+
})
|
|
27
|
+
export class HlmRadioComponent<T = unknown> {
|
|
28
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
29
|
+
protected _computedClass = computed(() =>
|
|
30
|
+
hlm(
|
|
31
|
+
'group [&.brn-radio-disabled]:text-muted-foreground flex items-center space-x-2 rtl:space-x-reverse',
|
|
32
|
+
this.userClass(),
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
/** Used to set the id on the underlying brn element. */
|
|
37
|
+
public readonly id = input<string | undefined>(undefined);
|
|
38
|
+
|
|
39
|
+
/** Used to set the aria-label attribute on the underlying brn element. */
|
|
40
|
+
public readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });
|
|
41
|
+
|
|
42
|
+
/** Used to set the aria-labelledby attribute on the underlying brn element. */
|
|
43
|
+
public readonly ariaLabelledby = input<string | undefined>(undefined, { alias: 'aria-labelledby' });
|
|
44
|
+
|
|
45
|
+
/** Used to set the aria-describedby attribute on the underlying brn element. */
|
|
46
|
+
public readonly ariaDescribedby = input<string | undefined>(undefined, { alias: 'aria-describedby' });
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The value this radio button represents.
|
|
50
|
+
*/
|
|
51
|
+
public readonly value = input.required<T>();
|
|
52
|
+
|
|
53
|
+
/** Whether the checkbox is required. */
|
|
54
|
+
public readonly required = input(false, { transform: booleanAttribute });
|
|
55
|
+
|
|
56
|
+
/** Whether the checkbox is disabled. */
|
|
57
|
+
public readonly disabled = input(false, { transform: booleanAttribute });
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Event emitted when the checked state of this radio button changes.
|
|
61
|
+
*/
|
|
62
|
+
public readonly change = output<BrnRadioChange<T>>();
|
|
63
|
+
}
|
package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template
CHANGED
|
@@ -23,7 +23,7 @@ import type { ClassValue } from 'clsx';
|
|
|
23
23
|
[attr.data-state]="this._brnSelectOption.checkedState()"
|
|
24
24
|
>
|
|
25
25
|
@if (this._brnSelectOption.selected()) {
|
|
26
|
-
<ng-icon hlm aria-hidden="true" name="lucideCheck" />
|
|
26
|
+
<ng-icon hlm size="sm" aria-hidden="true" name="lucideCheck" />
|
|
27
27
|
}
|
|
28
28
|
</span>
|
|
29
29
|
`,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"@angular/core": ">=18.0.0",
|
|
6
6
|
"@ng-icons/core": ">=29.0.0",
|
|
7
7
|
"@ng-icons/lucide": ">=29.0.0",
|
|
8
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
8
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
9
9
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
10
10
|
"clsx": "^2.1.1"
|
|
11
11
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"internalName": "ui-alert-helm",
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@angular/core": ">=18.0.0",
|
|
17
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
17
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
18
18
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
19
19
|
"class-variance-authority": "^0.7.0",
|
|
20
20
|
"clsx": "^2.1.1"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"internalName": "ui-alert-dialog-helm",
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@angular/core": ">=18.0.0",
|
|
27
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
27
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
28
28
|
"@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
|
|
29
29
|
"clsx": "^2.1.1"
|
|
30
30
|
}
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@angular/cdk": ">=18.0.0",
|
|
36
36
|
"@angular/core": ">=18.0.0",
|
|
37
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
37
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
38
38
|
"clsx": "^2.1.1"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"internalName": "ui-avatar-helm",
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@angular/core": ">=18.0.0",
|
|
45
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
45
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
46
46
|
"class-variance-authority": "^0.7.0",
|
|
47
47
|
"clsx": "^2.1.1"
|
|
48
48
|
}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@angular/cdk": ">=18.0.0",
|
|
54
54
|
"@angular/core": ">=18.0.0",
|
|
55
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
55
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
56
56
|
"class-variance-authority": "^0.7.0",
|
|
57
57
|
"clsx": "^2.1.1"
|
|
58
58
|
}
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@angular/router": "18.2.5",
|
|
65
65
|
"@ng-icons/core": ">=29.0.0",
|
|
66
66
|
"@ng-icons/lucide": ">=29.0.0",
|
|
67
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
67
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
68
68
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
69
69
|
"clsx": "^2.1.1"
|
|
70
70
|
}
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"internalName": "ui-button-helm",
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@angular/core": ">=18.0.0",
|
|
76
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
76
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
77
77
|
"class-variance-authority": "^0.7.0",
|
|
78
78
|
"clsx": "^2.1.1"
|
|
79
79
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@angular/core": ">=18.0.0",
|
|
86
86
|
"@ng-icons/core": ">=29.0.0",
|
|
87
87
|
"@ng-icons/lucide": ">=29.0.0",
|
|
88
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
88
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
89
89
|
"@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
|
|
90
90
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381"
|
|
91
91
|
}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"internalName": "ui-card-helm",
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@angular/core": ">=18.0.0",
|
|
97
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
97
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
98
98
|
"class-variance-authority": "^0.7.0",
|
|
99
99
|
"clsx": "^2.1.1"
|
|
100
100
|
}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"@angular/cdk": ">=18.0.0",
|
|
106
106
|
"@angular/core": ">=18.0.0",
|
|
107
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
107
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
108
108
|
"@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
|
|
109
109
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
110
110
|
"clsx": "^2.1.1"
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@angular/core": ">=18.0.0",
|
|
119
119
|
"@ng-icons/core": ">=29.0.0",
|
|
120
120
|
"@ng-icons/lucide": ">=29.0.0",
|
|
121
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
121
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
122
122
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
123
123
|
"clsx": "^2.1.1"
|
|
124
124
|
}
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"@angular/core": ">=18.0.0",
|
|
136
136
|
"@angular/forms": ">=18.0.0",
|
|
137
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
137
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
138
138
|
"class-variance-authority": "^0.7.0",
|
|
139
139
|
"clsx": "^2.1.1"
|
|
140
140
|
}
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"internalName": "ui-label-helm",
|
|
144
144
|
"peerDependencies": {
|
|
145
145
|
"@angular/core": ">=18.0.0",
|
|
146
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
146
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
147
147
|
"class-variance-authority": "^0.7.0",
|
|
148
148
|
"clsx": "^2.1.1"
|
|
149
149
|
}
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@angular/core": ">=18.0.0",
|
|
155
155
|
"@ng-icons/core": ">=29.0.0",
|
|
156
156
|
"@ng-icons/lucide": ">=29.0.0",
|
|
157
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
157
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
158
158
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
159
159
|
"class-variance-authority": "^0.7.0",
|
|
160
160
|
"clsx": "^2.1.1"
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"internalName": "ui-popover-helm",
|
|
165
165
|
"peerDependencies": {
|
|
166
166
|
"@angular/core": ">=18.0.0",
|
|
167
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
167
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
168
168
|
"clsx": "^2.1.1"
|
|
169
169
|
}
|
|
170
170
|
},
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"internalName": "ui-progress-helm",
|
|
173
173
|
"peerDependencies": {
|
|
174
174
|
"@angular/core": ">=18.0.0",
|
|
175
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
175
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
176
176
|
"clsx": "^2.1.1"
|
|
177
177
|
}
|
|
178
178
|
},
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"internalName": "ui-radio-group-helm",
|
|
181
181
|
"peerDependencies": {
|
|
182
182
|
"@angular/core": ">=18.0.0",
|
|
183
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
183
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
184
184
|
"clsx": "^2.1.1"
|
|
185
185
|
}
|
|
186
186
|
},
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"internalName": "ui-scroll-area-helm",
|
|
189
189
|
"peerDependencies": {
|
|
190
190
|
"@angular/core": ">=18.0.0",
|
|
191
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
191
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
192
192
|
"clsx": "^2.1.1",
|
|
193
193
|
"ngx-scrollbar": ">=16.0.0"
|
|
194
194
|
}
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"internalName": "ui-separator-helm",
|
|
198
198
|
"peerDependencies": {
|
|
199
199
|
"@angular/core": ">=18.0.0",
|
|
200
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
200
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
201
201
|
"clsx": "^2.1.1"
|
|
202
202
|
}
|
|
203
203
|
},
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"@angular/core": ">=18.0.0",
|
|
208
208
|
"@ng-icons/core": ">=29.0.0",
|
|
209
209
|
"@ng-icons/lucide": ">=29.0.0",
|
|
210
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
210
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
211
211
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
212
212
|
"class-variance-authority": "^0.7.0",
|
|
213
213
|
"clsx": "^2.1.1"
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"internalName": "ui-skeleton-helm",
|
|
218
218
|
"peerDependencies": {
|
|
219
219
|
"@angular/core": ">=18.0.0",
|
|
220
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
220
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
221
221
|
"clsx": "^2.1.1"
|
|
222
222
|
}
|
|
223
223
|
},
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"internalName": "ui-spinner-helm",
|
|
226
226
|
"peerDependencies": {
|
|
227
227
|
"@angular/core": ">=18.0.0",
|
|
228
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
228
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
229
229
|
"class-variance-authority": "^0.7.0",
|
|
230
230
|
"clsx": "^2.1.1"
|
|
231
231
|
}
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@angular/cdk": ">=18.0.0",
|
|
237
237
|
"@angular/core": ">=18.0.0",
|
|
238
238
|
"@angular/forms": ">=18.0.0",
|
|
239
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
239
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
240
240
|
"clsx": "^2.1.1"
|
|
241
241
|
}
|
|
242
242
|
},
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"@angular/core": ">=18.0.0",
|
|
248
248
|
"@ng-icons/core": ">=29.0.0",
|
|
249
249
|
"@ng-icons/lucide": ">=29.0.0",
|
|
250
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
250
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
251
251
|
"@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
|
|
252
252
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
253
253
|
"class-variance-authority": "^0.7.0",
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"internalName": "ui-toggle-helm",
|
|
259
259
|
"peerDependencies": {
|
|
260
260
|
"@angular/core": ">=18.0.0",
|
|
261
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
261
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
262
262
|
"class-variance-authority": "^0.7.0",
|
|
263
263
|
"clsx": "^2.1.1"
|
|
264
264
|
}
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"internalName": "ui-typography-helm",
|
|
268
268
|
"peerDependencies": {
|
|
269
269
|
"@angular/core": ">=18.0.0",
|
|
270
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
270
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
271
271
|
"clsx": "^2.1.1"
|
|
272
272
|
}
|
|
273
273
|
},
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
"peerDependencies": {
|
|
277
277
|
"@angular/common": ">=18.0.0",
|
|
278
278
|
"@angular/core": ">=18.0.0",
|
|
279
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
279
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
280
280
|
"clsx": "^2.1.1"
|
|
281
281
|
}
|
|
282
282
|
},
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"internalName": "ui-hover-card-helm",
|
|
285
285
|
"peerDependencies": {
|
|
286
286
|
"@angular/core": ">=18.0.0",
|
|
287
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
287
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
288
288
|
"clsx": "^2.1.1"
|
|
289
289
|
}
|
|
290
290
|
},
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
"@angular/forms": ">=18.0.0",
|
|
296
296
|
"@ng-icons/core": ">=29.0.0",
|
|
297
297
|
"@ng-icons/lucide": ">=29.0.0",
|
|
298
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
298
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
299
299
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
300
300
|
"clsx": "^2.1.1"
|
|
301
301
|
}
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
"internalName": "ui-tooltip-helm",
|
|
305
305
|
"peerDependencies": {
|
|
306
306
|
"@angular/core": ">=18.0.0",
|
|
307
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
307
|
+
"@spartan-ng/brain": "0.0.1-alpha.401"
|
|
308
308
|
}
|
|
309
309
|
},
|
|
310
310
|
"pagination": {
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
"@angular/router": ">=18.0.0",
|
|
317
317
|
"@ng-icons/core": ">=29.0.0",
|
|
318
318
|
"@ng-icons/lucide": ">=29.0.0",
|
|
319
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
319
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
320
320
|
"@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
|
|
321
321
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
322
322
|
"@spartan-ng/ui-select-helm": "0.0.1-alpha.381",
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
"@angular/core": ">=18.0.0",
|
|
331
331
|
"@ng-icons/core": ">=29.0.0",
|
|
332
332
|
"@ng-icons/lucide": ">=29.0.0",
|
|
333
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
333
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
334
334
|
"@spartan-ng/ui-button-helm": "0.0.1-alpha.381",
|
|
335
335
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
336
336
|
"clsx": "^2.1.1",
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
"@angular/core": ">=18.0.0",
|
|
344
344
|
"@ng-icons/core": ">=29.0.0",
|
|
345
345
|
"@ng-icons/lucide": ">=29.0.0",
|
|
346
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
346
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
347
347
|
"@spartan-ng/ui-icon-helm": "0.0.1-alpha.381",
|
|
348
348
|
"class-variance-authority": "^0.7.0",
|
|
349
349
|
"clsx": "^2.1.1"
|
|
@@ -364,14 +364,14 @@
|
|
|
364
364
|
"internalName": "ui-form-field-helm",
|
|
365
365
|
"peerDependencies": {
|
|
366
366
|
"@angular/core": ">=18.0.0",
|
|
367
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
367
|
+
"@spartan-ng/brain": "0.0.1-alpha.401"
|
|
368
368
|
}
|
|
369
369
|
},
|
|
370
370
|
"slider": {
|
|
371
371
|
"internalName": "ui-slider-helm",
|
|
372
372
|
"peerDependencies": {
|
|
373
373
|
"@angular/core": ">=18.0.0",
|
|
374
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
374
|
+
"@spartan-ng/brain": "0.0.1-alpha.401",
|
|
375
375
|
"clsx": "^2.1.1"
|
|
376
376
|
}
|
|
377
377
|
}
|
package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.directive.ts.template
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Directive, computed, input } from '@angular/core';
|
|
2
|
-
import { hlm } from '@spartan-ng/brain/core';
|
|
3
|
-
import type { ClassValue } from 'clsx';
|
|
4
|
-
|
|
5
|
-
@Directive({
|
|
6
|
-
selector: 'brn-radio[hlm],[hlmRadio]',
|
|
7
|
-
standalone: true,
|
|
8
|
-
host: {
|
|
9
|
-
'[class]': '_computedClass()',
|
|
10
|
-
},
|
|
11
|
-
})
|
|
12
|
-
export class HlmRadioDirective {
|
|
13
|
-
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
|
-
protected _computedClass = computed(() =>
|
|
15
|
-
hlm(
|
|
16
|
-
'group [&.brn-radio-disabled]:text-muted-foreground flex items-center space-x-2 rtl:space-x-reverse',
|
|
17
|
-
this.userClass(),
|
|
18
|
-
),
|
|
19
|
-
);
|
|
20
|
-
}
|