bfg-common 1.5.437 → 1.5.438

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.
@@ -1845,6 +1845,7 @@
1845
1845
  "showDatastoresConnectedAllHosts": "Паказаць сховішчы даных, падлучаныя да ўсіх хостаў",
1846
1846
  "selectCloneOptions": "Выберыце параметры клонавання",
1847
1847
  "selectOptionsTargetVm": "Выберыце параметры мэтавага VM",
1848
+ "selectTargetVmOptions": "Абярыце параметры мэтавай ВМ",
1848
1849
  "selectFurtherCloneOptions": "Выберыце дадатковыя параметры клонавання",
1849
1850
  "customizeTheOperatingSystem": "Наладзьце аперацыйную сістэму",
1850
1851
  "customizeThisVirtualMachineHardware": "Наладзьце апаратнае забеспячэнне гэтай віртуальнай машыны",
@@ -3276,7 +3277,8 @@
3276
3277
  "customizeVMHardware": "Наладзіць абсталяванне гэтай віртуальнай машыны.",
3277
3278
  "autoPowerOn": "Аўтазапуск",
3278
3279
  "powerVMAfterCreation": "Уключыць віртуальную машыну пасля стварэння.",
3279
- "selectTemplateForCreatingVm": "Выберыце шаблон для стварэння віртуальнай машыны"
3280
+ "selectTemplateForCreatingVm": "Выберыце шаблон для стварэння віртуальнай машыны",
3281
+ "selectAdvancedOptionsTargetVm": "Абярыце дадатковыя параметры для мэтавай ВМ."
3280
3282
  },
3281
3283
  "feedback": {
3282
3284
  "additionalDetailsHelp": "Даведка па дадатковых звестках",
@@ -1847,6 +1847,7 @@
1847
1847
  "showDatastoresConnectedAllHosts": "Show datastores connected to all hosts",
1848
1848
  "selectCloneOptions": "Select Clone Options",
1849
1849
  "selectOptionsTargetVm": "Select the options of the target VM",
1850
+ "selectTargetVmOptions": "Select Target VM Options",
1850
1851
  "selectFurtherCloneOptions": "Select further clone options",
1851
1852
  "customizeTheOperatingSystem": "Customize the operating system",
1852
1853
  "customizeThisVirtualMachineHardware": "Customize this virtual machine's hardware",
@@ -3280,7 +3281,8 @@
3280
3281
  "customizeVMHardware": "Customize this virtual machine’s hardware.",
3281
3282
  "autoPowerOn": "Auto Power On",
3282
3283
  "powerVMAfterCreation": "Power on virtual machine after creation.",
3283
- "selectTemplateForCreatingVm": "Select template for creating virtual machine"
3284
+ "selectTemplateForCreatingVm": "Select template for creating virtual machine",
3285
+ "selectAdvancedOptionsTargetVm": "Select advanced options for the target VM."
3284
3286
  },
3285
3287
  "feedback": {
3286
3288
  "additionalDetailsHelp": "Additional Details Help",
@@ -1847,6 +1847,7 @@
1847
1847
  "showDatastoresConnectedAllHosts": "Ցուցադրել տվյալների պահեստները, որոնք միացված են բոլոր հոսթներին",
1848
1848
  "selectCloneOptions": "Ընտրեք կլոնավորման տարբերակները",
1849
1849
  "selectOptionsTargetVm": "Ընտրեք թիրախային VM- ի պարամետրերը",
1850
+ "selectTargetVmOptions": "Ընտրեք նպատակային ՎՄ-ի պարամետրերը",
1850
1851
  "selectFurtherCloneOptions": "Ընտրեք կլոնավորման հետագա տարբերակները",
1851
1852
  "customizeTheOperatingSystem": "Անհատականացրեք օպերացիոն համակարգը",
1852
1853
  "customizeThisVirtualMachineHardware": "Անհատականացրեք այս վիրտուալ մեքենայի ապարատը",
@@ -3280,7 +3281,8 @@
3280
3281
  "customizeVMHardware": "Անհատականացնել այս վիրտուալ մեքենայի սարքավորումները։",
3281
3282
  "autoPowerOn": "Ավտոմատ միացում",
3282
3283
  "powerVMAfterCreation": "Վիրտուալ մեքենան միացնել ստեղծումից հետո։",
3283
- "selectTemplateForCreatingVm": "Ընտրեք վիրտուալ մեքենա ստեղծելու ձևանմուշ"
3284
+ "selectTemplateForCreatingVm": "Ընտրեք վիրտուալ մեքենա ստեղծելու ձևանմուշ",
3285
+ "selectAdvancedOptionsTargetVm": "Ընտրեք նպատակային ՎՄ-ի լրացուցիչ կարգավորումները։"
3284
3286
  },
