hl-core 0.0.9-beta.46 → 0.0.9-beta.47

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,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
- class="min-h-[74px] !pl-2 md:!pl-5 flex items-center justify-start gap-5"
4
- :class="[$styles.whiteBg, hasBorder ? 'border-[1px] rounded-lg' : 'border-b-[1px] border-b-[#f3f6fc] rounded']"
3
+ class="!pl-2 md:!pl-5 flex items-center justify-start gap-5"
4
+ :class="[$styles.whiteBg, height, hasBorder ? 'border-[1px] rounded-lg' : 'border-b-[1px] border-b-[#f3f6fc] rounded']"
5
5
  >
6
6
  <v-switch
7
7
  class="base-toggle"
@@ -12,6 +12,8 @@
12
12
  "
13
13
  color="#009C73"
14
14
  hide-details
15
+ :true-value="trueValue"
16
+ :false-value="falseValue"
15
17
  :disabled="disabled"
16
18
  />
17
19
  <p class="p-2" :class="[$styles.textSimple]">{{ `${title}` }}</p>
@@ -25,7 +27,7 @@
25
27
  export default defineComponent({
26
28
  props: {
27
29
  modelValue: {
28
- type: Boolean,
30
+ type: Boolean as PropType<any>,
29
31
  default: '',
30
32
  },
31
33
  title: {
@@ -44,6 +46,18 @@ export default defineComponent({
44
46
  type: Boolean,
45
47
  default: true,
46
48
  },
49
+ trueValue: {
50
+ type: Boolean as PropType<any>,
51
+ default: true,
52
+ },
53
+ falseValue: {
54
+ type: Boolean as PropType<any>,
55
+ default: false,
56
+ },
57
+ height: {
58
+ type: String,
59
+ default: 'min-h-[74px] '
60
+ }
47
61
  },
48
62
  emits: ['update:modelValue', 'clicked'],
49
63
  });
@@ -763,6 +763,9 @@ export default defineComponent({
763
763
  if (whichProduct.value === 'halykkazyna') {
764
764
  return baseCondition.concat(dataStore.rules.coverPeriodFrom2to20);
765
765
  }
766
+ if (whichProduct.value === 'amuletlife') {
767
+ return baseCondition.concat(dataStore.rules.coverPeriodFrom1or5to15);
768
+ }
766
769
  return baseCondition;
767
770
  });
768
771
  const currencySymbolsAddTerm = computed(() => {
package/locales/ru.json CHANGED
@@ -366,6 +366,7 @@
366
366
  "requestedProductConditions": "Запрашиваемые условия страхования",
367
367
  "coverPeriodFrom3to20": "Срок страхования (от 3-х до 20 лет)",
368
368
  "coverPeriodFrom2to20": "Срок страхования (от 2-х до 20 лет)",
369
+ "coverPeriodFrom1or5to15": "Срок страхования (1 год или от 5 до 15 лет)",
369
370
  "insurancePremiumAmount": "Размер Страховой премии (страховой взнос) в тенге",
370
371
  "insurancePremiumAmountInDollar": "Размер Страховой премии (страховой взнос) в долларах",
371
372
  "dollarExchangeRateNBRK": "Курс доллара НБРК",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.9-beta.46",
3
+ "version": "0.0.9-beta.47",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
package/store/rules.ts CHANGED
@@ -190,6 +190,18 @@ export const rules = {
190
190
  }
191
191
  },
192
192
  ],
193
+ coverPeriodFrom1or5to15: [
194
+ (v: any) => {
195
+ if (v !== null) {
196
+ if (v == 1 || (v >= 5 && v <= 15)) {
197
+ return true;
198
+ }
199
+ return t('productConditionsForm.coverPeriodFrom1or5to15');
200
+ } else {
201
+ return t('productConditionsForm.coverPeriodFrom1or5to15');
202
+ }
203
+ },
204
+ ],
193
205
  requestedSumInsuredMycar: [
194
206
  (v: any) => {
195
207
  if (v !== null) {