hl-core 0.0.10-beta.7 → 0.0.10-beta.70

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 (49) hide show
  1. package/README.md +0 -2
  2. package/api/base.api.ts +425 -134
  3. package/api/interceptors.ts +162 -62
  4. package/components/Dialog/Dialog.vue +5 -1
  5. package/components/Dialog/DigitalDocumentsDialog.vue +129 -0
  6. package/components/Dialog/FamilyDialog.vue +15 -4
  7. package/components/Form/DigitalDocument.vue +52 -0
  8. package/components/Form/FormSource.vue +30 -0
  9. package/components/Form/ManagerAttachment.vue +85 -11
  10. package/components/Form/ProductConditionsBlock.vue +12 -6
  11. package/components/Input/Datepicker.vue +5 -0
  12. package/components/Input/FileInput.vue +1 -1
  13. package/components/Input/FormInput.vue +7 -0
  14. package/components/Input/OtpInput.vue +25 -0
  15. package/components/Input/RoundedInput.vue +2 -0
  16. package/components/Input/RoundedSelect.vue +2 -0
  17. package/components/Input/TextAreaField.vue +71 -0
  18. package/components/Input/TextHint.vue +13 -0
  19. package/components/Layout/SettingsPanel.vue +2 -1
  20. package/components/Menu/MenuNav.vue +2 -1
  21. package/components/Pages/Anketa.vue +207 -176
  22. package/components/Pages/Auth.vue +10 -3
  23. package/components/Pages/ContragentForm.vue +24 -18
  24. package/components/Pages/Documents.vue +488 -66
  25. package/components/Pages/MemberForm.vue +1009 -268
  26. package/components/Pages/ProductConditions.vue +1424 -273
  27. package/components/Panel/PanelHandler.vue +329 -126
  28. package/components/Utilities/Chip.vue +1 -1
  29. package/components/Utilities/JsonViewer.vue +1 -2
  30. package/composables/classes.ts +136 -20
  31. package/composables/constants.ts +168 -1
  32. package/composables/index.ts +467 -9
  33. package/composables/styles.ts +8 -24
  34. package/configs/i18n.ts +2 -0
  35. package/configs/pwa.ts +1 -7
  36. package/layouts/clear.vue +1 -1
  37. package/layouts/default.vue +2 -2
  38. package/layouts/full.vue +1 -1
  39. package/locales/kz.json +1239 -0
  40. package/locales/ru.json +133 -21
  41. package/nuxt.config.ts +8 -6
  42. package/package.json +14 -13
  43. package/plugins/head.ts +7 -1
  44. package/plugins/helperFunctionsPlugins.ts +1 -0
  45. package/store/data.store.ts +1080 -552
  46. package/store/member.store.ts +19 -8
  47. package/store/rules.ts +75 -8
  48. package/types/enum.ts +52 -2
  49. package/types/index.ts +143 -6
@@ -43,7 +43,7 @@ const openSettings = async () => {
43
43
 
44
44
  const onLink = async (item: MenuItem) => {
45
45
  if (dataStore.menu.onLink) await dataStore.menu.onLink(item);
46
- if (!dataStore.filters.disabled(item)) dataStore.menu.selectedItem = item;
46
+ if (!dataStore.filters.disabled(item) && !dataStore.isDirty) dataStore.menu.selectedItem = item;
47
47
  };
48
48
 
49
49
  const onBack = async (item: MenuItem) => {
@@ -52,7 +52,7 @@ const onBack = async (item: MenuItem) => {
52
52
 
53
53
  const onInit = async () => {
54
54
  const projectConfig = dataStore.projectConfig;
55
- if (!useEnv().isProduction && process.env.NODE_ENV === 'production' && $pwa && projectConfig === null) {
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 (!useEnv().isProduction && process.env.NODE_ENV === 'production' && $pwa && projectConfig === null) {
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);