mediacube-ui 0.1.119 → 0.1.121
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.121](https://github.com/MediaCubeCo/mcui/compare/v0.1.120...v0.1.121) (2023-08-22)
|
|
6
|
+
|
|
7
|
+
### [0.1.120](https://github.com/MediaCubeCo/mcui/compare/v0.1.119...v0.1.120) (2023-08-21)
|
|
8
|
+
|
|
5
9
|
### [0.1.119](https://github.com/MediaCubeCo/mcui/compare/v0.1.118...v0.1.119) (2023-08-21)
|
|
6
10
|
|
|
7
11
|
### [0.1.118](https://github.com/MediaCubeCo/mcui/compare/v0.1.117...v0.1.118) (2023-08-18)
|
package/package.json
CHANGED
|
@@ -132,7 +132,7 @@ export default {
|
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
134
|
data: () => ({
|
|
135
|
-
|
|
135
|
+
children: [],
|
|
136
136
|
activeTabHash: '',
|
|
137
137
|
activeTabIndex: 0,
|
|
138
138
|
lastActiveTabHash: '',
|
|
@@ -158,6 +158,9 @@ export default {
|
|
|
158
158
|
storageKey() {
|
|
159
159
|
return `vue-tabs-component.cache.${window.location.host}${window.location.pathname}`
|
|
160
160
|
},
|
|
161
|
+
tabs() {
|
|
162
|
+
return this.children.filter(tab => tab.$options.name === 'McTab')
|
|
163
|
+
},
|
|
161
164
|
},
|
|
162
165
|
watch: {
|
|
163
166
|
loading(val, oldVal) {
|
|
@@ -168,7 +171,7 @@ export default {
|
|
|
168
171
|
},
|
|
169
172
|
},
|
|
170
173
|
created() {
|
|
171
|
-
this.
|
|
174
|
+
this.children = this.$children
|
|
172
175
|
},
|
|
173
176
|
mounted() {
|
|
174
177
|
this.options = {
|
|
@@ -206,7 +209,8 @@ export default {
|
|
|
206
209
|
methods: {
|
|
207
210
|
checkInitTab() {
|
|
208
211
|
if (this.activeTab) {
|
|
209
|
-
const
|
|
212
|
+
const tab_component = this.$children.find(t => t.id === this.activeTab)
|
|
213
|
+
const tab = tab_component || this.$children?.[0]
|
|
210
214
|
tab?.hash && tab?.hash?.replace('#', '') && this.setActiveTab(tab.hash)
|
|
211
215
|
}
|
|
212
216
|
},
|
|
@@ -685,12 +685,15 @@ export default {
|
|
|
685
685
|
this.presets = JSON.parse(window.localStorage.mcFilterPresets || '{}')
|
|
686
686
|
},
|
|
687
687
|
handleCreatePreset() {
|
|
688
|
-
if (
|
|
688
|
+
if (
|
|
689
|
+
this.presets[this.name] &&
|
|
690
|
+
this.presets[this.name].find(p => p.name?.trim() === this.newPresetName?.trim())
|
|
691
|
+
) {
|
|
689
692
|
this.$emit('error', this.placeholders.messages.same_preset_name)
|
|
690
693
|
return
|
|
691
694
|
}
|
|
692
695
|
const preset = {
|
|
693
|
-
name: this.newPresetName,
|
|
696
|
+
name: this.newPresetName?.trim(),
|
|
694
697
|
filter: _cloneDeep(this.currentValues),
|
|
695
698
|
filter_name: _cloneDeep(this.currentValuesName),
|
|
696
699
|
}
|