mediacube-ui 0.1.340 → 0.1.342

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.342](https://github.com/MediaCubeCo/mcui/compare/v0.1.341...v0.1.342) (2024-11-29)
6
+
7
+ ### [0.1.341](https://github.com/MediaCubeCo/mcui/compare/v0.1.340...v0.1.341) (2024-11-27)
8
+
5
9
  ### [0.1.340](https://github.com/MediaCubeCo/mcui/compare/v0.1.339...v0.1.340) (2024-11-26)
6
10
 
7
11
  ### [0.1.339](https://github.com/MediaCubeCo/mcui/compare/v0.1.338...v0.1.339) (2024-11-25)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.340",
3
+ "version": "0.1.342",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -67,7 +67,7 @@
67
67
  },
68
68
  {
69
69
  "name": "$token-radius",
70
- "value": "( square: $radius-square, 50: $radius-50, 100: $radius-100, 150: $radius-150, 200: $radius-200, 300: $radius-300, 1250: $radius-1250, rounded: $radius-rounded, circle: $radius-circle )",
70
+ "value": "( \"square\": $radius-square, \"50\": $radius-50, \"100\": $radius-100, \"150\": $radius-150, \"200\": $radius-200, \"300\": $radius-300, \"1250\": $radius-1250, \"rounded\": $radius-rounded, \"circle\": $radius-circle )",
71
71
  "mapValue": [
72
72
  {
73
73
  "name": "square",
@@ -85,7 +85,7 @@
85
85
  "compiledValue": "50%"
86
86
  }
87
87
  ],
88
- "compiledValue": "(square: 0px, 50: 4px, 100: 8px, 150: 12px, 200: 16px, 300: 24px, 1250: 100px, rounded: 300px, circle: 50%)"
88
+ "compiledValue": "(\"square\": 0px, \"50\": 4px, \"100\": 8px, \"150\": 12px, \"200\": 16px, \"300\": 24px, \"1250\": 100px, \"rounded\": 300px, \"circle\": 50%)"
89
89
  },
90
90
  {
91
91
  "name": "$shadow-xs",
@@ -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()
@@ -23,4 +23,4 @@ $token-radius: (
23
23
  "1250": $radius-1250,
24
24
  "rounded": $radius-rounded,
25
25
  "circle": $radius-circle
26
- )
26
+ );