bfg-common 1.4.581 → 1.4.583

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 (138) hide show
  1. package/assets/img/icons/icons-sprite-dark-1.svg +407 -407
  2. package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
  3. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-dark-4.svg +255 -255
  5. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  6. package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
  7. package/assets/img/icons/icons-sprite-light-1.svg +407 -407
  8. package/assets/img/icons/icons-sprite-light-2.svg +343 -343
  9. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  10. package/assets/img/icons/icons-sprite-light-4.svg +255 -255
  11. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  12. package/assets/img/icons/icons-sprite-light-6.svg +94 -94
  13. package/assets/scss/common/theme.scss +7 -1
  14. package/components/atoms/TheIcon3.vue +50 -50
  15. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  16. package/components/atoms/stack/StackBlock.vue +185 -185
  17. package/components/atoms/table/dataGrid/DataGrid.vue +1633 -1633
  18. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
  19. package/components/common/browse/BrowseNew.vue +237 -237
  20. package/components/common/browse/BrowseOld.vue +217 -217
  21. package/components/common/browse/blocks/contents/Files.vue +35 -35
  22. package/components/common/browse/blocks/contents/FilesOld.vue +70 -70
  23. package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +92 -92
  24. package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
  25. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  26. package/components/common/browse/lib/models/interfaces.ts +5 -5
  27. package/components/common/context/lib/models/interfaces.ts +30 -30
  28. package/components/common/context/recursion/Recursion.vue +86 -86
  29. package/components/common/context/recursion/RecursionNew.vue +199 -199
  30. package/components/common/context/recursion/RecursionOld.vue +213 -213
  31. package/components/common/diagramMain/Header.vue +211 -211
  32. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  33. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  34. package/components/common/diagramMain/lib/models/types.ts +21 -21
  35. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  36. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  37. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  38. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  39. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  40. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  41. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  42. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  43. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  44. package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +398 -398
  45. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  46. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  47. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  48. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  49. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  50. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  51. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  52. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +537 -537
  53. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  54. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  55. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  56. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  57. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  58. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  59. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  60. package/components/common/diagramMain/port/Ports.vue +47 -47
  61. package/components/common/layout/theHeader/helpMenu/About.vue +85 -85
  62. package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
  63. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +152 -152
  64. package/components/common/spiceConsole/Drawer.vue +370 -370
  65. package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
  66. package/components/common/split/vertical/Vertical.vue +160 -223
  67. package/components/common/split/vertical/VerticalNew.vue +123 -0
  68. package/components/common/split/vertical/VerticalOld.vue +108 -0
  69. package/components/common/vm/actions/add/Add.vue +617 -617
  70. package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
  71. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +267 -267
  72. package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +264 -264
  73. package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
  74. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +118 -118
  75. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
  76. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
  77. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
  78. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +55 -55
  79. package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +147 -147
  80. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +55 -55
  81. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
  82. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +74 -74
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
  88. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
  89. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
  90. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceNew.vue +85 -85
  91. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDeviceOld.vue +91 -91
  92. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +35 -35
  93. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +48 -48
  94. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
  95. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
  96. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
  97. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +30 -30
  98. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +46 -46
  99. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
  100. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
  101. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +27 -27
  102. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
  103. package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
  104. package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
  105. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
  106. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
  107. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
  108. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
  109. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
  110. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
  111. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
  112. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
  113. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
  114. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
  115. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
  116. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
  117. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
  118. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
  119. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +100 -100
  120. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
  121. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
  122. package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
  123. package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
  124. package/components/common/vm/actions/common/select/storage/new/New.vue +159 -159
  125. package/components/common/vm/actions/editSettings/EditSettings.vue +214 -214
  126. package/components/common/vm/actions/editSettings/EditSettingsOld.vue +182 -182
  127. package/components/common/vm/actions/editSettings/new/New.vue +176 -176
  128. package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
  129. package/components/common/wizards/network/add/lib/config/steps.ts +464 -464
  130. package/composables/productNameLocal.ts +30 -30
  131. package/package.json +1 -1
  132. package/plugins/date.ts +233 -233
  133. package/plugins/recursion.ts +311 -311
  134. package/public/spice-console/lib/images/bitmap.js +203 -203
  135. package/public/spice-console/network/spicechannel.js +383 -383
  136. package/store/main/mutations.ts +7 -7
  137. package/store/main/state.ts +7 -7
  138. package/store/tasks/mappers/recentTasks.ts +2 -2
