cats-ui-lib 2.0.13 → 2.0.15

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/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, OnInit, OnChanges, TemplateRef, ChangeDetectorRef, ElementRef, SimpleChanges, OnDestroy, Renderer2, QueryList } from '@angular/core';
3
- import { ControlValueAccessor, Validator, FormControl, AbstractControl, ValidationErrors } from '@angular/forms';
2
+ import { EventEmitter, OnInit, OnChanges, TemplateRef, ChangeDetectorRef, ElementRef, SimpleChanges, OnDestroy, Renderer2, QueryList, ViewContainerRef, ApplicationRef, EnvironmentInjector } from '@angular/core';
3
+ import { ControlValueAccessor, Validator, FormControl } from '@angular/forms';
4
4
  import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
5
+ import { Router } from '@angular/router';
6
+ import { Observable } from 'rxjs';
5
7
 
6
8
  declare class CatsUiService {
7
9
  constructor();
@@ -94,6 +96,13 @@ interface RadioButtonConfig {
94
96
  name: string;
95
97
  layout?: 'horizontal' | 'vertical';
96
98
  }
99
+ interface DialogConfig {
100
+ id?: string;
101
+ title?: string;
102
+ closeOnBackdropClick?: boolean;
103
+ showBackdrop?: boolean;
104
+ class?: string;
105
+ }
97
106
 
98
107
  declare class InputComponent implements ControlValueAccessor, Validator {
99
108
  inputConfig: InputConfig;
@@ -383,7 +392,7 @@ declare class AutoCompleteSingleSelectComponent implements OnInit {
383
392
  registerOnChange(fn: any): void;
384
393
  registerOnTouched(fn: any): void;
385
394
  setDisabledState(isDisabled: boolean): void;
386
- validate(control: AbstractControl): ValidationErrors | null;
395
+ validate(control: FormControl): void;
387
396
  private syncSelectionWithValue;
388
397
  /**
389
398
  * @description this method is use to update input value
@@ -431,7 +440,7 @@ declare class OutsideClickDirective {
431
440
  static ɵdir: i0.ɵɵDirectiveDeclaration<OutsideClickDirective, "[catsOutsideClick]", never, {}, { "clickOutSide": "clickOutSide"; }, never, never, true, never>;
432
441
  }
433
442
 
434
- declare class AutoCompleteMultiSelectComponent implements OnInit, ControlValueAccessor, Validator {
443
+ declare class AutoCompleteMultiSelectComponent implements OnInit, ControlValueAccessor {
435
444
  private sanitizer;
436
445
  autoCompleteMultiSelectConfig: AutoCompleteMultiSelectConfig;
437
446
  selectedItem: any;
@@ -461,8 +470,9 @@ declare class AutoCompleteMultiSelectComponent implements OnInit, ControlValueAc
461
470
  registerOnChange(fn: any): void;
462
471
  registerOnTouched(fn: any): void;
463
472
  setDisabledState(isDisabled: boolean): void;
464
- validate(control: AbstractControl): ValidationErrors | null;
473
+ validate(control: FormControl): void;
465
474
  onInput(event: Event): void;
475
+ handleBlur(): void;
466
476
  /**
467
477
  * @description method to update selected item
468
478
  * @author Shiva Kant
@@ -646,7 +656,6 @@ declare class CustomDatePickerComponent implements OnInit, ControlValueAccessor,
646
656
  private onChange;
647
657
  private onTouched;
648
658
  isOpen: boolean;
649
- control: FormControl<any> | null;
650
659
  selectedDate: Date | null;
651
660
  tempDate: Date | null;
652
661
  rangeFrom: Date | null;
@@ -687,7 +696,6 @@ declare class CustomDatePickerComponent implements OnInit, ControlValueAccessor,
687
696
  writeValue(val: any): void;
688
697
  registerOnChange(fn: any): void;
689
698
  registerOnTouched(fn: any): void;
690
- validate(control: FormControl): any;
691
699
  toggleCalendar(): void;
692
700
  initializeCurrentMonthYear(): void;
693
701
  onDocumentClick(event: MouseEvent): void;
@@ -1046,13 +1054,70 @@ declare class FileUploadComponent implements ControlValueAccessor {
1046
1054
  static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "cats-ui-file-upload", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "buttonPosition": { "alias": "buttonPosition"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, {}, never, never, true, never>;
1047
1055
  }
1048
1056
 
1057
+ interface HeaderConfig {
1058
+ brandLogo: string;
1059
+ productLogo: string;
1060
+ showDropdown?: boolean;
1061
+ showGlobalIcon?: boolean;
1062
+ showAiAgent?: boolean;
1063
+ }
1049
1064
  declare class HeaderComponent {
1065
+ private router;
1066
+ constructor(router: Router);
1067
+ config: HeaderConfig;
1068
+ dropdownItems: any[];
1050
1069
  menuOpen: boolean;
1070
+ dropdownOpen: boolean;
1071
+ selectedItem: any;
1072
+ ngOnInit(): void;
1073
+ onSelect(item: any): void;
1051
1074
  toggleMenu(): void;
1075
+ toggleDropdown(): void;
1052
1076
  closeMenu(): void;
1053
1077
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
1054
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "cats-ui-header", never, {}, {}, never, never, true, never>;
1078
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "cats-ui-header", never, { "config": { "alias": "config"; "required": false; }; "dropdownItems": { "alias": "dropdownItems"; "required": false; }; }, {}, never, never, true, never>;
1079
+ }
1080
+
1081
+ declare class DialogRef<T = any> {
1082
+ id: string;
1083
+ private afterClosed$;
1084
+ constructor(id: string);
1085
+ close(result?: T): void;
1086
+ afterClosed(): Observable<T | undefined>;
1087
+ }
1088
+
1089
+ declare class DialogBoxComponent {
1090
+ content: any;
1091
+ config: DialogConfig;
1092
+ dialogRef: DialogRef;
1093
+ expandable: boolean;
1094
+ vc: ViewContainerRef;
1095
+ isExpanded: boolean;
1096
+ ngAfterViewInit(): void;
1097
+ toggleExpand(): void;
1098
+ onBackdropClick(): void;
1099
+ closeModal(): void;
1100
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogBoxComponent, never>;
1101
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogBoxComponent, "cats-ui-dialog-box", never, { "content": { "alias": "content"; "required": false; }; "config": { "alias": "config"; "required": false; }; "dialogRef": { "alias": "dialogRef"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; }, {}, never, never, true, never>;
1102
+ }
1103
+
1104
+ declare class DialogBoxService {
1105
+ private appRef;
1106
+ private injector;
1107
+ private dialogs;
1108
+ constructor(appRef: ApplicationRef, injector: EnvironmentInjector);
1109
+ open(componentOrTemplate: any, config?: DialogConfig): DialogRef;
1110
+ close(id: string): void;
1111
+ closeAll(): void;
1112
+ private generateId;
1113
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogBoxService, never>;
1114
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogBoxService>;
1115
+ }
1116
+
1117
+ declare class SidebarComponent {
1118
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
1119
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "cats-ui-sidebar", never, {}, {}, never, never, true, never>;
1055
1120
  }
1056
1121
 
1057
- export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, CustomDatePickerComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR, FileUploadComponent, HeaderComponent, InputComponent, InputConfig, MULTI_SELECT_CONTROL_VALUE_ACCESSOR, MULTI_SELECT_CONTROL_VALUE_VALIDATOR, MultiSelectComponent, MultiSelectConfig, OutsideClickDirective, RadioButtonComponent, SINGLE_SELECT_CONTROL_VALUE_ACCESSOR, SINGLE_SELECT_CONTROL_VALUE_VALIDATOR, SearchBoxComponent, SearchConfig, SingleSelectComponent, SingleSelectConfig, TabContentComponent, TabsetComponent, TimestampFilterComponent, ToggleConfig, ToogleButtonComponent, WizardComponent, WizardService, WizardStepDirective };
1058
- export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, FilterType, RadioButtonConfig, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput, TimeFilterValue };
1122
+ export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, CustomDatePickerComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR, DialogBoxComponent, DialogBoxService, FileUploadComponent, HeaderComponent, InputComponent, InputConfig, MULTI_SELECT_CONTROL_VALUE_ACCESSOR, MULTI_SELECT_CONTROL_VALUE_VALIDATOR, MultiSelectComponent, MultiSelectConfig, OutsideClickDirective, RadioButtonComponent, SINGLE_SELECT_CONTROL_VALUE_ACCESSOR, SINGLE_SELECT_CONTROL_VALUE_VALIDATOR, SearchBoxComponent, SearchConfig, SidebarComponent, SingleSelectComponent, SingleSelectConfig, TabContentComponent, TabsetComponent, TimestampFilterComponent, ToggleConfig, ToogleButtonComponent, WizardComponent, WizardService, WizardStepDirective };
1123
+ export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, DialogConfig, FilterType, HeaderConfig, RadioButtonConfig, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput, TimeFilterValue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cats-ui-lib",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "peerDependencies": {
5
5
  "@angular/core": ">=18 <22",
6
6
  "@angular/common": ">=18 <22"