bfg-common 1.5.771 → 1.5.773

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 (48) hide show
  1. package/assets/localization/local_be.json +3 -0
  2. package/assets/localization/local_en.json +3 -0
  3. package/assets/localization/local_hy.json +3 -0
  4. package/assets/localization/local_kk.json +3 -0
  5. package/assets/localization/local_ru.json +3 -0
  6. package/assets/localization/local_zh.json +3 -0
  7. package/components/atoms/table/dataGrid/DataGrid.vue +4 -19
  8. package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +29 -29
  9. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +69 -69
  10. package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
  11. package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +38 -38
  12. package/components/common/pages/backups/modals/createBackup/lib/models/interfaces.ts +8 -8
  13. package/components/common/pages/scheduledTasks/table/Table.vue +11 -3
  14. package/components/common/pages/scheduledTasks/table/{expandDetails/Old.vue → detailsList/DetailsList.vue} +4 -7
  15. package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun/HistoryRun.vue → detailsList/Table.vue} +5 -9
  16. package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/historyRunsTable.ts +2 -4
  17. package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/config/tableKeys.ts +1 -1
  18. package/components/common/pages/scheduledTasks/table/{expandDetails/lib/config/expandDetails.ts → detailsList/lib/config/tasksRowDetails.ts} +1 -3
  19. package/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable.ts +0 -3
  20. package/package.json +1 -1
  21. package/components/common/configure/securityProfile/SecurityProfile.vue +0 -28
  22. package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +0 -112
  23. package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +0 -27
  24. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +0 -61
  25. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +0 -5
  26. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +0 -109
  27. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +0 -28
  28. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +0 -5
  29. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +0 -180
  30. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +0 -64
  31. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +0 -6
  32. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +0 -1
  33. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +0 -19
  34. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +0 -22
  35. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +0 -5
  36. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +0 -76
  37. package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +0 -5
  38. package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +0 -30
  39. package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +0 -29
  40. package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +0 -30
  41. package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +0 -61
  42. package/store/inventory/modules/configure/securityProfile/actions.ts +0 -58
  43. package/store/inventory/modules/configure/securityProfile/getters.ts +0 -10
  44. package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +0 -16
  45. package/store/inventory/modules/configure/securityProfile/mutations.ts +0 -13
  46. package/store/inventory/modules/configure/securityProfile/state.ts +0 -7
  47. package/store/inventory/modules/configure/securityProfile/store.ts +0 -12
  48. /package/components/common/pages/scheduledTasks/table/{expandDetails/historyRun → detailsList}/lib/models/types.ts +0 -0
@@ -655,6 +655,7 @@
655
655
  "haProtection": "Абарона HA",
656
656
  "hardDisk": "Жорсткі дыск",
657
657
  "hardStop": "Жорсткая прыпынак",
658
+ "hardStop1": "Жорсткае прыпынак",
658
659
  "hardware": "Абсталяванне",
659
660
  "hardwareAcceleration": "Апаратнае паскарэнне",
660
661
  "hardwareHealth": "Працаздольнасць абсталявання",
@@ -2046,6 +2047,7 @@
2046
2047
  "cPUUsageMHzDuringInterval": "Загрузка працэсара ў МГц на працягу інтэрвалу",
2047
2048
  "usageCoreCount": "Выкарыстанне для ядра {0}",
2048
2049
  "hardStopConfirmation": "Пацверджанне жорсткага прыпынку",
2050
+ "hardStopVm": "Жорсткае спыненне віртуальнай машыны",
2049
2051
  "confirmHardStopVmOperation": "Пацвердзіце прымусовае спыненне працы віртуальнай машыны.",
2050
2052
  "confirmGroupHardStopVmOperation": "Пацвердзіце прымусовую спыненне працы {0} віртуальных машын.",
2051
2053
  "confirmHardStopVmOperationFirstDescription": "Аперацыя жорсткага спынення завяршае ўсе бягучыя працэсы і неадкладна выключае віртуальную машыну. Працяг гэтай аперацыі можа прывесці да страты незахаваных дадзеных або нечаканага прастою.",
@@ -2694,6 +2696,7 @@
2694
2696
  "selectAdvancedAction": "Выберыце пашыранае дзеянне",
