hl-core 0.0.7-beta.6 → 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 +1 -1
- package/components/Complex/Page.vue +1 -1
- package/components/Layout/Drawer.vue +42 -0
- package/components/Layout/SettingsPanel.vue +49 -67
- package/composables/classes.ts +8 -0
- package/composables/constants.ts +2 -5
- package/package.json +4 -4
- package/store/data.store.js +6 -0
- package/store/messages.ts +1 -1
- package/tailwind.config.js +10 -10
- package/components/Layout/Panel.vue +0 -47
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/composables/constants.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
export const constants = Object.freeze({
|
|
2
2
|
products: {
|
|
3
|
+
pensionannuity: 1,
|
|
3
4
|
baiterek: 3,
|
|
4
5
|
halykmycar: 5,
|
|
5
6
|
lifetrip: 7,
|
|
6
7
|
bolashak: 8,
|
|
7
8
|
liferenta: 9,
|
|
8
9
|
},
|
|
9
|
-
|
|
10
|
-
MYCAR_ROUTE: 'halykmycar',
|
|
11
|
-
LIFETRIP_ROUTE: 'lifetrip',
|
|
12
|
-
BOLASHAK_ROUTE: 'bolashak',
|
|
13
|
-
LIFERENTA_ROUTE: 'liferenta',
|
|
10
|
+
|
|
14
11
|
editableStatuses: ['StartForm', 'EditBeneficiaryForm', 'EditForm'],
|
|
15
12
|
documentsLinkVisibleStatuses: [
|
|
16
13
|
'DocumentsSignedFrom',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hl-core",
|
|
3
|
-
"version": "0.0.7-beta.
|
|
3
|
+
"version": "0.0.7-beta.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "nuxt.config.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@nuxt/devtools": "^0.2.5",
|
|
27
|
-
"nuxt": "^3.
|
|
27
|
+
"nuxt": "^3.3.1",
|
|
28
28
|
"prettier": "^2.8.4",
|
|
29
29
|
"typescript": "^4.9.5"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@mdi/font": "^7.1.96",
|
|
33
|
-
"@nuxtjs/tailwindcss": "^6.
|
|
33
|
+
"@nuxtjs/tailwindcss": "^6.6.0",
|
|
34
34
|
"@pinia/nuxt": "^0.4.7",
|
|
35
35
|
"animate.css": "^4.1.1",
|
|
36
36
|
"axios": "^1.3.4",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"pinia": "^2.0.33",
|
|
40
40
|
"v-idle-3": "^0.3.14",
|
|
41
41
|
"vue-toastification": "^2.0.0-rc.5",
|
|
42
|
-
"vuetify": "^3.1.
|
|
42
|
+
"vuetify": "^3.1.10"
|
|
43
43
|
}
|
|
44
44
|
}
|
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) {
|
package/store/messages.ts
CHANGED
|
@@ -287,7 +287,7 @@ export const messages = {
|
|
|
287
287
|
},
|
|
288
288
|
agreementBlock: {
|
|
289
289
|
title: 'Согласие на сбор и обработку пресональных данных',
|
|
290
|
-
text: `Я,
|
|
290
|
+
text: `Я, предоставляю АО «Халык-Life» (БИН 051140004354) и (или) организациям,
|
|
291
291
|
входящими в состав финансовой Группы «Халык» (Акционеру АО «Халык-Life» (БИН 940140000385) и его дочерним организациям),
|
|
292
292
|
перестраховочным организациям, организации по формированию и ведению базы данных по страхованию (БИН 120940011577), юридическому лицу,
|
|
293
293
|
осуществляющему деятельность по привлечению пенсионных взносов и пенсионным выплатам (БИН 971240002115), юридическому лицу,
|
package/tailwind.config.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
theme: {
|
|
3
|
-
screens: {
|
|
4
|
-
sm: { min: '600px' },
|
|
5
|
-
md: { min: '960px' },
|
|
6
|
-
lg: { min: '1280px' },
|
|
7
|
-
xl: { min: '1920px' },
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
theme: {
|
|
3
|
+
screens: {
|
|
4
|
+
sm: { min: '600px' },
|
|
5
|
+
md: { min: '960px' },
|
|
6
|
+
lg: { min: '1280px' },
|
|
7
|
+
xl: { min: '1920px' },
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-navigation-drawer
|
|
3
|
-
v-model="$dataStore.settings.open"
|
|
4
|
-
:temporary="$dataStore.settings.overlay"
|
|
5
|
-
location="right"
|
|
6
|
-
class="!w-full sm:!w-[400px] lg:!hidden"
|
|
7
|
-
>
|
|
8
|
-
<base-header
|
|
9
|
-
:title="$dataStore.menu.title"
|
|
10
|
-
:has-back="true"
|
|
11
|
-
back-icon="mdi-close"
|
|
12
|
-
class="justify-center"
|
|
13
|
-
@onBack="$dataStore.settings.open = false"
|
|
14
|
-
></base-header>
|
|
15
|
-
<div>
|
|
16
|
-
<slot></slot>
|
|
17
|
-
</div>
|
|
18
|
-
<base-dialog
|
|
19
|
-
v-model="dialog"
|
|
20
|
-
:title="$t('dialog.exit')"
|
|
21
|
-
:subtitle="$t('dialog.dataWillClear')"
|
|
22
|
-
actions="default"
|
|
23
|
-
@yes="closeModal"
|
|
24
|
-
@no="dialog = false"
|
|
25
|
-
>
|
|
26
|
-
</base-dialog>
|
|
27
|
-
</v-navigation-drawer>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script lang="ts">
|
|
31
|
-
export default defineComponent({
|
|
32
|
-
name: 'BasePanel',
|
|
33
|
-
props: {},
|
|
34
|
-
setup() {
|
|
35
|
-
const dialog = ref(false);
|
|
36
|
-
const dataStore = useDataStore();
|
|
37
|
-
|
|
38
|
-
const closeModal = async () => {
|
|
39
|
-
dialog.value = false;
|
|
40
|
-
};
|
|
41
|
-
return {
|
|
42
|
-
dialog,
|
|
43
|
-
closeModal,
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
</script>
|