@mc-markets/ui 1.1.64 → 1.1.66

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/index.mjs CHANGED
@@ -37,7 +37,7 @@ var De = (e, t, n) => new Promise((o, a) => {
37
37
  });
38
38
  import * as pt from "element-plus";
39
39
  import { ElForm as nn } from "element-plus";
40
- import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as h, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as j, useAttrs as Ie, createCommentVNode as D, createElementVNode as C, Fragment as H, normalizeClass as U, mergeModels as Re, useModel as je, createVNode as x, normalizeProps as vt, guardReactiveProps as gt, Teleport as Te, TransitionGroup as _t, resolveDynamicComponent as ht, toDisplayString as K, useSlots as on, watch as V, normalizeStyle as bt, createTextVNode as Ue, provide as Oe, onMounted as ke, nextTick as le, onUnmounted as Ye, withDirectives as xe, vShow as Pe, inject as He, onDeactivated as Ae, isRef as sn, onActivated as Ke, reactive as an, getCurrentInstance as yt, defineComponent as ge, onBeforeUnmount as Ct, watchEffect as rn, Transition as $t } from "vue";
40
+ import { computed as R, createElementBlock as m, openBlock as d, mergeProps as S, renderSlot as h, ref as _, createBlock as E, createSlots as O, renderList as M, withCtx as $, unref as V, useAttrs as Ie, createCommentVNode as D, createElementVNode as C, Fragment as H, normalizeClass as U, mergeModels as Re, useModel as je, createVNode as x, normalizeProps as vt, guardReactiveProps as gt, Teleport as Te, TransitionGroup as _t, resolveDynamicComponent as ht, toDisplayString as K, useSlots as on, watch as z, normalizeStyle as bt, createTextVNode as Ue, provide as Oe, onMounted as ke, nextTick as le, onUnmounted as Ye, withDirectives as xe, vShow as Pe, inject as He, onDeactivated as Ae, isRef as sn, onActivated as Ke, reactive as an, getCurrentInstance as yt, defineComponent as ge, onBeforeUnmount as Ct, watchEffect as rn, Transition as $t } from "vue";
41
41
  import { ElButton as ln, ElInput as cn, ElFormItem as un, ElTooltip as dn, ElSelect as fn, ElOption as mn, ElOptionGroup as pn, ElPagination as vn, ElRadio as gn, ElRadioGroup as _n, ElRadioButton as hn, ElSwitch as bn, ElTag as yn, ElAlert as Cn, ElDialog as $n, ElNotification as Sn, ElDatePicker as En, ElEmpty as Mn, ElTable as Rn, ElTableColumn as wn } from "element-plus/es";
42
42
  import "element-plus/es/components/base/style/index";
43
43
  import "element-plus/es/components/button/style/index";
