bfg-common 1.5.486 → 1.5.488
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/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/localization/local_be.json +9 -2
- package/assets/localization/local_en.json +19 -12
- package/assets/localization/local_hy.json +9 -2
- package/assets/localization/local_kk.json +9 -2
- package/assets/localization/local_ru.json +9 -2
- package/assets/localization/local_zh.json +9 -2
- package/assets/scss/common/theme.scss +2 -2
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/collapse/CollapseNav.vue +170 -170
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/adapterManager/AdapterManager.vue +189 -545
- package/components/common/adapterManager/AdapterManagerNew.vue +300 -0
- package/components/common/adapterManager/AdapterManagerOld.vue +498 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModal.vue +70 -0
- package/components/common/adapterManager/addAdapterModal/AddAdapterModalNew.vue +77 -0
- package/components/common/adapterManager/{AddAdapterModal.vue → addAdapterModal/AddAdapterModalOld.vue} +16 -46
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModal.vue +32 -0
- package/components/common/adapterManager/addAdapterWarningModal/AddAdapterWarningModalNew.vue +38 -0
- package/components/common/adapterManager/{AddAdapterWarningModal.vue → addAdapterWarningModal/AddAdapterWarningModalOld.vue} +5 -14
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModal.vue +31 -0
- package/components/common/adapterManager/noActiveAdaptersModal/NoActiveAdaptersModalNew.vue +34 -0
- package/components/common/adapterManager/{NoActiveAdaptersModal.vue → noActiveAdaptersModal/NoActiveAdaptersModalOld.vue} +2 -6
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModal.vue +31 -0
- package/components/common/adapterManager/noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalNew.vue +34 -0
- package/components/common/adapterManager/{NoConnectedActiveAdaptersModal.vue → noConnectedActiveAdaptersModal/NoConnectedActiveAdaptersModalOld.vue} +2 -6
- package/components/common/adapterManager/ui/actions/bar/Bar.vue +57 -0
- package/components/common/adapterManager/ui/actions/bar/BarNew.vue +38 -0
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButton.vue +28 -0
- package/components/common/adapterManager/ui/actions/moveDownAdapterButton/MoveDownAdapterButtonNew.vue +75 -0
- package/components/common/adapterManager/ui/actions/{MoveDownAdapterButton.vue → moveDownAdapterButton/MoveDownAdapterButtonOld.vue} +3 -9
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButton.vue +28 -0
- package/components/common/adapterManager/ui/actions/moveUpAdapterButton/MoveUpAdapterButtonNew.vue +76 -0
- package/components/common/adapterManager/ui/actions/{MoveUpAdapterButton.vue → moveUpAdapterButton/MoveUpAdapterButtonOld.vue} +3 -9
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapter.vue +24 -0
- package/components/common/adapterManager/ui/noSelectedAdapter/NoSelectedAdapterNew.vue +13 -0
- package/components/common/adapterManager/ui/secondTitle/SecondTitle.vue +31 -0
- package/components/common/adapterManager/ui/secondTitle/SecondTitleNew.vue +36 -0
- package/components/common/adapterManager/ui/{SecondTitle.vue → secondTitle/SecondTitleOld.vue} +0 -1
- package/components/common/adapterManager/ui/table/Table.vue +59 -133
- package/components/common/adapterManager/ui/table/TableNew.vue +136 -0
- package/components/common/adapterManager/ui/table/TableOld.vue +141 -0
- package/components/common/adapterManager/ui/table/adapters/Adapters.vue +44 -0
- package/components/common/adapterManager/ui/table/adapters/AdaptersNew.vue +153 -0
- package/components/common/adapterManager/ui/table/{Adapters.vue → adapters/AdaptersOld.vue} +5 -10
- package/components/common/adapterManager/ui/table/header/Header.vue +57 -0
- package/components/common/adapterManager/ui/table/header/HeaderNew.vue +77 -0
- package/components/common/adapterManager/ui/table/{Header.vue → header/HeaderOld.vue} +3 -20
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/browse/blocks/lib/models/types.ts +1 -1
- package/components/common/browse/lib/models/interfaces.ts +5 -5
- package/components/common/context/lib/models/interfaces.ts +33 -33
- package/components/common/diagramMain/DiagramMain.vue +3 -1
- package/components/common/diagramMain/lib/models/interfaces.ts +5 -2
- package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +6 -5
- package/components/common/diagramMain/modals/Modals.vue +19 -1
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +23 -20
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +401 -398
- package/components/common/diagramMain/modals/lib/config/switchModal.ts +3 -0
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +8 -0
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +12 -1
- package/components/common/diagramMain/modals/remove/RemoveModalOld.vue +12 -1
- package/components/common/diagramMain/modals/viewSettings/info/Info.vue +0 -2
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettings.vue +6 -0
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsNew.vue +140 -71
- package/components/common/diagramMain/modals/viewSettings/viewSettings/ViewSettingsOld.vue +4 -4
- package/components/common/diagramMain/network/Contents.vue +497 -497
- package/components/common/layout/theHeader/feedback/new/New.vue +2 -2
- package/components/common/layout/theHeader/feedback/new/description/Description.vue +3 -3
- package/components/common/layout/theHeader/feedback/new/tabs/Tabs.vue +4 -2
- package/components/common/layout/theHeader/feedback/new/tabs/lib/config/tabs.ts +3 -2
- package/components/common/layout/theHeader/feedback/new/tabs/lib/models/interfaces.ts +5 -0
- package/components/common/layout/theHeader/helpMenu/About.vue +79 -79
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +96 -95
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +79 -79
- package/components/common/layout/theHeader/userMenu/modals/changePassword/ChangePasswordNew.vue +1 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +9 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/ViewNew.vue +6 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +1 -0
- package/components/common/monitor/overview/OverviewNew.vue +4 -1
- package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModal.vue +0 -2
- package/components/common/monitor/overview/filters/customIntervalModal/customIntervalModalNew/CustomIntervalModalNew.vue +6 -6
- package/components/common/pages/backups/DetailView.vue +52 -52
- package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
- package/components/common/pages/backups/modals/Modals.vue +243 -243
- package/components/common/pages/backups/modals/createBackup/configuration/Configuration.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/lib/config/options.ts +6 -6
- package/components/common/pages/backups/modals/createBackup/datastores/tableView/TableView.vue +95 -95
- package/components/common/pages/backups/modals/createBackup/general/General.vue +141 -141
- package/components/common/pages/backups/modals/createBackup/lib/config/strategyOptions.ts +12 -12
- package/components/common/pages/backups/modals/lib/config/restore.ts +115 -115
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +186 -186
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +27 -27
- package/components/common/pages/backups/modals/restore/disks/tableView/lib/config/table.ts +117 -117
- package/components/common/pages/backups/modals/restore/name/Name.vue +166 -166
- package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
- package/components/common/pages/backups/modals/restore/networks/Networks.vue +67 -67
- package/components/common/pages/backups/modals/restore/networks/table/Table.vue +214 -214
- package/components/common/pages/backups/modals/restore/types/lib/config/typeOptions.ts +25 -25
- package/components/common/pages/backups/tools/Tools.vue +75 -75
- package/components/common/pages/backups/tools/lib/config/tabs.ts +36 -36
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/pages/tasks/table/Table.vue +8 -9
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/spiceConsole/Drawer.vue +392 -392
- package/components/common/spiceConsole/SpiceConsole.vue +184 -184
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/add/Add.vue +32 -5
- package/components/common/vm/actions/add/New.vue +8 -2
- package/components/common/vm/actions/add/Old.vue +8 -2
- package/components/common/vm/actions/add/folderTreeView/FolderTreeView.vue +72 -72
- package/components/common/vm/actions/add/folderTreeView/New.vue +40 -40
- package/components/common/vm/actions/add/lib/config/steps.ts +14 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +368 -368
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/Shares.vue +140 -140
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/Location.vue +154 -154
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/location/new/table/Table.vue +99 -99
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddress.vue +119 -119
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIo.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +16 -16
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplays.vue +53 -53
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/Delay.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/Firmware.vue +60 -60
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +174 -174
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +32 -32
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/Password.vue +103 -103
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirection.vue +28 -28
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +143 -143
- package/components/common/vm/actions/common/select/computeResource/New.vue +184 -184
- package/components/common/vm/actions/common/select/computeResource/treeView/TreeView.vue +131 -131
- package/components/common/vm/actions/common/select/createType/CreateType.vue +38 -38
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/name/Name.vue +200 -197
- package/components/common/vm/actions/common/select/name/Old.vue +8 -1
- package/components/common/vm/actions/common/select/os/Old.vue +152 -152
- package/components/common/vm/actions/common/select/os/Os.vue +139 -139
- package/components/common/vm/actions/common/select/storage/new/New.vue +320 -320
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/vm/actions/register/Register.vue +267 -267
- package/components/common/vm/actions/register/lib/config/steps.ts +86 -86
- package/components/common/vmt/actions/add/Add.vue +1 -0
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/components/common/wizards/network/add/Add.vue +9 -3
- package/components/common/wizards/network/add/AddNew.vue +291 -354
- package/components/common/wizards/network/add/AddOld.vue +0 -3
- package/components/common/wizards/network/add/lib/config/config.ts +1 -0
- package/components/common/wizards/network/add/lib/config/initialData.ts +9 -0
- package/components/common/wizards/network/add/lib/config/steps.ts +35 -5
- package/components/common/wizards/network/add/lib/models/interfaces.ts +12 -2
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettings.vue +83 -0
- package/components/common/wizards/network/add/steps/connectionSettings/ConnectionSettingsNew.vue +114 -0
- package/components/common/wizards/network/add/steps/{ConnectionSettings.vue → connectionSettings/ConnectionSettingsOld.vue} +11 -42
- package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitch.vue +99 -0
- package/components/common/wizards/network/add/steps/createStandardSwitch/CreateStandardSwitchNew.vue +80 -0
- package/components/common/wizards/network/add/steps/{CreateStandardSwitch.vue → createStandardSwitch/CreateStandardSwitchOld.vue} +24 -33
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettings.vue +143 -0
- package/components/common/wizards/network/add/steps/ipFourSettings/IpFourSettingsNew.vue +224 -0
- package/components/common/wizards/network/add/steps/{IpFourSettings.vue → ipFourSettings/IpFourSettingsOld.vue} +13 -101
- package/components/common/wizards/network/add/steps/portProperties/PortProperties.vue +214 -0
- package/components/common/wizards/network/add/steps/portProperties/PortPropertiesNew.vue +289 -0
- package/components/common/wizards/network/add/steps/{PortProperties.vue → portProperties/PortPropertiesOld.vue} +19 -166
- package/components/common/wizards/network/add/steps/readyComplete/ReadyComplete.vue +22 -0
- package/components/common/wizards/network/add/steps/readyComplete/ReadyCompleteNew.vue +30 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDevice.vue +7 -2
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceNew.vue +1 -3
- package/components/common/wizards/network/add/steps/selectTargetDevice/SelectTargetDeviceOld.vue +0 -2
- package/components/common/wizards/network/add/validations/common.ts +1 -2
- package/components/common/wizards/network/add/validations/connectionSettings.ts +14 -7
- package/components/common/wizards/network/add/validations/ipFourSettings.ts +24 -10
- package/components/common/wizards/network/add/validations/networkValidation.ts +1 -1
- package/components/common/wizards/network/add/validations/portProperties.ts +52 -20
- package/components/common/wizards/network/add/validations/targetDevice.ts +18 -4
- package/components/common/wizards/vm/migrate/select/network/Network.vue +103 -103
- package/composables/useAppVersion.ts +21 -21
- package/composables/useLocal.ts +6 -6
- package/composables/useLocalCommon.ts +39 -39
- package/package.json +2 -2
- package/plugins/date.ts +233 -233
- package/plugins/panelStates.ts +70 -70
- package/plugins/text.ts +59 -59
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +440 -440
- package/public/spice-console/run.js +210 -210
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/components/common/wizards/network/add/steps/PhysicalAdapter.vue +0 -13
- /package/components/common/adapterManager/ui/actions/{ActionsBar.vue → bar/BarOld.vue} +0 -0
- /package/components/common/adapterManager/ui/{NoSelectedAdapter.vue → noSelectedAdapter/NoSelectedAdapterOld.vue} +0 -0
- /package/components/common/wizards/network/add/steps/{ReadyComplete.vue → readyComplete/ReadyCompleteOld.vue} +0 -0
@@ -34,14 +34,17 @@ export const switchViewSettingsModalTabsFunc = (
|
|
34
34
|
{
|
35
35
|
text: localization.common.all,
|
36
36
|
value: 0,
|
37
|
+
testId: 'switch-view-settings-all',
|
37
38
|
},
|
38
39
|
{
|
39
40
|
text: localization.common.properties,
|
40
41
|
value: 1,
|
42
|
+
testId: 'switch-view-settings-properties',
|
41
43
|
},
|
42
44
|
{
|
43
45
|
text: localization.common.policies,
|
44
46
|
value: 2,
|
47
|
+
testId: 'switch-view-settings-policies',
|
45
48
|
},
|
46
49
|
]
|
47
50
|
|
@@ -11,6 +11,8 @@
|
|
11
11
|
:type="props.type"
|
12
12
|
:switch-name="props.switchName"
|
13
13
|
:host-name="props.hostName"
|
14
|
+
:network-type="props.networkType"
|
15
|
+
:project="props.project"
|
14
16
|
@remove="onRemove"
|
15
17
|
@hide="onHideModal"
|
16
18
|
/>
|
@@ -24,12 +26,16 @@
|
|
24
26
|
:show="props.show"
|
25
27
|
:is-show-loader="props.isShowLoader"
|
26
28
|
:type="props.type"
|
29
|
+
:network-type="props.networkType"
|
30
|
+
:project="props.project"
|
27
31
|
@remove="onRemove"
|
28
32
|
@hide="onHideModal"
|
29
33
|
/>
|
30
34
|
</template>
|
31
35
|
|
32
36
|
<script setup lang="ts">
|
37
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
38
|
+
|
33
39
|
// Props from up
|
34
40
|
const props = withDefaults(
|
35
41
|
defineProps<{
|
@@ -43,6 +49,8 @@ const props = withDefaults(
|
|
43
49
|
label?: string
|
44
50
|
switchName?: string
|
45
51
|
hostName?: string
|
52
|
+
networkType: string
|
53
|
+
project: UI_T_Project
|
46
54
|
}>(),
|
47
55
|
{
|
48
56
|
id: '',
|
@@ -12,6 +12,7 @@
|
|
12
12
|
</template>
|
13
13
|
|
14
14
|
<script setup lang="ts">
|
15
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
15
16
|
import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
|
16
17
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
17
18
|
|
@@ -28,6 +29,8 @@ const props = withDefaults(
|
|
28
29
|
label?: string
|
29
30
|
switchName?: string
|
30
31
|
hostName?: string
|
32
|
+
networkType: string
|
33
|
+
project: UI_T_Project
|
31
34
|
}>(),
|
32
35
|
{
|
33
36
|
id: '',
|
@@ -84,8 +87,16 @@ const buttons = computed<UI_I_ModalTexts>(() => ({
|
|
84
87
|
button2: localization.value.common.confirm,
|
85
88
|
}))
|
86
89
|
|
90
|
+
const isSphereProject = computed<boolean>(() => props.project === 'sphere')
|
91
|
+
|
87
92
|
const onRemove = (): void => {
|
88
|
-
|
93
|
+
const type = isSphereProject.value
|
94
|
+
? props.networkType
|
95
|
+
? `${props.type}${props.networkType}`
|
96
|
+
: props.type
|
97
|
+
: props.type
|
98
|
+
|
99
|
+
emits('remove', props.id, type)
|
89
100
|
}
|
90
101
|
const onHideModal = (): void => {
|
91
102
|
emits('hide')
|
@@ -127,6 +127,7 @@
|
|
127
127
|
</template>
|
128
128
|
|
129
129
|
<script setup lang="ts">
|
130
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
130
131
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
131
132
|
|
132
133
|
// Props from up
|
@@ -140,6 +141,8 @@ const props = withDefaults(
|
|
140
141
|
id?: string
|
141
142
|
isShowLoader?: boolean
|
142
143
|
label?: string
|
144
|
+
networkType: string
|
145
|
+
project: UI_T_Project
|
143
146
|
}>(),
|
144
147
|
{
|
145
148
|
id: '',
|
@@ -182,8 +185,16 @@ const removeModalTextPort = computed<string>(
|
|
182
185
|
${localization.value.common.portRemoveSecondLineText} ${props.id}?`
|
183
186
|
)
|
184
187
|
|
188
|
+
const isSphereProject = computed<boolean>(() => props.project === 'sphere')
|
189
|
+
|
185
190
|
const onRemove = (id: string, type: string) => {
|
186
|
-
|
191
|
+
const typeLocal = isSphereProject.value
|
192
|
+
? props.networkType
|
193
|
+
? `${type}${props.networkType}`
|
194
|
+
: type
|
195
|
+
: type
|
196
|
+
|
197
|
+
emits('remove', id, typeLocal)
|
187
198
|
}
|
188
199
|
const onHideModal = (): void => {
|
189
200
|
emits('hide')
|
@@ -3,6 +3,8 @@
|
|
3
3
|
v-if="isNewView"
|
4
4
|
:view-name="props.viewName"
|
5
5
|
:view-settings-field="props.viewSettingsField"
|
6
|
+
:is-labels-with-dots="props.isLabelsWithDots"
|
7
|
+
:is-ready-complete="props.isReadyComplete"
|
6
8
|
/>
|
7
9
|
<common-diagram-main-modals-view-settings-view-settings-old
|
8
10
|
v-else
|
@@ -21,10 +23,14 @@ const props = withDefaults(
|
|
21
23
|
viewSettingsField: UI_I_ViewSettingsFields
|
22
24
|
viewName?: string
|
23
25
|
withCollapse?: boolean
|
26
|
+
isLabelsWithDots?: boolean
|
27
|
+
isReadyComplete?: boolean
|
24
28
|
}>(),
|
25
29
|
{
|
26
30
|
viewName: '',
|
27
31
|
withCollapse: undefined,
|
32
|
+
isLabelsWithDots: false,
|
33
|
+
isReadyComplete: false,
|
28
34
|
}
|
29
35
|
)
|
30
36
|
|
@@ -1,81 +1,91 @@
|
|
1
1
|
<template>
|
2
|
-
<div>
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
<div class="table-wrapper">
|
3
|
+
<ui-line v-if="props.viewSettingsField.separator" margin="24px 0 16px" />
|
4
|
+
<table
|
5
|
+
:class="['settings-table', { 'ready-complete': props.isReadyComplete }]"
|
6
|
+
>
|
7
|
+
<tbody>
|
8
|
+
<tr>
|
9
|
+
<td colspan="2">
|
10
|
+
<span>
|
11
|
+
{{ props.viewSettingsField.title }}
|
12
|
+
</span>
|
13
|
+
</td>
|
14
|
+
</tr>
|
15
|
+
<template v-if="props.viewSettingsField.rows.length > 0">
|
16
|
+
<tr
|
17
|
+
v-for="(row, rowKey) in props.viewSettingsField.rows"
|
18
|
+
:key="row.name"
|
19
|
+
class="table-block"
|
20
|
+
>
|
21
|
+
<td class="row-name-container">
|
8
22
|
<span>
|
9
|
-
{{
|
23
|
+
{{ row.name
|
24
|
+
}}<template v-if="props.isLabelsWithDots">:</template>
|
10
25
|
</span>
|
11
26
|
</td>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
27
|
+
<td class="row-value-container">
|
28
|
+
<span
|
29
|
+
:class="[
|
30
|
+
'settings-table__values',
|
31
|
+
row.status && {
|
32
|
+
'is-status-yes': row.color,
|
33
|
+
'is-status-no': !row.color,
|
34
|
+
},
|
35
|
+
{
|
36
|
+
'is-array':
|
37
|
+
Array.isArray(row.value) && row.value.length > 0,
|
38
|
+
},
|
39
|
+
]"
|
40
|
+
>
|
25
41
|
<span
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
:data-id="`view-settings-${rowKey}-${key}`"
|
40
|
-
class="settings-table__value array-items"
|
41
|
-
>
|
42
|
-
{{ value }}
|
43
|
-
</span>
|
44
|
-
</template>
|
45
|
-
<template v-else>
|
46
|
-
<span
|
47
|
-
:data-id="`view-settings-${rowKey}`"
|
48
|
-
class="settings-table__value"
|
49
|
-
>--</span
|
50
|
-
>
|
51
|
-
</template>
|
42
|
+
v-if="row.icon"
|
43
|
+
:class="['settings-table__value-icon', row.icon]"
|
44
|
+
></span>
|
45
|
+
<template v-if="Array.isArray(row.value)">
|
46
|
+
<template v-if="row.value.length > 0">
|
47
|
+
<span
|
48
|
+
v-for="(value, key) in row.value"
|
49
|
+
:key="value"
|
50
|
+
:data-id="`view-settings-${rowKey}-${key}`"
|
51
|
+
class="settings-table__value array-items"
|
52
|
+
>
|
53
|
+
{{ value }}
|
54
|
+
</span>
|
52
55
|
</template>
|
53
|
-
<
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
</
|
60
|
-
</
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
<span><ui-icon width="16" height="16" name="info" /></span>
|
68
|
-
<span>
|
69
|
-
{{ props.viewSettingsField.title }}
|
70
|
-
{{ localization.common.isNotAvailableOnThis }}
|
71
|
-
{{ props.viewName }}
|
56
|
+
<template v-else>
|
57
|
+
<span
|
58
|
+
:data-id="`view-settings-${rowKey}`"
|
59
|
+
class="settings-table__value"
|
60
|
+
>--</span
|
61
|
+
>
|
62
|
+
</template>
|
63
|
+
</template>
|
64
|
+
<span
|
65
|
+
v-else
|
66
|
+
:data-id="`view-settings-${rowKey}`"
|
67
|
+
class="settings-table__value"
|
68
|
+
>
|
69
|
+
{{ row.value || '--' }}
|
72
70
|
</span>
|
73
|
-
</
|
71
|
+
</span>
|
74
72
|
</td>
|
75
73
|
</tr>
|
76
|
-
</
|
77
|
-
|
78
|
-
|
74
|
+
</template>
|
75
|
+
<tr v-else-if="props.viewSettingsField.rows.length === 0">
|
76
|
+
<td colspan="2">
|
77
|
+
<div class="not-available">
|
78
|
+
<span><ui-icon width="16" height="16" name="info" /></span>
|
79
|
+
<span>
|
80
|
+
{{ props.viewSettingsField.title }}
|
81
|
+
{{ localization.common.isNotAvailableOnThis }}
|
82
|
+
{{ props.viewName }}
|
83
|
+
</span>
|
84
|
+
</div>
|
85
|
+
</td>
|
86
|
+
</tr>
|
87
|
+
</tbody>
|
88
|
+
</table>
|
79
89
|
</div>
|
80
90
|
</template>
|
81
91
|
|
@@ -88,9 +98,13 @@ const props = withDefaults(
|
|
88
98
|
defineProps<{
|
89
99
|
viewSettingsField: UI_I_ViewSettingsFields
|
90
100
|
viewName?: string
|
101
|
+
isLabelsWithDots?: boolean
|
102
|
+
isReadyComplete?: boolean
|
91
103
|
}>(),
|
92
104
|
{
|
93
105
|
viewName: '',
|
106
|
+
isLabelsWithDots: false,
|
107
|
+
isReadyComplete: false,
|
94
108
|
}
|
95
109
|
)
|
96
110
|
|
@@ -158,10 +172,10 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
158
172
|
color: var(--diagram-info-text);
|
159
173
|
|
160
174
|
&.is-status-yes {
|
161
|
-
color:
|
175
|
+
color: var(--text-green);
|
162
176
|
}
|
163
177
|
&.is-status-no {
|
164
|
-
color:
|
178
|
+
color: var(--text-red);
|
165
179
|
}
|
166
180
|
|
167
181
|
.array-items {
|
@@ -177,6 +191,10 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
177
191
|
width: 100%;
|
178
192
|
display: inline-block;
|
179
193
|
}
|
194
|
+
&__value-icon {
|
195
|
+
//width: 20px;
|
196
|
+
//height: 20px;
|
197
|
+
}
|
180
198
|
}
|
181
199
|
}
|
182
200
|
|
@@ -203,6 +221,57 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
203
221
|
margin-right: 8px;
|
204
222
|
}
|
205
223
|
}
|
224
|
+
|
225
|
+
&.ready-complete {
|
226
|
+
.row-name-container {
|
227
|
+
span {
|
228
|
+
font-weight: 400;
|
229
|
+
font-size: 13px;
|
230
|
+
line-height: 20px;
|
231
|
+
letter-spacing: 0;
|
232
|
+
vertical-align: middle;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
.row-value-container {
|
236
|
+
& > .settings-table__values {
|
237
|
+
display: flex;
|
238
|
+
align-items: center;
|
239
|
+
column-gap: 8px;
|
240
|
+
}
|
241
|
+
& > .settings-table__values.is-array {
|
242
|
+
display: flex;
|
243
|
+
align-items: center;
|
244
|
+
flex-wrap: wrap;
|
245
|
+
gap: 8px;
|
246
|
+
width: 100%;
|
247
|
+
|
248
|
+
.settings-table__value {
|
249
|
+
width: auto;
|
250
|
+
padding: 2.5px 12px;
|
251
|
+
height: 20px;
|
252
|
+
background: var(--horizontal-line);
|
253
|
+
border-radius: 16px;
|
254
|
+
line-height: unset;
|
255
|
+
font-weight: 400;
|
256
|
+
font-size: 12px;
|
257
|
+
line-height: 15px;
|
258
|
+
letter-spacing: 0;
|
259
|
+
text-align: center;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
.settings-table__value {
|
264
|
+
font-weight: 400;
|
265
|
+
font-size: 13px;
|
266
|
+
line-height: 20px;
|
267
|
+
letter-spacing: 0;
|
268
|
+
vertical-align: middle;
|
269
|
+
}
|
270
|
+
.settings-table__value-icon {
|
271
|
+
//width: 20px;
|
272
|
+
//height: 20px;
|
273
|
+
}
|
274
|
+
}
|
206
275
|
}
|
207
276
|
}
|
208
277
|
</style>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
},
|
15
15
|
]"
|
16
16
|
name="angle"
|
17
|
-
data-id="virtual-switch-toggle-icon"
|
17
|
+
:data-id="`virtual-switch-toggle-icon-${props.viewSettingsField.id}`"
|
18
18
|
@click="onToggle"
|
19
19
|
/>
|
20
20
|
<span :class="{ 'title-with-collapse': props.withCollapse }">
|
@@ -57,7 +57,7 @@
|
|
57
57
|
<span
|
58
58
|
v-for="(value, key) in row.value"
|
59
59
|
:key="value"
|
60
|
-
:data-id="`view-settings-${rowKey}-${key}`"
|
60
|
+
:data-id="`view-settings-value-${props.viewSettingsField.id}-${rowKey}-${key}`"
|
61
61
|
class="settings-table__value"
|
62
62
|
>
|
63
63
|
{{ value }}
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</template>
|
66
66
|
<template v-else>
|
67
67
|
<span
|
68
|
-
:data-id="`view-settings-${rowKey}`"
|
68
|
+
:data-id="`view-settings-value-${props.viewSettingsField.id}-${rowKey}`"
|
69
69
|
class="settings-table__value"
|
70
70
|
>--</span
|
71
71
|
>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
</template>
|
74
74
|
<span
|
75
75
|
v-else
|
76
|
-
:data-id="`view-settings-${rowKey}`"
|
76
|
+
:data-id="`view-settings-value-${props.viewSettingsField.id}-${rowKey}`"
|
77
77
|
class="settings-table__value"
|
78
78
|
>
|
79
79
|
{{ row.value || '--' }}
|