bfg-common 1.6.91 → 1.6.92

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 (186) hide show
  1. package/assets/localization/local_be.json +4637 -4365
  2. package/assets/localization/local_en.json +4642 -4369
  3. package/assets/localization/local_hy.json +4641 -4369
  4. package/assets/localization/local_kk.json +4640 -4368
  5. package/assets/localization/local_ru.json +4640 -4368
  6. package/assets/localization/local_zh.json +4638 -4366
  7. package/assets/scss/common/global.scss +11 -0
  8. package/assets/scss/common/normalize.scss +3 -0
  9. package/assets/scss/common/theme.scss +2 -2
  10. package/components/atoms/stack/StackBlock.vue +1 -1
  11. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
  12. package/components/atoms/tooltip/TooltipError.vue +3 -0
  13. package/components/common/adapterManager/AdapterManagerNew.vue +87 -0
  14. package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +1 -1
  15. package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +0 -1
  16. package/components/common/adapterManager/ui/actions/bar/Bar.vue +2 -0
  17. package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
  18. package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +1 -0
  19. package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
  20. package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
  21. package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
  22. package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
  23. package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
  24. package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
  25. package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
  26. package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
  27. package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
  28. package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
  29. package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +39 -32
  30. package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
  31. package/components/common/diagramMain/Diagram.vue +169 -85
  32. package/components/common/diagramMain/DiagramMain.vue +40 -10
  33. package/components/common/diagramMain/header/Header.vue +49 -0
  34. package/components/common/diagramMain/header/HeaderNew.vue +155 -0
  35. package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
  36. package/components/common/diagramMain/modals/Modals.vue +5 -5
  37. package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
  38. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
  39. package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
  40. package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
  41. package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
  42. package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
  43. package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
  44. package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
  45. package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
  46. package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
  47. package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
  48. package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
  49. package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
  50. package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
  51. package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
  52. package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -113
  53. package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
  54. package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
  55. package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
  56. package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
  57. package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
  58. package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
  59. package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
  60. package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
  61. package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
  62. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
  63. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
  64. package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +87 -0
  65. package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
  66. package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
  67. package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
  68. package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
  69. package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
  70. package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
  71. package/components/common/diagramMain/modals/lib/config/adapterModal.ts +9 -9
  72. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
  73. package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
  74. package/components/common/diagramMain/modals/lib/config/networkModal.ts +15 -15
  75. package/components/common/diagramMain/modals/lib/config/portModal.ts +12 -12
  76. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +2 -2
  77. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +1 -1
  78. package/components/common/diagramMain/modals/lib/utils/index.ts +34 -4
  79. package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdapters.vue +164 -0
  80. package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdaptersNew.vue +306 -0
  81. package/components/common/diagramMain/modals/{ManagePhysicalAdaptersModal.vue → managePhysicalAdapters/ManagePhysicalAdaptersOld.vue} +33 -119
  82. package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +2 -2
  83. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +1 -1
  84. package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +67 -16
  85. package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +8 -0
  86. package/components/common/diagramMain/skeleton/Header.vue +31 -0
  87. package/components/common/diagramMain/skeleton/Switch.vue +75 -0
  88. package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
  89. package/components/common/layout/theHeader/modals/reconnect/New.vue +38 -30
  90. package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
  91. package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
  92. package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
  93. package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
  94. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
  95. package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
  96. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
  97. package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
  98. package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +5 -9
  99. package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
  100. package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
  101. package/components/common/modals/Rename.vue +3 -1
  102. package/components/common/monitor/advanced/tools/chartOptionsModal/lib/utils/checkSubmit.ts +46 -46
  103. package/components/common/monitor/utilization/Utilization.vue +7 -1
  104. package/components/common/monitor/utilization/lib/utils/index.ts +24 -3
  105. package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
  106. package/components/common/pages/backups/lib/models/interfaces.ts +1 -0
  107. package/components/common/pages/backups/modals/Modals.vue +1 -0
  108. package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
  109. package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
  110. package/components/common/pages/backups/modals/lib/config/restore.ts +1 -0
  111. package/components/common/pages/backups/modals/lib/models/interfaces.ts +1 -0
  112. package/components/common/pages/backups/modals/restore/Restore.vue +4 -2
  113. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +184 -253
  114. package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
  115. package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
  116. package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
  117. package/components/common/pages/tasks/Tasks.vue +4 -1
  118. package/components/common/pages/tasks/table/Table.vue +25 -23
  119. package/components/common/readyToComplete/New.vue +1 -0
  120. package/components/common/split/horizontal/New.vue +1 -1
  121. package/components/common/split/horizontal/Old.vue +1 -1
  122. package/components/common/split/vertical/New.vue +42 -8
  123. package/components/common/split/vertical/Old.vue +31 -2
  124. package/components/common/split/vertical/Vertical.vue +4 -0
  125. package/components/common/tools/Actions.vue +7 -3
  126. package/components/common/tools/lib/models/interfaces.ts +1 -0
  127. package/components/common/vm/actions/add/New.vue +21 -6
  128. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
  129. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
  130. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
  131. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
  132. package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
  133. package/components/common/vm/actions/common/select/options/New.vue +14 -12
  134. package/components/common/vm/actions/common/select/options/Old.vue +16 -15
  135. package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
  136. package/components/common/vm/actions/confirm/Confirm.vue +3 -0
  137. package/components/common/vm/actions/rename/Old.vue +1 -0
  138. package/components/common/vm/snapshots/DetailView.vue +6 -6
  139. package/components/common/wizards/datastore/add/New.vue +6 -0
  140. package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
  141. package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
  142. package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
  143. package/components/common/wizards/network/add/Add.vue +13 -2
  144. package/components/common/wizards/network/add/AddNew.vue +22 -26
  145. package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
  146. package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
  147. package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
  148. package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
  149. package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
  150. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
  151. package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
  152. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
  153. package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
  154. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
  155. package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
  156. package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
  157. package/components/common/wizards/network/add/validations/common.ts +1 -1
  158. package/components/common/wizards/vm/migrate/New.vue +13 -3
  159. package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
  160. package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
  161. package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
  162. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
  163. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
  164. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
  165. package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
  166. package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
  167. package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
  168. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
  169. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
  170. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
  171. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
  172. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
  173. package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
  174. package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
  175. package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
  176. package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
  177. package/lib/models/interfaces.ts +1 -0
  178. package/lib/models/store/tasks/enums.ts +3 -0
  179. package/lib/models/store/tasks/types.ts +7 -6
  180. package/package.json +2 -2
  181. package/plugins/directives.ts +3 -5
  182. package/public/spice-console/application/agent.js +18 -17
  183. package/store/tasks/actions.ts +26 -8
  184. package/store/tasks/mappers/recentTasks.ts +1 -0
  185. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
  186. package/components/common/monitor/utilization/lib/models/enums.ts +0 -4
