hl-core 0.0.9-beta.2 → 0.0.9-beta.4

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 (46) hide show
  1. package/components/Button/Btn.vue +1 -1
  2. package/components/Complex/ContentBlock.vue +1 -1
  3. package/components/Complex/MessageBlock.vue +1 -1
  4. package/components/Complex/Page.vue +7 -1
  5. package/components/Complex/WhiteBlock.vue +7 -0
  6. package/components/Dialog/Dialog.vue +2 -2
  7. package/components/Dialog/FamilyDialog.vue +5 -5
  8. package/components/Form/FormBlock.vue +25 -27
  9. package/components/Form/FormSection.vue +2 -2
  10. package/components/Form/FormTextSection.vue +3 -3
  11. package/components/Form/FormToggle.vue +3 -3
  12. package/components/Form/ManagerAttachment.vue +5 -5
  13. package/components/Form/ProductConditionsBlock.vue +16 -16
  14. package/components/Input/EmptyFormField.vue +1 -1
  15. package/components/Layout/Header.vue +1 -1
  16. package/components/Layout/SettingsPanel.vue +5 -9
  17. package/components/List/ListEmpty.vue +1 -1
  18. package/components/Menu/MenuHover.vue +1 -1
  19. package/components/Menu/MenuNav.vue +1 -1
  20. package/components/Menu/MenuNavItem.vue +4 -4
  21. package/components/Pages/Anketa.vue +11 -16
  22. package/components/Pages/Auth.vue +9 -9
  23. package/components/Pages/ContragentForm.vue +426 -0
  24. package/components/Pages/Documents.vue +5 -5
  25. package/components/Pages/InvoiceInfo.vue +1 -1
  26. package/components/Pages/MemberForm.vue +14 -7
  27. package/components/Pages/ProductAgreement.vue +1 -3
  28. package/components/Pages/ProductConditions.vue +7 -12
  29. package/components/Panel/PanelHandler.vue +13 -13
  30. package/components/Panel/PanelSelectItem.vue +3 -3
  31. package/components/Utilities/IconBorder.vue +17 -0
  32. package/composables/classes.ts +5 -7
  33. package/composables/constants.ts +5 -0
  34. package/composables/index.ts +20 -4
  35. package/configs/i18n.ts +0 -2
  36. package/layouts/default.vue +2 -2
  37. package/layouts/full.vue +1 -1
  38. package/locales/ru.json +10 -1
  39. package/package.json +9 -20
  40. package/pages/500.vue +2 -2
  41. package/pages/Token.vue +1 -0
  42. package/plugins/helperFunctionsPlugins.ts +6 -4
  43. package/store/data.store.ts +46 -34
  44. package/types/index.ts +40 -26
  45. package/components/Button/BtnIcon.vue +0 -47
  46. package/locales/kz.json +0 -585
package/types/index.ts CHANGED
@@ -4,7 +4,21 @@ export {};
4
4
 
