mediacube-ui 0.1.264 → 0.1.266
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.266](https://github.com/MediaCubeCo/mcui/compare/v0.1.265...v0.1.266) (2024-05-16)
|
|
6
|
+
|
|
7
|
+
### [0.1.265](https://github.com/MediaCubeCo/mcui/compare/v0.1.264...v0.1.265) (2024-05-15)
|
|
8
|
+
|
|
5
9
|
### [0.1.264](https://github.com/MediaCubeCo/mcui/compare/v0.1.263...v0.1.264) (2024-05-03)
|
|
6
10
|
|
|
7
11
|
### [0.1.263](https://github.com/MediaCubeCo/mcui/compare/v0.1.262...v0.1.263) (2024-05-02)
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<a
|
|
14
14
|
:aria-controls="tab.hash"
|
|
15
15
|
:aria-selected="tab.isActive"
|
|
16
|
-
:href="tab
|
|
16
|
+
:href="getHref(tab)"
|
|
17
17
|
class="tabs-component-tab-a"
|
|
18
18
|
role="tab"
|
|
19
19
|
@click="selectTab(tab.hash, $event)"
|
|
@@ -273,6 +273,11 @@ export default {
|
|
|
273
273
|
|
|
274
274
|
const selectedTab = this.findTab(selectedTabHash)
|
|
275
275
|
|
|
276
|
+
if (selectedTab.$listeners && selectedTab.$listeners.click) {
|
|
277
|
+
selectedTab.$emit('click', event)
|
|
278
|
+
return
|
|
279
|
+
}
|
|
280
|
+
|
|
276
281
|
if (!selectedTab) {
|
|
277
282
|
return
|
|
278
283
|
}
|
|
@@ -351,6 +356,10 @@ export default {
|
|
|
351
356
|
getActiveTabIndex() {
|
|
352
357
|
return this.getTabIndex(this.activeTabHash)
|
|
353
358
|
},
|
|
359
|
+
|
|
360
|
+
getHref(tab) {
|
|
361
|
+
return tab.$listeners.click ? null : tab.to || tab.href || tab.hash
|
|
362
|
+
},
|
|
354
363
|
},
|
|
355
364
|
}
|
|
356
365
|
</script>
|
|
@@ -492,6 +501,7 @@ export default {
|
|
|
492
501
|
text-decoration: none;
|
|
493
502
|
padding-bottom: $space-150;
|
|
494
503
|
margin: 0 $space-150;
|
|
504
|
+
cursor: pointer;
|
|
495
505
|
|
|
496
506
|
@include child-indent-right($space-50);
|
|
497
507
|
@include border();
|
|
@@ -139,9 +139,10 @@ export default {
|
|
|
139
139
|
const from = value.more
|
|
140
140
|
? `${this.placeholders.from} ${this.getFormattedVal(value.more, filter)}`
|
|
141
141
|
: ''
|
|
142
|
+
|
|
142
143
|
const to = value.less
|
|
143
144
|
? `${this.placeholders.to} ${this.getFormattedVal(
|
|
144
|
-
filter.type === 'date'
|
|
145
|
+
filter.type === 'date'
|
|
145
146
|
? dayjs(value.less)
|
|
146
147
|
.subtract(1, 'days')
|
|
147
148
|
.format()
|