@spartan-ng/cli 0.0.1-alpha.528 → 0.0.1-alpha.530
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 +1 -1
- package/src/generators/migrate-helm-imports/import-map.d.ts +1 -0
- package/src/generators/migrate-helm-imports/import-map.js +1 -0
- package/src/generators/migrate-helm-imports/import-map.js.map +1 -1
- package/src/generators/ui/libs/textarea/generator.d.ts +3 -0
- package/src/generators/ui/libs/textarea/generator.js +14 -0
- package/src/generators/ui/libs/textarea/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-empty-helm/files/index.ts.template +22 -0
- package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty-content.ts.template +18 -0
- package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty-description.ts.template +21 -0
- package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty-header.ts.template +18 -0
- package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty-media.ts.template +37 -0
- package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty-title.ts.template +16 -0
- package/src/generators/ui/libs/ui-empty-helm/files/lib/hlm-empty.ts.template +21 -0
- package/src/generators/ui/libs/ui-empty-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-empty-helm/generator.js +14 -0
- package/src/generators/ui/libs/ui-empty-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-icon-helm/files/index.ts.template +2 -1
- package/src/generators/ui/libs/ui-icon-helm/files/lib/hlm-icon.ts.template +1 -1
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.ts.template +2 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.ts.template +1 -1
- package/src/generators/ui/libs/ui-table-helm/files/index.ts.template +22 -2
- package/src/generators/ui/libs/ui-table-helm/files/lib/hlm-table.ts.template +28 -9
- package/src/generators/ui/libs/ui-textarea-helm/files/index.ts.template +5 -0
- package/src/generators/ui/libs/ui-textarea-helm/files/lib/hlm-textarea.ts.template +98 -0
- package/src/generators/ui/libs/ui-textarea-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-textarea-helm/generator.js +14 -0
- package/src/generators/ui/libs/ui-textarea-helm/generator.js.map +1 -0
- package/src/generators/ui/primitive-deps.js +2 -0
- 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 +49 -31
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: {
|
|
|
18
18
|
'@spartan-ng/ui-date-picker-helm': string;
|
|
19
19
|
'@spartan-ng/ui-datepicker-helm': string;
|
|
20
20
|
'@spartan-ng/ui-dialog-helm': string;
|
|
21
|
+
'@spartan-ng/ui-empty-helm': string;
|
|
21
22
|
'@spartan-ng/ui-form-field-helm': string;
|
|
22
23
|
'@spartan-ng/ui-formfield-helm': string;
|
|
23
24
|
'@spartan-ng/ui-hover-card-helm': string;
|
|
@@ -20,6 +20,7 @@ exports.default = {
|
|
|
20
20
|
'@spartan-ng/ui-date-picker-helm': '@spartan-ng/helm/date-picker',
|
|
21
21
|
'@spartan-ng/ui-datepicker-helm': '@spartan-ng/helm/date-picker',
|
|
22
22
|
'@spartan-ng/ui-dialog-helm': '@spartan-ng/helm/dialog',
|
|
23
|
+
'@spartan-ng/ui-empty-helm': '@spartan-ng/helm/empty',
|
|
23
24
|
'@spartan-ng/ui-form-field-helm': '@spartan-ng/helm/form-field',
|
|
24
25
|
'@spartan-ng/ui-formfield-helm': '@spartan-ng/helm/form-field',
|
|
25
26
|
'@spartan-ng/ui-hover-card-helm': '@spartan-ng/helm/hover-card',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-map.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-helm-imports/import-map.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACd,+BAA+B,EAAE,4BAA4B;IAC7D,2BAA2B,EAAE,wBAAw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IACvD,2BAA2B,EAAE,wBAAwB;IACrD,0BAA0B,EAAE,uBAAuB;IACnD,4BAA4B,EAAE,yBAAyB;IACvD,kCAAkC,EAAE,+BAA+B;IACnE,iCAAiC,EAAE,+BAA+B;IAClE,6BAA6B,EAAE,0BAA0B;IACzD,gCAAgC,EAAE,6BAA6B;CAC/D,CAAC"}
|
|
1
|
+
{"version":3,"file":"import-map.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-helm-imports/import-map.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACd,+BAA+B,EAAE,4BAA4B;IAC7D,2BAA2B,EAAE,wBAAwB;IACrD,kCAAkC,EAAE,+BAA+B;IACnE,iCAAiC,EAAE,+BAA+B;IAClE,kCAAkC,EAAE,+BAA+B;IACnE,iCAAiC,EAAE,+BAA+B;IAClE,4BAA4B,EAAE,yBAAyB;IACvD,2BAA2B,EAAE,wBAAwB;IACrD,gCAAgC,EAAE,6BAA6B;IAC/D,4BAA4B,EAAE,yBAAyB;IACvD,kCAAkC,EAAE,+BAA+B;IACnE,8BAA8B,EAAE,2BAA2B;IAC3D,0BAA0B,EAAE,uBAAuB;IACnD,8BAA8B,EAAE,2BAA2B;IAC3D,8BAA8B,EAAE,2BAA2B;IAC3D,6BAA6B,EAAE,0BAA0B;IACzD,iCAAiC,EAAE,8BAA8B;IACjE,gCAAgC,EAAE,8BAA8B;IAChE,4BAA4B,EAAE,yBAAyB;IACvD,2BAA2B,EAAE,wBAAwB;IACrD,gCAAgC,EAAE,6BAA6B;IAC/D,+BAA+B,EAAE,6BAA6B;IAC9D,gCAAgC,EAAE,6BAA6B;IAC/D,+BAA+B,EAAE,6BAA6B;IAC9D,0BAA0B,EAAE,uBAAuB;IACnD,2BAA2B,EAAE,wBAAwB;IACrD,+BAA+B,EAAE,4BAA4B;IAC7D,8BAA8B,EAAE,4BAA4B;IAC5D,2BAA2B,EAAE,wBAAwB;IACrD,0BAA0B,EAAE,uBAAuB;IACnD,gCAAgC,EAAE,6BAA6B;IAC/D,6BAA6B,EAAE,0BAA0B;IACzD,8BAA8B,EAAE,2BAA2B;IAC3D,iCAAiC,EAAE,8BAA8B;IACjE,gCAAgC,EAAE,8BAA8B;IAChE,iCAAiC,EAAE,8BAA8B;IACjE,gCAAgC,EAAE,8BAA8B;IAChE,4BAA4B,EAAE,yBAAyB;IACvD,+BAA+B,EAAE,4BAA4B;IAC7D,2BAA2B,EAAE,wBAAwB;IACrD,8BAA8B,EAAE,2BAA2B;IAC3D,4BAA4B,EAAE,yBAAyB;IACvD,4BAA4B,EAAE,yBAAyB;IACvD,6BAA6B,EAAE,0BAA0B;IACzD,4BAA4B,EAAE,yBAAyB;IACvD,2BAA2B,EAAE,wBAAwB;IACrD,0BAA0B,EAAE,uBAAuB;IACnD,4BAA4B,EAAE,yBAAyB;IACvD,kCAAkC,EAAE,+BAA+B;IACnE,iCAAiC,EAAE,+BAA+B;IAClE,6BAA6B,EAAE,0BAA0B;IACzD,gCAAgC,EAAE,6BAA6B;CAC/D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = generator;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = tslib_1.__importDefault(require("../../../base/generator"));
|
|
6
|
+
async function generator(tree, options) {
|
|
7
|
+
return await (0, generator_1.default)(tree, {
|
|
8
|
+
...options,
|
|
9
|
+
primitiveName: 'textarea',
|
|
10
|
+
internalName: 'ui-textarea-helm',
|
|
11
|
+
publicName: 'textarea',
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/textarea/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AAVD,gFAAuD;AAGhD,KAAK,UAAU,SAAS,CAAC,IAAU,EAAE,OAA+B;IAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,EAAE;QACnC,GAAG,OAAO;QACV,aAAa,EAAE,UAAU;QACzB,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,UAAU;KACtB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HlmEmpty } from './lib/hlm-empty';
|
|
2
|
+
import { HlmEmptyContent } from './lib/hlm-empty-content';
|
|
3
|
+
import { HlmEmptyDescription } from './lib/hlm-empty-description';
|
|
4
|
+
import { HlmEmptyHeader } from './lib/hlm-empty-header';
|
|
5
|
+
import { HlmEmptyMedia } from './lib/hlm-empty-media';
|
|
6
|
+
import { HlmEmptyTitle } from './lib/hlm-empty-title';
|
|
7
|
+
|
|
8
|
+
export * from './lib/hlm-empty';
|
|
9
|
+
export * from './lib/hlm-empty-content';
|
|
10
|
+
export * from './lib/hlm-empty-description';
|
|
11
|
+
export * from './lib/hlm-empty-header';
|
|
12
|
+
export * from './lib/hlm-empty-media';
|
|
13
|
+
export * from './lib/hlm-empty-title';
|
|
14
|
+
|
|
15
|
+
export const HlmEmptyImports = [
|
|
16
|
+
HlmEmpty,
|
|
17
|
+
HlmEmptyContent,
|
|
18
|
+
HlmEmptyDescription,
|
|
19
|
+
HlmEmptyHeader,
|
|
20
|
+
HlmEmptyTitle,
|
|
21
|
+
HlmEmptyMedia,
|
|
22
|
+
] as const;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmEmptyContent]',
|
|
7
|
+
host: {
|
|
8
|
+
'data-slot': 'empty-content',
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmEmptyContent {
|
|
13
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
|
+
|
|
15
|
+
protected readonly _computedClass = computed(() =>
|
|
16
|
+
hlm('text-balancet flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-sm', this.userClass()),
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmEmptyDescription]',
|
|
7
|
+
host: {
|
|
8
|
+
'data-slot': 'empty-description',
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmEmptyDescription {
|
|
13
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
|
+
|
|
15
|
+
protected readonly _computedClass = computed(() =>
|
|
16
|
+
hlm(
|
|
17
|
+
'text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4',
|
|
18
|
+
this.userClass(),
|
|
19
|
+
),
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmEmptyHeader]',
|
|
7
|
+
host: {
|
|
8
|
+
'data-slot': 'empty-header',
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmEmptyHeader {
|
|
13
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
|
+
|
|
15
|
+
protected readonly _computedClass = computed(() =>
|
|
16
|
+
hlm('flex max-w-sm flex-col items-center gap-2 text-center', this.userClass()),
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
+
import { cva, VariantProps } from 'class-variance-authority';
|
|
4
|
+
import type { ClassValue } from 'clsx';
|
|
5
|
+
|
|
6
|
+
const emptyMediaVariants = cva(
|
|
7
|
+
'mb-2 flex shrink-0 items-center justify-center [&_ng-icon]:pointer-events-none [&_ng-icon]:shrink-0',
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: 'bg-transparent',
|
|
12
|
+
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_ng-icon:not([class*='size-'])]:size-6",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
defaultVariants: {
|
|
16
|
+
variant: 'default',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export type EmptyMediaVariants = VariantProps<typeof emptyMediaVariants>;
|
|
22
|
+
|
|
23
|
+
@Directive({
|
|
24
|
+
selector: '[hlmEmptyMedia]',
|
|
25
|
+
host: {
|
|
26
|
+
'data-slot': 'empty-media',
|
|
27
|
+
'[class]': '_computedClass()',
|
|
28
|
+
},
|
|
29
|
+
})
|
|
30
|
+
export class HlmEmptyMedia {
|
|
31
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
32
|
+
public readonly variant = input<EmptyMediaVariants['variant']>();
|
|
33
|
+
|
|
34
|
+
protected readonly _computedClass = computed(() =>
|
|
35
|
+
hlm(emptyMediaVariants({ variant: this.variant() }), this.userClass()),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmEmptyTitle]',
|
|
7
|
+
host: {
|
|
8
|
+
'data-slot': 'empty-title',
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmEmptyTitle {
|
|
13
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
|
+
|
|
15
|
+
protected readonly _computedClass = computed(() => hlm('text-lg font-medium tracking-tight', this.userClass()));
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { computed, Directive, input } from '@angular/core';
|
|
2
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
3
|
+
import type { ClassValue } from 'clsx';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmEmpty]',
|
|
7
|
+
host: {
|
|
8
|
+
'data-slot': 'empty',
|
|
9
|
+
'[class]': '_computedClass()',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
export class HlmEmpty {
|
|
13
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
|
+
|
|
15
|
+
protected readonly _computedClass = computed(() =>
|
|
16
|
+
hlm(
|
|
17
|
+
'flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12',
|
|
18
|
+
this.userClass(),
|
|
19
|
+
),
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = generator;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = tslib_1.__importDefault(require("../../../base/generator"));
|
|
6
|
+
async function generator(tree, options) {
|
|
7
|
+
return await (0, generator_1.default)(tree, {
|
|
8
|
+
...options,
|
|
9
|
+
primitiveName: 'empty',
|
|
10
|
+
internalName: 'ui-empty-helm',
|
|
11
|
+
publicName: 'ui-empty-helm',
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-empty-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AAVD,gFAAuD;AAGhD,KAAK,UAAU,SAAS,CAAC,IAAU,EAAE,OAA+B;IAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,EAAE;QACnC,GAAG,OAAO;QACV,aAAa,EAAE,OAAO;QACtB,YAAY,EAAE,eAAe;QAC7B,UAAU,EAAE,eAAe;KAC3B,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { NgIcon } from '@ng-icons/core';
|
|
1
2
|
import { HlmIcon } from './lib/hlm-icon';
|
|
2
3
|
|
|
3
4
|
export * from './lib/hlm-icon';
|
|
4
5
|
export * from './lib/hlm-icon.token';
|
|
5
6
|
|
|
6
|
-
export const HlmIconImports = [HlmIcon] as const;
|
|
7
|
+
export const HlmIconImports = [HlmIcon, NgIcon] as const;
|
|
@@ -4,7 +4,7 @@ import { injectHlmIconConfig } from './hlm-icon.token';
|
|
|
4
4
|
export type IconSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | 'none' | (Record<never, never> & string);
|
|
5
5
|
|
|
6
6
|
@Directive({
|
|
7
|
-
selector: 'ng-icon[hlm]',
|
|
7
|
+
selector: 'ng-icon[hlmIcon], ng-icon[hlm]',
|
|
8
8
|
host: {
|
|
9
9
|
'[style.--ng-icon__size]': '_computedSize()',
|
|
10
10
|
},
|
|
@@ -22,8 +22,8 @@ export const inputVariants = cva(
|
|
|
22
22
|
{
|
|
23
23
|
variants: {
|
|
24
24
|
error: {
|
|
25
|
-
auto: '[&.ng-invalid.ng-touched]:
|
|
26
|
-
true: '
|
|
25
|
+
auto: '[&.ng-invalid.ng-touched]:border-destructive [&.ng-invalid.ng-touched]:ring-destructive/20 dark:[&.ng-invalid.ng-touched]:ring-destructive/40',
|
|
26
|
+
true: 'border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40',
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
defaultVariants: {
|
|
@@ -11,6 +11,6 @@ import type { ClassValue } from 'clsx';
|
|
|
11
11
|
export class HlmSelectValue {
|
|
12
12
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
13
13
|
protected readonly _computedClass = computed(() =>
|
|
14
|
-
hlm('data-[placeholder]:text-muted-foreground line-clamp-1 flex items-center gap-2', this.userClass()),
|
|
14
|
+
hlm('data-[placeholder]:text-muted-foreground line-clamp-1 flex items-center gap-2 truncate', this.userClass()),
|
|
15
15
|
);
|
|
16
16
|
}
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HlmCaption,
|
|
3
|
+
HlmTable,
|
|
4
|
+
HlmTableContainer,
|
|
5
|
+
HlmTBody,
|
|
6
|
+
HlmTd,
|
|
7
|
+
HlmTFoot,
|
|
8
|
+
HlmTh,
|
|
9
|
+
HlmTHead,
|
|
10
|
+
HlmTr,
|
|
11
|
+
} from './lib/hlm-table';
|
|
2
12
|
|
|
3
13
|
export * from './lib/hlm-table';
|
|
4
14
|
|
|
5
|
-
export const HlmTableImports = [
|
|
15
|
+
export const HlmTableImports = [
|
|
16
|
+
HlmCaption,
|
|
17
|
+
HlmTableContainer,
|
|
18
|
+
HlmTable,
|
|
19
|
+
HlmTBody,
|
|
20
|
+
HlmTd,
|
|
21
|
+
HlmTFoot,
|
|
22
|
+
HlmTh,
|
|
23
|
+
HlmTHead,
|
|
24
|
+
HlmTr,
|
|
25
|
+
] as const;
|
|
@@ -6,6 +6,7 @@ import type { ClassValue } from 'clsx';
|
|
|
6
6
|
// Configuration Interface and InjectionToken
|
|
7
7
|
export const HlmTableConfigToken = new InjectionToken<HlmTableVariant>('HlmTableConfig');
|
|
8
8
|
export interface HlmTableVariant {
|
|
9
|
+
tableContainer: string;
|
|
9
10
|
table: string;
|
|
10
11
|
thead: string;
|
|
11
12
|
tbody: string;
|
|
@@ -17,13 +18,14 @@ export interface HlmTableVariant {
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export const HlmTableVariantDefault: HlmTableVariant = {
|
|
21
|
+
tableContainer: 'relative w-full overflow-x-auto',
|
|
20
22
|
table: 'w-full caption-bottom text-sm',
|
|
21
23
|
thead: '[&_tr]:border-b',
|
|
22
24
|
tbody: '[&_tr:last-child]:border-0',
|
|
23
25
|
tfoot: 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',
|
|
24
26
|
tr: 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',
|
|
25
|
-
th: 'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0
|
|
26
|
-
td: 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0
|
|
27
|
+
th: 'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0',
|
|
28
|
+
td: 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0',
|
|
27
29
|
caption: 'text-muted-foreground mt-4 text-sm',
|
|
28
30
|
};
|
|
29
31
|
|
|
@@ -38,6 +40,22 @@ export function injectHlmTableConfig(): HlmTableVariant {
|
|
|
38
40
|
return inject(HlmTableConfigToken, { optional: true }) ?? HlmTableVariantDefault;
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
@Directive({
|
|
44
|
+
selector: 'div[hlmTableContainer]',
|
|
45
|
+
host: {
|
|
46
|
+
'[class]': '_computedClass()',
|
|
47
|
+
'data-slot': 'table-container',
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
export class HlmTableContainer {
|
|
51
|
+
private readonly _globalOrDefaultConfig = injectHlmTableConfig();
|
|
52
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
53
|
+
|
|
54
|
+
protected readonly _computedClass = computed(() =>
|
|
55
|
+
hlm(this._globalOrDefaultConfig ? this._globalOrDefaultConfig.tableContainer.trim() : '', this.userClass()),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
41
59
|
/**
|
|
42
60
|
* Directive to apply Shadcn-like styling to a <table> element.
|
|
43
61
|
* It resolves and provides base classes for its child table elements.
|
|
@@ -46,9 +64,9 @@ export function injectHlmTableConfig(): HlmTableVariant {
|
|
|
46
64
|
*/
|
|
47
65
|
@Directive({
|
|
48
66
|
selector: 'table[hlmTable]',
|
|
49
|
-
standalone: true,
|
|
50
67
|
host: {
|
|
51
68
|
'[class]': '_computedClass()',
|
|
69
|
+
'data-slot': 'table',
|
|
52
70
|
},
|
|
53
71
|
})
|
|
54
72
|
export class HlmTable {
|
|
@@ -85,9 +103,9 @@ export class HlmTable {
|
|
|
85
103
|
*/
|
|
86
104
|
@Directive({
|
|
87
105
|
selector: 'thead[hlmTHead]',
|
|
88
|
-
standalone: true,
|
|
89
106
|
host: {
|
|
90
107
|
'[class]': '_computedClass()',
|
|
108
|
+
'data-slot': 'table-header',
|
|
91
109
|
},
|
|
92
110
|
})
|
|
93
111
|
export class HlmTHead {
|
|
@@ -105,9 +123,9 @@ export class HlmTHead {
|
|
|
105
123
|
*/
|
|
106
124
|
@Directive({
|
|
107
125
|
selector: 'tbody[hlmTBody]',
|
|
108
|
-
standalone: true,
|
|
109
126
|
host: {
|
|
110
127
|
'[class]': '_computedClass()',
|
|
128
|
+
'data-slot': 'table-body',
|
|
111
129
|
},
|
|
112
130
|
})
|
|
113
131
|
export class HlmTBody {
|
|
@@ -125,9 +143,9 @@ export class HlmTBody {
|
|
|
125
143
|
*/
|
|
126
144
|
@Directive({
|
|
127
145
|
selector: 'tfoot[hlmTFoot]',
|
|
128
|
-
standalone: true,
|
|
129
146
|
host: {
|
|
130
147
|
'[class]': '_computedClass()',
|
|
148
|
+
'data-slot': 'table-footer',
|
|
131
149
|
},
|
|
132
150
|
})
|
|
133
151
|
export class HlmTFoot {
|
|
@@ -145,9 +163,9 @@ export class HlmTFoot {
|
|
|
145
163
|
*/
|
|
146
164
|
@Directive({
|
|
147
165
|
selector: 'tr[hlmTr]',
|
|
148
|
-
standalone: true,
|
|
149
166
|
host: {
|
|
150
167
|
'[class]': '_computedClass()',
|
|
168
|
+
'data-slot': 'table-row',
|
|
151
169
|
},
|
|
152
170
|
})
|
|
153
171
|
export class HlmTr {
|
|
@@ -165,9 +183,9 @@ export class HlmTr {
|
|
|
165
183
|
*/
|
|
166
184
|
@Directive({
|
|
167
185
|
selector: 'th[hlmTh]',
|
|
168
|
-
standalone: true,
|
|
169
186
|
host: {
|
|
170
187
|
'[class]': '_computedClass()',
|
|
188
|
+
'data-slot': 'table-head',
|
|
171
189
|
},
|
|
172
190
|
})
|
|
173
191
|
export class HlmTh {
|
|
@@ -188,6 +206,7 @@ export class HlmTh {
|
|
|
188
206
|
standalone: true,
|
|
189
207
|
host: {
|
|
190
208
|
'[class]': '_computedClass()',
|
|
209
|
+
'data-slot': 'table-cell',
|
|
191
210
|
},
|
|
192
211
|
})
|
|
193
212
|
export class HlmTd {
|
|
@@ -205,9 +224,9 @@ export class HlmTd {
|
|
|
205
224
|
*/
|
|
206
225
|
@Directive({
|
|
207
226
|
selector: 'caption[hlmCaption]',
|
|
208
|
-
standalone: true,
|
|
209
227
|
host: {
|
|
210
228
|
'[class]': '_computedClass()',
|
|
229
|
+
'data-slot': 'table-caption',
|
|
211
230
|
},
|
|
212
231
|
})
|
|
213
232
|
export class HlmCaption {
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
Directive,
|
|
4
|
+
type DoCheck,
|
|
5
|
+
effect,
|
|
6
|
+
forwardRef,
|
|
7
|
+
inject,
|
|
8
|
+
Injector,
|
|
9
|
+
input,
|
|
10
|
+
linkedSignal,
|
|
11
|
+
untracked,
|
|
12
|
+
} from '@angular/core';
|
|
13
|
+
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
14
|
+
import { BrnFormFieldControl } from '@spartan-ng/brain/form-field';
|
|
15
|
+
import { ErrorStateMatcher, ErrorStateTracker } from '@spartan-ng/brain/forms';
|
|
16
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
17
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
18
|
+
import type { ClassValue } from 'clsx';
|
|
19
|
+
|
|
20
|
+
export const textareaVariants = cva(
|
|
21
|
+
'border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 dark:bg-input/30 shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] [field-sizing:content] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
error: {
|
|
25
|
+
auto: '[&.ng-invalid.ng-touched]:border-destructive [&.ng-invalid.ng-touched]:ring-destructive/20 dark:[&.ng-invalid.ng-touched]:ring-destructive/40',
|
|
26
|
+
true: 'border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
error: 'auto',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
|
+
type TextareaVariants = VariantProps<typeof textareaVariants>;
|
|
35
|
+
|
|
36
|
+
@Directive({
|
|
37
|
+
selector: '[hlmTextarea]',
|
|
38
|
+
host: {
|
|
39
|
+
'data-slot': 'textarea',
|
|
40
|
+
'[class]': '_computedClass()',
|
|
41
|
+
},
|
|
42
|
+
providers: [
|
|
43
|
+
{
|
|
44
|
+
provide: BrnFormFieldControl,
|
|
45
|
+
useExisting: forwardRef(() => HlmTextarea),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
})
|
|
49
|
+
export class HlmTextarea implements BrnFormFieldControl, DoCheck {
|
|
50
|
+
private readonly _injector = inject(Injector);
|
|
51
|
+
|
|
52
|
+
private readonly _errorStateTracker: ErrorStateTracker;
|
|
53
|
+
|
|
54
|
+
private readonly _defaultErrorStateMatcher = inject(ErrorStateMatcher);
|
|
55
|
+
private readonly _parentForm = inject(NgForm, { optional: true });
|
|
56
|
+
private readonly _parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
57
|
+
|
|
58
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
59
|
+
protected readonly _computedClass = computed(() =>
|
|
60
|
+
hlm(textareaVariants({ error: this._state().error }), this.userClass()),
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
public readonly error = input<TextareaVariants['error']>('auto');
|
|
64
|
+
|
|
65
|
+
protected readonly _state = linkedSignal(() => ({ error: this.error() }));
|
|
66
|
+
|
|
67
|
+
public readonly ngControl: NgControl | null = this._injector.get(NgControl, null);
|
|
68
|
+
|
|
69
|
+
public readonly errorState = computed(() => this._errorStateTracker.errorState());
|
|
70
|
+
|
|
71
|
+
constructor() {
|
|
72
|
+
this._errorStateTracker = new ErrorStateTracker(
|
|
73
|
+
this._defaultErrorStateMatcher,
|
|
74
|
+
this.ngControl,
|
|
75
|
+
this._parentFormGroup,
|
|
76
|
+
this._parentForm,
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
effect(() => {
|
|
80
|
+
const error = this._errorStateTracker.errorState();
|
|
81
|
+
untracked(() => {
|
|
82
|
+
if (this.ngControl) {
|
|
83
|
+
const shouldShowError = error && this.ngControl.invalid && (this.ngControl.touched || this.ngControl.dirty);
|
|
84
|
+
this._errorStateTracker.errorState.set(shouldShowError ? true : false);
|
|
85
|
+
this.setError(shouldShowError ? true : 'auto');
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
ngDoCheck() {
|
|
92
|
+
this._errorStateTracker.updateErrorState();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
setError(error: TextareaVariants['error']) {
|
|
96
|
+
this._state.set({ error });
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = generator;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = tslib_1.__importDefault(require("../../../base/generator"));
|
|
6
|
+
async function generator(tree, options) {
|
|
7
|
+
return await (0, generator_1.default)(tree, {
|
|
8
|
+
...options,
|
|
9
|
+
primitiveName: 'textarea',
|
|
10
|
+
internalName: 'ui-textarea-helm',
|
|
11
|
+
publicName: 'ui-textarea-helm',
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-textarea-helm/generator.ts"],"names":[],"mappings":";;AAIA,8BAOC;;AAVD,gFAAuD;AAGhD,KAAK,UAAU,SAAS,CAAC,IAAU,EAAE,OAA+B;IAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,EAAE;QACnC,GAAG,OAAO;QACV,aAAa,EAAE,UAAU;QACzB,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,kBAAkB;KAC9B,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -21,6 +21,7 @@ exports.primitiveDependencies = {
|
|
|
21
21
|
'context-menu': ['utils'],
|
|
22
22
|
'date-picker': ['utils', 'calendar', 'icon', 'popover'],
|
|
23
23
|
dialog: ['utils'],
|
|
24
|
+
empty: ['utils'],
|
|
24
25
|
'form-field': ['utils'],
|
|
25
26
|
'hover-card': ['utils'],
|
|
26
27
|
icon: ['utils'],
|
|
@@ -47,6 +48,7 @@ exports.primitiveDependencies = {
|
|
|
47
48
|
switch: ['utils'],
|
|
48
49
|
table: ['utils'],
|
|
49
50
|
tabs: ['utils'],
|
|
51
|
+
textarea: ['utils', 'form-field'],
|
|
50
52
|
toggle: ['utils'],
|
|
51
53
|
'toggle-group': ['utils'],
|
|
52
54
|
tooltip: ['utils'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitive-deps.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/primitive-deps.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAmC;IACpE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IACnC,cAAc,EAAE,CAAC,OAAO,CAAC;IACzB,YAAY,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC;IACrD,MAAM,EAAE,CAAC,OAAO,CAAC;IACjB,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,CAAC,OAAO,CAAC;IACjB,cAAc,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC;IAChD,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC;IACrC,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,CAAC,OAAO,CAAC;IACtB,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC;IACpC,cAAc,EAAE,CAAC,OAAO,CAAC;IACzB,aAAa,EAAE,CAAC,OAAO,EAAE,UAAU,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' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'form-field' | 'hover-card' | 'icon' | 'input' | 'input-group' | 'input-otp' | 'kbd' | 'label' | 'menu' | 'menubar' | 'pagination' | 'popover' | 'progress' | 'radio-group' | 'scroll-area' | 'select' | 'separator' | 'sheet' | 'sidebar' | 'skeleton' | 'slider' | 'sonner' | 'spinner' | 'switch' | 'table' | 'tabs' | 'toggle' | 'toggle-group' | 'tooltip' | 'utils';
|
|
1
|
+
export type Primitive = 'accordion' | 'alert' | 'alert-dialog' | 'aspect-ratio' | 'autocomplete' | 'avatar' | 'badge' | 'breadcrumb' | 'button' | 'button-group' | 'calendar' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'empty' | 'form-field' | 'hover-card' | 'icon' | 'input' | 'input-group' | 'input-otp' | 'kbd' | 'label' | 'menu' | 'menubar' | 'pagination' | 'popover' | 'progress' | 'radio-group' | 'scroll-area' | 'select' | 'separator' | 'sheet' | 'sidebar' | 'skeleton' | 'slider' | 'sonner' | 'spinner' | 'switch' | 'table' | 'tabs' | 'textarea' | 'toggle' | 'toggle-group' | 'tooltip' | 'utils';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"internalName": "ui-accordion-helm",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": ">=19.0.0",
|
|
6
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
6
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
7
7
|
"clsx": "^2.1.1",
|
|
8
8
|
"@ng-icons/core": ">=29.0.0",
|
|
9
9
|
"@ng-icons/lucide": ">=29.0.0"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"internalName": "ui-alert-dialog-helm",
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@angular/core": ">=19.0.0",
|
|
24
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
24
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
25
25
|
"clsx": "^2.1.1"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@angular/core": ">=19.0.0",
|
|
40
40
|
"clsx": "^2.1.1",
|
|
41
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
41
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
42
42
|
"@angular/cdk": ">=19.0.0",
|
|
43
43
|
"@angular/common": ">=19.0.0",
|
|
44
44
|
"@angular/forms": ">=19.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"internalName": "ui-avatar-helm",
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@angular/core": ">=19.0.0",
|
|
53
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
53
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
54
54
|
"clsx": "^2.1.1"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"internalName": "ui-button-helm",
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@angular/core": ">=19.0.0",
|
|
79
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
79
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
80
80
|
"class-variance-authority": "^0.7.0",
|
|
81
81
|
"clsx": "^2.1.1"
|
|
82
82
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"internalName": "ui-button-group-helm",
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@angular/core": ">=19.0.0",
|
|
88
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
88
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
89
89
|
"clsx": "^2.1.1",
|
|
90
90
|
"class-variance-authority": "^0.7.0"
|
|
91
91
|
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@angular/core": ">=19.0.0",
|
|
99
99
|
"@ng-icons/core": ">=29.0.0",
|
|
100
100
|
"@ng-icons/lucide": ">=29.0.0",
|
|
101
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
101
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
102
102
|
"clsx": "^2.1.1"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@angular/forms": ">=19.0.0",
|
|
129
129
|
"@ng-icons/core": ">=29.0.0",
|
|
130
130
|
"@ng-icons/lucide": ">=29.0.0",
|
|
131
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
131
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
132
132
|
"clsx": "^2.1.1"
|
|
133
133
|
}
|
|
134
134
|
},
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"internalName": "ui-command-helm",
|
|
137
137
|
"peerDependencies": {
|
|
138
138
|
"@angular/core": ">=19.0.0",
|
|
139
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
139
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
140
140
|
"clsx": "^2.1.1"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"@angular/forms": ">=19.0.0",
|
|
149
149
|
"@ng-icons/core": ">=29.0.0",
|
|
150
150
|
"@ng-icons/lucide": ">=29.0.0",
|
|
151
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
151
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
152
152
|
"clsx": "^2.1.1"
|
|
153
153
|
}
|
|
154
154
|
},
|
|
@@ -160,16 +160,24 @@
|
|
|
160
160
|
"@angular/common": ">=19.0.0",
|
|
161
161
|
"@ng-icons/core": ">=29.0.0",
|
|
162
162
|
"@ng-icons/lucide": ">=29.0.0",
|
|
163
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
163
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
164
164
|
"@angular/cdk": ">=19.0.0"
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
+
"empty": {
|
|
168
|
+
"internalName": "ui-empty-helm",
|
|
169
|
+
"peerDependencies": {
|
|
170
|
+
"@angular/core": ">=19.0.0",
|
|
171
|
+
"clsx": "^2.1.1",
|
|
172
|
+
"class-variance-authority": "^0.7.0"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
167
175
|
"form-field": {
|
|
168
176
|
"internalName": "ui-form-field-helm",
|
|
169
177
|
"peerDependencies": {
|
|
170
178
|
"@angular/core": ">=19.0.0",
|
|
171
179
|
"@angular/forms": ">=19.0.0",
|
|
172
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
180
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
173
181
|
"clsx": "^2.1.1"
|
|
174
182
|
}
|
|
175
183
|
},
|
|
@@ -177,15 +185,15 @@
|
|
|
177
185
|
"internalName": "ui-hover-card-helm",
|
|
178
186
|
"peerDependencies": {
|
|
179
187
|
"@angular/core": ">=19.0.0",
|
|
180
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
188
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
181
189
|
"clsx": "^2.1.1"
|
|
182
190
|
}
|
|
183
191
|
},
|
|
184
192
|
"icon": {
|
|
185
193
|
"internalName": "ui-icon-helm",
|
|
186
194
|
"peerDependencies": {
|
|
187
|
-
"@angular/core": ">=19.0.0",
|
|
188
195
|
"@ng-icons/core": ">=29.0.0",
|
|
196
|
+
"@angular/core": ">=19.0.0",
|
|
189
197
|
"@ng-icons/lucide": ">=29.0.0"
|
|
190
198
|
}
|
|
191
199
|
},
|
|
@@ -194,7 +202,7 @@
|
|
|
194
202
|
"peerDependencies": {
|
|
195
203
|
"@angular/core": ">=19.0.0",
|
|
196
204
|
"@angular/forms": ">=19.0.0",
|
|
197
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
205
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
198
206
|
"class-variance-authority": "^0.7.0",
|
|
199
207
|
"clsx": "^2.1.1"
|
|
200
208
|
}
|
|
@@ -204,7 +212,7 @@
|
|
|
204
212
|
"peerDependencies": {
|
|
205
213
|
"@angular/core": ">=19.0.0",
|
|
206
214
|
"clsx": "^2.1.1",
|
|
207
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
215
|
+
"@spartan-ng/brain": "0.0.1-alpha.530"
|
|
208
216
|
}
|
|
209
217
|
},
|
|
210
218
|
"input-otp": {
|
|
@@ -215,7 +223,7 @@
|
|
|
215
223
|
"@ng-icons/core": ">=29.0.0",
|
|
216
224
|
"@ng-icons/lucide": ">=29.0.0",
|
|
217
225
|
"@angular/cdk": ">=19.0.0",
|
|
218
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
226
|
+
"@spartan-ng/brain": "0.0.1-alpha.530"
|
|
219
227
|
}
|
|
220
228
|
},
|
|
221
229
|
"kbd": {
|
|
@@ -229,7 +237,7 @@
|
|
|
229
237
|
"internalName": "ui-label-helm",
|
|
230
238
|
"peerDependencies": {
|
|
231
239
|
"@angular/core": ">=19.0.0",
|
|
232
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
240
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
233
241
|
"clsx": "^2.1.1"
|
|
234
242
|
}
|
|
235
243
|
},
|
|
@@ -237,7 +245,7 @@
|
|
|
237
245
|
"internalName": "ui-menu-helm",
|
|
238
246
|
"peerDependencies": {
|
|
239
247
|
"@angular/core": ">=19.0.0",
|
|
240
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
248
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
241
249
|
"clsx": "^2.1.1",
|
|
242
250
|
"@ng-icons/core": ">=29.0.0",
|
|
243
251
|
"@ng-icons/lucide": ">=29.0.0",
|
|
@@ -251,7 +259,7 @@
|
|
|
251
259
|
"@angular/cdk": ">=19.0.0",
|
|
252
260
|
"@angular/core": ">=19.0.0",
|
|
253
261
|
"@angular/forms": ">=19.0.0",
|
|
254
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
262
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
255
263
|
"class-variance-authority": "^0.7.0",
|
|
256
264
|
"clsx": "^2.1.1",
|
|
257
265
|
"@ng-icons/core": ">=29.0.0",
|
|
@@ -264,14 +272,14 @@
|
|
|
264
272
|
"peerDependencies": {
|
|
265
273
|
"@angular/core": ">=19.0.0",
|
|
266
274
|
"clsx": "^2.1.1",
|
|
267
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
275
|
+
"@spartan-ng/brain": "0.0.1-alpha.530"
|
|
268
276
|
}
|
|
269
277
|
},
|
|
270
278
|
"progress": {
|
|
271
279
|
"internalName": "ui-progress-helm",
|
|
272
280
|
"peerDependencies": {
|
|
273
281
|
"@angular/core": ">=19.0.0",
|
|
274
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
282
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
275
283
|
"clsx": "^2.1.1"
|
|
276
284
|
}
|
|
277
285
|
},
|
|
@@ -279,7 +287,7 @@
|
|
|
279
287
|
"internalName": "ui-radio-group-helm",
|
|
280
288
|
"peerDependencies": {
|
|
281
289
|
"@angular/core": ">=19.0.0",
|
|
282
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
290
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
283
291
|
"clsx": "^2.1.1",
|
|
284
292
|
"@angular/common": ">=19.0.0"
|
|
285
293
|
}
|
|
@@ -296,7 +304,7 @@
|
|
|
296
304
|
"peerDependencies": {
|
|
297
305
|
"@angular/cdk": ">=19.0.0",
|
|
298
306
|
"@angular/core": ">=19.0.0",
|
|
299
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
307
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
300
308
|
"clsx": "^2.1.1",
|
|
301
309
|
"@ng-icons/core": ">=29.0.0",
|
|
302
310
|
"@ng-icons/lucide": ">=29.0.0",
|
|
@@ -307,7 +315,7 @@
|
|
|
307
315
|
"internalName": "ui-separator-helm",
|
|
308
316
|
"peerDependencies": {
|
|
309
317
|
"@angular/core": ">=19.0.0",
|
|
310
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
318
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
311
319
|
"clsx": "^2.1.1"
|
|
312
320
|
}
|
|
313
321
|
},
|
|
@@ -318,7 +326,7 @@
|
|
|
318
326
|
"clsx": "^2.1.1",
|
|
319
327
|
"@ng-icons/core": ">=29.0.0",
|
|
320
328
|
"@ng-icons/lucide": ">=29.0.0",
|
|
321
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
329
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
322
330
|
"class-variance-authority": "^0.7.0"
|
|
323
331
|
}
|
|
324
332
|
},
|
|
@@ -327,7 +335,7 @@
|
|
|
327
335
|
"peerDependencies": {
|
|
328
336
|
"@angular/core": ">=19.0.0",
|
|
329
337
|
"clsx": "^2.1.1",
|
|
330
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
338
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
331
339
|
"class-variance-authority": "^0.7.0",
|
|
332
340
|
"@ng-icons/core": ">=29.0.0",
|
|
333
341
|
"@ng-icons/lucide": ">=29.0.0",
|
|
@@ -345,7 +353,7 @@
|
|
|
345
353
|
"internalName": "ui-slider-helm",
|
|
346
354
|
"peerDependencies": {
|
|
347
355
|
"@angular/core": ">=19.0.0",
|
|
348
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
356
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
349
357
|
"clsx": "^2.1.1"
|
|
350
358
|
}
|
|
351
359
|
},
|
|
@@ -371,7 +379,7 @@
|
|
|
371
379
|
"clsx": "^2.1.1",
|
|
372
380
|
"@angular/cdk": ">=19.0.0",
|
|
373
381
|
"@angular/forms": ">=19.0.0",
|
|
374
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
382
|
+
"@spartan-ng/brain": "0.0.1-alpha.530"
|
|
375
383
|
}
|
|
376
384
|
},
|
|
377
385
|
"table": {
|
|
@@ -385,7 +393,7 @@
|
|
|
385
393
|
"internalName": "ui-tabs-helm",
|
|
386
394
|
"peerDependencies": {
|
|
387
395
|
"@angular/core": ">=19.0.0",
|
|
388
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
396
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
389
397
|
"clsx": "^2.1.1",
|
|
390
398
|
"class-variance-authority": "^0.7.0",
|
|
391
399
|
"@angular/cdk": ">=19.0.0",
|
|
@@ -394,6 +402,16 @@
|
|
|
394
402
|
"rxjs": "^7.8.0"
|
|
395
403
|
}
|
|
396
404
|
},
|
|
405
|
+
"textarea": {
|
|
406
|
+
"internalName": "ui-textarea-helm",
|
|
407
|
+
"peerDependencies": {
|
|
408
|
+
"@angular/core": ">=19.0.0",
|
|
409
|
+
"@angular/forms": ">=19.0.0",
|
|
410
|
+
"@spartan-ng/brain": "0.0.1-alpha.530",
|
|
411
|
+
"class-variance-authority": "^0.7.0",
|
|
412
|
+
"clsx": "^2.1.1"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
397
415
|
"toggle": {
|
|
398
416
|
"internalName": "ui-toggle-helm",
|
|
399
417
|
"peerDependencies": {
|
|
@@ -414,7 +432,7 @@
|
|
|
414
432
|
"internalName": "ui-tooltip-helm",
|
|
415
433
|
"peerDependencies": {
|
|
416
434
|
"@angular/core": ">=19.0.0",
|
|
417
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
435
|
+
"@spartan-ng/brain": "0.0.1-alpha.530"
|
|
418
436
|
}
|
|
419
437
|
},
|
|
420
438
|
"typography": {
|