@xen-orchestra/web-core 0.16.0 → 0.17.0

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.
@@ -0,0 +1,74 @@
1
+ # `useMapper` composable
2
+
3
+ This composable maps values from one type to another using a mapping record. It takes a source value, a mapping object, and a default value to use when the source value is undefined or not found in the mapping.
4
+
5
+ ## Usage
6
+
7
+ ```ts
8
+ const mappedValue = useMapper(sourceValue, mapping, defaultValue)
9
+ ```
10
+
11
+ | | Required | Type | Default | |
12
+ | -------------- | :------: | ------------------------- | ------- | --------------------------------------------------------------------------------- |
13
+ | `sourceValue` | ✓ | `MaybeRefOrGetter<TFrom>` | | The source value to be mapped. Can be a ref, a getter function, or a raw value |
14
+ | `mapping` | ✓ | `Record<TFrom, TTo>` | | An object mapping source values to destination values |
15
+ | `defaultValue` | ✓ | `MaybeRefOrGetter<TTo>` | | The default value to use when the source is undefined or not found in the mapping |
16
+
17
+ ## Return value
18
+
19
+ | | Type | |
20
+ | ------------- | ------------------ | ------------------------------------------------ |
21
+ | `mappedValue` | `ComputedRef<TTo>` | A computed reference containing the mapped value |
22
+
23
+ ## Example
24
+
25
+ ```vue
26
+ <template>
27
+ <div>
28
+ <p>Selected car color: {{ carColor }}</p>
29
+ <p>Recommended wall color: {{ wallColor }}</p>
30
+
31
+ <button @click="carColor = 'red'">Red Car</button>
32
+ <button @click="carColor = 'blue'">Blue Car</button>
33
+ <button @click="carColor = 'black'">Black Car</button>
34
+ <button @click="carColor = 'green'">Green Car</button>
35
+ <button @click="carColor = 'silver'">Silver Car</button>
36
+ <button @click="carColor = undefined">No Car</button>
37
+ </div>
38
+ </template>
39
+
40
+ <script lang="ts" setup>
41
+ import { useMapper } from '@/composables/mapper'
42
+ import { ref } from 'vue'
43
+
44
+ // Source type
45
+ type CarColor = 'red' | 'blue' | 'black' | 'green' | 'silver'
46
+
47
+ // Destination type
48
+ type WallColor = 'beige' | 'lightGray' | 'cream' | 'white'
49
+
50
+ // Create a ref for the source value
51
+ const carColor = ref<CarColor | undefined>(undefined)
52
+
53
+ // Create a computed property that maps car color to wall color
54
+ const wallColor = useMapper<CarColor, WallColor>(
55
+ carColor,
56
+ {
57
+ red: 'beige',
58
+ blue: 'lightGray',
59
+ black: 'cream',
60
+ green: 'beige',
61
+ silver: 'lightGray',
62
+ },
63
+ 'white'
64
+ )
65
+ </script>
66
+ ```
67
+
68
+ In this example:
69
+
70
+ - When `carColor.value` is `'red'` or `'green'`, `wallColor.value` will be `'beige'`
71
+ - When `carColor.value` is `'blue'` or `'silver'`, `wallColor.value` will be `'lightGray'`
72
+ - When `carColor.value` is `'black'`, `wallColor.value` will be `'cream'`
73
+ - When `carColor.value` is `undefined` or any value not in the mapping, `wallColor.value` will be
74
+ `'white'` (the default value)
@@ -0,0 +1,18 @@
1
+ import { computed, type ComputedRef, type MaybeRefOrGetter, toValue } from 'vue'
2
+
3
+ export function useMapper<TFrom extends string | number, TTo>(
4
+ _source: MaybeRefOrGetter<TFrom | undefined>,
5
+ mapping: Record<TFrom, TTo>,
6
+ _defaultValue: MaybeRefOrGetter<TTo>
7
+ ): ComputedRef<TTo> {
8
+ return computed(() => {
9
+ const source = toValue(_source)
10
+ const defaultValue = toValue(_defaultValue)
11
+
12
+ if (source === undefined) {
13
+ return defaultValue
14
+ }
15
+
16
+ return Object.prototype.hasOwnProperty.call(mapping, source) ? mapping[source] : defaultValue
17
+ })
18
+ }
@@ -0,0 +1,32 @@
1
+ # usePagination Composable
2
+
3
+ Handles record pagination with localStorage and route persistence.
4
+
5
+ The composable uses index-based pagination instead of page numbers, enabling URL sharing across users with different "Show by" settings. The index represents the first visible record.
6
+
7
+ ## Storage
8
+
9
+ - Route query: `{id}.idx` stores start index
10
+ - LocalStorage: `{id}.per-page` stores "Show by" value (default: 50)
11
+
12
+ ## Key Points
13
+
14
+ - `showBy = -1` displays all records
15
+ - `pageRecords` returns current page's records subset
16
+ - `seek(predicate)` finds and navigates to specific record's page
17
+ - All indices auto-align to page boundaries
18
+ - `paginationBindings` contains props and events for `UiTablePagination`
19
+
20
+ ## Usage
21
+
22
+ ```typescript
23
+ // Basic usage
24
+ const { pageRecords, paginationBindings } = usePagination('items', items)
25
+
26
+ // Template
27
+ <div v-for="item in pageRecords" :key="item.id">
28
+ {{ item.name }}
29
+ </div>
30
+
31
+ <UiTablePagination v-bind="paginationBindings" />
32
+ ```
@@ -0,0 +1,91 @@
1
+ import { useRouteQuery } from '@core/composables/route-query.composable'
2
+ import { clamp, useLocalStorage } from '@vueuse/core'
3
+ import { computed, type MaybeRefOrGetter, toValue } from 'vue'
4
+
5
+ export function usePagination<T>(id: string, _records: MaybeRefOrGetter<T[]>) {
6
+ const records = computed(() => toValue(_records))
7
+
8
+ const showBy = useLocalStorage(`${id}.per-page`, 50)
9
+
10
+ const pageSize = computed({
11
+ get: () => (showBy.value === -1 ? Number.MAX_SAFE_INTEGER : showBy.value),
12
+ set: value => (showBy.value = value),
13
+ })
14
+
15
+ function toStartIndex(rawIndex: number | string) {
16
+ const index = clamp(+rawIndex, 0, records.value.length - 1) || 0
17
+
18
+ return Math.floor(index / pageSize.value) * pageSize.value
19
+ }
20
+
21
+ const startIndex = useRouteQuery<number>(`${id}.idx`, {
22
+ defaultQuery: '0',
23
+ toData: value => toStartIndex(value),
24
+ toQuery: value => toStartIndex(value).toString(10),
25
+ })
26
+
27
+ const endIndex = computed(() => Math.min(startIndex.value + pageSize.value - 1, records.value.length - 1))
28
+
29
+ const isFirstPage = computed(() => startIndex.value <= 0)
30
+
31
+ const isLastPage = computed(() => endIndex.value >= records.value.length - 1)
32
+
33
+ const pageRecords = computed(() => records.value.slice(startIndex.value, endIndex.value + 1))
34
+
35
+ function seek(predicate: (record: T) => boolean) {
36
+ const index = records.value.findIndex(predicate)
37
+
38
+ if (index !== -1) {
39
+ startIndex.value = index
40
+ }
41
+ }
42
+
43
+ function goToNextPage() {
44
+ if (!isLastPage.value) {
45
+ startIndex.value = startIndex.value + pageSize.value
46
+ }
47
+ }
48
+
49
+ function goToPreviousPage() {
50
+ if (!isFirstPage.value) {
51
+ startIndex.value = startIndex.value - pageSize.value
52
+ }
53
+ }
54
+
55
+ function goToFirstPage() {
56
+ startIndex.value = 0
57
+ }
58
+
59
+ function goToLastPage() {
60
+ startIndex.value = records.value.length - 1
61
+ }
62
+
63
+ const paginationBindings = computed(() => ({
64
+ showBy: showBy.value,
65
+ 'onUpdate:showBy': (value: number) => (showBy.value = value),
66
+ from: Math.max(0, startIndex.value + 1),
67
+ to: endIndex.value + 1,
68
+ total: records.value.length,
69
+ isFirstPage: isFirstPage.value,
70
+ isLastPage: isLastPage.value,
71
+ onFirst: goToFirstPage,
72
+ onLast: goToLastPage,
73
+ onNext: goToNextPage,
74
+ onPrevious: goToPreviousPage,
75
+ }))
76
+
77
+ return {
78
+ startIndex,
79
+ endIndex,
80
+ seek,
81
+ showBy,
82
+ isFirstPage,
83
+ isLastPage,
84
+ goToPreviousPage,
85
+ goToNextPage,
86
+ goToFirstPage,
87
+ goToLastPage,
88
+ pageRecords,
89
+ paginationBindings,
90
+ }
91
+ }
@@ -0,0 +1,118 @@
1
+ # `useRanked` composable
2
+
3
+ This composable helps sort items based on a predefined ranking order.
4
+
5
+ It takes an array of items and a ranking order, and returns a computed sorted array according to the ranking.
6
+
7
+ ## Usage
8
+
9
+ ### Signature 1: Sorting ranks directly
10
+
11
+ ```ts
12
+ const sortedRanks = useRanked(ranks, ranking)
13
+ ```
14
+
15
+ | | Required | Type | Default | Description |
16
+ | --------- | :------: | --------------------------- | ------- | ---------------------------------------------------------- |
17
+ | `ranks` | ✓ | `MaybeRefOrGetter<TRank[]>` | | The array of ranks to sort |
18
+ | `ranking` | ✓ | `TRank[]` | | The array of ranks ordered from highest to lowest priority |
19
+
20
+ #### Return value
21
+
22
+ | | Type | Description |
23
+ | ------------- | ---------------------- | --------------------------------------------------------------- |
24
+ | `sortedRanks` | `ComputedRef<TRank[]>` | A computed array of ranks sorted according to the ranking order |
25
+
26
+ - Ranks are sorted based on their position in the `ranking` array (lower index = higher priority)
27
+ - Ranks not found in the `ranking` array are placed after all defined ranks in their original order
28
+
29
+ #### Example: Sorting priority levels
30
+
31
+ ```ts
32
+ import { useRanked } from '@core/composables/ranked.composable'
33
+ import { ref } from 'vue'
34
+
35
+ // Priority levels in random order
36
+ const currentPriorities = ref(['high', 'medium', 'low', 'critical', 'low', 'medium', 'high'])
37
+
38
+ // Define the ranking order (from highest to lowest priority)
39
+ const priorityRanking = ['critical', 'high', 'medium', 'low']
40
+
41
+ // Sort priorities according to the ranking
42
+ const sortedPriorities = useRanked(currentPriorities, priorityRanking)
43
+
44
+ // sortedPriorities.value will be:
45
+ // ['critical', 'high', 'high', 'medium', 'medium', 'low', 'low']
46
+ ```
47
+
48
+ ### Signature 2: Sorting items by their rank
49
+
50
+ ```ts
51
+ const sortedItems = useRanked(items, getRank, ranking)
52
+ ```
53
+
54
+ | | Required | Type | Default | Description |
55
+ | --------- | :------: | --------------------------- | ------- | ---------------------------------------------------------- |
56
+ | `items` | ✓ | `MaybeRefOrGetter<TItem[]>` | | The array of items to sort |
57
+ | `getRank` | ✓ | `(item: TItem) => TRank` | | A function to extract rank from an item |
58
+ | `ranking` | ✓ | `TRank[]` | | The array of ranks ordered from highest to lowest priority |
59
+
60
+ #### Return value
61
+
62
+ | | Type | Description |
63
+ | ------------- | ---------------------- | ------------------------------------------------- |
64
+ | `sortedItems` | `ComputedRef<TItem[]>` | A computed array of items sorted by their ranking |
65
+
66
+ - Items are sorted based on their rank in the `ranking` array (lower index = higher priority)
67
+ - Items with ranks not found in the `ranking` array are placed after all ranked items in their original order
68
+
69
+ #### Example: Sorting tasks by priority
70
+
71
+ ```ts
72
+ import { useRanked } from '@core/composables/ranked.composable'
73
+ import { ref } from 'vue'
74
+
75
+ // Tasks with different priorities
76
+ const tasks = ref([
77
+ {
78
+ id: 1,
79
+ title: 'Fix login bug',
80
+ priority: 'high',
81
+ },
82
+ {
83
+ id: 2,
84
+ title: 'Update documentation',
85
+ priority: 'low',
86
+ },
87
+ {
88
+ id: 3,
89
+ title: 'Server outage',
90
+ priority: 'critical',
91
+ },
92
+ {
93
+ id: 4,
94
+ title: 'Refactor components',
95
+ priority: 'medium',
96
+ },
97
+ {
98
+ id: 5,
99
+ title: 'Design review',
100
+ priority: 'medium',
101
+ },
102
+ ])
103
+
104
+ // Define the ranking order (from highest to lowest priority)
105
+ const priorityRanking = ['critical', 'high', 'medium', 'low']
106
+
107
+ // Sort tasks by priority according to the ranking
108
+ const sortedTasks = useRanked(tasks, task => task.priority, priorityRanking)
109
+
110
+ // sortedTasks.value will be:
111
+ // [
112
+ // { id: 3, title: 'Server outage', priority: 'critical' },
113
+ // { id: 1, title: 'Fix login bug', priority: 'high' },
114
+ // { id: 4, title: 'Refactor components', priority: 'medium' },
115
+ // { id: 5, title: 'Design review', priority: 'medium' },
116
+ // { id: 2, title: 'Update documentation', priority: 'low' }
117
+ // ]
118
+ ```
@@ -0,0 +1,37 @@
1
+ import { clamp, useSorted } from '@vueuse/core'
2
+ import { computed, type ComputedRef, type MaybeRefOrGetter, toValue } from 'vue'
3
+
4
+ export function useRanked<TRank extends string | number>(
5
+ ranks: MaybeRefOrGetter<TRank[]>,
6
+ ranking: NoInfer<TRank>[]
7
+ ): ComputedRef<TRank[]>
8
+
9
+ export function useRanked<TItem, TRank extends string | number>(
10
+ items: MaybeRefOrGetter<TItem[]>,
11
+ getRank: (item: TItem) => TRank,
12
+ ranking: NoInfer<TRank>[]
13
+ ): ComputedRef<TItem[]>
14
+
15
+ export function useRanked<TItem, TRank extends string | number>(
16
+ items: MaybeRefOrGetter<TItem[]>,
17
+ ranksOrGetRank: TRank[] | ((item: TItem) => TRank),
18
+ ranksOrNone?: TRank[]
19
+ ) {
20
+ const getRank = typeof ranksOrGetRank === 'function' ? ranksOrGetRank : (item: TItem) => item as unknown as TRank
21
+
22
+ const ranks = ranksOrNone === undefined ? (ranksOrGetRank as TRank[]) : ranksOrNone
23
+
24
+ const ranksMap = computed(() => Object.fromEntries(ranks.map((rank, index) => [rank, index + 1]))) as ComputedRef<
25
+ Record<TRank, number>
26
+ >
27
+
28
+ function getRankNumber(item: TItem): number {
29
+ return ranksMap.value[getRank(item)] ?? toValue(items).length + 1
30
+ }
31
+
32
+ function compare(item1: TItem, item2: TItem) {
33
+ return clamp(getRankNumber(item1) - getRankNumber(item2), -1, 1) as -1 | 0 | 1
34
+ }
35
+
36
+ return useSorted(items, compare)
37
+ }
@@ -53,6 +53,7 @@
53
53
  "cancel": "Cancel",
