@morozeckiy/dd-lib 0.3.0 → 0.4.26
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 +1 -1
- package/esm2022/lib/common/lib-common-input-text.mjs +2 -2
- package/esm2022/lib/core/dialog/modal-base/modal-base.component.mjs +10 -3
- package/esm2022/lib/core/directives/counter.directive.mjs +16 -4
- package/esm2022/lib/core/services/fetcher.service.mjs +36 -50
- package/esm2022/lib/core/toast/toast/toast.component.mjs +6 -9
- package/esm2022/lib/core/toast/toast-config.mjs +3 -1
- package/esm2022/lib/core/toast/toast.service.mjs +7 -5
- package/esm2022/lib/core/tooltip/tooltip.directive.mjs +75 -33
- package/esm2022/lib/lib-button/lib-button.component.mjs +3 -7
- package/esm2022/lib/lib-checkbox/lib-checkbox.component.mjs +9 -10
- package/esm2022/lib/lib-date-range/lib-date-range.component.mjs +3 -8
- package/esm2022/lib/lib-file-loader/lib-file-loader.component.mjs +31 -10
- package/esm2022/lib/lib-file-upload/lib-file-upload.component.mjs +21 -6
- package/esm2022/lib/lib-filter-button/lib-filter-button.component.mjs +2 -2
- package/esm2022/lib/lib-info-card/lib-info-card.component.mjs +30 -0
- package/esm2022/lib/lib-input/lib-input.component.mjs +21 -8
- package/esm2022/lib/lib-loader/lib-loader.component.mjs +6 -3
- package/esm2022/lib/lib-radio/lib-radio.component.mjs +3 -3
- package/esm2022/lib/lib-select/lib-select.component.mjs +25 -10
- package/esm2022/lib/lib-textarea/lib-textarea.component.mjs +10 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/morozeckiy-dd-lib.mjs +290 -151
- package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
- package/lib/core/dialog/modal-base/modal-base.component.d.ts +3 -1
- package/lib/core/directives/counter.directive.d.ts +4 -1
- package/lib/core/services/fetcher.service.d.ts +33 -9
- package/lib/core/toast/toast/toast.component.d.ts +2 -2
- package/lib/core/toast/toast-config.d.ts +1 -1
- package/lib/core/toast/toast.service.d.ts +1 -1
- package/lib/core/tooltip/tooltip.directive.d.ts +4 -1
- package/lib/lib-button/lib-button.component.d.ts +1 -1
- package/lib/lib-checkbox/lib-checkbox.component.d.ts +3 -4
- package/lib/lib-date-range/lib-date-range.component.d.ts +0 -1
- package/lib/lib-file-loader/lib-file-loader.component.d.ts +8 -4
- package/lib/lib-file-upload/lib-file-upload.component.d.ts +9 -4
- package/lib/lib-info-card/lib-info-card.component.d.ts +12 -0
- package/lib/lib-input/lib-input.component.d.ts +7 -3
- package/lib/lib-loader/lib-loader.component.d.ts +1 -0
- package/lib/lib-select/lib-select.component.d.ts +7 -4
- package/lib/lib-textarea/lib-textarea.component.d.ts +5 -3
- package/morozeckiy-dd-lib-0.4.26.tgz +0 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/morozeckiy-dd-lib-0.3.0.tgz +0 -0
|
@@ -10,6 +10,8 @@ export declare class ModalBaseComponent {
|
|
|
10
10
|
component: Type<any> | null | undefined;
|
|
11
11
|
clearFragment: boolean;
|
|
12
12
|
borderMobile: boolean;
|
|
13
|
+
showLoader: null | boolean | undefined;
|
|
14
|
+
showContentLoader: null | boolean | undefined;
|
|
13
15
|
data: any;
|
|
14
16
|
destroy: (() => {}) | undefined;
|
|
15
17
|
constructor(route: ActivatedRoute, router: Router, dialog: DDDialogRef<ModalBaseComponent>);
|
|
@@ -17,5 +19,5 @@ export declare class ModalBaseComponent {
|
|
|
17
19
|
afterDestroy: () => void;
|
|
18
20
|
close(): void;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalBaseComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalBaseComponent, "dd-modal-base", never, { "content": { "alias": "content"; "required": false; }; "component": { "alias": "component"; "required": false; }; "clearFragment": { "alias": "clearFragment"; "required": false; }; "borderMobile": { "alias": "borderMobile"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalBaseComponent, "dd-modal-base", never, { "content": { "alias": "content"; "required": false; }; "component": { "alias": "component"; "required": false; }; "clearFragment": { "alias": "clearFragment"; "required": false; }; "borderMobile": { "alias": "borderMobile"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "showContentLoader": { "alias": "showContentLoader"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
21
23
|
}
|
|
@@ -4,8 +4,11 @@ export declare class CounterDirective implements OnChanges {
|
|
|
4
4
|
private el;
|
|
5
5
|
ddCounter: number | undefined;
|
|
6
6
|
needPositive: boolean;
|
|
7
|
+
digitsInfo: string;
|
|
8
|
+
prefix?: string;
|
|
9
|
+
postfix?: string;
|
|
7
10
|
constructor(el: ElementRef);
|
|
8
11
|
ngOnChanges(change: SimpleChanges): void;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CounterDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CounterDirective, "[ddCounter]", never, { "ddCounter": { "alias": "ddCounter"; "required": false; }; "needPositive": { "alias": "needPositive"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CounterDirective, "[ddCounter]", never, { "ddCounter": { "alias": "ddCounter"; "required": false; }; "needPositive": { "alias": "needPositive"; "required": false; }; "digitsInfo": { "alias": "digitsInfo"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "postfix": { "alias": "postfix"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
1
|
+
import { HttpClient, HttpContext, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface HttpIResponse<T> {
|
|
@@ -10,23 +10,47 @@ export interface HttpIResponse<T> {
|
|
|
10
10
|
result: 'OK' | 'ERROR' | 'FAIL';
|
|
11
11
|
value: T;
|
|
12
12
|
}
|
|
13
|
+
export interface HttpIRequest {
|
|
14
|
+
headers?: HttpHeaders | {
|
|
15
|
+
[header: string]: string | string[];
|
|
16
|
+
};
|
|
17
|
+
observe: 'response';
|
|
18
|
+
context?: HttpContext;
|
|
19
|
+
params?: HttpParams | {
|
|
20
|
+
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
21
|
+
};
|
|
22
|
+
reportProgress?: boolean;
|
|
23
|
+
responseType?: 'json';
|
|
24
|
+
withCredentials?: boolean;
|
|
25
|
+
transferCache?: {
|
|
26
|
+
includeHeaders?: string[];
|
|
27
|
+
} | boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface IRequestOptions {
|
|
30
|
+
headers?: any;
|
|
31
|
+
context?: any;
|
|
32
|
+
reportProgress?: boolean;
|
|
33
|
+
params?: any;
|
|
34
|
+
observe?: any;
|
|
35
|
+
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
36
|
+
withCredentials?: boolean;
|
|
37
|
+
body?: any | null;
|
|
38
|
+
}
|
|
13
39
|
export declare class FetcherService {
|
|
14
40
|
private http;
|
|
15
41
|
private apiUrl;
|
|
16
42
|
private readonly payloadMethods;
|
|
17
43
|
constructor(http: HttpClient, apiUrl?: string);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
put<R>(urlParts: string
|
|
24
|
-
delete<R>(urlParts: string[] | string, options?: any): Observable<R>;
|
|
44
|
+
private prepareOptions;
|
|
45
|
+
private getUrl;
|
|
46
|
+
get<R>(urlParts: string, options?: IRequestOptions, urlId?: string | number): Observable<R>;
|
|
47
|
+
delete<R>(urlParts: string, options?: IRequestOptions): Observable<R>;
|
|
48
|
+
post<R>(urlParts: string, body?: any, options?: IRequestOptions, urlId?: string | number): Observable<R>;
|
|
49
|
+
put<R>(urlParts: string, body?: any, options?: IRequestOptions, urlId?: string | number): Observable<R>;
|
|
25
50
|
/** перегоняем объкты в форм дату*/
|
|
26
51
|
createFormData(form: {
|
|
27
52
|
[x: string]: any;
|
|
28
53
|
}): FormData;
|
|
29
|
-
private request;
|
|
30
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<FetcherService, never>;
|
|
31
55
|
static ɵprov: i0.ɵɵInjectableDeclaration<FetcherService>;
|
|
32
56
|
}
|
|
@@ -6,12 +6,12 @@ import { BehaviorSubject } from "rxjs";
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ToastComponent implements OnInit, OnDestroy {
|
|
8
8
|
readonly data: ToastData;
|
|
9
|
+
readonly toastConfig: ToastConfig;
|
|
9
10
|
readonly ref: ToastRef;
|
|
10
|
-
toastConfig: ToastConfig;
|
|
11
11
|
callEvent: EventEmitter<any>;
|
|
12
12
|
animationState$: BehaviorSubject<ToastAnimationState>;
|
|
13
13
|
private intervalId;
|
|
14
|
-
constructor(data: ToastData,
|
|
14
|
+
constructor(data: ToastData, toastConfig: ToastConfig, ref: ToastRef);
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
onClickDesc($event: MouseEvent): void;
|
|
17
17
|
ngOnDestroy(): void;
|
|
@@ -10,7 +10,7 @@ export declare class ToastData extends ToastTypeData {
|
|
|
10
10
|
constructor(type: ToastType, data?: ToastTypeData);
|
|
11
11
|
}
|
|
12
12
|
export type ToastType = 'warning' | 'info' | 'success' | 'danger';
|
|
13
|
-
export
|
|
13
|
+
export declare class ToastConfig {
|
|
14
14
|
position?: {
|
|
15
15
|
top: number;
|
|
16
16
|
right: number;
|
|
@@ -17,7 +17,7 @@ export declare class ToastService {
|
|
|
17
17
|
show(data: ToastData): ToastRef;
|
|
18
18
|
getPositionStrategy(): PositionStrategy;
|
|
19
19
|
getPosition(): string;
|
|
20
|
-
getInjector(data: ToastData, toastRef: ToastRef, parentInjector: Injector): PortalInjector;
|
|
20
|
+
getInjector(data: ToastData, toastRef: ToastRef, toastConfig: ToastConfig, parentInjector: Injector): PortalInjector;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
22
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
23
23
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Overlay } from '@angular/cdk/overlay';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
export type TToolTipPositions = 'top' | 'right' | 'bottom' | 'left';
|
|
4
5
|
export declare class TooltipDirective implements OnDestroy {
|
|
5
6
|
private element;
|
|
6
7
|
private overlay;
|
|
@@ -8,6 +9,8 @@ export declare class TooltipDirective implements OnDestroy {
|
|
|
8
9
|
private rdr;
|
|
9
10
|
ddTooltip: string | TemplateRef<void>;
|
|
10
11
|
withClick: boolean;
|
|
12
|
+
set position(p: TToolTipPositions | undefined);
|
|
13
|
+
private _position?;
|
|
11
14
|
private overlayRef;
|
|
12
15
|
constructor(element: ElementRef, overlay: Overlay, viewContainer: ViewContainerRef, rdr: Renderer2);
|
|
13
16
|
onClick(targetElement: Event): void;
|
|
@@ -18,5 +21,5 @@ export declare class TooltipDirective implements OnDestroy {
|
|
|
18
21
|
private attachTooltip;
|
|
19
22
|
private getPositionStrategy;
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[ddTooltip]", never, { "ddTooltip": { "alias": "ddTooltip"; "required": false; }; "withClick": { "alias": "withClick"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[ddTooltip]", never, { "ddTooltip": { "alias": "ddTooltip"; "required": false; }; "withClick": { "alias": "withClick"; "required": false; }; "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
25
|
}
|
|
@@ -3,7 +3,7 @@ import { LibCommonButtonComponent } from '../common/lib-common-button';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LibButtonComponent extends LibCommonButtonComponent implements AfterViewInit {
|
|
5
5
|
noPadding: boolean | undefined;
|
|
6
|
-
loaderColor
|
|
6
|
+
loaderColor?: string;
|
|
7
7
|
ngAfterViewInit(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibButtonComponent, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<LibButtonComponent, "dd-lib-button", never, { "noPadding": { "alias": "noPadding"; "required": false; }; "loaderColor": { "alias": "loaderColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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
5
|
static idCounter: number;
|
|
6
|
-
content: ElementRef<HTMLElement> | undefined;
|
|
7
6
|
checkboxId: string | undefined;
|
|
8
7
|
required: boolean;
|
|
9
8
|
disabled: boolean;
|
|
10
9
|
checked: boolean;
|
|
11
10
|
customClass: string | undefined;
|
|
12
11
|
invalid: boolean;
|
|
12
|
+
hasContent: boolean;
|
|
13
13
|
checkEvent: EventEmitter<boolean>;
|
|
14
|
-
hasContent: boolean | undefined;
|
|
15
14
|
focused: boolean | undefined;
|
|
16
15
|
private onTouchedCallback;
|
|
17
16
|
ngOnInit(): void;
|
|
@@ -21,5 +20,5 @@ export declare class LibCheckboxComponent implements OnInit, ControlValueAccesso
|
|
|
21
20
|
writeValue(value: boolean): void;
|
|
22
21
|
private propagateChange;
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibCheckboxComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibCheckboxComponent, "dd-lib-checkbox", never, { "checkboxId": { "alias": "checkboxId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, { "checkEvent": "checkEvent"; }, never, ["*"], true, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibCheckboxComponent, "dd-lib-checkbox", never, { "checkboxId": { "alias": "checkboxId"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "hasContent": { "alias": "hasContent"; "required": false; }; }, { "checkEvent": "checkEvent"; }, never, ["*"], true, never>;
|
|
25
24
|
}
|
|
@@ -15,7 +15,6 @@ export declare class LibDateRangeComponent implements ControlValueAccessor, OnIn
|
|
|
15
15
|
onTouchedCallback: (() => void) | undefined;
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
openCalendar(): void;
|
|
18
|
-
clearPeriod(): void;
|
|
19
18
|
closeCalendar(): void;
|
|
20
19
|
setPeriod($event: IDatePeriod | undefined): void;
|
|
21
20
|
changeStrDate($event: string): void;
|
|
@@ -4,21 +4,25 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class LibFileLoaderComponent {
|
|
5
5
|
private toast;
|
|
6
6
|
fileLoader: ElementRef<HTMLInputElement>;
|
|
7
|
+
title: string | undefined;
|
|
8
|
+
description: string | undefined;
|
|
9
|
+
btnTitle: string;
|
|
7
10
|
multiple: boolean;
|
|
8
|
-
maxFiles: number;
|
|
11
|
+
maxFiles: number | undefined;
|
|
9
12
|
maxFileSize: number;
|
|
10
13
|
style: object | undefined;
|
|
11
14
|
extensions: string[] | undefined;
|
|
12
15
|
disabled: boolean | undefined;
|
|
16
|
+
showLoader: null | boolean | undefined;
|
|
13
17
|
template: TemplateRef<HTMLElement> | undefined;
|
|
14
|
-
inputFiles: EventEmitter<File[]
|
|
18
|
+
inputFiles: EventEmitter<File[]>;
|
|
15
19
|
files: File[];
|
|
16
20
|
constructor(toast: ToastService);
|
|
17
21
|
openFileLoader(): void;
|
|
18
22
|
loadFile($event: Event): void;
|
|
19
|
-
clear(
|
|
23
|
+
clear(): void;
|
|
20
24
|
private validateExtension;
|
|
21
25
|
private validateFileSize;
|
|
22
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibFileLoaderComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibFileLoaderComponent, "dd-lib-file-loader", never, { "multiple": { "alias": "multiple"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "style": { "alias": "style"; "required": false; }; "extensions": { "alias": "extensions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, { "inputFiles": "inputFiles"; }, never, never, true, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibFileLoaderComponent, "dd-lib-file-loader", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "btnTitle": { "alias": "btnTitle"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "style": { "alias": "style"; "required": false; }; "extensions": { "alias": "extensions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, { "inputFiles": "inputFiles"; }, never, never, true, never>;
|
|
24
28
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class LibFileUploadComponent {
|
|
4
|
-
|
|
3
|
+
export declare class LibFileUploadComponent implements OnInit {
|
|
4
|
+
background?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
name?: string;
|
|
5
7
|
file: any;
|
|
6
8
|
deleteFile: EventEmitter<any>;
|
|
9
|
+
fileName?: string;
|
|
10
|
+
fileExtension?: string;
|
|
11
|
+
ngOnInit(): void;
|
|
7
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibFileUploadComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibFileUploadComponent, "dd-lib-file-upload", never, { "name": { "alias": "name"; "required": false; }; "file": { "alias": "file"; "required": false; }; }, { "deleteFile": "deleteFile"; }, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibFileUploadComponent, "dd-lib-file-upload", never, { "background": { "alias": "background"; "required": false; }; "width": { "alias": "width"; "required": false; }; "name": { "alias": "name"; "required": false; }; "file": { "alias": "file"; "required": false; }; }, { "deleteFile": "deleteFile"; }, never, never, true, never>;
|
|
9
14
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ToastData } from "../core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LibInfoCardComponent implements OnInit {
|
|
5
|
+
config: ToastData;
|
|
6
|
+
callEvent: EventEmitter<any>;
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
onClickDesc($event: MouseEvent): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibInfoCardComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibInfoCardComponent, "dd-lib-info-card", never, { "config": { "alias": "config"; "required": false; }; }, { "callEvent": "callEvent"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } 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 } from "../core";
|
|
@@ -6,10 +6,14 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class LibInputComponent extends LibCommonInputTextComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
7
7
|
private destroyed$;
|
|
8
8
|
private controlContainer;
|
|
9
|
+
contentInput: ElementRef<HTMLElement> | undefined;
|
|
9
10
|
showMaskTyped: boolean;
|
|
10
|
-
|
|
11
|
+
dropSpecialCharacters: boolean | string[];
|
|
12
|
+
prefix: string;
|
|
13
|
+
suffix: string;
|
|
11
14
|
shownMaskExpression: string | null;
|
|
12
15
|
mask: string | undefined;
|
|
16
|
+
validation: boolean;
|
|
13
17
|
constructor(destroyed$: DestroyService, changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
|
|
14
18
|
ngOnInit(): void;
|
|
15
19
|
changeValueSub(control: AbstractControl): void;
|
|
@@ -17,5 +21,5 @@ export declare class LibInputComponent extends LibCommonInputTextComponent imple
|
|
|
17
21
|
ngOnDestroy(): void;
|
|
18
22
|
handleBlur(): void;
|
|
19
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibInputComponent, [null, null, { optional: true; host: true; skipSelf: true; }]>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibInputComponent, "dd-lib-input", never, { "showMaskTyped": { "alias": "showMaskTyped"; "required": false; }; "
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibInputComponent, "dd-lib-input", never, { "showMaskTyped": { "alias": "showMaskTyped"; "required": false; }; "dropSpecialCharacters": { "alias": "dropSpecialCharacters"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "shownMaskExpression": { "alias": "shownMaskExpression"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "validation": { "alias": "validation"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
25
|
}
|
|
@@ -4,4 +4,5 @@ export declare class LibLoaderComponent {
|
|
|
4
4
|
size: 'big' | 'giant' | 'standard';
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibLoaderComponent, never>;
|
|
6
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<LibLoaderComponent, "dd-lib-loader", never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
static ngAcceptInputType_color: string | undefined;
|
|
7
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit, WritableSignal } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit, WritableSignal } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
|
|
4
|
-
import { DestroyService } from "../core";
|
|
4
|
+
import { DestroyService, TToolTipPositions } from "../core";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LibSelectComponent<T> extends LibCommonInputTextComponent implements OnInit, ControlValueAccessor {
|
|
7
7
|
private destroyed$;
|
|
@@ -9,12 +9,15 @@ export declare class LibSelectComponent<T> extends LibCommonInputTextComponent i
|
|
|
9
9
|
static idCounter: number;
|
|
10
10
|
set data(d: any | undefined);
|
|
11
11
|
multi: boolean | undefined;
|
|
12
|
+
tooltipPosition?: TToolTipPositions;
|
|
13
|
+
highlight: boolean;
|
|
12
14
|
selectId: string | undefined;
|
|
13
15
|
itemSize: number;
|
|
14
16
|
keyTitle: string;
|
|
15
17
|
keyDesc: string;
|
|
16
18
|
keyValue: string;
|
|
17
19
|
placeholder: string;
|
|
20
|
+
selectedItem: EventEmitter<any>;
|
|
18
21
|
checkedItem: any;
|
|
19
22
|
_data: WritableSignal<any | undefined>;
|
|
20
23
|
checkedItems: any[];
|
|
@@ -33,7 +36,7 @@ export declare class LibSelectComponent<T> extends LibCommonInputTextComponent i
|
|
|
33
36
|
handleInput(e: Event): void;
|
|
34
37
|
notifyFocusEvent(e: Event): void;
|
|
35
38
|
writeValue(value: any): void;
|
|
36
|
-
selectItem(item: any): void;
|
|
39
|
+
selectItem(item: any, cleared?: boolean): void;
|
|
37
40
|
filterList(item: any): any;
|
|
38
41
|
private propagateChange;
|
|
39
42
|
private selectSingleItem;
|
|
@@ -42,5 +45,5 @@ export declare class LibSelectComponent<T> extends LibCommonInputTextComponent i
|
|
|
42
45
|
handleBlur(): void;
|
|
43
46
|
handleFocus(): void;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibSelectComponent<any>, [null, null, { optional: true; host: true; skipSelf: true; }]>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibSelectComponent<any>, "dd-lib-select", never, { "data": { "alias": "data"; "required": false; }; "multi": { "alias": "multi"; "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; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
46
49
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlContainer } from '@angular/forms';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
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";
|
|
5
|
-
export declare class LibTextareaComponent extends LibCommonInputTextComponent implements OnInit {
|
|
5
|
+
export declare class LibTextareaComponent extends LibCommonInputTextComponent implements OnInit, OnDestroy, ControlValueAccessor {
|
|
6
6
|
private controlContainer;
|
|
7
7
|
rows: string;
|
|
8
8
|
needCounter: boolean;
|
|
9
9
|
constructor(changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
|
|
10
10
|
ngOnInit(): void;
|
|
11
|
+
writeValue(value: string | number | null): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTextareaComponent, [null, { optional: true; host: true; skipSelf: true; }]>;
|
|
12
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<LibTextareaComponent, "dd-lib-textarea", never, { "rows": { "alias": "rows"; "required": false; }; "needCounter": { "alias": "needCounter"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
15
|
}
|
|
Binary file
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ 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
29
|
export * from './lib/lib-filter/lib-filter.component';
|
|
30
|
+
export * from './lib/lib-info-card/lib-info-card.component';
|
|
30
31
|
export * from './lib/utils/decorators';
|
|
31
32
|
export * from './lib/core/index';
|
|
32
33
|
export * from './lib/components/index';
|
|
Binary file
|