| 1 |
import { computed } from 'vue' |
| 2 |
import type { MenuItem } from '@/views/_components/menu/IvyMenuAccordion.vue' |
| 3 |
import type { IconType } from '@/types/icons/icon-type' |
| 4 |
import type { IconCategory } from '@/types/icons/icon-category' |
| 5 |
import { useLabels } from '@/composables/useLabels' |
| 6 |
|
| 7 |
export const templateCategories = computed<MenuItem[]>(() => { |
| 8 |
const { getLabel } = useLabels() |
| 9 |
|
| 10 |
return [ |
| 11 |
{ |
| 12 |
index: 'all', |
| 13 |
label: getLabel('all_templates'), |
| 14 |
iconConfig: { |
| 15 |
name: 'grid', |
| 16 |
type: 'outline' as IconType, |
| 17 |
category: 'global' as IconCategory, |
| 18 |
size: 'd', |
| 19 |
}, |
| 20 |
}, |
| 21 |
{ |
| 22 |
index: 'favourites', |
| 23 |
label: getLabel('favourites'), |
| 24 |
}, |
| 25 |
{ |
| 26 |
index: 'business-sales', |
| 27 |
label: getLabel('business_sales_forms'), |
| 28 |
iconConfig: { |
| 29 |
name: 'briefcase', |
| 30 |
type: 'outline' as IconType, |
| 31 |
category: 'global' as IconCategory, |
| 32 |
size: 'd', |
| 33 |
}, |
| 34 |
subItems: [ |
| 35 |
{ |
| 36 |
index: 'order-forms', |
| 37 |
label: getLabel('order_forms'), |
| 38 |
}, |
| 39 |
{ |
| 40 |
index: 'contact-forms', |
| 41 |
label: getLabel('contact_forms'), |
| 42 |
}, |
| 43 |
], |
| 44 |
}, |
| 45 |
{ |
| 46 |
index: 'requests-approvals', |
| 47 |
label: getLabel('requests_approvals'), |
| 48 |
iconConfig: { |
| 49 |
name: 'clipboard-check', |
| 50 |
type: 'outline' as IconType, |
| 51 |
category: 'global' as IconCategory, |
| 52 |
size: 'd', |
| 53 |
}, |
| 54 |
subItems: [ |
| 55 |
{ |
| 56 |
index: 'maintenance-request', |
| 57 |
label: getLabel('maintenance_request_forms'), |
| 58 |
}, |
| 59 |
{ |
| 60 |
index: 'leave-request', |
| 61 |
label: getLabel('leave_request_forms'), |
| 62 |
}, |
| 63 |
], |
| 64 |
}, |
| 65 |
{ |
| 66 |
index: 'event-booking', |
| 67 |
label: getLabel('event_booking_forms'), |
| 68 |
iconConfig: { |
| 69 |
name: 'calendar', |
| 70 |
type: 'outline' as IconType, |
| 71 |
category: 'global' as IconCategory, |
| 72 |
size: 'd', |
| 73 |
}, |
| 74 |
subItems: [ |
| 75 |
{ |
| 76 |
index: 'event-registration', |
| 77 |
label: getLabel('event_registration_form'), |
| 78 |
}, |
| 79 |
{ |
| 80 |
index: 'booking-forms', |
| 81 |
label: getLabel('booking_forms'), |
| 82 |
}, |
| 83 |
{ |
| 84 |
index: 'waiver-forms', |
| 85 |
label: getLabel('waiver_forms'), |
| 86 |
}, |
| 87 |
], |
| 88 |
}, |
| 89 |
{ |
| 90 |
index: 'consents-releases', |
| 91 |
label: getLabel('consents_releases'), |
| 92 |
subItems: [ |
| 93 |
{ |
| 94 |
index: 'consent-forms', |
| 95 |
label: getLabel('consent_forms'), |
| 96 |
}, |
| 97 |
{ |
| 98 |
index: 'release-forms', |
| 99 |
label: getLabel('release_forms'), |
| 100 |
}, |
| 101 |
], |
| 102 |
}, |
| 103 |
] |
| 104 |
}) |
| 105 |
|