@webitel/ui-sdk 24.12.22 → 24.12.24
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 +18 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +460 -435
- package/dist/ui-sdk.umd.cjs +9 -9
- package/package.json +2 -2
- package/src/api/clients/agents/agentChats.js +3 -1
- package/src/components/wt-datepicker/wt-datepicker.vue +25 -3
- package/src/components/wt-timepicker/wt-timepicker.vue +18 -1
- package/src/store/new/modules/tableStoreModule/tableStoreModule.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "24.12.
|
|
3
|
+
"version": "24.12.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"vue-multiselect": "^3.1.0",
|
|
133
133
|
"vue-observe-visibility": "^2.0.0-alpha.1",
|
|
134
134
|
"vue-router": "^4.4.5",
|
|
135
|
-
"webitel-sdk": "^24.10.
|
|
135
|
+
"webitel-sdk": "^24.10.4",
|
|
136
136
|
"xlsx": "^0.18.5"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
@@ -22,7 +22,8 @@ const getChatsList = async (params) => {
|
|
|
22
22
|
const {
|
|
23
23
|
size,
|
|
24
24
|
page,
|
|
25
|
-
onlyClosed
|
|
25
|
+
onlyClosed,
|
|
26
|
+
onlyUnprocessed,
|
|
26
27
|
} = applyTransform(params, [
|
|
27
28
|
merge(getDefaultGetParams()),
|
|
28
29
|
]);
|
|
@@ -35,6 +36,7 @@ const getChatsList = async (params) => {
|
|
|
35
36
|
undefined,
|
|
36
37
|
undefined,
|
|
37
38
|
onlyClosed,
|
|
39
|
+
onlyUnprocessed,
|
|
38
40
|
);
|
|
39
41
|
const { items, next } = applyTransform(response.data, [
|
|
40
42
|
snakeToCamel(),
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
name="label"
|
|
15
15
|
v-bind="{ label }"
|
|
16
16
|
>
|
|
17
|
-
{{
|
|
17
|
+
{{ requiredLabel }}
|
|
18
18
|
</slot>
|
|
19
19
|
</wt-label>
|
|
20
20
|
<vue-datepicker
|
|
@@ -80,9 +80,14 @@
|
|
|
80
80
|
<script setup>
|
|
81
81
|
import VueDatepicker from '@vuepic/vue-datepicker';
|
|
82
82
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
83
|
-
import { ref } from 'vue';
|
|
83
|
+
import { computed, ref } from 'vue';
|
|
84
84
|
|
|
85
85
|
const props = defineProps({
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* [`'date'`, `'datetime'`]
|
|
89
|
+
* */
|
|
90
|
+
|
|
86
91
|
mode: {
|
|
87
92
|
type: String,
|
|
88
93
|
default: 'date',
|
|
@@ -114,9 +119,22 @@ const props = defineProps({
|
|
|
114
119
|
type: String,
|
|
115
120
|
default: 'en',
|
|
116
121
|
},
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Object with props, passed down to wt-label as props
|
|
125
|
+
*/
|
|
126
|
+
|
|
117
127
|
labelProps: {
|
|
118
128
|
type: Object,
|
|
119
|
-
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Native input required attribute
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
required: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: false,
|
|
120
138
|
},
|
|
121
139
|
});
|
|
122
140
|
const emit = defineEmits(['input']);
|
|
@@ -125,6 +143,10 @@ const isOpened = ref(false);
|
|
|
125
143
|
const datepicker = ref(null); // template ref
|
|
126
144
|
|
|
127
145
|
const isDateTime = props.mode === 'datetime';
|
|
146
|
+
|
|
147
|
+
const requiredLabel = computed(() => {
|
|
148
|
+
return props.required ? `${props.label}*` : props.label;
|
|
149
|
+
});
|
|
128
150
|
</script>
|
|
129
151
|
|
|
130
152
|
<style lang="scss">
|
|
@@ -8,7 +8,13 @@
|
|
|
8
8
|
:invalid="invalid"
|
|
9
9
|
v-bind="labelProps"
|
|
10
10
|
>
|
|
11
|
-
|
|
11
|
+
<!-- @slot Custom input label -->
|
|
12
|
+
<slot
|
|
13
|
+
name="label"
|
|
14
|
+
v-bind="{ label }"
|
|
15
|
+
>
|
|
16
|
+
{{ requiredLabel }}
|
|
17
|
+
</slot>
|
|
12
18
|
</wt-label>
|
|
13
19
|
<div class="wt-timepicker__wrapper">
|
|
14
20
|
<wt-time-input
|
|
@@ -65,6 +71,9 @@ export default {
|
|
|
65
71
|
event: 'input',
|
|
66
72
|
},
|
|
67
73
|
props: {
|
|
74
|
+
/**
|
|
75
|
+
* Time value in seconds (not milliseconds!)
|
|
76
|
+
*/
|
|
68
77
|
value: {
|
|
69
78
|
type: [String, Number],
|
|
70
79
|
default: 0,
|
|
@@ -93,6 +102,11 @@ export default {
|
|
|
93
102
|
type: Boolean,
|
|
94
103
|
default: false,
|
|
95
104
|
},
|
|
105
|
+
required: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: false,
|
|
108
|
+
description: 'Native input required attribute',
|
|
109
|
+
},
|
|
96
110
|
},
|
|
97
111
|
|
|
98
112
|
computed: {
|
|
@@ -154,6 +168,9 @@ export default {
|
|
|
154
168
|
this.$emit('input', newValue);
|
|
155
169
|
},
|
|
156
170
|
},
|
|
171
|
+
requiredLabel() {
|
|
172
|
+
return this.required ? `${this.label} (${this.format})*` : `${this.label} (${this.format})`;
|
|
173
|
+
},
|
|
157
174
|
},
|
|
158
175
|
|
|
159
176
|
methods: {},
|
|
@@ -201,6 +201,7 @@ const actions = {
|
|
|
201
201
|
throw err;
|
|
202
202
|
} finally {
|
|
203
203
|
await context.dispatch('LOAD_DATA_LIST');
|
|
204
|
+
await context.dispatch('SET_SELECTED', []);
|
|
204
205
|
|
|
205
206
|
/* if no items on current page after DELETE, move to prev page [WTEL-3793] */
|
|
206
207
|
if (!context.state.dataList.length && context.getters.FILTERS.page > 1) {
|