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.
Files changed (58) hide show
  1. package/assets/localization/local_be.json +0 -1
  2. package/assets/localization/local_en.json +0 -1
  3. package/assets/localization/local_hy.json +0 -1
  4. package/assets/localization/local_kk.json +0 -1
  5. package/assets/localization/local_ru.json +0 -1
  6. package/assets/localization/local_zh.json +0 -1
  7. package/components/common/layout/theHeader/TheHeaderNew.vue +1 -2
  8. package/components/common/layout/theHeader/helpMenu/helpMenuNew/HelpMenuNew.vue +0 -14
  9. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +0 -14
  10. package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +271 -307
  11. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +1 -4
  12. package/components/common/select/input/lib/models/interfaces.ts +1 -0
  13. package/components/common/split/horizontal/HorizontalNew.vue +0 -1
  14. package/components/common/wizards/vm/common/computeResource/TreeView.vue +3 -6
  15. package/components/common/wizards/vm/common/tooltip/Tooltip.vue +5 -5
  16. package/components/common/wizards/vm/migrate/Migrate.vue +161 -188
  17. package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +166 -53
  18. package/components/common/wizards/vm/migrate/lib/config/steps.ts +93 -0
  19. package/components/common/wizards/vm/migrate/lib/models/interfaces.ts +26 -19
  20. package/components/common/wizards/vm/migrate/lib/utils.ts +0 -80
  21. package/components/common/wizards/vm/migrate/lib/validations.ts +57 -0
  22. package/components/common/wizards/vm/migrate/select/computeResource/ComputeResource.vue +18 -52
  23. package/components/common/wizards/vm/migrate/select/computeResource/lib/config/tabsPannel.ts +1 -1
  24. package/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces.ts +2 -1
  25. package/components/common/wizards/vm/migrate/select/computeResource/tableView/TableView.vue +9 -18
  26. package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/clusterTable.ts +1 -1
  27. package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/resourcePoolTable.ts +1 -1
  28. package/components/common/wizards/vm/migrate/select/computeResource/tableView/lib/config/vappsTable.ts +20 -18
  29. package/components/common/wizards/vm/migrate/select/network/Network.vue +16 -11
  30. package/components/common/wizards/vm/migrate/select/network/lib/models/interfaces.ts +4 -0
  31. package/components/common/wizards/vm/migrate/select/network/table/network/Network.vue +16 -17
  32. package/components/common/wizards/vm/migrate/select/priority/Priority.vue +2 -16
  33. package/components/common/wizards/vm/migrate/select/storage/Storage.vue +29 -61
  34. package/components/common/wizards/vm/migrate/select/storage/configure/batch/Batch.vue +28 -33
  35. package/components/common/wizards/vm/migrate/select/storage/configure/batch/config/virtualDiskFormat.ts +30 -0
  36. package/components/common/wizards/vm/migrate/select/storage/{table/datastore/Datastore.vue → configure/batch/table/Table.vue} +48 -34
  37. package/components/common/wizards/vm/migrate/select/storage/configure/batch/table/lib/config/datastoreTable.ts +177 -0
  38. package/components/common/wizards/vm/migrate/select/storage/{table/datastore → configure/batch/table}/lib/models/types.ts +2 -2
  39. package/components/common/wizards/vm/migrate/select/storage/configure/disk/Disk.vue +11 -30
  40. package/components/common/wizards/vm/migrate/select/storage/{table/disk/Disk.vue → configure/disk/table/Table.vue} +5 -17
  41. package/components/common/wizards/vm/migrate/select/storage/{table/disk/lib/config/config.ts → configure/disk/table/lib/config/diskTable.ts} +36 -23
  42. package/components/common/wizards/vm/migrate/select/storage/{table/disk → configure/disk/table}/lib/config/tableKeys.ts +1 -1
  43. package/components/common/wizards/vm/migrate/select/storage/{table/disk → configure/disk/table}/lib/models/interfaces.ts +5 -0
  44. package/components/common/wizards/vm/migrate/select/storage/lib/models/interfaces.ts +0 -14
  45. package/components/common/wizards/vm/migrate/select/storage/selectedPerDisk/SelectedPerDisk.vue +14 -22
  46. package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +111 -144
  47. package/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces.ts +8 -10
  48. package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +11 -1
  49. package/components/common/wizards/vm/migrate/select/type/Type.vue +8 -19
  50. package/package.json +2 -2
  51. package/components/common/wizards/vm/migrate/contentHeading/ContentHeading.vue +0 -106
  52. package/components/common/wizards/vm/migrate/contentHeading/lib/models/interfaces.ts +0 -7
  53. package/components/common/wizards/vm/migrate/select/storage/diskFormat/DiskFormat.vue +0 -69
  54. package/components/common/wizards/vm/migrate/select/storage/diskFormat/lib/config/formatOptions.ts +0 -26
  55. package/components/common/wizards/vm/migrate/select/storage/table/datastore/lib/config/config.ts +0 -179
  56. package/components/common/wizards/vm/migrate/select/targetServer/new/lib/config/defaultForm.ts +0 -36
  57. /package/components/common/wizards/vm/migrate/select/storage/{table/disk → configure/disk/table}/lib/models/types.ts +0 -0
  58. /package/components/common/wizards/vm/migrate/{lib → select/type/lib}/models/types.ts +0 -0