54
54
  "change-state": "Change state",
55
55
  "check-errors": "Check out the errors:",
56
+ "check-summing": "TX checksumming",
56
57
  "click-to-display-alarms": "Click to display alarms:",
57
58
  "click-to-return-default-pool": "Click here to return to the default pool",
58
59
  "close": "Close",
@@ -68,6 +69,7 @@
68
69
  "console-clipboard": "Console clipboard",
69
70
  "console-unavailable": "Console unavailable",
70
71
  "copy": "Copy",
72
+ "copy-all": "Copy all",
71
73
  "copy-info-json": "Copy information into JSON",
72
74
  "core.character-limit": "{count}/{max} character | {count}/{max} characters",
73
75
  "core.close": "Close",
@@ -78,6 +80,8 @@
78
80
  "core.group": "Group",
79
81
  "core.hide": "Hide",
80
82
  "core.open": "Open",
83
+ "core.pagination.all": "All",
84
+ "core.pagination.show-by": "Show by",
81
85
  "core.query-search-bar.label": "Search Engine",
82
86
  "core.query-search-bar.placeholder": "Write your query…",
83
87
  "core.query-search-bar.use-query-builder": "Use query builder",
@@ -269,17 +273,19 @@
269
273
  "networks": "Networks",
270
274
  "new": "New",
