import { eGpsHeadingDirection, eGpsMotionStatus } from '../../enums'; export class GpsLocationConstants { static GPS_DEVICE_COLORS: Record = { [eGpsMotionStatus.MOVING]: '#6692F1', [eGpsMotionStatus.SHORT_STOP]: '#FAB15C', [eGpsMotionStatus.EXTENDED_STOP]: '#E66767', [eGpsMotionStatus.PARKING]: '#919191', [eGpsMotionStatus.NO_GPS_DEVICE]: '#91919133', }; static GPS_DEVICE_HOVER_COLORS: Record = { [eGpsMotionStatus.MOVING]: '#3B73ED', [eGpsMotionStatus.SHORT_STOP]: '#F89B2E', [eGpsMotionStatus.EXTENDED_STOP]: '#DF3C3C', [eGpsMotionStatus.PARKING]: '#6C6C6C', [eGpsMotionStatus.NO_GPS_DEVICE]: '#91919133', }; static GPS_SVG_CLASSES: Record< eGpsMotionStatus, { fill: string; hover: string } > = { [eGpsMotionStatus.MOVING]: { fill: 'blue-8', hover: 'blue-14' }, [eGpsMotionStatus.SHORT_STOP]: { fill: 'yellow-1', hover: 'yellow-5' }, [eGpsMotionStatus.EXTENDED_STOP]: { fill: 'red-10', hover: 'red-11' }, [eGpsMotionStatus.PARKING]: { fill: 'muted', hover: 'bw6-2' }, [eGpsMotionStatus.NO_GPS_DEVICE]: { fill: 'dark-2', hover: 'dark-2' }, }; static GPS_SVG_FILL_COLORS: Record = { [eGpsMotionStatus.MOVING]: '#6692F1', [eGpsMotionStatus.SHORT_STOP]: '#FAB15C', [eGpsMotionStatus.EXTENDED_STOP]: '#E66767', [eGpsMotionStatus.PARKING]: '#AAAAAA', [eGpsMotionStatus.NO_GPS_DEVICE]: '#6C6C6C', }; static GPS_TITLES: Record = { [eGpsMotionStatus.MOVING]: 'MOVING', [eGpsMotionStatus.SHORT_STOP]: 'SHORT STOP', [eGpsMotionStatus.EXTENDED_STOP]: 'EXTENDED STOP', [eGpsMotionStatus.PARKING]: 'PARKING', [eGpsMotionStatus.NO_GPS_DEVICE]: 'NO GPS DEVICE', }; static GPS_TITLE_COLOR_CLASSES: Record = { [eGpsMotionStatus.MOVING]: 'text-color-blue-14', [eGpsMotionStatus.SHORT_STOP]: 'text-color-yellow-4', [eGpsMotionStatus.EXTENDED_STOP]: 'text-color-red-11', [eGpsMotionStatus.PARKING]: 'text-color-muted', [eGpsMotionStatus.NO_GPS_DEVICE]: 'text-color-light-grey-2', }; static GPS_TITLE_DROPDOWN_COLOR_CLASSES: Record = { [eGpsMotionStatus.MOVING]: 'text-color-blue-19', [eGpsMotionStatus.SHORT_STOP]: 'text-color-yellow-5', [eGpsMotionStatus.EXTENDED_STOP]: 'text-color-red-13', [eGpsMotionStatus.PARKING]: 'text-color-muted', [eGpsMotionStatus.NO_GPS_DEVICE]: 'text-color-light-grey-2', }; static GPS_HEADING_ROTATION_ANGLE: Record = { [eGpsHeadingDirection.N]: 0, [eGpsHeadingDirection.NE]: 45, [eGpsHeadingDirection.E]: 90, [eGpsHeadingDirection.SE]: 135, [eGpsHeadingDirection.S]: 180, [eGpsHeadingDirection.SW]: 225, [eGpsHeadingDirection.W]: 270, [eGpsHeadingDirection.NW]: 315, }; static GPS_MOTION_TEXT: Record< eGpsMotionStatus, { text: string; textColorClass: string } > = { [eGpsMotionStatus.MOVING]: { text: 'Driving', textColorClass: 'text-color-blue-14', }, [eGpsMotionStatus.SHORT_STOP]: { text: 'Short Stop', textColorClass: 'text-color-yellow-5', }, [eGpsMotionStatus.EXTENDED_STOP]: { text: 'Extended Stop', textColorClass: 'text-color-red-11', }, [eGpsMotionStatus.PARKING]: { text: 'Parking', textColorClass: 'text-color-bw6-2', }, [eGpsMotionStatus.NO_GPS_DEVICE]: { text: 'No GPS Device', textColorClass: 'text-color-muted', }, }; static GPS_IGNITION_SVG_CLASSES: Record = { [eGpsMotionStatus.MOVING]: 'svg-fill-blue-8', [eGpsMotionStatus.SHORT_STOP]: 'svg-fill-yellow-1', [eGpsMotionStatus.EXTENDED_STOP]: 'svg-fill-red-10', [eGpsMotionStatus.PARKING]: 'svg-fill-muted', [eGpsMotionStatus.NO_GPS_DEVICE]: 'svg-fill-light-grey-6', }; }