@leanix/components 0.4.353 → 0.4.355
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/esm2022/lib/forms-ui/components/error-message/error-message.component.mjs +10 -19
- package/esm2022/lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component.mjs +4 -4
- package/esm2022/lib/forms-ui/directives/form-error.directive.mjs +25 -14
- package/esm2022/lib/forms-ui/forms-ui.module.mjs +2 -3
- package/fesm2022/leanix-components.mjs +32 -30
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/lib/forms-ui/components/error-message/error-message.component.d.ts +4 -6
- package/lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component.d.ts +1 -1
- package/lib/forms-ui/directives/form-error.directive.d.ts +7 -6
- package/package.json +1 -1
@@ -1,10 +1,8 @@
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
2
1
|
import * as i0 from "@angular/core";
|
3
2
|
export declare class ErrorMessageComponent {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
constructor(cd: ChangeDetectorRef);
|
3
|
+
readonly dynamicErrorMessage: import("@angular/core").WritableSignal<string>;
|
4
|
+
private readonly wrapper;
|
5
|
+
protected computedErrorMessage: import("@angular/core").Signal<string>;
|
8
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessageComponent, never>;
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMessageComponent, "lx-error-message", never, {
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMessageComponent, "lx-error-message", never, {}, {}, never, ["*"], true, never>;
|
10
8
|
}
|
@@ -17,7 +17,7 @@ export declare class SortingDropdownComponent implements OnInit {
|
|
17
17
|
ngOnInit(): void;
|
18
18
|
applySortingMode(sort: Sorting): void;
|
19
19
|
applySortingDirection(sortDirection: SortingOrder): void;
|
20
|
-
getSortLabel(key: string
|
20
|
+
getSortLabel(key: string): `sorting.${string}.label`;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortingDropdownComponent, never>;
|
22
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<SortingDropdownComponent, "lx-sorting-dropdown", never, { "currentSorting": { "alias": "currentSorting"; "required": false; }; "sortingOptions": { "alias": "sortingOptions"; "required": false; }; "showDirectionOptions": { "alias": "showDirectionOptions"; "required": false; }; }, { "apply": "apply"; }, never, never, true, never>;
|
23
23
|
}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { ComponentFactoryResolver,
|
1
|
+
import { ComponentFactoryResolver, DestroyRef, InjectionToken, OnInit, ViewContainerRef } from '@angular/core';
|
2
2
|
import { AbstractControl, NgControl } from '@angular/forms';
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
3
4
|
import { FormSubmitDirective } from './form-submit.directive';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export type FormControlErrorDisplayStrategy = (obj: {
|
@@ -16,25 +17,25 @@ export declare const provideFormControlErrorDisplayStrategy: (fn: FormControlErr
|
|
16
17
|
provide: InjectionToken<FormControlErrorDisplayStrategy>;
|
17
18
|
useValue: FormControlErrorDisplayStrategy;
|
18
19
|
};
|
19
|
-
export declare class FormErrorDirective implements OnInit
|
20
|
+
export declare class FormErrorDirective implements OnInit {
|
20
21
|
private viewContainer;
|
21
22
|
private componentFactoryResolver;
|
23
|
+
private translateService;
|
24
|
+
private destroyRef;
|
22
25
|
private ngControl?;
|
23
26
|
private formSubmitDirective?;
|
24
27
|
private namespace?;
|
25
28
|
private strategy?;
|
26
29
|
ctrl?: AbstractControl | '';
|
27
30
|
controlName?: string;
|
28
|
-
private subscription?;
|
29
31
|
private ref?;
|
30
32
|
private get control();
|
31
33
|
private get name();
|
32
34
|
private get formSubmitted();
|
33
|
-
constructor(viewContainer: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, ngControl?: NgControl | undefined, formSubmitDirective?: FormSubmitDirective | undefined, namespace?: string | undefined, strategy?: FormControlErrorDisplayStrategy | undefined);
|
35
|
+
constructor(viewContainer: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, translateService: TranslateService, destroyRef: DestroyRef, ngControl?: NgControl | undefined, formSubmitDirective?: FormSubmitDirective | undefined, namespace?: string | undefined, strategy?: FormControlErrorDisplayStrategy | undefined);
|
34
36
|
ngOnInit(): void;
|
35
37
|
private buildTranslationKey;
|
36
38
|
private setError;
|
37
|
-
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorDirective, [null, null, { optional: true; self: true; }, { optional: true; host: true; }, { optional: true; }, { optional: true; }]>;
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorDirective, [null, null, null, null, { optional: true; self: true; }, { optional: true; host: true; }, { optional: true; }, { optional: true; }]>;
|
39
40
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormErrorDirective, "[lxFormError]", never, { "ctrl": { "alias": "lxFormError"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; }, {}, never, never, true, never>;
|
40
41
|
}
|