@iqual/nuxt-icms 1.5.19 → 1.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/components/DesignSystem/Atoms/Button.vue +0 -1
  2. package/components/DesignSystem/Atoms/Caption.vue +0 -1
  3. package/components/DesignSystem/Atoms/Container.vue +0 -1
  4. package/components/DesignSystem/Atoms/GridRow.vue +0 -1
  5. package/components/DesignSystem/Atoms/LinkListItem.vue +0 -1
  6. package/components/DesignSystem/Molecules/ButtonGroup.vue +0 -1
  7. package/components/DesignSystem/Molecules/IconText.vue +0 -1
  8. package/components/DesignSystem/Molecules/MediaLightbox.vue +1 -3
  9. package/components/DesignSystem/Molecules/MediaSlider.vue +0 -2
  10. package/components/DesignSystem/Molecules/Partnership.vue +0 -1
  11. package/components/DesignSystem/Molecules/Table.vue +0 -1
  12. package/components/DesignSystem/Molecules/TitleComposition.vue +0 -1
  13. package/components/DesignSystem/Organisms/CallToAction.vue +0 -1
  14. package/components/DesignSystem/Organisms/CallToActionFeature.vue +0 -1
  15. package/components/DesignSystem/Organisms/CallToActionFullwidth.vue +0 -1
  16. package/components/DesignSystem/Organisms/ContentBlock.vue +0 -1
  17. package/components/DesignSystem/Organisms/FacetedListing.vue +0 -1
  18. package/components/DesignSystem/Organisms/FactCard.vue +0 -1
  19. package/components/DesignSystem/Organisms/FeatureCard.vue +0 -1
  20. package/components/DesignSystem/Organisms/FlipTeaser.vue +0 -1
  21. package/components/DesignSystem/Organisms/HeaderHero.vue +0 -1
  22. package/components/DesignSystem/Organisms/HeaderTextImage.vue +0 -1
  23. package/components/DesignSystem/Organisms/LinkList.vue +0 -1
  24. package/components/DesignSystem/Organisms/LogoElement.vue +0 -1
  25. package/components/DesignSystem/Organisms/SearchResults.vue +0 -1
  26. package/components/DesignSystem/Organisms/SpotlightCard.vue +0 -1
  27. package/components/DesignSystem/Organisms/TeamElement.vue +0 -1
  28. package/components/DesignSystem/Organisms/TeaserCard.vue +0 -1
  29. package/components/DesignSystem/Organisms/TeaserSimple.vue +0 -1
  30. package/components/DesignSystem/Organisms/Testimonial.vue +0 -1
  31. package/components/DesignSystem/Organisms/TextCard.vue +0 -1
  32. package/components/DesignSystem/Organisms/TimelineElement.vue +0 -1
  33. package/components/DesignSystem/Organisms/TwoColumnTextElement.vue +0 -2
  34. package/components/DesignSystem/Pages/Search.vue +1 -2
  35. package/components/Drupal/Breadcrumb/index.vue +0 -1
  36. package/components/Drupal/Messages/index.vue +2 -2
  37. package/components/Drupal/Webform/index.vue +0 -2
  38. package/components/Form/CheckboxInput.vue +0 -1
  39. package/components/Form/CheckboxInputs.vue +0 -1
  40. package/components/Form/FileInput.vue +0 -1
  41. package/components/Form/RadioButtonsInput.vue +0 -1
  42. package/components/Form/SelectInput.vue +0 -1
  43. package/components/Form/TextAreaInput.vue +0 -1
  44. package/components/Form/TextEmailInput.vue +0 -1
  45. package/components/Form/TextInput.vue +0 -1
  46. package/components/Form/TextPhoneInput.vue +0 -1
  47. package/components/Form/WebformMarkup.vue +0 -1
  48. package/components/Media/Icon/index.vue +0 -1
  49. package/components/Media/Image/index.vue +0 -1
  50. package/components/Media/RemoteVideo/index.vue +0 -1
  51. package/components/Media/Video/index.vue +0 -1
  52. package/components/Paragraph/Button/Element/index.vue +0 -1
  53. package/components/Paragraph/Card/Layout/index.vue +0 -1
  54. package/components/Paragraph/Collapsible/Element/index.vue +0 -1
  55. package/components/Paragraph/Collapsible/Layout/index.vue +0 -1
  56. package/components/Paragraph/Contact/index.vue +1 -2
  57. package/components/Paragraph/Downloads/index.vue +0 -1
  58. package/components/Paragraph/FAQ/Element/index.vue +0 -1
  59. package/components/Paragraph/FAQ/Layout/index.vue +1 -2
  60. package/components/Paragraph/Gallery/index.vue +0 -2
  61. package/components/Paragraph/HeroImage/index.vue +0 -1
  62. package/components/Paragraph/IconText/Element/index.vue +0 -1
  63. package/components/Paragraph/IconText/Layout/index.vue +1 -2
  64. package/components/Paragraph/Introduction/index.vue +1 -2
  65. package/components/Paragraph/LinkLists/Element/index.vue +1 -1
  66. package/components/Paragraph/LinkLists/Layout/index.vue +0 -1
  67. package/components/Paragraph/Logo/Element/index.vue +0 -1
  68. package/components/Paragraph/Media/index.vue +1 -2
  69. package/components/Paragraph/Partnerships/Element/index.vue +0 -1
  70. package/components/Paragraph/Partnerships/Layout/index.vue +1 -2
  71. package/components/Paragraph/SingleTestimonial/index.vue +0 -1
  72. package/components/Paragraph/Table/index.vue +0 -1
  73. package/components/Paragraph/Team/Element/index.vue +0 -1
  74. package/components/Paragraph/Team/Layout/index.vue +1 -2
  75. package/components/Paragraph/Teasers/index.vue +0 -1
  76. package/components/Paragraph/Testimonial/Element/index.vue +0 -1
  77. package/components/Paragraph/Testimonial/Layout/index.vue +0 -1
  78. package/components/Paragraph/Text/index.vue +0 -1
  79. package/components/Paragraph/TextMedia/index.vue +2 -3
  80. package/components/Paragraph/Timeline/Element/index.vue +1 -2
  81. package/components/Paragraph/Timeline/Layout/index.vue +1 -2
  82. package/components/Paragraph/TwoColumnText/Element/index.vue +0 -1
  83. package/components/Paragraph/TwoColumnText/Layout/index.vue +1 -2
  84. package/components/Paragraph/iFrame/index.vue +1 -2
  85. package/components/Search/Facets/FacetDropdownUI.vue +0 -1
  86. package/components/Search/Facets/FacetedSearchUI.vue +0 -2
  87. package/components/Search/Input/index.vue +0 -1
  88. package/components/Section/Footer/index.vue +0 -1
  89. package/components/Section/Header/Buttons.vue +0 -1
  90. package/components/Section/Header/DesktopMainMenu.vue +9 -1
  91. package/components/Section/Header/DesktopMainMenuDropdown.vue +9 -1
  92. package/components/Section/Header/LanguageDropdown.vue +0 -1
  93. package/components/Section/Header/LanguageLinks.vue +0 -1
  94. package/components/Section/Header/Logo.vue +0 -1
  95. package/components/Section/Header/MainButtons.vue +0 -1
  96. package/components/Section/Header/MenuIcon.vue +0 -1
  97. package/components/Section/Header/MetaButtons.vue +0 -1
  98. package/components/Section/Header/MetaMenu.vue +0 -1
  99. package/components/Section/Header/MobileMainMenu.vue +0 -1
  100. package/components/Section/Header/MobileMainMenuItem.vue +0 -1
  101. package/components/Section/Header/index.vue +0 -1
  102. package/error.vue +0 -1
  103. package/nuxt.config.ts +2 -1
  104. package/package.json +1 -1