2695
2697
  "migrateVm": "Перанос віртуальнай машыны",
2696
2698
  "powerOffVm": "Выключыце віртуальную машыну",
2699
+ "powerOffVirtualMachine": "Выключыце віртуальную машыну",
2697
2700
  "powerOffConfirmation": "Пацверджанне адключэння",
2698
2701
  "powerOffConfirmationDesc": "Вы ўпэўненыя, што хочаце выключыць віртуальную машыну “{0}”?",
2699
2702
  "powerOnVm": "Ўключэнне харчавання віртуальнай машыны",
@@ -654,6 +654,7 @@
654
654
  "haProtection": "HA Protection",
655
655
  "hardDisk": "Hard Disk",
656
656
  "hardStop": "Hard Stop",
657
+ "hardStop1": "Hard Stop",
657
658
  "hardware": "Hardware",
658
659
  "hardwareAcceleration": "Hardware Acceleration",
659
660
  "hardwareHealth": "Hardware Health",
@@ -2049,6 +2050,7 @@
2049
2050
  "cPUUsageMHzDuringInterval": "CPU usage in MHz during the interval",
2050
2051
  "usageCoreCount": "Usage for core {0}",
2051
2052
  "hardStopConfirmation": "Hard Stop Confirmation",
2053
+ "hardStopVm": "Hard Stop Virtual Machine",
2052
2054
  "confirmHardStopVmOperation": "Confirm the forced stop of the virtual machine.",
2053
2055
  "confirmGroupHardStopVmOperation": "Confirm the forced stop of {0} virtual machines.",
2054
2056
  "confirmHardStopVmOperationFirstDescription": "The hard stop operation terminates all currently running processes and immediately powers off the virtual machine. Continuing this operation may result in the loss of unsaved data or unexpected downtime.",
@@ -2698,6 +2700,7 @@
2698
2700
  "selectAdvancedAction": "Select an advanced action",
2699
2701
  "migrateVm": "Migrate VM",
2700
2702
  "powerOffVm": "Power off VM",
2703
+ "powerOffVirtualMachine": "Power Off Virtual Machine",
2701
2704
  "powerOffConfirmation": "Power Off Confirmation",
2702
2705
  "powerOffConfirmationDesc": "Are you sure you want to power off the “{0}” virtual machine?",
2703
2706
  "powerOnVm": "Power on VM",
@@ -654,6 +654,7 @@
654
654
  "haProtection": "Բարձր մատչելիության պաշտպանություն",
655
655
  "hardDisk": "Կոշտ սկավառակ",
656
656
  "hardStop": "Կոշտ կանգառ",
657
+ "hardStop1": "Կոշտ կանգառ",
657
658
  "hardware": "Սարքավորումների անվտանգություն",
658
659
  "hardwareAcceleration": "Սարքավորումների արագացում",
659
660
  "hardwareHealth": "Սարքավորումների գործունակությունը",
@@ -2049,6 +2050,7 @@
2049
2050
  "cPUUsageMHzDuringInterval": "Պրոցեսորի օգտագործումը ՄՀց միջակայքում",
2050
2051
  "usageCoreCount": "Օգտագործում միջուկի համար {0}",
2051
2052
  "hardStopConfirmation": "Հարկադիր կանգառի հաստատում",
2053
+ "hardStopVm": "Վիրտուալ մեքենայի հարկադիր կանգառ",
2052
2054
  "confirmHardStopVmOperation": "Հաստատեք վիրտուալ մեքենայի հարկադիր կանգառը։",
2053
2055
  "confirmGroupHardStopVmOperation": "Հաստատեք {0} վիրտուալ մեքենաների հարկադրանքով դադարեցումը:",
2054
2056
  "confirmHardStopVmOperationFirstDescription": "Կոշտ կանգնեցման գործողությունը դադարեցնում է բոլոր ընթացիկ գործընթացները և անմիջապես անջատում վիրտուալ մեքենան: Այս գործողությունը շարունակելը կարող է հանգեցնել չպահպանված տվյալների կորստի կամ անսպասելի դադարի:",
