hl-core 0.0.9-beta.9 → 0.0.10-beta.10

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.
Files changed (75) hide show
  1. package/api/base.api.ts +1110 -0
  2. package/api/index.ts +2 -620
  3. package/api/interceptors.ts +38 -1
  4. package/components/Button/Btn.vue +1 -6
  5. package/components/Complex/MessageBlock.vue +1 -1
  6. package/components/Complex/Page.vue +1 -1
  7. package/components/Complex/TextBlock.vue +25 -0
  8. package/components/Dialog/Dialog.vue +72 -16
  9. package/components/Dialog/FamilyDialog.vue +3 -1
  10. package/components/Form/DynamicForm.vue +101 -0
  11. package/components/Form/FormBlock.vue +12 -3
  12. package/components/Form/FormData.vue +111 -0
  13. package/components/Form/FormSection.vue +3 -3
  14. package/components/Form/FormTextSection.vue +11 -3
  15. package/components/Form/FormToggle.vue +25 -5
  16. package/components/Form/ManagerAttachment.vue +178 -89
  17. package/components/Form/ProductConditionsBlock.vue +59 -6
  18. package/components/Input/Datepicker.vue +43 -7
  19. package/components/Input/DynamicInput.vue +25 -0
  20. package/components/Input/FileInput.vue +25 -5
  21. package/components/Input/FormInput.vue +9 -4
  22. package/components/Input/Monthpicker.vue +34 -0
  23. package/components/Input/PanelInput.vue +6 -1
  24. package/components/Input/RoundedInput.vue +2 -0
  25. package/components/Input/RoundedSelect.vue +9 -2
  26. package/components/Input/SwitchInput.vue +66 -0
  27. package/components/Input/TextInput.vue +162 -0
  28. package/components/Layout/Drawer.vue +18 -4
  29. package/components/Layout/Header.vue +23 -2
  30. package/components/Layout/Loader.vue +2 -1
  31. package/components/Layout/SettingsPanel.vue +24 -11
  32. package/components/Menu/InfoMenu.vue +35 -0
  33. package/components/Menu/MenuNav.vue +25 -3
  34. package/components/Pages/Anketa.vue +255 -65
  35. package/components/Pages/Auth.vue +58 -9
  36. package/components/Pages/ContragentForm.vue +10 -9
  37. package/components/Pages/Documents.vue +267 -30
  38. package/components/Pages/InvoiceInfo.vue +1 -1
  39. package/components/Pages/MemberForm.vue +775 -102
  40. package/components/Pages/ProductAgreement.vue +1 -8
  41. package/components/Pages/ProductConditions.vue +1133 -180
  42. package/components/Panel/PanelHandler.vue +627 -49
  43. package/components/Panel/PanelSelectItem.vue +17 -2
  44. package/components/Panel/RightPanelCloser.vue +7 -0
  45. package/components/Transitions/Animation.vue +30 -0
  46. package/components/Utilities/Chip.vue +2 -0
  47. package/components/Utilities/JsonViewer.vue +2 -2
  48. package/components/Utilities/Qr.vue +44 -0
  49. package/composables/axios.ts +1 -0
  50. package/composables/classes.ts +550 -44
  51. package/composables/constants.ts +126 -6
  52. package/composables/fields.ts +330 -0
  53. package/composables/index.ts +356 -20
  54. package/composables/styles.ts +23 -6
  55. package/configs/pwa.ts +63 -0
  56. package/layouts/clear.vue +21 -0
  57. package/layouts/default.vue +62 -3
  58. package/layouts/full.vue +21 -0
  59. package/locales/ru.json +558 -16
  60. package/nuxt.config.ts +6 -15
  61. package/package.json +38 -39
  62. package/pages/Token.vue +0 -13
  63. package/plugins/head.ts +26 -0
  64. package/plugins/vuetifyPlugin.ts +1 -5
  65. package/store/data.store.ts +1647 -348
  66. package/store/extractStore.ts +17 -0
  67. package/store/form.store.ts +13 -1
  68. package/store/member.store.ts +2 -1
  69. package/store/rules.ts +97 -3
  70. package/store/toast.ts +1 -1
  71. package/tsconfig.json +3 -0
  72. package/types/enum.ts +82 -0
  73. package/types/env.d.ts +2 -0
  74. package/types/form.ts +90 -0
  75. package/types/index.ts +847 -506
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', 'composables'],
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,8 @@ export default defineNuxtConfig({
44
32
  ],
45
33
  },
46
34
 
35
+ vue: { propsDestructure: true },
36
+ future: { typescriptBundlerResolution: false },
37
+
47
38
  components: [{ path: './components', prefix: 'Base', pathPrefix: false }],
48
39
  });
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.9-beta.9",
3
+ "version": "0.0.10-beta.10",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
7
+ "types": "./types/index.ts",
7
8
  "files": [
8
9
  "api/",
9
10
  "store/",
@@ -17,55 +18,53 @@
17
18
  "types/",
18
19
  "nuxt.config.ts",
19
20
  "tailwind.config.js",
21
+ "tsconfig.json",
20
22
  ".prettierrc"
21
23
  ],
