bfg-common 1.6.29 → 1.6.30
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 +5 -66
- package/assets/localization/local_en.json +12 -73
- package/assets/localization/local_hy.json +6 -67
- package/assets/localization/local_kk.json +5 -66
- package/assets/localization/local_ru.json +11 -72
- package/assets/localization/local_zh.json +5 -66
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
- package/components/common/diagramMain/DiagramMain.vue +0 -6
- package/components/common/diagramMain/modals/Modals.vue +0 -4
- package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +2 -2
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
- package/components/common/monitor/advanced/table/lib/models/interfaces.ts +13 -12
- package/components/common/monitor/advanced/table/lib/models/types.ts +7 -10
- package/components/common/monitor/advanced/table/tableNew/TableNew.vue +93 -92
- package/components/common/monitor/advanced/table/tableNew/lib/config/options.ts +109 -139
- package/components/common/monitor/advanced/table/tableNew/lib/utils/constructBody.ts +25 -27
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/advanced/table/tableOld/lib/config/performanceDatatable.ts +125 -149
- package/components/common/monitor/lib/utils/local_be.json +702 -698
- package/components/common/monitor/lib/utils/local_en.json +702 -698
- package/components/common/monitor/lib/utils/local_hy.json +702 -698
- package/components/common/monitor/lib/utils/local_kk.json +702 -698
- package/components/common/monitor/lib/utils/local_ru.json +702 -698
- package/components/common/monitor/lib/utils/local_zh.json +702 -698
- package/components/common/monitor/utilization/lib/utils/index.ts +33 -31
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/HardwareHealthNew.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/GraphNew.vue +1 -1
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +0 -9
- package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
- package/components/common/pages/tasks/Tasks.vue +1 -4
- package/components/common/pages/tasks/table/Table.vue +22 -24
- package/components/common/split/vertical/New.vue +8 -42
- package/components/common/split/vertical/Old.vue +2 -31
- package/components/common/split/vertical/Vertical.vue +0 -4
- package/components/common/vm/actions/add/New.vue +6 -21
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/options/New.vue +1 -1
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
- package/components/common/vm/actions/confirm/Confirm.vue +0 -3
- package/components/common/vm/actions/rename/New.vue +7 -7
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/common/steps/name/New.vue +6 -4
- package/components/common/wizards/datastore/add/New.vue +0 -6
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +2 -13
- package/components/common/wizards/network/add/AddNew.vue +26 -22
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -4
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +13 -31
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +1 -3
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +4 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -3
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +3 -8
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
- package/lib/models/store/tasks/enums.ts +0 -3
- package/lib/models/store/tasks/types.ts +6 -7
- package/package.json +2 -2
- package/store/tasks/actions.ts +8 -26
- package/store/tasks/mappers/recentTasks.ts +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
API_UI_I_UtilizationData,
|
|
3
|
-
UI_I_UtilizationDataItem,
|
|
4
|
-
} from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
5
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
6
|
-
import { UI_E_UtilizationBlockCurrentKeys } from '~/components/common/monitor/utilization/lib/models/enums'
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
API_UI_I_UtilizationData,
|
|
3
|
+
UI_I_UtilizationDataItem,
|
|
4
|
+
} from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
5
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
6
|
+
import { UI_E_UtilizationBlockCurrentKeys } from '~/components/common/monitor/utilization/lib/models/enums'
|
|
7
|
+
import { getMetricsLocalizationByKey } from '~/components/common/monitor/lib/utils/localization'
|
|
8
|
+
|
|
9
|
+
export const constructApiData = (
|
|
10
|
+
apiData: API_UI_I_UtilizationData,
|
|
11
|
+
localization: UI_I_Localization
|
|
12
|
+
): UI_I_UtilizationDataItem[] => {
|
|
13
|
+
const result: UI_I_UtilizationDataItem[] = []
|
|
14
|
+
Object.keys(apiData).forEach((key) => {
|
|
15
|
+
result.push({
|
|
16
|
+
id: key,
|
|
17
|
+
isShow: true,
|
|
18
|
+
title: localization.common[UI_E_UtilizationBlockCurrentKeys[key]],
|
|
19
|
+
data: apiData[key].items.map((item) => {
|
|
20
|
+
item.color = !item.label.toLowerCase().includes('capacity')
|
|
21
|
+
? '#' +
|
|
22
|
+
Math.floor(Math.random() * 0xffffff)
|
|
23
|
+
.toString(16)
|
|
24
|
+
.padStart(6, '0')
|
|
25
|
+
: ''
|
|
26
|
+
item.label = getMetricsLocalizationByKey(item.label)
|
|
27
|
+
|
|
28
|
+
return item
|
|
29
|
+
}),
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
return result
|
|
33
|
+
}
|
|
@@ -191,19 +191,19 @@ export const getBodyDataFunc = (
|
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
col: 'col2',
|
|
194
|
-
text: $binary.round(datastore.capacity.capacity_mb
|
|
194
|
+
text: $binary.round(datastore.capacity.capacity_mb, false, lang)
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
col: 'col3',
|
|
198
|
-
text: $binary.round(datastore.capacity.provisioned_mb
|
|
198
|
+
text: $binary.round(datastore.capacity.provisioned_mb, false, lang)
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
col: 'col4',
|
|
202
|
-
text: $binary.round(datastore.capacity.free_mb
|
|
202
|
+
text: $binary.round(datastore.capacity.free_mb, false, lang)
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
col: 'col5',
|
|
206
|
-
text: $binary.round(datastore.capacity.used_mb
|
|
206
|
+
text: $binary.round(datastore.capacity.used_mb, false, lang)
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
col: 'col6',
|
|
@@ -83,7 +83,7 @@ export const bodyItems = (
|
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
key: 'col2',
|
|
86
|
-
text: $binary.round(datastore.capacity[tableKeys[2]]
|
|
86
|
+
text: $binary.round(datastore.capacity[tableKeys[2]], false, lang),
|
|
87
87
|
id: datastore.id,
|
|
88
88
|
testId: `backup-datastore-table-item-${datastore.id}`,
|
|
89
89
|
data: {
|
|
@@ -93,7 +93,7 @@ export const bodyItems = (
|
|
|
93
93
|
{
|
|
94
94
|
key: 'col3',
|
|
95
95
|
text: $binary.round(
|
|
96
|
-
datastore.capacity[tableKeys[3]]
|
|
96
|
+
datastore.capacity[tableKeys[3]],
|
|
97
97
|
false,
|
|
98
98
|
lang
|
|
99
99
|
),
|
|
@@ -105,7 +105,7 @@ export const bodyItems = (
|
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
key: 'col4',
|
|
108
|
-
text: $binary.round(datastore.capacity[tableKeys[4]]
|
|
108
|
+
text: $binary.round(datastore.capacity[tableKeys[4]], false, lang),
|
|
109
109
|
id: datastore.id,
|
|
110
110
|
testId: `backup-datastore-table-item-${datastore.id}`,
|
|
111
111
|
data: {
|
|
@@ -114,7 +114,7 @@ export const bodyItems = (
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
key: 'col5',
|
|
117
|
-
text: $binary.round(datastore.capacity[tableKeys[5]]
|
|
117
|
+
text: $binary.round(datastore.capacity[tableKeys[5]], false, lang),
|
|
118
118
|
id: datastore.id,
|
|
119
119
|
testId: `backup-datastore-table-item-${datastore.id}`,
|
|
120
120
|
data: {
|
|
@@ -235,7 +235,7 @@ const statusCounts = computed<UI_I_IndicatorAlerts>(() => {
|
|
|
235
235
|
|
|
236
236
|
.table-content {
|
|
237
237
|
&.alert-warning, &.history-testimony {
|
|
238
|
-
:deep(.data-table-header th
|
|
238
|
+
:deep(.data-table-header th) {
|
|
239
239
|
min-width: max-content !important;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
@@ -2,12 +2,3 @@ export enum UI_E_SchedulerRunStatus {
|
|
|
2
2
|
RUNNING = 'this task has been started',
|
|
3
3
|
SUCCESS = 'success',
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
export enum E_SchedulerFrequencyModeLocale {
|
|
7
|
-
Once = 'once',
|
|
8
|
-
Startup = 'afterVCenterStartup',
|
|
9
|
-
Hourly = 'hourly',
|
|
10
|
-
Daily = 'daily',
|
|
11
|
-
Weekly = 'weekly',
|
|
12
|
-
Monthly = 'monthly',
|
|
13
|
-
}
|
|
@@ -82,18 +82,16 @@
|
|
|
82
82
|
<ui-icon name="vertical-dotes" width="20" height="20" />
|
|
83
83
|
</span>
|
|
84
84
|
</ui-button>
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/>
|
|
96
|
-
</Teleport>
|
|
85
|
+
<ui-dropdown
|
|
86
|
+
:show="actionsShowId === item.data.id"
|
|
87
|
+
:test-id="`event-table-action-dropdown-${item.data.id}`"
|
|
88
|
+
:items="schedulerDropActions"
|
|
89
|
+
:elem-id="`event-table-action-${item.data.id}`"
|
|
90
|
+
width="max-content"
|
|
91
|
+
left
|
|
92
|
+
@select="onSelectAction"
|
|
93
|
+
@hide="onHideActionsDropdown"
|
|
94
|
+
/>
|
|
97
95
|
</div>
|
|
98
96
|
</template>
|
|
99
97
|
|
|
@@ -58,10 +58,7 @@ const getTasks = async (): Promise<void> => {
|
|
|
58
58
|
sortBy: sort.value || '',
|
|
59
59
|
filter: filter.value || '',
|
|
60
60
|
}
|
|
61
|
-
await $store.dispatch('tasks/A_GET_TASKS',
|
|
62
|
-
data: payload,
|
|
63
|
-
project: props.project,
|
|
64
|
-
})
|
|
61
|
+
await $store.dispatch('tasks/A_GET_TASKS', payload)
|
|
65
62
|
}
|
|
66
63
|
const onUpdatePagination = (event: UI_I_Pagination): void => {
|
|
67
64
|
pagination.value = event
|
|
@@ -67,30 +67,28 @@
|
|
|
67
67
|
<ui-icon name="vertical-dotes" width="20" height="20" />
|
|
68
68
|
</span>
|
|
69
69
|
</ui-button>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
>
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</ui-dropdown>
|
|
93
|
-
</Teleport>
|
|
70
|
+
<ui-dropdown
|
|
71
|
+
:show="actionsShowId === item.data.id"
|
|
72
|
+
:test-id="`data-table-task-dropdown-${item.data.id}`"
|
|
73
|
+
:items="actions"
|
|
74
|
+
:elem-id="`data-table-task-action-${item.data.id}`"
|
|
75
|
+
width="max-content"
|
|
76
|
+
left
|
|
77
|
+
@select="onSelectAction(item.data.target, $event)"
|
|
78
|
+
@hide="onHideActionsDropdown"
|
|
79
|
+
>
|
|
80
|
+
<template #row="{ item: dropMenu }">
|
|
81
|
+
<ui-icon
|
|
82
|
+
v-if="dropMenu.iconName === 'hide'"
|
|
83
|
+
name="password-hide"
|
|
84
|
+
width="16"
|
|
85
|
+
height="16"
|
|
86
|
+
/>
|
|
87
|
+
<span class="action-text">
|
|
88
|
+
{{ dropMenu.text }}
|
|
89
|
+
</span>
|
|
90
|
+
</template>
|
|
91
|
+
</ui-dropdown>
|
|
94
92
|
</div>
|
|
95
93
|
</template>
|
|
96
94
|
|
|
@@ -3,22 +3,13 @@
|
|
|
3
3
|
:id="props.elementId"
|
|
4
4
|
:class="['fill-parent vertical', { dragging: props.isDrag }]"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
7
|
-
:style="props.topPanelStyle"
|
|
8
|
-
:class="[
|
|
9
|
-
'vui-horizontal-panel firstPanel',
|
|
10
|
-
{
|
|
11
|
-
'hidden-second': !props.bottomPermission,
|
|
12
|
-
},
|
|
13
|
-
]"
|
|
14
|
-
>
|
|
6
|
+
<div :style="props.topPanelStyle" class="vui-horizontal-panel firstPanel">
|
|
15
7
|
<div class="vui-horizontal-panel sec-nav-container">
|
|
16
8
|
<slot name="firstPanel" />
|
|
17
9
|
</div>
|
|
18
10
|
</div>
|
|
19
11
|
|
|
20
12
|
<div
|
|
21
|
-
v-if="props.bottomPermission"
|
|
22
13
|
:id="`gutter-${props.elementId}`"
|
|
23
14
|
class="gutter gutter-vertical"
|
|
24
15
|
tabindex="0"
|
|
@@ -29,16 +20,7 @@
|
|
|
29
20
|
<div class="gutter-vertical-handler"></div>
|
|
30
21
|
</div>
|
|
31
22
|
|
|
32
|
-
<div
|
|
33
|
-
v-if="props.bottomPermission"
|
|
34
|
-
:style="props.bottomPanelStyle"
|
|
35
|
-
:class="[
|
|
36
|
-
'secondPanel bottom',
|
|
37
|
-
{
|
|
38
|
-
hidden: !props.bottomPermission,
|
|
39
|
-
},
|
|
40
|
-
]"
|
|
41
|
-
>
|
|
23
|
+
<div :style="props.bottomPanelStyle" class="secondPanel bottom">
|
|
42
24
|
<slot name="secondPanel" />
|
|
43
25
|
</div>
|
|
44
26
|
</div>
|
|
@@ -55,7 +37,6 @@ const props = defineProps<{
|
|
|
55
37
|
isDrag: boolean
|
|
56
38
|
topPanelStyle: UI_I_SplitVerticalStyle
|
|
57
39
|
bottomPanelStyle: UI_I_SplitVerticalStyle
|
|
58
|
-
bottomPermission: boolean
|
|
59
40
|
}>()
|
|
60
41
|
</script>
|
|
61
42
|
|
|
@@ -71,14 +52,10 @@ const props = defineProps<{
|
|
|
71
52
|
</style>
|
|
72
53
|
|
|
73
54
|
<style scoped lang="scss">
|
|
74
|
-
.
|
|
55
|
+
.fill-parent {
|
|
75
56
|
&.dragging {
|
|
76
57
|
.gutter-vertical.gutter {
|
|
77
|
-
background-color: var(--
|
|
78
|
-
|
|
79
|
-
&::before {
|
|
80
|
-
background-color: var(--new-gutter-active-before-bg-color);
|
|
81
|
-
}
|
|
58
|
+
background-color: var(--gutter-active-bg-color);
|
|
82
59
|
}
|
|
83
60
|
}
|
|
84
61
|
|
|
@@ -86,11 +63,6 @@ const props = defineProps<{
|
|
|
86
63
|
max-height: calc(100% - 36px);
|
|
87
64
|
height: calc(100vh - 36px);
|
|
88
65
|
|
|
89
|
-
&.hidden-second {
|
|
90
|
-
max-height: 100%;
|
|
91
|
-
height: 100% !important;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
66
|
.sec-nav-container {
|
|
95
67
|
width: 100%;
|
|
96
68
|
height: 100%;
|
|
@@ -123,11 +95,11 @@ const props = defineProps<{
|
|
|
123
95
|
//}
|
|
124
96
|
|
|
125
97
|
&:hover {
|
|
126
|
-
background-color: var(--
|
|
98
|
+
background-color: var(--gutter-hover-bg-color);
|
|
127
99
|
cursor: row-resize;
|
|
128
100
|
|
|
129
101
|
&:before {
|
|
130
|
-
background-color: var(--
|
|
102
|
+
background-color: var(--gutter-handler-active-bg-color);
|
|
131
103
|
}
|
|
132
104
|
}
|
|
133
105
|
|
|
@@ -140,9 +112,8 @@ const props = defineProps<{
|
|
|
140
112
|
transition-duration: 0.25s;
|
|
141
113
|
width: 24px;
|
|
142
114
|
height: 2px;
|
|
143
|
-
left: 50
|
|
144
|
-
top: 50
|
|
145
|
-
transform: translate(-50%, -50%);
|
|
115
|
+
left: calc(50% - 12px);
|
|
116
|
+
top: calc(50% - 1px);
|
|
146
117
|
border-radius: 4px;
|
|
147
118
|
}
|
|
148
119
|
}
|
|
@@ -151,11 +122,6 @@ const props = defineProps<{
|
|
|
151
122
|
overflow: hidden;
|
|
152
123
|
flex: 1;
|
|
153
124
|
box-shadow: var(--second-panel-box-shadow);
|
|
154
|
-
|
|
155
|
-
&.hidden {
|
|
156
|
-
display: none;
|
|
157
|
-
height: 0;
|
|
158
|
-
}
|
|
159
125
|
//z-index: calc(var(--z-default) + 1);
|
|
160
126
|
}
|
|
161
127
|
}
|
|
@@ -3,22 +3,13 @@
|
|
|
3
3
|
:id="props.elementId"
|
|
4
4
|
:class="['fill-parent vertical', { dragging: props.isDrag }]"
|
|
5
5
|
>
|
|
6
|
-
<div
|
|
7
|
-
:style="props.topPanelStyle"
|
|
8
|
-
:class="[
|
|
9
|
-
'vui-horizontal-panel firstPanel',
|
|
10
|
-
{
|
|
11
|
-
'hidden-second': !props.bottomPermission,
|
|
12
|
-
},
|
|
13
|
-
]"
|
|
14
|
-
>
|
|
6
|
+
<div :style="props.topPanelStyle" class="vui-horizontal-panel firstPanel">
|
|
15
7
|
<div class="vui-horizontal-panel sec-nav-container">
|
|
16
8
|
<slot name="firstPanel" />
|
|
17
9
|
</div>
|
|
18
10
|
</div>
|
|
19
11
|
|
|
20
12
|
<div
|
|
21
|
-
v-if="props.bottomPermission"
|
|
22
13
|
:id="`gutter-${props.elementId}`"
|
|
23
14
|
class="gutter gutter-vertical"
|
|
24
15
|
tabindex="0"
|
|
@@ -29,16 +20,7 @@
|
|
|
29
20
|
<div class="gutter-vertical-handler"></div>
|
|
30
21
|
</div>
|
|
31
22
|
|
|
32
|
-
<div
|
|
33
|
-
v-if="props.bottomPermission"
|
|
34
|
-
:style="props.bottomPanelStyle"
|
|
35
|
-
:class="[
|
|
36
|
-
'secondPanel bottom',
|
|
37
|
-
{
|
|
38
|
-
hidden: !props.bottomPermission,
|
|
39
|
-
},
|
|
40
|
-
]"
|
|
41
|
-
>
|
|
23
|
+
<div :style="props.bottomPanelStyle" class="secondPanel bottom">
|
|
42
24
|
<slot name="secondPanel" />
|
|
43
25
|
</div>
|
|
44
26
|
</div>
|
|
@@ -55,7 +37,6 @@ const props = defineProps<{
|
|
|
55
37
|
isDrag: boolean
|
|
56
38
|
topPanelStyle: UI_I_SplitVerticalStyle
|
|
57
39
|
bottomPanelStyle: UI_I_SplitVerticalStyle
|
|
58
|
-
bottomPermission: boolean
|
|
59
40
|
}>()
|
|
60
41
|
</script>
|
|
61
42
|
|
|
@@ -71,11 +52,6 @@ const props = defineProps<{
|
|
|
71
52
|
max-height: calc(100% - 36px);
|
|
72
53
|
height: calc(100vh - 36px);
|
|
73
54
|
|
|
74
|
-
&.hidden-second {
|
|
75
|
-
max-height: 100%;
|
|
76
|
-
height: 100% !important;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
55
|
.sec-nav-container {
|
|
80
56
|
width: 100%;
|
|
81
57
|
height: 100%;
|
|
@@ -133,11 +109,6 @@ const props = defineProps<{
|
|
|
133
109
|
height: auto;
|
|
134
110
|
overflow: hidden;
|
|
135
111
|
flex: 1;
|
|
136
|
-
|
|
137
|
-
&.hidden {
|
|
138
|
-
display: none;
|
|
139
|
-
height: 0;
|
|
140
|
-
}
|
|
141
112
|
}
|
|
142
113
|
}
|
|
143
114
|
</style>
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
:is-drag="isDrag"
|
|
8
8
|
:top-panel-style="topPanelStyle"
|
|
9
9
|
:bottom-panel-style="bottomPanelStyle"
|
|
10
|
-
:bottom-permission="props.bottomPermission"
|
|
11
10
|
>
|
|
12
11
|
<template #firstPanel>
|
|
13
12
|
<slot name="firstPanel" />
|
|
@@ -26,7 +25,6 @@
|
|
|
26
25
|
:is-drag="isDrag"
|
|
27
26
|
:top-panel-style="topPanelStyle"
|
|
28
27
|
:bottom-panel-style="bottomPanelStyle"
|
|
29
|
-
:bottom-permission="props.bottomPermission"
|
|
30
28
|
>
|
|
31
29
|
<template #firstPanel>
|
|
32
30
|
<slot name="firstPanel" />
|
|
@@ -48,14 +46,12 @@ const props = withDefaults(
|
|
|
48
46
|
topPanelH?: number
|
|
49
47
|
topPanelMinHeight?: number
|
|
50
48
|
bottomPanelMinHeight?: number
|
|
51
|
-
bottomPermission?: boolean
|
|
52
49
|
}>(),
|
|
53
50
|
{
|
|
54
51
|
topPanelMinHeight: 200, // 200px
|
|
55
52
|
bottomPanelMinHeight: 200, // 200px
|
|
56
53
|
topPanelHForce: '',
|
|
57
54
|
topPanelH: undefined,
|
|
58
|
-
bottomPermission: true,
|
|
59
55
|
}
|
|
60
56
|
)
|
|
61
57
|
const emits = defineEmits<{
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
<div ref="subTitleBlockName">
|
|
56
56
|
<div class="subtitle-block">
|
|
57
57
|
<div
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
id="name-alert-wrapper"
|
|
59
|
+
:class="[{ 'mb-4': !isNameAlertWrapperEmpty }]"
|
|
60
60
|
></div>
|
|
61
61
|
<ui-wizard-subtitle
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
:sub-title="
|
|
63
|
+
localization.vmWizard.specifyUniqueNameAndTargetLocationForVm
|
|
64
|
+
"
|
|
65
65
|
/>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
@@ -153,8 +153,7 @@
|
|
|
153
153
|
:datastore="props.datastore"
|
|
154
154
|
:is-datastore-loading="props.isDatastoreLoading"
|
|
155
155
|
:get-datastore-table-func="props.getDatastoreTableFunc"
|
|
156
|
-
:storage="
|
|
157
|
-
@change-storage="setSelectedStorageIdLocal"
|
|
156
|
+
:storage="props.vmtSettings?.storage"
|
|
158
157
|
@submit="emits('change-storage', $event)"
|
|
159
158
|
@has-errors="isStorageAlertWrapperEmpty = $event"
|
|
160
159
|
/>
|
|
@@ -594,20 +593,6 @@ const isNameAlertWrapperEmpty = ref<boolean>(false)
|
|
|
594
593
|
// const isComputeResourceAlertWrapperEmpty = ref<boolean>(false)
|
|
595
594
|
const isStorageAlertWrapperEmpty = ref<boolean>(false)
|
|
596
595
|
const isCompatibilityAlertWrapperEmpty = ref<boolean>(false)
|
|
597
|
-
|
|
598
|
-
const storageLocal = computed<UI_I_DatastoreTableItem | undefined>(() => {
|
|
599
|
-
return selectedStorageLocal.value ?? props.vmtSettings?.storage
|
|
600
|
-
})
|
|
601
|
-
|
|
602
|
-
/* TODO: В дальнейшем необходимо вынести все данные наружу и передавать его через v-model */
|
|
603
|
-
// рефакторинг. При возврате на шаг выбора хранилища ранее выбранное хранилище не отображается как выбранное.
|
|
604
|
-
// Для хранилища в v-model необходимо сохранять ID хранилища, а не ключ индекса.
|
|
605
|
-
const selectedStorageLocal = ref<UI_I_DatastoreTableItem | null>(null)
|
|
606
|
-
const setSelectedStorageIdLocal = (datastore: UI_I_DatastoreTableItem) => {
|
|
607
|
-
selectedStorageLocal.value = {
|
|
608
|
-
id: datastore.id,
|
|
609
|
-
} as UI_I_DatastoreTableItem
|
|
610
|
-
}
|
|
611
596
|
</script>
|
|
612
597
|
|
|
613
598
|
<style>
|