tango-app-ui-analyse-trax 3.0.0-dev → 3.3.1-alpha.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/esm2022/lib/components/add-checklist/add-checklist.component.mjs +1389 -0
- package/esm2022/lib/components/checklist/checklist.component.mjs +235 -0
- package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +1809 -0
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +515 -0
- package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +503 -0
- package/esm2022/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.mjs +169 -0
- package/esm2022/lib/components/flags/flags.component.mjs +188 -0
- package/esm2022/lib/components/flags/flags.interface.mjs +2 -0
- package/esm2022/lib/components/flags-info/flags-info.component.mjs +257 -0
- package/esm2022/lib/components/flags-info/flags-info.interface.mjs +2 -0
- package/esm2022/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.mjs +71 -0
- package/esm2022/lib/components/gallery/gallery.component.mjs +280 -0
- package/esm2022/lib/components/managechecklist/managechecklist.component.mjs +11 -0
- package/esm2022/lib/components/pagination/pagination.component.mjs +62 -0
- package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +101 -0
- package/esm2022/lib/components/reports/reports.component.mjs +204 -0
- package/esm2022/lib/components/reports/reports.interface.mjs +2 -0
- package/esm2022/lib/components/tango-analyse-trax/tango-analyse-trax.component.mjs +27 -6
- package/esm2022/lib/components/trax-store/trax-store.component.mjs +144 -0
- package/esm2022/lib/components/traxpopup/traxpopup.component.mjs +64 -0
- package/esm2022/lib/services/trax.service.mjs +200 -0
- package/esm2022/lib/tango-analyse-trax-routing.module.mjs +62 -6
- package/esm2022/lib/tango-analyse-trax.module.mjs +82 -9
- package/fesm2022/tango-app-ui-analyse-trax.mjs +6211 -24
- package/fesm2022/tango-app-ui-analyse-trax.mjs.map +1 -1
- package/lib/components/add-checklist/add-checklist.component.d.ts +91 -0
- package/lib/components/checklist/checklist.component.d.ts +38 -0
- package/lib/components/checklist-configure/checklist-configure.component.d.ts +162 -0
- package/lib/components/dashboard/dashboard.component.d.ts +62 -0
- package/lib/components/dashboard-info/dashboard-info.component.d.ts +92 -0
- package/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.d.ts +39 -0
- package/lib/components/flags/flags.component.d.ts +40 -0
- package/lib/components/flags/flags.interface.d.ts +61 -0
- package/lib/components/flags-info/flags-info.component.d.ts +50 -0
- package/lib/components/flags-info/flags-info.interface.d.ts +207 -0
- package/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.d.ts +13 -0
- package/lib/components/gallery/gallery.component.d.ts +64 -0
- package/lib/components/managechecklist/managechecklist.component.d.ts +5 -0
- package/lib/components/pagination/pagination.component.d.ts +16 -0
- package/lib/components/reactive-select/reactive-select.component.d.ts +31 -0
- package/lib/components/reports/reports.component.d.ts +43 -0
- package/lib/components/reports/reports.interface.d.ts +44 -0
- package/lib/components/tango-analyse-trax/tango-analyse-trax.component.d.ts +10 -1
- package/lib/components/trax-store/trax-store.component.d.ts +43 -0
- package/lib/components/traxpopup/traxpopup.component.d.ts +22 -0
- package/lib/services/trax.service.d.ts +65 -0
- package/lib/tango-analyse-trax.module.d.ts +23 -3
- package/package.json +1 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormControl, FormArray, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { PageInfoService } from 'tango-app-ui-global';
|
|
4
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
5
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
8
|
+
import { TraxService } from '../../services/trax.service';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class AddChecklistComponent implements OnInit {
|
|
11
|
+
private pageInfo;
|
|
12
|
+
private fb;
|
|
13
|
+
private changedetector;
|
|
14
|
+
private dialog;
|
|
15
|
+
private route;
|
|
16
|
+
private toast;
|
|
17
|
+
private router;
|
|
18
|
+
private sopService;
|
|
19
|
+
formRef: ElementRef;
|
|
20
|
+
ChecklistForm: FormGroup;
|
|
21
|
+
show: number;
|
|
22
|
+
sectionIndex: number;
|
|
23
|
+
getobject: any;
|
|
24
|
+
editvalue: any;
|
|
25
|
+
isDisabled: boolean;
|
|
26
|
+
nosection: boolean;
|
|
27
|
+
showvalue: string;
|
|
28
|
+
refImgQIdx: number;
|
|
29
|
+
checklistLoading: boolean;
|
|
30
|
+
popupCount: number;
|
|
31
|
+
constructor(pageInfo: PageInfoService, fb: FormBuilder, changedetector: ChangeDetectorRef, dialog: NgbModal, route: ActivatedRoute, toast: ToastService, router: Router, sopService: TraxService);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
setPageData(): void;
|
|
34
|
+
updateInputValue(sectionIndex: number, sectionName: string): void;
|
|
35
|
+
scrollToQuestion(sectionIndex: number, questionIndex: number): void;
|
|
36
|
+
formChecklistQuestions(): void;
|
|
37
|
+
initChecklist(): void;
|
|
38
|
+
allowedValuesValidator(allowedValues: string[]): (control: any) => {
|
|
39
|
+
invalidValue: boolean;
|
|
40
|
+
} | null;
|
|
41
|
+
addNewSection(): void;
|
|
42
|
+
removeSection(sectionIndex: number): void;
|
|
43
|
+
dragDrop(sectionIndex: any, event: CdkDragDrop<any[]>): void;
|
|
44
|
+
updatelinkedQuestionNo(secIdx: number, prevIdx: number, qnIdx: number): void;
|
|
45
|
+
answerTypeSelection(sectionIndex: any, questionIndex: any, event: any, ansIndex?: number, linkQuestionIndex?: number): void;
|
|
46
|
+
updateValidationType(event: any, section: number, question: number, answer: number): void;
|
|
47
|
+
setAnswerAsFormArray(sectionIndex: number, questionIndex: number, selectvalue: string, ansIndex: number, linkQuestionIndex: number): void;
|
|
48
|
+
setAnswerAsFormGroup(sectionIndex: number, questionIndex: number, answerType: string, ansIndex?: number, linkQuestionIndex?: number): void;
|
|
49
|
+
loadImageFromDevice(secIdx: number, qIdx: number, event: any, ansIdx?: number, ctrlName?: string): void;
|
|
50
|
+
clearReferenceImage(secIdx: number, qIdx: number, ansIdx?: number): void;
|
|
51
|
+
getvalidation(sectionIndex: any, questionIndex: any, addmoreqnIndex: any, event: any): void;
|
|
52
|
+
addNewQuestion(sectionIndex: number): void;
|
|
53
|
+
deleteQuestion(sectionIndex: any, questionIndex: any): void;
|
|
54
|
+
subtractQuestionno(sectionIndex: number, questionIndex: any): void;
|
|
55
|
+
raiseflag(sectionIndex: number, questionIndex: number, ansIdx: number, value: boolean, linkIndex?: number, linkAnsIndex?: number): void;
|
|
56
|
+
addNestedQuestion(sectionIndex: number, questionIndex: number, ansIdx: number, value: boolean, linkedQuestionIndex?: number, linkedAnswer?: number): void;
|
|
57
|
+
accordian(index: any): void;
|
|
58
|
+
deleteSection(sectionIndex: any): void;
|
|
59
|
+
AddMoreAns(sectionindex: any, questionIndex: any, type: string): void;
|
|
60
|
+
deleteAnswer(sectionIndex: number, questionIndex: number, addmoreqnIndex: number, ansIndex?: number): void;
|
|
61
|
+
cloneQuestion(sectionindex: any, questionindex: any): void;
|
|
62
|
+
updateClonedlinkedQuestionNo(secIdx: number, qidx: number): void;
|
|
63
|
+
saveChecklistQuestions(type: string): void;
|
|
64
|
+
saveAsDraftPop(type: string): void;
|
|
65
|
+
updateChecklistQuestions(type: string): void;
|
|
66
|
+
markFormControlsAsTouched(control: FormGroup | FormArray, sectionIndex?: number): void;
|
|
67
|
+
scrollToErrors(sections: FormArray): void;
|
|
68
|
+
swalToast(err: string, type?: string, icon?: string): void;
|
|
69
|
+
RunAI(sIdx: number, qIdx: number, ansIdx?: number): void;
|
|
70
|
+
runAIOff(sIdx: number, qIdx: number, showError?: boolean, ansIdx?: number): void;
|
|
71
|
+
getSectionFormArray(): FormArray<any>;
|
|
72
|
+
getFormControl(formControl: string): FormControl<any>;
|
|
73
|
+
getSectionFormControl(sectionIndex: number, formControlName: string): import("@angular/forms").AbstractControl<any, any> | null;
|
|
74
|
+
getQuestionFormControl(sectionIndex: number, questionIndex: number, formControlName: string, ansIdx?: number): FormControl<any> | null;
|
|
75
|
+
getFormArrayQuestions(sectionIndex: number): FormArray<any>;
|
|
76
|
+
getQuestionsFormGroup(sectionIndex: number, questionIndex: number): FormGroup<any>;
|
|
77
|
+
getFormArrayQuestionsAnswer(sectionIndex: number, questionIndex: number, formArrayName: string, ansIndex?: number, linkquestionIndex?: number): FormArray<any>;
|
|
78
|
+
getFormArrayLinkedQuestions(sectionIndex: number, questionIndex: number, answerIndex: number): FormArray<any>;
|
|
79
|
+
getQuestionsFormArrayValues(sectionIndex: number): any[];
|
|
80
|
+
getAnswerFormGroup_FormControl(sectionIndex: number, questionIndex: number, formControlName: string, ansIdx?: number): FormControl<any> | null;
|
|
81
|
+
removedNestedQuestion(sectionindex: number, qno: any): void;
|
|
82
|
+
updateQuestionQnos(sectionindex: number): void;
|
|
83
|
+
getQuestionsAnswerFormGroup(sectionIndex: number, questionIndex: number, ansIndex: number): FormGroup<any>;
|
|
84
|
+
setActiveQuestion(secIdx: number, questionIndex: number, activestatus: number, answerIndex?: number): void;
|
|
85
|
+
allowAddAnswer(answers: any[]): boolean;
|
|
86
|
+
getQuestionList(secIdx: number, qntIdx: number, ansIdx: number): any;
|
|
87
|
+
updateLinked(secIdx: number, qnIdx: number, ansIdx: number): void;
|
|
88
|
+
updateQuestionType(secIdx: number, event: any): void;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddChecklistComponent, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddChecklistComponent, "lib-add-checklist", never, {}, {}, never, never, false, never>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
|
3
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
+
import { TraxService } from '../../services/trax.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ChecklistComponent implements OnInit, OnDestroy {
|
|
9
|
+
private pageInfo;
|
|
10
|
+
private traxService;
|
|
11
|
+
private gs;
|
|
12
|
+
private toast;
|
|
13
|
+
private route;
|
|
14
|
+
private dialog;
|
|
15
|
+
private cd;
|
|
16
|
+
loading: boolean;
|
|
17
|
+
noData: boolean;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
totalItems: number;
|
|
20
|
+
paginationSizes: any;
|
|
21
|
+
checklistData: any;
|
|
22
|
+
private detach;
|
|
23
|
+
private readonly destroy$;
|
|
24
|
+
dynamicData: any;
|
|
25
|
+
constructor(pageInfo: PageInfoService, traxService: TraxService, gs: GlobalStateService, toast: ToastService, route: Router, dialog: NgbModal, cd: ChangeDetectorRef);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
setPageData(): void;
|
|
29
|
+
getCheckList(): void;
|
|
30
|
+
onSort(column: any): void;
|
|
31
|
+
onPageChange(event: any): void;
|
|
32
|
+
onPageSizeChange(event: any): void;
|
|
33
|
+
redirect(data: any, details: any): void;
|
|
34
|
+
publish(event: any, data: any, i: number): void;
|
|
35
|
+
search(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecklistComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecklistComponent, "lib-checklist", never, {}, {}, never, never, false, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
5
|
+
import { TraxService } from '../../services/trax.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ChecklistConfigureComponent implements OnInit {
|
|
8
|
+
private changedetector;
|
|
9
|
+
private router;
|
|
10
|
+
private route;
|
|
11
|
+
private dialog;
|
|
12
|
+
private SopService;
|
|
13
|
+
private toast;
|
|
14
|
+
fileInput: ElementRef;
|
|
15
|
+
fileInput1: ElementRef;
|
|
16
|
+
dayjs: any;
|
|
17
|
+
timeconfig: any;
|
|
18
|
+
everymonth: any;
|
|
19
|
+
particularweek: any;
|
|
20
|
+
Onetime: boolean;
|
|
21
|
+
Repeating: boolean;
|
|
22
|
+
firstofevrymonth: boolean;
|
|
23
|
+
thirdofeverymonth: boolean;
|
|
24
|
+
selectText: string;
|
|
25
|
+
selectstoreText: string;
|
|
26
|
+
scheduleFilter: string;
|
|
27
|
+
livetickets: boolean;
|
|
28
|
+
visible: boolean;
|
|
29
|
+
selectable: boolean;
|
|
30
|
+
removable: boolean;
|
|
31
|
+
addOnBlur: boolean;
|
|
32
|
+
global_all_userlist: any;
|
|
33
|
+
saveddata: any;
|
|
34
|
+
storeopenandclosedetection: boolean;
|
|
35
|
+
allow_user: boolean;
|
|
36
|
+
allow_store_location: boolean;
|
|
37
|
+
type: string;
|
|
38
|
+
id: any;
|
|
39
|
+
obj: any;
|
|
40
|
+
configData: any;
|
|
41
|
+
scheduleStartTime: any;
|
|
42
|
+
scheduleEndTime: any;
|
|
43
|
+
usage_exceeds: any;
|
|
44
|
+
tableData: any;
|
|
45
|
+
tableLoading: any;
|
|
46
|
+
tableDisplayedColumns: any;
|
|
47
|
+
pageValue: any;
|
|
48
|
+
offset: number;
|
|
49
|
+
recordsTotal: any;
|
|
50
|
+
size: any;
|
|
51
|
+
offsetvalue: number;
|
|
52
|
+
pageDisplay: any;
|
|
53
|
+
nextbtn: boolean;
|
|
54
|
+
backbtn: boolean;
|
|
55
|
+
currentValue: any;
|
|
56
|
+
tableFilter: any;
|
|
57
|
+
pageStart: any;
|
|
58
|
+
pageEnd: any;
|
|
59
|
+
recordsCount: any;
|
|
60
|
+
paginationSize: number[];
|
|
61
|
+
userData: any;
|
|
62
|
+
excelUserData: any;
|
|
63
|
+
showImage: boolean;
|
|
64
|
+
monthDay: any;
|
|
65
|
+
show: number;
|
|
66
|
+
popUpTitle: any;
|
|
67
|
+
showIntro: boolean;
|
|
68
|
+
searchUser: any;
|
|
69
|
+
addUserForm: boolean;
|
|
70
|
+
sopStores: any;
|
|
71
|
+
selectAll: boolean;
|
|
72
|
+
errormsg: boolean;
|
|
73
|
+
startTime: any;
|
|
74
|
+
endTime: any;
|
|
75
|
+
checklistId: any;
|
|
76
|
+
reupload: boolean;
|
|
77
|
+
selectAllUser: boolean;
|
|
78
|
+
removeUsers: any;
|
|
79
|
+
selectedDays: any[];
|
|
80
|
+
showRangeValue: boolean;
|
|
81
|
+
submittedDates: number[];
|
|
82
|
+
monthDate: string;
|
|
83
|
+
specific: boolean;
|
|
84
|
+
report_formats: any;
|
|
85
|
+
date: any;
|
|
86
|
+
sections: any;
|
|
87
|
+
MonthweekNumber: string;
|
|
88
|
+
popupCount: number;
|
|
89
|
+
emailList: any;
|
|
90
|
+
validTime: boolean;
|
|
91
|
+
rangeStart: any;
|
|
92
|
+
rangeEnd: any;
|
|
93
|
+
disabledQuestion: boolean;
|
|
94
|
+
showconfig: boolean;
|
|
95
|
+
repeatType: string;
|
|
96
|
+
showDropDown: boolean;
|
|
97
|
+
selectedDate: any;
|
|
98
|
+
dates: number[];
|
|
99
|
+
selectedDateList: any;
|
|
100
|
+
refreshPicker: boolean;
|
|
101
|
+
zones: any;
|
|
102
|
+
constructor(changedetector: ChangeDetectorRef, router: ActivatedRoute, route: Router, dialog: NgbModal, SopService: TraxService, toast: ToastService);
|
|
103
|
+
ngOnInit(): void;
|
|
104
|
+
GetConfig(): void;
|
|
105
|
+
accordian(index: any): void;
|
|
106
|
+
configaccordian(): void;
|
|
107
|
+
Checklist(): void;
|
|
108
|
+
omit_special_char(event: any): boolean;
|
|
109
|
+
validateLimit(event: any): void;
|
|
110
|
+
changetype(val: number): void;
|
|
111
|
+
onFileUpload(event: any): void;
|
|
112
|
+
validateUserDetails(del?: any): void;
|
|
113
|
+
uploadUser(del?: any): void;
|
|
114
|
+
userDetails(): void;
|
|
115
|
+
downloadTemplate(): void;
|
|
116
|
+
onPageChange(event: any): void;
|
|
117
|
+
onPageSizeChange(event: any): void;
|
|
118
|
+
searchTableData(): void;
|
|
119
|
+
updateFlag(event: any, index: any, element: any): void;
|
|
120
|
+
checkAll(event: any): void;
|
|
121
|
+
dateSpecific(event: any): void;
|
|
122
|
+
dateRangeStart(event: any): void;
|
|
123
|
+
dateRangeEnd(event: any): void;
|
|
124
|
+
dateChanged(event: any): void;
|
|
125
|
+
setDay(day: string): void;
|
|
126
|
+
setMonthDate(data: any): void;
|
|
127
|
+
setDate(event: any): void;
|
|
128
|
+
publish(): false | undefined;
|
|
129
|
+
selectstore(element: any): void;
|
|
130
|
+
newstore(): void;
|
|
131
|
+
inviteuser(): void;
|
|
132
|
+
updateDay(): any;
|
|
133
|
+
updateValue(event: any): void;
|
|
134
|
+
validate(event: any): void;
|
|
135
|
+
savedraft(): false | undefined;
|
|
136
|
+
Reupload(): void;
|
|
137
|
+
invitenewuser(): void;
|
|
138
|
+
Addstore(): void;
|
|
139
|
+
saveandredirect(id: any): void;
|
|
140
|
+
validateTime(): boolean;
|
|
141
|
+
updateTime(data: any): void;
|
|
142
|
+
updateSchedule(event: any): void;
|
|
143
|
+
navigateToControlCenter(): void;
|
|
144
|
+
addStoreComponent(): void;
|
|
145
|
+
toggleDropDown(): void;
|
|
146
|
+
selectDate(date: number): void;
|
|
147
|
+
submitDate(): void;
|
|
148
|
+
removeBadge(date: number): void;
|
|
149
|
+
getDateWithSuffix(date: number): string;
|
|
150
|
+
closeDropDown(): void;
|
|
151
|
+
updateMonth(type: any): void;
|
|
152
|
+
updateRepeatDay(): void;
|
|
153
|
+
updateMonthValue(): string;
|
|
154
|
+
updateSpecificValue(): any;
|
|
155
|
+
removeDate(date: any): void;
|
|
156
|
+
updateSceduleDate(): any;
|
|
157
|
+
updateDateValue(event: any): void;
|
|
158
|
+
updateSpecific(event: any): void;
|
|
159
|
+
onDatepickerRefresh(): void;
|
|
160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChecklistConfigureComponent, never>;
|
|
161
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChecklistConfigureComponent, "lib-checklist-configure", never, {}, {}, never, never, false, never>;
|
|
162
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
5
|
+
import { TraxService } from '../../services/trax.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DashboardComponent implements OnDestroy, OnInit {
|
|
8
|
+
private route;
|
|
9
|
+
private router;
|
|
10
|
+
gs: GlobalStateService;
|
|
11
|
+
private changeDetector;
|
|
12
|
+
private toast;
|
|
13
|
+
private TraxService;
|
|
14
|
+
receivedData: string;
|
|
15
|
+
private detach;
|
|
16
|
+
private destroy$;
|
|
17
|
+
isExport: boolean;
|
|
18
|
+
itemsPerPage: number;
|
|
19
|
+
currentPage: number;
|
|
20
|
+
totalItems: number;
|
|
21
|
+
paginationSizes: any[];
|
|
22
|
+
pageSize: number;
|
|
23
|
+
sortColumName: string;
|
|
24
|
+
sortBy: any;
|
|
25
|
+
sortDirection: any;
|
|
26
|
+
searchInput: any;
|
|
27
|
+
checklistPerformance: any[];
|
|
28
|
+
storePerformanceData: any[];
|
|
29
|
+
userPerformanceData: any[];
|
|
30
|
+
searchDisabled: boolean;
|
|
31
|
+
invoiceList: any[];
|
|
32
|
+
checklistLoading: boolean;
|
|
33
|
+
checklistNoData: boolean;
|
|
34
|
+
storePerformanceLoading: boolean;
|
|
35
|
+
storePerformanceNoData: boolean;
|
|
36
|
+
userPerformanceLoading: boolean;
|
|
37
|
+
userPerformanceNoData: boolean;
|
|
38
|
+
headerData: any;
|
|
39
|
+
cardDataLoading: boolean;
|
|
40
|
+
cardNoData: boolean;
|
|
41
|
+
overallCardsData: any;
|
|
42
|
+
currentTab: string;
|
|
43
|
+
searchValue: string;
|
|
44
|
+
limit: number;
|
|
45
|
+
offset: number;
|
|
46
|
+
constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService);
|
|
47
|
+
ngOnDestroy(): void;
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
Selecttabs(tab: string): void;
|
|
50
|
+
getOverallCardsData(): void;
|
|
51
|
+
getChecklistPerformanceData(): void;
|
|
52
|
+
getStorePerformanceData(): void;
|
|
53
|
+
getUserPerformanceData(): void;
|
|
54
|
+
onExport(): void;
|
|
55
|
+
searchField(): void;
|
|
56
|
+
sortData(column: string): void;
|
|
57
|
+
onPageSizeChange(pageSize: any): void;
|
|
58
|
+
onPageChange(pageOffset: any): void;
|
|
59
|
+
setPaginationSizes(): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "lib-dashboard", never, {}, {}, never, never, false, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
5
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
6
|
+
import { TraxService } from '../../services/trax.service';
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DashboardInfoComponent implements OnDestroy, OnInit {
|
|
10
|
+
private route;
|
|
11
|
+
private router;
|
|
12
|
+
gs: GlobalStateService;
|
|
13
|
+
private changeDetector;
|
|
14
|
+
private toast;
|
|
15
|
+
private TraxService;
|
|
16
|
+
private fb;
|
|
17
|
+
dayjs: typeof dayjs;
|
|
18
|
+
private detach;
|
|
19
|
+
private destroy$;
|
|
20
|
+
isExport: boolean;
|
|
21
|
+
itemsPerPage: number;
|
|
22
|
+
currentPage: number;
|
|
23
|
+
totalItems: number;
|
|
24
|
+
paginationSizes: any[];
|
|
25
|
+
pageSize: number;
|
|
26
|
+
sortColumName: string;
|
|
27
|
+
sortBy: any;
|
|
28
|
+
sortDirection: any;
|
|
29
|
+
searchInput: any;
|
|
30
|
+
infoChecklistData: any[];
|
|
31
|
+
checklistDropdown: any[];
|
|
32
|
+
userlistDropdown: any[];
|
|
33
|
+
searchDisabled: boolean;
|
|
34
|
+
invoiceList: any[];
|
|
35
|
+
checklistLoading: boolean;
|
|
36
|
+
checklistNoData: boolean;
|
|
37
|
+
headerData: any;
|
|
38
|
+
receivedData: string;
|
|
39
|
+
form: FormGroup;
|
|
40
|
+
selectControl: FormControl;
|
|
41
|
+
checklistselectControl: FormControl;
|
|
42
|
+
userlistselectControl: FormControl;
|
|
43
|
+
selectedlistselectControl: FormControl;
|
|
44
|
+
selectedUser: any;
|
|
45
|
+
selectedUserType: string;
|
|
46
|
+
selectedSourceUserId: string;
|
|
47
|
+
selectedStatus: any;
|
|
48
|
+
selectedStatusType: string;
|
|
49
|
+
selectedSourceStatusId: string;
|
|
50
|
+
checklistdatasets: Array<{
|
|
51
|
+
value: string;
|
|
52
|
+
label: string;
|
|
53
|
+
}>;
|
|
54
|
+
infoCardDataLoading: boolean;
|
|
55
|
+
infoCardNoData: boolean;
|
|
56
|
+
infoCardsData: any;
|
|
57
|
+
selectedChecklist: any;
|
|
58
|
+
selectedChecklistType: string;
|
|
59
|
+
selectedSourceCheckListId: string;
|
|
60
|
+
selectDropdown: any[];
|
|
61
|
+
selectedvalue: any;
|
|
62
|
+
statusselectControl: {
|
|
63
|
+
_id: string;
|
|
64
|
+
label: string;
|
|
65
|
+
}[];
|
|
66
|
+
timeFlag: any;
|
|
67
|
+
date: any;
|
|
68
|
+
infoComparisonCardsData: any;
|
|
69
|
+
constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService, fb: FormBuilder);
|
|
70
|
+
ngOnDestroy(): void;
|
|
71
|
+
ngOnInit(): void;
|
|
72
|
+
getUserlistDropdown(): void;
|
|
73
|
+
getchecklistDropdown(): void;
|
|
74
|
+
getInfoCardsData(): void;
|
|
75
|
+
getInfoComparisonCardsData(): void;
|
|
76
|
+
getChecklistInfoData(): void;
|
|
77
|
+
onExport(): void;
|
|
78
|
+
searchField(): void;
|
|
79
|
+
sortData(column: string): void;
|
|
80
|
+
onPageSizeChange(pageSize: any): void;
|
|
81
|
+
onPageChange(pageOffset: any): void;
|
|
82
|
+
setPaginationSizes(): void;
|
|
83
|
+
onValueChangeChecklist(event: any): void;
|
|
84
|
+
onValueChangeUserChecklist(event: any): void;
|
|
85
|
+
trimText(text: string): string;
|
|
86
|
+
onValueChangeStatusSelect(event: any): void;
|
|
87
|
+
storeView(data: any): void;
|
|
88
|
+
reinitiate(): void;
|
|
89
|
+
sendalert(): void;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardInfoComponent, never>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardInfoComponent, "lib-dashboard-info", never, {}, {}, never, never, false, never>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
5
|
+
import { TraxService } from '../../../services/trax.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class MonthlyperformanceDatepickerComponent implements OnChanges {
|
|
8
|
+
private route;
|
|
9
|
+
private router;
|
|
10
|
+
gs: GlobalStateService;
|
|
11
|
+
private changeDetector;
|
|
12
|
+
private toast;
|
|
13
|
+
private TraxService;
|
|
14
|
+
currentYear: number;
|
|
15
|
+
currentMonth: number;
|
|
16
|
+
dayNames: string[];
|
|
17
|
+
monthNames: string[];
|
|
18
|
+
headerData: any;
|
|
19
|
+
performanceData: any[];
|
|
20
|
+
private detach;
|
|
21
|
+
private destroy$;
|
|
22
|
+
receivedData: string;
|
|
23
|
+
selectedvalue: any;
|
|
24
|
+
monthlyPeformanceLoading: boolean;
|
|
25
|
+
monthlyPeformanceNoData: boolean;
|
|
26
|
+
monthlyperformce: string;
|
|
27
|
+
constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService);
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
getMonthlyPeformanceData(): void;
|
|
32
|
+
getDaysInMonth(): number[];
|
|
33
|
+
getEmptyDays(): number[];
|
|
34
|
+
getDayClass(day: number): string;
|
|
35
|
+
previousMonth(): void;
|
|
36
|
+
nextMonth(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonthlyperformanceDatepickerComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonthlyperformanceDatepickerComponent, "lib-monthlyperformance-datepicker", never, { "monthlyperformce": { "alias": "monthlyperformce"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from "rxjs";
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { TraxService } from '../../services/trax.service';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import { HeaderFilter, FlagsTableData, IFlagCards, IFlagComparisonCards } from './flags.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class FlagsComponent implements OnInit, OnDestroy {
|
|
9
|
+
gs: GlobalStateService;
|
|
10
|
+
private changeDetector;
|
|
11
|
+
private traxService;
|
|
12
|
+
private router;
|
|
13
|
+
private destroy$;
|
|
14
|
+
itemsPerPage: number;
|
|
15
|
+
currentPage: number;
|
|
16
|
+
totalItems: number;
|
|
17
|
+
paginationSizes: number[];
|
|
18
|
+
pageSize: number;
|
|
19
|
+
sortColumName: string;
|
|
20
|
+
sortDirection: number;
|
|
21
|
+
headerData: HeaderFilter | null | undefined;
|
|
22
|
+
flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
23
|
+
flagsTableData: FlagsTableData[];
|
|
24
|
+
cardMetricsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
25
|
+
cardMetricsData: IFlagCards | null | undefined;
|
|
26
|
+
cardMetricsComparisonData: IFlagComparisonCards | null | undefined;
|
|
27
|
+
constructor(gs: GlobalStateService, changeDetector: ChangeDetectorRef, traxService: TraxService, router: Router);
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
getChecklistFlagMetrics(): void;
|
|
31
|
+
getChecklistFlagMetricsComparison(): void;
|
|
32
|
+
getFlagsTable(): void;
|
|
33
|
+
onFlagsTableExport(): void;
|
|
34
|
+
sortData(column: string): void;
|
|
35
|
+
onPageSizeChange(pageSize: any): void;
|
|
36
|
+
onPageChange(pageOffset: any): void;
|
|
37
|
+
viewInDetail(checklistId: string | undefined): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlagsComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlagsComponent, "lib-flags", never, {}, {}, never, never, false, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
interface FlagCards {
|
|
2
|
+
questionFlag: {
|
|
3
|
+
count: number;
|
|
4
|
+
};
|
|
5
|
+
delayInSubmission: {
|
|
6
|
+
count: number;
|
|
7
|
+
};
|
|
8
|
+
detectionFlag: {
|
|
9
|
+
count: number;
|
|
10
|
+
};
|
|
11
|
+
totalFlag: number;
|
|
12
|
+
}
|
|
13
|
+
export interface IFlagCards {
|
|
14
|
+
flagCards: FlagCards;
|
|
15
|
+
}
|
|
16
|
+
interface ComparisonFlag {
|
|
17
|
+
comparisonData: number;
|
|
18
|
+
ComparisonFlag: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface FlagComparisonCards {
|
|
21
|
+
questionComparisonFlag: ComparisonFlag;
|
|
22
|
+
delayInSubmissionComparisonFlag: ComparisonFlag;
|
|
23
|
+
detectionComparisonFlag: ComparisonFlag;
|
|
24
|
+
}
|
|
25
|
+
export interface IFlagComparisonCards {
|
|
26
|
+
flagComparisonCards: FlagComparisonCards;
|
|
27
|
+
}
|
|
28
|
+
export interface FlagsTableData {
|
|
29
|
+
checkListName: string;
|
|
30
|
+
checkListChar: string;
|
|
31
|
+
sourceCheckList_id: string;
|
|
32
|
+
checkListType: string;
|
|
33
|
+
flagType: string;
|
|
34
|
+
assignedStores: number;
|
|
35
|
+
flaggedStores: number;
|
|
36
|
+
flagCount: number;
|
|
37
|
+
complianceRate: number;
|
|
38
|
+
}
|
|
39
|
+
interface DateRange {
|
|
40
|
+
startDate: string;
|
|
41
|
+
endDate: string;
|
|
42
|
+
}
|
|
43
|
+
interface Store {
|
|
44
|
+
storeId: string;
|
|
45
|
+
storeName: string;
|
|
46
|
+
checked: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface Group {
|
|
49
|
+
city: string;
|
|
50
|
+
checked: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface HeaderFilter {
|
|
53
|
+
client: string;
|
|
54
|
+
clientName: string;
|
|
55
|
+
clients: string[];
|
|
56
|
+
store: null | string;
|
|
57
|
+
date: DateRange;
|
|
58
|
+
stores: Store[];
|
|
59
|
+
group: Group[];
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { BehaviorSubject } from "rxjs";
|
|
4
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
5
|
+
import { FormControl } from '@angular/forms';
|
|
6
|
+
import { TraxService } from '../../services/trax.service';
|
|
7
|
+
import { Location } from '@angular/common';
|
|
8
|
+
import { Checklist, ChecklistFlagList, FlagCardTrends, FlagCardValues, HeaderFilter } from './flags-info.interface';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class FlagsInfoComponent implements OnDestroy, OnInit {
|
|
11
|
+
private route;
|
|
12
|
+
gs: GlobalStateService;
|
|
13
|
+
private traxService;
|
|
14
|
+
private location;
|
|
15
|
+
private cd;
|
|
16
|
+
private destroy$;
|
|
17
|
+
itemsPerPage: number;
|
|
18
|
+
currentPage: number;
|
|
19
|
+
totalItems: number;
|
|
20
|
+
paginationSizes: number[];
|
|
21
|
+
pageSize: number;
|
|
22
|
+
sortColumName: string;
|
|
23
|
+
sortDirection: number;
|
|
24
|
+
headerData: HeaderFilter | null | undefined;
|
|
25
|
+
checklistSelectControl: FormControl;
|
|
26
|
+
searchInput: FormControl;
|
|
27
|
+
checkLists: Checklist[];
|
|
28
|
+
checkListsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
29
|
+
currentChecklist: Checklist | null | undefined;
|
|
30
|
+
checklistFlagList: ChecklistFlagList | null | undefined;
|
|
31
|
+
flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
32
|
+
flagCardValues: FlagCardValues | null | undefined;
|
|
33
|
+
flagsCardValuesState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
34
|
+
flagCardTrends: FlagCardTrends | null | undefined;
|
|
35
|
+
unattendedSummaryChartNumber: number;
|
|
36
|
+
constructor(route: ActivatedRoute, gs: GlobalStateService, traxService: TraxService, location: Location, cd: ChangeDetectorRef);
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
getChecklists(): void;
|
|
40
|
+
getFlagsTable(): void;
|
|
41
|
+
getCardValues(): void;
|
|
42
|
+
getCardTrends(): void;
|
|
43
|
+
sortData(column: string): void;
|
|
44
|
+
onPageSizeChange(pageSize: any): void;
|
|
45
|
+
onPageChange(pageOffset: any): void;
|
|
46
|
+
onBack(): void;
|
|
47
|
+
storeView(data: any): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlagsInfoComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlagsInfoComponent, "lib-flags-info", never, {}, {}, never, never, false, never>;
|
|
50
|
+
}
|