bfg-common 1.6.76 → 1.6.77

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 (167) hide show
  1. package/assets/localization/local_be.json +4213 -4474
  2. package/assets/localization/local_en.json +4217 -4479
  3. package/assets/localization/local_hy.json +4217 -4478
  4. package/assets/localization/local_kk.json +4216 -4477
  5. package/assets/localization/local_ru.json +4216 -4477
  6. package/assets/localization/local_zh.json +4214 -4475
  7. package/assets/scss/common/global.scss +0 -11
  8. package/assets/scss/common/normalize.scss +0 -3
  9. package/assets/scss/common/theme.scss +2 -2
  10. package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -170
  11. package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -10
  12. package/components/atoms/stack/StackBlock.vue +1 -1
  13. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
  14. package/components/atoms/tooltip/TooltipError.vue +0 -3
  15. package/components/common/adapterManager/AdapterManagerNew.vue +0 -86
  16. package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
  17. package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +1 -0
  18. package/components/common/adapterManager/ui/actions/bar/Bar.vue +0 -2
  19. package/components/common/adapterManager/ui/actions/bar/BarNew.vue +2 -3
  20. package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +0 -1
  21. package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
  22. package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
  23. package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
  24. package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
  25. package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
  26. package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
  27. package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
  28. package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
  29. package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
  30. package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
  31. package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
  32. package/components/common/diagramMain/Diagram.vue +85 -169
  33. package/components/common/diagramMain/DiagramMain.vue +10 -40
  34. package/components/common/diagramMain/{header/HeaderOld.vue → Header.vue} +67 -78
  35. package/components/common/diagramMain/modals/Modals.vue +0 -4
  36. package/components/common/diagramMain/modals/editSettings/{confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue → ConfirmTeamingSettingsModal.vue} +5 -2
  37. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +102 -104
  38. package/components/common/diagramMain/modals/editSettings/{modal/EditSettingsModalOld.vue → EditSettingsModal.vue} +51 -12
  39. package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +0 -6
  40. package/components/common/diagramMain/modals/editSettings/tabs/{networkProperties/NetworkPropertiesOld.vue → NetworkProperties.vue} +113 -12
  41. package/components/common/diagramMain/modals/editSettings/tabs/{security/SecurityOld.vue → Security.vue} +48 -25
  42. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +164 -0
  43. package/components/common/diagramMain/modals/editSettings/tabs/{teamingFailover/TeamingFailoverOld.vue → TeamingFailover.vue} +48 -11
  44. package/components/common/diagramMain/modals/editSettings/tabs/{trafficShaping/TrafficShapingOld.vue → TrafficShaping.vue} +134 -12
  45. package/components/common/diagramMain/modals/editSettings/tabs/port/{ipvFourSettings/IpvFourSettingsOld.vue → IpvFourSettings.vue} +152 -11
  46. package/components/common/diagramMain/modals/editSettings/tabs/port/{portProperties/PortPropertiesOld.vue → PortProperties.vue} +103 -12
  47. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +2 -43
  48. package/components/common/diagramMain/modals/lib/config/index.ts +1 -2
  49. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
  50. package/components/common/diagramMain/modals/lib/utils/index.ts +4 -34
  51. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
  52. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
  53. package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
  54. package/components/common/layout/theHeader/modals/reconnect/New.vue +30 -38
  55. package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
  56. package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
  57. package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
  58. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
  59. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
  60. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
  61. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
  62. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
  63. package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
  64. package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
  65. package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
  66. package/components/common/modals/Rename.vue +1 -3
  67. package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
  68. package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
  69. package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
  70. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +253 -184
  71. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
  72. package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +0 -9
  73. package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
  74. package/components/common/pages/tasks/Tasks.vue +1 -4
  75. package/components/common/pages/tasks/table/Table.vue +23 -25
  76. package/components/common/readyToComplete/New.vue +0 -1
  77. package/components/common/split/vertical/New.vue +8 -42
  78. package/components/common/split/vertical/Old.vue +2 -31
  79. package/components/common/split/vertical/Vertical.vue +0 -4
  80. package/components/common/tools/Actions.vue +3 -7
  81. package/components/common/tools/lib/models/interfaces.ts +0 -1
  82. package/components/common/vm/actions/add/New.vue +6 -21
  83. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -14
  84. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +0 -5
  85. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +0 -1
  86. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
  87. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
  88. package/components/common/vm/actions/common/select/options/New.vue +12 -14
  89. package/components/common/vm/actions/common/select/options/Old.vue +15 -16
  90. package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
  91. package/components/common/vm/actions/confirm/Confirm.vue +0 -3
  92. package/components/common/vm/actions/rename/Old.vue +0 -1
  93. package/components/common/vm/snapshots/DetailView.vue +6 -6
  94. package/components/common/wizards/datastore/add/New.vue +0 -6
  95. package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
  96. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
  97. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
  98. package/components/common/wizards/network/add/Add.vue +2 -13
  99. package/components/common/wizards/network/add/AddNew.vue +26 -22
  100. package/components/common/wizards/network/add/lib/config/initialData.ts +4 -6
  101. package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
  102. package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
  103. package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
  104. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +1 -5
  105. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
  106. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +0 -3
  107. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
  108. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +2 -6
  109. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
  110. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -4
  111. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
  112. package/components/common/wizards/network/add/validations/common.ts +1 -1
  113. package/components/common/wizards/vm/migrate/New.vue +3 -13
  114. package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +0 -5
  115. package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -3
  116. package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +1 -2
  117. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +21 -40
  118. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +14 -44
  119. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +0 -4
  120. package/components/common/wizards/vm/migrate/steps/priority/New.vue +2 -7
  121. package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +7 -22
  122. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -6
  123. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -4
  124. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +16 -12
  125. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +5 -10
  126. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +11 -16
  127. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
  128. package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +10 -17
  129. package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +0 -1
  130. package/components/common/wizards/vm/migrate/vmOrigin/New.vue +15 -35
  131. package/lib/models/store/tasks/enums.ts +0 -3
  132. package/lib/models/store/tasks/types.ts +6 -7
  133. package/package.json +1 -1
  134. package/plugins/directives.ts +5 -3
  135. package/public/spice-console/application/agent.js +17 -18
  136. package/store/tasks/actions.ts +8 -26
  137. package/store/tasks/mappers/recentTasks.ts +0 -1
  138. package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
  139. package/components/common/diagramMain/header/Header.vue +0 -49
  140. package/components/common/diagramMain/header/HeaderNew.vue +0 -155
  141. package/components/common/diagramMain/modals/UnsavedChangesModal.vue +0 -32
  142. package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +0 -285
  143. package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +0 -254
  144. package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +0 -31
  145. package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +0 -82
  146. package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +0 -15
  147. package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +0 -177
  148. package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +0 -137
  149. package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +0 -91
  150. package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +0 -158
  151. package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +0 -262
  152. package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +0 -192
  153. package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +0 -388
  154. package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +0 -139
  155. package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +0 -286
  156. package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +0 -209
  157. package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +0 -233
  158. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +0 -128
  159. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +0 -235
  160. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +0 -87
  161. package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +0 -99
  162. package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +0 -319
  163. package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +0 -173
  164. package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +0 -348
  165. package/components/common/diagramMain/skeleton/Header.vue +0 -31
  166. package/components/common/diagramMain/skeleton/Switch.vue +0 -75
  167. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
