@webitel/ui-sdk 24.10.14 → 24.10.16
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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="wt-timepicker"
|
|
5
5
|
>
|
|
6
6
|
<wt-label
|
|
7
|
-
v-if="label"
|
|
7
|
+
v-if="label || !noLabel"
|
|
8
8
|
:invalid="invalid"
|
|
9
9
|
v-bind="labelProps"
|
|
10
10
|
>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<wt-time-input
|
|
15
15
|
v-if="isHour"
|
|
16
16
|
:disabled="disabled"
|
|
17
|
-
:label="
|
|
17
|
+
:label="labelHours"
|
|
18
18
|
:max-value="dateMode ? null : 23"
|
|
19
19
|
:v="v"
|
|
20
20
|
:value="hour"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<wt-time-input
|
|
25
25
|
v-if="isMin"
|
|
26
26
|
:disabled="disabled"
|
|
27
|
-
:label="
|
|
27
|
+
:label="labelMin"
|
|
28
28
|
:max-value="59"
|
|
29
29
|
:v="v"
|
|
30
30
|
:value="min"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<wt-time-input
|
|
35
35
|
v-if="isSec"
|
|
36
36
|
:disabled="disabled"
|
|
37
|
-
:label="
|
|
37
|
+
:label="labelSec"
|
|
38
38
|
:max-value="59"
|
|
39
39
|
:v="v"
|
|
40
40
|
:value="sec"
|
|
@@ -89,6 +89,10 @@ export default {
|
|
|
89
89
|
type: Object,
|
|
90
90
|
description: 'Object with props, passed down to wt-label as props',
|
|
91
91
|
},
|
|
92
|
+
noLabel: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false,
|
|
95
|
+
},
|
|
92
96
|
},
|
|
93
97
|
|
|
94
98
|
computed: {
|
|
@@ -101,6 +105,18 @@ export default {
|
|
|
101
105
|
isSec() {
|
|
102
106
|
return this.format.includes('ss');
|
|
103
107
|
},
|
|
108
|
+
labelHours() {
|
|
109
|
+
if(this.noLabel) return null;
|
|
110
|
+
return this.label ? null : this.$t('webitelUI.timepicker.hour');
|
|
111
|
+
},
|
|
112
|
+
labelMin() {
|
|
113
|
+
if(this.noLabel) return null;
|
|
114
|
+
return this.label ? null : this.$t('webitelUI.timepicker.min');
|
|
115
|
+
},
|
|
116
|
+
labelSec() {
|
|
117
|
+
if(this.noLabel) return null;
|
|
118
|
+
return this.label ? null : this.$t('webitelUI.timepicker.sec');
|
|
119
|
+
},
|
|
104
120
|
hour: {
|
|
105
121
|
get() {
|
|
106
122
|
return this.dateMode
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import FilterEvent from '../../../../modules/Filters/enums/FilterEvent.enum.js';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
queryToSortAdapter,
|
|
4
|
+
sortToQueryAdapter,
|
|
5
|
+
} from '../../../../scripts/sortQueryAdapters.js';
|
|
3
6
|
|
|
4
7
|
const state = () => ({
|
|
5
8
|
headers: [],
|
|
@@ -129,7 +132,9 @@ const actions = {
|
|
|
129
132
|
context.commit('SET', { path: 'error', value: err });
|
|
130
133
|
throw err;
|
|
131
134
|
} finally {
|
|
132
|
-
|
|
135
|
+
setTimeout(() => {
|
|
136
|
+
context.commit('SET', { path: 'isLoading', value: false });
|
|
137
|
+
}, 1000); // why 1s? https://ux.stackexchange.com/a/104782
|
|
133
138
|
}
|
|
134
139
|
},
|
|
135
140
|
|