bfg-common 1.5.442 → 1.5.444

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 (212) hide show
  1. package/CODE_STYLE.md +109 -109
  2. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  3. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  4. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  5. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  6. package/assets/localization/local_be.json +9 -2
  7. package/assets/localization/local_en.json +19 -12
  8. package/assets/localization/local_hy.json +9 -2
  9. package/assets/localization/local_kk.json +9 -2
  10. package/assets/localization/local_ru.json +9 -2
  11. package/assets/localization/local_zh.json +9 -2
  12. package/components/atoms/TheIcon3.vue +50 -50
  13. package/components/atoms/collapse/CollapseNav.vue +170 -170
  14. package/components/atoms/perPage/PerPage.vue +58 -58
  15. package/components/atoms/table/dataGrid/DataGrid.vue +1694 -1694
  16. package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
  17. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
  18. package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
  19. package/components/atoms/wizard/Wizard.vue +2 -2
  20. package/components/atoms/wizard/step/Step.vue +1 -1
  21. package/components/common/backup/storage/actions/add/Add.vue +5 -5
  22. package/components/common/backup/storage/actions/add/Old.vue +1 -1
  23. package/components/common/backup/storage/actions/add/lib/config/steps.ts +2 -2
  24. package/components/common/backup/storage/actions/add/lib/validations.ts +4 -4
  25. package/components/common/backup/storage/actions/add/steps/name/Name.vue +1 -1
  26. package/components/common/backup/storage/actions/add/steps/name/New.vue +1 -1
  27. package/components/common/backup/storage/actions/add/steps/name/Old.vue +1 -1
  28. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigure.vue +1 -1
  29. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
  30. package/components/common/backup/storage/actions/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
  31. package/components/common/browse/blocks/Container.vue +235 -235
  32. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  33. package/components/common/context/lib/models/interfaces.ts +33 -33
  34. package/components/common/diagramMain/modals/lib/config/networkModal.ts +398 -398
  35. package/components/common/diagramMain/modals/lib/config/portModal.ts +251 -251
  36. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
  37. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +5 -5
  38. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +2 -2
  39. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +2 -2
  40. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +5 -5
  41. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +2 -2
  42. package/components/common/diagramMain/port/Port.vue +580 -580
  43. package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
  44. package/components/common/pages/backups/Backups.vue +102 -102
  45. package/components/common/pages/backups/DetailView.vue +52 -52
  46. package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
  47. package/components/common/pages/backups/modals/Modals.vue +1 -1
  48. package/components/common/pages/backups/modals/createBackup/CreateBackup.vue +5 -2
  49. package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
  50. package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +26 -26
  51. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +66 -66
  52. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
  53. package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +35 -35
  54. package/components/common/pages/backups/modals/createBackup/datastores/Datastores.vue +59 -59
  55. package/components/common/pages/backups/modals/createBackup/datastores/tableView/TableView.vue +95 -95
  56. package/components/common/pages/backups/modals/createBackup/disks/tableView/lib/config/table.ts +117 -117
  57. package/components/common/pages/backups/modals/createBackup/general/General.vue +135 -135
  58. package/components/common/pages/backups/modals/createBackup/lib/config/steps.ts +2 -2
  59. package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +12 -12
  60. package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
  61. package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
  62. package/components/common/pages/backups/modals/restore/Restore.vue +3 -3
  63. package/components/common/pages/backups/modals/restore/disks/Disks.vue +27 -27
  64. package/components/common/pages/backups/modals/restore/disks/tableView/TableView.vue +102 -102
  65. package/components/common/pages/backups/modals/restore/disks/tableView/lib/config/table.ts +117 -117
  66. package/components/common/pages/backups/modals/restore/lib/config/steps.ts +2 -2
  67. package/components/common/pages/backups/modals/restore/name/Name.vue +160 -160
  68. package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
  69. package/components/common/pages/backups/modals/restore/networks/Networks.vue +67 -67
  70. package/components/common/pages/backups/modals/restore/networks/table/Table.vue +214 -214
  71. package/components/common/pages/backups/modals/restore/types/lib/config/typeOptions.ts +25 -25
  72. package/components/common/pages/backups/tools/Tools.vue +75 -75
  73. package/components/common/pages/backups/tools/lib/config/tabs.ts +36 -36
  74. package/components/common/pages/home/headline/HeadlineOld.vue +42 -42
  75. package/components/common/pages/home/lib/models/interfaces.ts +48 -48
  76. package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
  77. package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
  78. package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
  79. package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
  80. package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
  81. package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
  82. package/components/common/select/radio/RadioGroup.vue +137 -137
  83. package/components/common/spiceConsole/Drawer.vue +381 -381
  84. package/components/common/spiceConsole/SpiceConsole.vue +127 -127
  85. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  86. package/components/common/tools/Actions.vue +207 -207
  87. package/components/common/treeView/TreeView.vue +52 -52
  88. package/components/common/vm/actions/add/Add.vue +5 -5
  89. package/components/common/vm/actions/add/New.vue +2 -2
  90. package/components/common/vm/actions/add/Old.vue +2 -2
  91. package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
  92. package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
  93. package/components/common/vm/actions/add/lib/config/steps.ts +2 -2
  94. package/components/common/vm/actions/clone/Clone.vue +5 -5
  95. package/components/common/vm/actions/clone/lib/config/steps.ts +2 -2
  96. package/components/common/vm/actions/clone/toTemplate/ToTemplate.vue +5 -5
  97. package/components/common/vm/actions/clone/toTemplate/lib/config/steps.ts +2 -2
  98. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  99. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +78 -78
  100. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
  101. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +2 -0
  102. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
  103. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
  104. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
  105. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationOld.vue +85 -85
  106. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSize.vue +23 -23
  107. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -99
  108. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  109. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
  110. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
  111. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
  112. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
  113. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  114. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  115. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  116. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
  117. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  118. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
  119. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
  120. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
  121. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
  122. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  123. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +44 -44
  124. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  125. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  126. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  127. package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
  128. package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +143 -143
  129. package/components/common/vm/actions/common/select/computeResource/New.vue +184 -184
  130. package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +131 -131
  131. package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
  132. package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
  133. package/components/common/vm/actions/common/select/os/Old.vue +152 -152
  134. package/components/common/vm/actions/common/select/os/Os.vue +139 -139
  135. package/components/common/vm/actions/common/select/storage/new/New.vue +320 -320
  136. package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
  137. package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
  138. package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
  139. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  140. package/components/common/vmt/actions/add/Add.vue +5 -5
  141. package/components/common/vmt/actions/add/New.vue +2 -3
  142. package/components/common/vmt/actions/add/Old.vue +2 -2
  143. package/components/common/vmt/actions/add/lib/config/steps.ts +2 -2
  144. package/components/common/wizards/datastore/add/Add.vue +2 -2
  145. package/components/common/wizards/datastore/add/Old.vue +2 -2
  146. package/components/common/wizards/datastore/add/lib/config/steps.ts +2 -2
  147. package/components/common/wizards/datastore/add/lib/utils.ts +1 -1
  148. package/components/common/wizards/datastore/add/lib/validations.ts +3 -3
  149. package/components/common/wizards/datastore/add/steps/_local/Local.vue +1 -1
  150. package/components/common/wizards/datastore/add/steps/_local/createName/CreateName.vue +1 -1
  151. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigure.vue +2 -1
  152. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureNew.vue +1 -1
  153. package/components/common/wizards/datastore/add/steps/nameAndConfigure/NameAndConfigureOld.vue +1 -1
  154. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDevice.vue +1 -1
  155. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
  156. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceOld.vue +1 -1
  157. package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
  158. package/components/common/wizards/network/add/Add.vue +109 -333
  159. package/components/common/wizards/network/add/AddNew.vue +514 -0
  160. package/components/common/wizards/network/add/AddOld.vue +457 -0
  161. package/components/common/wizards/network/add/lib/config/config.ts +11 -1
  162. package/components/common/wizards/network/add/lib/config/selectConnectionTypeStep.ts +31 -0
  163. package/components/common/wizards/network/add/lib/config/selectSwitch.ts +217 -0
  164. package/components/common/wizards/network/add/lib/config/steps.ts +5 -5
  165. package/components/common/wizards/network/add/lib/models/interfaces.ts +9 -0
  166. package/components/common/wizards/network/add/steps/ConnectionSettings.vue +2 -2
  167. package/components/common/wizards/network/add/steps/IpFourSettings.vue +2 -2
  168. package/components/common/wizards/network/add/steps/PortProperties.vue +2 -2
  169. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionType.vue +35 -0
  170. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeNew.vue +104 -0
  171. package/components/common/wizards/network/add/steps/selectConnectionType/SelectConnectionTypeOld.vue +80 -0
  172. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +183 -0
  173. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +393 -0
  174. package/components/common/wizards/network/add/steps/{SelectedTargetDevice.vue → selectTargetDevice/SelectTargetDeviceOld.vue} +42 -139
  175. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/Modals.vue +55 -0
  176. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectNetwork.vue +64 -0
  177. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectStandardSwitch.vue +64 -0
  178. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/SelectSwitch.vue +64 -0
  179. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +163 -0
  180. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectStandardSwitch.vue +163 -0
  181. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectSwitch.vue +163 -0
  182. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectNetwork.vue +53 -56
  183. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectStandardSwitch.vue +37 -52
  184. package/components/common/wizards/network/add/{modals → steps/selectTargetDevice/modals/old}/SelectSwitch.vue +38 -42
  185. package/components/common/wizards/network/add/validations/connectionSettings.ts +5 -5
  186. package/components/common/wizards/network/add/validations/createStandardSwitch.ts +4 -4
  187. package/components/common/wizards/network/add/validations/ipFourSettings.ts +5 -5
  188. package/components/common/wizards/network/add/validations/networkValidation.ts +4 -4
  189. package/components/common/wizards/network/add/validations/physicalAdapter.ts +4 -4
  190. package/components/common/wizards/network/add/validations/portProperties.ts +2 -2
  191. package/components/common/wizards/network/add/validations/targetDevice.ts +11 -10
  192. package/components/common/wizards/vm/migrate/Migrate.vue +2 -2
  193. package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -2
  194. package/components/common/wizards/vm/migrate/lib/validations.ts +3 -3
  195. package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
  196. package/components/common/wizards/vm/migrate/select/targetServer/new/New.vue +1 -1
  197. package/components/common/wizards/vm/migrate/select/targetServer/targetServer.vue +1 -1
  198. package/components/common/wizards/vm/migrate/select/type/lib/config/typeOptions.ts +45 -45
  199. package/composables/productNameLocal.ts +30 -30
  200. package/composables/useAppVersion.ts +21 -21
  201. package/package.json +2 -2
  202. package/plugins/date.ts +233 -233
  203. package/plugins/panelStates.ts +70 -70
  204. package/plugins/text.ts +59 -59
  205. package/public/spice-console/lib/images/bitmap.js +203 -203
  206. package/public/spice-console/network/spicechannel.js +390 -390
  207. package/store/main/mutations.ts +7 -7
  208. package/store/main/state.ts +7 -7
  209. package/components/atoms/wizard/lib/models/enums.ts +0 -8
  210. package/components/atoms/wizard/lib/models/interfaces.ts +0 -59
  211. package/components/atoms/wizard/lib/utils/utils.ts +0 -954
  212. package/components/common/wizards/network/add/steps/SelectConnectionType.vue +0 -112