@@ -1,286 +0,0 @@
1
- <template>
2
- <div class="content">
3
- <div class="content-fields">
4
- <div class="content-fields-title">
5
- {{ localization.common.portProperties }}
6
- </div>
7
-
8
- <div v-if="props.isShowErrorMessage" class="content-fields-alert">
9
- <div
10
- v-for="messageObject in validationMessagesArray"
11
- :key="messageObject.key"
12
- class="content-fields-alert-item"
13
- >
14
- <ui-alert
15
- :messages="[messageObject.message]"
16
- test-id="port-properties-alert"
17
- size="md"
18
- @hide="onHideMessage(messageObject.key)"
19
- />
20
- </div>
21
- </div>
22
-
23
- <div class="content-fields-block">
24
- <div class="content-fields-subtitle">
25
- {{ localization.common.vmKernelPortSettings }}
26
- </div>
27
-
28
- <div class="col">
29
- <h4 class="content-subtitle col-left text">
30
- {{ localization.common.tcpIpStack }}
31
- </h4>
32
- <div class="col-right text">
33
- {{ localization.common[fieldsValues.tcpIp] }}
34
- </div>
35
- </div>
36
-
37
- <ui-line margin="16px 0" />
38
-
39
- <div class="col">
40
- <h4 class="content-subtitle col-left text">
41
- {{ localization.common.mtuBytes }}
42
- </h4>
43
- <div class="col-right combobox">
44
- <ui-input
45
- id="mtu-input"
46
- v-model="fieldsValues.mtu"
47
- test-id="mtu-input"
48
- type="number"
49
- :placeholder="localization.common.bytes"
50
- size="md"
51
- error-type="tooltip"
52
- :error="props.errorMessages.mtu"
53
- />
54
- </div>
55
- </div>
56
-
57
- <ui-line margin="16px 0" />
58
-
59
- <div class="content-fields-subtitle">
60
- {{ localization.common.availableServices }}
61
- </div>
62
-
63
- <div class="col mb-4">
64
- <h4 class="content-subtitle col-left">
65
- {{ localization.common.enabledServices }}
66
- </h4>
67
- <div class="col-right content-fields-services">
68
- <template
69
- v-for="enabledService in props.portPropertiesEnabledServices"
70
- :key="enabledService.modelValue"
71
- >
72
- <ui-checkbox
73
- :id="enabledService.testId"
74
- v-model="fieldsValues.services[enabledService.modelValue]"
75
- :label-text="enabledService.label"
76
- :test-id="`${enabledService.testId}-checkbox`"
77
- size="md"
78
- />
79
- </template>
80
- </div>
81
- </div>
82
- </div>
83
- </div>
84
- </div>
85
- </template>
86
-
87
- <script setup lang="ts">
88
- import type { UI_I_Localization } from '~/lib/models/interfaces'
89
- import type {
90
- UI_I_PortPropertiesFields,
91
- UI_I_EditSettingsErrorMessage,
92
- } from '~/components/common/diagramMain/lib/models/interfaces'
93
- import { validationMessagesArrayNewFunc } from '~/components/common/diagramMain/modals/lib/utils'
94
-
95
- const props = defineProps<{
96
- isShowErrorMessage: boolean
97
- errorMessages: UI_I_EditSettingsErrorMessage
98
- portPropertiesEnabledServices: any
99
- }>()
100
-
101
- const emits = defineEmits<{
102
- (event: 'hide-error-message-alert'): void
103
- }>()
104
-
105
- const localization = computed<UI_I_Localization>(() => useLocal())
106
-
107
- const fieldsValues = defineModel<UI_I_PortPropertiesFields>()
108
-
109
- const keys = ref<keyof UI_I_EditSettingsErrorMessage>(['mtu'])
110
-
111
- const validationMessagesArray = computed(() =>
112
- validationMessagesArrayNewFunc(keys.value, props.errorMessages)
113
- )
114
-
115
- const onHideMessage = (
116
- messageKey: keyof UI_I_EditSettingsErrorMessage
117
- ): void => {
118
- keys.value = keys.value
119
- .filter((key) => key !== messageKey)
120
- .filter((key) => props.errorMessages[key])
121
-
122
- if (keys.value.length === 0) {
123
- emits('hide-error-message-alert')
124
- keys.value = ['mtu']
125
- }
126
- }
127
-
128
- watch(
129
- () => props.flagSendData,
130
- () => {
131
- keys.value = ['mtu']
132
- }
133
- )
134
- </script>
135
-
136
- <style scoped lang="scss">
137
- .content {
138
- width: 100%;
139
-
140
- &-fields-title {
141
- font-weight: 400;
142
- font-size: 20px;
143
- line-height: 24px;
144
- letter-spacing: 0;
145
- color: var(--title-form-first-color);
146
- margin-bottom: 16px;
147
- }
148
-
149
- &-fields-subtitle {
150
- font-weight: 500;
151
- font-size: 16px;
152
- line-height: 20px;
153
- letter-spacing: 0;
154
- color: var(--title-form-first-color);
155
- margin-bottom: 16px;
156
- }
157
-
158
- &-title {
159
- display: block;
160
- margin: 16px 0;
161
- font-weight: 500;
162
- font-size: 16px;
163
- line-height: 20px;
164
- letter-spacing: 0;
165
- color: var(--title-form-first-color);
166
- }
167
-
168
- &-subtitle {
169
- font-weight: 400;
170
- font-size: 13px;
171
- line-height: 16px;
172
- letter-spacing: 0;
173
- vertical-align: middle;
174
- color: var(--title-form-first-color);
175
- }
176
-
177
- .col {
178
- display: flex;
179
- column-gap: 16px;
180
-
181
- &-left {
182
- padding-top: 10px;
183
- width: calc((100% - 8px) / 3);
184
- text-overflow: ellipsis;
185
- white-space: nowrap;
186
- overflow: hidden;
187
-
188
- &.text {
189
- padding: 8px 0;
190
- line-height: 20px;
191
- }
192
- }
193
-
194
- &-right {
195
- width: calc(((100% - 8px) / 3) * 2);
196
-
197
- &.text {
198
- padding: 8px 0;
199
- max-width: 400px;
200
- font-weight: 400;
201
- font-size: 13px;
202
- line-height: 20px;
203
- letter-spacing: 0;
204
- color: var(--title-color);
205
- }
206
-
207
- &.combobox {
208
- max-width: 200px;
209
- }
210
- }
211
- }
212
-
213
- &-fields {
214
- &-alert {
215
- margin-bottom: 8px;
216
-
217
- &-item:not(:last-of-type) {
218
- margin-bottom: 12px;
219
- }
220
- }
221
-
222
- &-block {
223
- padding-top: 8px;
224
- }
225
-
226
- &-col {
227
- display: flex;
228
- column-gap: 12px;
229
-
230
- &-left {
231
- width: 60%;
232
- }
233
-
234
- &-right {
235
- width: 40%;
236
-
237
- &.text {
238
- max-width: 400px;
239
- }
240
-
241
- &.combobox {
242
- max-width: 200px;
243
- }
244
- }
245
- }
246
-
247
- &-services {
248
- display: grid;
249
- grid-template-columns: 1fr 1fr;
250
- row-gap: 12px;
251
- column-gap: 12px;
252
- padding-top: 8px;
253
- }
254
- }
255
- }
256
-
257
- @media (max-width: 896px) {
258
- .content-fields {
259
- &-services {
260
- grid-template-columns: 1fr;
261
- }
262
-
263
- &-col {
264
- display: flex;
265
- row-gap: 12px;
266
- flex-direction: column;
267
-
268
- &-left {
269
- width: 100%;
270
- }
271
-
272
- &-right {
273
- width: 100%;
274
-
275
- &.text {
276
- max-width: 400px;
277
- }
278
-
279
- &.combobox {
280
- max-width: 200px;
281
- }
282
- }
283
- }
284
- }
285
- }
286
- </style>
@@ -1,209 +0,0 @@
1
- <template>
2
- <div class="security">
3
- <component
4
- :is="currentComponent"
5
- v-model="fieldsValues"
6
- :is-switch="props.isSwitch"
7
- />
8
- </div>
9
-
10
- <!-- <div class="wizard-content__container">-->
11
- <!-- <div class="wizard-content">-->
12
- <!-- <form action="">-->
13
- <!-- <div class="horizontal-flex-container">-->
14
- <!-- <span class="flex-property-label-group large">-->
15
- <!-- {{ localization.common.promiscuousMode }}-->
16
- <!-- </span>-->
17
-
18
- <!-- <div class="flex-property-value-group overridable-dropdown">-->
19
- <!-- <div class="horizontal-flex-container no-margin">-->
20
- <!-- <div class="flex-property-value-group">-->
21
- <!-- <div class="horizontal-flex-container">-->
22
- <!-- <div-->
23
- <!-- v-if="!props.isSwitch"-->
24
- <!-- class="flex-property-label-group small checkbox-inline"-->
25
- <!-- >-->
26
- <!-- <input-->
27
- <!-- id="promiscuous-mode"-->
28
- <!-- v-model="fieldsValues.promiscuousMode.checked"-->
29
- <!-- data-id="promiscuous-mode-input"-->
30
- <!-- type="checkbox"-->
31
- <!-- />-->
32
- <!-- <label for="promiscuous-mode" class="normal-weight">-->
33
- <!-- {{ localization.common.override }}-->
34
- <!-- </label>-->
35
- <!-- </div>-->
36
- <!-- <div class="flex-property-value-group">-->
37
- <!-- <div class="select">-->
38
- <!-- <select-->
39
- <!-- id="promiscuous-mode-select"-->
40
- <!-- v-model="fieldsValues.promiscuousMode.selected"-->
41
- <!-- :disabled="!fieldsValues.promiscuousMode.checked"-->
42
- <!-- data-id="promiscuous-mode-select"-->
43
- <!-- name="selectName"-->
44
- <!-- >-->
45
- <!-- <option :value="2" :label="localization.common.reject">-->
46
- <!-- {{ localization.common.reject }}-->
47
- <!-- </option>-->
48
- <!-- <option :value="1" :label="localization.common.accept">-->
49
- <!-- {{ localization.common.accept }}-->
50
- <!-- </option>-->
51
- <!-- </select>-->
52
- <!-- </div>-->
53
- <!-- </div>-->
54
- <!-- </div>-->
55
- <!-- </div>-->
56
- <!-- </div>-->
57
- <!-- </div>-->
58
- <!-- </div>-->
59
- <!-- <div class="horizontal-flex-container">-->
60
- <!-- <span class="flex-property-label-group large">-->
61
- <!-- {{ localization.common.macAddressChanges }}-->
62
- <!-- </span>-->
63
-
64
- <!-- <div class="flex-property-value-group overridable-dropdown">-->
65
- <!-- <div class="horizontal-flex-container no-margin">-->
66
- <!-- <div class="flex-property-value-group">-->
67
- <!-- <div class="horizontal-flex-container">-->
68
- <!-- <div-->
69
- <!-- v-if="!props.isSwitch"-->
70
- <!-- class="flex-property-label-group small checkbox-inline"-->
71
- <!-- >-->
72
- <!-- <input-->
73
- <!-- id="mac-address-changes"-->
74
- <!-- v-model="fieldsValues.macAddressChanges.checked"-->
75
- <!-- data-id="mac-address-changes"-->
76
- <!-- type="checkbox"-->
77
- <!-- />-->
78
- <!-- <label for="mac-address-changes" class="normal-weight">-->
79
- <!-- {{ localization.common.override }}-->
80
- <!-- </label>-->
81
- <!-- </div>-->
82
- <!-- <div class="flex-property-value-group">-->
83
- <!-- <div class="select">-->
84
- <!-- <select-->
85
- <!-- id="mac-address-select"-->
86
- <!-- v-model="fieldsValues.macAddressChanges.selected"-->
87
- <!-- :disabled="!fieldsValues.macAddressChanges.checked"-->
88
- <!-- data-id="mac-address-select"-->
89
- <!-- name="selectName"-->
90
- <!-- >-->
91
- <!-- <option :value="2" :label="localization.common.reject">-->
92
- <!-- {{ localization.common.reject }}-->
93
- <!-- </option>-->
94
- <!-- <option :value="1" :label="localization.common.accept">-->
95
- <!-- {{ localization.common.accept }}-->
96
- <!-- </option>-->
97
- <!-- </select>-->
98
- <!-- </div>-->
99
- <!-- </div>-->
100
- <!-- </div>-->
101
- <!-- </div>-->
102
- <!-- </div>-->
103
- <!-- </div>-->
104
- <!-- </div>-->
105
- <!-- <div class="horizontal-flex-container">-->
106
- <!-- <span class="flex-property-label-group large">-->
107
- <!-- {{ localization.common.forgedTransmits }}-->
108
- <!-- </span>-->
109
-
110
- <!-- <div class="flex-property-value-group overridable-dropdown">-->
111
- <!-- <div class="horizontal-flex-container no-margin">-->
112
- <!-- <div class="flex-property-value-group">-->
113
- <!-- <div class="horizontal-flex-container">-->
114
- <!-- <div-->
115
- <!-- v-if="!props.isSwitch"-->
116
- <!-- class="flex-property-label-group small checkbox-inline"-->
117
- <!-- >-->
118
- <!-- <input-->
119
- <!-- id="forged-transmits"-->
120
- <!-- v-model="fieldsValues.forgedTransmits.checked"-->
121
- <!-- data-id="forged-transmits-input"-->
122
- <!-- type="checkbox"-->
123
- <!-- />-->
124
- <!-- <label for="forged-transmits" class="normal-weight">-->
125
- <!-- {{ localization.common.override }}-->
126
- <!-- </label>-->
127
- <!-- </div>-->
128
- <!-- <div class="flex-property-value-group">-->
129
- <!-- <div class="select">-->
130
- <!-- <select-->
131
- <!-- id="forged-transmits"-->
132
- <!-- v-model="fieldsValues.forgedTransmits.selected"-->
133
- <!-- :disabled="!fieldsValues.forgedTransmits.checked"-->
134
- <!-- data-id="forged-transmits-select"-->
135
- <!-- name="selectName"-->
136
- <!-- >-->
137
- <!-- <option :value="2" :label="localization.common.reject">-->
138
- <!-- {{ localization.common.reject }}-->
139
- <!-- </option>-->
140
- <!-- <option :value="1" :label="localization.common.accept">-->
141
- <!-- {{ localization.common.accept }}-->
142
- <!-- </option>-->
143
- <!-- </select>-->
144
- <!-- </div>-->
145
- <!-- </div>-->
146
- <!-- </div>-->
147
- <!-- </div>-->
148
- <!-- </div>-->
149
- <!-- </div>-->
150
- <!-- </div>-->
151
- <!-- </form>-->
152
- <!-- </div>-->
153
- <!-- </div>-->
154
- </template>
155
-
156
- <script setup lang="ts">
157
- import type {
158
- UI_I_ModalsInitialData,
159
- UI_I_SecurityFields,
160
- } from '~/components/common/diagramMain/lib/models/interfaces'
161
- import { securityFieldsInitialFunc } from '~/components/common/diagramMain/modals/lib/config'
162
-
163
- const props = withDefaults(
164
- defineProps<{
165
- isSwitch: boolean
166
- initialData?: UI_I_ModalsInitialData
167
- }>(),
168
- {
169
- isSwitch: false,
170
- initialData: undefined,
171
- }
172
- )
173
-
174
- const emits = defineEmits<{
175
- (event: 'change-edit-security-data', securityData: UI_I_SecurityFields): void
176
- }>()
177
-
178
- const { $store }: any = useNuxtApp()
179
-
180
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
181
-
182
- const currentComponent = computed(() =>
183
- isNewView.value
184
- ? defineAsyncComponent(() => import('./SecurityNew.vue'))
185
- : defineAsyncComponent(() => import('./SecurityOld.vue'))
186
- )
187
-
188
- const fieldsValues = ref<UI_I_SecurityFields>(
189
- securityFieldsInitialFunc(props.isSwitch, props.initialData)
190
- )
191
-
192
- onMounted(() => {
193
- emits('change-edit-security-data', fieldsValues.value)
194
- })
195
-
196
- watch(
197
- fieldsValues,
198
- (newFieldsValues: UI_I_SecurityFields) => {
199
- emits('change-edit-security-data', newFieldsValues)
200
- },
201
- { deep: true }
202
- )
203
- </script>
204
-
205
- <style scoped lang="scss">
206
- .security {
207
- width: 100%;
208
- }
209
- </style>