5
5
  declare global {
6
6
  type EnvModes = 'development' | 'test' | 'vercel' | 'production';
7
- type Projects = 'aml' | 'baiterek' | 'bolashak' | 'calculator' | 'compliance' | 'efo' | 'gons' | 'halykkazyna' | 'liferenta' | 'lifetrip' | 'lka' | 'mycar';
7
+ type Projects =
8
+ | 'aml'
9
+ | 'baiterek'
10
+ | 'bolashak'
11
+ | 'calculator'
12
+ | 'efo'
13
+ | 'gons'
14
+ | 'halykkazyna'
15
+ | 'lifebusiness'
16
+ | 'liferenta'
17
+ | 'lifetrip'
18
+ | 'lka'
19
+ | 'mycar'
20
+ | 'checkcontract'
21
+ | 'checkcontragent';
8
22
  type MemberKeys = keyof ReturnType<typeof useFormStore>;
9
23
  type MemberFormTypes = 'policyholderForm' | 'insuredForm' | 'beneficiaryForm' | 'beneficialOwnerForm' | 'policyholdersRepresentativeForm' | 'productConditionsForm';
10
24
  type SingleMember = 'policyholderForm' | 'policyholdersRepresentativeForm';
@@ -36,7 +50,7 @@ declare global {
36
50
  | 'time'
37
51
  | 'url'
38
52
  | 'week';
39
- type TaskListItem = {
53
+ interface TaskListItem {
40
54
  addRegNumber: string | number;
41
55
  applicationTaskId: string;
42
56
  dateCreated: string;
@@ -54,7 +68,7 @@ declare global {
54
68
  status: string;
55
69
  userId: string;
56
70
  userName: string;
57
- };
71
+ }
58
72
  type TaskHistory = {
59
73
  appointmentDate: string | null;
60
74
  comment: string | null;
@@ -229,8 +243,8 @@ declare global {
229
243
  premium: number | null;
230
244
  coverPeriod: number;
231
245
  payPeriod: number;
232
- indexRateId?: string | null;
233
- paymentPeriodId: string;
246
+ indexRateId?: string | number | null;
247
+ paymentPeriodId?: string;
234
248
  addCovers: AddCover[];
235
249
  };
236
250
 
@@ -367,14 +381,14 @@ declare global {
367
381
  contragentId: number;
368
382
  questId: string;
369
383
  questName: string;
370
- questAnswer: string | null;
384
+ questAnswer: string | number | null;
371
385
  questAnswerName: string | null;
372
386
  };
373
387
 
374
388
  type ContragentDocuments = {
375
389
  id: number;
376
390
  contragentId: number;
377
- type: string;
391
+ type?: string;
378
392
  typeName: string | null;
379
393
  serial: string | null;
380
394
  number: string | null;
@@ -392,23 +406,23 @@ declare global {
392
406
  type ContragentAddress = {
393
407
  id: number;
394
408
  contragentId: number;
395
- type: string;
396
- address: string;
397
- countryCode: string;
398
- countryName: string;
399
- stateCode: string;
400
- stateName: string;
401
- cityCode: string;
402
- cityName: string;
403
- regionCode: string | null;
404
- regionName: string | null;
405
- streetName: string;
406
- blockNumber: string;
407
- apartmentNumber: string;
408
- cityTypeId: number | null;
409
- cityTypeName: string;
410
- microRaion: string | null;
411
- kvartal: string | null;
409
+ type?: string;
410
+ address?: string;
411
+ countryCode?: string | number;
412
+ countryName?: string;
413
+ stateCode?: string | number;
414
+ stateName?: string;
415
+ cityCode?: string | number;
416
+ cityName?: string;
417
+ regionCode?: string | number |null;
418
+ regionName?: string | null;
419
+ streetName?: string;
420
+ blockNumber?: string;
421
+ apartmentNumber?: string;
422
+ cityTypeId?: number | null;
423
+ cityTypeName?: string;
424
+ microRaion?: string | null;
425
+ kvartal?: string | null;
412
426
  };
413
427
 
414
428
  type ContragentContacts = {
@@ -447,10 +461,10 @@ declare global {
447
461
  isSpokesman?: boolean;
448
462
  coverPeriod?: number | null;
449
463
  payPeriod?: number | null;
450
- indexRateId?: string;
464
+ indexRateId?: string | number;
451
465
  indexRateCode?: string;
452
466
  indexRateName?: string;
453
- paymentPeriodId?: string;
467
+ paymentPeriodId?: string | number;
454
468
  paymentPeriodName?: string;
455
469
  lifeMultiply?: number;
456
470
  lifeAdditive?: number;
@@ -1,47 +0,0 @@
1
- <template>
2
- <button
3
- type="button"
4
- class="transition-all"
5
- @click="$emit('clicked')"
6
- :disabled="disabled"
7
- :class="[
8
- disabled ? 'disabled' : '',
9
- classes,
10
- btn,
11
- $libStyles[`btnH${$capitalize(size)}` as keyof typeof $libStyles],
12
- ]"
13
- >
14
- <i class="mdi" :class="icon"></i>
15
- </button>
16
- </template>
17
-
18
- <script lang="ts">
19
- export default defineComponent({
20
- name: 'BaseBtnIcon',
21
- props: {
22
- icon: { type: String, default: 'mdi-arrow-right-variant' },
23
- size: {
24
- type: String,
25
- default: 'md',
26
- },
27
- classes: {
28
- type: String,
29
- default: '',
30
- },
31
- disabled: {
32
- type: Boolean,
33
- default: false,
34
- },
35
- btn: {
36
- type: String,
37
- default: new Styles().blueBtn,
38
- },
39
- },
40
- });
41
- </script>
42
-
43
- <style scoped>
44
- .disabled {
45
- opacity: 0.3;
46
- }
47
- </style>