@@ -2698,6 +2700,7 @@
2698
2700
  "selectAdvancedAction": "Ընտրեք Ընդլայնված գործողություն",
2699
2701
  "migrateVm": "Վիրտուալ մեքենայի փոխանցում",
2700
2702
  "powerOffVm": "Անջատեք վիրտուալ մեքենան",
2703
+ "powerOffVirtualMachine": "Անջատել վիրտուալ մեքենան",
2701
2704
  "powerOffConfirmation": "Անջատման հաստատում",
2702
2705
  "powerOffConfirmationDesc": "Վստա՞հ եք, որ ուզում եք անջատել “{0}” վիրտուալ մեքենան։",
2703
2706
  "powerOnVm": "Վիրտուալ մեքենայի էլեկտրամատակարարում",
@@ -654,6 +654,7 @@
654
654
  "haProtection": "Abarona жоғары қолжетімділігі",
655
655
  "hardDisk": "Цверды дискі",
656
656
  "hardStop": "Zhorstka prypynak",
657
+ "hardStop1": "Zhorstka prypynak",
657
658
  "hardware": "Аппараттық қауіпсіздік",
658
659
  "hardwareAcceleration": "Аппараттық жеделдету",
659
660
  "hardwareHealth": "Жабдықтың өнімділігі",
@@ -2048,6 +2049,7 @@
2048
2049
  "cPUUsageMHzDuringInterval": "Аралық кезінде Мгц ЖИІЛІКТЕГІ ПРОЦЕССОРДЫ пайдалану",
2049
2050
  "usageCoreCount": "Ядро үшін пайдалану {0}",
2050
2051
  "hardStopConfirmation": "Қатты аялдаманы растау",
2052
+ "hardStopVm": "Қатты тоқтату виртуалды машинасы",
2051
2053
  "confirmHardStopVmOperation": "Виртуалды машинаның мәжбүрлі тоқтауын растаңыз.",
2052
2054
  "confirmGroupHardStopVmOperation": "{0} виртуалды машинаның жұмысын мәжбүрлеп тоқтатуды растаңыз.",
2053
2055
  "confirmHardStopVmOperationFirstDescription": "Қатты тоқтату әрекеті барлық ағымдағы жұмыс істеп тұрған процестерді тоқтатады және виртуалды машинаны дереу өшіреді. Бұл әрекетті жалғастыру сақталмаған деректердің жоғалуына немесе күтпеген тоқтап қалуға әкелуі мүмкін.",
@@ -2697,6 +2699,7 @@
2697
2699
  "selectAdvancedAction": "Кеңейтілген әрекетті таңдаңыз",
2698
2700
  "migrateVm": "VM тасымалдау",
2699
2701
  "powerOffVm": "VM өшіріңіз",
2702
+ "powerOffVirtualMachine": "Виртуалды машинасын өшіріңіз",
2700
2703
  "powerOffConfirmation": "Қуатты өшіруді растау",
2701
2704
  "powerOffConfirmationDesc": "“{0}” виртуалды машинасын шынымен өшіргіңіз келе ме?",
2702
2705
  "powerOnVm": "VM қосыңыз",
@@ -654,6 +654,7 @@
654
654
  "haProtection": "Защита высокой доступности",
655
655
  "hardDisk": "Жесткий диск",
656
656
  "hardStop": "Жесткая остановка",
657
+ "hardStop1": "Жестко остановить",
657
658
  "hardware": "Аппаратное обеспечение",
658
659
  "hardwareAcceleration": "Аппаратное ускорение",
659
660
  "hardwareHealth": "Работоспособность оборудования",
@@ -2048,6 +2049,7 @@
2048
2049
  "cPUUsageMHzDuringInterval": "Загрузка процессора в МГц в течение интервала",
2049
2050
  "usageCoreCount": "Использование для ядра {0}",
2050
2051
  "hardStopConfirmation": "Подтвердите принудительную остановку",
2052
+ "hardStopVm": "Жестко остановить виртуальную машину",
2051
2053
  "confirmHardStopVmOperation": "Подтвердите принудительную остановку работы виртуальной машины.",
2052
2054
  "confirmGroupHardStopVmOperation": "Подтвердите принудительную остановку работы {0} виртуальных машин.",
