cats-ui-lib 2.0.17 → 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/filled-dropdown.svg +3 -0
- package/assets/images/menu-collapsed.svg +4 -0
- package/assets/images/menu-expand.svg +4 -0
- package/assets/images/shuffle-01.svg +3 -0
- package/assets/images/user-active.svg +10 -0
- package/fesm2022/cats-ui-lib.mjs +357 -67
- package/fesm2022/cats-ui-lib.mjs.map +1 -1
- package/index.d.ts +50 -20
- package/package.json +1 -1
- package/styles/_utilities.scss +2 -2
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,14 +1115,16 @@ 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;
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
updateAccess?: boolean;
|
|
1126
|
-
deleteAccess?: boolean;
|
|
1125
|
+
icon?: string;
|
|
1126
|
+
activeIcon?: string;
|
|
1127
|
+
url?: string;
|
|
1127
1128
|
}
|
|
1128
1129
|
interface SidebarFeature {
|
|
1129
1130
|
featureId?: number;
|
|
@@ -1133,7 +1134,7 @@ interface SidebarFeature {
|
|
|
1133
1134
|
activeIcon?: string;
|
|
1134
1135
|
expandable?: boolean;
|
|
1135
1136
|
url?: string;
|
|
1136
|
-
isEnable
|
|
1137
|
+
isEnable?: boolean;
|
|
1137
1138
|
attributes?: SidebarAttribute[];
|
|
1138
1139
|
}
|
|
1139
1140
|
interface SidebarModule {
|
|
@@ -1142,19 +1143,48 @@ interface SidebarModule {
|
|
|
1142
1143
|
activeIcon?: string;
|
|
1143
1144
|
expandable?: boolean;
|
|
1144
1145
|
url?: string;
|
|
1145
|
-
isEnable
|
|
1146
|
+
isEnable?: boolean;
|
|
1146
1147
|
features: SidebarFeature[];
|
|
1147
1148
|
}
|
|
1148
1149
|
declare class SidebarComponent {
|
|
1149
|
-
|
|
1150
|
+
private router;
|
|
1151
|
+
appMenus: SidebarModule[];
|
|
1152
|
+
isCollapsed: boolean;
|
|
1153
|
+
sidebarConfig: SidebarConfig;
|
|
1150
1154
|
expandedFeatures: Set<string>;
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
+
activeSidebar: EventEmitter<any>;
|
|
1156
|
+
collapsedOpenModule: number | null;
|
|
1157
|
+
collapsedOpenFeature: string | null;
|
|
1158
|
+
activeItem: {
|
|
1159
|
+
moduleIndex: number;
|
|
1160
|
+
featureIndex: number;
|
|
1161
|
+
attrIndex: number;
|
|
1162
|
+
} | null;
|
|
1163
|
+
constructor(router: Router);
|
|
1164
|
+
/** A feature is expandable if it has at least one attribute */
|
|
1165
|
+
isExpandable(feature: SidebarFeature): boolean;
|
|
1166
|
+
ngOnInit(): void;
|
|
1167
|
+
toggleCollapse(): void;
|
|
1168
|
+
expandedModules: Set<number>;
|
|
1169
|
+
toggleModule(moduleIndex: number): void;
|
|
1170
|
+
isModuleExpanded(moduleIndex: number): boolean;
|
|
1171
|
+
toggleFeature(moduleIndex: number, featureIndex: number): void;
|
|
1172
|
+
isFeatureExpanded(moduleIndex: number, featureIndex: number): boolean;
|
|
1173
|
+
setActiveItem(moduleIndex: number, featureIndex: number, attrIndex: number): void;
|
|
1174
|
+
onFeatureClick(moduleIndex: number, featureIndex: number, feature: SidebarFeature): void;
|
|
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;
|
|
1155
1185
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
1156
|
-
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>;
|
|
1157
1187
|
}
|
|
1158
1188
|
|
|
1159
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 };
|
|
1160
|
-
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,8 +805,8 @@ button.cats-btn {
|
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
// ------------------Checkbox Styles--------------------
|
|
808
|
-
.checkbox-container,
|
|
809
|
-
.item, .multiitem {
|
|
808
|
+
.cats-checkbox-container,
|
|
809
|
+
.cats-item, .cats-multiitem {
|
|
810
810
|
@include flex(flex-start, center, rem(8px));
|
|
811
811
|
@include fontStyle(var(--fs-16), rem(20px), 400);
|
|
812
812
|
margin-bottom: rem(8px);
|