bfg-common 1.0.69 → 1.0.71
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 +15 -22
- package/components/common/select/radio/models/interfaces.ts +2 -3
- package/components/common/wizards/datastore/add/nfs/version/Version.vue +2 -2
- package/components/common/wizards/datastore/add/types/Types.vue +2 -67
- package/components/common/wizards/datastore/add/types/config/typeOptions.ts +5 -11
- package/package.json +1 -1
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="select-option">
|
|
3
3
|
<div
|
|
4
|
-
v-for="
|
|
5
|
-
|
|
6
|
-
disabled,
|
|
7
|
-
label,
|
|
8
|
-
description,
|
|
9
|
-
isTooltip,
|
|
10
|
-
helpDesc,
|
|
11
|
-
} in options"
|
|
12
|
-
:key="value"
|
|
4
|
+
v-for="radio in options"
|
|
5
|
+
:key="radio.value"
|
|
13
6
|
class="select-option__inner radio"
|
|
14
|
-
:class="disabled && 'disabled'"
|
|
7
|
+
:class="radio.disabled && 'disabled'"
|
|
15
8
|
>
|
|
16
9
|
<div class="select-option__wrapper">
|
|
17
10
|
<input
|
|
18
|
-
:id="label"
|
|
11
|
+
:id="radio.label"
|
|
19
12
|
v-model="selectedType"
|
|
20
13
|
type="radio"
|
|
21
|
-
:value="value"
|
|
22
|
-
:disabled="disabled"
|
|
14
|
+
:value="radio.value"
|
|
15
|
+
:disabled="radio.disabled"
|
|
23
16
|
/>
|
|
24
|
-
<label :for="label">{{ label }}</label>
|
|
17
|
+
<label :for="radio.label">{{ radio.label }}</label>
|
|
25
18
|
|
|
26
19
|
<div
|
|
27
|
-
:id="`${value}-select-tooltip-icon`"
|
|
20
|
+
:id="`${radio.value}-select-tooltip-icon`"
|
|
28
21
|
class="signpost-container relative"
|
|
29
22
|
>
|
|
30
23
|
<atoms-the-icon
|
|
@@ -32,22 +25,22 @@
|
|
|
32
25
|
width="24px"
|
|
33
26
|
height="24px"
|
|
34
27
|
name="info-circle"
|
|
35
|
-
@click="isTooltip = !isTooltip"
|
|
28
|
+
@click="radio.isTooltip = !radio.isTooltip"
|
|
36
29
|
/>
|
|
37
30
|
<atoms-tooltip-signpost
|
|
38
|
-
v-if="isTooltip"
|
|
39
|
-
:elem-id="`${value}-select-tooltip-icon`"
|
|
40
|
-
@hide="isTooltip = false"
|
|
31
|
+
v-if="radio.isTooltip"
|
|
32
|
+
:elem-id="`${radio.value}-select-tooltip-icon`"
|
|
33
|
+
@hide="radio.isTooltip = false"
|
|
41
34
|
>
|
|
42
35
|
<div class="tooltip-content-container">
|
|
43
|
-
<p>{{
|
|
36
|
+
<p>{{ radio.tooltipContent }}</p>
|
|
44
37
|
</div>
|
|
45
38
|
</atoms-tooltip-signpost>
|
|
46
39
|
</div>
|
|
47
40
|
</div>
|
|
48
41
|
|
|
49
|
-
<div v-if="description" class="select-option__description">
|
|
50
|
-
{{ description }}
|
|
42
|
+
<div v-if="radio.description" class="select-option__description">
|
|
43
|
+
{{ radio.description }}
|
|
51
44
|
</div>
|
|
52
45
|
</div>
|
|
53
46
|
</div>
|
|
@@ -2,13 +2,12 @@ export interface UI_I_RadioOption {
|
|
|
2
2
|
label: string
|
|
3
3
|
value: string | number
|
|
4
4
|
disabled?: boolean
|
|
5
|
+
isTooltip?: boolean
|
|
5
6
|
description?: string
|
|
6
|
-
|
|
7
|
-
helpDesc?: string
|
|
7
|
+
tooltipContent?: string
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface UI_I_DatastoreTypeOption extends UI_I_RadioOption {
|
|
11
11
|
desc: string
|
|
12
12
|
isShowHelp?: boolean
|
|
13
|
-
helpDesc?: string
|
|
14
13
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
<script lang="ts" setup>
|
|
25
25
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
26
|
-
import {
|
|
26
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
|
|
27
27
|
import { UI_T_NfsType } from '~/components/common/wizards/datastore/add/models/types'
|
|
28
28
|
import { nfsVersionFunc } from '~/components/common/wizards/datastore/add/nfs/version/config/versionOptions'
|
|
29
29
|
|
|
@@ -35,7 +35,7 @@ const emits = defineEmits<{
|
|
|
35
35
|
}>()
|
|
36
36
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
37
37
|
|
|
38
|
-
const nfsVersion = readonly<
|
|
38
|
+
const nfsVersion = readonly<UI_I_RadioOption[]>(
|
|
39
39
|
nfsVersionFunc(localization.value)
|
|
40
40
|
)
|
|
41
41
|
|
|
@@ -26,55 +26,12 @@
|
|
|
26
26
|
v-model="selectedType"
|
|
27
27
|
:options="datastoreTypes"
|
|
28
28
|
/>
|
|
29
|
-
|
|
30
|
-
<div
|
|
31
|
-
v-for="item in datastoreTypes"
|
|
32
|
-
:key="item.value"
|
|
33
|
-
class="datastore-types__inner radio"
|
|
34
|
-
:class="item.disabled && 'disabled'"
|
|
35
|
-
>
|
|
36
|
-
<div class="header-row">
|
|
37
|
-
<input
|
|
38
|
-
:id="item.label"
|
|
39
|
-
v-model="selectedType"
|
|
40
|
-
type="radio"
|
|
41
|
-
:value="item.value"
|
|
42
|
-
:disabled="item.disabled"
|
|
43
|
-
/>
|
|
44
|
-
<label :for="item.label">
|
|
45
|
-
{{ item.label }}
|
|
46
|
-
</label>
|
|
47
|
-
<div
|
|
48
|
-
:id="`${item.value}-select-help-icon`"
|
|
49
|
-
class="signpost-container relative"
|
|
50
|
-
>
|
|
51
|
-
<atoms-the-icon
|
|
52
|
-
fill="#0072a3"
|
|
53
|
-
width="24px"
|
|
54
|
-
height="24px"
|
|
55
|
-
name="info-circle"
|
|
56
|
-
@click="item.isShowHelp = !item.isShowHelp"
|
|
57
|
-
/>
|
|
58
|
-
<atoms-tooltip-signpost
|
|
59
|
-
v-if="item.isShowHelp"
|
|
60
|
-
:elem-id="`${item.value}-select-help-icon`"
|
|
61
|
-
@hide="item.isShowHelp = false"
|
|
62
|
-
>
|
|
63
|
-
<div class="help-desc-container">
|
|
64
|
-
<p class="help-desc">{{ item.helpDesc }}</p>
|
|
65
|
-
</div>
|
|
66
|
-
</atoms-tooltip-signpost>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<div class="datastore-types__desc">{{ item.desc }}</div>
|
|
71
|
-
</div>
|
|
72
29
|
</section>
|
|
73
30
|
</template>
|
|
74
31
|
|
|
75
32
|
<script lang="ts" setup>
|
|
76
33
|
import { UI_I_Localization } from '~/models/interfaces'
|
|
77
|
-
import {
|
|
34
|
+
import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
|
|
78
35
|
import { datastoreTypesFunc } from '~/components/common/wizards/datastore/add/types/config/typeOptions'
|
|
79
36
|
|
|
80
37
|
const props = defineProps<{
|
|
@@ -85,7 +42,7 @@ const emits = defineEmits<{
|
|
|
85
42
|
}>()
|
|
86
43
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
87
44
|
|
|
88
|
-
const datastoreTypes = ref<
|
|
45
|
+
const datastoreTypes = ref<UI_I_RadioOption[]>(
|
|
89
46
|
datastoreTypesFunc(localization.value)
|
|
90
47
|
)
|
|
91
48
|
|
|
@@ -103,12 +60,6 @@ const isShowTypeHelp = ref<boolean>(false)
|
|
|
103
60
|
|
|
104
61
|
<style lang="scss" scoped>
|
|
105
62
|
.datastore-types {
|
|
106
|
-
//&__subtitle {
|
|
107
|
-
//}
|
|
108
|
-
//&__desc {
|
|
109
|
-
// margin-left: 22px;
|
|
110
|
-
//}
|
|
111
|
-
|
|
112
63
|
.signpost-container {
|
|
113
64
|
display: flex;
|
|
114
65
|
cursor: pointer;
|
|
@@ -123,20 +74,4 @@ const isShowTypeHelp = ref<boolean>(false)
|
|
|
123
74
|
gap: 10px;
|
|
124
75
|
}
|
|
125
76
|
}
|
|
126
|
-
|
|
127
|
-
//.radio {
|
|
128
|
-
// margin-bottom: 5px;
|
|
129
|
-
// &:nth-child(2) {
|
|
130
|
-
// margin-top: 10px;
|
|
131
|
-
// }
|
|
132
|
-
// &.disabled {
|
|
133
|
-
// opacity: 0.7;
|
|
134
|
-
// }
|
|
135
|
-
//}
|
|
136
|
-
//.radio {
|
|
137
|
-
//}
|
|
138
|
-
//input[type='radio']:focus:checked + label::before,
|
|
139
|
-
//input[type='radio']:focus + label::before {
|
|
140
|
-
// box-shadow: inset 0 0 0 0.25rem #0094d2;
|
|
141
|
-
//}
|
|
142
77
|
</style>
|
|
@@ -1,39 +1,33 @@
|
|
|
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
4
|
export const datastoreTypesFunc = (
|
|
5
5
|
localization: UI_I_Localization
|
|
6
|
-
):
|
|
6
|
+
): UI_I_RadioOption[] => {
|
|
7
7
|
return [
|
|
8
8
|
{
|
|
9
9
|
label: localization.localStorage,
|
|
10
10
|
value: 'local',
|
|
11
11
|
disabled: false,
|
|
12
|
-
desc: localization.localDesc,
|
|
13
12
|
description: localization.localDesc,
|
|
14
|
-
isShowHelp: false,
|
|
15
13
|
isTooltip: false,
|
|
16
|
-
|
|
14
|
+
tooltipContent: localization.localStorageHelpDesc,
|
|
17
15
|
},
|
|
18
16
|
{
|
|
19
17
|
label: localization.stormSharedStorage,
|
|
20
18
|
value: 'shared-storm',
|
|
21
19
|
disabled: false,
|
|
22
|
-
desc: localization.sharedStormDesc,
|
|
23
20
|
description: localization.sharedStormDesc,
|
|
24
|
-
isShowHelp: false,
|
|
25
21
|
isTooltip: false,
|
|
26
|
-
|
|
22
|
+
tooltipContent: localization.stormSharedStorageHelpDesc,
|
|
27
23
|
},
|
|
28
24
|
{
|
|
29
25
|
label: localization.nfs,
|
|
30
26
|
value: 'nfs',
|
|
31
27
|
disabled: false,
|
|
32
|
-
desc: localization.nfsDesc,
|
|
33
28
|
description: localization.nfsDesc,
|
|
34
|
-
isShowHelp: false,
|
|
35
29
|
isTooltip: false,
|
|
36
|
-
|
|
30
|
+
tooltipContent: localization.nfsHelpDesc,
|
|
37
31
|
},
|
|
38
32
|
// {
|
|
39
33
|
// label: localization.vVol,
|