@morozeckiy/dd-lib 0.2.71 → 0.4.25

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.
Files changed (66) hide show
  1. package/assets/images/svg/file.svg +12 -0
  2. package/assets/images/svg/reload.svg +11 -0
  3. package/assets/scss/common.scss +22 -1
  4. package/assets/scss/grid.scss +158 -0
  5. package/assets/scss/keyframes.scss +9 -0
  6. package/assets/scss/reset.scss +4 -0
  7. package/assets/scss/titles.scss +24 -10
  8. package/assets/styles.scss +2 -0
  9. package/esm2022/lib/common/lib-common-input-text.mjs +31 -26
  10. package/esm2022/lib/components/data-empty/data-empty.component.mjs +8 -3
  11. package/esm2022/lib/core/dialog/modal-base/modal-base.component.mjs +12 -5
  12. package/esm2022/lib/core/directives/click-outside.directive.mjs +2 -2
  13. package/esm2022/lib/core/directives/counter.directive.mjs +16 -4
  14. package/esm2022/lib/core/services/destroy.service.mjs +1 -1
  15. package/esm2022/lib/core/services/fetcher.service.mjs +26 -48
  16. package/esm2022/lib/core/services/validators.service.mjs +33 -1
  17. package/esm2022/lib/core/toast/toast/toast.component.mjs +6 -9
  18. package/esm2022/lib/core/toast/toast-config.mjs +13 -2
  19. package/esm2022/lib/core/toast/toast.service.mjs +24 -5
  20. package/esm2022/lib/core/tooltip/tooltip.directive.mjs +75 -33
  21. package/esm2022/lib/lib-button/lib-button.component.mjs +3 -7
  22. package/esm2022/lib/lib-card/lib-card.component.mjs +3 -3
  23. package/esm2022/lib/lib-checkbox/lib-checkbox.component.mjs +9 -5
  24. package/esm2022/lib/lib-date-range/lib-date-range.component.mjs +3 -8
  25. package/esm2022/lib/lib-file-loader/lib-file-loader.component.mjs +34 -11
  26. package/esm2022/lib/lib-file-upload/lib-file-upload.component.mjs +21 -18
  27. package/esm2022/lib/lib-filter-button/lib-filter-button.component.mjs +3 -3
  28. package/esm2022/lib/lib-image-loader/lib-image-loader.component.mjs +3 -3
  29. package/esm2022/lib/lib-info-card/lib-info-card.component.mjs +30 -0
  30. package/esm2022/lib/lib-input/lib-input.component.mjs +55 -11
  31. package/esm2022/lib/lib-loader/lib-loader.component.mjs +6 -3
  32. package/esm2022/lib/lib-radio/lib-radio.component.mjs +3 -3
  33. package/esm2022/lib/lib-search-input/lib-search-input.component.mjs +3 -3
  34. package/esm2022/lib/lib-select/lib-select.component.mjs +68 -15
  35. package/esm2022/lib/lib-tabs-fragment/lib-tabs-fragment.component.mjs +5 -2
  36. package/esm2022/lib/lib-textarea/lib-textarea.component.mjs +12 -3
  37. package/esm2022/lib/svg-icons/svg-icon.model.mjs +11 -1
  38. package/esm2022/public-api.mjs +2 -1
  39. package/fesm2022/morozeckiy-dd-lib.mjs +481 -211
  40. package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
  41. package/lib/common/lib-common-input-text.d.ts +11 -4
  42. package/lib/components/data-empty/data-empty.component.d.ts +2 -1
  43. package/lib/core/dialog/modal-base/modal-base.component.d.ts +4 -2
  44. package/lib/core/directives/counter.directive.d.ts +4 -1
  45. package/lib/core/services/fetcher.service.d.ts +32 -6
  46. package/lib/core/services/validators.service.d.ts +3 -2
  47. package/lib/core/toast/toast/toast.component.d.ts +2 -2
  48. package/lib/core/toast/toast-config.d.ts +6 -3
  49. package/lib/core/toast/toast.service.d.ts +6 -2
  50. package/lib/core/tooltip/tooltip.directive.d.ts +4 -1
  51. package/lib/lib-button/lib-button.component.d.ts +1 -1
  52. package/lib/lib-checkbox/lib-checkbox.component.d.ts +2 -1
  53. package/lib/lib-date-range/lib-date-range.component.d.ts +0 -1
  54. package/lib/lib-file-loader/lib-file-loader.component.d.ts +10 -5
  55. package/lib/lib-file-upload/lib-file-upload.component.d.ts +11 -9
  56. package/lib/lib-info-card/lib-info-card.component.d.ts +12 -0
  57. package/lib/lib-input/lib-input.component.d.ts +17 -5
  58. package/lib/lib-loader/lib-loader.component.d.ts +1 -0
  59. package/lib/lib-select/lib-select.component.d.ts +18 -6
  60. package/lib/lib-tabs-fragment/lib-tabs-fragment.component.d.ts +3 -2
  61. package/lib/lib-textarea/lib-textarea.component.d.ts +5 -3
  62. package/lib/svg-icons/svg-icon.model.d.ts +15 -1
  63. package/morozeckiy-dd-lib-0.4.25.tgz +0 -0
  64. package/package.json +1 -1
  65. package/public-api.d.ts +1 -0
  66. package/morozeckiy-dd-lib-0.2.71.tgz +0 -0