@@ -0,0 +1,75 @@
1
+ <template>
2
+ <div class="diagram-skeleton">
3
+ <div class="diagram-skeleton-item-header">
4
+ <div class="diagram-skeleton-item-header-icon">
5
+ <ui-icon
6
+ class="diagram-skeleton-item-header-icon-arrow"
7
+ name="arrow"
8
+ width="20"
9
+ height="20"
10
+ />
11
+ </div>
12
+ <ui-skeleton-item width="160" height="20" />
13
+ <div class="diagram-skeleton-item-header-line"></div>
14
+ <ui-skeleton-item width="400" height="20" />
15
+ </div>
16
+ <div class="diagram-skeleton-container">
17
+ <ui-skeleton-switch width="712" />
18
+ </div>
19
+ <div class="diagram-skeleton-footer">
20
+ <ui-skeleton-item width="80" height="20" />
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script setup lang="ts"></script>
26
+
27
+ <style scoped lang="scss">
28
+ .diagram-skeleton {
29
+ margin: 0 16px 16px;
30
+ border-radius: 8px;
31
+ background: var(--diagram-container-bg);
32
+ box-shadow: 0 1px 4px 0 #00000014;
33
+ padding: 16px;
34
+ overflow-clip-margin: content-box;
35
+ overflow: clip;
36
+
37
+ &-item-header {
38
+ display: flex;
39
+ column-gap: 16px;
40
+
41
+ &-icon {
42
+ width: 20px;
43
+ height: 20px;
44
+ color: var(--select-arrow);
45
+
46
+ &-arrow {
47
+ transform: rotate(180deg);
48
+ margin-right: -4px;
49
+ }
50
+ }
51
+
52
+ &-line {
53
+ height: 20px;
54
+ border-left: 1px solid var(--horizontal-line);
55
+ }
56
+ }
57
+
58
+ &-container {
59
+ display: flex;
60
+ justify-content: center;
61
+ min-width: 759px;
62
+ padding: 48px 23.5px 24px 23.5px;
63
+
64
+ //:deep(svg) {
65
+ // padding: 22px 14.5px;
66
+ //}
67
+ }
68
+
69
+ &-footer {
70
+ padding-top: 16px;
71
+ display: flex;
72
+ justify-content: flex-end;
73
+ }
74
+ }
75
+ </style>
@@ -2,7 +2,7 @@
2
2
  <ui-tooltip
