ra-element 0.1.18 → 0.1.21

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.
@@ -1783,7 +1783,6 @@ function Bt(e, t) {
1783
1783
  function ut(e, t) {
1784
1784
  if (process.env.NODE_ENV !== "production") {
1785
1785
  const n = De(e) ? new ig(`[${e}] ${t}`) : e;
1786
- console.warn(n);
1787
1786
  }
1788
1787
  }
1789
1788
  const Gp = {
@@ -18022,7 +18021,7 @@ var t8 = /%[sdj%]/g, kb = function() {
18022
18021
  typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (kb = function(t, n) {
18023
18022
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(o) {
18024
18023
  return typeof o == "string";
18025
- }) && console.warn(t, n);
18024
+ });
18026
18025
  });
18027
18026
  function gc(e) {
18028
18027
  if (!e || !e.length) return null;
@@ -18562,7 +18561,7 @@ var bc = yc(), is = /* @__PURE__ */ function() {
18562
18561
  try {
18563
18562
  C = y.validator(y, v.value, w, v.source, u);
18564
18563
  } catch (_) {
18565
- console.error?.(_), u.suppressValidatorError || setTimeout(function() {
18564
+ console.error == null, u.suppressValidatorError || setTimeout(function() {
18566
18565
  throw _;
18567
18566
  }, 0), w(_.message);
18568
18567
  }
@@ -18765,7 +18764,7 @@ const x8 = H({
18765
18764
  }, V = (re) => {
18766
18765
  var he, $e;
18767
18766
  const { errors: oe, fields: ue } = re;
18768
- (!oe || !ue) && console.error(re), A("error"), h.value = oe ? ($e = (he = oe?.[0]) == null ? void 0 : he.message) != null ? $e : `${n.prop} is required` : "", a?.emit("validate", n.prop, !1, h.value);
18767
+ A("error"), h.value = oe ? ($e = (he = oe?.[0]) == null ? void 0 : he.message) != null ? $e : `${n.prop} is required` : "", a?.emit("validate", n.prop, !1, h.value);
18769
18768
  }, q = () => {
18770
18769
  A("success"), a?.emit("validate", n.prop, !0, "");
18771
18770
  }, j = async (re) => {
@@ -21825,7 +21824,7 @@ const ih = "ElSelect", lA = H({
21825
21824
  setup(e, { emit: t, slots: n }) {
21826
21825
  const o = at();
21827
21826
  o.appContext.config.warnHandler = (...h) => {
21828
- !h[0] || h[0].includes('Slot "default" invoked outside of the render function') || console.warn(...h);
21827
+ !h[0] || h[0].includes('Slot "default" invoked outside of the render function');
21829
21828
  };
21830
21829
  const a = k(() => {
21831
21830
  const { modelValue: h, multiple: p } = e, m = p ? [] : void 0;
@@ -28774,7 +28773,7 @@ function NV(e) {
28774
28773
  if (N.some(({ type: A }) => A === "expand")) {
28775
28774
  const A = $(T), V = w(T, M, void 0, A), q = t?.renderExpanded;
28776
28775
  if (!q)
28777
- return console.error("[Element Error]renderExpanded is required."), V;
28776
+ return V;
28778
28777
  const j = [[V]];
28779
28778
  return (t.props.preserveExpandedContent || A) && j[0].push(Le("tr", {
28780
28779
  key: `expanded-row__${V.key}`,
@@ -37783,7 +37782,7 @@ const Jh = "ElUpload", Qh = (e) => {
37783
37782
  }
37784
37783
  const i = (p, m) => {
37785
37784
  const v = o(m);
37786
- v && (console.error(p), v.status = "fail", s(v), e.onError(p, v, n.value), e.onChange(v, n.value));
37785
+ v && (v.status = "fail", s(v), e.onError(p, v, n.value), e.onChange(v, n.value));
37787
37786
  }, u = (p, m) => {
37788
37787
  const v = o(m);
37789
37788
  v && (e.onProgress(p, v, n.value), v.status = "uploading", v.percentage = Math.round(p.percent));
@@ -41693,10 +41692,7 @@ const n7 = /* @__PURE__ */ H({
41693
41692
  itemGap: { type: Number, default: 15 }
41694
41693
  },
41695
41694
  setup(e, { expose: t }) {
41696
- const n = e, o = Jt(), a = x(null), r = x(null), s = x(!1), i = x(!1), u = x(0), c = x(0), d = x(0), f = x(0), h = x(null), p = x(0), m = k(() => {
41697
- const $ = o?.default();
41698
- return console.log("slotContent:", $[0]?.children?.length), $[0]?.children?.length || 0;
41699
- }), v = k(() => m.value > n.showItems), g = k(() => n.showItems), y = k(() => {
41695
+ const n = e, o = Jt(), a = x(null), r = x(null), s = x(!1), i = x(!1), u = x(0), c = x(0), d = x(0), f = x(0), h = x(null), p = x(0), m = k(() => (o?.default())[0]?.children?.length || 0), v = k(() => m.value > n.showItems), g = k(() => n.showItems), y = k(() => {
41700
41696
  if (!v.value || !o.default)
41701
41697
  return [];
41702
41698
  const $ = o?.default();
@@ -41786,7 +41782,7 @@ const n7 = /* @__PURE__ */ H({
41786
41782
  for (const [o, a] of t)
41787
41783
  n[o] = a;
41788
41784
  return n;
41789
- }, o7 = /* @__PURE__ */ Qn(n7, [["__scopeId", "data-v-c94695bb"]]), a7 = /* @__PURE__ */ H({
41785
+ }, o7 = /* @__PURE__ */ Qn(n7, [["__scopeId", "data-v-45910216"]]), a7 = /* @__PURE__ */ H({
41790
41786
  name: "RaButton",
41791
41787
  __name: "index",
41792
41788
  props: {
@@ -42413,7 +42409,7 @@ const _7 = {
42413
42409
  }), $;
42414
42410
  }), y = ($, P) => $?.length ? $.reduce((R, K, B) => (B <= P ? R += K : R += 0, R), 0) : 0, S = ($, P) => {
42415
42411
  let R = { width: "100%", "margin-right": h.itemMarginRight + "px" };
42416
- return h.inline && (typeof h.inline == "number" ? (R.width = `calc(((100% - (${h.itemMarginRight} * ${h.inline - 1}px)) / ${h.inline}) * ${g.value[$]} + ${h.itemMarginRight} * ${g.value[$] - 1}px)`, y(g.value, $) % h.inline === 0 && (R["margin-right"] = "0")) : R.width = ""), P && (R = { ...R, ...P }), console.log("style", R, $), R;
42412
+ return h.inline && (typeof h.inline == "number" ? (R.width = `calc(((100% - (${h.itemMarginRight} * ${h.inline - 1}px)) / ${h.inline}) * ${g.value[$]} + ${h.itemMarginRight} * ${g.value[$] - 1}px)`, y(g.value, $) % h.inline === 0 && (R["margin-right"] = "0")) : R.width = ""), P && (R = { ...R, ...P }), R;
42417
42413
  }, b = k(() => Uo(h.options).map(($) => ($.prop || ($.prop = Aw()), $))), w = ($ = !1) => {
42418
42414
  h.options.forEach((P) => {
42419
42415
  $ ? ["multipleSelect", "dataRange", "dateTimeRange", "checkbox", "multipleTreeSelect"].includes(P.formType) ? v.value[P.prop] = P.defaultValue_raw || [] : v.value[P.prop] = P.defaultValue_raw || "" : P.prop && (v.value[P.prop] === void 0 || v.value[P.prop] === null) && (["multipleSelect", "dataRange", "dateTimeRange", "checkbox", "multipleTreeSelect"].includes(P.formType) ? v.value[P.prop] = P.defaultValue_raw || [] : v.value[P.prop] = P.defaultValue_raw || "");
@@ -42562,7 +42558,7 @@ const _7 = {
42562
42558
  }, 16, ["class", "model", "inline"]);
42563
42559
  };
42564
42560
  }
42565
- }), $7 = /* @__PURE__ */ Qn(E7, [["__scopeId", "data-v-4080224a"]]), T7 = ["innerHTML"], O7 = /* @__PURE__ */ H({
42561
+ }), $7 = /* @__PURE__ */ Qn(E7, [["__scopeId", "data-v-f579ba05"]]), T7 = ["innerHTML"], O7 = /* @__PURE__ */ H({
42566
42562
  name: "RaHelpTip",
42567
42563
  __name: "index",
42568
42564
  props: {
@@ -43545,7 +43541,8 @@ const j7 = {
43545
43541
  _: 1
43546
43542
  })
43547
43543
  ], 8, cW),
43548
- z("span", {
43544
+ e.disabled ? J("", !0) : (E(), D("span", {
43545
+ key: 0,
43549
43546
  class: "el-upload__delete",
43550
43547
  onClick: (M) => h(T)
43551
43548
  }, [
@@ -43555,7 +43552,7 @@ const j7 = {
43555
43552
  ]),
43556
43553
  _: 1
43557
43554
  })
43558
- ], 8, dW)
43555
+ ], 8, dW))
43559
43556
  ])
43560
43557
  ])
43561
43558
  ]),
@@ -43565,7 +43562,7 @@ const j7 = {
43565
43562
  ]);
43566
43563
  };
43567
43564
  }
43568
- }), pW = /* @__PURE__ */ Qn(fW, [["__scopeId", "data-v-3c9ffb1d"]]), vW = [
43565
+ }), pW = /* @__PURE__ */ Qn(fW, [["__scopeId", "data-v-3de0de78"]]), vW = [
43569
43566
  o7,
43570
43567
  Yr,
43571
43568
  l7,