hl-core 0.0.9-beta.3 → 0.0.9-beta.30

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 (72) hide show
  1. package/api/base.api.ts +862 -0
  2. package/api/index.ts +2 -620
  3. package/api/interceptors.ts +58 -14
  4. package/components/Button/Btn.vue +3 -3
  5. package/components/Complex/ContentBlock.vue +1 -1
  6. package/components/Complex/MessageBlock.vue +2 -2
  7. package/components/Complex/Page.vue +8 -2
  8. package/components/Complex/WhiteBlock.vue +7 -0
  9. package/components/Dialog/Dialog.vue +60 -15
  10. package/components/Dialog/FamilyDialog.vue +5 -5
  11. package/components/Form/DynamicForm.vue +99 -0
  12. package/components/Form/FormBlock.vue +36 -29
  13. package/components/Form/FormData.vue +48 -0
  14. package/components/Form/FormSection.vue +2 -2
  15. package/components/Form/FormTextSection.vue +3 -3
  16. package/components/Form/FormToggle.vue +3 -3
  17. package/components/Form/ManagerAttachment.vue +104 -52
  18. package/components/Form/ProductConditionsBlock.vue +73 -20
  19. package/components/Input/DynamicInput.vue +23 -0
  20. package/components/Input/EmptyFormField.vue +1 -1
  21. package/components/Input/FileInput.vue +15 -4
  22. package/components/Input/Monthpicker.vue +33 -0
  23. package/components/Input/PanelInput.vue +5 -1
  24. package/components/Input/RoundedEmptyField.vue +5 -0
  25. package/components/Input/RoundedSelect.vue +13 -0
  26. package/components/Input/SwitchInput.vue +64 -0
  27. package/components/Input/TextInput.vue +161 -0
  28. package/components/Layout/Drawer.vue +17 -4
  29. package/components/Layout/Header.vue +2 -2
  30. package/components/Layout/SettingsPanel.vue +10 -15
  31. package/components/List/ListEmpty.vue +1 -1
  32. package/components/Menu/MenuHover.vue +1 -1
  33. package/components/Menu/MenuNav.vue +3 -3
  34. package/components/Menu/MenuNavItem.vue +4 -4
  35. package/components/Pages/Anketa.vue +144 -65
  36. package/components/Pages/Auth.vue +21 -10
  37. package/components/Pages/ContragentForm.vue +505 -0
  38. package/components/Pages/Documents.vue +57 -11
  39. package/components/Pages/InvoiceInfo.vue +2 -2
  40. package/components/Pages/MemberForm.vue +253 -89
  41. package/components/Pages/ProductAgreement.vue +2 -11
  42. package/components/Pages/ProductConditions.vue +777 -164
  43. package/components/Panel/PanelHandler.vue +297 -54
  44. package/components/Panel/PanelSelectItem.vue +18 -3
  45. package/components/Panel/RightPanelCloser.vue +7 -0
  46. package/components/Utilities/IconBorder.vue +17 -0
  47. package/composables/axios.ts +1 -1
  48. package/composables/classes.ts +405 -9
  49. package/composables/constants.ts +40 -0
  50. package/composables/fields.ts +203 -0
  51. package/composables/index.ts +48 -0
  52. package/composables/styles.ts +22 -10
  53. package/configs/i18n.ts +0 -2
  54. package/layouts/default.vue +46 -4
  55. package/layouts/full.vue +1 -1
  56. package/locales/ru.json +423 -11
  57. package/nuxt.config.ts +1 -1
  58. package/package.json +30 -39
  59. package/pages/500.vue +2 -2
  60. package/pages/Token.vue +1 -0
  61. package/plugins/helperFunctionsPlugins.ts +6 -7
  62. package/plugins/vuetifyPlugin.ts +2 -0
  63. package/store/data.store.ts +936 -217
  64. package/store/extractStore.ts +17 -0
  65. package/store/form.store.ts +13 -1
  66. package/store/member.store.ts +1 -1
  67. package/store/rules.ts +38 -2
  68. package/types/enum.ts +8 -0
  69. package/types/form.ts +94 -0
  70. package/types/index.ts +162 -10
  71. package/components/Button/BtnIcon.vue +0 -47
  72. package/locales/kz.json +0 -590
