bfg-common 1.5.503 → 1.5.504

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.
@@ -55,6 +55,7 @@
55
55
  :title="title"
56
56
  :name-request-url="props.nameRequestUrl"
57
57
  :validation-description="validationDescription"
58
+ :name-exist-validation="nameExistValidation"
58
59
  :name-test-ids="nameTestIds"
59
60
  @get-storage="emits('get-storage', $event)"
60
61
  @get-folders-or-files="emits('get-folders-or-files', $event)"
@@ -133,6 +134,7 @@
133
134
  :title="title"
134
135
  :name-request-url="props.nameRequestUrl"
135
136
  :validation-description="validationDescription"
137
+ :name-exist-validation="nameExistValidation"
136
138
  :name-test-ids="nameTestIds"
137
139
  @get-storage="emits('get-storage', $event)"
138
140
  @get-folders-or-files="emits('get-folders-or-files', $event)"
@@ -207,7 +209,7 @@ import type {
207
209
  UI_I_PciDevice,
208
210
  UI_I_VmSettings,
209
211
  } from '~/lib/models/store/vm/interfaces'
210
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
212
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
211
213
  import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
212
214
  import {
213
215
  stepsSchemeInitial,
@@ -344,6 +346,7 @@ const nameTestIds: UI_I_NameTestIds = {
344
346
  helpIcon: 'show-vm-name-help-icon',
345
347
  }
346
348
  const validationDescription = localization.value.common.enterValidLocationVirtualMachine
349
+ const nameExistValidation = localization.value.common.vmNameExistInSelectedLocation
347
350
 
348
351
  const isShowSelectTemplate = computed<boolean>(
349
352
  () =>
@@ -65,7 +65,7 @@
65
65
  </div>
66
66
  </template>
67
67
  <template #content>
68
- <common-vm-actions-common-select-name
68
+ <common-wizards-common-steps-name
69
69
  v-model:name="vmForm.name"
70
70
  v-model:location="location"
71
71
  :show="
@@ -80,6 +80,7 @@
80
80
  :location-description="props.locationDescription"
81
81
  :validate-empty-name="props.validateEmptyName"
82
82
  :validation-description="props.validationDescription"
83
+ :name-exist-validation-description="props.nameExistValidation"
83
84
  :test-ids="props.nameTestIds"
84
85
  @submit="emits('change-name', $event)"
85
86
  @has-errors="isNameAlertWrapperEmpty = $event"
@@ -465,7 +466,7 @@ import type {
465
466
  UI_I_PciDevice,
466
467
  UI_I_VmSettings,
467
468
  } from '~/lib/models/store/vm/interfaces'
468
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
469
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
469
470
  import { dynamicSteps } from '~/components/common/vm/actions/add/lib/config/steps'
470
471
 
471
472
  const vmForm = defineModel<UI_I_VmForm>('vmForm', {
@@ -518,6 +519,7 @@ const props = withDefaults(
518
519
  isShowPowerOn: boolean
519
520
  validateEmptyName: boolean
520
521
  validationDescription: string
522
+ nameExistValidation: string
521
523
  isShowSelectTemplate: boolean
522
524
  title: string
523
525
  nameRequestUrl: string
@@ -29,7 +29,7 @@
29
29
  :templates-tree="props.templatesTree"
30
30
  @submit="emits('change-template', $event)"
31
31
  />
32
- <common-vm-actions-common-select-name
32
+ <common-wizards-common-steps-name
33
33
  v-show="
34
34
  selectedStep.id === dynamicSteps.selectName ||
35
35
  selectedStep.id === dynamicSteps.selectNameFolder
@@ -48,6 +48,7 @@
48
48
  :location-description="props.locationDescription"
49
49
  :validate-empty-name="props.validateEmptyName"
50
50
  :validation-description="props.validationDescription"
51
+ :name-exist-validation-description="props.nameExistValidation"
51
52
  :test-ids="props.nameTestIds"
52
53
  @submit="emits('change-name', $event)"
53
54
  />
@@ -273,7 +274,7 @@ import type {
273
274
  UI_I_PciDevice,
274
275
  UI_I_VmSettings,
275
276
  } from '~/lib/models/store/vm/interfaces'
276
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
277
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
277
278
  import { dynamicSteps } from '~/components/common/vm/actions/add/lib/config/steps'
278
279
 
279
280
  const vmForm = defineModel<UI_I_VmForm>('vmForm', {
@@ -324,6 +325,7 @@ const props = withDefaults(
324
325
  selectedNavItem: UI_T_SelectedNavItem
325
326
  compatibilityInfo: string
326
327
  validationDescription: string
328
+ nameExistValidation: string
327
329
  isShowPowerOn: boolean
328
330
  validateEmptyName: boolean
329
331
  title: string
@@ -19,7 +19,7 @@
19
19
  :target="selectedVirtualMachine"
20
20
  class="new-task-form"
21
21
  />
22
- <common-vm-actions-common-select-name
22
+ <common-wizards-common-steps-name
23
23
  v-show="
24
24
  selectedStep.id === dynamicSteps.selectName ||
25
25
  selectedStep.id === dynamicSteps.selectNameFolder
@@ -33,6 +33,7 @@
33
33
  :name-form-submit="nameFormSubmit"
34
34
  :name-request-url="props.nameRequestUrl"
35
35
  :validation-description="localization.common.enterValidLocationVirtualMachine"
36
+ :name-exist-validation-description="localization.common.vmNameExistInSelectedLocation"
36
37
  :test-ids="nameTestIds"
37
38
  :has-location="props.project === 'sphere'"
38
39
  :location-nodes="props.locationNodes"
@@ -180,7 +181,7 @@ import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/li
180
181
  import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
181
182
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
182
183
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
183
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
184
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
184
185
  import {
185
186
  stepsSchemeInitial,
186
187
  stepsFunc,
@@ -18,7 +18,7 @@
18
18
  <!-- test-id="edit-vm-settings-spinner"-->
19
19
  <!-- />-->
20
20
  <div class="register-vm-content">
21
- <common-vm-actions-common-select-name
21
+ <common-wizards-common-steps-name
22
22
  v-show="
23
23
  selectedStep.id === dynamicSteps.selectName ||
24
24
  selectedStep.id === dynamicSteps.selectNameFolder
@@ -32,6 +32,7 @@
32
32
  :name-form-submit="nameFormSubmit"
33
33
  :name-request-url="props.nameRequestUrl"
34
34
  :validation-description="localization.common.enterValidLocationVirtualMachine"
35
+ :name-exist-validation-description="localization.common.vmNameExistInSelectedLocation"
35
36
  :test-ids="nameTestIds"
36
37
  :has-location="props.project === 'sphere'"
37
38
  :location-nodes="props.locationNodes"
@@ -77,7 +78,7 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
77
78
  import type { UI_T_Project } from '~/lib/models/types'
78
79
  import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
79
80
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
80
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
81
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
81
82
  import {
82
83
  dynamicSteps,
83
84
  stepsFunc,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <common-vm-actions-common-select-name-new
2
+ <common-wizards-common-steps-name-new
3
3
  v-if="isNewView"
4
4
  v-model:name="name"
5
5
  v-model:location="location"
@@ -9,7 +9,7 @@
9
9
  :test-ids="props.testIds"
10
10
  @remove-validation-errors="onRemoveValidationErrors"
11
11
  />
12
- <common-vm-actions-common-select-name-old
12
+ <common-wizards-common-steps-name-old
13
13
  v-else
14
14
  v-model:name="name"
15
15
  v-model:location="location"
@@ -26,7 +26,7 @@
26
26
  import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
27
27
  import type { UI_I_Localization } from '~/lib/models/interfaces'
28
28
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
29
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
29
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
30
30
 
31
31
  // TODO 100
32
32
  const name = defineModel<string>('name', { required: true })
@@ -38,6 +38,7 @@ const props = withDefaults(
38
38
  show: boolean
39
39
  nameRequestUrl: string
40
40
  validationDescription: string
41
+ nameExistValidationDescription: string
41
42
  testIds: UI_I_NameTestIds
42
43
  hasLocation?: boolean
43
44
  validateEmptyName?: boolean
@@ -134,7 +135,7 @@ const checkNameIsValid = async (nameLocal: string): Promise<boolean> => {
134
135
  return false
135
136
  case 409: // Name exist
136
137
  showValidationErrors([
137
- localization.value.common.vmNameExistInSelectedLocation,
138
+ props.nameExistValidationDescription,
138
139
  ])
139
140
  return false
140
141
  }
@@ -54,7 +54,7 @@
54
54
  <ui-skeleton-item v-else width="160px" height="20px" />
55
55
  </div>
56
56
  <div class="tree-view-wrap">
57
- <common-vm-actions-add-folder-tree-view
57
+ <common-wizards-common-steps-name-location
58
58
  v-model:location="location"
59
59
  :nodes="props.locationNodes"
60
60
  />
@@ -66,7 +66,7 @@
66
66
  <script setup lang="ts">
67
67
  import type { UI_I_Localization } from '~/lib/models/interfaces'
68
68
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
69
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
69
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
70
70
 
71
71
  const name = defineModel<string>('name', { required: true })
72
72
  const location = defineModel<UI_I_TreeNode | null>('location') // для сферы
@@ -45,7 +45,7 @@
45
45
  {{ props.locationDescription }}
46
46
  </p>
47
47
  <div class="tree-view-wrap">
48
- <common-vm-actions-add-folder-tree-view
48
+ <common-wizards-common-steps-name-location
49
49
  v-model:location="location"
50
50
  :nodes="props.locationNodes"
51
51
  />
@@ -57,10 +57,10 @@
57
57
  <script setup lang="ts">
58
58
  import type { UI_I_Localization } from '~/lib/models/interfaces'
59
59
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
60
- import type { UI_I_NameTestIds } from '~/components/common/vm/actions/common/select/name/lib/models/interfaces'
60
+ import type { UI_I_NameTestIds } from '~/components/common/wizards/common/steps/name/lib/models/interfaces'
61
61
 
62
62
  const name = defineModel<string>('name', { required: true })
63
- const location = defineModel<UI_I_TreeNode | null>('location') // для сферы
63
+ const location = defineModel<UI_I_TreeNode | null>('location')
64
64
 
65
65
  const props = defineProps<{
66
66
  hasLocation: boolean
@@ -1,12 +1,12 @@
1
1
  <template>
2
- <common-vm-actions-add-folder-tree-view-new
2
+ <common-wizards-common-steps-name-location-new
3
3
  v-if="isNewView"
4
4
  :nodes="nodesLocal"
5
5
  :loading="loading"
6
6
  @show-nodes="showNodes"
7
7
  @select-node="selectNode"
8
8
  />
9
- <common-vm-actions-add-folder-tree-view-old
9
+ <common-wizards-common-steps-name-location-old
10
10
  v-else
11
11
  :nodes="nodesLocal"
12
12
  :loading="loading"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.503",
4
+ "version": "1.5.504",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",