mobileVisuals.ts 982 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { setupCommonVisualConfig } from '#shared/composables/useSharedVisualConfig.ts'
  3. import CommonButton from '#mobile/components/CommonButton/CommonButton.vue'
  4. import CommonSectionMenu from '#mobile/components/CommonSectionMenu/CommonSectionMenu.vue'
  5. import CommonSectionMenuItem from '#mobile/components/CommonSectionMenu/CommonSectionMenuItem.vue'
  6. import CommonSectionPopup from '#mobile/components/CommonSectionPopup/CommonSectionPopup.vue'
  7. export const initializeMobileVisuals = () => {
  8. setupCommonVisualConfig({
  9. objectAttributes: {
  10. outer: CommonSectionMenu,
  11. wrapper: CommonSectionMenuItem,
  12. classes: {
  13. link: 'cursor-pointer text-blue',
  14. },
  15. },
  16. tooltip: {
  17. type: 'popup',
  18. component: CommonSectionPopup,
  19. },
  20. filePreview: {
  21. buttonComponent: CommonButton,
  22. },
  23. fieldFile: {
  24. buttonComponent: CommonButton,
  25. },
  26. })
  27. }