bfg-common 1.5.442 → 1.5.443

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 (115) hide show
  1. package/assets/localization/local_be.json +9 -3
  2. package/assets/localization/local_en.json +17 -11
  3. package/assets/localization/local_hy.json +9 -3
  4. package/assets/localization/local_kk.json +9 -3
  5. package/assets/localization/local_ru.json +9 -3
  6. package/assets/localization/local_zh.json +9 -3
  7. package/components/atoms/wizard/Wizard.vue +2 -2
  8. package/components/atoms/wizard/step/Step.vue +1 -1
  9. package/components/common/backup/storage/actions/add/Add.vue +5 -5
  10. package/components/common/backup/storage/actions/add/Old.vue +1 -1
  11. package/components/common/backup/storage/actions/add/lib/config/steps.ts +2 -2
  12. package/components/common/backup/storage/actions/add/lib/validations.ts +4 -4
  13. package/components/common/backup/storage/actions/add/steps/name/Name.vue +1 -1
  14. package/components/common/backup/storage/actions/add/steps/name/New.vue +1 -1
  15. package/components/common/backup/storage/actions/add/steps/name/Old.vue +1 -1
  16. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +1 -1
  17. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
  18. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
  19. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  20. package/components/common/browse/lib/models/interfaces.ts +5 -5
  21. package/components/common/countdownTimer/CountdownTimer.vue +26 -15
  22. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  23. package/components/common/diagramMain/lib/models/types.ts +21 -21
  24. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  25. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  26. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  27. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  28. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +5 -5
  29. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +2 -2
  30. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +2 -2
  31. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  32. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +5 -5
  33. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +2 -2
  34. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  35. package/components/common/diagramMain/port/Ports.vue +47 -47
  36. package/components/common/layout/theHeader/modals/{reconnect/Reconnect.vue → Reconnect.vue} +56 -43
  37. package/components/common/pages/backups/modals/Modals.vue +1 -1
  38. package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +5 -2
  39. package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +2 -2
  40. package/components/common/pages/backups/modals/restore/Restore.vue +3 -3
  41. package/components/common/pages/backups/modals/restore/lib/config/steps.ts +2 -2
  42. package/components/common/vm/actions/add/Add.vue +5 -5
  43. package/components/common/vm/actions/add/New.vue +2 -2
  44. package/components/common/vm/actions/add/Old.vue +2 -2
  45. package/components/common/vm/actions/add/lib/config/steps.ts +2 -2
  46. package/components/common/vm/actions/clone/Clone.vue +5 -5
  47. package/components/common/vm/actions/clone/lib/config/steps.ts +2 -2
  48. package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +5 -5
  49. package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +2 -2
  50. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSize.vue +23 -23
  51. package/components/common/vmt/actions/add/Add.vue +5 -5
  52. package/components/common/vmt/actions/add/New.vue +2 -3
  53. package/components/common/vmt/actions/add/Old.vue +2 -2
  54. package/components/common/vmt/actions/add/lib/config/steps.ts +2 -2
  55. package/components/common/wizards/datastore/add/Add.vue +2 -2
  56. package/components/common/wizards/datastore/add/Old.vue +2 -2
  57. package/components/common/wizards/datastore/add/lib/config/steps.ts +2 -2
  58. package/components/common/wizards/datastore/add/lib/utils.ts +1 -1
  59. package/components/common/wizards/datastore/add/lib/validations.ts +3 -3
  60. package/components/common/wizards/datastore/add/steps/_local/Local.vue +1 -1
  61. package/components/common/wizards/datastore/add/steps/_local/createName/CreateName.vue +1 -1
  62. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigure.vue +2 -1
  63. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
  64. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
  65. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDevice.vue +1 -1
  66. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
  67. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +1 -1
  68. package/components/common/wizards/network/add/Add.vue +109 -333
  69. package/components/common/wizards/network/add/AddNew.vue +514 -0
  70. package/components/common/wizards/network/add/AddOld.vue +457 -0
  71. package/components/common/wizards/network/add/lib/config/config.ts +11 -1
  72. package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +31 -0
  73. package/components/common/wizards/network/add/lib/config/selectSwitch.ts +217 -0
  74. package/components/common/wizards/network/add/lib/config/steps.ts +5 -5
  75. package/components/common/wizards/network/add/lib/models/interfaces.ts +9 -0
  76. package/components/common/wizards/network/add/steps/ConnectionSettings.vue +2 -2
  77. package/components/common/wizards/network/add/steps/IpFourSettings.vue +2 -2
  78. package/components/common/wizards/network/add/steps/PortProperties.vue +2 -2
  79. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +35 -0
  80. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeNew.vue +104 -0
  81. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeOld.vue +80 -0
  82. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +183 -0
  83. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +393 -0
  84. package/components/common/wizards/network/add/steps/{SelectedTargetDevice.vue → selectTargetDevice/SelectTargetDeviceOld.vue} +42 -139
  85. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/Modals.vue +55 -0
  86. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +64 -0
  87. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +64 -0
  88. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +64 -0
  89. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +163 -0
  90. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectStandardSwitch.vue +163 -0
  91. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +163 -0
  92. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectNetwork.vue +53 -56
  93. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectStandardSwitch.vue +37 -52
  94. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectSwitch.vue +38 -42
  95. package/components/common/wizards/network/add/validations/connectionSettings.ts +5 -5
  96. package/components/common/wizards/network/add/validations/createStandardSwitch.ts +4 -4
  97. package/components/common/wizards/network/add/validations/ipFourSettings.ts +5 -5
  98. package/components/common/wizards/network/add/validations/networkValidation.ts +4 -4
  99. package/components/common/wizards/network/add/validations/physicalAdapter.ts +4 -4
  100. package/components/common/wizards/network/add/validations/portProperties.ts +2 -2
  101. package/components/common/wizards/network/add/validations/targetDevice.ts +11 -10
  102. package/components/common/wizards/vm/migrate/Migrate.vue +2 -2
  103. package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -2
  104. package/components/common/wizards/vm/migrate/lib/validations.ts +3 -3
  105. package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +1 -1
  106. package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +1 -1
  107. package/package.json +2 -2
  108. package/components/atoms/wizard/lib/models/enums.ts +0 -8
  109. package/components/atoms/wizard/lib/models/interfaces.ts +0 -59
  110. package/components/atoms/wizard/lib/utils/utils.ts +0 -954
  111. package/components/common/countdownTimer/CountdownTimerNew.vue +0 -53
  112. package/components/common/countdownTimer/CountdownTimerOld.vue +0 -33
  113. package/components/common/layout/theHeader/modals/reconnect/ReconnectNew.vue +0 -74
  114. package/components/common/layout/theHeader/modals/reconnect/ReconnectOld.vue +0 -67
  115. package/components/common/wizards/network/add/steps/SelectConnectionType.vue +0 -112
