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
|
@@ -43,7 +43,7 @@ export const getHeaderDataFunc = (
|
|
|
43
43
|
text: localization.common.diskGroup,
|
|
44
44
|
isSortable: false,
|
|
45
45
|
sort: 'asc',
|
|
46
|
-
width: '
|
|
46
|
+
width: '180px',
|
|
47
47
|
show: true,
|
|
48
48
|
filter: false,
|
|
49
49
|
},
|
|
@@ -83,7 +83,7 @@ export const getHeaderDataFunc = (
|
|
|
83
83
|
text: localization.common.sharing,
|
|
84
84
|
isSortable: false,
|
|
85
85
|
sort: 'asc',
|
|
86
|
-
width: '
|
|
86
|
+
width: '180px',
|
|
87
87
|
show: true,
|
|
88
88
|
filter: false,
|
|
89
89
|
},
|
|
@@ -93,7 +93,7 @@ export const getHeaderDataFunc = (
|
|
|
93
93
|
text: localization.common.target,
|
|
94
94
|
isSortable: false,
|
|
95
95
|
sort: 'asc',
|
|
96
|
-
width: '
|
|
96
|
+
width: '180px',
|
|
97
97
|
show: true,
|
|
98
98
|
filter: false,
|
|
99
99
|
},
|
|
@@ -103,7 +103,7 @@ export const getHeaderDataFunc = (
|
|
|
103
103
|
text: localization.common.cache,
|
|
104
104
|
isSortable: false,
|
|
105
105
|
sort: 'asc',
|
|
106
|
-
width: '
|
|
106
|
+
width: '180px',
|
|
107
107
|
show: true,
|
|
108
108
|
filter: false,
|
|
109
109
|
},
|
|
@@ -113,7 +113,7 @@ export const getHeaderDataFunc = (
|
|
|
113
113
|
text: localization.common.ioControl,
|
|
114
114
|
isSortable: false,
|
|
115
115
|
sort: 'asc',
|
|
116
|
-
width: '
|
|
116
|
+
width: '180px',
|
|
117
117
|
show: true,
|
|
118
118
|
filter: false,
|
|
119
119
|
},
|
|
@@ -123,7 +123,7 @@ export const getHeaderDataFunc = (
|
|
|
123
123
|
text: localization.common.discard,
|
|
124
124
|
isSortable: false,
|
|
125
125
|
sort: 'asc',
|
|
126
|
-
width: '
|
|
126
|
+
width: '180px',
|
|
127
127
|
show: true,
|
|
128
128
|
filter: false,
|
|
129
129
|
},
|
|
@@ -133,7 +133,7 @@ export const getHeaderDataFunc = (
|
|
|
133
133
|
text: localization.common.diskMode,
|
|
134
134
|
isSortable: false,
|
|
135
135
|
sort: 'asc',
|
|
136
|
-
width: '
|
|
136
|
+
width: '180px',
|
|
137
137
|
show: true,
|
|
138
138
|
filter: false,
|
|
139
139
|
},
|
|
@@ -158,6 +158,7 @@ export const getBodyDataFunc = (
|
|
|
158
158
|
bodyData: UI_I_StorageConfigurePerDiskItem[],
|
|
159
159
|
localization: UI_I_Localization
|
|
160
160
|
): UI_I_DataTableBody[] => {
|
|
161
|
+
|
|
161
162
|
return bodyData.map((disk, index: number) => {
|
|
162
163
|
const diskFormat =
|
|
163
164
|
index === 0 ? 'N/A' : UI_E_SelectStorageDiskFormat[disk.disk_format]
|
|
@@ -183,12 +184,6 @@ export const getBodyDataFunc = (
|
|
|
183
184
|
: 'False'
|
|
184
185
|
: localization.common[diskSharingKey]
|
|
185
186
|
|
|
186
|
-
const diskCache = disk.extra.cache
|
|
187
|
-
const diskCacheValue =
|
|
188
|
-
!diskCache || ['none', 'n/a'].includes(diskCache.toLowerCase())
|
|
189
|
-
? '--'
|
|
190
|
-
: disk.extra.cache
|
|
191
|
-
|
|
192
187
|
return {
|
|
193
188
|
row: index,
|
|
194
189
|
collapse: false,
|
|
@@ -203,7 +198,7 @@ export const getBodyDataFunc = (
|
|
|
203
198
|
},
|
|
204
199
|
{
|
|
205
200
|
col: 'col1',
|
|
206
|
-
text: disk.disk_group
|
|
201
|
+
text: disk.disk_group,
|
|
207
202
|
},
|
|
208
203
|
{
|
|
209
204
|
col: 'col2',
|
|
@@ -226,10 +221,10 @@ export const getBodyDataFunc = (
|
|
|
226
221
|
data: diskSharingData,
|
|
227
222
|
},
|
|
228
223
|
|
|
229
|
-
{ col: 'col6', text: disk.extra.target
|
|
224
|
+
{ col: 'col6', text: disk.extra.target },
|
|
230
225
|
{
|
|
231
226
|
col: 'col7',
|
|
232
|
-
text:
|
|
227
|
+
text: disk.extra.cache,
|
|
233
228
|
},
|
|
234
229
|
{ col: 'col8', text: disk.extra.io_control },
|
|
235
230
|
{
|
|
@@ -79,12 +79,6 @@ export const bodyItems = (
|
|
|
79
79
|
? disk[vmMigrateDiskTableItemKeys[2]]
|
|
80
80
|
: `${disk.extra.disk_source} (${disk.extra.disk_size} ${localization.common.mb} )`
|
|
81
81
|
|
|
82
|
-
const diskCache = disk.extra[vmMigrateDiskTableItemKeys[7]]
|
|
83
|
-
const diskCacheValue =
|
|
84
|
-
!diskCache || ['none', 'n/a'].includes(diskCache.toLowerCase())
|
|
85
|
-
? '--'
|
|
86
|
-
: disk.extra[vmMigrateDiskTableItemKeys[7]]
|
|
87
|
-
|
|
88
82
|
bodyItems.push([
|
|
89
83
|
{
|
|
90
84
|
key: 'col0',
|
|
@@ -130,7 +124,7 @@ export const bodyItems = (
|
|
|
130
124
|
},
|
|
131
125
|
{
|
|
132
126
|
key: 'col7',
|
|
133
|
-
text:
|
|
127
|
+
text: disk.extra[vmMigrateDiskTableItemKeys[7]],
|
|
134
128
|
id: key,
|
|
135
129
|
testId: `disk-table-${key}`,
|
|
136
130
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/>
|
|
11
11
|
|
|
12
12
|
<div>
|
|
13
|
-
<span class="icon-vm
|
|
13
|
+
<span class="icon-vm vsphere-icon-vm"></span>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
16
|
<span v-if="props.data.length === 1" class="selected-per-disk__text">{{
|
|
@@ -31,13 +31,15 @@
|
|
|
31
31
|
dropdown-right
|
|
32
32
|
dropdown-bottom
|
|
33
33
|
>
|
|
34
|
-
<div
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
<div
|
|
35
|
+
v-for="(item, key) in props.data"
|
|
36
|
+
:key="key"
|
|
37
|
+
class="flex items-center"
|
|
38
|
+
>
|
|
39
|
+
<span class="icon-vm vsphere-icon-vm"></span>
|
|
40
|
+
<span class="selected-per-disk__text">
|
|
41
|
+
{{ item }}
|
|
42
|
+
</span>
|
|
41
43
|
</div>
|
|
42
44
|
</common-tooltip-help>
|
|
43
45
|
</div>
|
|
@@ -73,19 +75,12 @@ const onGoBack = (): void => {
|
|
|
73
75
|
color: var(--btn-primary-fill-bg-color);
|
|
74
76
|
margin-right: 8px;
|
|
75
77
|
cursor: pointer;
|
|
76
|
-
&:hover {
|
|
77
|
-
color: var(--btn-primary-fill-hover-bg-color);
|
|
78
|
-
}
|
|
79
78
|
}
|
|
80
79
|
&-vm {
|
|
81
80
|
display: block;
|
|
82
|
-
min-width: 20px;
|
|
83
81
|
width: 20px;
|
|
84
82
|
height: 20px;
|
|
85
83
|
margin-right: 8px;
|
|
86
|
-
&.small-margin {
|
|
87
|
-
margin-right: 4px;
|
|
88
|
-
}
|
|
89
84
|
}
|
|
90
85
|
}
|
|
91
86
|
|
|
@@ -94,8 +89,6 @@ const onGoBack = (): void => {
|
|
|
94
89
|
color: var(--title-form-first-color);
|
|
95
90
|
font-weight: 400;
|
|
96
91
|
font-size: 13px;
|
|
97
|
-
line-height: 18px;
|
|
98
|
-
align-self: center;
|
|
99
92
|
}
|
|
100
93
|
&__all-objects {
|
|
101
94
|
@include flex($align: center);
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<span
|
|
4
|
-
class="tooltip-info__title"
|
|
5
|
-
@click.stop="isShowTooltipLocal = !isShowTooltipLocal"
|
|
6
|
-
>
|
|
7
|
-
{{ localization.common.vmOrigin }}
|
|
8
|
-
</span>
|
|
2
|
+
<div class="tooltip-info">
|
|
3
|
+
<span class="tooltip-info__title">{{ localization.common.vmOrigin }}</span>
|
|
9
4
|
<ui-icon
|
|
10
5
|
id="vm-origin-info-trigger"
|
|
11
|
-
class="tooltip-info__icon pointer"
|
|
6
|
+
:class="['tooltip-info__icon pointer', { active: isShowTooltipLocal }]"
|
|
12
7
|
name="info"
|
|
13
|
-
width="
|
|
14
|
-
height="
|
|
8
|
+
width="20"
|
|
9
|
+
height="20"
|
|
15
10
|
@click.stop="isShowTooltipLocal = !isShowTooltipLocal"
|
|
16
11
|
/>
|
|
17
12
|
<ui-popup-window
|
|
@@ -45,7 +40,7 @@
|
|
|
45
40
|
:key="item2.name"
|
|
46
41
|
class="flex items-center mt-2"
|
|
47
42
|
>
|
|
48
|
-
<span :class="
|
|
43
|
+
<span :class="item2.iconName"></span>
|
|
49
44
|
<span class="item-name">{{ item2.name }}</span>
|
|
50
45
|
</div>
|
|
51
46
|
</div>
|
|
@@ -72,29 +67,22 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
72
67
|
@import 'assets/scss/common/mixins.scss';
|
|
73
68
|
.tooltip-info {
|
|
74
69
|
@include flex($align: center);
|
|
75
|
-
column-gap: 8px;
|
|
76
|
-
&:hover {
|
|
77
|
-
.tooltip-info__title,
|
|
78
|
-
.tooltip-info__icon {
|
|
79
|
-
color: var(--close-icon);
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
&.isOpen {
|
|
84
|
-
.tooltip-info__title,
|
|
85
|
-
.tooltip-info__icon {
|
|
86
|
-
color: var(--btn-primary-fill-bg-color);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
70
|
&__title {
|
|
90
71
|
font-family: 'Inter', sans-serif;
|
|
91
|
-
color:
|
|
72
|
+
color: var(--title-form-first-color);
|
|
92
73
|
font-weight: 500;
|
|
93
74
|
font-size: 12px;
|
|
94
75
|
white-space: nowrap;
|
|
76
|
+
margin-right: 4px;
|
|
95
77
|
}
|
|
96
78
|
&__icon {
|
|
97
79
|
color: var(--form-icon-color);
|
|
80
|
+
&:hover {
|
|
81
|
+
color: var(--close-icon);
|
|
82
|
+
}
|
|
83
|
+
&.active {
|
|
84
|
+
color: var(--btn-primary-fill-bg-color);
|
|
85
|
+
}
|
|
98
86
|
}
|
|
99
87
|
|
|
100
88
|
.common-widget-info {
|
|
@@ -111,22 +99,14 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
111
99
|
&__content {
|
|
112
100
|
.item-row {
|
|
113
101
|
margin-top: 12px;
|
|
114
|
-
&:first-child {
|
|
115
|
-
margin-top: 20px;
|
|
116
|
-
}
|
|
117
102
|
}
|
|
118
103
|
.title-row {
|
|
119
104
|
font-family: 'Inter', sans-serif;
|
|
120
|
-
color:
|
|
105
|
+
color: var(--title-form-second-color);
|
|
121
106
|
font-weight: 500;
|
|
122
107
|
font-size: 13px;
|
|
123
|
-
line-height: 18px;
|
|
124
108
|
margin-bottom: 8px;
|
|
125
109
|
}
|
|
126
|
-
.icon-row {
|
|
127
|
-
width: 20px;
|
|
128
|
-
height: 20px;
|
|
129
|
-
}
|
|
130
110
|
|
|
131
111
|
.item-name {
|
|
132
112
|
font-family: 'Inter', sans-serif;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export type UI_T_TasksStateLoading = 'tasks' | 'recentTasks'
|
|
2
2
|
export type UI_T_TaskStatus =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
| 6 // warning
|
|
3
|
+
0 | // queued
|
|
4
|
+
1 | // running
|
|
5
|
+
2 | // completed
|
|
6
|
+
3 | // failed
|
|
7
|
+
4 | // canceled
|
|
8
|
+
5 // retrying
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bfg-common",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.67",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "nuxt build",
|
|
7
7
|
"dev": "nuxt dev --port=3002",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@vueuse/core": "10.1.2",
|
|
19
19
|
"@vueuse/nuxt": "10.1.2",
|
|
20
20
|
"bfg-nuxt-3-graph": "1.0.28",
|
|
21
|
-
"bfg-uikit": "1.1.
|
|
21
|
+
"bfg-uikit": "1.1.9",
|
|
22
22
|
"eslint-config-prettier": "^8.5.0",
|
|
23
23
|
"eslint-plugin-myrules": "file:./eslint",
|
|
24
24
|
"nuxt": "3.11.2",
|
package/plugins/directives.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DirectiveBinding } from '@vue/runtime-core'
|
|
2
|
-
import type {
|
|
2
|
+
import type {UI_I_Localization} from "~/lib/models/interfaces";
|
|
3
3
|
|
|
4
4
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
5
5
|
nuxtApp.vueApp.directive('development', {
|
|
@@ -22,7 +22,8 @@ function applyDevelopmentState(el: HTMLElement, isDevelopment: boolean) {
|
|
|
22
22
|
|
|
23
23
|
el.setAttribute('title', localization.value.common.inDevelopment)
|
|
24
24
|
el.setAttribute('disabled', 'true')
|
|
25
|
-
el.
|
|
25
|
+
el.style.opacity = '0.6'
|
|
26
|
+
el.style.cursor = 'not-allowed'
|
|
26
27
|
|
|
27
28
|
// Оборачиваем, чтобы не навешивать несколько обработчиков
|
|
28
29
|
const preventClick = (e: MouseEvent) => {
|
|
@@ -39,7 +40,8 @@ function applyDevelopmentState(el: HTMLElement, isDevelopment: boolean) {
|
|
|
39
40
|
|
|
40
41
|
function cleanupDevelopment(el: HTMLElement) {
|
|
41
42
|
el.removeAttribute('title')
|
|
42
|
-
el.
|
|
43
|
+
el.style.opacity = ''
|
|
44
|
+
el.style.cursor = ''
|
|
43
45
|
|
|
44
46
|
const handler = (el as any)._developmentClickHandler
|
|
45
47
|
if (handler) {
|
|
@@ -70,7 +70,6 @@ wdi.Agent = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
70
70
|
|
|
71
71
|
setResolution: function(width, height) {
|
|
72
72
|
//TODO move this to a setting
|
|
73
|
-
// SC-2122
|
|
74
73
|
if(width < 800) {
|
|
75
74
|
width = 800;
|
|
76
75
|
}
|
|
@@ -81,23 +80,23 @@ wdi.Agent = $.spcExtend(wdi.EventObject.prototype, {
|
|
|
81
80
|
|
|
82
81
|
//adapt resolution, TODO: this needs to be refractored
|
|
83
82
|
var packetData = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
83
|
+
type: wdi.AgentMessageTypes.VD_AGENT_MONITORS_CONFIG,
|
|
84
|
+
opaque: 0,
|
|
85
|
+
data: new wdi.VDAgentMonitorsConfig({
|
|
86
|
+
num_of_monitors: 1,
|
|
87
|
+
flags: 0,
|
|
88
|
+
data: new wdi.VDAgentMonConfig({
|
|
89
|
+
width: width,
|
|
90
|
+
height: height,
|
|
91
|
+
// Custom code
|
|
92
|
+
// depth: 64,
|
|
93
|
+
depth: 32, // SC-2122
|
|
94
|
+
// Custom code end
|
|
95
|
+
x: 0,
|
|
96
|
+
y: 0
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
};
|
|
101
100
|
this.sendAgentPacket(packetData);
|
|
102
101
|
},
|
|
103
102
|
|
package/store/tasks/actions.ts
CHANGED
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
} from '~/lib/models/store/tasks/interfaces'
|
|
19
19
|
import type { UI_I_TasksState } from '~/store/tasks/lib/models/interfaces'
|
|
20
20
|
import type { UI_I_RefreshStack } from '~/store/main/lib/interfaces'
|
|
21
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
|
22
21
|
import { tasksConstructor } from '~/store/tasks/mappers/tasks'
|
|
23
22
|
import { recentTasks } from '~/store/tasks/mappers/recentTasks'
|
|
24
23
|
|
|
@@ -29,13 +28,9 @@ export default {
|
|
|
29
28
|
state: UI_I_TasksState
|
|
30
29
|
dispatch: <T>(arg0: string, arg1: T, arg2: UI_I_CommitOptions) => void
|
|
31
30
|
},
|
|
32
|
-
payload:
|
|
33
|
-
data: UI_I_DataTableQuery
|
|
34
|
-
project: UI_T_Project
|
|
35
|
-
}
|
|
31
|
+
payload: UI_I_DataTableQuery
|
|
36
32
|
): Promise<API_UI_I_Error | void> {
|
|
37
|
-
const {
|
|
38
|
-
const { page, pageSize, sortBy, filter } = data
|
|
33
|
+
const { page, pageSize, sortBy, filter } = payload
|
|
39
34
|
|
|
40
35
|
const query: UI_I_TableQuery = {
|
|
41
36
|
page_size: pageSize,
|
|
@@ -43,21 +38,7 @@ export default {
|
|
|
43
38
|
}
|
|
44
39
|
|
|
45
40
|
if (sortBy) query.sortBy = sortBy
|
|
46
|
-
if (filter)
|
|
47
|
-
if (project === 'procurator') {
|
|
48
|
-
query.filter = filter
|
|
49
|
-
} else {
|
|
50
|
-
const filters = filter.split(',')
|
|
51
|
-
filters.forEach((item) => {
|
|
52
|
-
const [field, value] = item.split('.')
|
|
53
|
-
|
|
54
|
-
if (field && value) {
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
query[field] = value
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
}
|
|
41
|
+
if (filter) query.filter = filter
|
|
61
42
|
|
|
62
43
|
const queryJson: string = JSON.stringify({ type: 'tasks', ...query })
|
|
63
44
|
const lastQuery: string = context.state.taskQuery || ''
|
|
@@ -82,9 +63,7 @@ export default {
|
|
|
82
63
|
value: true,
|
|
83
64
|
})
|
|
84
65
|
},
|
|
85
|
-
onResponse({
|
|
86
|
-
response,
|
|
87
|
-
}: API_UI_I_Response<API_UI_I_Task<string> | null>) {
|
|
66
|
+
onResponse({ response }: API_UI_I_Response<API_UI_I_Task<string> | null>) {
|
|
88
67
|
const tasks = tasksConstructor(response._data)
|
|
89
68
|
|
|
90
69
|
context.commit('M_SET_TASKS_LIST', tasks)
|
|
@@ -161,7 +140,10 @@ export default {
|
|
|
161
140
|
payload: string
|
|
162
141
|
): Promise<void> {
|
|
163
142
|
// Скрываем кнопку cancel
|
|
164
|
-
context.commit(
|
|
143
|
+
context.commit(
|
|
144
|
+
'M_HIDE_CANCEL_RECENT_TASK_BY_ID',
|
|
145
|
+
payload
|
|
146
|
+
)
|
|
165
147
|
const { error } = await useMyFetch<
|
|
166
148
|
API_UI_I_RecentTask<string>,
|
|
167
149
|
API_UI_I_Error
|
package/components/common/configure/physicalAdapters/modals/edit/lib/validations/validations.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
|
|
3
|
-
export const vfNumberValidationFunc = (
|
|
4
|
-
vfNumber: number,
|
|
5
|
-
localization: UI_I_Localization,
|
|
6
|
-
isAlert = false
|
|
7
|
-
): string => {
|
|
8
|
-
if (vfNumber !== 0 && !vfNumber) {
|
|
9
|
-
return isAlert
|
|
10
|
-
? localization.inventoryConfigure.vfRequiredMessage
|
|
11
|
-
: localization.common.fieldRequired
|
|
12
|
-
} else if (vfNumber < 1 || vfNumber > 63) {
|
|
13
|
-
return isAlert
|
|
14
|
-
? localization.inventoryConfigure.vfNotNegativeMessage
|
|
15
|
-
: localization.inventoryConfigure.vfNotNegativeMessage
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return ''
|
|
19
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="currentComponent"
|
|
4
|
-
:project="props.project"
|
|
5
|
-
:is-show-diagram="props.isShowDiagram"
|
|
6
|
-
:diagram-name="props.diagramName"
|
|
7
|
-
:test-id="props.testId"
|
|
8
|
-
@toggle-diagram="emits('toggle-diagram')"
|
|
9
|
-
@show-modal="onShowModal"
|
|
10
|
-
/>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script setup lang="ts">
|
|
14
|
-
import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
15
|
-
import type { UI_T_Project } from '~/lib/models/types'
|
|
16
|
-
|
|
17
|
-
const props = withDefaults(
|
|
18
|
-
defineProps<{
|
|
19
|
-
isShowDiagram: boolean
|
|
20
|
-
diagramName: string
|
|
21
|
-
testId: string
|
|
22
|
-
project?: UI_T_Project
|
|
23
|
-
}>(),
|
|
24
|
-
{
|
|
25
|
-
project: undefined,
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
const emits = defineEmits<{
|
|
30
|
-
(event: 'toggle-diagram'): void
|
|
31
|
-
(event: 'show-modal', modalName: string, data?: { switch_name: string }): void
|
|
32
|
-
}>()
|
|
33
|
-
|
|
34
|
-
const { $store }: any = useNuxtApp()
|
|
35
|
-
|
|
36
|
-
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
37
|
-
|
|
38
|
-
const currentComponent = computed(() =>
|
|
39
|
-
isNewView.value
|
|
40
|
-
? defineAsyncComponent(() => import('./HeaderNew.vue'))
|
|
41
|
-
: defineAsyncComponent(() => import('./HeaderOld.vue'))
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
const onShowModal = (modalName: string, data?: { switch_name: string }) => {
|
|
45
|
-
emits('show-modal', modalName, data)
|
|
46
|
-
}
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<style scoped lang="scss"></style>
|