@leanix/components 0.2.108 → 0.2.112

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export * from './lib/forms-ui/components/currency/currency-symbol.component';
45
45
  export * from './lib/forms-ui/components/currency/currency-symbol-map.constant';
46
46
  export * from './lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.component';
47
47
  export * from './lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list-item/drag-and-drop-list-item.component';
48
+ export * from './lib/forms-ui/components/error-message/error-message.component';
48
49
  export * from './lib/forms-ui/components/form-error/form-error.component';
49
50
  export * from './lib/forms-ui/components/icon/icon.component';
50
51
  export * from './lib/forms-ui/components/multi-select/multi-select.component';
@@ -72,6 +73,7 @@ export * from './lib/forms-ui/directives/mark-invalid.directive';
72
73
  export * from './lib/forms-ui/directives/select-dropdown.directive';
73
74
  export * from './lib/forms-ui/directives/selectable-item.directive';
74
75
  export * from './lib/forms-ui/directives/selected-option.directive';
76
+ export * from './lib/forms-ui/directives/form-error.directive';
75
77
  export * from './lib/forms-ui/models/base-select.directive';
76
78
  export * from './lib/forms-ui/models/sorting.interface';
77
79
  export * from './lib/forms-ui/models/single-select-padding.interface';
@@ -0,0 +1,10 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ErrorMessageComponent {
4
+ private cd;
5
+ _key?: string;
6
+ set key(value: string | undefined);
7
+ constructor(cd: ChangeDetectorRef);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessageComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorMessageComponent, "lx-error-message", never, { "key": "key"; }, {}, never, never>;
10
+ }
@@ -0,0 +1,34 @@
1
+ import { ComponentFactoryResolver, InjectionToken, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
+ import { AbstractControl, NgControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare type FormControlErrorDisplayStrategy = (ctrl: AbstractControl) => boolean;
5
+ export declare const FORM_CONTROL_ERROR_NAMESPACE: InjectionToken<string>;
6
+ export declare const FORM_CONTROL_ERROR_DISPLAY_STRATEGY: InjectionToken<FormControlErrorDisplayStrategy>;
7
+ export declare const provideFormControlErrorNamespace: (namespace: string) => {
8
+ provide: InjectionToken<string>;
9
+ useValue: string;
10
+ };
11
+ export declare const provideFormControlErrorDisplayStrategy: (fn: FormControlErrorDisplayStrategy) => {
12
+ provide: InjectionToken<FormControlErrorDisplayStrategy>;
13
+ useValue: FormControlErrorDisplayStrategy;
14
+ };
15
+ export declare class FormErrorDirective implements OnInit, OnDestroy {
16
+ private viewContainer;
17
+ private componentFactoryResolver;
18
+ private ngControl;
19
+ private namespace;
20
+ private strategy;
21
+ ctrl?: AbstractControl;
22
+ controlName?: string;
23
+ private subscritpion?;
24
+ private ref?;
25
+ private get control();
26
+ private get name();
27
+ constructor(viewContainer: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, ngControl: NgControl, namespace: string, strategy: FormControlErrorDisplayStrategy);
28
+ ngOnInit(): void;
29
+ private buildTranslationKey;
30
+ private setError;
31
+ ngOnDestroy(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorDirective, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormErrorDirective, "[lxFormError]", never, { "ctrl": "lxFormError"; "controlName": "controlName"; }, {}, never>;
34
+ }
@@ -35,16 +35,18 @@ import * as i33 from "./components/sorting-dropdown/sorting-dropdown.component";
35
35
  import * as i34 from "./components/sorting-dropdown-trigger/sorting-dropdown-trigger.component";
36
36
  import * as i35 from "./components/input/input.component";
37
37
  import * as i36 from "./pipes/format-number.pipe";
38
- import * as i37 from "@angular/common";
39
- import * as i38 from "@angular/cdk/drag-drop";
40
- import * as i39 from "@angular/forms";
41
- import * as i40 from "@ngx-translate/core";
42
- import * as i41 from "ngx-bootstrap/datepicker";
43
- import * as i42 from "ngx-infinite-scroll";
44
- import * as i43 from "@angular/cdk/overlay";
45
- import * as i44 from "../core-ui/core-ui.module";
38
+ import * as i37 from "./directives/form-error.directive";
39
+ import * as i38 from "./components/error-message/error-message.component";
40
+ import * as i39 from "@angular/common";
41
+ import * as i40 from "@angular/cdk/drag-drop";
42
+ import * as i41 from "@angular/forms";
43
+ import * as i42 from "@ngx-translate/core";
44
+ import * as i43 from "ngx-bootstrap/datepicker";
45
+ import * as i44 from "ngx-infinite-scroll";
46
+ import * as i45 from "@angular/cdk/overlay";
47
+ import * as i46 from "../core-ui/core-ui.module";
46
48
  export declare class LxFormsModule {
47
49
  static ɵfac: i0.ɵɵFactoryDeclaration<LxFormsModule, never>;
48
- static ɵmod: i0.ɵɵNgModuleDeclaration<LxFormsModule, [typeof i1.BasicDropdownComponent, typeof i2.BasicDropdownItemComponent, typeof i3.CurrencyInputComponent, typeof i4.CurrencySymbolComponent, typeof i5.DateInputComponent, typeof i6.DragAndDropListComponent, typeof i7.DragAndDropListItemComponent, typeof i8.FilterSelectionPipe, typeof i9.FilterTermPipe, typeof i10.FormErrorComponent, typeof i11.IconComponent, typeof i12.KeyboardActionSourceDirective, typeof i13.MarkInvalidDirective, typeof i14.MultiSelectComponent, typeof i15.OptionComponent, typeof i16.OptionGroupComponent, typeof i17.OptionGroupDropdownComponent, typeof i18.OptionsDropdownComponent, typeof i19.OptionsSubDropdownComponent, typeof i20.CdkOptionsDropdownComponent, typeof i21.CdkOptionsSubDropdownComponent, typeof i22.PickerComponent, typeof i23.PickerOptionComponent, typeof i24.PickerTriggerDirective, typeof i25.PillListComponent, typeof i26.PillItemComponent, typeof i27.ResponsiveInputComponent, typeof i28.SelectableItemDirective, typeof i29.SelectedOptionDirective, typeof i30.SelectDropdownDirective, typeof i31.SingleSelectComponent, typeof i32.SliderToggleComponent, typeof i33.SortingDropdownComponent, typeof i34.SortingDropdownTriggerComponent, typeof i35.InputComponent, typeof i36.FormatNumberPipe], [typeof i37.CommonModule, typeof i38.DragDropModule, typeof i39.FormsModule, typeof i39.ReactiveFormsModule, typeof i40.TranslateModule, typeof i41.DatepickerModule, typeof i42.InfiniteScrollModule, typeof i43.OverlayModule, typeof i44.LxCoreUiModule], [typeof i1.BasicDropdownComponent, typeof i2.BasicDropdownItemComponent, typeof i3.CurrencyInputComponent, typeof i4.CurrencySymbolComponent, typeof i5.DateInputComponent, typeof i6.DragAndDropListComponent, typeof i7.DragAndDropListItemComponent, typeof i8.FilterSelectionPipe, typeof i9.FilterTermPipe, typeof i10.FormErrorComponent, typeof i11.IconComponent, typeof i12.KeyboardActionSourceDirective, typeof i13.MarkInvalidDirective, typeof i14.MultiSelectComponent, typeof i15.OptionComponent, typeof i16.OptionGroupComponent, typeof i17.OptionGroupDropdownComponent, typeof i18.OptionsDropdownComponent, typeof i19.OptionsSubDropdownComponent, typeof i20.CdkOptionsDropdownComponent, typeof i21.CdkOptionsSubDropdownComponent, typeof i22.PickerComponent, typeof i23.PickerOptionComponent, typeof i24.PickerTriggerDirective, typeof i25.PillListComponent, typeof i26.PillItemComponent, typeof i27.ResponsiveInputComponent, typeof i28.SelectableItemDirective, typeof i30.SelectDropdownDirective, typeof i29.SelectedOptionDirective, typeof i31.SingleSelectComponent, typeof i32.SliderToggleComponent, typeof i33.SortingDropdownComponent, typeof i34.SortingDropdownTriggerComponent, typeof i36.FormatNumberPipe]>;
50
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LxFormsModule, [typeof i1.BasicDropdownComponent, typeof i2.BasicDropdownItemComponent, typeof i3.CurrencyInputComponent, typeof i4.CurrencySymbolComponent, typeof i5.DateInputComponent, typeof i6.DragAndDropListComponent, typeof i7.DragAndDropListItemComponent, typeof i8.FilterSelectionPipe, typeof i9.FilterTermPipe, typeof i10.FormErrorComponent, typeof i11.IconComponent, typeof i12.KeyboardActionSourceDirective, typeof i13.MarkInvalidDirective, typeof i14.MultiSelectComponent, typeof i15.OptionComponent, typeof i16.OptionGroupComponent, typeof i17.OptionGroupDropdownComponent, typeof i18.OptionsDropdownComponent, typeof i19.OptionsSubDropdownComponent, typeof i20.CdkOptionsDropdownComponent, typeof i21.CdkOptionsSubDropdownComponent, typeof i22.PickerComponent, typeof i23.PickerOptionComponent, typeof i24.PickerTriggerDirective, typeof i25.PillListComponent, typeof i26.PillItemComponent, typeof i27.ResponsiveInputComponent, typeof i28.SelectableItemDirective, typeof i29.SelectedOptionDirective, typeof i30.SelectDropdownDirective, typeof i31.SingleSelectComponent, typeof i32.SliderToggleComponent, typeof i33.SortingDropdownComponent, typeof i34.SortingDropdownTriggerComponent, typeof i35.InputComponent, typeof i36.FormatNumberPipe, typeof i37.FormErrorDirective, typeof i38.ErrorMessageComponent], [typeof i39.CommonModule, typeof i40.DragDropModule, typeof i41.FormsModule, typeof i41.ReactiveFormsModule, typeof i42.TranslateModule, typeof i43.DatepickerModule, typeof i44.InfiniteScrollModule, typeof i45.OverlayModule, typeof i46.LxCoreUiModule], [typeof i1.BasicDropdownComponent, typeof i2.BasicDropdownItemComponent, typeof i3.CurrencyInputComponent, typeof i4.CurrencySymbolComponent, typeof i5.DateInputComponent, typeof i6.DragAndDropListComponent, typeof i7.DragAndDropListItemComponent, typeof i8.FilterSelectionPipe, typeof i9.FilterTermPipe, typeof i10.FormErrorComponent, typeof i11.IconComponent, typeof i12.KeyboardActionSourceDirective, typeof i13.MarkInvalidDirective, typeof i14.MultiSelectComponent, typeof i15.OptionComponent, typeof i16.OptionGroupComponent, typeof i17.OptionGroupDropdownComponent, typeof i18.OptionsDropdownComponent, typeof i19.OptionsSubDropdownComponent, typeof i20.CdkOptionsDropdownComponent, typeof i21.CdkOptionsSubDropdownComponent, typeof i22.PickerComponent, typeof i23.PickerOptionComponent, typeof i24.PickerTriggerDirective, typeof i25.PillListComponent, typeof i26.PillItemComponent, typeof i27.ResponsiveInputComponent, typeof i28.SelectableItemDirective, typeof i30.SelectDropdownDirective, typeof i29.SelectedOptionDirective, typeof i31.SingleSelectComponent, typeof i32.SliderToggleComponent, typeof i33.SortingDropdownComponent, typeof i34.SortingDropdownTriggerComponent, typeof i36.FormatNumberPipe, typeof i37.FormErrorDirective, typeof i38.ErrorMessageComponent]>;
49
51
  static ɵinj: i0.ɵɵInjectorDeclaration<LxFormsModule>;
50
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.2.108",
3
+ "version": "0.2.112",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {