bfg-common 1.4.106 → 1.4.108
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/components/common/wizards/vmNew/migrate/select/storage/Storage.vue +1 -1
- package/components/common/wizards/vmNew/migrate/select/storage/{table/disk/Disk.vue → configure/disk/table/Table.vue} +3 -3
- package/components/common/wizards/vmNew/migrate/select/storage/{table/disk/lib/config/config.ts → configure/disk/table/lib/config/diskTable.ts} +35 -23
- package/components/common/wizards/vmNew/migrate/select/storage/{table/disk → configure/disk/table}/lib/config/tableKeys.ts +1 -1
- package/package.json +1 -1
- /package/components/common/wizards/vmNew/migrate/select/storage/{table/disk → configure/disk/table}/lib/models/interfaces.ts +0 -0
- /package/components/common/wizards/vmNew/migrate/select/storage/{table/disk → configure/disk/table}/lib/models/types.ts +0 -0
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
</common-wizards-vm-new-migrate-select-storage-configure-batch>
|
|
47
47
|
|
|
48
|
-
<common-wizards-vm-migrate-select-storage-configure-disk
|
|
48
|
+
<common-wizards-vm-new-migrate-select-storage-configure-disk-table
|
|
49
49
|
v-show="activeTab === 'configure-disk'"
|
|
50
50
|
v-model="isShowSelectedPerDisks"
|
|
51
51
|
v-model:selected-per-disk-keys="selectedPerDiskKeys"
|
|
@@ -21,15 +21,15 @@
|
|
|
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/
|
|
32
|
+
import * as table from '~/components/common/wizards/vmNew/migrate/select/storage/configure/disk/table/lib/config/diskTable'
|
|
33
33
|
|
|
34
34
|
const props = defineProps<{
|
|
35
35
|
selectedPerDisk: number[]
|
|
@@ -3,50 +3,62 @@ 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/vmNew/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/table/disk/lib/config/tableKeys'
|
|
14
11
|
const getItems = (
|
|
15
12
|
localization: UI_I_Localization
|
|
16
13
|
): [string, boolean, string, string][] => {
|
|
17
14
|
return [
|
|
18
|
-
[
|
|
19
|
-
|
|
15
|
+
[
|
|
16
|
+
localization.common.virtualMachine,
|
|
17
|
+
true,
|
|
18
|
+
'200px',
|
|
19
|
+
vmMigrateDiskTableItemKeys[0],
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
localization.common.diskGroup,
|
|
23
|
+
false,
|
|
24
|
+
'138px',
|
|
25
|
+
vmMigrateDiskTableItemKeys[1],
|
|
26
|
+
],
|
|
20
27
|
[localization.common.file, true, '180px', vmMigrateDiskTableItemKeys[2]],
|
|
21
28
|
[localization.common.storage, true, '120px', vmMigrateDiskTableItemKeys[3]],
|
|
22
|
-
[
|
|
29
|
+
[
|
|
30
|
+
localization.common.diskFormat,
|
|
31
|
+
true,
|
|
32
|
+
'180px',
|
|
33
|
+
vmMigrateDiskTableItemKeys[4],
|
|
34
|
+
],
|
|
23
35
|
[localization.common.sharing, true, '120px', vmMigrateDiskTableItemKeys[5]],
|
|
24
36
|
[localization.common.target, true, '120px', vmMigrateDiskTableItemKeys[6]],
|
|
25
37
|
[localization.common.cache, true, '120px', vmMigrateDiskTableItemKeys[7]],
|
|
26
|
-
[
|
|
38
|
+
[
|
|
39
|
+
localization.common.ioControl,
|
|
40
|
+
true,
|
|
41
|
+
'120px',
|
|
42
|
+
vmMigrateDiskTableItemKeys[8],
|
|
43
|
+
],
|
|
27
44
|
[localization.common.discard, true, '120px', vmMigrateDiskTableItemKeys[9]],
|
|
28
|
-
[
|
|
45
|
+
[
|
|
46
|
+
localization.common.diskMode,
|
|
47
|
+
true,
|
|
48
|
+
'180px',
|
|
49
|
+
vmMigrateDiskTableItemKeys[10],
|
|
50
|
+
],
|
|
29
51
|
]
|
|
30
52
|
}
|
|
31
53
|
|
|
32
54
|
export const columnKeys = (
|
|
33
55
|
localization: UI_I_Localization
|
|
34
56
|
): 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
|
|
57
|
+
return defaultSettings.defaultColumnKeys(getItems(localization))
|
|
41
58
|
}
|
|
42
59
|
|
|
43
60
|
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
|
|
61
|
+
return defaultSettings.defaultHeadItems(getItems(localization))
|
|
50
62
|
}
|
|
51
63
|
|
|
52
64
|
export const bodyItems = (
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UI_T_VmMigrateDiskTableTuple } from '~/components/common/wizards/
|
|
1
|
+
import type { UI_T_VmMigrateDiskTableTuple } from '~/components/common/wizards/vmNew/migrate/select/storage/configure/disk/table/lib/models/types'
|
|
2
2
|
|
|
3
3
|
export const vmMigrateDiskTableItemKeys: UI_T_VmMigrateDiskTableTuple = [
|
|
4
4
|
'virtual_machine',
|
package/package.json
CHANGED
|
File without changes
|