@qikdev/vue-ui 0.2.182 → 0.2.184

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/lib.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './style.css';
2
2
  import { defineComponent as Vr, ref as Jt, toRefs as xa, onMounted as wa, onBeforeUnmount as Ho, watch as Er, computed as fr, openBlock as o, createElementBlock as d, renderSlot as H, createCommentVNode as _, normalizeClass as L, useSlots as qo, reactive as Ti, provide as Li, resolveComponent as y, Fragment as S, unref as zn, createBlock as k, withCtx as h, createVNode as m, renderList as F, toDisplayString as v, withDirectives as K, vShow as di, createElementVNode as x, withModifiers as z, createTextVNode as T, h as mr, mergeProps as Oi, toHandlers as Ar, normalizeStyle as He, resolveDynamicComponent as ft, vModelSelect as Tt, pushScopeId as qe, popScopeId as We, Teleport as Wo, vModelText as se, withKeys as ge, TransitionGroup as Go, nextTick as Sa, vModelDynamic as Hn } from "vue";
3
3
  import { EventDispatcher as Ko } from "@qikdev/sdk";
4
- const Yo = "0.2.182";
4
+ const Yo = "0.2.184";
5
5
  class Pt extends Error {
6
6
  }
7
7
  class Zo extends Pt {
@@ -8074,9 +8074,15 @@ const gg = {
8074
8074
  var t = this;
8075
8075
  if (t.to && (t.buildMode || t.nuxtMode))
8076
8076
  return e.preventDefault(), e.stopImmediatePropagation(), t.$sdk.app.to(t.to);
8077
- if (t.href && (t.buildMode || t.nuxtMode)) {
8078
- e.preventDefault(), e.stopImmediatePropagation();
8079
- return;
8077
+ if (t.href) {
8078
+ if (t.buildMode) {
8079
+ e.preventDefault();
8080
+ return;
8081
+ }
8082
+ if (t.nuxtMode) {
8083
+ e.preventDefault(), e.stopImmediatePropagation();
8084
+ return;
8085
+ }
8080
8086
  }
8081
8087
  }
8082
8088
  },
@@ -8126,7 +8132,7 @@ function vg(e, t, n, r, s, i) {
8126
8132
  _: 3
8127
8133
  }, 8, ["onClick", "to", "href", "target", "class"]);
8128
8134
  }
8129
- const bg = /* @__PURE__ */ C(gg, [["render", vg], ["__scopeId", "data-v-0e5f4dde"]]);
8135
+ const bg = /* @__PURE__ */ C(gg, [["render", vg], ["__scopeId", "data-v-f55db950"]]);
8130
8136
  const kg = {
8131
8137
  props: {
8132
8138
  icon: {
@@ -8757,13 +8763,27 @@ const $g = {
8757
8763
  controls: {
8758
8764
  type: Boolean,
8759
8765
  default: !0
8766
+ },
8767
+ autoplay: {
8768
+ type: Boolean,
8769
+ default: !1
8770
+ },
8771
+ muted: {
8772
+ type: Boolean,
8773
+ default: !1
8760
8774
  }
8761
8775
  },
8762
8776
  data() {
8763
8777
  return {
8764
- model: this.item
8778
+ model: this.item,
8779
+ isMuted: this.muted || this.autoplay
8765
8780
  };
8766
8781
  },
8782
+ watch: {
8783
+ muted(e) {
8784
+ this.isMuted = e;
8785
+ }
8786
+ },
8767
8787
  beforeMount() {
8768
8788
  this.$sdk.auth.ensureValidToken();
8769
8789
  },
@@ -8870,7 +8890,7 @@ const $g = {
8870
8890
  return this.padHeight && (e.height = 0, e.paddingBottom = this.padHeight, e.overflow = "hidden", e.position = "relative"), e;
8871
8891
  }
8872
8892
  }
8873
- }, Ng = ["width", "height", "controls"], Lg = ["src", "type"], Pg = ["width", "height", "src", "title"];
8893
+ }, Ng = ["muted", "autoplay", "width", "height", "controls"], Lg = ["src", "type"], Pg = ["width", "height", "src", "title"];
8874
8894
  function Ug(e, t, n, r, s, i) {
8875
8895
  return o(), d("div", {
8876
8896
  class: L(["ux-video", i.className])
@@ -8881,6 +8901,8 @@ function Ug(e, t, n, r, s, i) {
8881
8901
  style: He(i.embedStyle)
8882
8902
  }, [
8883
8903
  x("video", {
8904
+ muted: s.isMuted,
8905
+ autoplay: n.autoplay,
8884
8906
  width: i.actualWidth,
8885
8907
  height: i.actualHeight,
8886
8908
  controls: n.controls
@@ -8909,7 +8931,7 @@ function Ug(e, t, n, r, s, i) {
8909
8931
  ], 4)) : _("", !0)
8910
8932
  ], 2);
8911
8933
  }
8912
- const jg = /* @__PURE__ */ C($g, [["render", Ug], ["__scopeId", "data-v-5787b105"]]);
8934
+ const jg = /* @__PURE__ */ C($g, [["render", Ug], ["__scopeId", "data-v-c287e9d2"]]);
8913
8935
  const Rg = {
8914
8936
  props: {
8915
8937
  value: {