3
3
  id="tooltip-theme-mode-toggle-button"
4
4
  test-id="tooltip-theme-mode-toggle-button"
5
- size="sm"
5
+ size="md"
6
6
  position="bottom"
7
7
  position-by-tooltip="center"
8
8
  >
@@ -1,35 +1,37 @@
1
1
  <template>
2
- <ui-modal
3
- :title="props.title"
4
- :texts="modalTexts"
5
- test-id="reconnect-modal"
6
- size="sm"
7
- width="560px"
8
- show
9
- @hide="emits('logout')"
10
- @submit="emits('reconnect')"
11
- >
12
- <template #content>
13
- <div class="reconnect-content">
14
- <div class="icon-content flex items-center gap-2">
15
- <span class="icon-sessions"></span>
16
- <span class="description-text">{{
17
- localization.common.reconnectDesc
18
- }}</span>
2
+ <div class="reconnect-modal-container">
3
+ <ui-modal
4
+ :title="props.title"
5
+ :texts="modalTexts"
6
+ test-id="reconnect-modal"
7
+ size="sm"
8
+ width="560px"
9
+ show
10
+ @hide="emits('logout')"
11
+ @submit="emits('reconnect')"
12
+ >
13
+ <template #content>
14
+ <div class="reconnect-content">
15
+ <div class="icon-content flex items-center gap-2">
16
+ <span class="icon-sessions"></span>
17
+ <span class="description-text">{{
18
+ localization.common.reconnectDesc
19
+ }}</span>
20
+ </div>
21
+ <div class="timer-block mt-4">
22
+ <common-countdown-timer
23
+ :timer="props.timer"
24
+ :total-time="props.totalTime"
25
+ is-hide-seconds-text
26
+ />
27
+ </div>
19
28
  </div>
20
- <div class="timer-block mt-4">
21
- <common-countdown-timer
22
- :timer="props.timer"
23
- :total-time="props.totalTime"
24
- is-hide-seconds-text
25
- />
26
- </div>
27
- </div>
28
- </template>
29
- <template #footerLeftContent>
30
- <span></span>
31
- </template>
32
- </ui-modal>
29
+ </template>
30
+ <template #footerLeftContent>
31
+ <span></span>
32
+ </template>
33
+ </ui-modal>
34
+ </div>
33
35
  </template>
34
36
 
35
37
  <script lang="ts" setup>