3285
3287
  "feedback": {
3286
3288
  "additionalDetailsHelp": "Լրացուցիչ մանրամասներ Օգնություն",
@@ -1847,6 +1847,7 @@
1847
1847
  "showDatastoresConnectedAllHosts": "Барлық хосттарға қосылған деректер қоймаларын көрсету",
1848
1848
  "selectCloneOptions": "Клондау опцияларын таңдаңыз",
1849
1849
  "selectOptionsTargetVm": "Мақсатты параметрлерді таңдаңыз VM",
1850
+ "selectTargetVmOptions": "Мақсатты ВМ параметрлерін таңдаңыз",
1850
1851
  "selectFurtherCloneOptions": "Қосымша клондау опцияларын таңдаңыз",
1851
1852
  "customizeTheOperatingSystem": "Операциялық жүйені теңшеңіз",
1852
1853
  "customizeThisVirtualMachineHardware": "Осы виртуалды машинаның аппараттық құралын теңшеңіз",
@@ -3279,7 +3280,8 @@
3279
3280
  "customizeVMHardware": "Бұл виртуалды машинаның жабдығын баптау.",
3280
3281
  "autoPowerOn": "Автоқосу",
3281
3282
  "powerVMAfterCreation": "Виртуалды машинаны жасау кейін қосу.",
3282
- "selectTemplateForCreatingVm": "Виртуалды машина жасау үшін үлгіні таңдаңыз"
3283
+ "selectTemplateForCreatingVm": "Виртуалды машина жасау үшін үлгіні таңдаңыз",
3284
+ "selectAdvancedOptionsTargetVm": "Мақсатты ВМ үшін қосымша параметрлерді таңдаңыз."
3283
3285
  },
3284
3286
  "feedback": {
3285
3287
  "additionalDetailsHelp": "Қосымша мәліметтер анықтамасы",
@@ -1847,6 +1847,7 @@
1847
1847
  "showDatastoresConnectedAllHosts": "Показать хранилища данных, подключенные ко всем хостам",
1848
1848
  "selectCloneOptions": "Выберите параметры клонирования",
1849
1849
  "selectOptionsTargetVm": "Выберите параметры целевой ВМ",
1850
+ "selectTargetVmOptions": "Выберите параметры целевой ВМ",
1850
1851
  "selectFurtherCloneOptions": "Выберите дополнительные параметры клонирования",
1851
1852
  "customizeTheOperatingSystem": "Настроить операционную систему.",
1852
1853
  "customizeThisVirtualMachineHardware": "Настроить оборудование виртуальной машины.",
@@ -3279,7 +3280,8 @@
3279
3280
  "customizeVMHardware": "Настроить оборудование этой виртуальной машины.",
3280
3281
  "autoPowerOn": "Автоматическое включение",
3281
3282
  "powerVMAfterCreation": "Включить виртуальную машину после создания.",
3282
- "selectTemplateForCreatingVm": "Выберите шаблон для создания виртуальной машины"
3283
+ "selectTemplateForCreatingVm": "Выберите шаблон для создания виртуальной машины",
3284
+ "selectAdvancedOptionsTargetVm": "Выберите дополнительные параметры для целевой ВМ."
3283
3285
  },
