bfg-common 1.5.293 → 1.5.295
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_en.json +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +27 -24
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +3 -3
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +6 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +45 -40
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/Vmoptions.vue +152 -147
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsNew.vue +128 -122
- package/components/common/vm/actions/common/customizeHardware/vmoptions/VmoptionsOld.vue +111 -97
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/DelayNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +83 -77
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +11 -6
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsOld.vue +154 -143
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +31 -31
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapOld.vue +44 -43
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +128 -128
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/ToolsNew.vue +1 -1
- package/package.json +2 -2
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
<ui-stack-block :has-children="false">
|
|
46
46
|
<template #stackBlockKey>
|
|
47
|
-
{{ localization.common.machineType }}
|
|
47
|
+
<span class="mt-2">{{ localization.common.machineType }}</span>
|
|
48
48
|
</template>
|
|
49
49
|
<template #stackBlockContent>
|
|
50
50
|
<ui-select
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
<ui-stack-block :has-children="false">
|
|
65
65
|
<template #stackBlockKey>
|
|
66
|
-
{{ localization.common.guestOsFamily }}
|
|
66
|
+
<span class="mt-2">{{ localization.common.guestOsFamily }}</span>
|
|
67
67
|
</template>
|
|
68
68
|
<template #stackBlockContent>
|
|
69
69
|
<ui-select
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
<ui-stack-block :has-children="false">
|
|
85
85
|
<template #stackBlockKey>
|
|
86
|
-
{{ localization.common.guestOsVersion }}
|
|
86
|
+
<span class="mt-2">{{ localization.common.guestOsVersion }}</span>
|
|
87
87
|
</template>
|
|
88
88
|
<template #stackBlockContent>
|
|
89
89
|
<ui-select
|
|
@@ -109,11 +109,16 @@ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
|
109
109
|
|
|
110
110
|
const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
|
|
111
111
|
const vmName = defineModel<string>('vmName', { required: true })
|
|
112
|
-
const guestMachineType = defineModel<
|
|
112
|
+
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
113
|
+
'guestMachineType',
|
|
114
|
+
{
|
|
115
|
+
required: true,
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
|
|
113
119
|
required: true,
|
|
114
120
|
})
|
|
115
|
-
const
|
|
116
|
-
const guestOsVersion = defineModel<string>('guestOsVersion', {
|
|
121
|
+
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
|
|
117
122
|
required: true,
|
|
118
123
|
})
|
|
119
124
|
|
|
@@ -1,143 +1,154 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="general-options">
|
|
3
|
-
<atoms-stack-block
|
|
4
|
-
:has-children="true"
|
|
5
|
-
test-id="general-options-stack-block"
|
|
6
|
-
@toggle="blockIsOpen = $event"
|
|
7
|
-
>
|
|
8
|
-
<template #stackBlockKey>
|
|
9
|
-
<div
|
|
10
|
-
id="vm-wizard-toggle-block-general-options"
|
|
11
|
-
data-id="vm-wizard-toggle-block-general-options"
|
|
12
|
-
class="flex-align-center"
|
|
13
|
-
>
|
|
14
|
-
<span>{{ localization.common.generalOptions }}</span>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<template #stackBlockContent>
|
|
18
|
-
<div v-show="!blockIsOpen">
|
|
19
|
-
{{ localization.common.vmName }}: {{ vmName }}
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
<template #stackChildren>
|
|
23
|
-
<atoms-stack-block :has-children="false">
|
|
24
|
-
<template #stackBlockKey>
|
|
25
|
-
{{ localization.common.vmName }}
|
|
26
|
-
</template>
|
|
27
|
-
<template #stackBlockContent>
|
|
28
|
-
<span>{{ vmName }}</span>
|
|
29
|
-
<!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
|
|
30
|
-
<!-- <input-->
|
|
31
|
-
<!-- v-else-->
|
|
32
|
-
<!-- id="general-option-vm-name"-->
|
|
33
|
-
<!-- v-models="vmName"-->
|
|
34
|
-
<!-- type="text"-->
|
|
35
|
-
<!-- />-->
|
|
36
|
-
</template>
|
|
37
|
-
</atoms-stack-block>
|
|
38
|
-
|
|
39
|
-
<atoms-stack-block :has-children="false">
|
|
40
|
-
<template #stackBlockKey>
|
|
41
|
-
{{ localization.common.machineType }}
|
|
42
|
-
</template>
|
|
43
|
-
<template #stackBlockContent>
|
|
44
|
-
<select
|
|
45
|
-
v-if="guestMachineType"
|
|
46
|
-
id="guest-machine-type-select"
|
|
47
|
-
v-model="guestMachineType"
|
|
48
|
-
:disabled="props.isDisabled"
|
|
49
|
-
data-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
v-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="general-options">
|
|
3
|
+
<atoms-stack-block
|
|
4
|
+
:has-children="true"
|
|
5
|
+
test-id="general-options-stack-block"
|
|
6
|
+
@toggle="blockIsOpen = $event"
|
|
7
|
+
>
|
|
8
|
+
<template #stackBlockKey>
|
|
9
|
+
<div
|
|
10
|
+
id="vm-wizard-toggle-block-general-options"
|
|
11
|
+
data-id="vm-wizard-toggle-block-general-options"
|
|
12
|
+
class="flex-align-center"
|
|
13
|
+
>
|
|
14
|
+
<span>{{ localization.common.generalOptions }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<template #stackBlockContent>
|
|
18
|
+
<div v-show="!blockIsOpen">
|
|
19
|
+
{{ localization.common.vmName }}: {{ vmName }}
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
<template #stackChildren>
|
|
23
|
+
<atoms-stack-block :has-children="false">
|
|
24
|
+
<template #stackBlockKey>
|
|
25
|
+
{{ localization.common.vmName }}
|
|
26
|
+
</template>
|
|
27
|
+
<template #stackBlockContent>
|
|
28
|
+
<span>{{ vmName }}</span>
|
|
29
|
+
<!-- <span v-if="!props.isEdit">{{ vmName }}</span>-->
|
|
30
|
+
<!-- <input-->
|
|
31
|
+
<!-- v-else-->
|
|
32
|
+
<!-- id="general-option-vm-name"-->
|
|
33
|
+
<!-- v-models="vmName"-->
|
|
34
|
+
<!-- type="text"-->
|
|
35
|
+
<!-- />-->
|
|
36
|
+
</template>
|
|
37
|
+
</atoms-stack-block>
|
|
38
|
+
|
|
39
|
+
<atoms-stack-block :has-children="false">
|
|
40
|
+
<template #stackBlockKey>
|
|
41
|
+
{{ localization.common.machineType }}
|
|
42
|
+
</template>
|
|
43
|
+
<template #stackBlockContent>
|
|
44
|
+
<select
|
|
45
|
+
v-if="guestMachineType"
|
|
46
|
+
id="guest-machine-type-select"
|
|
47
|
+
v-model="guestMachineType"
|
|
48
|
+
:disabled="props.isDisabled"
|
|
49
|
+
:data-value="guestMachineType?.value"
|
|
50
|
+
data-id="guest-machine-type-select"
|
|
51
|
+
>
|
|
52
|
+
<option
|
|
53
|
+
v-for="item in props.machineTypeOptions"
|
|
54
|
+
:key="item.value"
|
|
55
|
+
:value="item"
|
|
56
|
+
:data-value="item.value"
|
|
57
|
+
>
|
|
58
|
+
{{ item.text }}
|
|
59
|
+
</option>
|
|
60
|
+
</select>
|
|
61
|
+
</template>
|
|
62
|
+
</atoms-stack-block>
|
|
63
|
+
|
|
64
|
+
<atoms-stack-block :has-children="false">
|
|
65
|
+
<template #stackBlockKey>
|
|
66
|
+
{{ localization.common.guestOsFamily }}
|
|
67
|
+
</template>
|
|
68
|
+
<template #stackBlockContent>
|
|
69
|
+
<select
|
|
70
|
+
v-if="guestOsFamily"
|
|
71
|
+
id="guest-os-family-select"
|
|
72
|
+
v-model="guestOsFamily"
|
|
73
|
+
:disabled="props.isDisabled"
|
|
74
|
+
:data-value="guestOsFamily?.value"
|
|
75
|
+
data-id="guest-os-family-select"
|
|
76
|
+
@change="emits('change-os')"
|
|
77
|
+
>
|
|
78
|
+
<option
|
|
79
|
+
v-for="item in props.osOptions"
|
|
80
|
+
:key="item.value"
|
|
81
|
+
:value="item"
|
|
82
|
+
:data-value="item.value"
|
|
83
|
+
>
|
|
84
|
+
{{ item.text }}
|
|
85
|
+
</option>
|
|
86
|
+
</select>
|
|
87
|
+
</template>
|
|
88
|
+
</atoms-stack-block>
|
|
89
|
+
|
|
90
|
+
<atoms-stack-block :has-children="false">
|
|
91
|
+
<template #stackBlockKey>
|
|
92
|
+
{{ localization.common.guestOsVersion }}
|
|
93
|
+
</template>
|
|
94
|
+
<template #stackBlockContent>
|
|
95
|
+
<select
|
|
96
|
+
v-if="guestOsVersion"
|
|
97
|
+
id="guest-os-version-select"
|
|
98
|
+
v-model="guestOsVersion"
|
|
99
|
+
:disabled="props.isDisabled"
|
|
100
|
+
:data-value="guestOsVersion?.value"
|
|
101
|
+
data-id="guest-os-version-select"
|
|
102
|
+
>
|
|
103
|
+
<option
|
|
104
|
+
v-for="item in props.versionsOptions"
|
|
105
|
+
:key="item.value"
|
|
106
|
+
:value="item"
|
|
107
|
+
:data-value="item.value"
|
|
108
|
+
>
|
|
109
|
+
{{ item.text }}
|
|
110
|
+
</option>
|
|
111
|
+
</select>
|
|
112
|
+
</template>
|
|
113
|
+
</atoms-stack-block>
|
|
114
|
+
</template>
|
|
115
|
+
</atoms-stack-block>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<script setup lang="ts">
|
|
120
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
121
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
122
|
+
|
|
123
|
+
const blockIsOpen = defineModel<boolean>('blockIsOpen', { required: true })
|
|
124
|
+
const vmName = defineModel<string>('vmName', { required: true })
|
|
125
|
+
const guestMachineType = defineModel<UI_I_OptionItem | null>(
|
|
126
|
+
'guestMachineType',
|
|
127
|
+
{
|
|
128
|
+
required: true,
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
const guestOsFamily = defineModel<UI_I_OptionItem | null>('guestOsFamily', {
|
|
132
|
+
required: true,
|
|
133
|
+
})
|
|
134
|
+
const guestOsVersion = defineModel<UI_I_OptionItem | null>('guestOsVersion', {
|
|
135
|
+
required: true,
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
const props = defineProps<{
|
|
139
|
+
isEdit: boolean
|
|
140
|
+
isClone: boolean
|
|
141
|
+
state?: string | number
|
|
142
|
+
isDisabled: boolean
|
|
143
|
+
machineTypeOptions: UI_I_OptionItem[]
|
|
144
|
+
osOptions: UI_I_OptionItem[]
|
|
145
|
+
versionsOptions: UI_I_OptionItem[]
|
|
146
|
+
}>()
|
|
147
|
+
const emits = defineEmits<{
|
|
148
|
+
(event: 'change-os'): void
|
|
149
|
+
}>()
|
|
150
|
+
|
|
151
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
152
|
+
</script>
|
|
153
|
+
|
|
154
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-stack-block :has-children="false">
|
|
3
|
-
<template #stackBlockKey>
|
|
4
|
-
{{ localization.common.copyPaste }}
|
|
5
|
-
</template>
|
|
6
|
-
<template #stackBlockContent>
|
|
7
|
-
<ui-checkbox
|
|
8
|
-
id="copy-paste"
|
|
9
|
-
v-model="copyPaste"
|
|
10
|
-
test-id="copy-paste-checkbox"
|
|
11
|
-
:disabled="props.disabled"
|
|
12
|
-
:label-text="localization.common.enable"
|
|
13
|
-
size="md"
|
|
14
|
-
/>
|
|
15
|
-
</template>
|
|
16
|
-
</ui-stack-block>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script setup lang="ts">
|
|
20
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
21
|
-
|
|
22
|
-
const copyPaste = defineModel<boolean>('copyPaste')
|
|
23
|
-
|
|
24
|
-
const props = defineProps<{
|
|
25
|
-
disabled: boolean
|
|
26
|
-
}>()
|
|
27
|
-
|
|
28
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<ui-stack-block :has-children="false">
|
|
3
|
+
<template #stackBlockKey>
|
|
4
|
+
<span class="mt-2">{{ localization.common.copyPaste }}</span>
|
|
5
|
+
</template>
|
|
6
|
+
<template #stackBlockContent>
|
|
7
|
+
<ui-checkbox
|
|
8
|
+
id="copy-paste"
|
|
9
|
+
v-model="copyPaste"
|
|
10
|
+
test-id="copy-paste-checkbox"
|
|
11
|
+
:disabled="props.disabled"
|
|
12
|
+
:label-text="localization.common.enable"
|
|
13
|
+
size="md"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
16
|
+
</ui-stack-block>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
21
|
+
|
|
22
|
+
const copyPaste = defineModel<boolean>('copyPaste')
|
|
23
|
+
|
|
24
|
+
const props = defineProps<{
|
|
25
|
+
disabled: boolean
|
|
26
|
+
}>()
|
|
27
|
+
|
|
28
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style scoped></style>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-stack-block :has-children="false">
|
|
3
|
-
<template #stackBlockKey>
|
|
4
|
-
{{ localization.common.fileTransfer }}
|
|
5
|
-
</template>
|
|
6
|
-
<template #stackBlockContent>
|
|
7
|
-
<ui-checkbox
|
|
8
|
-
id="file-transfer"
|
|
9
|
-
v-model="fileTransfer"
|
|
10
|
-
test-id="file-transfer-checkbox"
|
|
11
|
-
:disabled="props.disabled"
|
|
12
|
-
:label-text="localization.common.enable"
|
|
13
|
-
size="md"
|
|
14
|
-
/>
|
|
15
|
-
</template>
|
|
16
|
-
</ui-stack-block>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script setup lang="ts">
|
|
20
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
21
|
-
|
|
22
|
-
const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
|
|
23
|
-
|
|
24
|
-
const props = defineProps<{
|
|
25
|
-
disabled: boolean
|
|
26
|
-
}>()
|
|
27
|
-
|
|
28
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<ui-stack-block :has-children="false">
|
|
3
|
+
<template #stackBlockKey>
|
|
4
|
+
<span class="mt-2">{{ localization.common.fileTransfer }}</span>
|
|
5
|
+
</template>
|
|
6
|
+
<template #stackBlockContent>
|
|
7
|
+
<ui-checkbox
|
|
8
|
+
id="file-transfer"
|
|
9
|
+
v-model="fileTransfer"
|
|
10
|
+
test-id="file-transfer-checkbox"
|
|
11
|
+
:disabled="props.disabled"
|
|
12
|
+
:label-text="localization.common.enable"
|
|
13
|
+
size="md"
|
|
14
|
+
/>
|
|
15
|
+
</template>
|
|
16
|
+
</ui-stack-block>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
21
|
+
|
|
22
|
+
const fileTransfer = defineModel<boolean>('fileTransfer', { required: true })
|
|
23
|
+
|
|
24
|
+
const props = defineProps<{
|
|
25
|
+
disabled: boolean
|
|
26
|
+
}>()
|
|
27
|
+
|
|
28
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style scoped></style>
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="">
|
|
3
|
-
<atoms-stack-block :has-children="false">
|
|
4
|
-
<template #stackBlockKey>
|
|
5
|
-
{{ localization.common.keymap }}
|
|
6
|
-
</template>
|
|
7
|
-
<template #stackBlockContent>
|
|
8
|
-
<div class="select">
|
|
9
|
-
<select
|
|
10
|
-
id="keymap-select"
|
|
11
|
-
v-model="keymap"
|
|
12
|
-
:disabled="props.disabled"
|
|
13
|
-
data-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
import type {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<atoms-stack-block :has-children="false">
|
|
4
|
+
<template #stackBlockKey>
|
|
5
|
+
{{ localization.common.keymap }}
|
|
6
|
+
</template>
|
|
7
|
+
<template #stackBlockContent>
|
|
8
|
+
<div class="select">
|
|
9
|
+
<select
|
|
10
|
+
id="keymap-select"
|
|
11
|
+
v-model="keymap"
|
|
12
|
+
:disabled="props.disabled"
|
|
13
|
+
:data-value="keymap"
|
|
14
|
+
data-id="keymap-select"
|
|
15
|
+
>
|
|
16
|
+
<option
|
|
17
|
+
v-for="(item, key) in props.keymapOptions"
|
|
18
|
+
:key="key"
|
|
19
|
+
:value="item.value"
|
|
20
|
+
>
|
|
21
|
+
{{ item.text }}
|
|
22
|
+
</option>
|
|
23
|
+
</select>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
</atoms-stack-block>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
32
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
33
|
+
|
|
34
|
+
const keymap = defineModel<string>('keymap', { required: true })
|
|
35
|
+
|
|
36
|
+
const props = defineProps<{
|
|
37
|
+
disabled: boolean
|
|
38
|
+
keymapOptions: UI_I_OptionItem[]
|
|
39
|
+
}>()
|
|
40
|
+
|
|
41
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style scoped></style>
|