@@ -11,25 +11,31 @@ export declare abstract class LibCommonInputTextComponent {
11
11
  type: 'password' | 'email' | 'number' | 'text' | undefined;
12
12
  contextClass: string | undefined;
13
13
  minlength: string | number | undefined;
14
- maxlength: number;
14
+ min: string | number | undefined;
15
+ maxlength: string | number | undefined;
16
+ max: string | number | undefined;
15
17
  placeholder?: string;
16
18
  autocomplete?: string;
17
19
  tabIndex?: string | number;
18
20
  readOnly?: boolean;
21
+ autofocus?: boolean;
19
22
  fetchMode?: boolean;
20
23
  required: boolean;
21
24
  disabled: boolean;
22
25
  commitOnInput: boolean;
23
26
  clearable: boolean;
27
+ showSelfError: boolean;
24
28
  uppercase: boolean;
25
29
  invalid: boolean;
26
- errorText: string | undefined;
30
+ errorTexts: string[];
27
31
  side: 'top' | 'bottom';
28
32
  cleared: EventEmitter<void>;
29
33
  fetchEvent: EventEmitter<any>;
30
34
  focus: EventEmitter<any>;
31
35
  blur: EventEmitter<any>;
36
+ fullBlur: EventEmitter<Event>;
32
37
  get id(): string;
38
+ errorText: string | undefined;
33
39
  focused: boolean;
34
40
  touched: boolean;
35
41
  control: AbstractControl | undefined | null;
@@ -39,6 +45,8 @@ export declare abstract class LibCommonInputTextComponent {
39
45
  protected onTouchedCallback: (() => void) | undefined;
40
46
  private _ID;
41
47
  protected constructor(changeDetection: ChangeDetectorRef);
48
+ get invalidState(): boolean;
49
+ get showError(): boolean;
42
50
  handleInput(_e: Event): void;
43
51
  notifyFocusEvent(e: Event): void;
44
52
  handleBlur(): void;
@@ -48,9 +56,8 @@ export declare abstract class LibCommonInputTextComponent {
48
56
  forceChange(): void;
49
57
  registerOnChange(fn: any): void;
50
58
  registerOnTouched(fn: any): void;
51
- setDisabledState(isDisabled: boolean): void;
52
59
  handleChange(): void;
53
60
  commit(_value: string | null | undefined): void;
54
61
  static ɵfac: i0.ɵɵFactoryDeclaration<LibCommonInputTextComponent, never>;
55
- 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; }; "maxlength": { "alias": "maxlength"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "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; }; "uppercase": { "alias": "uppercase"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, { "cleared": "cleared"; "fetchEvent": "fetchEvent"; "focus": "focus"; "blur": "blur"; }, never, never, false, never>;
62
+ 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>;
56
63
  }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class DataEmptyComponent {
3
3
  abs: boolean | undefined;
4
+ text: string;
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<DataEmptyComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<DataEmptyComponent, "dd-data-empty", never, { "abs": { "alias": "abs"; "required": false; }; }, {}, never, never, true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataEmptyComponent, "dd-data-empty", never, { "abs": { "alias": "abs"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
6
7
  }
@@ -9,7 +9,9 @@ export declare class ModalBaseComponent {
9
9
  content: TemplateRef<any> | undefined;
10
10
  component: Type<any> | null | undefined;
11
11
  clearFragment: boolean;
12
- padding: string;
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; }; "padding": { "alias": "padding"; "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,20 +10,46 @@ 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
- get<R>(urlParts: string, options?: any, urlId?: string | number): Observable<R>;
19
- post<R>(urlParts: string[] | string, data?: any, options?: any): Observable<R>;
20
- put<R>(urlParts: string[] | string, data?: any, options?: any): Observable<R>;
21
- delete<R>(urlParts: string[] | string, options?: any): Observable<R>;
44
+ private prepareOptions;
45
+ get<R>(urlParts: string, options?: IRequestOptions, urlId?: string | number): Observable<R>;
46
+ delete<R>(urlParts: string, options?: IRequestOptions): Observable<R>;
47
+ post<R>(urlParts: string, body?: any, options?: IRequestOptions, urlId?: string | number): Observable<R>;
48
+ put<R>(urlParts: string, body?: any, options?: IRequestOptions, urlId?: string | number): Observable<R>;
22
49
  /** перегоняем объкты в форм дату*/
23
50
  createFormData(form: {
24
51
  [x: string]: any;
25
52
  }): FormData;
26
- private request;
27
53
  static ɵfac: i0.ɵɵFactoryDeclaration<FetcherService, never>;
28
54
  static ɵprov: i0.ɵɵInjectableDeclaration<FetcherService>;
29
55
  }
@@ -1,4 +1,4 @@
1
- import { AbstractControl, ValidationErrors, Validators } from '@angular/forms';
1
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
2
2
  import { Observable } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ValidatorsService {
@@ -10,9 +10,10 @@ export declare class ValidatorsService {
10
10
  static wrongLoginOrPswd(): ValidationErrors;
11
11
  static existLogin(): ValidationErrors;
12
12
  /** валидатор имени*/
13
- static getNameValid(): (typeof Validators.required)[];
13
+ static getNameValid(): import("@angular/forms").ValidatorFn[];
14
14
  /** валидатор email*/
15
15
  static getMailValid(el?: AbstractControl): Observable<ValidationErrors | null>;
16
+ static getErrorText(error: ValidationErrors | null | undefined): string | undefined;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorsService, never>;
17
18
  static ɵprov: i0.ɵɵInjectableDeclaration<ValidatorsService>;
18
19
  }
@@ -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, ref: ToastRef, toastConfig: ToastConfig);
14
+ constructor(data: ToastData, toastConfig: ToastConfig, ref: ToastRef);
15
15
  ngOnInit(): void;
16
16
  onClickDesc($event: MouseEvent): void;
17
17
  ngOnDestroy(): void;
@@ -1,13 +1,16 @@
1
1
  import { InjectionToken, Provider, TemplateRef } from '@angular/core';
2
- export declare class ToastData {
3
- type: ToastType;
2
+ export declare class ToastTypeData {
4
3
  title?: string;
5
4
  description?: string;
6
5
  template?: TemplateRef<any>;
7
6
  templateContext?: {};
8
7
  }
8
+ export declare class ToastData extends ToastTypeData {
9
+ type: ToastType;
10
+ constructor(type: ToastType, data?: ToastTypeData);
11
+ }
9
12
  export type ToastType = 'warning' | 'info' | 'success' | 'danger';
10
- export interface ToastConfig {
13
+ export declare class ToastConfig {
11
14
  position?: {
12
15
  top: number;
13
16
  right: number;
@@ -1,6 +1,6 @@
1
1
  import { Injector } from '@angular/core';
2
2
  import { Overlay, PositionStrategy } from "@angular/cdk/overlay";
3
- import { ToastConfig, ToastData } from "./toast-config";
3
+ import { ToastConfig, ToastData, ToastTypeData } from "./toast-config";
4
4
  import { ToastRef } from "./toast-ref";
5
5
  import { PortalInjector } from "@angular/cdk/portal";
6
6
  import * as i0 from "@angular/core";
@@ -10,10 +10,14 @@ export declare class ToastService {
10
10
  protected toastConfig: ToastConfig;
11
11
  private lastToast;
12
12
  constructor(overlay: Overlay, parentInjector: Injector, toastConfig: ToastConfig);
13
+ warning(data: ToastTypeData): void;
14
+ info(data: ToastTypeData): void;
15
+ success(data: ToastTypeData): void;
16
+ danger(data: ToastTypeData): void;
13
17
  show(data: ToastData): ToastRef;
14
18
  getPositionStrategy(): PositionStrategy;
15
19
  getPosition(): string;
16
- getInjector(data: ToastData, toastRef: ToastRef, parentInjector: Injector): PortalInjector;
20
+ getInjector(data: ToastData, toastRef: ToastRef, toastConfig: ToastConfig, parentInjector: Injector): PortalInjector;
17
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
18
22
  static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
19
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: string;
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>;
@@ -9,6 +9,7 @@ export declare class LibCheckboxComponent implements OnInit, ControlValueAccesso
9
9
  checked: boolean;
10
10
  customClass: string | undefined;
11
11
  invalid: boolean;
12
+ hasContent: boolean;
12
13
  checkEvent: EventEmitter<boolean>;
13
14
  focused: boolean | undefined;
14
15
  private onTouchedCallback;
@@ -19,5 +20,5 @@ export declare class LibCheckboxComponent implements OnInit, ControlValueAccesso
19
20
  writeValue(value: boolean): void;
20
21
  private propagateChange;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<LibCheckboxComponent, never>;
22
- 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>;
23
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;
@@ -1,23 +1,28 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { ToastService } from "../core";
3
3
  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;
13
- inputFiles: EventEmitter<File[] | null | undefined>;
16
+ showLoader: null | boolean | undefined;
17
+ template: TemplateRef<HTMLElement> | undefined;
18
+ inputFiles: EventEmitter<File[]>;
14
19
  files: File[];
15
20
  constructor(toast: ToastService);
16
21
  openFileLoader(): void;
17
22
  loadFile($event: Event): void;
18
- clear(_file?: File): void;
23
+ clear(): void;
19
24
  private validateExtension;
20
25
  private validateFileSize;
21
26
  static ɵfac: i0.ɵɵFactoryDeclaration<LibFileLoaderComponent, never>;
22
- 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; }; }, { "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>;
23
28
  }
@@ -1,12 +1,14 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class LibFileUploadComponent {
4
- multi: boolean | undefined;
5
- requiredFileType: string | undefined;
6
- template: TemplateRef<HTMLElement> | undefined;
7
- outputFile: EventEmitter<File>;
8
- outputFiles: EventEmitter<File[]>;
9
- onFileSelected($event: Event): void;
3
+ export declare class LibFileUploadComponent implements OnInit {
4
+ background?: string;
5
+ width?: string;
6
+ name?: string;
7
+ file: any;
8
+ deleteFile: EventEmitter<any>;
9
+ fileName?: string;
10
+ fileExtension?: string;
11
+ ngOnInit(): void;
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<LibFileUploadComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<LibFileUploadComponent, "dd-lib-file-upload", never, { "multi": { "alias": "multi"; "required": false; }; "requiredFileType": { "alias": "requiredFileType"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, { "outputFile": "outputFile"; "outputFiles": "outputFiles"; }, 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>;
12
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,13 +1,25 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlContainer, ControlValueAccessor } from '@angular/forms';
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
3
3
  import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
4
+ import { DestroyService } from "../core";
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class LibInputComponent extends LibCommonInputTextComponent implements OnInit, OnDestroy, ControlValueAccessor {
7
+ private destroyed$;
6
8
  private controlContainer;
7
- constructor(changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
9
+ contentInput: ElementRef<HTMLElement> | undefined;
10
+ showMaskTyped: boolean;
11
+ dropSpecialCharacters: boolean | string[];
12
+ prefix: string;
13
+ suffix: string;
14
+ shownMaskExpression: string | null;
15
+ mask: string | undefined;
16
+ validation: boolean;
17
+ constructor(destroyed$: DestroyService, changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
8
18
  ngOnInit(): void;
19
+ changeValueSub(control: AbstractControl): void;
9
20
  writeValue(value: string | number | null): void;
10
21
  ngOnDestroy(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<LibInputComponent, [null, { optional: true; host: true; skipSelf: true; }]>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<LibInputComponent, "dd-lib-input", never, {}, {}, never, never, true, never>;
22
+ handleBlur(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<LibInputComponent, [null, null, { optional: true; host: true; skipSelf: true; }]>;
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>;
13
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,37 +1,49 @@
1
- import { ChangeDetectorRef, OnInit, WritableSignal } from '@angular/core';
2
- import { ControlContainer, ControlValueAccessor } from '@angular/forms';
1
+ import { ChangeDetectorRef, EventEmitter, OnInit, WritableSignal } from '@angular/core';
2
+ import { AbstractControl, ControlContainer, ControlValueAccessor } from '@angular/forms';
3
3
  import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
4
+ import { DestroyService, TToolTipPositions } from "../core";
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class LibSelectComponent<T> extends LibCommonInputTextComponent implements OnInit, ControlValueAccessor {
7
+ private destroyed$;
6
8
  private controlContainer;
7
9
  static idCounter: number;
8
10
  set data(d: any | undefined);
9
11
  multi: boolean | undefined;
12
+ tooltipPosition?: TToolTipPositions;
13
+ highlight: boolean;
10
14
  selectId: string | undefined;
15
+ itemSize: number;
11
16
  keyTitle: string;
12
17
  keyDesc: string;
13
18
  keyValue: string;
14
19
  placeholder: string;
20
+ selectedItem: EventEmitter<any>;
15
21
  checkedItem: any;
16
22
  _data: WritableSignal<any | undefined>;
17
23
  checkedItems: any[];
18
24
  inputValue: string | undefined;
25
+ multiCountValue: string | undefined;
26
+ showMultiCountValue: boolean | undefined;
19
27
  searchValue: string | undefined;
20
28
  isShownList: boolean | undefined;
21
29
  stringArray: WritableSignal<boolean | undefined>;
22
- constructor(changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
30
+ constructor(destroyed$: DestroyService, changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
23
31
  ngOnInit(): void;
32
+ onClear(checkedItem: any): void;
33
+ changeValueSub(control: AbstractControl): void;
24
34
  registerOnChange(fn: any): void;
25
35
  registerOnTouched(fn: any): void;
26
36
  handleInput(e: Event): void;
27
37
  notifyFocusEvent(e: Event): void;
28
38
  writeValue(value: any): void;
29
- selectItem(item: any): void;
39
+ selectItem(item: any, cleared?: boolean): void;
30
40
  filterList(item: any): any;
31
41
  private propagateChange;
32
42
  private selectSingleItem;
33
43
  private selectMultiItem;
34
44
  checkSelected(item: any): boolean;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<LibSelectComponent<any>, [null, { optional: true; host: true; skipSelf: true; }]>;
36
- 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; }; "keyTitle": { "alias": "keyTitle"; "required": false; }; "keyDesc": { "alias": "keyDesc"; "required": false; }; "keyValue": { "alias": "keyValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
45
+ handleBlur(): void;
46
+ 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>;
37
49
  }
@@ -4,8 +4,9 @@ import * as i0 from "@angular/core";
4
4
  export declare class ITab {
5
5
  title: string;
6
6
  id: null | number;
7
- fragment: string;
7
+ fragment?: string;
8
8
  name?: string;
9
+ path?: string;
9
10
  welcomeText?: string;
10
11
  type?: 1 | 2;
11
12
  constructor(body: any);
@@ -16,7 +17,7 @@ export declare class LibTabsFragmentComponent implements OnInit {
16
17
  private cdr;
17
18
  rout: string;
18
19
  tabs: ITab[] | undefined;
19
- tabsFragment: string[] | undefined;
20
+ tabsFragment: (string | undefined)[] | undefined;
20
21
  needInitEvent: boolean | undefined;
21
22
  noFragment: boolean | undefined;
22
23
  setActiveTab: EventEmitter<number | null>;
@@ -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
  }
@@ -106,6 +106,10 @@ export declare const svgIconEye: {
106
106
  name: 'eye';
107
107
  data: string;
108
108
  };
109
+ export declare const svgIconFile: {
110
+ name: 'file';
111
+ data: string;
112
+ };
109
113
  export declare const svgIconFilter: {
110
114
  name: 'filter';
111
115
  data: string;
@@ -230,6 +234,10 @@ export declare const svgIconRedClose: {
230
234
  name: 'red_close';
231
235
  data: string;
232
236
  };
237
+ export declare const svgIconReload: {
238
+ name: 'reload';
239
+ data: string;
240
+ };
233
241
  export declare const svgIconRightChevron: {
234
242
  name: 'right_chevron';
235
243
  data: string;
@@ -314,7 +322,7 @@ export declare const svgIconWarningT: {
314
322
  name: 'warning_t';
315
323
  data: string;
316
324
  };
317
- export type svgIcon = 'actogone_accept' | 'all' | 'appgalery' | 'appstore' | 'arrow_down_red' | 'arrow_up_green' | 'back_arrow' | 'burger' | 'calendar' | 'check_green' | 'check_white' | 'circle_no' | 'clear' | 'close' | 'danger_t' | 'dd_m' | 'dd' | 'dobrodel' | 'down_chevron' | 'download' | 'eds_m' | 'eds' | 'entry' | 'error_hint' | 'esia' | 'eye_off' | 'eye' | 'filter' | 'googleapp' | 'grid' | 'health_m' | 'health' | 'info_t' | 'info_circle' | 'left_chevron' | 'list_search' | 'logout' | 'mail_exclamation' | 'max_filter' | 'moon' | 'my_m' | 'my' | 'news' | 'next' | 'paperclip' | 'pen_edit' | 'pgu_mo_m' | 'pgu_mo' | 'plug_d' | 'plug' | 'plus' | 'preset' | 'prev' | 'print' | 'printer' | 'question_white_g' | 'question' | 'red_close' | 'right_chevron' | 'rustore' | 'search' | 'send' | 'set_avatar' | 'shared_logo' | 'small_round_loader' | 'sort' | 'star' | 'success_t' | 'sun' | 'tg' | 'toggle_arrow_left' | 'toggle_arrow_right' | 'trash' | 'trophy' | 'user_empty_d' | 'user_empty' | 'user' | 'vk' | 'warning_t';
325
+ export type svgIcon = 'actogone_accept' | 'all' | 'appgalery' | 'appstore' | 'arrow_down_red' | 'arrow_up_green' | 'back_arrow' | 'burger' | 'calendar' | 'check_green' | 'check_white' | 'circle_no' | 'clear' | 'close' | 'danger_t' | 'dd_m' | 'dd' | 'dobrodel' | 'down_chevron' | 'download' | 'eds_m' | 'eds' | 'entry' | 'error_hint' | 'esia' | 'eye_off' | 'eye' | 'file' | 'filter' | 'googleapp' | 'grid' | 'health_m' | 'health' | 'info_t' | 'info_circle' | 'left_chevron' | 'list_search' | 'logout' | 'mail_exclamation' | 'max_filter' | 'moon' | 'my_m' | 'my' | 'news' | 'next' | 'paperclip' | 'pen_edit' | 'pgu_mo_m' | 'pgu_mo' | 'plug_d' | 'plug' | 'plus' | 'preset' | 'prev' | 'print' | 'printer' | 'question_white_g' | 'question' | 'red_close' | 'reload' | 'right_chevron' | 'rustore' | 'search' | 'send' | 'set_avatar' | 'shared_logo' | 'small_round_loader' | 'sort' | 'star' | 'success_t' | 'sun' | 'tg' | 'toggle_arrow_left' | 'toggle_arrow_right' | 'trash' | 'trophy' | 'user_empty_d' | 'user_empty' | 'user' | 'vk' | 'warning_t';
318
326
  export interface SvgIcon {
319
327
  name: svgIcon;
320
328
  data: string;
@@ -401,6 +409,9 @@ export declare const completeIconSet: ({
401
409
  } | {
402
410
  name: 'eye';
403
411
  data: string;
412
+ } | {
413
+ name: 'file';
414
+ data: string;
404
415
  } | {
405
416
  name: 'filter';
406
417
  data: string;
@@ -494,6 +505,9 @@ export declare const completeIconSet: ({
494
505
  } | {
495
506
  name: 'red_close';
496
507
  data: string;
508
+ } | {
509
+ name: 'reload';
510
+ data: string;
497
511
  } | {
498
512
  name: 'right_chevron';
499
513
  data: string;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morozeckiy/dd-lib",
3
- "version": "0.2.71",
3
+ "version": "0.4.25",
4
4
  "repository": "https://gitlab.com/Morozeckiy/dd-lib",
5
5
  "publishConfig": {
6
6
  "access": "public"
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