22
- "config": {
23
- "project": "",
24
- "branch": ""
25
- },
26
24
  "scripts": {
27
25
  "build": "nuxt build",
28
- "dev": "nuxt dev",
26
+ "dev": "nuxt dev --host",
29
27
  "generate": "nuxt generate",
30
28
  "preview": "nuxt preview",
31
- "tk:all": "cd .. && cd baiterek && yarn typecheck && cd .. && cd bolashak && yarn typecheck && cd .. && cd calculator && yarn typecheck && cd .. && cd efo && yarn typecheck && cd .. && cd gons && yarn typecheck && cd .. && cd kazyna && yarn typecheck && cd .. && cd lifebusiness && yarn typecheck && cd .. && cd liferenta && yarn typecheck && cd .. && cd core",
32
- "i:all": "cd .. && cd baiterek && yarn && cd .. && cd bolashak && yarn && cd .. && cd calculator && yarn && cd .. && cd efo && yarn && cd .. && cd gons && yarn && cd .. && cd kazyna && yarn && cd .. && cd lifebusiness && yarn && cd .. && cd liferenta && yarn && cd .. && cd core",
33
- "update:core": "git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main",
34
- "update:aml": "cd ../../aml/aml && yarn && cd ../checkcontract && yarn && cd ../checkcontragent && yarn && cd.. && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd ../efo/core",
35
- "update:lka": "cd .. && cd lka && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
36
- "update:all": "yarn update:aml && yarn update:lka",
37
- "pull:core": "git pull && git fetch",
38
- "pull:aml": "cd ../../aml && git pull && cd ../efo/core",
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"
29
+ "typecheck": "nuxt typecheck",
30
+ "prc": "npx prettier . --check",
31
+ "prw": "npx prettier . --write",
32
+ "prc:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && npx prettier . --check && cd ..",
33
+ "prw:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && npx prettier . --write && cd ..",
34
+ "tk:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && yarn typecheck && cd ..",
35
+ "i:allf": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && yarn --force && cd ..",
36
+ "i:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && yarn && cd .."
42
37
  },
43
38
  "devDependencies": {
44
- "@nuxt/devtools": "^0.4.5",
45
- "@vueuse/components": "^10.2.1",
46
- "@vueuse/core": "^10.2.1",
47
- "@vueuse/nuxt": "^10.2.1",
48
- "nuxt": "^3.6.2",
49
- "prettier": "^2.8.8"
39
+ "@nuxt/devtools": "1.0.6",
40
+ "@vueuse/components": "10.7.2",
41
+ "@vueuse/core": "10.7.2",
42
+ "@vueuse/nuxt": "10.7.2",
43
+ "nuxt": "3.10.2",
44
+ "prettier": "3.2.5",
45
+ "vue": "3.4.19",
46
+ "vue-router": "4.2.5"
50
47
  },
51
48
  "dependencies": {
52
- "@intlify/unplugin-vue-i18n": "^0.12.2",
53
- "@mdi/font": "^7.2.96",
54
- "@nuxtjs/tailwindcss": "^6.8.0",
55
- "@pinia/nuxt": "^0.4.11",
56
- "@vuepic/vue-datepicker": "^5.3.0",
57
- "animate.css": "^4.1.1",
58
- "axios": "^1.4.0",
49
+ "@intlify/unplugin-vue-i18n": "2.0.0",
50
+ "@microsoft/signalr": "7.0.12",
51
+ "@nuxtjs/tailwindcss": "6.11.2",
52
+ "@pinia/nuxt": "0.5.1",
53
+ "@regulaforensics/document-reader-webclient": "6.9.5",
54
+ "@vite-pwa/nuxt": "0.4.0",
55
+ "@vuepic/vue-datepicker": "7.4.1",
56
+ "axios": "1.6.7",
59
57
  "fast-xml-parser": "4.0.12",
60
- "jwt-decode": "^3.1.2",
58
+ "jwt-decode": "3.1.2",
61
59
  "maska": "1.5.0",
62
- "pinia": "^2.1.4",
63
- "typedoc": "^0.24.8",
64
- "typescript": "5.0.4",
65
- "vue-i18n": "^9.2.2",
66
- "vue-json-pretty": "^2.2.4",
67
- "vue-toastification": "^2.0.0-rc.5",
68
- "vue-uuid": "^3.0.0",
69
- "vuetify": "^3.3.7"
60
+ "ncalayer-js-client": "1.3.4",
61
+ "pinia": "2.1.7",
62
+ "qrcode.vue": "3.4.1",
63
+ "typescript": "5.3.3",
64
+ "vue-i18n": "9.9.1",
65
+ "vue-json-pretty": "2.2.4",
66
+ "vue-toastification": "2.0.0-rc.5",
67
+ "vue-uuid": "3.0.0",
68
+ "vuetify": "3.5.4"
70
69
  }
71
70
  }
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);
@@ -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
+ });
@@ -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: {