tango-app-ui-analyse-trax 3.0.0-dev → 3.3.1-alpha-task.63
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/action-centre/action-centre.component.mjs +303 -0
- package/esm2022/lib/components/activity-log/activity-log.component.mjs +94 -0
- package/esm2022/lib/components/add-checklist/add-checklist.component.mjs +1439 -0
- package/esm2022/lib/components/add-task/add-task.component.mjs +85 -0
- package/esm2022/lib/components/checklist/checklist.component.mjs +252 -0
- package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +1954 -0
- package/esm2022/lib/components/checklistlayout/checklistlayout.component.mjs +12 -0
- package/esm2022/lib/components/chip-dropdown/chip-dropdown.component.mjs +84 -0
- package/esm2022/lib/components/create-task/create-task.component.mjs +367 -0
- package/esm2022/lib/components/create-task/create-task.data.mjs +306 -0
- package/esm2022/lib/components/create-task/create-task.interface.mjs +2 -0
- package/esm2022/lib/components/custom-select/custom-select.component.mjs +236 -0
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +600 -0
- package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +635 -0
- package/esm2022/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.mjs +172 -0
- package/esm2022/lib/components/dashboard-layout/dashboard-layout.component.mjs +12 -0
- package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +119 -0
- package/esm2022/lib/components/flag-layout/flag-layout.component.mjs +12 -0
- package/esm2022/lib/components/flags/flags.component.mjs +257 -0
- package/esm2022/lib/components/flags/flags.interface.mjs +2 -0
- package/esm2022/lib/components/flags-info/flags-info.component.mjs +388 -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 +1202 -0
- package/esm2022/lib/components/group-select/group-select.component.mjs +155 -0
- package/esm2022/lib/components/managechecklist/managechecklist.component.mjs +172 -0
- package/esm2022/lib/components/multi-date-datepicker/multi-date-datepicker.component.mjs +117 -0
- package/esm2022/lib/components/orders/orders.component.mjs +171 -0
- package/esm2022/lib/components/pagination/pagination.component.mjs +62 -0
- package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +105 -0
- package/esm2022/lib/components/reports/date-picker/date-picker.component.mjs +60 -0
- package/esm2022/lib/components/reports/reports.component.mjs +299 -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/task/task.component.mjs +271 -0
- package/esm2022/lib/components/task-configure/task-configure.component.mjs +504 -0
- package/esm2022/lib/components/task-configure/task-configure.interface.mjs +2 -0
- package/esm2022/lib/components/task-info/task-info.component.mjs +300 -0
- package/esm2022/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.mjs +203 -0
- package/esm2022/lib/components/task-layout/task-layout.component.mjs +12 -0
- package/esm2022/lib/components/trax-store/trax-store.component.mjs +153 -0
- package/esm2022/lib/components/traxpopup/traxpopup.component.mjs +67 -0
- package/esm2022/lib/services/trax.service.mjs +334 -0
- package/esm2022/lib/tango-analyse-trax-routing.module.mjs +124 -6
- package/esm2022/lib/tango-analyse-trax.module.mjs +147 -9
- package/fesm2022/tango-app-ui-analyse-trax.mjs +11512 -21
- package/fesm2022/tango-app-ui-analyse-trax.mjs.map +1 -1
- package/lib/components/action-centre/action-centre.component.d.ts +56 -0
- package/lib/components/activity-log/activity-log.component.d.ts +30 -0
- package/lib/components/add-checklist/add-checklist.component.d.ts +99 -0
- package/lib/components/add-task/add-task.component.d.ts +38 -0
- package/lib/components/checklist/checklist.component.d.ts +39 -0
- package/lib/components/checklist-configure/checklist-configure.component.d.ts +160 -0
- package/lib/components/checklistlayout/checklistlayout.component.d.ts +5 -0
- package/lib/components/chip-dropdown/chip-dropdown.component.d.ts +24 -0
- package/lib/components/create-task/create-task.component.d.ts +58 -0
- package/lib/components/create-task/create-task.data.d.ts +244 -0
- package/lib/components/create-task/create-task.interface.d.ts +147 -0
- package/lib/components/custom-select/custom-select.component.d.ts +35 -0
- package/lib/components/dashboard/dashboard.component.d.ts +77 -0
- package/lib/components/dashboard-info/dashboard-info.component.d.ts +102 -0
- package/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.d.ts +40 -0
- package/lib/components/dashboard-layout/dashboard-layout.component.d.ts +5 -0
- package/lib/components/export-gallery/export-gallery.component.d.ts +33 -0
- package/lib/components/flag-layout/flag-layout.component.d.ts +5 -0
- package/lib/components/flags/flags.component.d.ts +51 -0
- package/lib/components/flags/flags.interface.d.ts +64 -0
- package/lib/components/flags-info/flags-info.component.d.ts +62 -0
- package/lib/components/flags-info/flags-info.interface.d.ts +212 -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 +126 -0
- package/lib/components/group-select/group-select.component.d.ts +33 -0
- package/lib/components/managechecklist/managechecklist.component.d.ts +32 -0
- package/lib/components/multi-date-datepicker/multi-date-datepicker.component.d.ts +27 -0
- package/lib/components/orders/orders.component.d.ts +38 -0
- package/lib/components/pagination/pagination.component.d.ts +16 -0
- package/lib/components/reactive-select/reactive-select.component.d.ts +32 -0
- package/lib/components/reports/date-picker/date-picker.component.d.ts +23 -0
- package/lib/components/reports/reports.component.d.ts +55 -0
- package/lib/components/reports/reports.interface.d.ts +46 -0
- package/lib/components/tango-analyse-trax/tango-analyse-trax.component.d.ts +10 -1
- package/lib/components/task/task.component.d.ts +59 -0
- package/lib/components/task-configure/task-configure.component.d.ts +69 -0
- package/lib/components/task-configure/task-configure.interface.d.ts +124 -0
- package/lib/components/task-info/task-info.component.d.ts +68 -0
- package/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.d.ts +60 -0
- package/lib/components/task-layout/task-layout.component.d.ts +5 -0
- package/lib/components/trax-store/trax-store.component.d.ts +44 -0
- package/lib/components/traxpopup/traxpopup.component.d.ts +23 -0
- package/lib/services/trax.service.d.ts +107 -0
- package/lib/tango-analyse-trax.module.d.ts +43 -3
- package/package.json +1 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
export declare const descriptive_question_template: {
|
|
2
|
+
qname: string;
|
|
3
|
+
answerType: string;
|
|
4
|
+
runAI: boolean;
|
|
5
|
+
runAIDescription: string;
|
|
6
|
+
allowUploadfromGallery: boolean;
|
|
7
|
+
linkType: boolean;
|
|
8
|
+
questionReferenceImage: string;
|
|
9
|
+
descriptivetype: string;
|
|
10
|
+
answers: {
|
|
11
|
+
answer: string;
|
|
12
|
+
sopFlag: boolean;
|
|
13
|
+
validation: boolean;
|
|
14
|
+
validationType: string;
|
|
15
|
+
validationAnswer: string;
|
|
16
|
+
referenceImage: string;
|
|
17
|
+
showLinked: boolean;
|
|
18
|
+
linkedQuestion: number;
|
|
19
|
+
nestedQuestion: never[];
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
export declare const yesorno_question_template: {
|
|
23
|
+
qname: string;
|
|
24
|
+
answerType: string;
|
|
25
|
+
runAI: boolean;
|
|
26
|
+
runAIDescription: string;
|
|
27
|
+
allowUploadfromGallery: boolean;
|
|
28
|
+
linkType: boolean;
|
|
29
|
+
questionReferenceImage: string;
|
|
30
|
+
answers: {
|
|
31
|
+
answer: string;
|
|
32
|
+
sopFlag: boolean;
|
|
33
|
+
validation: boolean;
|
|
34
|
+
validationType: string;
|
|
35
|
+
linkedQuestion: number;
|
|
36
|
+
showLinked: boolean;
|
|
37
|
+
referenceImage: string;
|
|
38
|
+
runAI: boolean;
|
|
39
|
+
allowUploadfromGallery: boolean;
|
|
40
|
+
descriptivetype: string;
|
|
41
|
+
nestedQuestion: never[];
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
export declare const multiplechoicesingle_question_template: {
|
|
45
|
+
qname: string;
|
|
46
|
+
answerType: string;
|
|
47
|
+
runAI: boolean;
|
|
48
|
+
runAIDescription: string;
|
|
49
|
+
allowUploadfromGallery: boolean;
|
|
50
|
+
linkType: boolean;
|
|
51
|
+
questionReferenceImage: string;
|
|
52
|
+
answers: {
|
|
53
|
+
answer: string;
|
|
54
|
+
sopFlag: boolean;
|
|
55
|
+
validation: boolean;
|
|
56
|
+
validationType: string;
|
|
57
|
+
linkedQuestion: number;
|
|
58
|
+
showLinked: boolean;
|
|
59
|
+
referenceImage: string;
|
|
60
|
+
runAI: boolean;
|
|
61
|
+
allowUploadfromGallery: boolean;
|
|
62
|
+
descriptivetype: string;
|
|
63
|
+
nestedQuestion: never[];
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
66
|
+
export declare const multiplechoice_answer_template: {
|
|
67
|
+
answer: string;
|
|
68
|
+
sopFlag: boolean;
|
|
69
|
+
validation: boolean;
|
|
70
|
+
validationType: string;
|
|
71
|
+
referenceImage: string;
|
|
72
|
+
runAI: boolean;
|
|
73
|
+
allowUploadfromGallery: boolean;
|
|
74
|
+
descriptivetype: string;
|
|
75
|
+
showLinked: boolean;
|
|
76
|
+
linkedQuestion: number;
|
|
77
|
+
nestedQuestion: never[];
|
|
78
|
+
};
|
|
79
|
+
export declare const multiplechoicemultiple_question_template: {
|
|
80
|
+
qname: string;
|
|
81
|
+
answerType: string;
|
|
82
|
+
runAI: boolean;
|
|
83
|
+
runAIDescription: string;
|
|
84
|
+
allowUploadfromGallery: boolean;
|
|
85
|
+
linkType: boolean;
|
|
86
|
+
questionReferenceImage: string;
|
|
87
|
+
answers: {
|
|
88
|
+
answer: string;
|
|
89
|
+
sopFlag: boolean;
|
|
90
|
+
validation: boolean;
|
|
91
|
+
validationType: string;
|
|
92
|
+
referenceImage: string;
|
|
93
|
+
runAI: boolean;
|
|
94
|
+
allowUploadfromGallery: boolean;
|
|
95
|
+
descriptivetype: string;
|
|
96
|
+
showLinked: boolean;
|
|
97
|
+
linkedQuestion: number;
|
|
98
|
+
nestedQuestion: never[];
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
export declare const descriptiveImage_question_template: {
|
|
102
|
+
qname: string;
|
|
103
|
+
answerType: string;
|
|
104
|
+
runAI: boolean;
|
|
105
|
+
runAIDescription: string;
|
|
106
|
+
allowUploadfromGallery: boolean;
|
|
107
|
+
linkType: boolean;
|
|
108
|
+
questionReferenceImage: string;
|
|
109
|
+
answers: {
|
|
110
|
+
answer: string;
|
|
111
|
+
sopFlag: boolean;
|
|
112
|
+
validation: boolean;
|
|
113
|
+
validationType: string;
|
|
114
|
+
validationAnswer: string;
|
|
115
|
+
referenceImage: string;
|
|
116
|
+
showLinked: boolean;
|
|
117
|
+
linkedQuestion: number;
|
|
118
|
+
nestedQuestion: never[];
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
121
|
+
export declare const image_question_template: {
|
|
122
|
+
qname: string;
|
|
123
|
+
answerType: string;
|
|
124
|
+
runAI: boolean;
|
|
125
|
+
runAIDescription: string;
|
|
126
|
+
allowUploadfromGallery: boolean;
|
|
127
|
+
linkType: boolean;
|
|
128
|
+
questionReferenceImage: string;
|
|
129
|
+
answers: {
|
|
130
|
+
answer: string;
|
|
131
|
+
sopFlag: boolean;
|
|
132
|
+
validation: boolean;
|
|
133
|
+
validationType: string;
|
|
134
|
+
validationAnswer: string;
|
|
135
|
+
referenceImage: string;
|
|
136
|
+
showLinked: boolean;
|
|
137
|
+
linkedQuestion: number;
|
|
138
|
+
nestedQuestion: never[];
|
|
139
|
+
}[];
|
|
140
|
+
};
|
|
141
|
+
export declare const video_question_template: {
|
|
142
|
+
qname: string;
|
|
143
|
+
answerType: string;
|
|
144
|
+
runAI: boolean;
|
|
145
|
+
runAIDescription: string;
|
|
146
|
+
allowUploadfromGallery: boolean;
|
|
147
|
+
linkType: boolean;
|
|
148
|
+
questionReferenceImage: string;
|
|
149
|
+
answers: {
|
|
150
|
+
answer: string;
|
|
151
|
+
sopFlag: boolean;
|
|
152
|
+
validation: boolean;
|
|
153
|
+
validationType: string;
|
|
154
|
+
validationAnswer: string;
|
|
155
|
+
referenceImage: string;
|
|
156
|
+
showLinked: boolean;
|
|
157
|
+
linkedQuestion: number;
|
|
158
|
+
nestedQuestion: never[];
|
|
159
|
+
}[];
|
|
160
|
+
};
|
|
161
|
+
export declare const multipleImage_question_template: {
|
|
162
|
+
qname: string;
|
|
163
|
+
answerType: string;
|
|
164
|
+
runAI: boolean;
|
|
165
|
+
runAIDescription: string;
|
|
166
|
+
allowUploadfromGallery: boolean;
|
|
167
|
+
linkType: boolean;
|
|
168
|
+
questionReferenceImage: string;
|
|
169
|
+
descriptivetype: string;
|
|
170
|
+
answers: {
|
|
171
|
+
answer: string;
|
|
172
|
+
sopFlag: boolean;
|
|
173
|
+
validation: boolean;
|
|
174
|
+
validationType: string;
|
|
175
|
+
validationAnswer: string;
|
|
176
|
+
referenceImage: string;
|
|
177
|
+
showLinked: boolean;
|
|
178
|
+
linkedQuestion: number;
|
|
179
|
+
descriptivetype: string;
|
|
180
|
+
nestedQuestion: never[];
|
|
181
|
+
}[];
|
|
182
|
+
};
|
|
183
|
+
export declare const date_question_template: {
|
|
184
|
+
qname: string;
|
|
185
|
+
answerType: string;
|
|
186
|
+
runAI: boolean;
|
|
187
|
+
runAIDescription: string;
|
|
188
|
+
allowUploadfromGallery: boolean;
|
|
189
|
+
linkType: boolean;
|
|
190
|
+
questionReferenceImage: string;
|
|
191
|
+
answers: {
|
|
192
|
+
answer: string;
|
|
193
|
+
sopFlag: boolean;
|
|
194
|
+
validation: boolean;
|
|
195
|
+
validationType: string;
|
|
196
|
+
validationAnswer: string;
|
|
197
|
+
referenceImage: string;
|
|
198
|
+
showLinked: boolean;
|
|
199
|
+
linkedQuestion: number;
|
|
200
|
+
nestedQuestion: never[];
|
|
201
|
+
}[];
|
|
202
|
+
};
|
|
203
|
+
export declare const linearscale_question_template: {
|
|
204
|
+
qname: string;
|
|
205
|
+
answerType: string;
|
|
206
|
+
runAI: boolean;
|
|
207
|
+
runAIDescription: string;
|
|
208
|
+
allowUploadfromGallery: boolean;
|
|
209
|
+
linkType: boolean;
|
|
210
|
+
questionReferenceImage: string;
|
|
211
|
+
answers: {
|
|
212
|
+
answer: string;
|
|
213
|
+
sopFlag: boolean;
|
|
214
|
+
validation: boolean;
|
|
215
|
+
validationType: string;
|
|
216
|
+
validationAnswer: string;
|
|
217
|
+
referenceImage: string;
|
|
218
|
+
showLinked: boolean;
|
|
219
|
+
linkedQuestion: number;
|
|
220
|
+
rangeStart: number;
|
|
221
|
+
rangeEnd: number;
|
|
222
|
+
nestedQuestion: never[];
|
|
223
|
+
}[];
|
|
224
|
+
};
|
|
225
|
+
export declare const time_question_template: {
|
|
226
|
+
qname: string;
|
|
227
|
+
answerType: string;
|
|
228
|
+
runAI: boolean;
|
|
229
|
+
runAIDescription: string;
|
|
230
|
+
allowUploadfromGallery: boolean;
|
|
231
|
+
linkType: boolean;
|
|
232
|
+
questionReferenceImage: string;
|
|
233
|
+
answers: {
|
|
234
|
+
answer: string;
|
|
235
|
+
sopFlag: boolean;
|
|
236
|
+
validation: boolean;
|
|
237
|
+
validationType: string;
|
|
238
|
+
validationAnswer: string;
|
|
239
|
+
referenceImage: string;
|
|
240
|
+
showLinked: boolean;
|
|
241
|
+
linkedQuestion: number;
|
|
242
|
+
nestedQuestion: never[];
|
|
243
|
+
}[];
|
|
244
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { FormGroup, FormArray, FormControl } from '@angular/forms';
|
|
2
|
+
export type AnswerType = 'descriptive' | 'yes/no' | 'multiplechoicesingle' | 'multiplechoicemultiple' | 'descriptiveImage' | 'image' | 'video' | 'multipleImage' | 'date' | 'linearscale' | 'time';
|
|
3
|
+
export type DescriptiveType = 'text' | 'number' | '';
|
|
4
|
+
export type ValidationType = 'Capture Image' | 'Descriptive Answer' | 'Capture Video' | '';
|
|
5
|
+
export interface ITask {
|
|
6
|
+
alert: {
|
|
7
|
+
usageExceeds: any | null;
|
|
8
|
+
alertsTo: any[];
|
|
9
|
+
};
|
|
10
|
+
_id: string;
|
|
11
|
+
type: string;
|
|
12
|
+
checkListNumber: number;
|
|
13
|
+
checkListName: string;
|
|
14
|
+
checkListDescription: string;
|
|
15
|
+
createdBy: string;
|
|
16
|
+
createdByName: string;
|
|
17
|
+
publish: boolean;
|
|
18
|
+
schedule: string;
|
|
19
|
+
scheduleRepeatedDay: string[];
|
|
20
|
+
scheduleStartTime: string;
|
|
21
|
+
scheduleEndTime: string;
|
|
22
|
+
configStartDate: string | null;
|
|
23
|
+
configEndDate: string | null;
|
|
24
|
+
specificDate: string[];
|
|
25
|
+
scheduleWeekDays: string[];
|
|
26
|
+
scheduleRepeatedMonthSetup: string;
|
|
27
|
+
scheduleRepeatedMonthDate: string;
|
|
28
|
+
allowedOverTime: boolean;
|
|
29
|
+
allowedStoreLocation: boolean;
|
|
30
|
+
detectionArea: any[];
|
|
31
|
+
client_id: string;
|
|
32
|
+
questionCount: number;
|
|
33
|
+
storeCount: number;
|
|
34
|
+
checkListType: string;
|
|
35
|
+
isdeleted: boolean;
|
|
36
|
+
markasread: boolean;
|
|
37
|
+
allowedMultiSubmit: boolean;
|
|
38
|
+
allowOnce: boolean;
|
|
39
|
+
scheduleRepeatedMonthWeek: string;
|
|
40
|
+
scheduleRepeatedType: string;
|
|
41
|
+
scheduleDate: string | null;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
locationCount: number;
|
|
45
|
+
publishDate: string;
|
|
46
|
+
scheduleEndTimeISO: string;
|
|
47
|
+
scheduleStartTimeISO: string;
|
|
48
|
+
assignedUsers: any[];
|
|
49
|
+
removedUsers: any[];
|
|
50
|
+
sections: Section[];
|
|
51
|
+
}
|
|
52
|
+
export interface Section {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
questions: Question[];
|
|
56
|
+
}
|
|
57
|
+
export interface Question {
|
|
58
|
+
qno?: number;
|
|
59
|
+
qname: string;
|
|
60
|
+
answerType: AnswerType;
|
|
61
|
+
runAI: boolean;
|
|
62
|
+
runAIDescription: string;
|
|
63
|
+
allowUploadfromGallery: boolean;
|
|
64
|
+
linkType: boolean;
|
|
65
|
+
questionReferenceImage: string;
|
|
66
|
+
answers: Answer[];
|
|
67
|
+
descriptivetype?: DescriptiveType;
|
|
68
|
+
}
|
|
69
|
+
export interface Answer {
|
|
70
|
+
answer: string;
|
|
71
|
+
answeroptionNumber?: number;
|
|
72
|
+
sopFlag: boolean;
|
|
73
|
+
validation: boolean;
|
|
74
|
+
validationType: ValidationType;
|
|
75
|
+
referenceImage: string;
|
|
76
|
+
showLinked: boolean;
|
|
77
|
+
linkedQuestion: number;
|
|
78
|
+
nestedQuestion: any[];
|
|
79
|
+
validationAnswer?: string;
|
|
80
|
+
allowUploadfromGallery?: boolean;
|
|
81
|
+
runAI?: boolean;
|
|
82
|
+
rangeStart?: number;
|
|
83
|
+
rangeEnd?: number;
|
|
84
|
+
descriptivetype?: DescriptiveType;
|
|
85
|
+
}
|
|
86
|
+
export interface TaskForm {
|
|
87
|
+
checklistName: FormControl<string | null>;
|
|
88
|
+
checklistDescription: FormControl<string | null>;
|
|
89
|
+
sections: FormArray<FormGroup<SectionForm>>;
|
|
90
|
+
}
|
|
91
|
+
export interface SectionForm {
|
|
92
|
+
id: FormControl<string | null>;
|
|
93
|
+
name: FormControl<string | null>;
|
|
94
|
+
questions: FormArray<FormGroup<QuestionForm>>;
|
|
95
|
+
}
|
|
96
|
+
export interface QuestionForm {
|
|
97
|
+
qno: FormControl<number | null>;
|
|
98
|
+
qname: FormControl<string | null>;
|
|
99
|
+
answerType: FormControl<AnswerType | null>;
|
|
100
|
+
runAI: FormControl<boolean | null>;
|
|
101
|
+
runAIDescription: FormControl<string | null>;
|
|
102
|
+
allowUploadfromGallery: FormControl<boolean | null>;
|
|
103
|
+
linkType: FormControl<boolean | null>;
|
|
104
|
+
questionReferenceImage: FormControl<string | null>;
|
|
105
|
+
descriptivetype?: FormControl<DescriptiveType | null>;
|
|
106
|
+
answers: FormArray<FormGroup<AnswerForm>>;
|
|
107
|
+
}
|
|
108
|
+
export interface AnswerForm {
|
|
109
|
+
answer: FormControl<string | null>;
|
|
110
|
+
answeroptionNumber: FormControl<number | null>;
|
|
111
|
+
sopFlag: FormControl<boolean | null>;
|
|
112
|
+
validation: FormControl<boolean | null>;
|
|
113
|
+
validationType: FormControl<ValidationType | null>;
|
|
114
|
+
referenceImage: FormControl<string | null>;
|
|
115
|
+
showLinked: FormControl<boolean | null>;
|
|
116
|
+
linkedQuestion: FormControl<number | null>;
|
|
117
|
+
nestedQuestion: FormControl<any | null>;
|
|
118
|
+
validationAnswer?: FormControl<string | null>;
|
|
119
|
+
descriptivetype?: FormControl<DescriptiveType | null>;
|
|
120
|
+
allowUploadfromGallery?: FormControl<boolean | null>;
|
|
121
|
+
runAI?: FormControl<boolean | null>;
|
|
122
|
+
rangeStart?: FormControl<number | null>;
|
|
123
|
+
rangeEnd?: FormControl<number | null>;
|
|
124
|
+
}
|
|
125
|
+
interface DateRange {
|
|
126
|
+
startDate: string;
|
|
127
|
+
endDate: string;
|
|
128
|
+
}
|
|
129
|
+
interface Store {
|
|
130
|
+
storeId: string;
|
|
131
|
+
storeName: string;
|
|
132
|
+
checked: boolean;
|
|
133
|
+
}
|
|
134
|
+
interface Group {
|
|
135
|
+
city: string;
|
|
136
|
+
checked: boolean;
|
|
137
|
+
}
|
|
138
|
+
export interface HeaderFilter {
|
|
139
|
+
client: string;
|
|
140
|
+
clientName: string;
|
|
141
|
+
clients: string[];
|
|
142
|
+
store: null | string;
|
|
143
|
+
date: DateRange;
|
|
144
|
+
stores: Store[];
|
|
145
|
+
group: Group[];
|
|
146
|
+
}
|
|
147
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { TraxService } from '../../services/trax.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CustomSelectComponent implements OnChanges, OnInit {
|
|
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
|
+
get selectedValuesDisplay(): string;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
initializeItems(): void;
|
|
25
|
+
updateSelectedValues(): void;
|
|
26
|
+
openDropdown(event: any): void;
|
|
27
|
+
searchTerm: any;
|
|
28
|
+
onInput(event: any): void;
|
|
29
|
+
onSelect(event: any, item: any): void;
|
|
30
|
+
onSelectAll(event: any): void;
|
|
31
|
+
emitSelectedValues(values: any[]): void;
|
|
32
|
+
checkIfAllSelected(): any;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomSelectComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomSelectComponent, "lib-stores-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>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
|
4
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
5
|
+
import { TraxService } from '../../services/trax.service';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DashboardComponent implements OnDestroy, OnInit {
|
|
9
|
+
private route;
|
|
10
|
+
private router;
|
|
11
|
+
gs: GlobalStateService;
|
|
12
|
+
private changeDetector;
|
|
13
|
+
private toast;
|
|
14
|
+
private TraxService;
|
|
15
|
+
private pageInfo;
|
|
16
|
+
dayjs: typeof dayjs;
|
|
17
|
+
receivedData: string;
|
|
18
|
+
private destroy$;
|
|
19
|
+
isExport: boolean;
|
|
20
|
+
itemsPerPage: number;
|
|
21
|
+
currentPage: number;
|
|
22
|
+
totalItems: number;
|
|
23
|
+
paginationSizes: any[];
|
|
24
|
+
pageSize: number;
|
|
25
|
+
sortColumName: string;
|
|
26
|
+
sortBy: any;
|
|
27
|
+
sortDirection: any;
|
|
28
|
+
searchInput: any;
|
|
29
|
+
checklistPerformance: any[];
|
|
30
|
+
storePerformanceData: any[];
|
|
31
|
+
userPerformanceData: any[];
|
|
32
|
+
searchDisabled: boolean;
|
|
33
|
+
invoiceList: any[];
|
|
34
|
+
checklistLoading: boolean;
|
|
35
|
+
checklistNoData: boolean;
|
|
36
|
+
storePerformanceLoading: boolean;
|
|
37
|
+
storePerformanceNoData: boolean;
|
|
38
|
+
userPerformanceLoading: boolean;
|
|
39
|
+
userPerformanceNoData: boolean;
|
|
40
|
+
headerData: any;
|
|
41
|
+
cardDataLoading: boolean;
|
|
42
|
+
cardNoData: boolean;
|
|
43
|
+
overallCardsData: any;
|
|
44
|
+
currentTab: string;
|
|
45
|
+
searchValue: string;
|
|
46
|
+
limit: number;
|
|
47
|
+
offset: number;
|
|
48
|
+
overallCardDataLoading: boolean;
|
|
49
|
+
overallCardDataNoData: boolean;
|
|
50
|
+
overallComparisonData: any;
|
|
51
|
+
selectedvalue: any;
|
|
52
|
+
dateType: string;
|
|
53
|
+
dateLength: number;
|
|
54
|
+
type: string;
|
|
55
|
+
reloadDate: string;
|
|
56
|
+
constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService, pageInfo: PageInfoService);
|
|
57
|
+
ngOnDestroy(): void;
|
|
58
|
+
ngOnInit(): void;
|
|
59
|
+
setPageData(): void;
|
|
60
|
+
Selecttabs(tab: string): void;
|
|
61
|
+
getOverallCardsData(): void;
|
|
62
|
+
getOverallComparisonCardsData(): void;
|
|
63
|
+
getChecklistPerformanceData(): void;
|
|
64
|
+
getStorePerformanceData(): void;
|
|
65
|
+
getUserPerformanceData(): void;
|
|
66
|
+
onExport(): void;
|
|
67
|
+
searchField(): void;
|
|
68
|
+
sortData(column: string): void;
|
|
69
|
+
onPageSizeChange(pageSize: any): void;
|
|
70
|
+
onPageChange(pageOffset: any): void;
|
|
71
|
+
setPaginationSizes(): void;
|
|
72
|
+
storeView(data: any): void;
|
|
73
|
+
dateValue(type: string): void;
|
|
74
|
+
selectPlan(selectedType: string): void;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "lib-dashboard", never, {}, {}, never, never, false, never>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
|
4
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
5
|
+
import { TraxService } from '../../services/trax.service';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
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
|
+
private pageInfo;
|
|
18
|
+
private toastService;
|
|
19
|
+
dayjs: typeof dayjs;
|
|
20
|
+
private detach;
|
|
21
|
+
private destroy$;
|
|
22
|
+
isExport: boolean;
|
|
23
|
+
itemsPerPage: number;
|
|
24
|
+
currentPage: number;
|
|
25
|
+
totalItems: number;
|
|
26
|
+
paginationSizes: any[];
|
|
27
|
+
pageSize: number;
|
|
28
|
+
sortColumName: string;
|
|
29
|
+
sortBy: any;
|
|
30
|
+
sortDirection: any;
|
|
31
|
+
searchInput: any;
|
|
32
|
+
infoChecklistData: any[];
|
|
33
|
+
checklistDropdown: any[];
|
|
34
|
+
userlistDropdown: any[];
|
|
35
|
+
searchDisabled: boolean;
|
|
36
|
+
invoiceList: any[];
|
|
37
|
+
checklistLoading: boolean;
|
|
38
|
+
checklistNoData: boolean;
|
|
39
|
+
headerData: any;
|
|
40
|
+
receivedData: string;
|
|
41
|
+
form: FormGroup;
|
|
42
|
+
selectControl: FormControl;
|
|
43
|
+
checklistselectControl: FormControl;
|
|
44
|
+
userlistselectControl: FormControl;
|
|
45
|
+
selectedlistselectControl: FormControl;
|
|
46
|
+
selectedUser: any;
|
|
47
|
+
selectedUserType: string;
|
|
48
|
+
selectedSourceUserId: string;
|
|
49
|
+
selectedStatus: any;
|
|
50
|
+
selectedStatusType: string;
|
|
51
|
+
selectedSourceStatusId: string;
|
|
52
|
+
dateType: string;
|
|
53
|
+
checklistdatasets: Array<{
|
|
54
|
+
value: string;
|
|
55
|
+
label: string;
|
|
56
|
+
}>;
|
|
57
|
+
infoCardDataLoading: boolean;
|
|
58
|
+
infoCardNoData: boolean;
|
|
59
|
+
infoCardsData: any;
|
|
60
|
+
selectedChecklist: any;
|
|
61
|
+
selectedChecklistType: string;
|
|
62
|
+
selectedSourceCheckListId: string;
|
|
63
|
+
selectDropdown: any[];
|
|
64
|
+
selectedvalue: any;
|
|
65
|
+
statusselectControl: {
|
|
66
|
+
_id: string;
|
|
67
|
+
label: string;
|
|
68
|
+
}[];
|
|
69
|
+
timeFlag: any;
|
|
70
|
+
date: any;
|
|
71
|
+
infoComparisonCardsData: any;
|
|
72
|
+
searchValue: string;
|
|
73
|
+
limit: number;
|
|
74
|
+
offset: number;
|
|
75
|
+
dateLength: number;
|
|
76
|
+
checklistInfoDate: string;
|
|
77
|
+
constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService, fb: FormBuilder, pageInfo: PageInfoService, toastService: ToastService);
|
|
78
|
+
ngOnDestroy(): void;
|
|
79
|
+
ngOnInit(): void;
|
|
80
|
+
setPageData(): void;
|
|
81
|
+
getUserlistDropdown(): void;
|
|
82
|
+
getchecklistDropdown(): void;
|
|
83
|
+
getInfoCardsData(): void;
|
|
84
|
+
getInfoComparisonCardsData(): void;
|
|
85
|
+
getChecklistInfoData(): void;
|
|
86
|
+
searchField(): void;
|
|
87
|
+
sortData(column: string): void;
|
|
88
|
+
onPageSizeChange(pageSize: any): void;
|
|
89
|
+
onPageChange(pageOffset: any): void;
|
|
90
|
+
setPaginationSizes(): void;
|
|
91
|
+
onChecklistSelect(event: any): void;
|
|
92
|
+
onUserSelect(event: any): void;
|
|
93
|
+
trimText(text: string): string;
|
|
94
|
+
onValueChangeStatusSelect(event: any): void;
|
|
95
|
+
reinitiate(id: string): void;
|
|
96
|
+
sendalert(): void;
|
|
97
|
+
download(type: 'pdf', item: any): void;
|
|
98
|
+
dateValue(type: string): void;
|
|
99
|
+
navigateToGallery(item: any): void;
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardInfoComponent, never>;
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardInfoComponent, "lib-dashboard-info", never, {}, {}, never, never, false, never>;
|
|
102
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, 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, OnDestroy, OnInit {
|
|
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
|
+
monthlyToDate: any;
|
|
28
|
+
constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService);
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
getMonthlyPeformanceData(): void;
|
|
33
|
+
getDaysInMonth(): number[];
|
|
34
|
+
getEmptyDays(): number[];
|
|
35
|
+
getDayClass(day: number): string;
|
|
36
|
+
previousMonth(): void;
|
|
37
|
+
nextMonth(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonthlyperformanceDatepickerComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonthlyperformanceDatepickerComponent, "lib-monthlyperformance-datepicker", never, { "monthlyperformce": { "alias": "monthlyperformce"; "required": false; }; }, {}, never, never, false, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DashboardLayoutComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardLayoutComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardLayoutComponent, "lib-dashboard-layout", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { TimePeriod } from 'ngx-daterangepicker-material/daterangepicker.component';
|
|
4
|
+
import { TraxService } from '../../services/trax.service';
|
|
5
|
+
import dayjs, { Dayjs } from "dayjs";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ExportGalleryComponent implements OnInit, AfterViewInit {
|
|
8
|
+
private activeModal;
|
|
9
|
+
private cd;
|
|
10
|
+
private traxService;
|
|
11
|
+
type: any;
|
|
12
|
+
payload: any;
|
|
13
|
+
clientName: any;
|
|
14
|
+
selectedDateRange: any;
|
|
15
|
+
private destroy$;
|
|
16
|
+
maxdaysReached: boolean;
|
|
17
|
+
previewType: any;
|
|
18
|
+
constructor(activeModal: NgbActiveModal, cd: ChangeDetectorRef, traxService: TraxService);
|
|
19
|
+
dateRangePickerInput: ElementRef;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
datechange(event: TimePeriod): void;
|
|
23
|
+
dayjs: typeof dayjs;
|
|
24
|
+
isCustomDate: (m: dayjs.Dayjs) => false | "invalid-date";
|
|
25
|
+
onStartDateChange(event: any): void;
|
|
26
|
+
onSelect(value: any): void;
|
|
27
|
+
cancel(): void;
|
|
28
|
+
onSubmit(): void;
|
|
29
|
+
csvheight: string;
|
|
30
|
+
dateheight(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportGalleryComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExportGalleryComponent, "lib-export-gallery", never, { "type": { "alias": "type"; "required": false; }; "payload": { "alias": "payload"; "required": false; }; "clientName": { "alias": "clientName"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FlagLayoutComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlagLayoutComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlagLayoutComponent, "lib-flag-layout", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|