mediacube-ui 0.1.433 → 0.1.435
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.435](https://github.com/MediaCubeCo/mcui/compare/v0.1.434...v0.1.435) (2025-11-19)
|
|
6
|
+
|
|
7
|
+
### [0.1.434](https://github.com/MediaCubeCo/mcui/compare/v0.1.433...v0.1.434) (2025-11-14)
|
|
8
|
+
|
|
5
9
|
### [0.1.433](https://github.com/MediaCubeCo/mcui/compare/v0.1.432...v0.1.433) (2025-11-12)
|
|
6
10
|
|
|
7
11
|
### [0.1.432](https://github.com/MediaCubeCo/mcui/compare/v0.1.431...v0.1.432) (2025-11-11)
|
package/package.json
CHANGED
|
@@ -439,6 +439,7 @@ export default {
|
|
|
439
439
|
this.$el.addEventListener('touchstart', this.handleTouchStart)
|
|
440
440
|
this.$el.addEventListener('touchend', this.handleTouchEnd)
|
|
441
441
|
this.$el.addEventListener('touchmove', this.handleTouchMove)
|
|
442
|
+
this.emitDefaultDate()
|
|
442
443
|
},
|
|
443
444
|
beforeDestroy() {
|
|
444
445
|
this.$el.removeEventListener('touchstart', this.handleTouchStart)
|
|
@@ -446,6 +447,11 @@ export default {
|
|
|
446
447
|
this.$el.removeEventListener('touchmove', this.handleTouchMove)
|
|
447
448
|
},
|
|
448
449
|
methods: {
|
|
450
|
+
emitDefaultDate() {
|
|
451
|
+
if (!this.setDefaultToday) return
|
|
452
|
+
if (this.value) return
|
|
453
|
+
this.handleEmitDate(this.prettyValue)
|
|
454
|
+
},
|
|
449
455
|
async setupDayjsLocale() {
|
|
450
456
|
const locale = this.lang !== 'ar' && Object.keys(dayjsLocales).includes(this.lang) ? this.lang : 'en'
|
|
451
457
|
await dayjsLocales[locale]?.()
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
:compact="prettyCompact"
|
|
23
23
|
@handlerChatraClick="$emit('chatraClick')"
|
|
24
24
|
@open-side-bar="openSideBar"
|
|
25
|
-
|
|
25
|
+
>
|
|
26
|
+
<slot slot="content-append" name="content-append" v-bind="{ compact: prettyCompact }" />
|
|
27
|
+
</mc-side-bar-center>
|
|
26
28
|
<mc-side-bar-bottom
|
|
27
29
|
:hide-text="hideText"
|
|
28
30
|
:compact="prettyCompact"
|
|
@@ -64,14 +64,16 @@
|
|
|
64
64
|
</div>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
<mc-separator
|
|
68
|
+
v-if="hasContentAppend"
|
|
69
|
+
color="dark-gray"
|
|
70
|
+
indent-top="150"
|
|
71
|
+
indent-bottom="150"
|
|
72
|
+
:indent-left="compact ? '0' : '100'"
|
|
73
|
+
:indent-right="compact ? '0' : '100'"
|
|
74
|
+
/>
|
|
75
|
+
<div v-if="hasContentAppend" class="mc-side-bar-center__content-append">
|
|
76
|
+
<slot name="content-append" :compact="compact"/>
|
|
75
77
|
<mc-side-bar-button
|
|
76
78
|
v-if="chatraConfig"
|
|
77
79
|
icon="chat_messages"
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
with-tooltip
|
|
81
83
|
@click="$emit('handlerChatraClick')"
|
|
82
84
|
/>
|
|
85
|
+
</div>
|
|
83
86
|
</div>
|
|
84
87
|
</template>
|
|
85
88
|
|
|
@@ -188,6 +191,9 @@ export default {
|
|
|
188
191
|
},
|
|
189
192
|
}
|
|
190
193
|
},
|
|
194
|
+
hasContentAppend() {
|
|
195
|
+
return this.chatraConfig || this.$slots['content-append']
|
|
196
|
+
},
|
|
191
197
|
},
|
|
192
198
|
watch: {
|
|
193
199
|
menuMain: {
|
|
@@ -320,6 +326,7 @@ export default {
|
|
|
320
326
|
&__head {
|
|
321
327
|
display: flex;
|
|
322
328
|
align-items: center;
|
|
329
|
+
justify-content: flex-start;
|
|
323
330
|
border-radius: 4px;
|
|
324
331
|
|
|
325
332
|
.mc-button {
|
|
@@ -378,6 +385,9 @@ export default {
|
|
|
378
385
|
}
|
|
379
386
|
}
|
|
380
387
|
}
|
|
388
|
+
&-append {
|
|
389
|
+
@include child-indent-bottom($space-50);
|
|
390
|
+
}
|
|
381
391
|
}
|
|
382
392
|
}
|
|
383
393
|
</style>
|