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,32 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { TraxService } from '../../services/trax.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ReactiveSelectComponent implements ControlValueAccessor, OnInit {
6
+ private apiService;
7
+ private cd;
8
+ private onTouched;
9
+ private onChanged;
10
+ protected isDisabled: boolean;
11
+ idField: string;
12
+ nameField: string;
13
+ label: string;
14
+ data: any;
15
+ itemChange: EventEmitter<any>;
16
+ protected isOpened: boolean;
17
+ protected selected: Record<string, any> | null;
18
+ protected selectedId: string | number;
19
+ instanceId: string;
20
+ constructor(apiService: TraxService, cd: ChangeDetectorRef);
21
+ ngOnInit(): void;
22
+ writeValue(val: string | number): void;
23
+ registerOnChange(fn: any): void;
24
+ registerOnTouched(fn: any): void;
25
+ setDisabledState?(isDisabled: boolean): void;
26
+ onSelect(item: Record<string, any>): void;
27
+ onClick(event: MouseEvent): void;
28
+ isComponentClicked(targetElement: HTMLElement): boolean;
29
+ openDropdown(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReactiveSelectComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReactiveSelectComponent, "lib-reactive-select", never, { "idField": { "alias": "idField"; "required": false; }; "nameField": { "alias": "nameField"; "required": false; }; "label": { "alias": "label"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "itemChange": "itemChange"; }, never, never, false, never>;
32
+ }
@@ -0,0 +1,23 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
3
+ import dayjs from "dayjs";
4
+ import { TimePeriod } from 'ngx-daterangepicker-material/daterangepicker.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DatePickerComponent {
7
+ private cd;
8
+ activeModal: NgbActiveModal;
9
+ dayjs: typeof dayjs;
10
+ fileType: 'csv' | 'pdf';
11
+ isCustomDate: any;
12
+ outputVal: {
13
+ startDate: string;
14
+ endDate: string;
15
+ validated: boolean;
16
+ };
17
+ constructor(cd: ChangeDetectorRef, activeModal: NgbActiveModal);
18
+ onDateChange(event: any): void;
19
+ onDateUpdated(event: TimePeriod): void;
20
+ onSubmit(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "lib-date-picker", never, { "fileType": { "alias": "fileType"; "required": false; }; }, {}, never, never, false, never>;
23
+ }
@@ -0,0 +1,55 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { BehaviorSubject } from "rxjs";
4
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
5
+ import { FormControl } from '@angular/forms';
6
+ import { TraxService } from '../../services/trax.service';
7
+ import { Checklist, checkListReport, HeaderFilter } from './reports.interface';
8
+ import { ToastService } from 'tango-app-ui-shared';
9
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
10
+ import dayjs from "dayjs";
11
+ import * as i0 from "@angular/core";
12
+ export declare class ReportsComponent implements OnDestroy, OnInit {
13
+ private route;
14
+ gs: GlobalStateService;
15
+ private traxService;
16
+ private router;
17
+ private pageInfo;
18
+ private toastService;
19
+ private modalService;
20
+ dayjs: typeof dayjs;
21
+ private destroy$;
22
+ itemsPerPage: number;
23
+ currentPage: number;
24
+ totalItems: number;
25
+ paginationSizes: number[];
26
+ pageSize: number;
27
+ sortColumName: string;
28
+ sortDirection: number;
29
+ headerData: HeaderFilter | null | undefined;
30
+ checklistSelectControl: FormControl;
31
+ searchInput: FormControl;
32
+ checkLists: Checklist[];
33
+ checkListsApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
34
+ currentChecklist: Checklist | null | undefined;
35
+ checklistReports: checkListReport[];
36
+ reportsTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
37
+ selectAllControl: FormControl<boolean | null>;
38
+ constructor(route: ActivatedRoute, gs: GlobalStateService, traxService: TraxService, router: Router, pageInfo: PageInfoService, toastService: ToastService, modalService: NgbModal);
39
+ ngOnDestroy(): void;
40
+ ngOnInit(): void;
41
+ setPageData(): void;
42
+ getChecklists(): void;
43
+ getFlagsTable(): void;
44
+ sortData(column: string): void;
45
+ onPageSizeChange(pageSize: any): void;
46
+ onPageChange(pageOffset: any): void;
47
+ onView(reportData: checkListReport): void;
48
+ onExport(type: 'csv' | 'pdf'): void;
49
+ exportData(startDate: string, endDate: string, downloadType: 'csv' | 'pdf'): void;
50
+ get atleastOneSelected(): boolean;
51
+ onChecklistSelect(event: Checklist): void;
52
+ onCheckboxChecked(event: boolean): void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReportsComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReportsComponent, "lib-reports", never, {}, {}, never, never, false, never>;
55
+ }
@@ -0,0 +1,46 @@
1
+ export interface Checklist {
2
+ checkListName: string;
3
+ sourceCheckList_id: string;
4
+ checkListType: "storeopenandclose" | "mobileusagedetection" | "uniformdetection" | "custom" | "customerunattended" | "staffleftinthemiddle";
5
+ createdByName: string;
6
+ storeCount: number;
7
+ scheduleRepeatedType: string;
8
+ scheduleStartTime: string;
9
+ scheduleEndTime: string;
10
+ publish: boolean;
11
+ }
12
+ interface DateRange {
13
+ startDate: string;
14
+ endDate: string;
15
+ }
16
+ interface Store {
17
+ storeId: string;
18
+ storeName: string;
19
+ checked: boolean;
20
+ }
21
+ interface Group {
22
+ city: string;
23
+ checked: boolean;
24
+ }
25
+ export interface HeaderFilter {
26
+ client: string;
27
+ clientName: string;
28
+ clients: string[];
29
+ store: null | string;
30
+ date: DateRange;
31
+ stores: Store[];
32
+ group: Group[];
33
+ }
34
+ export interface checkListReport {
35
+ submittedDate: string;
36
+ checkListName: string;
37
+ storeName: string;
38
+ submittedBy: string;
39
+ submittedByChar: string;
40
+ submittedTime: string;
41
+ flagCount: number;
42
+ isSelected: boolean;
43
+ store_id: string;
44
+ _id: string;
45
+ }
46
+ export {};
@@ -1,5 +1,14 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { PageInfoService } from "tango-app-ui-global";
1
4
  import * as i0 from "@angular/core";
2
- export declare class TangoAnalyseTraxComponent {
5
+ export declare class TangoAnalyseTraxComponent implements OnInit {
6
+ private router;
7
+ private pageInfo;
8
+ url: any;
9
+ constructor(router: Router, pageInfo: PageInfoService);
10
+ ngOnInit(): void;
11
+ setPageData(): void;
3
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TangoAnalyseTraxComponent, never>;
4
13
  static ɵcmp: i0.ɵɵComponentDeclaration<TangoAnalyseTraxComponent, "lib-tango-analyse-trax", never, {}, {}, never, never, false, never>;
5
14
  }
@@ -0,0 +1,59 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { TraxService } from '../../services/trax.service';
4
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
5
+ import { ToastService } from 'tango-app-ui-shared';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TaskComponent {
8
+ private route;
9
+ private router;
10
+ gs: GlobalStateService;
11
+ private changeDetector;
12
+ private toast;
13
+ private TraxService;
14
+ private pageInfo;
15
+ private destroy$;
16
+ isExport: boolean;
17
+ itemsPerPage: number;
18
+ currentPage: number;
19
+ totalItems: number;
20
+ paginationSizes: any[];
21
+ pageSize: number;
22
+ sortColumName: string;
23
+ sortBy: any;
24
+ sortDirection: any;
25
+ searchInput: any;
26
+ headerData: any;
27
+ searchValue: string;
28
+ limit: number;
29
+ offset: number;
30
+ searchDisabled: boolean;
31
+ taskLoading: boolean;
32
+ taskNoData: boolean;
33
+ dataObject: any;
34
+ overallCardsData: any;
35
+ cardDataLoading: boolean;
36
+ cardNoData: boolean;
37
+ taskTableData: any[];
38
+ type: string;
39
+ priorityType: any;
40
+ reloadDate: string;
41
+ constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService, pageInfo: PageInfoService);
42
+ ngOnDestroy(): void;
43
+ ngOnInit(): void;
44
+ setPageData(): void;
45
+ getOverallCardsData(): void;
46
+ getTaskTableData(): void;
47
+ setPaginationSizes(): void;
48
+ onExport(): void;
49
+ searchField(): void;
50
+ sortData(column: string): void;
51
+ onPageSizeChange(pageSize: any): void;
52
+ onPageChange(pageOffset: any): void;
53
+ applyFilters(event: any): void;
54
+ selectPlan(selectedType: string): void;
55
+ taskDelete(id: any): void;
56
+ navigateToTaskConfig(task: any): void;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskComponent, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskComponent, "lib-task", never, {}, {}, never, never, false, never>;
59
+ }
@@ -0,0 +1,69 @@
1
+ import { OnDestroy, OnInit, ElementRef, ChangeDetectorRef } from '@angular/core';
2
+ import { BehaviorSubject, Subject } from "rxjs";
3
+ import dayjs from 'dayjs';
4
+ import { ActivatedRoute, Router } from '@angular/router';
5
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
6
+ import { HeaderFilter, ITask, UserAssignDetails } from './task-configure.interface';
7
+ import { TraxService } from '../../services/trax.service';
8
+ import { FormControl } from '@angular/forms';
9
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
10
+ import { ToastService } from 'tango-app-ui-shared';
11
+ import * as i0 from "@angular/core";
12
+ export declare class TaskConfigureComponent implements OnInit, OnDestroy {
13
+ private route;
14
+ private gs;
15
+ private pageInfo;
16
+ private traxService;
17
+ private dialog;
18
+ private toastService;
19
+ private router;
20
+ private cd;
21
+ destroy$: Subject<unknown>;
22
+ dayjs: typeof dayjs;
23
+ scheduleDate: any;
24
+ minDate: any;
25
+ scheduleEndTime: FormControl<string | null>;
26
+ currentTaskId: string;
27
+ headerData: HeaderFilter;
28
+ taskDetails: ITask | undefined;
29
+ approver: FormControl<any>;
30
+ priorityType: FormControl<string | null>;
31
+ allowedStoreLocation: FormControl<boolean | null>;
32
+ restrictAttendance: FormControl<boolean | null>;
33
+ approversList: {
34
+ name: string;
35
+ value: string;
36
+ }[];
37
+ assignTableApiState: BehaviorSubject<"initial" | "loading" | "loaded">;
38
+ assignTableData: UserAssignDetails[] | null | undefined;
39
+ itemsPerPage: number;
40
+ currentPage: number;
41
+ totalItems: number;
42
+ paginationSizes: number[];
43
+ pageSize: number;
44
+ searchInput: FormControl<string | null>;
45
+ selectAllInput: FormControl<boolean | null>;
46
+ removedUsers: Set<unknown>;
47
+ fileInput: ElementRef;
48
+ constructor(route: ActivatedRoute, gs: GlobalStateService, pageInfo: PageInfoService, traxService: TraxService, dialog: NgbModal, toastService: ToastService, router: Router, cd: ChangeDetectorRef);
49
+ ngOnDestroy(): void;
50
+ ngOnInit(): void;
51
+ setPageData(): void;
52
+ getTask(id: string): void;
53
+ getCurrentTime(): string;
54
+ get dueDateFormatted(): string;
55
+ get dueTimeFormatted(): string;
56
+ getClientUser(): void;
57
+ onSubmit(action: 'save' | 'publish'): void;
58
+ onApproveAdded(event: any): void;
59
+ getAssignTable(): void;
60
+ onPageSizeChange(pageSize: any): void;
61
+ onPageChange(pageOffset: any): void;
62
+ onUserAssignChange(event: boolean, id: string): void;
63
+ downloadTemplate(): void;
64
+ onFileUpload(event: any): void;
65
+ addStoreComponent(): void;
66
+ uploadAssigneesList(payload: any, extraArgs?: any): import("rxjs").Observable<Object>;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskConfigureComponent, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskConfigureComponent, "lib-task-configure", never, {}, {}, never, never, false, never>;
69
+ }
@@ -0,0 +1,124 @@
1
+ export type AnswerType = 'descriptive' | 'yes/no' | 'multiplechoicesingle' | 'multiplechoicemultiple' | 'descriptiveImage' | 'image' | 'video' | 'multipleImage' | 'date' | 'linearscale' | 'time';
2
+ export type DescriptiveType = 'text' | 'number' | '';
3
+ export type ValidationType = 'Capture Image' | 'Descriptive Answer' | 'Capture Video' | '';
4
+ export interface ITask {
5
+ alert: {
6
+ usageExceeds: any | null;
7
+ alertsTo: any[];
8
+ };
9
+ _id: string;
10
+ type: string;
11
+ checkListNumber: number;
12
+ checkListName: string;
13
+ checkListDescription: string;
14
+ createdBy: string;
15
+ createdByName: string;
16
+ publish: boolean;
17
+ schedule: string;
18
+ scheduleRepeatedDay: string[];
19
+ scheduleStartTime: string;
20
+ scheduleEndTime: string;
21
+ configStartDate: string | null;
22
+ configEndDate: string | null;
23
+ specificDate: string[];
24
+ scheduleWeekDays: string[];
25
+ scheduleRepeatedMonthSetup: string;
26
+ scheduleRepeatedMonthDate: string;
27
+ allowedOverTime: boolean;
28
+ allowedStoreLocation: boolean;
29
+ detectionArea: any[];
30
+ client_id: string;
31
+ questionCount: number;
32
+ storeCount: number;
33
+ checkListType: string;
34
+ isdeleted: boolean;
35
+ markasread: boolean;
36
+ allowedMultiSubmit: boolean;
37
+ allowOnce: boolean;
38
+ scheduleRepeatedMonthWeek: string;
39
+ scheduleRepeatedType: string;
40
+ scheduleDate: string | null;
41
+ createdAt: string;
42
+ updatedAt: string;
43
+ locationCount: number;
44
+ publishDate: string;
45
+ scheduleEndTimeISO: string;
46
+ scheduleStartTimeISO: string;
47
+ assignedUsers: any[];
48
+ removedUsers: any[];
49
+ sections: Section[];
50
+ approver: {
51
+ id: string;
52
+ email: string;
53
+ userName: string;
54
+ }[];
55
+ priorityType: string;
56
+ restrictAttendance: boolean;
57
+ }
58
+ export interface Section {
59
+ id: string;
60
+ name: string;
61
+ questions: Question[];
62
+ }
63
+ export interface Question {
64
+ qno?: number;
65
+ qname: string;
66
+ answerType: AnswerType;
67
+ runAI: boolean;
68
+ runAIDescription: string;
69
+ allowUploadfromGallery: boolean;
70
+ linkType: boolean;
71
+ questionReferenceImage: string;
72
+ answers: Answer[];
73
+ descriptivetype?: DescriptiveType;
74
+ }
75
+ export interface Answer {
76
+ answer: string;
77
+ answeroptionNumber?: number;
78
+ sopFlag: boolean;
79
+ validation: boolean;
80
+ validationType: ValidationType;
81
+ referenceImage: string;
82
+ showLinked: boolean;
83
+ linkedQuestion: number;
84
+ nestedQuestion: any[];
85
+ validationAnswer?: string;
86
+ allowUploadfromGallery?: boolean;
87
+ runAI?: boolean;
88
+ rangeStart?: number;
89
+ rangeEnd?: number;
90
+ descriptivetype?: DescriptiveType;
91
+ }
92
+ interface DateRange {
93
+ startDate: string;
94
+ endDate: string;
95
+ }
96
+ interface Store {
97
+ storeId: string;
98
+ storeName: string;
99
+ checked: boolean;
100
+ }
101
+ interface Group {
102
+ city: string;
103
+ checked: boolean;
104
+ }
105
+ export interface HeaderFilter {
106
+ client: string;
107
+ clientName: string;
108
+ clients: string[];
109
+ store: null | string;
110
+ date: DateRange;
111
+ stores: Store[];
112
+ group: Group[];
113
+ }
114
+ export interface UserAssignDetails {
115
+ id: string;
116
+ userName: string;
117
+ userEmail: string;
118
+ store_id: string;
119
+ storeName: string;
120
+ userPhone: string;
121
+ city: string;
122
+ checkFlag: boolean;
123
+ }
124
+ export {};
@@ -0,0 +1,68 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { TraxService } from '../../services/trax.service';
4
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
5
+ import { ToastService } from 'tango-app-ui-shared';
6
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
7
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
8
+ import * as i0 from "@angular/core";
9
+ export declare class TaskInfoComponent {
10
+ private route;
11
+ private router;
12
+ gs: GlobalStateService;
13
+ private changeDetector;
14
+ private toast;
15
+ private TraxService;
16
+ private pageInfo;
17
+ modalService: NgbModal;
18
+ private fb;
19
+ private destroy$;
20
+ isExport: boolean;
21
+ itemsPerPage: number;
22
+ currentPage: number;
23
+ totalItems: number;
24
+ paginationSizes: any[];
25
+ pageSize: number;
26
+ sortColumName: string;
27
+ sortBy: any;
28
+ sortDirection: any;
29
+ searchInput: any;
30
+ headerData: any;
31
+ searchValue: string;
32
+ limit: number;
33
+ offset: number;
34
+ searchDisabled: boolean;
35
+ taskInfoLoading: boolean;
36
+ taskInfoNoData: boolean;
37
+ TaskInfoData: any[];
38
+ taskDropdown: any[];
39
+ taskselectControl: FormControl;
40
+ form: FormGroup;
41
+ selectedTask: any;
42
+ selectedChecklistType: string;
43
+ selectedSourceCheckListId: string;
44
+ selectedvalue: any;
45
+ selectedlistselectControl: FormControl;
46
+ selectedStatus: any;
47
+ statusselectControl: {
48
+ _id: string;
49
+ label: string;
50
+ }[];
51
+ constructor(route: ActivatedRoute, router: Router, gs: GlobalStateService, changeDetector: ChangeDetectorRef, toast: ToastService, TraxService: TraxService, pageInfo: PageInfoService, modalService: NgbModal, fb: FormBuilder);
52
+ ngOnDestroy(): void;
53
+ ngOnInit(): void;
54
+ setPageData(): void;
55
+ gettaskDropdown(): void;
56
+ onTaskSelect(event: any): void;
57
+ getTaskInfoTableData(): void;
58
+ onValueChangeStatusSelect(event: any): void;
59
+ setPaginationSizes(): void;
60
+ onExport(): void;
61
+ searchField(): void;
62
+ sortData(column: string): void;
63
+ onPageSizeChange(pageSize: any): void;
64
+ onPageChange(pageOffset: any): void;
65
+ taskinfoedit(taskId: any, userEmail: any, storeName: any): void;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskInfoComponent, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskInfoComponent, "lib-task-info", never, {}, {}, never, never, false, never>;
68
+ }
@@ -0,0 +1,60 @@
1
+ import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
2
+ import dayjs from 'dayjs';
3
+ import { TraxService } from '../../../services/trax.service';
4
+ import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
5
+ import { ActivatedRoute } from '@angular/router';
6
+ import { Subject } from "rxjs";
7
+ import { HeaderFilter, ITask } from '../../task-configure/task-configure.interface';
8
+ import { ToastService } from 'tango-app-ui-shared';
9
+ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
10
+ import * as i0 from "@angular/core";
11
+ export declare class TaskinfoEditComponent {
12
+ private fb;
13
+ private traxService;
14
+ private pageInfo;
15
+ private route;
16
+ private gs;
17
+ private toastService;
18
+ activeModal: NgbActiveModal;
19
+ destroy$: Subject<unknown>;
20
+ openTime: string;
21
+ form: FormGroup;
22
+ checklistselectControl: FormControl;
23
+ checklistDropdown: {
24
+ _id: string;
25
+ checkListName: string;
26
+ }[];
27
+ headerData: HeaderFilter;
28
+ currentTaskId: string;
29
+ dayjs: typeof dayjs;
30
+ scheduleDate: any;
31
+ minDate: any;
32
+ scheduleEndTime: FormControl<string | null>;
33
+ taskDetails: ITask | undefined;
34
+ selectAllInput: FormControl<boolean | null>;
35
+ approversList: {
36
+ name: string;
37
+ value: string;
38
+ }[];
39
+ approver: FormControl<any>;
40
+ priorityType: FormControl<string | null>;
41
+ allowedStoreLocation: FormControl<boolean | null>;
42
+ restrictAttendance: FormControl<boolean | null>;
43
+ removedUsers: Set<string>;
44
+ editRequestData: any;
45
+ constructor(fb: FormBuilder, traxService: TraxService, pageInfo: PageInfoService, route: ActivatedRoute, gs: GlobalStateService, toastService: ToastService, activeModal: NgbActiveModal);
46
+ ngOnDestroy(): void;
47
+ ngOnInit(): void;
48
+ setPageData(): void;
49
+ getTask(id: string): void;
50
+ getCurrentTime(): string;
51
+ get dueDateFormatted(): string;
52
+ get dueTimeFormatted(): string;
53
+ onUserAssignChange(event: boolean, id: string): void;
54
+ onApproveAdded(event: any): void;
55
+ getClientUser(): void;
56
+ onSubmit(): void;
57
+ closePopupAndReloadData(): void;
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskinfoEditComponent, never>;
59
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskinfoEditComponent, "lib-taskinfo-edit", never, { "editRequestData": { "alias": "editRequestData"; "required": false; }; }, {}, never, never, false, never>;
60
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TaskLayoutComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaskLayoutComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaskLayoutComponent, "lib-task-layout", never, {}, {}, never, never, false, never>;
5
+ }
@@ -0,0 +1,44 @@
1
+ import { AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
3
+ import { ToastService } from 'tango-app-ui-shared';
4
+ import { GlobalStateService } from 'tango-app-ui-global';
5
+ import { TraxService } from '../../services/trax.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TraxStoreComponent implements OnInit, AfterViewInit {
8
+ private changedetector;
9
+ private SopService;
10
+ private dialogRef;
11
+ private toast;
12
+ private gs;
13
+ data: any;
14
+ client: any;
15
+ storeList: any;
16
+ store: [];
17
+ selectedStore: any;
18
+ showDropDown: boolean;
19
+ searchStore: any;
20
+ multiSelectSettings: {
21
+ idField: string;
22
+ textField: string;
23
+ itemsShowLimit: number;
24
+ allowSearchFilter: boolean;
25
+ singleSelection: boolean;
26
+ };
27
+ userName: string;
28
+ userEmail: string;
29
+ city: string;
30
+ private detach;
31
+ private readonly destroy$;
32
+ clickOutside(event: MouseEvent): void;
33
+ constructor(changedetector: ChangeDetectorRef, SopService: TraxService, dialogRef: NgbActiveModal, toast: ToastService, gs: GlobalStateService);
34
+ ngAfterViewInit(): void;
35
+ ngOnInit(): void;
36
+ toggleDropDown(): void;
37
+ selectStore(event: any): void;
38
+ filterSearch(): void;
39
+ updateSelectedStore(index: number): void;
40
+ closeDropDown(): void;
41
+ updatedStore(): false | undefined;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<TraxStoreComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<TraxStoreComponent, "lib-trax-store", never, { "data": { "alias": "data"; "required": false; }; "client": { "alias": "client"; "required": false; }; }, {}, never, never, false, never>;
44
+ }
@@ -0,0 +1,23 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
3
+ import { DomSanitizer } from '@angular/platform-browser';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TraxpopupComponent implements OnInit {
6
+ dialogRef: NgbActiveModal;
7
+ private sanitizer;
8
+ requestText: string;
9
+ data: any;
10
+ constructor(dialogRef: NgbActiveModal, sanitizer: DomSanitizer);
11
+ ngOnInit(): void;
12
+ closepopup(): void;
13
+ deletepopup(): void;
14
+ duplicatepopup(): void;
15
+ confirmpopup(): void;
16
+ confirmStorepopup(): void;
17
+ activeStorepopup(): void;
18
+ skipEntries(): void;
19
+ invitepopup(): void;
20
+ updateCheck(event: any, index: any): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TraxpopupComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<TraxpopupComponent, "lib-traxpopup", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
23
+ }