bfg-common 1.6.65 → 1.6.67
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/assets/localization/local_be.json +9 -263
- package/assets/localization/local_en.json +27 -282
- package/assets/localization/local_hy.json +11 -265
- package/assets/localization/local_kk.json +9 -263
- package/assets/localization/local_ru.json +23 -277
- package/assets/localization/local_zh.json +9 -263
- package/assets/scss/common/global.scss +0 -11
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/dropdown/dropdown/Dropdown.vue +170 -168
- package/components/atoms/dropdown/dropdown/lib/models/interfaces.ts +10 -9
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +0 -3
- package/components/common/adapterManager/AdapterManager.vue +473 -473
- package/components/common/adapterManager/AdapterManagerNew.vue +0 -86
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -498
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -70
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +110 -110
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalOld.vue +531 -531
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -32
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +38 -37
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalOld.vue +73 -73
- package/components/common/adapterManager/lib/config/index.ts +19 -19
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -31
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -34
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue +57 -57
- package/components/common/adapterManager/ui/actions/AddAdapterButton.vue +34 -34
- package/components/common/adapterManager/ui/actions/RemoveAdapterButton.vue +41 -41
- package/components/common/adapterManager/ui/actions/VerticalSeparator.vue +10 -10
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +0 -2
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +2 -3
- package/components/common/adapterManager/ui/actions/bar/BarOld.vue +95 -95
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +76 -76
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -28
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +77 -77
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonOld.vue +33 -33
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -24
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +18 -18
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterOld.vue +38 -38
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -31
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +51 -51
- package/components/common/adapterManager/ui/secondTitle/SecondTitleOld.vue +35 -35
- package/components/common/adapterManager/ui/table/Table.vue +88 -88
- package/components/common/adapterManager/ui/table/TableNew.vue +137 -137
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -141
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -44
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +186 -187
- package/components/common/adapterManager/ui/table/adapters/AdaptersOld.vue +87 -87
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -57
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +81 -81
- package/components/common/adapterManager/ui/table/header/HeaderOld.vue +79 -79
- package/components/common/adapterManager/ui/table/lib/models/types.ts +1 -1
- package/components/common/certificate/CertificateInfo.vue +1 -7
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +0 -6
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +192 -219
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +4 -6
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +1 -26
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +1 -30
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +0 -5
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +1 -12
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +5 -12
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +1 -4
- package/components/common/diagramMain/Diagram.vue +377 -459
- package/components/common/diagramMain/DiagramMain.vue +905 -929
- package/components/common/diagramMain/{header/HeaderOld.vue → Header.vue} +223 -234
- package/components/common/diagramMain/adapter/Adapter.vue +123 -123
- package/components/common/diagramMain/adapter/AdapterItem.vue +438 -438
- package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
- package/components/common/diagramMain/adapter/Contents.vue +212 -212
- package/components/common/diagramMain/adapter/Lines.vue +81 -81
- package/components/common/diagramMain/adapter/block/Block.vue +27 -27
- package/components/common/diagramMain/adapter/block/BlockNew.vue +58 -58
- package/components/common/diagramMain/adapter/block/BlockOld.vue +50 -50
- package/components/common/diagramMain/adapter/secondBlock/SecondBlock.vue +27 -27
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockNew.vue +60 -60
- package/components/common/diagramMain/adapter/secondBlock/SecondBlockOld.vue +51 -51
- package/components/common/diagramMain/highlights/Highlights.vue +151 -151
- package/components/common/diagramMain/highlights/HighlightsNew.vue +124 -124
- package/components/common/diagramMain/highlights/HighlightsOld.vue +107 -107
- package/components/common/diagramMain/lib/config/index.ts +81 -81
- package/components/common/diagramMain/lib/config/initial.ts +50 -50
- package/components/common/diagramMain/lib/config/positions.ts +194 -194
- package/components/common/diagramMain/lib/models/enums.ts +44 -44
- package/components/common/diagramMain/lib/models/interfaces.ts +760 -760
- package/components/common/diagramMain/lib/models/types.ts +21 -21
- package/components/common/diagramMain/lib/utils/utils.ts +331 -331
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +331 -331
- package/components/common/diagramMain/modals/Modals.vue +479 -483
- package/components/common/diagramMain/modals/editSettings/{confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue → ConfirmTeamingSettingsModal.vue} +5 -2
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +102 -104
- package/components/common/diagramMain/modals/editSettings/{modal/EditSettingsModalOld.vue → EditSettingsModal.vue} +51 -12
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +0 -6
- package/components/common/diagramMain/modals/editSettings/tabs/{networkProperties/NetworkPropertiesOld.vue → NetworkProperties.vue} +113 -12
- package/components/common/diagramMain/modals/editSettings/tabs/{security/SecurityOld.vue → Security.vue} +48 -25
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +164 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{teamingFailover/TeamingFailoverOld.vue → TeamingFailover.vue} +48 -11
- package/components/common/diagramMain/modals/editSettings/tabs/{trafficShaping/TrafficShapingOld.vue → TrafficShaping.vue} +134 -12
- package/components/common/diagramMain/modals/editSettings/tabs/port/{ipvFourSettings/IpvFourSettingsOld.vue → IpvFourSettings.vue} +152 -11
- package/components/common/diagramMain/modals/editSettings/tabs/port/{portProperties/PortPropertiesOld.vue → PortProperties.vue} +103 -12
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +147 -147
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +25 -66
- package/components/common/diagramMain/modals/lib/config/index.ts +55 -56
- package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +405 -405
- package/components/common/diagramMain/modals/lib/config/portModal.ts +253 -253
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +245 -245
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
- package/components/common/diagramMain/modals/lib/mappers/mappers.ts +88 -88
- package/components/common/diagramMain/modals/lib/utils/index.ts +4 -34
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/MigrateVmkernelAdapter.vue +541 -541
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +170 -170
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/VmkernelAdapterReadyComplete.vue +49 -49
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +19 -19
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
- package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +82 -82
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +106 -106
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +241 -241
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +57 -57
- package/components/common/diagramMain/modals/viewSettings/info/InfoNew.vue +174 -174
- package/components/common/diagramMain/modals/viewSettings/info/InfoOld.vue +141 -141
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +45 -45
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +323 -323
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +203 -203
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModal.vue +60 -60
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +50 -50
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalOld.vue +70 -70
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/lib/models/interfaces.ts +48 -48
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/diagramMain/network/Lines.vue +107 -107
- package/components/common/diagramMain/network/Network.vue +141 -141
- package/components/common/diagramMain/network/block/Block.vue +37 -37
- package/components/common/diagramMain/network/block/BlockNew.vue +68 -68
- package/components/common/diagramMain/network/block/BlockOld.vue +64 -64
- package/components/common/diagramMain/network/noNetwork/NoNetwork.vue +12 -12
- package/components/common/diagramMain/network/noNetwork/NoNetworkNew.vue +89 -89
- package/components/common/diagramMain/network/noNetwork/NoNetworkOld.vue +61 -61
- package/components/common/diagramMain/network/secondBlock/SecondBlock.vue +41 -41
- package/components/common/diagramMain/network/secondBlock/SecondBlockNew.vue +64 -64
- package/components/common/diagramMain/network/secondBlock/SecondBlockOld.vue +60 -60
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/diagramMain/port/Ports.vue +47 -47
- package/components/common/diagramMain/switch/Switch.vue +180 -180
- package/components/common/diagramMain/switch/SwitchSelected.vue +111 -111
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/modals/reconnect/New.vue +30 -38
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +9 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +0 -4
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +2 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +7 -11
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +1 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +5 -8
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions.ts +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +6 -9
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -3
- package/components/common/modals/Rename.vue +1 -3
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/Old.vue +65 -24
- package/components/common/monitor/utilization/Utilization.vue +22 -14
- package/components/common/monitor/utilization/infoBlock/InfoBlock.vue +125 -2
- package/components/common/monitor/utilization/infoBlock/New.vue +183 -3
- package/components/common/monitor/utilization/infoBlock/Old.vue +71 -66
- package/components/common/monitor/utilization/infoBlock/progressBar/New.vue +64 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/Old.vue +65 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/ProgressBar.vue +84 -0
- package/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces.ts +10 -0
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- package/components/common/monitor/utilization/lib/models/interfaces.ts +14 -12
- package/components/common/monitor/utilization/lib/models/types.ts +1 -0
- package/components/common/monitor/utilization/lib/utils/index.ts +64 -6
- package/components/common/monitor/utilization/new/New.vue +195 -0
- package/components/common/monitor/utilization/new/Portlet.vue +42 -0
- package/components/common/monitor/utilization/new/Skeleton.vue +120 -0
- package/components/common/monitor/utilization/new/lib/utils/newPortlet.ts +7 -0
- package/components/common/noDataProvided/NoDataProvidedNew.vue +1 -1
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/new/lib/config/table.ts +4 -4
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/old/lib/config/table.ts +4 -4
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/ChartOptionsModal.vue +253 -184
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +0 -9
- package/components/common/pages/scheduledTasks/table/new/New.vue +10 -12
- package/components/common/pages/tasks/Tasks.vue +1 -4
- package/components/common/pages/tasks/table/Table.vue +23 -25
- package/components/common/readyToComplete/New.vue +0 -1
- package/components/common/split/vertical/New.vue +8 -42
- package/components/common/split/vertical/Old.vue +2 -31
- package/components/common/split/vertical/Vertical.vue +0 -4
- package/components/common/vm/actions/add/New.vue +6 -21
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -14
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +0 -5
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +0 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +0 -2
- package/components/common/vm/actions/common/select/options/New.vue +12 -14
- package/components/common/vm/actions/common/select/options/Old.vue +15 -16
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +15 -13
- package/components/common/vm/actions/confirm/Confirm.vue +0 -3
- package/components/common/vm/actions/rename/Old.vue +0 -1
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +0 -6
- package/components/common/wizards/datastore/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/NameAndDeviceNew.vue +1 -1
- package/components/common/wizards/datastore/add/steps/nameAndDevice/advancedOptions/New.vue +1 -1
- package/components/common/wizards/network/add/Add.vue +2 -13
- package/components/common/wizards/network/add/AddNew.vue +26 -22
- package/components/common/wizards/network/add/lib/config/initialData.ts +4 -6
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +0 -1
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +1 -5
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +8 -2
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +0 -3
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +8 -2
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +2 -6
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +3 -10
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -4
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +1 -5
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +3 -13
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +0 -5
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +2 -3
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +1 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +21 -40
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +14 -44
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +0 -4
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +2 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +7 -22
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +0 -6
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +1 -4
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +16 -12
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +5 -10
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +11 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +1 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +10 -17
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +0 -1
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +15 -35
- package/lib/models/store/tasks/enums.ts +0 -3
- package/lib/models/store/tasks/types.ts +6 -7
- package/package.json +2 -2
- package/plugins/directives.ts +5 -3
- package/public/spice-console/application/agent.js +17 -18
- package/store/tasks/actions.ts +8 -26
- package/store/tasks/mappers/recentTasks.ts +0 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +0 -19
- package/components/common/diagramMain/header/Header.vue +0 -49
- package/components/common/diagramMain/header/HeaderNew.vue +0 -155
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +0 -32
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +0 -285
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +0 -254
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +0 -31
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +0 -82
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +0 -15
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +0 -177
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +0 -137
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +0 -91
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +0 -158
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +0 -262
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +0 -192
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +0 -388
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +0 -139
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +0 -286
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +0 -209
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +0 -233
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +0 -128
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +0 -235
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +0 -87
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +0 -99
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +0 -319
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +0 -173
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +0 -348
- package/components/common/diagramMain/skeleton/Header.vue +0 -31
- package/components/common/diagramMain/skeleton/Switch.vue +0 -75
- package/components/common/monitor/utilization/New.vue +0 -5
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +0 -340
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="progress-line">
|
|
3
|
+
<div class="bg w-full">
|
|
4
|
+
<div
|
|
5
|
+
v-if="props.percent !== 0"
|
|
6
|
+
:style="props.innerFillContainerStyles"
|
|
7
|
+
class="inner-fill-container"
|
|
8
|
+
></div>
|
|
9
|
+
<div class="cutted-container-block">
|
|
10
|
+
<div
|
|
11
|
+
v-for="(item, key) in props.itemsForPrint"
|
|
12
|
+
:key="key"
|
|
13
|
+
:style="`width: ${item.width}%;background-color: ${item.color}; left: ${item.left}%`"
|
|
14
|
+
:class="[
|
|
15
|
+
'inner-fill-container',
|
|
16
|
+
{ one: props.itemsForPrint.length === 1 },
|
|
17
|
+
]"
|
|
18
|
+
></div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script setup lang="ts">
|
|
25
|
+
import type {
|
|
26
|
+
UI_I_UtilizationProgressInnerFillStyles,
|
|
27
|
+
UI_I_UtilizationProgressItemForPrint,
|
|
28
|
+
} from '~/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces'
|
|
29
|
+
|
|
30
|
+
const props = defineProps<{
|
|
31
|
+
percent: number | string
|
|
32
|
+
innerFillContainerStyles: UI_I_UtilizationProgressInnerFillStyles
|
|
33
|
+
itemsForPrint: UI_I_UtilizationProgressItemForPrint[]
|
|
34
|
+
}>()
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<style scoped lang="scss">
|
|
38
|
+
.progress-line {
|
|
39
|
+
.bg {
|
|
40
|
+
background: var(--progress-bar-bg);
|
|
41
|
+
height: 20px;
|
|
42
|
+
border-radius: 20px;
|
|
43
|
+
|
|
44
|
+
.inner-fill-container {
|
|
45
|
+
position: absolute;
|
|
46
|
+
height: 20px;
|
|
47
|
+
border-radius: 16px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cutted-container-block {
|
|
51
|
+
.inner-fill-container:not(.one) {
|
|
52
|
+
border-radius: 0;
|
|
53
|
+
|
|
54
|
+
&:first-child {
|
|
55
|
+
border-radius: 16px 0 0 16px;
|
|
56
|
+
}
|
|
57
|
+
&:last-child {
|
|
58
|
+
border-radius: 0 16px 16px 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bg w-full">
|
|
3
|
+
<div
|
|
4
|
+
v-if="props.percent !== 0"
|
|
5
|
+
:style="props.innerFillContainerStyles"
|
|
6
|
+
class="inner-fill-container"
|
|
7
|
+
></div>
|
|
8
|
+
<div class="cutted-container-block">
|
|
9
|
+
<div
|
|
10
|
+
v-for="(item, key) in props.itemsForPrint"
|
|
11
|
+
:key="key"
|
|
12
|
+
:style="`width: ${item.width}%;background-color: ${item.color}; left: ${item.left}%`"
|
|
13
|
+
:class="[
|
|
14
|
+
'inner-fill-container',
|
|
15
|
+
{ one: props.itemsForPrint.length === 1 },
|
|
16
|
+
]"
|
|
17
|
+
></div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
import type {
|
|
24
|
+
UI_I_UtilizationProgressInnerFillStyles,
|
|
25
|
+
UI_I_UtilizationProgressItemForPrint,
|
|
26
|
+
} from '~/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces'
|
|
27
|
+
|
|
28
|
+
const props = defineProps<{
|
|
29
|
+
percent: number | string
|
|
30
|
+
innerFillContainerStyles: UI_I_UtilizationProgressInnerFillStyles
|
|
31
|
+
itemsForPrint: UI_I_UtilizationProgressItemForPrint[]
|
|
32
|
+
}>()
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style scoped lang="scss">
|
|
36
|
+
.bg {
|
|
37
|
+
background: #ffffff;
|
|
38
|
+
border: 1px solid #666666;
|
|
39
|
+
height: 20px;
|
|
40
|
+
border-radius: 5px;
|
|
41
|
+
|
|
42
|
+
.inner-fill-container {
|
|
43
|
+
position: absolute;
|
|
44
|
+
height: 20px;
|
|
45
|
+
border-radius: 5px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.cutted-container-block {
|
|
49
|
+
.inner-fill-container:not(.one) {
|
|
50
|
+
border-radius: 0;
|
|
51
|
+
|
|
52
|
+
&:first-child {
|
|
53
|
+
border-radius: 5px 0 0 5px;
|
|
54
|
+
}
|
|
55
|
+
&:not(:first-child):not(:last-child) {
|
|
56
|
+
border-left: 1px solid #ffffff;
|
|
57
|
+
border-right: 1px solid #ffffff;
|
|
58
|
+
}
|
|
59
|
+
&:last-child {
|
|
60
|
+
border-radius: 0 5px 5px 0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="currentComponent"
|
|
4
|
+
:percent="percent"
|
|
5
|
+
:inner-fill-container-styles="innerFillContainerStyles"
|
|
6
|
+
:items-for-print="itemsForPrint"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script setup lang="ts">
|
|
11
|
+
import type { UI_I_UtilizationDataItem } from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
12
|
+
import type {
|
|
13
|
+
UI_I_UtilizationProgressInnerFillStyles,
|
|
14
|
+
UI_I_UtilizationProgressItemForPrint,
|
|
15
|
+
} from '~/components/common/monitor/utilization/infoBlock/progressBar/lib/models/interfaces'
|
|
16
|
+
|
|
17
|
+
const props = defineProps<{
|
|
18
|
+
infoData: UI_I_UtilizationDataItem | null
|
|
19
|
+
maxItem: UI_I_UtilizationDataItem['data'][0] | null
|
|
20
|
+
percent: number | string
|
|
21
|
+
color: string
|
|
22
|
+
}>()
|
|
23
|
+
|
|
24
|
+
const { $store }: any = useNuxtApp()
|
|
25
|
+
|
|
26
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
27
|
+
const currentComponent = computed(() =>
|
|
28
|
+
isNewView.value
|
|
29
|
+
? defineAsyncComponent(() => import('./New.vue'))
|
|
30
|
+
: defineAsyncComponent(() => import('./Old.vue'))
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
const percent = computed<number>(() => Number(props.percent))
|
|
34
|
+
|
|
35
|
+
const itemsForPrint = ref<UI_I_UtilizationProgressItemForPrint[]>([])
|
|
36
|
+
|
|
37
|
+
const innerFillContainerStyles =
|
|
38
|
+
computed<UI_I_UtilizationProgressInnerFillStyles>(() => ({
|
|
39
|
+
width: `${percent.value}%`,
|
|
40
|
+
backgroundColor: `${props.color}`,
|
|
41
|
+
}))
|
|
42
|
+
|
|
43
|
+
watch(
|
|
44
|
+
() => props.infoData,
|
|
45
|
+
(newValue) => {
|
|
46
|
+
if (!newValue) return
|
|
47
|
+
|
|
48
|
+
newValue.data.forEach((item) => {
|
|
49
|
+
if (
|
|
50
|
+
item.color &&
|
|
51
|
+
!['consumed'].find((item2) =>
|
|
52
|
+
item.labelKey.toLowerCase().includes(item2)
|
|
53
|
+
) &&
|
|
54
|
+
parseFloat(item.value.replace(/[^\d.-]/g, '')) !== 0
|
|
55
|
+
)
|
|
56
|
+
itemsForPrint.value.push(item)
|
|
57
|
+
})
|
|
58
|
+
itemsForPrint.value = itemsForPrint.value.filter((item) =>
|
|
59
|
+
item.value ? parseFloat(item.value.replace(/[^\d.-]/g, '')) !== 0 : false
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
let currentLeft = 0
|
|
63
|
+
|
|
64
|
+
const total = parseFloat(props.maxItem.value.replace(/[^\d.-]/g, ''))
|
|
65
|
+
|
|
66
|
+
itemsForPrint.value = itemsForPrint.value.map((item) => {
|
|
67
|
+
const width = item.value
|
|
68
|
+
? (parseFloat(item.value.replace(/[^\d.-]/g, '')) / total) * 100
|
|
69
|
+
: 0
|
|
70
|
+
|
|
71
|
+
const segment = {
|
|
72
|
+
left: currentLeft,
|
|
73
|
+
width: width,
|
|
74
|
+
color: item.colorKey ? `var(${item.colorKey})` : item.color,
|
|
75
|
+
}
|
|
76
|
+
currentLeft += width
|
|
77
|
+
return segment
|
|
78
|
+
})
|
|
79
|
+
},
|
|
80
|
+
{ immediate: true, deep: true }
|
|
81
|
+
)
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export enum UI_E_UtilizationBlockCurrentKeys {
|
|
2
|
-
cpuUtilization = 'hostCpu',
|
|
3
|
-
hostMemoryUtilization = 'hostMem',
|
|
4
|
-
}
|
|
1
|
+
export enum UI_E_UtilizationBlockCurrentKeys {
|
|
2
|
+
cpuUtilization = 'hostCpu',
|
|
3
|
+
hostMemoryUtilization = 'hostMem',
|
|
4
|
+
}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
label: string
|
|
3
|
-
value: string
|
|
4
|
-
}
|
|
1
|
+
import type { UI_T_UtilizationDataItemType } from '~/components/common/monitor/utilization/lib/models/types'
|
|
5
2
|
|
|
6
3
|
export interface API_UI_I_UtilizationDataItem {
|
|
7
|
-
items:
|
|
4
|
+
items: {
|
|
5
|
+
label: string
|
|
6
|
+
value: string
|
|
7
|
+
}[]
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface API_UI_I_UtilizationData {
|
|
11
11
|
[key: string]: API_UI_I_UtilizationDataItem
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface UI_I_UtilizationDataItems {
|
|
15
|
-
label: string
|
|
16
|
-
value: string
|
|
17
|
-
color: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
14
|
export interface UI_I_UtilizationDataItem {
|
|
21
15
|
id: string
|
|
22
16
|
isShow: boolean
|
|
23
17
|
title: string
|
|
24
|
-
|
|
18
|
+
type: UI_T_UtilizationDataItemType
|
|
19
|
+
data: {
|
|
20
|
+
label: string
|
|
21
|
+
labelKey: string
|
|
22
|
+
value: string
|
|
23
|
+
color: string
|
|
24
|
+
colorKey: string
|
|
25
|
+
iconName: string
|
|
26
|
+
}[]
|
|
25
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UI_T_UtilizationDataItemType = 'cpu' | 'memory'
|
|
@@ -6,26 +6,84 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
6
6
|
import { UI_E_UtilizationBlockCurrentKeys } from '~/components/common/monitor/utilization/lib/models/enums'
|
|
7
7
|
import { getMetricsLocalizationByKey } from '~/components/common/monitor/lib/utils/localization'
|
|
8
8
|
|
|
9
|
+
const currentColorKey = (value: string): string => {
|
|
10
|
+
let result: string = ''
|
|
11
|
+
const valueLowerCase = value.toLowerCase()
|
|
12
|
+
if (valueLowerCase.includes('consumed'))
|
|
13
|
+
result = '--utilization-settings-consumed-info-color'
|
|
14
|
+
if (valueLowerCase.includes('demand'))
|
|
15
|
+
result = '--utilization-settings-demand-info-color'
|
|
16
|
+
if (valueLowerCase.includes('overhead'))
|
|
17
|
+
result = '--utilization-settings-overhead-info-color'
|
|
18
|
+
if (valueLowerCase.includes('granted'))
|
|
19
|
+
result = '--utilization-settings-granted-info-color'
|
|
20
|
+
if (valueLowerCase.includes('active'))
|
|
21
|
+
result = '--utilization-settings-active-info-color'
|
|
22
|
+
if (valueLowerCase.includes('swapped'))
|
|
23
|
+
result = '--utilization-settings-swapped-info-color'
|
|
24
|
+
if (valueLowerCase.includes('ballooned'))
|
|
25
|
+
result = '--utilization-settings-ballooned-info-color'
|
|
26
|
+
if (valueLowerCase.includes('unaccessed'))
|
|
27
|
+
result = '--utilization-settings-unaccessed-info-color'
|
|
28
|
+
|
|
29
|
+
return result
|
|
30
|
+
}
|
|
31
|
+
|
|
9
32
|
export const constructApiData = (
|
|
10
|
-
apiData: API_UI_I_UtilizationData,
|
|
33
|
+
apiData: API_UI_I_UtilizationData | null,
|
|
11
34
|
localization: UI_I_Localization
|
|
12
35
|
): UI_I_UtilizationDataItem[] => {
|
|
36
|
+
if (!apiData) return []
|
|
37
|
+
|
|
13
38
|
const result: UI_I_UtilizationDataItem[] = []
|
|
39
|
+
const utilizationPortletsShow = useLocalStorage('utilization-portlets-show')
|
|
40
|
+
|
|
14
41
|
Object.keys(apiData).forEach((key) => {
|
|
42
|
+
let currentType = ''
|
|
43
|
+
if (key.includes('cpu')) currentType = 'cpu'
|
|
44
|
+
else if (key.includes('memory')) currentType = 'memory'
|
|
45
|
+
|
|
46
|
+
let isShow = true
|
|
47
|
+
if (utilizationPortletsShow) isShow = utilizationPortletsShow.includes(key)
|
|
48
|
+
|
|
15
49
|
result.push({
|
|
50
|
+
isShow,
|
|
16
51
|
id: key,
|
|
17
|
-
|
|
18
|
-
|
|
52
|
+
title: localization.common[UI_E_UtilizationBlockCurrentKeys[key]] || key,
|
|
53
|
+
type: currentType,
|
|
19
54
|
data: apiData[key].items.map((item) => {
|
|
20
|
-
|
|
55
|
+
const color = ![
|
|
56
|
+
'capacity',
|
|
57
|
+
'limit',
|
|
58
|
+
'vcpus',
|
|
59
|
+
'usagepercent',
|
|
60
|
+
'ballooncurrentbytes',
|
|
61
|
+
'balloonmaxbytes',
|
|
62
|
+
'entitlement',
|
|
63
|
+
].find((item2) => item.label.toLowerCase().includes(item2))
|
|
21
64
|
? '#' +
|
|
22
65
|
Math.floor(Math.random() * 0xffffff)
|
|
23
66
|
.toString(16)
|
|
24
67
|
.padStart(6, '0')
|
|
25
68
|
: ''
|
|
26
|
-
|
|
69
|
+
const colorKey = currentColorKey(item.label)
|
|
70
|
+
const labelKey = item.label
|
|
71
|
+
const label = getMetricsLocalizationByKey(item.label)
|
|
72
|
+
|
|
73
|
+
const iconName =
|
|
74
|
+
labelKey.toLowerCase().includes('limit') ||
|
|
75
|
+
labelKey.toLowerCase().includes('entitlement')
|
|
76
|
+
? 'arrow3'
|
|
77
|
+
: ''
|
|
27
78
|
|
|
28
|
-
return
|
|
79
|
+
return {
|
|
80
|
+
...item,
|
|
81
|
+
color,
|
|
82
|
+
colorKey,
|
|
83
|
+
labelKey,
|
|
84
|
+
label,
|
|
85
|
+
iconName,
|
|
86
|
+
}
|
|
29
87
|
}),
|
|
30
88
|
})
|
|
31
89
|
})
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="utilization flex flex-col h-full overflow-hidden">
|
|
3
|
+
<common-monitor-utilization-new-skeleton v-if="props.isLoading" />
|
|
4
|
+
<template v-else>
|
|
5
|
+
<div class="flex flex-wrap justify-between gap-4 mb-4 px-[6px]">
|
|
6
|
+
<h3 class="utilization-title text-[18px] font-[500]">
|
|
7
|
+
{{ localization.common.utilization }}
|
|
8
|
+
</h3>
|
|
9
|
+
|
|
10
|
+
<ui-button
|
|
11
|
+
id="utilization-settings-edit-button"
|
|
12
|
+
test-id="utilization-settings-edit-button"
|
|
13
|
+
variant="text"
|
|
14
|
+
class="utilization-settings-edit-button"
|
|
15
|
+
is-without-sizes
|
|
16
|
+
is-without-height
|
|
17
|
+
@click="isShowSettings = !isShowSettings"
|
|
18
|
+
>
|
|
19
|
+
<ui-icon name="settings" width="18px" height="18px" />
|
|
20
|
+
</ui-button>
|
|
21
|
+
<ui-popup-window
|
|
22
|
+
v-model="isShowSettings"
|
|
23
|
+
test-id="utilization-settings-select"
|
|
24
|
+
elem-id="utilization-settings-edit-button"
|
|
25
|
+
:margin-between-trigger="4"
|
|
26
|
+
width="144px"
|
|
27
|
+
left
|
|
28
|
+
>
|
|
29
|
+
<ul class="utilization-settings-items grid gap-2 p-2">
|
|
30
|
+
<li class="list-item">
|
|
31
|
+
<ui-checkbox
|
|
32
|
+
v-model="isCheckAllSettings"
|
|
33
|
+
:label-text="localization.common.all"
|
|
34
|
+
:disabled="isDisabledCheckAllSettings"
|
|
35
|
+
test-id="utilization-settings-all"
|
|
36
|
+
size="md"
|
|
37
|
+
@change="onCheckAllSettings"
|
|
38
|
+
/>
|
|
39
|
+
</li>
|
|
40
|
+
<li v-for="item in allDataLocal" :key="item.id" class="list-item">
|
|
41
|
+
<ui-checkbox
|
|
42
|
+
v-model="item.isShow"
|
|
43
|
+
:test-id="`utilization-settings-${item.id}`"
|
|
44
|
+
:label-text="item.title"
|
|
45
|
+
size="md"
|
|
46
|
+
/>
|
|
47
|
+
</li>
|
|
48
|
+
</ul>
|
|
49
|
+
</ui-popup-window>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div class="utilization-info-block-flex-container overflow-auto">
|
|
53
|
+
<ui-portlet-sortable-view
|
|
54
|
+
:portlets="portlets"
|
|
55
|
+
:name="portletsPageName"
|
|
56
|
+
@change-container-size="onChangeContainerSize"
|
|
57
|
+
>
|
|
58
|
+
<template
|
|
59
|
+
#default="{ portletId, dragged, isOpen, draggedAny, isLast }"
|
|
60
|
+
>
|
|
61
|
+
<common-monitor-utilization-new-portlet
|
|
62
|
+
:all-data="allDataLocal"
|
|
63
|
+
:portlet-id="portletId"
|
|
64
|
+
:dragged="dragged"
|
|
65
|
+
:dragged-any="draggedAny"
|
|
66
|
+
:is-open="isOpen"
|
|
67
|
+
:is-last="isLast"
|
|
68
|
+
:not-single-column-block="notSingleColumnBlock"
|
|
69
|
+
@toggle-portlet="onTogglePortlet"
|
|
70
|
+
/>
|
|
71
|
+
</template>
|
|
72
|
+
</ui-portlet-sortable-view>
|
|
73
|
+
</div>
|
|
74
|
+
</template>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<script setup lang="ts">
|
|
79
|
+
import type { UI_I_Portlet } from '~/node_modules/bfg-uikit/components/ui/portlet/lib/models/interfaces'
|
|
80
|
+
import { togglePortletFunc } from '~/node_modules/bfg-uikit/components/ui/portlet/lib/utils/utils'
|
|
81
|
+
import type { UI_I_UtilizationDataItem } from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
82
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
83
|
+
import { getPortletsLocal } from '~/components/common/monitor/utilization/new/lib/utils/newPortlet'
|
|
84
|
+
|
|
85
|
+
const allDataLocal = defineModel<UI_I_UtilizationDataItem[]>('all-data', {
|
|
86
|
+
required: true,
|
|
87
|
+
})
|
|
88
|
+
const props = defineProps<{
|
|
89
|
+
isLoading: boolean
|
|
90
|
+
}>()
|
|
91
|
+
const emits = defineEmits<{
|
|
92
|
+
(event: 'set-items-show-settings'): void
|
|
93
|
+
}>()
|
|
94
|
+
|
|
95
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
96
|
+
|
|
97
|
+
const isShowSettings = ref<boolean>(false)
|
|
98
|
+
|
|
99
|
+
const isCheckAllSettings = ref<boolean>(false)
|
|
100
|
+
const isDisabledCheckAllSettings = computed<boolean>(() =>
|
|
101
|
+
allDataLocal.value.every((item) => item.isShow)
|
|
102
|
+
)
|
|
103
|
+
const onCheckAllSettings = () => {
|
|
104
|
+
allDataLocal.value = allDataLocal.value.map((item) => {
|
|
105
|
+
return {
|
|
106
|
+
...item,
|
|
107
|
+
isShow: isCheckAllSettings.value,
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const portletsPageName = 'utilization'
|
|
113
|
+
|
|
114
|
+
const portlets = ref<UI_I_Portlet[]>([])
|
|
115
|
+
|
|
116
|
+
let initialPortlets: UI_I_Portlet[] = []
|
|
117
|
+
|
|
118
|
+
const containerWidth = ref<number>(0)
|
|
119
|
+
|
|
120
|
+
const notSingleColumnBlock = computed<boolean>(
|
|
121
|
+
() =>
|
|
122
|
+
containerWidth.value > 1150 ||
|
|
123
|
+
(containerWidth.value < 720 && containerWidth.value > 500)
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
const onChangeContainerSize = (width: number): void => {
|
|
127
|
+
containerWidth.value = width
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const getPortletData = (): void => {
|
|
131
|
+
portlets.value = getPortletsLocal(portletsPageName, initialPortlets)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const onTogglePortlet = (id: string): void => {
|
|
135
|
+
togglePortletFunc(id, portletsPageName, initialPortlets, getPortletData)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
watch(
|
|
139
|
+
allDataLocal,
|
|
140
|
+
(newValue) => {
|
|
141
|
+
if (newValue.length) {
|
|
142
|
+
initialPortlets = []
|
|
143
|
+
|
|
144
|
+
newValue.forEach((item) => {
|
|
145
|
+
initialPortlets.push({
|
|
146
|
+
id: item.id,
|
|
147
|
+
list: 1,
|
|
148
|
+
isOpen: true,
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
getPortletData()
|
|
152
|
+
emits('set-items-show-settings')
|
|
153
|
+
|
|
154
|
+
const isNotAllSelected = newValue.some((item) => !item.isShow)
|
|
155
|
+
isCheckAllSettings.value = !isNotAllSelected
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{ immediate: true, deep: true }
|
|
159
|
+
)
|
|
160
|
+
</script>
|
|
161
|
+
|
|
162
|
+
<style>
|
|
163
|
+
:root {
|
|
164
|
+
--utilization-settings-trigger-btn-bg-color: #f6f7f8;
|
|
165
|
+
}
|
|
166
|
+
:root.dark-theme {
|
|
167
|
+
--utilization-settings-trigger-btn-bg-color: #283948;
|
|
168
|
+
}
|
|
169
|
+
</style>
|
|
170
|
+
|
|
171
|
+
<style scoped lang="scss">
|
|
172
|
+
.utilization {
|
|
173
|
+
padding-top: 16px;
|
|
174
|
+
|
|
175
|
+
&-title {
|
|
176
|
+
color: var(--title-form-first-color);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.utilization-settings-edit-button {
|
|
180
|
+
width: 34px;
|
|
181
|
+
height: 34px;
|
|
182
|
+
border: 1px solid var(--line-color);
|
|
183
|
+
color: var(--modal-icon);
|
|
184
|
+
background-color: var(--btn-default-outline-bg-color);
|
|
185
|
+
&:hover {
|
|
186
|
+
background-color: var(--utilization-settings-trigger-btn-bg-color);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
.utilization-settings-items {
|
|
190
|
+
.list-item {
|
|
191
|
+
padding: 7px 9px;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ui-portlet
|
|
3
|
+
v-if="selectedItem?.isShow"
|
|
4
|
+
:title="selectedItem.title"
|
|
5
|
+
:dragged="props.dragged"
|
|
6
|
+
:dragged-any="props.draggedAny"
|
|
7
|
+
:is-open="props.isOpen"
|
|
8
|
+
:portlet-id="props.portletId"
|
|
9
|
+
:is-last="props.isLast"
|
|
10
|
+
:not-single="!props.notSingleColumnBlock"
|
|
11
|
+
:test-id="`utilization-portlet-${props.portletId}`"
|
|
12
|
+
@toggle="emits('toggle-portlet', $event)"
|
|
13
|
+
>
|
|
14
|
+
<template #portletBody>
|
|
15
|
+
<common-monitor-utilization-info-block :info-data="selectedItem" />
|
|
16
|
+
</template>
|
|
17
|
+
</ui-portlet>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import type { UI_I_UtilizationDataItem } from '~/components/common/monitor/utilization/lib/models/interfaces'
|
|
22
|
+
|
|
23
|
+
const props = defineProps<{
|
|
24
|
+
allData: UI_I_UtilizationDataItem[]
|
|
25
|
+
portletId: string
|
|
26
|
+
dragged: boolean
|
|
27
|
+
isOpen: boolean
|
|
28
|
+
isLast: boolean
|
|
29
|
+
draggedAny: boolean
|
|
30
|
+
notSingleColumnBlock: boolean
|
|
31
|
+
}>()
|
|
32
|
+
|
|
33
|
+
const emits = defineEmits<{
|
|
34
|
+
(event: 'toggle-portlet', id: string): void
|
|
35
|
+
}>()
|
|
36
|
+
|
|
37
|
+
const selectedItem = computed<UI_I_UtilizationDataItem | null>(
|
|
38
|
+
() => props.allData.find((item) => item.id === props.portletId) || null
|
|
39
|
+
)
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style scoped lang="scss"></style>
|