tango-app-ui-analyse-trax 3.0.0-dev → 3.3.1-alpha-task.62

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.
Files changed (90) hide show
  1. package/esm2022/lib/components/action-centre/action-centre.component.mjs +303 -0
  2. package/esm2022/lib/components/activity-log/activity-log.component.mjs +94 -0
  3. package/esm2022/lib/components/add-checklist/add-checklist.component.mjs +1439 -0
  4. package/esm2022/lib/components/checklist/checklist.component.mjs +252 -0
  5. package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +1954 -0
  6. package/esm2022/lib/components/checklistlayout/checklistlayout.component.mjs +12 -0
  7. package/esm2022/lib/components/chip-dropdown/chip-dropdown.component.mjs +84 -0
  8. package/esm2022/lib/components/create-task/create-task.component.mjs +367 -0
  9. package/esm2022/lib/components/create-task/create-task.data.mjs +306 -0
  10. package/esm2022/lib/components/create-task/create-task.interface.mjs +2 -0
  11. package/esm2022/lib/components/custom-select/custom-select.component.mjs +236 -0
  12. package/esm2022/lib/components/dashboard/dashboard.component.mjs +597 -0
  13. package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +635 -0
  14. package/esm2022/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.mjs +172 -0
  15. package/esm2022/lib/components/dashboard-layout/dashboard-layout.component.mjs +12 -0
  16. package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +119 -0
  17. package/esm2022/lib/components/flag-layout/flag-layout.component.mjs +12 -0
  18. package/esm2022/lib/components/flags/flags.component.mjs +257 -0
  19. package/esm2022/lib/components/flags/flags.interface.mjs +2 -0
  20. package/esm2022/lib/components/flags-info/flags-info.component.mjs +388 -0
  21. package/esm2022/lib/components/flags-info/flags-info.interface.mjs +2 -0
  22. package/esm2022/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.mjs +71 -0
  23. package/esm2022/lib/components/gallery/gallery.component.mjs +1181 -0
  24. package/esm2022/lib/components/group-select/group-select.component.mjs +155 -0
  25. package/esm2022/lib/components/managechecklist/managechecklist.component.mjs +172 -0
  26. package/esm2022/lib/components/multi-date-datepicker/multi-date-datepicker.component.mjs +117 -0
  27. package/esm2022/lib/components/orders/orders.component.mjs +171 -0
  28. package/esm2022/lib/components/pagination/pagination.component.mjs +62 -0
  29. package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +105 -0
  30. package/esm2022/lib/components/reports/date-picker/date-picker.component.mjs +60 -0
  31. package/esm2022/lib/components/reports/reports.component.mjs +299 -0
  32. package/esm2022/lib/components/reports/reports.interface.mjs +2 -0
  33. package/esm2022/lib/components/tango-analyse-trax/tango-analyse-trax.component.mjs +27 -6
  34. package/esm2022/lib/components/task/task.component.mjs +271 -0
  35. package/esm2022/lib/components/task-configure/task-configure.component.mjs +504 -0
  36. package/esm2022/lib/components/task-configure/task-configure.interface.mjs +2 -0
  37. package/esm2022/lib/components/task-info/task-info.component.mjs +300 -0
  38. package/esm2022/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.mjs +203 -0
  39. package/esm2022/lib/components/task-layout/task-layout.component.mjs +12 -0
  40. package/esm2022/lib/components/trax-store/trax-store.component.mjs +153 -0
  41. package/esm2022/lib/components/traxpopup/traxpopup.component.mjs +67 -0
  42. package/esm2022/lib/services/trax.service.mjs +334 -0
  43. package/esm2022/lib/tango-analyse-trax-routing.module.mjs +124 -6
  44. package/esm2022/lib/tango-analyse-trax.module.mjs +144 -9
  45. package/fesm2022/tango-app-ui-analyse-trax.mjs +11412 -21
  46. package/fesm2022/tango-app-ui-analyse-trax.mjs.map +1 -1
  47. package/lib/components/action-centre/action-centre.component.d.ts +56 -0
  48. package/lib/components/activity-log/activity-log.component.d.ts +30 -0
  49. package/lib/components/add-checklist/add-checklist.component.d.ts +99 -0
  50. package/lib/components/checklist/checklist.component.d.ts +39 -0
  51. package/lib/components/checklist-configure/checklist-configure.component.d.ts +160 -0
  52. package/lib/components/checklistlayout/checklistlayout.component.d.ts +5 -0
  53. package/lib/components/chip-dropdown/chip-dropdown.component.d.ts +24 -0
  54. package/lib/components/create-task/create-task.component.d.ts +58 -0
  55. package/lib/components/create-task/create-task.data.d.ts +244 -0
  56. package/lib/components/create-task/create-task.interface.d.ts +147 -0
  57. package/lib/components/custom-select/custom-select.component.d.ts +35 -0
  58. package/lib/components/dashboard/dashboard.component.d.ts +75 -0
  59. package/lib/components/dashboard-info/dashboard-info.component.d.ts +102 -0
  60. package/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.d.ts +40 -0
  61. package/lib/components/dashboard-layout/dashboard-layout.component.d.ts +5 -0
  62. package/lib/components/export-gallery/export-gallery.component.d.ts +33 -0
  63. package/lib/components/flag-layout/flag-layout.component.d.ts +5 -0
  64. package/lib/components/flags/flags.component.d.ts +51 -0
  65. package/lib/components/flags/flags.interface.d.ts +64 -0
  66. package/lib/components/flags-info/flags-info.component.d.ts +62 -0
  67. package/lib/components/flags-info/flags-info.interface.d.ts +212 -0
  68. package/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.d.ts +13 -0
  69. package/lib/components/gallery/gallery.component.d.ts +125 -0
  70. package/lib/components/group-select/group-select.component.d.ts +33 -0
  71. package/lib/components/managechecklist/managechecklist.component.d.ts +32 -0
  72. package/lib/components/multi-date-datepicker/multi-date-datepicker.component.d.ts +27 -0
  73. package/lib/components/orders/orders.component.d.ts +38 -0
  74. package/lib/components/pagination/pagination.component.d.ts +16 -0
  75. package/lib/components/reactive-select/reactive-select.component.d.ts +32 -0
  76. package/lib/components/reports/date-picker/date-picker.component.d.ts +23 -0
  77. package/lib/components/reports/reports.component.d.ts +55 -0
  78. package/lib/components/reports/reports.interface.d.ts +46 -0
  79. package/lib/components/tango-analyse-trax/tango-analyse-trax.component.d.ts +10 -1
  80. package/lib/components/task/task.component.d.ts +59 -0
  81. package/lib/components/task-configure/task-configure.component.d.ts +69 -0
  82. package/lib/components/task-configure/task-configure.interface.d.ts +124 -0
  83. package/lib/components/task-info/task-info.component.d.ts +68 -0
  84. package/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.d.ts +60 -0
  85. package/lib/components/task-layout/task-layout.component.d.ts +5 -0
  86. package/lib/components/trax-store/trax-store.component.d.ts +44 -0
  87. package/lib/components/traxpopup/traxpopup.component.d.ts +23 -0
  88. package/lib/services/trax.service.d.ts +107 -0
  89. package/lib/tango-analyse-trax.module.d.ts +42 -3
  90. package/package.json +1 -1