3284
3286
  "feedback": {
3285
3287
  "additionalDetailsHelp": "Дополнительная информация Помощь",
@@ -1846,6 +1846,7 @@
1846
1846
  "showDatastoresConnectedAllHosts": "显示连接到所有主机的数据存储",
1847
1847
  "selectCloneOptions": "选择克隆选项",
1848
1848
  "selectOptionsTargetVm": "选择目标VM的参数",
1849
+ "selectTargetVmOptions": "选择目标虚拟机选项",
1849
1850
  "selectFurtherCloneOptions": "选择更多克隆选项",
1850
1851
  "customizeTheOperatingSystem": "定制操作系统",
1851
1852
  "customizeThisVirtualMachineHardware": "自定义该虚拟机的硬件",
@@ -3277,7 +3278,8 @@
3277
3278
  "customizeVMHardware": "自定义此虚拟机的硬件。",
3278
3279
  "autoPowerOn": "自动开机",
3279
3280
  "powerVMAfterCreation": "创建后启动虚拟机。",
3280
- "selectTemplateForCreatingVm": "选择创建虚拟机的模板"
3281
+ "selectTemplateForCreatingVm": "选择创建虚拟机的模板",
3282
+ "selectAdvancedOptionsTargetVm": "为目标虚拟机选择高级选项。"
3281
3283
  },
