hl-core 0.0.7 → 0.0.8-beta.10
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/.prettierrc +2 -1
- package/api/index.ts +562 -0
- package/api/interceptors.ts +38 -0
- package/components/Button/Btn.vue +57 -0
- package/components/Button/BtnIcon.vue +47 -0
- package/components/Button/ScrollButtons.vue +6 -0
- package/components/Button/SortArrow.vue +21 -0
- package/components/Complex/Content.vue +5 -0
- package/components/Complex/ContentBlock.vue +5 -0
- package/components/Complex/Page.vue +43 -0
- package/components/Dialog/Dialog.vue +76 -0
- package/components/Dialog/FamilyDialog.vue +39 -0
- package/components/Form/FormBlock.vue +139 -0
- package/components/Form/FormSection.vue +18 -0
- package/components/Form/FormTextSection.vue +20 -0
- package/components/Form/FormToggle.vue +52 -0
- package/components/Form/ManagerAttachment.vue +196 -0
- package/components/Form/ProductConditionsBlock.vue +72 -0
- package/components/Input/Datepicker.vue +41 -0
- package/components/Input/EmptyFormField.vue +5 -0
- package/components/Input/FileInput.vue +71 -0
- package/components/Input/FormInput.vue +183 -0
- package/components/Input/PanelInput.vue +133 -0
- package/components/Input/RoundedInput.vue +143 -0
- package/components/Layout/Drawer.vue +45 -0
- package/components/Layout/Header.vue +48 -0
- package/components/Layout/Loader.vue +35 -0
- package/components/Layout/SettingsPanel.vue +48 -0
- package/components/List/ListEmpty.vue +22 -0
- package/components/Menu/MenuNav.vue +108 -0
- package/components/Menu/MenuNavItem.vue +37 -0
- package/components/Pages/Anketa.vue +341 -0
- package/components/Pages/Auth.vue +91 -0
- package/components/Pages/Documents.vue +108 -0
- package/components/Pages/MemberForm.vue +1229 -0
- package/components/Pages/ProductAgreement.vue +18 -0
- package/components/Pages/ProductConditions.vue +659 -0
- package/components/Panel/PanelHandler.vue +233 -0
- package/components/Panel/PanelItem.vue +5 -0
- package/components/Panel/PanelSelectItem.vue +20 -0
- package/components/Transitions/FadeTransition.vue +5 -0
- package/components/Transitions/SlideTransition.vue +5 -0
- package/composables/axios.ts +11 -0
- package/composables/classes.ts +1179 -0
- package/composables/constants.ts +71 -0
- package/composables/index.ts +168 -2
- package/composables/styles.ts +48 -8
- package/configs/i18n.ts +19 -0
- package/layouts/clear.vue +3 -0
- package/layouts/default.vue +75 -0
- package/layouts/full.vue +6 -0
- package/locales/en.json +403 -0
- package/locales/kz.json +403 -0
- package/locales/ru.json +403 -0
- package/nuxt.config.ts +39 -5
- package/package.json +28 -10
- package/pages/500.vue +85 -0
- package/plugins/helperFunctionsPlugins.ts +19 -2
- package/plugins/storePlugin.ts +5 -7
- package/plugins/vuetifyPlugin.ts +15 -0
- package/store/data.store.js +2291 -8
- package/store/form.store.ts +8 -0
- package/store/member.store.ts +381 -0
- package/store/rules.js +52 -39
- package/tailwind.config.js +10 -0
- package/types/index.ts +317 -0
- package/app.vue +0 -3
- package/components/Button/GreenBtn.vue +0 -33
- package/store/app.store.js +0 -12
- package/store/messages.ts +0 -310
|
@@ -1,9 +1,26 @@
|
|
|
1
|
-
import { capitalize } from '../composables';
|
|
1
|
+
import { capitalize, getFullNameShorted, reformatIin, Masks } from '../composables';
|
|
2
|
+
import { constants } from '../composables/constants';
|
|
3
|
+
import { Styles } from '../composables/styles';
|
|
4
|
+
import VueDatePicker from '@vuepic/vue-datepicker';
|
|
5
|
+
import '@vuepic/vue-datepicker/dist/main.css';
|
|
6
|
+
import Vidle from 'v-idle-3';
|
|
7
|
+
import Maska from 'maska';
|
|
8
|
+
import i18n from '@/configs/i18n';
|
|
9
|
+
|
|
10
|
+
export default defineNuxtPlugin(nuxtApp => {
|
|
11
|
+
nuxtApp.vueApp.use(Vidle, {});
|
|
12
|
+
nuxtApp.vueApp.use(Maska);
|
|
13
|
+
nuxtApp.vueApp.use(i18n);
|
|
14
|
+
nuxtApp.vueApp.component('VueDatePicker', VueDatePicker);
|
|
2
15
|
|
|
3
|
-
export default defineNuxtPlugin(() => {
|
|
4
16
|
return {
|
|
5
17
|
provide: {
|
|
6
18
|
capitalize: capitalize,
|
|
19
|
+
getFullNameShorted: getFullNameShorted,
|
|
20
|
+
libStyles: new Styles(),
|
|
21
|
+
maska: new Masks(),
|
|
22
|
+
reformatIin: reformatIin,
|
|
23
|
+
constants: constants,
|
|
7
24
|
},
|
|
8
25
|
};
|
|
9
26
|
});
|
package/plugins/storePlugin.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAppStore } from '../store/app.store';
|
|
2
1
|
import { useDataStore } from '../store/data.store';
|
|
3
|
-
import { Styles } from '../composables/styles';
|
|
4
2
|
|
|
5
3
|
export default defineNuxtPlugin(nuxtApp => {
|
|
4
|
+
const dataStore = useDataStore();
|
|
5
|
+
|
|
6
6
|
nuxtApp.vueApp.use(useDataStore().toast.default, {
|
|
7
7
|
transition: 'Vue-Toastification__fade',
|
|
8
8
|
maxToasts: 5,
|
|
@@ -11,11 +11,9 @@ export default defineNuxtPlugin(nuxtApp => {
|
|
|
11
11
|
|
|
12
12
|
return {
|
|
13
13
|
provide: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
t: useDataStore().t,
|
|
18
|
-
toast: useDataStore().showToaster,
|
|
14
|
+
dataStore: dataStore,
|
|
15
|
+
rules: dataStore.rules,
|
|
16
|
+
toast: dataStore.showToaster,
|
|
19
17
|
},
|
|
20
18
|
};
|
|
21
19
|
});
|
package/plugins/vuetifyPlugin.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '@mdi/font/css/materialdesignicons.css';
|
|
2
|
+
import 'animate.css';
|
|
2
3
|
import 'vuetify/styles';
|
|
3
4
|
import { createVuetify } from 'vuetify';
|
|
4
5
|
import * as components from 'vuetify/components';
|
|
@@ -9,6 +10,20 @@ export default defineNuxtPlugin(nuxtApp => {
|
|
|
9
10
|
ssr: false,
|
|
10
11
|
components,
|
|
11
12
|
directives,
|
|
13
|
+
defaults: {
|
|
14
|
+
VForm: {
|
|
15
|
+
validateOn: 'lazy',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
theme: {
|
|
19
|
+
themes: {
|
|
20
|
+
light: {
|
|
21
|
+
colors: {
|
|
22
|
+
error: '#FF5449',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
12
27
|
});
|
|
13
28
|
|
|
14
29
|
nuxtApp.vueApp.use(vuetify);
|