2053
2055
  "confirmHardStopVmOperationFirstDescription": "Операция жёсткой остановки завершает все текущие процессы и немедленно отключает виртуальную машину. Продолжение этой операции может привести к потере несохранённых данных или непредвиденному простою.",
@@ -2697,6 +2699,7 @@
2697
2699
  "selectAdvancedAction": "Выберите расширенное действие",
2698
2700
  "migrateVm": "Перенос ВМ",
2699
2701
  "powerOffVm": "Выключите ВМ",
2702
+ "powerOffVirtualMachine": "Выключить виртуальную машину",
2700
2703
  "powerOffConfirmation": "Подтверждение выключения",
2701
2704
  "powerOffConfirmationDesc": "Вы уверены, что хотите выключить виртуальную машину “{0}”?",
2702
2705
  "powerOnVm": "Включение питания ВМ",
@@ -654,6 +654,7 @@
654
654
  "haProtection": "高可用性保护",
655
655
  "hardDisk": "硬盘",
656
656
  "hardStop": "急停",
657
+ "hardStop1": "急停",
657
658
  "hardware": "硬件",
658
659
  "hardwareAcceleration": "硬件加速",
659
660
  "hardwareHealth": "硬件健康",
@@ -2047,6 +2048,7 @@
2047
2048
  "cPUUsageMHzDuringInterval": "时间间隔内的 CPU 使用情况(以 MHz 为单位)",
2048
2049
  "usageCoreCount": "核心 {0} 的用法",
2049
2050
  "hardStopConfirmation": "硬停止确认",
2051
+ "hardStopVm": "硬停止虚拟机",
2050
2052
  "confirmHardStopVmOperation": "确认强制停止虚拟机。",
2051
2053
  "confirmGroupHardStopVmOperation": "请确认强制停止 {0} 台虚拟机的运行。",
2052
2054
  "confirmHardStopVmOperationFirstDescription": "强制停止操作会终止所有当前正在运行的进程并立即关闭虚拟机。继续执行此操作可能会导致未保存的数据丢失或意外停机。",
@@ -2695,6 +2697,7 @@
2695
2697
  "selectAdvancedAction": "选择高级操作",
2696
2698
  "migrateVm": "迁移虚拟机",
2697
2699
  "powerOffVm": "关闭虚拟机",
2700
+ "powerOffVirtualMachine": "关闭虚拟机",
2698
2701
  "powerOffConfirmation": "断电确认",
2699
2702
  "powerOffConfirmationDesc": "您确定要关闭 “{0}” 虚拟机吗?",
2700
2703
  "powerOnVm": "启动虚拟机",
