bfg-common 1.0.71 → 1.0.73
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/components/common/select/radio/RadioGroup.vue +1 -0
- package/components/common/select/radio/models/interfaces.ts +0 -5
- package/components/common/wizards/datastore/add/nfs/version/Version.vue +8 -36
- package/components/common/wizards/datastore/add/nfs/version/config/versionOptions.ts +4 -4
- package/components/common/wizards/datastore/add/sharedStorm/version/Version.vue +6 -37
- package/components/common/wizards/datastore/add/sharedStorm/version/config/versionOptions.ts +6 -4
- package/package.json +1 -1
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="nfs-version">
|
|
3
|
-
<
|
|
4
|
-
v-
|
|
5
|
-
:
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
<input
|
|
9
|
-
:id="item.label"
|
|
10
|
-
v-model="selectedVersion"
|
|
11
|
-
type="radio"
|
|
12
|
-
:value="item.value"
|
|
13
|
-
:disabled="item.disabled"
|
|
14
|
-
/>
|
|
15
|
-
<label :for="item.label">
|
|
16
|
-
{{ item.label }}
|
|
17
|
-
</label>
|
|
18
|
-
|
|
19
|
-
<div class="nfs-version__desc">{{ item.desc }}</div>
|
|
20
|
-
</div>
|
|
3
|
+
<common-select-radio-group
|
|
4
|
+
v-model="selectedVersion"
|
|
5
|
+
:options="nfsVersion"
|
|
6
|
+
/>
|
|
21
7
|
</section>
|
|
22
8
|
</template>
|
|
23
9
|
|
|
@@ -35,9 +21,7 @@ const emits = defineEmits<{
|
|
|
35
21
|
}>()
|
|
36
22
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
37
23
|
|
|
38
|
-
const nfsVersion =
|
|
39
|
-
nfsVersionFunc(localization.value)
|
|
40
|
-
)
|
|
24
|
+
const nfsVersion = ref<UI_I_RadioOption[]>(nfsVersionFunc(localization.value))
|
|
41
25
|
|
|
42
26
|
const selectedVersion = computed<UI_T_NfsType>({
|
|
43
27
|
get() {
|
|
@@ -51,20 +35,8 @@ const selectedVersion = computed<UI_T_NfsType>({
|
|
|
51
35
|
|
|
52
36
|
<style lang="scss" scoped>
|
|
53
37
|
.nfs-version {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.radio {
|
|
59
|
-
margin-bottom: 5px;
|
|
60
|
-
&:nth-child(2) {
|
|
61
|
-
margin-top: 10px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.radio {
|
|
65
|
-
}
|
|
66
|
-
input[type='radio']:focus:checked + label::before,
|
|
67
|
-
input[type='radio']:focus + label::before {
|
|
68
|
-
box-shadow: inset 0 0 0 0.25rem #0094d2;
|
|
38
|
+
//&__desc {
|
|
39
|
+
// margin-left: 22px;
|
|
40
|
+
//}
|
|
69
41
|
}
|
|
70
42
|
</style>
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
2
|
-
import {
|
|
2
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
|
|
3
3
|
export const nfsVersionFunc = (
|
|
4
4
|
localization: UI_I_Localization
|
|
5
|
-
):
|
|
5
|
+
): UI_I_RadioOption[] => {
|
|
6
6
|
return [
|
|
7
7
|
{
|
|
8
8
|
label: 'NFS 3',
|
|
9
9
|
value: 'nfs-3',
|
|
10
10
|
disabled: false,
|
|
11
|
-
|
|
11
|
+
description: localization.nfsVersionDesc1,
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
label: 'NFS 4.1',
|
|
15
15
|
value: 'nfs-4.1',
|
|
16
16
|
disabled: false,
|
|
17
|
-
|
|
17
|
+
description: localization.nfsVersionDesc2,
|
|
18
18
|
},
|
|
19
19
|
]
|
|
20
20
|
}
|
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<section class="nfs-version">
|
|
3
|
-
<
|
|
4
|
-
v-
|
|
5
|
-
:
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
<input
|
|
9
|
-
:id="item.label"
|
|
10
|
-
v-model="selectedVersion"
|
|
11
|
-
type="radio"
|
|
12
|
-
:value="item.value"
|
|
13
|
-
:disabled="item.disabled"
|
|
14
|
-
/>
|
|
15
|
-
<label :for="item.label">
|
|
16
|
-
{{ item.label }}
|
|
17
|
-
</label>
|
|
18
|
-
|
|
19
|
-
<div class="nfs-version__desc">{{ item.desc }}</div>
|
|
20
|
-
</div>
|
|
3
|
+
<common-select-radio-group
|
|
4
|
+
v-model="selectedVersion"
|
|
5
|
+
:options="vmfsVersion"
|
|
6
|
+
/>
|
|
21
7
|
</section>
|
|
22
8
|
</template>
|
|
23
9
|
|
|
24
10
|
<script lang="ts" setup>
|
|
25
11
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
26
|
-
import {
|
|
12
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
|
|
27
13
|
import { UI_T_VmfsType } from '~/components/common/wizards/datastore/add/models/types'
|
|
28
14
|
import { vmfsVersionFunc } from '~/components/common/wizards/datastore/add/sharedStorm/version/config/versionOptions'
|
|
29
15
|
|
|
@@ -35,9 +21,7 @@ const emits = defineEmits<{
|
|
|
35
21
|
(event: 'update:version', value: UI_T_VmfsType): void
|
|
36
22
|
}>()
|
|
37
23
|
|
|
38
|
-
const vmfsVersion =
|
|
39
|
-
vmfsVersionFunc(localization.value)
|
|
40
|
-
)
|
|
24
|
+
const vmfsVersion = ref<UI_I_RadioOption[]>(vmfsVersionFunc(localization.value))
|
|
41
25
|
|
|
42
26
|
const selectedVersion = computed<UI_T_VmfsType>({
|
|
43
27
|
get() {
|
|
@@ -51,20 +35,5 @@ const selectedVersion = computed<UI_T_VmfsType>({
|
|
|
51
35
|
|
|
52
36
|
<style lang="scss" scoped>
|
|
53
37
|
.nfs-version {
|
|
54
|
-
&__desc {
|
|
55
|
-
margin-left: 22px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.radio {
|
|
59
|
-
margin-bottom: 5px;
|
|
60
|
-
&:nth-child(2) {
|
|
61
|
-
margin-top: 10px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.radio {
|
|
65
|
-
}
|
|
66
|
-
input[type='radio']:focus:checked + label::before,
|
|
67
|
-
input[type='radio']:focus + label::before {
|
|
68
|
-
box-shadow: inset 0 0 0 0.25rem #0094d2;
|
|
69
38
|
}
|
|
70
39
|
</style>
|
package/components/common/wizards/datastore/add/sharedStorm/version/config/versionOptions.ts
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
2
|
-
import {
|
|
2
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
|
|
3
3
|
|
|
4
|
-
export const vmfsVersionFunc = (
|
|
4
|
+
export const vmfsVersionFunc = (
|
|
5
|
+
localization: UI_I_Localization
|
|
6
|
+
): UI_I_RadioOption[] => {
|
|
5
7
|
return [
|
|
6
8
|
{
|
|
7
9
|
label: 'VMFS 6',
|
|
8
10
|
value: 'vmfs-6',
|
|
9
11
|
disabled: false,
|
|
10
|
-
|
|
12
|
+
description: localization.vmfsVersionDesc1,
|
|
11
13
|
},
|
|
12
14
|
{
|
|
13
15
|
label: 'VMFS 5',
|
|
14
16
|
value: 'vmfs-5',
|
|
15
17
|
disabled: false,
|
|
16
|
-
|
|
18
|
+
description: localization.vmfsVersionDesc2,
|
|
17
19
|
},
|
|
18
20
|
]
|
|
19
21
|
}
|