@webitel/ui-sdk 24.12.155 → 24.12.157
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/CHANGELOG.md +12 -0
- package/dist/ui-sdk.js +2615 -2615
- package/dist/ui-sdk.umd.cjs +15 -15
- package/package.json +1 -1
- package/src/locale/en/en.js +1 -1
- package/src/locale/ru/ru.js +1 -1
- package/src/locale/ua/ua.js +1 -1
- package/src/modules/Filters/v2/filters/components/values/assignee/assignee-filter-value-field.vue +6 -6
- package/src/modules/Filters/v2/filters/components/values/contact-group/contact-group-filter-value-field.vue +1 -1
- package/src/modules/Filters/v2/filters/components/values/rating/rating-from-to-filter-value-field.vue +16 -4
- package/src/modules/Filters/v2/filters/components/values/score/score-from-to-filter-value-field.vue +2 -2
package/package.json
CHANGED
package/src/locale/en/en.js
CHANGED
package/src/locale/ru/ru.js
CHANGED
package/src/locale/ua/ua.js
CHANGED
package/src/modules/Filters/v2/filters/components/values/assignee/assignee-filter-value-field.vue
CHANGED
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
<script lang="ts" setup>
|
|
22
22
|
import { useVuelidate } from '@vuelidate/core';
|
|
23
23
|
import { requiredIf } from '@vuelidate/validators';
|
|
24
|
-
import { computed,
|
|
24
|
+
import { computed, onMounted, watch } from 'vue';
|
|
25
25
|
import { useI18n } from 'vue-i18n';
|
|
26
26
|
|
|
27
|
+
import WtCheckbox from '../../../../../../../components/wt-checkbox/wt-checkbox.vue';
|
|
27
28
|
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
28
29
|
import { searchMethod } from './config.js';
|
|
29
|
-
import WtCheckbox from "../../../../../../../components/wt-checkbox/wt-checkbox.vue";
|
|
30
30
|
|
|
31
31
|
type ModelValue = {
|
|
32
32
|
list: string[];
|
|
@@ -41,20 +41,20 @@ const emit = defineEmits<{
|
|
|
41
41
|
const { t } = useI18n();
|
|
42
42
|
|
|
43
43
|
const initModel = () => {
|
|
44
|
-
if(!model.value) {
|
|
44
|
+
if (!model.value) {
|
|
45
45
|
model.value = {
|
|
46
46
|
list: [],
|
|
47
47
|
unassigned: false,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
};
|
|
51
51
|
onMounted(() => initModel());
|
|
52
52
|
|
|
53
53
|
const v$ = useVuelidate(
|
|
54
54
|
computed(() => ({
|
|
55
55
|
model: {
|
|
56
|
-
list: {
|
|
57
|
-
unassigned: { required: requiredIf(() => !model.value.list.length)},
|
|
56
|
+
list: { required: requiredIf(() => !model.value.unassigned) },
|
|
57
|
+
unassigned: { required: requiredIf(() => !model.value.list.length) },
|
|
58
58
|
},
|
|
59
59
|
})),
|
|
60
60
|
{ model },
|
|
@@ -53,7 +53,7 @@ onMounted(() => initModel());
|
|
|
53
53
|
const v$ = useVuelidate(
|
|
54
54
|
computed(() => ({
|
|
55
55
|
model: {
|
|
56
|
-
list: {
|
|
56
|
+
list: { required: requiredIf(() => !model.value.unassigned) },
|
|
57
57
|
unassigned: { required: requiredIf(() => !model.value.list.length) },
|
|
58
58
|
},
|
|
59
59
|
})),
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
:placeholder="t('webitelUI.filters.filterValue')"
|
|
8
8
|
:v="v$.model?.from"
|
|
9
9
|
:value="model.from"
|
|
10
|
+
class="rating-from-to-filter-value-field__input"
|
|
10
11
|
type="number"
|
|
11
12
|
@input="handleInput('from', $event)"
|
|
12
13
|
/>
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
:placeholder="t('webitelUI.filters.filterValue')"
|
|
19
20
|
:v="v$.model?.to"
|
|
20
21
|
:value="model.to"
|
|
22
|
+
class="rating-from-to-filter-value-field__input"
|
|
21
23
|
type="number"
|
|
22
24
|
@input="handleInput('to', $event)"
|
|
23
25
|
/>
|
|
@@ -26,10 +28,12 @@
|
|
|
26
28
|
|
|
27
29
|
<script lang="ts" setup>
|
|
28
30
|
import { useVuelidate } from '@vuelidate/core';
|
|
29
|
-
import {
|
|
31
|
+
import { maxValue, requiredIf } from '@vuelidate/validators';
|
|
30
32
|
import { computed, watch } from 'vue';
|
|
31
33
|
import { useI18n } from 'vue-i18n';
|
|
32
34
|
|
|
35
|
+
import { WtInput } from '../../../../../../../components';
|
|
36
|
+
|
|
33
37
|
type ModelValue = {
|
|
34
38
|
from: number;
|
|
35
39
|
to: number;
|
|
@@ -52,11 +56,15 @@ const v$ = useVuelidate(
|
|
|
52
56
|
computed(() => ({
|
|
53
57
|
model: {
|
|
54
58
|
from: {
|
|
55
|
-
|
|
56
|
-
maxValue: maxValue(
|
|
59
|
+
required: requiredIf(() => !model.value.to),
|
|
60
|
+
maxValue: maxValue(
|
|
61
|
+
model?.value?.to && model.value.from > model.value.to
|
|
62
|
+
? model.value.to
|
|
63
|
+
: Infinity,
|
|
64
|
+
),
|
|
57
65
|
},
|
|
58
66
|
to: {
|
|
59
|
-
|
|
67
|
+
required: requiredIf(() => !model.value.from),
|
|
60
68
|
},
|
|
61
69
|
},
|
|
62
70
|
})),
|
|
@@ -85,5 +93,9 @@ watch(
|
|
|
85
93
|
display: flex;
|
|
86
94
|
align-items: center;
|
|
87
95
|
grid-gap: var(--spacing-xs);
|
|
96
|
+
|
|
97
|
+
&__input {
|
|
98
|
+
flex: 1;
|
|
99
|
+
}
|
|
88
100
|
}
|
|
89
101
|
</style>
|
package/src/modules/Filters/v2/filters/components/values/score/score-from-to-filter-value-field.vue
CHANGED
|
@@ -66,8 +66,8 @@ const { t } = useI18n();
|
|
|
66
66
|
const v$ = useVuelidate(
|
|
67
67
|
computed(() => ({
|
|
68
68
|
model: {
|
|
69
|
-
from: {
|
|
70
|
-
to: {
|
|
69
|
+
from: { required: requiredIf(() => !model.value.to) },
|
|
70
|
+
to: { required: requiredIf(() => !model.value.from) },
|
|
71
71
|
},
|
|
72
72
|
})),
|
|
73
73
|
{ model },
|