hl-core 0.0.9-beta.5 → 0.0.9-beta.51

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 (63) hide show
  1. package/api/base.api.ts +1042 -0
  2. package/api/index.ts +2 -620
  3. package/api/interceptors.ts +53 -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 +110 -0
  11. package/components/Form/FormSection.vue +3 -3
  12. package/components/Form/FormToggle.vue +25 -5
  13. package/components/Form/ManagerAttachment.vue +150 -86
  14. package/components/Form/ProductConditionsBlock.vue +59 -6
  15. package/components/Input/Datepicker.vue +43 -7
  16. package/components/Input/DynamicInput.vue +23 -0
  17. package/components/Input/FileInput.vue +25 -5
  18. package/components/Input/FormInput.vue +7 -4
  19. package/components/Input/Monthpicker.vue +34 -0
  20. package/components/Input/PanelInput.vue +5 -1
  21. package/components/Input/RoundedEmptyField.vue +5 -0
  22. package/components/Input/RoundedSelect.vue +18 -0
  23. package/components/Input/SwitchInput.vue +64 -0
  24. package/components/Input/TextInput.vue +160 -0
  25. package/components/Layout/Drawer.vue +17 -4
  26. package/components/Layout/Header.vue +23 -2
  27. package/components/Layout/Loader.vue +1 -1
  28. package/components/Layout/SettingsPanel.vue +13 -7
  29. package/components/Menu/InfoMenu.vue +35 -0
  30. package/components/Menu/MenuNav.vue +17 -2
  31. package/components/Pages/Anketa.vue +140 -52
  32. package/components/Pages/Auth.vue +50 -9
  33. package/components/Pages/ContragentForm.vue +124 -50
  34. package/components/Pages/Documents.vue +179 -29
  35. package/components/Pages/InvoiceInfo.vue +1 -1
  36. package/components/Pages/MemberForm.vue +605 -116
  37. package/components/Pages/ProductAgreement.vue +1 -8
  38. package/components/Pages/ProductConditions.vue +1055 -183
  39. package/components/Panel/PanelHandler.vue +583 -46
  40. package/components/Panel/PanelSelectItem.vue +17 -2
  41. package/components/Panel/RightPanelCloser.vue +7 -0
  42. package/components/Transitions/Animation.vue +28 -0
  43. package/components/Utilities/Qr.vue +44 -0
  44. package/composables/axios.ts +1 -0
  45. package/composables/classes.ts +456 -8
  46. package/composables/constants.ts +114 -2
  47. package/composables/fields.ts +328 -0
  48. package/composables/index.ts +270 -19
  49. package/composables/styles.ts +29 -16
  50. package/layouts/default.vue +48 -3
  51. package/locales/ru.json +547 -14
  52. package/package.json +28 -24
  53. package/pages/Token.vue +1 -12
  54. package/plugins/vuetifyPlugin.ts +2 -0
  55. package/store/data.store.ts +1463 -275
  56. package/store/extractStore.ts +17 -0
  57. package/store/form.store.ts +13 -1
  58. package/store/member.store.ts +1 -1
  59. package/store/rules.ts +83 -5
  60. package/types/enum.ts +61 -0
  61. package/types/env.d.ts +1 -0
  62. package/types/form.ts +94 -0
  63. package/types/index.ts +259 -23
@@ -1,7 +1,10 @@
1
1
  <template>
2
- <div class="flex justify-between p-4 items-center cursor-pointer" :class="[$styles.rounded, $styles.blueBgLight, $styles.blueBgLightHover]">
2
+ <div
3
+ class="transition-all flex justify-between p-4 items-center cursor-pointer"
4
+ :class="[$styles.rounded, $styles.blueBgLight, $styles.blueBgLightHover, disabled ? $styles.disabled : '']"
5
+ >
3
6
  <span :class="[$styles.textSimple]">{{ text }}</span>
