mediacube-ui 0.1.398 → 0.1.400

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,10 @@
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.400](https://github.com/MediaCubeCo/mcui/compare/v0.1.399...v0.1.400) (2025-07-29)
6
+
7
+ ### [0.1.399](https://github.com/MediaCubeCo/mcui/compare/v0.1.398...v0.1.399) (2025-07-28)
8
+
5
9
  ### [0.1.398](https://github.com/MediaCubeCo/mcui/compare/v0.1.397...v0.1.398) (2025-07-23)
6
10
 
7
11
  ### [0.1.397](https://github.com/MediaCubeCo/mcui/compare/v0.1.396...v0.1.397) (2025-07-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.398",
3
+ "version": "0.1.400",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -403,13 +403,13 @@ export default {
403
403
  },
404
404
  prettyValue() {
405
405
  if (!this.useTimezone) {
406
- if (this.isRange && this.value?.filter(Boolean)?.length)
407
- return this.value.map(item => dayjs.tz(item, 'Europe/London').$d)
408
- return this.useFormat || (!this.setDefaultToday && !this.value)
409
- ? this.value
410
- : this.value
411
- ? new Date(this.value)
412
- : new Date()
406
+ if (this.isRange && this.value?.filter(Boolean)?.length)
407
+ return this.value.map(item => dayjs.tz(item, 'Europe/London').$d)
408
+ return this.useFormat || (!this.setDefaultToday && !this.value)
409
+ ? this.value
410
+ : this.value
411
+ ? new Date(this.value)
412
+ : new Date()
413
413
  }
414
414
  const formattingDate = date =>
415
415
  dayjs.tz(dayjs.utc(date, 'YYYY-MM-DD HH:mm:ss'), this.currentTimezone).format(this.format)
@@ -295,7 +295,9 @@ export default {
295
295
  return
296
296
  }
297
297
 
298
- if (this.lastActiveTabHash === selectedTab.hash) {
298
+ const isSameTab = this.lastActiveTabHash === selectedTab.hash
299
+ const hasActiveTab = this.tabs.some(tab => tab.hash === selectedTabHash && tab.isActive)
300
+ if (isSameTab && hasActiveTab) {
299
301
  this.$emit('clicked', { tab: selectedTab })
300
302
  return
301
303
  }
@@ -355,7 +355,7 @@ export default {
355
355
  watch: {
356
356
  value: {
357
357
  handler(val) {
358
- this.currentValues = { ...val.filter }
358
+ if (val.filter) this.currentValues = { ...val.filter }
359
359
  if (val.filter_name) {
360
360
  try {
361
361
  this.currentValuesName = JSON.parse(decodeURI(atob(val.filter_name)))
@@ -363,7 +363,7 @@ export default {
363
363
  console.error(`Can't parse filters`)
364
364
  }
365
365
  }
366
- this.buttonConfirmIsDisable = _isEmpty(val.filter) || _isEmpty(val.filter_name)
366
+ this.buttonConfirmIsDisable = _isEmpty(this.currentValues) || _isEmpty(this.currentValuesName)
367
367
  },
368
368
  immediate: true,
369
369
  deep: true,
@@ -192,6 +192,7 @@ export default {
192
192
  //override variables:
193
193
  @import '../../../styles/table.scss';
194
194
 
195
+ $current-background-color: color-mix(in srgb, var(--color-main) 10%, #fff 90%);
195
196
  @mixin col-right-color($color) {
196
197
  .mc-table-col__right {
197
198
  background-color: $color;
@@ -279,7 +280,7 @@ export default {
279
280
  }
280
281
  @include col-right-color($vxe-table-row-hover-background-color);
281
282
  &.row--current {
282
- @include col-right-color(transparent);
283
+ @include col-right-color($current-background-color);
283
284
  }
284
285
  }
285
286
  &.row--current {