hl-core 0.0.9-beta.9 → 0.0.10-beta.1
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.
- package/api/base.api.ts +1109 -0
- package/api/index.ts +2 -620
- package/api/interceptors.ts +38 -1
- package/components/Button/Btn.vue +1 -6
- package/components/Complex/MessageBlock.vue +1 -1
- package/components/Complex/Page.vue +1 -1
- package/components/Complex/TextBlock.vue +23 -0
- package/components/Dialog/Dialog.vue +70 -16
- package/components/Dialog/FamilyDialog.vue +1 -1
- package/components/Form/DynamicForm.vue +100 -0
- package/components/Form/FormBlock.vue +12 -3
- package/components/Form/FormData.vue +110 -0
- package/components/Form/FormSection.vue +3 -3
- package/components/Form/FormTextSection.vue +11 -3
- package/components/Form/FormToggle.vue +25 -5
- package/components/Form/ManagerAttachment.vue +177 -89
- package/components/Form/ProductConditionsBlock.vue +59 -6
- package/components/Input/Datepicker.vue +43 -7
- package/components/Input/DynamicInput.vue +23 -0
- package/components/Input/FileInput.vue +25 -5
- package/components/Input/FormInput.vue +7 -4
- package/components/Input/Monthpicker.vue +34 -0
- package/components/Input/PanelInput.vue +5 -1
- package/components/Input/RoundedSelect.vue +7 -2
- package/components/Input/SwitchInput.vue +64 -0
- package/components/Input/TextInput.vue +160 -0
- package/components/Layout/Drawer.vue +16 -4
- package/components/Layout/Header.vue +23 -2
- package/components/Layout/Loader.vue +2 -1
- package/components/Layout/SettingsPanel.vue +24 -11
- package/components/Menu/InfoMenu.vue +35 -0
- package/components/Menu/MenuNav.vue +25 -3
- package/components/Pages/Anketa.vue +254 -65
- package/components/Pages/Auth.vue +56 -9
- package/components/Pages/ContragentForm.vue +9 -9
- package/components/Pages/Documents.vue +266 -30
- package/components/Pages/InvoiceInfo.vue +1 -1
- package/components/Pages/MemberForm.vue +774 -102
- package/components/Pages/ProductAgreement.vue +1 -8
- package/components/Pages/ProductConditions.vue +1132 -180
- package/components/Panel/PanelHandler.vue +626 -49
- package/components/Panel/PanelSelectItem.vue +17 -2
- package/components/Panel/RightPanelCloser.vue +7 -0
- package/components/Transitions/Animation.vue +28 -0
- package/components/Utilities/JsonViewer.vue +3 -2
- package/components/Utilities/Qr.vue +44 -0
- package/composables/axios.ts +1 -0
- package/composables/classes.ts +501 -14
- package/composables/constants.ts +126 -6
- package/composables/fields.ts +328 -0
- package/composables/index.ts +355 -20
- package/composables/styles.ts +23 -6
- package/configs/pwa.ts +63 -0
- package/layouts/clear.vue +21 -0
- package/layouts/default.vue +62 -3
- package/layouts/full.vue +21 -0
- package/locales/ru.json +558 -16
- package/nuxt.config.ts +11 -15
- package/package.json +36 -39
- package/pages/Token.vue +0 -13
- package/plugins/head.ts +26 -0
- package/plugins/vuetifyPlugin.ts +1 -5
- package/store/data.store.ts +1610 -321
- package/store/extractStore.ts +17 -0
- package/store/form.store.ts +13 -1
- package/store/member.store.ts +1 -1
- package/store/rules.ts +97 -3
- package/store/toast.ts +1 -1
- package/types/enum.ts +81 -0
- package/types/env.d.ts +2 -0
- package/types/form.ts +94 -0
- package/types/index.ts +419 -24
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
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 ?
|
|
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,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<Utils.VuetifyAnimations>,
|
|
12
|
+
default: 'expand',
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const vuetifyAnimations: { [key in Utils.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>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<vue-json-pretty
|
|
3
|
-
:data="
|
|
3
|
+
:data="data"
|
|
4
4
|
:show-icon="true"
|
|
5
5
|
:show-line="true"
|
|
6
6
|
:show-line-number="true"
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
<script lang="ts">
|
|
15
15
|
import VueJsonPretty from 'vue-json-pretty';
|
|
16
16
|
import 'vue-json-pretty/lib/styles.css';
|
|
17
|
-
import { JSONDataType } from 'vue-json-pretty/types/utils';
|
|
17
|
+
import { type JSONDataType } from 'vue-json-pretty/types/utils';
|
|
18
18
|
|
|
19
19
|
export default defineComponent({
|
|
20
20
|
components: { VueJsonPretty },
|
|
21
21
|
props: {
|
|
22
22
|
data: {
|
|
23
|
+
type: Object as PropType<JSONDataType>,
|
|
23
24
|
required: false,
|
|
24
25
|
},
|
|
25
26
|
},
|
|
@@ -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>
|
package/composables/axios.ts
CHANGED