hl-core 0.0.7-beta.7 → 0.0.7-beta.8
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/api/index.ts
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-navigation-drawer
|
|
3
|
+
v-model="$dataStore[whichPanel].open"
|
|
4
|
+
:temporary="$dataStore[whichPanel].overlay"
|
|
5
|
+
location="right"
|
|
6
|
+
class="sm:!w-[400px] lg:!relative"
|
|
7
|
+
:class="[
|
|
8
|
+
$dataStore[whichPanel].overlay ? 'lg:!hidden' : '',
|
|
9
|
+
$dataStore[whichPanel].open ? '!w-full lg:!w-[420px]' : 'lg:!w-[0px]',
|
|
10
|
+
]"
|
|
11
|
+
>
|
|
12
|
+
<base-header
|
|
13
|
+
:title="panelTitle"
|
|
14
|
+
:has-back="true"
|
|
15
|
+
back-icon="mdi-close"
|
|
16
|
+
class="justify-center"
|
|
17
|
+
@onBack="$dataStore[whichPanel].open = false"
|
|
18
|
+
></base-header>
|
|
19
|
+
<div>
|
|
20
|
+
<slot></slot>
|
|
21
|
+
</div>
|
|
22
|
+
</v-navigation-drawer>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script lang="ts">
|
|
26
|
+
export default defineComponent({
|
|
27
|
+
name: 'BasePanel',
|
|
28
|
+
props: {
|
|
29
|
+
panelTitle: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: '',
|
|
32
|
+
},
|
|
33
|
+
whichPanel: {
|
|
34
|
+
type: String as PropType<'settings' | 'panel'>,
|
|
35
|
+
default: 'panel',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
setup() {
|
|
39
|
+
return {};
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
@@ -1,72 +1,54 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<span
|
|
40
|
-
class="transition-all h-[64px] px-4 flex justify-between items-center border-b-[1px] hover:border-b-[#A0B3D8]"
|
|
41
|
-
>
|
|
42
|
-
<v-text-field
|
|
43
|
-
v-model="$dataStore.user.fullName"
|
|
44
|
-
:readonly="true"
|
|
45
|
-
hide-details
|
|
46
|
-
variant="plain"
|
|
47
|
-
:label="$dataStore.user.roles?.join(', ')"
|
|
48
|
-
></v-text-field>
|
|
49
|
-
<i class="mdi mdi-account-outline text-2xl text-[#A0B3D8]"></i>
|
|
50
|
-
</span>
|
|
51
|
-
<span
|
|
52
|
-
class="transition-all h-[64px] px-4 flex justify-between items-center border-b-[1px] cursor-pointer hover:border-b-[#A0B3D8]"
|
|
53
|
-
@click="dialog = true"
|
|
54
|
-
>
|
|
55
|
-
Выход
|
|
2
|
+
<base-drawer :panel-title="$dataStore.menu.title" which-panel="settings">
|
|
3
|
+
<span
|
|
4
|
+
class="transition-all h-[64px] px-4 flex justify-between items-center border-b-[1px] hover:border-b-[#A0B3D8]"
|
|
5
|
+
>
|
|
6
|
+
<v-btn
|
|
7
|
+
size="x-small"
|
|
8
|
+
icon="mdi-minus"
|
|
9
|
+
color="#A0B3D8"
|
|
10
|
+
class="text-white"
|
|
11
|
+
variant="flat"
|
|
12
|
+
></v-btn>
|
|
13
|
+
Шрифт
|
|
14
|
+
<v-btn
|
|
15
|
+
size="x-small"
|
|
16
|
+
icon="mdi-plus"
|
|
17
|
+
color="#A0B3D8"
|
|
18
|
+
class="text-white"
|
|
19
|
+
variant="flat"
|
|
20
|
+
></v-btn>
|
|
21
|
+
</span>
|
|
22
|
+
<span
|
|
23
|
+
class="transition-all h-[64px] px-4 flex justify-between items-center border-b-[1px] hover:border-b-[#A0B3D8]"
|
|
24
|
+
>
|
|
25
|
+
<v-text-field
|
|
26
|
+
v-model="$dataStore.user.fullName"
|
|
27
|
+
:readonly="true"
|
|
28
|
+
hide-details
|
|
29
|
+
variant="plain"
|
|
30
|
+
:label="$dataStore.user.roles?.join(', ')"
|
|
31
|
+
></v-text-field>
|
|
32
|
+
<i class="mdi mdi-account-outline text-2xl text-[#A0B3D8]"></i>
|
|
33
|
+
</span>
|
|
34
|
+
<span
|
|
35
|
+
class="transition-all h-[64px] px-4 flex justify-between items-center border-b-[1px] cursor-pointer hover:border-b-[#A0B3D8]"
|
|
36
|
+
@click="dialog = true"
|
|
37
|
+
>
|
|
38
|
+
Выход
|
|
56
39
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</v-navigation-drawer>
|
|
40
|
+
<i class="mdi mdi-logout text-xl text-[#A0B3D8]"></i>
|
|
41
|
+
</span>
|
|
42
|
+
<base-dialog
|
|
43
|
+
v-model="dialog"
|
|
44
|
+
:title="$t('dialog.exit')"
|
|
45
|
+
:subtitle="$t('dialog.dataWillClear')"
|
|
46
|
+
actions="default"
|
|
47
|
+
@yes="logoutUser"
|
|
48
|
+
@no="dialog = false"
|
|
49
|
+
>
|
|
50
|
+
</base-dialog
|
|
51
|
+
></base-drawer>
|
|
70
52
|
</template>
|
|
71
53
|
|
|
72
54
|
<script lang="ts" setup>
|
package/composables/classes.ts
CHANGED
|
@@ -753,6 +753,10 @@ export class DataStoreClass {
|
|
|
753
753
|
open: boolean;
|
|
754
754
|
overlay: boolean;
|
|
755
755
|
};
|
|
756
|
+
panel: {
|
|
757
|
+
open: boolean;
|
|
758
|
+
overlay: boolean;
|
|
759
|
+
};
|
|
756
760
|
historyPageIndex: number;
|
|
757
761
|
historyPageSize: number;
|
|
758
762
|
historyTotalItems: number;
|
|
@@ -812,6 +816,10 @@ export class DataStoreClass {
|
|
|
812
816
|
open: false,
|
|
813
817
|
overlay: false,
|
|
814
818
|
};
|
|
819
|
+
this.panel = {
|
|
820
|
+
open: false,
|
|
821
|
+
overlay: false,
|
|
822
|
+
};
|
|
815
823
|
this.historyPageIndex = 1;
|
|
816
824
|
this.historyPageSize = 10;
|
|
817
825
|
this.historyTotalItems = 0;
|
package/package.json
CHANGED
package/store/data.store.js
CHANGED
|
@@ -34,6 +34,12 @@ export const useDataStore = defineStore('data', {
|
|
|
34
34
|
}),
|
|
35
35
|
getters: {
|
|
36
36
|
isEFO: state => state.product === 'efo',
|
|
37
|
+
isBaiterek: state => state.product === 'baiterek',
|
|
38
|
+
isBolashak: state => state.product === 'bolashak',
|
|
39
|
+
isMycar: state => state.product === 'mycar',
|
|
40
|
+
isLifetrip: state => state.product === 'lifetrip',
|
|
41
|
+
isLiferenta: state => state.product === 'liferenta',
|
|
42
|
+
isPension: state => state.product === 'pension',
|
|
37
43
|
},
|
|
38
44
|
actions: {
|
|
39
45
|
sendToParent(action, value) {
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-navigation-drawer
|
|
3
|
-
v-model="$dataStore.settings.open"
|
|
4
|
-
:temporary="$dataStore.settings.overlay"
|
|
5
|
-
location="right"
|
|
6
|
-
class="sm:!w-[400px] lg:!relative"
|
|
7
|
-
:class="[
|
|
8
|
-
$dataStore.settings.overlay ? 'lg:!hidden' : '',
|
|
9
|
-
$dataStore.settings.open ? '!w-full lg:!w-[420px]' : 'lg:!w-[0px]',
|
|
10
|
-
]"
|
|
11
|
-
>
|
|
12
|
-
<base-header
|
|
13
|
-
:title="$dataStore.menu.title"
|
|
14
|
-
:has-back="true"
|
|
15
|
-
back-icon="mdi-close"
|
|
16
|
-
class="justify-center"
|
|
17
|
-
@onBack="$dataStore.settings.open = false"
|
|
18
|
-
></base-header>
|
|
19
|
-
<div>
|
|
20
|
-
<slot></slot>
|
|
21
|
-
</div>
|
|
22
|
-
</v-navigation-drawer>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script lang="ts">
|
|
26
|
-
export default defineComponent({
|
|
27
|
-
name: 'BasePanel',
|
|
28
|
-
props: {},
|
|
29
|
-
setup() {
|
|
30
|
-
return {};
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
</script>
|