@@ -75,13 +75,12 @@
75
75
  import type { ParagraphIcmsLayoutTextcolIconlistFragment } from '#graphql-operations'
76
76
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
77
77
  import cn from '@iqual/nuxt-icms/composables/useCn'
78
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
79
78
 
80
79
  const props = defineProps<ParagraphIcmsLayoutTextcolIconlistFragment>()
81
80
 
82
81
  const themedClass = useTheme('ParagraphIconTextLayout')
83
82
 
84
- const { options, isEditing } = useAttrs().blokkliData
83
+ const { options, isEditing } = useAttrs().blokkliData as any
85
84
 
86
85
  const parentColorScheme = inject<ColorScheme>('colorScheme', 'none')
87
86
  const colorScheme = computed(() => {
@@ -81,12 +81,11 @@
81
81
  <script lang="ts" setup>
82
82
  import type { ParagraphIcmsLayoutTextImageIntroFragment } from '#graphql-operations'
83
83
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
84
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
85
84
  import cn from '@iqual/nuxt-icms/composables/useCn'
86
85
 
87
86
  defineProps<ParagraphIcmsLayoutTextImageIntroFragment>()
88
87
 
89
- const { options, isEditing } = useAttrs().blokkliData
88
+ const { options, isEditing } = useAttrs().blokkliData as any
90
89
 
91
90
  const themedClass = useTheme('ParagraphIntroduction')
92
91
 
@@ -15,7 +15,7 @@ import type { ParagraphIcmsLinkListElementFragment } from '#graphql-operations'
15
15
 
16
16
  const props = defineProps<ParagraphIcmsLinkListElementFragment>()
17
17
 
18
- const { options, isEditing } = useAttrs().blokkliData
18
+ const { options, isEditing } = useAttrs().blokkliData as any
19
19
 
20
20
  const teaserStyle = computed(() => {
21
21
  return options.value.teaserStyle
@@ -69,7 +69,6 @@
69
69
  <script lang="ts" setup>
70
70
  import type { ParagraphIcmsLayoutLinkListsFragment } from '#graphql-operations'
71
71
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
72
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
73
72
  import cn from '@iqual/nuxt-icms/composables/useCn'
74
73
  const themedClass = useTheme('ParagraphLinkListsLayout')
75
74
 
@@ -12,7 +12,6 @@
12
12
  <script lang="ts" setup>
13
13
  import type { ParagraphIcmsLogoElementFragment } from '#graphql-operations'
14
14
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
15
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
16
15
 
17
16
  defineProps<ParagraphIcmsLogoElementFragment>()
18
17
 
@@ -56,13 +56,12 @@
56
56
  <script lang="ts" setup>
57
57
  import type { ParagraphIcmsLayoutMediaFragment } from '#graphql-operations'
58
58
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
59
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
60
59
 
61
60
  defineProps<ParagraphIcmsLayoutMediaFragment>()
62
61
 
63
62
  const themedClass = useTheme('ParagraphMedia')
64
63
 
65
- const { options, isEditing } = useAttrs().blokkliData
64
+ const { options, isEditing } = useAttrs().blokkliData as any
66
65
 
67
66
  const parentColorScheme = inject<ColorScheme>('colorScheme', 'none')
68
67
  const colorScheme = computed(() => {
@@ -13,7 +13,6 @@
13
13
 
14
14
  <script lang="ts" setup>
15
15
  import type { ParagraphIcmsPartnershipElementFragment } from '#graphql-operations'
16
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
17
16
 
18
17
  defineProps<ParagraphIcmsPartnershipElementFragment>()
19
18
 
@@ -105,11 +105,10 @@ import type { ParagraphIcmsLayoutPartnershipsFragment } from '#graphql-operation
105
105
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
106
106
  import cn from '@iqual/nuxt-icms/composables/useCn'
107
107
  import { tv } from 'tailwind-variants'
108
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
109
108
 
110
109
  defineProps<ParagraphIcmsLayoutPartnershipsFragment>()
111
110
 
112
- const { options, isEditing } = useAttrs().blokkliData
111
+ const { options, isEditing } = useAttrs().blokkliData as any
113
112
 
114
113
  const themedClass = useTheme('ParagraphPartnershipsLayout')
115
114
 
@@ -105,7 +105,6 @@
105
105
  <script lang="ts" setup>
106
106
  import type { ParagraphIcmsLayoutTestimonialFragment } from '#graphql-operations'
107
107
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
108
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
109
108
  import cn from '@iqual/nuxt-icms/composables/useCn'
110
109
 
111
110
  defineProps<ParagraphIcmsLayoutTestimonialFragment>()
@@ -72,7 +72,6 @@
72
72
  import type { ParagraphIcmsLayoutTableFragment } from '#graphql-operations'
73
73
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
74
74
  import cn from '@iqual/nuxt-icms/composables/useCn'
75
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
76
75
 
77
76
  defineProps<ParagraphIcmsLayoutTableFragment>()
78
77
  const themedClass = useTheme('ParagraphTable')
@@ -28,7 +28,6 @@
28
28
  <script lang="ts" setup>
29
29
  import type { ParagraphIcmsTeamElementFragment } from '#graphql-operations'
30
30
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
31
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
32
31
 
33
32
  defineProps<ParagraphIcmsTeamElementFragment>()
34
33
 
@@ -64,12 +64,11 @@
64
64
 
65
65
  <script lang="ts" setup>
66
66
  import type { ParagraphIcmsLayoutTeamFragment } from '#graphql-operations'
67
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
68
67
  import cn from '@iqual/nuxt-icms/composables/useCn'
69
68
 
70
69
  const props = defineProps<ParagraphIcmsLayoutTeamFragment>()
71
70
 
72
- const { options, isEditing } = useAttrs().blokkliData
71
+ const { options, isEditing } = useAttrs().blokkliData as any
73
72
 
74
73
  const themedClass = useTheme('ParagraphTeamLayout')
75
74
 
@@ -123,7 +123,6 @@
123
123
  <script lang="ts" setup>
124
124
  import type { ParagraphIcmsLayoutTeasersFragment } from '#graphql-operations'
125
125
  import cn from '@iqual/nuxt-icms/composables/useCn'
126
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
127
126
  import { tv } from 'tailwind-variants'
128
127
 
129
128
  const props = defineProps<ParagraphIcmsLayoutTeasersFragment>()
@@ -40,7 +40,6 @@
40
40
  <script lang="ts" setup>
41
41
  import type { ParagraphIcmsTestimonialElementFragment } from '#graphql-operations'
42
42
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
43
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
44
43
  import cn from '@iqual/nuxt-icms/composables/useCn'
45
44
 
46
45
  defineProps<ParagraphIcmsTestimonialElementFragment>()
@@ -103,7 +103,6 @@
103
103
 
104
104
  <script lang="ts" setup>
105
105
  import type { ParagraphIcmsLayoutTestimonialsFragment } from '#graphql-operations'
106
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
107
106
  import { tv } from 'tailwind-variants'
108
107
  import cn from '@iqual/nuxt-icms/composables/useCn'
109
108
 
@@ -51,7 +51,6 @@
51
51
  <script lang="ts" setup>
52
52
  import type { ParagraphIcmsLayoutTextFragment } from '#graphql-operations'
53
53
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
54
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
55
54
  import cn from '@iqual/nuxt-icms/composables/useCn'
56
55
 
57
56
  defineProps<ParagraphIcmsLayoutTextFragment>()
@@ -63,13 +63,12 @@
63
63
 
64
64
  <script lang="ts" setup>
65
65
  import type { ParagraphIcmsLayoutTextMediaFragment } from '#graphql-operations'
66
- import type { ColorScheme, ImageFormat } from '@iqual/nuxt-icms/types/global'
67
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
66
+ import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
68
67
  import cn from '@iqual/nuxt-icms/composables/useCn'
69
68
 
70
69
  defineProps<ParagraphIcmsLayoutTextMediaFragment>()
71
70
 
72
- const { options, isEditing } = useAttrs().blokkliData
71
+ const { options, isEditing } = useAttrs().blokkliData as any
73
72
 
74
73
  const themedClass = useTheme('ParagraphTextMedia')
75
74
  const textColumnClassList = computed(() => {
@@ -31,13 +31,12 @@
31
31
  <script lang="ts" setup>
32
32
  import type { ParagraphIcmsTimelineElementFragment } from '#graphql-operations'
33
33
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
34
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
35
34
 
36
35
  defineProps<ParagraphIcmsTimelineElementFragment>()
37
36
 
38
37
  const themedClass = useTheme('ParagraphTimelineElement')
39
38
 
40
- const { options, isEditing } = useAttrs().blokkliData
39
+ const { options, isEditing } = useAttrs().blokkliData as any
41
40
 
42
41
  const reverseColumns = computed(() => {
43
42
  return options.value.alignHorizontalReduced === 'right' ? true : false
@@ -240,13 +240,12 @@
240
240
 
241
241
  <script lang="ts" setup>
242
242
  import type { ParagraphIcmsLayoutTimelineFragment } from '#graphql-operations'
243
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
244
243
  import { tv } from 'tailwind-variants'
245
244
  import cn from '@iqual/nuxt-icms/composables/useCn'
246
245
 
247
246
  const props = defineProps<ParagraphIcmsLayoutTimelineFragment>()
248
247
 
249
- const { options, isEditing } = useAttrs().blokkliData
248
+ const { options, isEditing } = useAttrs().blokkliData as any
250
249
 
251
250
  const themedClass = useTheme('ParagraphTimelineLayout')
252
251
  const { isMobile } = useIsMobile()
@@ -27,7 +27,6 @@
27
27
 
28
28
  <script lang="ts" setup>
29
29
  import type { ParagraphIcms2ColTextElementFragment } from '#graphql-operations'
30
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
31
30
 
32
31
  defineProps<ParagraphIcms2ColTextElementFragment>()
33
32
 
@@ -15,11 +15,10 @@
15
15
  <script lang="ts" setup>
16
16
  import type { ParagraphIcmsLayout2ColTextElementsFragment } from '#graphql-operations'
17
17
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
18
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
19
18
 
20
19
  defineProps<ParagraphIcmsLayout2ColTextElementsFragment>()
21
20
 
22
- const { options, isEditing } = useAttrs().blokkliData
21
+ const { options, isEditing } = useAttrs().blokkliData as any
23
22
 
24
23
  const themedClass = useTheme('ParagraphTwoColumnTextLayout')
25
24
 
@@ -58,13 +58,12 @@
58
58
  import type { ParagraphIcmsLayoutIframeFragment } from '#graphql-operations'
59
59
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
60
60
  import cn from '@iqual/nuxt-icms/composables/useCn'
61
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
62
61
 
63
62
  const props = defineProps<ParagraphIcmsLayoutIframeFragment>()
64
63
 
65
64
  const themedClass = useTheme('ParagraphiFrame')
66
65
 
67
- const { options, isEditing } = useAttrs().blokkliData
66
+ const { options, isEditing } = useAttrs().blokkliData as any
68
67
 
69
68
  const widthClassList = computed(() => {
70
69
  if (options.value.width === 'medium') {
@@ -194,7 +194,6 @@
194
194
 
195
195
  <script setup lang="ts">
196
196
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
197
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
198
197
  import { tv } from 'tailwind-variants'
199
198
  import cn from '@iqual/nuxt-icms/composables/useCn'
200
199
 
@@ -195,10 +195,8 @@ Facets: {{ facetData.length }} items</pre
195
195
  </template>
196
196
 
197
197
  <script lang="ts" setup>
198
- import { nextTick } from 'vue'
199
198
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
200
199
  import type { SearchApiQueryFilterInput } from '#graphql-operations'
201
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
202
200
  import { tv } from 'tailwind-variants'
203
201
  import cn from '@iqual/nuxt-icms/composables/useCn'
204
202
 
@@ -31,7 +31,6 @@
31
31
 
32
32
  <script lang="ts" setup>
33
33
  import type { ColorScheme } from '@iqual/nuxt-icms/types/global'
34
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
35
34
  import { tv } from 'tailwind-variants'
36
35
  import cn from '@iqual/nuxt-icms/composables/useCn'
37
36
 
@@ -252,7 +252,6 @@
252
252
 
253
253
  <script lang="ts" setup>
254
254
  import type { NuxtSvgSpriteSymbol } from '#nuxt-svg-icon-sprite/runtime'
255
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
256
255
  import cn from '@iqual/nuxt-icms/composables/useCn'
257
256
 
258
257
  const themedClass = useTheme('SectionFooter')
@@ -21,7 +21,6 @@
21
21
  </template>
22
22
 
23
23
  <script lang="ts" setup>
24
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
25
24
 
26
25
  defineProps<{
27
26
  buttons: any[] | undefined
@@ -92,12 +92,12 @@
92
92
  import type { MappedMenuLink } from '@iqual/nuxt-icms/plugins/initData'
93
93
  import { NuxtLink } from '#components'
94
94
  import DesktopMainMenuDropdown from '@iqual/nuxt-icms/components/Section/Header/DesktopMainMenuDropdown.vue'
95
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
96
95
  import cn from '@iqual/nuxt-icms/composables/useCn'
97
96
 
98
97
  const { menuItems, menuItemActive } = await useMenu('mainMenu')
99
98
 
100
99
  const themedClass = useTheme('SectionHeaderDesktopMainMenu')
100
+ const route = useRoute()
101
101
 
102
102
  const isActive = (item: MappedMenuLink) => menuItemActive.value?.id === item.id
103
103
  const hasSubmenu = (item: MappedMenuLink) => (item.children?.length ?? 0) > 0
@@ -108,6 +108,14 @@ const isOpen = (item: MappedMenuLink) => !!openMap.value[item.id]
108
108
  const setOpen = (item: MappedMenuLink, value: boolean) =>
109
109
  (openMap.value[item.id] = value)
110
110
 
111
+ // Close all dropdowns on navigation
112
+ watch(
113
+ () => route.path,
114
+ () => {
115
+ openMap.value = {}
116
+ },
117
+ )
118
+
111
119
  function elementType(item: MappedMenuLink) {
112
120
  if (item.href) return NuxtLink
113
121
  if (item.children?.length) return 'button'
@@ -78,10 +78,10 @@
78
78
  <script lang="ts" setup>
79
79
  import type { MappedMenuLink } from '@iqual/nuxt-icms/plugins/initData'
80
80
  import { NuxtLink } from '#components'
81
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
82
81
  import cn from '@iqual/nuxt-icms/composables/useCn'
83
82
 
84
83
  const themedClass = useTheme('SectionHeaderDesktopMainMenuDropdown')
84
+ const route = useRoute()
85
85
 
86
86
  const props = defineProps<{
87
87
  item: MappedMenuLink
@@ -99,6 +99,14 @@ const isOpen = (child: MappedMenuLink) => !!openMap.value[child.id]
99
99
  const setOpen = (child: MappedMenuLink, val: boolean) =>
100
100
  (openMap.value[child.id] = val)
101
101
 
102
+ // Close all nested dropdowns on navigation
103
+ watch(
104
+ () => route.path,
105
+ () => {
106
+ openMap.value = {}
107
+ },
108
+ )
109
+
102
110
  /**
103
111
  * Determines which element type to render for a menu item.
104
112
  *
@@ -104,7 +104,6 @@
104
104
  </template>
105
105
 
106
106
  <script lang="ts" setup>
107
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
108
107
 
109
108
  const themedClass = useTheme('SectionHeaderLanguageDropdown')
110
109
  const links = useLanguageLinks()
@@ -34,7 +34,6 @@
34
34
  </template>
35
35
 
36
36
  <script lang="ts" setup>
37
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
38
37
  const { close } = useMobileMenuOverlayBus()
39
38
 
40
39
  const themedClass = useTheme('SectionHeaderLanguageLinks')
@@ -16,7 +16,6 @@
16
16
  </template>
17
17
 
18
18
  <script lang="ts" setup>
19
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
20
19
  const { companyLogo, companyName } = await useGlobalConfig()
21
20
 
22
21
  const themedClass = useTheme('SectionHeaderLogo')
@@ -21,7 +21,6 @@
21
21
  </template>
22
22
 
23
23
  <script lang="ts" setup>
24
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
25
24
 
26
25
  const { contactButtons } = await useGlobalConfig()
27
26
  const themedClass = useTheme('SectionHeaderMainButtons')
@@ -60,7 +60,6 @@
60
60
  </template>
61
61
 
62
62
  <script lang="ts" setup>
63
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
64
63
  defineProps<{
65
64
  isInClosableState: boolean
66
65
  }>()
@@ -21,7 +21,6 @@
21
21
  </template>
22
22
 
23
23
  <script lang="ts" setup>
24
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
25
24
 
26
25
  const { metaLinks } = await useGlobalConfig()
27
26
  const themedClass = useTheme('SectionHeaderMetaButtons')
@@ -62,7 +62,6 @@
62
62
  </template>
63
63
 
64
64
  <script setup lang="ts">
65
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
66
65
  import cn from '@iqual/nuxt-icms/composables/useCn'
67
66
 
68
67
  const { menuItems, menuItemActive } = await useMenu('metaMenu')
@@ -16,7 +16,6 @@
16
16
 
17
17
  <script lang="ts" setup>
18
18
  import MobileMainMenuItem from './MobileMainMenuItem.vue'
19
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
20
19
  const { menuItems, menuItemActive } = await useMenu('mainMenu')
21
20
 
22
21
  const themedClass = useTheme('SectionHeaderMobileMainMenu')
@@ -94,7 +94,6 @@
94
94
  <script lang="ts" setup>
95
95
  import type { MappedMenuLink } from '@iqual/nuxt-icms/plugins/initData'
96
96
  import { NuxtLink } from '#components'
97
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
98
97
  import cn from '@iqual/nuxt-icms/composables/useCn'
99
98
 
100
99
  const route = useRoute()
@@ -174,7 +174,6 @@
174
174
  </template>
175
175
 
176
176
  <script lang="ts" setup>
177
- import { useTheme } from '@iqual/nuxt-icms/composables/useTheme'
178
177
 
179
178
  const { metaLinks, contactButtons } = await useGlobalConfig()
180
179
  const { menuItems: metaMenuItems } = await useMenu('metaMenu')
package/error.vue CHANGED
@@ -22,7 +22,6 @@ const route = useRoute()
22
22
  const drupalUser = useDrupalUser()
23
23
  const language = useCurrentLanguage()
24
24
 
25
- import { onMounted } from 'vue'
26
25
 
27
26
  const isEditing = computed(
28
27
  () =>
package/nuxt.config.ts CHANGED
@@ -233,7 +233,8 @@ export default defineNuxtConfig({
233
233
  },
234
234
 
235
235
  colorMode: {
236
- preference: 'light'
236
+ preference: 'light',
237
+ fallback: 'light',
237
238
  },
238
239
 
239
240
  maplibre: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqual/nuxt-icms",
3
- "version": "1.5.19",
3
+ "version": "1.5.21",
4
4
  "description": "ICMS Base",
5
5
  "type": "module",
6
6
  "private": false,