bfg-common 1.4.860 → 1.4.861
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.
- package/.idea/inspectionProfiles/Project_Default.xml +1 -2
- package/assets/localization/local_be.json +3009 -3012
- package/assets/localization/local_en.json +2 -5
- package/assets/localization/local_hy.json +2 -5
- package/assets/localization/local_kk.json +2 -5
- package/assets/localization/local_ru.json +2 -5
- package/assets/localization/local_zh.json +2 -5
- package/assets/scss/common/normalize.scss +361 -361
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/autocomplete/Autocomplete.vue +301 -301
- package/components/atoms/collapse/CollapseNav.vue +164 -164
- package/components/atoms/dropdown/dropdown/Dropdown.vue +168 -168
- package/components/atoms/modal/bySteps/BySteps.vue +253 -253
- package/components/atoms/stack/StackBlock.vue +185 -185
- package/components/atoms/table/dataGrid/DataGrid.vue +1704 -1704
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +222 -222
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/browse/BrowseNew.vue +237 -237
- package/components/common/browse/BrowseOld.vue +217 -217
- package/components/common/browse/blocks/contents/Files.vue +37 -37
- package/components/common/browse/blocks/contents/FilesOld.vue +72 -72
- package/components/common/browse/blocks/contents/filesNew/FilesNew.vue +96 -96
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/chartOptionsModal/counters/timespan/form/Form.vue +313 -40
- package/components/common/context/Context.vue +111 -111
- package/components/common/context/lib/models/interfaces.ts +30 -30
- package/components/common/context/recursion/Recursion.vue +87 -87
- package/components/common/context/recursion/RecursionOld.vue +227 -227
- package/components/common/details/DetailsItem.vue +109 -109
- package/components/common/graph/Graph.vue +104 -104
- package/components/common/graph/GraphOld.vue +31 -50
- package/components/common/layout/theHeader/helpMenu/About.vue +82 -82
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +103 -103
- package/components/common/modals/unsavedChanges/UnsavedChanges.vue +56 -56
- package/components/common/monitor/advanced/Advanced.vue +3 -0
- package/components/common/monitor/advanced/AdvancedNew.vue +2 -0
- package/components/common/monitor/advanced/AdvancedOld.vue +2 -0
- package/components/common/monitor/advanced/graphView/GraphView.vue +18 -16
- package/components/common/monitor/advanced/tools/Tools.vue +3 -0
- package/components/common/monitor/advanced/tools/ToolsNew.vue +2 -0
- package/components/common/monitor/advanced/tools/ToolsOld.vue +2 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +114 -113
- package/components/common/monitor/advanced/tools/chartOptionsModal/Notification.vue +20 -13
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +79 -28
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +56 -75
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +58 -19
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{tableOld/lib → lib}/config/tableConfig.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1040 -1040
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +47 -71
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +26 -21
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +29 -17
- package/components/common/monitor/overview/Overview.vue +221 -224
- package/components/common/monitor/overview/OverviewNew.vue +142 -142
- package/components/common/monitor/overview/OverviewOld.vue +139 -139
- package/components/common/monitor/overview/filters/Filters.vue +166 -166
- package/components/common/monitor/overview/filters/FiltersNew.vue +172 -172
- package/components/common/monitor/overview/filters/FiltersOld.vue +151 -151
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +175 -175
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalNew.vue +181 -186
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalOld.vue +161 -161
- package/components/common/pages/hardwareHealth/historyTestimony/Graph.vue +30 -26
- package/components/common/pages/home/StatusContent.vue +49 -49
- package/components/common/pages/home/headline/Headline.vue +45 -45
- package/components/common/pages/home/headline/HeadlineOld.vue +42 -42
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/Widgets.vue +49 -49
- package/components/common/pages/home/widgets/WidgetsNew.vue +86 -86
- package/components/common/pages/home/widgets/WidgetsOld.vue +34 -34
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/Vms.vue +26 -26
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/packages/Packages.vue +208 -208
- package/components/common/recursionTree/RecursionTree.vue +223 -223
- package/components/common/select/button/ButtonDropdown.vue +108 -108
- package/components/common/spiceConsole/Drawer.vue +370 -370
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/split/horizontal/HorizontalNew.vue +376 -376
- package/components/common/split/horizontal/HorizontalOld.vue +337 -337
- package/components/common/split/vertical/Vertical.vue +160 -160
- package/components/common/vm/actions/add/Add.vue +621 -621
- package/components/common/vm/actions/clone/Clone.vue +639 -639
- package/components/common/vm/actions/clone/lib/config/steps.ts +129 -129
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +271 -271
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareNew.vue +271 -271
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardwareOld.vue +174 -174
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +694 -694
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/browseView/BrowseView.vue +219 -219
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +117 -117
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +161 -161
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +165 -165
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +70 -70
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaOld.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +338 -338
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/Limit.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +364 -364
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +229 -229
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskOld.vue +247 -247
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeOld.vue +56 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +44 -44
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +283 -283
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetworkNew.vue +124 -124
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/LocationOld.vue +134 -134
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/New.vue +63 -63
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/lib/config/config.ts +95 -95
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +69 -69
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressOld.vue +83 -83
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +205 -205
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +66 -66
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoOld.vue +62 -62
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +84 -84
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoOld.vue +76 -76
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +15 -15
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteOld.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGrid.vue +41 -41
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +81 -81
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridOld.vue +84 -84
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbControllerNew.vue +56 -56
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/OtherNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardNew.vue +104 -104
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCardOld.vue +112 -112
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +54 -54
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +145 -145
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptionsNew.vue +75 -75
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +26 -26
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +57 -57
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +42 -42
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +25 -25
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +171 -171
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +50 -50
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +141 -141
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/New.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +30 -30
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +39 -39
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +102 -102
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordOld.vue +94 -94
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +38 -38
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionOld.vue +44 -44
- package/components/common/vm/actions/common/select/storage/Storage.vue +130 -130
- package/components/common/vm/actions/common/select/storage/StorageOld.vue +129 -129
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/datastore/add/lib/config/steps.ts +138 -138
- package/components/common/wizards/vm/migrate/Migrate.vue +302 -302
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +220 -220
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/components/common/wizards/vm/migrate/select/network/table/network/Network.vue +150 -150
- package/components/common/wizards/vm/migrate/select/network/table/network/lib/config/advancedTable.ts +91 -91
- package/components/common/wizards/vm/migrate/select/priority/Priority.vue +43 -43
- package/composables/productNameLocal.ts +30 -30
- package/composables/useAppVersion.ts +21 -21
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- package/plugins/recursion.ts +311 -311
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +383 -383
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/mappers/recentTasks.ts +64 -64
- package/components/common/chartOptionsModal/counters/timespan/form/FormNew.vue +0 -241
- package/components/common/chartOptionsModal/counters/timespan/form/FormOld.vue +0 -372
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +0 -190
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +0 -189
- package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationNew.vue +0 -20
- package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationOld.vue +0 -27
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsNew.vue +0 -160
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +0 -114
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +0 -97
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersOld.vue +0 -110
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +0 -46
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/options.ts +0 -19
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/tableData.ts +0 -71
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/utils/constructTable.ts +0 -29
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/TableOld.vue +0 -85
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +0 -150
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +0 -95
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/ObjectNew.vue +0 -56
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/options.ts +0 -25
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/tableData.ts +0 -47
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/utils/constructTable.ts +0 -22
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectOld/ObjectOld.vue +0 -84
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/MetricsOld.vue +0 -32
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/MetricsNew.vue +0 -101
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/lib/utils/constructAccordion.ts +0 -32
- package/lib/utils/date.ts +0 -12
- /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{tableOld/lib → lib}/models/types.ts +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-container">
|
|
3
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-table
|
|
4
|
-
:chart="props.chart"
|
|
5
|
-
:type="props.type"
|
|
6
|
-
:selected-keys="props.selectedKeys"
|
|
7
|
-
:total-cores="props.totalCores"
|
|
8
|
-
@select-row="emits('select-row', $event)"
|
|
9
|
-
@total-items="totalMetricItemsLocal = $event"
|
|
10
|
-
/>
|
|
11
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-timespan
|
|
12
|
-
:type="props.type"
|
|
13
|
-
:chart="props.chart"
|
|
14
|
-
:language="props.language"
|
|
15
|
-
:selected-chart-type="props.selectedChartType"
|
|
16
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
17
|
-
:units-count="props.unitsCount"
|
|
18
|
-
:period-type="props.periodType"
|
|
19
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
20
|
-
:custom-date-from="props.customDateFrom"
|
|
21
|
-
:custom-date-to="props.customDateTo"
|
|
22
|
-
:custom-time-from="props.customTimeFrom"
|
|
23
|
-
:custom-time-to="props.customTimeTo"
|
|
24
|
-
:total-cores="props.totalCores"
|
|
25
|
-
:host-id="props.hostId"
|
|
26
|
-
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
27
|
-
:total-metric-items="totalMetricItemsLocal"
|
|
28
|
-
:selected-objects="props.selectedObjects"
|
|
29
|
-
:objects-loading="props.objectsLoading"
|
|
30
|
-
:objects-data="props.objectsData"
|
|
31
|
-
:valid-date-end="props.validDateEnd"
|
|
32
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
33
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
34
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
35
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
36
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
37
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
38
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
39
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
40
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
41
|
-
@select-objects="emits('select-objects', $event)"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script setup lang="ts">
|
|
47
|
-
import type {
|
|
48
|
-
UI_T_ChartHost,
|
|
49
|
-
UI_T_ChartVm,
|
|
50
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
51
|
-
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
52
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
53
|
-
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
54
|
-
|
|
55
|
-
const totalMetricItemsLocal = defineModel<number>('totalMetricItems', {
|
|
56
|
-
required: true,
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
const props = defineProps<{
|
|
60
|
-
language: string
|
|
61
|
-
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
62
|
-
type: UI_T_AdvancedType
|
|
63
|
-
selectedKeys: number[]
|
|
64
|
-
selectedChartType: string
|
|
65
|
-
selectedTimespanType: string
|
|
66
|
-
unitsCount: number
|
|
67
|
-
periodType: string
|
|
68
|
-
selectedCustomTime: string
|
|
69
|
-
customDateFrom: string
|
|
70
|
-
customDateTo: string
|
|
71
|
-
customTimeFrom: string
|
|
72
|
-
customTimeTo: string
|
|
73
|
-
totalCores: number
|
|
74
|
-
hostId: string
|
|
75
|
-
selectedMetricsKeys: number[]
|
|
76
|
-
selectedObjects: string
|
|
77
|
-
objectsLoading: boolean
|
|
78
|
-
objectsData: UI_I_ObjectItem[]
|
|
79
|
-
validDateEnd: number
|
|
80
|
-
}>()
|
|
81
|
-
|
|
82
|
-
const emits = defineEmits<{
|
|
83
|
-
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
84
|
-
(event: 'update-chart-type', value: string): void
|
|
85
|
-
(event: 'update-custom-time', value: string): void
|
|
86
|
-
(event: 'update-timespan-type', value: string): void
|
|
87
|
-
(event: 'update-unit-count', value: number): void
|
|
88
|
-
(event: 'update-period-type', value: string): void
|
|
89
|
-
(event: 'update-custom-date-from', value: string): void
|
|
90
|
-
(event: 'update-custom-date-to', value: string): void
|
|
91
|
-
(event: 'update-custom-time-from', value: string): void
|
|
92
|
-
(event: 'update-custom-time-to', value: string): void
|
|
93
|
-
(event: 'select-objects', value: string): void
|
|
94
|
-
}>()
|
|
95
|
-
</script>
|
|
96
|
-
|
|
97
|
-
<style scoped lang="scss">
|
|
98
|
-
.chart-option-counters-container {
|
|
99
|
-
margin-top: 20px;
|
|
100
|
-
flex-basis: 80%;
|
|
101
|
-
padding-left: 15px;
|
|
102
|
-
max-width: 80%;
|
|
103
|
-
}
|
|
104
|
-
@media (max-width: 1024px) {
|
|
105
|
-
.chart-option-counters-container {
|
|
106
|
-
max-width: unset;
|
|
107
|
-
padding-left: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
</style>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="chart-options-table-container">
|
|
3
|
-
<ui-data-table
|
|
4
|
-
test-id="chart-options-table"
|
|
5
|
-
:data="dataLocal"
|
|
6
|
-
:options="options"
|
|
7
|
-
size="sm"
|
|
8
|
-
@select-row="onSelectRow"
|
|
9
|
-
/>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script setup lang="ts">
|
|
14
|
-
import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
15
|
-
import type { UI_I_DataTableBody } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
16
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
18
|
-
import { options } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/options'
|
|
19
|
-
import { tableDataFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/tableData'
|
|
20
|
-
|
|
21
|
-
const selectedCountersLocal = defineModel<number[]>('selectedCounters', {
|
|
22
|
-
required: true,
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
const props = defineProps<{
|
|
26
|
-
counters: UI_I_AdvancedCounterItem[]
|
|
27
|
-
}>()
|
|
28
|
-
|
|
29
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
30
|
-
|
|
31
|
-
const dataLocal = computed<UI_I_DataTable>(() =>
|
|
32
|
-
tableDataFunc(localization.value, props.counters, selectedCountersLocal.value)
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
36
|
-
selectedCountersLocal.value = value.map((item) => item.row)
|
|
37
|
-
}
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<style scoped lang="scss">
|
|
41
|
-
.chart-options-table-container {
|
|
42
|
-
:deep(.bottom-grid-content) {
|
|
43
|
-
max-height: 235px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DataTableOptions } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const options: UI_I_DataTableOptions = {
|
|
4
|
-
perPageOptions: [
|
|
5
|
-
{ text: '10', value: 10 },
|
|
6
|
-
{ text: '25', value: 25 },
|
|
7
|
-
{ text: '50', value: 50 },
|
|
8
|
-
{ text: '100', value: 100 },
|
|
9
|
-
],
|
|
10
|
-
isSelectable: true,
|
|
11
|
-
showPagination: false,
|
|
12
|
-
showPageInfo: false,
|
|
13
|
-
isSortable: true,
|
|
14
|
-
server: false,
|
|
15
|
-
isResizable: true,
|
|
16
|
-
showSearch: false,
|
|
17
|
-
showColumnManager: false,
|
|
18
|
-
inBlock: true,
|
|
19
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DataTable } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
4
|
-
import { constructTable } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/utils/constructTable'
|
|
5
|
-
|
|
6
|
-
export const tableDataFunc = (
|
|
7
|
-
localization: UI_I_Localization,
|
|
8
|
-
items: UI_I_AdvancedCounterItem[],
|
|
9
|
-
selectedKeys: number[]
|
|
10
|
-
): UI_I_DataTable => {
|
|
11
|
-
const currentBody = constructTable(items)
|
|
12
|
-
const selectedRows: number[] = []
|
|
13
|
-
|
|
14
|
-
currentBody.forEach((item) => {
|
|
15
|
-
if (selectedKeys.includes(item.row)) {
|
|
16
|
-
selectedRows.push(item.row)
|
|
17
|
-
}
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
return {
|
|
21
|
-
id: 'chart-options-table',
|
|
22
|
-
selectedRows,
|
|
23
|
-
isAllSelected: false,
|
|
24
|
-
title: `${localization.common.counters} (${items.length})`,
|
|
25
|
-
subTitle: '',
|
|
26
|
-
header: [
|
|
27
|
-
{
|
|
28
|
-
col: 'col0',
|
|
29
|
-
colName: 'name',
|
|
30
|
-
text: localization.common.name,
|
|
31
|
-
isSortable: true,
|
|
32
|
-
sort: 'asc',
|
|
33
|
-
width: '20%',
|
|
34
|
-
show: true,
|
|
35
|
-
filter: true,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
col: 'col1',
|
|
39
|
-
colName: 'description',
|
|
40
|
-
text: localization.common.description,
|
|
41
|
-
isSortable: true,
|
|
42
|
-
sort: 'asc',
|
|
43
|
-
width: '50%',
|
|
44
|
-
show: true,
|
|
45
|
-
filter: true,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
col: 'col2',
|
|
49
|
-
colName: 'measurement',
|
|
50
|
-
text: localization.common.measurement,
|
|
51
|
-
isSortable: true,
|
|
52
|
-
sort: 'asc',
|
|
53
|
-
width: '20%',
|
|
54
|
-
show: true,
|
|
55
|
-
filter: true,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
col: 'col3',
|
|
59
|
-
colName: 'units',
|
|
60
|
-
text: localization.common.units,
|
|
61
|
-
isSortable: true,
|
|
62
|
-
sort: 'asc',
|
|
63
|
-
width: '10%',
|
|
64
|
-
show: true,
|
|
65
|
-
filter: true,
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
|
|
69
|
-
body: currentBody,
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { UI_I_DataTableBody } from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
2
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
3
|
-
|
|
4
|
-
export const constructTable = (
|
|
5
|
-
items: UI_I_AdvancedCounterItem[]
|
|
6
|
-
): UI_I_DataTableBody[] =>
|
|
7
|
-
items.map((item, key) => {
|
|
8
|
-
return {
|
|
9
|
-
row: key,
|
|
10
|
-
data: [
|
|
11
|
-
{
|
|
12
|
-
col: 'col0',
|
|
13
|
-
text: item.name,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
col: 'col1',
|
|
17
|
-
text: item.description,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
col: 'col2',
|
|
21
|
-
text: item.measurement,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
col: 'col3',
|
|
25
|
-
text: item.units,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
}
|
|
29
|
-
})
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
-
<span class="chart-options-grid-title">{{
|
|
4
|
-
localization.inventoryMonitor.selectCountersForThisChart
|
|
5
|
-
}}</span>
|
|
6
|
-
|
|
7
|
-
<atoms-table-data-grid
|
|
8
|
-
v-model:selected-row="selectedCountersLocal"
|
|
9
|
-
v-model:column-keys="columnItems"
|
|
10
|
-
v-model:page-size="paginationLocal.pageSize"
|
|
11
|
-
v-model:page="paginationLocal.page"
|
|
12
|
-
type="checkbox"
|
|
13
|
-
class="data-table"
|
|
14
|
-
test-id="chart-options-table"
|
|
15
|
-
:head-items="headItems"
|
|
16
|
-
:body-items="bodyItems"
|
|
17
|
-
:total-items="props.totalItems"
|
|
18
|
-
:total-pages="props.totalPages"
|
|
19
|
-
hide-footer
|
|
20
|
-
server-off
|
|
21
|
-
@change="emits('change-row', $event)"
|
|
22
|
-
/>
|
|
23
|
-
</div>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script setup lang="ts">
|
|
27
|
-
import type {
|
|
28
|
-
UI_I_HeadItem,
|
|
29
|
-
UI_I_BodyItem,
|
|
30
|
-
UI_I_ColumnKey,
|
|
31
|
-
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
32
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
33
|
-
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
34
|
-
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
35
|
-
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/lib/config/tableConfig'
|
|
36
|
-
|
|
37
|
-
const selectedCountersLocal = defineModel<number[]>('selectedCounters', {
|
|
38
|
-
required: true,
|
|
39
|
-
})
|
|
40
|
-
const paginationLocal = defineModel<UI_I_Pagination>('pagination', {
|
|
41
|
-
required: true,
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
const props = defineProps<{
|
|
45
|
-
counters: UI_I_AdvancedCounterItem[]
|
|
46
|
-
totalItems: number
|
|
47
|
-
totalPages: number
|
|
48
|
-
}>()
|
|
49
|
-
|
|
50
|
-
const emits = defineEmits<{
|
|
51
|
-
(event: 'change-row', value: number[]): void
|
|
52
|
-
}>()
|
|
53
|
-
|
|
54
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
-
|
|
56
|
-
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
57
|
-
table.columnKeys(localization.value)
|
|
58
|
-
)
|
|
59
|
-
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
60
|
-
table.headItems(localization.value)
|
|
61
|
-
)
|
|
62
|
-
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
63
|
-
watch(
|
|
64
|
-
() => props.counters,
|
|
65
|
-
(newValue) => {
|
|
66
|
-
if (!newValue.length) return
|
|
67
|
-
|
|
68
|
-
bodyItems.value = table.bodyItems(newValue)
|
|
69
|
-
},
|
|
70
|
-
{ deep: true, immediate: true }
|
|
71
|
-
)
|
|
72
|
-
</script>
|
|
73
|
-
|
|
74
|
-
<style scoped lang="scss">
|
|
75
|
-
.chart-option-counters-vertical-split {
|
|
76
|
-
.chart-options-grid-title {
|
|
77
|
-
display: block;
|
|
78
|
-
margin-bottom: -20px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:deep(.datagrid-table-wrapper) {
|
|
82
|
-
max-height: 176px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</style>
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="timespan-container">
|
|
3
|
-
<common-chart-options-modal-counters-timespan-form
|
|
4
|
-
:language="props.language"
|
|
5
|
-
:selected-chart-type="props.selectedChartType"
|
|
6
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
-
:units-count="props.unitsCount"
|
|
8
|
-
:period-type="props.periodType"
|
|
9
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
-
:custom-date-from="props.customDateFrom"
|
|
11
|
-
:custom-date-to="props.customDateTo"
|
|
12
|
-
:custom-time-from="props.customTimeFrom"
|
|
13
|
-
:custom-time-to="props.customTimeTo"
|
|
14
|
-
:valid-date-end="props.validDateEnd"
|
|
15
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
16
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
17
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
18
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
19
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
20
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
21
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
22
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
23
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
24
|
-
/>
|
|
25
|
-
<div class="timespan-object-container">
|
|
26
|
-
<div class="chart-type-container">
|
|
27
|
-
<p class="title-block">{{ localization.inventoryMonitor.chartType }}</p>
|
|
28
|
-
<div class="radio-buttons-container">
|
|
29
|
-
<ui-radio
|
|
30
|
-
v-model="chartTypeLocal"
|
|
31
|
-
:label="localization.inventoryMonitor.lineGraph"
|
|
32
|
-
test-id="line-graph"
|
|
33
|
-
value="spline"
|
|
34
|
-
size="sm"
|
|
35
|
-
/>
|
|
36
|
-
<ui-radio
|
|
37
|
-
v-model="chartTypeLocal"
|
|
38
|
-
:label="localization.inventoryMonitor.stackedGraph"
|
|
39
|
-
test-id="stacked-graph"
|
|
40
|
-
value="area"
|
|
41
|
-
size="sm"
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-timespan-object
|
|
46
|
-
:type="props.type"
|
|
47
|
-
:chart="props.chart"
|
|
48
|
-
:total-cores="props.totalCores"
|
|
49
|
-
:host-id="props.hostId"
|
|
50
|
-
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
51
|
-
:total-metric-items="props.totalMetricItems"
|
|
52
|
-
:selected-objects="props.selectedObjects"
|
|
53
|
-
:loading="props.objectsLoading"
|
|
54
|
-
:current-items="props.objectsData"
|
|
55
|
-
@select-objects="emits('select-objects', $event)"
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</template>
|
|
60
|
-
|
|
61
|
-
<script setup lang="ts">
|
|
62
|
-
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
63
|
-
import type {
|
|
64
|
-
UI_T_ChartHost,
|
|
65
|
-
UI_T_ChartVm,
|
|
66
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
67
|
-
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
68
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
69
|
-
|
|
70
|
-
const props = defineProps<{
|
|
71
|
-
type: UI_T_AdvancedType
|
|
72
|
-
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
73
|
-
language: string
|
|
74
|
-
selectedChartType: string
|
|
75
|
-
selectedTimespanType: string
|
|
76
|
-
unitsCount: number
|
|
77
|
-
periodType: string
|
|
78
|
-
selectedCustomTime: string
|
|
79
|
-
customDateFrom: string
|
|
80
|
-
customDateTo: string
|
|
81
|
-
customTimeFrom: string
|
|
82
|
-
customTimeTo: string
|
|
83
|
-
totalCores: number
|
|
84
|
-
hostId: string
|
|
85
|
-
selectedMetricsKeys: number[]
|
|
86
|
-
totalMetricItems: number
|
|
87
|
-
selectedObjects: string
|
|
88
|
-
objectsLoading: boolean
|
|
89
|
-
objectsData: UI_I_ObjectItem[]
|
|
90
|
-
validDateEnd: number
|
|
91
|
-
}>()
|
|
92
|
-
|
|
93
|
-
const emits = defineEmits<{
|
|
94
|
-
(event: 'update-chart-type', value: string): void
|
|
95
|
-
(event: 'update-custom-time', value: string): void
|
|
96
|
-
(event: 'update-timespan-type', value: string): void
|
|
97
|
-
(event: 'update-unit-count', value: number): void
|
|
98
|
-
(event: 'update-period-type', value: string): void
|
|
99
|
-
(event: 'update-custom-date-from', value: string): void
|
|
100
|
-
(event: 'update-custom-date-to', value: string): void
|
|
101
|
-
(event: 'update-custom-time-from', value: string): void
|
|
102
|
-
(event: 'update-custom-time-to', value: string): void
|
|
103
|
-
(event: 'select-objects', value: string): void
|
|
104
|
-
}>()
|
|
105
|
-
|
|
106
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
107
|
-
|
|
108
|
-
const chartTypeLocal = computed<string>({
|
|
109
|
-
get() {
|
|
110
|
-
return props.selectedChartType
|
|
111
|
-
},
|
|
112
|
-
set(newValue) {
|
|
113
|
-
emits('update-chart-type', newValue)
|
|
114
|
-
},
|
|
115
|
-
})
|
|
116
|
-
</script>
|
|
117
|
-
|
|
118
|
-
<style scoped lang="scss">
|
|
119
|
-
.timespan-container {
|
|
120
|
-
display: grid;
|
|
121
|
-
grid-template-columns: 55% 45%;
|
|
122
|
-
grid-gap: 12px;
|
|
123
|
-
margin-top: 12px;
|
|
124
|
-
|
|
125
|
-
.timespan-object-container {
|
|
126
|
-
display: grid;
|
|
127
|
-
grid-template-rows: max-content 1fr;
|
|
128
|
-
grid-gap: 12px;
|
|
129
|
-
|
|
130
|
-
.chart-type-container {
|
|
131
|
-
padding: 12px;
|
|
132
|
-
background: var(--chart-options-timespan-blocks-bg);
|
|
133
|
-
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.0784313725);
|
|
134
|
-
border-radius: 8px;
|
|
135
|
-
|
|
136
|
-
.title-block {
|
|
137
|
-
color: var(--chart-options-timespan-blocks-title-color);
|
|
138
|
-
font-size: 14px;
|
|
139
|
-
font-weight: 500;
|
|
140
|
-
margin-bottom: 16px;
|
|
141
|
-
}
|
|
142
|
-
.radio-buttons-container {
|
|
143
|
-
display: flex;
|
|
144
|
-
flex-direction: column;
|
|
145
|
-
grid-gap: 12px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
</style>
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="timespan-objects-section-direction">
|
|
3
|
-
<common-chart-options-modal-counters-timespan-form
|
|
4
|
-
:language="props.language"
|
|
5
|
-
:selected-chart-type="props.selectedChartType"
|
|
6
|
-
:selected-timespan-type="props.selectedTimespanType"
|
|
7
|
-
:units-count="props.unitsCount"
|
|
8
|
-
:period-type="props.periodType"
|
|
9
|
-
:selected-custom-time="props.selectedCustomTime"
|
|
10
|
-
:custom-date-from="props.customDateFrom"
|
|
11
|
-
:custom-date-to="props.customDateTo"
|
|
12
|
-
:custom-time-from="props.customTimeFrom"
|
|
13
|
-
:custom-time-to="props.customTimeTo"
|
|
14
|
-
:valid-date-end="props.validDateEnd"
|
|
15
|
-
@update-chart-type="emits('update-chart-type', $event)"
|
|
16
|
-
@update-custom-time="emits('update-custom-time', $event)"
|
|
17
|
-
@update-timespan-type="emits('update-timespan-type', $event)"
|
|
18
|
-
@update-unit-count="emits('update-unit-count', $event)"
|
|
19
|
-
@update-period-type="emits('update-period-type', $event)"
|
|
20
|
-
@update-custom-date-from="emits('update-custom-date-from', $event)"
|
|
21
|
-
@update-custom-date-to="emits('update-custom-date-to', $event)"
|
|
22
|
-
@update-custom-time-from="emits('update-custom-time-from', $event)"
|
|
23
|
-
@update-custom-time-to="emits('update-custom-time-to', $event)"
|
|
24
|
-
/>
|
|
25
|
-
<common-monitor-advanced-tools-chart-options-modal-counters-timespan-object
|
|
26
|
-
:type="props.type"
|
|
27
|
-
:chart="props.chart"
|
|
28
|
-
:total-cores="props.totalCores"
|
|
29
|
-
:host-id="props.hostId"
|
|
30
|
-
:selected-metrics-keys="props.selectedMetricsKeys"
|
|
31
|
-
:total-metric-items="props.totalMetricItems"
|
|
32
|
-
:selected-objects="props.selectedObjects"
|
|
33
|
-
:loading="props.objectsLoading"
|
|
34
|
-
:current-items="props.objectsData"
|
|
35
|
-
@select-objects="emits('select-objects', $event)"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script setup lang="ts">
|
|
41
|
-
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
42
|
-
import type {
|
|
43
|
-
UI_T_ChartHost,
|
|
44
|
-
UI_T_ChartVm,
|
|
45
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
46
|
-
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
47
|
-
|
|
48
|
-
const props = defineProps<{
|
|
49
|
-
type: UI_T_AdvancedType
|
|
50
|
-
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
51
|
-
language: string
|
|
52
|
-
selectedChartType: string
|
|
53
|
-
selectedTimespanType: string
|
|
54
|
-
unitsCount: number
|
|
55
|
-
periodType: string
|
|
56
|
-
selectedCustomTime: string
|
|
57
|
-
customDateFrom: string
|
|
58
|
-
customDateTo: string
|
|
59
|
-
customTimeFrom: string
|
|
60
|
-
customTimeTo: string
|
|
61
|
-
totalCores: number
|
|
62
|
-
hostId: string
|
|
63
|
-
selectedMetricsKeys: number[]
|
|
64
|
-
totalMetricItems: number
|
|
65
|
-
selectedObjects: string
|
|
66
|
-
objectsLoading: boolean
|
|
67
|
-
objectsData: UI_I_ObjectItem[]
|
|
68
|
-
validDateEnd: number
|
|
69
|
-
}>()
|
|
70
|
-
|
|
71
|
-
const emits = defineEmits<{
|
|
72
|
-
(event: 'update-chart-type', value: string): void
|
|
73
|
-
(event: 'update-custom-time', value: string): void
|
|
74
|
-
(event: 'update-timespan-type', value: string): void
|
|
75
|
-
(event: 'update-unit-count', value: number): void
|
|
76
|
-
(event: 'update-period-type', value: string): void
|
|
77
|
-
(event: 'update-custom-date-from', value: string): void
|
|
78
|
-
(event: 'update-custom-date-to', value: string): void
|
|
79
|
-
(event: 'update-custom-time-from', value: string): void
|
|
80
|
-
(event: 'update-custom-time-to', value: string): void
|
|
81
|
-
(event: 'select-objects', value: string): void
|
|
82
|
-
}>()
|
|
83
|
-
</script>
|
|
84
|
-
|
|
85
|
-
<style scoped lang="scss">
|
|
86
|
-
.timespan-objects-section-direction {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
}
|
|
90
|
-
@media (max-width: 1024px) {
|
|
91
|
-
.timespan-objects-section-direction {
|
|
92
|
-
flex-direction: column;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="object-table-container">
|
|
3
|
-
<ui-data-table
|
|
4
|
-
test-id="object-table"
|
|
5
|
-
:data="dataLocal"
|
|
6
|
-
:options="optionsData"
|
|
7
|
-
:loading="props.loading"
|
|
8
|
-
size="sm"
|
|
9
|
-
@select-row="onSelectRow"
|
|
10
|
-
/>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
import type {
|
|
16
|
-
UI_I_DataTable,
|
|
17
|
-
UI_I_DataTableBody,
|
|
18
|
-
UI_I_DataTableOptions,
|
|
19
|
-
} from '~/node_modules/bfg-uikit/components/ui/dataTable/models/interfaces'
|
|
20
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
21
|
-
import type { UI_T_DataGridType } from '~/components/atoms/table/dataGrid/lib/models/types'
|
|
22
|
-
import type { UI_I_BodyItem } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
23
|
-
import { options } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/options'
|
|
24
|
-
import { tableDataFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/tableData'
|
|
25
|
-
|
|
26
|
-
const selectedRowLocal = defineModel<number[] | number>('selectedRow', {
|
|
27
|
-
required: true,
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
const props = defineProps<{
|
|
31
|
-
tableType: UI_T_DataGridType
|
|
32
|
-
loading: boolean
|
|
33
|
-
bodyItems: UI_I_BodyItem[][]
|
|
34
|
-
}>()
|
|
35
|
-
|
|
36
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
37
|
-
|
|
38
|
-
const optionsData = computed<UI_I_DataTableOptions>(() =>
|
|
39
|
-
options(props.tableType)
|
|
40
|
-
)
|
|
41
|
-
const dataLocal = computed<UI_I_DataTable>(() =>
|
|
42
|
-
tableDataFunc(localization.value, props.bodyItems, selectedRowLocal.value)
|
|
43
|
-
)
|
|
44
|
-
|
|
45
|
-
const onSelectRow = (value: UI_I_DataTableBody[]): void => {
|
|
46
|
-
selectedRowLocal.value = value.map((item) => item.row)
|
|
47
|
-
}
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
<style scoped lang="scss">
|
|
51
|
-
.object-table-container {
|
|
52
|
-
:deep(.bottom-grid-content) {
|
|
53
|
-
height: 170px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
</style>
|