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.
Files changed (92) hide show
  1. package/esm2022/lib/components/action-centre/action-centre.component.mjs +303 -0
  2. package/esm2022/lib/components/activity-log/activity-log.component.mjs +94 -0
  3. package/esm2022/lib/components/add-checklist/add-checklist.component.mjs +1439 -0
  4. package/esm2022/lib/components/add-task/add-task.component.mjs +85 -0
  5. package/esm2022/lib/components/checklist/checklist.component.mjs +252 -0
  6. package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +1954 -0
  7. package/esm2022/lib/components/checklistlayout/checklistlayout.component.mjs +12 -0
  8. package/esm2022/lib/components/chip-dropdown/chip-dropdown.component.mjs +84 -0
  9. package/esm2022/lib/components/create-task/create-task.component.mjs +367 -0
  10. package/esm2022/lib/components/create-task/create-task.data.mjs +306 -0
  11. package/esm2022/lib/components/create-task/create-task.interface.mjs +2 -0
  12. package/esm2022/lib/components/custom-select/custom-select.component.mjs +236 -0
  13. package/esm2022/lib/components/dashboard/dashboard.component.mjs +600 -0
  14. package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +635 -0
  15. package/esm2022/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.mjs +172 -0
  16. package/esm2022/lib/components/dashboard-layout/dashboard-layout.component.mjs +12 -0
  17. package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +119 -0
  18. package/esm2022/lib/components/flag-layout/flag-layout.component.mjs +12 -0
  19. package/esm2022/lib/components/flags/flags.component.mjs +257 -0
  20. package/esm2022/lib/components/flags/flags.interface.mjs +2 -0
  21. package/esm2022/lib/components/flags-info/flags-info.component.mjs +388 -0
  22. package/esm2022/lib/components/flags-info/flags-info.interface.mjs +2 -0
  23. package/esm2022/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.mjs +71 -0
  24. package/esm2022/lib/components/gallery/gallery.component.mjs +1202 -0
  25. package/esm2022/lib/components/group-select/group-select.component.mjs +155 -0
  26. package/esm2022/lib/components/managechecklist/managechecklist.component.mjs +172 -0
  27. package/esm2022/lib/components/multi-date-datepicker/multi-date-datepicker.component.mjs +117 -0
  28. package/esm2022/lib/components/orders/orders.component.mjs +171 -0
  29. package/esm2022/lib/components/pagination/pagination.component.mjs +62 -0
  30. package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +105 -0
  31. package/esm2022/lib/components/reports/date-picker/date-picker.component.mjs +60 -0
  32. package/esm2022/lib/components/reports/reports.component.mjs +299 -0
  33. package/esm2022/lib/components/reports/reports.interface.mjs +2 -0
  34. package/esm2022/lib/components/tango-analyse-trax/tango-analyse-trax.component.mjs +27 -6
  35. package/esm2022/lib/components/task/task.component.mjs +271 -0
  36. package/esm2022/lib/components/task-configure/task-configure.component.mjs +504 -0
  37. package/esm2022/lib/components/task-configure/task-configure.interface.mjs +2 -0
  38. package/esm2022/lib/components/task-info/task-info.component.mjs +300 -0
  39. package/esm2022/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.mjs +203 -0
  40. package/esm2022/lib/components/task-layout/task-layout.component.mjs +12 -0
  41. package/esm2022/lib/components/trax-store/trax-store.component.mjs +153 -0
  42. package/esm2022/lib/components/traxpopup/traxpopup.component.mjs +67 -0
  43. package/esm2022/lib/services/trax.service.mjs +334 -0
  44. package/esm2022/lib/tango-analyse-trax-routing.module.mjs +124 -6
  45. package/esm2022/lib/tango-analyse-trax.module.mjs +147 -9
  46. package/fesm2022/tango-app-ui-analyse-trax.mjs +11512 -21
  47. package/fesm2022/tango-app-ui-analyse-trax.mjs.map +1 -1
  48. package/lib/components/action-centre/action-centre.component.d.ts +56 -0
  49. package/lib/components/activity-log/activity-log.component.d.ts +30 -0
  50. package/lib/components/add-checklist/add-checklist.component.d.ts +99 -0
  51. package/lib/components/add-task/add-task.component.d.ts +38 -0
  52. package/lib/components/checklist/checklist.component.d.ts +39 -0
  53. package/lib/components/checklist-configure/checklist-configure.component.d.ts +160 -0
  54. package/lib/components/checklistlayout/checklistlayout.component.d.ts +5 -0
  55. package/lib/components/chip-dropdown/chip-dropdown.component.d.ts +24 -0
  56. package/lib/components/create-task/create-task.component.d.ts +58 -0
  57. package/lib/components/create-task/create-task.data.d.ts +244 -0
  58. package/lib/components/create-task/create-task.interface.d.ts +147 -0
  59. package/lib/components/custom-select/custom-select.component.d.ts +35 -0
  60. package/lib/components/dashboard/dashboard.component.d.ts +77 -0
  61. package/lib/components/dashboard-info/dashboard-info.component.d.ts +102 -0
  62. package/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.d.ts +40 -0
  63. package/lib/components/dashboard-layout/dashboard-layout.component.d.ts +5 -0
  64. package/lib/components/export-gallery/export-gallery.component.d.ts +33 -0
  65. package/lib/components/flag-layout/flag-layout.component.d.ts +5 -0
  66. package/lib/components/flags/flags.component.d.ts +51 -0
  67. package/lib/components/flags/flags.interface.d.ts +64 -0
  68. package/lib/components/flags-info/flags-info.component.d.ts +62 -0
  69. package/lib/components/flags-info/flags-info.interface.d.ts +212 -0
  70. package/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.d.ts +13 -0
  71. package/lib/components/gallery/gallery.component.d.ts +126 -0
  72. package/lib/components/group-select/group-select.component.d.ts +33 -0
  73. package/lib/components/managechecklist/managechecklist.component.d.ts +32 -0
  74. package/lib/components/multi-date-datepicker/multi-date-datepicker.component.d.ts +27 -0
  75. package/lib/components/orders/orders.component.d.ts +38 -0
  76. package/lib/components/pagination/pagination.component.d.ts +16 -0
  77. package/lib/components/reactive-select/reactive-select.component.d.ts +32 -0
  78. package/lib/components/reports/date-picker/date-picker.component.d.ts +23 -0
  79. package/lib/components/reports/reports.component.d.ts +55 -0
  80. package/lib/components/reports/reports.interface.d.ts +46 -0
  81. package/lib/components/tango-analyse-trax/tango-analyse-trax.component.d.ts +10 -1
  82. package/lib/components/task/task.component.d.ts +59 -0
  83. package/lib/components/task-configure/task-configure.component.d.ts +69 -0
  84. package/lib/components/task-configure/task-configure.interface.d.ts +124 -0
  85. package/lib/components/task-info/task-info.component.d.ts +68 -0
  86. package/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.d.ts +60 -0
  87. package/lib/components/task-layout/task-layout.component.d.ts +5 -0
  88. package/lib/components/trax-store/trax-store.component.d.ts +44 -0
  89. package/lib/components/traxpopup/traxpopup.component.d.ts +23 -0
  90. package/lib/services/trax.service.d.ts +107 -0
  91. package/lib/tango-analyse-trax.module.d.ts +43 -3
  92. package/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