@@ -1,71 +1,73 @@
1
1
  <template>
2
- <common-layout-the-header-modals-reconnect-new
3
- v-if="isNewView"
4
- :is-show="isShow"
5
- :title="title"
6
- :timer="timer"
7
- :total-time="totalTime"
8
- @logout="onLogout"
9
- @reconnect="onReconnect"
10
- />
11
- <common-layout-the-header-modals-reconnect-old
12
- v-else
13
- :is-show="isShow"
14
- :title="title"
15
- :timer="timer"
16
- :total-time="totalTime"
17
- @logout="onLogout"
18
- @reconnect="onReconnect"
19
- />
2
+ <atoms-modal
3
+ :show="isShow"
4
+ :title="localization.common.connectionTimeout"
5
+ test-id="connection-timeout-reconnect-modal"
6
+ width="580px"
7
+ class="connection-timeout"
8
+ is-hide-close-icon
9
+ >
10
+ <template #modalBody>
11
+ <div class="connection-timeout__body">
12
+ <span>{{ localization.common.yourSessionExpireAfter }}:</span>
13
+ <common-countdown-timer :timer="timer" :total-time="totalTime" />
14
+ </div>
15
+ </template>
16
+
17
+ <template #modalFooter>
18
+ <button
19
+ id="logout-button"
20
+ data-id="logout-button"
21
+ class="btn btn-outline"
22
+ @click="onLogout"
23
+ >
24
+ {{ localization.common.logout }}
25
+ </button>
26
+
27
+ <button
28
+ id="reconnect-button"
29
+ data-id="reconnect-button"
30
+ class="btn btn-primary"
31
+ @click="onReconnect"
32
+ >
33
+ {{ localization.common.reconnect }}
34
+ </button>
35
+ </template>
36
+ </atoms-modal>
20
37
  </template>
