@webitel/ui-sdk 24.6.59 → 24.8.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.6.59",
3
+ "version": "24.8.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -41,7 +41,8 @@ export function useValidation({
41
41
  else if (v.value.decimalValidator?.$invalid) validationText = `${t('validation.decimalValidator')} ${v.value.decimalValidator.$params.count}`;
42
42
  else if (v.value.websocketValidator?.$invalid) validationText = `${t('validation.websocketValidator')}`;
43
43
  else if (v.value.integer?.$invalid) validationText = `${t('validation.integer')}`;
44
- else if (v.value.regex?.$invalid) validationText = v.value.regex?.$message || `${t('validation.isRegExpMatched')} ${v.value.regex?.$params?.regex}`;
44
+ else if (v.value.regex?.$invalid) validationText = v.value.regex?.$message ||
45
+ `${t('validation.isRegExpMatched')} ${v.value.regex?.$params?.regex}`;
45
46
  }
46
47
 
47
48
  if (customValidators && customValidators.value) {
@@ -1,12 +1,9 @@
1
1
  <template>
2
2
  <article class="audit-form-question-score">
3
- <div
4
- v-if="mode === 'write'"
5
- class="audit-form-question-score-write"
6
- >
3
+ <div v-if="mode === 'write'" class="audit-form-question-score-write">
7
4
  <wt-input
8
5
  :label="$t('reusable.from')"
9
- :number-max="19"
6
+ :number-max="9"
10
7
  :number-min="0"
11
8
  :v="v$.question.min"
12
9
  :value="question.min"
@@ -16,8 +13,8 @@
16
13
  />
17
14
  <wt-input
18
15
  :label="$t('reusable.to')"
19
- :number-max="20"
20
- :number-min="1"
16
+ :number-max="10"
17
+ :number-min="question.min"
21
18
  :v="v$.question.max"
22
19
  :value="question.max"
23
20
  required
@@ -27,14 +24,12 @@
27
24
  </div>
28
25
  <div
29
26
  v-else-if="mode === 'read'"
30
- class="audit-form-question-score-read"
31
- >
27
+ class="audit-form-question-score-read">
32
28
  <wt-radio
33
29
  v-for="(value) of scoreRange"
34
30
  :key="value"
35
31
  :label="`${value}`"
36
- :selected="isResult ? result.score : null"
37
- :value="value"
32
+ :selected="isResult ? result.score : null" :value="value"
38
33
  @input="emit('change:result', { score: value })"
39
34
  />
40
35
  </div>
@@ -84,7 +79,7 @@ const v$ = useVuelidate(
84
79
  integer,
85
80
  },
86
81
  max: {
87
- minValue: minValue(1),
82
+ minValue: minValue(props.question.min ? props.question.min : 1),
88
83
  maxValue: maxValue(10),
89
84
  required,
90
85
  integer,