@@ -56,6 +58,12 @@ const modalTexts = ref<UI_I_ModalTexts>({
56
58
  </script>
57
59
 
58
60
  <style lang="scss" scoped>
61
+ .reconnect-modal-container {
62
+ :deep(.modal), :deep(.modal-background) {
63
+ z-index: calc(var(--z-modal) + 3);
64
+ }
65
+ }
66
+
59
67
  .reconnect-content {
60
68
  padding: 8px 32px 8px 32px;
61
69
 
@@ -107,24 +107,23 @@ const passwordErrorText = computed<string>(() => {
107
107
  const newPasswordErrorText = computed<string>(() => {
108
108
  if (!initValidationFields.value.newPassword) return ''
109
109
 
110
- const { current_password, new_password, confirm_password } = modelLocal.value
110
+ // const { current_password, new_password, confirm_password } = modelLocal.value
111
+ const { current_password, new_password } = modelLocal.value
111
112
 
112
113
  const validateText = validateField(
113
114
  localization.value,
114
115
  current_password,
115
116
  new_password
116
117
  )
117
- const mismatchError = getPasswordMismatchError(
118
- localization.value,
119
- new_password,
120
- confirm_password
121
- )
118
+ // const mismatchError = getPasswordMismatchError(
119
+ // localization.value,
120
+ // new_password,
121
+ // confirm_password
122
+ // )
122
123
  if (!new_password) {
123
124
  return localization.value.common.fieldRequired
124
125
  } else if (validateText) {
125
126
  return validateText
126
- } else if (mismatchError) {
127
- return mismatchError
128
127
  } else return ''
129
128
  })
130
129
  const confirmPasswordErrorText = computed<string>(() => {
@@ -166,7 +165,7 @@ const onHideModal = (): void => {
166
165
  color: #9da6ad;
167
166
  font-size: 12px;
168
167
  font-weight: 400;
169
- line-height: 14.52px;
168
+ line-height: 18px;
170
169
  margin-bottom: 20px;
171
170
  }
172
171
  &__alert {
@@ -15,6 +15,7 @@
15
15
  <common-layout-the-header-user-menu-modals-preferences-time-format
16
16
  v-model:time-format="timeFormat"
17
17
  :new-view="props.newView"
18
+ :project="props.project"
18
19
  />
19
20
  </ui-modal-block-form-standard>
20
21
 
@@ -23,6 +24,7 @@
23
24
  :new-view="props.newView"
24
25
  :selected-type="props.selectedLanguageType"
25
26
  :selected-language="props.selectedLanguage"
27
+ :project="props.project"
26
28
  @update-language="emits('update-language', $event)"
27
29
  @update-is-browser="emits('update-is-browser', $event)"
28
30
  />
@@ -32,6 +34,7 @@
32
34
  <common-layout-the-header-user-menu-modals-preferences-default-console
33
35
  v-model="consoleValue"
34
36
  :new-view="props.newView"
37
+ :project="props.project"
35
38
  />
36
39
  </ui-modal-block-form-standard>
37
40
 
@@ -55,6 +58,7 @@
55
58
  v-model:new-view-local="newViewLocal"
56
59
  v-model:is-show-notification="isShowNotification"
57
60
  :new-view="props.newView"
61
+ :project="props.project"
58
62
  />
59
63
  </ui-modal-block-form-standard>
60
64
  </ui-modal-block-standard>
@@ -19,6 +19,7 @@
19
19
  v-if="selectedTab === 'time-tab'"
20
20
  v-model:time-format="timeFormat"
21
21
  :new-view="props.newView"
22
+ :project="props.project"
22
23
  />
23
24
 
24
25
  <common-layout-the-header-user-menu-modals-preferences-change-language
@@ -26,6 +27,7 @@
26
27
  :new-view="props.newView"
27
28
  :selected-type="props.selectedLanguageType"
28
29
  :selected-language="props.selectedLanguage"
30
+ :project="props.project"
29
31
  @update-language="emits('update-language', $event)"
30
32
  @update-is-browser="emits('update-is-browser', $event)"
31
33
  />
@@ -40,6 +42,7 @@
40
42
  v-if="selectedTab === 'console-tab' && isSphere"
41
43
  v-model="consoleValue"
42
44
  :new-view="props.newView"
45
+ :project="props.project"
43
46
  />
44
47
 
45
48
  <common-layout-the-header-user-menu-modals-preferences-security
@@ -146,8 +149,12 @@ const isOn2FaImportant = ref<boolean>(false)
146
149
  watch(
147
150
  topNotifications,
148
151
  (newValue) => {
149
- if (newValue === UI_E_TopNotificationActionId.on2Fa || newValue === UI_E_TopNotificationActionId.on2FaImportant) {
150
- isOn2FaImportant.value = newValue === UI_E_TopNotificationActionId.on2FaImportant
152
+ if (
153
+ newValue === UI_E_TopNotificationActionId.on2Fa ||
154
+ newValue === UI_E_TopNotificationActionId.on2FaImportant
155
+ ) {
156
+ isOn2FaImportant.value =
157
+ newValue === UI_E_TopNotificationActionId.on2FaImportant
151
158
  selectedTab.value = 'security-tab'
152
159
  $store.dispatch('main/A_SET_TOP_NOTIFICATION_ACTION_ID', -1)
153
160
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  <script setup lang="ts">
13
13
  import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
14
- import type { UI_T_LangValue } from '~/lib/models/types'
14
+ import type { UI_T_LangValue, UI_T_Project } from '~/lib/models/types'
15
15
  import type { UI_T_SelectedRadio } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/types'
16
16
  import type { UI_I_Localization } from '~/lib/models/interfaces'
17
17
  import type { UI_I_RadioItemLang } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/interfaces'
@@ -24,6 +24,7 @@ import { defineBrowserLangFunc } from '~/components/common/layout/theHeader/lib/
24
24
  const props = defineProps<{
25
25
  newView: boolean
26
26
  selectedType: UI_T_LangValue
27
+ project: UI_T_Project
27
28
  selectedLanguage: UI_I_Dropdown | UI_T_LangValue
28
29
  }>()
29
30
 
@@ -41,12 +42,15 @@ const currentComponent = computed(() =>
41
42
  : defineAsyncComponent(() => import('./Old.vue'))
42
43
  )
43
44
 
44
- const description = computed<string>(() => {
45
- return localization.value.common.languageDesc.replaceAll(
46
- '{trademark}',
47
- String(config.public[`TRADEMARK_${useEnvLanguage()}`])
48
- )
49
- })
45
+ /* TODO SC-2104 */
46
+ const description = computed<string>(() =>
47
+ props.project === 'sphere'
48
+ ? localization.value.common.languageDesc1
49
+ : localization.value.common.languageDesc.replaceAll(
50
+ '{trademark}',
51
+ String(config.public[`TRADEMARK_${useEnvLanguage()}`])
52
+ )
53
+ )
50
54
 
51
55
  const radioOptions = readonly<UI_I_RadioItemLang[]>(
52
56
  radioOptionsFunc(localization.value)
@@ -8,11 +8,13 @@
8
8
 
9
9
  <script setup lang="ts">
10
10
  import type { UI_I_Localization } from '~/lib/models/interfaces'
11
+ import type { UI_T_Project } from '~/lib/models/types'
11
12
  import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
12
13
  import { consoleOptionsFunc } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions'
13
14
 
14
15
  const consoleValue = defineModel<string>()
15
16
  const props = defineProps<{
17
+ project: UI_T_Project
16
18
  newView: boolean
17
19
  }>()
18
20
 
@@ -24,7 +26,11 @@ const currentComponent = computed(() =>
24
26
 
25
27
  const localization = computed<UI_I_Localization>(() => useLocal())
26
28
 
29
+ /* TODO SC-2104 */
27
30
  const consoleOptions = readonly<UI_I_RadioItemConsole[]>(
28
- consoleOptionsFunc(localization.value)
31
+ consoleOptionsFunc(
32
+ localization.value,
33
+ props.newView && props.project === 'sphere'
34
+ )
29
35
  )
30
36
  </script>
@@ -2,14 +2,17 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
2
  import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
3
3
 
4
4
  export const consoleOptionsFunc = (
5
- localization: UI_I_Localization
5
+ localization: UI_I_Localization,
6
+ isSphereNewView: boolean
6
7
  ): UI_I_RadioItemConsole[] => {
7
8
  const config = useRuntimeConfig()
8
9
 
9
- const remoteConsole = localization.common.remoteConsoleVmrc.replaceAll(
10
- '{trademark}',
11
- String(config.public[`TRADEMARK_${useEnvLanguage()}`])
12
- )
10
+ const remoteConsole = isSphereNewView
11
+ ? localization.common.remoteConsoleVmrc1
12
+ : localization.common.remoteConsoleVmrc.replaceAll(
13
+ '{trademark}',
14
+ String(config.public[`TRADEMARK_${useEnvLanguage()}`])
15
+ )
13
16
 
14
17
  return [
15
18
  {
@@ -12,12 +12,13 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
12
12
  import type { UI_I_RadioItem } from '~/components/common/layout/theHeader/userMenu/lib/models/interfaces'
13
13
  import type { UI_T_TimeValue } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/models/types'
14
14
  import { formatOptionsFunc } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions'
15
+ import type { UI_T_Project } from '~/lib/models/types'
15
16
 
16
17
  const timeFormat = defineModel<UI_T_TimeValue>('timeFormat')
17
18
  const props = defineProps<{
19
+ project: UI_T_Project
18
20
  newView: boolean
19
21
  }>()
20
-
21
22
  const currentComponent = computed(() =>
22
23
  props.newView
23
24
  ? defineAsyncComponent(() => import('./New.vue'))
@@ -28,11 +29,14 @@ const localization = computed<UI_I_Localization>(() => useLocal())
28
29
 
29
30
  const config = useRuntimeConfig()
30
31
 
32
+ /* TODO SC-2104 */
31
33
  const description = computed<string>(() =>
32
- localization.value.common.timeFormatDesc.replaceAll(
33
- '{trademark}',
34
- String(config.public[`TRADEMARK_${useEnvLanguage()}`])
35
- )
34
+ props.project === 'sphere'
35
+ ? localization.value.common.timeFormatDesc1
36
+ : localization.value.common.timeFormatDesc.replaceAll(
37
+ '{trademark}',
38
+ String(config.public[`TRADEMARK_${useEnvLanguage()}`])
39
+ )
36
40
  )
37
41
 
38
42
  const formatOptions = readonly<UI_I_RadioItem[]>(
@@ -7,7 +7,7 @@ export const formatOptionsFunc = (
7
7
  return [
8
8
  {
9
9
  id: 1,
10
- label: localization.common.languageDefault,
10
+ label: localization.common.automatic,
11
11
  value: 'DEFAULT',
12
12
  testId: 'default-type',
13
13
  },
@@ -15,13 +15,9 @@
15
15
  />
16
16
  </div>
17
17
 
18
- <div class="description second-description">
19
- {{ localization.myPreferences.showNotificationDescription }}
20
- </div>
21
-
22
- <div class="flex-align-center">
18
+ <div class="flex-align-center second-description">
23
19
  <label for="show-notification">{{
24
- localization.myPreferences.showNotification
20
+ localization.myPreferences.showNotificationDescription
25
21
  }}</label>
26
22
  <input
27
23
  id="show-notification"
@@ -63,10 +59,10 @@ window.tools = new Proxy(
63
59
  <style lang="scss" scoped>
64
60
  .description {
65
61
  margin-bottom: 10px;
62
+ }
66
63
 
67
- &.second-description {
68
- margin-top: 20px;
69
- }
64
+ .second-description {
65
+ margin-top: 20px;
70
66
  }
71
67
 
72
68
  label {
@@ -30,10 +30,13 @@ const currentComponent = computed(() =>
30
30
 
31
31
  const localization = computed<UI_I_Localization>(() => useLocal())
32
32
 
33
- const description = computed<string>(() => {
34
- return localization.value.common.viewDesc.replaceAll(
35
- '{trademark}',
36
- String(config.public[`TRADEMARK_${useEnvLanguage()}`])
37
- )
38
- })
33
+ /* TODO SC-2104 */
34
+ const description = computed<string>(() =>
35
+ props.project === 'sphere'
36
+ ? localization.value.common.viewDesc1
37
+ : localization.value.common.viewDesc.replaceAll(
38
+ '{trademark}',
39
+ String(config.public[`TRADEMARK_${useEnvLanguage()}`])
40
+ )
41
+ )
39
42
  </script>
@@ -143,7 +143,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
143
143
  &.pinned {
144
144
  .nav-context {
145
145
  position: relative;
146
- z-index: calc(var(--z-default) + 1);
146
+ z-index: calc(var(--z-fixed) + 2);
147
147
  }
148
148
  }
149
149
  &:not(.pinned) {
@@ -177,6 +177,8 @@ const localization = computed<UI_I_Localization>(() => useLocal())
177
177
  }
178
178
  }
179
179
  &:not(.collapsed) {
180
+ min-width: 240px;
181
+
180
182
  :deep(.tooltip-container-hover) {
181
183
  display: none;
182
184
  }
@@ -2,7 +2,7 @@
2
2
  <atoms-modal
3
3
  :test-id="`${props.testId}-rename`"
4
4
  :title="localization.common.rename"
5
- :second-title="name"
5
+ :second-title="props.subtitle"
6
6
  :loading="props.isLoading"
7
7
  width="576px"
8
8
  class="rename"
@@ -68,12 +68,14 @@ const props = withDefaults(
68
68
  defineProps<{
69
69
  testId: string
70
70
  name: string
71
+ subtitle?: string
71
72
  label?: string
72
73
  regex?: string
73
74
  errorText?: string
74
75
  isLoading?: boolean
75
76
  }>(),
76
77
  {
78
+ subtitle: '',
77
79
  label: 'enterNewName',
78
80
  regex: undefined,
79
81
  errorText: undefined,
@@ -1,46 +1,46 @@
1
- import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
2
- import type { UI_T_Project } from '~/lib/models/types'
3
- import {
4
- allowedHostCpuFieldNotObject,
5
- // allowedHostNetworkFieldNotObject,
6
- } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/config'
7
-
8
- export const checkIsDisabledSubmit = (
9
- type: string,
10
- selectedMetric: string,
11
- selectedRows: UI_I_AdvancedCounterItem[],
12
- localSelectedObjects: string,
13
- project: UI_T_Project
14
- ): boolean => {
15
- let result = !selectedRows.length
16
-
17
- if (type === 'host') {
18
- if (selectedMetric === 'cpu') {
19
- const isAllowedFields = selectedRows.every((item) =>
20
- allowedHostCpuFieldNotObject.includes(item.nameEn)
21
- )
22
-
23
- if (!isAllowedFields && !localSelectedObjects) result = true
24
- } else if (['disk', 'network'].includes(selectedMetric)) {
25
- if (selectedMetric === 'network') {
26
- // const isAllowedFields = selectedRows.every((item) =>
27
- // allowedHostNetworkFieldNotObject.includes(item.nameEn)
28
- // )
29
-
30
- // if (!isAllowedFields) result = !localSelectedObjects
31
- result = !localSelectedObjects
32
- } else {
33
- // result = !localSelectedObjects
34
-
35
- if (project === 'procurator') {
36
- result = !localSelectedObjects
37
- }
38
- }
39
- }
40
- }
41
- // else if (type === 'vm') {
42
- // if (selectedMetric === 'network' && !localSelectedObjects) result = true
43
- // }
44
-
45
- return result
46
- }
1
+ import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
2
+ import type { UI_T_Project } from '~/lib/models/types'
3
+ import {
4
+ allowedHostCpuFieldNotObject,
5
+ // allowedHostNetworkFieldNotObject,
6
+ } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/config'
7
+
8
+ export const checkIsDisabledSubmit = (
9
+ type: string,
10
+ selectedMetric: string,
11
+ selectedRows: UI_I_AdvancedCounterItem[],
12
+ localSelectedObjects: string,
13
+ project: UI_T_Project
14
+ ): boolean => {
15
+ let result = !selectedRows.length
16
+
17
+ if (type === 'host') {
18
+ if (selectedMetric === 'cpu') {
19
+ const isAllowedFields = selectedRows.every((item) =>
20
+ allowedHostCpuFieldNotObject.includes(item.nameEn)
21
+ )
22
+
23
+ if (!isAllowedFields && !localSelectedObjects) result = true
24
+ } else if (['disk', 'network'].includes(selectedMetric)) {
25
+ if (selectedMetric === 'network') {
26
+ // const isAllowedFields = selectedRows.every((item) =>
27
+ // allowedHostNetworkFieldNotObject.includes(item.nameEn)
28
+ // )
29
+
30
+ // if (!isAllowedFields) result = !localSelectedObjects
31
+ result = !localSelectedObjects
32
+ } else {
33
+ // result = !localSelectedObjects
34
+
35
+ if (project === 'procurator') {
36
+ result = !localSelectedObjects
37
+ }
38
+ }
39
+ }
40
+ }
41
+ // else if (type === 'vm') {
42
+ // if (selectedMetric === 'network' && !localSelectedObjects) result = true
43
+ // }
44
+
45
+ return result
46
+ }
@@ -13,6 +13,7 @@ import type {
13
13
  UI_I_UtilizationDataItem,
14
14
  } from '~/components/common/monitor/utilization/lib/models/interfaces'
15
15
  import type { UI_I_Localization } from '~/lib/models/interfaces'
16
+ import type { T_NodeType } from '~/components/templates/inventory/lib/models/types'
16
17
  import { constructApiData } from '~/components/common/monitor/utilization/lib/utils'
17
18
 
18
19
  const props = defineProps<{
@@ -22,6 +23,10 @@ const props = defineProps<{
22
23
 
23
24
  const { $store }: any = useNuxtApp()
24
25
 
26
+ const routeType = computed<T_NodeType>(
27
+ () => useRoute().params.type.toString() as T_NodeType
28
+ )
29
+
25
30
  const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
26
31
 
27
32
  const currentComponent = computed(() =>
@@ -40,7 +45,8 @@ watch(
40
45
  if (props.apiData) {
41
46
  constructedData.value = constructApiData(
42
47
  props.apiData,
43
- localization.value
48
+ localization.value,
49
+ routeType.value
44
50
  )
45
51
  }
46
52
  },