bfg-common 1.4.521 → 1.4.523
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/context/recursion/RecursionNew.vue +5 -5
- package/components/common/context/recursion/RecursionOld.vue +2 -2
- package/components/common/pages/shortcuts/Shortcuts.vue +2 -2
- package/components/common/pages/shortcuts/block/Block.vue +10 -0
- package/components/common/pages/shortcuts/block/BlockNew.vue +5 -9
- package/components/common/pages/shortcuts/block/BlockOld.vue +5 -9
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ul class="context-wrap relative">
|
|
3
|
-
<
|
|
3
|
+
<template v-if="props.isLoading">
|
|
4
4
|
<ui-loader2 class="context-loader" test-id="context-menu" />
|
|
5
|
-
</
|
|
5
|
+
</template>
|
|
6
6
|
<li
|
|
7
7
|
v-for="(item, key) in props.items"
|
|
8
8
|
:key="key"
|
|
@@ -73,9 +73,9 @@ const emits = defineEmits<{
|
|
|
73
73
|
|
|
74
74
|
.context-loader {
|
|
75
75
|
position: absolute;
|
|
76
|
-
width:
|
|
77
|
-
top: calc(50% -
|
|
78
|
-
left: calc(50% -
|
|
76
|
+
width: 40px;
|
|
77
|
+
top: calc(50% - 20px);
|
|
78
|
+
left: calc(50% - 20px);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.menu-item {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ul class="context-wrap">
|
|
3
|
-
<
|
|
3
|
+
<template v-if="props.isLoading">
|
|
4
4
|
<atoms-loader-pre-loader
|
|
5
5
|
id="loader"
|
|
6
6
|
class="absolute-center context-menu__loading"
|
|
7
7
|
:show="true"
|
|
8
8
|
/>
|
|
9
|
-
</
|
|
9
|
+
</template>
|
|
10
10
|
<li
|
|
11
11
|
v-for="(item, key) in props.items"
|
|
12
12
|
:key="key"
|
|
@@ -37,7 +37,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
37
37
|
padding: 16px;
|
|
38
38
|
margin: 0;
|
|
39
39
|
|
|
40
|
-
&
|
|
40
|
+
& h1 {
|
|
41
41
|
color: var(--home-title-color);
|
|
42
42
|
font-size: 22px;
|
|
43
43
|
font-weight: 400;
|
|
@@ -45,7 +45,7 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
&
|
|
48
|
+
& h1 {
|
|
49
49
|
line-height: 26px;
|
|
50
50
|
font-size: 22px;
|
|
51
51
|
font-weight: 200;
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
v-if="isNewView"
|
|
4
4
|
:item="props.item"
|
|
5
5
|
:test-id="props.testId"
|
|
6
|
+
@change-navigation="onChangeLastNavigation"
|
|
6
7
|
/>
|
|
7
8
|
<common-pages-shortcuts-block-old
|
|
8
9
|
v-else
|
|
9
10
|
:item="props.item"
|
|
10
11
|
:test-id="props.testId"
|
|
12
|
+
@change-navigation="onChangeLastNavigation"
|
|
11
13
|
/>
|
|
12
14
|
</template>
|
|
13
15
|
<script setup lang="ts">
|
|
@@ -21,5 +23,13 @@ const props = defineProps<{
|
|
|
21
23
|
const { $store }: any = useNuxtApp()
|
|
22
24
|
|
|
23
25
|
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
26
|
+
|
|
27
|
+
const onChangeLastNavigation = (): void => {
|
|
28
|
+
if (!props.item.nav) return
|
|
29
|
+
|
|
30
|
+
const lastSelectedInventory = 'lastSelectedInventoryTreeIdStorageKey'
|
|
31
|
+
useLocalStorage(lastSelectedInventory, props.item.nav)
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
</script>
|
|
25
35
|
<style lang="scss" scoped></style>
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
:to="navigate"
|
|
6
6
|
:title="props.item.navigateTo"
|
|
7
7
|
:data-id="props.testId"
|
|
8
|
-
@click="
|
|
9
|
-
@contextmenu="
|
|
8
|
+
@click="emits('change-navigation')"
|
|
9
|
+
@contextmenu="emits('change-navigation')"
|
|
10
10
|
>
|
|
11
11
|
<span class="unit-icon">
|
|
12
12
|
<ui-icon :name="props.item.iconName" width="28" height="28"></ui-icon>
|
|
@@ -24,15 +24,11 @@ const props = defineProps<{
|
|
|
24
24
|
item: UI_I_BlockItem
|
|
25
25
|
testId?: string
|
|
26
26
|
}>()
|
|
27
|
+
const emits = defineEmits<{
|
|
28
|
+
(event: 'change-navigation'): void
|
|
29
|
+
}>()
|
|
27
30
|
|
|
28
31
|
const navigate = computed<string>(() => '/' + props.item.navigateTo)
|
|
29
|
-
|
|
30
|
-
const changeLastNavigation = (): void => {
|
|
31
|
-
if (!props.item.nav) return
|
|
32
|
-
|
|
33
|
-
const lastSelectedInventory = 'lastSelectedInventoryTreeIdStorageKey'
|
|
34
|
-
useLocalStorage(lastSelectedInventory, props.item.nav)
|
|
35
|
-
}
|
|
36
32
|
</script>
|
|
37
33
|
<style lang="scss" scoped>
|
|
38
34
|
@import 'assets/scss/common/mixins';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
:to="navigate"
|
|
6
6
|
:title="props.item.navigateTo"
|
|
7
7
|
:data-id="props.testId"
|
|
8
|
-
@click="
|
|
9
|
-
@contextmenu="
|
|
8
|
+
@click="emits('change-navigation')"
|
|
9
|
+
@contextmenu="emits('change-navigation')"
|
|
10
10
|
>
|
|
11
11
|
<span class="icon-2">
|
|
12
12
|
<ui-icon :name="props.item.iconName" width="34" height="34"></ui-icon>
|
|
@@ -24,15 +24,11 @@ const props = defineProps<{
|
|
|
24
24
|
item: UI_I_BlockItem
|
|
25
25
|
testId?: string
|
|
26
26
|
}>()
|
|
27
|
+
const emits = defineEmits<{
|
|
28
|
+
(event: 'change-navigation'): void
|
|
29
|
+
}>()
|
|
27
30
|
|
|
28
31
|
const navigate = computed<string>(() => '/' + props.item.navigateTo)
|
|
29
|
-
|
|
30
|
-
const changeLastNavigation = (): void => {
|
|
31
|
-
if (!props.item.nav) return
|
|
32
|
-
|
|
33
|
-
const lastSelectedInventory = 'lastSelectedInventoryTreeIdStorageKey'
|
|
34
|
-
useLocalStorage(lastSelectedInventory, props.item.nav)
|
|
35
|
-
}
|
|
36
32
|
</script>
|
|
37
33
|
<style lang="scss" scoped>
|
|
38
34
|
.unit {
|