@morozeckiy/dd-lib 0.6.4 → 0.7.35
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/assets/scss/common.scss +5 -0
- package/assets/scss/titles.scss +22 -0
- package/assets/scss/vars-dark.scss +5 -1
- package/assets/scss/vars-light.scss +3 -0
- package/esm2022/lib/common/lib-common-button.mjs +6 -3
- package/esm2022/lib/common/lib-common-input-text.mjs +28 -2
- package/esm2022/lib/core/dialog/modal-base/modal-base.component.mjs +3 -3
- package/esm2022/lib/core/directives/drop-down-position.directive.mjs +66 -0
- package/esm2022/lib/core/directives/fixed-position.directive.mjs +87 -0
- package/esm2022/lib/core/directives/list-keyboard-navigation.directive.mjs +57 -0
- package/esm2022/lib/core/directives/phone-mask.directive.mjs +34 -0
- package/esm2022/lib/core/directives/selectable-item.directive.mjs +29 -0
- package/esm2022/lib/core/index.mjs +6 -1
- package/esm2022/lib/lib-calendar/lib-calendar.component.mjs +3 -3
- package/esm2022/lib/lib-card/lib-card.component.mjs +3 -3
- package/esm2022/lib/lib-checkbox/lib-checkbox.component.mjs +7 -5
- package/esm2022/lib/lib-date-input/lib-date-input.component.mjs +117 -0
- package/esm2022/lib/lib-date-range/lib-date-range.component.mjs +13 -9
- package/esm2022/lib/lib-disclaimer/lib-disclaimer.component.mjs +26 -0
- package/esm2022/lib/lib-filter-button/lib-filter-button.component.mjs +1 -1
- package/esm2022/lib/lib-input/lib-input.component.mjs +5 -5
- package/esm2022/lib/lib-loader/lib-loader.component.mjs +2 -2
- package/esm2022/lib/lib-period/lib-period.component.mjs +6 -4
- package/esm2022/lib/lib-radio/lib-radio.component.mjs +7 -5
- package/esm2022/lib/lib-search-input/lib-search-input.component.mjs +48 -13
- package/esm2022/lib/lib-select/lib-select.component.mjs +127 -39
- package/esm2022/lib/lib-skeleton/lib-skeleton.component.mjs +3 -3
- package/esm2022/lib/lib-tabs-fragment/lib-tabs-fragment.component.mjs +12 -6
- package/esm2022/lib/lib-textarea/lib-textarea.component.mjs +6 -3
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/morozeckiy-dd-lib.mjs +908 -351
- package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
- package/lib/common/lib-common-button.d.ts +2 -1
- package/lib/common/lib-common-input-text.d.ts +8 -3
- package/lib/core/directives/drop-down-position.directive.d.ts +17 -0
- package/lib/core/directives/fixed-position.directive.d.ts +21 -0
- package/lib/core/directives/list-keyboard-navigation.directive.d.ts +11 -0
- package/lib/core/directives/phone-mask.directive.d.ts +10 -0
- package/lib/core/directives/selectable-item.directive.d.ts +10 -0
- package/lib/core/index.d.ts +5 -0
- package/lib/core/services/validators.service.d.ts +2 -2
- package/lib/lib-card/lib-card.component.d.ts +1 -1
- package/lib/lib-checkbox/lib-checkbox.component.d.ts +3 -1
- package/lib/lib-date-input/lib-date-input.component.d.ts +29 -0
- package/lib/lib-date-range/lib-date-range.component.d.ts +3 -1
- package/lib/lib-disclaimer/lib-disclaimer.component.d.ts +10 -0
- package/lib/lib-input/lib-input.component.d.ts +2 -1
- package/lib/lib-period/lib-period.component.d.ts +3 -2
- package/lib/lib-radio/lib-radio.component.d.ts +3 -1
- package/lib/lib-search-input/lib-search-input.component.d.ts +11 -6
- package/lib/lib-select/lib-select.component.d.ts +17 -7
- package/lib/lib-tabs-fragment/lib-tabs-fragment.component.d.ts +4 -2
- package/lib/lib-textarea/lib-textarea.component.d.ts +2 -1
- package/morozeckiy-dd-lib-0.7.35.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/morozeckiy-dd-lib-0.6.4.tgz +0 -0
|
@@ -8,6 +8,7 @@ export declare abstract class LibCommonButtonComponent {
|
|
|
8
8
|
autofocus: boolean;
|
|
9
9
|
btnColor: 'white' | 'green' | 'red' | 'transparent' | 'dark';
|
|
10
10
|
active: boolean;
|
|
11
|
+
activeNoBlock: boolean;
|
|
11
12
|
disabled: boolean | null;
|
|
12
13
|
showLoader: null | boolean | undefined;
|
|
13
14
|
buttonType: 'submit' | 'reset' | 'button';
|
|
@@ -16,5 +17,5 @@ export declare abstract class LibCommonButtonComponent {
|
|
|
16
17
|
clickEvent: EventEmitter<null>;
|
|
17
18
|
onClick(event: Event): void;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibCommonButtonComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibCommonButtonComponent, "ng-component", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "size": { "alias": "size"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, never, false, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibCommonButtonComponent, "ng-component", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "size": { "alias": "size"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "btnColor": { "alias": "btnColor"; "required": false; }; "active": { "alias": "active"; "required": false; }; "activeNoBlock": { "alias": "activeNoBlock"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, never, false, never>;
|
|
20
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare abstract class LibCommonInputTextComponent {
|
|
4
|
+
export declare abstract class LibCommonInputTextComponent implements AfterViewChecked {
|
|
5
5
|
protected inputSearchElement: ElementRef<HTMLInputElement> | undefined;
|
|
6
6
|
protected inputElement: ElementRef<HTMLInputElement> | undefined;
|
|
7
7
|
protected textAreaElement: ElementRef<HTMLTextAreaElement> | undefined;
|
|
@@ -28,7 +28,7 @@ export declare abstract class LibCommonInputTextComponent {
|
|
|
28
28
|
uppercase: boolean;
|
|
29
29
|
invalid: boolean;
|
|
30
30
|
errorTexts: string[];
|
|
31
|
-
side
|
|
31
|
+
side?: 'top' | 'bottom';
|
|
32
32
|
cleared: EventEmitter<void>;
|
|
33
33
|
fetchEvent: EventEmitter<any>;
|
|
34
34
|
focus: EventEmitter<any>;
|
|
@@ -41,10 +41,14 @@ export declare abstract class LibCommonInputTextComponent {
|
|
|
41
41
|
control: AbstractControl | undefined | null;
|
|
42
42
|
value: string | undefined;
|
|
43
43
|
changeDetection: ChangeDetectorRef;
|
|
44
|
+
dropdownStyle: {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
};
|
|
44
47
|
protected destroyed: boolean;
|
|
45
48
|
protected onTouchedCallback: (() => void) | undefined;
|
|
46
49
|
private _ID;
|
|
47
50
|
protected constructor(changeDetection: ChangeDetectorRef);
|
|
51
|
+
ngAfterViewChecked(): void;
|
|
48
52
|
get invalidState(): boolean;
|
|
49
53
|
get showError(): boolean;
|
|
50
54
|
handleInput(_e: Event): void;
|
|
@@ -58,6 +62,7 @@ export declare abstract class LibCommonInputTextComponent {
|
|
|
58
62
|
registerOnTouched(fn: any): void;
|
|
59
63
|
handleChange(): void;
|
|
60
64
|
commit(_value: string | null | undefined): void;
|
|
65
|
+
updateDropdownPosition(el: ElementRef, data: any[], itemSize: number, dHeight: number): void;
|
|
61
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibCommonInputTextComponent, never>;
|
|
62
67
|
static ɵcmp: i0.ɵɵComponentDeclaration<LibCommonInputTextComponent, "dd-lib-common-input", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "contextClass": { "alias": "contextClass"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "max": { "alias": "max"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "fetchMode": { "alias": "fetchMode"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "commitOnInput": { "alias": "commitOnInput"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "showSelfError": { "alias": "showSelfError"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorTexts": { "alias": "errorTexts"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, { "cleared": "cleared"; "fetchEvent": "fetchEvent"; "focus": "focus"; "blur": "blur"; "fullBlur": "fullBlur"; }, never, never, false, never>;
|
|
63
68
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DropDownPositionDirective implements OnChanges {
|
|
4
|
+
private el;
|
|
5
|
+
private rdr;
|
|
6
|
+
side?: 'top' | 'bottom';
|
|
7
|
+
itemsHeight?: number;
|
|
8
|
+
dropdownHeight: number;
|
|
9
|
+
isShownList?: boolean;
|
|
10
|
+
dropdownId: string;
|
|
11
|
+
constructor(el: ElementRef, rdr: Renderer2);
|
|
12
|
+
onWindowScroll(): void;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
updateDropdownPosition(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropDownPositionDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropDownPositionDirective, "[ddDropDownPosition]", never, { "side": { "alias": "side"; "required": false; }; "itemsHeight": { "alias": "itemsHeight"; "required": false; }; "dropdownHeight": { "alias": "dropdownHeight"; "required": false; }; "isShownList": { "alias": "isShownList"; "required": false; }; "dropdownId": { "alias": "dropdownId"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewChecked, AfterViewInit, ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FixedPositionDirective implements AfterViewChecked, AfterViewInit, OnDestroy {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
childName1: string;
|
|
7
|
+
childName2: string;
|
|
8
|
+
private parentElement;
|
|
9
|
+
private child1;
|
|
10
|
+
private child2;
|
|
11
|
+
private scrollListener;
|
|
12
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
ngAfterViewChecked(): void;
|
|
15
|
+
onScroll(): void;
|
|
16
|
+
private updateChild2Position;
|
|
17
|
+
private shouldPositionAbove;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FixedPositionDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FixedPositionDirective, "[ddFixedPosition]", never, { "childName1": { "alias": "childName1"; "required": false; }; "childName2": { "alias": "childName2"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ListKeyboardNavigationDirective {
|
|
4
|
+
private el;
|
|
5
|
+
private currentIndex;
|
|
6
|
+
constructor(el: ElementRef);
|
|
7
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
8
|
+
private moveFocus;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListKeyboardNavigationDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ListKeyboardNavigationDirective, "[ddListKeyboardNavigation]", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NgControl } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PhoneMaskDirective {
|
|
4
|
+
private control;
|
|
5
|
+
constructor(control: NgControl);
|
|
6
|
+
onFocus(): void;
|
|
7
|
+
onBlur(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneMaskDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneMaskDirective, "[ddPhoneMask]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SelectableItemDirective {
|
|
4
|
+
private el;
|
|
5
|
+
itemSelected: EventEmitter<void>;
|
|
6
|
+
constructor(el: ElementRef);
|
|
7
|
+
onEnter(event: KeyboardEvent): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectableItemDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectableItemDirective, "[ddSelectableItem]", never, {}, { "itemSelected": "itemSelected"; }, never, never, true, never>;
|
|
10
|
+
}
|
package/lib/core/index.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export * from './directives/resize-textarea.directive';
|
|
|
18
18
|
export * from './tooltip/tooltip.directive';
|
|
19
19
|
export * from './tooltip/tooltip.component';
|
|
20
20
|
export * from './directives/triangle.directive';
|
|
21
|
+
export * from './directives/drop-down-position.directive';
|
|
22
|
+
export * from './directives/phone-mask.directive';
|
|
23
|
+
export * from './directives/list-keyboard-navigation.directive';
|
|
24
|
+
export * from './directives/selectable-item.directive';
|
|
25
|
+
export * from './directives/fixed-position.directive';
|
|
21
26
|
export * from './toast/index';
|
|
22
27
|
export * from './dialog/dialog.service';
|
|
23
28
|
export * from './dialog/dialog-config';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
1
|
+
import { AbstractControl, ValidationErrors, Validators } from '@angular/forms';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ValidatorsService {
|
|
@@ -10,7 +10,7 @@ export declare class ValidatorsService {
|
|
|
10
10
|
static wrongLoginOrPswd(): ValidationErrors;
|
|
11
11
|
static existLogin(): ValidationErrors;
|
|
12
12
|
/** валидатор имени*/
|
|
13
|
-
static getNameValid():
|
|
13
|
+
static getNameValid(): (typeof Validators.required)[];
|
|
14
14
|
/** валидатор email*/
|
|
15
15
|
static getMailValid(el?: AbstractControl): Observable<ValidationErrors | null>;
|
|
16
16
|
static getErrorText(error: ValidationErrors | null | undefined): string | undefined;
|
|
@@ -12,5 +12,5 @@ export declare class LibCardComponent {
|
|
|
12
12
|
cardBtnEvent: EventEmitter<undefined>;
|
|
13
13
|
constructor(cdr: ChangeDetectorRef);
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibCardComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibCardComponent, "dd-lib-card", never, { "type": { "alias": "type"; "required": false; }; "footerBtn": { "alias": "footerBtn"; "required": false; }; "sHeight": { "alias": "sHeight"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "parentLvlForSkeleton": { "alias": "parentLvlForSkeleton"; "required": false; }; "plugs": { "alias": "plugs"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; }, { "cardBtnEvent": "cardBtnEvent"; }, never, ["*"], true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibCardComponent, "dd-lib-card", never, { "type": { "alias": "type"; "required": false; }; "footerBtn": { "alias": "footerBtn"; "required": false; }; "sHeight": { "alias": "sHeight"; "required": false; }; "skeleton": { "alias": "skeleton"; "required": false; }; "parentLvlForSkeleton": { "alias": "parentLvlForSkeleton"; "required": false; }; "plugs": { "alias": "plugs"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; }, { "cardBtnEvent": "cardBtnEvent"; }, never, ["*", "*"], true, never>;
|
|
16
16
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LibCheckboxComponent implements OnInit, ControlValueAccessor {
|
|
5
|
+
private cdr;
|
|
5
6
|
static idCounter: number;
|
|
6
7
|
checkboxId: string | undefined;
|
|
7
8
|
required: boolean;
|
|
@@ -13,6 +14,7 @@ export declare class LibCheckboxComponent implements OnInit, ControlValueAccesso
|
|
|
13
14
|
checkEvent: EventEmitter<boolean>;
|
|
14
15
|
focused: boolean | undefined;
|
|
15
16
|
private onTouchedCallback;
|
|
17
|
+
constructor(cdr: ChangeDetectorRef);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
registerOnChange(fn: any): void;
|
|
18
20
|
registerOnTouched(fn: any): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LibDateInputComponent implements ControlValueAccessor, OnInit {
|
|
5
|
+
private cdr;
|
|
6
|
+
static idCounter: number;
|
|
7
|
+
topSide?: boolean;
|
|
8
|
+
dateId?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
isShownCalendar: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
selectedDateStr?: string;
|
|
15
|
+
selectedDate?: Date;
|
|
16
|
+
onTouchedCallback?: (() => void);
|
|
17
|
+
constructor(cdr: ChangeDetectorRef);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
openCalendar(): void;
|
|
20
|
+
closeCalendar(): void;
|
|
21
|
+
setPeriod($event: Date | undefined): void;
|
|
22
|
+
changeStrDate($event: string): void;
|
|
23
|
+
propagateChange(_value: Date | undefined): void;
|
|
24
|
+
registerOnChange(fn: any): void;
|
|
25
|
+
registerOnTouched(fn: any): void;
|
|
26
|
+
writeValue($event: Date): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibDateInputComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibDateInputComponent, "dd-lib-date-input", never, { "topSide": { "alias": "topSide"; "required": false; }; "dateId": { "alias": "dateId"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from "@angular/forms";
|
|
3
3
|
import { IDatePeriod } from "../lib-calendar/lib-calendar.component";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class LibDateRangeComponent implements ControlValueAccessor, OnInit {
|
|
6
|
+
private cdr;
|
|
6
7
|
static idCounter: number;
|
|
7
8
|
rangeId: string | undefined;
|
|
8
9
|
placeholder: string | undefined;
|
|
@@ -13,6 +14,7 @@ export declare class LibDateRangeComponent implements ControlValueAccessor, OnIn
|
|
|
13
14
|
selectedPeriodStr: string | undefined;
|
|
14
15
|
selectedPeriod: IDatePeriod | undefined;
|
|
15
16
|
onTouchedCallback: (() => void) | undefined;
|
|
17
|
+
constructor(cdr: ChangeDetectorRef);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
openCalendar(): void;
|
|
18
20
|
closeCalendar(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibDisclaimerComponent {
|
|
4
|
+
type: 'success' | 'warning' | 'danger' | 'info';
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
template?: TemplateRef<HTMLElement>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibDisclaimerComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibDisclaimerComponent, "dd-lib-disclaimer", never, { "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { AbstractControl, ControlContainer, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
|
|
4
4
|
import { DestroyService } from "../core";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -14,6 +14,7 @@ export declare class LibInputComponent extends LibCommonInputTextComponent imple
|
|
|
14
14
|
shownMaskExpression: string | null;
|
|
15
15
|
mask: string | undefined;
|
|
16
16
|
validation: boolean;
|
|
17
|
+
ngControl: NgControl | null | undefined;
|
|
17
18
|
constructor(destroyed$: DestroyService, changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
changeValueSub(control: AbstractControl): void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { DateService, GetDateBy, PeriodMenuDate, PeriodName } from "../core";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class LibPeriodComponent implements OnInit, ControlValueAccessor {
|
|
6
6
|
private dateService;
|
|
7
|
+
private cdr;
|
|
7
8
|
static idCounter: number;
|
|
8
9
|
maxDate: Date | undefined;
|
|
9
10
|
setPeriodDate: EventEmitter<{
|
|
@@ -25,7 +26,7 @@ export declare class LibPeriodComponent implements OnInit, ControlValueAccessor
|
|
|
25
26
|
idPeriod: string;
|
|
26
27
|
idCalendar: string;
|
|
27
28
|
private onTouchedCallback;
|
|
28
|
-
constructor(dateService: DateService);
|
|
29
|
+
constructor(dateService: DateService, cdr: ChangeDetectorRef);
|
|
29
30
|
ngOnInit(): void;
|
|
30
31
|
registerOnChange(fn: any): void;
|
|
31
32
|
registerOnTouched(fn: any): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LibRadioComponent implements OnInit, ControlValueAccessor {
|
|
5
|
+
private cdr;
|
|
5
6
|
static idCounter: number;
|
|
6
7
|
radioId: string | undefined;
|
|
7
8
|
disabled: boolean;
|
|
@@ -13,6 +14,7 @@ export declare class LibRadioComponent implements OnInit, ControlValueAccessor {
|
|
|
13
14
|
focused: boolean | undefined;
|
|
14
15
|
onTouchedCallback: (() => void) | undefined;
|
|
15
16
|
private modelInitialization;
|
|
17
|
+
constructor(cdr: ChangeDetectorRef);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
onSelected(target: EventTarget | null): void;
|
|
18
20
|
registerOnChange(fn: any): void;
|
|
@@ -66,16 +66,18 @@
|
|
|
66
66
|
* getTitle(item: any)Метод для получения заголовка элемента данных.
|
|
67
67
|
* getDesc(item: any)Метод для получения описания элемента данных.
|
|
68
68
|
* **/
|
|
69
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
69
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
70
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
70
71
|
import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
|
|
71
72
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
72
73
|
import { DestroyService } from "../core";
|
|
73
74
|
import * as i0 from "@angular/core";
|
|
74
|
-
export declare class LibSearchInputComponent<T> extends LibCommonInputTextComponent implements OnInit {
|
|
75
|
+
export declare class LibSearchInputComponent<T> extends LibCommonInputTextComponent implements OnInit, ControlValueAccessor {
|
|
75
76
|
private destroy$;
|
|
76
|
-
private
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
private el;
|
|
78
|
+
cdr: ChangeDetectorRef;
|
|
79
|
+
keyTitle?: string;
|
|
80
|
+
keyDesc?: string;
|
|
79
81
|
styleInput: 'round' | 'standard';
|
|
80
82
|
inputStyle: 'white' | 'gray';
|
|
81
83
|
set searchData(data: T[] | null | undefined);
|
|
@@ -87,8 +89,11 @@ export declare class LibSearchInputComponent<T> extends LibCommonInputTextCompon
|
|
|
87
89
|
selectedItem: EventEmitter<any>;
|
|
88
90
|
keyUp: Subject<KeyboardEvent>;
|
|
89
91
|
data: T[] | null | undefined;
|
|
90
|
-
|
|
92
|
+
itemSize: number;
|
|
93
|
+
constructor(destroy$: DestroyService, el: ElementRef, changeDetection: ChangeDetectorRef, cdr: ChangeDetectorRef);
|
|
94
|
+
onWindowScroll(): void;
|
|
91
95
|
ngOnInit(): void;
|
|
96
|
+
writeValue(value: string): void;
|
|
92
97
|
forceChange(): void;
|
|
93
98
|
onClear(noEmit?: boolean): void;
|
|
94
99
|
onClickSearchItem(item: any): void;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit, WritableSignal } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges, WritableSignal } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
|
|
4
4
|
import { DestroyService, TToolTipPositions } from "../core";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class LibSelectComponent<T> extends LibCommonInputTextComponent implements OnInit, ControlValueAccessor {
|
|
6
|
+
export declare class LibSelectComponent<T> extends LibCommonInputTextComponent implements OnInit, ControlValueAccessor, OnChanges {
|
|
7
7
|
private destroyed$;
|
|
8
|
+
private el;
|
|
8
9
|
private controlContainer;
|
|
9
10
|
static idCounter: number;
|
|
11
|
+
selectEl: ElementRef<HTMLInputElement> | undefined;
|
|
12
|
+
searchInputEl: ElementRef<HTMLInputElement> | undefined;
|
|
10
13
|
set data(d: any | undefined);
|
|
14
|
+
virtualScroll: boolean | undefined;
|
|
11
15
|
multi: boolean | undefined;
|
|
12
16
|
tooltipPosition?: TToolTipPositions;
|
|
13
17
|
highlight: boolean;
|
|
@@ -18,24 +22,30 @@ export declare class LibSelectComponent<T> extends LibCommonInputTextComponent i
|
|
|
18
22
|
keyValue: string;
|
|
19
23
|
placeholder: string;
|
|
20
24
|
selectedItem: EventEmitter<any>;
|
|
25
|
+
selectedItems: EventEmitter<any>;
|
|
21
26
|
checkedItem: any;
|
|
22
|
-
_data: WritableSignal<
|
|
27
|
+
_data: WritableSignal<undefined | any[]>;
|
|
23
28
|
checkedItems: any[];
|
|
24
29
|
inputValue: string | undefined;
|
|
25
30
|
multiCountValue: string | undefined;
|
|
26
31
|
showMultiCountValue: boolean | undefined;
|
|
27
32
|
searchValue: string | undefined;
|
|
28
33
|
isShownList: boolean | undefined;
|
|
34
|
+
initWriteValue: boolean;
|
|
29
35
|
stringArray: WritableSignal<boolean | undefined>;
|
|
30
|
-
|
|
36
|
+
writtenValue: any;
|
|
37
|
+
constructor(destroyed$: DestroyService, changeDetection: ChangeDetectorRef, el: ElementRef, controlContainer: ControlContainer);
|
|
38
|
+
onWindowScroll(): void;
|
|
31
39
|
ngOnInit(): void;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
32
41
|
onClear(checkedItem: any): void;
|
|
33
42
|
changeValueSub(control: AbstractControl): void;
|
|
34
43
|
registerOnChange(fn: any): void;
|
|
35
44
|
registerOnTouched(fn: any): void;
|
|
45
|
+
searchInput($event: Event): void;
|
|
36
46
|
handleInput(e: Event): void;
|
|
37
47
|
notifyFocusEvent(e: Event): void;
|
|
38
|
-
writeValue(value: any): void;
|
|
48
|
+
writeValue(value: any | null | undefined): void;
|
|
39
49
|
selectItem(item: any, cleared?: boolean): void;
|
|
40
50
|
filterList(item: any): any;
|
|
41
51
|
private propagateChange;
|
|
@@ -44,6 +54,6 @@ export declare class LibSelectComponent<T> extends LibCommonInputTextComponent i
|
|
|
44
54
|
checkSelected(item: any): boolean;
|
|
45
55
|
handleBlur(): void;
|
|
46
56
|
handleFocus(): void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LibSelectComponent<any>, [null, null, { optional: true; host: true; skipSelf: true; }]>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibSelectComponent<any>, "dd-lib-select", never, { "data": { "alias": "data"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "highlight": { "alias": "highlight"; "required": false; }; "selectId": { "alias": "selectId"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "keyTitle": { "alias": "keyTitle"; "required": false; }; "keyDesc": { "alias": "keyDesc"; "required": false; }; "keyValue": { "alias": "keyValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "selectedItem": "selectedItem"; }, never, never, true, never>;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibSelectComponent<any>, [null, null, null, { optional: true; host: true; skipSelf: true; }]>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibSelectComponent<any>, "dd-lib-select", never, { "data": { "alias": "data"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "highlight": { "alias": "highlight"; "required": false; }; "selectId": { "alias": "selectId"; "required": false; }; "itemSize": { "alias": "itemSize"; "required": false; }; "keyTitle": { "alias": "keyTitle"; "required": false; }; "keyDesc": { "alias": "keyDesc"; "required": false; }; "keyValue": { "alias": "keyValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; }, never, never, true, never>;
|
|
49
59
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { Location } from '@angular/common';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ITab {
|
|
5
6
|
title: string;
|
|
@@ -13,16 +14,17 @@ export declare class ITab {
|
|
|
13
14
|
}
|
|
14
15
|
export declare class LibTabsFragmentComponent implements OnInit {
|
|
15
16
|
private route;
|
|
17
|
+
private location;
|
|
16
18
|
private router;
|
|
17
19
|
private cdr;
|
|
18
|
-
rout
|
|
20
|
+
rout?: string;
|
|
19
21
|
tabs: ITab[] | undefined;
|
|
20
22
|
tabsFragment: (string | undefined)[] | undefined;
|
|
21
23
|
needInitEvent: boolean | undefined;
|
|
22
24
|
noFragment: boolean | undefined;
|
|
23
25
|
setActiveTab: EventEmitter<number | null>;
|
|
24
26
|
activeFragment: number | null | undefined;
|
|
25
|
-
constructor(route: ActivatedRoute, router: Router, cdr: ChangeDetectorRef);
|
|
27
|
+
constructor(route: ActivatedRoute, location: Location, router: Router, cdr: ChangeDetectorRef);
|
|
26
28
|
ngOnInit(): void;
|
|
27
29
|
checkActiveTab(tab?: ITab): void;
|
|
28
30
|
private getFragment;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlContainer, ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -6,6 +6,7 @@ export declare class LibTextareaComponent extends LibCommonInputTextComponent im
|
|
|
6
6
|
private controlContainer;
|
|
7
7
|
rows: string;
|
|
8
8
|
needCounter: boolean;
|
|
9
|
+
textarea: ElementRef<HTMLInputElement> | undefined;
|
|
9
10
|
constructor(changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
writeValue(value: string | number | null): void;
|
|
Binary file
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -26,8 +26,10 @@ export * from './lib/lib-tabs-fragment/lib-tabs-fragment.component';
|
|
|
26
26
|
export * from './lib/lib-textarea/lib-textarea.component';
|
|
27
27
|
export * from './lib/lib-file-loader/lib-file-loader.component';
|
|
28
28
|
export * from './lib/lib-date-range/lib-date-range.component';
|
|
29
|
+
export * from './lib/lib-date-input/lib-date-input.component';
|
|
29
30
|
export * from './lib/lib-filter/lib-filter.component';
|
|
30
31
|
export * from './lib/lib-info-card/lib-info-card.component';
|
|
32
|
+
export * from './lib/lib-disclaimer/lib-disclaimer.component';
|
|
31
33
|
export * from './lib/utils/decorators';
|
|
32
34
|
export * from './lib/core/index';
|
|
33
35
|
export * from './lib/components/index';
|
|
Binary file
|