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,539 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { Subject, debounceTime, distinctUntilChanged, filter, takeUntil } from "rxjs";
|
|
4
|
+
import { GlobalStateService, PageInfoService } from 'tango-app-ui-global';
|
|
5
|
+
import { ToastService } from 'tango-app-ui-shared';
|
|
6
|
+
import { TraxService } from '../../services/trax.service';
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
|
+
import utc from 'dayjs/plugin/utc';
|
|
9
|
+
dayjs.extend(utc);
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'lib-dashboard',
|
|
14
|
+
templateUrl: './dashboard.component.html',
|
|
15
|
+
styleUrl: './dashboard.component.scss'
|
|
16
|
+
})
|
|
17
|
+
export class DashboardComponent implements OnDestroy, OnInit {
|
|
18
|
+
dayjs = dayjs
|
|
19
|
+
receivedData: string = "checklist";
|
|
20
|
+
private destroy$ = new Subject();
|
|
21
|
+
isExport: boolean = false;
|
|
22
|
+
itemsPerPage = 10
|
|
23
|
+
currentPage = 1
|
|
24
|
+
totalItems = 0
|
|
25
|
+
paginationSizes:any[] = [];
|
|
26
|
+
pageSize = 10
|
|
27
|
+
sortColumName: string = '';
|
|
28
|
+
sortBy: any = '';
|
|
29
|
+
sortDirection: any = '';
|
|
30
|
+
searchInput: any ="";
|
|
31
|
+
checklistPerformance: any[] = [];
|
|
32
|
+
storePerformanceData: any[] = [];
|
|
33
|
+
userPerformanceData: any[] = [];
|
|
34
|
+
userPerformanceDataexport:boolean = false;
|
|
35
|
+
searchDisabled: boolean = false;
|
|
36
|
+
invoiceList: any[] = [];
|
|
37
|
+
checklistLoading: boolean = true;
|
|
38
|
+
checklistNoData: boolean = false;
|
|
39
|
+
storePerformanceLoading: boolean = true;
|
|
40
|
+
storePerformanceNoData: boolean = false;
|
|
41
|
+
userPerformanceLoading: boolean = true;
|
|
42
|
+
userPerformanceNoData: boolean = true;
|
|
43
|
+
headerData: any;
|
|
44
|
+
cardDataLoading: boolean = true;
|
|
45
|
+
cardNoData: boolean = false;
|
|
46
|
+
overallCardsData: any = {};
|
|
47
|
+
currentTab: string = 'checklistPerformance';
|
|
48
|
+
searchValue: string;
|
|
49
|
+
limit: number;
|
|
50
|
+
offset: number;
|
|
51
|
+
overallCardDataLoading: boolean = true;
|
|
52
|
+
overallCardDataNoData: boolean = false;
|
|
53
|
+
overallComparisonData: any = {};
|
|
54
|
+
traxMonthlyComparisonData: any = "";
|
|
55
|
+
selectedvalue: any;
|
|
56
|
+
dateType="";
|
|
57
|
+
dateLength: number;
|
|
58
|
+
type: string = 'Checklist';
|
|
59
|
+
reloadDate: string;
|
|
60
|
+
userEmailes: any = [];
|
|
61
|
+
constructor(private route: ActivatedRoute, private router: Router,public gs: GlobalStateService,private changeDetector: ChangeDetectorRef,private toast: ToastService,
|
|
62
|
+
private TraxService: TraxService, private pageInfo: PageInfoService,
|
|
63
|
+
) { this.userEmailes = JSON.parse(localStorage.getItem("usersEmail-info") || "[]" ) }
|
|
64
|
+
ngOnDestroy(): void {
|
|
65
|
+
this.destroy$.next(true);
|
|
66
|
+
this.destroy$.complete();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
ngOnInit(): void {
|
|
70
|
+
this.reloadDate = this.dayjs().format('hh:mm:ss A');
|
|
71
|
+
this.gs.dataRangeValue
|
|
72
|
+
.pipe(takeUntil(this.destroy$), debounceTime(300))
|
|
73
|
+
.subscribe((data: any) => {
|
|
74
|
+
this.headerData = data;
|
|
75
|
+
this.dateType = localStorage.getItem('dashboardDateType') || 'daily';
|
|
76
|
+
localStorage.setItem('dashboardDateType', this.dateType);
|
|
77
|
+
// if ( !this.dateType) {
|
|
78
|
+
// this.dateType = 'daily'
|
|
79
|
+
// }
|
|
80
|
+
// this.dateLength = getDaysBetweenDates(data?.date.startDate, data?.date.endDate);
|
|
81
|
+
// if (this.dateLength > 28)
|
|
82
|
+
// this.dateType = "monthly";
|
|
83
|
+
// else if (this.dateLength > 5)
|
|
84
|
+
// this.dateType = "weekly";
|
|
85
|
+
// else if(this.dateLength === 0)
|
|
86
|
+
// this.dateType = "weekly";
|
|
87
|
+
|
|
88
|
+
this.setPageData();
|
|
89
|
+
this.getOverallCardsData();
|
|
90
|
+
this.getOverallComparisonCardsData()
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
this.route?.queryParams
|
|
94
|
+
?.pipe(takeUntil(this.destroy$))
|
|
95
|
+
.subscribe((params) => {
|
|
96
|
+
if (params.type === "store") {
|
|
97
|
+
this.receivedData = "store";
|
|
98
|
+
this.getStorePerformanceData();
|
|
99
|
+
} else if (params.type === "user"){
|
|
100
|
+
this.receivedData = "user";
|
|
101
|
+
this.getUserPerformanceData();
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this.receivedData = "checklist";
|
|
105
|
+
this.getChecklistPerformanceData();
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
setPageData() {
|
|
112
|
+
this.pageInfo.setTitle("Dashboard");
|
|
113
|
+
// this.pageInfo.setDescription("Dashboard");
|
|
114
|
+
this.pageInfo.setBreadcrumbs([
|
|
115
|
+
{ title: "Tango Trax", path: "/manage/trax/dashboard", isActive: false, isSeparator: false },
|
|
116
|
+
{ title: "Tango Trax", path: "/manage/trax/dashboard", isActive: false, isSeparator: true },
|
|
117
|
+
]);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
Selecttabs(tab: string) {
|
|
121
|
+
this.currentTab = tab;
|
|
122
|
+
this.sortColumName = "",
|
|
123
|
+
this.sortDirection = "",
|
|
124
|
+
this.searchInput = "",
|
|
125
|
+
this.itemsPerPage = 10,
|
|
126
|
+
this.currentPage= 1,
|
|
127
|
+
this.pageSize = 10
|
|
128
|
+
this.router.navigate([], {
|
|
129
|
+
relativeTo: this.route,
|
|
130
|
+
queryParams: { type: tab },
|
|
131
|
+
queryParamsHandling: 'merge',
|
|
132
|
+
})
|
|
133
|
+
switch (tab) {
|
|
134
|
+
case 'checklistPerformance':
|
|
135
|
+
this.getChecklistPerformanceData();
|
|
136
|
+
break;
|
|
137
|
+
case 'storePerformance':
|
|
138
|
+
this.getStorePerformanceData();
|
|
139
|
+
break;
|
|
140
|
+
case 'userPerformance':
|
|
141
|
+
this.getUserPerformanceData();
|
|
142
|
+
break;
|
|
143
|
+
default:
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
getOverallCardsData(): void {
|
|
148
|
+
this.overallCardsData = []
|
|
149
|
+
this.cardDataLoading = true;
|
|
150
|
+
this.cardNoData = true;
|
|
151
|
+
const requestData = {
|
|
152
|
+
fromDate: this.headerData.date.startDate,
|
|
153
|
+
toDate: this.headerData.date.endDate,
|
|
154
|
+
storeId: this.headerData.stores.filter((store:any) => store.checked).map((store:any) => store.storeId),
|
|
155
|
+
clientId: this.headerData.client,
|
|
156
|
+
userEmailes: this.userEmailes
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
this.TraxService.getOverallCardsData(requestData).pipe(takeUntil(this.destroy$)).subscribe((response: any) => {
|
|
160
|
+
this.cardDataLoading = false;
|
|
161
|
+
if (response?.code === 200 && response?.status === "success") {
|
|
162
|
+
this.overallCardsData = response.data?.overallCards || {};
|
|
163
|
+
this.cardDataLoading = false;
|
|
164
|
+
this.cardNoData = false;
|
|
165
|
+
} else {
|
|
166
|
+
this.overallCardsData = []
|
|
167
|
+
this.cardDataLoading = false;
|
|
168
|
+
this.cardNoData = true;
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
error => {
|
|
172
|
+
this.overallCardsData = []
|
|
173
|
+
this.cardDataLoading = false;
|
|
174
|
+
this.cardNoData = true;
|
|
175
|
+
this.changeDetector.detectChanges()
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
getOverallComparisonCardsData(): void {
|
|
180
|
+
this.overallComparisonData = []
|
|
181
|
+
this.overallCardDataLoading = true;
|
|
182
|
+
this.overallCardDataNoData = true;
|
|
183
|
+
const requestData = {
|
|
184
|
+
fromDate: this.headerData.date.startDate,
|
|
185
|
+
toDate: this.headerData.date.endDate,
|
|
186
|
+
storeId: this.headerData.stores.filter((store:any) => store.checked).map((store:any) => store.storeId),
|
|
187
|
+
clientId:this.headerData.client,
|
|
188
|
+
dateType: this.dateType,
|
|
189
|
+
userEmailes: this.userEmailes
|
|
190
|
+
// groupByType: this.receivedData,
|
|
191
|
+
// groupByValue: this.selectedvalue,
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
this.TraxService.getOverallComparisonCardsData(requestData).pipe(takeUntil(this.destroy$)).subscribe((response: any) => {
|
|
195
|
+
this.overallCardDataLoading = false;
|
|
196
|
+
if (response?.code === 200 && response?.status === "success") {
|
|
197
|
+
this.overallComparisonData = response.data?.overallComparisonCards || {};
|
|
198
|
+
if (this.traxMonthlyComparisonData == '') {
|
|
199
|
+
this.traxMonthlyComparisonData = response?.data?.overallComparisonCards?.traxMonthlyComparison
|
|
200
|
+
}
|
|
201
|
+
this.overallCardDataLoading = false;
|
|
202
|
+
this.overallCardDataNoData = false;
|
|
203
|
+
} else {
|
|
204
|
+
this.overallComparisonData = []
|
|
205
|
+
this.overallCardDataLoading = false;
|
|
206
|
+
this.overallCardDataNoData = true;
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
error => {
|
|
210
|
+
this.overallComparisonData = []
|
|
211
|
+
this.overallCardDataLoading = false;
|
|
212
|
+
this.overallCardDataNoData = true;
|
|
213
|
+
this.changeDetector.detectChanges()
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
getChecklistPerformanceData(): void {
|
|
219
|
+
this.searchDisabled = true;
|
|
220
|
+
this.checklistLoading = true;
|
|
221
|
+
this.checklistNoData = true;
|
|
222
|
+
const requestData = {
|
|
223
|
+
fromDate: this.headerData.date.startDate,
|
|
224
|
+
toDate: this.headerData.date.endDate,
|
|
225
|
+
storeId: this.headerData.stores.filter((store:any) => store.checked).map((store:any) => store.storeId),
|
|
226
|
+
clientId: this.headerData.client,
|
|
227
|
+
userEmailes: this.userEmailes,
|
|
228
|
+
limit: this.itemsPerPage,
|
|
229
|
+
offset: this.currentPage - 1,
|
|
230
|
+
sortBy: this.sortDirection,
|
|
231
|
+
sortColumnName: this.sortColumName,
|
|
232
|
+
searchValue: this.searchInput,
|
|
233
|
+
export: false,
|
|
234
|
+
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
this.TraxService.getChecklistPerformanceData(requestData)
|
|
238
|
+
.pipe(takeUntil(this.destroy$))
|
|
239
|
+
.subscribe((response: any) => {
|
|
240
|
+
this.checklistLoading = false;
|
|
241
|
+
if (response?.code === 200 && response?.status === "success") {
|
|
242
|
+
this.checklistPerformance = response.data.checklistPerformance || [];
|
|
243
|
+
this.totalItems = response.data.totalCount
|
|
244
|
+
this.setPaginationSizes()
|
|
245
|
+
this.checklistLoading = false;
|
|
246
|
+
this.checklistNoData = false;
|
|
247
|
+
this.searchDisabled = false;
|
|
248
|
+
} else {
|
|
249
|
+
this.checklistPerformance = [];
|
|
250
|
+
this.checklistLoading = false;
|
|
251
|
+
this.checklistNoData = true;
|
|
252
|
+
this.searchDisabled = true;
|
|
253
|
+
if (this.searchInput?.length) {
|
|
254
|
+
this.searchDisabled = true
|
|
255
|
+
}
|
|
256
|
+
this.checklistPerformance = []
|
|
257
|
+
this.totalItems = 0
|
|
258
|
+
this.changeDetector.detectChanges()
|
|
259
|
+
}
|
|
260
|
+
}, error => {
|
|
261
|
+
this.checklistPerformance = []
|
|
262
|
+
this.changeDetector.detectChanges()
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
getStorePerformanceData(): void {
|
|
266
|
+
this.searchDisabled = true;
|
|
267
|
+
this.storePerformanceLoading = true;
|
|
268
|
+
this.storePerformanceNoData = true;
|
|
269
|
+
const requestData = {
|
|
270
|
+
fromDate: this.headerData.date.startDate,
|
|
271
|
+
toDate: this.headerData.date.endDate,
|
|
272
|
+
storeId: this.headerData.stores.filter((store:any) => store.checked).map((store:any) => store.storeId),
|
|
273
|
+
clientId: this.headerData.client,
|
|
274
|
+
userEmailes: this.userEmailes,
|
|
275
|
+
limit: this.itemsPerPage,
|
|
276
|
+
offset: this.currentPage - 1,
|
|
277
|
+
sortBy: this.sortDirection,
|
|
278
|
+
sortColumnName: this.sortColumName,
|
|
279
|
+
searchValue: this.searchInput,
|
|
280
|
+
export: false,
|
|
281
|
+
};
|
|
282
|
+
this.TraxService.getStorePerformanceData(requestData).subscribe({
|
|
283
|
+
next: (response: any) => {
|
|
284
|
+
this.storePerformanceLoading = false;
|
|
285
|
+
if (response?.code === 200 && response?.status === "success") {
|
|
286
|
+
this.storePerformanceData = response.data.storePerformance || [];
|
|
287
|
+
this.totalItems = response.data.totalCount;
|
|
288
|
+
this.setPaginationSizes()
|
|
289
|
+
this.storePerformanceLoading = false;
|
|
290
|
+
this.storePerformanceNoData = false;
|
|
291
|
+
this.searchDisabled = false;
|
|
292
|
+
} else {
|
|
293
|
+
this.storePerformanceData = [];
|
|
294
|
+
this.storePerformanceLoading = false;
|
|
295
|
+
this.storePerformanceNoData = true;
|
|
296
|
+
this.searchDisabled = true;
|
|
297
|
+
if (this.searchInput?.length) {
|
|
298
|
+
this.searchDisabled = true
|
|
299
|
+
}
|
|
300
|
+
this.storePerformanceData = []
|
|
301
|
+
this.totalItems = 0
|
|
302
|
+
this.changeDetector.detectChanges()
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
error: () => {
|
|
306
|
+
this.storePerformanceData = [];
|
|
307
|
+
this.changeDetector.detectChanges()
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
getUserPerformanceData(): void {
|
|
312
|
+
this.searchDisabled = true;
|
|
313
|
+
this.userPerformanceLoading = true;
|
|
314
|
+
this.userPerformanceNoData = true;
|
|
315
|
+
const requestData = {
|
|
316
|
+
fromDate: this.headerData.date.startDate,
|
|
317
|
+
toDate: this.headerData.date.endDate,
|
|
318
|
+
storeId: this.headerData.stores.filter((store: any) => store.checked).map((store: any) => store.storeId),
|
|
319
|
+
userEmailes: this.userEmailes,
|
|
320
|
+
clientId: this.headerData.client,
|
|
321
|
+
limit: this.itemsPerPage,
|
|
322
|
+
offset: this.currentPage - 1,
|
|
323
|
+
sortBy: this.sortDirection,
|
|
324
|
+
sortColumnName: this.sortColumName,
|
|
325
|
+
searchValue: this.searchInput,
|
|
326
|
+
export:this.userPerformanceDataexport
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
this.TraxService.getUserPerformanceData(requestData).subscribe({
|
|
330
|
+
next: (response: any) => {
|
|
331
|
+
this.userPerformanceLoading = false;
|
|
332
|
+
if (response?.code === 200 && response?.status === "success") {
|
|
333
|
+
this.userPerformanceData = response.data.userPerformance || [];
|
|
334
|
+
this.totalItems = response.data.totalCount;
|
|
335
|
+
this.setPaginationSizes()
|
|
336
|
+
this.userPerformanceLoading = false;
|
|
337
|
+
this.userPerformanceNoData = false;
|
|
338
|
+
this.searchDisabled = false;
|
|
339
|
+
} else {
|
|
340
|
+
this.userPerformanceData = [];
|
|
341
|
+
this.userPerformanceLoading = false;
|
|
342
|
+
this.userPerformanceNoData = true;
|
|
343
|
+
this.searchDisabled = true;
|
|
344
|
+
if (this.searchInput?.length) {
|
|
345
|
+
this.searchDisabled = true
|
|
346
|
+
}
|
|
347
|
+
this.userPerformanceData = []
|
|
348
|
+
this.totalItems = 0
|
|
349
|
+
this.changeDetector.detectChanges()
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
error: () => {
|
|
353
|
+
this.userPerformanceData = [];
|
|
354
|
+
this.changeDetector.detectChanges()
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
onExport(): void {
|
|
362
|
+
this.currentPage = 0;
|
|
363
|
+
const requestData = {
|
|
364
|
+
fromDate: this.headerData.date.startDate,
|
|
365
|
+
toDate: this.headerData.date.endDate,
|
|
366
|
+
storeId: this.headerData.stores.filter((store: any) => store.checked).map((store: any) => store.storeId),
|
|
367
|
+
userEmailes: this.userEmailes,
|
|
368
|
+
clientId:this.headerData.client,
|
|
369
|
+
limit: 10000,
|
|
370
|
+
offset: this.currentPage,
|
|
371
|
+
sortBy: this.sortDirection,
|
|
372
|
+
sortColumnName: this.sortColumName,
|
|
373
|
+
searchValue: this.searchInput,
|
|
374
|
+
export: true
|
|
375
|
+
|
|
376
|
+
};
|
|
377
|
+
switch (this.receivedData) {
|
|
378
|
+
case 'checklist':
|
|
379
|
+
this.TraxService.getChecklistPerformanceDataExport(requestData)
|
|
380
|
+
.pipe(takeUntil(this.destroy$))
|
|
381
|
+
.subscribe({
|
|
382
|
+
next: (res) => {
|
|
383
|
+
this.TraxService.saveAsExcelFile(res, 'ChecklistPerformanceTable');
|
|
384
|
+
},
|
|
385
|
+
error: (e) => {
|
|
386
|
+
this.toast.getErrorToast('Something went Wrong..')
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
break;
|
|
390
|
+
case 'store':
|
|
391
|
+
this.TraxService.getStorePerformanceDataExport(requestData)
|
|
392
|
+
.pipe(takeUntil(this.destroy$))
|
|
393
|
+
.subscribe({
|
|
394
|
+
next: (res) => {
|
|
395
|
+
this.TraxService.saveAsExcelFile(res, 'StorePerformanceTable');
|
|
396
|
+
},
|
|
397
|
+
error: (e) => {
|
|
398
|
+
this.toast.getErrorToast('Something went Wrong..')
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
break;
|
|
402
|
+
case 'user':
|
|
403
|
+
this.TraxService.getUserPerformanceDataExport(requestData)
|
|
404
|
+
.pipe(takeUntil(this.destroy$))
|
|
405
|
+
.subscribe({
|
|
406
|
+
next: (res) => {
|
|
407
|
+
this.TraxService.saveAsExcelFile(res, 'UserPerformanceTable');
|
|
408
|
+
},
|
|
409
|
+
error: (e) => {
|
|
410
|
+
this.toast.getErrorToast('Something went Wrong..')
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
break;
|
|
414
|
+
default:
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
searchField(): void {
|
|
418
|
+
this.headerData.searchValue = this.searchInput;
|
|
419
|
+
this.headerData.export = false;
|
|
420
|
+
this.currentPage = 1;
|
|
421
|
+
this.pageSize=10;
|
|
422
|
+
switch (this.receivedData) {
|
|
423
|
+
case 'checklist':
|
|
424
|
+
this.getChecklistPerformanceData();
|
|
425
|
+
break;
|
|
426
|
+
case 'store':
|
|
427
|
+
this.getStorePerformanceData();
|
|
428
|
+
break;
|
|
429
|
+
case 'user':
|
|
430
|
+
this.getUserPerformanceData();
|
|
431
|
+
break;
|
|
432
|
+
default:
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
sortData(column: string): void {
|
|
436
|
+
if (this.sortColumName === column) {
|
|
437
|
+
this.sortDirection = this.sortDirection === 1 ? -1 : 1;
|
|
438
|
+
} else {
|
|
439
|
+
this.sortColumName = column;
|
|
440
|
+
this.sortDirection = 1;
|
|
441
|
+
}
|
|
442
|
+
switch (this.receivedData) {
|
|
443
|
+
case 'checklist':
|
|
444
|
+
this.getChecklistPerformanceData();
|
|
445
|
+
break;
|
|
446
|
+
case 'store':
|
|
447
|
+
this.getStorePerformanceData();
|
|
448
|
+
break;
|
|
449
|
+
case 'user':
|
|
450
|
+
this.getUserPerformanceData();
|
|
451
|
+
break;
|
|
452
|
+
default:
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
onPageSizeChange(pageSize: any) {
|
|
456
|
+
this.currentPage = 1;
|
|
457
|
+
this.itemsPerPage = parseInt(pageSize);
|
|
458
|
+
this.pageSize = parseInt(pageSize);
|
|
459
|
+
this.changeDetector.detectChanges();
|
|
460
|
+
switch (this.receivedData) {
|
|
461
|
+
case 'checklist':
|
|
462
|
+
this.getChecklistPerformanceData();
|
|
463
|
+
break;
|
|
464
|
+
case 'store':
|
|
465
|
+
this.getStorePerformanceData();
|
|
466
|
+
break;
|
|
467
|
+
case 'user':
|
|
468
|
+
this.getUserPerformanceData();
|
|
469
|
+
break;
|
|
470
|
+
default:
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
onPageChange(pageOffset: any) {
|
|
474
|
+
this.currentPage = pageOffset
|
|
475
|
+
switch (this.receivedData) {
|
|
476
|
+
case 'checklist':
|
|
477
|
+
this.getChecklistPerformanceData();
|
|
478
|
+
break;
|
|
479
|
+
case 'store':
|
|
480
|
+
this.getStorePerformanceData();
|
|
481
|
+
break;
|
|
482
|
+
case 'user':
|
|
483
|
+
this.getUserPerformanceData();
|
|
484
|
+
break;
|
|
485
|
+
default:
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
setPaginationSizes() {
|
|
489
|
+
if (this.totalItems > 10) {
|
|
490
|
+
this.paginationSizes = [10, 20, 30];
|
|
491
|
+
} else {
|
|
492
|
+
this.paginationSizes = [this.totalItems];
|
|
493
|
+
this.pageSize = this.totalItems;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
}
|
|
497
|
+
storeView(data:any){
|
|
498
|
+
const datavalue: any = JSON.parse(
|
|
499
|
+
localStorage.getItem("header-filters") || "{}"
|
|
500
|
+
);
|
|
501
|
+
const matchedStores = datavalue.stores.filter((store: any) => store.checked && store.storeId === data);
|
|
502
|
+
datavalue.stores.forEach((store: any) => {
|
|
503
|
+
if (!matchedStores.some((matchedStore:any) => matchedStore.storeId === store.storeId)) {
|
|
504
|
+
store.checked = false;
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
datavalue.store = data;
|
|
508
|
+
localStorage.setItem("header-filters", JSON.stringify(datavalue));
|
|
509
|
+
this.changeDetector.detectChanges()
|
|
510
|
+
this.gs.dataRangeValue.next(datavalue)
|
|
511
|
+
this.gs.manageRefreshTrigger.next(true);
|
|
512
|
+
this.router.navigate(['/manage/trax/dashboard/info'], { queryParams: { type: 'store', store_id: data, } });
|
|
513
|
+
}
|
|
514
|
+
dateValue(type: string): void {
|
|
515
|
+
this.dateType = type;
|
|
516
|
+
localStorage.setItem('dashboardDateType', type);
|
|
517
|
+
this.getOverallComparisonCardsData();
|
|
518
|
+
}
|
|
519
|
+
selectPlan(selectedType: string): void {
|
|
520
|
+
this.type = selectedType;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
interface DataContext {
|
|
525
|
+
category: string;
|
|
526
|
+
value: number;
|
|
527
|
+
count: number;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
function getDaysBetweenDates(fromDate: string, toDate: string): number {
|
|
531
|
+
// Parse the date strings into Date objects
|
|
532
|
+
const start = new Date(fromDate);
|
|
533
|
+
const end = new Date(toDate);
|
|
534
|
+
const differenceInMs = end.getTime() - start.getTime();
|
|
535
|
+
const millisecondsPerDay = 86400000;
|
|
536
|
+
const differenceInDays = Math.floor(differenceInMs / millisecondsPerDay);
|
|
537
|
+
|
|
538
|
+
return differenceInDays;
|
|
539
|
+
}
|