@spartan-ng/cli 0.0.1-alpha.361 → 0.0.1-alpha.362
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/theme/libs/supported-theme-generator-map.js +24 -0
- package/src/generators/theme/libs/supported-theme-generator-map.js.map +1 -1
- package/src/generators/ui/add-dependent-primitive.d.ts +1 -0
- package/src/generators/ui/add-dependent-primitive.js +36 -0
- package/src/generators/ui/add-dependent-primitive.js.map +1 -0
- package/src/generators/ui/generator.js +3 -49
- package/src/generators/ui/generator.js.map +1 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/index.ts.template +3 -3
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.component.ts.template +38 -0
- package/src/generators/ui/libs/ui-button-helm/files/.DS_Store.template +0 -0
- package/src/generators/ui/libs/ui-dialog-helm/files/.DS_Store.template +0 -0
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-pagination-helm/files/index.ts.template +6 -6
- package/src/generators/ui/libs/ui-slider-helm/files/index.ts.template +11 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-input.directive.ts.template +19 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-thumb.directive.ts.template +27 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-mark.directive.ts.template +29 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-tick-marks.directive.ts.template +17 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active-fill.directive.ts.template +26 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-active.directive.ts.template +20 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track-inactive.directive.ts.template +20 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider-track.component.ts.template +55 -0
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +28 -0
- package/src/generators/ui/libs/{ui-form-field → ui-slider-helm}/generator.js +1 -1
- package/src/generators/ui/libs/ui-slider-helm/generator.js.map +1 -0
- package/src/generators/ui/primivite-deps.d.ts +3 -0
- package/src/generators/ui/primivite-deps.js +58 -0
- package/src/generators/ui/primivite-deps.js.map +1 -0
- package/src/generators/ui/primivites.d.ts +1 -0
- package/src/generators/ui/primivites.js +3 -0
- package/src/generators/ui/primivites.js.map +1 -0
- package/src/generators/ui/supported-ui-libraries.json +71 -61
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.directive.ts.template +0 -25
- package/src/generators/ui/libs/ui-form-field/files/index.ts.template +0 -14
- package/src/generators/ui/libs/ui-form-field/files/lib/directives/hlm-error.directive.ts.template +0 -10
- package/src/generators/ui/libs/ui-form-field/files/lib/directives/hlm-hint.directive.ts.template +0 -10
- package/src/generators/ui/libs/ui-form-field/files/lib/hlm-form-field.component.ts.template +0 -41
- package/src/generators/ui/libs/ui-form-field/generator.js.map +0 -1
- /package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-ellipsis.componet.ts.template → hlm-pagination-ellipsis.component.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-next.componet.ts.template → hlm-pagination-next.component.ts.template} +0 -0
- /package/src/generators/ui/libs/ui-pagination-helm/files/lib/{hlm-pagination-previous.componet.ts.template → hlm-pagination-previous.component.ts.template} +0 -0
- /package/src/generators/ui/libs/{ui-form-field → ui-slider-helm}/generator.d.ts +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Directive, computed, inject, input } from '@angular/core';
|
|
2
|
-
import { BrnAccordionContentComponent } from '@spartan-ng/ui-accordion-brain';
|
|
3
|
-
import { hlm } from '@spartan-ng/ui-core';
|
|
4
|
-
import type { ClassValue } from 'clsx';
|
|
5
|
-
|
|
6
|
-
@Directive({
|
|
7
|
-
selector: '[hlmAccordionContent],brn-accordion-content [hlm], hlm-accordion-content:not(notHlm)',
|
|
8
|
-
standalone: true,
|
|
9
|
-
host: {
|
|
10
|
-
'[class]': '_computedClass()',
|
|
11
|
-
},
|
|
12
|
-
})
|
|
13
|
-
export class HlmAccordionContentDirective {
|
|
14
|
-
private readonly _brn = inject(BrnAccordionContentComponent, { optional: true });
|
|
15
|
-
|
|
16
|
-
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
17
|
-
protected readonly _computedClass = computed(() => {
|
|
18
|
-
const gridRows = this._brn?.state() === 'open' ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]';
|
|
19
|
-
return hlm('text-sm transition-all grid', gridRows, this.userClass());
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
constructor() {
|
|
23
|
-
this._brn?.setClassToCustomElement('pt-1 pb-4');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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 {}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|