PluginProbe
The Innovative Form Builder – IvyForms / 0.6
The Innovative Form Builder – IvyForms v0.6
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / constants / templateCategories.ts

templateCategories.ts in The Innovative Form Builder – IvyForms 0.6, at frontend/src/constants/templateCategories.ts

105 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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