cats-ui-lib 2.0.18 → 2.0.19
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/user-active.svg +10 -0
- package/fesm2022/cats-ui-lib.mjs +244 -113
- package/fesm2022/cats-ui-lib.mjs.map +1 -1
- package/index.d.ts +28 -12
- package/package.json +1 -1
- package/styles/_utilities.scss +1 -1
package/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
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
5
|
import { Observable } from 'rxjs';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
7
7
|
|
|
8
8
|
declare class CatsUiService {
|
|
9
9
|
constructor();
|
|
@@ -1064,11 +1064,10 @@ interface HeaderConfig {
|
|
|
1064
1064
|
showAiAgent?: boolean;
|
|
1065
1065
|
}
|
|
1066
1066
|
declare class HeaderComponent {
|
|
1067
|
-
|
|
1068
|
-
constructor(router: Router);
|
|
1069
|
-
config: HeaderConfig;
|
|
1067
|
+
headerConfig: HeaderConfig;
|
|
1070
1068
|
dropdownItems: any[];
|
|
1071
|
-
|
|
1069
|
+
onDropdownSelection: EventEmitter<any>;
|
|
1070
|
+
profileOpen: boolean;
|
|
1072
1071
|
dropdownOpen: boolean;
|
|
1073
1072
|
selectedItem: any;
|
|
1074
1073
|
ngOnInit(): void;
|
|
@@ -1077,7 +1076,7 @@ declare class HeaderComponent {
|
|
|
1077
1076
|
toggleDropdown(): void;
|
|
1078
1077
|
closeMenu(): void;
|
|
1079
1078
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
1080
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "cats-ui-header", never, { "
|
|
1079
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "cats-ui-header", never, { "headerConfig": { "alias": "headerConfig"; "required": false; }; "dropdownItems": { "alias": "dropdownItems"; "required": false; }; }, { "onDropdownSelection": "onDropdownSelection"; }, never, never, true, never>;
|
|
1081
1080
|
}
|
|
1082
1081
|
|
|
1083
1082
|
declare class DialogRef<T = any> {
|
|
@@ -1116,6 +1115,10 @@ declare class DialogBoxService {
|
|
|
1116
1115
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogBoxService>;
|
|
1117
1116
|
}
|
|
1118
1117
|
|
|
1118
|
+
interface SidebarConfig {
|
|
1119
|
+
sidebarType?: 'sectional' | string;
|
|
1120
|
+
switchOrganiser?: boolean;
|
|
1121
|
+
}
|
|
1119
1122
|
interface SidebarAttribute {
|
|
1120
1123
|
attributeId?: number;
|
|
1121
1124
|
attributeName: string;
|
|
@@ -1131,7 +1134,7 @@ interface SidebarFeature {
|
|
|
1131
1134
|
activeIcon?: string;
|
|
1132
1135
|
expandable?: boolean;
|
|
1133
1136
|
url?: string;
|
|
1134
|
-
isEnable
|
|
1137
|
+
isEnable?: boolean;
|
|
1135
1138
|
attributes?: SidebarAttribute[];
|
|
1136
1139
|
}
|
|
1137
1140
|
interface SidebarModule {
|
|
@@ -1140,20 +1143,24 @@ interface SidebarModule {
|
|
|
1140
1143
|
activeIcon?: string;
|
|
1141
1144
|
expandable?: boolean;
|
|
1142
1145
|
url?: string;
|
|
1143
|
-
isEnable
|
|
1146
|
+
isEnable?: boolean;
|
|
1144
1147
|
features: SidebarFeature[];
|
|
1145
1148
|
}
|
|
1146
1149
|
declare class SidebarComponent {
|
|
1147
|
-
|
|
1150
|
+
private router;
|
|
1151
|
+
appMenus: SidebarModule[];
|
|
1148
1152
|
isCollapsed: boolean;
|
|
1149
|
-
|
|
1153
|
+
sidebarConfig: SidebarConfig;
|
|
1150
1154
|
expandedFeatures: Set<string>;
|
|
1151
1155
|
activeSidebar: EventEmitter<any>;
|
|
1156
|
+
collapsedOpenModule: number | null;
|
|
1157
|
+
collapsedOpenFeature: string | null;
|
|
1152
1158
|
activeItem: {
|
|
1153
1159
|
moduleIndex: number;
|
|
1154
1160
|
featureIndex: number;
|
|
1155
1161
|
attrIndex: number;
|
|
1156
1162
|
} | null;
|
|
1163
|
+
constructor(router: Router);
|
|
1157
1164
|
/** A feature is expandable if it has at least one attribute */
|
|
1158
1165
|
isExpandable(feature: SidebarFeature): boolean;
|
|
1159
1166
|
ngOnInit(): void;
|
|
@@ -1166,9 +1173,18 @@ declare class SidebarComponent {
|
|
|
1166
1173
|
setActiveItem(moduleIndex: number, featureIndex: number, attrIndex: number): void;
|
|
1167
1174
|
onFeatureClick(moduleIndex: number, featureIndex: number, feature: SidebarFeature): void;
|
|
1168
1175
|
isActiveItem(moduleIndex: number, featureIndex?: number, attrIndex?: number): boolean;
|
|
1176
|
+
collapsedModuleIndex: number | null;
|
|
1177
|
+
collapsedFeatureIndex: number | null;
|
|
1178
|
+
isOpenAttribute: boolean;
|
|
1179
|
+
isCollapsedIconActive(mIdx: number, fIdx?: number): boolean;
|
|
1180
|
+
onCollapsedSectionalIconClick(mIdx: number, fIdx: number, source?: string): void;
|
|
1181
|
+
onCollapsedModuleIconClick(mIdx: number): void;
|
|
1182
|
+
onCollapsedFeatureClick(mIdx: number, fIdx: number): void;
|
|
1183
|
+
navigateToItem(module: SidebarModule, feature?: SidebarFeature, attribute?: SidebarAttribute): void;
|
|
1184
|
+
handleOutsideClick(event: Event): void;
|
|
1169
1185
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
1170
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "cats-ui-sidebar", never, { "
|
|
1186
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "cats-ui-sidebar", never, { "appMenus": { "alias": "appMenus"; "required": false; }; "sidebarConfig": { "alias": "sidebarConfig"; "required": false; }; }, { "activeSidebar": "activeSidebar"; }, never, never, true, never>;
|
|
1171
1187
|
}
|
|
1172
1188
|
|
|
1173
1189
|
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 };
|
|
1174
|
-
export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, DialogConfig, FilterType, HeaderConfig, RadioButtonConfig, SidebarAttribute, SidebarFeature, SidebarModule, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput, TimeFilterValue };
|
|
1190
|
+
export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, DialogConfig, FilterType, HeaderConfig, RadioButtonConfig, SidebarAttribute, SidebarConfig, SidebarFeature, SidebarModule, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput, TimeFilterValue };
|
package/package.json
CHANGED
package/styles/_utilities.scss
CHANGED
|
@@ -805,7 +805,7 @@ button.cats-btn {
|
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
// ------------------Checkbox Styles--------------------
|
|
808
|
-
.checkbox-container,
|
|
808
|
+
.cats-checkbox-container,
|
|
809
809
|
.cats-item, .cats-multiitem {
|
|
810
810
|
@include flex(flex-start, center, rem(8px));
|
|
811
811
|
@include fontStyle(var(--fs-16), rem(20px), 400);
|