cats-ui-lib 2.0.42 → 2.2.1
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/README.md +749 -32
- package/assets/images/Waffle.svg +11 -0
- package/assets/images/brand-Logo.svg +46 -0
- package/assets/images/building-07.svg +3 -0
- package/assets/images/check-disabled.svg +3 -0
- package/assets/images/check-white.svg +3 -0
- package/assets/images/chevron-down-white.svg +3 -0
- package/assets/images/chevron-down.svg +3 -1
- package/assets/images/chevron-right-blue.svg +3 -0
- package/assets/images/chevron-right-red.svg +3 -0
- package/assets/images/chevron-up.svg +3 -1
- package/assets/images/clock-refresh.svg +3 -0
- package/assets/images/error-info.svg +10 -0
- package/assets/images/expand.svg +4 -0
- package/assets/images/file-check-02.svg +3 -0
- package/assets/images/filled-dropdown.svg +3 -0
- package/assets/images/global-logo.svg +8 -0
- package/assets/images/key-01.svg +3 -0
- package/assets/images/log-out-04.svg +3 -0
- package/assets/images/menu-collapsed.svg +4 -0
- package/assets/images/menu-expand.svg +4 -0
- package/assets/images/message-smile-square.svg +3 -0
- package/assets/images/minimize-expand.svg +4 -0
- package/assets/images/nodification.svg +4 -0
- package/assets/images/product-logo.svg +36 -0
- package/assets/images/settings-04.svg +3 -0
- package/assets/images/shuffle-01.svg +3 -0
- package/assets/images/spanish-flag.svg +72 -0
- package/assets/images/star-yellow.svg +3 -0
- package/assets/images/user-active.svg +10 -0
- package/assets/images/user-image.svg +9 -0
- package/assets/images/users-01.svg +3 -0
- package/assets/images/x-cancel-btn.svg +3 -0
- package/fesm2022/cats-ui-lib.mjs +2595 -647
- package/fesm2022/cats-ui-lib.mjs.map +1 -1
- package/index.d.ts +511 -226
- package/package.json +1 -1
- package/styles/_fonts.scss +4 -0
- package/styles/_mixins.scss +1 -1
- package/styles/_utilities.scss +787 -1
- package/styles/_variables.scss +121 -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';
|
|
3
|
-
import { ControlValueAccessor, Validator, FormControl
|
|
4
|
-
import {
|
|
2
|
+
import { EventEmitter, OnInit, OnChanges, TemplateRef, ChangeDetectorRef, ElementRef, SimpleChanges, OnDestroy, Renderer2, QueryList, ViewContainerRef, ApplicationRef, EnvironmentInjector } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validator, FormControl } from '@angular/forms';
|
|
4
|
+
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
5
7
|
|
|
6
8
|
declare class CatsUiService {
|
|
7
9
|
constructor();
|
|
@@ -13,18 +15,24 @@ declare class SingleSelectConfig {
|
|
|
13
15
|
idField: string;
|
|
14
16
|
textField: string;
|
|
15
17
|
disabledField?: string;
|
|
18
|
+
colorField?: string;
|
|
19
|
+
iconField?: string;
|
|
16
20
|
placeholder?: string;
|
|
17
21
|
prefixLabel?: string;
|
|
18
22
|
enableSearch?: boolean;
|
|
23
|
+
searchPlaceholder?: string;
|
|
19
24
|
required?: boolean;
|
|
20
25
|
}
|
|
21
26
|
declare class MultiSelectConfig {
|
|
22
27
|
idField: string;
|
|
23
28
|
textField: string;
|
|
24
29
|
disabledField?: string;
|
|
30
|
+
colorField?: string;
|
|
31
|
+
iconField?: string;
|
|
25
32
|
placeholder?: string;
|
|
26
33
|
prefixLabel?: string;
|
|
27
34
|
enableSearch?: boolean;
|
|
35
|
+
searchPlaceholder?: string;
|
|
28
36
|
chipLimit: number;
|
|
29
37
|
selectAll?: boolean;
|
|
30
38
|
required?: boolean;
|
|
@@ -41,6 +49,8 @@ declare class InputConfig {
|
|
|
41
49
|
declare class AutoCompleteSingleSelectConfig {
|
|
42
50
|
idField: string;
|
|
43
51
|
textField: string;
|
|
52
|
+
colorField?: string;
|
|
53
|
+
iconField?: string;
|
|
44
54
|
disabledField?: string;
|
|
45
55
|
placeholder?: string;
|
|
46
56
|
required?: boolean;
|
|
@@ -50,12 +60,16 @@ declare class AutoCompleteMultiSelectConfig {
|
|
|
50
60
|
idField: string;
|
|
51
61
|
textField: string;
|
|
52
62
|
disabledField?: string;
|
|
63
|
+
colorField?: string;
|
|
64
|
+
iconField?: string;
|
|
53
65
|
selectAll?: boolean;
|
|
54
66
|
placeholder?: string;
|
|
55
67
|
required?: boolean;
|
|
56
68
|
chipLimit: number;
|
|
57
|
-
customInput
|
|
69
|
+
customInput?: boolean;
|
|
58
70
|
pattern?: string;
|
|
71
|
+
infoText?: string;
|
|
72
|
+
selectionLimit?: number;
|
|
59
73
|
}
|
|
60
74
|
declare class ToggleConfig {
|
|
61
75
|
checked: boolean;
|
|
@@ -82,9 +96,13 @@ interface RadioButtonConfig {
|
|
|
82
96
|
name: string;
|
|
83
97
|
layout?: 'horizontal' | 'vertical';
|
|
84
98
|
}
|
|
85
|
-
interface
|
|
86
|
-
|
|
87
|
-
|
|
99
|
+
interface DialogConfig {
|
|
100
|
+
id?: string;
|
|
101
|
+
title?: string;
|
|
102
|
+
closeOnBackdropClick?: boolean;
|
|
103
|
+
showBackdrop?: boolean;
|
|
104
|
+
class?: string;
|
|
105
|
+
showHeader?: boolean;
|
|
88
106
|
}
|
|
89
107
|
|
|
90
108
|
declare class InputComponent implements ControlValueAccessor, Validator {
|
|
@@ -98,7 +116,7 @@ declare class InputComponent implements ControlValueAccessor, Validator {
|
|
|
98
116
|
value: string;
|
|
99
117
|
disabled: boolean;
|
|
100
118
|
touched: boolean;
|
|
101
|
-
control: FormControl | null;
|
|
119
|
+
control: FormControl<any> | null;
|
|
102
120
|
showPassword: boolean;
|
|
103
121
|
private onChange;
|
|
104
122
|
private onTouched;
|
|
@@ -239,7 +257,7 @@ declare class MultiSelectComponent implements OnChanges, OnInit, ControlValueAcc
|
|
|
239
257
|
multiSelectConfig: MultiSelectConfig;
|
|
240
258
|
selectedOptions: any[];
|
|
241
259
|
onSelection: EventEmitter<any>;
|
|
242
|
-
control: FormControl<any
|
|
260
|
+
control: FormControl<any> | null;
|
|
243
261
|
showDropdown: boolean;
|
|
244
262
|
isListArrayOfObject: boolean;
|
|
245
263
|
isSelectedAll: boolean;
|
|
@@ -352,7 +370,7 @@ declare class AutoCompleteSingleSelectComponent implements OnInit {
|
|
|
352
370
|
selectedOption: any;
|
|
353
371
|
constructor();
|
|
354
372
|
inValid: boolean;
|
|
355
|
-
control: FormControl<any
|
|
373
|
+
control: FormControl<any> | null;
|
|
356
374
|
disableControl: boolean;
|
|
357
375
|
ngOnInit(): void;
|
|
358
376
|
private onTouchedCallback;
|
|
@@ -375,7 +393,7 @@ declare class AutoCompleteSingleSelectComponent implements OnInit {
|
|
|
375
393
|
registerOnChange(fn: any): void;
|
|
376
394
|
registerOnTouched(fn: any): void;
|
|
377
395
|
setDisabledState(isDisabled: boolean): void;
|
|
378
|
-
validate(control:
|
|
396
|
+
validate(control: FormControl): void;
|
|
379
397
|
private syncSelectionWithValue;
|
|
380
398
|
/**
|
|
381
399
|
* @description this method is use to update input value
|
|
@@ -423,7 +441,8 @@ declare class OutsideClickDirective {
|
|
|
423
441
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OutsideClickDirective, "[catsOutsideClick]", never, {}, { "clickOutSide": "clickOutSide"; }, never, never, true, never>;
|
|
424
442
|
}
|
|
425
443
|
|
|
426
|
-
declare class AutoCompleteMultiSelectComponent implements OnInit, ControlValueAccessor
|
|
444
|
+
declare class AutoCompleteMultiSelectComponent implements OnInit, ControlValueAccessor {
|
|
445
|
+
private sanitizer;
|
|
427
446
|
autoCompleteMultiSelectConfig: AutoCompleteMultiSelectConfig;
|
|
428
447
|
selectedItem: any;
|
|
429
448
|
optionsList: any[];
|
|
@@ -435,14 +454,14 @@ declare class AutoCompleteMultiSelectComponent implements OnInit, ControlValueAc
|
|
|
435
454
|
selectedOptions: any[];
|
|
436
455
|
isSelectedAll: boolean;
|
|
437
456
|
inValid: boolean;
|
|
438
|
-
control: FormControl<any
|
|
457
|
+
control: FormControl<any> | null;
|
|
439
458
|
isDisabled: boolean;
|
|
440
|
-
|
|
459
|
+
safePlaceholder: SafeHtml;
|
|
460
|
+
constructor(sanitizer: DomSanitizer);
|
|
441
461
|
ngOnInit(): void;
|
|
442
462
|
ngOnChanges(_changes: SimpleChanges): void;
|
|
443
463
|
private onChange;
|
|
444
464
|
private onTouched;
|
|
445
|
-
private applyDefaultConfig;
|
|
446
465
|
/**
|
|
447
466
|
* @description Method to toggle dropdown list
|
|
448
467
|
* @author Shiva Kant
|
|
@@ -452,8 +471,9 @@ declare class AutoCompleteMultiSelectComponent implements OnInit, ControlValueAc
|
|
|
452
471
|
registerOnChange(fn: any): void;
|
|
453
472
|
registerOnTouched(fn: any): void;
|
|
454
473
|
setDisabledState(isDisabled: boolean): void;
|
|
455
|
-
validate(control:
|
|
474
|
+
validate(control: FormControl): void;
|
|
456
475
|
onInput(event: Event): void;
|
|
476
|
+
handleBlur(): void;
|
|
457
477
|
/**
|
|
458
478
|
* @description method to update selected item
|
|
459
479
|
* @author Shiva Kant
|
|
@@ -597,197 +617,142 @@ declare class RadioButtonComponent implements ControlValueAccessor {
|
|
|
597
617
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "cats-ui-radio-button", never, { "config": { "alias": "config"; "required": false; }; "optionList": { "alias": "optionList"; "required": false; }; "selectedRadio": { "alias": "selectedRadio"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
598
618
|
}
|
|
599
619
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
620
|
+
type DatePickerMode = 'single' | 'range' | 'dual';
|
|
621
|
+
interface DatePickerConfig {
|
|
622
|
+
mode?: DatePickerMode;
|
|
623
|
+
time?: boolean;
|
|
624
|
+
minDate?: Date;
|
|
625
|
+
maxDate?: Date;
|
|
626
|
+
placeholder?: string;
|
|
627
|
+
fromPlaceholder?: string;
|
|
628
|
+
toPlaceholder?: string;
|
|
629
|
+
dateFormat?: 'dd MMM yyyy' | 'MM/dd/yyyy' | 'yyyy-MM-dd';
|
|
630
|
+
parentDateFormat?: 'dd MMM yyyy' | 'MM/dd/yyyy' | 'yyyy-MM-dd';
|
|
631
|
+
disabledDates?: Date[];
|
|
632
|
+
disablePastDays?: number;
|
|
633
|
+
showDateLabel?: boolean;
|
|
634
|
+
showTimeLabel?: boolean;
|
|
603
635
|
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
636
|
+
interface DateRange {
|
|
637
|
+
from: string | null;
|
|
638
|
+
fromTime: string;
|
|
639
|
+
to: string | null;
|
|
640
|
+
toTime: string;
|
|
641
|
+
}
|
|
642
|
+
interface DateTimeResult {
|
|
643
|
+
date: string | null;
|
|
644
|
+
time: string;
|
|
645
|
+
meridiem: 'AM' | 'PM';
|
|
646
|
+
}
|
|
647
|
+
type CalenderView = 'day' | 'year' | 'month';
|
|
648
|
+
declare class CustomDatePickerComponent implements OnInit, ControlValueAccessor, OnChanges {
|
|
649
|
+
private elRef;
|
|
650
|
+
config: DatePickerConfig;
|
|
651
|
+
label: string;
|
|
652
|
+
showHeader: boolean;
|
|
653
|
+
showTrigger: boolean;
|
|
654
|
+
parentNativeElement: any;
|
|
655
|
+
applied: EventEmitter<string | Date | DateRange | DateTimeResult>;
|
|
656
|
+
cancelled: EventEmitter<void>;
|
|
657
|
+
rangeSelected: EventEmitter<DateRange>;
|
|
658
|
+
private onChange;
|
|
659
|
+
private onTouched;
|
|
660
|
+
isOpen: boolean;
|
|
661
|
+
selectedDate: Date | null;
|
|
662
|
+
tempDate: Date | null;
|
|
663
|
+
rangeFrom: Date | null;
|
|
664
|
+
rangeTo: Date | null;
|
|
665
|
+
tempFrom: Date | null;
|
|
666
|
+
tempTo: Date | null;
|
|
667
|
+
timeValue: string;
|
|
668
|
+
timeMeridiem: 'AM' | 'PM';
|
|
669
|
+
fromTimeValue: string;
|
|
670
|
+
fromTimeMeridiem: 'AM' | 'PM';
|
|
671
|
+
toTimeValue: string;
|
|
672
|
+
toTimeMeridiem: 'AM' | 'PM';
|
|
615
673
|
currentMonth: number;
|
|
616
674
|
currentYear: number;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
rangeEnd: number | null;
|
|
623
|
-
selectedMonth: any;
|
|
624
|
-
selectedYear: any;
|
|
625
|
-
control: AbstractControl<any, any>;
|
|
626
|
-
disableControl: boolean;
|
|
627
|
-
date: any;
|
|
628
|
-
calendarView: string;
|
|
675
|
+
weekDays: string[];
|
|
676
|
+
calendarDays: (number | null)[];
|
|
677
|
+
currentMonth2: number;
|
|
678
|
+
currentYear2: number;
|
|
679
|
+
calendarDays2: (number | null)[];
|
|
629
680
|
yearRange: number[];
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
showYearSelector: boolean;
|
|
636
|
-
monthRange: any;
|
|
637
|
-
constructor(locale: string, cd: ChangeDetectorRef, datePipe: DatePipe);
|
|
638
|
-
ngOnChanges(_changes: SimpleChanges): void;
|
|
681
|
+
calenderView: CalenderView;
|
|
682
|
+
activeCalendar: 'primary' | 'secondary';
|
|
683
|
+
monthNames: string[];
|
|
684
|
+
constructor(elRef: ElementRef);
|
|
685
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
639
686
|
ngOnInit(): void;
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
687
|
+
get mode(): DatePickerMode;
|
|
688
|
+
get showDateLabel(): boolean;
|
|
689
|
+
get time(): boolean;
|
|
690
|
+
get currentMonthYear(): string;
|
|
691
|
+
get currentMonthName(): string;
|
|
692
|
+
get activeMonthName(): string;
|
|
693
|
+
get activeYearValue(): number;
|
|
694
|
+
get displayValue(): string;
|
|
695
|
+
get tempDisplayValue(): string;
|
|
696
|
+
get tempFromDisplay(): string;
|
|
697
|
+
get tempToDisplay(): string;
|
|
698
|
+
writeValue(val: any): void;
|
|
643
699
|
registerOnChange(fn: any): void;
|
|
644
700
|
registerOnTouched(fn: any): void;
|
|
645
|
-
setDisabledState(isDisabled: boolean): void;
|
|
646
|
-
/**
|
|
647
|
-
* @description Validates date time picker component
|
|
648
|
-
* @author Shiva Kant
|
|
649
|
-
* @param control
|
|
650
|
-
* @returns validate
|
|
651
|
-
*/
|
|
652
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
653
|
-
/**
|
|
654
|
-
* @description method to toggleCalendar
|
|
655
|
-
* @author Shiva Kant
|
|
656
|
-
*/
|
|
657
701
|
toggleCalendar(): void;
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* @description Method to Updates current year month
|
|
674
|
-
* @author Shiva Kant
|
|
675
|
-
*/
|
|
676
|
-
updateCurrentYearMonth(): void;
|
|
677
|
-
/**
|
|
678
|
-
* @description Method to Selects year
|
|
679
|
-
* @author Shiva Kant
|
|
680
|
-
* @param year
|
|
681
|
-
*/
|
|
682
|
-
selectYear(year: number): void;
|
|
683
|
-
/**
|
|
684
|
-
* @description Method to Selects month
|
|
685
|
-
* @author Shiva Kant
|
|
686
|
-
* @param month
|
|
687
|
-
*/
|
|
688
|
-
selectMonth(month: any): void;
|
|
689
|
-
/**
|
|
690
|
-
* @description Method to Previous year range
|
|
691
|
-
* @author Shiva Kant
|
|
692
|
-
*/
|
|
702
|
+
initializeCurrentMonthYear(): void;
|
|
703
|
+
onDocumentClick(event: MouseEvent): void;
|
|
704
|
+
buildCalendar(): void;
|
|
705
|
+
private buildCalendarDays;
|
|
706
|
+
private getNextMonthYear;
|
|
707
|
+
private getPrevMonthYear;
|
|
708
|
+
generateYearRange(year?: number): void;
|
|
709
|
+
openView(calendar: 'primary' | 'secondary', view: CalenderView): void;
|
|
710
|
+
getDayDisplay(day: number | null): string;
|
|
711
|
+
isOtherMonth(day: number | null): boolean;
|
|
712
|
+
getActualDay(day: number | null): number | null;
|
|
713
|
+
prevMonth(): void;
|
|
714
|
+
nextMonth(): void;
|
|
715
|
+
selectMonth(month: string): void;
|
|
693
716
|
previousYearRange(): void;
|
|
694
|
-
/**
|
|
695
|
-
* @description Method to Next year range
|
|
696
|
-
* @author Shiva Kant
|
|
697
|
-
*/
|
|
698
717
|
nextYearRange(): void;
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
nextMonth(): void;
|
|
738
|
-
/**
|
|
739
|
-
* @description Method to Initializes calendar when preSelectedValue date
|
|
740
|
-
* @author Shiva Kant
|
|
741
|
-
* @returns calendar
|
|
742
|
-
*/
|
|
743
|
-
initializeCalendar(): void;
|
|
744
|
-
/**
|
|
745
|
-
* @description Method to Selects date
|
|
746
|
-
* @author Shiva Kant
|
|
747
|
-
* @param date
|
|
748
|
-
*/
|
|
749
|
-
selectDate(date: number): void;
|
|
750
|
-
/**
|
|
751
|
-
* @description Method to Selects time
|
|
752
|
-
* @author Shiva Kant
|
|
753
|
-
* @param time
|
|
754
|
-
*/
|
|
755
|
-
selectTime(time: string): void;
|
|
756
|
-
/**
|
|
757
|
-
* @description Method to Determines whether selected date is
|
|
758
|
-
* @author Shiva Kant
|
|
759
|
-
* @param date
|
|
760
|
-
* @returns
|
|
761
|
-
*/
|
|
762
|
-
isSelectedDate(date: number, month: number, year: number): boolean;
|
|
763
|
-
/**
|
|
764
|
-
* @description Method to Generates time ranges
|
|
765
|
-
* @author Shiva Kant
|
|
766
|
-
*/
|
|
767
|
-
generateTimeRanges(): void;
|
|
768
|
-
/**
|
|
769
|
-
* @description Method to Formats time
|
|
770
|
-
* @author Shiva Kant
|
|
771
|
-
* @param date
|
|
772
|
-
* @returns time
|
|
773
|
-
*/
|
|
774
|
-
formatTime(date: Date): string;
|
|
775
|
-
/**
|
|
776
|
-
* @description Method to Formats date time
|
|
777
|
-
* @author Shiva Kant
|
|
778
|
-
* @param fullDate
|
|
779
|
-
* @param selectedTime
|
|
780
|
-
* @returns date time
|
|
781
|
-
*/
|
|
782
|
-
formatDateTime(fullDate: Date, selectedTime: string | null): string;
|
|
783
|
-
/**
|
|
784
|
-
* @description Method to Emits date time
|
|
785
|
-
* @author Shiva Kant
|
|
786
|
-
* @returns date time
|
|
787
|
-
*/
|
|
788
|
-
emitDateTime(): void;
|
|
789
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
790
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "cats-ui-date-time-picker", never, { "dateConfig": { "alias": "dateConfig"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "preSelectedValue": { "alias": "preSelectedValue"; "required": false; }; }, { "dateTimeSelected": "dateTimeSelected"; }, never, never, true, never>;
|
|
718
|
+
selectYear(year: number): void;
|
|
719
|
+
selectDay(day: number | null, calendar?: 'primary' | 'secondary'): void;
|
|
720
|
+
isSelected(day: number | null, month?: number, year?: number): boolean;
|
|
721
|
+
isInRange(day: number | null, month?: number, year?: number): boolean;
|
|
722
|
+
isRangeStart(day: number | null, month?: number, year?: number): boolean;
|
|
723
|
+
isRangeEnd(day: number | null, month?: number, year?: number): boolean;
|
|
724
|
+
isToday(day: number | null, month?: number, year?: number): boolean;
|
|
725
|
+
isDayDisabled(day: number | null, month?: number, year?: number): boolean;
|
|
726
|
+
setTime(event: any): void;
|
|
727
|
+
singleTimeInSeconds: number | null;
|
|
728
|
+
fromTimeInSeconds: number | null;
|
|
729
|
+
toTimeInSeconds: number | null;
|
|
730
|
+
private convertToSeconds;
|
|
731
|
+
onSingleTimeChange(event: {
|
|
732
|
+
time: string;
|
|
733
|
+
meridiem: 'AM' | 'PM';
|
|
734
|
+
}): void;
|
|
735
|
+
onFromTimeChange(event: {
|
|
736
|
+
time: string;
|
|
737
|
+
meridiem: 'AM' | 'PM';
|
|
738
|
+
}): void;
|
|
739
|
+
onToTimeChange(event: {
|
|
740
|
+
time: string;
|
|
741
|
+
meridiem: 'AM' | 'PM';
|
|
742
|
+
}): void;
|
|
743
|
+
onApply(): void;
|
|
744
|
+
private normalizeTime;
|
|
745
|
+
appendTimeInDate(time: string, date: Date, timeMeridiem: string): Date;
|
|
746
|
+
onCancel(): void;
|
|
747
|
+
clearDate(): void;
|
|
748
|
+
cancelDate(source: string): void;
|
|
749
|
+
onDaySelected(day: number | null, calendar: 'primary' | 'secondary'): void;
|
|
750
|
+
isSameDay(a: Date | null, b: Date | null): boolean;
|
|
751
|
+
formatDate(date: Date, dateFormat?: string): string;
|
|
752
|
+
get canApply(): boolean;
|
|
753
|
+
private isValidTime;
|
|
754
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomDatePickerComponent, never>;
|
|
755
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomDatePickerComponent, "cats-ui-custom-date-picker", never, { "config": { "alias": "config"; "required": false; }; "label": { "alias": "label"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showTrigger": { "alias": "showTrigger"; "required": false; }; "parentNativeElement": { "alias": "parentNativeElement"; "required": false; }; }, { "applied": "applied"; "cancelled": "cancelled"; "rangeSelected": "rangeSelected"; }, never, never, true, never>;
|
|
791
756
|
}
|
|
792
757
|
|
|
793
758
|
declare class CatsUiTooltipDirective implements OnInit, OnDestroy {
|
|
@@ -867,41 +832,361 @@ declare class AccordionItemComponent {
|
|
|
867
832
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "cats-ui-accordion-item", never, { "title": { "alias": "title"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, ["contentTemplate"], never, true, never>;
|
|
868
833
|
}
|
|
869
834
|
|
|
870
|
-
declare class
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
874
|
-
static
|
|
835
|
+
declare class TabContentComponent {
|
|
836
|
+
active: boolean;
|
|
837
|
+
tabId: number;
|
|
838
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, never>;
|
|
839
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "cats-ui-tab-content", never, { "active": { "alias": "active"; "required": false; }; "tabId": { "alias": "tabId"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
interface TabConfig {
|
|
843
|
+
type?: 'Default' | 'Stroke' | string;
|
|
844
|
+
addTab?: boolean;
|
|
845
|
+
closeTab?: boolean;
|
|
846
|
+
homeTab?: boolean;
|
|
847
|
+
}
|
|
848
|
+
interface TabItem {
|
|
849
|
+
id: number;
|
|
850
|
+
title: string;
|
|
851
|
+
leadingIcon?: string;
|
|
852
|
+
tralingIocn?: string;
|
|
853
|
+
count?: number | string;
|
|
854
|
+
isDisable?: boolean;
|
|
855
|
+
isHome?: boolean;
|
|
856
|
+
}
|
|
857
|
+
declare class TabsetComponent {
|
|
858
|
+
tabs: TabItem[];
|
|
859
|
+
activeTab: number | null;
|
|
860
|
+
activeTabChange: EventEmitter<number | null>;
|
|
861
|
+
tabConfig: TabConfig;
|
|
862
|
+
tabAdded: EventEmitter<TabItem>;
|
|
863
|
+
tabClosed: EventEmitter<number>;
|
|
864
|
+
contents: QueryList<TabContentComponent>;
|
|
865
|
+
counter: number;
|
|
866
|
+
ngAfterContentInit(): void;
|
|
867
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
868
|
+
addHomeTabIfNeeded(): void;
|
|
869
|
+
setActive(id: number): void;
|
|
870
|
+
closeTab(event: Event, id: number, index: number): void;
|
|
871
|
+
addTab(event: Event): void;
|
|
872
|
+
updateContentActivation(): void;
|
|
873
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsetComponent, never>;
|
|
874
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsetComponent, "cats-ui-tabset", never, { "tabs": { "alias": "tabs"; "required": false; }; "activeTab": { "alias": "activeTab"; "required": false; }; "tabConfig": { "alias": "tabConfig"; "required": false; }; }, { "activeTabChange": "activeTabChange"; "tabAdded": "tabAdded"; "tabClosed": "tabClosed"; }, ["contents"], ["*"], true, never>;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
type FilterType = 'live' | 'today' | 'week' | 'month' | 'fy' | 'last' | 'customRange' | 'customDate';
|
|
878
|
+
interface TimeFilterOption {
|
|
879
|
+
label: string;
|
|
880
|
+
value: string;
|
|
881
|
+
type?: 'radio' | 'input' | 'submenu';
|
|
882
|
+
children?: TimeFilterOption[];
|
|
883
|
+
default?: boolean;
|
|
884
|
+
custom?: boolean;
|
|
885
|
+
parentDateFormat?: 'dd MMM yyyy' | 'MM/dd/yyyy' | 'yyyy-MM-dd';
|
|
886
|
+
pickerMode?: DatePickerMode;
|
|
887
|
+
time?: boolean;
|
|
888
|
+
extraConfig?: Partial<DatePickerConfig>;
|
|
889
|
+
}
|
|
890
|
+
interface TimeFilterConfig {
|
|
891
|
+
title?: string;
|
|
892
|
+
showReset?: boolean;
|
|
893
|
+
options: TimeFilterOption[];
|
|
894
|
+
}
|
|
895
|
+
interface TimeFilterOutput {
|
|
896
|
+
type: FilterType;
|
|
897
|
+
label?: string;
|
|
898
|
+
startDate?: string;
|
|
899
|
+
endDate?: string;
|
|
900
|
+
value?: number;
|
|
901
|
+
unit?: 'Hours' | 'Days';
|
|
902
|
+
key?: string;
|
|
903
|
+
dates?: any;
|
|
904
|
+
}
|
|
905
|
+
interface TimeFilterValue {
|
|
906
|
+
type: string;
|
|
907
|
+
dates?: any;
|
|
908
|
+
lastValue?: number;
|
|
909
|
+
lastUnit?: 'seconds' | 'minutes' | 'hours' | 'days';
|
|
910
|
+
}
|
|
911
|
+
declare class TimestampFilterComponent implements OnInit {
|
|
912
|
+
private cdr;
|
|
913
|
+
config: TimeFilterConfig;
|
|
914
|
+
selectionChange: EventEmitter<TimeFilterOutput>;
|
|
915
|
+
selectedValue: TimeFilterValue | null;
|
|
916
|
+
radioValue: string | null;
|
|
917
|
+
previousRadioValue: string | null;
|
|
918
|
+
activePicker: TimeFilterOption | null;
|
|
919
|
+
lastValue: number;
|
|
920
|
+
lastUnit: 'seconds' | 'minutes' | 'hours' | 'days';
|
|
921
|
+
selectedDateLabels: Record<string, string>;
|
|
922
|
+
dateControls: Record<string, FormControl>;
|
|
923
|
+
get normalOptions(): TimeFilterOption[];
|
|
924
|
+
get customOptions(): TimeFilterOption[];
|
|
925
|
+
/** Returns the FormControl for the currently active picker. */
|
|
926
|
+
get activePickerControl(): FormControl | null;
|
|
927
|
+
constructor(cdr: ChangeDetectorRef);
|
|
928
|
+
ngOnInit(): void;
|
|
929
|
+
private applyPreset;
|
|
930
|
+
getPickerConfig(option: TimeFilterOption): DatePickerConfig;
|
|
931
|
+
selectOption(option: TimeFilterOption): void;
|
|
932
|
+
onDateApplied(event: any): void;
|
|
933
|
+
/**
|
|
934
|
+
* Cancel: restore radio to whatever was selected before picker opened.
|
|
935
|
+
*/
|
|
936
|
+
onCancel(_event: any): void;
|
|
937
|
+
emitLast(): void;
|
|
938
|
+
onLastChange(): void;
|
|
939
|
+
reset(): void;
|
|
940
|
+
private extractStartDate;
|
|
941
|
+
private extractEndDate;
|
|
942
|
+
private buildDateLabel;
|
|
943
|
+
private emit;
|
|
944
|
+
private startOfDay;
|
|
945
|
+
private startOfWeek;
|
|
946
|
+
private startOfFinancialYear;
|
|
947
|
+
private subtractTime;
|
|
948
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimestampFilterComponent, never>;
|
|
949
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimestampFilterComponent, "cats-ui-timestamp-filter", never, { "config": { "alias": "config"; "required": true; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
declare class WizardService {
|
|
953
|
+
private wizards;
|
|
954
|
+
activeStep: i0.WritableSignal<any>;
|
|
955
|
+
stepConfig: i0.WritableSignal<any>;
|
|
956
|
+
open(wizardId: string, config: any): void;
|
|
957
|
+
close(wizardId: string): void;
|
|
958
|
+
nextStep(wizardId: string): void;
|
|
959
|
+
previousStep(wizardId: string): void;
|
|
960
|
+
gotoStep(step: number, wizardId: string): void;
|
|
961
|
+
isOpen(wizardId: string): i0.Signal<any>;
|
|
962
|
+
getConfig(wizardId: string): i0.Signal<any>;
|
|
963
|
+
getCurrentStepIndex(wizardId: string): i0.Signal<any>;
|
|
964
|
+
getCurrentStep(wizardId: string): i0.Signal<any>;
|
|
965
|
+
getProgress(wizardId: string): i0.Signal<number>;
|
|
966
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WizardService, never>;
|
|
967
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WizardService>;
|
|
875
968
|
}
|
|
876
969
|
|
|
877
|
-
declare class
|
|
878
|
-
|
|
879
|
-
constructor(
|
|
880
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
881
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
970
|
+
declare class WizardStepDirective {
|
|
971
|
+
templateRef: TemplateRef<any>;
|
|
972
|
+
constructor(templateRef: TemplateRef<any>);
|
|
973
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepDirective, never>;
|
|
974
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WizardStepDirective, "[wizardStep]", never, {}, {}, never, never, true, never>;
|
|
882
975
|
}
|
|
883
976
|
|
|
884
|
-
declare class
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
977
|
+
declare class WizardComponent {
|
|
978
|
+
private commonService;
|
|
979
|
+
wizardId: string;
|
|
980
|
+
title: string;
|
|
981
|
+
closed: EventEmitter<void>;
|
|
982
|
+
stepTemplates: QueryList<WizardStepDirective>;
|
|
983
|
+
showProgressBar: boolean;
|
|
984
|
+
showStepBadge: boolean;
|
|
985
|
+
expandable: boolean;
|
|
986
|
+
isExpanded: boolean;
|
|
987
|
+
steps: any;
|
|
988
|
+
activeStep: any;
|
|
989
|
+
templates: WizardStepDirective[];
|
|
990
|
+
constructor(commonService: WizardService);
|
|
991
|
+
ngAfterContentInit(): void;
|
|
992
|
+
toggleExpand(): void;
|
|
993
|
+
onEscPressed(): void;
|
|
994
|
+
get currentStepIndex(): number;
|
|
995
|
+
get wizardSteps(): any[];
|
|
996
|
+
get currentTemplate(): i0.TemplateRef<any>;
|
|
997
|
+
get currentStepLabel(): string;
|
|
998
|
+
get currentStepNumber(): number;
|
|
999
|
+
goToStep(step: number): void;
|
|
1000
|
+
closeModal(): void;
|
|
1001
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
|
|
1002
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "cats-ui-wizard", never, { "wizardId": { "alias": "wizardId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "showStepBadge": { "alias": "showStepBadge"; "required": false; }; }, { "closed": "closed"; }, ["stepTemplates"], never, true, never>;
|
|
889
1003
|
}
|
|
890
1004
|
|
|
891
|
-
declare class
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
1005
|
+
declare class FileUploadComponent implements ControlValueAccessor {
|
|
1006
|
+
placeholder: string;
|
|
1007
|
+
errorMessage: string;
|
|
1008
|
+
disabled: boolean;
|
|
1009
|
+
multiple: boolean;
|
|
1010
|
+
/** Button position: 'left' (prefix) | 'right' (suffix) */
|
|
1011
|
+
buttonPosition: 'left' | 'right';
|
|
1012
|
+
maxSize: number | null;
|
|
1013
|
+
minSize: number | null;
|
|
1014
|
+
helperText: string;
|
|
1015
|
+
onfileChange: EventEmitter<any>;
|
|
1016
|
+
onfileRemove: EventEmitter<any>;
|
|
1017
|
+
/**
|
|
1018
|
+
* Accepted MIME types or extensions, comma-separated.
|
|
1019
|
+
* e.g. 'image/png,image/jpeg' or '.png,.jpg,.pdf'
|
|
1020
|
+
* Passed directly to the hidden <input accept="..."> attribute.
|
|
1021
|
+
* Also used for runtime validation.
|
|
1022
|
+
* null = accept all
|
|
1023
|
+
*/
|
|
1024
|
+
accept: string | null;
|
|
1025
|
+
value: File[];
|
|
1026
|
+
isFocused: boolean;
|
|
1027
|
+
validationError: string;
|
|
1028
|
+
control: FormControl<any> | null;
|
|
1029
|
+
onChange: (value: File[]) => void;
|
|
1030
|
+
onTouched: () => void;
|
|
1031
|
+
writeValue(files: File[] | null | undefined): void;
|
|
1032
|
+
registerOnChange(fn: (value: File[]) => void): void;
|
|
1033
|
+
registerOnTouched(fn: () => void): void;
|
|
1034
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1035
|
+
validate(control: FormControl): any;
|
|
896
1036
|
/**
|
|
897
|
-
*
|
|
898
|
-
*
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
1037
|
+
* Validates a single file against minSize, maxSize, and accept rules.
|
|
1038
|
+
* Returns an error string, or empty string if valid.
|
|
1039
|
+
*/
|
|
1040
|
+
private validateFile;
|
|
1041
|
+
/** Validates a batch; sets validationError and returns only valid files. */
|
|
1042
|
+
private processFiles;
|
|
1043
|
+
onFileSelect(event: Event, input: HTMLInputElement): void;
|
|
1044
|
+
onDrop(event: DragEvent): void;
|
|
1045
|
+
onDragOver(event: DragEvent): void;
|
|
1046
|
+
removeFile(index: number, input?: HTMLInputElement): void;
|
|
1047
|
+
/** Human-readable byte string: 1024 → "1 KB", 5242880 → "5 MB" */
|
|
1048
|
+
formatBytes(bytes: number): string;
|
|
1049
|
+
/**
|
|
1050
|
+
* Builds a human-readable hint string from the current constraints.
|
|
1051
|
+
* e.g. "PNG, JPG • Max 5 MB • Min 10 KB"
|
|
1052
|
+
*/
|
|
1053
|
+
get isFilled(): boolean;
|
|
1054
|
+
/** Combines external errorMessage prop with internal validation errors. */
|
|
1055
|
+
get displayError(): string;
|
|
1056
|
+
get hasError(): boolean;
|
|
1057
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
1058
|
+
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>;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
interface HeaderConfig {
|
|
1062
|
+
brandLogo: string;
|
|
1063
|
+
productLogo: string;
|
|
1064
|
+
showDropdown?: boolean;
|
|
1065
|
+
showGlobalIcon?: boolean;
|
|
1066
|
+
showAiAgent?: boolean;
|
|
1067
|
+
}
|
|
1068
|
+
declare class HeaderComponent {
|
|
1069
|
+
headerConfig: HeaderConfig;
|
|
1070
|
+
dropdownItems: any[];
|
|
1071
|
+
onDropdownSelection: EventEmitter<any>;
|
|
1072
|
+
profileOpen: boolean;
|
|
1073
|
+
dropdownOpen: boolean;
|
|
1074
|
+
selectedItem: any;
|
|
1075
|
+
ngOnInit(): void;
|
|
1076
|
+
onSelect(item: any): void;
|
|
1077
|
+
toggleMenu(): void;
|
|
1078
|
+
toggleDropdown(): void;
|
|
1079
|
+
closeMenu(): void;
|
|
1080
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
1081
|
+
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>;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
declare class DialogRef<T = any> {
|
|
1085
|
+
id: string;
|
|
1086
|
+
private afterClosed$;
|
|
1087
|
+
constructor(id: string);
|
|
1088
|
+
close(result?: T): void;
|
|
1089
|
+
afterClosed(): Observable<T | undefined>;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
declare class DialogBoxComponent {
|
|
1093
|
+
content: any;
|
|
1094
|
+
config: DialogConfig;
|
|
1095
|
+
dialogRef: DialogRef;
|
|
1096
|
+
expandable: boolean;
|
|
1097
|
+
vc: ViewContainerRef;
|
|
1098
|
+
isExpanded: boolean;
|
|
1099
|
+
ngAfterViewInit(): void;
|
|
1100
|
+
toggleExpand(): void;
|
|
1101
|
+
onBackdropClick(): void;
|
|
1102
|
+
closeModal(): void;
|
|
1103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogBoxComponent, never>;
|
|
1104
|
+
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>;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
declare class DialogBoxService {
|
|
1108
|
+
private appRef;
|
|
1109
|
+
private injector;
|
|
1110
|
+
private dialogs;
|
|
1111
|
+
constructor(appRef: ApplicationRef, injector: EnvironmentInjector);
|
|
1112
|
+
open(componentOrTemplate: any, config?: DialogConfig): DialogRef;
|
|
1113
|
+
close(id: string): void;
|
|
1114
|
+
closeAll(): void;
|
|
1115
|
+
private generateId;
|
|
1116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogBoxService, never>;
|
|
1117
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogBoxService>;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
interface SidebarConfig {
|
|
1121
|
+
sidebarType?: 'sectional' | string;
|
|
1122
|
+
switchOrganiser?: boolean;
|
|
1123
|
+
}
|
|
1124
|
+
interface SidebarAttribute {
|
|
1125
|
+
attributeId?: number;
|
|
1126
|
+
attributeName: string;
|
|
1127
|
+
icon?: string;
|
|
1128
|
+
activeIcon?: string;
|
|
1129
|
+
url?: string;
|
|
1130
|
+
}
|
|
1131
|
+
interface SidebarFeature {
|
|
1132
|
+
featureId?: number;
|
|
1133
|
+
moduleId?: number;
|
|
1134
|
+
featuresName: string;
|
|
1135
|
+
icon?: string;
|
|
1136
|
+
activeIcon?: string;
|
|
1137
|
+
expandable?: boolean;
|
|
1138
|
+
url?: string;
|
|
1139
|
+
isEnable?: boolean;
|
|
1140
|
+
attributes?: SidebarAttribute[];
|
|
1141
|
+
}
|
|
1142
|
+
interface SidebarModule {
|
|
1143
|
+
moduleName: string;
|
|
1144
|
+
icon?: string;
|
|
1145
|
+
activeIcon?: string;
|
|
1146
|
+
expandable?: boolean;
|
|
1147
|
+
url?: string;
|
|
1148
|
+
isEnable?: boolean;
|
|
1149
|
+
features: SidebarFeature[];
|
|
1150
|
+
}
|
|
1151
|
+
declare class SidebarComponent {
|
|
1152
|
+
private router;
|
|
1153
|
+
appMenus: SidebarModule[];
|
|
1154
|
+
isCollapsed: boolean;
|
|
1155
|
+
sidebarConfig: SidebarConfig;
|
|
1156
|
+
expandedFeatures: Set<string>;
|
|
1157
|
+
activeSidebar: EventEmitter<any>;
|
|
1158
|
+
collapsedOpenModule: number | null;
|
|
1159
|
+
collapsedOpenFeature: string | null;
|
|
1160
|
+
activeItem: {
|
|
1161
|
+
moduleIndex: number;
|
|
1162
|
+
featureIndex: number;
|
|
1163
|
+
attrIndex: number;
|
|
1164
|
+
} | null;
|
|
1165
|
+
constructor(router: Router);
|
|
1166
|
+
/** A feature is expandable if it has at least one attribute */
|
|
1167
|
+
isExpandable(feature: SidebarFeature): boolean;
|
|
1168
|
+
ngOnInit(): void;
|
|
1169
|
+
toggleCollapse(): void;
|
|
1170
|
+
expandedModules: Set<number>;
|
|
1171
|
+
toggleModule(moduleIndex: number): void;
|
|
1172
|
+
isModuleExpanded(moduleIndex: number): boolean;
|
|
1173
|
+
toggleFeature(moduleIndex: number, featureIndex: number): void;
|
|
1174
|
+
isFeatureExpanded(moduleIndex: number, featureIndex: number): boolean;
|
|
1175
|
+
setActiveItem(moduleIndex: number, featureIndex: number, attrIndex: number): void;
|
|
1176
|
+
onFeatureClick(moduleIndex: number, featureIndex: number, feature: SidebarFeature): void;
|
|
1177
|
+
isActiveItem(moduleIndex: number, featureIndex?: number, attrIndex?: number): boolean;
|
|
1178
|
+
collapsedModuleIndex: number | null;
|
|
1179
|
+
collapsedFeatureIndex: number | null;
|
|
1180
|
+
openAttributeFeatureIndex: number | null;
|
|
1181
|
+
isCollapsedIconActive(mIdx: number, fIdx?: number): boolean;
|
|
1182
|
+
onCollapsedSectionalIconClick(mIdx: number, fIdx: number, source?: string): void;
|
|
1183
|
+
onCollapsedModuleIconClick(mIdx: number): void;
|
|
1184
|
+
onCollapsedFeatureClick(mIdx: number, fIdx: number): void;
|
|
1185
|
+
navigateToItem(module: SidebarModule, feature?: SidebarFeature, attribute?: SidebarAttribute): void;
|
|
1186
|
+
handleOutsideClick(event: Event): void;
|
|
1187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
1188
|
+
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>;
|
|
904
1189
|
}
|
|
905
1190
|
|
|
906
|
-
export { AccordionComponent, AccordionItemComponent, AutoCompleteMultiSelectComponent, AutoCompleteMultiSelectConfig, AutoCompleteSingleSelectComponent, AutoCompleteSingleSelectConfig, CatsUiService, CatsUiTooltipDirective, CheckBoxConfig, CheckBoxSubtask, CheckboxButtonComponent, DROPDOWN_CONTROL_VALUE_ACCESSOR, DROPDOWN_CONTROL_VALUE_VALIDATOR,
|
|
907
|
-
export type {
|
|
1191
|
+
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 };
|
|
1192
|
+
export type { CalenderView, DatePickerConfig, DatePickerMode, DateRange, DateTimeResult, DialogConfig, FilterType, HeaderConfig, RadioButtonConfig, SidebarAttribute, SidebarConfig, SidebarFeature, SidebarModule, TabConfig, TabItem, TimeFilterConfig, TimeFilterOption, TimeFilterOutput, TimeFilterValue };
|