bfg-common 1.6.77 → 1.6.78
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 +4461 -4213
- package/assets/localization/local_en.json +4466 -4217
- package/assets/localization/local_hy.json +4465 -4217
- package/assets/localization/local_kk.json +4464 -4216
- package/assets/localization/local_ru.json +4464 -4216
- package/assets/localization/local_zh.json +4462 -4214
- package/assets/scss/common/global.scss +11 -0
- package/assets/scss/common/normalize.scss +3 -0
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/stack/StackBlock.vue +1 -1
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +2 -2
- package/components/atoms/tooltip/TooltipError.vue +3 -0
- package/components/common/adapterManager/AdapterManager.vue +473 -473
- package/components/common/adapterManager/AdapterManagerNew.vue +86 -0
- 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 +37 -38
- 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 +2 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +3 -2
- 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 +187 -186
- 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/Certificate.vue +6 -16
- package/components/common/certificate/{Info/Old.vue → CertificateInfo.vue} +34 -6
- package/components/common/certificate/{tools/Tools.vue → Tools.vue} +23 -18
- package/components/common/certificate/lib/config/tabsPannel.ts +22 -0
- package/components/common/configure/physicalAdapters/PhysicalAdapters.vue +6 -0
- package/components/common/configure/physicalAdapters/PhysicalAdaptersNew.vue +219 -192
- package/components/common/configure/physicalAdapters/PhysicalAdaptersOld.vue +6 -4
- package/components/common/configure/physicalAdapters/buttons/Buttons.vue +1 -0
- package/components/common/configure/physicalAdapters/modals/edit/Edit.vue +26 -1
- package/components/common/configure/physicalAdapters/modals/edit/EditNew.vue +30 -1
- package/components/common/configure/physicalAdapters/modals/edit/lib/models/interfaces.ts +5 -0
- package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts +19 -0
- package/components/common/configure/physicalAdapters/tableView/TableViewNew.vue +12 -1
- package/components/common/configure/physicalAdapters/tableView/lib/config/physicalAdaptersTableConfigNew.ts +21 -21
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +12 -5
- package/components/common/configure/physicalAdapters/tableView/lib/models/interfaces.ts +4 -1
- package/components/common/diagramMain/Diagram.vue +169 -85
- package/components/common/diagramMain/DiagramMain.vue +40 -10
- 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/header/Header.vue +49 -0
- package/components/common/diagramMain/header/HeaderNew.vue +155 -0
- package/components/common/diagramMain/{Header.vue → header/HeaderOld.vue} +78 -67
- 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 +483 -479
- package/components/common/diagramMain/modals/UnsavedChangesModal.vue +32 -0
- package/components/common/diagramMain/modals/editSettings/EditSettings.vue +104 -102
- package/components/common/diagramMain/modals/editSettings/EditSettingsNew.vue +285 -0
- package/components/common/diagramMain/modals/editSettings/EditSettingsOld.vue +254 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModal.vue +31 -0
- package/components/common/diagramMain/modals/editSettings/confirmTeamingSettingsModal/ConfirmTeamingSettingsModalNew.vue +82 -0
- package/components/common/diagramMain/modals/editSettings/{ConfirmTeamingSettingsModal.vue → confirmTeamingSettingsModal/ConfirmTeamingSettingsModalOld.vue} +2 -5
- package/components/common/diagramMain/modals/editSettings/lib/config/config.ts +15 -0
- package/components/common/diagramMain/modals/editSettings/lib/models/interfaces.ts +6 -0
- package/components/common/diagramMain/modals/editSettings/lib/utils/utils.ts +177 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModal.vue +137 -0
- package/components/common/diagramMain/modals/editSettings/modal/EditSettingsModalNew.vue +91 -0
- package/components/common/diagramMain/modals/editSettings/{EditSettingsModal.vue → modal/EditSettingsModalOld.vue} +12 -51
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkProperties.vue +158 -0
- package/components/common/diagramMain/modals/editSettings/tabs/networkProperties/NetworkPropertiesNew.vue +262 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{NetworkProperties.vue → networkProperties/NetworkPropertiesOld.vue} +12 -113
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettings.vue +192 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/ipvFourSettings/IpvFourSettingsNew.vue +388 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{IpvFourSettings.vue → ipvFourSettings/IpvFourSettingsOld.vue} +11 -152
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortProperties.vue +139 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/portProperties/PortPropertiesNew.vue +286 -0
- package/components/common/diagramMain/modals/editSettings/tabs/port/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +12 -103
- package/components/common/diagramMain/modals/editSettings/tabs/security/Security.vue +209 -0
- package/components/common/diagramMain/modals/editSettings/tabs/security/SecurityNew.vue +233 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{Security.vue → security/SecurityOld.vue} +25 -48
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue +128 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesNew.vue +235 -0
- package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchPropertiesOld.vue +87 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailover.vue +99 -0
- package/components/common/diagramMain/modals/editSettings/tabs/teamingFailover/TeamingFailoverNew.vue +319 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TeamingFailover.vue → teamingFailover/TeamingFailoverOld.vue} +11 -48
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShaping.vue +173 -0
- package/components/common/diagramMain/modals/editSettings/tabs/trafficShaping/TrafficShapingNew.vue +348 -0
- package/components/common/diagramMain/modals/editSettings/tabs/{TrafficShaping.vue → trafficShaping/TrafficShapingOld.vue} +12 -134
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +147 -147
- package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +43 -2
- package/components/common/diagramMain/modals/lib/config/index.ts +2 -1
- 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 +34 -4
- 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/skeleton/Header.vue +31 -0
- package/components/common/diagramMain/skeleton/Switch.vue +75 -0
- 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 +38 -30
- package/components/common/layout/theHeader/userMenu/modals/changePassword/New.vue +8 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +4 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- 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 +5 -9
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +3 -1
- package/components/common/modals/Rename.vue +3 -1
- package/components/common/monitor/advanced/table/tableOld/TableOld.vue +93 -93
- package/components/common/monitor/utilization/lib/models/enums.ts +4 -4
- 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 +184 -253
- package/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/actions/ActionsNew.vue +1 -1
- package/components/common/pages/scheduledTasks/table/lib/models/enums.ts +9 -0
- package/components/common/pages/scheduledTasks/table/new/New.vue +12 -10
- package/components/common/pages/tasks/Tasks.vue +4 -1
- package/components/common/pages/tasks/table/Table.vue +25 -23
- package/components/common/readyToComplete/New.vue +1 -0
- package/components/common/split/horizontal/New.vue +1 -1
- package/components/common/split/horizontal/Old.vue +1 -1
- package/components/common/split/vertical/New.vue +42 -8
- package/components/common/split/vertical/Old.vue +31 -2
- package/components/common/split/vertical/Vertical.vue +4 -0
- package/components/common/tools/Actions.vue +7 -3
- package/components/common/tools/lib/models/interfaces.ts +1 -0
- package/components/common/vm/actions/add/New.vue +21 -6
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +14 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/New.vue +5 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Old.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/New.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/New.vue +2 -0
- package/components/common/vm/actions/common/select/options/New.vue +14 -12
- package/components/common/vm/actions/common/select/options/Old.vue +16 -15
- package/components/common/vm/actions/common/select/storage/new/lib/config/table.ts +13 -15
- package/components/common/vm/actions/confirm/Confirm.vue +3 -0
- package/components/common/vm/actions/rename/Old.vue +1 -0
- package/components/common/vm/snapshots/DetailView.vue +6 -6
- package/components/common/wizards/datastore/add/New.vue +6 -0
- 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 +13 -2
- package/components/common/wizards/network/add/AddNew.vue +22 -26
- package/components/common/wizards/network/add/lib/config/initialData.ts +6 -4
- package/components/common/wizards/network/add/lib/config/steps.ts +1 -1
- package/components/common/wizards/network/add/lib/models/interfaces.ts +1 -0
- package/components/common/wizards/network/add/lib/utils/utils.ts +1 -1
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsOld.vue +5 -1
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +2 -8
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsOld.vue +3 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +2 -8
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesOld.vue +6 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +10 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +4 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/new/SelectNetwork.vue +5 -1
- package/components/common/wizards/network/add/validations/common.ts +1 -1
- package/components/common/wizards/vm/migrate/New.vue +13 -3
- package/components/common/wizards/vm/migrate/lib/config/constructDataReady.ts +5 -0
- package/components/common/wizards/vm/migrate/lib/config/steps.ts +3 -2
- package/components/common/wizards/vm/migrate/steps/computeResource/New.vue +2 -1
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/New.vue +40 -21
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/clusterTable.ts +340 -0
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/config/hostTable.ts +44 -14
- package/components/common/wizards/vm/migrate/steps/computeResource/tableView/new/lib/models/enums.ts +4 -0
- package/components/common/wizards/vm/migrate/steps/priority/New.vue +7 -2
- package/components/common/wizards/vm/migrate/steps/selectStorage/New.vue +22 -7
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/New.vue +6 -0
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/New.vue +4 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/batch/table/new/lib/config/datastoreTable.ts +12 -16
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/New.vue +10 -5
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/new/lib/config/diskTable.ts +16 -11
- package/components/common/wizards/vm/migrate/steps/selectStorage/configure/disk/table/old/lib/config/diskTable.ts +7 -1
- package/components/common/wizards/vm/migrate/steps/selectStorage/selectedPerDisk/New.vue +17 -10
- package/components/common/wizards/vm/migrate/steps/type/TypeNew.vue +1 -0
- package/components/common/wizards/vm/migrate/vmOrigin/New.vue +35 -15
- package/lib/models/store/tasks/enums.ts +3 -0
- package/lib/models/store/tasks/types.ts +7 -6
- package/package.json +2 -2
- package/plugins/directives.ts +3 -5
- package/public/spice-console/application/agent.js +18 -17
- package/store/tasks/actions.ts +26 -8
- package/store/tasks/mappers/recentTasks.ts +1 -0
- package/components/common/certificate/Info/Info.vue +0 -61
- package/components/common/certificate/Info/new/New.vue +0 -285
- package/components/common/certificate/Info/new/lib/config/index.ts +0 -59
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +0 -3
- package/components/common/certificate/Info/new/lib/utils/index.ts +0 -10
- package/components/common/certificate/Old.vue +0 -27
- package/components/common/certificate/new/New.vue +0 -30
- package/components/common/certificate/new/Skeleton.vue +0 -155
- package/components/common/certificate/tools/New.vue +0 -48
- package/components/common/certificate/tools/Old.vue +0 -39
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +0 -20
- package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +0 -164
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="content">
|
|
3
|
+
<div class="content-fields">
|
|
4
|
+
<div class="content-fields-title">
|
|
5
|
+
{{ localization.common.security }}
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<div class="content-fields-block">
|
|
9
|
+
<div class="col">
|
|
10
|
+
<h4
|
|
11
|
+
:class="[
|
|
12
|
+
'content-subtitle col-left',
|
|
13
|
+
{
|
|
14
|
+
'without-padding': !props.isSwitch,
|
|
15
|
+
},
|
|
16
|
+
]"
|
|
17
|
+
>
|
|
18
|
+
{{ localization.common.promiscuousMode }}
|
|
19
|
+
</h4>
|
|
20
|
+
<div class="col-right">
|
|
21
|
+
<div v-if="!props.isSwitch" class="field-checkbox">
|
|
22
|
+
<ui-checkbox
|
|
23
|
+
v-model="fieldsValues.promiscuousMode.checked"
|
|
24
|
+
test-id="promiscuous-mode-input"
|
|
25
|
+
:label-text="localization.common.override"
|
|
26
|
+
size="md"
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
<ui-select
|
|
30
|
+
v-model="fieldsValues.promiscuousMode.selected"
|
|
31
|
+
:items="selectItems"
|
|
32
|
+
select-width="100%"
|
|
33
|
+
show-text
|
|
34
|
+
test-id="promiscuous-mode-select"
|
|
35
|
+
width="auto"
|
|
36
|
+
:disabled="!fieldsValues.promiscuousMode.checked"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<ui-line margin="16px 0" />
|
|
42
|
+
|
|
43
|
+
<div class="col">
|
|
44
|
+
<h4
|
|
45
|
+
:class="[
|
|
46
|
+
'content-subtitle col-left',
|
|
47
|
+
{
|
|
48
|
+
'without-padding': !props.isSwitch,
|
|
49
|
+
},
|
|
50
|
+
]"
|
|
51
|
+
>
|
|
52
|
+
{{ localization.common.macAddressChanges }}
|
|
53
|
+
</h4>
|
|
54
|
+
<div class="col-right">
|
|
55
|
+
<div v-if="!props.isSwitch" class="field-checkbox">
|
|
56
|
+
<ui-checkbox
|
|
57
|
+
v-model="fieldsValues.macAddressChanges.checked"
|
|
58
|
+
test-id="promiscuous-mode-input"
|
|
59
|
+
:label-text="localization.common.override"
|
|
60
|
+
size="md"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
<ui-select
|
|
64
|
+
v-model="fieldsValues.macAddressChanges.selected"
|
|
65
|
+
:items="selectItems"
|
|
66
|
+
select-width="100%"
|
|
67
|
+
show-text
|
|
68
|
+
test-id="mac-address-select"
|
|
69
|
+
width="auto"
|
|
70
|
+
:disabled="!fieldsValues.macAddressChanges.checked"
|
|
71
|
+
/>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<ui-line margin="16px 0" />
|
|
76
|
+
|
|
77
|
+
<div class="col">
|
|
78
|
+
<h4
|
|
79
|
+
:class="[
|
|
80
|
+
'content-subtitle col-left',
|
|
81
|
+
{
|
|
82
|
+
'without-padding': !props.isSwitch,
|
|
83
|
+
},
|
|
84
|
+
]"
|
|
85
|
+
>
|
|
86
|
+
{{ localization.common.forgedTransmits }}
|
|
87
|
+
</h4>
|
|
88
|
+
<div class="col-right">
|
|
89
|
+
<div v-if="!props.isSwitch" class="field-checkbox">
|
|
90
|
+
<ui-checkbox
|
|
91
|
+
v-model="fieldsValues.forgedTransmits.checked"
|
|
92
|
+
test-id="promiscuous-mode-input"
|
|
93
|
+
:label-text="localization.common.override"
|
|
94
|
+
size="md"
|
|
95
|
+
/>
|
|
96
|
+
</div>
|
|
97
|
+
<ui-select
|
|
98
|
+
v-model="fieldsValues.forgedTransmits.selected"
|
|
99
|
+
:items="selectItems"
|
|
100
|
+
select-width="100%"
|
|
101
|
+
show-text
|
|
102
|
+
test-id="forged-transmits-select"
|
|
103
|
+
width="auto"
|
|
104
|
+
:disabled="!fieldsValues.forgedTransmits.checked"
|
|
105
|
+
/>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</template>
|
|
112
|
+
|
|
113
|
+
<script setup lang="ts">
|
|
114
|
+
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
115
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
116
|
+
import type { UI_I_SecurityFields } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
117
|
+
import { selectItemFunc } from '~/components/common/diagramMain/modals/editSettings/lib/config/config'
|
|
118
|
+
|
|
119
|
+
const props = defineProps<{
|
|
120
|
+
isSwitch: boolean
|
|
121
|
+
}>()
|
|
122
|
+
|
|
123
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
124
|
+
|
|
125
|
+
const fieldsValues = defineModel<UI_I_SecurityFields>()
|
|
126
|
+
|
|
127
|
+
const selectItems = computed<UI_I_Dropdown[]>(() =>
|
|
128
|
+
selectItemFunc(localization.value)
|
|
129
|
+
)
|
|
130
|
+
</script>
|
|
131
|
+
|
|
132
|
+
<style scoped lang="scss">
|
|
133
|
+
.content {
|
|
134
|
+
width: 100%;
|
|
135
|
+
|
|
136
|
+
&-fields-title {
|
|
137
|
+
font-weight: 400;
|
|
138
|
+
font-size: 20px;
|
|
139
|
+
line-height: 24px;
|
|
140
|
+
letter-spacing: 0;
|
|
141
|
+
color: var(--title-form-first-color);
|
|
142
|
+
margin-bottom: 16px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&-title {
|
|
146
|
+
display: block;
|
|
147
|
+
margin: 16px 0;
|
|
148
|
+
font-weight: 500;
|
|
149
|
+
font-size: 16px;
|
|
150
|
+
line-height: 20px;
|
|
151
|
+
letter-spacing: 0;
|
|
152
|
+
color: var(--title-form-first-color);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&-subtitle {
|
|
156
|
+
font-weight: 400;
|
|
157
|
+
font-size: 13px;
|
|
158
|
+
line-height: 16px;
|
|
159
|
+
letter-spacing: 0;
|
|
160
|
+
vertical-align: middle;
|
|
161
|
+
color: var(--title-form-first-color);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.col {
|
|
165
|
+
display: flex;
|
|
166
|
+
column-gap: 16px;
|
|
167
|
+
|
|
168
|
+
&-left {
|
|
169
|
+
padding-top: 10px;
|
|
170
|
+
width: calc((100% - 8px) / 3);
|
|
171
|
+
text-overflow: ellipsis;
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
|
|
175
|
+
&.without-padding {
|
|
176
|
+
padding-top: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&-right {
|
|
181
|
+
width: calc(((100% - 8px) / 3) * 2);
|
|
182
|
+
max-width: 240px;
|
|
183
|
+
|
|
184
|
+
.field-checkbox {
|
|
185
|
+
margin-bottom: 16px;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&-fields {
|
|
191
|
+
&-alert {
|
|
192
|
+
margin-bottom: 8px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&-block {
|
|
196
|
+
padding-top: 8px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&-col {
|
|
200
|
+
display: flex;
|
|
201
|
+
column-gap: 12px;
|
|
202
|
+
|
|
203
|
+
&-left {
|
|
204
|
+
width: 60%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&-right {
|
|
208
|
+
width: 40%;
|
|
209
|
+
max-width: 240px;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@media (max-width: 896px) {
|
|
216
|
+
.content-fields {
|
|
217
|
+
&-col {
|
|
218
|
+
display: flex;
|
|
219
|
+
row-gap: 12px;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
|
|
222
|
+
&-left {
|
|
223
|
+
width: 100%;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&-right {
|
|
227
|
+
width: 100%;
|
|
228
|
+
max-width: 240px;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
</style>
|
|
@@ -34,11 +34,12 @@
|
|
|
34
34
|
data-id="promiscuous-mode-select"
|
|
35
35
|
name="selectName"
|
|
36
36
|
>
|
|
37
|
-
<option
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
<option
|
|
38
|
+
v-for="item in selectItems"
|
|
39
|
+
:value="item.value"
|
|
40
|
+
:label="item.text"
|
|
41
|
+
>
|
|
42
|
+
{{ item.text }}
|
|
42
43
|
</option>
|
|
43
44
|
</select>
|
|
44
45
|
</div>
|
|
@@ -80,11 +81,12 @@
|
|
|
80
81
|
data-id="mac-address-select"
|
|
81
82
|
name="selectName"
|
|
82
83
|
>
|
|
83
|
-
<option
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
<option
|
|
85
|
+
v-for="item in selectItems"
|
|
86
|
+
:value="item.value"
|
|
87
|
+
:label="item.text"
|
|
88
|
+
>
|
|
89
|
+
{{ item.text }}
|
|
88
90
|
</option>
|
|
89
91
|
</select>
|
|
90
92
|
</div>
|
|
@@ -126,11 +128,12 @@
|
|
|
126
128
|
data-id="forged-transmits-select"
|
|
127
129
|
name="selectName"
|
|
128
130
|
>
|
|
129
|
-
<option
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
<option
|
|
132
|
+
v-for="item in selectItems"
|
|
133
|
+
:value="item.value"
|
|
134
|
+
:label="item.text"
|
|
135
|
+
>
|
|
136
|
+
{{ item.text }}
|
|
134
137
|
</option>
|
|
135
138
|
</select>
|
|
136
139
|
</div>
|
|
@@ -147,44 +150,18 @@
|
|
|
147
150
|
|
|
148
151
|
<script setup lang="ts">
|
|
149
152
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
150
|
-
import type {
|
|
151
|
-
|
|
152
|
-
UI_I_SecurityFields,
|
|
153
|
-
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
154
|
-
import { securityFieldsInitialFunc } from '~/components/common/diagramMain/modals/lib/config'
|
|
153
|
+
import type { UI_I_SecurityFields } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
154
|
+
import { selectItemFunc } from '~/components/common/diagramMain/modals/editSettings/lib/config/config'
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
defineProps<{
|
|
159
|
-
isSwitch: boolean
|
|
160
|
-
initialData?: UI_I_ModalsInitialData
|
|
161
|
-
}>(),
|
|
162
|
-
{
|
|
163
|
-
isSwitch: false,
|
|
164
|
-
initialData: undefined,
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
|
|
168
|
-
const emits = defineEmits<{
|
|
169
|
-
(event: 'change-edit-security-data', securityData: UI_I_SecurityFields): void
|
|
156
|
+
const props = defineProps<{
|
|
157
|
+
isSwitch: boolean
|
|
170
158
|
}>()
|
|
171
159
|
|
|
172
|
-
// UI_I_Localization
|
|
173
160
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
174
161
|
|
|
175
|
-
const fieldsValues =
|
|
176
|
-
securityFieldsInitialFunc(props.isSwitch, props.initialData)
|
|
177
|
-
)
|
|
178
|
-
|
|
179
|
-
onMounted(() => {
|
|
180
|
-
emits('change-edit-security-data', fieldsValues.value)
|
|
181
|
-
})
|
|
162
|
+
const fieldsValues = defineModel<UI_I_SecurityFields>()
|
|
182
163
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
(newFieldsValues: UI_I_SecurityFields) => {
|
|
186
|
-
emits('change-edit-security-data', newFieldsValues)
|
|
187
|
-
},
|
|
188
|
-
{ deep: true }
|
|
164
|
+
const selectItems = computed<{ text: string; value: number }[]>(() =>
|
|
165
|
+
selectItemFunc(localization.value)
|
|
189
166
|
)
|
|
190
167
|
</script>
|
package/components/common/diagramMain/modals/editSettings/tabs/switchProperties/SwitchProperties.vue
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="switch-properties">
|
|
3
|
+
<component
|
|
4
|
+
:is="currentComponent"
|
|
5
|
+
v-model="fieldsValues"
|
|
6
|
+
:is-show-error-message="isShowErrorMessage"
|
|
7
|
+
:error-messages="props.errorMessages"
|
|
8
|
+
:ports-number="props.initialData.num_ports"
|
|
9
|
+
@hide-error-message-alert="onHideErrorMessageAlert"
|
|
10
|
+
/>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
16
|
+
import type {
|
|
17
|
+
UI_I_SwitchPropertiesFields,
|
|
18
|
+
UI_I_EditSettingsErrorMessage,
|
|
19
|
+
UI_I_ModalsInitialData,
|
|
20
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
21
|
+
import type { UI_T_PortPropertiesFieldName } from '~/components/common/diagramMain/lib/models/types'
|
|
22
|
+
|
|
23
|
+
const props = withDefaults(
|
|
24
|
+
defineProps<{
|
|
25
|
+
isShowErrorMessageAlert: boolean | boolean[]
|
|
26
|
+
errorMessages: UI_I_EditSettingsErrorMessage
|
|
27
|
+
initialData?: UI_I_ModalsInitialData
|
|
28
|
+
hasErrorMessages?: boolean
|
|
29
|
+
}>(),
|
|
30
|
+
{
|
|
31
|
+
initialData: () => ({}),
|
|
32
|
+
hasErrorMessages: undefined,
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
const emits = defineEmits<{
|
|
37
|
+
(
|
|
38
|
+
event: 'change-error-messages',
|
|
39
|
+
errorMessage: string,
|
|
40
|
+
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
41
|
+
): void
|
|
42
|
+
(event: 'hide-error-message-alert'): void
|
|
43
|
+
(
|
|
44
|
+
event: 'change-edit-properties-data',
|
|
45
|
+
switchPropertiesData: UI_I_SwitchPropertiesFields
|
|
46
|
+
): void
|
|
47
|
+
}>()
|
|
48
|
+
|
|
49
|
+
const { $store }: any = useNuxtApp()
|
|
50
|
+
|
|
51
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
52
|
+
|
|
53
|
+
const currentComponent = computed(() =>
|
|
54
|
+
isNewView.value
|
|
55
|
+
? defineAsyncComponent(() => import('./SwitchPropertiesNew.vue'))
|
|
56
|
+
: defineAsyncComponent(() => import('./SwitchPropertiesOld.vue'))
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
60
|
+
|
|
61
|
+
const isShowErrorMessage = computed<boolean>(
|
|
62
|
+
() =>
|
|
63
|
+
props.hasErrorMessages &&
|
|
64
|
+
(isNewView.value
|
|
65
|
+
? props.isShowErrorMessageAlert[0]
|
|
66
|
+
: props.isShowErrorMessageAlert)
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
const fieldsValues = ref<UI_I_SwitchPropertiesFields>({
|
|
70
|
+
mtu: props.initialData.mtu || 0,
|
|
71
|
+
num_ports: props.initialData.num_ports || '',
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
const onHideErrorMessageAlert = () => emits('hide-error-message-alert')
|
|
75
|
+
const onChangeData = (data: UI_I_SwitchPropertiesFields) =>
|
|
76
|
+
emits('change-edit-properties-data', data)
|
|
77
|
+
|
|
78
|
+
const changeErrorMessage = (
|
|
79
|
+
errorMessage: string,
|
|
80
|
+
fieldName: keyof UI_I_EditSettingsErrorMessage
|
|
81
|
+
) => emits('change-error-messages', errorMessage, fieldName)
|
|
82
|
+
|
|
83
|
+
const messageTexts = (local: UI_I_Localization) => ({
|
|
84
|
+
mtu: local.common.mtuInvalidMessage,
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
const setMessageOnChangedField = (
|
|
88
|
+
values: number,
|
|
89
|
+
name: UI_T_PortPropertiesFieldName,
|
|
90
|
+
text: string
|
|
91
|
+
) => {
|
|
92
|
+
if (values < 1280 || values > 65535) {
|
|
93
|
+
changeErrorMessage(text, name)
|
|
94
|
+
return
|
|
95
|
+
}
|
|
96
|
+
changeErrorMessage('', name)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
watch(
|
|
100
|
+
fieldsValues,
|
|
101
|
+
(newValues: UI_I_SwitchPropertiesFields) => {
|
|
102
|
+
setMessageOnChangedField(
|
|
103
|
+
newValues.mtu,
|
|
104
|
+
'mtu',
|
|
105
|
+
messageTexts(localization.value).mtu
|
|
106
|
+
)
|
|
107
|
+
onChangeData(newValues)
|
|
108
|
+
!props.hasErrorMessages && onHideErrorMessageAlert()
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
deep: true,
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
onMounted(() => {
|
|
116
|
+
onChangeData(fieldsValues.value)
|
|
117
|
+
})
|
|
118
|
+
|
|
119
|
+
onUnmounted(() => {
|
|
120
|
+
onHideErrorMessageAlert()
|
|
121
|
+
})
|
|
122
|
+
</script>
|
|
123
|
+
|
|
124
|
+
<style scoped lang="scss">
|
|
125
|
+
.switch-properties {
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
</style>
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="content">
|
|
3
|
+
<div class="content-fields">
|
|
4
|
+
<div class="content-fields-title">
|
|
5
|
+
{{ localization.common.properties }}
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<div v-if="props.isShowErrorMessage" class="content-fields-alert">
|
|
9
|
+
<div
|
|
10
|
+
v-for="messageObject in validationMessagesArray"
|
|
11
|
+
:key="messageObject.key"
|
|
12
|
+
class="content-fields-alert-item"
|
|
13
|
+
>
|
|
14
|
+
<ui-alert
|
|
15
|
+
:messages="[messageObject.message]"
|
|
16
|
+
test-id="switch-properties-alert"
|
|
17
|
+
size="md"
|
|
18
|
+
@hide="onHideMessage(messageObject.key)"
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div class="content-fields-block">
|
|
24
|
+
<div class="col">
|
|
25
|
+
<h4 class="content-subtitle col-left text">
|
|
26
|
+
{{ localization.common.numberOfPorts }}
|
|
27
|
+
</h4>
|
|
28
|
+
<div class="col-right text">
|
|
29
|
+
{{ props.portsNumber }}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<ui-line margin="16px 0" />
|
|
34
|
+
|
|
35
|
+
<div class="col">
|
|
36
|
+
<h4 class="content-subtitle col-left">
|
|
37
|
+
{{ localization.common.mtuBytes }}
|
|
38
|
+
</h4>
|
|
39
|
+
<div class="col-right combobox">
|
|
40
|
+
<ui-input
|
|
41
|
+
id="mtu-input"
|
|
42
|
+
v-model="fieldsValues.mtu"
|
|
43
|
+
test-id="mtu-input"
|
|
44
|
+
type="number"
|
|
45
|
+
:placeholder="localization.common.bytes"
|
|
46
|
+
size="md"
|
|
47
|
+
error-type="tooltip"
|
|
48
|
+
:error="props.errorMessages.mtu"
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<script setup lang="ts">
|
|
58
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
59
|
+
import type {
|
|
60
|
+
UI_I_SwitchPropertiesFields,
|
|
61
|
+
UI_I_EditSettingsErrorMessage,
|
|
62
|
+
} from '~/components/common/diagramMain/lib/models/interfaces'
|
|
63
|
+
import { validationMessagesArrayNewFunc } from '~/components/common/diagramMain/modals/lib/utils'
|
|
64
|
+
|
|
65
|
+
const props = defineProps<{
|
|
66
|
+
isShowErrorMessage: boolean
|
|
67
|
+
errorMessages: UI_I_EditSettingsErrorMessage
|
|
68
|
+
portsNumber: string
|
|
69
|
+
}>()
|
|
70
|
+
|
|
71
|
+
const emits = defineEmits<{
|
|
72
|
+
(event: 'hide-error-message-alert'): void
|
|
73
|
+
}>()
|
|
74
|
+
|
|
75
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
76
|
+
|
|
77
|
+
const fieldsValues = defineModel<UI_I_SwitchPropertiesFields>()
|
|
78
|
+
|
|
79
|
+
const keys = ref<keyof UI_I_EditSettingsErrorMessage>(['mtu'])
|
|
80
|
+
|
|
81
|
+
const validationMessagesArray = computed(() =>
|
|
82
|
+
validationMessagesArrayNewFunc(keys.value, props.errorMessages)
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
const onHideMessage = (
|
|
86
|
+
messageKey: keyof UI_I_EditSettingsErrorMessage
|
|
87
|
+
): void => {
|
|
88
|
+
keys.value = keys.value
|
|
89
|
+
.filter((key) => key !== messageKey)
|
|
90
|
+
.filter((key) => props.errorMessages[key])
|
|
91
|
+
|
|
92
|
+
if (keys.value.length === 0) {
|
|
93
|
+
emits('hide-error-message-alert')
|
|
94
|
+
keys.value = ['mtu']
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
watch(
|
|
99
|
+
() => props.flagSendData,
|
|
100
|
+
() => {
|
|
101
|
+
keys.value = ['mtu']
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<style scoped lang="scss">
|
|
107
|
+
.content {
|
|
108
|
+
width: 100%;
|
|
109
|
+
|
|
110
|
+
&-fields-title {
|
|
111
|
+
font-weight: 400;
|
|
112
|
+
font-size: 20px;
|
|
113
|
+
line-height: 24px;
|
|
114
|
+
letter-spacing: 0;
|
|
115
|
+
color: var(--title-form-first-color);
|
|
116
|
+
margin-bottom: 16px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&-title {
|
|
120
|
+
display: block;
|
|
121
|
+
margin: 16px 0;
|
|
122
|
+
font-weight: 500;
|
|
123
|
+
font-size: 16px;
|
|
124
|
+
line-height: 20px;
|
|
125
|
+
letter-spacing: 0;
|
|
126
|
+
color: var(--title-form-first-color);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&-subtitle {
|
|
130
|
+
font-weight: 400;
|
|
131
|
+
font-size: 13px;
|
|
132
|
+
line-height: 16px;
|
|
133
|
+
letter-spacing: 0;
|
|
134
|
+
vertical-align: middle;
|
|
135
|
+
color: var(--title-form-first-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.col {
|
|
139
|
+
display: flex;
|
|
140
|
+
column-gap: 16px;
|
|
141
|
+
|
|
142
|
+
&-left {
|
|
143
|
+
padding-top: 10px;
|
|
144
|
+
width: calc((100% - 8px) / 3);
|
|
145
|
+
text-overflow: ellipsis;
|
|
146
|
+
white-space: nowrap;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
|
|
149
|
+
&.text {
|
|
150
|
+
padding: 8px 0;
|
|
151
|
+
line-height: 20px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&-right {
|
|
156
|
+
width: calc(((100% - 8px) / 3) * 2);
|
|
157
|
+
|
|
158
|
+
&.text {
|
|
159
|
+
padding: 8px 0;
|
|
160
|
+
max-width: 400px;
|
|
161
|
+
font-weight: 400;
|
|
162
|
+
font-size: 13px;
|
|
163
|
+
line-height: 20px;
|
|
164
|
+
letter-spacing: 0;
|
|
165
|
+
color: var(--title-color);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&.combobox {
|
|
169
|
+
max-width: 200px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&-fields {
|
|
175
|
+
&-alert {
|
|
176
|
+
margin-bottom: 8px;
|
|
177
|
+
|
|
178
|
+
&-item:not(:last-of-type) {
|
|
179
|
+
margin-bottom: 12px;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&-block {
|
|
184
|
+
padding-top: 8px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&-col {
|
|
188
|
+
display: flex;
|
|
189
|
+
column-gap: 12px;
|
|
190
|
+
|
|
191
|
+
&-left {
|
|
192
|
+
width: 60%;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&-right {
|
|
196
|
+
width: 40%;
|
|
197
|
+
|
|
198
|
+
&.text {
|
|
199
|
+
max-width: 400px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.combobox {
|
|
203
|
+
max-width: 200px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@media (max-width: 896px) {
|
|
211
|
+
.content-fields {
|
|
212
|
+
&-col {
|
|
213
|
+
display: flex;
|
|
214
|
+
row-gap: 12px;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
|
|
217
|
+
&-left {
|
|
218
|
+
width: 100%;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&-right {
|
|
222
|
+
width: 100%;
|
|
223
|
+
|
|
224
|
+
&.text {
|
|
225
|
+
max-width: 400px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.combobox {
|
|
229
|
+
max-width: 200px;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
</style>
|