bfg-common 1.4.464 → 1.4.466
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.
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="headline">
|
|
2
|
+
<div class="home-headline">
|
|
3
3
|
<common-pages-home-headline-new
|
|
4
4
|
v-if="isNewView"
|
|
5
|
+
v-model="selectedZone"
|
|
5
6
|
:data="zoneOptionList"
|
|
6
7
|
></common-pages-home-headline-new>
|
|
7
8
|
|
|
8
9
|
<common-pages-home-headline-old
|
|
9
10
|
v-else
|
|
11
|
+
v-model="selectedZone"
|
|
10
12
|
:data="zoneOptionList"
|
|
11
13
|
></common-pages-home-headline-old>
|
|
12
14
|
</div>
|
|
@@ -23,6 +25,8 @@ const props = defineProps<{
|
|
|
23
25
|
|
|
24
26
|
const { $store }: any = useNuxtApp()
|
|
25
27
|
|
|
28
|
+
const selectedZone = ref<number>(0)
|
|
29
|
+
|
|
26
30
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
27
31
|
|
|
28
32
|
const zoneOptionList = computed<UI_I_Option[]>(() =>
|
|
@@ -30,4 +34,12 @@ const zoneOptionList = computed<UI_I_Option[]>(() =>
|
|
|
30
34
|
)
|
|
31
35
|
</script>
|
|
32
36
|
|
|
33
|
-
<style lang="scss"
|
|
37
|
+
<style lang="scss">
|
|
38
|
+
:root {
|
|
39
|
+
--home-title-color: #4d5d69;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:root.dark-theme {
|
|
43
|
+
--home-title-color: #e9eaec;
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div class="container-flex">
|
|
3
3
|
<h1>{{ localization.mainNavigation.home }}</h1>
|
|
4
4
|
|
|
5
5
|
<ui-select
|
|
6
|
-
v-
|
|
6
|
+
v-if="isProjectSphere"
|
|
7
|
+
v-model="selectedZoneModel"
|
|
7
8
|
:items="selectItems"
|
|
8
9
|
width="165px"
|
|
9
10
|
select-width="100%"
|
|
@@ -16,13 +17,29 @@
|
|
|
16
17
|
<script lang="ts" setup>
|
|
17
18
|
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
18
19
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
20
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
21
|
+
|
|
22
|
+
const props = defineProps<{
|
|
23
|
+
project: UI_T_Project
|
|
24
|
+
}>()
|
|
25
|
+
const selectedZoneModel = defineModel<number>({ required: true })
|
|
19
26
|
|
|
20
27
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
21
28
|
|
|
22
|
-
const
|
|
29
|
+
const isProjectSphere = computed<boolean>(() => props.project === 'sphere')
|
|
30
|
+
|
|
23
31
|
const selectItems = computed<UI_I_Dropdown[]>(() => {
|
|
24
32
|
return []
|
|
25
33
|
})
|
|
26
34
|
</script>
|
|
27
35
|
|
|
28
|
-
<style lang="scss" scoped
|
|
36
|
+
<style lang="scss" scoped>
|
|
37
|
+
@import '/assets/scss/common/mixins';
|
|
38
|
+
.container-flex {
|
|
39
|
+
@include flex($align: center, $just: space-between);
|
|
40
|
+
color: var(--home-title-color);
|
|
41
|
+
font-size: 22px;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
line-height: 26.63px;
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<h2 class="
|
|
2
|
+
<h2 class="headline-title">
|
|
3
3
|
{{ localization.mainNavigation.home }}
|
|
4
4
|
</h2>
|
|
5
5
|
|
|
6
6
|
<atoms-select-the-select
|
|
7
|
-
v-model="
|
|
7
|
+
v-model="selectedZoneModel"
|
|
8
8
|
:options="props.data"
|
|
9
9
|
test-id="home-zone-select"
|
|
10
10
|
@update:model-value="emits('update')"
|
|
11
11
|
>
|
|
12
|
-
<span
|
|
12
|
+
<span class="vsphere-icon-vcenter" />
|
|
13
13
|
</atoms-select-the-select>
|
|
14
14
|
</template>
|
|
15
15
|
|
|
@@ -23,10 +23,15 @@ const props = defineProps<{
|
|
|
23
23
|
const emits = defineEmits<{
|
|
24
24
|
(event: 'update'): void
|
|
25
25
|
}>()
|
|
26
|
+
const selectedZoneModel = defineModel<number>({ required: true })
|
|
26
27
|
|
|
27
28
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
28
|
-
|
|
29
|
-
const selectedItem = ref<number>(0)
|
|
30
29
|
</script>
|
|
31
30
|
|
|
32
|
-
<style lang="scss" scoped
|
|
31
|
+
<style lang="scss" scoped>
|
|
32
|
+
.headline-title {
|
|
33
|
+
font-size: 28px;
|
|
34
|
+
font-weight: 200;
|
|
35
|
+
letter-spacing: normal;
|
|
36
|
+
}
|
|
37
|
+
</style>
|