mediacube-ui 0.1.363 → 0.1.365

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.365](https://github.com/MediaCubeCo/mcui/compare/v0.1.364...v0.1.365) (2025-03-17)
6
+
7
+ ### [0.1.364](https://github.com/MediaCubeCo/mcui/compare/v0.1.363...v0.1.364) (2025-03-10)
8
+
5
9
  ### [0.1.363](https://github.com/MediaCubeCo/mcui/compare/v0.1.362...v0.1.363) (2025-03-05)
6
10
 
7
11
  ### [0.1.362](https://github.com/MediaCubeCo/mcui/compare/v0.1.361...v0.1.362) (2025-02-18)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.363",
3
+ "version": "0.1.365",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -126,6 +126,9 @@ export default {
126
126
  },
127
127
  commentWithLinks() {
128
128
  const regExp = /((http|https):\/\/)?(([0-9a-zA-Zа-яА-Я.-]*)\.([a-zA-Zа-яА-Я]+[^\s,.;:'"\])]+)(\/[^ ,.;\/\])]*)?)/gi
129
+ if (/\.(jpg|jpeg|png|svg|pdf|csv|webp|doc|docx)$/i.test(match)) {
130
+ return match
131
+ }
129
132
  return this.comment.content.replace(regExp, match => {
130
133
  const url = /^http/.test(match) ? match : `http://${match}`
131
134
  return `<a class="mc-chat-comment__link" href='${url}' target="_blank">${match.trim()}</a>`
@@ -23,7 +23,7 @@
23
23
  <component
24
24
  :is="tag"
25
25
  v-bind="attrs"
26
- v-on="{ ...$listeners, 'sort-change': this.handleSort }"
26
+ v-on="{ ...$listeners, 'sort-change': handleSort }"
27
27
  @scroll="handleScroll"
28
28
  @context-menu-click="contextMenuClickEvent"
29
29
  :empty-render="{ name: 'noData' }"
@@ -428,8 +428,13 @@ export default {
428
428
  if (this.mergeCells?.length) this.$refs.xTable.setMergeCells(this.mergeCells)
429
429
  }
430
430
  },
431
- reloadData() {
432
- this.$refs.xTable.reloadData(this.items)
431
+ async reloadData() {
432
+ // Доастаем отсортированную колонку и выполняем сортировку вручную, чтобы предотвратить сброс на релоаде
433
+ const [sortState] = this.$refs.xTable.getSortColumns() || []
434
+ await this.$refs.xTable.reloadData(this.items)
435
+ if (sortState) {
436
+ this.$refs.xTable.sort(sortState.property, sortState.order)
437
+ }
433
438
  },
434
439
  async updateData() {
435
440
  await this.$refs.xTable.updateData()