Просмотр исходного кода

Maintenance: Update dependency vue-tsc to ^2.2.2

renovatebot 3 недель назад
Родитель
Сommit
7cd9d9a2f3

+ 3 - 1
app/frontend/apps/desktop/pages/personal-setting/components/PersonalSettingOverviewOrder.vue

@@ -15,7 +15,9 @@ export interface OverviewItem {
   outOfOffice?: boolean | null
 }
 
-const localValue = defineModel<OverviewItem[]>('modelValue')
+const localValue = defineModel<OverviewItem[]>({
+  required: true,
+})
 
 const dndEndCallback = (parent: HTMLElement) => {
   const parentData = parents.get(parent)

+ 2 - 2
app/frontend/apps/desktop/pages/personal-setting/views/PersonalSettingOverviews.vue

@@ -29,7 +29,7 @@ import { useUserCurrentOverviewListQuery } from '../graphql/queries/userCurrentO
 
 const { breadcrumbItems } = useBreadcrumb(__('Overviews'))
 
-const overviewList = ref<OverviewItem[]>()
+const overviewList = ref<OverviewItem[]>([])
 
 const overviewListQuery = new QueryHandler(
   useUserCurrentOverviewListQuery({ ignoreUserConditions: true }),
@@ -58,7 +58,7 @@ overviewListQuery.subscribeToMore<
 })
 
 watch(overviewListQuery.result(), (newValue) => {
-  overviewList.value = newValue?.userCurrentTicketOverviews
+  overviewList.value = newValue?.userCurrentTicketOverviews || []
 })
 
 const { notify } = useNotifications()

+ 2 - 2
app/frontend/apps/mobile/components/CommonSectionMenu/CommonSectionMenu.vue

@@ -1,7 +1,7 @@
 <!-- Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/ -->
 
 <script setup lang="ts">
-import { computed, useSlots } from 'vue'
+import { computed, useSlots, type SetupContext } from 'vue'
 
 import { useSessionStore } from '#shared/stores/session.ts'
 
@@ -42,7 +42,7 @@ const itemsWithPermission = computed(() => {
   })
 })
 