3282
3284
  "feedback": {
3283
3285
  "additionalDetailsHelp": "其他详细信息帮助",
@@ -46,6 +46,7 @@
46
46
  :compute-resource-tree="props.computeResourceTree"
47
47
  :vmt-settings="props.vmtSettings"
48
48
  :is-loading="isLoading"
49
+ :selected-template-id="props.selectedTemplateId"
49
50
  @check-name="emits('check-name', $event)"
50
51
  @get-storage="emits('get-storage', $event)"
51
52
  @get-folders-or-files="emits('get-folders-or-files', $event)"
@@ -224,6 +225,7 @@ const props = withDefaults(
224
225
  dataCenter?: UI_I_TreeNode // для сферы
225
226
  computeResource?: UI_I_TreeNode // для сферы
226
227
  computeResourceTree?: UI_I_TreeNode[] // для сферы
228
+ selectedTemplateId?: string // для сферы
227
229
  }>(),
228
230
  {
229
231
  capabilities: undefined,
@@ -231,6 +233,7 @@ const props = withDefaults(
231
233
  dataCenter: undefined,
232
234
  computeResource: undefined,
233
235
  computeResourceTree: undefined,
236
+ selectedTemplateId: '',
234
237
  }
235
238
  )
236
239
 
@@ -38,6 +38,7 @@
38
38
  <common-vm-actions-common-select-template
39
39
  :template-submit="props.templateSubmit"
40
40
  :templates-tree="props.templatesTree"
41
+ :selected-template-id="props.selectedTemplateId"
41
42
  @submit="emits('change-template', $event)"
42
43
  />
43
44
  </template>
@@ -165,7 +166,7 @@
165
166
  <div ref="subTitleBlockSelectOptions">
166
167
  <div class="subtitle-block">
167
168
  <ui-wizard-subtitle
168
- :sub-title="localization.vmWizard.selectAdvancedOptionsCloning"
169
+ :sub-title="localization.vmWizard.selectAdvancedOptionsTargetVm"
169
170
  />
170
171
  </div>
171
172
  </div>
@@ -394,7 +395,7 @@
394
395
  />
395
396
  </div>
396
397
 
397
- <div class="divider my-4"></div>
398
+ <div v-if="props.isShowPowerOn" class="divider my-4"></div>
398
399
 
399
400
  <common-ready-to-complete
400
401
  v-if="selectedStep.id === dynamicSteps.readyComplete"
@@ -514,6 +515,7 @@ const props = withDefaults(
514
515
  computeResourceTree?: UI_I_TreeNode[] // для сферы
515
516
  vmtSettings?: UI_I_VmSettings | null // для шаблонов
516
517
  isLoading?: boolean
518
+ selectedTemplateId?: string
517
519
  }>(),
518
520
  {
519
521
  dataCenter: undefined,
@@ -521,6 +523,7 @@ const props = withDefaults(
521
523
  computeResourceTree: undefined,
522
524
  vmtSettings: undefined,
523
525
  isLoading: undefined,
526
+ selectedTemplateId: '',
524
527
  }
525
528
  )
526
529
 
@@ -125,7 +125,7 @@ export const stepsFunc = (
125
125
  {
126
126
  id: dynamicSteps.selectOptionsForDeployment,
127
127
  stepName: '',
128
- title: localization.common.selectOptionsTargetVm,
128
+ title: localization.common.selectTargetVmOptions,
129
129
  subTitle:
130
130
  localization.common.chooseGuestOSInstalledVmAndMachineTypeUsedCreateVm,
131
131
  status: UI_E_WIZARD_STATUS.INACTIVE,
@@ -1,7 +1,11 @@
1
1
  <template>
2
2
  <div
3
3
  ref="mainContainer"
4
- :class="['select-options grid gap-3 mt-4', { 'is-sm-size': isContainerSm }]"
4
+ :class="[
5
+ 'select-options grid gap-3 mt-4',
6
+ { 'is-sm-size': isContainerSm },
7
+ { 'three-items': !props.isCreateTemplate },
8
+ ]"
5
9
  >
6
10
  <div
7
11
  :class="[
@@ -17,8 +21,14 @@
17
21
  :title="localization.vmWizard.customizeOS"
18
22
  :disabled="props.isCreateTemplate"
19
23
  test-id="customize-os"
24
+ size="md"
20
25
  />
21
- <p class="checkbox-block-description mt-2 ml-7 mr-3">
26
+ <p
27
+ :class="[
28
+ 'checkbox-block-description mt-2 ml-7 mr-3',
29
+ { disabled: props.isCreateTemplate },
30
+ ]"
31
+ >
22
32
  {{ localization.vmWizard.customizeOperatingSystem }}
23
33
  </p>
24
34
  </div>
@@ -37,8 +47,14 @@
37
47
  :title="localization.common.customizeHardware"
38
48
  :disabled="props.isCreateTemplate"
39
49
  test-id="customize-hardware"
50
+ size="md"
40
51
  />
41
- <p class="checkbox-block-description mt-2 ml-7 mr-3">
52
+ <p
53
+ :class="[
54
+ 'checkbox-block-description mt-2 ml-7 mr-3',
55
+ { disabled: props.isCreateTemplate },
56
+ ]"
57
+ >
42
58
  {{ localization.vmWizard.customizeVMHardware }}
43
59
  </p>
44
60
  </div>
@@ -56,8 +72,14 @@
56
72
  :title="localization.vmWizard.autoPowerOn"
57
73
  :disabled="props.isCreateTemplate"
58
74
  test-id="power-on"
75
+ size="md"
59
76
  />
60
- <p class="checkbox-block-description mt-2 ml-7 mr-3">
77
+ <p
78
+ :class="[
79
+ 'checkbox-block-description mt-2 ml-7 mr-3',
80
+ { disabled: props.isCreateTemplate },
81
+ ]"
82
+ >
61
83
  {{ localization.vmWizard.powerVMAfterCreation }}
62
84
  </p>
63
85
  </div>
@@ -137,9 +159,18 @@ watch(
137
159
  )
138
160
  </script>
139
161
 
