@morozeckiy/dd-lib 0.7.92 → 0.7.94
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/fesm2022/morozeckiy-dd-lib.mjs +126 -68
- package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
- package/lib/core/services/validators.service.d.ts +2 -2
- package/lib/lib-tabs-fragment/lib-tabs-fragment.component.d.ts +16 -6
- package/morozeckiy-dd-lib-0.7.94.tgz +0 -0
- package/package.json +1 -1
- package/morozeckiy-dd-lib-0.7.92.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors
|
|
1
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ValidatorsService {
|
|
4
4
|
constructor();
|
|
@@ -9,7 +9,7 @@ export declare class ValidatorsService {
|
|
|
9
9
|
static wrongLoginOrPswd(): ValidationErrors;
|
|
10
10
|
static existLogin(): ValidationErrors;
|
|
11
11
|
/** валидатор имени*/
|
|
12
|
-
static getNameValid(): (
|
|
12
|
+
static getNameValid(): import("@angular/forms").ValidatorFn[];
|
|
13
13
|
/** валидатор email*/
|
|
14
14
|
static getMailValid(el?: AbstractControl): ValidationErrors | null;
|
|
15
15
|
static getErrorText(error: ValidationErrors | null | undefined): string | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { Location } from '@angular/common';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ITab {
|
|
6
7
|
title: string;
|
|
@@ -12,21 +13,30 @@ export declare class ITab {
|
|
|
12
13
|
type?: 1 | 2;
|
|
13
14
|
constructor(body: any);
|
|
14
15
|
}
|
|
15
|
-
export declare class LibTabsFragmentComponent implements OnInit {
|
|
16
|
-
private location;
|
|
16
|
+
export declare class LibTabsFragmentComponent implements OnInit, ControlValueAccessor {
|
|
17
17
|
private router;
|
|
18
18
|
private cdr;
|
|
19
|
+
private location;
|
|
20
|
+
private route;
|
|
19
21
|
rout?: string;
|
|
20
22
|
tabs: ITab[] | undefined;
|
|
21
23
|
tabsFragment: (string | undefined)[] | undefined;
|
|
22
24
|
needInitEvent: boolean | undefined;
|
|
23
25
|
noFragment: boolean | undefined;
|
|
26
|
+
callEvent: boolean;
|
|
24
27
|
setActiveTab: EventEmitter<number | null>;
|
|
25
28
|
activeFragment: number | null | undefined;
|
|
26
|
-
|
|
29
|
+
private _selectedTab;
|
|
30
|
+
private onChange;
|
|
31
|
+
private onTouched;
|
|
32
|
+
constructor(router: Router, cdr: ChangeDetectorRef, location: Location, route: ActivatedRoute);
|
|
27
33
|
ngOnInit(): void;
|
|
28
|
-
|
|
34
|
+
writeValue(value: ITab | number | null): void;
|
|
35
|
+
registerOnChange(fn: any): void;
|
|
36
|
+
registerOnTouched(fn: any): void;
|
|
37
|
+
checkActiveTab(tab?: ITab, callEvent?: boolean): void;
|
|
38
|
+
private handleTabSelection;
|
|
29
39
|
private getFragment;
|
|
30
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTabsFragmentComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibTabsFragmentComponent, "dd-lib-tabs-fragment", never, { "rout": { "alias": "rout"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "tabsFragment": { "alias": "tabsFragment"; "required": false; }; "needInitEvent": { "alias": "needInitEvent"; "required": false; }; "noFragment": { "alias": "noFragment"; "required": false; }; }, { "setActiveTab": "setActiveTab"; }, never, never, true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibTabsFragmentComponent, "dd-lib-tabs-fragment", never, { "rout": { "alias": "rout"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "tabsFragment": { "alias": "tabsFragment"; "required": false; }; "needInitEvent": { "alias": "needInitEvent"; "required": false; }; "noFragment": { "alias": "noFragment"; "required": false; }; "callEvent": { "alias": "callEvent"; "required": false; }; }, { "setActiveTab": "setActiveTab"; }, never, never, true, never>;
|
|
32
42
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|