@@ -1,175 +1,175 @@
1
- <template>
2
- <div class="wizard-content__container">
3
- <div class="wizard-content">
4
- <form id="teaming-failover">
5
- <section class="form-block">
6
- <template
7
- v-for="(item, key) in teamingAndFailoverTemplate"
8
- :key="item.key"
9
- >
10
- <div class="horizontal-flex-container">
11
- <span class="flex-property-label-group large">
12
- {{ localization.common[item.key] }}
13
- </span>
14
-
15
- <div class="flex-property-value-group overridable-dropdown">
16
- <div class="horizontal-flex-container no-margin">
17
- <div class="flex-property-value-group">
18
- <div class="horizontal-flex-container">
19
- <div
20
- v-if="!props.isSwitch"
21
- class="flex-property-label-group small checkbox-inline"
22
- >
23
- <input
24
- :id="`teaming-failover-input-${item.key}`"
25
- v-model="fieldsValues[item.key].checked"
26
- :data-id="`${item.testId}-teaming-failover-input`"
27
- type="checkbox"
28
- />
29
- <label
30
- :for="`teaming-failover-input-${item.key}`"
31
- class="normal-weight"
32
- >
33
- {{ localization.common.override }}
34
- </label>
35
- </div>
36
- <div class="flex-property-value-group">
37
- <div class="select">
38
- <select
39
- :id="`teaming-failover-select-${key}`"
40
- v-model="fieldsValues[item.key].selected"
41
- :data-id="`${item.testId}-teaming-failover-select`"
42
- :disabled="!fieldsValues[item.key].checked"
43
- name="selectName"
44
- >
45
- <template
46
- v-for="(option, index) in item.options"
47
- :key="index"
48
- >
49
- <option :value="option.value">
50
- {{ option.text }}
51
- </option>
52
- </template>
53
- </select>
54
- </div>
55
- </div>
56
- </div>
57
- </div>
58
- </div>
59
- </div>
60
- </div>
61
- </template>
62
- </section>
63
- <div class="form-block">
64
- <label> {{ localization.common.failoverOrder }} </label>
65
- </div>
66
- </form>
67
- <div v-if="!props.isSwitch" class="horizontal-flex-container">
68
- <div class="flex-property-label-group small checkbox-inline">
69
- <input
70
- id="failover-order"
71
- v-model="fieldsValues.failoverOrder.checked"
72
- data-id="failover-order-input"
73
- type="checkbox"
74
- />
75
- <label for="failover-order" class="normal-weight">
76
- {{ localization.common.override }}
77
- </label>
78
- </div>
79
- </div>
80
- <common-adapter-manager
81
- test-id="teaming-failover"
82
- :is-active="fieldsValues.failoverOrder.checked"
83
- :adapters="props.adapters"
84
- :initial-data="props.initialData"
85
- :adapter-status="props.adapterStatus"
86
- :is-dark-mode="props.isDarkMode"
87
- @change-adapter-status="onChangeAdapterStatus"
88
- />
89
- <div class="select-adapter-info">
90
- <span>
91
- {{ localization.common.selectActiveAndStandbyAdapters }}
92
- </span>
93
- </div>
94
- </div>
95
- </div>
96
- </template>
97
-
98
- <script setup lang="ts">
99
- import type {
100
- UI_I_Localization,
101
- UI_I_ItemsWithTotalCounts,
102
- } from '~/lib/models/interfaces'
103
- import type {
104
- UI_I_TeamingFailoverFields,
105
- UI_I_SwitchAdapterItem,
106
- UI_I_ModalsInitialData,
107
- UI_I_TeamingAndFailoverTemplate,
108
- UI_I_AdapterStatus,
109
- } from '~/components/common/diagramMain/lib/models/interfaces'
110
- import {
111
- teamingFailoverFieldsInitialFunc,
112
- teamingAndFailoverTemplateMakerFunc,
113
- } from '~/components/common/diagramMain/modals/lib/config'
114
-
115
- // Props from up
116
- const props = withDefaults(
117
- defineProps<{
118
- initialData?: UI_I_ModalsInitialData
119
- adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
120
- adapterStatus: UI_I_AdapterStatus
121
- isSwitch: boolean
122
- isDarkMode?: boolean
123
- }>(),
124
- {
125
- initialData: () => ({}),
126
- isSwitch: false,
127
- isDarkMode: false,
128
- }
129
- )
130
-
131
- // UI_I_Localization
132
- const localization = computed<UI_I_Localization>(() => useLocal())
133
-
134
- // Making fields template
135
- const teamingAndFailoverTemplate = computed<UI_I_TeamingAndFailoverTemplate[]>(
136
- () => teamingAndFailoverTemplateMakerFunc(localization.value)
137
- )
138
- // Temporary data for this component
139
- const fieldsValues = ref<UI_I_TeamingFailoverFields>(
140
- teamingFailoverFieldsInitialFunc(props.isSwitch, props.initialData)
141
- )
142
-
143
- const emits = defineEmits<{
144
- (
145
- event: 'change-edit-teaming-failover-data',
146
- teamingFailoverData: UI_I_TeamingFailoverFields
147
- ): void
148
- (event: 'change-adapter-status', adapterStatus: UI_I_AdapterStatus): void
149
- }>()
150
-
151
- const onChangeData = (data: UI_I_TeamingFailoverFields) =>
152
- emits('change-edit-teaming-failover-data', data)
153
-
154
- const onChangeAdapterStatus = (adapterStatus: UI_I_AdapterStatus) =>
155
- emits('change-adapter-status', adapterStatus)
156
-
157
- watch(
158
- fieldsValues,
159
- (newFieldsValues: UI_I_TeamingFailoverFields) => {
160
- onChangeData(newFieldsValues)
161
- },
162
- { deep: true, immediate: true }
163
- )
164
-
165
- onMounted(() => {
166
- onChangeData(fieldsValues.value)
167
- })
168
- </script>
169
- <style lang="scss" scoped>
170
- :deep(.diagram-action__edit) {
171
- .table-fixed-height {
172
- max-height: 227px;
173
- }
174
- }
175
- </style>
1
+ <template>
2
+ <div class="wizard-content__container">
3
+ <div class="wizard-content">
4
+ <form id="teaming-failover">
5
+ <section class="form-block">
6
+ <template
7
+ v-for="(item, key) in teamingAndFailoverTemplate"
8
+ :key="item.key"
9
+ >
10
+ <div class="horizontal-flex-container">
11
+ <span class="flex-property-label-group large">
12
+ {{ localization.common[item.key] }}
13
+ </span>
14
+
15
+ <div class="flex-property-value-group overridable-dropdown">
16
+ <div class="horizontal-flex-container no-margin">
17
+ <div class="flex-property-value-group">
18
+ <div class="horizontal-flex-container">
19
+ <div
20
+ v-if="!props.isSwitch"
21
+ class="flex-property-label-group small checkbox-inline"
22
+ >
23
+ <input
24
+ :id="`teaming-failover-input-${item.key}`"
25
+ v-model="fieldsValues[item.key].checked"
26
+ :data-id="`${item.testId}-teaming-failover-input`"
27
+ type="checkbox"
28
+ />
29
+ <label
30
+ :for="`teaming-failover-input-${item.key}`"
31
+ class="normal-weight"
32
+ >
33
+ {{ localization.common.override }}
34
+ </label>
35
+ </div>
36
+ <div class="flex-property-value-group">
37
+ <div class="select">
38
+ <select
39
+ :id="`teaming-failover-select-${key}`"
40
+ v-model="fieldsValues[item.key].selected"
41
+ :data-id="`${item.testId}-teaming-failover-select`"
42
+ :disabled="!fieldsValues[item.key].checked"
43
+ name="selectName"
44
+ >
45
+ <template
46
+ v-for="(option, index) in item.options"
47
+ :key="index"
48
+ >
49
+ <option :value="option.value">
50
+ {{ option.text }}
51
+ </option>
52
+ </template>
53
+ </select>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </template>
62
+ </section>
63
+ <div class="form-block">
64
+ <label> {{ localization.common.failoverOrder }} </label>
65
+ </div>
66
+ </form>
67
+ <div v-if="!props.isSwitch" class="horizontal-flex-container">
68
+ <div class="flex-property-label-group small checkbox-inline">
69
+ <input
70
+ id="failover-order"
71
+ v-model="fieldsValues.failoverOrder.checked"
72
+ data-id="failover-order-input"
73
+ type="checkbox"
74
+ />
75
+ <label for="failover-order" class="normal-weight">
76
+ {{ localization.common.override }}
77
+ </label>
78
+ </div>
79
+ </div>
80
+ <common-adapter-manager
81
+ test-id="teaming-failover"
82
+ :is-active="fieldsValues.failoverOrder.checked"
83
+ :adapters="props.adapters"
84
+ :initial-data="props.initialData"
85
+ :adapter-status="props.adapterStatus"
86
+ :is-dark-mode="props.isDarkMode"
87
+ @change-adapter-status="onChangeAdapterStatus"
88
+ />
89
+ <div class="select-adapter-info">
90
+ <span>
91
+ {{ localization.common.selectActiveAndStandbyAdapters }}
92
+ </span>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </template>
97
+
98
+ <script setup lang="ts">
99
+ import type {
100
+ UI_I_Localization,
101
+ UI_I_ItemsWithTotalCounts,
102
+ } from '~/lib/models/interfaces'
103
+ import type {
104
+ UI_I_TeamingFailoverFields,
105
+ UI_I_SwitchAdapterItem,
106
+ UI_I_ModalsInitialData,
107
+ UI_I_TeamingAndFailoverTemplate,
108
+ UI_I_AdapterStatus,
109
+ } from '~/components/common/diagramMain/lib/models/interfaces'
110
+ import {
111
+ teamingFailoverFieldsInitialFunc,
112
+ teamingAndFailoverTemplateMakerFunc,
113
+ } from '~/components/common/diagramMain/modals/lib/config'
114
+
115
+ // Props from up
116
+ const props = withDefaults(
117
+ defineProps<{
118
+ initialData?: UI_I_ModalsInitialData
119
+ adapters: UI_I_ItemsWithTotalCounts<UI_I_SwitchAdapterItem>
120
+ adapterStatus: UI_I_AdapterStatus
121
+ isSwitch: boolean
122
+ isDarkMode?: boolean
123
+ }>(),
124
+ {
125
+ initialData: () => ({}),
126
+ isSwitch: false,
127
+ isDarkMode: false,
128
+ }
129
+ )
130
+
131
+ // UI_I_Localization
132
+ const localization = computed<UI_I_Localization>(() => useLocal())
133
+
134
+ // Making fields template
135
+ const teamingAndFailoverTemplate = computed<UI_I_TeamingAndFailoverTemplate[]>(
136
+ () => teamingAndFailoverTemplateMakerFunc(localization.value)
137
+ )
138
+ // Temporary data for this component
139
+ const fieldsValues = ref<UI_I_TeamingFailoverFields>(
140
+ teamingFailoverFieldsInitialFunc(props.isSwitch, props.initialData)
141
+ )
142
+
143
+ const emits = defineEmits<{
144
+ (
145
+ event: 'change-edit-teaming-failover-data',
146
+ teamingFailoverData: UI_I_TeamingFailoverFields
147
+ ): void
148
+ (event: 'change-adapter-status', adapterStatus: UI_I_AdapterStatus): void
149
+ }>()
150
+
151
+ const onChangeData = (data: UI_I_TeamingFailoverFields) =>
152
+ emits('change-edit-teaming-failover-data', data)
153
+
154
+ const onChangeAdapterStatus = (adapterStatus: UI_I_AdapterStatus) =>
155
+ emits('change-adapter-status', adapterStatus)
156
+
157
+ watch(
158
+ fieldsValues,
159
+ (newFieldsValues: UI_I_TeamingFailoverFields) => {
160
+ onChangeData(newFieldsValues)
161
+ },
162
+ { deep: true, immediate: true }
163
+ )
164
+
165
+ onMounted(() => {
166
+ onChangeData(fieldsValues.value)
167
+ })
168
+ </script>
169
+ <style lang="scss" scoped>
170
+ :deep(.diagram-action__edit) {
171
+ .table-fixed-height {
172
+ max-height: 227px;
173
+ }
174
+ }
175
+ </style>