cats-ui-lib 2.0.16 → 2.0.18
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/fesm2022/cats-ui-lib.mjs +217 -53
- package/fesm2022/cats-ui-lib.mjs.map +1 -1
- package/index.d.ts +27 -12
- package/package.json +1 -1
- package/styles/_utilities.scss +1 -1
package/index.d.ts
CHANGED
|
@@ -1011,6 +1011,7 @@ declare class FileUploadComponent implements ControlValueAccessor {
|
|
|
1011
1011
|
minSize: number | null;
|
|
1012
1012
|
helperText: string;
|
|
1013
1013
|
onfileChange: EventEmitter<any>;
|
|
1014
|
+
onfileRemove: EventEmitter<any>;
|
|
1014
1015
|
/**
|
|
1015
1016
|
* Accepted MIME types or extensions, comma-separated.
|
|
1016
1017
|
* e.g. 'image/png,image/jpeg' or '.png,.jpg,.pdf'
|
|
@@ -1052,7 +1053,7 @@ declare class FileUploadComponent implements ControlValueAccessor {
|
|
|
1052
1053
|
get displayError(): string;
|
|
1053
1054
|
get hasError(): boolean;
|
|
1054
1055
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, 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>;
|
|
1056
|
+
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"; "onfileRemove": "onfileRemove"; }, never, never, true, never>;
|
|
1056
1057
|
}
|
|
1057
1058
|
|
|
1058
1059
|
interface HeaderConfig {
|
|
@@ -1118,11 +1119,9 @@ declare class DialogBoxService {
|
|
|
1118
1119
|
interface SidebarAttribute {
|
|
1119
1120
|
attributeId?: number;
|
|
1120
1121
|
attributeName: string;
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
updateAccess?: boolean;
|
|
1125
|
-
deleteAccess?: boolean;
|
|
1122
|
+
icon?: string;
|
|
1123
|
+
activeIcon?: string;
|
|
1124
|
+
url?: string;
|
|
1126
1125
|
}
|
|
1127
1126
|
interface SidebarFeature {
|
|
1128
1127
|
featureId?: number;
|
|
@@ -1145,14 +1144,30 @@ interface SidebarModule {
|
|
|
1145
1144
|
features: SidebarFeature[];
|
|
1146
1145
|
}
|
|
1147
1146
|
declare class SidebarComponent {
|
|
1148
|
-
|
|
1147
|
+
sidebarConfig: SidebarModule[];
|
|
1148
|
+
isCollapsed: boolean;
|
|
1149
|
+
sidebarType: string;
|
|
1149
1150
|
expandedFeatures: Set<string>;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1151
|
+
activeSidebar: EventEmitter<any>;
|
|
1152
|
+
activeItem: {
|
|
1153
|
+
moduleIndex: number;
|
|
1154
|
+
featureIndex: number;
|
|
1155
|
+
attrIndex: number;
|
|
1156
|
+
} | null;
|
|
1157
|
+
/** A feature is expandable if it has at least one attribute */
|
|
1158
|
+
isExpandable(feature: SidebarFeature): boolean;
|
|
1159
|
+
ngOnInit(): void;
|
|
1160
|
+
toggleCollapse(): void;
|
|
1161
|
+
expandedModules: Set<number>;
|
|
1162
|
+
toggleModule(moduleIndex: number): void;
|
|
1163
|
+
isModuleExpanded(moduleIndex: number): boolean;
|
|
1164
|
+
toggleFeature(moduleIndex: number, featureIndex: number): void;
|
|
1165
|
+
isFeatureExpanded(moduleIndex: number, featureIndex: number): boolean;
|
|
1166
|
+
setActiveItem(moduleIndex: number, featureIndex: number, attrIndex: number): void;
|
|
1167
|
+
onFeatureClick(moduleIndex: number, featureIndex: number, feature: SidebarFeature): void;
|
|
1168
|
+
isActiveItem(moduleIndex: number, featureIndex?: number, attrIndex?: number): boolean;
|
|
1154
1169
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
1155
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "cats-ui-sidebar", never, { "
|
|
1170
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "cats-ui-sidebar", never, { "sidebarConfig": { "alias": "sidebarConfig"; "required": false; }; "sidebarType": { "alias": "sidebarType"; "required": false; }; }, { "activeSidebar": "activeSidebar"; }, never, never, true, never>;
|
|
1156
1171
|
}
|
|
1157
1172
|
|
|
1158
1173
|
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 };
|
package/package.json
CHANGED
package/styles/_utilities.scss
CHANGED
|
@@ -806,7 +806,7 @@ button.cats-btn {
|
|
|
806
806
|
|
|
807
807
|
// ------------------Checkbox Styles--------------------
|
|
808
808
|
.checkbox-container,
|
|
809
|
-
.item, .multiitem {
|
|
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);
|