hl-core 0.0.9-beta.4 → 0.0.9-beta.41

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 (61) hide show
  1. package/api/base.api.ts +904 -0
  2. package/api/index.ts +2 -620
  3. package/api/interceptors.ts +58 -14
  4. package/components/Button/Btn.vue +2 -2
  5. package/components/Complex/MessageBlock.vue +2 -2
  6. package/components/Complex/Page.vue +1 -1
  7. package/components/Dialog/Dialog.vue +60 -15
  8. package/components/Form/DynamicForm.vue +100 -0
  9. package/components/Form/FormBlock.vue +12 -3
  10. package/components/Form/FormData.vue +114 -0
  11. package/components/Form/FormToggle.vue +9 -3
  12. package/components/Form/ManagerAttachment.vue +150 -86
  13. package/components/Form/ProductConditionsBlock.vue +59 -6
  14. package/components/Input/Datepicker.vue +1 -8
  15. package/components/Input/DynamicInput.vue +23 -0
  16. package/components/Input/FileInput.vue +16 -4
  17. package/components/Input/FormInput.vue +1 -3
  18. package/components/Input/Monthpicker.vue +34 -0
  19. package/components/Input/PanelInput.vue +5 -1
  20. package/components/Input/RoundedEmptyField.vue +5 -0
  21. package/components/Input/RoundedSelect.vue +13 -0
  22. package/components/Input/SwitchInput.vue +64 -0
  23. package/components/Input/TextInput.vue +159 -0
  24. package/components/Layout/Drawer.vue +17 -4
  25. package/components/Layout/Header.vue +23 -2
  26. package/components/Layout/SettingsPanel.vue +13 -7
  27. package/components/Menu/InfoMenu.vue +35 -0
  28. package/components/Menu/MenuNav.vue +17 -2
  29. package/components/Pages/Anketa.vue +140 -52
  30. package/components/Pages/Auth.vue +12 -1
  31. package/components/Pages/ContragentForm.vue +129 -50
  32. package/components/Pages/Documents.vue +72 -7
  33. package/components/Pages/InvoiceInfo.vue +1 -1
  34. package/components/Pages/MemberForm.vue +269 -96
  35. package/components/Pages/ProductAgreement.vue +1 -8
  36. package/components/Pages/ProductConditions.vue +798 -168
  37. package/components/Panel/PanelHandler.vue +373 -45
  38. package/components/Panel/PanelSelectItem.vue +17 -2
  39. package/components/Panel/RightPanelCloser.vue +7 -0
  40. package/components/Transitions/Animation.vue +28 -0
  41. package/composables/axios.ts +2 -1
  42. package/composables/classes.ts +415 -8
  43. package/composables/constants.ts +65 -2
  44. package/composables/fields.ts +291 -0
  45. package/composables/index.ts +58 -5
  46. package/composables/styles.ts +22 -10
  47. package/layouts/default.vue +48 -3
  48. package/locales/ru.json +460 -12
  49. package/nuxt.config.ts +1 -1
  50. package/package.json +25 -22
  51. package/pages/Token.vue +1 -12
  52. package/plugins/helperFunctionsPlugins.ts +0 -3
  53. package/plugins/vuetifyPlugin.ts +2 -0
  54. package/store/data.store.ts +1031 -224
  55. package/store/extractStore.ts +17 -0
  56. package/store/form.store.ts +13 -1
  57. package/store/member.store.ts +1 -1
  58. package/store/rules.ts +53 -5
  59. package/types/enum.ts +37 -0
  60. package/types/form.ts +94 -0
  61. package/types/index.ts +216 -20
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.4",
3
+ "version": "0.0.9-beta.41",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -28,8 +28,8 @@
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 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",
31
+ "tk:all": "cd .. && cd amuletlife && yarn typecheck && 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 pensionannuity && yarn typecheck && cd .. && cd core",
32
+ "i:all": "cd .. && cd amuletlife && yarn && 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 pensionannuity && yarn && cd .. && cd core",
33
33
  "update:core": "git checkout -b %npm_package_version% && git add . && git commit -m \"%npm_package_version%\" && git push && git checkout main",
34
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
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,29 +41,32 @@
41
41
  "typecheck": "nuxt typecheck"
42
42
  },
43
43
  "devDependencies": {
44
- "@nuxt/devtools": "^0.4.5",
45
- "nuxt": "^3.6.2",
46
- "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"
47
50
  },
48
51
  "dependencies": {
49
- "@intlify/unplugin-vue-i18n": "^0.12.2",
50
- "@mdi/font": "^7.2.96",
51
- "@nuxtjs/tailwindcss": "^6.8.0",
52
- "@pinia/nuxt": "^0.4.11",
53
- "@vuepic/vue-datepicker": "^5.3.0",
54
- "animate.css": "^4.1.1",
55
- "axios": "^1.4.0",
52
+ "@intlify/unplugin-vue-i18n": "0.12.2",
53
+ "@mdi/font": "7.3.67",
54
+ "@microsoft/signalr": "^7.0.12",
55
+ "@nuxtjs/tailwindcss": "6.8.0",
56
+ "@pinia/nuxt": "0.4.11",
57
+ "@vuepic/vue-datepicker": "7.2.0",
58
+ "animate.css": "4.1.1",
59
+ "axios": "1.4.0",
56
60
  "fast-xml-parser": "4.0.12",
57
- "jwt-decode": "^3.1.2",
61
+ "jwt-decode": "3.1.2",
58
62
  "maska": "1.5.0",
59
- "pinia": "^2.1.4",
60
- "typedoc": "^0.24.8",
63
+ "pinia": "2.1.4",
64
+ "typedoc": "0.24.8",
61
65
  "typescript": "5.0.4",
62
- "v-idle-3": "^0.3.14",
63
- "vue-i18n": "^9.2.2",
64
- "vue-json-pretty": "^2.2.4",
65
- "vue-toastification": "^2.0.0-rc.5",
66
- "vue-uuid": "^3.0.0",
67
- "vuetify": "^3.3.7"
66
+ "vue-i18n": "9.2.2",
67
+ "vue-json-pretty": "2.2.4",
68
+ "vue-toastification": "2.0.0-rc.5",
69
+ "vue-uuid": "3.0.0",
70
+ "vuetify": "3.3.23"
68
71
  }
69
72
  }
package/pages/Token.vue CHANGED
@@ -12,18 +12,7 @@ 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
- };
15
+
27
16
 
28
17
  onMounted(async () => {
29
18
  if (!dataStore.isBridge) {
@@ -3,13 +3,10 @@ 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);
@@ -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: {