271
275
  "new-features-are-coming": "New features are coming soon!",
276
+ "new-vif": "New VIF",
272
277
  "news": "News",
273
278
  "news-name": "{name} news",
274
279
  "no-alarm-triggered": "No alarm triggered",
275
280
  "no-data": "No data",
276
281
  "no-network-detected": "No network detected",
277
- "no-pif-detected": "No pif detected",
282
+ "no-pif-detected": "No PIF detected",
278
283
  "no-result": "No result",
279
284
  "no-results": "No results",
280
285
  "no-selected-vm-can-be-exported": "No selected VM can be exported",
281
286
  "no-selected-vm-can-be-migrated": "No selected VM can be migrated",
282
287
  "no-tasks": "No tasks",
288
+ "no-vif-detected": "No VIF detected",
283
289
  "none": "None",
284
290
  "not-found": "Not found",
285
291
  "object": "Object",
@@ -407,6 +413,10 @@
407
413
  "vcpus": "vCPUs",
408
414
  "vcpus-used": "vCPUs used",
409
415
  "version": "Version",
416
+ "vif": "VIF",
417
+ "vif-device": "VIF #{device}",
418
+ "vif-status": "VIF status",
419
+ "vifs": "VIFs",
410
420
  "vlan": "VLAN",
411
421
  "vm": "VM",
