hl-core 0.0.10-beta.3 → 0.0.10-beta.31

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 (52) hide show
  1. package/README.md +0 -2
  2. package/api/base.api.ts +300 -190
  3. package/api/interceptors.ts +3 -5
  4. package/components/Complex/TextBlock.vue +2 -0
  5. package/components/Dialog/Dialog.vue +7 -1
  6. package/components/Dialog/FamilyDialog.vue +2 -0
  7. package/components/Form/DigitalDocument.vue +52 -0
  8. package/components/Form/DynamicForm.vue +1 -0
  9. package/components/Form/FormData.vue +1 -0
  10. package/components/Form/ManagerAttachment.vue +17 -8
  11. package/components/Form/ProductConditionsBlock.vue +12 -6
  12. package/components/Input/Datepicker.vue +5 -0
  13. package/components/Input/DynamicInput.vue +2 -0
  14. package/components/Input/FormInput.vue +7 -0
  15. package/components/Input/OtpInput.vue +25 -0
  16. package/components/Input/PanelInput.vue +1 -0
  17. package/components/Input/RoundedInput.vue +4 -0
  18. package/components/Input/RoundedSelect.vue +4 -0
  19. package/components/Input/SwitchInput.vue +2 -0
  20. package/components/Input/TextInput.vue +2 -0
  21. package/components/Layout/Drawer.vue +2 -0
  22. package/components/Pages/Anketa.vue +166 -167
  23. package/components/Pages/Auth.vue +2 -0
  24. package/components/Pages/ContragentForm.vue +2 -1
  25. package/components/Pages/Documents.vue +429 -59
  26. package/components/Pages/MemberForm.vue +327 -159
  27. package/components/Pages/ProductConditions.vue +681 -150
  28. package/components/Panel/PanelHandler.vue +261 -114
  29. package/components/Transitions/Animation.vue +2 -0
  30. package/components/Utilities/Chip.vue +3 -1
  31. package/components/Utilities/JsonViewer.vue +1 -2
  32. package/composables/classes.ts +133 -42
  33. package/composables/constants.ts +41 -0
  34. package/composables/fields.ts +6 -4
  35. package/composables/index.ts +246 -7
  36. package/composables/styles.ts +8 -24
  37. package/configs/pwa.ts +1 -7
  38. package/layouts/clear.vue +1 -1
  39. package/layouts/default.vue +1 -1
  40. package/layouts/full.vue +1 -1
  41. package/locales/ru.json +44 -14
  42. package/nuxt.config.ts +10 -13
  43. package/package.json +13 -12
  44. package/plugins/head.ts +2 -1
  45. package/store/data.store.ts +670 -480
  46. package/store/member.store.ts +18 -6
  47. package/store/rules.ts +21 -2
  48. package/tsconfig.json +3 -0
  49. package/types/enum.ts +20 -2
  50. package/types/env.d.ts +2 -2
  51. package/types/form.ts +71 -74
  52. package/types/index.ts +916 -873
package/nuxt.config.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { resolve, dirname } from 'node:path';
2
- import { fileURLToPath } from 'url';
3
- import VueI18nVitePlugin from '@intlify/unplugin-vue-i18n/vite';
1
+ import path from 'path';
2
+ import VueI18nVitePlugin from '@intlify/unplugin-vue-i18n';
4
3
 
