hl-core 0.0.7-beta.13 → 0.0.7-beta.15

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.
@@ -1,22 +1,31 @@
1
1
  <template>
2
2
  <v-text-field
3
- class="rounded-input"
3
+ class="form-input"
4
4
  :model-value="modelValue"
5
5
  v-maska="maska"
6
6
  :rules="rules"
7
7
  :loading="loading"
8
8
  :placeholder="placeholder"
9
+ :label="label"
10
+ :messages="messages"
9
11
  :type="type"
10
12
  :variant="variant"
11
13
  :clear-icon="clearIcon"
12
14
  :color="color"
13
15
  :hint="hint"
14
- :clearable="clearable"
16
+ :clearable="readonly ? false : clearable"
15
17
  :disabled="disabled"
16
- :prepend-inner-icon="prependIcon ? prependIcon : ''"
18
+ :readonly="readonly"
19
+ :prepend-icon="prependIcon ? prependIcon : ''"
17
20
  :append-icon="appendIcon ? appendIcon : ''"
21
+ :prepend-inner-icon="prependInnerIcon ? prependInnerIcon : ''"
22
+ :append-inner-icon="appendInnerIcon ? appendInnerIcon : ''"
18
23
  :bg-color="bgColor ? bgColor : ''"
19
24
  @keyup.enter.prevent="submitted"
25
+ @click:append="!readonly && $emit('append-out')"
26
+ @click:prepend="!readonly && $emit('prepend-out')"
27
+ @click:append-inner="!readonly && $emit('append')"
28
+ @click:prepend-inner="!readonly && $emit('prepend')"
20
29
  @update:modelValue="$emit('update:modelValue', $event)"
21
30
  >
22
31
  <template v-if="loading" #loader>