412
422
  "vm-description": "VM description",
@@ -53,6 +53,7 @@
53
53
  "cancel": "Annuler",
54
54
  "change-state": "Changer l'état",
55
55
  "check-errors": "Consultez les erreurs :",
56
+ "check-summing": "TX checksumming",
56
57
  "click-to-display-alarms": "Cliquer pour afficher les alarmes :",
57
58
  "click-to-return-default-pool": "Cliquer ici pour revenir au pool par défaut",
58
59
  "close": "Fermer",
@@ -68,6 +69,7 @@
68
69
  "console-clipboard": "Presse-papiers de la console",
69
70
  "console-unavailable": "Console indisponible",
70
71
  "copy": "Copier",
72
+ "copy-all": "Copier tout",
71
73
  "copy-info-json": "Copier les informations en JSON",
72
74
  "core.character-limit": "{count}/{max} caractère | {count}/{max} caractères",
73
75
  "core.close": "Fermer",
@@ -78,6 +80,8 @@
78
80
  "core.group": "Grouper",
79
81
  "core.hide": "Masquer",
80
82
  "core.open": "Ouvrir",
83
+ "core.pagination.all": "Tous",
84
+ "core.pagination.show-by": "Afficher par",
81
85
  "core.query-search-bar.label": "Moteur de recherche",
