ca-components 1.1.994 → 1.1.996

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.
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
2
+ import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { ICaInput } from '../config';
4
4
  import { InputChangeValue, InputSvgRoutes } from '../utils';
5
5
  import { CommandsEvent, LabelColor } from '../models';
@@ -81,6 +81,7 @@ export declare class InputTestComponent extends InputTestComponent_base implemen
81
81
  _inputConfig: ICaInput;
82
82
  inputSvgRoutes: typeof InputSvgRoutes;
83
83
  inputElement: ElementRef;
84
+ parentControl: AbstractControl<any, any> | null;
84
85
  selectedDropdownLabelColor: LabelColor | null;
85
86
  template: string;
86
87
  incorrectValue: boolean;
@@ -107,7 +108,7 @@ export declare class InputTestComponent extends InputTestComponent_base implemen
107
108
  get inputConfig(): ICaInput;
108
109
  constructor(ngControl: NgControl, chdet: ChangeDetectorRef, maskApplier: NgxMaskService, thousandSeparatorPipe: ThousandSeparatorPipe);
109
110
  ngAfterViewInit(): void;
110
- get control(): import("@angular/forms").AbstractControl<any, any> | null;
111
+ get control(): AbstractControl<any, any> | null;
111
112
  registerOnChange(fn: any): void;
112
113
  registerOnTouched(fn: () => void): void;
113
114
  writeValue(obj: InputChangeValue): void;
@@ -124,6 +125,6 @@ export declare class InputTestComponent extends InputTestComponent_base implemen
124
125
  identify(index: number): number;
125
126
  handleKeyDown(event: KeyboardEvent): void;
126
127
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTestComponent, [{ optional: true; self: true; }, null, null, null]>;
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>;
128
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTestComponent, "ca-input-test", never, { "parentControl": { "alias": "parentControl"; "required": false; }; "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>;
128
129
  }
129
130
  export {};
@@ -1,5 +1,6 @@
1
1
  import { FormControl } from '@angular/forms';
2
2
  import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
3
+ import { Observable } from 'rxjs';
3
4
  import { UntypedFormGroup, NgControl, ControlValueAccessor } from '@angular/forms';
4
5
  import { ICaInput } from '../ca-input/config/ca-input.config';
5
6
  import { CaInputDropdownComponent } from '../ca-input-dropdown/ca-input-dropdown.component';
@@ -50,6 +51,9 @@ export declare class CaInputAddressDropdownComponent implements OnInit, ControlV
50
51
  onChange(_: any): void;
51
52
  registerOnTouched(_: any): void;
52
53
  ngOnInit(): void;
54
+ private observableInputSearch;
55
+ observableInputSearch$: Observable<string>;
56
+ handleSearchInput(text: string): void;
53
57
  initChangesListener(): void;
54
58
  get getSuperControl(): FormControl;
55
59
  onCloseDropdown(event: boolean): void;
@@ -9,6 +9,7 @@ import { ImageBase64Service } from '../../services/image-base64.service';
9
9
  import { InputDropdownSvgRoutes } from './utils/svg-routes/input-dropdown-svg-routes';
10
10
  import { DropdownTemplateTypeEnum } from './enums';
11
11
  import { InputTestComponent } from '../ca-input/input-test/input-test.component';
12
+ import { EventInputManager } from '../ca-input/base-classes/ca-input-event-manager';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class CaInputDropdownComponent implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, AfterViewInit {
14
15
  superControl: NgControl;
@@ -24,7 +25,6 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
24
25
  dropDownIsOpen: boolean;
25
26
  _template: string;
26
27
  _canAddNew: boolean;
27
- searchText: string;
28
28
  set template(value: string);
29
29
  multiselectTemplate: string;
30
30
  inputConfig: ICaInput;
@@ -59,6 +59,8 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
59
59
  paginationEvent: EventEmitter<number>;
60
60
  activeGroupEvent: EventEmitter<OptionModel>;
61
61
  clearInputEvent: EventEmitter<boolean>;
62
+ searchInputEvent: EventEmitter<string>;
63
+ searchInputText: EventInputManager<string>;
62
64
  originalOptions: OptionModel[];
63
65
  paginationNumber: number;
64
66
  multiselectItems: OptionModel[];
@@ -119,5 +121,5 @@ export declare class CaInputDropdownComponent implements OnInit, AfterViewInit,
119
121
  private dropdownNavigation;
120
122
  ngOnDestroy(): void;
121
123
  static ɵfac: i0.ɵɵFactoryDeclaration<CaInputDropdownComponent, [{ self: true; }, null, null, null]>;
122
- 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>;
124
+ 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"; "searchInputEvent": "searchInputEvent"; }, never, never, true, never>;
123
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.1.994",
3
+ "version": "1.1.996",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",