1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699 |
- <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
- <!-- eslint-disable zammad/zammad-detect-translatable-string -->
- <script setup lang="ts">
- import { reset } from '@formkit/core'
- import gql from 'graphql-tag'
- import { storeToRefs } from 'pinia'
- import {
- computed,
- h,
- onMounted,
- reactive,
- ref,
- watch,
- type Ref,
- useTemplateRef,
- } from 'vue'
- import CommonAlert from '#shared/components/CommonAlert/CommonAlert.vue'
- import CommonPopover from '#shared/components/CommonPopover/CommonPopover.vue'
- import type {
- Orientation,
- Placement,
- } from '#shared/components/CommonPopover/types.ts'
- import { usePopover } from '#shared/components/CommonPopover/usePopover.ts'
- import CommonUserAvatar from '#shared/components/CommonUserAvatar/CommonUserAvatar.vue'
- import Form from '#shared/components/Form/Form.vue'
- import type {
- FormSchemaNode,
- FormValues,
- } from '#shared/components/Form/types.ts'
- import { useConfirmation } from '#shared/composables/useConfirmation.ts'
- import { useCopyToClipboard } from '#shared/composables/useCopyToClipboard.ts'
- import { defineFormSchema } from '#shared/form/defineFormSchema.ts'
- import { EnumObjectManagerObjects } from '#shared/graphql/types.ts'
- import { useApplicationStore } from '#shared/stores/application.ts'
- import { useSessionStore } from '#shared/stores/session.ts'
- import CommonActionMenu from '#desktop/components/CommonActionMenu/CommonActionMenu.vue'
- import CommonBreadcrumb from '#desktop/components/CommonBreadcrumb/CommonBreadcrumb.vue'
- import CommonButton from '#desktop/components/CommonButton/CommonButton.vue'
- import CommonButtonGroup from '#desktop/components/CommonButtonGroup/CommonButtonGroup.vue'
- import type { CommonButtonItem } from '#desktop/components/CommonButtonGroup/types.ts'
- import CommonDialog from '#desktop/components/CommonDialog/CommonDialog.vue'
- import { useDialog } from '#desktop/components/CommonDialog/useDialog.ts'
- import CommonFlyout from '#desktop/components/CommonFlyout/CommonFlyout.vue'
- import { useFlyout } from '#desktop/components/CommonFlyout/useFlyout.ts'
- import CommonInlineEdit from '#desktop/components/CommonInlineEdit/CommonInlineEdit.vue'
- import CommonInputCopyToClipboard from '#desktop/components/CommonInputCopyToClipboard/CommonInputCopyToClipboard.vue'
- import CommonPopoverMenu from '#desktop/components/CommonPopoverMenu/CommonPopoverMenu.vue'
- import type { MenuItem } from '#desktop/components/CommonPopoverMenu/types.ts'
- import CommonProgressBar from '#desktop/components/CommonProgressBar/CommonProgressBar.vue'
- import CommonSimpleTable from '#desktop/components/CommonSimpleTable/CommonSimpleTable.vue'
- import CommonTabManager from '#desktop/components/CommonTabManager/CommonTabManager.vue'
- import { useTabManager } from '#desktop/components/CommonTabManager/useTabManager.ts'
- import LayoutContent from '#desktop/components/layout/LayoutContent.vue'
- import ThemeSwitch from '#desktop/components/ThemeSwitch/ThemeSwitch.vue'
- const alphabetOptions = computed(() =>
- [...Array(26).keys()].map((i) => ({
- value: i,
- label: `Item ${String.fromCharCode(65 + i)}`,
- disabled: Math.random() < 0.5,
- })),
- )
- const { copyToClipboard } = useCopyToClipboard()
- const longOption = ref({
- value: 999,
- label:
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, nullam pulvinar nunc sapien, vitae malesuada justo interdum feugiat, mauris odio, mattis et malesuada quis, vulputate vitae enim',
- })
- const permissions = [
- {
- value: 'admin',
- label: 'Admin interface',
- description: 'To configure your system.',
- children: [
- {
- value: 'admin.user',
- label: 'Users',
- description: 'To manage all users of your system.',
- },
- {
- value: 'admin.group',
- label: 'Groups',
- description: 'To manage groups of your system.',
- },
- {
- value: 'admin.role',
- label: 'Roles',
- description: 'To manage roles of your system.',
- },
- {
- value: 'admin.organization',
- label: 'Organizations',
- description: 'To manage all organizations of your system.',
- },
- {
- value: 'admin.overview',
- label: 'Overviews',
- description: 'To manage ticket overviews of your system.',
- },
- {
- value: 'admin.text_module',
- label: 'Text modules',
- description: 'To manage text modules of your system.',
- },
- {
- value: 'admin.macro',
- label: 'Macros',
- description: 'To manage ticket macros of your system.',
- },
- {
- value: 'admin.template',
- label: 'Templates',
- description: 'To manage ticket templates of your system.',
- },
- {
- value: 'admin.tag',
- label: 'Tags',
- description: 'To manage ticket tags of your system.',
- },
- {
- value: 'admin.calendar',
- label: 'Calendar',
- description: 'To manage calendars of your system.',
- },
- {
- value: 'admin.sla',
- label: 'SLAs',
- description: 'To manage Service Level Agreements of your system.',
- },
- {
- value: 'admin.trigger',
- label: 'Trigger',
- description: 'To manage triggers of your system.',
- },
- {
- value: 'admin.public_links',
- label: 'Public Links',
- description: 'To manage public links of your system.',
- },
- {
- value: 'admin.webhook',
- label: 'Webhook',
- description: 'To manage webhooks of your system.',
- },
- {
- value: 'admin.scheduler',
- label: 'Scheduler',
- description: 'To manage schedulers of your system.',
- },
- {
- value: 'admin.report_profile',
- label: 'Report Profiles',
- description: 'To manage report profiles of your system.',
- },
- {
- value: 'admin.time_accounting',
- label: 'Time Accounting',
- description: 'To manage time accounting settings of your system.',
- },
- {
- value: 'admin.knowledge_base',
- label: 'Knowledge Base',
- description: 'To create and set up Knowledge Base.',
- },
- {
- value: 'admin.channel_web',
- label: 'Web',
- description: 'To manage web channel of your system.',
- },
- {
- value: 'admin.channel_formular',
- label: 'Form',
- description: 'To manage form channel of your system.',
- },
- {
- value: 'admin.channel_email',
- label: 'Email',
- description: 'To manage email channel of your system.',
- },
- {
- value: 'admin.channel_sms',
- label: 'SMS',
- description: 'To manage SMS channel of your system.',
- },
- {
- value: 'admin.channel_chat',
- label: 'Chat',
- description: 'To manage chat channel of your system.',
- },
- {
- value: 'admin.channel_google',
- label: 'Google',
- description: 'To manage Google channel of your system.',
- },
- {
- value: 'admin.channel_microsoft365',
- label: ' Microsoft 365',
- description: 'To manage Microsoft 365 channel of your system.',
- },
- {
- value: 'admin.channel_twitter',
- label: 'Twitter',
- description: 'To manage Twitter channel of your system.',
- },
- {
- value: 'admin.channel_facebook',
- label: 'Facebook',
- description: 'To manage Facebook channel of your system.',
- },
- {
- value: 'admin.channel_telegram',
- label: 'Telegram',
- description: 'To manage Telegram channel of your system.',
- },
- {
- value: 'admin.channel_whatsapp',
- label: 'WhatsApp',
- description: 'To manage WhatsApp channel of your system.',
- },
- {
- value: 'admin.branding',
- label: 'Branding',
- description: 'To manage branding settings of your system.',
- },
- {
- value: 'admin.setting_system',
- label: 'System',
- description: 'To manage core system settings.',
- },
- {
- value: 'admin.security',
- label: 'Security',
- description: 'To manage security settings of your system.',
- },
- {
- value: 'admin.ticket',
- label: 'Ticket',
- description: 'To manage ticket settings of your system.',
- },
- {
- value: 'admin.integration',
- label: 'Integrations',
- description: 'To manage integrations of your system.',
- },
- {
- value: 'admin.api',
- label: 'API',
- description: 'To manage API of your system.',
- },
- {
- value: 'admin.object',
- label: 'Objects',
- description: 'To manage object attributes of your system.',
- },
- {
- value: 'admin.ticket_state',
- label: 'Ticket States',
- description: 'To manage ticket states of your system.',
- },
- {
- value: 'admin.ticket_priority',
- label: 'Ticket Priorities',
- description: 'To manage ticket priorities of your system.',
- },
- {
- value: 'admin.core_workflow',
- label: 'Core Workflows',
- description: 'To manage core workflows of your system.',
- },
- {
- value: 'admin.translation',
- label: 'Translations',
- description: 'To manage translations of your system.',
- },
- {
- value: 'admin.data_privacy',
- label: 'Data Privacy',
- description: 'To delete existing data of your system.',
- },
- {
- value: 'admin.maintenance',
- label: 'Maintenance',
- description: 'To manage maintenance mode of your system.',
- },
- {
- value: 'admin.monitoring',
- label: 'Monitoring',
- description: 'To manage monitoring of your system.',
- },
- {
- value: 'admin.package',
- label: 'Packages',
- description: 'To manage packages of your system.',
- },
- {
- value: 'admin.session',
- label: 'Sessions',
- description: 'To manage active user sessions of your system.',
- },
- {
- value: 'admin.system_report',
- label: 'System Report',
- description: 'To manage system report of your system.',
- },
- ],
- },
- {
- value: 'chat',
- label: 'Chat',
- description: 'To access the chat interface.',
- disabled: true,
- children: [
- {
- value: 'chat.agent',
- label: 'Agent Chat',
- description: 'To access the agent chat features.',
- },
- ],
- },
- {
- value: 'cti',
- label: 'Phone',
- description: 'To access the phone interface.',
- disabled: true,
- children: [
- {
- value: 'cti.agent',
- label: 'Agent Phone',
- description: 'To access the agent phone features.',
- },
- ],
- },
- {
- value: 'knowledge_base',
- label: 'Knowledge Base',
- description: 'To access the knowledge base interface.',
- disabled: true,
- children: [
- {
- value: 'knowledge_base.editor',
- label: 'Knowledge Base Editor',
- description: 'To access the knowledge base editor features.',
- },
- {
- value: 'knowledge_base.reader',
- label: 'Knowledge Base Reader',
- description: 'To access the knowledge base reader features.',
- },
- ],
- },
- {
- value: 'report',
- label: 'Report',
- description: 'To access the report interface.',
- },
- {
- value: 'ticket',
- label: 'Ticket',
- description: 'To access the ticket interface.',
- disabled: true,
- children: [
- {
- value: 'ticket.agent',
- label: 'Agent Tickets',
- description: 'To access the agent tickets based on group access.',
- },
- {
- value: 'ticket.customer',
- label: 'Customer Tickets',
- description: 'To access the customer tickets.',
- },
- ],
- },
- {
- value: 'user_preferences',
- label: 'Profile settings',
- description: 'To access the personal settings.',
- children: [
- {
- value: 'user_preferences.appearance',
- label: 'Appearance',
- description: 'To access the appearance personal setting.',
- },
- {
- value: 'user_preferences.language',
- label: 'Language',
- description: 'To access the language personal setting.',
- },
- {
- value: 'user_preferences.avatar',
- label: 'Avatar',
- description: 'To access the avatar personal setting.',
- },
- {
- value: 'user_preferences.out_of_office',
- label: 'Out of Office',
- description: 'To access the out of office personal setting.',
- },
- {
- value: 'user_preferences.password',
- label: 'Password',
- description: 'To access the change password personal setting.',
- },
- {
- value: 'user_preferences.two_factor_authentication',
- label: 'Two-factor Authentication',
- description:
- 'To access the two-factor authentication personal setting.',
- },
- {
- value: 'user_preferences.device',
- label: 'Devices',
- description: 'To access the devices personal setting.',
- },
- {
- value: 'user_preferences.access_token',
- label: 'Token Access',
- description: 'To access the API token personal setting.',
- },
- {
- value: 'user_preferences.linked_accounts',
- label: 'Linked Accounts',
- description: 'To access the linked accounts personal setting.',
- },
- {
- value: 'user_preferences.notifications',
- label: 'Notifications',
- description: 'To access the notifications personal setting.',
- },
- {
- value: 'user_preferences.overview_sorting',
- label: 'Overviews',
- description: 'To access the overviews personal setting.',
- },
- {
- value: 'user_preferences.calendar',
- label: 'Calendar',
- description: 'To access the calendar personal setting.',
- },
- ],
- },
- ]
- const treeselectOptions = [
- {
- value: 0,
- label: 'Item A',
- disabled: true,
- children: [
- {
- value: 1,
- label: 'Item 1',
- children: [
- {
- value: 2,
- label: 'Item I',
- },
- {
- value: 3,
- label: 'Item II',
- },
- {
- value: 4,
- label: 'Item III',
- },
- ],
- },
- {
- value: 5,
- label: 'Item 2',
- children: [
- ...[longOption.value],
- {
- value: 6,
- label: 'Item IV',
- },
- ],
- },
- {
- value: 7,
- label: 'Item 3',
- },
- ],
- },
- {
- value: 8,
- label: 'Item B',
- },
- {
- value: 9,
- label: 'Ítem C',
- },
- ]
- const buttonGroupOptions: CommonButtonItem[] = [
- {
- label: 'Button 1',
- variant: 'primary',
- icon: 'logo-flat',
- onActionClick: () => console.debug('Button 1 clicked'),
- },
- {
- label: 'Button 2',
- variant: 'secondary',
- },
- {
- label: 'Button 3',
- variant: 'tertiary',
- },
- {
- label: 'Button 4',
- variant: 'submit',
- },
- {
- label: 'Button 5',
- variant: 'danger',
- },
- {
- label: 'Button 6',
- variant: 'subtle',
- },
- {
- label: 'Button 7',
- variant: 'neutral',
- },
- ]
- const application = useApplicationStore()
- const formSchema = defineFormSchema([
- {
- type: 'editor',
- name: 'editor',
- label: 'Editor',
- required: true,
- },
- {
- isLayout: true,
- element: 'div',
- attrs: {
- class: 'grid md:grid-cols-2 gap-y-2.5 gap-x-3',
- },
- children: [
- {
- name: 'select_0',
- label: 'Column select',
- type: 'select',
- outerClass: 'col-span-1',
- props: {
- maxLength: 150,
- options: [...alphabetOptions.value, ...[longOption.value]],
- clearable: true,
- help: 'Testing',
- },
- },
- {
- name: 'toggle_1',
- label: 'Column toggle',
- type: 'toggle',
- outerClass: 'col-span-1',
- wrapperClass: 'md:mt-6',
- props: {
- variants: {
- true: 'yes',
- false: 'no',
- },
- },
- },
- {
- name: 'toggle_2',
- label: 'Row toggle',
- type: 'toggle',
- props: {
- variants: {
- true: 'yes',
- false: 'no',
- },
- },
- },
- ],
- },
- {
- type: 'security',
- name: 'security',
- label: 'Security',
- props: {
- securityAllowed: {
- SMIME: [],
- PGP: ['sign', 'encryption'],
- },
- securityDefaultOptions: {
- SMIME: ['sign', 'encryption'],
- PGP: ['sign'],
- },
- securityMessages: {
- SMIME: {
- sign: {
- message: 'The certificate for %s was not found.',
- messagePlaceholder: ['zammad@localhost'],
- },
- encryption: {
- message: 'The certificates for %s were not found.',
- messagePlaceholder: ['nicole.braun@zammad.org'],
- },
- },
- PGP: {
- sign: {
- message: 'The PGP key for %s was found.',
- messagePlaceholder: ['zammad@localhost'],
- },
- encryption: {
- message: 'The PGP keys for %s were found.',
- messagePlaceholder: ['nicole.braun@zammad.org'],
- },
- },
- },
- },
- value: { method: 'SMIME', options: [] },
- },
- {
- type: 'permissions',
- name: 'permissions',
- label: 'Permissions',
- props: {
- options: permissions,
- },
- value: ['ticket.agent'],
- },
- {
- type: 'autocomplete',
- name: 'autocomplete',
- label: 'Autocomplete',
- props: {
- clearable: true,
- gqlQuery: gql`
- query autocompleteSearchUser($input: AutocompleteSearchUserInput!) {
- autocompleteSearchUser(input: $input) {
- value
- label
- disabled
- icon
- }
- }
- `,
- },
- },
- {
- type: 'externalDataSource',
- name: 'external_data_source',
- label: 'External Data Source',
- object: EnumObjectManagerObjects.Ticket,
- help: 'Please add external_data_source attribute on Ticket object. Otherwise this field will not work.',
- },
- {
- type: 'agent',
- name: 'agent',
- label: 'Agent',
- props: {
- clearable: true,
- },
- },
- {
- type: 'ticket',
- name: 'ticket',
- label: 'Ticket',
- props: {
- clearable: true,
- },
- },
- {
- type: 'recipient',
- name: 'recipient',
- label: 'Recipient',
- props: {
- clearable: true,
- },
- },
- {
- type: 'recipient',
- name: 'recipient_multiple',
- label: 'Recipient (multiple)',
- props: {
- clearable: true,
- multiple: true,
- },
- },
- {
- type: 'customer',
- name: 'customer',
- label: 'Customer',
- props: {
- clearable: true,
- link: '/',
- linkIcon: 'person-add',
- },
- },
- {
- type: 'organization',
- name: 'organization',
- label: 'Organization',
- props: {
- clearable: true,
- options: [
- {
- value: 1,
- label: 'Zammad Foundation',
- organization: {
- active: true,
- },
- },
- ],
- },
- },
- {
- type: 'tags',
- name: 'tags',
- label: 'Tags',
- props: {
- clearable: true,
- canCreate: application.config.tag_new,
- },
- },
- {
- name: 'date_0',
- label: 'Date',
- type: 'date',
- props: {
- clearable: true,
- },
- },
- {
- name: 'date_1',
- label: 'Date range',
- type: 'date',
- props: {
- clearable: true,
- range: true,
- },
- },
- {
- name: 'datetime_0',
- label: 'Date/Time',
- type: 'datetime',
- props: {
- clearable: true,
- },
- },
- {
- name: 'group_permission_0',
- label: 'Group permissions',
- type: 'groupPermissions',
- props: {
- options: [
- {
- value: 1,
- label: 'Users',
- },
- {
- value: 2,
- label: 'some_group1',
- children: [
- {
- value: 3,
- label: 'Nested group',
- },
- ],
- },
- ],
- },
- },
- {
- type: 'select',
- name: 'select_1',
- label: 'Single select',
- props: {
- options: [...alphabetOptions.value, ...[longOption.value]],
- clearable: true,
- },
- },
- {
- type: 'select',
- name: 'select_2',
- label: 'Multi select',
- props: {
- multiple: true,
- options: [...alphabetOptions.value, ...[longOption.value]],
- clearable: true,
- },
- },
- {
- type: 'treeselect',
- name: 'treeselect_1',
- label: 'Single treeselect',
- props: {
- options: treeselectOptions,
- clearable: true,
- },
- },
- {
- type: 'treeselect',
- name: 'treeselect_2',
- label: 'Multi treeselect',
- props: {
- multiple: true,
- options: treeselectOptions,
- clearable: true,
- },
- },
- {
- type: 'toggleList',
- name: 'roles',
- label: 'Roles',
- props: {
- options: [
- { value: 3, label: 'name only' },
- { value: 1, label: 'Long name', description: 'Note here' },
- {
- value: 1111,
- label: 'Another long name',
- description: 'Note here again',
- },
- ],
- },
- },
- {
- type: 'radioList',
- name: 'radioRoles',
- label: 'Radio roles',
- value: 1,
- props: {
- options: [
- { value: 3, label: 'name only' },
- { value: 33333, label: 'name onlyyyy' },
- { value: 1, label: 'Long name', description: 'Note here' },
- {
- value: 1111,
- label: 'Another long name',
- description: 'Note here again',
- },
- ],
- },
- },
- {
- type: 'file',
- name: 'file',
- label: 'Attachment',
- props: {
- multiple: true,
- },
- },
- {
- type: 'toggleButtons',
- name: 'toggleButtons',
- label: 'Toggle Buttons',
- value: '1',
- props: {
- options: [
- { value: '3', label: 'name only' },
- { value: '33333', label: 'name onlyyyy' },
- { value: '1', label: 'Long name', icon: 'sun' },
- ],
- },
- },
- ])
- const formValues = ref()
- const formInitialValues: FormValues = {
- roles: [3, 1],
- // date_0: [new Date(), new Date(new Date().setDate(new Date().getDate() + 7))],
- }
- const progressBarValue = ref(0)
- const increaseProgressBar = () => {
- progressBarValue.value += 25
- }
- onMounted(() => {
- setInterval(increaseProgressBar, 2000)
- })
- watch(progressBarValue, (newValue) => {
- if (newValue < 100) return
- setTimeout(() => {
- progressBarValue.value = 0
- }, 1000)
- })
- const session = useSessionStore()
- const { user } = storeToRefs(session)
- const { isOpen: popoverIsOpen, popover, popoverTarget, toggle } = usePopover()
- const themeSwitchInstance = useTemplateRef('theme-switch')
- const cycleThemeSwitchValue = () => {
- themeSwitchInstance.value?.cycleValue()
- }
- const appearance = ref('auto')
- const schema: FormSchemaNode[] = [
- {
- type: 'text',
- name: 'code',
- label: 'Test',
- required: true,
- props: {
- help: 'Enter here something',
- },
- },
- ]
- const flyout = useFlyout({
- name: 'playground',
- component: () =>
- new Promise((resolve) => {
- return resolve(
- h(
- CommonFlyout,
- {
- onClose: () => {
- console.log(
- '%c %s',
- 'color: red; font-size: 16px',
- 'Flyout closed!',
- )
- },
- onAction: () => {
- console.log(
- '%c %s',
- 'color: green; font-size: 16px',
- 'Flyout action!',
- )
- },
- name: 'playground',
- headerTitle: 'Hello Playground',
- persistWidth: true,
- headerIcon: 'buildings',
- footerActionOptions: {
- actionLabel: 'Submit test',
- cancelLabel: 'Adios',
- actionButton: {
- type: 'submit',
- variant: 'primary',
- prefixIcon: 'check2',
- },
- },
- },
- {
- default: () => [
- h('div', { class: 'py-1' }, [
- h('input'),
- h(Form, { ref: 'flyoutForm', schema }),
- h('div', { class: 'w-[400px]', innerHTML: 'Hello world!' }),
- h(
- 'p',
- ' Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab laborum magnam omnis qui, ratione similique velit voluptatem. Cumque esse et, expedita inventore, iusto laboriosam magnam minus necessitatibus numquam odio odit optio quaerat, quidem quo quos reiciendis rem similique ut veniam vero. Aperiam at blanditiis dignissimos est et, ex harum id in itaque magni natus neque officia omnis perferendis quaerat, quasi ratione reiciendis sunt vitae voluptatum. At id obcaecati odio rerum sed! Accusamus aliquid assumenda cupiditate deleniti distinctio dolore dolores ea earum enim eos error esse ex expedita hic id incidunt iste laudantium molestias nisi obcaecati omnis placeat quam quibusdam quis, quod ratione rem repellendus reprehenderit sed sint soluta velit vitae voluptas voluptate voluptatem voluptates voluptatum. Delectus facilis nostrum praesentium quos sed. Ad assumenda atque cum cumque distinctio dolorem dolores excepturi explicabo harum impedit iusto labore, laboriosam laudantium libero minima nam pariatur quasi quisquam rem repellat reprehenderit saepe sapiente, tempora ut voluptates! Assumenda distinctio impedit veniam vitae voluptates! Aperiam, at commodi dignissimos ex exercitationem inventore quibusdam sequi veniam! A ab accusamus aperiam architecto atque beatae blanditiis commodi consequatur, deleniti deserunt dolor ducimus eaque ex excepturi illum incidunt ipsum laboriosam magni minus molestiae nam nesciunt nulla odit perferendis perspiciatis possimus quod quos similique sint suscipit temporibus unde veritatis voluptatibus? Ab ad, adipisci animi beatae ea eaque eligendi explicabo id impedit itaque magni mollitia nihil numquam obcaecati odit officia omnis perferendis porro quaerat quasi quod repellendus sint sunt suscipit, tenetur vel veniam. Ad animi architecto, aspernatur at blanditiis cumque delectus deleniti dolorem dolorum eos eum eveniet facilis fuga fugiat hic ipsam iure laboriosam maiores natus nisi nobis nulla officiis optio perferendis porro quaerat quam qui quo, repellat sed similique sint suscipit tenetur ullam veritatis vitae voluptates. A ad illo minima nisi nobis vitae voluptatem? Autem deleniti error maiores minus pariatur porro quidem suscipit!',
- ),
- ]),
- ],
- },
- ),
- )
- }),
- })
- const dialog = useDialog({
- name: 'playground',
- component: () =>
- new Promise((resolve) => {
- return resolve(
- h(CommonDialog, {
- name: 'playground',
- headerTitle: 'Confirmation',
- content: 'Do you want to continue?',
- }),
- )
- }),
- })
- const { waitForVariantConfirmation } = useConfirmation()
- const deleteTest = async () => {
- const confirmed = await waitForVariantConfirmation('delete')
- if (confirmed) {
- console.log('Item deleted!')
- } else {
- console.log('Item not deleted!')
- }
- }
- const vip = ref(false)
- const tableHeaders = [
- {
- key: 'name',
- label: 'User name',
- },
- {
- key: 'title',
- label: 'Job position',
- truncate: true,
- },
- {
- key: 'email',
- label: 'Email',
- },
- {
- key: 'role',
- label: 'Role',
- },
- ]
- const tableItems = reactive([
- {
- id: 1,
- name: 'Lindsay Walton',
- title: 'Front-end Developer',
- email: 'lindsay.walton@example.com',
- role: 'Member',
- },
- {
- id: 2,
- name: 'Courtney Henry',
- title: 'Designer',
- email: 'courtney.henry@example.com',
- role: 'Admin',
- },
- {
- id: 3,
- name: 'Tom Cook',
- title: 'Director of Product',
- email: 'tom.cook@example.com',
- role: 'Member',
- },
- {
- id: 4,
- name: 'Whitney Francis',
- title: 'Copywriter',
- email: 'whitney.francis@example.com',
- role: 'Admin',
- },
- {
- id: 5,
- name: 'Leonard Krasner',
- title: 'Senior Designer Principal Designer ',
- email: 'leonard.krasner@example.com',
- role: 'Owner',
- },
- {
- id: 6,
- name: 'Floyd Miles',
- title:
- 'Principal Designer for a very long way to go to see the end of the title. It is a very long title, indeed.',
- email: 'floyd.miles@example.com',
- role: 'Member',
- },
- ])
- const tableActions: MenuItem[] = [
- {
- key: 'delete',
- label: 'Delete this row',
- icon: 'trash3',
- show: (data) => !!data?.role,
- onClick: (data) => {
- console.log(data)
- },
- },
- {
- key: 'download',
- label: 'Download this row',
- icon: 'download',
- onClick: (data) => {
- console.log(data)
- },
- },
- ]
- const changeRow = () => {
- tableItems[0].role = tableItems[0].role ? '' : 'Member'
- }
- const { activeTab } = useTabManager<string>()
- const { activeTab: activeFilters } = useTabManager<string[]>()
- const popoverOrientation: Ref<Orientation> = ref('autoVertical')
- const popoverOrientationOptions = [
- {
- value: 'autoVertical',
- label: 'Auto vertical',
- },
- {
- value: 'autoHorizontal',
- label: 'Auto horizontal',
- },
- {
- value: 'top',
- label: 'Top',
- },
- {
- value: 'bottom',
- label: 'Bottom',
- },
- {
- value: 'left',
- label: 'Left',
- },
- {
- value: 'right',
- label: 'Right',
- },
- ]
- const popoverPlacement: Ref<Placement> = ref('start')
- const popoverPlacementOptions = [
- {
- value: 'start',
- label: 'Start',
- },
- {
- value: 'arrowStart',
- label: 'Arrow Start',
- },
- {
- value: 'arrowEnd',
- label: 'Arrow End',
- },
- {
- value: 'end',
- label: 'End',
- },
- ]
- const breadcrumbItems = [
- {
- label: 'Tickets',
- icon: 'logo-flat',
- },
- {
- label: '123456',
- route: 'tickets/1',
- },
- ]
- const popoverHideArrow = ref(false)
- const inlineEditValue = ref('Edit me inline')
- </script>
- <template>
- <LayoutContent :breadcrumb-items="[]">
- <div>
- <div class="w-1/2">
- <h1 id="test" v-tooltip="'Hello world'" class="w-fit">
- Tooltip example
- </h1>
- <h2 title="Buttons" class="text-xl">Buttons</h2>
- <h3 v-tooltip="'another example'">Text only</h3>
- <div class="flex space-x-3 py-2">
- <CommonButton variant="primary" />
- <CommonButton variant="secondary" />
- <CommonButton variant="tertiary" />
- <CommonButton variant="submit" />
- <CommonButton variant="danger" />
- <CommonButton variant="subtle" />
- <CommonButton variant="neutral" />
- </div>
- <h3>With icon</h3>
- <div class="flex space-x-3 py-2">
- <CommonButton variant="primary" prefix-icon="logo-flat" />
- <CommonButton variant="secondary" prefix-icon="logo-flat" />
- <CommonButton variant="tertiary" prefix-icon="logo-flat" />
- <CommonButton variant="submit" prefix-icon="logo-flat" />
- <CommonButton variant="danger" prefix-icon="logo-flat" />
- <CommonButton variant="subtle" prefix-icon="logo-flat" />
- <CommonButton variant="neutral" prefix-icon="logo-flat" />
- </div>
- <h3>Icon only</h3>
- <div class="flex items-center space-x-3 py-2">
- <CommonButton variant="primary" icon="logo-flat" />
- <CommonButton variant="secondary" icon="logo-flat" />
- <CommonButton variant="tertiary" icon="logo-flat" />
- <CommonButton variant="submit" icon="logo-flat" />
- <CommonButton variant="danger" icon="logo-flat" />
- <CommonButton variant="subtle" icon="logo-flat" />
- <CommonButton variant="neutral" icon="logo-flat" />
- <CommonButton variant="primary" icon="logo-flat" size="medium" />
- <CommonButton variant="secondary" icon="logo-flat" size="medium" />
- <CommonButton variant="tertiary" icon="logo-flat" size="medium" />
- <CommonButton variant="submit" icon="logo-flat" size="medium" />
- <CommonButton variant="danger" icon="logo-flat" size="medium" />
- <CommonButton variant="subtle" icon="logo-flat" size="medium" />
- <CommonButton variant="neutral" icon="logo-flat" size="medium" />
- <CommonButton variant="primary" icon="logo-flat" size="large" />
- <CommonButton variant="secondary" icon="logo-flat" size="large" />
- <CommonButton variant="tertiary" icon="logo-flat" size="large" />
- <CommonButton variant="submit" icon="logo-flat" size="large" />
- <CommonButton variant="danger" icon="logo-flat" size="large" />
- <CommonButton variant="subtle" icon="logo-flat" size="large" />
- <CommonButton variant="neutral" icon="logo-flat" size="large" />
- </div>
- <h3>Misc</h3>
- <div class="flex-wrap space-x-3 space-y-2 py-2">
- <CommonButton variant="submit" block>Block</CommonButton>
- <CommonButton variant="primary" disabled>Disabled</CommonButton>
- <CommonButton variant="secondary" disabled>Disabled</CommonButton>
- <CommonButton variant="tertiary" disabled>Disabled</CommonButton>
- <CommonButton variant="submit" disabled>Disabled</CommonButton>
- <CommonButton variant="danger" disabled>Disabled</CommonButton>
- <CommonButton variant="subtle" disabled>Disabled</CommonButton>
- <CommonButton variant="neutral" disabled>Disabled</CommonButton>
- </div>
- <h3>Group</h3>
- <div class="w-1/2 space-x-3 space-y-2 py-2">
- <CommonButtonGroup :items="buttonGroupOptions" />
- </div>
- </div>
- <div class="flex">
- <CommonBreadcrumb class="grow" :items="breadcrumbItems">
- <template #trailing>
- <CommonIcon
- name="files"
- size="xs"
- class="text-blue-800"
- @click="copyToClipboard('123456')"
- />
- </template>
- </CommonBreadcrumb>
- </div>
- <div class="w-1/2">
- <h2 class="text-xl">Alerts</h2>
- <CommonAlert variant="info" dismissible class="mb-2.5"
- >It's Friday!
- </CommonAlert>
- <CommonAlert variant="success" class="mb-2.5">
- <div class="flex flex-col gap-1.5">
- <CommonLabel class="text-yellow-600" size="large"
- >Similar tickets found</CommonLabel
- >
- <CommonLabel class="text-yellow-600"
- >Tickets with the same attributes were found.</CommonLabel
- >
- <ul class="list-inside list-disc">
- <li>31001 Test Ticket</li>
- </ul>
- </div>
- </CommonAlert>
- <CommonAlert variant="warning" class="mb-2.5"
- >Heee! You're typing too fast.
- </CommonAlert>
- <CommonAlert variant="danger" class="mb-2.5"
- >Ooops! You broke it.
- </CommonAlert>
- </div>
- <div>
- <h2>Labels</h2>
- <CommonLabel size="small" prefix-icon="logo" suffix-icon="logo-flat">
- Small
- </CommonLabel>
- <br />
- <CommonLabel size="medium" prefix-icon="logo" suffix-icon="logo-flat">
- Medium
- </CommonLabel>
- <br />
- <CommonLabel size="large" prefix-icon="logo" suffix-icon="logo-flat">
- Large
- </CommonLabel>
- <br />
- <CommonLabel size="xl" prefix-icon="logo" suffix-icon="logo-flat">
- Extra large
- </CommonLabel>
- </div>
- <div>
- <h2>Badges</h2>
- <CommonBadge class="ltr:mr-2 rtl:ml-2" variant="neutral">
- Neutral
- </CommonBadge>
- <CommonBadge class="ltr:mr-2 rtl:ml-2" variant="info">Info</CommonBadge>
- <CommonBadge class="ltr:mr-2 rtl:ml-2" variant="success">
- Success
- </CommonBadge>
- <CommonBadge class="ltr:mr-2 rtl:ml-2" variant="warning">
- Warning
- </CommonBadge>
- <CommonBadge class="ltr:mr-2 rtl:ml-2" variant="danger">
- Danger
- </CommonBadge>
- <CommonBadge
- class="bg-pink-300 text-white ltr:mr-2 rtl:ml-2 dark:bg-pink-300"
- variant="custom"
- >Custom
- </CommonBadge>
- </div>
- <div class="w-1/5">
- <h2>Progress Bar</h2>
- <div class="flex flex-col gap-3">
- <div class="flex flex-col gap-2">
- <CommonLabel size="small">What is the meaning of life?</CommonLabel>
- <CommonProgressBar />
- </div>
- <div class="flex items-end gap-2">
- <div class="mb-1 flex grow flex-col gap-1">
- <div class="flex justify-between">
- <CommonLabel size="small">Organizations</CommonLabel>
- <CommonLabel
- class="text-stone-200 dark:text-neutral-500"
- size="small"
- >
- {{ progressBarValue }} of 100
- </CommonLabel>
- </div>
- <CommonProgressBar
- :value="progressBarValue.toString()"
- max="100"
- />
- </div>
- <CommonIcon
- class="shrink-0 fill-green-500"
- :class="progressBarValue !== 100 ? 'invisible' : undefined"
- name="check2"
- size="tiny"
- decorative
- />
- </div>
- </div>
- </div>
- <h2 class="mb-2 mt-8">Table</h2>
- <div class="mb-6 flex flex-col gap-4">
- <CommonButton variant="primary" @click="changeRow()"
- >Change row</CommonButton
- >
- <CommonSimpleTable
- :headers="tableHeaders"
- :items="tableItems"
- :actions="tableActions"
- ></CommonSimpleTable>
- </div>
- <div class="w-1/2">
- <h2 class="text-lg">Avatar</h2>
- <div class="my-4 flex items-center gap-4">
- <CommonUserAvatar
- class="cursor-pointer border border-neutral-100 outline outline-2 outline-transparent hover:outline-blue-600 focus:outline-blue-800 dark:border-gray-900 dark:hover:outline-blue-900 dark:hover:focus:outline-blue-800"
- tabindex="0"
- :entity="{
- id: 'gid://zammad/User/1',
- vip,
- }"
- size="medium"
- />
- <CommonButton
- :variant="vip ? 'neutral' : 'subtle'"
- @click="vip = !vip"
- >
- {{ vip ? 'Make us unimportant :(' : 'Make us important :)' }}
- </CommonButton>
- </div>
- <div class="flex gap-4">
- <CommonUserAvatar
- class="cursor-pointer border border-neutral-100 outline outline-2 outline-transparent hover:outline-blue-600 focus:outline-blue-800 dark:border-gray-900 dark:hover:outline-blue-900 dark:hover:focus:outline-blue-800"
- tabindex="0"
- :entity="{
- id: 'gid://zammad/User/2',
- firstname: 'Alfa',
- lastname: 'Bravo',
- vip,
- }"
- size="xs"
- />
- <CommonUserAvatar
- class="cursor-pointer border border-neutral-100 outline outline-2 outline-transparent hover:outline-blue-600 focus:outline-blue-800 dark:border-gray-900 dark:hover:outline-blue-900 dark:hover:focus:outline-blue-800"
- tabindex="0"
- :entity="{
- id: 'gid://zammad/User/3',
- firstname: 'Charlie',
- lastname: 'Delta',
- vip,
- }"
- size="small"
- />
- <CommonUserAvatar
- class="cursor-pointer border border-neutral-100 outline outline-2 outline-transparent hover:outline-blue-600 focus:outline-blue-800 dark:border-gray-900 dark:hover:outline-blue-900 dark:hover:focus:outline-blue-800"
- tabindex="0"
- :entity="{
- id: 'gid://zammad/User/4',
- firstname: 'Echo',
- lastname: 'Foxtrot',
- vip,
- }"
- size="medium"
- />
- <CommonUserAvatar
- class="cursor-pointer outline outline-2 outline-transparent hover:outline-blue-600 focus:outline-blue-800 dark:hover:outline-blue-900 dark:hover:focus:outline-blue-800"
- tabindex="0"
- :entity="{
- id: 'gid://zammad/User/5',
- firstname: 'Golf',
- lastname: 'Hotel',
- vip,
- }"
- size="normal"
- />
- <CommonUserAvatar
- class="cursor-pointer border border-neutral-100 outline outline-2 outline-transparent hover:outline-blue-600 focus:outline-blue-800 dark:border-gray-900 dark:hover:outline-blue-900 dark:hover:focus:outline-blue-800"
- tabindex="0"
- :entity="{
- id: 'gid://zammad/User/6',
- firstname: 'India',
- lastname: 'Juliett',
- vip,
- }"
- size="large"
- />
- <CommonUserAvatar
- class="cursor-pointer border border-neutral-100 outline outline-2 outline-transparent hover:outline-blue-600 focus:outline-blue-800 dark:border-gray-900 dark:hover:outline-blue-900 dark:hover:focus:outline-blue-800"
- tabindex="0"
- :entity="{
- id: 'gid://zammad/User/7',
- firstname: 'Kilo',
- lastname: 'Lima',
- vip,
- }"
- size="xl"
- />
- </div>
- </div>
- <div>
- <h2 class="text-lg">Popover</h2>
- <div class="mb-2 flex gap-2">
- <FormKit
- v-model="popoverOrientation"
- type="select"
- name="orientation"
- :options="popoverOrientationOptions"
- />
- <FormKit
- v-model="popoverPlacement"
- type="select"
- name="placement"
- :options="popoverPlacementOptions"
- />
- <FormKit
- v-model="popoverHideArrow"
- type="toggle"
- name="placement"
- label="Hide arrow"
- :variants="{ true: 'yes', false: 'no' }"
- />
- </div>
- <template v-if="user">
- <CommonPopover
- ref="popover"
- :owner="popoverTarget"
- :orientation="popoverOrientation"
- :placement="popoverPlacement"
- :hide-arrow="popoverHideArrow"
- >
- <CommonPopoverMenu
- :popover="popover"
- header-label="Erika Mustermann"
- :items="[
- {
- key: 'appearance',
- label: 'Appearance',
- icon: 'brightness-alt-high',
- noCloseOnClick: true,
- onClick: cycleThemeSwitchValue,
- },
- {
- key: 'keyboard-shortcuts',
- label: 'Keyboard shortcuts',
- onClick: () => {
- console.log('OPEN KEYBOARD SHORTCUTS DIALOG')
- },
- icon: 'keyboard',
- },
- {
- key: 'personal-setting',
- label: 'Profile settings',
- link: '/personal-setting',
- icon: 'person-gear',
- },
- {
- key: 'sign-out',
- label: 'Sign out',
- link: '/logout',
- icon: 'box-arrow-in-right',
- separatorTop: true,
- },
- ]"
- >
- <template #itemRight-appearance>
- <div class="flex items-center px-2">
- <ThemeSwitch
- ref="theme-switch"
- v-model="appearance"
- size="small"
- />
- </div>
- </template>
- </CommonPopoverMenu>
- </CommonPopover>
- <button
- ref="popoverTarget"
- class="-:outline-transparent hover:-:outline-blue-900 rounded-full outline outline-2 focus:outline-blue-800 hover:focus:outline-blue-800"
- :class="{
- 'outline-blue-800 hover:outline-blue-800': popoverIsOpen,
- }"
- @click="toggle(true)"
- >
- <CommonUserAvatar :entity="user" size="large" personal />
- </button>
- </template>
- </div>
- <section>
- <h2>Common Action Menu</h2>
- <CommonActionMenu
- :entity="{ id: 'test-me', name: 'playground' }"
- :actions="[
- {
- key: 'delete-customer',
- label: 'Delete Customer',
- variant: 'danger',
- icon: 'trash3',
- onClick: (data) => {
- console.log(data?.id, data?.name, 'Delete customer')
- },
- },
- {
- key: 'change-customer',
- label: 'Change Customer',
- icon: 'person-gear',
- onClick: (data) => {
- console.log(data?.id, data?.name, 'Change customer')
- },
- },
- ]"
- />
- <h3>Single Action Item</h3>
- <CommonActionMenu
- :entity="{ id: 'test-me', name: 'playground' }"
- :actions="[
- {
- key: 'change-customer',
- label: 'Change Customer',
- icon: 'person-gear',
- onClick: (id) => {
- console.log(id, 'Delete customer')
- },
- },
- ]"
- />
- </section>
- <div>
- <span> Inline Edit </span>
- <CommonInlineEdit
- id="test"
- :value="inlineEditValue"
- @submit-edit="
- (value) => {
- inlineEditValue = value
- }
- "
- />
- </div>
- <div class="w-1/2">
- <h2 class="mb-2 mt-8">Flyout and Dialog</h2>
- <div class="mb-6 flex gap-4">
- <CommonButton variant="tertiary" @click="dialog.open()"
- >Show Dialog
- </CommonButton>
- <CommonButton variant="primary" @click="flyout.open()">
- Open Flyout
- </CommonButton>
- </div>
- <h2 class="mb-2">Confirmation</h2>
- <div class="mb-6 flex gap-4">
- <CommonButton variant="tertiary" @click="deleteTest()"
- >Delete
- </CommonButton>
- </div>
- <h2 class="mb-2 mt-8">Input Copy To Clipboard</h2>
- <div class="mb-6">
- <CommonInputCopyToClipboard
- value="some text to copy"
- label="A label"
- />
- </div>
- </div>
- <div class="w-1/2">
- <h2 class="text-lg">Form</h2>
- <Form
- id="playground-form"
- v-model="formValues"
- form-class="mb-2.5 space-y-2.5"
- :schema="formSchema"
- :initial-values="formInitialValues"
- @submit="console.debug($event)"
- >
- <template #after-fields>
- <div class="my-5 flex items-center justify-end gap-2">
- <CommonButton
- variant="secondary"
- size="medium"
- @click="reset('playground-form')"
- >
- Reset
- </CommonButton>
- <CommonButton variant="submit" type="submit" size="medium">
- Submit
- </CommonButton>
- </div>
- </template>
- </Form>
- <pre
- class="flex flex-wrap gap-5 text-wrap rounded-lg bg-blue-200 p-5 font-mono text-sm text-gray-100 dark:bg-gray-700 dark:text-neutral-400"
- >{{ formValues }}</pre
- >
- </div>
- <h3>Tabs Groups</h3>
- <CommonTabManager
- v-model="activeTab"
- :tabs="[
- { label: 'Tab 1', key: 'tab-1' },
- { label: 'Tab 2', default: true, key: 'tab-2' },
- { label: 'Tab 3', key: 'tab-3' },
- ]"
- />
- <h3>Filter Selector</h3>
- <CommonTabManager
- v-model="activeFilters"
- label="Roles"
- :tabs="[
- { label: 'Admin', key: 'admin' },
- { label: 'Agent', key: 'agent' },
- { label: 'Customer', key: 'customer' },
- ]"
- multiple
- />
- </div>
- </LayoutContent>
- </template>
|