bfg-common 1.4.158 → 1.4.159
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.
- package/assets/localization/local_be.json +0 -1
- package/assets/localization/local_en.json +0 -1
- package/assets/localization/local_hy.json +0 -1
- package/assets/localization/local_kk.json +0 -1
- package/assets/localization/local_ru.json +0 -1
- package/assets/localization/local_zh.json +0 -1
- package/components/common/layout/theHeader/TheHeaderNew.vue +1 -2
- package/components/common/layout/theHeader/helpMenu/helpMenuNew/HelpMenuNew.vue +0 -14
- package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +0 -14
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +271 -307
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +1 -4
- package/components/common/select/input/lib/models/interfaces.ts +1 -0
- package/components/common/split/horizontal/HorizontalNew.vue +0 -1
- package/components/common/wizards/vm/common/computeResource/TreeView.vue +3 -6
- package/components/common/wizards/vm/common/tooltip/Tooltip.vue +5 -5
- package/components/common/wizards/vm/migrate/Migrate.vue +161 -188
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +166 -53
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +93 -0
- package/components/common/wizards/vm/migrate/lib/models/interfaces.ts +26 -19
- package/components/common/wizards/vm/migrate/lib/utils.ts +0 -80
- package/components/common/wizards/vm/migrate/lib/validations.ts +57 -0
- package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +18 -52
- package/components/common/wizards/vm/migrate/select/computeResource/lib/config/tabsPannel.ts +1 -1
- package/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces.ts +2 -1
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +9 -18
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/clusterTable.ts +1 -1
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/resourcePoolTable.ts +1 -1
- package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/vappsTable.ts +20 -18
- package/components/common/wizards/vm/migrate/select/network/Network.vue +16 -11
- package/components/common/wizards/vm/migrate/select/network/lib/models/interfaces.ts +4 -0
- package/components/common/wizards/vm/migrate/select/network/table/network/Network.vue +16 -17
- package/components/common/wizards/vm/migrate/select/priority/Priority.vue +2 -16
- package/components/common/wizards/vm/migrate/select/storage/Storage.vue +29 -61
- package/components/common/wizards/vm/migrate/select/storage/configure/batch/Batch.vue +28 -33
- package/components/common/wizards/vm/migrate/select/storage/configure/batch/config/virtualDiskFormat.ts +30 -0
- package/components/common/wizards/vm/migrate/select/storage/{table/datastore/Datastore.vue → configure/batch/table/Table.vue} +48 -34
- package/components/common/wizards/vm/migrate/select/storage/configure/batch/table/lib/config/datastoreTable.ts +177 -0
- package/components/common/wizards/vm/migrate/select/storage/{table/datastore → configure/batch/table}/lib/models/types.ts +2 -2
- package/components/common/wizards/vm/migrate/select/storage/configure/disk/Disk.vue +11 -30
- package/components/common/wizards/vm/migrate/select/storage/{table/disk/Disk.vue → configure/disk/table/Table.vue} +5 -17
- package/components/common/wizards/vm/migrate/select/storage/{table/disk/lib/config/config.ts → configure/disk/table/lib/config/diskTable.ts} +36 -23
- package/components/common/wizards/vm/migrate/select/storage/{table/disk → configure/disk/table}/lib/config/tableKeys.ts +1 -1
- package/components/common/wizards/vm/migrate/select/storage/{table/disk → configure/disk/table}/lib/models/interfaces.ts +5 -0
- package/components/common/wizards/vm/migrate/select/storage/lib/models/interfaces.ts +0 -14
- package/components/common/wizards/vm/migrate/select/storage/selectedPerDisk/SelectedPerDisk.vue +14 -22
- package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +111 -144
- package/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces.ts +8 -10
- package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +11 -1
- package/components/common/wizards/vm/migrate/select/type/Type.vue +8 -19
- package/package.json +2 -2
- package/components/common/wizards/vm/migrate/contentHeading/ContentHeading.vue +0 -106
- package/components/common/wizards/vm/migrate/contentHeading/lib/models/interfaces.ts +0 -7
- package/components/common/wizards/vm/migrate/select/storage/diskFormat/DiskFormat.vue +0 -69
- package/components/common/wizards/vm/migrate/select/storage/diskFormat/lib/config/formatOptions.ts +0 -26
- package/components/common/wizards/vm/migrate/select/storage/table/datastore/lib/config/config.ts +0 -179
- package/components/common/wizards/vm/migrate/select/targetServer/new/lib/config/defaultForm.ts +0 -36
- /package/components/common/wizards/vm/migrate/select/storage/{table/disk → configure/disk/table}/lib/models/types.ts +0 -0
- /package/components/common/wizards/vm/migrate/{lib → select/type/lib}/models/types.ts +0 -0
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
:disabled="!selectedDisksFromTable.length"
|
|
9
9
|
@click="onConfigure"
|
|
10
10
|
>
|
|
11
|
-
{{ localization.
|
|
11
|
+
{{ localization.inventoryTabs.configure }}
|
|
12
12
|
</button>
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
|
-
<common-wizards-vm-migrate-select-storage-
|
|
16
|
-
v-model
|
|
15
|
+
<common-wizards-vm-migrate-select-storage-configure-disk-table
|
|
16
|
+
v-model="selectedPerDiskKeysLocal"
|
|
17
17
|
:configure-per-disks="props.configurePerDisks"
|
|
18
18
|
/>
|
|
19
19
|
</div>
|
|
@@ -21,23 +21,22 @@
|
|
|
21
21
|
|
|
22
22
|
<script lang="ts" setup>
|
|
23
23
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
24
|
-
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/
|
|
24
|
+
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/interfaces'
|
|
25
25
|
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
26
26
|
|
|
27
27
|
const props = defineProps<{
|
|
28
|
-
modelValue: boolean
|
|
29
|
-
selectedPerDiskKeys: number[]
|
|
30
28
|
configurePerDisks: UI_I_StorageConfigurePerDiskItem[]
|
|
31
|
-
activeTab: UI_T_VmMigrateSelectStorageTab
|
|
32
29
|
}>()
|
|
30
|
+
const modelShowSelectedPerDisk = defineModel<boolean>({ required: true })
|
|
31
|
+
const modelActiveTab = defineModel<UI_T_VmMigrateSelectStorageTab>('activeTab')
|
|
32
|
+
const selectedPerDiskKeysLocal = defineModel<number[]>('selectedPerDiskKeys', {
|
|
33
|
+
required: true,
|
|
34
|
+
})
|
|
33
35
|
const emits = defineEmits<{
|
|
34
|
-
(event: 'update:model-value', value: boolean): void
|
|
35
|
-
(event: 'update:selected-per-disk-keys', value: number[]): void
|
|
36
36
|
(
|
|
37
37
|
event: 'update-selected-per-disks',
|
|
38
38
|
value: UI_I_StorageConfigurePerDiskItem[]
|
|
39
39
|
): void
|
|
40
|
-
(event: 'update:active-tab', value: string): void
|
|
41
40
|
}>()
|
|
42
41
|
|
|
43
42
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -54,27 +53,9 @@ const selectedDisksFromTable = computed<UI_I_StorageConfigurePerDiskItem[]>(
|
|
|
54
53
|
|
|
55
54
|
const onConfigure = (): void => {
|
|
56
55
|
emits('update-selected-per-disks', selectedDisksFromTable.value)
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
modelShowSelectedPerDisk.value = true
|
|
57
|
+
modelActiveTab.value = 'batch-configure'
|
|
59
58
|
}
|
|
60
|
-
|
|
61
|
-
const selectedPerDiskKeysLocal = computed<number[]>({
|
|
62
|
-
get(): number[] {
|
|
63
|
-
return props.selectedPerDiskKeys
|
|
64
|
-
},
|
|
65
|
-
set(newValue: number[]) {
|
|
66
|
-
emits('update:selected-per-disk-keys', newValue)
|
|
67
|
-
},
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
const activeTabValue = computed<UI_T_VmMigrateSelectStorageTab>({
|
|
71
|
-
get() {
|
|
72
|
-
return props.activeTab
|
|
73
|
-
},
|
|
74
|
-
set(newValue: string) {
|
|
75
|
-
emits('update:active-tab', newValue)
|
|
76
|
-
},
|
|
77
|
-
})
|
|
78
59
|
</script>
|
|
79
60
|
|
|
80
61
|
<style lang="scss" scoped>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="data-table-view">
|
|
3
3
|
<atoms-table-data-grid
|
|
4
|
-
v-model:selected-row="
|
|
4
|
+
v-model:selected-row="selectedPerDiskKeysLocal"
|
|
5
5
|
v-model:column-keys="columnKeys"
|
|
6
6
|
v-model:page-size="pagination.pageSize"
|
|
7
7
|
v-model:page="pagination.page"
|
|
@@ -21,23 +21,20 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script lang="ts" setup>
|
|
24
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
25
|
-
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
26
24
|
import type {
|
|
27
25
|
UI_I_ColumnKey,
|
|
28
26
|
UI_I_HeadItem,
|
|
29
27
|
UI_I_BodyItem,
|
|
30
28
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
29
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
30
|
+
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
31
31
|
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/models/interfaces'
|
|
32
|
-
import * as table from '~/components/common/wizards/vm/migrate/select/storage/
|
|
32
|
+
import * as table from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/config/diskTable'
|
|
33
33
|
|
|
34
34
|
const props = defineProps<{
|
|
35
|
-
selectedPerDisk: number[]
|
|
36
35
|
configurePerDisks: UI_I_StorageConfigurePerDiskItem[]
|
|
37
36
|
}>()
|
|
38
|
-
const
|
|
39
|
-
(event: 'update:selected-per-disk', value: number[]): void
|
|
40
|
-
}>()
|
|
37
|
+
const selectedPerDiskKeysLocal = defineModel<number[]>()
|
|
41
38
|
|
|
42
39
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
43
40
|
|
|
@@ -62,15 +59,6 @@ const sorting = (data: [string, boolean]): void => {
|
|
|
62
59
|
const direction = status ? 'asc' : 'desc'
|
|
63
60
|
sort.value = `${column}.${direction}`
|
|
64
61
|
}
|
|
65
|
-
|
|
66
|
-
const selectedRow = computed<number[]>({
|
|
67
|
-
get() {
|
|
68
|
-
return props.selectedPerDisk
|
|
69
|
-
},
|
|
70
|
-
set(newValue: number[]) {
|
|
71
|
-
emits('update:selected-per-disk', newValue)
|
|
72
|
-
},
|
|
73
|
-
})
|
|
74
62
|
</script>
|
|
75
63
|
|
|
76
64
|
<style lang="scss" scoped>
|
|
@@ -3,50 +3,63 @@ import type {
|
|
|
3
3
|
UI_I_HeadItem,
|
|
4
4
|
UI_I_BodyItem,
|
|
5
5
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
6
|
+
import * as defaultSettings from '~/components/atoms/table/dataGrid/lib/config/settingsTable'
|
|
6
7
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
7
|
-
import {
|
|
8
|
-
constructColumnKey,
|
|
9
|
-
constructHeadItem,
|
|
10
|
-
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
11
|
-
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/models/interfaces'
|
|
12
|
-
import { vmMigrateDiskTableItemKeys } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/config/tableKeys'
|
|
8
|
+
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/interfaces'
|
|
13
9
|
import { UI_E_SelectStorageDiskFormat } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/enums'
|
|
10
|
+
import { vmMigrateDiskTableItemKeys } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/config/tableKeys'
|
|
11
|
+
|
|
14
12
|
const getItems = (
|
|
15
13
|
localization: UI_I_Localization
|
|
16
14
|
): [string, boolean, string, string][] => {
|
|
17
15
|
return [
|
|
18
|
-
[
|
|
19
|
-
|
|
16
|
+
[
|
|
17
|
+
localization.common.virtualMachine,
|
|
18
|
+
true,
|
|
19
|
+
'200px',
|
|
20
|
+
vmMigrateDiskTableItemKeys[0],
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
localization.common.diskGroup,
|
|
24
|
+
false,
|
|
25
|
+
'138px',
|
|
26
|
+
vmMigrateDiskTableItemKeys[1],
|
|
27
|
+
],
|
|
20
28
|
[localization.common.file, true, '180px', vmMigrateDiskTableItemKeys[2]],
|
|
21
29
|
[localization.common.storage, true, '120px', vmMigrateDiskTableItemKeys[3]],
|
|
22
|
-
[
|
|
30
|
+
[
|
|
31
|
+
localization.common.diskFormat,
|
|
32
|
+
true,
|
|
33
|
+
'180px',
|
|
34
|
+
vmMigrateDiskTableItemKeys[4],
|
|
35
|
+
],
|
|
23
36
|
[localization.common.sharing, true, '120px', vmMigrateDiskTableItemKeys[5]],
|
|
24
37
|
[localization.common.target, true, '120px', vmMigrateDiskTableItemKeys[6]],
|
|
25
38
|
[localization.common.cache, true, '120px', vmMigrateDiskTableItemKeys[7]],
|
|
26
|
-
[
|
|
39
|
+
[
|
|
40
|
+
localization.common.ioControl,
|
|
41
|
+
true,
|
|
42
|
+
'120px',
|
|
43
|
+
vmMigrateDiskTableItemKeys[8],
|
|
44
|
+
],
|
|
27
45
|
[localization.common.discard, true, '120px', vmMigrateDiskTableItemKeys[9]],
|
|
28
|
-
[
|
|
46
|
+
[
|
|
47
|
+
localization.common.diskMode,
|
|
48
|
+
true,
|
|
49
|
+
'180px',
|
|
50
|
+
vmMigrateDiskTableItemKeys[10],
|
|
51
|
+
],
|
|
29
52
|
]
|
|
30
53
|
}
|
|
31
54
|
|
|
32
55
|
export const columnKeys = (
|
|
33
56
|
localization: UI_I_Localization
|
|
34
57
|
): UI_I_ColumnKey[] => {
|
|
35
|
-
|
|
36
|
-
getItems(localization).forEach((item, i) => {
|
|
37
|
-
const col = `col${i}`
|
|
38
|
-
result.push(constructColumnKey(col, item[0], item[1]))
|
|
39
|
-
})
|
|
40
|
-
return result
|
|
58
|
+
return defaultSettings.defaultColumnKeys(getItems(localization))
|
|
41
59
|
}
|
|
42
60
|
|
|
43
61
|
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
44
|
-
|
|
45
|
-
getItems(localization).forEach((item, i) => {
|
|
46
|
-
const col = `col${i}`
|
|
47
|
-
result.push(constructHeadItem(col, item[0], item[3], true, item[2]))
|
|
48
|
-
})
|
|
49
|
-
return result
|
|
62
|
+
return defaultSettings.defaultHeadItems(getItems(localization))
|
|
50
63
|
}
|
|
51
64
|
|
|
52
65
|
export const bodyItems = (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UI_T_VmMigrateDiskTableTuple } from '~/components/common/wizards/vm/migrate/select/storage/
|
|
1
|
+
import type { UI_T_VmMigrateDiskTableTuple } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/types'
|
|
2
2
|
|
|
3
3
|
export const vmMigrateDiskTableItemKeys: UI_T_VmMigrateDiskTableTuple = [
|
|
4
4
|
'virtual_machine',
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { API_UI_I_DataTable } from '~/lib/models/table/interfaces'
|
|
2
|
+
|
|
1
3
|
interface API_UI_I_ExtraValuePerDiskItem {
|
|
2
4
|
cache: string
|
|
3
5
|
datastore_id: string
|
|
@@ -22,3 +24,6 @@ export interface API_UI_I_StorageConfigurePerDiskItem {
|
|
|
22
24
|
|
|
23
25
|
export interface UI_I_StorageConfigurePerDiskItem
|
|
24
26
|
extends API_UI_I_StorageConfigurePerDiskItem {}
|
|
27
|
+
|
|
28
|
+
export interface UI_I_MigrateVmConfigureDisk
|
|
29
|
+
extends API_UI_I_DataTable<API_UI_I_StorageConfigurePerDiskItem[]> {}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
|
|
2
|
-
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/table/disk/lib/models/interfaces'
|
|
3
|
-
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
4
|
-
|
|
5
|
-
export interface UI_I_SelectStorageDataLocal {
|
|
6
|
-
vmDiskFormat: 0 | 1 | 2 | 3
|
|
7
|
-
storage: UI_I_DatastoreTableItem | null
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface UI_I_SelectStorageReadyData
|
|
11
|
-
extends UI_I_SelectStorageDataLocal {
|
|
12
|
-
tab: UI_T_VmMigrateSelectStorageTab
|
|
13
|
-
configureDisks: UI_I_StorageConfigurePerDiskItem[]
|
|
14
|
-
}
|
package/components/common/wizards/vm/migrate/select/storage/selectedPerDisk/SelectedPerDisk.vue
CHANGED
|
@@ -31,39 +31,31 @@
|
|
|
31
31
|
<script lang="ts" setup>
|
|
32
32
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
33
33
|
import type { UI_T_VmMigrateSelectStorageTab } from '~/components/common/wizards/vm/migrate/select/storage/lib/models/types'
|
|
34
|
+
import type { UI_I_StorageConfigurePerDiskItem } from '~/components/common/wizards/vm/migrate/select/storage/configure/disk/table/lib/models/interfaces'
|
|
34
35
|
|
|
35
36
|
const props = defineProps<{
|
|
36
|
-
|
|
37
|
-
activeTab: UI_T_VmMigrateSelectStorageTab
|
|
38
|
-
connectedStorageIdLocal: string
|
|
39
|
-
data: any[]
|
|
40
|
-
}>()
|
|
41
|
-
const emits = defineEmits<{
|
|
42
|
-
(event: 'update:model-value', value: boolean): void
|
|
43
|
-
(event: 'update:active-tab', value: UI_T_VmMigrateSelectStorageTab): void
|
|
44
|
-
(event: 'update:connected-storage-id-local', value: string): void
|
|
37
|
+
data: UI_I_StorageConfigurePerDiskItem[]
|
|
45
38
|
}>()
|
|
39
|
+
const modelShowSelectedPerDisks = defineModel<boolean>()
|
|
40
|
+
const modelConnectedStorageIdLocal = defineModel<string>(
|
|
41
|
+
'connectedStorageIdLocal'
|
|
42
|
+
)
|
|
43
|
+
const modelActiveTab = defineModel<UI_T_VmMigrateSelectStorageTab>('activeTab')
|
|
46
44
|
|
|
47
45
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
48
46
|
|
|
49
47
|
const normalizedData = computed<string[]>(() =>
|
|
50
|
-
props.data.map(
|
|
48
|
+
props.data.map(
|
|
49
|
+
(disk: UI_I_StorageConfigurePerDiskItem) =>
|
|
50
|
+
`${disk.virtual_machine} | ${disk.file}`
|
|
51
|
+
)
|
|
51
52
|
)
|
|
52
53
|
|
|
53
54
|
const onGoBack = (): void => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
modelShowSelectedPerDisks.value = false
|
|
56
|
+
modelConnectedStorageIdLocal.value = ''
|
|
57
|
+
modelActiveTab.value = 'configure-disk'
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
const activeTabValue = computed<UI_T_VmMigrateSelectStorageTab>({
|
|
60
|
-
get() {
|
|
61
|
-
return props.activeTab
|
|
62
|
-
},
|
|
63
|
-
set(newValue: UI_T_VmMigrateSelectStorageTab) {
|
|
64
|
-
emits('update:active-tab', newValue)
|
|
65
|
-
},
|
|
66
|
-
})
|
|
67
59
|
</script>
|
|
68
60
|
|
|
69
61
|
<style lang="scss" scoped>
|