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.
@@ -17,6 +17,7 @@
17
17
  <label :for="radio.label">{{ radio.label }}</label>
18
18
 
19
19
  <div
20
+ v-if="'isTooltip' in radio"
20
21
  :id="`${radio.value}-select-tooltip-icon`"
21
22
  class="signpost-container relative"
22
23
  >
@@ -6,8 +6,3 @@ export interface UI_I_RadioOption {
6
6
  description?: string
7
7
  tooltipContent?: string
8
8
  }
9
-
10
- export interface UI_I_DatastoreTypeOption extends UI_I_RadioOption {
11
- desc: string
12
- isShowHelp?: boolean
13
- }
@@ -1,23 +1,9 @@
1
1
  <template>
2
2
  <section class="nfs-version">
3
- <div
4
- v-for="item in nfsVersion"
5
- :key="item.value"
6
- class="nfs-version__inner radio"
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 = readonly<UI_I_RadioOption[]>(
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
- &__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;
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 { UI_I_DatastoreTypeOption } from '~/components/common/select/radio/models/interfaces'
2
+ import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
3
3
  export const nfsVersionFunc = (
4
4
  localization: UI_I_Localization
5
- ): UI_I_DatastoreTypeOption[] => {
5
+ ): UI_I_RadioOption[] => {
6
6
  return [
7
7
  {
8
8
  label: 'NFS 3',
9
9
  value: 'nfs-3',
10
10
  disabled: false,
11
- desc: localization.nfsVersionDesc1,
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
- desc: localization.nfsVersionDesc2,
17
+ description: localization.nfsVersionDesc2,
18
18
  },
19
19
  ]
20
20
  }
@@ -1,29 +1,15 @@
1
1
  <template>
2
2
  <section class="nfs-version">
3
- <div
4
- v-for="item in vmfsVersion"
5
- :key="item.value"
6
- class="nfs-version__inner radio"
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 { UI_I_DatastoreTypeOption } from '~/components/common/select/radio/models/interfaces'
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 = readonly<UI_I_DatastoreTypeOption[]>(
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>
@@ -1,19 +1,21 @@
1
1
  import { UI_I_Localization } from '~/models/interfaces'
2
- import { UI_I_DatastoreTypeOption } from '~/components/common/select/radio/models/interfaces'
2
+ import { UI_I_RadioOption } from '~/components/common/select/radio/models/interfaces'
3
3
 
4
- export const vmfsVersionFunc = (localization: UI_I_Localization): UI_I_DatastoreTypeOption[] => {
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
- desc: localization.vmfsVersionDesc1,
12
+ description: localization.vmfsVersionDesc1,
11
13
  },
12
14
  {
13
15
  label: 'VMFS 5',
14
16
  value: 'vmfs-5',
15
17
  disabled: false,
16
- desc: localization.vmfsVersionDesc2,
18
+ description: localization.vmfsVersionDesc2,
17
19
  },
18
20
  ]
19
21
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.0.71",
4
+ "version": "1.0.73",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",