@webitel/ui-sdk 24.10.13 → 24.10.15

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.10.13",
3
+ "version": "24.10.15",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -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="label ? null : $t('webitelUI.timepicker.hour') "
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="label ? null : $t('webitelUI.timepicker.min')"
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="label ? null : $t('webitelUI.timepicker.sec')"
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 { queryToSortAdapter, sortToQueryAdapter } from '../../../../scripts/sortQueryAdapters.js';
2
+ import {
3
+ queryToSortAdapter,
4
+ sortToQueryAdapter,
5
+ } from '../../../../scripts/sortQueryAdapters.js';
3
6
 
4
7
  const state = () => ({
5
8
  headers: [],
@@ -18,7 +21,7 @@ const getters = {
18
21
 
19
22
  FIELDS: (state) => {
20
23
  const fields = state.headers.reduce((fields, { show, field }) => {
21
- if (show) return [...fields, field];
24
+ if (show || show === undefined) return [...fields, field];
22
25
  return fields;
23
26
  }, []);
24
27