5
4
  export default defineNuxtConfig({
6
5
  ssr: false,
@@ -12,7 +11,7 @@ export default defineNuxtConfig({
12
11
  },
13
12
 
14
13
  build: {
15
- transpile: ['@vuepic/vue-datepicker', '@microsoft/signalr', 'vue-uuid', 'qrcode.vue'],
14
+ transpile: ['@vuepic/vue-datepicker', '@microsoft/signalr', 'vue-uuid', 'qrcode.vue', 'vue-i18n'],
16
15
  },
17
16
 
18
17
  vite: {
@@ -26,19 +25,17 @@ export default defineNuxtConfig({
26
25
  },
27
26
  },
28
27
  plugins: [
29
- VueI18nVitePlugin({
30
- include: [resolve(dirname(fileURLToPath(import.meta.url)), './locales/*.json')],
28
+ VueI18nVitePlugin.vite({
29
+ include: [path.resolve(__dirname, './locales/**')],
31
30
  }),
32
31
  ],
32
+ build: {
33
+ chunkSizeWarningLimit: 2000,
34
+ },
33
35
  },
34
36
 
35
- future: {
36
- typescriptBundlerResolution: false,
37
- },
38
-
39
- vue: {
40
- propsDestructure: true,
41
- },
37
+ vue: { propsDestructure: true },
38
+ future: { typescriptBundlerResolution: false },
42
39
 
43
40
  components: [{ path: './components', prefix: 'Base', pathPrefix: false }],
44
41
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.3",
3
+ "version": "0.0.10-beta.31",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -18,6 +18,7 @@
18
18
  "types/",
19
19
  "nuxt.config.ts",
20
20
  "tailwind.config.js",
21
+ "tsconfig.json",
21
22
  ".prettierrc"
22
23
  ],
23
24
  "scripts": {
@@ -35,35 +36,35 @@
35
36
  "i:all": "cd .. && for /d %i in (.\\*) do echo Project: = %i && cd %i && yarn && cd .."
36
37
  },
37
38
  "devDependencies": {
38
- "@nuxt/devtools": "1.0.6",
39
- "@vueuse/components": "10.7.2",
40
- "@vueuse/core": "10.7.2",
41
- "@vueuse/nuxt": "10.7.2",
42
- "nuxt": "3.10.2",
39
+ "@nuxt/devtools": "1.0.8",
40
+ "@vueuse/components": "10.8.0",
41
+ "@vueuse/core": "10.8.0",
42
+ "@vueuse/nuxt": "10.8.0",
43
+ "nuxt": "3.10.3",
43
44
  "prettier": "3.2.5",
44
45
  "vue": "3.4.19",
45
- "vue-router": "4.2.5"
46
+ "vue-router": "4.3.0"
46
47
  },
47
48
  "dependencies": {
48
49
  "@intlify/unplugin-vue-i18n": "2.0.0",
49
50
  "@microsoft/signalr": "7.0.12",
50
- "@nuxtjs/tailwindcss": "6.11.2",
51
+ "@nuxtjs/tailwindcss": "6.11.4",
51
52
  "@pinia/nuxt": "0.5.1",
52
53
  "@regulaforensics/document-reader-webclient": "6.9.5",
53
- "@vite-pwa/nuxt": "0.4.0",
54
+ "@vite-pwa/nuxt": "0.5.0",
54
55
  "@vuepic/vue-datepicker": "7.4.1",
55
56
  "axios": "1.6.7",
56
57
  "fast-xml-parser": "4.0.12",
57
- "jwt-decode": "3.1.2",
58
+ "jwt-decode": "4.0.0",
58
59
  "maska": "1.5.0",
59
60
  "ncalayer-js-client": "1.3.4",
60
61
  "pinia": "2.1.7",
61
62
  "qrcode.vue": "3.4.1",
62
63
  "typescript": "5.3.3",
63
64
  "vue-i18n": "9.9.1",
64
- "vue-json-pretty": "2.2.4",
65
+ "vue-json-pretty": "2.3.0",
65
66
  "vue-toastification": "2.0.0-rc.5",
66
67
  "vue-uuid": "3.0.0",
67
- "vuetify": "3.5.4"
68
+ "vuetify": "3.5.6"
68
69
  }
69
70
  }
package/plugins/head.ts CHANGED
@@ -5,7 +5,7 @@ export default defineNuxtPlugin(() => {
5
5
  {
6
6
  rel: 'icon',
7
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',
8
+ href: import.meta.env.VITE_PARENT_PRODUCT === 'auletti' || String(import.meta.env.VITE_PRODUCT).includes('auletti') ? '/logo-auletti.svg' : '/logo.svg',
9
9
  },
10
10
  { rel: 'preconnect', href: 'https://fonts.googleapis.com' },
11
11
  { rel: 'preconnect', href: 'https://fonts.gstatic.com' },
@@ -22,5 +22,6 @@ export default defineNuxtPlugin(() => {
22
22
  href: 'https://cdn.jsdelivr.net/npm/animate.css@4.1.1/animate.min.css',
23
23
  },
24
24
  ],
25
+ script: [{ children: 'if (!Object.hasOwn) {Object.hasOwn = function(obj, prop) {return Object.prototype.hasOwnProperty.call(obj, prop);};}' }],
25
26
  });
26
27
  });