mediacube-ui-v2 0.0.150 → 0.0.152
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
|
@@ -22666,7 +22666,7 @@ const Cg = {
|
|
|
22666
22666
|
},
|
|
22667
22667
|
width: {
|
|
22668
22668
|
type: Number,
|
|
22669
|
-
default:
|
|
22669
|
+
default: 400
|
|
22670
22670
|
}
|
|
22671
22671
|
},
|
|
22672
22672
|
emits: ["toggle", "open", "close", "update:modelValue"],
|
|
@@ -24203,41 +24203,59 @@ const dn = /* @__PURE__ */ ke({
|
|
|
24203
24203
|
type: Object,
|
|
24204
24204
|
default: () => ({})
|
|
24205
24205
|
},
|
|
24206
|
+
drawersCascadeIndent: {
|
|
24207
|
+
type: Number,
|
|
24208
|
+
default: 50
|
|
24209
|
+
},
|
|
24210
|
+
drawersMaxInCascade: {
|
|
24211
|
+
type: Number,
|
|
24212
|
+
default: 7
|
|
24213
|
+
},
|
|
24206
24214
|
reactiveProps: {
|
|
24207
24215
|
type: Object,
|
|
24208
24216
|
default: () => ({})
|
|
24209
24217
|
}
|
|
24210
24218
|
},
|
|
24211
24219
|
setup(t) {
|
|
24212
|
-
const e = t, a = g(() => ({
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24217
|
-
|
|
24218
|
-
|
|
24219
|
-
}
|
|
24220
|
+
const e = t, a = g(() => e.reactiveProps.drawers.map((l, s) => {
|
|
24221
|
+
const i = e.reactiveProps.drawers.length - 1 - s, o = Math.min(i, e.drawersMaxInCascade - 1);
|
|
24222
|
+
return {
|
|
24223
|
+
...l,
|
|
24224
|
+
indent_coefficient: i,
|
|
24225
|
+
real_coefficient: o,
|
|
24226
|
+
indent: o * e.drawersCascadeIndent
|
|
24227
|
+
};
|
|
24228
|
+
})), n = g(() => ({
|
|
24229
|
+
zIndex: a.value.length ? 10004 : -1,
|
|
24230
|
+
visibility: a.value.length ? "visible" : "hidden"
|
|
24231
|
+
})), r = (l) => {
|
|
24232
|
+
var s;
|
|
24233
|
+
l.close(), setTimeout(() => {
|
|
24234
|
+
a.value.every((i) => !i.modelValue) && e.drawerServiceState.closeServiceState();
|
|
24235
|
+
}, ((s = l == null ? void 0 : l.drawerProps) == null ? void 0 : s.duration) || 300);
|
|
24220
24236
|
};
|
|
24221
|
-
return (
|
|
24237
|
+
return (l, s) => (f(), _("div", {
|
|
24222
24238
|
class: "mc-drawer-container",
|
|
24223
|
-
style: $e(
|
|
24239
|
+
style: $e(n.value)
|
|
24224
24240
|
}, [
|
|
24225
|
-
(f(!0), _(_e, null, De(
|
|
24226
|
-
key:
|
|
24227
|
-
modelValue:
|
|
24228
|
-
"onUpdate:modelValue": (
|
|
24241
|
+
(f(!0), _(_e, null, De(a.value, (i, o) => (f(), Z(c(Dy), Ee({
|
|
24242
|
+
key: i.id,
|
|
24243
|
+
modelValue: i.modelValue,
|
|
24244
|
+
"onUpdate:modelValue": (p) => i.modelValue = p,
|
|
24229
24245
|
ref_for: !0
|
|
24230
|
-
},
|
|
24231
|
-
"show-overlay":
|
|
24232
|
-
onClose: () =>
|
|
24246
|
+
}, i.drawerProps, {
|
|
24247
|
+
"show-overlay": o + 1 === a.value.length,
|
|
24248
|
+
onClose: () => r(i),
|
|
24249
|
+
class: ["mc-drawer-container__item", { "mc-drawer-container__item--blur": a.value.length - 1 !== o }],
|
|
24250
|
+
style: { transform: `translateX(-${i.indent}px)` }
|
|
24233
24251
|
}), {
|
|
24234
24252
|
default: Y(() => [
|
|
24235
|
-
(f(), Z(Gt(
|
|
24236
|
-
onCloseDrawer: () =>
|
|
24253
|
+
(f(), Z(Gt(i.component), Ee({ ref_for: !0 }, i.componentProps, {
|
|
24254
|
+
onCloseDrawer: () => r(i)
|
|
24237
24255
|
}), null, 16, ["onCloseDrawer"]))
|
|
24238
24256
|
]),
|
|
24239
24257
|
_: 2
|
|
24240
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "show-overlay", "onClose"]))), 128))
|
|
24258
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "show-overlay", "onClose", "class", "style"]))), 128))
|
|
24241
24259
|
], 4));
|
|
24242
24260
|
}
|
|
24243
24261
|
}), w0 = () => {
|