package/nuxt.config.ts CHANGED
@@ -6,7 +6,7 @@ import VueI18nVitePlugin from '@intlify/unplugin-vue-i18n/vite';
6
6
  export default defineNuxtConfig({
7
7
  ssr: false,
8
8
  spaLoadingTemplate: false,
9
- modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss', '@nuxt/devtools'],
9
+ modules: ['@pinia/nuxt', '@nuxtjs/tailwindcss', '@nuxt/devtools', '@vueuse/nuxt'],
10
10
 
11
11
  imports: {
12
12
  dirs: ['store', 'composables'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.9-beta.3",
3
+ "version": "0.0.9-beta.30",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -28,53 +28,44 @@
28
28
  "dev": "nuxt dev",
29
29
  "generate": "nuxt generate",
30
30
  "preview": "nuxt preview",
31
+ "tk:all": "cd .. && cd baiterek && yarn typecheck && cd .. && cd bolashak && yarn typecheck && cd .. && cd calculator && yarn typecheck && cd .. && cd daskamkorlyk && 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 lifetrip && yarn typecheck && cd .. && cd core",
32
+ "i:all": "cd .. && cd baiterek && yarn && cd .. && cd bolashak && yarn && cd .. && cd calculator && yarn && cd .. && cd daskamkorlyk && yarn && cd .. && cd efo && yarn && cd .. && cd gons && yarn && cd .. && cd kazyna && yarn && cd .. && cd lifebusiness && yarn && cd .. && cd liferenta && yarn && cd .. && cd lifetrip && yarn && cd .. && cd core",
31
33
  "update:core": "git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main",
32
- "update:aml": "cd .. && cd aml && cd aml && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd checkcontract && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
33
- "update:baiterek": "cd .. && cd baiterek && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
34
- "update:bolashak": "cd .. && cd bolashak && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
35
- "update:calculator": "cd .. && cd calculator && 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:efo": "cd .. && cd efo && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
37
- "update:gons": "cd .. && cd gons && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
38
- "update:kazyna": "cd .. && cd kazyna && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
39
- "update:liferenta": "cd .. && cd liferenta && yarn && git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main && cd .. && cd core",
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",
40
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",
41
- "update:all": "yarn update:aml && yarn update:baiterek && yarn update:bolashak && yarn update:calculator && yarn update:efo && yarn update:gons && yarn update:kazyna && yarn update:liferenta && yarn update:lka",
42
- "pull:aml": "cd .. && cd aml && git pull && cd .. && cd core",
43
- "pull:baiterek": "cd .. && cd baiterek && git pull && cd .. && cd core",
44
- "pull:bolashak": "cd .. && cd bolashak && git pull && cd .. && cd core",
45
- "pull:calculator": "cd .. && cd calculator && git pull && cd .. && cd core",
46
- "pull:efo": "cd .. && cd efo && git pull && cd .. && cd core",
47
- "pull:gons": "cd .. && cd gons && git pull && cd .. && cd core",
48
- "pull:kazyna": "cd .. && cd kazyna && git pull && cd .. && cd core",
49
- "pull:liferenta": "cd .. && cd liferenta && git pull && cd .. && cd core",
50
- "pull:lka": "cd .. && cd lka && git pull && cd .. && cd core",
51
- "pull:all": "yarn pull:aml && yarn pull:baiterek && yarn pull:bolashak && yarn pull:calculator && yarn pull:efo && yarn pull:gons && yarn pull:kazyna && yarn pull:liferenta && yarn pull:lka",
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",
52
41
  "typecheck": "nuxt typecheck"
53
42
  },
54
43
  "devDependencies": {
55
- "@nuxt/devtools": "^0.4.5",
56
- "nuxt": "^3.6.2",
57
- "prettier": "^2.8.8"
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"
58
50
  },
59
51
  "dependencies": {
60
- "@intlify/unplugin-vue-i18n": "^0.12.2",
61
- "@mdi/font": "^7.2.96",
62
- "@nuxtjs/tailwindcss": "^6.8.0",
63
- "@pinia/nuxt": "^0.4.11",
64
- "@vuepic/vue-datepicker": "^5.3.0",
65
- "animate.css": "^4.1.1",
66
- "axios": "^1.4.0",
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",
67
59
  "fast-xml-parser": "4.0.12",
68
- "jwt-decode": "^3.1.2",
60
+ "jwt-decode": "3.1.2",
69
61
  "maska": "1.5.0",
70
- "pinia": "^2.1.4",
71
- "typedoc": "^0.24.8",
62
+ "pinia": "2.1.4",
63
+ "typedoc": "0.24.8",
72
64
  "typescript": "5.0.4",
73
- "v-idle-3": "^0.3.14",
74
- "vue-i18n": "^9.2.2",
75
- "vue-json-pretty": "^2.2.4",
76
- "vue-toastification": "^2.0.0-rc.5",
77
- "vue-uuid": "^3.0.0",
78
- "vuetify": "^3.3.7"
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.11"
79
70
  }
80
71
  }
package/pages/500.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <base-content class="!w-full flex-col justify-center items-center gap-[100px]" :class="[$libStyles.blueBgLight]">
2
+ <base-content class="!w-full flex-col justify-center items-center gap-[100px]" :class="[$styles.blueBgLight]">
3
3
  <svg class="w-[240px] lg:w-[330px]" draggable="false" width="277" height="99" viewBox="0 0 277 99" fill="none" xmlns="http://www.w3.org/2000/svg">
4
4
  <path
5
5
  fill-rule="evenodd"
@@ -39,7 +39,7 @@
39
39
  />
40
40
  </svg>
41
41
  <div class="text-center">
42
- <h2 :class="[$libStyles.blackText]" class="text-[26px] leading-5 mb-5">Сервис временно не доступен</h2>
42
+ <h2 :class="[$styles.blackText]" class="text-[26px] leading-5 mb-5">Сервис временно не доступен</h2>
43
43
  <p v-if="errorStack.length" class="mt-4 flex flex-col">
44
44
  <span v-for="(error, index) of errorStack" :key="error">
45
45
  <i v-if="index !== 0" class="mdi mdi-arrow-right"></i>
package/pages/Token.vue CHANGED
@@ -22,6 +22,7 @@ export default defineComponent({
22
22
  if (dataStore.isAML) {
23
23
  return 'Main';
24
24
  }
25
+ return 'index';
25
26
  };
26
27
 
27
28
  onMounted(async () => {
@@ -3,25 +3,24 @@ import { constants } from '../composables/constants';
3
3
  import { Styles } from '../composables/styles';
4
4
  import VueDatePicker from '@vuepic/vue-datepicker';
5
5
  import '@vuepic/vue-datepicker/dist/main.css';
6
- import Vidle from 'v-idle-3';
7
6
  import Maska from 'maska';
8
7
  import i18n from '../configs/i18n';
9
8
 
10
9
  export default defineNuxtPlugin(nuxtApp => {
11
- //@ts-ignore
12
- nuxtApp.vueApp.use(Vidle, {});
13
10
  nuxtApp.vueApp.use(Maska);
14
11
  nuxtApp.vueApp.use(i18n);
15
12
  nuxtApp.vueApp.component('VueDatePicker', VueDatePicker);
16
13
 
17
14
  return {
18
15
  provide: {
19
- capitalize: capitalize,
20
- getFullNameShorted: getFullNameShorted,
21
- libStyles: new Styles(),
16
+ env: useEnv(),
22
17
  maska: new Masks(),
23
- reformatIin: reformatIin,
18
+ styles: new Styles(),
24
19
  constants: constants,
20
+ capitalize: capitalize,
21
+ display: useDisplayInfo,
22
+ reformatIin: reformatIin,
23
+ getFullNameShorted: getFullNameShorted,
25
24
  },
26
25
  };
27
26
  });
@@ -4,12 +4,14 @@ import 'vuetify/styles';
4
4
  import { createVuetify } from 'vuetify';
5
5
  import * as components from 'vuetify/components';
6
6
  import * as directives from 'vuetify/directives';
7
+ import { VDataTable } from 'vuetify/labs/VDataTable';
7
8
 
8
9
  export default defineNuxtPlugin(nuxtApp => {
9
10
  const vuetify = createVuetify({
10
11
  ssr: false,
11
12
  components: {
12
13
  ...components,
14
+ VDataTable,
13
15
  },
14
16
  directives,
15
17
  defaults: {