mediacube-ui-v2 0.0.176 → 0.0.177
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/dist/mediacube-ui-v2.js
CHANGED
|
@@ -23201,8 +23201,8 @@ const Rg = {
|
|
|
23201
23201
|
let [k] = m.value;
|
|
23202
23202
|
const w = s.value.find((C) => C.computedId === r.modelValue);
|
|
23203
23203
|
w && !w.isDisabled && (k = w), k && E(k);
|
|
23204
|
-
}, M = (k) => {
|
|
23205
|
-
a("tab-changed", { tab: k });
|
|
23204
|
+
}, M = (k, w) => {
|
|
23205
|
+
a("tab-changed", { tab: k, event: w });
|
|
23206
23206
|
}, $ = () => {
|
|
23207
23207
|
var C;
|
|
23208
23208
|
if (r.loading) return;
|
|
@@ -23222,7 +23222,7 @@ const Rg = {
|
|
|
23222
23222
|
n.meta.router.push(k.to);
|
|
23223
23223
|
return;
|
|
23224
23224
|
}
|
|
23225
|
-
M(k), f(k.computedId), u.value = k.computedId;
|
|
23225
|
+
M(k, w), f(k.computedId), u.value = k.computedId;
|
|
23226
23226
|
}
|
|
23227
23227
|
};
|
|
23228
23228
|
return Ce(
|
|
@@ -24939,12 +24939,20 @@ const dn = /* @__PURE__ */ be({
|
|
|
24939
24939
|
},
|
|
24940
24940
|
setup(t) {
|
|
24941
24941
|
const e = t, a = g(() => e.reactiveProps.drawers.map((l, s) => {
|
|
24942
|
-
const i = e.reactiveProps.drawers.length - 1 - s, o = Math.min(i, e.drawersMaxInCascade - 1)
|
|
24942
|
+
const i = e.reactiveProps.drawers.length - 1 - s, o = Math.min(i, e.drawersMaxInCascade - 1), h = e.reactiveProps.drawers.findLastIndex(
|
|
24943
|
+
// @ts-ignore
|
|
24944
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
24945
|
+
(d) => {
|
|
24946
|
+
var u;
|
|
24947
|
+
return !(d != null && d.drawerProps.hasOwnProperty("showOverlay")) || ((u = d.drawerProps) == null ? void 0 : u.showOverlay);
|
|
24948
|
+
}
|
|
24949
|
+
);
|
|
24943
24950
|
return {
|
|
24944
24951
|
...l,
|
|
24945
24952
|
indent_coefficient: i,
|
|
24946
24953
|
real_coefficient: o,
|
|
24947
|
-
indent: o * e.drawersCascadeIndent
|
|
24954
|
+
indent: o * e.drawersCascadeIndent,
|
|
24955
|
+
can_show_overlay: s === h
|
|
24948
24956
|
};
|
|
24949
24957
|
})), n = g(() => ({
|
|
24950
24958
|
zIndex: a.value.length ? 10004 : -1,
|
|
@@ -24959,27 +24967,24 @@ const dn = /* @__PURE__ */ be({
|
|
|
24959
24967
|
class: "mc-drawer-container",
|
|
24960
24968
|
style: Me(n.value)
|
|
24961
24969
|
}, [
|
|
24962
|
-
(p(!0), _(we, null, Ae(a.value, (i, o) => {
|
|
24963
|
-
|
|
24964
|
-
|
|
24965
|
-
|
|
24966
|
-
|
|
24967
|
-
|
|
24968
|
-
|
|
24969
|
-
|
|
24970
|
-
|
|
24971
|
-
|
|
24972
|
-
|
|
24973
|
-
|
|
24974
|
-
|
|
24975
|
-
|
|
24976
|
-
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
|
|
24980
|
-
_: 2
|
|
24981
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "show-overlay", "onClose", "class", "style"]);
|
|
24982
|
-
}), 128))
|
|
24970
|
+
(p(!0), _(we, null, Ae(a.value, (i, o) => (p(), X(c(Ny), Be({
|
|
24971
|
+
key: i.id,
|
|
24972
|
+
modelValue: i.modelValue,
|
|
24973
|
+
"onUpdate:modelValue": (h) => i.modelValue = h,
|
|
24974
|
+
ref_for: !0
|
|
24975
|
+
}, i.drawerProps, {
|
|
24976
|
+
"show-overlay": i.can_show_overlay,
|
|
24977
|
+
onClose: () => r(i),
|
|
24978
|
+
class: ["mc-drawer-container__item", { "mc-drawer-container__item--multiple": a.value.length - 1 !== o }],
|
|
24979
|
+
style: { transform: `translateX(-${i.indent}px)` }
|
|
24980
|
+
}), {
|
|
24981
|
+
default: R(() => [
|
|
24982
|
+
(p(), X(Kt(i.component), Be({ ref_for: !0 }, i.componentProps, {
|
|
24983
|
+
onCloseDrawer: () => r(i)
|
|
24984
|
+
}), null, 16, ["onCloseDrawer"]))
|
|
24985
|
+
]),
|
|
24986
|
+
_: 2
|
|
24987
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "show-overlay", "onClose", "class", "style"]))), 128))
|
|
24983
24988
|
], 4));
|
|
24984
24989
|
}
|
|
24985
24990
|
}), F0 = () => {
|