-const slots = useSlots()
+const slots: SetupContext['slots'] = useSlots()
 
 const hasHelp = computed(() => slots.help || props.help)
 const showLabel = computed(() => {

+ 2 - 2
app/frontend/shared/components/Form/Form.vue

@@ -90,7 +90,7 @@ import type {
   FormKitMessageProps,
 } from '@formkit/core'
 import type { Except, SetRequired } from 'type-fest'
-import type { Component, Ref } from 'vue'
+import type { Component, Ref, SetupContext } from 'vue'
 
 export interface Props {
   id?: string
@@ -158,7 +158,7 @@ const props = withDefaults(defineProps<Props>(), {
 
 const formId = props.formId ? props.formId : getUuid()
 
-const slots = useSlots()
+const slots: SetupContext['slots'] = useSlots()
 
 const hasSchema = computed(
   () => Boolean(slots.default) || Boolean(props.schema),

+ 2 - 2
app/frontend/shared/components/Form/FormGroup.vue

@@ -1,13 +1,13 @@
 <!-- Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/ -->
 
 <script setup lang="ts">
-import { computed, useSlots } from 'vue'
+import { computed, useSlots, type SetupContext } from 'vue'
 
 import { getFormGroupClasses } from './initializeFormGroupClasses.ts'
 
 const props = defineProps<{ help?: string; showDirtyMark?: boolean }>()
 
-const slots = useSlots()
+const slots: SetupContext['slots'] = useSlots()
 
 const hasHelp = computed(() => slots.help || props.help)
 

+ 1 - 1
package.json

@@ -96,7 +96,7 @@
     "vite-plugin-ruby": "^5.1.1",
     "vitest": "^3.0.5",
     "vitest-axe": "^0.1.0",
-    "vue-tsc": "^2.2.0"
+    "vue-tsc": "^2.2.2"
   },
   "dependencies": {
     "@apollo/client": "^3.12.11",

+ 13 - 13
pnpm-lock.yaml

@@ -450,8 +450,8 @@ importers:
         specifier: ^0.1.0
         version: 0.1.0(vitest@3.0.5(@types/node@18.11.4)(jsdom@26.0.0)(lightningcss@1.29.1)(sass@1.85.0)(terser@5.31.0))
       vue-tsc:
-        specifier: ^2.2.0
-        version: 2.2.0(typescript@5.7.3)
+        specifier: ^2.2.2
+        version: 2.2.2(typescript@5.7.3)
 
 packages:
 
@@ -2554,8 +2554,8 @@ packages:
       typescript:
         optional: true
 
-  '@vue/language-core@2.2.0':
-    resolution: {integrity: sha512-O1ZZFaaBGkKbsRfnVH1ifOK1/1BUkyK+3SQsfnh6PmMmD4qJcTU8godCeA96jjDRTL6zgnK7YzCHfaUlH2r0Mw==}
+  '@vue/language-core@2.2.2':
+    resolution: {integrity: sha512-QotO41kurE5PLf3vrNgGTk3QswO2PdUFjBwNiOi7zMmGhwb25PSTh9hD1MCgKC06AVv+8sZQvlL3Do4TTVHSiQ==}
     peerDependencies:
       typescript: '*'
     peerDependenciesMeta:
@@ -2677,8 +2677,8 @@ packages:
   ajv@8.11.0:
     resolution: {integrity: sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==}
 
-  alien-signals@0.4.12:
-    resolution: {integrity: sha512-Og0PgAihxlp1R22bsoBsyhhMG4+qhU+fkkLPoGBQkYVc3qt9rYnrwYTf+M6kqUqUZpf3rXDnpL90iKa0QcSVVg==}
+  alien-signals@1.0.3:
+    resolution: {integrity: sha512-zQOh3wAYK5ujENxvBBR3CFGF/b6afaSzZ/c9yNhJ1ENrGHETvpUuKQsa93Qrclp0+PzTF93MaZ7scVp1uUozhA==}
 
   ansi-escapes@4.3.2:
     resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}
@@ -6510,8 +6510,8 @@ packages:
     peerDependencies:
       vue: ^3.2.0
 
-  vue-tsc@2.2.0:
-    resolution: {integrity: sha512-gtmM1sUuJ8aSb0KoAFmK9yMxb8TxjewmxqTJ1aKphD5Cbu0rULFY6+UQT51zW7SpUcenfPUuflKyVwyx9Qdnxg==}
+  vue-tsc@2.2.2:
+    resolution: {integrity: sha512-1icPKkxAA5KTAaSwg0wVWdE48EdsH8fgvcbAiqojP4jXKl6LEM3soiW1aG/zrWrFt8Mw1ncG2vG1PvpZpVfehA==}
     hasBin: true
     peerDependencies:
       typescript: '>=5.0.0'
@@ -9313,13 +9313,13 @@ snapshots:
     transitivePeerDependencies:
       - supports-color
 
-  '@vue/language-core@2.2.0(typescript@5.7.3)':
+  '@vue/language-core@2.2.2(typescript@5.7.3)':
     dependencies:
       '@volar/language-core': 2.4.11
       '@vue/compiler-dom': 3.5.13
       '@vue/compiler-vue2': 2.7.16
       '@vue/shared': 3.5.13
-      alien-signals: 0.4.12
+      alien-signals: 1.0.3
       minimatch: 9.0.5
       muggle-string: 0.4.1
       path-browserify: 1.0.1
@@ -9469,7 +9469,7 @@ snapshots:
       require-from-string: 2.0.2
       uri-js: 4.4.1
 
-  alien-signals@0.4.12: {}
+  alien-signals@1.0.3: {}
 
   ansi-escapes@4.3.2:
     dependencies:
@@ -13601,10 +13601,10 @@ snapshots:
       '@vue/devtools-api': 6.6.4
       vue: 3.5.13(typescript@5.7.3)
 
-  vue-tsc@2.2.0(typescript@5.7.3):
+  vue-tsc@2.2.2(typescript@5.7.3):
     dependencies:
       '@volar/typescript': 2.4.11
-      '@vue/language-core': 2.2.0(typescript@5.7.3)
+      '@vue/language-core': 2.2.2(typescript@5.7.3)
       typescript: 5.7.3
 
   vue3-draggable-resizable@1.6.5: {}