4
- <i class="mdi text-xl" :class="[selected ? `mdi-radiobox-marked ${$styles.greenText}` : 'mdi-radiobox-blank text-[#636363]']"></i>
7
+ <i class="mdi text-xl" :class="[selected ? `${trueIcon} ${$styles.greenText}` : `${falseIcon} text-[#636363]`]"></i>
5
8
  </div>
6
9
  </template>
7
10
 
@@ -15,6 +18,18 @@ export default defineComponent({
15
18
  type: Boolean,
16
19
  default: false,
17
20
  },
21
+ disabled: {
22
+ type: Boolean,
23
+ default: false,
24
+ },
25
+ trueIcon: {
26
+ type: String,
27
+ default: 'mdi-radiobox-marked',
28
+ },
29
+ falseIcon: {
30
+ type: String,
31
+ default: 'mdi-radiobox-blank ',
32
+ },
18
33
  },
19
34
  });
20
35
  </script>
@@ -0,0 +1,7 @@
1
+ <script setup lang="ts">
2
+ const dataStore = useDataStore();
3
+
4
+ onUnmounted(() => {
5
+ dataStore.rightPanel.open = false;
6
+ });
7
+ </script>
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <component v-if="!!type && Object.keys(vuetifyAnimations).includes(type)" :is="vuetifyAnimations[type]">
3
+ <slot></slot>
4
+ </component>
5
+ <slot v-else></slot>
6
+ </template>
7
+
8
+ <script setup lang="ts">
9
+ defineProps({
10
+ type: {
11
+ type: String as PropType<VuetifyAnimations>,
12
+ default: 'expand',
13
+ },
14
+ });
15
+
16
+ const vuetifyAnimations: { [key in VuetifyAnimations]: string } = {
17
+ expand: 'v-expand-transition',
18
+ fab: 'v-fab-transition',
19
+ fade: 'v-fade-transition',
20
+ scale: 'v-scale-transition',
21
+ 'scroll-x': 'v-scroll-x-transition',
22
+ 'scroll-y': 'v-scroll-x-transition',
23
+ 'slide-x': 'v-slide-x-transition',
24
+ 'slide-x-r': 'v-slide-x-reverse-transition',
25
+ 'slide-y': 'v-slide-y-transition',
26
+ 'slide-y-r': 'v-slide-y-reverse-transition',
27
+ };
28
+ </script>
@@ -0,0 +1,44 @@
1
+ <template>
2
+ <qrcode-vue v-if="!!value" :value="value" :size="size" :level="level" :margin="margin" :render-as="renderAs" :background="background" :foreground="foreground" />
3
+ </template>
4
+
5
+ <script lang="ts">
6
+ import QrcodeVue from 'qrcode.vue';
7
+
8
+ export default defineComponent({
9
+ components: {
10
+ QrcodeVue,
11
+ },
12
+ props: {
13
+ value: {
14
+ type: String,
15
+ default: '',
16
+ required: true,
17
+ },
18
+ size: {
19
+ type: Number,
20
+ default: 250,
21
+ },
22
+ renderAs: {
23
+ type: String as PropType<'canvas' | 'svg'>,
24
+ default: 'canvas',
25
+ },
26
+ margin: {
27
+ type: Number,
28
+ default: 0,
29
+ },
30
+ level: {
31
+ type: String as PropType<'L' | 'M' | 'Q' | 'H'>,
32
+ default: 'M',
33
+ },
34
+ background: {
35
+ type: String,
36
+ default: '#ffffff',
37
+ },
38
+ foreground: {
39
+ type: String,
40
+ default: '#000000',
41
+ },
42
+ },
43
+ });
44
+ </script>
@@ -4,6 +4,7 @@ import interceptors from '../api/interceptors';
4
4
  export const useAxiosInstance = (baseURL: string) => {
5
5
  const axiosInstance = axios.create({
6
6
  baseURL: baseURL,
7
+ signal: useDataStore().rController.signal,
7
8
  });
8
9
  interceptors(axiosInstance);
9
10