tango-app-ui-analyse-trax 3.3.1-alpha-task.65 → 3.3.1-alpha-task.67
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 +146 -118
- package/esm2022/lib/components/add-task/add-task.component.mjs +417 -28
- package/esm2022/lib/components/add-task/create-task.data.mjs +306 -0
- package/esm2022/lib/components/add-task/create-task.interface.mjs +2 -0
- package/esm2022/lib/components/create-task/create-task.component.mjs +5 -5
- package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +3 -1
- package/esm2022/lib/components/gallery/gallery.component.mjs +410 -52
- package/esm2022/lib/components/task-logs/task-logs.component.mjs +61 -0
- package/esm2022/lib/services/trax.service.mjs +27 -3
- package/esm2022/lib/tango-analyse-trax-routing.module.mjs +1 -1
- package/esm2022/lib/tango-analyse-trax.module.mjs +5 -2
- package/fesm2022/tango-app-ui-analyse-trax.mjs +1577 -416
- package/fesm2022/tango-app-ui-analyse-trax.mjs.map +1 -1
- package/lib/components/action-centre/action-centre.component.d.ts +3 -3
- package/lib/components/add-task/add-task.component.d.ts +57 -10
- package/lib/components/add-task/create-task.data.d.ts +244 -0
- package/lib/components/add-task/create-task.interface.d.ts +147 -0
- package/lib/components/flags/flags.component.d.ts +2 -2
- package/lib/components/flags-info/flags-info.component.d.ts +3 -3
- package/lib/components/gallery/gallery.component.d.ts +16 -3
- package/lib/components/orders/orders.component.d.ts +1 -1
- package/lib/components/reports/reports.component.d.ts +2 -2
- package/lib/components/task-configure/task-configure.component.d.ts +1 -1
- package/lib/components/task-logs/task-logs.component.d.ts +40 -0
- package/lib/services/trax.service.d.ts +7 -0
- package/lib/tango-analyse-trax.module.d.ts +9 -8
- package/package.json +1 -1
|
@@ -34,7 +34,9 @@ export declare class ActionCentreComponent implements OnInit {
|
|
|
34
34
|
totalItems: number;
|
|
35
35
|
paginationSizes: any[];
|
|
36
36
|
pageSize: number;
|
|
37
|
-
|
|
37
|
+
OpenApprovalListData: any[];
|
|
38
|
+
InprogressApprovalListData: any[];
|
|
39
|
+
DoneApprovalListData: any[];
|
|
38
40
|
approvalInprogressLoading: boolean;
|
|
39
41
|
approvalInprogressNoData: boolean;
|
|
40
42
|
approvedLoading: boolean;
|
|
@@ -45,8 +47,6 @@ export declare class ActionCentreComponent implements OnInit {
|
|
|
45
47
|
setPageData(): void;
|
|
46
48
|
getOverallActionCenterData(): void;
|
|
47
49
|
getApprovalOpenData(): void;
|
|
48
|
-
getApprovalInprogressData(): void;
|
|
49
|
-
getApprovedData(): void;
|
|
50
50
|
onValueChangeChecklist(event: any): void;
|
|
51
51
|
searchField(): void;
|
|
52
52
|
setPaginationSizes(): void;
|
|
@@ -1,38 +1,85 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
4
|
import { TraxService } from '../../services/trax.service';
|
|
5
|
-
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
+
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
6
6
|
import { Router } from '@angular/router';
|
|
7
|
+
import { Answer, AnswerForm, AnswerType, HeaderFilter, Question, QuestionForm, Section, SectionForm, TaskForm, ValidationType } from './create-task.interface';
|
|
8
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
9
|
+
import dayjs from "dayjs";
|
|
10
|
+
import { TimePeriod } from 'ngx-daterangepicker-material/daterangepicker.component';
|
|
7
11
|
import * as i0 from "@angular/core";
|
|
8
12
|
export declare class AddTaskComponent implements OnInit {
|
|
9
13
|
private fb;
|
|
14
|
+
private activeModal;
|
|
10
15
|
private gs;
|
|
11
16
|
private traxService;
|
|
12
17
|
private cd;
|
|
13
18
|
private modalService;
|
|
14
19
|
private router;
|
|
15
|
-
|
|
20
|
+
private toastService;
|
|
21
|
+
taskForm: FormGroup<TaskForm>;
|
|
16
22
|
type: any;
|
|
17
|
-
|
|
23
|
+
sourceCheckList_id: any;
|
|
24
|
+
headerData: HeaderFilter | null | undefined;
|
|
25
|
+
answerTypes: {
|
|
18
26
|
label: string;
|
|
19
|
-
value:
|
|
27
|
+
value: AnswerType;
|
|
20
28
|
}[];
|
|
29
|
+
validationTypes: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: ValidationType;
|
|
32
|
+
}[];
|
|
33
|
+
environment: any;
|
|
21
34
|
taskContainer: HTMLElement | null;
|
|
35
|
+
private destroy$;
|
|
22
36
|
taskDetails: any;
|
|
23
|
-
|
|
37
|
+
inputData: any;
|
|
38
|
+
checklistInfo: any;
|
|
39
|
+
storeProfile: any;
|
|
40
|
+
sectionInfo: any;
|
|
41
|
+
operationtype: any;
|
|
42
|
+
timeDetails: any;
|
|
43
|
+
constructor(fb: FormBuilder, activeModal: NgbActiveModal, gs: GlobalStateService, traxService: TraxService, cd: ChangeDetectorRef, modalService: NgbModal, router: Router, toastService: ToastService);
|
|
24
44
|
ngOnInit(): void;
|
|
25
45
|
tasks: number[];
|
|
26
46
|
taskCounter: number;
|
|
27
|
-
|
|
28
|
-
removeTask(taskId: number): void;
|
|
47
|
+
updateForm(): void;
|
|
29
48
|
cancel(): void;
|
|
30
49
|
onSubmit(): void;
|
|
31
50
|
createForm(): void;
|
|
51
|
+
addSectionForm(section?: Section): void;
|
|
52
|
+
addQuestionForm(question: Question, sectionIndex: number, insertIndex?: number): void;
|
|
53
|
+
addAnswerForm(answer: Answer, sectionIndex: number, questionIndex: number, insertIndex?: number): void;
|
|
54
|
+
get getSections(): FormArray<FormGroup<SectionForm>>;
|
|
55
|
+
getQuestions(sectionIndex: number): FormArray<FormGroup<QuestionForm>>;
|
|
56
|
+
getAnswers(sectionIndex: number, questionIndex: number): FormArray<FormGroup<AnswerForm>>;
|
|
57
|
+
uploadFile(event: any, sectionIndex: number, questionIndex: number, answerIndex?: number): void;
|
|
58
|
+
closeDropdown(event: MouseEvent): void;
|
|
32
59
|
openDropdown(event: MouseEvent): void;
|
|
33
60
|
selectedItem: any;
|
|
34
61
|
dropDown: boolean;
|
|
62
|
+
currentTime: string;
|
|
63
|
+
updateCurrentTime(): void;
|
|
64
|
+
isDisabled(time: string): boolean;
|
|
35
65
|
selectItem(value: any): void;
|
|
66
|
+
onDeleteReferenceImage(sectionIndex: number, questionIndex: number, answerIndex?: number): void;
|
|
67
|
+
onAnswerDelete(sectionIndex: number, questionIndex: number, answerIndex: number): void;
|
|
68
|
+
onValidateResponseChange(event: any, sectionIndex: number, questionIndex: number, answerIndex: number): void;
|
|
69
|
+
addNewAnswer(sectionIndex: number, questionIndex: number, type: AnswerType): void;
|
|
70
|
+
onQuestionChange(event: any, sectionIndex: number, questionIndex: number): void;
|
|
71
|
+
selectedDate: any;
|
|
72
|
+
dayjs: typeof dayjs;
|
|
73
|
+
isCustomDate: (m: dayjs.Dayjs) => false | "invalid-date";
|
|
74
|
+
onStartDateChange(event: any): void;
|
|
75
|
+
datechange(event: TimePeriod): void;
|
|
76
|
+
uploadedFiles: File[];
|
|
77
|
+
onFilesSelected(event: any): void;
|
|
78
|
+
selectedFile?: File;
|
|
79
|
+
previewUrl?: any;
|
|
80
|
+
fileInput: ElementRef;
|
|
81
|
+
onFileSelected(event: any): void;
|
|
82
|
+
removeImage(): void;
|
|
36
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddTaskComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddTaskComponent, "lib-add-task", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddTaskComponent, "lib-add-task", never, { "type": { "alias": "type"; "required": false; }; "sourceCheckList_id": { "alias": "sourceCheckList_id"; "required": false; }; "taskDetails": { "alias": "taskDetails"; "required": false; }; "inputData": { "alias": "inputData"; "required": false; }; "checklistInfo": { "alias": "checklistInfo"; "required": false; }; "storeProfile": { "alias": "storeProfile"; "required": false; }; "sectionInfo": { "alias": "sectionInfo"; "required": false; }; "operationtype": { "alias": "operationtype"; "required": false; }; }, {}, never, never, false, never>;
|
|
38
85
|
}
|
|
@@ -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 {};
|
|
@@ -21,9 +21,9 @@ export declare class FlagsComponent implements OnInit, OnDestroy {
|
|
|
21
21
|
sortColumName: string;
|
|
22
22
|
sortDirection: number;
|
|
23
23
|
headerData: HeaderFilter | null | undefined;
|
|
24
|
-
flagsTableApiState: BehaviorSubject<"
|
|
24
|
+
flagsTableApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
25
25
|
flagsTableData: FlagsTableData[];
|
|
26
|
-
cardMetricsApiState: BehaviorSubject<"
|
|
26
|
+
cardMetricsApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
27
27
|
cardMetricsData: IFlagCards | null | undefined;
|
|
28
28
|
cardMetricsComparisonData: IFlagComparisonCards | null | undefined;
|
|
29
29
|
searchInput: FormControl;
|
|
@@ -29,12 +29,12 @@ export declare class FlagsInfoComponent implements OnDestroy, OnInit, OnDestroy
|
|
|
29
29
|
checklistSelectControl: FormControl;
|
|
30
30
|
searchInput: FormControl;
|
|
31
31
|
checkLists: Checklist[];
|
|
32
|
-
checkListsApiState: BehaviorSubject<"
|
|
32
|
+
checkListsApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
33
33
|
currentChecklist: Checklist | null | undefined;
|
|
34
34
|
checklistFlagList: ChecklistFlagList | null | undefined;
|
|
35
|
-
flagsTableApiState: BehaviorSubject<"
|
|
35
|
+
flagsTableApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
36
36
|
flagCardValues: FlagCardValues | null | undefined;
|
|
37
|
-
flagsCardValuesState: BehaviorSubject<"
|
|
37
|
+
flagsCardValuesState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
38
38
|
flagCardTrends: FlagCardTrends | null | undefined;
|
|
39
39
|
unattendedSummaryChartNumber: number;
|
|
40
40
|
dateComparisonType: 'daily' | 'weekly';
|
|
@@ -65,6 +65,10 @@ export declare class GalleryComponent implements OnInit, OnDestroy {
|
|
|
65
65
|
environment: any;
|
|
66
66
|
showflag: boolean;
|
|
67
67
|
selectedSection: any;
|
|
68
|
+
tempselectedSection: any;
|
|
69
|
+
showmulti: boolean;
|
|
70
|
+
showsingle: boolean;
|
|
71
|
+
showfilter: boolean;
|
|
68
72
|
previewType: any;
|
|
69
73
|
checkListDescription: any;
|
|
70
74
|
constructor(fb: FormBuilder, gs: GlobalStateService, traxService: TraxService, cd: ChangeDetectorRef, modalService: NgbModal, route: ActivatedRoute, router: Router, toastService: ToastService, location: Location, pageInfo: PageInfoService);
|
|
@@ -73,12 +77,12 @@ export declare class GalleryComponent implements OnInit, OnDestroy {
|
|
|
73
77
|
setPageData(): void;
|
|
74
78
|
getAllGroups(): void;
|
|
75
79
|
clientDetails(): void;
|
|
80
|
+
redoChanged(event: any): void;
|
|
76
81
|
flagChanged(event: any): void;
|
|
77
82
|
onchecklistreset(): void;
|
|
78
83
|
resetValidation(): void;
|
|
79
84
|
onStartDateChange(event: any): void;
|
|
80
85
|
selectAllStore(event: any): void;
|
|
81
|
-
datashow: boolean;
|
|
82
86
|
updateCheck(event: any, storedata: any): void;
|
|
83
87
|
createForm(): void;
|
|
84
88
|
datechange(event: TimePeriod): void;
|
|
@@ -87,6 +91,7 @@ export declare class GalleryComponent implements OnInit, OnDestroy {
|
|
|
87
91
|
removeQueryParams(): void;
|
|
88
92
|
ongroupSelect(event: any): void;
|
|
89
93
|
onStoreSelect(event: any): void;
|
|
94
|
+
storeListdropdownTask(): void;
|
|
90
95
|
storeListdropdown(): void;
|
|
91
96
|
select: string;
|
|
92
97
|
onSubmit(): void;
|
|
@@ -105,6 +110,8 @@ export declare class GalleryComponent implements OnInit, OnDestroy {
|
|
|
105
110
|
getmobileUsageDataview(): void;
|
|
106
111
|
selectsinglequestion(): void;
|
|
107
112
|
getChecklistQA(type: any): void;
|
|
113
|
+
gettaskQA(type: any): void;
|
|
114
|
+
viewTaskList(sectionName: any, questionName: any): void;
|
|
108
115
|
viewChecklists(sectionName: any, questionName: any): void;
|
|
109
116
|
exportXLSX(type: any): void;
|
|
110
117
|
taskCreate(): void;
|
|
@@ -119,8 +126,14 @@ export declare class GalleryComponent implements OnInit, OnDestroy {
|
|
|
119
126
|
exportDet(event: Event): void;
|
|
120
127
|
questionscount(data: any): number;
|
|
121
128
|
setExportAsPPT(type: any, fileType: any): void;
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
typeChange(event: any): void;
|
|
130
|
+
getAllTasks(type: any): void;
|
|
131
|
+
getTaskQA(type: any): void;
|
|
132
|
+
viewTasks(sectionName: any, questionName: any): void;
|
|
133
|
+
taskredirect(question: any, storeProfile: any, checklistInfo: any): void;
|
|
134
|
+
addTask(type: any, data: any, checklistInfo: any, storeProfile: any, section: any): void;
|
|
135
|
+
selectedTask: any;
|
|
136
|
+
taskTab(task: any): void;
|
|
124
137
|
static ɵfac: i0.ɵɵFactoryDeclaration<GalleryComponent, never>;
|
|
125
138
|
static ɵcmp: i0.ɵɵComponentDeclaration<GalleryComponent, "lib-gallery", never, {}, {}, never, never, false, never>;
|
|
126
139
|
}
|
|
@@ -17,7 +17,7 @@ export declare class OrdersComponent implements OnInit {
|
|
|
17
17
|
isAuthorized: 'AUTHORIZED' | 'UNAUTHORIZED';
|
|
18
18
|
isCustomDate: (m: dayjs.Dayjs) => false | "invalid-date";
|
|
19
19
|
selectedDateRange: any;
|
|
20
|
-
tableApiState: BehaviorSubject<"
|
|
20
|
+
tableApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
21
21
|
constructor(sopService: TraxService, toastService: ToastService, pageInfo: PageInfoService);
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
setPageData(): void;
|
|
@@ -30,10 +30,10 @@ export declare class ReportsComponent implements OnDestroy, OnInit {
|
|
|
30
30
|
checklistSelectControl: FormControl;
|
|
31
31
|
searchInput: FormControl;
|
|
32
32
|
checkLists: Checklist[];
|
|
33
|
-
checkListsApiState: BehaviorSubject<"
|
|
33
|
+
checkListsApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
34
34
|
currentChecklist: Checklist | null | undefined;
|
|
35
35
|
checklistReports: checkListReport[];
|
|
36
|
-
reportsTableApiState: BehaviorSubject<"
|
|
36
|
+
reportsTableApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
37
37
|
selectAllControl: FormControl<boolean | null>;
|
|
38
38
|
constructor(route: ActivatedRoute, gs: GlobalStateService, traxService: TraxService, router: Router, pageInfo: PageInfoService, toastService: ToastService, modalService: NgbModal);
|
|
39
39
|
ngOnDestroy(): void;
|
|
@@ -34,7 +34,7 @@ export declare class TaskConfigureComponent implements OnInit, OnDestroy {
|
|
|
34
34
|
name: string;
|
|
35
35
|
value: string;
|
|
36
36
|
}[];
|
|
37
|
-
assignTableApiState: BehaviorSubject<"
|
|
37
|
+
assignTableApiState: BehaviorSubject<"loading" | "initial" | "loaded">;
|
|
38
38
|
assignTableData: UserAssignDetails[] | null | undefined;
|
|
39
39
|
itemsPerPage: number;
|
|
40
40
|
currentPage: number;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TaskLogsComponent {
|
|
3
|
+
viewTicketData: ({
|
|
4
|
+
actionType: string;
|
|
5
|
+
IdentifiedBy: string;
|
|
6
|
+
timeStamp: string;
|
|
7
|
+
actionBy: string;
|
|
8
|
+
attachments: never[];
|
|
9
|
+
reasons: {
|
|
10
|
+
primaryIssue: string;
|
|
11
|
+
secondaryIssue: {
|
|
12
|
+
name: string;
|
|
13
|
+
_id: string;
|
|
14
|
+
}[];
|
|
15
|
+
_id: string;
|
|
16
|
+
}[];
|
|
17
|
+
_id: string;
|
|
18
|
+
statusCheckAlertTime?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
statusCheckAlertTime: string;
|
|
21
|
+
actionType: string;
|
|
22
|
+
IdentifiedBy: string;
|
|
23
|
+
timeStamp: string;
|
|
24
|
+
actionBy: string;
|
|
25
|
+
attachments: never[];
|
|
26
|
+
reasons: never[];
|
|
27
|
+
_id: string;
|
|
28
|
+
} | {
|
|
29
|
+
actionType: string;
|
|
30
|
+
timeStamp: string;
|
|
31
|
+
actionBy: string;
|
|
32
|
+
attachments: never[];
|
|
33
|
+
reasons: never[];
|
|
34
|
+
_id: string;
|
|
35
|
+
IdentifiedBy?: undefined;
|
|
36
|
+
statusCheckAlertTime?: undefined;
|
|
37
|
+
})[];
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogsComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaskLogsComponent, "lib-task-logs", never, {}, {}, never, never, false, never>;
|
|
40
|
+
}
|