@morozeckiy/dd-lib 0.7.64 → 0.7.79

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.
@@ -14,7 +14,7 @@ export declare abstract class LibCommonInputTextComponent implements AfterViewCh
14
14
  min: string | number | undefined;
15
15
  maxlength: string | number | undefined;
16
16
  max: string | number | undefined;
17
- placeholder?: string;
17
+ placeholder: string;
18
18
  autocomplete?: string;
19
19
  tabIndex?: string | number;
20
20
  readOnly?: boolean;
@@ -3,8 +3,10 @@ import * as i0 from "@angular/core";
3
3
  export declare class ResizeTextareaDirective {
4
4
  private el;
5
5
  private rdr;
6
+ ddResizeTextarea: number;
6
7
  constructor(el: ElementRef, rdr: Renderer2);
7
8
  onKeyup(): void;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ResizeTextareaDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeTextareaDirective, "[ddResizeTextarea]", never, {}, {}, never, never, true, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeTextareaDirective, "[ddResizeTextarea]", never, { "ddResizeTextarea": { "alias": "ddResizeTextarea"; "required": false; }; }, {}, never, never, true, never>;
11
+ static ngAcceptInputType_ddResizeTextarea: unknown;
10
12
  }
@@ -9,7 +9,6 @@ export * from './pipes/filter.pipe';
9
9
  export * from './pipes/highlight.pipe';
10
10
  export * from './pipes/safe.pipe';
11
11
  export * from './pipes/reverse.pipe';
12
- export * from './pipes/filter-tabs.pipe';
13
12
  export * from './directives/auto-height.directive';
14
13
  export * from './directives/counter.directive';
15
14
  export * from './directives/declension.directive';
@@ -5,8 +5,10 @@ export declare class FilterPipe implements PipeTransform {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
6
6
  static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", true>;
7
7
  }
