bfg-common 1.4.663 → 1.4.664

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 (137) hide show
  1. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  2. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  3. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  5. package/assets/localization/local_kk.json +2 -2
  6. package/components/atoms/TheIcon3.vue +50 -50
  7. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  8. package/components/atoms/stack/StackBlock.vue +185 -185
  9. package/components/atoms/table/dataGrid/DataGrid.vue +1696 -1696
  10. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
  11. package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +91 -91
  12. package/components/common/browse/BrowseNew.vue +237 -237
  13. package/components/common/browse/BrowseOld.vue +217 -217
  14. package/components/common/browse/blocks/contents/Files.vue +37 -37
  15. package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
  16. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
  17. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  18. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  19. package/components/common/browse/lib/models/interfaces.ts +5 -5
  20. package/components/common/context/lib/models/interfaces.ts +30 -30
  21. package/components/common/context/recursion/Recursion.vue +86 -86
  22. package/components/common/context/recursion/RecursionNew.vue +199 -199
  23. package/components/common/context/recursion/RecursionOld.vue +213 -213
  24. package/components/common/diagramMain/Header.vue +211 -211
  25. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  26. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  27. package/components/common/diagramMain/lib/models/types.ts +21 -21
  28. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  29. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  30. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  31. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  32. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  33. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  34. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  35. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  36. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  37. package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
  38. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  39. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  40. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  41. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  42. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  43. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  44. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  45. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
  46. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  47. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  48. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  49. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  50. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  51. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  52. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  53. package/components/common/diagramMain/port/Ports.vue +47 -47
  54. package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
  55. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +105 -105
  56. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
  57. package/components/common/modals/confirmByInput/ConfirmByInput.vue +206 -206
  58. package/components/common/modals/unsavedChanges/UnsavedChanges.vue +56 -56
  59. package/components/common/select/button/ButtonDropdown.vue +108 -108
  60. package/components/common/spiceConsole/Drawer.vue +370 -370
  61. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  62. package/components/common/split/vertical/Vertical.vue +160 -160
  63. package/components/common/vm/actions/add/Add.vue +617 -617
  64. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  65. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +267 -267
  66. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +269 -269
  67. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
  68. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
  69. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
  70. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
  71. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  72. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +338 -338
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +281 -281
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  91. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  92. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  93. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
  94. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
  95. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  96. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  97. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +30 -30
  98. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +107 -107
  99. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +115 -115
  100. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  101. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  102. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  103. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  104. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  105. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  106. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  107. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  108. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  109. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  110. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  111. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  112. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  113. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  114. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  115. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  116. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  117. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
  118. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +102 -102
  119. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +94 -94
  120. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
  121. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  122. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  123. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  124. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  125. package/components/common/vm/actions/editSettings/EditSettings.vue +232 -232
  126. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +183 -183
  127. package/components/common/vm/actions/editSettings/new/New.vue +177 -177
  128. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  129. package/composables/productNameLocal.ts +30 -30
  130. package/package.json +1 -1
  131. package/plugins/date.ts +233 -233
  132. package/plugins/recursion.ts +311 -311
  133. package/public/spice-console/lib/images/bitmap.js +203 -203
  134. package/public/spice-console/network/spicechannel.js +383 -383
  135. package/store/main/mutations.ts +7 -7
  136. package/store/main/state.ts +7 -7
  137. package/store/tasks/mappers/recentTasks.ts +64 -64
