cats-ui-lib 2.0.14 → 2.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.
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';
2
+ import { EventEmitter, OnInit, OnChanges, TemplateRef, ChangeDetectorRef, ElementRef, SimpleChanges, OnDestroy, Renderer2, QueryList, ViewContainerRef, ApplicationRef, EnvironmentInjector } from '@angular/core';
3
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;
@@ -1001,6 +1010,7 @@ declare class FileUploadComponent implements ControlValueAccessor {
1001
1010
  maxSize: number | null;
1002
1011
  minSize: number | null;
1003
1012
  helperText: string;
1013
+ onfileChange: EventEmitter<any>;
1004
1014
  /**
1005
1015
  * Accepted MIME types or extensions, comma-separated.
1006
1016
  * e.g. 'image/png,image/jpeg' or '.png,.jpg,.pdf'
@@ -1042,16 +1052,108 @@ declare class FileUploadComponent implements ControlValueAccessor {
1042
1052
  get displayError(): string;
1043
1053
  get hasError(): boolean;
1044
1054
  static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
1045
- 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>;
1055
+ 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; }; }, { "onfileChange": "onfileChange"; }, never, never, true, never>;
1046
1056
  }
1047
1057
 
1058
+ interface HeaderConfig {
1059
+ brandLogo: string;
1060
+ productLogo: string;
1061
+ showDropdown?: boolean;
1062
+ showGlobalIcon?: boolean;
1063
+ showAiAgent?: boolean;
1064
+ }
1048
1065
  declare class HeaderComponent {
1066
+ private router;
1067
+ constructor(router: Router);
1068
+ config: HeaderConfig;
1069
+ dropdownItems: any[];
1049
1070
  menuOpen: boolean;
1071
+ dropdownOpen: boolean;
1072
+ selectedItem: any;
1073
+ ngOnInit(): void;
1074
+ onSelect(item: any): void;
1050
1075
  toggleMenu(): void;
1076
+ toggleDropdown(): void;
1051
1077
  closeMenu(): void;
1052
1078
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
1053
- static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "cats-ui-header", never, {}, {}, never, never, true, never>;
1079
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "cats-ui-header", never, { "config": { "alias": "config"; "required": false; }; "dropdownItems": { "alias": "dropdownItems"; "required": false; }; }, {}, never, never, true, never>;
1080
+ }
1081
+
1082
+ declare class DialogRef<T = any> {
1083
+ id: string;
1084
+ private afterClosed$;
1085
+ constructor(id: string);
1086
+ close(result?: T): void;
1087
+ afterClosed(): Observable<T | undefined>;
1088
+ }
1089
+
1090
+ declare class DialogBoxComponent {
1091
+ content: any;
1092
+ config: DialogConfig;
1093
+ dialogRef: DialogRef;
1094
+ expandable: boolean;
1095
+ vc: ViewContainerRef;
1096
+ isExpanded: boolean;
1097
+ ngAfterViewInit(): void;
1098
+ toggleExpand(): void;
1099
+ onBackdropClick(): void;
1100
+ closeModal(): void;
1101
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogBoxComponent, never>;
1102
+ 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>;
1103
+ }
1104
+
1105
+ declare class DialogBoxService {
1106
+ private appRef;
1107
+ private injector;
1108
+ private dialogs;
1109
+ constructor(appRef: ApplicationRef, injector: EnvironmentInjector);
1110
+ open(componentOrTemplate: any, config?: DialogConfig): DialogRef;
1111
+ close(id: string): void;
1112
+ closeAll(): void;
1113
+ private generateId;
1114
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogBoxService, never>;
1115
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogBoxService>;
1116
+ }
1117
+
1118
+ interface SidebarAttribute {
1119
+ attributeId?: number;
1120
+ attributeName: string;
1121
+ attributeDesc?: string;
1122
+ viewAccess?: boolean;
1123
+ createAccess?: boolean;
1124
+ updateAccess?: boolean;
1125
+ deleteAccess?: boolean;
1126
+ }
1127
+ interface SidebarFeature {
1128
+ featureId?: number;
1129
+ moduleId?: number;
1130
+ featuresName: string;
1131
+ icon?: string;
1132
+ activeIcon?: string;
1133
+ expandable?: boolean;
1134
+ url?: string;
1135
+ isEnable: boolean;
1136
+ attributes?: SidebarAttribute[];
1137
+ }
1138
+ interface SidebarModule {
1139
+ moduleName: string;
1140
+ icon?: string;
1141
+ activeIcon?: string;
1142
+ expandable?: boolean;
1143
+ url?: string;
1144
+ isEnable: boolean;
1145
+ features: SidebarFeature[];
1146
+ }
1147
+ declare class SidebarComponent {
1148
+ config: SidebarModule[];
1149
+ expandedFeatures: Set<string>;
1150
+ activeItem: string | null;
1151
+ toggleFeature(key: string): void;
1152
+ isExpanded(key: string): boolean;
1153
+ setActive(key: string): void;
1154
+ static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
1155
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "cats-ui-sidebar", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
1054
1156
  }
1055
1157
 
1056
- 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 };
1057
- export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, FilterType, RadioButtonConfig, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput, TimeFilterValue };
1158
+ 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 };
1159
+ export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, DialogConfig, FilterType, HeaderConfig, RadioButtonConfig, SidebarAttribute, SidebarFeature, SidebarModule, 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.14",
3
+ "version": "2.0.16",
4
4
  "peerDependencies": {
5
5
  "@angular/core": ">=18 <22",
6
6
  "@angular/common": ">=18 <22"