8
- export declare class FilterByKeyPipe<T> implements PipeTransform {
9
- transform(arr: any, fn: any): T[];
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterByKeyPipe<any>, never>;
11
- static ɵpipe: i0.ɵɵPipeDeclaration<FilterByKeyPipe<any>, "filterByKey", true>;
8
+ export declare class FilterByKeyPipe implements PipeTransform {
9
+ transform<T extends {
10
+ [key: string]: any;
11
+ }>(arr: T[] | null | undefined, key: keyof T | ((item: T) => boolean)): T[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterByKeyPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<FilterByKeyPipe, "filterByKey", true>;
12
14
  }
@@ -2,7 +2,8 @@ import { SafeHtml } from '@angular/platform-browser';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class LibAccordionComponent {
4
4
  accTitle: string | SafeHtml | undefined;
5
+ accordionPack: string;
5
6
  showAccordionContent: boolean | undefined;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<LibAccordionComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<LibAccordionComponent, "dd-lib-accordion", never, { "accTitle": { "alias": "accTitle"; "required": false; }; }, {}, never, ["*"], true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibAccordionComponent, "dd-lib-accordion", never, { "accTitle": { "alias": "accTitle"; "required": false; }; "accordionPack": { "alias": "accordionPack"; "required": false; }; }, {}, never, ["*"], true, never>;
8
9
  }
@@ -1,8 +1,11 @@
1
- import { ChangeDetectorRef } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class LibCommentInputComponent extends LibCommonInputTextComponent {
5
+ sendComment: EventEmitter<string | undefined>;
6
+ commentHeight: number;
5
7
  constructor(changeDetection: ChangeDetectorRef);
8
+ onClick(value: string | undefined): void;
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<LibCommentInputComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<LibCommentInputComponent, "dd-lib-comment-input", never, {}, {}, never, never, true, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibCommentInputComponent, "dd-lib-comment-input", never, {}, { "sendComment": "sendComment"; }, never, never, true, never>;
8
11
  }
@@ -1,4 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * @deprecated использовать lib-file-loader
4
+ */
2
5
  export declare class LibImageLoaderComponent {
3
6
  images: any;
4
7
  static ɵfac: i0.ɵɵFactoryDeclaration<LibImageLoaderComponent, never>;
@@ -14,6 +14,7 @@ export declare class LibInputComponent extends LibCommonInputTextComponent imple
14
14
  mask: string | undefined;
15
15
  validation: boolean;
16
16
  customPatterns: any;
17
+ showPass: boolean;
17
18
  constructor(destroyed$: DestroyRef, changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
18
19
  ngOnInit(): void;
19
20
  changeValueSub(control: AbstractControl): void;
@@ -21,5 +22,5 @@ export declare class LibInputComponent extends LibCommonInputTextComponent imple
21
22
  ngOnDestroy(): void;
22
23
  handleBlur(): void;
23
24
  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; }; "customPatterns": { "alias": "customPatterns"; "required": false; }; }, {}, never, never, true, never>;
25
+ 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; }; "customPatterns": { "alias": "customPatterns"; "required": false; }; "showPass": { "alias": "showPass"; "required": false; }; }, {}, never, never, true, never>;
25
26
  }
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, DestroyRef, 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
- import { TToolTipPositions } from "../core";
4
+ import { TToolTipPositions } from '../core';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class LibSelectComponent extends LibCommonInputTextComponent implements OnInit, ControlValueAccessor, OnChanges {
7
7
  private destroyed$;
@@ -9,7 +9,7 @@ export declare class LibSelectComponent extends LibCommonInputTextComponent impl
9
9
  static idCounter: number;
10
10
  selectEl: ElementRef<HTMLInputElement> | undefined;
11
11
  searchInputEl: ElementRef<HTMLInputElement> | undefined;
12
- set data(d: any | undefined);
12
+ set data(d: any | undefined | null);
13
13
  virtualScroll: boolean | undefined;
14
14
  multi: boolean | undefined;
15
15
  tooltipPosition?: TToolTipPositions;
@@ -23,8 +23,13 @@ export declare class LibSelectComponent extends LibCommonInputTextComponent impl
23
23
  noDataError: string;
24
24
  searchPlaceholder: string;
25
25
  placeholder: string;
26
+ keyGroupTitle: string;
27
+ keyGroupChildren: string;
28
+ selectAllInGroup: boolean;
26
29
  selectedItem: EventEmitter<any>;
27
30
  selectedItems: EventEmitter<any>;
31
+ deleteMultiItem: EventEmitter<any>;
32
+ initialized: boolean;
28
33
  _data: WritableSignal<any[] | undefined>;
29
34
  checkedItem: any;
30
35
  checkedItems: any[];
@@ -33,13 +38,17 @@ export declare class LibSelectComponent extends LibCommonInputTextComponent impl
33
38
  showMultiCountValue: boolean | undefined;
34
39
  searchValue: string | undefined;
35
40
  isShownList: boolean | undefined;
36
- showSelected: boolean | undefined;
37
41
  initWriteValue: boolean;
38
42
  stringArray: WritableSignal<boolean | undefined>;
39
43
  writtenValue: any;
40
44
  constructor(destroyed$: DestroyRef, changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
41
45
  ngOnInit(): void;
42
46
  ngOnChanges(changes: SimpleChanges): void;
47
+ isGroup(item: any): boolean;
48
+ getGroupTitle(group: any): string;
49
+ handleGroupClick(group: any): void;
50
+ private updateMultiSelection;
51
+ isGroupSelected(group: any): boolean;
43
52
  onClear(checkedItem: any): void;
44
53
  changeValueSub(control: AbstractControl): void;
45
54
  registerOnChange(fn: any): void;
@@ -49,7 +58,8 @@ export declare class LibSelectComponent extends LibCommonInputTextComponent impl
49
58
  notifyFocusEvent(): void;
50
59
  writeValue(value: any | null | undefined): void;
51
60
  selectItem(item: any, cleared?: boolean): void;
52
- filterList(item: any): any;
61
+ filterList(item: any): boolean;
62
+ private filterItem;
53
63
  private propagateChange;
54
64
  private selectSingleItem;
55
65
  private selectMultiItem;
@@ -57,5 +67,5 @@ export declare class LibSelectComponent extends LibCommonInputTextComponent impl
57
67
  handleBlur(): void;
58
68
  handleFocus(): void;
59
69
  static ɵfac: i0.ɵɵFactoryDeclaration<LibSelectComponent, [null, null, { optional: true; host: true; skipSelf: true; }]>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<LibSelectComponent, "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; }; "searchOn": { "alias": "searchOn"; "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; }; "noDataError": { "alias": "noDataError"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; }, never, never, true, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibSelectComponent, "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; }; "searchOn": { "alias": "searchOn"; "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; }; "noDataError": { "alias": "noDataError"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "keyGroupTitle": { "alias": "keyGroupTitle"; "required": false; }; "keyGroupChildren": { "alias": "keyGroupChildren"; "required": false; }; "selectAllInGroup": { "alias": "selectAllInGroup"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; "deleteMultiItem": "deleteMultiItem"; }, never, never, true, never>;
61
71
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morozeckiy/dd-lib",
3
- "version": "0.7.64",
3
+ "version": "0.7.79",
4
4
  "types": "./src/typings.d.ts",
5
5
  "repository": "https://gitlab.com/Morozeckiy/dd-lib",
6
6
  "publishConfig": {
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FilterTabsPipe implements PipeTransform {
4
- transform(arr: any[] | null, tab?: number | null | undefined): any[];
5
- static ɵfac: i0.ɵɵFactoryDeclaration<FilterTabsPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<FilterTabsPipe, "filterTabs", true>;
7
- }
Binary file