162
+ <style>
163
+ :root {
164
+ --select-option-target-vm-checkbox-description-disabled: #bdc3c7;
165
+ }
166
+ :root.dark-theme {
167
+ --select-option-target-vm-checkbox-description-disabled: #bdc3c770;
168
+ }
169
+ </style>
170
+
140
171
  <style scoped lang="scss">
141
172
  .select-options {
142
- grid-template-columns: 1fr 1fr 1fr;
173
+ grid-template-columns: 1fr 1fr;
143
174
  grid-template-rows: max-content;
144
175
  overflow-y: auto;
145
176
  padding-bottom: 16px;
@@ -148,6 +179,10 @@ watch(
148
179
  grid-template-columns: 1fr;
149
180
  }
150
181
 
182
+ &.three-items {
183
+ grid-template-columns: 1fr 1fr 1fr;
184
+ }
185
+
151
186
  .checkbox-container {
152
187
  width: 100%;
153
188
  background-color: var(--select-bg);
@@ -172,11 +207,20 @@ watch(
172
207
 
173
208
  :deep(.ui-checkbox-label) {
174
209
  align-items: flex-start;
210
+
211
+ .ui-checkbox-label-text {
212
+ line-height: 18px;
213
+ margin-top: 1px;
214
+ }
175
215
  }
176
216
 
177
217
  .checkbox-block-description {
178
218
  color: #9da6ad;
179
219
  line-height: 18px;
220
+
221
+ &.disabled {
222
+ color: var(--select-option-target-vm-checkbox-description-disabled);
223
+ }
180
224
  }
181
225
  }
182
226
  }
@@ -3,6 +3,7 @@
3
3
  v-if="isNewView"
4
4
  :templates-tree="props.templatesTree"
5
5
  :errors="errors"
6
+ :selected-template-id="props.selectedTemplateId"
6
7
  @remove="onRemove"
7
8
  @select="onSelect"
8
9
  />
@@ -19,10 +20,16 @@
19
20
  import type { UI_I_Localization } from '~/lib/models/interfaces'
20
21
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
21
22
 
22
- const props = defineProps<{
23
- templateSubmit: null | Function
24
- templatesTree: UI_I_TreeNode[]
25
- }>()
23
+ const props = withDefaults(
24
+ defineProps<{
25
+ templateSubmit: null | Function
26
+ templatesTree: UI_I_TreeNode[]
27
+ selectedTemplateId?: string
28
+ }>(),
29
+ {
30
+ selectedTemplateId: '',
31
+ }
32
+ )
26
33
  const emits = defineEmits<{
27
34
  (event: 'submit', value: UI_I_TreeNode): void
28
35
  }>()
@@ -11,6 +11,7 @@
11
11
  />
12
12
  <common-vm-actions-common-select-template-tree-view
13
13
  :templates-tree="props.templatesTree"
14
+ :selected-template-id="props.selectedTemplateId"
14
15
  @select-node="emits('select', $event)"
15
16
  />
16
17
  </div>
@@ -19,10 +20,16 @@
19
20
  <script setup lang="ts">
20
21
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
21
22
 
22
- const props = defineProps<{
23
- templatesTree: UI_I_TreeNode[]
24
- errors: string[]
25
- }>()
23
+ const props = withDefaults(
24
+ defineProps<{
25
+ templatesTree: UI_I_TreeNode[]
26
+ errors: string[]
27
+ selectedTemplateId?: string
28
+ }>(),
29
+ {
30
+ selectedTemplateId: '',
31
+ }
32
+ )
26
33
 
27
34
  const emits = defineEmits<{
28
35
  (event: 'remove'): void
@@ -22,10 +22,16 @@
22
22
  <script setup lang="ts">
23
23
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
24
24
 
25
- const props = defineProps<{
26
- loading: boolean
27
- nodes: UI_I_TreeNode[]
28
- }>()
25
+ const props = withDefaults(
26
+ defineProps<{
27
+ loading: boolean
28
+ nodes: UI_I_TreeNode[]
29
+ selectedTemplateId?: string
30
+ }>(),
31
+ {
32
+ selectedTemplateId: '',
33
+ }
34
+ )
29
35
  const emits = defineEmits<{
30
36
  (event: 'select-node', value: UI_I_TreeNode): void
31
37
  (
@@ -37,9 +43,29 @@ const emits = defineEmits<{
37
43
  ): void
38
44
  }>()
39
45
 
46
+ const { $recursion }: any = useNuxtApp()
47
+
40
48
  const onToggleNode = (node: UI_I_TreeNode): void => {
41
49
  emits('get-nodes', { node, cb: () => {} })
42
50
  }
51
+
52
+ onMounted(() => {
53
+ if (!props.selectedTemplateId) return
54
+
55
+ $recursion.findAndActivate(
56
+ props.nodes,
57
+ ['vm_template', props.selectedTemplateId],
58
+ ['type', 'id'],
59
+ 'nodes'
60
+ )
61
+ const selectedNode = $recursion.find(
62
+ props.nodes,
63
+ props.selectedTemplateId,
64
+ 'id',
65
+ 'nodes'
66
+ )
67
+ emits('select-node', selectedNode)
68
+ })
43
69
  </script>
44
70
 
45
71
  <style>
@@ -3,6 +3,7 @@
3
3
  v-if="isNewView"
4
4
  :loading="loading"
5
5
  :nodes="nodes"
6
+ :selected-template-id="props.selectedTemplateId"
6
7
  @select-node="onSelectNode"
7
8
  @get-nodes="onShowNodes"
8
9
  />
@@ -18,9 +19,15 @@
18
19
  <script setup lang="ts">
19
20
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
20
21
 
21
- const props = defineProps<{
22
- templatesTree: UI_I_TreeNode[]
23
- }>()
22
+ const props = withDefaults(
23
+ defineProps<{
24
+ templatesTree: UI_I_TreeNode[]
25
+ selectedTemplateId?: string
26
+ }>(),
27
+ {
28
+ selectedTemplateId: '',
29
+ }
30
+ )
24
31
 
25
32
  const emits = defineEmits<{
26
33
  (event: 'select-node', value: UI_I_TreeNode): void
@@ -48,6 +48,7 @@ const tabsLocal = computed<UI_I_CollapseNavItem[]>(() =>
48
48
  .host-accessibility {
49
49
  &__tab {
50
50
  padding: 16px 0;
51
+ overflow-x: auto;
51
52
  }
52
53
  }
53
54
  </style>
@@ -103,6 +103,12 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
103
103
  <style lang="scss" scoped>
104
104
  .host-accessibility-table {
105
105
  margin-bottom: 10px;
106
+ :deep(.column-manager-button.sm span) {
107
+ font-weight: 500;
108
+ }
109
+ :deep(.table-title .title-container h6) {
110
+ font-size: 12px;
111
+ }
106
112
  &__icon {
107
113
  margin-right: 4px;
108
114
  }
@@ -146,19 +146,14 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
146
146
  }
147
147
  </script>
148
148
 
149
- <style>
150
- :root {
151
- --select-storage-border-color: #e9ebed;
152
- --select-storage-bg-color: #ffffff;
153
- }
154
- :root.dark-theme {
155
- --select-storage-border-color: #e9ebed1f;
156
- --select-storage-bg-color: var(--wizard-right-bg);
157
- }
158
- </style>
159
-
160
149
  <style lang="scss" scoped>
161
150
  .device-table-container {
151
+ :deep(.column-manager-button.sm span) {
152
+ font-weight: 500;
153
+ }
154
+ :deep(.table-title .title-container h6) {
155
+ font-size: 12px;
156
+ }
162
157
  .device-table {
163
158
  &__icon {
164
159
  margin-right: 4px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.437",
4
+ "version": "1.5.438",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",