21
38
 
22
39
  <script lang="ts" setup>
23
40
  import type { UI_I_Localization } from '~/lib/models/interfaces'
24
41
 
25
- const { $store }: any = useNuxtApp()
26
-
27
42
  const localization = computed<UI_I_Localization>(() => useLocal())
28
-
29
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
43
+ const { $store }: any = useNuxtApp()
30
44
 
31
45
  const isShow = computed<boolean>(
32
46
  () => $store.getters['main/isShowReconnectModal']
33
47
  )
48
+ const hideModal = (): void => {
49
+ $store.dispatch('main/A_SHOW_RECONNECT_MODAL', false)
50
+ }
34
51
 
35
- const title = ref<string>(localization.value.common.connectionTimeout)
36
-
37
- const timer = ref<NodeJS.Timer | null>(null)
38
52
  const totalTime = ref<number>(60)
53
+ const timer = ref<NodeJS.Timer | null>(null)
39
54
  const countdown = (): void => {
40
55
  totalTime.value--
41
56
  if (totalTime.value === 0) {
42
57
  endTimer()
43
58
  }
44
59
  }
45
-
46
- const resetTimer = (): void => {
47
- timer.value !== null && clearInterval(timer.value)
48
- totalTime.value = 60
60
+ const startTimer = (): void => {
61
+ timer.value = setInterval(() => countdown(), 1000)
49
62
  }
50
-
51
- const hideModal = (): void => {
52
- $store.dispatch('main/A_SHOW_RECONNECT_MODAL', false)
63
+ const endTimer = (): void => {
64
+ onLogout()
53
65
  }
54
-
55
66
  const onLogout = async (): Promise<void> => {
56
67
  await $store.dispatch('auth/A_LOGOUT')
57
68
  resetTimer()
58
69
  hideModal()
59
70
  }
60
-
61
- const endTimer = (): void => {
62
- onLogout()
63
- }
64
-
65
- const startTimer = (): void => {
66
- timer.value = setInterval(() => countdown(), 1000)
67
- }
68
-
69
71
  const onReconnect = async (): Promise<void> => {
70
72
  location.reload()
71
73
  // await $store.dispatch('auth/A_REFRESH')
@@ -73,6 +75,10 @@ const onReconnect = async (): Promise<void> => {
73
75
  hideModal()
74
76
  }
75
77
 
78
+ const resetTimer = (): void => {
79
+ timer.value !== null && clearInterval(timer.value)
80
+ totalTime.value = 60
81
+ }
76
82
  watch(
77
83
  isShow,
78
84
  (newValue) => {
@@ -82,4 +88,11 @@ watch(
82
88
  )
83
89
  </script>
84
90
 
85
- <style lang="scss" scoped></style>
91
+ <style lang="scss" scoped>
92
+ .connection-timeout {
93
+ &__body {
94
+ text-align: center;
95
+ margin: 15px 0;
96
+ }
97
+ }
98
+ </style>
@@ -41,6 +41,7 @@
41
41
  </template>
42
42
 
43
43
  <script lang="ts" setup>
44
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
44
45
  import type { UI_T_Project } from '~/lib/models/types'
45
46
  import type { UI_I_SendTaskParams, UI_I_ModalPayload } from '~/lib/models/interfaces'
46
47
  import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
@@ -52,7 +53,6 @@ import type {
52
53
  } from '~/components/common/pages/backups/modals/lib/models/interfaces'
53
54
  import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
54
55
  import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
55
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
56
56
  import type { UI_I_BackupAction } from '~/components/common/pages/backups/lib/models/interfaces'
57
57
  import type { UI_I_NameCheck } from '~/components/common/pages/backups/modals/restore/name/lib/models/interfaces'
58
58
  import { sendTask } from '~/lib/utils/sendTask'
@@ -65,7 +65,11 @@
65
65
  </template>
66
66
 
67
67
  <script setup lang="ts">
68
- import type { UI_I_WizardStep, UI_I_ValidationReturn } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
68
+ import type {
69
+ UI_I_WizardStep,
70
+ UI_I_ValidationReturn,
71
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
72
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
69
73
  import type { UI_I_Localization } from '~/lib/models/interfaces'
70
74
  import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
71
75
  import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
@@ -76,7 +80,6 @@ import type {
76
80
  } from '~/components/common/pages/backups/modals/lib/models/interfaces'
77
81
  import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
78
82
  import type { UI_I_NameCheck } from '~/components/common/pages/backups/modals/restore/name/lib/models/interfaces'
79
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
80
83
  import {
81
84
  stepsSchemeInitial,
82
85
  stepsFunc,
@@ -1,7 +1,7 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
4
  import type { UI_I_DynamicSteps } from '~/components/common/pages/backups/modals/createBackup/lib/models/interfaces'
4
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
5
5
 
6
6
  export const dynamicSteps: UI_I_DynamicSteps = {
7
7
  schedulingOptions: 0,
@@ -85,12 +85,12 @@
85
85
  </template>
86
86
 
87
87
  <script setup lang="ts">
88
- import type { UI_I_Localization } from '~/lib/models/interfaces'
89
88
  import type {
90
89
  UI_I_WizardStep,
91
90
  UI_I_ValidationReturn,
92
- } from '~/components/atoms/wizard/lib/models/interfaces'
93
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
91
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
92
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
93
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
94
94
  import type { UI_I_DatastoreTableItem } from '~/lib/models/store/storage/interfaces'
95
95
  import type { UI_I_TableInfoItem } from '~/components/atoms/table/info/lib/models/interfaces'
96
96
  import type { UI_I_NetworkTableItem } from '~/lib/models/store/network/interfaces'
@@ -1,6 +1,6 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
4
4
 
5
5
  export const dynamicSteps = {
6
6
  selectType: 0,
@@ -144,6 +144,11 @@
144
144
  </template>
145
145
 
146
146
  <script setup lang="ts">
147
+ import type {
148
+ UI_I_ValidationReturn,
149
+ UI_I_WizardStep,
150
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
151
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
147
152
  import type {
148
153
  UI_I_Localization,
149
154
  UI_I_ArbitraryObject,
@@ -166,10 +171,6 @@ import type {
166
171
  UI_T_SelectedNavItem,
167
172
  } from '~/components/common/vm/actions/common/lib/models/types'
168
173
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
169
- import type {
170
- UI_I_ValidationReturn,
171
- UI_I_WizardStep,
172
- } from '~/components/atoms/wizard/lib/models/interfaces'
173
174
  import type {
174
175
  UI_I_Capabilities,
175
176
  UI_I_VmForm,
@@ -196,7 +197,6 @@ import {
196
197
  stepsFunc,
197
198
  dynamicSteps,
198
199
  } from '~/components/common/vm/actions/add/lib/config/steps'
199
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
200
200
  import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
201
201
 
202
202
  const props = withDefaults(
@@ -418,6 +418,8 @@
418
418
  <script setup lang="ts">
419
419
  import { useElementSize } from '@vueuse/core'
420
420
  import type { UI_I_WizardTexts } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
421
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
422
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
421
423
  import type {
422
424
  UI_I_Localization,
423
425
  UI_I_ArbitraryObject,
@@ -440,7 +442,6 @@ import type {
440
442
  UI_T_SelectedNavItem,
441
443
  } from '~/components/common/vm/actions/common/lib/models/types'
442
444
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
443
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
444
445
  import type {
445
446
  // UI_I_Capabilities,
446
447
  UI_I_VmForm,
@@ -459,7 +460,6 @@ import type {
459
460
  UI_I_VmSettings,
460
461
  } from '~/lib/models/store/vm/interfaces'
461
462
  import { dynamicSteps } from '~/components/common/vm/actions/add/lib/config/steps'
462
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
463
463
 
464
464
  const vmForm = defineModel<UI_I_VmForm>('vmForm', {
465
465
  required: true,
@@ -226,6 +226,8 @@
226
226
  </template>
227
227
 
228
228
  <script setup lang="ts">
229
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
230
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
229
231
  import type {
230
232
  UI_I_Localization,
231
233
  UI_I_ArbitraryObject,
@@ -248,7 +250,6 @@ import type {
248
250
  UI_T_SelectedNavItem,
249
251
  } from '~/components/common/vm/actions/common/lib/models/types'
250
252
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
251
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
252
253
  import type {
253
254
  // UI_I_Capabilities,
254
255
  UI_I_VmForm,
@@ -267,7 +268,6 @@ import type {
267
268
  UI_I_VmSettings,
268
269
  } from '~/lib/models/store/vm/interfaces'
269
270
  import { dynamicSteps } from '~/components/common/vm/actions/add/lib/config/steps'
270
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
271
271
 
272
272
  const vmForm = defineModel<UI_I_VmForm>('vmForm', {
273
273
  required: true,
@@ -1,6 +1,6 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
4
4
 
5
5
  export const dynamicSteps = {
6
6
  creationType: 0,
@@ -134,6 +134,11 @@
134
134
  </template>
135
135
 
136
136
  <script setup lang="ts">
137
+ import type {
138
+ UI_I_ValidationReturn,
139
+ UI_I_WizardStep,
140
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
141
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
137
142
  import type {
138
143
  UI_I_DatastoreTableItem,
139
144
  UI_I_FolderOrFileTreePayload,
@@ -165,10 +170,6 @@ import type {
165
170
  UI_I_VmSettings,
166
171
  } from '~/lib/models/store/vm/interfaces'
167
172
  import type { UI_I_VmForm } from '~/components/common/vm/actions/common/lib/models/interfaces'
168
- import type {
169
- UI_I_ValidationReturn,
170
- UI_I_WizardStep,
171
- } from '~/components/atoms/wizard/lib/models/interfaces'
172
173
  import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
173
174
  import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
174
175
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
@@ -178,7 +179,6 @@ import {
178
179
  stepsFunc,
179
180
  dynamicSteps,
180
181
  } from '~/components/common/vm/actions/clone/lib/config/steps'
181
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
182
182
  import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
183
183
  import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask'
184
184
  import { capabilities } from '~/components/common/vm/actions/common/lib/config/capabilities'
@@ -1,6 +1,6 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
4
4
 
5
5
  export const dynamicSteps = {
6
6
  scheduledTasks: 0,
@@ -97,6 +97,11 @@
97
97
  </template>
98
98
 
99
99
  <script setup lang="ts">
100
+ import type {
101
+ UI_I_ValidationReturn,
102
+ UI_I_WizardStep,
103
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
104
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
100
105
  import type {
101
106
  UI_I_DatastoreTableItem,
102
107
  UI_I_FolderOrFileTreePayload,
@@ -128,10 +133,6 @@ import type {
128
133
  UI_I_DynamicSteps,
129
134
  // UI_I_VmForm,
130
135
  } from '~/components/common/vm/actions/clone/toTemplate/lib/models/interfaces'
131
- import type {
132
- UI_I_ValidationReturn,
133
- UI_I_WizardStep,
134
- } from '~/components/atoms/wizard/lib/models/interfaces'
135
136
  import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
136
137
  import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
137
138
  import {
@@ -139,7 +140,6 @@ import {
139
140
  stepsFunc,
140
141
  getDynamicSteps,
141
142
  } from '~/components/common/vm/actions/clone/toTemplate/lib/config/steps'
142
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
143
143
  import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
144
144
  import { scheduledTaskDefaultFormFunc } from '~/components/common/pages/scheduledTasks/modals/lib/config/createScheduledTask'
145
145
 
@@ -1,7 +1,7 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
4
  import type { UI_I_DynamicSteps } from '~/components/common/vm/actions/clone/toTemplate/lib/models/interfaces'
4
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
5
5
 
6
6
  export const stepsFunc = (
7
7
  localization: UI_I_Localization,
@@ -1,23 +1,23 @@
1
- <template>
2
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-new
3
- v-if="isNewView"
4
- :free-gb="freeGb"
5
- />
6
- <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-old
7
- v-else
8
- :free-gb="freeGb"
9
- />
10
- </template>
11
-
12
- <script setup lang="ts">
13
- const props = defineProps<{
14
- freeMb: number
15
- }>()
16
-
17
- const { $store, $binary }: any = useNuxtApp()
18
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
19
-
20
- const freeGb = computed<number>(() => $binary.round(props.freeMb))
21
- </script>
22
-
23
- <style scoped></style>
1
+ <template>
2
+ <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-new
3
+ v-if="isNewView"
4
+ :free-gb="freeGb"
5
+ />
6
+ <common-vm-actions-common-customize-hardware-virtual-hardware-new-hard-disk-maximum-size-old
7
+ v-else
8
+ :free-gb="freeGb"
9
+ />
10
+ </template>
11
+
12
+ <script setup lang="ts">
13
+ const props = defineProps<{
14
+ freeMb: number
15
+ }>()
16
+
17
+ const { $store, $binary }: any = useNuxtApp()
18
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
19
+
20
+ const freeGb = computed<number>(() => $binary.round(props.freeMb))
21
+ </script>
22
+
23
+ <style scoped></style>
@@ -103,14 +103,15 @@
103
103
  </template>
104
104
 
105
105
  <script setup lang="ts">
106
+ import type {
107
+ UI_I_ValidationReturn,
108
+ UI_I_WizardStep,
109
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
110
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
106
111
  import type {
107
112
  UI_I_ArbitraryObject,
108
113
  UI_I_Localization,
109
114
  } from '~/lib/models/interfaces'
110
- import type {
111
- UI_I_ValidationReturn,
112
- UI_I_WizardStep,
113
- } from '~/components/atoms/wizard/lib/models/interfaces'
114
115
  import type { UI_I_VmtForm } from '~/components/common/vmt/actions/add/lib/models/interfaces'
115
116
  import type {
116
117
  UI_I_SendDataCpu,
@@ -142,7 +143,6 @@ import type {
142
143
  UI_I_PciDevice,
143
144
  } from '~/lib/models/store/vm/interfaces'
144
145
  import type { UI_I_Capabilities } from '~/components/common/vm/actions/common/lib/models/interfaces'
145
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
146
146
  import { mapCapabilities } from '~/components/common/vm/actions/common/lib/utils/capabilities'
147
147
  import {
148
148
  dynamicSteps,
@@ -181,7 +181,8 @@
181
181
 
182
182
  <script setup lang="ts">
183
183
  import { useElementSize } from '@vueuse/core'
184
- import type { UI_I_WizardTexts } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
184
+ import type { UI_I_WizardStep, UI_I_WizardTexts } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
185
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
185
186
  import type {
186
187
  UI_I_DatastoreTableItem,
187
188
  UI_I_FolderOrFileTreePayload,
@@ -209,13 +210,11 @@ import type {
209
210
  UI_I_MediatedDevice,
210
211
  UI_I_PciDevice,
211
212
  } from '~/lib/models/store/vm/interfaces'
212
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
213
213
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
214
214
  import type {
215
215
  UI_I_VmtForm,
216
216
  UI_I_DynamicSteps,
217
217
  } from '~/components/common/vmt/actions/add/lib/models/interfaces'
218
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
219
218
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
220
219
 
221
220
  const vmtForm = defineModel<UI_I_VmtForm>('vmtForm')
@@ -101,6 +101,8 @@
101
101
  </template>
102
102
 
103
103
  <script setup lang="ts">
104
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
105
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
104
106
  import type {
105
107
  UI_I_DatastoreTableItem,
106
108
  UI_I_FolderOrFileTreePayload,
@@ -129,13 +131,11 @@ import type {
129
131
  UI_I_MediatedDevice,
130
132
  UI_I_PciDevice,
131
133
  } from '~/lib/models/store/vm/interfaces'
132
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
133
134
  import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
134
135
  import type {
135
136
  UI_I_VmtForm,
136
137
  UI_I_DynamicSteps,
137
138
  } from '~/components/common/vmt/actions/add/lib/models/interfaces'
138
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
139
139
 
140
140
  const vmtForm = defineModel<UI_I_VmtForm>('vmtForm')
141
141
  const props = defineProps<{
@@ -1,7 +1,7 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
4
  import type { UI_I_DynamicSteps } from '~/components/common/vmt/actions/add/lib/models/interfaces'
4
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
5
5
 
6
6
  export const dynamicSteps: UI_I_DynamicSteps = {
7
7
  selectName: 0,
@@ -35,8 +35,8 @@
35
35
  import type {
36
36
  UI_I_WizardStep,
37
37
  UI_I_ValidationReturn,
38
- } from '~/components/atoms/wizard/lib/models/interfaces'
39
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
38
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
39
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
40
40
  import type { UI_I_Localization } from '~/lib/models/interfaces'
41
41
  import type { UI_T_Project } from '~/lib/models/types'
42
42
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
@@ -61,8 +61,8 @@
61
61
  </template>
62
62
 
63
63
  <script setup lang="ts">
64
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
65
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
64
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
65
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
66
66
  import type { UI_I_Localization } from '~/lib/models/interfaces'
67
67
  import type { UI_T_Project } from '~/lib/models/types'
68
68
  import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
@@ -1,9 +1,9 @@
1
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
2
+ import { UI_E_WIZARD_STATUS } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/enums'
1
3
  import type { UI_I_Localization } from '~/lib/models/interfaces'
2
4
  import type { UI_T_Project } from '~/lib/models/types'
3
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
4
5
  import type { UI_I_ChangeStepsSchemes } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
5
6
  import type { UI_T_DatastoreTypeCode } from '~/components/common/wizards/datastore/add/lib/models/types'
6
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
7
7
 
8
8
  export const dynamicSteps = {
9
9
  type: 0,
@@ -1,6 +1,6 @@
1
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
1
2
  import type { API_UI_I_Error } from '~/lib/models/store/interfaces'
2
3
  import type { UI_T_Project } from '~/lib/models/types'
3
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
4
4
  import { UI_E_Kind } from '~/lib/models/enums'
5
5
 
6
6
  export const checkValidityName = async (
@@ -1,10 +1,10 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
1
  import type {
3
2
  UI_I_AsyncCheckReturn,
4
3
  UI_I_ValidationReturn,
5
4
  UI_I_WizardStep,
6
- } from '~/components/atoms/wizard/lib/models/interfaces'
7
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
5
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
6
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
7
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
8
8
  import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
9
9
  import type { UI_T_Project } from '~/lib/models/types'
10
10
  import { checkValidityName } from '~/components/common/wizards/datastore/add/lib/utils'
@@ -12,10 +12,10 @@
12
12
  </template>
13
13
 
14
14
  <script lang="ts" setup>
15
+ import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
15
16
  import type { UI_T_Project } from '~/lib/models/types'
16
17
  import type { UI_I_ArbitraryObject } from '~/lib/models/interfaces'
17
18
  import type { UI_T_DatastoreTypeCode } from '~/components/common/wizards/datastore/add/lib/models/types'
18
- import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
19
19
  import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
20
20
 
21
21
  const props = defineProps<{
@@ -36,11 +36,11 @@
36
36
  </template>
37
37
 
38
38
  <script lang="ts" setup>
39
+ import type { UI_I_ErrorFields } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
39
40
  import type {
40
41
  UI_I_Localization,
41
42
  UI_I_ArbitraryObject,
42
43
  } from '~/lib/models/interfaces'
43
- import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
44
44
 
45
45
  const props = defineProps<{
46
46
  alertMessages: string[]
@@ -18,8 +18,9 @@
18
18
  </template>
19
19
 
20
20
  <script lang="ts" setup>
21
+ import type { UI_I_WizardStep } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
21
22
  import type { UI_T_Project } from '~/lib/models/types'
22
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
23
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
23
24
  import type { UI_I_CreateDatastoreForm } from '~/components/common/wizards/datastore/add/lib/models/interfaces'
24
25
 
25
26
  const formModel = defineModel<UI_I_CreateDatastoreForm>({ required: true })