82
86
  "core.query-search-bar.placeholder": "Écrivez votre requête…",
83
87
  "core.query-search-bar.use-query-builder": "Utiliser le constructeur de requête",
@@ -269,6 +273,7 @@
269
273
  "networks": "Réseaux",
270
274
  "new": "Nouveau",
271
275
  "new-features-are-coming": "De nouvelles fonctionnalités arrivent bientôt !",
276
+ "new-vif": "Nouveau VIF",
272
277
  "news": "Actualités",
273
278
  "news-name": "Actualités {name}",
274
279
  "no-alarm-triggered": "Aucune alarme déclenchée",
@@ -280,6 +285,7 @@
280
285
  "no-selected-vm-can-be-exported": "Aucune VM sélectionnée ne peut être exportée",
281
286
  "no-selected-vm-can-be-migrated": "Aucune VM sélectionnée ne peut être migrée",
282
287
  "no-tasks": "Aucune tâche",
288
+ "no-vif-detected": "Aucun VIF détecté",
283
289
  "none": "Aucun",
284
290
  "not-found": "Non trouvé",
285
291
  "object": "Objet",
@@ -407,6 +413,10 @@
407
413
  "vcpus": "vCPUs",
408
414
  "vcpus-used": "vCPUs utilisés",
409
415
  "version": "Version",
