bfg-common 1.3.416 → 1.3.418

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.
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
 
26
26
  <common-select-radio-group
27
- v-model="selectedDatastoreTypeLocal"
27
+ v-model="selectedType"
28
28
  :options="datastoreTypes"
29
29
  />
30
30
  </section>
@@ -34,21 +34,30 @@
34
34
  import { UI_I_Localization } from '~/lib/models/interfaces'
35
35
  import { UI_T_Project } from '~/lib/models/types'
36
36
  import { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
37
- import { UI_T_DatastoreType } from '~/components/common/wizards/datastore/add/lib/models/types'
38
37
  import { datastoreTypesFunc } from '~/components/common/wizards/datastore/add/types/lib/config/typeOptions'
39
38
 
40
39
  const props = defineProps<{
41
40
  project: UI_T_Project
41
+ type: string
42
+ }>()
43
+ const emits = defineEmits<{
44
+ (event: 'update:type', value: string): void
42
45
  }>()
43
- const selectedDatastoreTypeLocal =
44
- defineModel<UI_T_DatastoreType>('datastore-type')
45
-
46
46
  const localization = computed<UI_I_Localization>(() => useLocal())
47
47
 
48
48
  const datastoreTypes = ref<UI_I_RadioOption[]>(
49
49
  datastoreTypesFunc(localization.value, props.project)
50
50
  )
51
51
 
52
+ const selectedType = computed<string>({
53
+ get() {
54
+ return props.type
55
+ },
56
+ set(newValue) {
57
+ emits('update:type', newValue)
58
+ },
59
+ })
60
+
52
61
  const isShowTypeHelp = ref<boolean>(false)
53
62
  </script>
54
63
 
@@ -14,7 +14,7 @@
14
14
  >
15
15
  <template #modalBody="{ selectedStep }">
16
16
  {{ datastoreType }}
17
- <common-wizards-datastore-add-types
17
+ <common-wizards-datastore-new-add-types
18
18
  v-if="selectedStep.id === 0"
19
19
  v-model:datastore-type="datastoreType"
20
20
  :project="props.project"
@@ -173,6 +173,20 @@ const validationFunc = async (
173
173
  const onChangeSteps = async (value: UI_I_WizardStep[]): Promise<void> =>
174
174
  wizard.changeSteps(value, validationFunc)
175
175
 
176
+ // Choosing Scheme
177
+ watch(
178
+ [datastoreType, props.project],
179
+ (newValues) => {
180
+ console.log(newValues, 'newValues')
181
+ const [type, project] = newValues
182
+ console.log(type)
183
+ console.log(project)
184
+
185
+ // wizard.changeScheme(4)
186
+ },
187
+ { deep: true, immediate: true }
188
+ )
189
+
176
190
  // const stepItems = computed<UI_I_VerticalStepItem[]>(() =>
177
191
  // stepItemsFunc(localization.value, datastoreType.value, props.mode)
178
192
  // )
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
 
26
26
  <common-select-radio-group
27
- v-model="selectedType"
27
+ v-model="selectedDatastoreTypeLocal"
28
28
  :options="datastoreTypes"
29
29
  />
30
30
  </section>
@@ -34,30 +34,21 @@
34
34
  import { UI_I_Localization } from '~/lib/models/interfaces'
35
35
  import { UI_T_Project } from '~/lib/models/types'
36
36
  import { UI_I_RadioOption } from '~/components/common/select/radio/lib/models/interfaces'
37
+ import { UI_T_DatastoreType } from '~/components/common/wizards/datastore/add/lib/models/types'
37
38
  import { datastoreTypesFunc } from '~/components/common/wizards/datastore/add/types/lib/config/typeOptions'
38
39
 
39
40
  const props = defineProps<{
40
41
  project: UI_T_Project
41
- type: string
42
- }>()
43
- const emits = defineEmits<{
44
- (event: 'update:type', value: string): void
45
42
  }>()
43
+ const selectedDatastoreTypeLocal =
44
+ defineModel<UI_T_DatastoreType>('datastoreType')
45
+
46
46
  const localization = computed<UI_I_Localization>(() => useLocal())
47
47
 
48
48
  const datastoreTypes = ref<UI_I_RadioOption[]>(
49
49
  datastoreTypesFunc(localization.value, props.project)
50
50
  )
51
51
 
52
- const selectedType = computed<string>({
53
- get() {
54
- return props.type
55
- },
56
- set(newValue) {
57
- emits('update:type', newValue)
58
- },
59
- })
60
-
61
52
  const isShowTypeHelp = ref<boolean>(false)
62
53
  </script>
63
54
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.416",
4
+ "version": "1.3.418",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",