hl-core 0.0.9-beta.8 → 0.0.10-beta.1
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/base.api.ts +1109 -0
- package/api/index.ts +2 -620
- package/api/interceptors.ts +38 -1
- package/components/Button/Btn.vue +1 -6
- package/components/Complex/MessageBlock.vue +1 -1
- package/components/Complex/Page.vue +1 -1
- package/components/Complex/TextBlock.vue +23 -0
- package/components/Dialog/Dialog.vue +70 -16
- package/components/Dialog/FamilyDialog.vue +1 -1
- package/components/Form/DynamicForm.vue +100 -0
- package/components/Form/FormBlock.vue +12 -3
- package/components/Form/FormData.vue +110 -0
- package/components/Form/FormSection.vue +3 -3
- package/components/Form/FormTextSection.vue +11 -3
- package/components/Form/FormToggle.vue +25 -5
- package/components/Form/ManagerAttachment.vue +177 -89
- package/components/Form/ProductConditionsBlock.vue +59 -6
- package/components/Input/Datepicker.vue +43 -7
- package/components/Input/DynamicInput.vue +23 -0
- package/components/Input/FileInput.vue +25 -5
- package/components/Input/FormInput.vue +7 -4
- package/components/Input/Monthpicker.vue +34 -0
- package/components/Input/PanelInput.vue +5 -1
- package/components/Input/RoundedSelect.vue +7 -2
- package/components/Input/SwitchInput.vue +64 -0
- package/components/Input/TextInput.vue +160 -0
- package/components/Layout/Drawer.vue +17 -4
- package/components/Layout/Header.vue +23 -2
- package/components/Layout/Loader.vue +2 -1
- package/components/Layout/SettingsPanel.vue +24 -11
- package/components/Menu/InfoMenu.vue +35 -0
- package/components/Menu/MenuNav.vue +25 -3
- package/components/Pages/Anketa.vue +254 -65
- package/components/Pages/Auth.vue +56 -9
- package/components/Pages/ContragentForm.vue +9 -9
- package/components/Pages/Documents.vue +266 -30
- package/components/Pages/InvoiceInfo.vue +1 -1
- package/components/Pages/MemberForm.vue +774 -102
- package/components/Pages/ProductAgreement.vue +1 -8
- package/components/Pages/ProductConditions.vue +1132 -180
- package/components/Panel/PanelHandler.vue +632 -50
- package/components/Panel/PanelSelectItem.vue +17 -2
- package/components/Panel/RightPanelCloser.vue +7 -0
- package/components/Transitions/Animation.vue +28 -0
- package/components/Utilities/JsonViewer.vue +3 -2
- package/components/Utilities/Qr.vue +44 -0
- package/composables/axios.ts +1 -0
- package/composables/classes.ts +501 -14
- package/composables/constants.ts +126 -6
- package/composables/fields.ts +328 -0
- package/composables/index.ts +355 -20
- package/composables/styles.ts +23 -6
- package/configs/pwa.ts +63 -0
- package/layouts/clear.vue +21 -0
- package/layouts/default.vue +62 -3
- package/layouts/full.vue +21 -0
- package/locales/ru.json +559 -16
- package/nuxt.config.ts +11 -15
- package/package.json +36 -39
- package/pages/Token.vue +0 -13
- package/plugins/head.ts +26 -0
- package/plugins/vuetifyPlugin.ts +1 -5
- package/store/data.store.ts +1610 -321
- package/store/extractStore.ts +17 -0
- package/store/form.store.ts +13 -1
- package/store/member.store.ts +1 -1
- package/store/rules.ts +97 -3
- package/store/toast.ts +1 -1
- package/types/enum.ts +81 -0
- package/types/env.d.ts +2 -0
- package/types/form.ts +94 -0
- package/types/index.ts +419 -24
package/nuxt.config.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
1
|
import { resolve, dirname } from 'node:path';
|
|
3
2
|
import { fileURLToPath } from 'url';
|
|
4
3
|
import VueI18nVitePlugin from '@intlify/unplugin-vue-i18n/vite';
|
|
@@ -6,28 +5,17 @@ import VueI18nVitePlugin from '@intlify/unplugin-vue-i18n/vite';
|
|
|
6
5
|
export default defineNuxtConfig({
|
|
7
6
|
ssr: false,
|
|
8
7
|
spaLoadingTemplate: false,
|
|
9
|
-
modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss', '@nuxt/devtools', '@vueuse/nuxt'],
|
|
8
|
+
modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss', '@nuxt/devtools', '@vueuse/nuxt', '@vite-pwa/nuxt'],
|
|
10
9
|
|
|
11
10
|
imports: {
|
|
12
|
-
dirs: ['store'
|
|
11
|
+
dirs: ['store'],
|
|
13
12
|
},
|
|
14
13
|
|
|
15
14
|
build: {
|
|
16
|
-
transpile: ['@vuepic/vue-datepicker'],
|
|
15
|
+
transpile: ['@vuepic/vue-datepicker', '@microsoft/signalr', 'vue-uuid', 'qrcode.vue'],
|
|
17
16
|
},
|
|
18
17
|
|
|
19
18
|
vite: {
|
|
20
|
-
build: {
|
|
21
|
-
minify: false,
|
|
22
|
-
},
|
|
23
|
-
resolve: {
|
|
24
|
-
alias: [
|
|
25
|
-
{
|
|
26
|
-
find: '@',
|
|
27
|
-
replacement: path.resolve(__dirname, '.'),
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
19
|
vue: {
|
|
32
20
|
template: {
|
|
33
21
|
compilerOptions: {
|
|
@@ -44,5 +32,13 @@ export default defineNuxtConfig({
|
|
|
44
32
|
],
|
|
45
33
|
},
|
|
46
34
|
|
|
35
|
+
future: {
|
|
36
|
+
typescriptBundlerResolution: false,
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
vue: {
|
|
40
|
+
propsDestructure: true,
|
|
41
|
+
},
|
|
42
|
+
|
|
47
43
|
components: [{ path: './components', prefix: 'Base', pathPrefix: false }],
|
|
48
44
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hl-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "nuxt.config.ts",
|
|
@@ -19,53 +19,50 @@
|
|
|
19
19
|
"tailwind.config.js",
|
|
20
20
|
".prettierrc"
|
|
21
21
|
],
|
|
22
|
-
"config": {
|
|
23
|
-
"project": "",
|
|
24
|
-
"branch": ""
|
|
25
|
-
},
|
|
26
22
|
"scripts": {
|
|
27
23
|
"build": "nuxt build",
|
|
28
|
-
"dev": "nuxt dev",
|
|
24
|
+
"dev": "nuxt dev --host",
|
|
29
25
|
"generate": "nuxt generate",
|
|
30
26
|
"preview": "nuxt preview",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"pull:lka": "cd ../../lka && git pull && cd ../efo/core",
|
|
40
|
-
"pull:all": "yarn pull:core && yarn pull:aml && yarn pull:lka",
|
|
41
|
-
"typecheck": "nuxt typecheck"
|
|
27
|
+
"typecheck": "nuxt typecheck",
|
|
28
|
+
"prc": "npx prettier . --check",
|
|
29
|
+
"prw": "npx prettier . --write",
|
|
30
|
+
"prc:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && npx prettier . --check && cd ..",
|
|
31
|
+
"prw:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && npx prettier . --write && cd ..",
|
|
32
|
+
"tk:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && yarn typecheck && cd ..",
|
|
33
|
+
"i:allf": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && yarn --force && cd ..",
|
|
34
|
+
"i:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && yarn && cd .."
|
|
42
35
|
},
|
|
43
36
|
"devDependencies": {
|
|
44
|
-
"@nuxt/devtools": "
|
|
45
|
-
"@vueuse/components": "
|
|
46
|
-
"@vueuse/core": "
|
|
47
|
-
"@vueuse/nuxt": "
|
|
48
|
-
"nuxt": "
|
|
49
|
-
"prettier": "
|
|
37
|
+
"@nuxt/devtools": "1.0.6",
|
|
38
|
+
"@vueuse/components": "10.7.2",
|
|
39
|
+
"@vueuse/core": "10.7.2",
|
|
40
|
+
"@vueuse/nuxt": "10.7.2",
|
|
41
|
+
"nuxt": "3.10.2",
|
|
42
|
+
"prettier": "3.2.5",
|
|
43
|
+
"vue": "3.4.19",
|
|
44
|
+
"vue-router": "4.2.5"
|
|
50
45
|
},
|
|
51
46
|
"dependencies": {
|
|
52
|
-
"@intlify/unplugin-vue-i18n": "
|
|
53
|
-
"@
|
|
54
|
-
"@nuxtjs/tailwindcss": "
|
|
55
|
-
"@pinia/nuxt": "
|
|
56
|
-
"@
|
|
57
|
-
"
|
|
58
|
-
"
|
|
47
|
+
"@intlify/unplugin-vue-i18n": "2.0.0",
|
|
48
|
+
"@microsoft/signalr": "7.0.12",
|
|
49
|
+
"@nuxtjs/tailwindcss": "6.11.2",
|
|
50
|
+
"@pinia/nuxt": "0.5.1",
|
|
51
|
+
"@regulaforensics/document-reader-webclient": "6.9.5",
|
|
52
|
+
"@vite-pwa/nuxt": "0.4.0",
|
|
53
|
+
"@vuepic/vue-datepicker": "7.4.1",
|
|
54
|
+
"axios": "1.6.7",
|
|
59
55
|
"fast-xml-parser": "4.0.12",
|
|
60
|
-
"jwt-decode": "
|
|
56
|
+
"jwt-decode": "3.1.2",
|
|
61
57
|
"maska": "1.5.0",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"vue-
|
|
67
|
-
"vue-
|
|
68
|
-
"vue-
|
|
69
|
-
"
|
|
58
|
+
"ncalayer-js-client": "1.3.4",
|
|
59
|
+
"pinia": "2.1.7",
|
|
60
|
+
"qrcode.vue": "3.4.1",
|
|
61
|
+
"typescript": "5.3.3",
|
|
62
|
+
"vue-i18n": "9.9.1",
|
|
63
|
+
"vue-json-pretty": "2.2.4",
|
|
64
|
+
"vue-toastification": "2.0.0-rc.5",
|
|
65
|
+
"vue-uuid": "3.0.0",
|
|
66
|
+
"vuetify": "3.5.4"
|
|
70
67
|
}
|
|
71
68
|
}
|
package/pages/Token.vue
CHANGED
|
@@ -12,19 +12,6 @@ export default defineComponent({
|
|
|
12
12
|
const router = useRouter();
|
|
13
13
|
const dataStore = useDataStore();
|
|
14
14
|
|
|
15
|
-
const getMainPageRoute = () => {
|
|
16
|
-
if (dataStore.isEFO) {
|
|
17
|
-
return 'Insurance-Product';
|
|
18
|
-
}
|
|
19
|
-
if (dataStore.isLKA) {
|
|
20
|
-
return 'Menu';
|
|
21
|
-
}
|
|
22
|
-
if (dataStore.isAML) {
|
|
23
|
-
return 'Main';
|
|
24
|
-
}
|
|
25
|
-
return 'index';
|
|
26
|
-
};
|
|
27
|
-
|
|
28
15
|
onMounted(async () => {
|
|
29
16
|
if (!dataStore.isBridge) {
|
|
30
17
|
dataStore.sendToParent(constants.postActions.Error401, 401);
|
package/plugins/head.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default defineNuxtPlugin(() => {
|
|
2
|
+
const config = useRuntimeConfig();
|
|
3
|
+
useHead({
|
|
4
|
+
link: [
|
|
5
|
+
{
|
|
6
|
+
rel: 'icon',
|
|
7
|
+
type: 'image/x-icon',
|
|
8
|
+
href: import.meta.env.VITE_PARENT_PRODUCT === 'auletti' || import.meta.env.VITE_PRODUCT === 'auletti' ? '/logo-auletti.svg' : '/logo.svg',
|
|
9
|
+
},
|
|
10
|
+
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
|
11
|
+
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
|
|
12
|
+
{
|
|
13
|
+
rel: 'stylesheet',
|
|
14
|
+
href: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
rel: 'stylesheet',
|
|
18
|
+
href: 'https://cdn.jsdelivr.net/npm/@mdi/font@7.4.47/css/materialdesignicons.min.css',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
rel: 'stylesheet',
|
|
22
|
+
href: 'https://cdn.jsdelivr.net/npm/animate.css@4.1.1/animate.min.css',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
});
|
|
26
|
+
});
|
package/plugins/vuetifyPlugin.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import '@mdi/font/css/materialdesignicons.css';
|
|
2
|
-
import 'animate.css';
|
|
3
1
|
import 'vuetify/styles';
|
|
4
2
|
import { createVuetify } from 'vuetify';
|
|
5
3
|
import * as components from 'vuetify/components';
|
|
@@ -8,9 +6,7 @@ import * as directives from 'vuetify/directives';
|
|
|
8
6
|
export default defineNuxtPlugin(nuxtApp => {
|
|
9
7
|
const vuetify = createVuetify({
|
|
10
8
|
ssr: false,
|
|
11
|
-
components
|
|
12
|
-
...components,
|
|
13
|
-
},
|
|
9
|
+
components,
|
|
14
10
|
directives,
|
|
15
11
|
defaults: {
|
|
16
12
|
VForm: {
|