@@ -1,114 +1,114 @@
1
- import type { UI_I_MigrationVmkernelAdapterReadyComplete } from '~/components/common/diagramMain/lib/models/interfaces'
2
- import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
- import type { UI_I_Localization } from '~/lib/models/interfaces'
4
- import { UI_E_MigrationValidationFields } from '~/components/common/diagramMain/lib/models/enums'
5
- import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
6
-
7
- export const stepsFunc = (
8
- localization: UI_I_Localization
9
- ): UI_I_WizardStep[] => [
10
- {
11
- id: 0,
12
- title: localization.common.selectVmKernelAdapter,
13
- subTitle: localization.common.migrateVmKernelNetworkAdapter1Placeholder,
14
- status: UI_E_WIZARD_STATUS.SELECTED,
15
- fields: {
16
- [UI_E_MigrationValidationFields.SELECT_ADAPTER_VM]: {
17
- field: '',
18
- alert: '',
19
- },
20
- },
21
- isValid: true,
22
- },
23
- {
24
- id: 1,
25
- title: localization.common.configureSettings,
26
- subTitle: localization.common.migrateVmKernelNetworkAdapter2Placeholder,
27
- status: UI_E_WIZARD_STATUS.INACTIVE,
28
- fields: {
29
- [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_NETWORK]: {
30
- field: '',
31
- alert: '',
32
- },
33
- [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_VLAN]: {
34
- field: '',
35
- alert: '',
36
- },
37
- },
38
- isValid: true,
39
- },
40
- {
41
- id: 2,
42
- title: localization.common.readyComplete,
43
- subTitle: localization.common.migrateVmKernelNetworkAdapter3Placeholder,
44
- status: UI_E_WIZARD_STATUS.INACTIVE,
45
- fields: {},
46
- isValid: true,
47
- },
48
- ]
49
-
50
- export const stepsSchemeInitial: number[][] = [[0, 1, 2]]
51
-
52
- export const createMigrateVmkernelAdapterSchemeReadyCompleteFunc = (
53
- localization: UI_I_Localization,
54
- data: UI_I_MigrationVmkernelAdapterReadyComplete
55
- ) => [
56
- {
57
- id: 0,
58
- type: 0,
59
- rows: [
60
- {
61
- name: localization.common.vmAdapter,
62
- value: data.vm,
63
- },
64
- ],
65
- },
66
- {
67
- title: localization.common.currentSettings,
68
- id: 1,
69
- type: 0,
70
- rows: [
71
- {
72
- name: localization.common.migrateFromSwitch,
73
- value: data.currentSettings.switch,
74
- },
75
- {
76
- name: localization.common.networkLabel,
77
- value: data.currentSettings.network,
78
- },
79
- ],
80
- },
81
- {
82
- title: localization.common.newSettings,
83
- id: 2,
84
- type: 0,
85
- rows: [
86
- {
87
- name: localization.common.migrateToSwitch,
88
- value: data.newSettings.switch,
89
- },
90
- {
91
- name: localization.common.networkLabel,
92
- value: data.newSettings.network,
93
- },
94
- {
95
- name: localization.common.vlanId,
96
- value: data.vlanId,
97
- },
98
- ],
99
- },
100
- ]
101
-
102
- export const readyCompleteInitial: UI_I_MigrationVmkernelAdapterReadyComplete =
103
- {
104
- vm: '-',
105
- currentSettings: {
106
- switch: '-',
107
- network: '-',
108
- },
109
- newSettings: {
110
- switch: '-',
111
- network: '-',
112
- },
113
- vlanId: '-',
114
- }
1
+ import type { UI_I_MigrationVmkernelAdapterReadyComplete } from '~/components/common/diagramMain/lib/models/interfaces'
2
+ import type { UI_I_WizardStep } from '~/components/atoms/wizard/lib/models/interfaces'
3
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
4
+ import { UI_E_MigrationValidationFields } from '~/components/common/diagramMain/lib/models/enums'
5
+ import { UI_E_WIZARD_STATUS } from '~/components/atoms/wizard/lib/models/enums'
6
+
7
+ export const stepsFunc = (
8
+ localization: UI_I_Localization
9
+ ): UI_I_WizardStep[] => [
10
+ {
11
+ id: 0,
12
+ title: localization.common.selectVmKernelAdapter,
13
+ subTitle: localization.common.migrateVmKernelNetworkAdapter1Placeholder,
14
+ status: UI_E_WIZARD_STATUS.SELECTED,
15
+ fields: {
16
+ [UI_E_MigrationValidationFields.SELECT_ADAPTER_VM]: {
17
+ field: '',
18
+ alert: '',
19
+ },
20
+ },
21
+ isValid: true,
22
+ },
23
+ {
24
+ id: 1,
25
+ title: localization.common.configureSettings,
26
+ subTitle: localization.common.migrateVmKernelNetworkAdapter2Placeholder,
27
+ status: UI_E_WIZARD_STATUS.INACTIVE,
28
+ fields: {
29
+ [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_NETWORK]: {
30
+ field: '',
31
+ alert: '',
32
+ },
33
+ [UI_E_MigrationValidationFields.CONNECTION_SETTINGS_VLAN]: {
34
+ field: '',
35
+ alert: '',
36
+ },
37
+ },
38
+ isValid: true,
39
+ },
40
+ {
41
+ id: 2,
42
+ title: localization.common.readyComplete,
43
+ subTitle: localization.common.migrateVmKernelNetworkAdapter3Placeholder,
44
+ status: UI_E_WIZARD_STATUS.INACTIVE,
45
+ fields: {},
46
+ isValid: true,
47
+ },
48
+ ]
49
+
50
+ export const stepsSchemeInitial: number[][] = [[0, 1, 2]]
51
+
52
+ export const createMigrateVmkernelAdapterSchemeReadyCompleteFunc = (
53
+ localization: UI_I_Localization,
54
+ data: UI_I_MigrationVmkernelAdapterReadyComplete
55
+ ) => [
56
+ {
57
+ id: 0,
58
+ type: 0,
59
+ rows: [
60
+ {
61
+ name: localization.common.vmAdapter,
62
+ value: data.vm,
63
+ },
64
+ ],
65
+ },
66
+ {
67
+ title: localization.common.currentSettings,
68
+ id: 1,
69
+ type: 0,
70
+ rows: [
71
+ {
72
+ name: localization.common.migrateFromSwitch,
73
+ value: data.currentSettings.switch,
74
+ },
75
+ {
76
+ name: localization.common.networkLabel,
77
+ value: data.currentSettings.network,
78
+ },
79
+ ],
80
+ },
81
+ {
82
+ title: localization.common.newSettings,
83
+ id: 2,
84
+ type: 0,
85
+ rows: [
86
+ {
87
+ name: localization.common.migrateToSwitch,
88
+ value: data.newSettings.switch,
89
+ },
90
+ {
91
+ name: localization.common.networkLabel,
92
+ value: data.newSettings.network,
93
+ },
94
+ {
95
+ name: localization.common.vlanId,
96
+ value: data.vlanId,
97
+ },
98
+ ],
99
+ },
100
+ ]
101
+
102
+ export const readyCompleteInitial: UI_I_MigrationVmkernelAdapterReadyComplete =
103
+ {
104
+ vm: '-',
105
+ currentSettings: {
106
+ switch: '-',
107
+ network: '-',
108
+ },
109
+ newSettings: {
110
+ switch: '-',
111
+ network: '-',
112
+ },
113
+ vlanId: '-',
114
+ }
@@ -1,169 +1,169 @@
1
- <template>
2
- <div class="wizard-content-container add-networking-step">
3
- <div class="wizard-content wizard-content-port">
4
- <atoms-alert
5
- v-if="props.alertMessages.length"
6
- status="alert-danger"
7
- :items="props.alertMessages"
8
- test-id="connection-settings-alert"
9
- @remove="onHideAlert"
10
- />
11
- <form>
12
- <div class="horizontal-flex-container">
13
- <label class="property-label-group" for="network-label">
14
- {{ localization.common.networkLabel }}
15
- </label>
16
- <div class="margin-left-property-value-group">
17
- <div class="property-value-group">
18
- <fieldset>
19
- <atoms-tooltip-error
20
- :has-error="!!props.messagesFields.name.field"
21
- >
22
- <template #elem>
23
- <input
24
- id="network-label"
25
- v-model="fields.networkLabel"
26
- name="network-label"
27
- data-id="network-label-input"
28
- type="text"
29
- :class="[
30
- 'tooltip-field port-properties-network-label',
31
- {
32
- 'danger-not-valid': props.messagesFields.name.field,
33
- },
34
- ]"
35
- @click.stop
36
- />
37
- </template>
38
- <template #content>
39
- {{ props.messagesFields.name.field }}
40
- </template>
41
- </atoms-tooltip-error>
42
- </fieldset>
43
- </div>
44
- </div>
45
- </div>
46
-
47
- <div class="horizontal-flex-container port-properties-padding">
48
- <label class="property-label-group">
49
- {{ localization.common.vlanId }}
50
- </label>
51
- <div class="margin-left-property-value-group">
52
- <div class="property-value-group">
53
- <fieldset>
54
- <div class="flex-align-center">
55
- <atoms-combobox
56
- v-model.trim="fields.vlanId"
57
- :items="vlanIdSelectData"
58
- :class="{
59
- 'danger-not-valid': props.messagesFields.vlan.field,
60
- }"
61
- test-id="vlan-combobox"
62
- @click.stop
63
- />
64
- <div
65
- v-show="props.messagesFields.vlan.field"
66
- class="flex-align-center"
67
- >
68
- <div class="tooltip">
69
- <atoms-the-icon
70
- width="24px"
71
- height="24px"
72
- class="is-error tooltip-trigger"
73
- name="info"
74
- />
75
- <div class="tooltip-top-left tooltip-content error">
76
- {{ props.messagesFields.vlan.field }}
77
- </div>
78
- </div>
79
- </div>
80
- </div>
81
- </fieldset>
82
- </div>
83
- </div>
84
- </div>
85
- </form>
86
- </div>
87
- </div>
88
- </template>
89
-
90
- <script setup lang="ts">
91
- import type {
92
- UI_I_ArbitraryObject,
93
- UI_I_Localization,
94
- } from '~/lib/models/interfaces'
95
- import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
96
- import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
97
- import { vlanIdSelectData } from '~/components/common/wizards/network/add/lib/config/config'
98
- import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
99
- import {
100
- validateNetworkConnectionSettingsLocal,
101
- validateVlanIdConnectionSettingsLocal,
102
- } from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations'
103
-
104
- const props = defineProps<{
105
- connectionSettings: UI_I_ConnectionSettings
106
- alertMessages: string[]
107
- messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
108
- wizard: Wizard
109
- }>()
110
-
111
- const localization = computed<UI_I_Localization>(() => useLocal())
112
-
113
- const emits = defineEmits<{
114
- (
115
- event: 'change-connection-settings',
116
- connectionSettings: UI_I_ConnectionSettings
117
- ): void
118
- (event: 'hide-alert', stepId: 1): void
119
- }>()
120
-
121
- const fields = ref<UI_I_ConnectionSettings>(
122
- useDeepCopy(props.connectionSettings)
123
- )
124
-
125
- let oldFields = useDeepCopy(fields.value)
126
-
127
- watch(
128
- fields,
129
- (newFields: UI_I_ConnectionSettings) => {
130
- oldFields.vlanId !== newFields.vlanId &&
131
- validateVlanIdConnectionSettingsLocal(
132
- localization.value,
133
- newFields,
134
- props.wizard
135
- )
136
-
137
- oldFields.networkLabel !== newFields.networkLabel &&
138
- validateNetworkConnectionSettingsLocal(
139
- localization.value,
140
- newFields,
141
- props.wizard
142
- )
143
-
144
- oldFields = useDeepCopy(fields.value)
145
-
146
- emits('change-connection-settings', newFields)
147
- },
148
- { deep: true, immediate: true }
149
- )
150
-
151
- const onHideAlert = (): void => {
152
- emits('hide-alert', 1)
153
- }
154
- </script>
155
-
156
- <style scoped lang="scss">
157
- .wizard-content-container {
158
- display: flex;
159
- flex-direction: column;
160
- align-items: stretch;
161
- flex: 1 1 100%;
162
- box-sizing: border-box;
163
- padding: 16px 15px 10px 10px;
164
- overflow-y: auto;
165
- color: #333;
166
- order: 2;
167
- width: 100%;
168
- }
169
- </style>
1
+ <template>
2
+ <div class="wizard-content-container add-networking-step">
3
+ <div class="wizard-content wizard-content-port">
4
+ <atoms-alert
5
+ v-if="props.alertMessages.length"
6
+ status="alert-danger"
7
+ :items="props.alertMessages"
8
+ test-id="connection-settings-alert"
9
+ @remove="onHideAlert"
10
+ />
11
+ <form>
12
+ <div class="horizontal-flex-container">
13
+ <label class="property-label-group" for="network-label">
14
+ {{ localization.common.networkLabel }}
15
+ </label>
16
+ <div class="margin-left-property-value-group">
17
+ <div class="property-value-group">
18
+ <fieldset>
19
+ <atoms-tooltip-error
20
+ :has-error="!!props.messagesFields.name.field"
21
+ >
22
+ <template #elem>
23
+ <input
24
+ id="network-label"
25
+ v-model="fields.networkLabel"
26
+ name="network-label"
27
+ data-id="network-label-input"
28
+ type="text"
29
+ :class="[
30
+ 'tooltip-field port-properties-network-label',
31
+ {
32
+ 'danger-not-valid': props.messagesFields.name.field,
33
+ },
34
+ ]"
35
+ @click.stop
36
+ />
37
+ </template>
38
+ <template #content>
39
+ {{ props.messagesFields.name.field }}
40
+ </template>
41
+ </atoms-tooltip-error>
42
+ </fieldset>
43
+ </div>
44
+ </div>
45
+ </div>
46
+
47
+ <div class="horizontal-flex-container port-properties-padding">
48
+ <label class="property-label-group">
49
+ {{ localization.common.vlanId }}
50
+ </label>
51
+ <div class="margin-left-property-value-group">
52
+ <div class="property-value-group">
53
+ <fieldset>
54
+ <div class="flex-align-center">
55
+ <atoms-combobox
56
+ v-model.trim="fields.vlanId"
57
+ :items="vlanIdSelectData"
58
+ :class="{
59
+ 'danger-not-valid': props.messagesFields.vlan.field,
60
+ }"
61
+ test-id="vlan-combobox"
62
+ @click.stop
63
+ />
64
+ <div
65
+ v-show="props.messagesFields.vlan.field"
66
+ class="flex-align-center"
67
+ >
68
+ <div class="tooltip">
69
+ <atoms-the-icon
70
+ width="24px"
71
+ height="24px"
72
+ class="is-error tooltip-trigger"
73
+ name="info"
74
+ />
75
+ <div class="tooltip-top-left tooltip-content error">
76
+ {{ props.messagesFields.vlan.field }}
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ </fieldset>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </form>
86
+ </div>
87
+ </div>
88
+ </template>
89
+
90
+ <script setup lang="ts">
91
+ import type {
92
+ UI_I_ArbitraryObject,
93
+ UI_I_Localization,
94
+ } from '~/lib/models/interfaces'
95
+ import type { UI_I_ConnectionSettings } from '~/components/common/wizards/network/add/lib/models/interfaces'
96
+ import type { UI_I_ErrorFields } from '~/components/atoms/wizard/lib/models/interfaces'
97
+ import { vlanIdSelectData } from '~/components/common/wizards/network/add/lib/config/config'
98
+ import type Wizard from '~/components/atoms/wizard/lib/utils/utils'
99
+ import {
100
+ validateNetworkConnectionSettingsLocal,
101
+ validateVlanIdConnectionSettingsLocal,
102
+ } from '~/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations'
103
+
104
+ const props = defineProps<{
105
+ connectionSettings: UI_I_ConnectionSettings
106
+ alertMessages: string[]
107
+ messagesFields: UI_I_ArbitraryObject<UI_I_ErrorFields>
108
+ wizard: Wizard
109
+ }>()
110
+
111
+ const localization = computed<UI_I_Localization>(() => useLocal())
112
+
113
+ const emits = defineEmits<{
114
+ (
115
+ event: 'change-connection-settings',
116
+ connectionSettings: UI_I_ConnectionSettings
117
+ ): void
118
+ (event: 'hide-alert', stepId: 1): void
119
+ }>()
120
+
121
+ const fields = ref<UI_I_ConnectionSettings>(
122
+ useDeepCopy(props.connectionSettings)
123
+ )
124
+
125
+ let oldFields = useDeepCopy(fields.value)
126
+
127
+ watch(
128
+ fields,
129
+ (newFields: UI_I_ConnectionSettings) => {
130
+ oldFields.vlanId !== newFields.vlanId &&
131
+ validateVlanIdConnectionSettingsLocal(
132
+ localization.value,
133
+ newFields,
134
+ props.wizard
135
+ )
136
+
137
+ oldFields.networkLabel !== newFields.networkLabel &&
138
+ validateNetworkConnectionSettingsLocal(
139
+ localization.value,
140
+ newFields,
141
+ props.wizard
142
+ )
143
+
144
+ oldFields = useDeepCopy(fields.value)
145
+
146
+ emits('change-connection-settings', newFields)
147
+ },
148
+ { deep: true, immediate: true }
149
+ )
150
+
151
+ const onHideAlert = (): void => {
152
+ emits('hide-alert', 1)
153
+ }
154
+ </script>
155
+
156
+ <style scoped lang="scss">
157
+ .wizard-content-container {
158
+ display: flex;
159
+ flex-direction: column;
160
+ align-items: stretch;
161
+ flex: 1 1 100%;
162
+ box-sizing: border-box;
163
+ padding: 16px 15px 10px 10px;
164
+ overflow-y: auto;
165
+ color: #333;
166
+ order: 2;
167
+ width: 100%;
168
+ }
169
+ </style>