@@ -1,23 +1,30 @@
1
1
  <template>
2
2
  <div class="select-table-modal">
3
3
  <atoms-modal
4
- :width="props.width"
5
- :height="props.height"
4
+ width="576px"
5
+ height="468px"
6
6
  :show="props.show"
7
- :title="props.title"
8
- @hide="onHideModal"
7
+ :title="localization.common.selectSwitch"
8
+ @hide="emits('hide')"
9
9
  >
10
10
  <template #modalBody>
11
11
  <atoms-alert
12
- v-if="isShowErrorMessageAlert"
12
+ v-if="props.isShowAlert"
13
13
  :items="[
14
14
  localization.common.noSwitchIsSelectedSelectSwitchToContinue,
15
15
  ]"
16
16
  status="alert-danger"
17
17
  test-id="select-standard-switch-alert"
18
- @remove="onHideErrorMessageAlert"
18
+ @remove="emits('hide-alert')"
19
19
  />
20
- <div class="table-top-margin-container">
20
+ <div
21
+ :class="[
22
+ 'table-top-margin-container',
23
+ {
24
+ 'with-alert': props.isShowAlert,
25
+ },
26
+ ]"
27
+ >
21
28
  <atoms-table-simple-table
22
29
  :head-items="headItems"
23
30
  :body-items="bodyItems"
