tango-app-ui-analyse-trax 3.6.0 → 3.6.2-bulktask-2
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 +3 -3
- package/esm2022/lib/components/activity-log-v2/activity-log-v2.component.mjs +3 -2
- package/esm2022/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.mjs +3 -3
- package/esm2022/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.mjs +3 -3
- package/esm2022/lib/components/add-checklist/add-checklist.component.mjs +5 -3
- package/esm2022/lib/components/add-multitask/add-multitask.component.mjs +538 -0
- package/esm2022/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.mjs +269 -0
- package/esm2022/lib/components/add-multitask/create-task.data.mjs +306 -0
- package/esm2022/lib/components/add-multitask/create-task.interface.mjs +2 -0
- package/esm2022/lib/components/add-multitask/unique-string-validator.mjs +10 -0
- package/esm2022/lib/components/add-multitask/whitespace-validator.mjs +10 -0
- package/esm2022/lib/components/add-task/add-task.component.mjs +3 -1
- package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +4 -4
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +3 -3
- package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +1 -1
- package/esm2022/lib/components/disabled-select/disabled-select.component.mjs +158 -0
- package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +7 -2
- package/esm2022/lib/components/eye-test-audit/eye-test/eye-test.component.mjs +11 -17
- package/esm2022/lib/components/eye-test-audit/group-select/group-select.component.mjs +3 -3
- package/esm2022/lib/components/eye-test-audit/reactive-select/reactive-select.component.mjs +3 -3
- package/esm2022/lib/components/flags/flags.component.mjs +1 -1
- package/esm2022/lib/components/flags-info/flags-info.component.mjs +1 -1
- package/esm2022/lib/components/gallery/gallery.component.mjs +324 -50
- package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +6 -3
- package/esm2022/lib/components/task-configure/task-configure.component.mjs +6 -6
- package/esm2022/lib/components/task-info/task-info.component.mjs +1 -1
- package/esm2022/lib/services/trax.service.mjs +20 -2
- package/esm2022/lib/tango-analyse-trax.module.mjs +12 -5
- package/fesm2022/{tango-app-ui-analyse-trax-eye-test-audit.module-mp5zGDN4.mjs → tango-app-ui-analyse-trax-eye-test-audit.module-B6bePYMW.mjs} +20 -26
- package/fesm2022/tango-app-ui-analyse-trax-eye-test-audit.module-B6bePYMW.mjs.map +1 -0
- package/fesm2022/{tango-app-ui-analyse-trax-tango-app-ui-analyse-trax-DKvlR9IQ.mjs → tango-app-ui-analyse-trax-tango-app-ui-analyse-trax-IHj5-6FY.mjs} +1820 -253
- package/fesm2022/tango-app-ui-analyse-trax-tango-app-ui-analyse-trax-IHj5-6FY.mjs.map +1 -0
- package/fesm2022/tango-app-ui-analyse-trax.mjs +1 -1
- package/lib/components/activity-log-v2/activity-log-v2.component.d.ts +1 -0
- package/lib/components/add-multitask/add-multitask.component.d.ts +95 -0
- package/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.d.ts +42 -0
- package/lib/components/add-multitask/create-task.data.d.ts +244 -0
- package/lib/components/add-multitask/create-task.interface.d.ts +147 -0
- package/lib/components/add-multitask/unique-string-validator.d.ts +2 -0
- package/lib/components/add-multitask/whitespace-validator.d.ts +2 -0
- package/lib/components/disabled-select/disabled-select.component.d.ts +34 -0
- package/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.d.ts +2 -2
- 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/flags-new/flags-new.component.d.ts +2 -2
- package/lib/components/gallery/gallery.component.d.ts +40 -2
- package/lib/components/manage-task/manage-task.component.d.ts +1 -1
- package/lib/components/orders/orders.component.d.ts +1 -1
- package/lib/components/reactive-select/reactive-select.component.d.ts +2 -2
- package/lib/components/reports/reports.component.d.ts +2 -2
- package/lib/components/task-configure/task-configure.component.d.ts +3 -3
- package/lib/services/trax.service.d.ts +6 -1
- package/lib/tango-analyse-trax.module.d.ts +11 -8
- package/package.json +1 -1
- package/fesm2022/tango-app-ui-analyse-trax-eye-test-audit.module-mp5zGDN4.mjs.map +0 -1
- package/fesm2022/tango-app-ui-analyse-trax-tango-app-ui-analyse-trax-DKvlR9IQ.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as TangoAnalyseTraxComponent, a as TangoAnalyseTraxModule } from './tango-app-ui-analyse-trax-tango-app-ui-analyse-trax-
|
|
1
|
+
export { b as TangoAnalyseTraxComponent, a as TangoAnalyseTraxModule } from './tango-app-ui-analyse-trax-tango-app-ui-analyse-trax-IHj5-6FY.mjs';
|
|
2
2
|
import '@angular/core';
|
|
3
3
|
import '@angular/common';
|
|
4
4
|
import '@angular/router';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
4
|
+
import { TraxService } from '../../services/trax.service';
|
|
5
|
+
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
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';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare class AddMultitaskComponent implements OnDestroy {
|
|
13
|
+
private fb;
|
|
14
|
+
private activeModal;
|
|
15
|
+
private gs;
|
|
16
|
+
private traxService;
|
|
17
|
+
private cd;
|
|
18
|
+
private modalService;
|
|
19
|
+
private router;
|
|
20
|
+
private toastService;
|
|
21
|
+
taskForm: FormGroup<TaskForm>;
|
|
22
|
+
type: any;
|
|
23
|
+
sourceCheckList_id: any;
|
|
24
|
+
filtertype: any;
|
|
25
|
+
showcomment: any;
|
|
26
|
+
excelData: any;
|
|
27
|
+
currentIndex: number;
|
|
28
|
+
intervalId: any;
|
|
29
|
+
allowedStoreLocation: boolean;
|
|
30
|
+
restrictAttendance: boolean;
|
|
31
|
+
submitted: boolean;
|
|
32
|
+
headerData: HeaderFilter | null | undefined;
|
|
33
|
+
answerTypes: {
|
|
34
|
+
label: string;
|
|
35
|
+
value: AnswerType;
|
|
36
|
+
}[];
|
|
37
|
+
validationTypes: {
|
|
38
|
+
label: string;
|
|
39
|
+
value: ValidationType;
|
|
40
|
+
}[];
|
|
41
|
+
environment: any;
|
|
42
|
+
taskContainer: HTMLElement | null;
|
|
43
|
+
private destroy$;
|
|
44
|
+
payload: any;
|
|
45
|
+
taskDetails: any;
|
|
46
|
+
checklistInfo: any;
|
|
47
|
+
clientId: any;
|
|
48
|
+
timeDetails: any;
|
|
49
|
+
constructor(fb: FormBuilder, activeModal: NgbActiveModal, gs: GlobalStateService, traxService: TraxService, cd: ChangeDetectorRef, modalService: NgbModal, router: Router, toastService: ToastService);
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
tasks: number[];
|
|
52
|
+
taskCounter: number;
|
|
53
|
+
updateForm(): void;
|
|
54
|
+
prevSlide(): void;
|
|
55
|
+
nextSlide(): void;
|
|
56
|
+
goToSlide(index: number): void;
|
|
57
|
+
cancel(): void;
|
|
58
|
+
onSubmit(): void;
|
|
59
|
+
createForm(): void;
|
|
60
|
+
addSectionForm(section?: Section): void;
|
|
61
|
+
addQuestionForm(question: Question, sectionIndex: number, insertIndex?: number): void;
|
|
62
|
+
addAnswerForm(answer: Answer, sectionIndex: number, questionIndex: number, insertIndex?: number): void;
|
|
63
|
+
get getSections(): FormArray<FormGroup<SectionForm>>;
|
|
64
|
+
getQuestions(sectionIndex: number): FormArray<FormGroup<QuestionForm>>;
|
|
65
|
+
isInvalidAnswer(secIdx: number, qnIdx: number): boolean;
|
|
66
|
+
getAnswers(sectionIndex: number, questionIndex: number): FormArray<FormGroup<AnswerForm>>;
|
|
67
|
+
uploadFile(event: any, sectionIndex: number, questionIndex: number, answerIndex?: number): void;
|
|
68
|
+
togglegeofencing(evt: any): void;
|
|
69
|
+
toggleAttendance(evt: any): void;
|
|
70
|
+
closeDropdown(event: MouseEvent): void;
|
|
71
|
+
openDropdown(event: MouseEvent): void;
|
|
72
|
+
selectedItem: any;
|
|
73
|
+
dropDown: boolean;
|
|
74
|
+
currentTime: string;
|
|
75
|
+
updateCurrentTime(): void;
|
|
76
|
+
isDisabled(time: string): boolean;
|
|
77
|
+
selectItem(value: any): void;
|
|
78
|
+
onAnswerDelete(sectionIndex: number, questionIndex: number, answerIndex: number): void;
|
|
79
|
+
onValidateResponseChange(event: any, sectionIndex: number, questionIndex: number, answerIndex: number): void;
|
|
80
|
+
addNewAnswer(sectionIndex: number, questionIndex: number, type: AnswerType): void;
|
|
81
|
+
onQuestionChange(event: any, sectionIndex: number, questionIndex: number): void;
|
|
82
|
+
selectedDate: any;
|
|
83
|
+
dayjs: typeof dayjs;
|
|
84
|
+
isCustomDate: (m: dayjs.Dayjs) => false | "invalid-date";
|
|
85
|
+
onStartDateChange(event: any): void;
|
|
86
|
+
datechange(event: TimePeriod): void;
|
|
87
|
+
uploadedFiles: File[];
|
|
88
|
+
selectedFile?: File;
|
|
89
|
+
previewUrl?: any;
|
|
90
|
+
fileInput: ElementRef;
|
|
91
|
+
removeImage(index: any): void;
|
|
92
|
+
ngOnDestroy(): void;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddMultitaskComponent, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddMultitaskComponent, "lib-add-multitask", never, { "type": { "alias": "type"; "required": false; }; "sourceCheckList_id": { "alias": "sourceCheckList_id"; "required": false; }; "filtertype": { "alias": "filtertype"; "required": false; }; "showcomment": { "alias": "showcomment"; "required": false; }; "excelData": { "alias": "excelData"; "required": false; }; "payload": { "alias": "payload"; "required": false; }; "taskDetails": { "alias": "taskDetails"; "required": false; }; "checklistInfo": { "alias": "checklistInfo"; "required": false; }; }, {}, never, never, false, never>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { TraxService } from '../../../services/trax.service';
|
|
4
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
5
|
+
import { HeaderFilter } from '../../task-configure/task-configure.interface';
|
|
6
|
+
import { Subject } from "rxjs";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BulkcreationmodelComponent {
|
|
9
|
+
private modalService;
|
|
10
|
+
private activeModal;
|
|
11
|
+
private traxService;
|
|
12
|
+
private toastService;
|
|
13
|
+
private cd;
|
|
14
|
+
selectedOption: string;
|
|
15
|
+
payload: any;
|
|
16
|
+
taskDetails: any;
|
|
17
|
+
checklistInfo: any;
|
|
18
|
+
type: any;
|
|
19
|
+
sourceCheckList_id: any;
|
|
20
|
+
filtertype: any;
|
|
21
|
+
headerData: HeaderFilter;
|
|
22
|
+
excelData: any;
|
|
23
|
+
bulkupload: any;
|
|
24
|
+
fileInput: ElementRef;
|
|
25
|
+
fileInput1: ElementRef;
|
|
26
|
+
afterValidation: any;
|
|
27
|
+
excelError: any;
|
|
28
|
+
destroy$: Subject<unknown>;
|
|
29
|
+
constructor(modalService: NgbModal, activeModal: NgbActiveModal, traxService: TraxService, toastService: ToastService, cd: ChangeDetectorRef);
|
|
30
|
+
setOption(option: string): void;
|
|
31
|
+
proceed(): void;
|
|
32
|
+
taskcreationPopup(showcomment: boolean): void;
|
|
33
|
+
closeactivepopup(): void;
|
|
34
|
+
validateDetails(): void;
|
|
35
|
+
Reupload(): void;
|
|
36
|
+
getStoreCounts(data: any): number | undefined;
|
|
37
|
+
downloadTemplate(): void;
|
|
38
|
+
afterUplload(data?: any): void;
|
|
39
|
+
onFileUpload(event: any, type: any): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BulkcreationmodelComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BulkcreationmodelComponent, "lib-bulkcreationmodel", never, { "payload": { "alias": "payload"; "required": false; }; "taskDetails": { "alias": "taskDetails"; "required": false; }; "checklistInfo": { "alias": "checklistInfo"; "required": false; }; "type": { "alias": "type"; "required": false; }; "sourceCheckList_id": { "alias": "sourceCheckList_id"; "required": false; }; "filtertype": { "alias": "filtertype"; "required": false; }; }, {}, never, never, false, never>;
|
|
42
|
+
}
|
|
@@ -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: never[];
|
|
9
|
+
descriptivetype: string;
|
|
10
|
+
answers: {
|
|
11
|
+
answer: string;
|
|
12
|
+
sopFlag: boolean;
|
|
13
|
+
validation: boolean;
|
|
14
|
+
validationType: string;
|
|
15
|
+
validationAnswer: string;
|
|
16
|
+
referenceImage: never[];
|
|
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: never[];
|
|
30
|
+
answers: {
|
|
31
|
+
answer: string;
|
|
32
|
+
sopFlag: boolean;
|
|
33
|
+
validation: boolean;
|
|
34
|
+
validationType: string;
|
|
35
|
+
linkedQuestion: number;
|
|
36
|
+
showLinked: boolean;
|
|
37
|
+
referenceImage: never[];
|
|
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: never[];
|
|
52
|
+
answers: {
|
|
53
|
+
answer: string;
|
|
54
|
+
sopFlag: boolean;
|
|
55
|
+
validation: boolean;
|
|
56
|
+
validationType: string;
|
|
57
|
+
linkedQuestion: number;
|
|
58
|
+
showLinked: boolean;
|
|
59
|
+
referenceImage: never[];
|
|
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: never[];
|
|
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: never[];
|
|
87
|
+
answers: {
|
|
88
|
+
answer: string;
|
|
89
|
+
sopFlag: boolean;
|
|
90
|
+
validation: boolean;
|
|
91
|
+
validationType: string;
|
|
92
|
+
referenceImage: never[];
|
|
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: never[];
|
|
109
|
+
answers: {
|
|
110
|
+
answer: string;
|
|
111
|
+
sopFlag: boolean;
|
|
112
|
+
validation: boolean;
|
|
113
|
+
validationType: string;
|
|
114
|
+
validationAnswer: string;
|
|
115
|
+
referenceImage: never[];
|
|
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: never[];
|
|
129
|
+
answers: {
|
|
130
|
+
answer: string;
|
|
131
|
+
sopFlag: boolean;
|
|
132
|
+
validation: boolean;
|
|
133
|
+
validationType: string;
|
|
134
|
+
validationAnswer: string;
|
|
135
|
+
referenceImage: never[];
|
|
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: never[];
|
|
149
|
+
answers: {
|
|
150
|
+
answer: string;
|
|
151
|
+
sopFlag: boolean;
|
|
152
|
+
validation: boolean;
|
|
153
|
+
validationType: string;
|
|
154
|
+
validationAnswer: string;
|
|
155
|
+
referenceImage: never[];
|
|
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: never[];
|
|
169
|
+
descriptivetype: string;
|
|
170
|
+
answers: {
|
|
171
|
+
answer: string;
|
|
172
|
+
sopFlag: boolean;
|
|
173
|
+
validation: boolean;
|
|
174
|
+
validationType: string;
|
|
175
|
+
validationAnswer: string;
|
|
176
|
+
referenceImage: never[];
|
|
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: never[];
|
|
191
|
+
answers: {
|
|
192
|
+
answer: string;
|
|
193
|
+
sopFlag: boolean;
|
|
194
|
+
validation: boolean;
|
|
195
|
+
validationType: string;
|
|
196
|
+
validationAnswer: string;
|
|
197
|
+
referenceImage: never[];
|
|
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: never[];
|
|
211
|
+
answers: {
|
|
212
|
+
answer: string;
|
|
213
|
+
sopFlag: boolean;
|
|
214
|
+
validation: boolean;
|
|
215
|
+
validationType: string;
|
|
216
|
+
validationAnswer: string;
|
|
217
|
+
referenceImage: never[];
|
|
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: never[];
|
|
233
|
+
answers: {
|
|
234
|
+
answer: string;
|
|
235
|
+
sopFlag: boolean;
|
|
236
|
+
validation: boolean;
|
|
237
|
+
validationType: string;
|
|
238
|
+
validationAnswer: string;
|
|
239
|
+
referenceImage: never[];
|
|
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,34 @@
|
|
|
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 DisabledSelectComponent {
|
|
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
|
+
dropDowndisabled: boolean | undefined;
|
|
15
|
+
label: string;
|
|
16
|
+
selected: EventEmitter<any>;
|
|
17
|
+
filteredValues: any;
|
|
18
|
+
showDropdown: boolean;
|
|
19
|
+
searchValue: string;
|
|
20
|
+
instanceId: any;
|
|
21
|
+
constructor(cd: ChangeDetectorRef, authService: TraxService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
initializeItems(): void;
|
|
25
|
+
updateSelectedValues(): void;
|
|
26
|
+
openDropdown(event: any): void;
|
|
27
|
+
onInput(event: any): void;
|
|
28
|
+
onSelect(event: any, item: any): void;
|
|
29
|
+
onSelectAll(event: any): void;
|
|
30
|
+
emitSelectedValues(values: any[]): void;
|
|
31
|
+
checkIfAllSelected(): any;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisabledSelectComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DisabledSelectComponent, "lib-disabled-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; }; "dropDowndisabled": { "alias": "dropDowndisabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "selected": "selected"; }, never, never, false, never>;
|
|
34
|
+
}
|
|
@@ -21,8 +21,8 @@ export declare class StartAuditComponent implements OnInit, OnDestroy {
|
|
|
21
21
|
dropdownList: any;
|
|
22
22
|
loading: boolean;
|
|
23
23
|
noData: boolean;
|
|
24
|
-
tableLoading: BehaviorSubject<"
|
|
25
|
-
historytableLoading: BehaviorSubject<"
|
|
24
|
+
tableLoading: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
25
|
+
historytableLoading: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
26
26
|
selectedMinutes: string;
|
|
27
27
|
selectedSeconds: string;
|
|
28
28
|
minutesList: string[];
|
|
@@ -22,9 +22,9 @@ export declare class FlagsComponent implements OnInit, OnDestroy {
|
|
|
22
22
|
sortColumName: string;
|
|
23
23
|
sortDirection: number;
|
|
24
24
|
headerData: HeaderFilter | null | undefined;
|
|
25
|
-
flagsTableApiState: BehaviorSubject<"
|
|
25
|
+
flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
26
26
|
flagsTableData: FlagsTableData[];
|
|
27
|
-
cardMetricsApiState: BehaviorSubject<"
|
|
27
|
+
cardMetricsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
28
28
|
cardMetricsData: IFlagCards | null | undefined;
|
|
29
29
|
cardMetricsComparisonData: IFlagComparisonCards | null | undefined;
|
|
30
30
|
searchInput: FormControl;
|
|
@@ -31,12 +31,12 @@ export declare class FlagsInfoComponent implements OnDestroy, OnInit, OnDestroy
|
|
|
31
31
|
checklistSelectControl: FormControl;
|
|
32
32
|
searchInput: FormControl;
|
|
33
33
|
checkLists: Checklist[];
|
|
34
|
-
checkListsApiState: BehaviorSubject<"
|
|
34
|
+
checkListsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
35
35
|
currentChecklist: Checklist | null | undefined;
|
|
36
36
|
checklistFlagList: ChecklistFlagList | null | undefined;
|
|
37
|
-
flagsTableApiState: BehaviorSubject<"
|
|
37
|
+
flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
38
38
|
flagCardValues: FlagCardValues | null | undefined;
|
|
39
|
-
flagsCardValuesState: BehaviorSubject<"
|
|
39
|
+
flagsCardValuesState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
40
40
|
flagCardTrends: FlagCardTrends | null | undefined;
|
|
41
41
|
unattendedSummaryChartNumber: number;
|
|
42
42
|
dateComparisonType: 'daily' | 'weekly' | 'monthly';
|
|
@@ -24,9 +24,9 @@ export declare class FlagsNewComponent implements OnInit, OnDestroy {
|
|
|
24
24
|
sortDirection: number;
|
|
25
25
|
headerData: HeaderFilter | null | undefined;
|
|
26
26
|
traxMonthlyComparisonData: any;
|
|
27
|
-
flagsTableApiState: BehaviorSubject<"
|
|
27
|
+
flagsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
28
28
|
flagsTableData: FlagsTableData[];
|
|
29
|
-
cardMetricsApiState: BehaviorSubject<"
|
|
29
|
+
cardMetricsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
|
|
30
30
|
cardMetricsData: IFlagCards | null | undefined;
|
|
31
31
|
cardMetricsComparisonData: IFlagComparisonCards | null | undefined;
|
|
32
32
|
searchInput: FormControl;
|