mediacube-ui 0.1.320 → 0.1.321
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
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.321](https://github.com/MediaCubeCo/mcui/compare/v0.1.320...v0.1.321) (2024-10-21)
|
|
6
|
+
|
|
5
7
|
### [0.1.320](https://github.com/MediaCubeCo/mcui/compare/v0.1.319...v0.1.320) (2024-10-17)
|
|
6
8
|
|
|
7
9
|
### [0.1.319](https://github.com/MediaCubeCo/mcui/compare/v0.1.318...v0.1.319) (2024-10-15)
|
package/package.json
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
:filter="currentFilter"
|
|
47
47
|
:placeholders="placeholders"
|
|
48
48
|
:current-values="!activeTag ? currentValues : {}"
|
|
49
|
+
:use-timezone="useTimezone"
|
|
49
50
|
@input="handleConditionChange"
|
|
50
51
|
/>
|
|
51
52
|
<mc-button v-if="hasButtonAdd" variation="purple-outline" @click.native="handleStoreTag">
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
:filters="filters"
|
|
65
66
|
:placeholders="placeholders"
|
|
66
67
|
:active-tag="activeTag"
|
|
68
|
+
:use-timezone="useTimezone"
|
|
67
69
|
@tag-change="onTagsChange"
|
|
68
70
|
@tag-click="onTagClick"
|
|
69
71
|
@clear="allTagsClear"
|
|
@@ -233,6 +235,10 @@ export default {
|
|
|
233
235
|
type: Boolean,
|
|
234
236
|
default: false,
|
|
235
237
|
},
|
|
238
|
+
useTimezone: {
|
|
239
|
+
type: Boolean,
|
|
240
|
+
default: true,
|
|
241
|
+
},
|
|
236
242
|
/**
|
|
237
243
|
* Переводы локализаций
|
|
238
244
|
*/
|
|
@@ -107,6 +107,10 @@ export default {
|
|
|
107
107
|
type: Object,
|
|
108
108
|
default: null,
|
|
109
109
|
},
|
|
110
|
+
useTimezone: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false,
|
|
113
|
+
},
|
|
110
114
|
},
|
|
111
115
|
data() {
|
|
112
116
|
return {
|
|
@@ -143,9 +147,11 @@ export default {
|
|
|
143
147
|
const to = value.less
|
|
144
148
|
? `${this.placeholders.to} ${this.getFormattedVal(
|
|
145
149
|
filter.type === 'date'
|
|
146
|
-
?
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
? this.useTimezone
|
|
151
|
+
? dayjs(value.less)
|
|
152
|
+
.subtract(1, 'days')
|
|
153
|
+
.format()
|
|
154
|
+
: dayjs(value.less).format()
|
|
149
155
|
: value.less,
|
|
150
156
|
filter,
|
|
151
157
|
)}`
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-model="period"
|
|
4
4
|
:placeholders="placeholders.calendar"
|
|
5
5
|
:placeholder="filter.placeholder || placeholders.choose"
|
|
6
|
-
use-timezone
|
|
6
|
+
:use-timezone="useTimezone"
|
|
7
7
|
name="condition_dates"
|
|
8
8
|
class="mc-filter-type-date"
|
|
9
9
|
range
|
|
@@ -40,6 +40,10 @@ export default {
|
|
|
40
40
|
type: Object,
|
|
41
41
|
required: true,
|
|
42
42
|
},
|
|
43
|
+
useTimezone: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false,
|
|
46
|
+
},
|
|
43
47
|
},
|
|
44
48
|
computed: {
|
|
45
49
|
period: {
|