4
+ import { TraxService } from '../../services/trax.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ActionCentreComponent implements OnInit {
7
+ private fb;
8
+ gs: GlobalStateService;
9
+ private pageInfo;
10
+ private TraxService;
11
+ private changeDetector;
12
+ private destroy$;
13
+ searchInput: any;
14
+ form: FormGroup;
15
+ checklistselectControl: FormControl;
16
+ checklistDropdown: {
17
+ _id: string;
18
+ checkListName: string;
19
+ }[];
20
+ filterByRoles: any;
21
+ dataObject: any;
22
+ headerData: any;
23
+ overallCardsData: any;
24
+ cardDataLoading: boolean;
25
+ cardNoData: boolean;
26
+ searchDisabled: boolean;
27
+ approvalOpenLoading: boolean;
28
+ approvalOpenNoData: boolean;
29
+ itemsPerPage: number;
30
+ currentPage: number;
31
+ sortColumName: string;
32
+ sortBy: any;
33
+ sortDirection: any;
34
+ totalItems: number;
35
+ paginationSizes: any[];
36
+ pageSize: number;
37
+ ApprovalListData: any[];
38
+ approvalInprogressLoading: boolean;
39
+ approvalInprogressNoData: boolean;
40
+ approvedLoading: boolean;
41
+ approvedNoData: boolean;
42
+ constructor(fb: FormBuilder, gs: GlobalStateService, pageInfo: PageInfoService, TraxService: TraxService, changeDetector: ChangeDetectorRef);
43
+ ngOnDestroy(): void;
44
+ ngOnInit(): void;
45
+ setPageData(): void;
46
+ getOverallActionCenterData(): void;
47
+ getApprovalOpenData(): void;
48
+ getApprovalInprogressData(): void;
49
+ getApprovedData(): void;
50
+ onValueChangeChecklist(event: any): void;
51
+ searchField(): void;
52
+ setPaginationSizes(): void;
53
+ applyFilters(event: any): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionCentreComponent, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionCentreComponent, "lib-action-centre", never, {}, {}, never, never, false, never>;
56
+ }
@@ -0,0 +1,30 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
3
+ import { TraxService } from '../../services/trax.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ActivityLogComponent {
6
+ gs: GlobalStateService;
7
+ private pageInfo;
8
+ private TraxService;
9
+ private changeDetector;
10
+ private destroy$;
11
+ headerData: any;
12
+ activityLogLoading: boolean;
13
+ activityLogNoData: boolean;
14
+ itemsPerPage: number;
15
+ currentPage: number;
16
+ sortColumName: string;
17
+ sortBy: any;
18
+ sortDirection: any;
19
+ totalItems: number;
20
+ paginationSizes: any[];
21
+ pageSize: number;
22
+ activityLog: any[];
23
+ constructor(gs: GlobalStateService, pageInfo: PageInfoService, TraxService: TraxService, changeDetector: ChangeDetectorRef);
24
+ ngOnDestroy(): void;
25
+ ngOnInit(): void;
26
+ setPageData(): void;
27
+ getActivityLog(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActivityLogComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActivityLogComponent, "lib-activity-log", never, {}, {}, never, never, false, never>;
30
+ }
@@ -0,0 +1,99 @@
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormGroup, FormControl, FormArray, FormBuilder } from '@angular/forms';
3
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
4
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
5
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
6
+ import { ActivatedRoute, Router } from '@angular/router';
7
+ import { ToastService } from 'tango-app-ui-shared';
8
+ import { TraxService } from '../../services/trax.service';
9
+ import * as i0 from "@angular/core";
10
+ export declare class AddChecklistComponent implements OnInit, OnDestroy {
11
+ private pageInfo;
12
+ private fb;
13
+ private changedetector;
14
+ private dialog;
15
+ private route;
16
+ private toast;
17
+ private router;
18
+ private sopService;
19
+ private gs;
20
+ formRef: ElementRef;
21
+ ChecklistForm: FormGroup;
22
+ show: number;
23
+ sectionIndex: number;
24
+ getobject: any;
25
+ editvalue: any;
26
+ isDisabled: boolean;
27
+ nosection: boolean;
28
+ showvalue: string;
29
+ refImgQIdx: number;
30
+ checklistLoading: boolean;
31
+ popupCount: number;
32
+ clientId: any;
33
+ deletedList: any;
34
+ private detach;
35
+ constructor(pageInfo: PageInfoService, fb: FormBuilder, changedetector: ChangeDetectorRef, dialog: NgbModal, route: ActivatedRoute, toast: ToastService, router: Router, sopService: TraxService, gs: GlobalStateService);
36
+ ngOnInit(): void;
37
+ ngOnDestroy(): void;
38
+ setPageData(): void;
39
+ updateInputValue(sectionIndex: number, sectionName: string): void;
40
+ scrollToQuestion(sectionIndex: number, questionIndex: number): void;
41
+ formChecklistQuestions(): void;
42
+ initChecklist(): void;
43
+ allowedValuesValidator(allowedValues: string[]): (control: any) => {
44
+ invalidValue: boolean;
45
+ } | null;
46
+ addNewSection(): void;
47
+ removeSection(sectionIndex: number): void;
48
+ dragDrop(sectionIndex: any, event: CdkDragDrop<any[]>): void;
49
+ updatelinkedQuestionNo(secIdx: number, prevIdx: number, qnIdx: number): void;
50
+ answerTypeSelection(sectionIndex: any, questionIndex: any, event: any): void;
51
+ setAnswerAsTime(secIdx: number, qnIdx: number, type: string): void;
52
+ removeQuestionLinked(secIdx: any, qnIdx: any): void;
53
+ updateValidationType(event: any, section: number, question: number, answer: number): void;
54
+ setAnswerAsFormArray(sectionIndex: number, questionIndex: number, selectvalue: string): void;
55
+ setAnswerAsFormGroup(sectionIndex: number, questionIndex: number, answerType: string): void;
56
+ loadImageFromDevice(secIdx: number, qIdx: number, event: any, ansIdx?: number, ctrlName?: string): void;
57
+ clearReferenceImage(secIdx: number, qIdx: number, ansIdx?: number): void;
58
+ getvalidation(sectionIndex: any, questionIndex: any, addmoreqnIndex: any, event: any): void;
59
+ addNewQuestion(sectionIndex: number): void;
60
+ deleteQuestion(sectionIndex: any, questionIndex: any): void;
61
+ subtractQuestionno(sectionIndex: number, questionIndex: any): void;
62
+ raiseflag(sectionIndex: number, questionIndex: number, ansIdx: number, value: boolean, linkIndex?: number, linkAnsIndex?: number): void;
63
+ addNestedQuestion(sectionIndex: number, questionIndex: number, ansIdx: number, value: boolean, linkedQuestionIndex?: number, linkedAnswer?: number): void;
64
+ accordian(index: any): void;
65
+ deleteSection(sectionIndex: any): void;
66
+ AddMoreAns(sectionindex: any, questionIndex: any, type: string): void;
67
+ deleteAnswer(sectionIndex: number, questionIndex: number, addmoreqnIndex: number, ansIndex?: number): void;
68
+ cloneQuestion(sectionindex: any, questionindex: any): void;
69
+ updateClonedlinkedQuestionNo(secIdx: number, qidx: number): void;
70
+ saveChecklistQuestions(type: string): void;
71
+ saveAsDraftPop(type: string): void;
72
+ updateChecklistQuestions(type: string): void;
73
+ markFormControlsAsTouched(control: FormGroup | FormArray, sectionIndex?: number): void;
74
+ scrollToErrors(sections: FormArray): void;
75
+ swalToast(err: string, type?: string, icon?: string): void;
76
+ RunAI(sIdx: number, qIdx: number, ansIdx?: number): void;
77
+ runAIOff(sIdx: number, qIdx: number, showError?: boolean, ansIdx?: number): void;
78
+ getSectionFormArray(): FormArray<any>;
79
+ getFormControl(formControl: string): FormControl<any>;
80
+ getSectionFormControl(sectionIndex: number, formControlName: string): import("@angular/forms").AbstractControl<any, any> | null;
81
+ getQuestionFormControl(sectionIndex: number, questionIndex: number, formControlName: string, ansIdx?: number): FormControl<any> | null;
82
+ getFormArrayQuestions(sectionIndex: number): FormArray<any>;
83
+ getQuestionsFormGroup(sectionIndex: number, questionIndex: number): FormGroup<any>;
84
+ getFormArrayQuestionsAnswer(sectionIndex: number, questionIndex: number, formArrayName: string, ansIndex?: number, linkquestionIndex?: number): FormArray<any>;
85
+ getFormArrayLinkedQuestions(sectionIndex: number, questionIndex: number, answerIndex: number): FormArray<any>;
86
+ getQuestionsFormArrayValues(sectionIndex: number): any[];
87
+ getAnswerFormGroup_FormControl(sectionIndex: number, questionIndex: number, formControlName: string, ansIdx?: number): FormControl<any> | null;
88
+ removedNestedQuestion(sectionindex: number, qno: any): void;
89
+ updateQuestionQnos(sectionindex: number): void;
90
+ getQuestionsAnswerFormGroup(sectionIndex: number, questionIndex: number, ansIndex: number): FormGroup<any>;
91
+ setActiveQuestion(secIdx: number, questionIndex: number, activestatus: number, answerIndex?: number): void;
92
+ allowAddAnswer(answers: any[]): boolean;
93
+ getQuestionList(secIdx: number, qntIdx: number, ansIdx: number): any;
94
+ updateLinked(secIdx: number, qnIdx: number, ansIdx: number): void;
95
+ updateQuestionType(secIdx: number, qnIdx: number, ansIdx: number, event: any): void;
96
+ selectOption(qno: any, ansLinked: any): boolean;
97
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddChecklistComponent, never>;
98
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddChecklistComponent, "lib-add-checklist", never, {}, {}, never, never, false, never>;
99
+ }
@@ -0,0 +1,38 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { GlobalStateService } from 'tango-app-ui-global';
4
+ import { TraxService } from '../../services/trax.service';
5
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
6
+ import { Router } from '@angular/router';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AddTaskComponent implements OnInit {
9
+ private fb;
10
+ private gs;
11
+ private traxService;
12
+ private cd;
13
+ private modalService;
14
+ private router;
15
+ addTaskForm: FormGroup;
16
+ type: any;
17
+ answerType: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ taskContainer: HTMLElement | null;
22
+ taskDetails: any;
23
+ constructor(fb: FormBuilder, gs: GlobalStateService, traxService: TraxService, cd: ChangeDetectorRef, modalService: NgbModal, router: Router);
24
+ ngOnInit(): void;
25
+ tasks: number[];
26
+ taskCounter: number;
27
+ addTask(): void;
28
+ removeTask(taskId: number): void;
29
+ cancel(): void;
30
+ onSubmit(): void;
31
+ createForm(): void;
32
+ openDropdown(event: MouseEvent): void;
33
+ selectedItem: any;
34
+ dropDown: boolean;
35
+ selectItem(value: any): void;
36
+ 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>;
38
+ }
@@ -0,0 +1,39 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
3
+ import { ToastService } from 'tango-app-ui-shared';
4
+ import { Router } from '@angular/router';
5
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
6
+ import { TraxService } from '../../services/trax.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ChecklistComponent implements OnInit, OnDestroy {
9
+ private pageInfo;
10
+ private traxService;
11
+ gs: GlobalStateService;
12
+ private toast;
13
+ private route;
14
+ private dialog;
15
+ private cd;
16
+ loading: boolean;
17
+ noData: boolean;
18
+ pageSize: number;
19
+ totalItems: number;
20
+ paginationSizes: any;
21
+ checklistData: any;
22
+ private detach;
23
+ dynamicData: any;
24
+ constructor(pageInfo: PageInfoService, traxService: TraxService, gs: GlobalStateService, toast: ToastService, route: Router, dialog: NgbModal, cd: ChangeDetectorRef);
25
+ ngOnInit(): void;
26
+ ngOnDestroy(): void;
27
+ setPageData(): void;
28
+ getCheckList(): void;
29
+ onSort(column: any): void;
30
+ onPageChange(event: any): void;
31
+ onPageSizeChange(event: any): void;
32
+ redirect(data: any, details: any): void;
33
+ publish(event: any, data: any, i: number): void;
34
+ search(): void;
35
+ redirectUrl(type: any): void;
36
+ checkPermission(type: any, data: any): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChecklistComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChecklistComponent, "lib-checklist", never, {}, {}, never, never, false, never>;
39
+ }
@@ -0,0 +1,160 @@
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
4
+ import { ToastService } from 'tango-app-ui-shared';
5
+ import { TraxService } from '../../services/trax.service';
6
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ChecklistConfigureComponent implements OnInit, OnDestroy {
9
+ private changedetector;
10
+ private router;
11
+ private route;
12
+ private dialog;
13
+ private SopService;
14
+ private toast;
15
+ private gs;
16
+ private pageInfo;
17
+ fileInput: ElementRef;
18
+ fileInput1: ElementRef;
19
+ dayjs: any;
20
+ selectedDates: any;
21
+ minDate: any;
22
+ type: string;
23
+ obj: any;
24
+ configData: any;
25
+ tableData: any;
26
+ tableLoading: any;
27
+ tableDisplayedColumns: any;
28
+ pageValue: any;
29
+ offset: number;
30
+ recordsTotal: any;
31
+ size: any;
32
+ offsetvalue: number;
33
+ pageDisplay: any;
34
+ nextbtn: boolean;
35
+ backbtn: boolean;
36
+ currentValue: any;
37
+ tableFilter: any;
38
+ pageStart: any;
39
+ pageEnd: any;
40
+ recordsCount: any;
41
+ paginationSize: number[];
42
+ userData: any;
43
+ excelUserData: any;
44
+ showImage: boolean;
45
+ monthDay: any;
46
+ show: number;
47
+ popUpTitle: any;
48
+ showIntro: boolean;
49
+ searchUser: any;
50
+ addUserForm: boolean;
51
+ sopStores: any;
52
+ selectAll: boolean;
53
+ errormsg: boolean;
54
+ startTime: any;
55
+ endTime: any;
56
+ checklistId: any;
57
+ reupload: boolean;
58
+ selectAllUser: boolean;
59
+ removeUsers: any;
60
+ selectedDays: any[];
61
+ showRangeValue: boolean;
62
+ submittedDates: number[];
63
+ monthDate: string;
64
+ specific: boolean;
65
+ date: any;
66
+ sections: any;
67
+ MonthweekNumber: string;
68
+ popupCount: number;
69
+ validTime: boolean;
70
+ disabledQuestion: boolean;
71
+ showconfig: boolean;
72
+ showadvance: boolean;
73
+ repeatType: string;
74
+ showDropDown: boolean;
75
+ selectedDate: any;
76
+ dates: number[];
77
+ selectedDateList: any;
78
+ selectedStartDate: any;
79
+ minStartDate: any;
80
+ selectedEndDate: any;
81
+ minEndDate: any;
82
+ clientId: any;
83
+ alertUsers: any;
84
+ zoneList: any;
85
+ loading: boolean;
86
+ approve: boolean;
87
+ remainder: boolean;
88
+ private detach;
89
+ timeLoop: any[];
90
+ minutes: number[];
91
+ constructor(changedetector: ChangeDetectorRef, router: ActivatedRoute, route: Router, dialog: NgbModal, SopService: TraxService, toast: ToastService, gs: GlobalStateService, pageInfo: PageInfoService);
92
+ ngOnInit(): void;
93
+ ngOnDestroy(): void;
94
+ setPageData(): void;
95
+ GetConfig(): void;
96
+ accordian(index: any): void;
97
+ configaccordian(): void;
98
+ advanceaccordian(): void;
99
+ Checklist(): void;
100
+ omit_special_char(event: any): boolean;
101
+ validateLimit(event: any): void;
102
+ onFileUpload(event: any): void;
103
+ validateUserDetails(del?: any): void;
104
+ uploadUser(del?: any): void;
105
+ userDetails(): void;
106
+ downloadTemplate(): void;
107
+ onPageChange(event: any): void;
108
+ onPageSizeChange(event: any): void;
109
+ searchTableData(): void;
110
+ updateFlag(event: any, index: any, element: any): void;
111
+ checkAll(event: any): void;
112
+ dateSpecific(event: any): void;
113
+ dateRangeStart(event: any): void;
114
+ dateRangeEnd(event: any): void;
115
+ setDay(day: string): void;
116
+ publish(): false | undefined;
117
+ newstore(): void;
118
+ inviteuser(): void;
119
+ updateDay(): any;
120
+ updateValue(event: any): void;
121
+ validate(event: any): void;
122
+ savedraft(): false | undefined;
123
+ Reupload(): void;
124
+ saveandredirect(id: any): void;
125
+ validateTime(): boolean;
126
+ updateTime(data: any): void;
127
+ updateSchedule(event: any): void;
128
+ navigateToControlCenter(): void;
129
+ addStoreComponent(): void;
130
+ toggleDropDown(): void;
131
+ selectDate(date: number): void;
132
+ submitDate(): void;
133
+ removeBadge(date: number): void;
134
+ getDateWithSuffix(date: number): string;
135
+ closeDropDown(): void;
136
+ updateMonth(type: any): void;
137
+ updateRepeatDay(): void;
138
+ updateMonthValue(): string;
139
+ updateSpecificValue(): any;
140
+ removeDate(date: any): void;
141
+ updateSceduleDate(): any;
142
+ updateDateValue(event: any): void;
143
+ updateSpecific(event: any): void;
144
+ onDatepickerRefresh(): void;
145
+ selectSpecificDate(event: any): void;
146
+ clickOutside(event: MouseEvent): void;
147
+ getClientUser(): void;
148
+ getZoneList(): void;
149
+ updateAlert(event: any): void;
150
+ updateZone(event: any): void;
151
+ updateLoop(): void;
152
+ updateRemainder(event: any, index: any): void;
153
+ getSelected(time: any, index: any): true | undefined;
154
+ updateApprover(event: any): void;
155
+ updateConfigRemainder(event: any): void;
156
+ updateConfigApprover(event: any): void;
157
+ updateTimeLoop(index: any): number[];
158
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChecklistConfigureComponent, never>;
159
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChecklistConfigureComponent, "lib-checklist-configure", never, {}, {}, never, never, false, never>;
160
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ChecklistlayoutComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChecklistlayoutComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChecklistlayoutComponent, "lib-checklistlayout", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,24 @@
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 ChipDropdownComponent implements OnInit, OnChanges {
5
+ private traxService;
6
+ private cd;
7
+ data: any;
8
+ selectedData: any;
9
+ selectedList: EventEmitter<string[]>;
10
+ showDropdown: boolean;
11
+ dummyData: any;
12
+ instanceId: string;
13
+ constructor(traxService: TraxService, cd: ChangeDetectorRef);
14
+ ngOnInit(): void;
15
+ ngOnChanges(changes: SimpleChanges): void;
16
+ addBadge(data: any, index: any): void;
17
+ removeBadge(data: any, index: number): void;
18
+ debounceTimer: any;
19
+ findValue(event: any): void;
20
+ toggleDropdown(): void;
21
+ clickOutside(event: MouseEvent): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipDropdownComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChipDropdownComponent, "lib-chip-dropdown", never, { "data": { "alias": "data"; "required": false; }; "selectedData": { "alias": "selectedData"; "required": false; }; }, { "selectedList": "selectedList"; }, never, never, false, never>;
24
+ }
@@ -0,0 +1,58 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
3
+ import { Answer, AnswerForm, AnswerType, HeaderFilter, ITask, Question, QuestionForm, Section, SectionForm, TaskForm, ValidationType } from './create-task.interface';
4
+ import { TraxService } from '../../services/trax.service';
5
+ import { Subject } from "rxjs";
6
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
7
+ import { ToastService } from 'tango-app-ui-shared';
8
+ import { ActivatedRoute, Router } from '@angular/router';
9
+ import * as i0 from "@angular/core";
10
+ export declare class CreateTaskComponent implements OnInit, OnDestroy {
11
+ private fb;
12
+ private traxService;
13
+ private gs;
14
+ private toastService;
15
+ private route;
16
+ private router;
17
+ private pageInfo;
18
+ destroy$: Subject<unknown>;
19
+ taskForm: FormGroup<TaskForm>;
20
+ taskDetails: ITask;
21
+ headerData: HeaderFilter | null | undefined;
22
+ selectedQuestion: FormGroup<QuestionForm> | undefined;
23
+ answerTypes: {
24
+ label: string;
25
+ value: AnswerType;
26
+ }[];
27
+ validationTypes: {
28
+ label: string;
29
+ value: ValidationType;
30
+ }[];
31
+ currentTaskId: string;
32
+ constructor(fb: FormBuilder, traxService: TraxService, gs: GlobalStateService, toastService: ToastService, route: ActivatedRoute, router: Router, pageInfo: PageInfoService);
33
+ ngOnInit(): void;
34
+ ngOnDestroy(): void;
35
+ setPageData(): void;
36
+ createForm(): void;
37
+ updateForm(): void;
38
+ addSectionForm(section?: Section): void;
39
+ addQuestionForm(question: Question, sectionIndex: number, insertIndex?: number): void;
40
+ addAnswerForm(answer: Answer, sectionIndex: number, questionIndex: number, insertIndex?: number): void;
41
+ get getSections(): FormArray<FormGroup<SectionForm>>;
42
+ getQuestions(sectionIndex: number): FormArray<FormGroup<QuestionForm>>;
43
+ getAnswers(sectionIndex: number, questionIndex: number): FormArray<FormGroup<AnswerForm>>;
44
+ uploadFile(event: any, sectionIndex: number, questionIndex: number, answerIndex?: number): void;
45
+ onQuestionClone(sectionIndex: number, questionIndex: number, question: FormGroup<QuestionForm>): void;
46
+ onQuestionDelete(sectionIndex: number, questionIndex: number): void;
47
+ onDeleteReferenceImage(sectionIndex: number, questionIndex: number, answerIndex?: number): void;
48
+ onValidateResponseChange(event: any, sectionIndex: number, questionIndex: number, answerIndex: number): void;
49
+ onAnswerDelete(sectionIndex: number, questionIndex: number, answerIndex: number): void;
50
+ addNewAnswer(sectionIndex: number, questionIndex: number, type: AnswerType): void;
51
+ addNewQuestion(sectionIndex: number): void;
52
+ onQuestionChange(event: any, sectionIndex: number, questionIndex: number): void;
53
+ selectQuestion(sectionIndex: number, questionIndex: number, question: FormGroup<QuestionForm>): void;
54
+ onSubmit(action: 'save' | 'configure'): void;
55
+ getTask(id: string): void;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreateTaskComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateTaskComponent, "lib-create-task", never, {}, {}, never, never, false, never>;
58
+ }