416
+ "vif": "VIF",
417
+ "vif-device": "VIF #{device}",
418
+ "vif-status": "Statut du VIF",
419
+ "vifs": "VIFs",
410
420
  "vlan": "VLAN",
411
421
  "vm": "VM",
412
422
  "vm-description": "Description de la VM",
@@ -2,7 +2,7 @@ import type { MaybeArray, VoidFunction } from '@core/types/utility.type'
2
2
  import { toArray } from '@core/utils/to-array.utils'
3
3
  import { watch, type WatchOptions, type WatchSource } from 'vue'
4
4
 
5
- export interface IfElseOptions extends Pick<WatchOptions, 'immediate'> {}
5
+ export interface IfElseOptions extends Pick<WatchOptions, 'immediate' | 'flush'> {}
6
6
 
7
7
  export function ifElse(
8
8
  source: WatchSource<boolean>,
@@ -1,3 +1,4 @@
1
+ import type { InputWrapperController } from '@core/components/input-wrapper/VtsInputWrapper.vue'
1
2
  import type { ValueFormatter } from '@core/types/chart'
2
3
  import type { ComputedRef, InjectionKey, Ref } from 'vue'
3
4
 
@@ -11,8 +12,6 @@ export const IK_TREE_ITEM_EXPANDED = Symbol('IK_TREE_ITEM_EXPANDED') as Injectio
11
12
 
12
13
  export const IK_TREE_LIST_DEPTH = Symbol('IK_TREE_LIST_DEPTH') as InjectionKey<number>
13
14
 
14
- export const IK_DROPDOWN_CHECKBOX = Symbol('IK_DROPDOWN_CHECKBOX') as InjectionKey<ComputedRef<boolean>>
15
-
16
15
  export const IK_MENU_HORIZONTAL = Symbol('IK_MENU_HORIZONTAL') as InjectionKey<ComputedRef<boolean>>
17
16
 
18
17
  export const IK_CLOSE_MENU = Symbol('IK_CLOSE_MENU') as InjectionKey<() => void>
@@ -20,3 +19,5 @@ export const IK_CLOSE_MENU = Symbol('IK_CLOSE_MENU') as InjectionKey<() => void>
20
19
  export const IK_MENU_TELEPORTED = Symbol('IK_MENU_TELEPORTED') as InjectionKey<boolean>
21
20
 
22
21
  export const IK_DISABLED = Symbol('IK_DISABLED') as InjectionKey<ComputedRef<boolean>>
22
+
23
+ export const IK_INPUT_WRAPPER_CONTROLLER = Symbol('IK_INPUT_WRAPPER_CONTROLLER') as InjectionKey<InputWrapperController>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xen-orchestra/web-core",
3
3
  "type": "module",
4
- "version": "0.16.0",
4
+ "version": "0.17.0",
5
5
  "private": false,
6
6
  "exports": {
7
7
  "./*": {
@@ -10,19 +10,19 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "@floating-ui/vue": "^1.1.5",
14
- "@fontsource/poppins": "^5.0.14",
15
- "@fortawesome/fontawesome-common-types": "^6.5.1",
16
- "@fortawesome/free-regular-svg-icons": "^6.5.1",
17
- "@fortawesome/free-solid-svg-icons": "^6.5.1",
18
- "@fortawesome/vue-fontawesome": "^3.0.5",
19
- "@novnc/novnc": "^1.4.0",
13
+ "@floating-ui/vue": "^1.1.6",
14
+ "@fontsource/poppins": "^5.2.5",
15
+ "@fortawesome/fontawesome-common-types": "^6.7.2",
16
+ "@fortawesome/free-regular-svg-icons": "^6.7.2",
17
+ "@fortawesome/free-solid-svg-icons": "^6.7.2",
18
+ "@fortawesome/vue-fontawesome": "^3.0.8",
19
+ "@novnc/novnc": "~1.5.0",
20
20
  "@types/d3-time-format": "^4.0.3",
21
- "@vueuse/core": "^10.7.1",
22
- "@vueuse/math": "^10.7.1",
23
- "@vueuse/shared": "^10.7.1",
21
+ "@vueuse/core": "^13.0.0",
22
+ "@vueuse/math": "^13.0.0",
23
+ "@vueuse/shared": "^13.0.0",
24
24
  "d3-time-format": "^4.1.0",
25
- "echarts": "^5.4.3",
25
+ "echarts": "^5.6.0",
26
26
  "human-format": "^1.2.1",
27
27
  "iterable-backoff": "^0.1.0",
28
28
  "lodash-es": "^4.17.21",
@@ -30,19 +30,19 @@
30
30
  "vue-echarts": "^6.6.8"
31
31
  },
32
32
  "peerDependencies": {
33
- "pinia": "^2.2.6",
34
- "vue": "~3.5.12",
35
- "vue-i18n": "^9.9.0",
36
- "vue-router": "^4.4.5"
33
+ "pinia": "^3.0.1",
34
+ "vue": "~3.5.13",
35
+ "vue-i18n": "^11.1.2",
36
+ "vue-router": "^4.5.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/lodash-es": "^4.17.12",
40
- "@types/novnc__novnc": "^1.5.0",
41
- "@vue/tsconfig": "^0.5.1",
42
- "pinia": "^2.2.6",
43
- "vue": "~3.5.12",
44
- "vue-i18n": "^9.9.0",
45
- "vue-router": "^4.4.5"
40
+ "@types/novnc__novnc": "~1.5.0",
41
+ "@vue/tsconfig": "^0.7.0",
42
+ "pinia": "^3.0.1",
43
+ "vue": "~3.5.13",
44
+ "vue-i18n": "^11.1.2",
45
+ "vue-router": "^4.5.0"
46
46
  },
47
47
  "homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/@xen-orchestra/web-core",
48
48
  "bugs": "https://github.com/vatesfr/xen-orchestra/issues",