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,207 @@
|
|
|
1
|
+
export interface Checklist {
|
|
2
|
+
checklistName: string;
|
|
3
|
+
sourceCheckList_id: string;
|
|
4
|
+
checkListType: "storeopenandclose" | "mobileusagedetection" | "uniformdetection" | "custom" | "customerunattended" | "staffleftinthemiddle";
|
|
5
|
+
createdByName: string;
|
|
6
|
+
storeCount: number;
|
|
7
|
+
scheduleRepeatedType: string;
|
|
8
|
+
scheduleStartTime: string;
|
|
9
|
+
scheduleEndTime: string;
|
|
10
|
+
publish: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface StoreOpenCloseData {
|
|
13
|
+
date: string;
|
|
14
|
+
dateString: string;
|
|
15
|
+
storeName: string;
|
|
16
|
+
storeId: string;
|
|
17
|
+
storeSpocEmail: string;
|
|
18
|
+
openTime: string;
|
|
19
|
+
openTimeFlag: boolean;
|
|
20
|
+
closeTime: string;
|
|
21
|
+
closeTimeFlag: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface DetectionData {
|
|
24
|
+
date: string;
|
|
25
|
+
dateString: string;
|
|
26
|
+
storeName: string;
|
|
27
|
+
storeId: string;
|
|
28
|
+
storeSpocEmail: string;
|
|
29
|
+
detections: number;
|
|
30
|
+
}
|
|
31
|
+
export interface ChecklistFlagList {
|
|
32
|
+
status_code: string;
|
|
33
|
+
totalCount: number;
|
|
34
|
+
storeopenandcloseData: StoreOpenCloseData[];
|
|
35
|
+
mobileusagedetectionData: DetectionData[];
|
|
36
|
+
uniformdetectionData: DetectionData[];
|
|
37
|
+
customerunattendedData: DetectionData[];
|
|
38
|
+
staffleftinthemiddleData: DetectionData[];
|
|
39
|
+
customData: DetectionData[];
|
|
40
|
+
}
|
|
41
|
+
export interface FlagCardValues {
|
|
42
|
+
status_code: string;
|
|
43
|
+
customCards: {
|
|
44
|
+
totalAssignedStores: {
|
|
45
|
+
count: number;
|
|
46
|
+
};
|
|
47
|
+
flagIncidents: {
|
|
48
|
+
count: number;
|
|
49
|
+
};
|
|
50
|
+
complianceRate: {
|
|
51
|
+
count: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
storeopenandcloseCards: {
|
|
55
|
+
totalAssignedStores: {
|
|
56
|
+
count: number;
|
|
57
|
+
};
|
|
58
|
+
lateOpenStores: {
|
|
59
|
+
count: number;
|
|
60
|
+
};
|
|
61
|
+
earlyClosedStores: {
|
|
62
|
+
count: number;
|
|
63
|
+
};
|
|
64
|
+
complianceRate: {
|
|
65
|
+
rate: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
mobileusagedetectionCards: {
|
|
69
|
+
totalAssignedStores: {
|
|
70
|
+
count: number;
|
|
71
|
+
};
|
|
72
|
+
flagIncidents: {
|
|
73
|
+
count: number;
|
|
74
|
+
};
|
|
75
|
+
complianceRate: {
|
|
76
|
+
rate: number;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
uniformdetectionCards: {
|
|
80
|
+
totalAssignedStores: {
|
|
81
|
+
count: number;
|
|
82
|
+
};
|
|
83
|
+
flagIncidents: {
|
|
84
|
+
count: number;
|
|
85
|
+
};
|
|
86
|
+
complianceRate: {
|
|
87
|
+
rate: number;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
customerunattendedCards: {
|
|
91
|
+
averageFootfall: {
|
|
92
|
+
count: number;
|
|
93
|
+
};
|
|
94
|
+
stafftoCustomerRatio: {
|
|
95
|
+
ratio: string;
|
|
96
|
+
};
|
|
97
|
+
attendedCustomers: {
|
|
98
|
+
count: number;
|
|
99
|
+
};
|
|
100
|
+
unattendedCustomers: {
|
|
101
|
+
count: number;
|
|
102
|
+
};
|
|
103
|
+
timeTakentoAssist: {
|
|
104
|
+
mins: number;
|
|
105
|
+
};
|
|
106
|
+
timeSpentwithCustomer: {
|
|
107
|
+
mins: number;
|
|
108
|
+
};
|
|
109
|
+
unattendedSummaryChart: {
|
|
110
|
+
chart1: {
|
|
111
|
+
category: string;
|
|
112
|
+
value: number;
|
|
113
|
+
}[];
|
|
114
|
+
chart2: {
|
|
115
|
+
category: string;
|
|
116
|
+
value: number;
|
|
117
|
+
}[];
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
staffleftinthemiddleCards: {
|
|
121
|
+
avgStaffPresent: {
|
|
122
|
+
count: number;
|
|
123
|
+
};
|
|
124
|
+
avgStaffleft: {
|
|
125
|
+
count: number;
|
|
126
|
+
};
|
|
127
|
+
avgStaffPresentInPeakHours: {
|
|
128
|
+
rate: string;
|
|
129
|
+
};
|
|
130
|
+
staffAvgPunctualityRate: {
|
|
131
|
+
rate: number;
|
|
132
|
+
};
|
|
133
|
+
staffAvgBreakHours: {
|
|
134
|
+
mins: number;
|
|
135
|
+
};
|
|
136
|
+
staffAvgProductiveHours: {
|
|
137
|
+
mins: number;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
interface ComparisonData {
|
|
142
|
+
comparisonData: number;
|
|
143
|
+
ComparisonFlag: boolean;
|
|
144
|
+
}
|
|
145
|
+
export interface FlagCardTrends {
|
|
146
|
+
status_code: string;
|
|
147
|
+
customCards: {
|
|
148
|
+
totalAssignedStores: ComparisonData;
|
|
149
|
+
flagIncidents: ComparisonData;
|
|
150
|
+
complianceRate: ComparisonData;
|
|
151
|
+
};
|
|
152
|
+
storeopenandcloseCards: {
|
|
153
|
+
totalAssignedStores: ComparisonData;
|
|
154
|
+
lateOpenStores: ComparisonData;
|
|
155
|
+
earlyClosedStores: ComparisonData;
|
|
156
|
+
complianceRate: ComparisonData;
|
|
157
|
+
};
|
|
158
|
+
mobileusagedetectionCards: {
|
|
159
|
+
totalAssignedStores: ComparisonData;
|
|
160
|
+
flagIncidents: ComparisonData;
|
|
161
|
+
complianceRate: ComparisonData;
|
|
162
|
+
};
|
|
163
|
+
uniformdetectionCards: {
|
|
164
|
+
totalAssignedStores: ComparisonData;
|
|
165
|
+
flagIncidents: ComparisonData;
|
|
166
|
+
complianceRate: ComparisonData;
|
|
167
|
+
};
|
|
168
|
+
customerunattendedCards: {
|
|
169
|
+
averageFootfall: ComparisonData;
|
|
170
|
+
stafftoCustomerRatio: ComparisonData;
|
|
171
|
+
attendedCustomers: ComparisonData;
|
|
172
|
+
unattendedCustomers: ComparisonData;
|
|
173
|
+
timeTakentoAssist: ComparisonData;
|
|
174
|
+
timeSpentwithCustomer: ComparisonData;
|
|
175
|
+
};
|
|
176
|
+
staffleftinthemiddleCards: {
|
|
177
|
+
avgStaffPresent: ComparisonData;
|
|
178
|
+
avgStaffleft: ComparisonData;
|
|
179
|
+
avgStaffPresentInPeakHours: ComparisonData;
|
|
180
|
+
staffAvgPunctualityRate: ComparisonData;
|
|
181
|
+
staffAvgBreakHours: ComparisonData;
|
|
182
|
+
staffAvgProductiveHours: ComparisonData;
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
interface DateRange {
|
|
186
|
+
startDate: string;
|
|
187
|
+
endDate: string;
|
|
188
|
+
}
|
|
189
|
+
interface Store {
|
|
190
|
+
storeId: string;
|
|
191
|
+
storeName: string;
|
|
192
|
+
checked: boolean;
|
|
193
|
+
}
|
|
194
|
+
interface Group {
|
|
195
|
+
city: string;
|
|
196
|
+
checked: boolean;
|
|
197
|
+
}
|
|
198
|
+
export interface HeaderFilter {
|
|
199
|
+
client: string;
|
|
200
|
+
clientName: string;
|
|
201
|
+
clients: string[];
|
|
202
|
+
store: null | string;
|
|
203
|
+
date: DateRange;
|
|
204
|
+
stores: Store[];
|
|
205
|
+
group: Group[];
|
|
206
|
+
}
|
|
207
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit, OnDestroy, NgZone } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UnattendedPieChartComponent implements OnInit, OnDestroy {
|
|
4
|
+
private zone;
|
|
5
|
+
chartData: any;
|
|
6
|
+
chartId: any;
|
|
7
|
+
private root;
|
|
8
|
+
constructor(zone: NgZone);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UnattendedPieChartComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnattendedPieChartComponent, "lib-unattended-pie-chart", never, { "chartData": { "alias": "chartData"; "required": false; }; "chartId": { "alias": "chartId"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import dayjs, { Dayjs } from "dayjs";
|
|
4
|
+
import { TimePeriod } from 'ngx-daterangepicker-material/daterangepicker.component';
|
|
5
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
6
|
+
import { TraxService } from '../../services/trax.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class GalleryComponent implements OnInit, OnDestroy {
|
|
9
|
+
private fb;
|
|
10
|
+
private gs;
|
|
11
|
+
private traxService;
|
|
12
|
+
private cd;
|
|
13
|
+
dayjs: typeof dayjs;
|
|
14
|
+
selectedDateRange: any;
|
|
15
|
+
isCustomDate: (m: dayjs.Dayjs) => false | "invalid-date";
|
|
16
|
+
galleryForm: FormGroup;
|
|
17
|
+
type: any;
|
|
18
|
+
checklists: any;
|
|
19
|
+
answerType: {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
headerFilters: any;
|
|
24
|
+
storeList: any[];
|
|
25
|
+
private destroy$;
|
|
26
|
+
checklistData: any;
|
|
27
|
+
stores: any;
|
|
28
|
+
items: any;
|
|
29
|
+
paginatedItems: any;
|
|
30
|
+
itemsPerPage: number;
|
|
31
|
+
currentPage: number;
|
|
32
|
+
totalItems: number;
|
|
33
|
+
viewChecklistsData: any;
|
|
34
|
+
loading: boolean;
|
|
35
|
+
noData: boolean;
|
|
36
|
+
viewloading: boolean;
|
|
37
|
+
viewnoData: boolean;
|
|
38
|
+
constructor(fb: FormBuilder, gs: GlobalStateService, traxService: TraxService, cd: ChangeDetectorRef);
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
onStartDateChange(event: any): void;
|
|
42
|
+
createForm(): void;
|
|
43
|
+
datechange(event: TimePeriod): void;
|
|
44
|
+
getAllStores(): void;
|
|
45
|
+
getAllCheckLists(): void;
|
|
46
|
+
onStoreChecklistType(data: any): void;
|
|
47
|
+
onStoreSelect(event: any): void;
|
|
48
|
+
select: string;
|
|
49
|
+
onSubmit(): void;
|
|
50
|
+
show: number;
|
|
51
|
+
accordian(index: any): void;
|
|
52
|
+
getChecklistQA(): void;
|
|
53
|
+
viewChecklists(sectionName: any, questionName: any): void;
|
|
54
|
+
exportXLSX(): void;
|
|
55
|
+
taskCreate(): void;
|
|
56
|
+
redo(): void;
|
|
57
|
+
showsidenav: boolean;
|
|
58
|
+
sidenav(): void;
|
|
59
|
+
onPageChange(page: number): void;
|
|
60
|
+
paginateItems(): void;
|
|
61
|
+
updatePaginatedItems(): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GalleryComponent, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GalleryComponent, "lib-gallery", never, {}, {}, never, never, false, never>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ManagechecklistComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManagechecklistComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManagechecklistComponent, "lib-managechecklist", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PaginationComponent implements OnChanges {
|
|
4
|
+
totalItems: number;
|
|
5
|
+
itemsPerPage: number;
|
|
6
|
+
currentPage: number;
|
|
7
|
+
pageChanged: EventEmitter<number>;
|
|
8
|
+
totalPages: number;
|
|
9
|
+
maxVisiblePages: number;
|
|
10
|
+
visiblePages: any[];
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
selectPage(page: number): void;
|
|
13
|
+
getVisiblePages(): any[];
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "lib-pagination-v2", never, { "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, { "pageChanged": "pageChanged"; }, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { TraxService } from '../../services/trax.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ReactiveSelectComponent implements ControlValueAccessor, OnInit {
|
|
6
|
+
private apiService;
|
|
7
|
+
private cd;
|
|
8
|
+
private onTouched;
|
|
9
|
+
private onChanged;
|
|
10
|
+
protected isDisabled: boolean;
|
|
11
|
+
idField: string;
|
|
12
|
+
nameField: string;
|
|
13
|
+
label: string;
|
|
14
|
+
data: any;
|
|
15
|
+
protected isOpened: boolean;
|
|
16
|
+
protected selected: Record<string, any> | null;
|
|
17
|
+
protected selectedId: string | number;
|
|
18
|
+
instanceId: string;
|
|
19
|
+
constructor(apiService: TraxService, cd: ChangeDetectorRef);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
writeValue(val: string | number): void;
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
registerOnTouched(fn: any): void;
|
|
24
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
25
|
+
onSelect(item: Record<string, any>): void;
|
|
26
|
+
onClick(event: MouseEvent): void;
|
|
27
|
+
isComponentClicked(targetElement: HTMLElement): boolean;
|
|
28
|
+
openDropdown(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveSelectComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReactiveSelectComponent, "lib-reactive-select", never, { "idField": { "alias": "idField"; "required": false; }; "nameField": { "alias": "nameField"; "required": false; }; "label": { "alias": "label"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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, checkListReport, HeaderFilter } from './reports.interface';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class ReportsComponent 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
|
+
checklistReports: checkListReport[];
|
|
31
|
+
flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
32
|
+
selectAllControl: FormControl<boolean | null>;
|
|
33
|
+
constructor(route: ActivatedRoute, gs: GlobalStateService, traxService: TraxService, location: Location, cd: ChangeDetectorRef);
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
getChecklists(): void;
|
|
37
|
+
getFlagsTable(): void;
|
|
38
|
+
sortData(column: string): void;
|
|
39
|
+
onPageSizeChange(pageSize: any): void;
|
|
40
|
+
onPageChange(pageOffset: any): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReportsComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReportsComponent, "lib-reports", never, {}, {}, never, never, false, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface Checklist {
|
|
2
|
+
checklistName: string;
|
|
3
|
+
sourceCheckList_id: string;
|
|
4
|
+
checkListType: "storeopenandclose" | "mobileusagedetection" | "uniformdetection" | "custom" | "customerunattended" | "staffleftinthemiddle";
|
|
5
|
+
createdByName: string;
|
|
6
|
+
storeCount: number;
|
|
7
|
+
scheduleRepeatedType: string;
|
|
8
|
+
scheduleStartTime: string;
|
|
9
|
+
scheduleEndTime: string;
|
|
10
|
+
publish: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface DateRange {
|
|
13
|
+
startDate: string;
|
|
14
|
+
endDate: string;
|
|
15
|
+
}
|
|
16
|
+
interface Store {
|
|
17
|
+
storeId: string;
|
|
18
|
+
storeName: string;
|
|
19
|
+
checked: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface Group {
|
|
22
|
+
city: string;
|
|
23
|
+
checked: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface HeaderFilter {
|
|
26
|
+
client: string;
|
|
27
|
+
clientName: string;
|
|
28
|
+
clients: string[];
|
|
29
|
+
store: null | string;
|
|
30
|
+
date: DateRange;
|
|
31
|
+
stores: Store[];
|
|
32
|
+
group: Group[];
|
|
33
|
+
}
|
|
34
|
+
export interface checkListReport {
|
|
35
|
+
submittedDate: string;
|
|
36
|
+
checklistName: string;
|
|
37
|
+
storeName: string;
|
|
38
|
+
submittedBy: string;
|
|
39
|
+
submittedByChar: string;
|
|
40
|
+
submittedTime: string;
|
|
41
|
+
flagCount: number;
|
|
42
|
+
isSelected: boolean;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { PageInfoService } from "tango-app-ui-global";
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class TangoAnalyseTraxComponent {
|
|
5
|
+
export declare class TangoAnalyseTraxComponent implements OnInit {
|
|
6
|
+
private router;
|
|
7
|
+
private pageInfo;
|
|
8
|
+
url: any;
|
|
9
|
+
constructor(router: Router, pageInfo: PageInfoService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
setPageData(): void;
|
|
3
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoAnalyseTraxComponent, never>;
|
|
4
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<TangoAnalyseTraxComponent, "lib-tango-analyse-trax", never, {}, {}, never, never, false, never>;
|
|
5
14
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
4
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
5
|
+
import { TraxService } from '../../services/trax.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class TraxStoreComponent implements OnInit, AfterViewInit {
|
|
8
|
+
private changedetector;
|
|
9
|
+
private SopService;
|
|
10
|
+
private dialogRef;
|
|
11
|
+
private toast;
|
|
12
|
+
private gs;
|
|
13
|
+
data: any;
|
|
14
|
+
client: any;
|
|
15
|
+
storeList: any;
|
|
16
|
+
store: [];
|
|
17
|
+
selectedStore: any;
|
|
18
|
+
showDropDown: boolean;
|
|
19
|
+
searchStore: any;
|
|
20
|
+
multiSelectSettings: {
|
|
21
|
+
idField: string;
|
|
22
|
+
textField: string;
|
|
23
|
+
itemsShowLimit: number;
|
|
24
|
+
allowSearchFilter: boolean;
|
|
25
|
+
singleSelection: boolean;
|
|
26
|
+
};
|
|
27
|
+
userName: string;
|
|
28
|
+
userEmail: string;
|
|
29
|
+
private detach;
|
|
30
|
+
private readonly destroy$;
|
|
31
|
+
clickOutside(event: MouseEvent): void;
|
|
32
|
+
constructor(changedetector: ChangeDetectorRef, SopService: TraxService, dialogRef: NgbActiveModal, toast: ToastService, gs: GlobalStateService);
|
|
33
|
+
ngAfterViewInit(): void;
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
toggleDropDown(): void;
|
|
36
|
+
selectStore(event: any): void;
|
|
37
|
+
filterSearch(): void;
|
|
38
|
+
updateSelectedStore(index: number): void;
|
|
39
|
+
closeDropDown(): void;
|
|
40
|
+
updatedStore(): false | undefined;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TraxStoreComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TraxStoreComponent, "lib-trax-store", never, { "data": { "alias": "data"; "required": false; }; "client": { "alias": "client"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TraxpopupComponent implements OnInit {
|
|
6
|
+
dialogRef: NgbActiveModal;
|
|
7
|
+
private sanitizer;
|
|
8
|
+
requestText: string;
|
|
9
|
+
data: any;
|
|
10
|
+
constructor(dialogRef: NgbActiveModal, sanitizer: DomSanitizer);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
closepopup(): void;
|
|
13
|
+
deletepopup(): void;
|
|
14
|
+
duplicatepopup(): void;
|
|
15
|
+
confirmpopup(): void;
|
|
16
|
+
confirmStorepopup(): void;
|
|
17
|
+
skipEntries(): void;
|
|
18
|
+
invitepopup(): void;
|
|
19
|
+
updateCheck(event: any, index: any): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TraxpopupComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TraxpopupComponent, "lib-traxpopup", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TraxService implements OnDestroy {
|
|
7
|
+
private http;
|
|
8
|
+
private gs;
|
|
9
|
+
traxUrl: any;
|
|
10
|
+
storeUrl: any;
|
|
11
|
+
galleryApiUrl: any;
|
|
12
|
+
dropDownTrigger: BehaviorSubject<any>;
|
|
13
|
+
private reloadDataSubject;
|
|
14
|
+
reloadData$: Observable<boolean>;
|
|
15
|
+
constructor(http: HttpClient, gs: GlobalStateService);
|
|
16
|
+
triggerReload(): void;
|
|
17
|
+
exportAsExcelFile(json: any[], excelFileName: string): void;
|
|
18
|
+
saveAsExcelFile(buffer: any, fileName: string): void;
|
|
19
|
+
saveAsTemplate(buffer: any, fileName: string): void;
|
|
20
|
+
private readonly destroy$;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
getSummaryTableData(data: any): Observable<any>;
|
|
23
|
+
getchecklist(data: any): Observable<any>;
|
|
24
|
+
getSummaryTableExport(data: any): Observable<any>;
|
|
25
|
+
checklist(obj: any): Observable<Object>;
|
|
26
|
+
imageupload(users: any): Observable<Object>;
|
|
27
|
+
validateUser(users: any): Observable<Object>;
|
|
28
|
+
getupdatechecklist(id: any, data: any): Observable<Object>;
|
|
29
|
+
createchecklist(data: any): Observable<Object>;
|
|
30
|
+
configUpdate(obj: any): Observable<Object>;
|
|
31
|
+
getconfig(obj: any): Observable<Object>;
|
|
32
|
+
runAIInsert(data: any): Observable<Object>;
|
|
33
|
+
duplicatechecklist(id: string): Observable<Object>;
|
|
34
|
+
getUserDetails(obj: any): Observable<Object>;
|
|
35
|
+
getStoreList(data: any): Observable<Object>;
|
|
36
|
+
deleteChecklist(id: string): Observable<Object>;
|
|
37
|
+
publish(id: string, data: any): Observable<Object>;
|
|
38
|
+
getStores(req: any): Observable<any>;
|
|
39
|
+
getChecklists(data: any): Observable<any>;
|
|
40
|
+
viewChecklists(data: any): Observable<any>;
|
|
41
|
+
overallFlagMetrics(body: any): Observable<any>;
|
|
42
|
+
overallFlagMetricsComparison(body: any): Observable<any>;
|
|
43
|
+
flagsTable(body: any): Observable<any>;
|
|
44
|
+
exportFlagsTable(body: any): Observable<any>;
|
|
45
|
+
getOverallCardsData(data: any): Observable<any>;
|
|
46
|
+
getChecklistPerformanceData(data: any): Observable<any>;
|
|
47
|
+
getChecklistPerformanceDataExport(data: any): Observable<any>;
|
|
48
|
+
getStorePerformanceData(data: any): Observable<any>;
|
|
49
|
+
getStorePerformanceDataExport(data: any): Observable<any>;
|
|
50
|
+
getUserPerformanceData(data: any): Observable<any>;
|
|
51
|
+
getUserPerformanceDataExport(data: any): Observable<any>;
|
|
52
|
+
getChecklistDropdownData(data: any): Observable<any>;
|
|
53
|
+
getChecklistDropdownDashboardData(data: any): Observable<any>;
|
|
54
|
+
getInfoCardsData(data: any): Observable<any>;
|
|
55
|
+
checklistFlagTable(body: any): Observable<any>;
|
|
56
|
+
reportTable(body: any): Observable<any>;
|
|
57
|
+
flagCardValues(body: any): Observable<any>;
|
|
58
|
+
flagCardTerend(body: any): Observable<any>;
|
|
59
|
+
getChecklistInfoData(data: any): Observable<any>;
|
|
60
|
+
getUserlistDropdownData(data: any): Observable<any>;
|
|
61
|
+
getMonthlyPeformanceData(data: any): Observable<any>;
|
|
62
|
+
getInfoComparisonCardsData(data: any): Observable<any>;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TraxService, never>;
|
|
64
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TraxService>;
|
|
65
|
+
}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./components/tango-analyse-trax/tango-analyse-trax.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "./
|
|
3
|
+
import * as i2 from "./components/checklist/checklist.component";
|
|
4
|
+
import * as i3 from "./components/add-checklist/add-checklist.component";
|
|
5
|
+
import * as i4 from "./components/traxpopup/traxpopup.component";
|
|
6
|
+
import * as i5 from "./components/checklist-configure/checklist-configure.component";
|
|
7
|
+
import * as i6 from "./components/gallery/gallery.component";
|
|
8
|
+
import * as i7 from "./components/reactive-select/reactive-select.component";
|
|
9
|
+
import * as i8 from "./components/dashboard/dashboard.component";
|
|
10
|
+
import * as i9 from "./components/dashboard-info/dashboard-info.component";
|
|
11
|
+
import * as i10 from "./components/flags/flags.component";
|
|
12
|
+
import * as i11 from "./components/flags-info/flags-info.component";
|
|
13
|
+
import * as i12 from "./components/flags-info/unattended-pie-chart/unattended-pie-chart.component";
|
|
14
|
+
import * as i13 from "./components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component";
|
|
15
|
+
import * as i14 from "./components/trax-store/trax-store.component";
|
|
16
|
+
import * as i15 from "./components/pagination/pagination.component";
|
|
17
|
+
import * as i16 from "./components/reports/reports.component";
|
|
18
|
+
import * as i17 from "./components/managechecklist/managechecklist.component";
|
|
19
|
+
import * as i18 from "@angular/common";
|
|
20
|
+
import * as i19 from "./tango-analyse-trax-routing.module";
|
|
21
|
+
import * as i20 from "tango-app-ui-shared";
|
|
22
|
+
import * as i21 from "@angular/forms";
|
|
23
|
+
import * as i22 from "@angular/cdk/drag-drop";
|
|
24
|
+
import * as i23 from "ngx-daterangepicker-material";
|
|
5
25
|
export declare class TangoAnalyseTraxModule {
|
|
6
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<TangoAnalyseTraxModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoAnalyseTraxModule, [typeof i1.TangoAnalyseTraxComponent], [typeof
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TangoAnalyseTraxModule, [typeof i1.TangoAnalyseTraxComponent, typeof i2.ChecklistComponent, typeof i3.AddChecklistComponent, typeof i4.TraxpopupComponent, typeof i5.ChecklistConfigureComponent, typeof i6.GalleryComponent, typeof i7.ReactiveSelectComponent, typeof i8.DashboardComponent, typeof i9.DashboardInfoComponent, typeof i7.ReactiveSelectComponent, typeof i10.FlagsComponent, typeof i11.FlagsInfoComponent, typeof i12.UnattendedPieChartComponent, typeof i13.MonthlyperformanceDatepickerComponent, typeof i14.TraxStoreComponent, typeof i15.PaginationComponent, typeof i16.ReportsComponent, typeof i17.ManagechecklistComponent], [typeof i18.CommonModule, typeof i19.TangoAnalyseTraxRoutingModule, typeof i20.CommonSharedModule, typeof i21.FormsModule, typeof i22.DragDropModule, typeof i21.ReactiveFormsModule, typeof i23.NgxDaterangepickerMd], never>;
|
|
8
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<TangoAnalyseTraxModule>;
|
|
9
29
|
}
|