mediacube-ui 0.1.92 → 0.1.94

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.94](https://github.com/MediaCubeCo/mcui/compare/v0.1.93...v0.1.94) (2023-07-28)
6
+
7
+ ### [0.1.93](https://github.com/MediaCubeCo/mcui/compare/v0.1.92...v0.1.93) (2023-07-25)
8
+
5
9
  ### [0.1.92](https://github.com/MediaCubeCo/mcui/compare/v0.1.91...v0.1.92) (2023-07-25)
6
10
 
7
11
  ### [0.1.91](https://github.com/MediaCubeCo/mcui/compare/v0.1.90...v0.1.91) (2023-07-25)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.92",
3
+ "version": "0.1.94",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -1843,6 +1843,8 @@
1843
1843
  <path d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1844
1844
  <path d="M10 20.7769V15.5424" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1845
1845
  <path d="M14 20.7769V15.5424" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1846
+ </symbol><symbol id="reply_arrow" viewBox="0 0 20 20">
1847
+ <path d="M9.16667 11.9408C12.995 11.9408 16.2492 13.91 17.5 16.6667V15.8275C17.5 10.8142 13.8158 6.725 9.16667 6.41833V2.5L2.5 9.16667L9.16667 15.8333V11.9442" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" fill="none" stroke-linejoin="round"/>
1846
1848
  </symbol><symbol id="requisites" viewBox="0 0 24 24">
1847
1849
  <path d="M13 19H6C5.20435 19 4.44129 18.6839 3.87868 18.1213C3.31607 17.5587 3 16.7956 3 16V8C3 7.20435 3.31607 6.44129 3.87868 5.87868C4.44129 5.31607 5.20435 5 6 5H13" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1848
1850
  <path d="M16 19H18C18.7956 19 19.5587 18.6839 20.1213 18.1213C20.6839 17.5587 21 16.7956 21 16V8C21 7.20435 20.6839 6.44129 20.1213 5.87868C19.5587 5.31607 18.7956 5 18 5H16" stroke="currentColor" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -16,6 +16,7 @@
16
16
  <mc-side-bar-center
17
17
  :title="menuMainTitle"
18
18
  :menu-main="menuMain"
19
+ :counts="counts"
19
20
  :chatra-config="chatraConfig"
20
21
  :user="user"
21
22
  :compact="prettyCompact"
@@ -108,6 +109,15 @@ export default {
108
109
  type: Array,
109
110
  default: () => [],
110
111
  },
112
+ /**
113
+ * Каунты для пунктов меню
114
+ * вставляются в пункты с ключем 'count_key'
115
+ *
116
+ */
117
+ counts: {
118
+ type: Object,
119
+ default: () => ({}),
120
+ },
111
121
  /**
112
122
  * Меню приложений
113
123
  *
@@ -50,7 +50,7 @@
50
50
  <mc-side-bar-button
51
51
  v-for="(menuItem, i) in menuMainItem.menu"
52
52
  :key="i"
53
- :info="menuItem.info"
53
+ :info="counts[menuItem.count_key]"
54
54
  :href="menuItem.href"
55
55
  :to="menuItem.to"
56
56
  :icon="menuItem.icon"
@@ -129,6 +129,15 @@ export default {
129
129
  type: Array,
130
130
  default: () => [],
131
131
  },
132
+ /**
133
+ * Каунты для пунктов меню
134
+ * вставляются в пункты с ключем 'count_key'
135
+ *
136
+ */
137
+ counts: {
138
+ type: Object,
139
+ default: () => ({}),
140
+ },
132
141
  /**
133
142
  * Id чатры
134
143
  *
@@ -232,7 +241,7 @@ export default {
232
241
  id: _XEUtils.uniqueId(),
233
242
  ...i,
234
243
  active,
235
- indicator: () => i.menu && i.menu.some(r => !!r.info),
244
+ indicator: () => i.menu && i.menu.some(r => !!this.counts?.[r.count_key]),
236
245
  open: !this.compact && active(),
237
246
  }
238
247
  })