mediacube-ui-v2 0.0.176 → 0.0.178
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 +37 -28
- package/dist/mediacube-ui-v2.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/patterns/McTabs/McTabs.vue.d.ts +2 -0
- package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +9 -0
- package/dist/types/composables/useDrawer.d.ts +1 -0
- package/dist/types/types/IDrawer.d.ts +1 -0
- package/package.json +1 -1
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(
|
|
@@ -23333,6 +23333,10 @@ const Rg = {
|
|
|
23333
23333
|
type: Boolean,
|
|
23334
23334
|
default: !0
|
|
23335
23335
|
},
|
|
23336
|
+
disableBgClick: {
|
|
23337
|
+
type: Boolean,
|
|
23338
|
+
default: !1
|
|
23339
|
+
},
|
|
23336
23340
|
/**
|
|
23337
23341
|
* Тип иконки
|
|
23338
23342
|
* закрытия в шапке
|
|
@@ -23375,7 +23379,7 @@ const Rg = {
|
|
|
23375
23379
|
}, E = () => {
|
|
23376
23380
|
h.value = r.value, d.value = h.value === 0 ? s.value ? 100 : -100 : 0, n.modelValue && (a("update:modelValue", !1), a("close"));
|
|
23377
23381
|
}, k = () => {
|
|
23378
|
-
n.showOverlay
|
|
23382
|
+
!n.showOverlay || n.disableBgClick || E();
|
|
23379
23383
|
};
|
|
23380
23384
|
return Ce(
|
|
23381
23385
|
() => n.modelValue,
|
|
@@ -23419,7 +23423,7 @@ const Rg = {
|
|
|
23419
23423
|
], 4)
|
|
23420
23424
|
], 6));
|
|
23421
23425
|
}
|
|
23422
|
-
}), Ny = /* @__PURE__ */ cu(Yy, [["__scopeId", "data-v-
|
|
23426
|
+
}), Ny = /* @__PURE__ */ cu(Yy, [["__scopeId", "data-v-a9b67f49"]]), Hy = { class: "mc-main" }, zy = {
|
|
23423
23427
|
key: 0,
|
|
23424
23428
|
class: "mc-main__left"
|
|
23425
23429
|
}, jy = { class: "mc-main__right" }, qy = { class: "mc-main__content-wrapper" }, Uy = { class: "mc-main__content" }, Hb = /* @__PURE__ */ be({
|
|
@@ -24939,12 +24943,20 @@ const dn = /* @__PURE__ */ be({
|
|
|
24939
24943
|
},
|
|
24940
24944
|
setup(t) {
|
|
24941
24945
|
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)
|
|
24946
|
+
const i = e.reactiveProps.drawers.length - 1 - s, o = Math.min(i, e.drawersMaxInCascade - 1), h = e.reactiveProps.drawers.findLastIndex(
|
|
24947
|
+
// @ts-ignore
|
|
24948
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
24949
|
+
(d) => {
|
|
24950
|
+
var u;
|
|
24951
|
+
return !(d != null && d.drawerProps.hasOwnProperty("showOverlay")) || ((u = d.drawerProps) == null ? void 0 : u.showOverlay);
|
|
24952
|
+
}
|
|
24953
|
+
);
|
|
24943
24954
|
return {
|
|
24944
24955
|
...l,
|
|
24945
24956
|
indent_coefficient: i,
|
|
24946
24957
|
real_coefficient: o,
|
|
24947
|
-
indent: o * e.drawersCascadeIndent
|
|
24958
|
+
indent: o * e.drawersCascadeIndent,
|
|
24959
|
+
can_show_overlay: s === h
|
|
24948
24960
|
};
|
|
24949
24961
|
})), n = g(() => ({
|
|
24950
24962
|
zIndex: a.value.length ? 10004 : -1,
|
|
@@ -24959,27 +24971,24 @@ const dn = /* @__PURE__ */ be({
|
|
|
24959
24971
|
class: "mc-drawer-container",
|
|
24960
24972
|
style: Me(n.value)
|
|
24961
24973
|
}, [
|
|
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))
|
|
24974
|
+
(p(!0), _(we, null, Ae(a.value, (i, o) => (p(), X(c(Ny), Be({
|
|
24975
|
+
key: i.id,
|
|
24976
|
+
modelValue: i.modelValue,
|
|
24977
|
+
"onUpdate:modelValue": (h) => i.modelValue = h,
|
|
24978
|
+
ref_for: !0
|
|
24979
|
+
}, i.drawerProps, {
|
|
24980
|
+
"show-overlay": i.can_show_overlay,
|
|
24981
|
+
onClose: () => r(i),
|
|
24982
|
+
class: ["mc-drawer-container__item", { "mc-drawer-container__item--multiple": a.value.length - 1 !== o }],
|
|
24983
|
+
style: { transform: `translateX(-${i.indent}px)` }
|
|
24984
|
+
}), {
|
|
24985
|
+
default: R(() => [
|
|
24986
|
+
(p(), X(Kt(i.component), Be({ ref_for: !0 }, i.componentProps, {
|
|
24987
|
+
onCloseDrawer: () => r(i)
|
|
24988
|
+
}), null, 16, ["onCloseDrawer"]))
|
|
24989
|
+
]),
|
|
24990
|
+
_: 2
|
|
24991
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "show-overlay", "onClose", "class", "style"]))), 128))
|
|
24983
24992
|
], 4));
|
|
24984
24993
|
}
|
|
24985
24994
|
}), F0 = () => {
|