srcdev-nuxt-components 6.2.9 → 6.2.11

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.
@@ -79,7 +79,7 @@
79
79
  </template>
80
80
 
81
81
  <script setup lang="ts">
82
- import type { ResponsiveHeaderState } from "@/types/responsiveHeader"
82
+ import type { ResponsiveHeaderState } from "@/types"
83
83
 
84
84
  const props = defineProps({
85
85
  mainNavigationState: {
@@ -5,7 +5,7 @@
5
5
  v-for="(navGroup, groupKey) in responsiveNavLinks"
6
6
  :key="groupKey"
7
7
  class="main-navigation-list"
8
- :ref="el => setNavRef(String(groupKey), el as HTMLUListElement | null)"
8
+ :ref="(el: HTMLUListElement | null) => setNavRef(String(groupKey), el as HTMLUListElement | null)"
9
9
  >
10
10
  <li
11
11
  v-for="(link, localIndex) in navGroup"
@@ -38,7 +38,7 @@
38
38
  @mouseenter="handleSummaryHover($event)"
39
39
  @focusin="handleSummaryHover($event)"
40
40
  @click.prevent="handleSummaryAction($event)"
41
- @keypup.prevent.stop="handleSummaryAction($event)"
41
+ @keyup.prevent.stop="handleSummaryAction($event)"
42
42
  class="main-navigation-details-summary has-toggle-icon"
43
43
  :aria-label="`${link.childLinksTitle} submenu`"
44
44
  >
@@ -196,7 +196,7 @@ const {
196
196
 
197
197
  const slots = useSlots()
198
198
 
199
- const navigationWrapperRef = useTemplateRef("navigationWrapper")
199
+ const navigationWrapperRef = useTemplateRef<HTMLDivElement>("navigationWrapper")
200
200
 
201
201
  const closeAllNavigationDetails = () => {
202
202
  navigationDetailsRefs.value?.forEach((element) => {
@@ -280,7 +280,7 @@ const firstNavRects = ref<IFlooredRect | null>(null)
280
280
  const secondNavRef = ref<HTMLUListElement | null>(null)
281
281
  const secondNavRects = ref<IFlooredRect | null>(null)
282
282
 
283
- const secondaryNavRef = useTemplateRef("secondaryNav")
283
+ const secondaryNavRef = useTemplateRef<HTMLElement>("secondaryNav")
284
284
  const secondaryNavRects = computed({
285
285
  get: () => cachedSecondaryNavRects.value,
286
286
  set: (value: IFlooredRect | null) => {
@@ -292,7 +292,7 @@ const mainNavigationItemsRefs = useTemplateRef<HTMLLIElement[]>("mainNavigationI
292
292
 
293
293
  const navigationDetailsRefs = useTemplateRef<HTMLElement[]>("navigationDetails")
294
294
 
295
- const overflowDetailsRef = useTemplateRef("overflowDetails")
295
+ const overflowDetailsRef = useTemplateRef<HTMLDetailsElement>("overflowDetails")
296
296
 
297
297
  const showOverflowDetails = computed(() => {
298
298
  const hasHiddenNav =
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "6.2.9",
4
+ "version": "6.2.11",
5
5
  "main": "nuxt.config.ts",
6
6
  "scripts": {
7
7
  "clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",