@@ -30,7 +37,7 @@
30
37
  <button
31
38
  data-id="select-standard-switch-hide-button"
32
39
  class="btn btn-outline"
33
- @click="onHideModal"
40
+ @click="emits('hide')"
34
41
  >
35
42
  {{ localization.common.cancel }}
36
43
  </button>
@@ -55,40 +62,27 @@ import type {
55
62
  } from '~/components/common/wizards/network/add/lib/models/interfaces'
56
63
  import { selectStandardSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config/config'
57
64
 
58
- const props = withDefaults(
59
- defineProps<{
60
- show: boolean
61
- modalName: string
62
- standardSwitchesInitial: UI_I_Switch[]
63
- title?: string
64
- width?: string
65
- height?: string
66
- withCollapse?: boolean
67
- }>(),
68
- {
69
- width: '576px',
70
- height: '420px',
71
- title: '--',
72
- withCollapse: undefined,
73
- }
74
- )
65
+ const props = defineProps<{
66
+ show: boolean
67
+ data: UI_I_Switch[]
68
+ isShowAlert: boolean
69
+ }>()
75
70
 
76
71
  const emits = defineEmits<{
77
72
  (event: 'hide'): void
73
+ (event: 'hide-alert'): void
74
+ (event: 'show-alert'): void
78
75
  (event: 'select-standard-switch', switchId: string): void
79
76
  }>()
80
77
 
81
- // UI_I_Localization
82
78
  const localization = computed<UI_I_Localization>(() => useLocal())
83
79
 
84
- const selectedRowData = ref<UI_I_SelectedSwitch[]>()
85
-
86
- const standardSwitches = ref<UI_I_Switch[]>(props.standardSwitchesInitial)
80
+ const selectedRowData = ref<UI_I_SelectedSwitch[]>([])
87
81
 
88
82
  const headItems = selectStandardSwitchTableHeadFunc(localization.value)
89
83
 
90
84
  const bodyItems = computed<UI_I_BodyItems[][]>(() =>
91
- standardSwitches.value.map((switchData: UI_I_Switch) => [
85
+ props.data.map((switchData: UI_I_Switch) => [
92
86
  {
93
87
  editable: false,
94
88
  text: switchData.name,
@@ -97,20 +91,6 @@ const bodyItems = computed<UI_I_BodyItems[][]>(() =>
97
91
  ])
98
92
  )
99
93
 
100
- watch(
101
- () => props.standardSwitchesInitial,
102
- (newStandardSwitches: UI_I_Switch[]) => {
103
- standardSwitches.value = newStandardSwitches
104
- },
105
- { deep: true, immediate: true }
106
- )
107
-
108
- const isShowErrorMessageAlert = ref<boolean>(false)
109
- const onHideErrorMessageAlert = (): void => {
110
- selectedRowData.value = []
111
- isShowErrorMessageAlert.value = false
112
- }
113
-
114
94
  const onSelectRow = (_index: number, item: UI_I_SelectedSwitch[]): void => {
115
95
  selectedRowData.value = item
116
96
  }
@@ -122,17 +102,12 @@ const onSelectSwitch = (): void => {
122
102
  selectedRowData.value[0].id
123
103
 
124
104
  if (!selectedSwitchId) {
125
- isShowErrorMessageAlert.value = true
105
+ emits('show-alert')
126
106
  return
127
107
  }
128
- emits('select-standard-switch', selectedSwitchId)
129
- onHideErrorMessageAlert()
130
- emits('hide')
131
- }
132
108
 
133
- const onHideModal = (): void => {
134
- onHideErrorMessageAlert()
135
- emits('hide')
109
+ emits('select-standard-switch', selectedSwitchId)
110
+ selectedRowData.value = []
136
111
  }
137
112
  </script>
138
113
 
@@ -140,4 +115,14 @@ const onHideModal = (): void => {
140
115
  :deep(.table-wrap) {
141
116
  height: 300px;
142
117
  }
118
+
119
+ .with-alert {
120
+ :deep(.table-wrap) {
121
+ height: 254px;
122
+ }
123
+ }
124
+
125
+ .table-top-margin-container {
126
+ margin-top: 8px;
127
+ }
143
128
  </style>
@@ -1,23 +1,30 @@
1
1
  <template>
2
2
  <div class="select-table-modal">
3
3
  <atoms-modal
4
- :width="props.width"
5
- :height="props.height"
4
+ width="576px"
5
+ height="468px"
6
6
  :show="props.show"
7
- :title="props.title"
8
- @hide="onHideModal"
7
+ :title="localization.common.selectSwitch"
8
+ @hide="emits('hide')"
9
9
  >
10
10
  <template #modalBody>
11
11
  <atoms-alert
12
- v-if="isShowErrorMessageAlert"
12
+ v-if="props.isShowAlert"
13
13
  :items="[
14
14
  localization.common.noSwitchIsSelectedSelectSwitchToContinue,
15
15
  ]"
16
16
  status="alert-danger"
17
17
  test-id="select-switch-alert"
18
- @remove="onHideErrorMessageAlert"
18
+ @remove="emits('hide-alert')"
19
19
  />
20
- <div class="table-top-margin-container">
20
+ <div
21
+ :class="[
22
+ 'table-top-margin-container',
23
+ {
24
+ 'with-alert': props.isShowAlert,
25
+ },
26
+ ]"
27
+ >
21
28
  <atoms-table-simple-table
22
29
  :head-items="headItems"
23
30
  :body-items="bodyItems"
@@ -30,12 +37,12 @@
30
37
  <button
31
38
  data-id="select-switch-hide-button"
32
39
  class="btn btn-outline"
33
- @click="onHideModal"
40
+ @click="emits('hide')"
34
41
  >
35
42
  {{ localization.common.cancel }}
36
43
  </button>
37
44
  <button
38
- data-id="select-submit-hide-button"
45
+ data-id="select-switch-submit-button"
39
46
  class="btn btn-primary"
40
47
  @click="onSelectSwitch"
41
48
  >
@@ -55,33 +62,22 @@ import type {
55
62
  } from '~/components/common/wizards/network/add/lib/models/interfaces'
56
63
  import { selectSwitchTableHeadFunc } from '~/components/common/wizards/network/add/lib/config/config'
57
64
 
58
- const props = withDefaults(
59
- defineProps<{
60
- show: boolean
61
- modalName: string
62
- data: UI_I_Switch[]
63
- title?: string
64
- width?: string
65
- height?: string
66
- withCollapse?: boolean
67
- }>(),
68
- {
69
- width: '576px',
70
- height: '420px',
71
- title: '--',
72
- withCollapse: undefined,
73
- }
74
- )
65
+ const props = defineProps<{
66
+ show: boolean
67
+ data: UI_I_Switch[]
68
+ isShowAlert: boolean
69
+ }>()
75
70
 
76
71
  const emits = defineEmits<{
77
72
  (event: 'hide'): void
73
+ (event: 'hide-alert'): void
74
+ (event: 'show-alert'): void
78
75
  (event: 'select-switch', switchId: string): void
79
76
  }>()
80
77
 
81
- // UI_I_Localization
82
78
  const localization = computed<UI_I_Localization>(() => useLocal())
83
79
 
84
- const selectedRowData = ref<UI_I_SelectedSwitch[]>()
80
+ const selectedRowData = ref<UI_I_SelectedSwitch[]>([])
85
81
 
86
82
  const headItems = selectSwitchTableHeadFunc(localization.value)
87
83
 
@@ -99,12 +95,6 @@ const bodyItems = computed<UI_I_BodyItems[][]>(() =>
99
95
  ])
100
96
  )
101
97
 
102
- const isShowErrorMessageAlert = ref<boolean>(false)
103
- const onHideErrorMessageAlert = (): void => {
104
- selectedRowData.value = []
105
- isShowErrorMessageAlert.value = false
106
- }
107
-
108
98
  const onSelectRow = (_index: number, item: UI_I_SelectedSwitch[]): void => {
109
99
  selectedRowData.value = item
110
100
  }
@@ -114,18 +104,14 @@ const onSelectSwitch = (): void => {
114
104
  selectedRowData.value &&
115
105
  selectedRowData.value[0] &&
116
106
  selectedRowData.value[0].id
107
+
117
108
  if (!selectedSwitchId) {
118
- isShowErrorMessageAlert.value = true
109
+ emits('show-alert')
119
110
  return
120
111
  }
121
- emits('select-switch', selectedSwitchId)
122
- onHideErrorMessageAlert()
123
- emits('hide')
124
- }
125
112
 
126
- const onHideModal = (): void => {
127
- onHideErrorMessageAlert()
128
- emits('hide')
113
+ emits('select-switch', selectedSwitchId)
114
+ selectedRowData.value = []
129
115
  }
130
116
  </script>
131
117
 
@@ -133,4 +119,14 @@ const onHideModal = (): void => {
133
119
  :deep(.table-wrap) {
134
120
  height: 300px;
135
121
  }
122
+
123
+ .with-alert {
124
+ :deep(.table-wrap) {
125
+ height: 254px;
126
+ }
127
+ }
128
+
129
+ .table-top-margin-container {
130
+ margin-top: 8px;
131
+ }
136
132
  </style>
@@ -1,11 +1,11 @@
1
- import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
5
1
  import type {
6
2
  UI_I_ValidationReturn,
7
3
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
4
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
5
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
6
+ import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
7
+ import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
  import { checkVlanId } from '~/components/common/wizards/network/add/validations/common'
10
10
 
11
11
  export const validateVlanIdConnectionSettingsLocal = (
@@ -1,12 +1,12 @@
1
+ import type {
2
+ UI_I_ValidationReturn,
3
+ UI_I_WizardStep,
4
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
1
5
  import type {
2
6
  UI_I_AdapterStatus,
3
7
  UI_I_Adapter,
4
8
  } from '~/components/common/diagramMain/lib/models/interfaces'
5
9
  import type { UI_I_Localization } from '~/lib/models/interfaces'
6
- import type {
7
- UI_I_ValidationReturn,
8
- UI_I_WizardStep,
9
- } from '~/components/atoms/wizard/lib/models/interfaces'
10
10
 
11
11
  export const checkAdaptersSync = (
12
12
  localization: UI_I_Localization,
@@ -1,11 +1,11 @@
1
- import type { UI_I_IpFourSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
5
2
  import type {
6
3
  UI_I_ValidationReturn,
7
4
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
5
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
6
+ import type { UI_I_IpFourSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
7
+ import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
  import { checkIfValidIP } from '~/components/common/wizards/network/add/validations/common'
10
10
 
11
11
  export const validateAddressIpFourSettingsLocal = (
@@ -1,11 +1,11 @@
1
- import type { UI_I_AddNetworkingEmits } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import type { UI_I_Localization } from '~/lib/models/interfaces'
3
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
4
2
  import type {
5
3
  UI_I_AsyncCheckReturn,
6
4
  UI_I_ValidationReturn,
7
5
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
6
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
7
+ import type { UI_I_AddNetworkingEmits } from '~/components/common/wizards/network/add/lib/models/interfaces'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
 
10
10
  const checkNetwork = async (
11
11
  label: string,
@@ -1,10 +1,10 @@
1
- // import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
2
- // import type { UI_I_Localization } from '~/lib/models/interfaces'
3
- // import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
4
1
  // import {
5
2
  // UI_I_ValidationReturn,
6
3
  // UI_I_WizardStep,
7
- // } from '~/components/atoms/wizard/lib/models/interfaces'
4
+ // } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
5
+ // import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
6
+ // import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
7
+ // import type { UI_I_Localization } from '~/lib/models/interfaces'
8
8
  // import {
9
9
  // UI_I_AdapterStatus,
10
10
  // UI_I_Adapter,
@@ -1,8 +1,8 @@
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
2
+ import type {UI_I_ValidationReturn, UI_I_WizardStep} from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
1
3
  import type { UI_I_PortProperties } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
4
  import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
5
  import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
5
- import type {UI_I_ValidationReturn, UI_I_WizardStep} from '~/components/atoms/wizard/lib/models/interfaces'
6
6
  import {
7
7
  checkVlanId,
8
8
  checkMtu,
@@ -1,11 +1,11 @@
1
- import type { UI_I_TargetDevice } from '~/components/common/wizards/network/add/lib/models/interfaces'
2
- import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
1
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
5
2
  import type {
6
3
  UI_I_ValidationReturn,
7
4
  UI_I_WizardStep,
8
- } from '~/components/atoms/wizard/lib/models/interfaces'
5
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
6
+ import type { UI_I_TargetDevice } from '~/components/common/wizards/network/add/lib/models/interfaces'
7
+ import { UI_E_ValidationFields } from '~/components/common/wizards/network/add/lib/models/enums'
8
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
9
9
  import { checkMtu } from '~/components/common/wizards/network/add/validations/common'
10
10
 
11
11
  export const validateMtuTargetDeviceLocal = (
@@ -18,7 +18,7 @@ export const validateMtuTargetDeviceLocal = (
18
18
  UI_E_ValidationFields.TARGET_DEVICE_MTU,
19
19
  data.selected === '3' && checkMtu(data.mtu || 0),
20
20
  localization.common.mtuInvalidMessage,
21
- localization.common.mtuInvalidMessage
21
+ ''
22
22
  )
23
23
  }
24
24
 
@@ -26,7 +26,8 @@ export const checkTargetDeviceSync = (
26
26
  localization: UI_I_Localization,
27
27
  data: UI_I_TargetDevice,
28
28
  wizard: Wizard,
29
- value: UI_I_WizardStep[]
29
+ value: UI_I_WizardStep[],
30
+ isNewView: boolean
30
31
  ): UI_I_ValidationReturn => {
31
32
  let stepHasError = false
32
33
 
@@ -36,7 +37,7 @@ export const checkTargetDeviceSync = (
36
37
  UI_E_ValidationFields.TARGET_DEVICE_NETWORK,
37
38
  {
38
39
  fieldMessage: localization.common.networkInvalidMessage,
39
- alertMessage: localization.common.networkInvalidMessage,
40
+ alertMessage: isNewView ? '' : localization.common.networkInvalidMessage,
40
41
  }
41
42
  )
42
43
  } else if (
@@ -55,7 +56,7 @@ export const checkTargetDeviceSync = (
55
56
  UI_E_ValidationFields.TARGET_DEVICE_STANDARD_SWITCH,
56
57
  {
57
58
  fieldMessage: localization.common.standardSwitchInvalidMessage,
58
- alertMessage: localization.common.standardSwitchInvalidMessage,
59
+ alertMessage: isNewView ? '' : localization.common.standardSwitchInvalidMessage,
59
60
  }
60
61
  )
61
62
  } else if (
@@ -74,7 +75,7 @@ export const checkTargetDeviceSync = (
74
75
  UI_E_ValidationFields.TARGET_DEVICE_SWITCH,
75
76
  {
76
77
  fieldMessage: localization.common.switchInvalidMessage,
77
- alertMessage: localization.common.switchInvalidMessage,
78
+ alertMessage: isNewView ? '' : localization.common.switchInvalidMessage,
78
79
  }
79
80
  )
80
81
  } else if (wizard.hasMessage(1, UI_E_ValidationFields.TARGET_DEVICE_SWITCH)) {
@@ -93,8 +93,8 @@
93
93
  import type {
94
94
  UI_I_WizardStep,
95
95
  UI_I_ValidationReturn,
96
- } from '~/components/atoms/wizard/lib/models/interfaces'
97
- import Wizard from '~/components/atoms/wizard/lib/utils/utils'
96
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
97
+ import Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
98
98
  import type { UI_I_Localization } from '~/lib/models/interfaces'
99
99
  import type { UI_T_Project } from '~/lib/models/types'
100
100
  import type {
@@ -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
  schedulingOptions: 0,
@@ -1,9 +1,9 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
1
  import type {
3
2
  UI_I_ValidationReturn,
4
3
  UI_I_WizardStep,
5
- } from '~/components/atoms/wizard/lib/models/interfaces'
6
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
4
+ } from '~/node_modules/bfg-uikit/components/ui/wizard/lib/models/interfaces'
5
+ import type Wizard from '~/node_modules/bfg-uikit/components/ui/wizard/lib/utils/utils'
6
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
7
7
  import type { UI_I_ComputeResourceFormLocal } from '~/components/common/wizards/vm/migrate/select/computeResource/lib/models/interfaces'
8
8
  import { dynamicSteps } from '~/components/common/wizards/vm/migrate/lib/config/steps'
9
9