@@ -1337,33 +1337,21 @@ onUnmounted(() => {
1337
1337
  border-bottom: 1px solid var(--global-border-color);
1338
1338
 
1339
1339
  &.datagrid-selected {
1340
- color: var(--table-active-color);
1341
- //& :deep(*) {
1342
- // color: var(--table-active-color);
1343
- //}
1340
+ & :deep(*) {
1341
+ color: var(--table-active-color);
1342
+ }
1344
1343
 
1345
1344
  .datagrid-cell {
1346
1345
  background-color: var(--row-selected-bg-color);
1347
1346
  border-bottom: 1px solid var(--global-border-color);
1348
1347
  position: relative;
1349
1348
  line-height: 1rem;
1350
-
1351
- .datagrid-expandable-caret-button {
1352
- .datagrid-expandable-caret-icon {
1353
- fill: #ffffff;
1354
- }
1355
- }
1356
1349
  }
1357
1350
 
1358
1351
  .datagrid-row-detail {
1359
1352
  background-color: var(--row-selected-bg-color);
1360
1353
  border-bottom: 1px solid var(--global-border-color);
1361
1354
  }
1362
- .datagrid-row:not(.datagrid-selected) {
1363
- .datagrid-cell {
1364
- background-color: unset;
1365
- }
1366
- }
1367
1355
  }
1368
1356
 
1369
1357
  .datagrid-cell {
@@ -1572,12 +1560,9 @@ onUnmounted(() => {
1572
1560
  .datagrid-fixed-column {
1573
1561
  background-color: var(--table-hover-row-background-color);
1574
1562
  }
1575
- & .datagrid-row-sticky .datagrid-cell {
1563
+ .datagrid-cell {
1576
1564
  background-color: var(--table-hover-row-background-color);
1577
1565
  }
1578
- //.datagrid-cell {
1579
- // background-color: var(--table-hover-row-background-color);
1580
- //}
1581
1566
  }
1582
1567
  }
1583
1568
  }
@@ -1,29 +1,29 @@
1
- <template>
2
- <atoms-stack-block
3
- :has-children="false"
4
- test-id="backup-window-stack-block"
5
- >
6
- <template #stackBlockKey>
7
- <span>{{ localization.common.backupWindow }}</span>
8
- </template>
9
- <template #stackBlockContent>
10
- <input
11
- v-model="model.start_window_min"
12
- data-id="hours-input"
13
- type="number"
14
- class="hrs"
15
- />
16
- </template>
17
- </atoms-stack-block>
18
- </template>
19
-
20
- <script lang="ts" setup>
21
- import type { UI_I_Localization } from '~/lib/models/interfaces'
22
- import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
23
-
24
- const model = defineModel<UI_I_CreateBackupForm>({ required: true })
25
-
26
- const localization = computed<UI_I_Localization>(() => useLocal())
27
- </script>
28
-
29
- <style lang="scss" scoped></style>
1
+ <template>
2
+ <atoms-stack-block
3
+ :has-children="false"
4
+ test-id="backup-window-stack-block"
5
+ >
6
+ <template #stackBlockKey>
7
+ <span>{{ localization.common.backupWindow }}</span>
8
+ </template>
9
+ <template #stackBlockContent>
10
+ <input
11
+ v-model="model.start_window_min"
12
+ data-id="hours-input"
13
+ type="number"
14
+ class="hrs"
15
+ />
16
+ </template>
17
+ </atoms-stack-block>
18
+ </template>
19
+
20
+ <script lang="ts" setup>
21
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
22
+ import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
23
+
24
+ const model = defineModel<UI_I_CreateBackupForm>({ required: true })
25
+
26
+ const localization = computed<UI_I_Localization>(() => useLocal())
27
+ </script>
28
+
29
+ <style lang="scss" scoped></style>
@@ -1,69 +1,69 @@
1
- <template>
2
- <atoms-stack-block
3
- :has-children="false"
4
- test-id="backup-max-bandwidth-stack-block"
5
- >
6
- <template #stackBlockKey>
7
- <span>{{ localization.common.maxBandwidth }}</span>
8
- </template>
9
- <template #stackBlockContent>
10
- <div class="flex-align-center">
11
- <input
12
- v-model="maxBindwidthLocal"
13
- data-id="mbps-input"
14
- type="number"
15
- class="mbps"
16
- />
17
-
18
- <common-select-input
19
- v-model="selectedType"
20
- :data="maxBandwidthOptionsLocal"
21
- test-id="backup-max-bandwidth-type"
22
- class="ml-1"
23
- />
24
- </div>
25
- </template>
26
- </atoms-stack-block>
27
- </template>
28
-
29
- <script lang="ts" setup>
30
- import type { UI_I_Localization } from '~/lib/models/interfaces'
31
- import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
32
- import type { UI_T_BandwidthOption } from '~/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/models/types'
33
- import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
34
- import { maxBandwidthOptions } from '~/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options'
35
-
36
- const model = defineModel<UI_I_CreateBackupForm>({ required: true })
37
-
38
- const localization = computed<UI_I_Localization>(() => useLocal())
39
- const { $binary }: any = useNuxtApp()
40
-
41
- const maxBandwidthOptionsLocal =
42
- ref<UI_I_SelectInputItem[]>(maxBandwidthOptions)
43
-
44
- const maxBindwidthLocal = computed<number>({
45
- get() {
46
- return selectedType.value === 1
47
- ? $binary.bToGb(model.value.bandwidth_limit)
48
- : $binary.bToMb(model.value.bandwidth_limit)
49
- },
50
- set(newValue: number) {
51
- model.value.bandwidth_limit =
52
- selectedType.value === 1
53
- ? $binary.gbToB(newValue)
54
- : $binary.mbToB(newValue)
55
- },
56
- })
57
-
58
- const selectedType = ref<UI_T_BandwidthOption>(0)
59
- watch(selectedType, (newValue) => {
60
- if (newValue === 1) model.value.bandwidth_limit *= 1_024
61
- else model.value.bandwidth_limit /= 1_024
62
- })
63
- </script>
64
-
65
- <style lang="scss" scoped>
66
- #backup-transaction-logs {
67
- margin: 4px 4px 0 0;
68
- }
69
- </style>
1
+ <template>
2
+ <atoms-stack-block
3
+ :has-children="false"
4
+ test-id="backup-max-bandwidth-stack-block"
5
+ >
6
+ <template #stackBlockKey>
7
+ <span>{{ localization.common.maxBandwidth }}</span>
8
+ </template>
9
+ <template #stackBlockContent>
10
+ <div class="flex-align-center">
11
+ <input
12
+ v-model="maxBindwidthLocal"
13
+ data-id="mbps-input"
14
+ type="number"
15
+ class="mbps"
16
+ />
17
+
18
+ <common-select-input
19
+ v-model="selectedType"
20
+ :data="maxBandwidthOptionsLocal"
21
+ test-id="backup-max-bandwidth-type"
22
+ class="ml-1"
23
+ />
24
+ </div>
25
+ </template>
26
+ </atoms-stack-block>
27
+ </template>
28
+
29
+ <script lang="ts" setup>
30
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
31
+ import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
32
+ import type { UI_T_BandwidthOption } from '~/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/models/types'
33
+ import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
34
+ import { maxBandwidthOptions } from '~/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options'
35
+
36
+ const model = defineModel<UI_I_CreateBackupForm>({ required: true })
37
+
38
+ const localization = computed<UI_I_Localization>(() => useLocal())
39
+ const { $binary }: any = useNuxtApp()
40
+
41
+ const maxBandwidthOptionsLocal =
42
+ ref<UI_I_SelectInputItem[]>(maxBandwidthOptions)
43
+
44
+ const maxBindwidthLocal = computed<number>({
45
+ get() {
46
+ return selectedType.value === 1
47
+ ? $binary.bToGb(model.value.bandwidth_limit)
48
+ : $binary.bToMb(model.value.bandwidth_limit)
49
+ },
50
+ set(newValue: number) {
51
+ model.value.bandwidth_limit =
52
+ selectedType.value === 1
53
+ ? $binary.gbToB(newValue)
54
+ : $binary.mbToB(newValue)
55
+ },
56
+ })
57
+
58
+ const selectedType = ref<UI_T_BandwidthOption>(0)
59
+ watch(selectedType, (newValue) => {
60
+ if (newValue === 1) model.value.bandwidth_limit *= 1_024
61
+ else model.value.bandwidth_limit /= 1_024
62
+ })
63
+ </script>
64
+
65
+ <style lang="scss" scoped>
66
+ #backup-transaction-logs {
67
+ margin: 4px 4px 0 0;
68
+ }
69
+ </style>
@@ -1,6 +1,6 @@
1
- import type {UI_I_SelectInputItem} from "~/components/common/select/input/lib/models/interfaces";
2
-
3
- export const maxBandwidthOptions: UI_I_SelectInputItem[] = [
4
- { label: 'Mbps', value: 0 },
5
- { label: 'Gbps', value: 1 },
6
- ]
1
+ import type {UI_I_SelectInputItem} from "~/components/common/select/input/lib/models/interfaces";
2
+
3
+ export const maxBandwidthOptions: UI_I_SelectInputItem[] = [
4
+ { label: 'Mbps', value: 0 },
5
+ { label: 'Gbps', value: 1 },
6
+ ]
@@ -1,38 +1,38 @@
1
- <template>
2
- <atoms-stack-block
3
- :has-children="false"
4
- test-id="backup-strategy-stack-block"
5
- >
6
- <template #stackBlockKey>
7
- <span>{{ localization.common.strategy }}</span>
8
- </template>
9
- <template #stackBlockContent>
10
- <common-select-input
11
- v-model="model.strategy"
12
- :data="strategyOptions"
13
- test-id="backup-strategy"
14
- />
15
- </template>
16
- </atoms-stack-block>
17
- </template>
18
-
19
- <script lang="ts" setup>
20
- import type { UI_I_Localization } from '~/lib/models/interfaces'
21
- import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
22
- import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
23
- import { strategyOptionsFunc } from '~/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions'
24
-
25
- const model = defineModel<UI_I_CreateBackupForm>({ required: true })
26
-
27
- const localization = computed<UI_I_Localization>(() => useLocal())
28
-
29
- const strategyOptions = ref<UI_I_SelectInputItem[]>(
30
- strategyOptionsFunc(localization.value)
31
- )
32
- </script>
33
-
34
- <style lang="scss" scoped>
35
- #backup-transaction-logs {
36
- margin: 4px 4px 0 0;
37
- }
38
- </style>
1
+ <template>
2
+ <atoms-stack-block
3
+ :has-children="false"
4
+ test-id="backup-strategy-stack-block"
5
+ >
6
+ <template #stackBlockKey>
7
+ <span>{{ localization.common.strategy }}</span>
8
+ </template>
9
+ <template #stackBlockContent>
10
+ <common-select-input
11
+ v-model="model.strategy"
12
+ :data="strategyOptions"
13
+ test-id="backup-strategy"
14
+ />
15
+ </template>
16
+ </atoms-stack-block>
17
+ </template>
18
+
19
+ <script lang="ts" setup>
20
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
21
+ import type { UI_I_CreateBackupForm } from '~/components/common/pages/backups/modals/lib/models/interfaces'
22
+ import type { UI_I_SelectInputItem } from '~/components/common/select/input/lib/models/interfaces'
23
+ import { strategyOptionsFunc } from '~/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions'
24
+
25
+ const model = defineModel<UI_I_CreateBackupForm>({ required: true })
26
+
27
+ const localization = computed<UI_I_Localization>(() => useLocal())
28
+
29
+ const strategyOptions = ref<UI_I_SelectInputItem[]>(
30
+ strategyOptionsFunc(localization.value)
31
+ )
32
+ </script>
33
+
34
+ <style lang="scss" scoped>
35
+ #backup-transaction-logs {
36
+ margin: 4px 4px 0 0;
37
+ }
38
+ </style>
@@ -1,8 +1,8 @@
1
- export interface UI_I_DynamicSteps {
2
- general: number
3
- disks: number
4
- datastores: number
5
- configuration: number
6
- readyComplete: number
7
- schedulingOptions: number
8
- }
1
+ export interface UI_I_DynamicSteps {
2
+ general: number
3
+ disks: number
4
+ datastores: number
5
+ configuration: number
6
+ readyComplete: number
7
+ schedulingOptions: number
8
+ }
@@ -18,6 +18,7 @@
18
18
  hide-page-size
