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
@@ -95,7 +95,7 @@ export const getHeaderDataFunc = (
95
95
  text: localization.common.name,
96
96
  isSortable: false,
97
97
  sort: 'asc',
98
- width: '160px',
98
+ width: '180px',
99
99
  show: true,
100
100
  filter: false,
101
101
  },
@@ -105,7 +105,7 @@ export const getHeaderDataFunc = (
105
105
  text: localization.inventorySummary.state,
106
106
  isSortable: false,
107
107
  sort: 'asc',
108
- width: '160px',
108
+ width: '180px',
109
109
  show: true,
110
110
  filter: false,
111
111
  },
@@ -115,7 +115,7 @@ export const getHeaderDataFunc = (
115
115
  text: localization.common.capacity,
116
116
  isSortable: false,
117
117
  sort: 'asc',
118
- width: '120px',
118
+ width: '180px',
119
119
  show: true,
120
120
  filter: false,
121
121
  },
@@ -125,7 +125,7 @@ export const getHeaderDataFunc = (
125
125
  text: localization.common.provisioned,
126
126
  isSortable: false,
127
127
  sort: 'asc',
128
- width: '120px',
128
+ width: '180px',
129
129
  show: true,
130
130
  filter: false,
131
131
  },
@@ -135,7 +135,7 @@ export const getHeaderDataFunc = (
135
135
  text: localization.common.free,
136
136
  isSortable: false,
137
137
  sort: 'asc',
138
- width: '120px',
138
+ width: '180px',
139
139
  show: true,
140
140
  filter: false,
141
141
  },
@@ -145,7 +145,7 @@ export const getHeaderDataFunc = (
145
145
  text: localization.common.used,
146
146
  isSortable: false,
147
147
  sort: 'asc',
148
- width: '120px',
148
+ width: '180px',
149
149
  show: true,
150
150
  filter: false,
151
151
  },
@@ -155,7 +155,7 @@ export const getHeaderDataFunc = (
155
155
  text: localization.common.type,
156
156
  isSortable: false,
157
157
  sort: 'asc',
158
- width: '104px',
158
+ width: '180px',
159
159
  show: true,
160
160
  filter: false,
161
161
  },
@@ -165,7 +165,7 @@ export const getHeaderDataFunc = (
165
165
  text: localization.common.thinProvisioning,
166
166
  isSortable: false,
167
167
  sort: 'asc',
168
- width: '160px',
168
+ width: '180px',
169
169
  show: true,
170
170
  filter: false,
171
171
  },
@@ -175,7 +175,7 @@ export const getHeaderDataFunc = (
175
175
  text: localization.common.access,
176
176
  isSortable: false,
177
177
  sort: 'asc',
178
- width: '104px',
178
+ width: '180px',
179
179
  show: true,
180
180
  filter: false,
181
181
  },
@@ -195,7 +195,7 @@ export const getHeaderDataFunc = (
195
195
  text: localization.common.driverType,
196
196
  isSortable: false,
197
197
  sort: 'asc',
198
- width: '120px',
198
+ width: '180px',
199
199
  show: true,
200
200
  filter: false,
201
201
  },
@@ -205,7 +205,7 @@ export const getHeaderDataFunc = (
205
205
  text: localization.common.device,
206
206
  isSortable: false,
207
207
  sort: 'asc',
208
- width: '120px',
208
+ width: '180px',
209
209
  show: true,
210
210
  filter: false,
211
211
  },
@@ -259,7 +259,11 @@ export const getBodyDataFunc = (
259
259
  testId: `${storage.name}-${index}-thin-provisioning`,
260
260
  }
261
261
 
