@c10t/nice-component-library 0.0.12 → 0.0.16

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.
@@ -0,0 +1,56 @@
1
+ import { EventEmitter, Injector, OnInit } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
3
+ import { ValidatorService } from '../services/validator.service';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CvaLiveSearchingComponent implements ControlValueAccessor, OnInit {
7
+ private injector;
8
+ label: string;
9
+ placeholder: string;
10
+ hint: string;
11
+ required: boolean;
12
+ disabled: boolean;
13
+ readonly: boolean;
14
+ errorMessages: Map<string, (e?: any) => string>;
15
+ isLabelOutside: boolean;
16
+ isFloatLabel: boolean;
17
+ percentOfLabelOutside: number;
18
+ suffixFontAwesomeClass: string;
19
+ displayKey: string;
20
+ mappingConfig: Record<string, string>;
21
+ searchFn: (term: string) => Observable<any[]>;
22
+ onChange: EventEmitter<any>;
23
+ isFormControl: boolean;
24
+ row?: any;
25
+ columnDef?: string;
26
+ control: AbstractControl | undefined;
27
+ textControl: FormControl<string>;
28
+ filteredOptions: any[];
29
+ selected: any;
30
+ loading: boolean;
31
+ private searchSub?;
32
+ constructor(injector: Injector, ngControl: NgControl);
33
+ get NsValidator(): typeof ValidatorService;
34
+ ngOnInit(): void;
35
+ callValidator(): void;
36
+ propagateChange: (_: any) => void;
37
+ /**
38
+ * Set the function to be called
39
+ * when the formControl receives a change event.
40
+ */
41
+ registerOnChange(fn: any): void;
42
+ /**
43
+ * Set the function to be called
44
+ * when the formControl receives a touch event.
45
+ */
46
+ registerOnTouched(): void;
47
+ /**
48
+ * Write a new value to the element.
49
+ */
50
+ writeValue(obj: any): void;
51
+ onOptionSelect(displayValue: any): void;
52
+ textValueChangeSubscribe(): void;
53
+ updateRowOrFormGroup(): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<CvaLiveSearchingComponent, [null, { optional: true; self: true; }]>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<CvaLiveSearchingComponent, "cva-live-searching", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "isLabelOutside": { "alias": "isLabelOutside"; "required": false; }; "isFloatLabel": { "alias": "isFloatLabel"; "required": false; }; "percentOfLabelOutside": { "alias": "percentOfLabelOutside"; "required": false; }; "suffixFontAwesomeClass": { "alias": "suffixFontAwesomeClass"; "required": false; }; "displayKey": { "alias": "displayKey"; "required": false; }; "mappingConfig": { "alias": "mappingConfig"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "isFormControl": { "alias": "isFormControl"; "required": false; }; "row": { "alias": "row"; "required": false; }; "columnDef": { "alias": "columnDef"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
56
+ }
@@ -30,20 +30,21 @@ export declare class CvaMultiSelectAutocomplete implements ControlValueAccessor,
30
30
  selectedOptionDataChange: EventEmitter<SelectModel[]>;
31
31
  valueOptionRef: SelectModel[];
32
32
  isFormControl: boolean;
33
+ searchInputRef: any;
33
34
  formControl: AbstractControl | undefined;
34
35
  filteredOptions: SelectModel[];
35
36
  selectAllChecked: boolean;
36
- _displayString: string;
37
- get displayString(): string;
38
37
  labelCount: number;
39
38
  cdkVirtualScrollViewPort: CdkVirtualScrollViewport | undefined;
40
- get NsValidator(): typeof ValidatorService;
41
39
  constructor(translateService: TranslateService, injector: Injector, ngControl: NgControl);
40
+ _displayString: string;
41
+ get displayString(): string;
42
+ get NsValidator(): typeof ValidatorService;
43
+ get selectedValue(): any[] | any;
44
+ set selectedValue(val: any[] | any);
42
45
  ngOnInit(): void;
43
46
  getRequired(): boolean;
44
47
  callValidator(): void;
45
- get selectedValue(): any[] | any;
46
- set selectedValue(val: any[] | any);
47
48
  propagateChange: (_: any) => void;
48
49
  writeValue(obj: any[] | any): void;
49
50
  registerOnChange(fn: any): void;
@@ -50,6 +50,7 @@ export declare class CvaFlatTreeComponent implements ControlValueAccessor, OnIni
50
50
  selectionChange: EventEmitter<any>;
51
51
  isFormControl: boolean;
52
52
  formControl: AbstractControl | undefined;
53
+ mapIndexes: Map<any, any>;
53
54
  chooseVirtualScroll?: CdkVirtualScrollViewport;
54
55
  selectedVirtualScroll?: CdkVirtualScrollViewport;
55
56
  constructor(translateService: TranslateService, injector: Injector, cdr: ChangeDetectorRef, ngControl: NgControl);
@@ -58,7 +59,6 @@ export declare class CvaFlatTreeComponent implements ControlValueAccessor, OnIni
58
59
  setDataSourceOrigin(): void;
59
60
  ngOnInit(): void;
60
61
  ngAfterViewInit(): void;
61
- trackByValue(index: number, node: FlatTreeNodeModel): any;
62
62
  getDisplayInputFunc(node: FlatTreeNodeModel): boolean;
63
63
  getDisabledInputFunc(node: FlatTreeNodeModel): boolean;
64
64
  checkDisabledNode(node: FlatTreeNodeModel): boolean;
@@ -73,7 +73,6 @@ export declare class CvaFlatTreeComponent implements ControlValueAccessor, OnIni
73
73
  writeValue(obj: any): void;
74
74
  updateSelectedTree(): void;
75
75
  checkedDefaultValue(): void;
76
- bulkSelectedTreeChange(nodes: FlatTreeNodeModel[]): void;
77
76
  getAllChildNode(treeControl: FlatTreeControl<FlatTreeNodeModel>, node: FlatTreeNodeModel): FlatTreeNodeModel[];
78
77
  updateSelectAll(childrenNode?: FlatTreeNodeModel[]): void;
79
78
  checkParentNode(checked: boolean, node: FlatTreeNodeModel, isSelectedChange?: boolean): void;
@@ -90,6 +89,7 @@ export declare class CvaFlatTreeComponent implements ControlValueAccessor, OnIni
90
89
  expandTreeDataSource(treeControl: FlatTreeControl<FlatTreeNodeModel>, expandProperty: 'isExpanded' | 'isFilterExpanded'): void;
91
90
  onLeafNodeClick(node: FlatTreeNodeModel): void;
92
91
  onParentNodeClick(node: FlatTreeNodeModel): void;
92
+ toggleNodeCheck(node: FlatTreeNodeModel, checked: boolean): void;
93
93
  private _getLevel;
94
94
  private _isExpandable;
95
95
  private _getChildren;
@@ -10,5 +10,6 @@ export declare enum ColumnTypeEnum {
10
10
  BUTTON = "BUTTON",
11
11
  INPUT = "INPUT",
12
12
  LINK = "LINK",
13
- STYLE_CSS = "STYLE_CSS"
13
+ STYLE_CSS = "STYLE_CSS",
14
+ LIVE_SEARCHING = "LIVE_SEARCHING"
14
15
  }