@leanix/components 0.4.247 → 0.4.249
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/index.mjs +2 -1
- package/esm2022/lib/forms-ui/components/input/input.component.mjs +3 -3
- package/esm2022/lib/forms-ui/directives/form-error.directive.mjs +4 -4
- package/esm2022/lib/forms-ui/directives/max-length-counter.directive.mjs +132 -0
- package/fesm2022/leanix-components.mjs +132 -7
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/forms-ui/directives/form-error.directive.d.ts +1 -1
- package/lib/forms-ui/directives/max-length-counter.directive.d.ts +25 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -94,6 +94,7 @@ export * from './lib/forms-ui/directives/mark-invalid.directive';
|
|
94
94
|
export * from './lib/forms-ui/directives/select-dropdown.directive';
|
95
95
|
export * from './lib/forms-ui/directives/selectable-item.directive';
|
96
96
|
export * from './lib/forms-ui/directives/selected-option.directive';
|
97
|
+
export * from './lib/forms-ui/directives/max-length-counter.directive';
|
97
98
|
export * from './lib/forms-ui/models/base-select.directive';
|
98
99
|
export * from './lib/forms-ui/models/single-select-padding.interface';
|
99
100
|
export * from './lib/forms-ui/models/sorting.interface';
|
@@ -25,7 +25,7 @@ export declare class FormErrorDirective implements OnInit, OnDestroy {
|
|
25
25
|
private strategy?;
|
26
26
|
ctrl?: AbstractControl | '';
|
27
27
|
controlName?: string;
|
28
|
-
private
|
28
|
+
private subscription?;
|
29
29
|
private ref?;
|
30
30
|
private get control();
|
31
31
|
private get name();
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { ElementRef, OnInit, Renderer2, OnDestroy } from '@angular/core';
|
2
|
+
import { NgControl } from '@angular/forms';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class MaxLengthCounterDirective implements OnInit, OnDestroy {
|
5
|
+
private el;
|
6
|
+
private renderer;
|
7
|
+
private ngControl;
|
8
|
+
lxMaxLengthCounter: number | null;
|
9
|
+
lxMaxLengthCounterRef?: HTMLSpanElement;
|
10
|
+
private counterElement;
|
11
|
+
private destroy$;
|
12
|
+
constructor(el: ElementRef, renderer: Renderer2, ngControl: NgControl);
|
13
|
+
ngOnInit(): void;
|
14
|
+
ngOnDestroy(): void;
|
15
|
+
private setupMaxLengthValidation;
|
16
|
+
private getMaxLength;
|
17
|
+
private connectCounter;
|
18
|
+
private createCounter;
|
19
|
+
private updateCounter;
|
20
|
+
private subscribeToValueChanges;
|
21
|
+
private setupInputRestriction;
|
22
|
+
private checkForInitialOversize;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaxLengthCounterDirective, [null, null, { self: true; }]>;
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxLengthCounterDirective, "[lxMaxLengthCounter]", never, { "lxMaxLengthCounter": { "alias": "lxMaxLengthCounter"; "required": false; }; "lxMaxLengthCounterRef": { "alias": "lxMaxLengthCounterRef"; "required": false; }; }, {}, never, never, true, never>;
|
25
|
+
}
|