19
19
  off-select-by-row
20
20
  server-off
21
+ @row-detail="onGetRowDetails"
21
22
  >
22
23
  <template #icon="{ item }">
23
24
  <atoms-the-icon :name="item.data.iconClassName" class="icon" />
@@ -26,9 +27,9 @@
26
27
  </span>
27
28
  </template>
28
29
 
29
- <template #toggleBlock="{ item }">
30
- <common-pages-scheduled-tasks-table-expand-details
31
- :data="item[0].data.expandData"
30
+ <template #toggleBlock>
31
+ <common-pages-scheduled-tasks-table-details-list
32
+ :details-list="detailsList"
32
33
  />
33
34
  </template>
34
35
  </atoms-table-data-grid>
@@ -44,6 +45,8 @@ import { itemsPerPage } from '~/components/atoms/table/dataGrid/lib/config/items
44
45
  import type { UI_I_Localization } from '~/lib/models/interfaces'
45
46
  import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
46
47
  import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
48
+ import type { UI_I_ScheduleTableRowDetails } from '~/components/common/pages/scheduledTasks/table/lib/models/interfaces'
49
+ import { detailsListFunc } from '~/components/common/pages/scheduledTasks/table/detailsList/lib/config/tasksRowDetails'
47
50
  import * as scheduledTaskTable from '~/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable'
