mediacube-ui-v2 0.0.150 → 0.0.151

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.
@@ -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
- zIndex: e.reactiveProps.drawers.length ? 10004 : -1,
24214
- visibility: e.reactiveProps.drawers.length ? "visible" : "hidden"
24215
- })), n = (r) => {
24216
- var l;
24217
- r.close(), setTimeout(() => {
24218
- e.reactiveProps.drawers.every((s) => !s.modelValue) && e.drawerServiceState.closeServiceState();
24219
- }, ((l = r == null ? void 0 : r.drawerProps) == null ? void 0 : l.duration) || 300);
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 (r, l) => (f(), _("div", {
24237
+ return (l, s) => (f(), _("div", {
24222
24238
  class: "mc-drawer-container",
24223
- style: $e(a.value)
24239
+ style: $e(n.value)
24224
24240
  }, [
24225
- (f(!0), _(_e, null, De(e.reactiveProps.drawers, (s, i) => (f(), Z(c(Dy), Ee({
24226
- key: s.id,
24227
- modelValue: s.modelValue,
24228
- "onUpdate:modelValue": (o) => s.modelValue = o,
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
- }, s.drawerProps, {
24231
- "show-overlay": i + 1 === e.reactiveProps.drawers.length,
24232
- onClose: () => n(s)
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(s.component), Ee({ ref_for: !0 }, s.componentProps, {
24236
- onCloseDrawer: () => n(s)
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 = () => {