mediacube-ui 0.1.341 → 0.1.343

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.343](https://github.com/MediaCubeCo/mcui/compare/v0.1.342...v0.1.343) (2024-12-06)
6
+
7
+ ### [0.1.342](https://github.com/MediaCubeCo/mcui/compare/v0.1.341...v0.1.342) (2024-11-29)
8
+
5
9
  ### [0.1.341](https://github.com/MediaCubeCo/mcui/compare/v0.1.340...v0.1.341) (2024-11-27)
6
10
 
7
11
  ### [0.1.340](https://github.com/MediaCubeCo/mcui/compare/v0.1.339...v0.1.340) (2024-11-26)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.341",
3
+ "version": "0.1.343",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -9,7 +9,7 @@
9
9
  <div class="mc-date-picker__inner">
10
10
  <div class="mc-date-picker__input-wrapper" :style="{ minWidth }">
11
11
  <mc-svg-icon
12
- v-if="!isTime"
12
+ v-if="!isTime && !inline"
13
13
  class="mc-date-picker__icon-calendar mx-icon-calendar"
14
14
  name="calendar"
15
15
  size="300"
@@ -513,7 +513,7 @@ export default {
513
513
  },
514
514
 
515
515
  passwordIcon() {
516
- return this.isPasswordType ? 'visibility' : 'visibility_off'
516
+ return this.isPasswordType ? 'visibility_off' : 'visibility'
517
517
  },
518
518
 
519
519
  charCounter() {
@@ -664,8 +664,9 @@ export default {
664
664
  case 'amount_format':
665
665
  case 'num': {
666
666
  const exluded_symbols = ['.', ',']
667
- const already_has_symbol = exluded_symbols.some(symbol => this.value.includes(symbol))
668
- if (exluded_symbols.includes(e.key) && typeof this.value === 'string' && already_has_symbol) {
667
+ const already_has_symbol =
668
+ typeof this.value === 'string' && exluded_symbols.some(symbol => this.value.includes(symbol))
669
+ if (exluded_symbols.includes(e.key) && already_has_symbol) {
669
670
  e.preventDefault()
670
671
  }
671
672
  break
@@ -23,7 +23,7 @@
23
23
  <component
24
24
  :is="tag"
25
25
  v-bind="attrs"
26
- v-on="$listeners"
26
+ v-on="{ ...$listeners, 'sort-change': this.handleSort }"
27
27
  @scroll="handleScroll"
28
28
  @context-menu-click="contextMenuClickEvent"
29
29
  >
@@ -507,6 +507,12 @@ export default {
507
507
  this.firstColsWidth = leftFixedColumnsWidth + 5 // 5 - ширина скролла
508
508
  }
509
509
  },
510
+ handleSort({ property, ...other } = {}) {
511
+ this.$emit('sort-change', {
512
+ field: property,
513
+ ...other,
514
+ })
515
+ },
510
516
  toggleColumns(val) {
511
517
  if (val) {
512
518
  const columns = this.$refs.xTable.getColumns()