hl-core 0.0.10-beta.6 → 0.0.10-beta.61
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/README.md +0 -2
- package/api/base.api.ts +361 -137
- package/api/interceptors.ts +3 -5
- package/components/Dialog/Dialog.vue +5 -1
- package/components/Dialog/FamilyDialog.vue +15 -4
- package/components/Form/DigitalDocument.vue +52 -0
- package/components/Form/FormSource.vue +30 -0
- package/components/Form/ManagerAttachment.vue +60 -11
- package/components/Form/ProductConditionsBlock.vue +12 -6
- package/components/Input/Datepicker.vue +5 -0
- package/components/Input/FileInput.vue +1 -1
- package/components/Input/FormInput.vue +7 -0
- package/components/Input/OtpInput.vue +25 -0
- package/components/Input/RoundedInput.vue +2 -0
- package/components/Input/RoundedSelect.vue +2 -0
- package/components/Input/TextAreaField.vue +71 -0
- package/components/Menu/MenuNav.vue +2 -1
- package/components/Pages/Anketa.vue +207 -176
- package/components/Pages/ContragentForm.vue +1 -1
- package/components/Pages/Documents.vue +486 -64
- package/components/Pages/MemberForm.vue +424 -182
- package/components/Pages/ProductConditions.vue +1180 -257
- package/components/Panel/PanelHandler.vue +319 -125
- package/components/Utilities/Chip.vue +1 -1
- package/components/Utilities/JsonViewer.vue +1 -2
- package/composables/classes.ts +125 -21
- package/composables/constants.ts +166 -1
- package/composables/index.ts +345 -9
- package/composables/styles.ts +8 -24
- package/configs/i18n.ts +2 -0
- package/configs/pwa.ts +1 -7
- package/layouts/clear.vue +1 -1
- package/layouts/default.vue +1 -1
- package/layouts/full.vue +1 -1
- package/locales/kz.json +1236 -0
- package/locales/ru.json +109 -20
- package/nuxt.config.ts +8 -6
- package/package.json +12 -12
- package/plugins/head.ts +7 -1
- package/plugins/helperFunctionsPlugins.ts +1 -0
- package/store/data.store.ts +948 -527
- package/store/member.store.ts +17 -6
- package/store/rules.ts +54 -3
- package/types/enum.ts +46 -2
- package/types/index.ts +126 -5
package/composables/styles.ts
CHANGED
|
@@ -15,24 +15,13 @@ export class Styles {
|
|
|
15
15
|
blueTextLight: string = 'text-[#F3F6FC]';
|
|
16
16
|
|
|
17
17
|
// Green
|
|
18
|
-
greenBg: string =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
: 'bg-[#009C73]';
|
|
22
|
-
greenBgHover: string =
|
|
23
|
-
import.meta.env.VITE_PRODUCT === 'auletti' || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' || import.meta.env.VITE_PRODUCT === 'lka-auletti'
|
|
24
|
-
? 'bg-[#C19B5F]'
|
|
25
|
-
: 'hover:bg-[#00a277]';
|
|
26
|
-
greenBgLight: string =
|
|
27
|
-
import.meta.env.VITE_PRODUCT === 'auletti' || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' || import.meta.env.VITE_PRODUCT === 'lka-auletti'
|
|
28
|
-
? 'bg-[#e8d2af]'
|
|
29
|
-
: 'bg-[#EAF6EF]';
|
|
18
|
+
greenBg: string = String(import.meta.env.VITE_PRODUCT).includes('auletti') || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'bg-[#DEBE8C]' : 'bg-[#009C73]';
|
|
19
|
+
greenBgHover: string = String(import.meta.env.VITE_PRODUCT).includes('auletti') || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'bg-[#C19B5F]' : 'hover:bg-[#00a277]';
|
|
20
|
+
greenBgLight: string = String(import.meta.env.VITE_PRODUCT).includes('auletti') || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'bg-[#e8d2af]' : 'bg-[#EAF6EF]';
|
|
30
21
|
greenText: string = '!text-[#009C73]';
|
|
31
22
|
greenTextHover: string = 'hover:text-[#009C73]';
|
|
32
23
|
greenBgLightHover: string =
|
|
33
|
-
import.meta.env.VITE_PRODUCT
|
|
34
|
-
? 'hover:bg-[#efdfc6]'
|
|
35
|
-
: 'hover:bg-[#dbf0e4]';
|
|
24
|
+
String(import.meta.env.VITE_PRODUCT).includes('auletti') || import.meta.env.VITE_PARENT_PRODUCT === 'auletti' ? 'hover:bg-[#efdfc6]' : 'hover:bg-[#dbf0e4]';
|
|
36
25
|
|
|
37
26
|
// Yellow
|
|
38
27
|
yellowText: string = '!text-[#FAB31C]';
|
|
@@ -65,7 +54,7 @@ export class Styles {
|
|
|
65
54
|
blueBorder: string = 'border-[1px] border-[#A0B3D8]';
|
|
66
55
|
blueLightBorder: string = 'border-[1px] border-[#F3F6FC]';
|
|
67
56
|
greenBorder: string =
|
|
68
|
-
import.meta.env.VITE_PRODUCT
|
|
57
|
+
String(import.meta.env.VITE_PRODUCT).includes('auletti') || import.meta.env.VITE_PARENT_PRODUCT === 'auletti'
|
|
69
58
|
? 'border-[1px] border-[#DEBE8C]'
|
|
70
59
|
: 'border-[1px] border-[#009C73]';
|
|
71
60
|
redBorder: string = 'border-[1px] border-[#FD2D39]';
|
|
@@ -91,9 +80,9 @@ export class Styles {
|
|
|
91
80
|
greenLightBtn: string;
|
|
92
81
|
|
|
93
82
|
// Complex
|
|
94
|
-
flexColNav: string;
|
|
95
|
-
emptyBlockCol: string;
|
|
96
|
-
scrollPage: string;
|
|
83
|
+
flexColNav: string = 'flex flex-col gap-[10px] px-2 pt-[14px]';
|
|
84
|
+
emptyBlockCol: string = 'w-[60px] sm:w-[100px] h-[30%] rounded-[8px] bg-[#f5f5f5]';
|
|
85
|
+
scrollPage: string = 'max-h-[85svh] overflow-y-scroll';
|
|
97
86
|
flexCenter: string = 'flex items-center justify-center';
|
|
98
87
|
|
|
99
88
|
// Muted or disabled
|
|
@@ -111,11 +100,6 @@ export class Styles {
|
|
|
111
100
|
this.whiteBorderBtn = ` ${this.blackText} ${this.textTitle} ${this.rounded} w-full ${this.blueLightBgHover} border-[#A0B3D8] border-[1px]`;
|
|
112
101
|
this.blueLightBtn = `${this.blueBgLight} ${this.greyTextLight} ${this.textTitle} ${this.rounded} w-full ${this.blueBgLightHover}`;
|
|
113
102
|
this.greenLightBtn = `${this.greenBgLight} ${this.greenText} ${this.textTitle} ${this.rounded} w-full ${this.greenBgLightHover}`;
|
|
114
|
-
|
|
115
|
-
// Complex
|
|
116
|
-
this.flexColNav = 'flex flex-col gap-[10px] px-2 pt-[14px]';
|
|
117
|
-
this.emptyBlockCol = 'w-[60px] sm:w-[100px] h-[30%] rounded-[8px] bg-[#f5f5f5]';
|
|
118
|
-
this.scrollPage = 'max-h-[85svh] overflow-y-scroll';
|
|
119
103
|
}
|
|
120
104
|
}
|
|
121
105
|
|
package/configs/i18n.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createI18n } from 'vue-i18n';
|
|
2
2
|
import ru from '../locales/ru.json';
|
|
3
|
+
import kz from '../locales/kz.json';
|
|
3
4
|
|
|
4
5
|
const instance = createI18n({
|
|
5
6
|
legacy: false,
|
|
@@ -7,6 +8,7 @@ const instance = createI18n({
|
|
|
7
8
|
locale: 'ru',
|
|
8
9
|
messages: {
|
|
9
10
|
ru,
|
|
11
|
+
kz,
|
|
10
12
|
},
|
|
11
13
|
});
|
|
12
14
|
|
package/configs/pwa.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ModuleOptions } from '@vite-pwa/nuxt';
|
|
|
3
3
|
export const pwaBaseConfig: Partial<ModuleOptions> = {
|
|
4
4
|
registerType: 'autoUpdate',
|
|
5
5
|
workbox: {
|
|
6
|
-
globPatterns: ['**/*.{js,css,html,txt,png,ico,svg}'],
|
|
6
|
+
globPatterns: ['**/*.{js,css,html,txt,png,ico,svg,json}'],
|
|
7
7
|
navigateFallbackDenylist: [/^\/api\//],
|
|
8
8
|
navigateFallback: '/',
|
|
9
9
|
cleanupOutdatedCaches: true,
|
|
@@ -54,10 +54,4 @@ export const pwaBaseConfig: Partial<ModuleOptions> = {
|
|
|
54
54
|
},
|
|
55
55
|
registerWebManifestInRouteRules: true,
|
|
56
56
|
writePlugin: true,
|
|
57
|
-
devOptions: {
|
|
58
|
-
enabled: true,
|
|
59
|
-
suppressWarnings: true,
|
|
60
|
-
navigateFallback: '/',
|
|
61
|
-
type: 'module',
|
|
62
|
-
},
|
|
63
57
|
};
|
package/layouts/clear.vue
CHANGED
|
@@ -8,7 +8,7 @@ const { $pwa } = useNuxtApp();
|
|
|
8
8
|
|
|
9
9
|
const onInit = async () => {
|
|
10
10
|
const projectConfig = dataStore.projectConfig;
|
|
11
|
-
if (
|
|
11
|
+
if (process.env.NODE_ENV === 'production' && $pwa && projectConfig === null) {
|
|
12
12
|
const hasConfig = await dataStore.getProjectConfig();
|
|
13
13
|
if (hasConfig === true) {
|
|
14
14
|
const commitVersion = String(import.meta.env.VITE_COMMIT_VERSION);
|
package/layouts/default.vue
CHANGED
|
@@ -52,7 +52,7 @@ const onBack = async (item: MenuItem) => {
|
|
|
52
52
|
|
|
53
53
|
const onInit = async () => {
|
|
54
54
|
const projectConfig = dataStore.projectConfig;
|
|
55
|
-
if (
|
|
55
|
+
if (process.env.NODE_ENV === 'production' && $pwa && projectConfig === null) {
|
|
56
56
|
const hasConfig = await dataStore.getProjectConfig();
|
|
57
57
|
if (hasConfig === true) {
|
|
58
58
|
const commitVersion = String(import.meta.env.VITE_COMMIT_VERSION);
|
package/layouts/full.vue
CHANGED
|
@@ -11,7 +11,7 @@ const { $pwa } = useNuxtApp();
|
|
|
11
11
|
|
|
12
12
|
const onInit = async () => {
|
|
13
13
|
const projectConfig = dataStore.projectConfig;
|
|
14
|
-
if (
|
|
14
|
+
if (process.env.NODE_ENV === 'production' && $pwa && projectConfig === null) {
|
|
15
15
|
const hasConfig = await dataStore.getProjectConfig();
|
|
16
16
|
if (hasConfig === true) {
|
|
17
17
|
const commitVersion = String(import.meta.env.VITE_COMMIT_VERSION);
|