tango-app-ui-analyse-trax 3.9.2 → 3.9.3
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/.eslintrc.json +37 -0
- package/ng-package.json +7 -0
- package/package.json +12 -25
- package/src/lib/components/action-centre/action-centre.component.html +607 -0
- package/src/lib/components/action-centre/action-centre.component.scss +185 -0
- package/src/lib/components/action-centre/action-centre.component.spec.ts +23 -0
- package/src/lib/components/action-centre/action-centre.component.ts +279 -0
- package/src/lib/components/activity-log/activity-log.component.html +84 -0
- package/src/lib/components/activity-log/activity-log.component.scss +33 -0
- package/src/lib/components/activity-log/activity-log.component.spec.ts +23 -0
- package/src/lib/components/activity-log/activity-log.component.ts +137 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.html +189 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.scss +162 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/activity-log-v2.component.ts +517 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.html +19 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.scss +148 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.ts +141 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.html +42 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.scss +49 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.ts +22 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.html +724 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.scss +217 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.spec.ts +23 -0
- package/src/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.ts +122 -0
- package/src/lib/components/add-checklist/add-checklist.component.html +1459 -0
- package/src/lib/components/add-checklist/add-checklist.component.scss +1205 -0
- package/src/lib/components/add-checklist/add-checklist.component.spec.ts +23 -0
- package/src/lib/components/add-checklist/add-checklist.component.ts +2460 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.html +207 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.scss +213 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.spec.ts +23 -0
- package/src/lib/components/add-checklist/checklist-popup/checklist-popup.component.ts +621 -0
- package/src/lib/components/add-checklist/counter/counter.component.html +43 -0
- package/src/lib/components/add-checklist/counter/counter.component.scss +49 -0
- package/src/lib/components/add-checklist/counter/counter.component.spec.ts +23 -0
- package/src/lib/components/add-checklist/counter/counter.component.ts +123 -0
- package/src/lib/components/add-multitask/add-multitask.component.html +705 -0
- package/src/lib/components/add-multitask/add-multitask.component.scss +296 -0
- package/src/lib/components/add-multitask/add-multitask.component.spec.ts +23 -0
- package/src/lib/components/add-multitask/add-multitask.component.ts +611 -0
- package/src/lib/components/add-multitask/ascending-validator.ts +13 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.html +197 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.scss +31 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.spec.ts +23 -0
- package/src/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.ts +285 -0
- package/src/lib/components/add-multitask/create-task.data.ts +374 -0
- package/src/lib/components/add-multitask/create-task.interface.ts +177 -0
- package/src/lib/components/add-multitask/unique-string-validator.ts +13 -0
- package/src/lib/components/add-multitask/whitespace-validator.ts +11 -0
- package/src/lib/components/add-task/add-task.component.html +654 -0
- package/src/lib/components/add-task/add-task.component.scss +536 -0
- package/src/lib/components/add-task/add-task.component.spec.ts +23 -0
- package/src/lib/components/add-task/add-task.component.ts +569 -0
- package/src/lib/components/add-task/ascending-validator.ts +13 -0
- package/src/lib/components/add-task/create-task.data.ts +374 -0
- package/src/lib/components/add-task/create-task.interface.ts +192 -0
- package/src/lib/components/add-task/unique-string-validator.ts +13 -0
- package/src/lib/components/add-task/whitespace-validator.ts +11 -0
- package/src/lib/components/approval-popup/approval-popup.component.html +25 -0
- package/src/lib/components/approval-popup/approval-popup.component.scss +3 -0
- package/src/lib/components/approval-popup/approval-popup.component.spec.ts +23 -0
- package/src/lib/components/approval-popup/approval-popup.component.ts +26 -0
- package/src/lib/components/checklist/checklist.component.html +330 -0
- package/src/lib/components/checklist/checklist.component.scss +112 -0
- package/src/lib/components/checklist/checklist.component.spec.ts +23 -0
- package/src/lib/components/checklist/checklist.component.ts +344 -0
- package/src/lib/components/checklist-configure/assign/assign.component.html +665 -0
- package/src/lib/components/checklist-configure/assign/assign.component.scss +219 -0
- package/src/lib/components/checklist-configure/assign/assign.component.spec.ts +23 -0
- package/src/lib/components/checklist-configure/assign/assign.component.ts +932 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.html +4340 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.scss +2338 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.spec.ts +23 -0
- package/src/lib/components/checklist-configure/checklist-configure.component.ts +4659 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.html +30 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.scss +15 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.spec.ts +23 -0
- package/src/lib/components/checklistlayout/checklistlayout.component.ts +47 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.html +36 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.scss +97 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.spec.ts +23 -0
- package/src/lib/components/chip-dropdown/chip-dropdown.component.ts +125 -0
- package/src/lib/components/create-task/create-task.component.html +2003 -0
- package/src/lib/components/create-task/create-task.component.scss +272 -0
- package/src/lib/components/create-task/create-task.component.spec.ts +23 -0
- package/src/lib/components/create-task/create-task.component.ts +614 -0
- package/src/lib/components/create-task/create-task.data.ts +372 -0
- package/src/lib/components/create-task/create-task.interface.ts +182 -0
- package/src/lib/components/create-task/validators/ascending-validator.ts +13 -0
- package/src/lib/components/create-task/validators/unique-string-validator.ts +13 -0
- package/src/lib/components/create-task/validators/whitespace-validator.ts +11 -0
- package/src/lib/components/custom-select/custom-select.component.html +44 -0
- package/src/lib/components/custom-select/custom-select.component.scss +144 -0
- package/src/lib/components/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/components/custom-select/custom-select.component.ts +265 -0
- package/src/lib/components/dashboard/dashboard.component.html +1076 -0
- package/src/lib/components/dashboard/dashboard.component.scss +237 -0
- package/src/lib/components/dashboard/dashboard.component.spec.ts +23 -0
- package/src/lib/components/dashboard/dashboard.component.ts +539 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.html +1420 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.scss +409 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.spec.ts +23 -0
- package/src/lib/components/dashboard-info/dashboard-info.component.ts +772 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.html +110 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.scss +260 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.spec.ts +23 -0
- package/src/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.ts +143 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.html +1 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.scss +0 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.spec.ts +23 -0
- package/src/lib/components/dashboard-layout/dashboard-layout.component.ts +10 -0
- package/src/lib/components/disabled-select/disabled-select.component.html +44 -0
- package/src/lib/components/disabled-select/disabled-select.component.scss +149 -0
- package/src/lib/components/disabled-select/disabled-select.component.spec.ts +23 -0
- package/src/lib/components/disabled-select/disabled-select.component.ts +146 -0
- package/src/lib/components/export-gallery/export-gallery.component.html +175 -0
- package/src/lib/components/export-gallery/export-gallery.component.scss +200 -0
- package/src/lib/components/export-gallery/export-gallery.component.spec.ts +23 -0
- package/src/lib/components/export-gallery/export-gallery.component.ts +263 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.html +36 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.scss +97 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.ts +104 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.html +44 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.scss +144 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/custom-select/custom-select.component.ts +265 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.html +1804 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.scss +806 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test/eye-test.component.ts +1890 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.html +25 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.scss +0 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.ts +20 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.ts +26 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.html +1 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.scss +0 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.ts +24 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.ts +44 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.html +490 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.scss +721 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.ts +1017 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.html +708 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.scss +247 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.ts +446 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.html +44 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.scss +144 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/group-select/group-select.component.ts +147 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.html +18 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.scss +49 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/reactive-select/reactive-select.component.ts +104 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.html +44 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.scss +144 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.spec.ts +23 -0
- package/src/lib/components/eye-test-audit/select-drop/select-drop.component.ts +152 -0
- package/src/lib/components/eye-test-audit/services/eye-test-audit.service.spec.ts +16 -0
- package/src/lib/components/eye-test-audit/services/eye-test-audit.service.ts +190 -0
- package/src/lib/components/flag-layout/flag-layout.component.html +1 -0
- package/src/lib/components/flag-layout/flag-layout.component.scss +0 -0
- package/src/lib/components/flag-layout/flag-layout.component.spec.ts +23 -0
- package/src/lib/components/flag-layout/flag-layout.component.ts +10 -0
- package/src/lib/components/flags/flags.component.html +473 -0
- package/src/lib/components/flags/flags.component.scss +86 -0
- package/src/lib/components/flags/flags.component.spec.ts +23 -0
- package/src/lib/components/flags/flags.component.ts +280 -0
- package/{lib/components/flags/flags.interface.d.ts → src/lib/components/flags/flags.interface.ts} +73 -65
- package/src/lib/components/flags-info/flags-info.component.html +6012 -0
- package/src/lib/components/flags-info/flags-info.component.scss +278 -0
- package/src/lib/components/flags-info/flags-info.component.spec.ts +23 -0
- package/src/lib/components/flags-info/flags-info.component.ts +490 -0
- package/src/lib/components/flags-info/flags-info.interface.ts +441 -0
- package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.html +1 -0
- package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.scss +4 -0
- package/src/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.ts +78 -0
- package/src/lib/components/flags-new/flags-new.component.html +904 -0
- package/src/lib/components/flags-new/flags-new.component.scss +121 -0
- package/src/lib/components/flags-new/flags-new.component.spec.ts +23 -0
- package/src/lib/components/flags-new/flags-new.component.ts +357 -0
- package/{lib/components/flags-new/flags-new.interface.d.ts → src/lib/components/flags-new/flags-new.interface.ts} +90 -81
- package/src/lib/components/gallery/gallery.component.html +3660 -0
- package/src/lib/components/gallery/gallery.component.scss +930 -0
- package/src/lib/components/gallery/gallery.component.ts +3527 -0
- package/src/lib/components/group-select/group-select.component.html +44 -0
- package/src/lib/components/group-select/group-select.component.scss +144 -0
- package/src/lib/components/group-select/group-select.component.spec.ts +23 -0
- package/src/lib/components/group-select/group-select.component.ts +145 -0
- package/src/lib/components/image-popup/image-popup.component.html +11 -0
- package/src/lib/components/image-popup/image-popup.component.scss +5 -0
- package/src/lib/components/image-popup/image-popup.component.ts +18 -0
- package/src/lib/components/lib/custom-select/custom-select.component.html +42 -0
- package/src/lib/components/lib/custom-select/custom-select.component.scss +131 -0
- package/src/lib/components/lib/custom-select/custom-select.component.spec.ts +23 -0
- package/src/lib/components/lib/custom-select/custom-select.component.ts +151 -0
- package/src/lib/components/manage-task/manage-task.component.html +265 -0
- package/src/lib/components/manage-task/manage-task.component.scss +69 -0
- package/src/lib/components/manage-task/manage-task.component.spec.ts +23 -0
- package/src/lib/components/manage-task/manage-task.component.ts +267 -0
- package/src/lib/components/managechecklist/managechecklist.component.html +176 -0
- package/src/lib/components/managechecklist/managechecklist.component.scss +43 -0
- package/src/lib/components/managechecklist/managechecklist.component.spec.ts +23 -0
- package/src/lib/components/managechecklist/managechecklist.component.ts +176 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.html +46 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.scss +181 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.spec.ts +23 -0
- package/src/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.ts +221 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.html +36 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.scss +89 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.spec.ts +23 -0
- package/src/lib/components/multi-date-datepicker/multi-date-datepicker.component.ts +118 -0
- package/src/lib/components/orders/orders.component.html +203 -0
- package/src/lib/components/orders/orders.component.scss +180 -0
- package/src/lib/components/orders/orders.component.spec.ts +25 -0
- package/src/lib/components/orders/orders.component.ts +197 -0
- package/src/lib/components/pagination/pagination.component.html +28 -0
- package/src/lib/components/pagination/pagination.component.scss +6 -0
- package/src/lib/components/pagination/pagination.component.spec.ts +23 -0
- package/src/lib/components/pagination/pagination.component.ts +54 -0
- package/src/lib/components/reactive-select/reactive-select.component.html +18 -0
- package/src/lib/components/reactive-select/reactive-select.component.scss +48 -0
- package/src/lib/components/reactive-select/reactive-select.component.spec.ts +23 -0
- package/src/lib/components/reactive-select/reactive-select.component.ts +104 -0
- package/src/lib/components/reports/date-picker/date-picker.component.html +54 -0
- package/src/lib/components/reports/date-picker/date-picker.component.scss +156 -0
- package/src/lib/components/reports/date-picker/date-picker.component.spec.ts +23 -0
- package/src/lib/components/reports/date-picker/date-picker.component.ts +60 -0
- package/src/lib/components/reports/reports.component.html +225 -0
- package/src/lib/components/reports/reports.component.scss +69 -0
- package/src/lib/components/reports/reports.component.spec.ts +23 -0
- package/src/lib/components/reports/reports.component.ts +334 -0
- package/{lib/components/reports/reports.interface.d.ts → src/lib/components/reports/reports.interface.ts} +50 -46
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.html +1 -0
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.scss +15 -0
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.spec.ts +23 -0
- package/src/lib/components/tango-analyse-trax/tango-analyse-trax.component.ts +31 -0
- package/src/lib/components/task/task.component.html +322 -0
- package/src/lib/components/task/task.component.scss +169 -0
- package/src/lib/components/task/task.component.spec.ts +23 -0
- package/src/lib/components/task/task.component.ts +340 -0
- package/src/lib/components/task-configure/task-configure.component.html +737 -0
- package/src/lib/components/task-configure/task-configure.component.scss +569 -0
- package/src/lib/components/task-configure/task-configure.component.spec.ts +23 -0
- package/src/lib/components/task-configure/task-configure.component.ts +1603 -0
- package/src/lib/components/task-configure/task-configure.interface.ts +138 -0
- package/src/lib/components/task-info/task-info.component.html +390 -0
- package/src/lib/components/task-info/task-info.component.scss +56 -0
- package/src/lib/components/task-info/task-info.component.spec.ts +23 -0
- package/src/lib/components/task-info/task-info.component.ts +400 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.html +141 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.scss +460 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.spec.ts +23 -0
- package/src/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.ts +202 -0
- package/src/lib/components/task-layout/task-layout.component.html +1 -0
- package/src/lib/components/task-layout/task-layout.component.scss +0 -0
- package/src/lib/components/task-layout/task-layout.component.spec.ts +23 -0
- package/src/lib/components/task-layout/task-layout.component.ts +10 -0
- package/src/lib/components/task-logs/task-logs.component.html +97 -0
- package/src/lib/components/task-logs/task-logs.component.scss +301 -0
- package/src/lib/components/task-logs/task-logs.component.spec.ts +23 -0
- package/src/lib/components/task-logs/task-logs.component.ts +80 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.html +84 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.scss +229 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.spec.ts +23 -0
- package/src/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.ts +111 -0
- package/src/lib/components/trax-store/trax-store.component.html +78 -0
- package/src/lib/components/trax-store/trax-store.component.scss +134 -0
- package/src/lib/components/trax-store/trax-store.component.spec.ts +23 -0
- package/src/lib/components/trax-store/trax-store.component.ts +172 -0
- package/src/lib/components/traxpopup/traxpopup.component.html +130 -0
- package/src/lib/components/traxpopup/traxpopup.component.scss +225 -0
- package/src/lib/components/traxpopup/traxpopup.component.spec.ts +23 -0
- package/src/lib/components/traxpopup/traxpopup.component.ts +71 -0
- package/src/lib/services/trax.service.spec.ts +16 -0
- package/src/lib/services/trax.service.ts +789 -0
- package/src/lib/tango-analyse-trax-routing.module.ts +151 -0
- package/src/lib/tango-analyse-trax.module.ts +140 -0
- package/{public-api.d.ts → src/public-api.ts} +6 -2
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/components/action-centre/action-centre.component.mjs +0 -288
- package/esm2022/lib/components/activity-log/activity-log.component.mjs +0 -150
- package/esm2022/lib/components/activity-log-v2/activity-log-v2.component.mjs +0 -502
- package/esm2022/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.mjs +0 -114
- package/esm2022/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.mjs +0 -24
- package/esm2022/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.mjs +0 -126
- package/esm2022/lib/components/add-checklist/add-checklist.component.mjs +0 -2352
- package/esm2022/lib/components/add-checklist/checklist-popup/checklist-popup.component.mjs +0 -612
- package/esm2022/lib/components/add-checklist/counter/counter.component.mjs +0 -138
- package/esm2022/lib/components/add-multitask/add-multitask.component.mjs +0 -604
- package/esm2022/lib/components/add-multitask/ascending-validator.mjs +0 -11
- package/esm2022/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.mjs +0 -297
- package/esm2022/lib/components/add-multitask/create-task.data.mjs +0 -372
- package/esm2022/lib/components/add-multitask/create-task.interface.mjs +0 -2
- package/esm2022/lib/components/add-multitask/unique-string-validator.mjs +0 -10
- package/esm2022/lib/components/add-multitask/whitespace-validator.mjs +0 -10
- package/esm2022/lib/components/add-task/add-task.component.mjs +0 -561
- package/esm2022/lib/components/add-task/ascending-validator.mjs +0 -11
- package/esm2022/lib/components/add-task/create-task.data.mjs +0 -372
- package/esm2022/lib/components/add-task/create-task.interface.mjs +0 -2
- package/esm2022/lib/components/add-task/unique-string-validator.mjs +0 -10
- package/esm2022/lib/components/add-task/whitespace-validator.mjs +0 -10
- package/esm2022/lib/components/approval-popup/approval-popup.component.mjs +0 -30
- package/esm2022/lib/components/checklist/checklist.component.mjs +0 -327
- package/esm2022/lib/components/checklist-configure/assign/assign.component.mjs +0 -912
- package/esm2022/lib/components/checklist-configure/checklist-configure.component.mjs +0 -4161
- package/esm2022/lib/components/checklistlayout/checklistlayout.component.mjs +0 -44
- package/esm2022/lib/components/chip-dropdown/chip-dropdown.component.mjs +0 -120
- package/esm2022/lib/components/create-task/create-task.component.mjs +0 -585
- package/esm2022/lib/components/create-task/create-task.data.mjs +0 -372
- package/esm2022/lib/components/create-task/create-task.interface.mjs +0 -2
- package/esm2022/lib/components/create-task/validators/ascending-validator.mjs +0 -11
- package/esm2022/lib/components/create-task/validators/unique-string-validator.mjs +0 -10
- package/esm2022/lib/components/create-task/validators/whitespace-validator.mjs +0 -10
- package/esm2022/lib/components/custom-select/custom-select.component.mjs +0 -240
- package/esm2022/lib/components/dashboard/dashboard.component.mjs +0 -532
- package/esm2022/lib/components/dashboard-info/dashboard-info.component.mjs +0 -741
- package/esm2022/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.mjs +0 -155
- package/esm2022/lib/components/dashboard-layout/dashboard-layout.component.mjs +0 -12
- package/esm2022/lib/components/disabled-select/disabled-select.component.mjs +0 -158
- package/esm2022/lib/components/export-gallery/export-gallery.component.mjs +0 -266
- package/esm2022/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.mjs +0 -105
- package/esm2022/lib/components/eye-test-audit/custom-select/custom-select.component.mjs +0 -240
- package/esm2022/lib/components/eye-test-audit/eye-test/eye-test.component.mjs +0 -1733
- package/esm2022/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.mjs +0 -24
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.mjs +0 -34
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.mjs +0 -27
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.mjs +0 -71
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.mjs +0 -823
- package/esm2022/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.mjs +0 -412
- package/esm2022/lib/components/eye-test-audit/group-select/group-select.component.mjs +0 -157
- package/esm2022/lib/components/eye-test-audit/reactive-select/reactive-select.component.mjs +0 -105
- package/esm2022/lib/components/eye-test-audit/select-drop/select-drop.component.mjs +0 -162
- package/esm2022/lib/components/eye-test-audit/services/eye-test-audit.service.mjs +0 -166
- package/esm2022/lib/components/flag-layout/flag-layout.component.mjs +0 -12
- package/esm2022/lib/components/flags/flags.component.mjs +0 -263
- package/esm2022/lib/components/flags/flags.interface.mjs +0 -2
- package/esm2022/lib/components/flags-info/flags-info.component.mjs +0 -452
- package/esm2022/lib/components/flags-info/flags-info.interface.mjs +0 -2
- package/esm2022/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.mjs +0 -71
- package/esm2022/lib/components/flags-new/flags-new.component.mjs +0 -335
- package/esm2022/lib/components/flags-new/flags-new.interface.mjs +0 -2
- package/esm2022/lib/components/gallery/gallery.component.mjs +0 -3402
- package/esm2022/lib/components/group-select/group-select.component.mjs +0 -155
- package/esm2022/lib/components/image-popup/image-popup.component.mjs +0 -25
- package/esm2022/lib/components/lib/custom-select/custom-select.component.mjs +0 -158
- package/esm2022/lib/components/manage-task/manage-task.component.mjs +0 -264
- package/esm2022/lib/components/managechecklist/managechecklist.component.mjs +0 -186
- package/esm2022/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.mjs +0 -229
- package/esm2022/lib/components/multi-date-datepicker/multi-date-datepicker.component.mjs +0 -124
- package/esm2022/lib/components/orders/orders.component.mjs +0 -171
- package/esm2022/lib/components/pagination/pagination.component.mjs +0 -62
- package/esm2022/lib/components/reactive-select/reactive-select.component.mjs +0 -108
- package/esm2022/lib/components/reports/date-picker/date-picker.component.mjs +0 -60
- package/esm2022/lib/components/reports/reports.component.mjs +0 -300
- package/esm2022/lib/components/reports/reports.interface.mjs +0 -2
- package/esm2022/lib/components/tango-analyse-trax/tango-analyse-trax.component.mjs +0 -32
- package/esm2022/lib/components/task/task.component.mjs +0 -341
- package/esm2022/lib/components/task-configure/task-configure.component.mjs +0 -1532
- package/esm2022/lib/components/task-configure/task-configure.interface.mjs +0 -2
- package/esm2022/lib/components/task-info/task-info.component.mjs +0 -375
- package/esm2022/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.mjs +0 -208
- package/esm2022/lib/components/task-layout/task-layout.component.mjs +0 -12
- package/esm2022/lib/components/task-logs/task-logs.component.mjs +0 -104
- package/esm2022/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.mjs +0 -107
- package/esm2022/lib/components/trax-store/trax-store.component.mjs +0 -179
- package/esm2022/lib/components/traxpopup/traxpopup.component.mjs +0 -70
- package/esm2022/lib/services/trax.service.mjs +0 -559
- package/esm2022/lib/tango-analyse-trax-routing.module.mjs +0 -153
- package/esm2022/lib/tango-analyse-trax.module.mjs +0 -221
- package/esm2022/public-api.mjs +0 -6
- package/esm2022/tango-app-ui-analyse-trax.mjs +0 -5
- package/fesm2022/tango-app-ui-analyse-trax.mjs +0 -28896
- package/fesm2022/tango-app-ui-analyse-trax.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/components/action-centre/action-centre.component.d.ts +0 -68
- package/lib/components/activity-log/activity-log.component.d.ts +0 -39
- package/lib/components/activity-log-v2/activity-log-v2.component.d.ts +0 -78
- package/lib/components/activity-log-v2/log-view-popup/date-range-picker/date-range-picker.component.d.ts +0 -24
- package/lib/components/activity-log-v2/log-view-popup/store-user-dropdown/store-user-dropdown.component.d.ts +0 -9
- package/lib/components/activity-log-v2/log-view-popup/view-action/view-action.component.d.ts +0 -34
- package/lib/components/add-checklist/add-checklist.component.d.ts +0 -121
- package/lib/components/add-checklist/checklist-popup/checklist-popup.component.d.ts +0 -45
- package/lib/components/add-checklist/counter/counter.component.d.ts +0 -29
- package/lib/components/add-multitask/add-multitask.component.d.ts +0 -102
- package/lib/components/add-multitask/ascending-validator.d.ts +0 -2
- package/lib/components/add-multitask/bulkcreationmodel/bulkcreationmodel.component.d.ts +0 -45
- package/lib/components/add-multitask/create-task.data.d.ts +0 -293
- package/lib/components/add-multitask/create-task.interface.d.ts +0 -159
- package/lib/components/add-multitask/unique-string-validator.d.ts +0 -2
- package/lib/components/add-multitask/whitespace-validator.d.ts +0 -2
- package/lib/components/add-task/add-task.component.d.ts +0 -89
- package/lib/components/add-task/ascending-validator.d.ts +0 -2
- package/lib/components/add-task/create-task.data.d.ts +0 -293
- package/lib/components/add-task/create-task.interface.d.ts +0 -161
- package/lib/components/add-task/unique-string-validator.d.ts +0 -2
- package/lib/components/add-task/whitespace-validator.d.ts +0 -2
- package/lib/components/approval-popup/approval-popup.component.d.ts +0 -14
- package/lib/components/checklist/checklist.component.d.ts +0 -40
- package/lib/components/checklist-configure/assign/assign.component.d.ts +0 -105
- package/lib/components/checklist-configure/checklist-configure.component.d.ts +0 -325
- package/lib/components/checklistlayout/checklistlayout.component.d.ts +0 -15
- package/lib/components/chip-dropdown/chip-dropdown.component.d.ts +0 -28
- package/lib/components/create-task/create-task.component.d.ts +0 -76
- package/lib/components/create-task/create-task.data.d.ts +0 -293
- package/lib/components/create-task/create-task.interface.d.ts +0 -163
- package/lib/components/create-task/validators/ascending-validator.d.ts +0 -2
- package/lib/components/create-task/validators/unique-string-validator.d.ts +0 -2
- package/lib/components/create-task/validators/whitespace-validator.d.ts +0 -2
- package/lib/components/custom-select/custom-select.component.d.ts +0 -35
- package/lib/components/dashboard/dashboard.component.d.ts +0 -80
- package/lib/components/dashboard-info/dashboard-info.component.d.ts +0 -117
- package/lib/components/dashboard-info/monthlyperformance-datepicker/monthlyperformance-datepicker.component.d.ts +0 -41
- package/lib/components/dashboard-layout/dashboard-layout.component.d.ts +0 -5
- package/lib/components/disabled-select/disabled-select.component.d.ts +0 -34
- package/lib/components/export-gallery/export-gallery.component.d.ts +0 -44
- package/lib/components/eye-test-audit/chip-dropdown/chip-dropdown.component.d.ts +0 -26
- package/lib/components/eye-test-audit/custom-select/custom-select.component.d.ts +0 -35
- package/lib/components/eye-test-audit/eye-test/eye-test.component.d.ts +0 -218
- package/lib/components/eye-test-audit/eye-test/send-alert/send-alert.component.d.ts +0 -12
- package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit-routing.module.d.ts +0 -7
- package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.component.d.ts +0 -11
- package/lib/components/eye-test-audit/eye-test-audit/eye-test-audit.module.d.ts +0 -21
- package/lib/components/eye-test-audit/eye-test-audit/settings-audit/settings-audit.component.d.ts +0 -129
- package/lib/components/eye-test-audit/eye-test-audit/start-audit/start-audit.component.d.ts +0 -86
- package/lib/components/eye-test-audit/group-select/group-select.component.d.ts +0 -33
- package/lib/components/eye-test-audit/reactive-select/reactive-select.component.d.ts +0 -32
- package/lib/components/eye-test-audit/select-drop/select-drop.component.d.ts +0 -33
- package/lib/components/eye-test-audit/services/eye-test-audit.service.d.ts +0 -47
- package/lib/components/flag-layout/flag-layout.component.d.ts +0 -5
- package/lib/components/flags/flags.component.d.ts +0 -52
- package/lib/components/flags-info/flags-info.component.d.ts +0 -73
- package/lib/components/flags-info/flags-info.interface.d.ts +0 -430
- package/lib/components/flags-info/unattended-pie-chart/unattended-pie-chart.component.d.ts +0 -13
- package/lib/components/flags-new/flags-new.component.d.ts +0 -60
- package/lib/components/gallery/gallery.component.d.ts +0 -261
- package/lib/components/group-select/group-select.component.d.ts +0 -33
- package/lib/components/image-popup/image-popup.component.d.ts +0 -11
- package/lib/components/lib/custom-select/custom-select.component.d.ts +0 -33
- package/lib/components/manage-task/manage-task.component.d.ts +0 -47
- package/lib/components/managechecklist/managechecklist.component.d.ts +0 -33
- package/lib/components/multi-chip-dropdown/multi-chip-dropdown.component.d.ts +0 -40
- package/lib/components/multi-date-datepicker/multi-date-datepicker.component.d.ts +0 -27
- package/lib/components/orders/orders.component.d.ts +0 -38
- package/lib/components/pagination/pagination.component.d.ts +0 -16
- package/lib/components/reactive-select/reactive-select.component.d.ts +0 -32
- package/lib/components/reports/date-picker/date-picker.component.d.ts +0 -23
- package/lib/components/reports/reports.component.d.ts +0 -55
- package/lib/components/tango-analyse-trax/tango-analyse-trax.component.d.ts +0 -14
- package/lib/components/task/task.component.d.ts +0 -70
- package/lib/components/task-configure/task-configure.component.d.ts +0 -142
- package/lib/components/task-configure/task-configure.interface.d.ts +0 -128
- package/lib/components/task-info/task-info.component.d.ts +0 -76
- package/lib/components/task-info/taskinfo-edit/taskinfo-edit.component.d.ts +0 -61
- package/lib/components/task-layout/task-layout.component.d.ts +0 -5
- package/lib/components/task-logs/task-logs.component.d.ts +0 -27
- package/lib/components/trax-run-ai-popup/trax-run-ai-popup.component.d.ts +0 -26
- package/lib/components/trax-store/trax-store.component.d.ts +0 -45
- package/lib/components/traxpopup/traxpopup.component.d.ts +0 -24
- package/lib/services/trax.service.d.ts +0 -175
- package/lib/tango-analyse-trax-routing.module.d.ts +0 -7
- package/lib/tango-analyse-trax.module.d.ts +0 -68
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit } 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 { Subject, debounceTime, distinctUntilChanged, filter, takeUntil } from "rxjs";
|
|
7
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
+
import { TaskinfoEditComponent } from './taskinfo-edit/taskinfo-edit.component';
|
|
9
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
10
|
+
import dayjs from 'dayjs';
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'lib-task-info',
|
|
13
|
+
templateUrl: './task-info.component.html',
|
|
14
|
+
styleUrl: './task-info.component.scss'
|
|
15
|
+
})
|
|
16
|
+
export class TaskInfoComponent implements OnDestroy, OnInit {
|
|
17
|
+
private destroy$ = new Subject();
|
|
18
|
+
isExport: boolean = false;
|
|
19
|
+
itemsPerPage = 10
|
|
20
|
+
currentPage = 1
|
|
21
|
+
totalItems = 0
|
|
22
|
+
paginationSizes:any[] = [];
|
|
23
|
+
pageSize = 10
|
|
24
|
+
sortColumName: string = '';
|
|
25
|
+
sortBy: any = '';
|
|
26
|
+
sortDirection: any = '';
|
|
27
|
+
searchInput: any ="";
|
|
28
|
+
headerData: any;
|
|
29
|
+
searchValue: string;
|
|
30
|
+
limit: number;
|
|
31
|
+
offset: number;
|
|
32
|
+
searchDisabled: boolean = false;
|
|
33
|
+
taskInfoLoading: boolean = true;
|
|
34
|
+
taskInfoNoData: boolean = false;
|
|
35
|
+
TaskInfoData: any[] = [];
|
|
36
|
+
showZoneData: boolean = false;
|
|
37
|
+
|
|
38
|
+
taskDropdown: any[] = [];
|
|
39
|
+
taskselectControl: FormControl = new 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: 'All', label: 'All' },
|
|
49
|
+
{ _id: 'open', label: 'Open' },
|
|
50
|
+
{ _id: 'inprogress', label: 'In Progress' },
|
|
51
|
+
{ _id: 'submit', label: 'Submitted' },
|
|
52
|
+
{ _id: 'redo', label: 'Redo' },
|
|
53
|
+
];
|
|
54
|
+
dayjs = dayjs;
|
|
55
|
+
date: any;
|
|
56
|
+
userEmailes: any = [];
|
|
57
|
+
taskName: any;
|
|
58
|
+
// refreshTaskDropdown:boolean = true
|
|
59
|
+
|
|
60
|
+
constructor(private route: ActivatedRoute, private router: Router,public gs: GlobalStateService,private changeDetector: ChangeDetectorRef,private toast: ToastService,
|
|
61
|
+
private TraxService: TraxService, private pageInfo: PageInfoService,public modalService: NgbModal,private fb: FormBuilder,
|
|
62
|
+
) {
|
|
63
|
+
this.userEmailes = JSON.parse(localStorage.getItem("usersEmail-info") || "[]" )
|
|
64
|
+
}
|
|
65
|
+
ngOnDestroy(): void {
|
|
66
|
+
this.destroy$.next(true);
|
|
67
|
+
this.destroy$.complete();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
ngOnInit(): void {
|
|
71
|
+
this.selectedlistselectControl = new FormControl('All');
|
|
72
|
+
this.route?.queryParams
|
|
73
|
+
?.pipe(takeUntil(this.destroy$))
|
|
74
|
+
.subscribe((params) => {
|
|
75
|
+
this.selectedvalue = params.taskId
|
|
76
|
+
this.taskName = params.taskName
|
|
77
|
+
if (params.status == 'submit') {
|
|
78
|
+
this.selectedlistselectControl.setValue('submit');
|
|
79
|
+
}
|
|
80
|
+
if (params.status == 'redo') {
|
|
81
|
+
this.selectedlistselectControl.setValue('redo');
|
|
82
|
+
}
|
|
83
|
+
this.taskselectControl.setValue(params.taskId)
|
|
84
|
+
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
this.form = this.fb.group({
|
|
89
|
+
taskselectControl: this.taskselectControl
|
|
90
|
+
});
|
|
91
|
+
this.taskselectControl.valueChanges
|
|
92
|
+
.pipe(takeUntil(this.destroy$))
|
|
93
|
+
.subscribe((value: any) => {
|
|
94
|
+
this.onTaskSelect({ _id: value });
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
this.form = this.fb.group({
|
|
99
|
+
selectedlistselectControl: this.selectedlistselectControl
|
|
100
|
+
});
|
|
101
|
+
this.selectedlistselectControl.valueChanges.pipe(takeUntil(this.destroy$)).subscribe((value: any) => {
|
|
102
|
+
this.onValueChangeStatusSelect(value);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
this.gs.dataRangeValue
|
|
106
|
+
.pipe(takeUntil(this.destroy$), debounceTime(300))
|
|
107
|
+
.subscribe((data: any) => {
|
|
108
|
+
this.headerData = data;
|
|
109
|
+
this.setPageData();
|
|
110
|
+
// this.gettaskDropdown();
|
|
111
|
+
this.getTaskInfoTableData();
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
}
|
|
117
|
+
setPageData() {
|
|
118
|
+
this.pageInfo.setTitle("Dashboard");
|
|
119
|
+
// this.pageInfo.setDescription("Dashboard");
|
|
120
|
+
this.pageInfo.setBreadcrumbs([
|
|
121
|
+
{ title: "Tango Trax", path: "/manage/trax/dashboard", isActive: false, isSeparator: false },
|
|
122
|
+
{ title: "Tango Trax", path: "/manage/trax/dashboard", isActive: false, isSeparator: true },
|
|
123
|
+
]);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
gettaskDropdown(): void {
|
|
127
|
+
const requestData = {
|
|
128
|
+
// fromDate: this.headerData.date.startDate,
|
|
129
|
+
// toDate: this.headerData.date.endDate,
|
|
130
|
+
storeId: this.headerData.stores.filter((store: any) => store.checked).map((store: any) => store.storeId),
|
|
131
|
+
userEmailes: this.userEmailes,
|
|
132
|
+
clientId: this.headerData.client,
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
this.TraxService.getTaskDropdownList(requestData)
|
|
136
|
+
.pipe(takeUntil(this.destroy$))
|
|
137
|
+
.subscribe(
|
|
138
|
+
(response: any) => {
|
|
139
|
+
if (response?.code === 200 && response?.status === "success") {
|
|
140
|
+
this.taskDropdown = response.data?.taskDropdown;
|
|
141
|
+
this.selectedTask = this.taskDropdown.find(item => item._id === this.selectedvalue);
|
|
142
|
+
if (this.selectedTask) {
|
|
143
|
+
this.taskselectControl.setValue(this.selectedTask._id);
|
|
144
|
+
this.selectedvalue = this.selectedTask._id;
|
|
145
|
+
} else if (this.taskDropdown.length > 0) {
|
|
146
|
+
this.taskselectControl.setValue(this.taskDropdown[0]._id);
|
|
147
|
+
this.selectedTask = this.taskDropdown[0];
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
this.taskDropdown = [];
|
|
151
|
+
// this.refreshTaskDropdown = false
|
|
152
|
+
// setTimeout(() => {
|
|
153
|
+
// this.refreshTaskDropdown = true
|
|
154
|
+
// this.changeDetector.detectChanges();
|
|
155
|
+
// }, 0);
|
|
156
|
+
// this.taskInfoNoData = true;
|
|
157
|
+
// this.changeDetector.detectChanges();
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
error => {
|
|
161
|
+
this.taskDropdown = [];
|
|
162
|
+
// this.changeDetector.detectChanges();
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
onTaskSelect(event: any): void {
|
|
167
|
+
this.selectedTask = this.taskDropdown.find(item => item._id === event?._id);
|
|
168
|
+
|
|
169
|
+
if (this.selectedTask) {
|
|
170
|
+
this.selectedvalue = event._id;
|
|
171
|
+
this.router.navigate([], {
|
|
172
|
+
|
|
173
|
+
relativeTo: this.route,
|
|
174
|
+
queryParams: { taskId: this.selectedTask.sourceCheckList_id },
|
|
175
|
+
queryParamsHandling: 'merge'
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
this.getTaskInfoTableData();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
getTaskInfoTableData(): void {
|
|
183
|
+
this.searchDisabled = true;
|
|
184
|
+
this.taskInfoLoading = true;
|
|
185
|
+
this.taskInfoNoData = true;
|
|
186
|
+
const requestData = {
|
|
187
|
+
fromDate: this.headerData.date.startDate,
|
|
188
|
+
toDate: this.headerData.date.endDate,
|
|
189
|
+
storeId: this.headerData.stores.filter((store: any) => store.checked).map((store: any) => store.storeId),
|
|
190
|
+
userEmailes:this.userEmailes,
|
|
191
|
+
clientId:this.headerData.client,
|
|
192
|
+
limit: this.itemsPerPage,
|
|
193
|
+
offset: this.currentPage,
|
|
194
|
+
sortBy: this.sortDirection,
|
|
195
|
+
sortColumnName: this.sortColumName,
|
|
196
|
+
searchValue: this.searchInput,
|
|
197
|
+
export: false,
|
|
198
|
+
taskId: this.selectedvalue,
|
|
199
|
+
// taskId: "673dc2d4bf6f467cea82c68c",
|
|
200
|
+
checklistStatus: this.selectedlistselectControl.value,
|
|
201
|
+
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
this.TraxService.getTaskInfoTableData(requestData)
|
|
205
|
+
.pipe(takeUntil(this.destroy$))
|
|
206
|
+
.subscribe((response: any) => {
|
|
207
|
+
this.taskInfoLoading = false;
|
|
208
|
+
if (response?.code === 200 && response?.status === "success") {
|
|
209
|
+
this.TaskInfoData = response.data.taskInfo || [];
|
|
210
|
+
if(this.TaskInfoData[0]?.checkListFrom == 'api'){
|
|
211
|
+
this.showZoneData = true;
|
|
212
|
+
}
|
|
213
|
+
this.totalItems = response.data.totalCount
|
|
214
|
+
this.setPaginationSizes()
|
|
215
|
+
this.taskInfoLoading = false;
|
|
216
|
+
this.taskInfoNoData = false;
|
|
217
|
+
this.searchDisabled = false;
|
|
218
|
+
} else {
|
|
219
|
+
this.TaskInfoData = [];
|
|
220
|
+
this.taskInfoLoading = false;
|
|
221
|
+
this.taskInfoNoData = true;
|
|
222
|
+
this.searchDisabled = true;
|
|
223
|
+
if (this.searchInput?.length) {
|
|
224
|
+
this.searchDisabled = true
|
|
225
|
+
}
|
|
226
|
+
this.TaskInfoData = []
|
|
227
|
+
this.totalItems = 0
|
|
228
|
+
this.changeDetector.detectChanges()
|
|
229
|
+
}
|
|
230
|
+
}, error => {
|
|
231
|
+
this.TaskInfoData = []
|
|
232
|
+
this.changeDetector.detectChanges()
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
onValueChangeStatusSelect(event: any): void {
|
|
237
|
+
this.sortColumName = "",
|
|
238
|
+
this.sortDirection = "",
|
|
239
|
+
this.searchValue = "",
|
|
240
|
+
this.limit = 10,
|
|
241
|
+
this.offset = 1,
|
|
242
|
+
this.currentPage = 1,
|
|
243
|
+
this.pageSize = 10
|
|
244
|
+
this.selectedStatus = this.statusselectControl.find(item => item._id === event);
|
|
245
|
+
if (this.selectedStatus) {
|
|
246
|
+
this.changeDetector.detectChanges();
|
|
247
|
+
// this.getInfoCardsData();
|
|
248
|
+
this.getTaskInfoTableData();
|
|
249
|
+
} // Fetch data based on selected status
|
|
250
|
+
}
|
|
251
|
+
setPaginationSizes() {
|
|
252
|
+
if (this.totalItems > 10) {
|
|
253
|
+
this.paginationSizes = [10, 20, 30];
|
|
254
|
+
} else {
|
|
255
|
+
this.paginationSizes = [this.totalItems];
|
|
256
|
+
this.pageSize = this.totalItems;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
onExport(): void {
|
|
262
|
+
this.currentPage = 1;
|
|
263
|
+
const requestData = {
|
|
264
|
+
fromDate: this.headerData.date.startDate,
|
|
265
|
+
toDate: this.headerData.date.endDate,
|
|
266
|
+
storeId: this.headerData.stores.filter((store: any) => store.checked).map((store: any) => store.storeId),
|
|
267
|
+
userEmailes: this.userEmailes,
|
|
268
|
+
clientId:this.headerData.client,
|
|
269
|
+
limit: 10000,
|
|
270
|
+
offset: this.currentPage,
|
|
271
|
+
sortBy: this.sortDirection,
|
|
272
|
+
sortColumnName: this.sortColumName,
|
|
273
|
+
searchValue: this.searchInput,
|
|
274
|
+
export: true,
|
|
275
|
+
taskId: this.selectedvalue,
|
|
276
|
+
checklistStatus: this.selectedlistselectControl.value,
|
|
277
|
+
};
|
|
278
|
+
this.TraxService.getTaskInfoTableDataExport(requestData)
|
|
279
|
+
.pipe(takeUntil(this.destroy$))
|
|
280
|
+
.subscribe({
|
|
281
|
+
next: (res) => {
|
|
282
|
+
this.TraxService.saveAsExcelFile(res, 'TaskInfoTable');
|
|
283
|
+
},
|
|
284
|
+
error: (e) => {
|
|
285
|
+
this.toast.getErrorToast('Something went Wrong..')
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
}
|
|
290
|
+
searchField(): void {
|
|
291
|
+
this.headerData.searchValue = this.searchInput;
|
|
292
|
+
this.headerData.export = false;
|
|
293
|
+
this.currentPage = 1;
|
|
294
|
+
this.pageSize=10;
|
|
295
|
+
this.getTaskInfoTableData();
|
|
296
|
+
}
|
|
297
|
+
sortData(column: string): void {
|
|
298
|
+
if (this.sortColumName === column) {
|
|
299
|
+
this.sortDirection = this.sortDirection === 1 ? -1 : 1;
|
|
300
|
+
} else {
|
|
301
|
+
this.sortColumName = column;
|
|
302
|
+
this.sortDirection = 1;
|
|
303
|
+
}
|
|
304
|
+
this.getTaskInfoTableData();
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
onPageSizeChange(pageSize: any) {
|
|
308
|
+
this.currentPage = 1;
|
|
309
|
+
this.itemsPerPage = pageSize;
|
|
310
|
+
this.pageSize = pageSize;
|
|
311
|
+
this.changeDetector.detectChanges();
|
|
312
|
+
this.getTaskInfoTableData();
|
|
313
|
+
}
|
|
314
|
+
onPageChange(pageOffset: any) {
|
|
315
|
+
this.currentPage = pageOffset
|
|
316
|
+
this.getTaskInfoTableData();
|
|
317
|
+
}
|
|
318
|
+
taskinfoedit(data:any) {
|
|
319
|
+
let editRequestData = data
|
|
320
|
+
const modalRef = this.modalService.open(TaskinfoEditComponent, {
|
|
321
|
+
centered: true,
|
|
322
|
+
size: 'md',
|
|
323
|
+
scrollable: true,
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
modalRef.componentInstance.editRequestData = editRequestData;
|
|
327
|
+
|
|
328
|
+
modalRef.result.then((result) => {
|
|
329
|
+
this.getTaskInfoTableData();
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
navigateToGallery(taskinfo: any): void {
|
|
334
|
+
let formattedDate = dayjs(taskinfo.date_string).format('YYYY-MM-DD')
|
|
335
|
+
let checklistType: string;
|
|
336
|
+
|
|
337
|
+
if (taskinfo.checkListType === 'custom') {
|
|
338
|
+
checklistType = 'custom';
|
|
339
|
+
} else if (['task', 'checklistTask', 'cctv'].includes(taskinfo.checkListType)) {
|
|
340
|
+
checklistType = 'task';
|
|
341
|
+
} else {
|
|
342
|
+
checklistType = taskinfo.checkListType || '--';
|
|
343
|
+
}
|
|
344
|
+
let queryParams: any;
|
|
345
|
+
if (taskinfo?.store_id !== '') {
|
|
346
|
+
queryParams = {
|
|
347
|
+
ChecklistDate: formattedDate,
|
|
348
|
+
checklistType: checklistType,
|
|
349
|
+
storeId: taskinfo.store_id,
|
|
350
|
+
sourceCheckList_id: taskinfo.sourceCheckList_id,
|
|
351
|
+
};
|
|
352
|
+
} else{
|
|
353
|
+
queryParams = {
|
|
354
|
+
ChecklistDate: formattedDate,
|
|
355
|
+
checklistType: checklistType,
|
|
356
|
+
userEmail: taskinfo.userEmail,
|
|
357
|
+
sourceCheckList_id: taskinfo.sourceCheckList_id,
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (taskinfo.redoStatus) {
|
|
362
|
+
queryParams.redoStatus = true;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
this.router.navigate(['/manage/trax/gallery'], { queryParams });
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
getRedoSvgColor(status: string): string {
|
|
369
|
+
switch (status) {
|
|
370
|
+
case 'Open':
|
|
371
|
+
return '#B42318';
|
|
372
|
+
case 'In Progress':
|
|
373
|
+
return '#009BF3';
|
|
374
|
+
case 'Submitted':
|
|
375
|
+
return '#027A48';
|
|
376
|
+
default:
|
|
377
|
+
return '#000000';
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// storeView(taskinfo: any){
|
|
382
|
+
// const datavalue: any = JSON.parse(
|
|
383
|
+
// localStorage.getItem("header-filters") || "{}"
|
|
384
|
+
// );
|
|
385
|
+
// const matchedStores = datavalue.stores.filter((store: any) => store.checked && store.storeId === taskinfo.store_id);
|
|
386
|
+
// // Update the balance stores (those not in the matched stores) to set their checked property to false
|
|
387
|
+
// datavalue.stores.forEach((store: any) => {
|
|
388
|
+
// if (!matchedStores.some((matchedStore:any) => matchedStore.storeId === store.storeId)) {
|
|
389
|
+
// store.checked = false;
|
|
390
|
+
// }
|
|
391
|
+
// });
|
|
392
|
+
// datavalue.store = taskinfo.store_id;
|
|
393
|
+
// localStorage.setItem("header-filters", JSON.stringify(datavalue));
|
|
394
|
+
// this.changeDetector.detectChanges()
|
|
395
|
+
// this.gs.dataRangeValue.next(datavalue)
|
|
396
|
+
// this.gs.manageRefreshTrigger.next(true);
|
|
397
|
+
// this.router.navigate(['/manage/trax/task/taskinfo'], { queryParams: { type: taskinfo.checkListType, store_id: taskinfo.store_id, taskId:taskinfo.sourceCheckList_id} });
|
|
398
|
+
// }
|
|
399
|
+
|
|
400
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
<div class="p-6 editscroll">
|
|
2
|
+
<span class="my-2"><svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<rect x="4" y="4" width="48" height="48" rx="24" fill="#DAF1FF" />
|
|
4
|
+
<rect x="4" y="4" width="48" height="48" rx="24" stroke="#EAF8FF" stroke-width="8" />
|
|
5
|
+
<path
|
|
6
|
+
d="M33 19.0001C33.2626 18.7374 33.5744 18.5291 33.9176 18.3869C34.2608 18.2448 34.6286 18.1716 35 18.1716C35.3714 18.1716 35.7392 18.2448 36.0824 18.3869C36.4256 18.5291 36.7374 18.7374 37 19.0001C37.2626 19.2627 37.471 19.5745 37.6131 19.9177C37.7553 20.2608 37.8284 20.6286 37.8284 21.0001C37.8284 21.3715 37.7553 21.7393 37.6131 22.0825C37.471 22.4256 37.2626 22.7374 37 23.0001L23.5 36.5001L18 38.0001L19.5 32.5001L33 19.0001Z"
|
|
7
|
+
stroke="#00A3FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
8
|
+
</svg>
|
|
9
|
+
</span>
|
|
10
|
+
<div class="col-md-12 ">
|
|
11
|
+
<div class="row my-5">
|
|
12
|
+
<div class="col-md-4">
|
|
13
|
+
<div class="tasktitle mb-4">
|
|
14
|
+
Task Title :
|
|
15
|
+
</div>
|
|
16
|
+
<div class="tasktitle">
|
|
17
|
+
Description :
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-md-8">
|
|
21
|
+
<div class="tasksub mb-4">
|
|
22
|
+
{{taskDetails?.checkListName || "--"}}
|
|
23
|
+
</div>
|
|
24
|
+
<div class="tasksub">
|
|
25
|
+
{{taskDetails?.checkListDescription || "--"}}
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
</div>
|
|
30
|
+
<div class="storetext my-4">
|
|
31
|
+
{{editRequestData?.storeName || "--"}} Configuration
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="row">
|
|
35
|
+
<div class="col-6 mb-5">
|
|
36
|
+
<div class="date-picker">
|
|
37
|
+
<label for="datepick" class="form-label">Due date</label>
|
|
38
|
+
<div style="position: relative;">
|
|
39
|
+
<svg style="position: absolute; top: 12px; left:12px;" xmlns="http://www.w3.org/2000/svg"
|
|
40
|
+
width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
41
|
+
<path
|
|
42
|
+
d="M13.3333 1.66663V4.99996M6.66667 1.66663V4.99996M2.5 8.33329H17.5M4.16667 3.33329H15.8333C16.7538 3.33329 17.5 4.07948 17.5 4.99996V16.6666C17.5 17.5871 16.7538 18.3333 15.8333 18.3333H4.16667C3.24619 18.3333 2.5 17.5871 2.5 16.6666V4.99996C2.5 4.07948 3.24619 3.33329 4.16667 3.33329Z"
|
|
43
|
+
stroke="#344054" stroke-width="1.67" stroke-linecap="round" stroke-linejoin="round">
|
|
44
|
+
</path>
|
|
45
|
+
</svg>
|
|
46
|
+
<input id="datepick" class="fx-date-range form-control ps-14" type="text" ngxDaterangepickerMd
|
|
47
|
+
[singleDatePicker]="true" [minDate]="minDate" [drops]="'down'" [opens]="'right'"
|
|
48
|
+
[alwaysShowCalendars]="false" [keepCalendarOpeningWithRange]="true" [showCancel]="true"
|
|
49
|
+
autocomplete="off" [(ngModel)]="scheduleDate" [autoApply]="false"
|
|
50
|
+
[locale]="{ format: 'DD-MM-YYYY', firstDay: 1, monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] }"
|
|
51
|
+
name="daterange" [readonly]="true" />
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-6 mb-5">
|
|
58
|
+
<label for="timePick" class="form-label">Due time</label>
|
|
59
|
+
<input [formControl]="scheduleEndTime" type="time" class="form-control" id="timePick"
|
|
60
|
+
placeholder="name@example.com">
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-6 mb-5">
|
|
63
|
+
<label class="form-label">Approver</label>
|
|
64
|
+
<div class="position-relative">
|
|
65
|
+
<div class="dropdown-close">
|
|
66
|
+
<div class="w-100">
|
|
67
|
+
<div
|
|
68
|
+
class="outer-container d-flex align-items-center position-relative w-100">
|
|
69
|
+
<div class="input-container form-control"><span *ngFor="let approver of approver.value"
|
|
70
|
+
class="chip ng-star-inserted"><span
|
|
71
|
+
class="me-3">{{approver.name}}</span><span
|
|
72
|
+
><svg
|
|
73
|
+
xmlns="http://www.w3.org/2000/svg" width="12" height="12"
|
|
74
|
+
viewBox="0 0 12 12" fill="none">
|
|
75
|
+
<path d="M9 3L3 9M3 3L9 9" stroke="#667085"
|
|
76
|
+
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
77
|
+
</path>
|
|
78
|
+
</svg></span></span><!----><!----><input
|
|
79
|
+
type="text" id="searchInput"
|
|
80
|
+
class="form-control dropdown-input ng-untouched ng-pristine ng-valid"
|
|
81
|
+
style="min-height: 44px; cursor: not-allowed;" readonly></div>
|
|
82
|
+
</div>
|
|
83
|
+
</div><!---->
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<!-- <lib-chip-dropdown [data]="approversList" [selectedData]="approver.value"
|
|
87
|
+
(selectedList)="onApproveAdded($event)"></lib-chip-dropdown> -->
|
|
88
|
+
</div>
|
|
89
|
+
<div class="col-6 mb-5">
|
|
90
|
+
<label for="priority" class="form-label">Priority</label>
|
|
91
|
+
<input type="text" [formControl]="priorityType" class="form-control mt-1" style="cursor: not-allowed;" readonly>
|
|
92
|
+
<!-- <select [formControl]="priorityType" id="priority" class="form-select mb-5">
|
|
93
|
+
<option value="high">High</option>
|
|
94
|
+
<option value="medium">Medium</option>
|
|
95
|
+
<option value="medium">Low</option>
|
|
96
|
+
</select> -->
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="col-12 mb-5">
|
|
100
|
+
<div class="toggle-card" [ngClass]="editRequestData.allowedStoreLocation ? 'selected' : ''">
|
|
101
|
+
<div class="form-check form-switch me-4">
|
|
102
|
+
<input [(ngModel)]="editRequestData.allowedStoreLocation" [ngModelOptions]="{standalone: true}" class="form-check-input" type="checkbox" role="switch" [checked]="editRequestData.allowedStoreLocation">
|
|
103
|
+
</div>
|
|
104
|
+
<div>
|
|
105
|
+
<div class="header">Geo fencing</div>
|
|
106
|
+
<div class="desc">By enabling, the checklist can be filled by the user only when inside the
|
|
107
|
+
store.</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
</div>
|
|
112
|
+
|
|
113
|
+
<div class="col-12 mb-5">
|
|
114
|
+
<div class="toggle-card " [ngClass]="editRequestData.restrictAttendance ? 'selected' : ''">
|
|
115
|
+
<div class="form-check form-switch me-4">
|
|
116
|
+
<input [(ngModel)]="editRequestData.restrictAttendance" [ngModelOptions]="{standalone: true}" class="form-check-input" type="checkbox" role="switch" [checked]="editRequestData.restrictAttendance">
|
|
117
|
+
</div>
|
|
118
|
+
<div>
|
|
119
|
+
<div class="header">Restrict attendance</div>
|
|
120
|
+
<div class="desc">By enabling, user can't be able to clockout without completing the task.
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
</div>
|
|
126
|
+
<div class="row mt-8">
|
|
127
|
+
<div class="col-md-6">
|
|
128
|
+
<button (click)="closePopupAndReloadData()" type="button"
|
|
129
|
+
class="btn-outline btn align-items-end text-nowrap invheader w-100"><span></span>
|
|
130
|
+
Cancel </button>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="col-md-6">
|
|
133
|
+
<a (click)="onSubmit()" type="button" tabindex="0"
|
|
134
|
+
class="btn btn-primary ms-2 rounded-3 text-nowrap w-100 ng-star-inserted"><span
|
|
135
|
+
class="ms-2 text-white">Update</span></a>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
</div>
|