@spartan-ng/cli 0.0.1-alpha.360 → 0.0.1-alpha.361
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/base/versions.d.ts +20 -20
- package/src/generators/base/versions.js +20 -20
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +29 -5
- package/src/generators/ui/libs/ui-form-field/files/index.ts.template +14 -0
- package/src/generators/ui/libs/ui-form-field/files/lib/directives/hlm-error.directive.ts.template +10 -0
- package/src/generators/ui/libs/ui-form-field/files/lib/directives/hlm-hint.directive.ts.template +10 -0
- package/src/generators/ui/libs/ui-form-field/files/lib/hlm-form-field.component.ts.template +41 -0
- package/src/generators/ui/libs/ui-form-field/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-form-field/generator.js +12 -0
- package/src/generators/ui/libs/ui-form-field/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-form-field-helm/files/index.ts.template +14 -0
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/form-field.spec.ts.template +135 -0
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.directive.ts.template +10 -0
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.component.ts.template +41 -0
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.directive.ts.template +10 -0
- package/src/generators/ui/libs/ui-form-field-helm/generator.d.ts +3 -0
- package/src/generators/ui/libs/ui-form-field-helm/generator.js +12 -0
- package/src/generators/ui/libs/ui-form-field-helm/generator.js.map +1 -0
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +46 -2
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +6 -5
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template +2 -2
- package/src/generators/ui/supported-ui-libraries.json +56 -47
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare const FALLBACK_ANGULAR_VERSION = "^18.0.0";
|
|
2
2
|
export declare const NG_ICONS_VERSION = "^25.1.0";
|
|
3
|
-
export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.
|
|
4
|
-
export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.
|
|
5
|
-
export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.
|
|
6
|
-
export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.
|
|
7
|
-
export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.
|
|
8
|
-
export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.
|
|
9
|
-
export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.
|
|
10
|
-
export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.
|
|
11
|
-
export declare const SPARTAN_LABEL_BRAIN_VERSION = "0.0.1-alpha.
|
|
12
|
-
export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.
|
|
13
|
-
export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.
|
|
14
|
-
export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.
|
|
15
|
-
export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.
|
|
16
|
-
export declare const SPARTAN_SELECT_BRAIN_VERSION = "0.0.1-alpha.
|
|
17
|
-
export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.
|
|
18
|
-
export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.
|
|
19
|
-
export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.
|
|
20
|
-
export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.
|
|
21
|
-
export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.
|
|
22
|
-
export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.
|
|
3
|
+
export declare const SPARTAN_ACCORDION_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
4
|
+
export declare const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
5
|
+
export declare const SPARTAN_AVATAR_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
6
|
+
export declare const SPARTAN_COMMAND_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
7
|
+
export declare const SPARTAN_COLLAPSIBLE_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
8
|
+
export declare const SPARTAN_CORE_VERSION = "0.0.1-alpha.353";
|
|
9
|
+
export declare const SPARTAN_DIALOG_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
10
|
+
export declare const SPARTAN_HOVERCARD_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
11
|
+
export declare const SPARTAN_LABEL_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
12
|
+
export declare const SPARTAN_MENU_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
13
|
+
export declare const SPARTAN_POPOVER_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
14
|
+
export declare const SPARTAN_PROGRESS_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
15
|
+
export declare const SPARTAN_RADIO_GROUP_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
16
|
+
export declare const SPARTAN_SELECT_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
17
|
+
export declare const SPARTAN_SEPARATOR_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
18
|
+
export declare const SPARTAN_SHEET_BRAIN_VERSION = "0.0.1-alpha.353";
|
|
19
|
+
export declare const SPARTAN_SWITCH_VERSION = "0.0.1-alpha.353";
|
|
20
|
+
export declare const SPARTAN_TABS_VERSION = "0.0.1-alpha.353";
|
|
21
|
+
export declare const SPARTAN_TABLE_VERSION = "0.0.1-alpha.353";
|
|
22
|
+
export declare const SPARTAN_TOGGLE_VERSION = "0.0.1-alpha.353";
|
|
23
23
|
export declare const TAILWIND_MERGE_VERSION = "^2.2.0";
|
|
24
24
|
export declare const TAILWINDCSS_VERSION = "^3.0.2";
|
|
25
25
|
export declare const TAILWIND_ANIMATE_VERSION = "^1.0.6";
|
|
@@ -6,26 +6,26 @@ exports.FALLBACK_ANGULAR_VERSION = '^18.0.0';
|
|
|
6
6
|
// ng-icon dependency
|
|
7
7
|
exports.NG_ICONS_VERSION = '^25.1.0';
|
|
8
8
|
// spartan dependencies
|
|
9
|
-
exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.
|
|
10
|
-
exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.
|
|
11
|
-
exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.
|
|
12
|
-
exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.
|
|
13
|
-
exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.
|
|
14
|
-
exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.
|
|
15
|
-
exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.
|
|
16
|
-
exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.
|
|
17
|
-
exports.SPARTAN_LABEL_BRAIN_VERSION = '0.0.1-alpha.
|
|
18
|
-
exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.
|
|
19
|
-
exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.
|
|
20
|
-
exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.
|
|
21
|
-
exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.
|
|
22
|
-
exports.SPARTAN_SELECT_BRAIN_VERSION = '0.0.1-alpha.
|
|
23
|
-
exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.
|
|
24
|
-
exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.
|
|
25
|
-
exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.
|
|
26
|
-
exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.
|
|
27
|
-
exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.
|
|
28
|
-
exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.
|
|
9
|
+
exports.SPARTAN_ACCORDION_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
10
|
+
exports.SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
11
|
+
exports.SPARTAN_AVATAR_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
12
|
+
exports.SPARTAN_COMMAND_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
13
|
+
exports.SPARTAN_COLLAPSIBLE_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
14
|
+
exports.SPARTAN_CORE_VERSION = '0.0.1-alpha.353';
|
|
15
|
+
exports.SPARTAN_DIALOG_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
16
|
+
exports.SPARTAN_HOVERCARD_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
17
|
+
exports.SPARTAN_LABEL_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
18
|
+
exports.SPARTAN_MENU_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
19
|
+
exports.SPARTAN_POPOVER_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
20
|
+
exports.SPARTAN_PROGRESS_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
21
|
+
exports.SPARTAN_RADIO_GROUP_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
22
|
+
exports.SPARTAN_SELECT_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
23
|
+
exports.SPARTAN_SEPARATOR_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
24
|
+
exports.SPARTAN_SHEET_BRAIN_VERSION = '0.0.1-alpha.353';
|
|
25
|
+
exports.SPARTAN_SWITCH_VERSION = '0.0.1-alpha.353';
|
|
26
|
+
exports.SPARTAN_TABS_VERSION = '0.0.1-alpha.353';
|
|
27
|
+
exports.SPARTAN_TABLE_VERSION = '0.0.1-alpha.353';
|
|
28
|
+
exports.SPARTAN_TOGGLE_VERSION = '0.0.1-alpha.353';
|
|
29
29
|
// dev dependencies
|
|
30
30
|
exports.TAILWIND_MERGE_VERSION = '^2.2.0';
|
|
31
31
|
exports.TAILWINDCSS_VERSION = '^3.0.2';
|
package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
EventEmitter,
|
|
4
|
+
Output,
|
|
5
|
+
booleanAttribute,
|
|
6
|
+
computed,
|
|
7
|
+
effect,
|
|
8
|
+
forwardRef,
|
|
9
|
+
input,
|
|
10
|
+
model,
|
|
11
|
+
signal,
|
|
12
|
+
} from '@angular/core';
|
|
2
13
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
14
|
import { BrnCheckboxComponent } from '@spartan-ng/ui-checkbox-brain';
|
|
4
15
|
import { hlm } from '@spartan-ng/ui-core';
|
|
@@ -21,7 +32,7 @@ export const HLM_CHECKBOX_VALUE_ACCESSOR = {
|
|
|
21
32
|
[name]="name()"
|
|
22
33
|
[class]="_computedClass()"
|
|
23
34
|
[checked]="checked()"
|
|
24
|
-
[disabled]="
|
|
35
|
+
[disabled]="_disabled()"
|
|
25
36
|
[required]="required()"
|
|
26
37
|
[aria-label]="ariaLabel()"
|
|
27
38
|
[aria-labelledby]="ariaLabelledby()"
|
|
@@ -48,7 +59,7 @@ export class HlmCheckboxComponent {
|
|
|
48
59
|
'group inline-flex border border-foreground shrink-0 cursor-pointer items-center rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring' +
|
|
49
60
|
' focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:text-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-background',
|
|
50
61
|
this.userClass(),
|
|
51
|
-
this.
|
|
62
|
+
this._disabled() ? 'cursor-not-allowed opacity-50' : '',
|
|
52
63
|
),
|
|
53
64
|
);
|
|
54
65
|
|
|
@@ -67,9 +78,18 @@ export class HlmCheckboxComponent {
|
|
|
67
78
|
public readonly checked = model<boolean | 'indeterminate'>(false);
|
|
68
79
|
|
|
69
80
|
public readonly name = input<string | null>(null);
|
|
70
|
-
public readonly disabled = input(false, { transform: booleanAttribute });
|
|
71
81
|
public readonly required = input(false, { transform: booleanAttribute });
|
|
72
82
|
|
|
83
|
+
protected readonly _disabled = signal(false);
|
|
84
|
+
public readonly disabled = input(false, { transform: booleanAttribute });
|
|
85
|
+
|
|
86
|
+
private disableInput = effect(
|
|
87
|
+
() => {
|
|
88
|
+
this._disabled.set(this.disabled());
|
|
89
|
+
},
|
|
90
|
+
{ allowSignalWrites: true },
|
|
91
|
+
);
|
|
92
|
+
|
|
73
93
|
// icon inputs
|
|
74
94
|
public readonly checkIconName = input<string>('lucideCheck');
|
|
75
95
|
public readonly checkIconClass = input<string>('');
|
|
@@ -78,7 +98,7 @@ export class HlmCheckboxComponent {
|
|
|
78
98
|
public changed = new EventEmitter<boolean>();
|
|
79
99
|
|
|
80
100
|
protected _handleChange(): void {
|
|
81
|
-
if (this.
|
|
101
|
+
if (this._disabled()) return;
|
|
82
102
|
|
|
83
103
|
const previousChecked = this.checked();
|
|
84
104
|
this.checked.set(previousChecked === 'indeterminate' ? true : !previousChecked);
|
|
@@ -106,4 +126,8 @@ export class HlmCheckboxComponent {
|
|
|
106
126
|
registerOnTouched(fn: any): void {
|
|
107
127
|
this._onTouched = fn;
|
|
108
128
|
}
|
|
129
|
+
|
|
130
|
+
setDisabledState(isDisabled: boolean): void {
|
|
131
|
+
this._disabled.set(isDisabled);
|
|
132
|
+
}
|
|
109
133
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { HlmErrorDirective } from './lib/directives/hlm-error.directive';
|
|
3
|
+
import { HlmHintDirective } from './lib/directives/hlm-hint.directive';
|
|
4
|
+
import { HlmFormFieldComponent } from './lib/hlm-form-field.component';
|
|
5
|
+
|
|
6
|
+
export * from './lib/hlm-form-field.component';
|
|
7
|
+
export * from './lib/directives/hlm-error.directive';
|
|
8
|
+
export * from './lib/directives/hlm-hint.directive';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [HlmFormFieldComponent, HlmErrorDirective, HlmHintDirective],
|
|
12
|
+
exports: [HlmFormFieldComponent, HlmErrorDirective, HlmHintDirective],
|
|
13
|
+
})
|
|
14
|
+
export class HlmFormFieldModule {}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Component, type Signal, computed, contentChild, contentChildren, effect } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { BrnFormFieldControl } from '@spartan-ng/ui-form-field-brain';
|
|
4
|
+
import { HlmErrorDirective } from './directives/hlm-error.directive';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-form-field',
|
|
8
|
+
template: `
|
|
9
|
+
<ng-content></ng-content>
|
|
10
|
+
|
|
11
|
+
@switch (hasDisplayedMessage()) {
|
|
12
|
+
@case ('error') {
|
|
13
|
+
<ng-content select="hlm-error"></ng-content>
|
|
14
|
+
}
|
|
15
|
+
@default {
|
|
16
|
+
<ng-content select="hlm-hint"></ng-content>
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`,
|
|
20
|
+
standalone: true,
|
|
21
|
+
host: {
|
|
22
|
+
class: 'space-y-2 block',
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
export class HlmFormFieldComponent {
|
|
26
|
+
control = contentChild(BrnFormFieldControl);
|
|
27
|
+
|
|
28
|
+
errorChildren = contentChildren(HlmErrorDirective);
|
|
29
|
+
|
|
30
|
+
hasDisplayedMessage: Signal<'error' | 'hint'> = computed(() => {
|
|
31
|
+
return this.errorChildren() && this.errorChildren().length > 0 && this.control()?.errorState() ? 'error' : 'hint';
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
constructor() {
|
|
35
|
+
effect(() => {
|
|
36
|
+
if(!this.control()) {
|
|
37
|
+
throw new Error('hlm-form-field must contain a BrnFormFieldControl.');
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = require("../../../base/generator");
|
|
6
|
+
function generator(tree, options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'form-field', internalName: 'ui-form-field-helm', publicName: 'ui-form-field-helm' }));
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
exports.generator = generator;
|
|
12
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-form-field/generator.ts"],"names":[],"mappings":";;;;AACA,uDAAuD;AAGvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,oBAAoB,EAClC,UAAU,EAAE,oBAAoB,IAC/B,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { HlmErrorDirective } from './lib/hlm-error.directive';
|
|
3
|
+
import { HlmFormFieldComponent } from './lib/hlm-form-field.component';
|
|
4
|
+
import { HlmHintDirective } from './lib/hlm-hint.directive';
|
|
5
|
+
|
|
6
|
+
export * from './lib/hlm-form-field.component';
|
|
7
|
+
export * from './lib/hlm-error.directive';
|
|
8
|
+
export * from './lib/hlm-hint.directive';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
imports: [HlmFormFieldComponent, HlmErrorDirective, HlmHintDirective],
|
|
12
|
+
exports: [HlmFormFieldComponent, HlmErrorDirective, HlmHintDirective],
|
|
13
|
+
})
|
|
14
|
+
export class HlmFormFieldModule {}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
3
|
+
import { render, screen } from '@testing-library/angular';
|
|
4
|
+
import userEvent from '@testing-library/user-event';
|
|
5
|
+
|
|
6
|
+
import { HlmInputDirective } from '@spartan-ng/ui-input-helm';
|
|
7
|
+
|
|
8
|
+
import { ErrorStateMatcher, ShowOnDirtyErrorStateMatcher } from '@spartan-ng/ui-forms-brain';
|
|
9
|
+
import { HlmErrorDirective } from './hlm-error.directive';
|
|
10
|
+
import { HlmFormFieldComponent } from './hlm-form-field.component';
|
|
11
|
+
import { HlmHintDirective } from './hlm-hint.directive';
|
|
12
|
+
|
|
13
|
+
const DIRECTIVES = [HlmFormFieldComponent, HlmErrorDirective, HlmHintDirective, HlmInputDirective];
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
standalone: true,
|
|
17
|
+
selector: 'single-form-field-example',
|
|
18
|
+
imports: [ReactiveFormsModule, ...DIRECTIVES],
|
|
19
|
+
template: `
|
|
20
|
+
<hlm-form-field>
|
|
21
|
+
<input
|
|
22
|
+
data-testid="hlm-input"
|
|
23
|
+
aria-label="Your Name"
|
|
24
|
+
[formControl]="name"
|
|
25
|
+
class="w-80"
|
|
26
|
+
hlmInput
|
|
27
|
+
type="text"
|
|
28
|
+
placeholder="Your Name"
|
|
29
|
+
/>
|
|
30
|
+
<hlm-error data-testid="hlm-error">Your name is required</hlm-error>
|
|
31
|
+
<hlm-hint data-testid="hlm-hint">This is your public display name.</hlm-hint>
|
|
32
|
+
</hlm-form-field>
|
|
33
|
+
`,
|
|
34
|
+
})
|
|
35
|
+
class SingleFormFieldMock {
|
|
36
|
+
name = new FormControl('', Validators.required);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@Component({
|
|
40
|
+
standalone: true,
|
|
41
|
+
selector: 'single-form-field-dirty-example',
|
|
42
|
+
imports: [ReactiveFormsModule, ...DIRECTIVES],
|
|
43
|
+
template: `
|
|
44
|
+
<hlm-form-field>
|
|
45
|
+
<input
|
|
46
|
+
data-testid="hlm-input"
|
|
47
|
+
aria-label="Your Name"
|
|
48
|
+
[formControl]="name"
|
|
49
|
+
class="w-80"
|
|
50
|
+
hlmInput
|
|
51
|
+
type="text"
|
|
52
|
+
placeholder="Your Name"
|
|
53
|
+
/>
|
|
54
|
+
<hlm-error data-testid="hlm-error">Your name is required</hlm-error>
|
|
55
|
+
<hlm-hint data-testid="hlm-hint">This is your public display name.</hlm-hint>
|
|
56
|
+
</hlm-form-field>
|
|
57
|
+
`,
|
|
58
|
+
providers: [{ provide: ErrorStateMatcher, useClass: ShowOnDirtyErrorStateMatcher }],
|
|
59
|
+
})
|
|
60
|
+
class SingleFormFieldDirtyMock {
|
|
61
|
+
name = new FormControl('', Validators.required);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
describe('Hlm Form Field Component', () => {
|
|
66
|
+
const TEXT_HINT = 'This is your public display name.';
|
|
67
|
+
const TEXT_ERROR = 'Your name is required';
|
|
68
|
+
|
|
69
|
+
const setupFormField = async () => {
|
|
70
|
+
const { fixture } = await render(SingleFormFieldMock);
|
|
71
|
+
return {
|
|
72
|
+
user: userEvent.setup(),
|
|
73
|
+
fixture,
|
|
74
|
+
hint: screen.getByTestId('hlm-hint'),
|
|
75
|
+
error: () => screen.queryByTestId('hlm-error'),
|
|
76
|
+
trigger: screen.getByTestId('hlm-input'),
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const setupFormFieldWithErrorStateDirty = async () => {
|
|
81
|
+
const { fixture } = await render(SingleFormFieldDirtyMock);
|
|
82
|
+
return {
|
|
83
|
+
user: userEvent.setup(),
|
|
84
|
+
fixture,
|
|
85
|
+
hint: screen.getByTestId('hlm-hint'),
|
|
86
|
+
error: () => screen.queryByTestId('hlm-error'),
|
|
87
|
+
trigger: screen.getByTestId('hlm-input'),
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
describe('SingleFormField', () => {
|
|
92
|
+
it('should show the hint if the errorState is false', async () => {
|
|
93
|
+
const { hint } = await setupFormField();
|
|
94
|
+
|
|
95
|
+
expect(hint.textContent).toBe(TEXT_HINT);
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it('should show the error if the errorState is true', async () => {
|
|
99
|
+
const { user, error, trigger } = await setupFormField();
|
|
100
|
+
|
|
101
|
+
expect(error()).toBeNull();
|
|
102
|
+
|
|
103
|
+
await user.click(trigger);
|
|
104
|
+
|
|
105
|
+
await user.click(document.body);
|
|
106
|
+
|
|
107
|
+
expect(screen.queryByTestId('hlm-hint')).toBeNull();
|
|
108
|
+
expect(error()?.textContent?.trim()).toBe(TEXT_ERROR);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
describe('SingleFormFieldDirty', () => {
|
|
113
|
+
it('should not display the error if the input does not have the dirty state due to the ErrorStateMatcher', async () => {
|
|
114
|
+
const { error, user, trigger } = await setupFormFieldWithErrorStateDirty();
|
|
115
|
+
|
|
116
|
+
await user.click(trigger);
|
|
117
|
+
|
|
118
|
+
await user.click(document.body);
|
|
119
|
+
|
|
120
|
+
expect(error()).toBeNull();
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it('should display the error if the input has the dirty state due to the ErrorStateMatcher', async () => {
|
|
124
|
+
const { error, user, trigger } = await setupFormFieldWithErrorStateDirty();
|
|
125
|
+
|
|
126
|
+
await user.click(trigger);
|
|
127
|
+
await user.type(trigger, 'a');
|
|
128
|
+
await user.clear(trigger);
|
|
129
|
+
|
|
130
|
+
await user.click(document.body);
|
|
131
|
+
|
|
132
|
+
expect(error()?.textContent?.trim()).toBe(TEXT_ERROR);
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
});
|
package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.component.ts.template
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Component, type Signal, computed, contentChild, contentChildren, effect } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { BrnFormFieldControl } from '@spartan-ng/ui-form-field-brain';
|
|
4
|
+
import { HlmErrorDirective } from './hlm-error.directive';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-form-field',
|
|
8
|
+
template: `
|
|
9
|
+
<ng-content></ng-content>
|
|
10
|
+
|
|
11
|
+
@switch (hasDisplayedMessage()) {
|
|
12
|
+
@case ('error') {
|
|
13
|
+
<ng-content select="hlm-error"></ng-content>
|
|
14
|
+
}
|
|
15
|
+
@default {
|
|
16
|
+
<ng-content select="hlm-hint"></ng-content>
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`,
|
|
20
|
+
standalone: true,
|
|
21
|
+
host: {
|
|
22
|
+
class: 'space-y-2 block',
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
export class HlmFormFieldComponent {
|
|
26
|
+
control = contentChild(BrnFormFieldControl);
|
|
27
|
+
|
|
28
|
+
errorChildren = contentChildren(HlmErrorDirective);
|
|
29
|
+
|
|
30
|
+
hasDisplayedMessage: Signal<'error' | 'hint'> = computed(() => {
|
|
31
|
+
return this.errorChildren() && this.errorChildren().length > 0 && this.control()?.errorState() ? 'error' : 'hint';
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
constructor() {
|
|
35
|
+
effect(() => {
|
|
36
|
+
if(!this.control()) {
|
|
37
|
+
throw new Error('hlm-form-field must contain a BrnFormFieldControl.');
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = require("../../../base/generator");
|
|
6
|
+
function generator(tree, options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
return yield (0, generator_1.default)(tree, Object.assign(Object.assign({}, options), { primitiveName: 'formfield', internalName: 'ui-form-field-helm', publicName: 'ui-formfield-helm' }));
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
exports.generator = generator;
|
|
12
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/ui-form-field-helm/generator.ts"],"names":[],"mappings":";;;;AACA,uDAAuD;AAGvD,SAAsB,SAAS,CAAC,IAAU,EAAE,OAA+B;;QAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,kCAC9B,OAAO,KACV,aAAa,EAAE,WAAW,EAC1B,YAAY,EAAE,oBAAoB,EAClC,UAAU,EAAE,mBAAmB,IAC9B,CAAC;IACJ,CAAC;CAAA;AAPD,8BAOC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { Directive, Input, computed, input, signal } from '@angular/core';
|
|
1
|
+
import { Directive, type DoCheck, Inject, Injector, Input, computed, effect, inject, input, signal } from '@angular/core';
|
|
2
|
+
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
2
3
|
import { hlm } from '@spartan-ng/ui-core';
|
|
4
|
+
import { BrnFormFieldControl } from '@spartan-ng/ui-form-field-brain';
|
|
5
|
+
import { ErrorStateMatcher, ErrorStateTracker } from '@spartan-ng/ui-forms-brain';
|
|
6
|
+
|
|
3
7
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
4
8
|
import type { ClassValue } from 'clsx';
|
|
5
9
|
|
|
@@ -31,8 +35,14 @@ type InputVariants = VariantProps<typeof inputVariants>;
|
|
|
31
35
|
host: {
|
|
32
36
|
'[class]': '_computedClass()',
|
|
33
37
|
},
|
|
38
|
+
providers: [
|
|
39
|
+
{
|
|
40
|
+
provide: BrnFormFieldControl,
|
|
41
|
+
useExisting: HlmInputDirective,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
34
44
|
})
|
|
35
|
-
export class HlmInputDirective {
|
|
45
|
+
export class HlmInputDirective implements BrnFormFieldControl, DoCheck {
|
|
36
46
|
private readonly _size = signal<InputVariants['size']>('default');
|
|
37
47
|
@Input()
|
|
38
48
|
set size(value: InputVariants['size']) {
|
|
@@ -49,4 +59,38 @@ export class HlmInputDirective {
|
|
|
49
59
|
protected _computedClass = computed(() =>
|
|
50
60
|
hlm(inputVariants({ size: this._size(), error: this._error() }), this.userClass()),
|
|
51
61
|
);
|
|
62
|
+
|
|
63
|
+
private injector = inject(Injector)
|
|
64
|
+
|
|
65
|
+
ngControl: NgControl | null = this.injector.get(NgControl, null);
|
|
66
|
+
|
|
67
|
+
errorStateTracker: ErrorStateTracker;
|
|
68
|
+
|
|
69
|
+
private defaultErrorStateMatcher = inject(ErrorStateMatcher);
|
|
70
|
+
private parentForm = inject(NgForm, { optional: true });
|
|
71
|
+
private parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
72
|
+
|
|
73
|
+
errorState = computed(() => this.errorStateTracker.errorState());
|
|
74
|
+
|
|
75
|
+
constructor() {
|
|
76
|
+
this.errorStateTracker = new ErrorStateTracker(
|
|
77
|
+
this.defaultErrorStateMatcher,
|
|
78
|
+
this.ngControl,
|
|
79
|
+
this.parentFormGroup,
|
|
80
|
+
this.parentForm,
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
effect(
|
|
84
|
+
() => {
|
|
85
|
+
if (this.ngControl) {
|
|
86
|
+
this.error = this.errorStateTracker.errorState();
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{ allowSignalWrites: true },
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
ngDoCheck() {
|
|
94
|
+
this.errorStateTracker.updateErrorState();
|
|
95
|
+
}
|
|
52
96
|
}
|
package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Component, ContentChild, type ElementRef, ViewChild, computed, input } from '@angular/core';
|
|
1
|
+
import { Component, ContentChild, type ElementRef, ViewChild, computed, inject, input } from '@angular/core';
|
|
2
2
|
import { provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideChevronDown } from '@ng-icons/lucide';
|
|
4
4
|
import { hlm } from '@spartan-ng/ui-core';
|
|
5
5
|
import { HlmIconComponent } from '@spartan-ng/ui-icon-helm';
|
|
6
|
-
import { BrnSelectTriggerDirective } from '@spartan-ng/ui-select-brain';
|
|
6
|
+
import { BrnSelectComponent, BrnSelectTriggerDirective } from '@spartan-ng/ui-select-brain';
|
|
7
7
|
import { type VariantProps, cva } from 'class-variance-authority';
|
|
8
8
|
import type { ClassValue } from 'clsx';
|
|
9
9
|
|
|
@@ -40,7 +40,7 @@ type SelectTriggerVariants = VariantProps<typeof selectTriggerVariants>;
|
|
|
40
40
|
@if (icon) {
|
|
41
41
|
<ng-content select="hlm-icon" />
|
|
42
42
|
} @else {
|
|
43
|
-
<hlm-icon class="
|
|
43
|
+
<hlm-icon class="ml-2 h-4 w-4 flex-none" name="lucideChevronDown" />
|
|
44
44
|
}
|
|
45
45
|
</button>
|
|
46
46
|
`,
|
|
@@ -52,11 +52,12 @@ export class HlmSelectTriggerComponent {
|
|
|
52
52
|
@ContentChild(HlmIconComponent, { static: false })
|
|
53
53
|
protected icon!: HlmIconComponent;
|
|
54
54
|
|
|
55
|
+
protected readonly brnSelect = inject(BrnSelectComponent, { optional: true });
|
|
56
|
+
|
|
55
57
|
public readonly _size = input<SelectTriggerVariants['size']>('default');
|
|
56
|
-
public readonly _error = input<SelectTriggerVariants['error']>('auto');
|
|
57
58
|
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
58
59
|
|
|
59
60
|
protected _computedClass = computed(() =>
|
|
60
|
-
hlm(selectTriggerVariants({ size: this._size(), error: this.
|
|
61
|
+
hlm(selectTriggerVariants({ size: this._size(), error: this.brnSelect?.errorState() }), this.userClass()),
|
|
61
62
|
);
|
|
62
63
|
}
|
package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-paginated-list.component.ts.template
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CdkObserveContent } from '@angular/cdk/observers';
|
|
2
|
-
import { Component, ContentChildren, ElementRef, QueryList, ViewChild, computed, input } from '@angular/core';
|
|
2
|
+
import { Component, ContentChildren, type ElementRef, type QueryList, ViewChild, computed, input } from '@angular/core';
|
|
3
3
|
import { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';
|
|
4
4
|
import { buttonVariants } from '@spartan-ng/ui-button-helm';
|
|
5
5
|
import { hlm } from '@spartan-ng/ui-core';
|
|
6
6
|
import { HlmIconComponent, provideIcons } from '@spartan-ng/ui-icon-helm';
|
|
7
7
|
import { BrnTabsPaginatedListDirective, BrnTabsTriggerDirective } from '@spartan-ng/ui-tabs-brain';
|
|
8
|
-
import { ClassValue } from 'clsx';
|
|
8
|
+
import type { ClassValue } from 'clsx';
|
|
9
9
|
import { listVariants } from './hlm-tabs-list.component';
|
|
10
10
|
|
|
11
11
|
@Component({
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"internalName": "ui-accordion-helm",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": "^18.0.0",
|
|
6
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
6
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
7
7
|
"clsx": "^1.2.1",
|
|
8
|
-
"@spartan-ng/ui-accordion-brain": "0.0.1-alpha.
|
|
8
|
+
"@spartan-ng/ui-accordion-brain": "0.0.1-alpha.353",
|
|
9
9
|
"@ng-icons/lucide": "^26.3.0"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"internalName": "ui-alert-helm",
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@angular/core": "^18.0.0",
|
|
16
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
16
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
17
17
|
"class-variance-authority": "^0.6.0",
|
|
18
18
|
"clsx": "^1.2.1"
|
|
19
19
|
}
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"internalName": "ui-alert-dialog-helm",
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@angular/core": "^18.0.0",
|
|
25
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
25
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
26
26
|
"clsx": "^1.2.1",
|
|
27
|
-
"@spartan-ng/ui-alertdialog-brain": "0.0.1-alpha.
|
|
28
|
-
"@spartan-ng/ui-dialog-brain": "0.0.1-alpha.
|
|
27
|
+
"@spartan-ng/ui-alertdialog-brain": "0.0.1-alpha.353",
|
|
28
|
+
"@spartan-ng/ui-dialog-brain": "0.0.1-alpha.353"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"aspectratio": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@angular/core": "^18.0.0",
|
|
35
35
|
"@angular/cdk": "^18.0.0",
|
|
36
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
36
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
37
37
|
"clsx": "^1.2.1"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"internalName": "ui-avatar-helm",
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@angular/core": "^18.0.0",
|
|
44
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
44
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
45
45
|
"clsx": "^1.2.1",
|
|
46
46
|
"class-variance-authority": "^0.6.0"
|
|
47
47
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"internalName": "ui-badge-helm",
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@angular/core": "^18.0.0",
|
|
53
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
53
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
54
54
|
"class-variance-authority": "^0.6.0",
|
|
55
55
|
"clsx": "^1.2.1"
|
|
56
56
|
}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"internalName": "ui-button-helm",
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@angular/core": "^18.0.0",
|
|
62
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
62
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
63
63
|
"class-variance-authority": "^0.6.0",
|
|
64
64
|
"clsx": "^1.2.1"
|
|
65
65
|
}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"internalName": "ui-card-helm",
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@angular/core": "^18.0.0",
|
|
71
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
71
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
72
72
|
"class-variance-authority": "^0.6.0",
|
|
73
73
|
"clsx": "^1.2.1"
|
|
74
74
|
}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"internalName": "ui-command-helm",
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@angular/core": "^18.0.0",
|
|
80
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
80
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
81
81
|
"clsx": "^1.2.1"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"@angular/core": "^18.0.0",
|
|
88
88
|
"@angular/common": "^18.0.0",
|
|
89
89
|
"@angular/cdk": "^18.0.0",
|
|
90
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
90
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
91
91
|
"clsx": "^1.2.1",
|
|
92
|
-
"@spartan-ng/ui-dialog-brain": "0.0.1-alpha.
|
|
92
|
+
"@spartan-ng/ui-dialog-brain": "0.0.1-alpha.353",
|
|
93
93
|
"@ng-icons/lucide": "^26.3.0"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@angular/core": "^18.0.0",
|
|
100
100
|
"@angular/common": "^18.0.0",
|
|
101
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
101
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
102
102
|
"@ng-icons/core": "^25.1.0",
|
|
103
103
|
"class-variance-authority": "^0.6.0",
|
|
104
104
|
"clsx": "^1.2.1"
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"internalName": "ui-input-helm",
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"@angular/core": "^18.0.0",
|
|
111
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
111
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
112
112
|
"class-variance-authority": "^0.6.0",
|
|
113
113
|
"clsx": "^1.2.1"
|
|
114
114
|
}
|
|
@@ -117,28 +117,28 @@
|
|
|
117
117
|
"internalName": "ui-label-helm",
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"@angular/core": "^18.0.0",
|
|
120
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
120
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
121
121
|
"class-variance-authority": "^0.6.0",
|
|
122
122
|
"clsx": "^1.2.1",
|
|
123
|
-
"@spartan-ng/ui-label-brain": "0.0.1-alpha.
|
|
123
|
+
"@spartan-ng/ui-label-brain": "0.0.1-alpha.353"
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"menu": {
|
|
127
127
|
"internalName": "ui-menu-helm",
|
|
128
128
|
"peerDependencies": {
|
|
129
129
|
"@angular/core": "^18.0.0",
|
|
130
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
130
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
131
131
|
"@ng-icons/lucide": "^26.3.0",
|
|
132
132
|
"clsx": "^1.2.1",
|
|
133
133
|
"class-variance-authority": "^0.6.0",
|
|
134
|
-
"@spartan-ng/ui-menu-brain": "0.0.1-alpha.
|
|
134
|
+
"@spartan-ng/ui-menu-brain": "0.0.1-alpha.353"
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
"popover": {
|
|
138
138
|
"internalName": "ui-popover-helm",
|
|
139
139
|
"peerDependencies": {
|
|
140
140
|
"@angular/core": "^18.0.0",
|
|
141
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
141
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
142
142
|
"clsx": "^1.2.1"
|
|
143
143
|
}
|
|
144
144
|
},
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"internalName": "ui-progress-helm",
|
|
147
147
|
"peerDependencies": {
|
|
148
148
|
"@angular/core": "^18.0.0",
|
|
149
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
149
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
150
150
|
"clsx": "^1.2.1"
|
|
151
151
|
}
|
|
152
152
|
},
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"internalName": "ui-radio-group-helm",
|
|
155
155
|
"peerDependencies": {
|
|
156
156
|
"@angular/core": "^18.0.0",
|
|
157
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
157
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
158
158
|
"clsx": "^1.2.1"
|
|
159
159
|
}
|
|
160
160
|
},
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"internalName": "ui-scroll-area-helm",
|
|
163
163
|
"peerDependencies": {
|
|
164
164
|
"@angular/core": "^18.0.0",
|
|
165
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
165
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
166
166
|
"ngx-scrollbar": "^13.0.1",
|
|
167
167
|
"clsx": "^1.2.1"
|
|
168
168
|
}
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"internalName": "ui-separator-helm",
|
|
172
172
|
"peerDependencies": {
|
|
173
173
|
"@angular/core": "^18.0.0",
|
|
174
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
174
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
175
175
|
"clsx": "^1.2.1"
|
|
176
176
|
}
|
|
177
177
|
},
|
|
@@ -179,19 +179,19 @@
|
|
|
179
179
|
"internalName": "ui-sheet-helm",
|
|
180
180
|
"peerDependencies": {
|
|
181
181
|
"@angular/core": "^18.0.0",
|
|
182
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
182
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
183
183
|
"clsx": "^1.2.1",
|
|
184
184
|
"class-variance-authority": "^0.6.0",
|
|
185
185
|
"@ng-icons/lucide": "^26.3.0",
|
|
186
|
-
"@spartan-ng/ui-sheet-brain": "0.0.1-alpha.
|
|
187
|
-
"@spartan-ng/ui-dialog-brain": "0.0.1-alpha.
|
|
186
|
+
"@spartan-ng/ui-sheet-brain": "0.0.1-alpha.353",
|
|
187
|
+
"@spartan-ng/ui-dialog-brain": "0.0.1-alpha.353"
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
"skeleton": {
|
|
191
191
|
"internalName": "ui-skeleton-helm",
|
|
192
192
|
"peerDependencies": {
|
|
193
193
|
"@angular/core": "^18.0.0",
|
|
194
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
194
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
195
195
|
"clsx": "^1.2.1"
|
|
196
196
|
}
|
|
197
197
|
},
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"internalName": "ui-spinner-helm",
|
|
200
200
|
"peerDependencies": {
|
|
201
201
|
"@angular/core": "^18.0.0",
|
|
202
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
202
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
203
203
|
"class-variance-authority": "^0.6.0",
|
|
204
204
|
"clsx": "^1.2.1"
|
|
205
205
|
}
|
|
@@ -209,26 +209,26 @@
|
|
|
209
209
|
"peerDependencies": {
|
|
210
210
|
"@angular/core": "^18.0.0",
|
|
211
211
|
"@angular/forms": "^18.0.0",
|
|
212
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
212
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
213
213
|
"clsx": "^1.2.1",
|
|
214
|
-
"@spartan-ng/ui-switch-brain": "0.0.1-alpha.
|
|
214
|
+
"@spartan-ng/ui-switch-brain": "0.0.1-alpha.353"
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
"tabs": {
|
|
218
218
|
"internalName": "ui-tabs-helm",
|
|
219
219
|
"peerDependencies": {
|
|
220
220
|
"@angular/core": "^18.0.0",
|
|
221
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
221
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
222
222
|
"clsx": "^1.2.1",
|
|
223
223
|
"class-variance-authority": "^0.6.0",
|
|
224
|
-
"@spartan-ng/ui-tabs-brain": "0.0.1-alpha.
|
|
224
|
+
"@spartan-ng/ui-tabs-brain": "0.0.1-alpha.353"
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
"toggle": {
|
|
228
228
|
"internalName": "ui-toggle-helm",
|
|
229
229
|
"peerDependencies": {
|
|
230
230
|
"@angular/core": "^18.0.0",
|
|
231
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
231
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
232
232
|
"clsx": "^1.2.1",
|
|
233
233
|
"class-variance-authority": "^0.6.0"
|
|
234
234
|
}
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"internalName": "ui-typography-helm",
|
|
238
238
|
"peerDependencies": {
|
|
239
239
|
"@angular/core": "^18.0.0",
|
|
240
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
240
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
241
241
|
"clsx": "^1.2.1"
|
|
242
242
|
}
|
|
243
243
|
},
|
|
@@ -246,8 +246,8 @@
|
|
|
246
246
|
"peerDependencies": {
|
|
247
247
|
"@angular/common": "^18.0.0",
|
|
248
248
|
"@angular/core": "^18.0.0",
|
|
249
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
250
|
-
"@spartan-ng/ui-table-brain": "0.0.1-alpha.
|
|
249
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
250
|
+
"@spartan-ng/ui-table-brain": "0.0.1-alpha.353",
|
|
251
251
|
"clsx": "^1.2.1"
|
|
252
252
|
}
|
|
253
253
|
},
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"internalName": "ui-hover-card-helm",
|
|
256
256
|
"peerDependencies": {
|
|
257
257
|
"@angular/core": "^18.0.0",
|
|
258
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
258
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
259
259
|
"clsx": "^1.2.1"
|
|
260
260
|
}
|
|
261
261
|
},
|
|
@@ -264,8 +264,8 @@
|
|
|
264
264
|
"peerDependencies": {
|
|
265
265
|
"@angular/core": "^18.0.0",
|
|
266
266
|
"@angular/forms": "^18.0.0",
|
|
267
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
268
|
-
"@spartan-ng/ui-checkbox-brain": "0.0.1-alpha.
|
|
267
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
268
|
+
"@spartan-ng/ui-checkbox-brain": "0.0.1-alpha.353",
|
|
269
269
|
"clsx": "^1.2.1",
|
|
270
270
|
"@ng-icons/lucide": "^26.3.0"
|
|
271
271
|
}
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
"internalName": "ui-tooltip-helm",
|
|
275
275
|
"peerDependencies": {
|
|
276
276
|
"@angular/core": "^18.0.0",
|
|
277
|
-
"@spartan-ng/ui-tooltip-brain": "0.0.1-alpha.
|
|
277
|
+
"@spartan-ng/ui-tooltip-brain": "0.0.1-alpha.353"
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
280
|
"pagination": {
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
"peerDependencies": {
|
|
283
283
|
"@angular/core": "^18.0.0",
|
|
284
284
|
"@angular/router": "^18.0.0",
|
|
285
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
285
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
286
286
|
"@ng-icons/lucide": "^26.3.0",
|
|
287
287
|
"class-variance-authority": "^0.6.0",
|
|
288
288
|
"clsx": "^1.2.1"
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
"peerDependencies": {
|
|
294
294
|
"@angular/core": "^18.0.0",
|
|
295
295
|
"@ng-icons/lucide": "^26.3.0",
|
|
296
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
296
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
297
297
|
"clsx": "^1.2.1",
|
|
298
298
|
"embla-carousel-angular": "^14.0.0"
|
|
299
299
|
}
|
|
@@ -302,8 +302,8 @@
|
|
|
302
302
|
"internalName": "ui-select-helm",
|
|
303
303
|
"peerDependencies": {
|
|
304
304
|
"@angular/core": "^18.0.0",
|
|
305
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
306
|
-
"@spartan-ng/ui-select-brain": "0.0.1-alpha.
|
|
305
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
306
|
+
"@spartan-ng/ui-select-brain": "0.0.1-alpha.353",
|
|
307
307
|
"class-variance-authority": "^0.6.0",
|
|
308
308
|
"clsx": "^1.2.1"
|
|
309
309
|
}
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"@angular/core": "^18.0.0",
|
|
315
315
|
"@angular/forms": "^18.0.0",
|
|
316
316
|
"@ng-icons/lucide": "^26.3.0",
|
|
317
|
-
"@spartan-ng/ui-core": "0.0.1-alpha.
|
|
317
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
318
318
|
"clsx": "^1.2.1",
|
|
319
319
|
"ngx-sonner": "^2.0.0"
|
|
320
320
|
}
|
|
@@ -325,5 +325,14 @@
|
|
|
325
325
|
"@angular/common": "^17.1.0",
|
|
326
326
|
"@angular/core": "^17.1.0"
|
|
327
327
|
}
|
|
328
|
+
},
|
|
329
|
+
"formfield": {
|
|
330
|
+
"internalName": "ui-form-field-helm",
|
|
331
|
+
"peerDependencies": {
|
|
332
|
+
"@angular/core": "^18.0.0",
|
|
333
|
+
"@spartan-ng/ui-core": "0.0.1-alpha.353",
|
|
334
|
+
"class-variance-authority": "^0.6.0",
|
|
335
|
+
"clsx": "^1.2.1"
|
|
336
|
+
}
|
|
328
337
|
}
|
|
329
338
|
}
|