@@ -32,8 +41,7 @@ export default defineComponent({
32
41
  name: 'BaseRoundedInput',
33
42
  props: {
34
43
  modelValue: {
35
- type: String,
36
- default: '',
44
+ required: false,
37
45
  },
38
46
  loading: {
39
47
  type: Boolean,
@@ -47,9 +55,20 @@ export default defineComponent({
47
55
  type: Boolean,
48
56
  default: false,
49
57
  },
58
+ readonly: {
59
+ type: Boolean,
60
+ default: false,
61
+ },
50
62
  placeholder: {
51
63
  type: String,
52
- default: 'Поле',
64
+ default: '',
65
+ },
66
+ label: {
67
+ type: String,
68
+ default: '',
69
+ },
70
+ messages: {
71
+ type: [String, Array<string>],
53
72
  },
54
73
  maska: {
55
74
  type: String,
@@ -85,11 +104,17 @@ export default defineComponent({
85
104
  appendIcon: {
86
105
  type: String,
87
106
  },
107
+ prependInnerIcon: {
108
+ type: String,
109
+ },
110
+ appendInnerIcon: {
111
+ type: String,
112
+ },
88
113
  bgColor: {
89
114
  type: String,
90
115
  },
91
116
  },
92
- emits: ['update:modelValue', 'submitted'],
117
+ emits: ['update:modelValue', 'submitted', 'prepend', 'append', 'prepend-out', 'append-out'],
93
118
 
94
119
  setup(props, { emit }) {
95
120
  const submitted = (event: any) => {
@@ -104,19 +129,44 @@ export default defineComponent({
104
129
  </script>
105
130
 
106
131
  <style>
107
- .rounded-input input:focus {
132
+ .form-input input:focus {
108
133
  border: none !important;
109
134
  outline: none !important;
110
135
  }
111
-
112
- /* .rounded-input .v-field {
113
- border-radius: 8px;
114
- border: 1px solid #dadada;
136
+ .form-input input {
137
+ padding-top: 30px;
138
+ }
139
+ .form-input .v-field {
115
140
  box-shadow: none;
116
141
  font-size: 14px;
117
- } */
118
-
119
- .rounded-input .v-field--error {
142
+ }
143
+ .form-input .v-label.v-field-label {
144
+ top: 20px;
145
+ }
146
+ .form-input .v-field__append-inner {
147
+ padding-top: 18px;
148
+ padding-right: 6px;
149
+ }
150
+ .form-input .v-field__append-inner i {
151
+ color: #a0b3d8 !important;
152
+ margin-left: 10px;
153
+ margin-right: 4px;
154
+ }
155
+ .form-input {
156
+ border-bottom: 1px solid #f3f6fc;
157
+ }
158
+ .form-input.v-input--error {
159
+ border-color: #ff5449;
160
+ }
161
+ .form-input.v-input--error .v-input__details {
162
+ display: block;
163
+ }
164
+ .form-input .v-input__details {
165
+ display: none;
166
+ background-color: white;
167
+ padding-top: 0 !important;
168
+ }
169
+ .form-input .v-field--error {
120
170
  border-color: #ff5449;
121
171
  }
122
172
  </style>
@@ -0,0 +1,132 @@
1
+ <template>
2
+ <v-text-field
3
+ class="form-input"
4
+ :model-value="modelValue"
5
+ v-maska="maska"
6
+ :rules="rules"
7
+ :loading="loading"
8
+ :placeholder="placeholder"
9
+ :label="label"
10
+ :messages="messages"
11
+ :type="type"
12
+ :variant="variant"
13
+ :clear-icon="clearIcon"
14
+ :color="color"
15
+ :hint="hint"
16
+ :clearable="clearable"
17
+ :disabled="disabled"
18
+ :readonly="true"
19
+ :prepend-icon="prependIcon ? prependIcon : ''"
20
+ :append-icon="appendIcon ? appendIcon : ''"
21
+ :prepend-inner-icon="prependInnerIcon ? prependInnerIcon : ''"
22
+ :append-inner-icon="appendInnerIcon ? appendInnerIcon : ''"
23
+ :bg-color="bgColor ? bgColor : ''"
24
+ @keyup.enter.prevent="submitted"
25
+ @click:clear="(readonly ? false : clearable) && $emit('update:modelValue', new Value())"
26
+ @click:append="!readonly && $emit('append-out')"
27
+ @click:prepend="!readonly && $emit('prepend-out')"
28
+ @click:append-inner="!readonly && $emit('append')"
29
+ @click:prepend-inner="!readonly && $emit('prepend')"
30
+ @update:modelValue="$emit('update:modelValue', $event)"
31
+ >
32
+ <template v-if="loading" #loader>
33
+ <v-progress-linear :active="loading" :color="color" absolute height="1" indeterminate></v-progress-linear>
34
+ </template>
35
+ </v-text-field>
36
+ </template>
37
+
38
+ <script lang="ts">
39
+ import { InputTypes } from '@/composables/models';
40
+ import { Value } from '@/composables/classes';
41
+
42
+ export default defineComponent({
43
+ name: 'BaseRoundedInput',
44
+ props: {
45
+ modelValue: {
46
+ required: false,
47
+ },
48
+ loading: {
49
+ type: Boolean,
50
+ default: false,
51
+ },
52
+ clearable: {
53
+ type: Boolean,
54
+ default: true,
55
+ },
56
+ disabled: {
57
+ type: Boolean,
58
+ default: false,
59
+ },
60
+ readonly: {
61
+ type: Boolean,
62
+ default: false,
63
+ },
64
+ placeholder: {
65
+ type: String,
66
+ default: '',
67
+ },
68
+ label: {
69
+ type: String,
70
+ default: '',
71
+ },
72
+ messages: {
73
+ type: [String, Array<string>],
74
+ },
75
+ maska: {
76
+ type: String,
77
+ default: '',
78
+ },
79
+ hint: {
80
+ type: String,
81
+ default: '',
82
+ },
83
+ rules: {
84
+ type: Array<any>,
85
+ default: [],
86
+ },
87
+ type: {
88
+ type: String as PropType<InputTypes>,
89
+ default: 'text',
90
+ },
91
+ variant: {
92
+ type: String as PropType<'solo' | 'filled' | 'outlined' | 'plain' | 'underlined'>,
93
+ default: 'solo',
94
+ },
95
+ color: {
96
+ type: String,
97
+ default: '#009c73',
98
+ },
99
+ clearIcon: {
100
+ type: String,
101
+ default: 'mdi-close',
102
+ },
103
+ prependIcon: {
104
+ type: String,
105
+ },
106
+ appendIcon: {
107
+ type: String,
108
+ },
109
+ prependInnerIcon: {
110
+ type: String,
111
+ },
112
+ appendInnerIcon: {
113
+ type: String,
114
+ },
115
+ bgColor: {
116
+ type: String,
117
+ },
118
+ },
119
+ emits: ['update:modelValue', 'submitted', 'prepend', 'append', 'prepend-out', 'append-out', 'clear'],
120
+
121
+ setup(props, { emit }) {
122
+ const submitted = (event: any) => {
123
+ emit('submitted', event);
124
+ };
125
+
126
+ return {
127
+ submitted,
128
+ Value,
129
+ };
130
+ },
131
+ });
132
+ </script>
@@ -6,17 +6,25 @@
6
6
  :rules="rules"
7
7
  :loading="loading"
8
8
  :placeholder="placeholder"
9
+ :label="label"
9
10
  :type="type"
10
11
  :variant="variant"
11
12
  :clear-icon="clearIcon"
12
13
  :color="color"
13
14
  :hint="hint"
14
- :clearable="clearable"
15
+ :clearable="readonly ? false : clearable"
15
16
  :disabled="disabled"
16
- :prepend-inner-icon="prependIcon ? prependIcon : ''"
17
+ :readonly="readonly"
18
+ :prepend-icon="prependIcon ? prependIcon : ''"
17
19
  :append-icon="appendIcon ? appendIcon : ''"
20
+ :prepend-inner-icon="prependInnerIcon ? prependInnerIcon : ''"
21
+ :append-inner-icon="appendInnerIcon ? appendInnerIcon : ''"
18
22
  :bg-color="bgColor ? bgColor : ''"
19
23
  @keyup.enter.prevent="submitted"
24
+ @click:append="!readonly && $emit('append-out')"
25
+ @click:prepend="!readonly && $emit('prepend-out')"
26
+ @click:append-inner="!readonly && $emit('append')"
27
+ @click:prepend-inner="!readonly && $emit('prepend')"
20
28
  @update:modelValue="$emit('update:modelValue', $event)"
21
29
  >
22
30
  <template v-if="loading" #loader>
@@ -29,11 +37,11 @@
29
37
  import { InputTypes } from '@/composables/models';
30
38
 
31
39
  export default defineComponent({
40
+ extends: {},
32
41
  name: 'BaseRoundedInput',
33
42
  props: {
34
43
  modelValue: {
35
- type: String,
36
- default: '',
44
+ required: false,
37
45
  },
38
46
  loading: {
39
47
  type: Boolean,
@@ -47,9 +55,17 @@ export default defineComponent({
47
55
  type: Boolean,
48
56
  default: false,
49
57
  },
58
+ readonly: {
59
+ type: Boolean,
60
+ default: false,
61
+ },
50
62
  placeholder: {
51
63
  type: String,
52
- default: 'Поле',
64
+ default: '',
65
+ },
66
+ label: {
67
+ type: String,
68
+ default: '',
53
69
  },
54
70
  maska: {
55
71
  type: String,
@@ -85,11 +101,17 @@ export default defineComponent({
85
101
  appendIcon: {
86
102
  type: String,
87
103
  },
104
+ prependInnerIcon: {
105
+ type: String,
106
+ },
107
+ appendInnerIcon: {
108
+ type: String,
109
+ },
88
110
  bgColor: {
89
111
  type: String,
90
112
  },
91
113
  },
92
- emits: ['update:modelValue', 'submitted'],
114
+ emits: ['update:modelValue', 'submitted', 'prepend', 'append', 'prepend-out', 'append-out'],
93
115
 
94
116
  setup(props, { emit }) {
95
117
  const submitted = (event: any) => {
@@ -108,14 +130,18 @@ export default defineComponent({
108
130
  border: none !important;
109
131
  outline: none !important;
110
132
  }
111
-
133
+ .rounded-input input {
134
+ padding-top: 30px;
135
+ }
136
+ .rounded-input .v-label.v-field-label {
137
+ top: 20px;
138
+ }
112
139
  .rounded-input .v-field {
113
140
  border-radius: 8px;
114
141
  border: 1px solid #dadada;
115
142
  box-shadow: none;
116
143
  font-size: 14px;
117
144
  }
118
-
119
145
  .rounded-input .v-field--error {
120
146
  border-color: #ff5449;
121
147
  }
@@ -59,13 +59,7 @@ export class Value {
59
59
  nameKz: string | number | null;
60
60
  ids: string | number | null;
61
61
 
62
- constructor(
63
- id: string | number | null = null,
64
- nameRu: string | number | null = null,
65
- nameKz: string | number | null = null,
66
- code: string | number | null = null,
67
- ids: string | number | null = null,
68
- ) {
62
+ constructor(id: string | number | null = null, nameRu: string | null = null, nameKz: string | null = null, code: string | null = null, ids: string | null = null) {
69
63
  this.id = id;
70
64
  this.code = code;
71
65
  this.nameRu = nameRu;
@@ -159,7 +153,7 @@ export const InitialColumns = () => {
159
153
  export class User {
160
154
  login: string | null;
161
155
  password: string | null;
162
- roles: string[] | null;
156
+ roles: string[];
163
157
  id: string | null;
164
158
  fullName: string | null;
165
159
 
@@ -760,6 +754,9 @@ export class ProductConditions {
760
754
  }
761
755
 
762
756
  export class DataStoreClass {
757
+ controls: {
758
+ onAuth: boolean;
759
+ };
763
760
  hasLayoutMargins: boolean;
764
761
  readonly product: string | null;
765
762
  showNav: boolean;
@@ -852,6 +849,9 @@ export class DataStoreClass {
852
849
  };
853
850
  riskGroup: any[];
854
851
  constructor() {
852
+ this.controls = {
853
+ onAuth: false,
854
+ };
855
855
  this.hasLayoutMargins = true;
856
856
  this.processIndexRate = [];
857
857
  this.processPaymentPeriod = [];
@@ -983,33 +983,34 @@ export class FormStoreClass {
983
983
  SaleChanellPolicy: Value;
984
984
  AgentData: {
985
985
  agentId: null;
986
- manId: 0;
987
- fullName: '';
986
+ manId: number;
987
+ fullName: string;
988
988
  officeId: null;
989
989
  officeCode: null;
990
- saleChannel: '';
991
- managerName: '';
990
+ saleChannel: string;
991
+ managerName: string;
992
992
  };
993
993
  RegionPolicy: Value;
994
994
  ManagerPolicy: Value;
995
995
  isDisabled: {
996
- policyholderForm: true;
997
- beneficiaryForm: true;
998
- beneficialOwnerForm: true;
999
- insuredForm: true;
1000
- policyholdersRepresentativeForm: true;
1001
- productConditionsForm: true;
1002
- recalculationForm: true;
1003
- surveyByHealthBase: true;
1004
- surveyByCriticalBase: true;
1005
- surveyByHealthBasePolicyholder: true;
1006
- surveyByCriticalBasePolicyholder: true;
1007
- insuranceDocument: true;
996
+ policyholderForm: boolean;
997
+ beneficiaryForm: boolean;
998
+ beneficialOwnerForm: boolean;
999
+ insuredForm: boolean;
1000
+ policyholdersRepresentativeForm: boolean;
1001
+ productConditionsForm: boolean;
1002
+ recalculationForm: boolean;
1003
+ surveyByHealthBase: boolean;
1004
+ surveyByCriticalBase: boolean;
1005
+ surveyByHealthBasePolicyholder: boolean;
1006
+ surveyByCriticalBasePolicyholder: boolean;
1007
+ insuranceDocument: boolean;
1008
1008
  };
1009
1009
  isPolicyholderInsured: boolean = false;
1010
1010
  isPolicyholderBeneficiary: boolean = false;
1011
1011
  isActOwnBehalf: boolean = true;
1012
1012
  hasRepresentative: boolean = false;
1013
+ isPolicyholderIPDL: boolean = false;
1013
1014
  applicationData: {
1014
1015
  processInstanceId: number | string;
1015
1016
  statusCode?: string | null;
@@ -1018,6 +1019,7 @@ export class FormStoreClass {
1018
1019
  beneficiaryApp?: any;
1019
1020
  beneficialOwnerApp?: any;
1020
1021
  spokesmanApp?: any;
1022
+ isTask?: boolean | null;
1021
1023
  };
1022
1024
  policyholderForm: PolicyholderForm;
1023
1025
  policyholderFormKey: string;
@@ -28,6 +28,8 @@ export const constants = Object.freeze({
28
28
  upk: 'UPK',
29
29
  financeCenter: 'FinanceCenter',
30
30
  supervisor: 'Supervisor',
31
+ support: 'Support',
32
+ managerHalykBank: 'ManagerHalykBank',
31
33
  },
32
34
  actions: {
33
35
  accept: 'accept',
package/layouts/clear.vue CHANGED
@@ -1,32 +1,3 @@
1
1
  <template>
2
2
  <div class="h-full w-full"><slot></slot></div>
3
3
  </template>
4
-
5
- <style>
6
- .mainpage,
7
- span,
8
- header,
9
- *[class='text-[14px]'],
10
- .text-\[14px\] {
11
- font-size: v-bind('$dataStore.fontSize + "px"') !important;
12
- /* line-height: v-bind('dataStore.fontSize*1.5 + "px"') !important; */
13
- }
14
-
15
- *[class='text-[16px]'],
16
- .text-\[16px\],
17
- label .v-label .v-field-label,
18
- .v-field__input,
19
- .v-label,
20
- .v-field,
21
- .v-input {
22
- font-size: v-bind('$dataStore.fontSize+2 + "px"') !important;
23
- /* line-height: v-bind('dataStore.fontSize*2 + "px"') !important; */
24
- }
25
-
26
- .v-input__details,
27
- .v-messages__message {
28
- font-size: v-bind('$dataStore.fontSize*0.8 + "px"') !important;
29
- /* line-height: v-bind('dataStore.fontSize*1 + "px"') !important; */
30
- padding-bottom: 3px;
31
- }
32
- </style>
@@ -40,6 +40,7 @@ const openSettings = async () => {
40
40
  span,
41
41
  header,
42
42
  *[class='text-[14px]'],
43
+ .v-label,
43
44
  .text-\[14px\] {
44
45
  font-size: v-bind('dataStore.fontSize + "px"') !important;
45
46
  /* line-height: v-bind('dataStore.fontSize*1.5 + "px"') !important; */
@@ -49,7 +50,6 @@ header,
49
50
  .text-\[16px\],
50
51
  label .v-label .v-field-label,
51
52
  .v-field__input,
52
- .v-label,
53
53
  .v-field,
54
54
  .v-input {
55
55
  font-size: v-bind('dataStore.fontSize+2 + "px"') !important;
package/layouts/full.vue CHANGED
@@ -4,32 +4,3 @@
4
4
  <slot></slot>
5
5
  </div>
6
6
  </template>
7
-
8
- <style>
9
- .mainpage,
10
- span,
11
- header,
12
- *[class='text-[14px]'],
13
- .text-\[14px\] {
14
- font-size: v-bind('$dataStore.fontSize + "px"') !important;
15
- /* line-height: v-bind('dataStore.fontSize*1.5 + "px"') !important; */
16
- }
17
-
18
- *[class='text-[16px]'],
19
- .text-\[16px\],
20
- label .v-label .v-field-label,
21
- .v-field__input,
22
- .v-label,
23
- .v-field,
24
- .v-input {
25
- font-size: v-bind('$dataStore.fontSize+2 + "px"') !important;
26
- /* line-height: v-bind('dataStore.fontSize*2 + "px"') !important; */
27
- }
28
-
29
- .v-input__details,
30
- .v-messages__message {
31
- font-size: v-bind('$dataStore.fontSize*0.8 + "px"') !important;
32
- /* line-height: v-bind('dataStore.fontSize*1 + "px"') !important; */
33
- padding-bottom: 3px;
34
- }
35
- </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.7-beta.13",
3
+ "version": "0.0.7-beta.15",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -11,6 +11,7 @@ export default defineNuxtPlugin(nuxtApp => {
11
11
  return {
12
12
  provide: {
13
13
  dataStore: useDataStore(),
14
+ rules: useDataStore().rules,
14
15
  libStyles: new Styles(),
15
16
  t: useDataStore().t,
16
17
  toast: useDataStore().showToaster,