@@ -226,7 +226,7 @@ const Tn = /* @__PURE__ */ Object.assign({
226
226
  __name: "Form",
227
227
  setup(e, { expose: t }) {
228
228
  const { innerRef: n, exposedProxy: o } = L("formRef");
229
- return t(o), (a, l) => (d(), E(j(nn), S({
229
+ return t(o), (a, l) => (d(), E(V(nn), S({
230
230
  ref_key: "formRef",
231
231
  ref: n
232
232
  }, a.$attrs, { class: "m-form" }), O({ _: 2 }, [
@@ -290,7 +290,7 @@ const Bn = /* @__PURE__ */ Object.assign({
290
290
  return d(), E(i, S({
291
291
  ref_key: "tooltipRef",
292
292
  ref: a
293
- }, j(n), { "popper-class": j(o) }), O({ _: 2 }, [
293
+ }, V(n), { "popper-class": V(o) }), O({ _: 2 }, [
294
294
  M(s.$slots, (c, u) => ({
295
295
  name: u,
296
296
  fn: $(() => [
@@ -410,7 +410,7 @@ const Bn = /* @__PURE__ */ Object.assign({
410
410
  return d(), E(r, S({
411
411
  ref_key: "radioRef",
412
412
  ref: o
413
- }, j(n), { class: "m-radio" }), O({ _: 2 }, [
413
+ }, V(n), { class: "m-radio" }), O({ _: 2 }, [
414
414
  M(l.$slots, (i, c) => ({
415
415
  name: c,
416
416
  fn: $(() => [
@@ -473,7 +473,7 @@ const Bn = /* @__PURE__ */ Object.assign({
473
473
  return d(), E(r, S({
474
474
  ref_key: "radioButtonRef",
475
475
  ref: o
476
- }, j(n), { class: "m-radio-button" }), O({ _: 2 }, [
476
+ }, V(n), { class: "m-radio-button" }), O({ _: 2 }, [
477
477
  M(l.$slots, (i, c) => ({
478
478
  name: c,
479
479
  fn: $(() => [
@@ -500,8 +500,8 @@ const Bn = /* @__PURE__ */ Object.assign({
500
500
  return d(), E(i, S({
501
501
  ref_key: "switchRef",
502
502
  ref: a
503
- }, j(n), {
504
- "popper-class": j(o),
503
+ }, V(n), {
504
+ "popper-class": V(o),
505
505
  class: "m-switch"
506
506
  }), O({ _: 2 }, [
507
507
  M(s.$slots, (c, u) => ({
@@ -957,23 +957,23 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
957
957
  }
958
958
  },
959
959
  setup(e, { expose: t }) {
960
- const { mergedAttrs: n, className: o } = ce(
960
+ const { className: n } = ce(
961
961
  "mc-datepicker-popper",
962
962
  "popperClass"
963
- ), { innerRef: a, exposedProxy: l } = L("datePickerRef");
964
- return t(l), (s, r) => {
965
- const i = En;
966
- return d(), E(i, S({
963
+ ), { innerRef: o, exposedProxy: a } = L("datePickerRef");
964
+ return t(a), (l, s) => {
965
+ const r = En;
966
+ return d(), E(r, S({
967
967
  ref_key: "datePickerRef",
968
- ref: a
969
- }, j(n), {
968
+ ref: o
969
+ }, l.$attrs, {
970
970
  class: ["m-datepicker", { "style-type-solid": e.styleType === "solid" }],
971
- "popper-class": j(o)
971
+ "popper-class": V(n) + " mc-datepicker-popper"
972
972
  }), O({ _: 2 }, [
973
- M(s.$slots, (c, u) => ({
974
- name: u,
973
+ M(l.$slots, (i, c) => ({
974
+ name: c,
975
975
  fn: $(() => [
976
- h(s.$slots, u)
976
+ h(l.$slots, c)
977
977
  ])
978
978
  }))
979
979
  ]), 1040, ["popper-class", "class"]);
@@ -1135,7 +1135,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1135
1135
  emits: ["close", "update:visible"],
1136
1136
  setup(e, { expose: t, emit: n }) {
1137
1137
  const o = on(), a = e, l = n, s = _(a.visible);
1138
- V(() => a.visible, (u) => {
1138
+ z(() => a.visible, (u) => {
1139
1139
  s.value = u;
1140
1140
  });
1141
1141
  const r = R(() => {
@@ -1151,7 +1151,7 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1151
1151
  const c = () => {
1152
1152
  s.value = !1, l("update:visible", !1), l("close");
1153
1153
  };
1154
- return V(s, (u) => {
1154
+ return z(s, (u) => {
1155
1155
  u && a.duration > 0 && setTimeout(() => {
1156
1156
  c();
1157
1157
  }, a.duration);
@@ -1163,13 +1163,13 @@ const Et = /* @__PURE__ */ G(yo, [["render", Ro]]), wo = /* @__PURE__ */ Object.
1163
1163
  `m-banner--${e.type}`,
1164
1164
  {
1165
1165
  "m-banner--closable": e.closable,
1166
- "m-banner--with-icon": e.icon || j(o).icon
1166
+ "m-banner--with-icon": e.icon || V(o).icon
1167
1167
  }
1168
1168
  ]]),
1169
1169
  style: bt(r.value)
1170
1170
  }, [
1171
1171
  C("div", Po, [
1172
- e.icon || j(o).icon ? (d(), m("div", Ao, [
1172
+ e.icon || V(o).icon ? (d(), m("div", Ao, [
1173
1173
  h(u.$slots, "icon", {}, () => [
1174
1174
  x(ze, {
1175
1175
  name: e.icon,
@@ -1329,7 +1329,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1329
1329
  emits: ["update:modelValue", "tab-click", "tab-remove", "tab-change", "tab-add", "edit"],
1330
1330
  setup(e, { emit: t, slots: n }) {
1331
1331
  const o = _(null), a = _(null), l = _(null), s = _([]), r = _(e.modelValue), i = _(0), c = _(0), u = _([]), v = _(!1), b = _(!1), k = _({ width: "0px", left: "0px" });
1332
- let B = null, z = null, F = null, te = !1, ue = !1, X = null;
1332
+ let B = null, j = null, F = null, te = !1, ue = !1, X = null;
1333
1333
  const de = () => {
1334
1334
  k.value = { width: "0px", left: "0px" };
1335
1335
  }, be = (f) => {
@@ -1427,7 +1427,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1427
1427
  unregisterTab: Je,
1428
1428
  handleTabRemove: ne,
1429
1429
  handleTabAdd: ye
1430
- }), V(() => e.modelValue, (f, p) => {
1430
+ }), z(() => e.modelValue, (f, p) => {
1431
1431
  f !== r.value && (r.value = f, t("tab-change", f, p), y());
1432
1432
  });
1433
1433
  const jt = (f) => {
@@ -1441,7 +1441,7 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1441
1441
  }, N.RESET_DELAY);
1442
1442
  });
1443
1443
  };
1444
- V(s, (f) => {
1444
+ z(s, (f) => {
1445
1445
  if (!(ue || f.length === 0)) {
1446
1446
  if (jt(f)) {
1447
1447
  zt();
@@ -1460,10 +1460,10 @@ const Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1460
1460
  const A = Math.max(0, P - I);
1461
1461
  v.value = w > N.SCROLL_PRECISION, b.value = w < A - N.SCROLL_PRECISION;
1462
1462
  }, Qe = () => {
1463
- z && (cancelAnimationFrame(z), z = null), F && (clearTimeout(F), F = null);
1463
+ j && (cancelAnimationFrame(j), j = null), F && (clearTimeout(F), F = null);
1464
1464
  }, Vt = () => {
1465
- J(), te || y(!1), Qe(), z = requestAnimationFrame(() => {
1466
- J(), z = null;
1465
+ J(), te || y(!1), Qe(), j = requestAnimationFrame(() => {
1466
+ J(), j = null;
1467
1467
  }), F = setTimeout(() => {
1468
1468
  J(), te && (te = !1), F = null;
1469
1469
  }, N.SCROLL_DEBOUNCE);
@@ -1605,7 +1605,7 @@ const qo = /* @__PURE__ */ G(Wo, [["render", Ko], ["__scopeId", "data-v-9d89d73d
1605
1605
  };
1606
1606
  return ke(() => {
1607
1607
  a();
1608
- }), V(() => [e.label, e.name, e.disabled, e.closable], (l, s) => {
1608
+ }), z(() => [e.label, e.name, e.disabled, e.closable], (l, s) => {
1609
1609
  (!s || l[0] !== s[0] || l[1] !== s[1] || l[2] !== s[2] || l[3] !== s[3]) && a();
1610
1610
  }, { immediate: !1 }), Ye(() => {
1611
1611
  t.unregisterTab(n.value);
@@ -1697,7 +1697,7 @@ const Qo = /* @__PURE__ */ G(Zo, [["render", Jo], ["__scopeId", "data-v-f1c56283
1697
1697
  const c = a.value;
1698
1698
  a.value = r, o("update:modelValue", r), o("change", r, c), o("tab-click", r);
1699
1699
  };
1700
- return V(() => n.modelValue, (r) => {
1700
+ return z(() => n.modelValue, (r) => {
1701
1701
  r !== a.value && (a.value = r);
1702
1702
  }), Oe("tabCardContext", {
1703
1703
  activeTab: a,
@@ -1815,7 +1815,7 @@ function Ot(e, t, n = {}) {
1815
1815
  const i = (v) => {
1816
1816
  if (s)
1817
1817
  return;
1818
- const b = j(v);
1818
+ const b = V(v);
1819
1819
  b && !r && (b.addEventListener(e, t, {
1820
1820
  capture: l,
1821
1821
  passive: a
@@ -1823,12 +1823,12 @@ function Ot(e, t, n = {}) {
1823
1823
  }, c = (v) => {
1824
1824
  if (s)
1825
1825
  return;
1826
- const b = j(v);
1826
+ const b = V(v);
1827
1827
  b && r && (b.removeEventListener(e, t, l), r = !1);
1828
1828
  };
1829
1829
  Ye(() => c(o)), Ae(() => c(o)), Tt(() => i(o));
1830
1830
  let u;
1831
- return sn(o) && (u = V(o, (v, b) => {
1831
+ return sn(o) && (u = z(o, (v, b) => {
1832
1832
  c(b), i(v);
1833
1833
  })), () => {
1834
1834
  u == null || u(), c(o), s = !0;
@@ -2123,13 +2123,13 @@ ge({
2123
2123
  }, a = (l = e.theme) => {
2124
2124
  document.documentElement.classList.remove(`van-theme-${l}`);
2125
2125
  };
2126
- V(() => e.theme, (l, s) => {
2126
+ z(() => e.theme, (l, s) => {
2127
2127
  s && a(s), o();
2128
2128
  }, {
2129
2129
  immediate: !0
2130
- }), Ke(o), Ae(a), Ct(a), V(n, (l, s) => {
2130
+ }), Ke(o), Ae(a), Ct(a), z(n, (l, s) => {
2131
2131
  e.themeVarsScope === "global" && Me(l, s);
2132
- }), V(() => e.themeVarsScope, (l, s) => {
2132
+ }), z(() => e.themeVarsScope, (l, s) => {
2133
2133
  s === "global" && Me({}, n.value), l === "global" && Me(n.value, {});
2134
2134
  }), e.themeVarsScope === "global" && Me(n.value, {});
2135
2135
  }
@@ -2232,8 +2232,8 @@ function Js() {
2232
2232
  move: (k) => {
2233
2233
  const B = k.touches[0];
2234
2234
  n.value = (B.clientX < 0 ? 0 : B.clientX) - e.value, o.value = B.clientY - t.value, a.value = Math.abs(n.value), l.value = Math.abs(o.value);
2235
- const z = 10;
2236
- (!s.value || a.value < z && l.value < z) && (s.value = Xs(a.value, l.value)), r.value && (a.value > it || l.value > it) && (r.value = !1);
2235
+ const j = 10;
2236
+ (!s.value || a.value < j && l.value < j) && (s.value = Xs(a.value, l.value)), r.value && (a.value > it || l.value > it) && (r.value = !1);
2237
2237
  },
2238
2238
  start: (k) => {
2239
2239
  u(), e.value = k.touches[0].clientX, t.value = k.touches[0].clientY;
@@ -2259,21 +2259,21 @@ function Qs(e, t) {
2259
2259
  const v = n.deltaY.value > 0 ? a : o, b = bs(
2260
2260
  u.target,
2261
2261
  e.value
2262
- ), { scrollHeight: k, offsetHeight: B, scrollTop: z } = b;
2262
+ ), { scrollHeight: k, offsetHeight: B, scrollTop: j } = b;
2263
2263
  let F = "11";
2264
- z === 0 ? F = B >= k ? "00" : "01" : z + B >= k && (F = "10"), F !== "11" && n.isVertical() && !(parseInt(F, 2) & parseInt(v, 2)) && kt(u);
2264
+ j === 0 ? F = B >= k ? "00" : "01" : j + B >= k && (F = "10"), F !== "11" && n.isVertical() && !(parseInt(F, 2) & parseInt(v, 2)) && kt(u);
2265
2265
  }, s = () => {
2266
2266
  document.addEventListener("touchstart", n.start), document.addEventListener("touchmove", l, { passive: !1 }), ve || document.body.classList.add(dt), ve++;
2267
2267
  }, r = () => {
2268
2268
  ve && (document.removeEventListener("touchstart", n.start), document.removeEventListener("touchmove", l), ve--, ve || document.body.classList.remove(dt));
2269
2269
  }, i = () => t() && s(), c = () => t() && r();
2270
- Tt(i), Ae(c), Ct(c), V(t, (u) => {
2270
+ Tt(i), Ae(c), Ct(c), z(t, (u) => {
2271
2271
  u ? s() : r();
2272
2272
  });
2273
2273
  }
2274
2274
  function Nt(e) {
2275
2275
  const t = _(!1);
2276
- return V(
2276
+ return z(
2277
2277
  e,
2278
2278
  (n) => {
2279
2279
  n && (t.value = n);
@@ -2393,7 +2393,7 @@ var la = ge({
2393
2393
  }
2394
2394
  }, B = (y) => {
2395
2395
  t("clickCloseIcon", y), v();
2396
- }, z = () => {
2396
+ }, j = () => {
2397
2397
  if (e.closeable)
2398
2398
  return x(qs, {
2399
2399
  role: "button",
@@ -2433,7 +2433,7 @@ var la = ge({
2433
2433
  "van-safe-area-bottom": me
2434
2434
  }],
2435
2435
  onKeydown: X
2436
- }, n, ft()), [(y = o.default) == null ? void 0 : y.call(o), z()]), [[Pe, pe]]);
2436
+ }, n, ft()), [(y = o.default) == null ? void 0 : y.call(o), j()]), [[Pe, pe]]);
2437
2437
  }), be = () => {
2438
2438
  const {
2439
2439
  position: y,
@@ -2449,7 +2449,7 @@ var la = ge({
2449
2449
  default: de
2450
2450
  });
2451
2451
  };
2452
- return V(() => e.show, (y) => {
2452
+ return z(() => e.show, (y) => {
2453
2453
  y && !a && (u(), n.tabindex === 0 && le(() => {
2454
2454
  var Y;
2455
2455
  (Y = r.value) == null || Y.focus();
@@ -2504,7 +2504,7 @@ const ia = Le(la), ca = { class: "header" }, ua = { class: "title" }, da = { cla
2504
2504
  }, r = () => {
2505
2505
  l.value = !1;
2506
2506
  };
2507
- return (i, c) => (d(), E(j(ia), S({
2507
+ return (i, c) => (d(), E(V(ia), S({
2508
2508
  show: l.value,
2509
2509
  "onUpdate:show": c[0] || (c[0] = (u) => l.value = u),
2510
2510
  round: "",