mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 12:37:56 +00:00 
			
		
		
		
	* feat: SLA report table * feat: Add SLA popover card * feat: Update popover position * feat: Add loader * Update SLACardLabel.vue * feat: Update column order * chore: fix conditions * Update SLATable.vue * chore: enable reports in ui * chore: Revamp report SLA apis * chore: revert download method * chore: improve the code * Update enterprise/app/views/api/v1/accounts/applied_slas/download.csv.erb Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * chore: style fixes * chore: fix specs * feat: Add number of conversations * chore: review comments * fix: translation * Update app/javascript/dashboard/i18n/locale/en/report.json Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * Update app/javascript/dashboard/i18n/locale/en/report.json Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * Update app/javascript/dashboard/i18n/locale/en/report.json Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> * Update SLAReportItem.vue * Update report.json * Update package.json * chore: review comments * chore: remove unused translation * feat: Add TableHeaderCell component * chore: more review fixes * Update app/javascript/dashboard/components/widgets/TableHeaderCell.vue Co-authored-by: Shivam Mishra <scm.mymail@gmail.com> * Update TableHeaderCell.vue --------- Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com> Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			966 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			966 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<script setup>
 | 
						|
import { computed } from 'vue';
 | 
						|
const props = defineProps({
 | 
						|
  span: {
 | 
						|
    type: Number,
 | 
						|
    required: true,
 | 
						|
  },
 | 
						|
  label: {
 | 
						|
    type: String,
 | 
						|
    required: true,
 | 
						|
    default: '',
 | 
						|
  },
 | 
						|
});
 | 
						|
 | 
						|
const spanClass = computed(() => {
 | 
						|
  if (props.span === 1) return 'col-span-1';
 | 
						|
  if (props.span === 2) return 'col-span-2';
 | 
						|
  if (props.span === 3) return 'col-span-3';
 | 
						|
  if (props.span === 4) return 'col-span-4';
 | 
						|
  if (props.span === 5) return 'col-span-5';
 | 
						|
  if (props.span === 6) return 'col-span-6';
 | 
						|
  if (props.span === 7) return 'col-span-7';
 | 
						|
  if (props.span === 8) return 'col-span-8';
 | 
						|
  if (props.span === 9) return 'col-span-9';
 | 
						|
  if (props.span === 10) return 'col-span-10';
 | 
						|
 | 
						|
  return 'col-span-1';
 | 
						|
});
 | 
						|
</script>
 | 
						|
<template>
 | 
						|
  <div
 | 
						|
    class="flex items-center px-0 py-2 text-xs font-medium text-left uppercase text-slate-700 dark:text-slate-100 rtl:text-right"
 | 
						|
    :class="spanClass"
 | 
						|
  >
 | 
						|
    <slot>
 | 
						|
      {{ label }}
 | 
						|
    </slot>
 | 
						|
  </div>
 | 
						|
</template>
 |