@@ -1,26 +0,0 @@
1
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
2
-
3
- export const vmDiskFormatOptions = (): UI_I_OptionItem[] => {
4
- return [
5
- {
6
- text: 'Same Format as source',
7
- value: 0,
8
- // value: 'same-format-source',
9
- },
10
- {
11
- text: 'Thick Provision Lazy Zeroed',
12
- value: 2,
13
- // value: 'thick-provision-lazy-zeroed',
14
- },
15
- {
16
- text: 'Thick Provision Eager Zeroed',
17
- value: 3,
18
- // value: 'thick-provision-eager-zeroed',
19
- },
20
- {
21
- text: 'Thin Provision',
22
- value: 1,
23
- // value: 'thin-provision',
24
- },
25
- ]
26
- }
@@ -1,179 +0,0 @@
1
- import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
2
- import type {
3
- UI_I_ColumnKey,
4
- UI_I_HeadItem,
5
- UI_I_BodyItem,
6
- } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
7
- import type { UI_I_Localization } from '~/lib/models/interfaces'
8
- import type { UI_T_StorageColumnKeys } from '~/components/common/vm/actions/common/select/storage/lib/models/types'
9
- import {
10
- constructColumnKey,
11
- constructHeadItem,
12
- } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
13
- import {
14
- datastoreIconByState,
15
- datastoreLocalizationByState,
16
- } from '~/components/common/lib/config/states'
17
-
18
- export const storageTableKeys: UI_T_StorageColumnKeys = [
19
- 'name',
20
- 'state',
21
- 'capacity_mb',
22
- 'provisioned_mb',
23
- 'free_mb',
24
- 'used_mb',
25
- 'type_text',
26
- 'thin_provisioning',
27
- 'access_mode',
28
- 'hardware_acceleration',
29
- 'drive_type',
30
- 'device',
31
- 'storage_io_control',
32
- ]
33
-
34
- const getItems = (
35
- localization: UI_I_Localization
36
- ): [string, boolean, string, string][] => {
37
- return [
38
- [localization.common.name, true, '96px', storageTableKeys[0]],
39
- [localization.inventorySummary.state, true, '138px', storageTableKeys[1]],
40
- [localization.common.capacity, true, '110px', storageTableKeys[2]],
41
- [localization.common.provisioned, true, '128px', storageTableKeys[3]],
42
- [localization.common.free, true, '110px', storageTableKeys[4]],
43
- [localization.common.used, true, '110px', storageTableKeys[5]],
44
- [localization.common.type, true, '110px', storageTableKeys[6]],
45
- [localization.common.thinProvisioning, true, '132px', storageTableKeys[7]],
46
- [localization.common.access, true, '110px', storageTableKeys[8]],
47
- [localization.common.hardwareAcceleration, true, '134px', storageTableKeys[9]],
48
- [localization.common.driverType, true, '110px', storageTableKeys[10]],
49
- [localization.common.device, true, '110px', storageTableKeys[11]],
50
- [localization.common.storageIoControl, true, '110px', storageTableKeys[12]],
51
- ]
52
- }
53
-
54
- export const columnKeys = (
55
- localization: UI_I_Localization
56
- ): UI_I_ColumnKey[] => {
57
- const result: UI_I_ColumnKey[] = []
58
- getItems(localization).forEach((item, i) => {
59
- const col = i === 0 ? 'icon' : `col${i}`
60
- result.push(
61
- constructColumnKey(col, item[0], item[1], `show-column-${item[3]}`)
62
- )
63
- })
64
- return result
65
- }
66
-
67
- export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
68
- const result: UI_I_HeadItem[] = []
69
- getItems(localization).forEach((item, i) => {
70
- const col = i === 0 ? 'icon' : `col${i}`
71
- result.push(
72
- constructHeadItem(
73
- col,
74
- item[0],
75
- item[3],
76
- true,
77
- item[2],
78
- undefined,
79
- item[3]
80
- )
81
- )
82
- })
83
- return result
84
- }
85
-
86
- export const bodyItems = (
87
- data: UI_I_DatastoreTableItem[],
88
- localization: UI_I_Localization
89
- ): UI_I_BodyItem[][] => {
90
- const bodyItems: UI_I_BodyItem[][] = []
91
- const { $binary } = useNuxtApp()
92
-
93
- data.forEach((storage: UI_I_DatastoreTableItem, key: number) => {
94
- const state =
95
- localization.common[datastoreLocalizationByState[storage[storageTableKeys[1]]]]
96
- bodyItems.push([
97
- {
98
- key: 'icon',
99
- text: storage[storageTableKeys[0]].toString(),
100
- data: `vsphere-icon-${datastoreIconByState[storage.state]}`,
101
- id: key,
102
- testId: storage[storageTableKeys[0]].toString()
103
- },
104
- {
105
- key: 'col1',
106
- text: state,
107
- id: key,
108
- testId: storage[storageTableKeys[0]].toString()
109
- },
110
- {
111
- key: 'col2',
112
- text: $binary.round(storage.capacity[storageTableKeys[2]]),
113
- id: key,
114
- testId: storage[storageTableKeys[0]].toString()
115
- },
116
- {
117
- key: 'col3',
118
- text: $binary.round(storage.capacity[storageTableKeys[3]].toString()),
119
- id: key,
120
- testId: storage[storageTableKeys[0]].toString()
121
- },
122
- {
123
- key: 'col4',
124
- text: $binary.round(storage.capacity[storageTableKeys[4]].toString()),
125
- id: key,
126
- testId: storage[storageTableKeys[0]].toString()
127
- },
128
- {
129
- key: 'col5',
130
- text: $binary.round(storage.capacity[storageTableKeys[5]].toString()),
131
- id: key,
132
- testId: storage[storageTableKeys[0]].toString()
133
- },
134
- {
135
- key: 'col6',
136
- text: storage[storageTableKeys[6]].toString(),
137
- id: key,
138
- testId: storage[storageTableKeys[0]].toString()
139
- },
140
- {
141
- key: 'col7',
142
- text: storage[storageTableKeys[7]] ? localization.common.yes : localization.common.no,
143
- id: key,
144
- testId: storage[storageTableKeys[0]].toString()
145
- },
146
- {
147
- key: 'col8',
148
- text: storage[storageTableKeys[8]].toString(),
149
- id: key,
150
- testId: storage[storageTableKeys[0]].toString()
151
- },
152
- {
153
- key: 'col9',
154
- text: storage[storageTableKeys[9]].toString(),
155
- id: key,
156
- testId: storage[storageTableKeys[0]].toString()
157
- },
158
- {
159
- key: 'col10',
160
- text: storage[storageTableKeys[10]].toString(),
161
- id: key,
162
- testId: storage[storageTableKeys[0]].toString()
163
- },
164
- {
165
- key: 'col11',
166
- text: storage[storageTableKeys[11]].toString(),
167
- id: key,
168
- testId: storage[storageTableKeys[0]].toString()
169
- },
170
- {
171
- key: 'col12',
172
- text: storage[storageTableKeys[12]].toString(),
173
- id: key,
174
- testId: storage[storageTableKeys[0]].toString()
175
- },
176
- ])
177
- })
178
- return bodyItems
179
- }
@@ -1,36 +0,0 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_FormValidationTargetServer } from '~/components/common/wizards/vm/migrate/select/targetServer/new/lib/models/interfaces'
3
-
4
- export const defaultFormFunc = (
5
- localization: UI_I_Localization
6
- ): UI_I_FormValidationTargetServer => {
7
- return {
8
- name: {
9
- value: '',
10
- validations: [
11
- {
12
- value: 'required',
13
- errorText: localization.common.fieldRequired,
14
- },
15
- ],
16
- },
17
- folder: {
18
- value: '',
19
- validations: [
20
- {
21
- value: 'required',
22
- errorText: localization.common.fieldRequired,
23
- },
24
- ],
25
- },
26
- server: {
27
- value: '',
28
- validations: [
29
- {
30
- value: 'required',
31
- errorText: localization.common.fieldRequired,
32
- },
33
- ],
34
- },
35
- }
36
- }