ca-components 1.1.3 → 1.1.4
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/esm2022/lib/components/ca-input/config/ca-input.config.mjs +1 -1
- package/esm2022/lib/components/ca-input/input-test/input-test.component.mjs +14 -11
- package/esm2022/lib/components/ca-input/mixins/input-command.mixin.mjs +1 -1
- package/esm2022/lib/components/ca-input/mixins/input-helper.mixin.mjs +1 -1
- package/esm2022/lib/components/ca-input/models/base.model.mjs +2 -0
- package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +157 -112
- package/esm2022/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.mjs +5 -3
- package/esm2022/lib/components/ca-input-dropdown/pipes/dropdown-options.pipe.mjs +49 -0
- package/esm2022/lib/components/ca-input-dropdown/pipes/input-dropdown-default-template-class.pipe.mjs +4 -2
- package/fesm2022/ca-components.mjs +219 -121
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-input/config/ca-input.config.d.ts +2 -0
- package/lib/components/ca-input/input-test/input-test.component.d.ts +30 -13
- package/lib/components/ca-input/mixins/input-command.mixin.d.ts +16 -11
- package/lib/components/ca-input/mixins/input-helper.mixin.d.ts +13 -22
- package/lib/components/ca-input/models/base.model.d.ts +23 -0
- package/lib/components/ca-input-dropdown/ca-input-dropdown.component.d.ts +16 -4
- package/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.d.ts +2 -1
- package/lib/components/ca-input-dropdown/pipes/dropdown-options.pipe.d.ts +8 -0
- package/package.json +1 -1
|
@@ -8,7 +8,24 @@ import { DropdownTemplateTypeEnum } from '../../ca-input-dropdown/enums';
|
|
|
8
8
|
import { ThousandSeparatorPipe } from '../../../pipes';
|
|
9
9
|
import { NgxMaskService } from 'ngx-mask';
|
|
10
10
|
import { EventInputManager } from '../base-classes/ca-input-event-manager';
|
|
11
|
+
import { OptionModel } from '../../ca-input-dropdown/models';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
declare class InputBase {
|
|
14
|
+
inputElement: ElementRef;
|
|
15
|
+
_inputConfig: ICaInput;
|
|
16
|
+
isVisibleCommands: boolean;
|
|
17
|
+
maskApplier: NgxMaskService;
|
|
18
|
+
thousandSeparatorPipe: ThousandSeparatorPipe;
|
|
19
|
+
isFocusInput: boolean;
|
|
20
|
+
isEditInput: boolean;
|
|
21
|
+
isDropdownToggler: boolean;
|
|
22
|
+
isTouchedInput: boolean;
|
|
23
|
+
setCommandEvent: EventInputManager<CommandsEvent>;
|
|
24
|
+
handleToggleDropdownOptions: EventEmitter<void>;
|
|
25
|
+
onTouched: () => void;
|
|
26
|
+
onChange(_: any): void;
|
|
27
|
+
handleChangeInputAndUpdateControl(_: InputChangeValue): void;
|
|
28
|
+
}
|
|
12
29
|
declare const InputTestComponent_base: {
|
|
13
30
|
new (...args: any[]): {
|
|
14
31
|
onCommands(e: any): void;
|
|
@@ -21,25 +38,24 @@ declare const InputTestComponent_base: {
|
|
|
21
38
|
resetPmValue(): void;
|
|
22
39
|
inputElement: ElementRef;
|
|
23
40
|
_inputConfig: ICaInput;
|
|
41
|
+
onTouched: () => void;
|
|
42
|
+
onChange(_: any): void;
|
|
24
43
|
handleChangeInputAndUpdateControl(_: InputChangeValue): void;
|
|
25
|
-
|
|
26
|
-
} & {
|
|
27
|
-
new (...args: any[]): {
|
|
28
|
-
transformValue(inputConfig: ICaInput, value: InputChangeValue): any;
|
|
29
|
-
toggleDropdownOptions(): void;
|
|
30
|
-
onPlaceholderIconEvent(event: Event): void;
|
|
31
|
-
inputElement: ElementRef;
|
|
32
|
-
_inputConfig: ICaInput;
|
|
44
|
+
isVisibleCommands: boolean;
|
|
33
45
|
maskApplier: NgxMaskService;
|
|
34
46
|
thousandSeparatorPipe: ThousandSeparatorPipe;
|
|
35
47
|
handleToggleDropdownOptions: EventEmitter<void>;
|
|
36
|
-
isDropdownToggler: boolean;
|
|
37
48
|
isFocusInput: boolean;
|
|
38
49
|
isEditInput: boolean;
|
|
50
|
+
isDropdownToggler: boolean;
|
|
51
|
+
isTouchedInput: boolean;
|
|
39
52
|
setCommandEvent: EventInputManager<CommandsEvent>;
|
|
40
53
|
};
|
|
41
54
|
} & {
|
|
42
|
-
new (): {
|
|
55
|
+
new (...args: any[]): {
|
|
56
|
+
transformValue(inputConfig: ICaInput, value: InputChangeValue): any;
|
|
57
|
+
toggleDropdownOptions(): void;
|
|
58
|
+
onPlaceholderIconEvent(event: Event): void;
|
|
43
59
|
inputElement: ElementRef;
|
|
44
60
|
_inputConfig: ICaInput;
|
|
45
61
|
onTouched: () => void;
|
|
@@ -55,7 +71,7 @@ declare const InputTestComponent_base: {
|
|
|
55
71
|
isTouchedInput: boolean;
|
|
56
72
|
setCommandEvent: EventInputManager<CommandsEvent>;
|
|
57
73
|
};
|
|
58
|
-
};
|
|
74
|
+
} & typeof InputBase;
|
|
59
75
|
export declare class InputTestComponent extends InputTestComponent_base implements ControlValueAccessor, AfterViewInit {
|
|
60
76
|
ngControl: NgControl;
|
|
61
77
|
chdet: ChangeDetectorRef;
|
|
@@ -69,6 +85,7 @@ export declare class InputTestComponent extends InputTestComponent_base implemen
|
|
|
69
85
|
template: string;
|
|
70
86
|
incorrectValue: boolean;
|
|
71
87
|
set inputConfig(config: ICaInput);
|
|
88
|
+
activeItem: OptionModel | null;
|
|
72
89
|
handleToggleDropdownOptions: EventEmitter<void>;
|
|
73
90
|
incorrectInput: EventEmitter<boolean>;
|
|
74
91
|
blurInput: EventEmitter<boolean>;
|
|
@@ -92,8 +109,8 @@ export declare class InputTestComponent extends InputTestComponent_base implemen
|
|
|
92
109
|
ngAfterViewInit(): void;
|
|
93
110
|
get control(): import("@angular/forms").AbstractControl<any, any> | null;
|
|
94
111
|
registerOnChange(fn: any): void;
|
|
95
|
-
writeValue(obj: InputChangeValue): void;
|
|
96
112
|
registerOnTouched(fn: () => void): void;
|
|
113
|
+
writeValue(obj: InputChangeValue): void;
|
|
97
114
|
handleInput(event: Event): void;
|
|
98
115
|
clearInput(event: Event): void;
|
|
99
116
|
handleChangeInputAndUpdateControl(value: InputChangeValue): void;
|
|
@@ -107,6 +124,6 @@ export declare class InputTestComponent extends InputTestComponent_base implemen
|
|
|
107
124
|
identify(index: number): number;
|
|
108
125
|
handleKeyDown(event: KeyboardEvent): void;
|
|
109
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTestComponent, [{ optional: true; self: true; }, null, null, null]>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputTestComponent, "ca-input-test", never, { "selectedDropdownLabelColor": { "alias": "selectedDropdownLabelColor"; "required": false; }; "template": { "alias": "template"; "required": false; }; "incorrectValue": { "alias": "incorrectValue"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; }, { "handleToggleDropdownOptions": "handleToggleDropdownOptions"; "incorrectInput": "incorrectEvent"; "blurInput": "blurInput"; "focusInputEvent": "focusInput"; "changeInput": "change"; "commandEvent": "commandEvent"; "clearInputEvent": "clear"; "showHideDropdownEvent": "showHideDropdown"; "dropDownKeyNavigationEvent": "dropDownKeyNavigation"; }, never, never, true, never>;
|
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputTestComponent, "ca-input-test", never, { "selectedDropdownLabelColor": { "alias": "selectedDropdownLabelColor"; "required": false; }; "template": { "alias": "template"; "required": false; }; "incorrectValue": { "alias": "incorrectValue"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; }, { "handleToggleDropdownOptions": "handleToggleDropdownOptions"; "incorrectInput": "incorrectEvent"; "blurInput": "blurInput"; "focusInputEvent": "focusInput"; "changeInput": "change"; "commandEvent": "commandEvent"; "clearInputEvent": "clear"; "showHideDropdownEvent": "showHideDropdown"; "dropDownKeyNavigationEvent": "dropDownKeyNavigation"; }, never, never, true, never>;
|
|
111
128
|
}
|
|
112
129
|
export {};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
1
|
import { Constructor } from '../../../models/mixin.model';
|
|
3
2
|
import { InputCommandsAction } from '../enums';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export declare function InputCommandMixin<T extends Constructor<{
|
|
7
|
-
inputElement: ElementRef;
|
|
8
|
-
_inputConfig: ICaInput;
|
|
9
|
-
handleChangeInputAndUpdateControl(_: InputChangeValue): void;
|
|
10
|
-
}>>(Base: T): {
|
|
3
|
+
import { InputBase } from '../models/base.model';
|
|
4
|
+
export declare function InputCommandMixin<T extends Constructor<InputBase>>(Base: T): {
|
|
11
5
|
new (...args: any[]): {
|
|
12
6
|
onCommands(e: any): void;
|
|
13
7
|
handleMonths(action: string): void;
|
|
@@ -17,8 +11,19 @@ export declare function InputCommandMixin<T extends Constructor<{
|
|
|
17
11
|
handlePmIncrementDecrement(action: string): void;
|
|
18
12
|
decrementIncrementDecrementPmValue(value: number, action: InputCommandsAction): number;
|
|
19
13
|
resetPmValue(): void;
|
|
20
|
-
inputElement: ElementRef;
|
|
21
|
-
_inputConfig: ICaInput;
|
|
22
|
-
|
|
14
|
+
inputElement: import("@angular/core").ElementRef;
|
|
15
|
+
_inputConfig: import("../config").ICaInput;
|
|
16
|
+
onTouched: () => void;
|
|
17
|
+
onChange(_: any): void;
|
|
18
|
+
handleChangeInputAndUpdateControl(_: import("../utils").InputChangeValue): void;
|
|
19
|
+
isVisibleCommands: boolean;
|
|
20
|
+
maskApplier: import("ngx-mask").NgxMaskService;
|
|
21
|
+
thousandSeparatorPipe: import("../../../pipes").ThousandSeparatorPipe;
|
|
22
|
+
handleToggleDropdownOptions: import("@angular/core").EventEmitter<void>;
|
|
23
|
+
isFocusInput: boolean;
|
|
24
|
+
isEditInput: boolean;
|
|
25
|
+
isDropdownToggler: boolean;
|
|
26
|
+
isTouchedInput: boolean;
|
|
27
|
+
setCommandEvent: import("../base-classes/ca-input-event-manager").EventInputManager<import("../models").CommandsEvent>;
|
|
23
28
|
};
|
|
24
29
|
} & T;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
1
|
import { Constructor } from '../../../models/mixin.model';
|
|
3
2
|
import { ICaInput } from '../config';
|
|
4
3
|
import { InputChangeValue } from '../utils';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { EventInputManager } from '../base-classes/ca-input-event-manager';
|
|
8
|
-
import { CommandsEvent } from '../models';
|
|
9
|
-
export declare function InputHelperMixin<T extends Constructor<{
|
|
10
|
-
inputElement: ElementRef;
|
|
11
|
-
_inputConfig: ICaInput;
|
|
12
|
-
maskApplier: NgxMaskService;
|
|
13
|
-
thousandSeparatorPipe: ThousandSeparatorPipe;
|
|
14
|
-
handleToggleDropdownOptions: EventEmitter<void>;
|
|
15
|
-
isDropdownToggler: boolean;
|
|
16
|
-
isFocusInput: boolean;
|
|
17
|
-
isEditInput: boolean;
|
|
18
|
-
setCommandEvent: EventInputManager<CommandsEvent>;
|
|
19
|
-
}>>(Base: T): {
|
|
4
|
+
import { InputBase } from '../models/base.model';
|
|
5
|
+
export declare function InputHelperMixin<T extends Constructor<InputBase>>(Base: T): {
|
|
20
6
|
new (...args: any[]): {
|
|
21
7
|
transformValue(inputConfig: ICaInput, value: InputChangeValue): any;
|
|
22
8
|
toggleDropdownOptions(): void;
|
|
23
9
|
onPlaceholderIconEvent(event: Event): void;
|
|
24
|
-
inputElement: ElementRef;
|
|
10
|
+
inputElement: import("@angular/core").ElementRef;
|
|
25
11
|
_inputConfig: ICaInput;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
12
|
+
onTouched: () => void;
|
|
13
|
+
onChange(_: any): void;
|
|
14
|
+
handleChangeInputAndUpdateControl(_: InputChangeValue): void;
|
|
15
|
+
isVisibleCommands: boolean;
|
|
16
|
+
maskApplier: import("ngx-mask").NgxMaskService;
|
|
17
|
+
thousandSeparatorPipe: import("../../../pipes").ThousandSeparatorPipe;
|
|
18
|
+
handleToggleDropdownOptions: import("@angular/core").EventEmitter<void>;
|
|
30
19
|
isFocusInput: boolean;
|
|
31
20
|
isEditInput: boolean;
|
|
32
|
-
|
|
21
|
+
isDropdownToggler: boolean;
|
|
22
|
+
isTouchedInput: boolean;
|
|
23
|
+
setCommandEvent: import("../base-classes/ca-input-event-manager").EventInputManager<import("../models").CommandsEvent>;
|
|
33
24
|
};
|
|
34
25
|
} & T;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ICaInput } from '../config';
|
|
3
|
+
import { InputChangeValue } from '../utils';
|
|
4
|
+
import { NgxMaskService } from 'ngx-mask';
|
|
5
|
+
import { ThousandSeparatorPipe } from '../../../pipes';
|
|
6
|
+
import { EventInputManager } from '../base-classes/ca-input-event-manager';
|
|
7
|
+
import { CommandsEvent } from './commands-event.model';
|
|
8
|
+
export type InputBase = {
|
|
9
|
+
inputElement: ElementRef;
|
|
10
|
+
_inputConfig: ICaInput;
|
|
11
|
+
onTouched: () => void;
|
|
12
|
+
onChange(_: any): void;
|
|
13
|
+
handleChangeInputAndUpdateControl(_: InputChangeValue): void;
|
|
14
|
+
isVisibleCommands: boolean;
|
|
15
|
+
maskApplier: NgxMaskService;
|
|
16
|
+
thousandSeparatorPipe: ThousandSeparatorPipe;
|
|
17
|
+
handleToggleDropdownOptions: EventEmitter<void>;
|
|
18
|
+
isFocusInput: boolean;
|
|
19
|
+
isEditInput: boolean;
|
|
20
|
+
isDropdownToggler: boolean;
|
|
21
|
+
isTouchedInput: boolean;
|
|
22
|
+
setCommandEvent: EventInputManager<CommandsEvent>;
|
|
23
|
+
};
|
|
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, Renderer2 } from '@angular/core';
|
|
|
2
2
|
import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
4
4
|
import { ICaInput } from '../ca-input/config';
|
|
5
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
5
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
6
6
|
import { CommandsEvent } from '../ca-input/models';
|
|
7
7
|
import { OptionModel } from './models/input-dropdown-option.model';
|
|
8
8
|
import { ImageBase64Service } from '../../services/image-base64.service';
|
|
@@ -17,13 +17,17 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
|
|
|
17
17
|
private renderer;
|
|
18
18
|
inputRef: InputTestComponent;
|
|
19
19
|
popoverRef: NgbPopover;
|
|
20
|
+
label: string;
|
|
21
|
+
optionValue: string;
|
|
20
22
|
inputHoveredItem: number;
|
|
21
23
|
_template: string;
|
|
22
24
|
_canAddNew: boolean;
|
|
25
|
+
searchText: string;
|
|
23
26
|
set template(value: string);
|
|
24
27
|
multiselectTemplate: string;
|
|
25
28
|
inputConfig: ICaInput;
|
|
26
29
|
set canAddNew(value: boolean);
|
|
30
|
+
get canAddNew(): boolean;
|
|
27
31
|
canOpenModal: boolean;
|
|
28
32
|
_sort: string;
|
|
29
33
|
set sort(value: string);
|
|
@@ -66,9 +70,12 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
|
|
|
66
70
|
private destroy$;
|
|
67
71
|
constructor(superControl: NgControl, imageBase64Service: ImageBase64Service, cdRef: ChangeDetectorRef, renderer: Renderer2);
|
|
68
72
|
get getSuperControl(): import("@angular/forms").AbstractControl<any, any> | null;
|
|
73
|
+
inputFormControl: FormControl;
|
|
69
74
|
writeValue(_: any): void;
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
onTouched: () => void;
|
|
76
|
+
onChange(_: any): void;
|
|
77
|
+
registerOnChange(fn: any): void;
|
|
78
|
+
registerOnTouched(fn: () => void): void;
|
|
72
79
|
ngOnInit(): void;
|
|
73
80
|
ngOnChanges(changes: SimpleChanges): void;
|
|
74
81
|
ngAfterViewInit(): void;
|
|
@@ -89,16 +96,21 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
|
|
|
89
96
|
toggleNestedList(option: OptionModel): void;
|
|
90
97
|
onBlurInput(event: boolean): void;
|
|
91
98
|
onClearInputEvent(event: boolean): void;
|
|
99
|
+
handleHiddenDropdown(): void;
|
|
100
|
+
handleOpenDropdown(): void;
|
|
92
101
|
showHideDropdown(action: boolean): void;
|
|
93
102
|
dropDownKeyNavigation({ keyCode, data, }: {
|
|
94
103
|
keyCode: number;
|
|
95
104
|
data: any;
|
|
96
105
|
}): void;
|
|
106
|
+
setDropdownValue(option: OptionModel): void;
|
|
97
107
|
onMultiselectSelect(option: OptionModel): void;
|
|
98
108
|
removeMultiSelectItem(index: number): void;
|
|
99
109
|
deleteAllMultiSelectItems(currentLabel?: string): void;
|
|
100
110
|
toggleMultiselectDropdown(): void;
|
|
101
111
|
private pickupElementWithKeyboard;
|
|
112
|
+
dropdownValue: string | undefined;
|
|
113
|
+
setControlValue(value?: string, dropdownInputValue?: string): void;
|
|
102
114
|
private search;
|
|
103
115
|
/**
|
|
104
116
|
* Navigate through dropdown with keyboard arrows
|
|
@@ -106,5 +118,5 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
|
|
|
106
118
|
private dropdownNavigation;
|
|
107
119
|
ngOnDestroy(): void;
|
|
108
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaInputDropdownComponent, [{ self: true; }, null, null, null]>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownComponent, "app-ca-input-dropdown", never, { "template": { "alias": "template"; "required": false; }; "multiselectTemplate": { "alias": "multiselectTemplate"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "canAddNew": { "alias": "canAddNew"; "required": false; }; "canOpenModal": { "alias": "canOpenModal"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "activeItemColor": { "alias": "activeItemColor"; "required": false; }; "labelMode": { "alias": "labelMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "preloadMultiselectItems": { "alias": "preloadMultiselectItems"; "required": false; }; "isDetailsPages": { "alias": "isDetailsPages"; "required": false; }; "isIncorrectValue": { "alias": "isIncorrectValue"; "required": false; }; "isAddressDropdown": { "alias": "isAddressDropdown"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; "selectedItemColor": "selectedItemColor"; "selectedLabelMode": "selectedLabelMode"; "closeDropdown": "closeDropdown"; "saveItem": "saveItem"; "incorrectEvent": "incorrectEvent"; "placeholderIconEvent": "placeholderIconEvent"; "paginationEvent": "pagination"; "activeGroupEvent": "activeGroup"; "clearInputEvent": "clearInputEvent"; }, never, never, true, never>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownComponent, "app-ca-input-dropdown", never, { "label": { "alias": "label"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "template": { "alias": "template"; "required": false; }; "multiselectTemplate": { "alias": "multiselectTemplate"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "canAddNew": { "alias": "canAddNew"; "required": false; }; "canOpenModal": { "alias": "canOpenModal"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "activeItemColor": { "alias": "activeItemColor"; "required": false; }; "labelMode": { "alias": "labelMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "preloadMultiselectItems": { "alias": "preloadMultiselectItems"; "required": false; }; "isDetailsPages": { "alias": "isDetailsPages"; "required": false; }; "isIncorrectValue": { "alias": "isIncorrectValue"; "required": false; }; "isAddressDropdown": { "alias": "isAddressDropdown"; "required": false; }; }, { "selectedItem": "selectedItem"; "selectedItems": "selectedItems"; "selectedItemColor": "selectedItemColor"; "selectedLabelMode": "selectedLabelMode"; "closeDropdown": "closeDropdown"; "saveItem": "saveItem"; "incorrectEvent": "incorrectEvent"; "placeholderIconEvent": "placeholderIconEvent"; "paginationEvent": "pagination"; "activeGroupEvent": "activeGroup"; "clearInputEvent": "clearInputEvent"; }, never, never, true, never>;
|
|
110
122
|
}
|
|
@@ -7,6 +7,7 @@ export declare class CaInputDropdownDefaultTemplateComponent {
|
|
|
7
7
|
dropdownOption: QueryList<ElementRef>;
|
|
8
8
|
options: OptionModel[];
|
|
9
9
|
activeItem: OptionModel | null;
|
|
10
|
+
searchText: string;
|
|
10
11
|
getSuperControl: AbstractControl<any, any> | null;
|
|
11
12
|
inputConfig: ICaInput;
|
|
12
13
|
set inputHoveredItem(val: number);
|
|
@@ -16,5 +17,5 @@ export declare class CaInputDropdownDefaultTemplateComponent {
|
|
|
16
17
|
constructor();
|
|
17
18
|
onActiveItemEmit(option: OptionModel): void;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaInputDropdownDefaultTemplateComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownDefaultTemplateComponent, "app-ca-input-dropdown-default-template", never, { "options": { "alias": "options"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "getSuperControl": { "alias": "getSuperControl"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "inputHoveredItem": { "alias": "inputHoveredItem"; "required": false; }; }, { "onActiveItem": "onActiveItem"; }, never, never, true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaInputDropdownDefaultTemplateComponent, "app-ca-input-dropdown-default-template", never, { "options": { "alias": "options"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; "searchText": { "alias": "searchText"; "required": false; }; "getSuperControl": { "alias": "getSuperControl"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "inputHoveredItem": { "alias": "inputHoveredItem"; "required": false; }; }, { "onActiveItem": "onActiveItem"; }, never, never, true, never>;
|
|
20
21
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { OptionModel } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DropdownOptionsPipe implements PipeTransform {
|
|
5
|
+
transform(searchText: string, options: OptionModel[], canAddNew: boolean, label: string): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownOptionsPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DropdownOptionsPipe, "caDropdownOptionsPipe", true>;
|
|
8
|
+
}
|