262
- const hardwareAccelerationKey = storage.hardware_acceleration
262
+ const hardwareAccelerationKey =
263
+ E_StorageHardwareAcceleration[
264
+ storage.hardware_acceleration as keyof typeof E_StorageHardwareAcceleration
265
+ ]
266
+
263
267
  const hardwareAccelerationData = {
264
268
  ...HARDWARE_ACCELERATION_MAPPING[
265
269
  hardwareAccelerationKey as keyof typeof HARDWARE_ACCELERATION_MAPPING
@@ -23,7 +23,7 @@
23
23
  class="disk-table__configure-button"
24
24
  @click="emits('configure')"
25
25
  >
26
- <ui-icon name="settings" width="16" height="16" />
26
+ <ui-icon name="config" width="16" height="16" />
27
27
  {{ localization.inventoryTabs.configure }}
28
28
  </ui-button>
29
29
  </template>
@@ -159,19 +159,18 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
159
159
  </style>
160
160
  <style lang="scss" scoped>
161
161
  .disk-table {
162
- margin: 16px 0 24px;
162
+ margin: 16px 0;
163
163
  :deep(.title-container) {
164
164
  h5 {
165
165
  margin-bottom: 0;
166
166
  }
167
167
  .title-container-top-info {
168
168
  border-left: 1px solid var(--horizontal-line);
169
- padding-left: 12px;
170
- margin-left: 12px;
169
+ padding-left: 10px;
170
+ margin-left: 10px;
171
171
  }
172
172
  h6.title-container-top-selected-rows {
173
- font-size: 12px;
174
- line-height: 20px;
173
+ line-height: inherit;
175
174
  }
176
175
  }
177
176
  &__icon {
@@ -181,13 +180,9 @@ const onSelectRow = (value: UI_I_DataTableBody[]): void => {
181
180
  font-size: 12px;
182
181
  }
183
182
  &__configure-button {
184
- column-gap: 4px;
185
183
  background: var(--select-bg);
186
184
  border: 1px solid var(--line-color);
187
185
  color: var(--title-form-first-color);
188
- &.ui-btn.ui-btn-sm {
189
- height: 28px;
190
- }
191
186
  &:hover {
192
187
  background: var(--custom-button-default-hover-bg-color);
193
188
  }
@@ -43,7 +43,7 @@ export const getHeaderDataFunc = (
43
43
  text: localization.common.diskGroup,
44
44
  isSortable: false,
45
45
  sort: 'asc',
46
- width: '140px',
46
+ width: '180px',
47
47
  show: true,
48
48
  filter: false,
49
49
  },
@@ -83,7 +83,7 @@ export const getHeaderDataFunc = (
83
83
  text: localization.common.sharing,
84
84
  isSortable: false,
85
85
  sort: 'asc',
86
- width: '120px',
86
+ width: '180px',
87
87
  show: true,
88
88
  filter: false,
89
89
  },
@@ -93,7 +93,7 @@ export const getHeaderDataFunc = (
93
93
  text: localization.common.target,
94
94
  isSortable: false,
95
95
  sort: 'asc',
96
- width: '120px',
96
+ width: '180px',
97
97
  show: true,
98
98
  filter: false,
99
99
  },
@@ -103,7 +103,7 @@ export const getHeaderDataFunc = (
103
103
  text: localization.common.cache,
104
104
  isSortable: false,
105
105
  sort: 'asc',
106
- width: '120px',
106
+ width: '180px',
107
107
  show: true,
108
108
  filter: false,
109
109
  },
@@ -113,7 +113,7 @@ export const getHeaderDataFunc = (
113
113
  text: localization.common.ioControl,
114
114
  isSortable: false,
115
115
  sort: 'asc',
116
- width: '120px',
116
+ width: '180px',
117
117
  show: true,
118
118
  filter: false,
119
119
  },
@@ -123,7 +123,7 @@ export const getHeaderDataFunc = (
123
123
  text: localization.common.discard,
124
124
  isSortable: false,
125
125
  sort: 'asc',
126
- width: '120px',
126
+ width: '180px',
127
127
  show: true,
128
128
  filter: false,
129
129
  },
@@ -133,7 +133,7 @@ export const getHeaderDataFunc = (
133
133
  text: localization.common.diskMode,
134
134
  isSortable: false,
135
135
  sort: 'asc',
136
- width: '120px',
136
+ width: '180px',
137
137
  show: true,
138
138
  filter: false,
139
139
  },
@@ -158,6 +158,7 @@ export const getBodyDataFunc = (
158
158
  bodyData: UI_I_StorageConfigurePerDiskItem[],
159
159
  localization: UI_I_Localization
160
160
  ): UI_I_DataTableBody[] => {
161
+
161
162
  return bodyData.map((disk, index: number) => {
162
163
  const diskFormat =
163
164
  index === 0 ? 'N/A' : UI_E_SelectStorageDiskFormat[disk.disk_format]
@@ -183,12 +184,6 @@ export const getBodyDataFunc = (
183
184
  : 'False'
184
185
  : localization.common[diskSharingKey]
185
186
 
186
- const diskCache = disk.extra.cache
187
- const diskCacheValue =
188
- !diskCache || ['none', 'n/a'].includes(diskCache.toLowerCase())
189
- ? '--'
190
- : disk.extra.cache
191
-
192
187
  return {
193
188
  row: index,
194
189
  collapse: false,
@@ -203,7 +198,7 @@ export const getBodyDataFunc = (
203
198
  },
204
199
  {
205
200
  col: 'col1',
206
- text: disk.disk_group || '--',
201
+ text: disk.disk_group,
207
202
  },
208
203
  {
209
204
  col: 'col2',
@@ -226,10 +221,10 @@ export const getBodyDataFunc = (
226
221
  data: diskSharingData,
227
222
  },
228
223
 
229
- { col: 'col6', text: disk.extra.target || '--' },
224
+ { col: 'col6', text: disk.extra.target },
230
225
  {
231
226
  col: 'col7',
232
- text: diskCacheValue,
227
+ text: disk.extra.cache,
233
228
  },
234
229
  { col: 'col8', text: disk.extra.io_control },
235
230
  {
@@ -79,12 +79,6 @@ export const bodyItems = (
79
79
  ? disk[vmMigrateDiskTableItemKeys[2]]
80
80
  : `${disk.extra.disk_source} (${disk.extra.disk_size} ${localization.common.mb} )`
81
81
 
82
- const diskCache = disk.extra[vmMigrateDiskTableItemKeys[7]]
83
- const diskCacheValue =
84
- !diskCache || ['none', 'n/a'].includes(diskCache.toLowerCase())
85
- ? '--'
86
- : disk.extra[vmMigrateDiskTableItemKeys[7]]
87
-
88
82
  bodyItems.push([
89
83
  {
90
84
  key: 'col0',
@@ -130,7 +124,7 @@ export const bodyItems = (
130
124
  },
131
125
  {
132
126
  key: 'col7',
133
- text: diskCacheValue,
127
+ text: disk.extra[vmMigrateDiskTableItemKeys[7]],
134
128
  id: key,
135
129
  testId: `disk-table-${key}`,
136
130
  },
@@ -10,7 +10,7 @@
10
10
  />
11
11
 
12
12
  <div>
13
- <span class="icon-vm small-margin vsphere-icon-vm"></span>
13
+ <span class="icon-vm vsphere-icon-vm"></span>
14
14
  </div>
15
15
 
16
16
  <span v-if="props.data.length === 1" class="selected-per-disk__text">{{
@@ -31,13 +31,15 @@
31
31
  dropdown-right
32
32
  dropdown-bottom
33
33
  >
34
- <div class="flex flex-col row-gap-2 mt-5">
35
- <div v-for="(item, key) in props.data" :key="key" class="flex">
36
- <span class="icon-vm vsphere-icon-vm"></span>
37
- <span class="selected-per-disk__text">
38
- {{ item }}
39
- </span>
40
- </div>
34
+ <div
35
+ v-for="(item, key) in props.data"
36
+ :key="key"
37
+ class="flex items-center"
38
+ >
39
+ <span class="icon-vm vsphere-icon-vm"></span>
40
+ <span class="selected-per-disk__text">
41
+ {{ item }}
42
+ </span>
41
43
  </div>
42
44
  </common-tooltip-help>
43
45
  </div>
@@ -73,19 +75,12 @@ const onGoBack = (): void => {
73
75
  color: var(--btn-primary-fill-bg-color);
74
76
  margin-right: 8px;
75
77
  cursor: pointer;
76
- &:hover {
77
- color: var(--btn-primary-fill-hover-bg-color);
78
- }
79
78
  }
80
79
  &-vm {
81
80
  display: block;
82
- min-width: 20px;
83
81
  width: 20px;
84
82
  height: 20px;
85
83
  margin-right: 8px;
86
- &.small-margin {
87
- margin-right: 4px;
88
- }
89
84
  }
90
85
  }
91
86
 
@@ -94,8 +89,6 @@ const onGoBack = (): void => {
94
89
  color: var(--title-form-first-color);
95
90
  font-weight: 400;
96
91
  font-size: 13px;
97
- line-height: 18px;
98
- align-self: center;
99
92
  }
100
93
  &__all-objects {
101
94
  @include flex($align: center);
@@ -37,7 +37,6 @@ const props = defineProps<{
37
37
  .datastore-type {
38
38
  container-type: inline-size;
39
39
  margin-top: 16px;
40
- padding-bottom: 16px;
41
40
 
42
41
  &__radio {
43
42
  &-container {
@@ -1,17 +1,12 @@
1
1
  <template>
2
- <div :class="['tooltip-info', { isOpen: isShowTooltipLocal }]">
3
- <span
4
- class="tooltip-info__title"
5
- @click.stop="isShowTooltipLocal = !isShowTooltipLocal"
6
- >
7
- {{ localization.common.vmOrigin }}
8
- </span>
2
+ <div class="tooltip-info">
3
+ <span class="tooltip-info__title">{{ localization.common.vmOrigin }}</span>
9
4
  <ui-icon
10
5
  id="vm-origin-info-trigger"
11
- class="tooltip-info__icon pointer"
6
+ :class="['tooltip-info__icon pointer', { active: isShowTooltipLocal }]"
12
7
  name="info"
13
- width="16"
14
- height="16"
8
+ width="20"
9
+ height="20"
15
10
  @click.stop="isShowTooltipLocal = !isShowTooltipLocal"
16
11
  />
17
12
  <ui-popup-window
@@ -45,7 +40,7 @@
45
40
  :key="item2.name"
46
41
  class="flex items-center mt-2"
47
42
  >
48
- <span :class="['icon-row', item2.iconName]"></span>
43
+ <span :class="item2.iconName"></span>
49
44
  <span class="item-name">{{ item2.name }}</span>
50
45
  </div>
51
46
  </div>
@@ -72,29 +67,22 @@ const localization = computed<UI_I_Localization>(() => useLocal())
72
67
  @import 'assets/scss/common/mixins.scss';
73
68
  .tooltip-info {
74
69
  @include flex($align: center);
75
- column-gap: 8px;
76
- &:hover {
77
- .tooltip-info__title,
78
- .tooltip-info__icon {
79
- color: var(--close-icon);
80
- cursor: pointer;
81
- }
82
- }
83
- &.isOpen {
84
- .tooltip-info__title,
85
- .tooltip-info__icon {
86
- color: var(--btn-primary-fill-bg-color);
87
- }
88
- }
89
70
  &__title {
90
71
  font-family: 'Inter', sans-serif;
91
- color: #9da6ad; // for dark and light mode
72
+ color: var(--title-form-first-color);
92
73
  font-weight: 500;
93
74
  font-size: 12px;
94
75
  white-space: nowrap;
76
+ margin-right: 4px;
95
77
  }
96
78
  &__icon {
97
79
  color: var(--form-icon-color);
80
+ &:hover {
81
+ color: var(--close-icon);
82
+ }
83
+ &.active {
84
+ color: var(--btn-primary-fill-bg-color);
85
+ }
98
86
  }
99
87
 
100
88
  .common-widget-info {
@@ -111,22 +99,14 @@ const localization = computed<UI_I_Localization>(() => useLocal())
111
99
  &__content {
112
100
  .item-row {
113
101
  margin-top: 12px;
114
- &:first-child {
115
- margin-top: 20px;
116
- }
117
102
  }
118
103
  .title-row {
119
104
  font-family: 'Inter', sans-serif;
120
- color: #9da6ad; // for dark and light mode
105
+ color: var(--title-form-second-color);
121
106
  font-weight: 500;
122
107
  font-size: 13px;
123
- line-height: 18px;
124
108
  margin-bottom: 8px;
125
109
  }
126
- .icon-row {
127
- width: 20px;
128
- height: 20px;
129
- }
130
110
 
131
111
  .item-name {
132
112
  font-family: 'Inter', sans-serif;
@@ -3,9 +3,6 @@ export enum UI_E_RecentTaskStatus {
3
3
  'running',
4
4
  'completed',
5
5
  'failed',
6
- 'canceled',
7
- 'retrying',
8
- 'warning',
9
6
  }
10
7
 
11
8
  export enum UI_E_IconNameByRecentTaskStatus {
@@ -1,9 +1,8 @@
1
1
  export type UI_T_TasksStateLoading = 'tasks' | 'recentTasks'
2
2
  export type UI_T_TaskStatus =
3
- | 0 // queued
4
- | 1 // running
5
- | 2 // completed
6
- | 3 // failed
7
- | 4 // canceled
8
- | 5 // retrying
9
- | 6 // warning
3
+ 0 | // queued
4
+ 1 | // running
5
+ 2 | // completed
6
+ 3 | // failed
7
+ 4 | // canceled
8
+ 5 // retrying
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.6.76",
4
+ "version": "1.6.77",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -1,5 +1,5 @@
1
1
  import type { DirectiveBinding } from '@vue/runtime-core'
2
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type {UI_I_Localization} from "~/lib/models/interfaces";
3
3
 
4
4
  export default defineNuxtPlugin((nuxtApp) => {
5
5
  nuxtApp.vueApp.directive('development', {
@@ -22,7 +22,8 @@ function applyDevelopmentState(el: HTMLElement, isDevelopment: boolean) {
22
22
 
23
23
  el.setAttribute('title', localization.value.common.inDevelopment)
24
24
  el.setAttribute('disabled', 'true')
25
- el.classList.add('in-development')
25
+ el.style.opacity = '0.6'
26
+ el.style.cursor = 'not-allowed'
26
27
 
27
28
  // Оборачиваем, чтобы не навешивать несколько обработчиков
28
29
  const preventClick = (e: MouseEvent) => {
@@ -39,7 +40,8 @@ function applyDevelopmentState(el: HTMLElement, isDevelopment: boolean) {
39
40
 
40
41
  function cleanupDevelopment(el: HTMLElement) {
41
42
  el.removeAttribute('title')
42
- el.classList.remove('in-development')
43
+ el.style.opacity = ''
44
+ el.style.cursor = ''
43
45
 
44
46
  const handler = (el as any)._developmentClickHandler
45
47
  if (handler) {
@@ -70,7 +70,6 @@ wdi.Agent = $.spcExtend(wdi.EventObject.prototype, {
70
70
 
71
71
  setResolution: function(width, height) {
72
72
  //TODO move this to a setting
73
- // SC-2122
74
73
  if(width < 800) {
75
74
  width = 800;
76
75
  }
@@ -81,23 +80,23 @@ wdi.Agent = $.spcExtend(wdi.EventObject.prototype, {
81
80
 
82
81
  //adapt resolution, TODO: this needs to be refractored
83
82
  var packetData = {
84
- type: wdi.AgentMessageTypes.VD_AGENT_MONITORS_CONFIG,
85
- opaque: 0,
86
- data: new wdi.VDAgentMonitorsConfig({
87
- num_of_monitors: 1,
88
- flags: 0,
89
- data: new wdi.VDAgentMonConfig({
90
- width: width,
91
- height: height,
92
- // Custom code
93
- // depth: 64,
94
- depth: 32,
95
- // Custom code end
96
- x: 0,
97
- y: 0,
98
- }),
99
- }),
100
- }
83
+ type: wdi.AgentMessageTypes.VD_AGENT_MONITORS_CONFIG,
84
+ opaque: 0,
85
+ data: new wdi.VDAgentMonitorsConfig({
86
+ num_of_monitors: 1,
87
+ flags: 0,
88
+ data: new wdi.VDAgentMonConfig({
89
+ width: width,
90
+ height: height,
91
+ // Custom code
92
+ // depth: 64,
93
+ depth: 32, // SC-2122
94
+ // Custom code end
95
+ x: 0,
96
+ y: 0
97
+ })
98
+ })
99
+ };
101
100
  this.sendAgentPacket(packetData);
102
101
  },
103
102
 
@@ -18,7 +18,6 @@ import type {
18
18
  } from '~/lib/models/store/tasks/interfaces'
19
19
  import type { UI_I_TasksState } from '~/store/tasks/lib/models/interfaces'
20
20
  import type { UI_I_RefreshStack } from '~/store/main/lib/interfaces'
21
- import type { UI_T_Project } from '~/lib/models/types'
22
21
  import { tasksConstructor } from '~/store/tasks/mappers/tasks'
23
22
  import { recentTasks } from '~/store/tasks/mappers/recentTasks'
24
23
 
@@ -29,13 +28,9 @@ export default {
29
28
  state: UI_I_TasksState
30
29
  dispatch: <T>(arg0: string, arg1: T, arg2: UI_I_CommitOptions) => void
31
30
  },
32
- payload: {
33
- data: UI_I_DataTableQuery
34
- project: UI_T_Project
35
- }
31
+ payload: UI_I_DataTableQuery
36
32
  ): Promise<API_UI_I_Error | void> {
37
- const { data, project } = payload
38
- const { page, pageSize, sortBy, filter } = data
33
+ const { page, pageSize, sortBy, filter } = payload
39
34
 
40
35
  const query: UI_I_TableQuery = {
41
36
  page_size: pageSize,
@@ -43,21 +38,7 @@ export default {
43
38
  }
44
39
 
45
40
  if (sortBy) query.sortBy = sortBy
46
- if (filter) {
47
- if (project === 'procurator') {
48
- query.filter = filter
49
- } else {
50
- const filters = filter.split(',')
51
- filters.forEach((item) => {
52
- const [field, value] = item.split('.')
53
-
54
- if (field && value) {
55
- // @ts-ignore
56
- query[field] = value
57
- }
58
- })
59
- }
60
- }
41
+ if (filter) query.filter = filter
61
42
 
62
43
  const queryJson: string = JSON.stringify({ type: 'tasks', ...query })
63
44
  const lastQuery: string = context.state.taskQuery || ''
@@ -82,9 +63,7 @@ export default {
82
63
  value: true,
83
64
  })
84
65
  },
85
- onResponse({
86
- response,
87
- }: API_UI_I_Response<API_UI_I_Task<string> | null>) {
66
+ onResponse({ response }: API_UI_I_Response<API_UI_I_Task<string> | null>) {
88
67
  const tasks = tasksConstructor(response._data)
89
68
 
90
69
  context.commit('M_SET_TASKS_LIST', tasks)
@@ -161,7 +140,10 @@ export default {
161
140
  payload: string
162
141
  ): Promise<void> {
163
142
  // Скрываем кнопку cancel
164
- context.commit('M_HIDE_CANCEL_RECENT_TASK_BY_ID', payload)
143
+ context.commit(
144
+ 'M_HIDE_CANCEL_RECENT_TASK_BY_ID',
145
+ payload
146
+ )
165
147
  const { error } = await useMyFetch<
166
148
  API_UI_I_RecentTask<string>,
167
149
  API_UI_I_Error
@@ -82,7 +82,6 @@ export const recentTasks = (
82
82
  statusIcon = 'error-outline'
83
83
  break
84
84
  case 5:
85
- case 6:
86
85
  statusIcon = 'warning-outline'
87
86
  break
88
87
  }
@@ -1,19 +0,0 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
-
3
- export const vfNumberValidationFunc = (
4
- vfNumber: number,
5
- localization: UI_I_Localization,
6
- isAlert = false
7
- ): string => {
8
- if (vfNumber !== 0 && !vfNumber) {
9
- return isAlert
10
- ? localization.inventoryConfigure.vfRequiredMessage
11
- : localization.common.fieldRequired
12
- } else if (vfNumber < 1 || vfNumber > 63) {
13
- return isAlert
14
- ? localization.inventoryConfigure.vfNotNegativeMessage
15
- : localization.inventoryConfigure.vfNotNegativeMessage
16
- }
17
-
18
- return ''
19
- }