cats-ui-lib 2.0.14 → 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/assets/images/building-07.svg +3 -0
- package/assets/images/chevron-down-white.svg +3 -0
- package/assets/images/chevron-right-blue.svg +3 -0
- package/assets/images/chevron-right-red.svg +3 -0
- package/assets/images/clock-refresh.svg +3 -0
- package/assets/images/file-check-02.svg +3 -0
- package/assets/images/key-01.svg +3 -0
- package/assets/images/log-out-04.svg +3 -0
- package/assets/images/message-smile-square.svg +3 -0
- package/assets/images/settings-04.svg +3 -0
- package/assets/images/spanish-flag.svg +72 -0
- package/assets/images/star-yellow.svg +3 -0
- package/assets/images/user-image.svg +9 -0
- package/assets/images/users-01.svg +3 -0
- package/fesm2022/cats-ui-lib.mjs +155 -7
- package/fesm2022/cats-ui-lib.mjs.map +1 -1
- package/index.d.ts +70 -4
- package/package.json +1 -1
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;
|
|
@@ -1045,13 +1054,70 @@ declare class FileUploadComponent implements ControlValueAccessor {
|
|
|
1045
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>;
|
|
1046
1055
|
}
|
|
1047
1056
|
|
|
1057
|
+
interface HeaderConfig {
|
|
1058
|
+
brandLogo: string;
|
|
1059
|
+
productLogo: string;
|
|
1060
|
+
showDropdown?: boolean;
|
|
1061
|
+
showGlobalIcon?: boolean;
|
|
1062
|
+
showAiAgent?: boolean;
|
|
1063
|
+
}
|
|
1048
1064
|
declare class HeaderComponent {
|
|
1065
|
+
private router;
|
|
1066
|
+
constructor(router: Router);
|
|
1067
|
+
config: HeaderConfig;
|
|
1068
|
+
dropdownItems: any[];
|
|
1049
1069
|
menuOpen: boolean;
|
|
1070
|
+
dropdownOpen: boolean;
|
|
1071
|
+
selectedItem: any;
|
|
1072
|
+
ngOnInit(): void;
|
|
1073
|
+
onSelect(item: any): void;
|
|
1050
1074
|
toggleMenu(): void;
|
|
1075
|
+
toggleDropdown(): void;
|
|
1051
1076
|
closeMenu(): void;
|
|
1052
1077
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
1053
|
-
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>;
|
|
1054
1120
|
}
|
|
1055
1121
|
|
|
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 };
|
|
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 };
|