48
51
 
49
52
  const props = defineProps<{
@@ -67,6 +70,11 @@ const headItems = computed<UI_I_HeadItem[]>(() =>
67
70
  const bodyItems = computed<UI_I_BodyItem[][]>(() => {
68
71
  return scheduledTaskTable.bodyItems(props.dataTable || [])
69
72
  })
73
+
74
+ const detailsList = ref<UI_I_ScheduleTableRowDetails[]>([])
75
+ const onGetRowDetails = (key: number): void => {
76
+ detailsList.value = detailsListFunc(props.dataTable[key], localization.value)
77
+ }
70
78
  </script>
71
79
 
72
80
  <style lang="scss" scoped>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="details-list w-full">
3
3
  <div
4
- v-for="(item, key) in props.expandData"
4
+ v-for="(item, key) in props.detailsList"
5
5
  :key="key"
6
6
  :class="[
7
7
  'clr-row details-list__row',
@@ -33,7 +33,7 @@
33
33
  <span v-else>{{ item.value }}</span>
34
34
  </template>
35
35
 
36
- <common-pages-scheduled-tasks-table-expand-details-history-run
36
+ <common-pages-scheduled-tasks-table-details-list-table
37
37
  v-else
38
38
  :data-table="item.value"
39
39
  :total-items="item.value.length"
@@ -46,14 +46,11 @@
46
46
  </template>
47
47
 
48
48
  <script lang="ts" setup>
49
- import type { UI_I_DataTableBodyData } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
50
- // import type { UI_I_Localization } from '~/node_modules/bfg-common/lib/models/interfaces'
49
+ import type { UI_I_ScheduleTableRowDetails } from '~/components/common/pages/scheduledTasks/table/lib/models/interfaces'
51
50
 
52
51
  const props = defineProps<{
53
- expandData: UI_I_DataTableBodyData[]
52
+ detailsList: UI_I_ScheduleTableRowDetails
54
53
  }>()
55
-
56
- // const localization = computed<UI_I_Localization>(() => useLocal())
57
54
  </script>
58
55
 
59
56
  <style lang="scss" scoped>
@@ -1,6 +1,5 @@
1
1
  <template>
2
2
  <atoms-table-data-grid
3
- :selected-row="null"
4
3
  :page-size="1"
5
4
  :page="1"
6
5
  :head-items="headItems"
@@ -8,8 +7,8 @@
8
7
  :total-items="props.totalItems"
9
8
  :total-pages="props.totalPages"
10
9
  :loading="false"
11
- test-id="scheduled-tasks-history-runs-table"
12
- class="history-runs-table"
10
+ test-id="events-table"
11
+ class="scheduled-tasks-history-runs-table"
13
12
  off-select-by-row
14
13
  hide-footer
15
14
  >
@@ -23,13 +22,10 @@
23
22
  </template>
24
23
 
25
24
  <script setup lang="ts">
26
- import type {
27
- UI_I_HeadItem,
28
- UI_I_BodyItem,
29
- } from '~/components/atoms/table/compact/lib/models/interfaces'
25
+ import type { UI_I_HeadItem , UI_I_BodyItem} from '~/components/atoms/table/compact/lib/models/interfaces'
30
26
  import type { UI_I_Localization } from '~/lib/models/interfaces'
31
27
  import type { UI_I_ScheduledTasksTableItem } from '~/components/common/pages/scheduledTasks/lib/models/interfaces'
32
- import * as historyRunTable from '~/components/common/pages/scheduledTasks/table/expandDetails/historyRun/lib/config/historyRunsTable'
28
+ import * as historyRunTable from '~/components/common/pages/scheduledTasks/table/detailsList/lib/config/historyRunsTable'
33
29
 
34
30
  const props = defineProps<{
35
31
  dataTable: UI_I_ScheduledTasksTableItem['last_5_run']
@@ -48,7 +44,7 @@ const bodyItems = computed<UI_I_BodyItem[][]>(() => {
48
44
  </script>
49
45
 
50
46
  <style lang="scss" scoped>
51
- .history-runs-table {
47
+ .data-table {
52
48
  height: inherit;
53
49
  :deep(.datagrid-outer-wrapper) {
54
50
  height: inherit;