@@ -0,0 +1,51 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { BehaviorSubject } from "rxjs";
3
+ import { GlobalStateService, PageInfoService } 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 { FormControl } from '@angular/forms';
8
+ import * as i0 from "@angular/core";
9
+ export declare class FlagsComponent implements OnInit, OnDestroy {
10
+ gs: GlobalStateService;
11
+ private changeDetector;
12
+ private traxService;
13
+ private router;
14
+ private pageInfo;
15
+ private destroy$;
16
+ itemsPerPage: number;
17
+ currentPage: number;
18
+ totalItems: number;
19
+ paginationSizes: number[];
20
+ pageSize: number;
21
+ sortColumName: string;
22
+ sortDirection: number;
23
+ headerData: HeaderFilter | null | undefined;
24
+ flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
25
+ flagsTableData: FlagsTableData[];
26
+ cardMetricsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
27
+ cardMetricsData: IFlagCards | null | undefined;
28
+ cardMetricsComparisonData: IFlagComparisonCards | null | undefined;
29
+ searchInput: FormControl;
30
+ filterInput: FormControl;
31
+ filterValues: {
32
+ label: string;
33
+ value: string;
34
+ }[];
35
+ dateComparisonType: 'daily' | 'weekly';
36
+ constructor(gs: GlobalStateService, changeDetector: ChangeDetectorRef, traxService: TraxService, router: Router, pageInfo: PageInfoService);
37
+ ngOnDestroy(): void;
38
+ ngOnInit(): void;
39
+ setPageData(): void;
40
+ getChecklistFlagMetrics(): void;
41
+ getChecklistFlagMetricsComparison(): void;
42
+ getFlagsTable(): void;
43
+ onFlagsTableExport(): void;
44
+ sortData(column: string): void;
45
+ onPageSizeChange(pageSize: any): void;
46
+ onPageChange(pageOffset: any): void;
47
+ viewInDetail(checklistId: string | undefined, type?: 'question' | 'time'): void;
48
+ dateComparisonValueChange(val: 'daily' | 'weekly'): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlagsComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlagsComponent, "lib-flags", never, {}, {}, never, never, false, never>;
51
+ }
@@ -0,0 +1,64 @@
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
+ assignedStoresAi: number;
36
+ flaggedStores: number;
37
+ flagCount: number;
38
+ complianceRate: number;
39
+ customQuestionFlagCount: number;
40
+ customTimeFlagCount: number;
41
+ }
42
+ interface DateRange {
43
+ startDate: string;
44
+ endDate: string;
45
+ }
46
+ interface Store {
47
+ storeId: string;
48
+ storeName: string;
49
+ checked: boolean;
50
+ }
51
+ interface Group {
52
+ city: string;
53
+ checked: boolean;
54
+ }
55
+ export interface HeaderFilter {
56
+ client: string;
57
+ clientName: string;
58
+ clients: string[];
59
+ store: null | string;
60
+ date: DateRange;
61
+ stores: Store[];
62
+ group: Group[];
63
+ }
64
+ export {};
@@ -0,0 +1,62 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { BehaviorSubject } from "rxjs";
4
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
5
+ import { FormControl } from '@angular/forms';
6
+ import { TraxService } from '../../services/trax.service';
7
+ import { Checklist, ChecklistFlagList, DetectionData, FlagCardTrends, FlagCardValues, HeaderFilter, StoreOpenCloseData } from './flags-info.interface';
8
+ import dayjs from "dayjs";
9
+ import { ToastService } from 'tango-app-ui-shared';
10
+ import * as i0 from "@angular/core";
11
+ export declare class FlagsInfoComponent implements OnDestroy, OnInit, OnDestroy {
12
+ private route;
13
+ gs: GlobalStateService;
14
+ private traxService;
15
+ private cd;
16
+ private router;
17
+ private toastService;
18
+ private pageInfo;
19
+ dayjs: typeof dayjs;
20
+ private destroy$;
21
+ itemsPerPage: number;
22
+ currentPage: number;
23
+ totalItems: number;
24
+ paginationSizes: number[];
25
+ pageSize: number;
26
+ sortColumName: string;
27
+ sortDirection: number;
28
+ headerData: HeaderFilter | null | undefined;
29
+ checklistSelectControl: FormControl;
30
+ searchInput: FormControl;
31
+ checkLists: Checklist[];
32
+ checkListsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
33
+ currentChecklist: Checklist | null | undefined;
34
+ checklistFlagList: ChecklistFlagList | null | undefined;
35
+ flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
36
+ flagCardValues: FlagCardValues | null | undefined;
37
+ flagsCardValuesState: BehaviorSubject<"initial" | "loading" | "loaded">;
38
+ flagCardTrends: FlagCardTrends | null | undefined;
39
+ unattendedSummaryChartNumber: number;
40
+ dateComparisonType: 'daily' | 'weekly';
41
+ customFlagType: 'question' | 'flag' | 'all';
42
+ constructor(route: ActivatedRoute, gs: GlobalStateService, traxService: TraxService, cd: ChangeDetectorRef, router: Router, toastService: ToastService, pageInfo: PageInfoService);
43
+ ngOnDestroy(): void;
44
+ ngOnInit(): void;
45
+ setPageData(): void;
46
+ getChecklists(): void;
47
+ getFlagsTable(): void;
48
+ exportTable(): void;
49
+ getCardValues(): void;
50
+ getCardTrends(): void;
51
+ sortData(column: string): void;
52
+ onPageSizeChange(pageSize: any): void;
53
+ onPageChange(pageOffset: any): void;
54
+ onBack(): void;
55
+ storeView(data: any): void;
56
+ onView(flagData: StoreOpenCloseData | DetectionData): void;
57
+ reInitiate(flagData: DetectionData): void;
58
+ onChecklistSelect(event: Checklist): void;
59
+ isToday(dateString: string): boolean;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlagsInfoComponent, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlagsInfoComponent, "lib-flags-info", never, {}, {}, never, never, false, never>;
62
+ }
@@ -0,0 +1,212 @@
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
+ export 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
+ export interface DetectionData {
24
+ date: string;
25
+ dateString: string;
26
+ storeName: string;
27
+ storeId: string;
28
+ storeSpocEmail: string;
29
+ detections: number;
30
+ checklistStatus: string;
31
+ questionFlagCount: number;
32
+ timeFlagCount: number;
33
+ reinitiateStatus?: boolean;
34
+ _id: string;
35
+ }
36
+ export interface ChecklistFlagList {
37
+ status_code: string;
38
+ totalCount: number;
39
+ storeopenandcloseData: StoreOpenCloseData[];
40
+ mobileusagedetectionData: DetectionData[];
41
+ uniformdetectionData: DetectionData[];
42
+ customerunattendedData: DetectionData[];
43
+ staffleftinthemiddleData: DetectionData[];
44
+ customData: DetectionData[];
45
+ }
46
+ export interface FlagCardValues {
47
+ status_code: string;
48
+ customCards: {
49
+ totalAssignedStores: {
50
+ count: number;
51
+ };
52
+ flagIncidents: {
53
+ count: number;
54
+ };
55
+ complianceRate: {
56
+ count: number;
57
+ };
58
+ };
59
+ storeopenandcloseCards: {
60
+ totalAssignedStores: {
61
+ count: number;
62
+ };
63
+ lateOpenStores: {
64
+ count: number;
65
+ };
66
+ earlyClosedStores: {
67
+ count: number;
68
+ };
69
+ complianceRate: {
70
+ rate: number;
71
+ };
72
+ };
73
+ mobileusagedetectionCards: {
74
+ totalAssignedStores: {
75
+ count: number;
76
+ };
77
+ flagIncidents: {
78
+ count: number;
79
+ };
80
+ complianceRate: {
81
+ rate: number;
82
+ };
83
+ };
84
+ uniformdetectionCards: {
85
+ totalAssignedStores: {
86
+ count: number;
87
+ };
88
+ flagIncidents: {
89
+ count: number;
90
+ };
91
+ complianceRate: {
92
+ rate: number;
93
+ };
94
+ };
95
+ customerunattendedCards: {
96
+ averageFootfall: {
97
+ count: number;
98
+ };
99
+ stafftoCustomerRatio: {
100
+ ratio: number;
101
+ };
102
+ attendedCustomers: {
103
+ count: number;
104
+ };
105
+ unattendedCustomers: {
106
+ count: number;
107
+ };
108
+ timeTakentoAssist: {
109
+ mins: number;
110
+ };
111
+ timeSpentwithCustomer: {
112
+ mins: number;
113
+ };
114
+ unattendedSummaryChart: {
115
+ chart1: {
116
+ category: string;
117
+ value: number;
118
+ }[];
119
+ chart2: {
120
+ category: string;
121
+ value: number;
122
+ }[];
123
+ };
124
+ };
125
+ staffleftinthemiddleCards: {
126
+ avgStaffPresent: {
127
+ count: number;
128
+ };
129
+ avgStaffleft: {
130
+ count: number;
131
+ };
132
+ avgStaffPresentInPeakHours: {
133
+ rate: number;
134
+ };
135
+ staffAvgPunctualityRate: {
136
+ rate: number;
137
+ };
138
+ staffAvgBreakHours: {
139
+ mins: number;
140
+ };
141
+ staffAvgProductiveHours: {
142
+ mins: number;
143
+ };
144
+ };
145
+ }
146
+ interface ComparisonData {
147
+ comparisonData: number;
148
+ ComparisonFlag: boolean;
149
+ }
150
+ export interface FlagCardTrends {
151
+ status_code: string;
152
+ customCards: {
153
+ totalAssignedStores: ComparisonData;
154
+ flagIncidents: ComparisonData;
155
+ complianceRate: ComparisonData;
156
+ };
157
+ storeopenandcloseCards: {
158
+ totalAssignedStores: ComparisonData;
159
+ lateOpenStores: ComparisonData;
160
+ earlyClosedStores: ComparisonData;
161
+ complianceRate: ComparisonData;
162
+ };
163
+ mobileusagedetectionCards: {
164
+ totalAssignedStores: ComparisonData;
165
+ flagIncidents: ComparisonData;
166
+ complianceRate: ComparisonData;
167
+ };
168
+ uniformdetectionCards: {
169
+ totalAssignedStores: ComparisonData;
170
+ flagIncidents: ComparisonData;
171
+ complianceRate: ComparisonData;
172
+ };
173
+ customerunattendedCards: {
174
+ averageFootfall: ComparisonData;
175
+ stafftoCustomerRatio: ComparisonData;
176
+ attendedCustomers: ComparisonData;
177
+ unattendedCustomers: ComparisonData;
178
+ timeTakentoAssist: ComparisonData;
179
+ timeSpentwithCustomer: ComparisonData;
180
+ };
181
+ staffleftinthemiddleCards: {
182
+ avgStaffPresent: ComparisonData;
183
+ avgStaffleft: ComparisonData;
184
+ avgStaffPresentInPeakHours: ComparisonData;
185
+ staffAvgPunctualityRate: ComparisonData;
186
+ staffAvgBreakHours: ComparisonData;
187
+ staffAvgProductiveHours: ComparisonData;
188
+ };
189
+ }
190
+ interface DateRange {
191
+ startDate: string;
192
+ endDate: string;
193
+ }
194
+ interface Store {
195
+ storeId: string;
196
+ storeName: string;
197
+ checked: boolean;
198
+ }
199
+ interface Group {
200
+ city: string;
201
+ checked: boolean;
202
+ }
203
+ export interface HeaderFilter {
204
+ client: string;
205
+ clientName: string;
206
+ clients: string[];
207
+ store: null | string;
208
+ date: DateRange;
209
+ stores: Store[];
210
+ group: Group[];
211
+ }
212
+ 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,125 @@
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, PageInfoService } from 'tango-app-ui-global';
6
+ import { TraxService } from '../../services/trax.service';
7
+ import { ActivatedRoute, Router } from '@angular/router';
8
+ import { ToastService } from 'tango-app-ui-shared';
9
+ import { Location } from '@angular/common';
10
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
11
+ import * as i0 from "@angular/core";
12
+ export declare class GalleryComponent implements OnInit, OnDestroy {
13
+ private fb;
14
+ private gs;
15
+ private traxService;
16
+ private cd;
17
+ private modalService;
18
+ private route;
19
+ private router;
20
+ private toastService;
21
+ private location;
22
+ private pageInfo;
23
+ dayjs: typeof dayjs;
24
+ selectedDateRange: any;
25
+ isCustomDate: (m: dayjs.Dayjs) => false | "invalid-date";
26
+ galleryForm: FormGroup;
27
+ type: any;
28
+ checklists: any;
29
+ answerType: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ headerFilters: any;
34
+ storeList: any[];
35
+ private destroy$;
36
+ checklistData: any;
37
+ stores: any;
38
+ groups: any;
39
+ items: any;
40
+ paginatedItems: any;
41
+ itemsPerPage: number;
42
+ currentPage: number;
43
+ totalItems: number;
44
+ viewChecklistsData: any;
45
+ loading: boolean;
46
+ noData: boolean;
47
+ viewloading: boolean;
48
+ viewnoData: boolean;
49
+ offset: any;
50
+ limit: any;
51
+ paginationSizes: number[];
52
+ totalCount: any;
53
+ viewChecklistsoptions: any;
54
+ mobileusageData: any;
55
+ mobileusageDataList: any;
56
+ selectAll: any;
57
+ storeOpencloseView: any;
58
+ queryParams: any;
59
+ customerunattendedData: any;
60
+ sectionName: any;
61
+ questionName: any;
62
+ clientData: any;
63
+ checklistName: any;
64
+ groupList: any;
65
+ environment: any;
66
+ showflag: boolean;
67
+ selectedSection: any;
68
+ previewType: any;
69
+ checkListDescription: any;
70
+ constructor(fb: FormBuilder, gs: GlobalStateService, traxService: TraxService, cd: ChangeDetectorRef, modalService: NgbModal, route: ActivatedRoute, router: Router, toastService: ToastService, location: Location, pageInfo: PageInfoService);
71
+ ngOnDestroy(): void;
72
+ ngOnInit(): void;
73
+ setPageData(): void;
74
+ getAllGroups(): void;
75
+ clientDetails(): void;
76
+ flagChanged(event: any): void;
77
+ onchecklistreset(): void;
78
+ resetValidation(): void;
79
+ onStartDateChange(event: any): void;
80
+ selectAllStore(event: any): void;
81
+ updateCheck(event: any, storedata: any): void;
82
+ createForm(): void;
83
+ datechange(event: TimePeriod): void;
84
+ getAllStores(): void;
85
+ getAllCheckLists(type: any): void;
86
+ removeQueryParams(): void;
87
+ ongroupSelect(event: any): void;
88
+ onStoreSelect(event: any): void;
89
+ storeListdropdown(): void;
90
+ select: string;
91
+ onSubmit(): void;
92
+ show: number;
93
+ accordian(index: any): void;
94
+ storeOpencloselist(type: any): void;
95
+ storeOpencloseview(): void;
96
+ checklistNamechange(event: any, type: any): void;
97
+ customerunattendedlist(type: any): void;
98
+ selectedExport: boolean;
99
+ selectedQuestion(event: any, section: any, Question: any): void;
100
+ getmobileUsageDatalist(type: any): void;
101
+ onreset(): void;
102
+ onview(): void;
103
+ getcustomerunattendedview(): void;
104
+ getmobileUsageDataview(): void;
105
+ selectsinglequestion(): void;
106
+ getChecklistQA(type: any): void;
107
+ viewChecklists(sectionName: any, questionName: any): void;
108
+ exportXLSX(type: any): void;
109
+ taskCreate(): void;
110
+ redo(): void;
111
+ showsidenav: boolean;
112
+ sidenav(): void;
113
+ onPageChange(page: number): void;
114
+ onPageChangeview(pageOffset: number): void;
115
+ onPageSizeChange(pageSize: number): void;
116
+ onClick(event: MouseEvent): void;
117
+ exportShow: boolean;
118
+ exportLabel: string;
119
+ exportDet(event: Event): void;
120
+ questionscount(data: any): number;
121
+ setExportAsPPT(type: any, fileType: any): void;
122
+ reset(): void;
123
+ static ɵfac: i0.ɵɵFactoryDeclaration<GalleryComponent, never>;
124
+ static ɵcmp: i0.ɵɵComponentDeclaration<GalleryComponent, "lib-gallery", never, {}, {}, never, never, false, never>;
125
+ }
@@ -0,0 +1,33 @@
1
+ import { ChangeDetectorRef, EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { TraxService } from '../../services/trax.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GroupSelectComponent {
5
+ private cd;
6
+ private authService;
7
+ onClick(event: MouseEvent): void;
8
+ items: any;
9
+ searchField: string;
10
+ multi: boolean;
11
+ idField: string;
12
+ selectedValues: any;
13
+ disabled: boolean | undefined;
14
+ label: string;
15
+ selected: EventEmitter<any>;
16
+ filteredValues: any;
17
+ showDropdown: boolean;
18
+ searchValue: string;
19
+ instanceId: any;
20
+ constructor(cd: ChangeDetectorRef, authService: TraxService);
21
+ ngOnInit(): void;
22
+ ngOnChanges(changes: SimpleChanges): void;
23
+ initializeItems(): void;
24
+ updateSelectedValues(): void;
25
+ openDropdown(event: any): void;
26
+ onInput(event: any): void;
27
+ onSelect(event: any, item: any): void;
28
+ onSelectAll(event: any): void;
29
+ emitSelectedValues(values: any[]): void;
30
+ checkIfAllSelected(): any;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<GroupSelectComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<GroupSelectComponent, "lib-group-select", never, { "items": { "alias": "items"; "required": false; }; "searchField": { "alias": "searchField"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "selected": "selected"; }, never, never, false, never>;
33
+ }
@@ -0,0 +1,32 @@
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 { TraxService } from '../../services/trax.service';
5
+ import { ToastService } from 'tango-app-ui-shared';
6
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ManagechecklistComponent implements OnInit, OnDestroy {
9
+ private route;
10
+ private router;
11
+ private gs;
12
+ private sopService;
13
+ private toast;
14
+ private dialog;
15
+ private cd;
16
+ type: any;
17
+ clientId: any;
18
+ checklistDetails: any;
19
+ storeCount: any;
20
+ loading: boolean;
21
+ private detach;
22
+ constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, sopService: TraxService, toast: ToastService, dialog: NgbModal, cd: ChangeDetectorRef);
23
+ ngOnInit(): void;
24
+ getAiDetails(): void;
25
+ getPredefinedDetails(): void;
26
+ ngOnDestroy(): void;
27
+ redirectUrl(type: any): void;
28
+ redirectChecklist(data: any): void;
29
+ publish(event: any, data: any): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManagechecklistComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManagechecklistComponent, "lib-managechecklist", never, {}, {}, never, never, false, never>;
32
+ }
@@ -0,0 +1,27 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import dayjs from 'dayjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class MultiDateDatepickerComponent implements OnInit {
5
+ dayjs: typeof dayjs;
6
+ startDate: any;
7
+ endDate: any;
8
+ predefinedDates: any;
9
+ selectedDates: EventEmitter<string[]>;
10
+ currentYear: number;
11
+ currentMonth: number;
12
+ dayNames: string[];
13
+ monthNames: string[];
14
+ ngOnInit(): void;
15
+ getDaysInMonth(): number[];
16
+ getEmptyDays(): number[];
17
+ isPredefined(day: any): boolean;
18
+ previousMonth(): void;
19
+ nextMonth(): void;
20
+ addPredefinedDays(day: any): void;
21
+ validateDates(day: any): boolean;
22
+ showPrev(): boolean;
23
+ showNext(): boolean;
24
+ applyDate(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultiDateDatepickerComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiDateDatepickerComponent, "lib-multi-date-datepicker", never, { "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "predefinedDates": { "alias": "predefinedDates"; "required": false; }; }, { "selectedDates": "selectedDates"; }, never, never, false, never>;
27
+ }
@@ -0,0 +1,38 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TraxService } from '../../services/trax.service';
3
+ import { BehaviorSubject } from "rxjs";
4
+ import dayjs from "dayjs";
5
+ import { ToastService } from 'tango-app-ui-shared';
6
+ import { PageInfoService } from 'tango-app-ui-global';
7
+ import * as i0 from "@angular/core";
8
+ export declare class OrdersComponent implements OnInit {
9
+ private sopService;
10
+ private toastService;
11
+ private pageInfo;
12
+ dayjs: typeof dayjs;
13
+ displayedColumns: string[];
14
+ date: string;
15
+ dataSource: any[];
16
+ storeCodes: string;
17
+ isAuthorized: 'AUTHORIZED' | 'UNAUTHORIZED';
18
+ isCustomDate: (m: dayjs.Dayjs) => false | "invalid-date";
19
+ selectedDateRange: any;
20
+ tableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
21
+ constructor(sopService: TraxService, toastService: ToastService, pageInfo: PageInfoService);
22
+ ngOnInit(): void;
23
+ setPageData(): void;
24
+ getOrdersByDate(): void;
25
+ onDateChange(event: any): void;
26
+ updateOrder(): void;
27
+ deleteOrder(id: string): void;
28
+ sortTableData(event: any): void;
29
+ sortObjectArray(dataArray: any[], sortConfig: {
30
+ active: string;
31
+ direction: 'asc' | 'desc' | '';
32
+ }): any[];
33
+ exportAsExcel(): void;
34
+ removeExcludedKeys(dataArray: any[], excludeKeys: string[]): any[];
35
+ replaceUnderscoreInKeys(dataArray: any[]): any[];
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrdersComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<OrdersComponent, "lib-orders", never, {}, {}, never, never, false, never>;
38
+ }
@@ -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
+ }