@matechat/core 1.5.2 → 1.6.0-alpha.0

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/Bubble/index.js CHANGED
@@ -72,7 +72,7 @@ const T = {
72
72
  })
73
73
  ],
74
74
  -1
75
- /* HOISTED */
75
+ /* CACHED */
76
76
  )
77
77
  ]),
78
78
  4
@@ -204,7 +204,7 @@ const T = {
204
204
  })
205
205
  ],
206
206
  -1
207
- /* HOISTED */
207
+ /* CACHED */
208
208
  )
209
209
  ]),
210
210
  4
@@ -345,21 +345,21 @@ function J(i, a) {
345
345
  { class: "loading-dot dot-start" },
346
346
  null,
347
347
  -1
348
- /* HOISTED */
348
+ /* CACHED */
349
349
  ),
350
350
  v(
351
351
  "div",
352
352
  { class: "loading-dot dot-middle" },
353
353
  null,
354
354
  -1
355
- /* HOISTED */
355
+ /* CACHED */
356
356
  ),
357
357
  v(
358
358
  "div",
359
359
  { class: "loading-dot dot-end" },
360
360
  null,
361
361
  -1
362
- /* HOISTED */
362
+ /* CACHED */
363
363
  )
364
364
  ]));
365
365
  }
package/Input/index.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.mc-textarea{width:100%;height:64px;padding:4px 0;color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 14px);background-color:var(--devui-form-control-bg, #ffffff);vertical-align:middle;outline:none;box-sizing:border-box;resize:none;border:none}.mc-textarea.mc-textarea-simple{height:32px}.mc-textarea.mc-textarea-disabled{color:var(--devui-disabled-text, #cfd0d3);background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.mc-textarea::placeholder{color:var(--devui-placeholder, #babbc0)}.mc-button[data-v-183bc985]{position:relative;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;height:32px;line-height:1.5;color:var(--devui-light-text, #ffffff);font-size:var(--devui-font-size, 14px);padding:0 12px;border-radius:20px;background-color:var(--devui-primary, #5e7ce0);overflow:hidden;border:none;cursor:pointer;transition:background-color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),border-color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.mc-button.mc-button-loading svg[data-v-183bc985]{animation:rotating-183bc985 1s linear infinite}.mc-button.mousedown[data-v-183bc985]:not(:disabled){transform:scale(.95)}.mc-button.mc-button-simple[data-v-183bc985]{width:32px;padding:6px;flex-shrink:0;border-radius:100%}.mc-button.mc-button-simple svg[data-v-183bc985]{margin-right:0}.mc-button[data-v-183bc985]:hover{background-color:var(--devui-primary-hover, #7693f5)}.mc-button[data-v-183bc985]:active{background-color:var(--devui-primary-active, #344899)}.mc-button[data-v-183bc985]:disabled{color:var(--devui-light-text, #ffffff);background-color:var(--devui-primary-disabled, #beccfa);cursor:not-allowed}.mc-button .mc-button-content[data-v-183bc985]{display:inline-flex;align-items:center;font-size:var(--devui-font-size, 14px)}.mc-button .mc-button-water-wave[data-v-183bc985]{position:absolute;background-color:var(--devui-base-bg, #ffffff);border-radius:50%;opacity:0;width:20px;height:20px;transform:translate(-50%,-50%);animation:waterWave-183bc985 var(--devui-animation-duration-slow, .3s) var(--devui-animation-linear, cubic-bezier(0, 0, 1, 1))}.mc-button svg[data-v-183bc985]{margin-right:4px}.mc-button svg[data-v-183bc985] path{fill:var(--devui-light-text, #ffffff)}@keyframes rotating-183bc985{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes waterWave-183bc985{0%{opacity:.2;width:30px;height:30px}to{opacity:0;width:200px;height:200px}}body[ui-theme=infinity-theme]{--mc-text: #aeaeae;--mc-box-shadow: rgba(25, 25, 25, .06)}body[ui-theme=galaxy-theme]{--mc-text: #4e5057;--mc-box-shadow: rgba(206, 209, 219, .06)}.mc-input{display:flex;flex-direction:column;width:100%;padding:12px 0;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:16px;box-sizing:border-box;background-color:var(--devui-base-bg, #ffffff)}.mc-input.mc-input-simple{border-radius:24px}.mc-input.mc-input-simple .mc-input-content{padding:0 20px}.mc-input.mc-input-borderless{border:none;box-shadow:0 1px 8px 0 var(--mc-box-shadow, rgba(25, 25, 25, .06))}.mc-input.mc-input-disabled{background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.mc-input .mc-input-content{display:flex;align-items:flex-end;padding:0 16px}.mc-input .mc-input-foot{display:flex;justify-content:space-between;align-items:center;height:32px;padding:0 16px}.mc-input .mc-input-foot .mc-input-foot-left{flex:1;height:100%;display:flex;align-items:center}.mc-input .mc-input-foot .mc-input-foot-left .mc-input-foot-count{color:var(--mc-text, #aeaeae);font-size:var(--devui-font-size-sm, 12px)}
1
+ @charset "UTF-8";.mc-textarea{width:100%;height:64px;padding:4px 0;color:var(--devui-text, #252b3a);font-size:var(--devui-font-size, 14px);background-color:var(--devui-form-control-bg, #ffffff);vertical-align:middle;outline:none;box-sizing:border-box;resize:none;border:none}.mc-textarea.mc-textarea-simple{height:32px}.mc-textarea.mc-textarea-disabled{color:var(--devui-disabled-text, #cfd0d3);background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.mc-textarea::placeholder{color:var(--devui-placeholder, #babbc0)}.mc-button[data-v-8b1b116f]{position:relative;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;height:32px;line-height:1.5;color:var(--devui-light-text, #ffffff);font-size:var(--devui-font-size, 14px);padding:0 12px;border-radius:20px;background-color:var(--devui-primary, #5e7ce0);overflow:hidden;border:none;cursor:pointer;transition:background-color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),border-color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.mc-button.mc-button-loading svg[data-v-8b1b116f]{animation:rotating-8b1b116f 1s linear infinite}.mc-button.mousedown[data-v-8b1b116f]:not(:disabled){transform:scale(.95)}.mc-button.mc-button-simple[data-v-8b1b116f]{width:32px;padding:6px;flex-shrink:0;border-radius:100%}.mc-button.mc-button-simple svg[data-v-8b1b116f]{margin-right:0}.mc-button[data-v-8b1b116f]:hover{background-color:var(--devui-primary-hover, #7693f5)}.mc-button[data-v-8b1b116f]:active{background-color:var(--devui-primary-active, #344899)}.mc-button[data-v-8b1b116f]:disabled{color:var(--devui-light-text, #ffffff);background-color:var(--devui-primary-disabled, #beccfa);cursor:not-allowed}.mc-button .mc-button-content[data-v-8b1b116f]{display:inline-flex;align-items:center;font-size:var(--devui-font-size, 14px)}.mc-button .mc-button-water-wave[data-v-8b1b116f]{position:absolute;background-color:var(--devui-base-bg, #ffffff);border-radius:50%;opacity:0;width:20px;height:20px;transform:translate(-50%,-50%);animation:waterWave-8b1b116f var(--devui-animation-duration-slow, .3s) var(--devui-animation-linear, cubic-bezier(0, 0, 1, 1))}.mc-button svg[data-v-8b1b116f]{margin-right:4px}.mc-button svg[data-v-8b1b116f] path{fill:var(--devui-light-text, #ffffff)}@keyframes rotating-8b1b116f{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes waterWave-8b1b116f{0%{opacity:.2;width:30px;height:30px}to{opacity:0;width:200px;height:200px}}body[ui-theme=infinity-theme]{--mc-text: #aeaeae;--mc-box-shadow: rgba(25, 25, 25, .06)}body[ui-theme=galaxy-theme]{--mc-text: #4e5057;--mc-box-shadow: rgba(206, 209, 219, .06)}.mc-input{display:flex;flex-direction:column;width:100%;padding:12px 0;border:1px solid var(--devui-form-control-line, #d7d8da);border-radius:16px;box-sizing:border-box;background-color:var(--devui-base-bg, #ffffff)}.mc-input.mc-input-simple{border-radius:24px}.mc-input.mc-input-simple .mc-input-content{padding:0 20px}.mc-input.mc-input-borderless{border:none;box-shadow:0 1px 8px 0 var(--mc-box-shadow, rgba(25, 25, 25, .06))}.mc-input.mc-input-disabled{background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.mc-input .mc-input-content{display:flex;align-items:flex-end;padding:0 16px}.mc-input .mc-input-foot{display:flex;justify-content:space-between;align-items:center;height:32px;padding:0 16px}.mc-input .mc-input-foot .mc-input-foot-left{flex:1;height:100%;display:flex;align-items:center}.mc-input .mc-input-foot .mc-input-foot-left .mc-input-foot-count{color:var(--mc-text, #aeaeae);font-size:var(--devui-font-size-sm, 12px)}
package/Input/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./index.css";
2
- import { defineComponent as k, inject as T, computed as M, withDirectives as j, createElementBlock as p, openBlock as u, normalizeClass as $, unref as n, isRef as z, vModelText as W, nextTick as A, createElementVNode as C, ref as S, reactive as O, createCommentVNode as _, createBlock as K, toDisplayString as x, normalizeStyle as R, watch as U, provide as X, renderSlot as v, createVNode as w } from "vue";
2
+ import { defineComponent as k, inject as T, computed as M, withDirectives as j, createElementBlock as p, openBlock as u, normalizeClass as $, unref as o, isRef as z, vModelText as W, nextTick as A, createElementVNode as C, ref as S, reactive as O, createCommentVNode as g, createBlock as K, toDisplayString as x, normalizeStyle as R, watch as U, provide as X, renderSlot as v, createVNode as w } from "vue";
3
3
  import { useMcI18n as F } from "@matechat/core/Locale";
4
- var b = /* @__PURE__ */ ((t) => (t.Simple = "simple", t.Full = "full", t))(b || {}), P = /* @__PURE__ */ ((t) => (t.Bordered = "bordered", t.BorderLess = "borderless", t))(P || {}), E = /* @__PURE__ */ ((t) => (t.Simple = "simple", t.Full = "full", t))(E || {}), y = /* @__PURE__ */ ((t) => (t.Enter = "enter", t.ShiftEnter = "shiftEnter", t))(y || {});
4
+ var _ = /* @__PURE__ */ ((t) => (t.Simple = "simple", t.Full = "full", t))(_ || {}), P = /* @__PURE__ */ ((t) => (t.Bordered = "bordered", t.BorderLess = "borderless", t))(P || {}), E = /* @__PURE__ */ ((t) => (t.Simple = "simple", t.Full = "full", t))(E || {}), y = /* @__PURE__ */ ((t) => (t.Enter = "enter", t.ShiftEnter = "shiftEnter", t))(y || {});
5
5
  const Y = {
6
6
  value: {
7
7
  type: String,
@@ -48,54 +48,54 @@ const Y = {
48
48
  }, q = ["change", "submit", "cancel", "focus", "blur"], B = "mc-input", G = ["placeholder", "disabled", "maxlength"], H = /* @__PURE__ */ k({
49
49
  __name: "textarea",
50
50
  setup(t) {
51
- const { t: o } = F(), { inputValue: s, rootProps: e, rootEmits: i } = T(B), a = M(() => {
52
- let r = "", f = "";
53
- return e.submitShortKey === y.Enter && (r = "Enter", f = "Shift + Enter"), e.submitShortKey === y.ShiftEnter && (r = "Shift + Enter", f = "Enter"), e.placeholder ?? (r ? o("Input.pleaseEnterPlaceholder", { enterKey: r, shiftEnterKey: f }) : o("Input.pleaseEnter"));
51
+ const { t: s } = F(), { inputValue: n, rootProps: e, rootEmits: i } = T(B), a = M(() => {
52
+ let r = "", m = "";
53
+ return e.submitShortKey === y.Enter && (r = "Enter", m = "Shift + Enter"), e.submitShortKey === y.ShiftEnter && (r = "Shift + Enter", m = "Enter"), e.placeholder ?? (r ? s("Input.pleaseEnterPlaceholder", { enterKey: r, shiftEnterKey: m }) : s("Input.pleaseEnter"));
54
54
  });
55
55
  let c = !1;
56
56
  const d = () => {
57
57
  A(() => {
58
- i("change", s.value);
58
+ i("change", n.value);
59
59
  });
60
60
  }, h = () => {
61
61
  c || d();
62
62
  }, l = () => {
63
63
  c = !0;
64
- }, g = () => {
64
+ }, b = () => {
65
65
  c = !1, d();
66
- }, m = (r) => {
66
+ }, f = (r) => {
67
67
  if (e.submitShortKey === null)
68
68
  return;
69
- (e.submitShortKey === y.Enter ? !r.shiftKey : e.submitShortKey === y.ShiftEnter ? r.shiftKey : !1) && r.key === "Enter" && !c && (r.preventDefault(), i("submit", s.value), s.value = "");
69
+ (e.submitShortKey === y.Enter ? !r.shiftKey : e.submitShortKey === y.ShiftEnter ? r.shiftKey : !1) && r.key === "Enter" && !c && (r.preventDefault(), i("submit", n.value), n.value = "", i("change", n.value));
70
70
  }, L = (r) => {
71
71
  i("focus", r);
72
72
  }, N = (r) => {
73
73
  i("blur", r);
74
74
  };
75
- return (r, f) => j((u(), p("textarea", {
76
- "onUpdate:modelValue": f[0] || (f[0] = (D) => z(s) ? s.value = D : null),
75
+ return (r, m) => j((u(), p("textarea", {
76
+ "onUpdate:modelValue": m[0] || (m[0] = (D) => z(n) ? n.value = D : null),
77
77
  placeholder: a.value,
78
- disabled: n(e).disabled,
79
- maxlength: n(e).maxLength,
78
+ disabled: o(e).disabled,
79
+ maxlength: o(e).maxLength,
80
80
  class: $([
81
81
  "mc-textarea",
82
- { "mc-textarea-simple": n(e).displayType === n(b).Simple, "mc-textarea-disabled": n(e).disabled }
82
+ { "mc-textarea-simple": o(e).displayType === o(_).Simple, "mc-textarea-disabled": o(e).disabled }
83
83
  ]),
84
84
  onInput: h,
85
85
  onCompositionstart: l,
86
- onCompositionend: g,
87
- onKeydown: m,
86
+ onCompositionend: b,
87
+ onKeydown: f,
88
88
  onFocus: L,
89
89
  onBlur: N
90
90
  }, null, 42, G)), [
91
- [W, n(s)]
91
+ [W, o(n)]
92
92
  ]);
93
93
  }
94
- }), I = (t, o) => {
95
- const s = t.__vccOpts || t;
96
- for (const [e, i] of o)
97
- s[e] = i;
98
- return s;
94
+ }), I = (t, s) => {
95
+ const n = t.__vccOpts || t;
96
+ for (const [e, i] of s)
97
+ n[e] = i;
98
+ return n;
99
99
  }, J = {}, Q = {
100
100
  width: "16px",
101
101
  height: "16px",
@@ -103,8 +103,8 @@ const Y = {
103
103
  version: "1.1",
104
104
  xmlns: "http://www.w3.org/2000/svg"
105
105
  };
106
- function e1(t, o) {
107
- return u(), p("svg", Q, o[0] || (o[0] = [
106
+ function e1(t, s) {
107
+ return u(), p("svg", Q, s[0] || (s[0] = [
108
108
  C(
109
109
  "g",
110
110
  {
@@ -117,7 +117,7 @@ function e1(t, o) {
117
117
  C("path", { d: "M8,12 C8.27614237,12 8.5,12.2238576 8.5,12.5 L8.5,14.5 C8.5,14.7761424 8.27614237,15 8,15 C7.72385763,15 7.5,14.7761424 7.5,14.5 L7.5,12.5 C7.5,12.2238576 7.72385763,12 8,12 Z M11.0495421,11.3466838 L12.2251126,12.9647178 C12.3874251,13.1881217 12.3379006,13.5008065 12.1144968,13.663119 C11.8910929,13.8254314 11.5784081,13.775907 11.4160956,13.5525031 L10.2405251,11.9344691 C10.0782127,11.7110652 10.1277371,11.3983804 10.351141,11.236068 C10.5745449,11.0737556 10.8872297,11.12328 11.0495421,11.3466838 Z M5.64885899,11.236068 C5.87226287,11.3983804 5.92178728,11.7110652 5.75947486,11.9344691 L4.58390436,13.5525031 C4.42159194,13.775907 4.10890711,13.8254314 3.88550323,13.663119 C3.66209936,13.5008065 3.61257495,13.1881217 3.77488736,12.9647178 L4.95045787,11.3466838 C5.11277028,11.12328 5.42545512,11.0737556 5.64885899,11.236068 Z M12.4342628,8.91504822 L14.3363759,9.53308221 C14.5990029,9.61841489 14.7427283,9.90049196 14.6573956,10.163119 C14.5720629,10.425746 14.2899859,10.5694714 14.0273589,10.4841387 L12.1252458,9.86610473 C11.8626188,9.78077205 11.7188934,9.49869498 11.8042261,9.23606798 C11.8895588,8.97344097 12.1716358,8.82971553 12.4342628,8.91504822 Z M4.19577393,9.23606798 C4.28110662,9.49869498 4.13738118,9.78077205 3.87475417,9.86610473 L1.97264114,10.4841387 C1.71001414,10.5694714 1.42793707,10.425746 1.34260439,10.163119 C1.2572717,9.90049196 1.40099714,9.61841489 1.66362415,9.53308221 L3.56573718,8.91504822 C3.82836418,8.82971553 4.11044125,8.97344097 4.19577393,9.23606798 Z M14.6573956,5.83688104 C14.7427283,6.09950804 14.5990029,6.38158511 14.3363759,6.46691779 L12.4342628,7.08495178 C12.1716358,7.17028447 11.8895588,7.02655903 11.8042261,6.76393202 C11.7188934,6.50130502 11.8626188,6.21922795 12.1252458,6.13389527 L14.0273589,5.51586128 C14.2899859,5.43052859 14.5720629,5.57425403 14.6573956,5.83688104 Z M1.97264114,5.51586128 L3.87475417,6.13389527 C4.13738118,6.21922795 4.28110662,6.50130502 4.19577393,6.76393202 C4.11044125,7.02655903 3.82836418,7.17028447 3.56573718,7.08495178 L1.66362415,6.46691779 C1.40099714,6.38158511 1.2572717,6.09950804 1.34260439,5.83688104 C1.42793707,5.57425403 1.71001414,5.43052859 1.97264114,5.51586128 Z M12.1144968,2.33688104 C12.3379006,2.49919345 12.3874251,2.81187829 12.2251126,3.03528216 L11.0495421,4.65331615 C10.8872297,4.87672003 10.5745449,4.92624444 10.351141,4.76393202 C10.1277371,4.60161961 10.0782127,4.28893477 10.2405251,4.0655309 L11.4160956,2.44749691 C11.5784081,2.22409304 11.8910929,2.17456862 12.1144968,2.33688104 Z M4.58390436,2.44749691 L5.75947486,4.0655309 C5.92178728,4.28893477 5.87226287,4.60161961 5.64885899,4.76393202 C5.42545512,4.92624444 5.11277028,4.87672003 4.95045787,4.65331615 L3.77488736,3.03528216 C3.61257495,2.81187829 3.66209936,2.49919345 3.88550323,2.33688104 C4.10890711,2.17456862 4.42159194,2.22409304 4.58390436,2.44749691 Z M8,1 C8.27614237,1 8.5,1.22385763 8.5,1.5 L8.5,3.5 C8.5,3.77614237 8.27614237,4 8,4 C7.72385763,4 7.5,3.77614237 7.5,3.5 L7.5,1.5 C7.5,1.22385763 7.72385763,1 8,1 Z" })
118
118
  ],
119
119
  -1
120
- /* HOISTED */
120
+ /* CACHED */
121
121
  )
122
122
  ]));
123
123
  }
@@ -128,8 +128,8 @@ const t1 = /* @__PURE__ */ I(J, [["render", e1]]), n1 = {}, o1 = {
128
128
  version: "1.1",
129
129
  xmlns: "http://www.w3.org/2000/svg"
130
130
  };
131
- function s1(t, o) {
132
- return u(), p("svg", o1, o[0] || (o[0] = [
131
+ function s1(t, s) {
132
+ return u(), p("svg", o1, s[0] || (s[0] = [
133
133
  C(
134
134
  "g",
135
135
  {
@@ -142,14 +142,14 @@ function s1(t, o) {
142
142
  C("path", { d: "M13.5105149,2.56164948 C14.1211149,2.35546948 14.7829149,2.68328948 14.9892149,3.29376948 C15.0349149,3.42925948 15.0552149,3.57159948 15.0495149,3.71368948 L15.0495149,3.71368948 L15.0351149,3.85546948 L13.6575149,12.2717195 C13.5237149,13.0892195 12.7524149,13.6435195 11.9348149,13.5097195 C11.8542149,13.4965195 11.7751149,13.4768195 11.6980149,13.4508195 L11.6980149,13.4508195 L11.5840149,13.4071195 L9.3049349,12.4260195 L8.4482449,13.5422195 C8.1958049,13.8708195 7.8205549,14.0786195 7.4128449,14.1207195 L7.4128449,14.1207195 L7.2585449,14.1286195 C6.4787649,14.1286195 5.8381349,13.5337195 5.7653849,12.7731195 L5.7653849,12.7731195 L5.7585449,12.6286195 L5.7602549,10.5258195 L5.7756349,10.4384195 L5.7944349,10.3824195 L5.8266649,10.3168995 L5.8735349,10.2503695 L5.9177249,10.2039195 L12.6909149,3.89392948 L2.3403349,7.38903948 C2.2329149,7.42529948 2.1418449,7.49676948 2.0808149,7.59063948 L2.0808149,7.59063948 L2.0412649,7.66497948 C1.9440949,7.89044948 2.0258749,8.14788948 2.2236349,8.27917948 L2.2236349,8.27917948 L2.3029749,8.32214948 L4.4799849,9.26177948 C4.7333949,9.37121948 4.8503449,9.66546948 4.7409649,9.91894948 C4.6435549,10.1443495 4.4003949,10.2616595 4.1694349,10.2081295 L4.1694349,10.2081295 L4.0837449,10.1798795 L1.9072249,9.24047948 C1.1462449,8.91284948 0.795166898,8.03039948 1.1225549,7.26953948 C1.2700249,6.92755948 1.5380849,6.65435948 1.8730449,6.50018948 L1.8730449,6.50018948 L2.0205049,6.44158948 Z M6.7578149,11.3299195 L6.7585449,12.6286195 L6.7666013,12.7185103 C6.80894095,12.9517898 7.0131049,13.1286195 7.2585449,13.1286195 C7.3828149,13.1286195 7.5014649,13.0824195 7.5925349,13.0008195 L7.5925349,13.0008195 L7.6550349,12.9332195 L8.3569349,12.0179195 L6.7578149,11.3299195 Z M13.9888149,4.05090948 L7.1599149,10.4129195 L11.9795149,12.4886195 C11.9980149,12.4966195 12.0173149,12.5035195 12.0369149,12.5093195 L12.0369149,12.5093195 L12.0964149,12.5228195 C12.3386149,12.5624195 12.5686149,12.4209195 12.6482149,12.1975195 L12.6482149,12.1975195 L12.6706149,12.1101195 L13.9888149,4.05090948 Z" })
143
143
  ],
144
144
  -1
145
- /* HOISTED */
145
+ /* CACHED */
146
146
  )
147
147
  ]));
148
148
  }
149
149
  const l1 = /* @__PURE__ */ I(n1, [["render", s1]]), r1 = ["disabled"], i1 = { class: "mc-button-content" }, a1 = { key: 2 }, u1 = /* @__PURE__ */ k({
150
150
  __name: "button",
151
151
  setup(t) {
152
- const { t: o } = F(), { inputValue: s, rootProps: e, rootEmits: i } = T(
152
+ const { t: s } = F(), { inputValue: n, rootProps: e, rootEmits: i } = T(
153
153
  B
154
154
  ), a = S(!1), c = S(!1), d = O({
155
155
  top: "0px",
@@ -159,29 +159,29 @@ const l1 = /* @__PURE__ */ I(n1, [["render", s1]]), r1 = ["disabled"], i1 = { cl
159
159
  "mc-button-loading": e.loading,
160
160
  mousedown: a.value,
161
161
  "mc-button-simple": e.sendBtnVariant === E.Simple
162
- })), l = (m) => {
163
- d.left = m.offsetX + "px", d.top = m.offsetY + "px", c.value = !0, setTimeout(() => {
162
+ })), l = (f) => {
163
+ d.left = f.offsetX + "px", d.top = f.offsetY + "px", c.value = !0, setTimeout(() => {
164
164
  c.value = !1;
165
165
  }, 300);
166
- }, g = (m) => {
167
- l(m), e.loading ? i("cancel") : (i("submit", s.value), s.value = "");
166
+ }, b = (f) => {
167
+ l(f), e.loading ? i("cancel") : (i("submit", n.value), n.value = "", i("change", n.value));
168
168
  };
169
- return (m, L) => (u(), p("button", {
170
- disabled: n(e).disabled || !n(e).loading && !n(s),
169
+ return (f, L) => (u(), p("button", {
170
+ disabled: o(e).disabled || !o(e).loading && !o(n),
171
171
  class: $(h.value),
172
- onClick: g,
172
+ onClick: b,
173
173
  onMousedown: L[0] || (L[0] = () => a.value = !0),
174
174
  onMouseup: L[1] || (L[1] = () => a.value = !1)
175
175
  }, [
176
176
  C("span", i1, [
177
- n(e).loading ? (u(), K(t1, { key: 0 })) : (u(), K(l1, { key: 1 })),
178
- n(e).sendBtnVariant === n(E).Full ? (u(), p(
177
+ o(e).loading ? (u(), K(t1, { key: 0 })) : (u(), K(l1, { key: 1 })),
178
+ o(e).sendBtnVariant === o(E).Full ? (u(), p(
179
179
  "span",
180
180
  a1,
181
- x(n(e).loading ? n(o)("Input.pauseAnswer") : n(o)("Input.send")),
181
+ x(o(e).loading ? o(s)("Input.pauseAnswer") : o(s)("Input.send")),
182
182
  1
183
183
  /* TEXT */
184
- )) : _("v-if", !0)
184
+ )) : g("v-if", !0)
185
185
  ]),
186
186
  c.value ? (u(), p(
187
187
  "div",
@@ -193,24 +193,24 @@ const l1 = /* @__PURE__ */ I(n1, [["render", s1]]), r1 = ["disabled"], i1 = { cl
193
193
  null,
194
194
  4
195
195
  /* STYLE */
196
- )) : _("v-if", !0)
196
+ )) : g("v-if", !0)
197
197
  ], 42, r1));
198
198
  }
199
- }), Z = /* @__PURE__ */ I(u1, [["__scopeId", "data-v-183bc985"]]), c1 = { class: "mc-input-content" }, p1 = {
199
+ }), Z = /* @__PURE__ */ I(u1, [["__scopeId", "data-v-8b1b116f"]]), c1 = { class: "mc-input-content" }, p1 = {
200
200
  key: 0,
201
201
  class: "mc-input-foot"
202
- }, d1 = { class: "mc-input-foot-left" }, m1 = {
202
+ }, d1 = { class: "mc-input-foot-left" }, f1 = {
203
203
  key: 0,
204
204
  class: "mc-input-foot-count"
205
205
  }, V = /* @__PURE__ */ k({
206
206
  __name: "Input",
207
207
  props: Y,
208
208
  emits: q,
209
- setup(t, { expose: o, emit: s }) {
210
- const e = t, i = s, a = S(""), c = M(() => ({
209
+ setup(t, { expose: s, emit: n }) {
210
+ const e = t, i = n, a = S(""), c = M(() => ({
211
211
  "mc-input": !0,
212
212
  "mc-input-disabled": e.disabled,
213
- "mc-input-simple": e.displayType === b.Simple,
213
+ "mc-input-simple": e.displayType === _.Simple,
214
214
  "mc-input-borderless": e.variant === P.BorderLess
215
215
  })), d = () => {
216
216
  a.value = "";
@@ -221,7 +221,7 @@ const l1 = /* @__PURE__ */ I(n1, [["render", s1]]), r1 = ["disabled"], i1 = { cl
221
221
  a.value = e.value;
222
222
  },
223
223
  { immediate: !0 }
224
- ), o({ clearInput: d, getInput: h }), X(B, { inputValue: a, rootProps: e, rootEmits: i }), (l, g) => (u(), p(
224
+ ), s({ clearInput: d, getInput: h }), X(B, { inputValue: a, rootProps: e, rootEmits: i }), (l, b) => (u(), p(
225
225
  "div",
226
226
  {
227
227
  class: $(c.value)
@@ -232,25 +232,25 @@ const l1 = /* @__PURE__ */ I(n1, [["render", s1]]), r1 = ["disabled"], i1 = { cl
232
232
  v(l.$slots, "prefix"),
233
233
  w(H),
234
234
  v(l.$slots, "suffix"),
235
- l.displayType === n(b).Simple ? v(l.$slots, "button", { key: 0 }, () => [
235
+ l.displayType === o(_).Simple ? v(l.$slots, "button", { key: 0 }, () => [
236
236
  w(Z)
237
- ]) : _("v-if", !0)
237
+ ]) : g("v-if", !0)
238
238
  ]),
239
- l.displayType === n(b).Full ? (u(), p("div", p1, [
239
+ l.displayType === o(_).Full ? (u(), p("div", p1, [
240
240
  C("div", d1, [
241
241
  v(l.$slots, "extra"),
242
242
  l.showCount ? (u(), p(
243
243
  "span",
244
- m1,
244
+ f1,
245
245
  x(a.value.length) + x(l.maxLength ?? !1 ? `/${l.maxLength}` : ""),
246
246
  1
247
247
  /* TEXT */
248
- )) : _("v-if", !0)
248
+ )) : g("v-if", !0)
249
249
  ]),
250
250
  v(l.$slots, "button", {}, () => [
251
251
  w(Z)
252
252
  ])
253
- ])) : _("v-if", !0)
253
+ ])) : g("v-if", !0)
254
254
  ],
255
255
  2
256
256
  /* CLASS */
@@ -1 +1 @@
1
- .mc-introduction[data-v-fff875ce]{display:flex;gap:12px;flex-direction:column;color:var(--devui-text, #252b3a)}.mc-introduction .mc-introduction-logo-container[data-v-fff875ce]{display:flex;align-items:center;gap:8px}.mc-introduction .mc-introduction-logo-container .mc-introduction-title[data-v-fff875ce]{font-weight:700;font-size:32px;letter-spacing:1px}.mc-introduction .mc-introduction-sub-title[data-v-fff875ce]{font-weight:500;font-size:18px}.mc-introduction .mc-introduction-description[data-v-fff875ce]{font-size:var(--devui-font-size-sm, 12px)}.mc-introduction .mc-introduction-description>div[data-v-fff875ce]{line-height:1.5}.mc-introduction.filled[data-v-fff875ce]{background-color:var(--devui-global-bg, #f6f6f8);border-radius:8px;padding:8px 12px}.mc-introduction.center[data-v-fff875ce]{align-items:center}.mc-introduction.center .mc-introduction-description[data-v-fff875ce]{text-align:center}.mc-introduction.left[data-v-fff875ce]{align-items:flex-start}.mc-introduction.left .mc-introduction-description[data-v-fff875ce]{text-align:left}.mc-introduction.right[data-v-fff875ce]{align-items:flex-end}.mc-introduction.right .mc-introduction-description[data-v-fff875ce]{text-align:right}
1
+ .mc-introduction[data-v-0c128c90]{display:flex;gap:12px;flex-direction:column;color:var(--devui-text, #252b3a)}.mc-introduction .mc-introduction-logo-container[data-v-0c128c90]{display:flex;align-items:center;gap:8px}.mc-introduction .mc-introduction-logo-container .mc-introduction-title[data-v-0c128c90]{font-weight:700;font-size:32px;letter-spacing:1px}.mc-introduction .mc-introduction-sub-title[data-v-0c128c90]{font-weight:500;font-size:18px}.mc-introduction .mc-introduction-description[data-v-0c128c90]{font-size:var(--devui-font-size, 12px)}.mc-introduction .mc-introduction-description>div[data-v-0c128c90]{line-height:1.5}.mc-introduction.filled[data-v-0c128c90]{background-color:var(--devui-global-bg, #f6f6f8);border-radius:8px;padding:8px 12px}.mc-introduction.center[data-v-0c128c90]{align-items:center}.mc-introduction.center .mc-introduction-description[data-v-0c128c90]{text-align:center}.mc-introduction.left[data-v-0c128c90]{align-items:flex-start}.mc-introduction.left .mc-introduction-description[data-v-0c128c90]{text-align:left}.mc-introduction.right[data-v-0c128c90]{align-items:flex-end}.mc-introduction.right .mc-introduction-description[data-v-0c128c90]{text-align:right}
@@ -1,5 +1,5 @@
1
1
  import "./index.css";
2
- import { defineComponent as u, createElementBlock as e, openBlock as o, normalizeClass as p, createElementVNode as d, createCommentVNode as l, renderSlot as g, toDisplayString as c, Fragment as m, renderList as f } from "vue";
2
+ import { defineComponent as u, createElementBlock as e, openBlock as o, normalizeClass as p, createElementVNode as d, createCommentVNode as c, renderSlot as g, toDisplayString as l, Fragment as m, renderList as f } from "vue";
3
3
  const v = {
4
4
  logoImg: {
5
5
  type: String,
@@ -46,11 +46,11 @@ const v = {
46
46
  key: 0,
47
47
  src: t.logoImg,
48
48
  alt: t.title
49
- }, null, 8, _)) : l("v-if", !0),
49
+ }, null, 8, _)) : c("v-if", !0),
50
50
  d(
51
51
  "div",
52
52
  k,
53
- c(t.title),
53
+ l(t.title),
54
54
  1
55
55
  /* TEXT */
56
56
  )
@@ -58,10 +58,10 @@ const v = {
58
58
  t.subTitle ? (o(), e(
59
59
  "div",
60
60
  h,
61
- c(t.subTitle),
61
+ l(t.subTitle),
62
62
  1
63
63
  /* TEXT */
64
- )) : l("v-if", !0),
64
+ )) : c("v-if", !0),
65
65
  t.description.length ? (o(), e("div", I, [
66
66
  (o(!0), e(
67
67
  m,
@@ -69,14 +69,14 @@ const v = {
69
69
  f(t.description, (r, s) => (o(), e(
70
70
  "div",
71
71
  { key: s },
72
- c(r),
72
+ l(r),
73
73
  1
74
74
  /* TEXT */
75
75
  ))),
76
76
  128
77
77
  /* KEYED_FRAGMENT */
78
78
  ))
79
- ])) : l("v-if", !0),
79
+ ])) : c("v-if", !0),
80
80
  g(t.$slots, "default", {}, void 0, !0)
81
81
  ],
82
82
  2
@@ -88,7 +88,7 @@ const v = {
88
88
  for (const [r, s] of t)
89
89
  i[r] = s;
90
90
  return i;
91
- }, a = /* @__PURE__ */ b(S, [["__scopeId", "data-v-fff875ce"]]);
91
+ }, a = /* @__PURE__ */ b(S, [["__scopeId", "data-v-0c128c90"]]);
92
92
  a.install = (n) => {
93
93
  n.component("McIntroduction", a);
94
94
  };
package/List/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./index.css";
2
- import { computed as E, ref as L, onMounted as p, defineComponent as w, createElementBlock as u, openBlock as f, unref as c, normalizeClass as g, Fragment as b, renderList as z, renderSlot as h, createTextVNode as C, toDisplayString as T } from "vue";
3
- var v = /* @__PURE__ */ ((e) => (e.Horizontal = "horizontal", e.Vertical = "vertical", e))(v || {}), k = /* @__PURE__ */ ((e) => (e.Transparent = "transparent", e.Filled = "filled", e.Bordered = "bordered", e.None = "none", e))(k || {});
4
- const A = {
2
+ import { computed as E, ref as L, onMounted as p, onUnmounted as w, defineComponent as z, createElementBlock as f, openBlock as v, unref as c, normalizeClass as g, Fragment as b, renderList as C, renderSlot as h, createTextVNode as T, toDisplayString as A } from "vue";
3
+ var m = /* @__PURE__ */ ((e) => (e.Horizontal = "horizontal", e.Vertical = "vertical", e))(m || {}), k = /* @__PURE__ */ ((e) => (e.Transparent = "transparent", e.Filled = "filled", e.Bordered = "bordered", e.None = "none", e))(k || {});
4
+ const B = {
5
5
  direction: {
6
6
  type: String,
7
7
  default: "vertical"
@@ -35,85 +35,87 @@ const A = {
35
35
  type: Boolean,
36
36
  default: !0
37
37
  }
38
- }, B = 50, H = ["TEXTAREA", "INPUT"], I = "ArrowUp", _ = "ArrowDown", N = "Enter";
39
- function M(e, o) {
40
- const n = L(e.enableShortKey ? 0 : -1), i = (t) => {
38
+ }, H = 50, I = ["TEXTAREA", "INPUT"], _ = "ArrowUp", N = "ArrowDown", M = "Enter";
39
+ function D(e, r) {
40
+ let o;
41
+ const l = L(e.enableShortKey ? 0 : -1), i = (t) => {
41
42
  if (!t.disabled) {
42
43
  if (e.selectable)
43
- for (let l = 0; l < e.data.length; l++)
44
- e.data[l].active = e.data[l].value === t.value;
45
- o("select", { ...t });
44
+ for (let n = 0; n < e.data.length; n++)
45
+ e.data[n].active = e.data[n].value === t.value;
46
+ r("select", { ...t });
46
47
  }
47
- }, s = (t) => {
48
- if (!e.enableLazyLoad || e.direction !== v.Vertical)
48
+ }, y = (t) => {
49
+ if (!e.enableLazyLoad || e.direction !== m.Vertical)
49
50
  return;
50
- const l = t.target, r = l.scrollHeight, d = l.clientHeight, a = l.scrollTop;
51
- r - d - a < B && o("loadMore", t);
52
- }, m = (t) => {
53
- t.code === I && (n.value = n.value === 0 ? e.data.length - 1 : n.value - 1), t.code === _ && (n.value = n.value === e.data.length - 1 ? 0 : n.value + 1), t.code === N && (e.selectable && (e.data[n.value].active = !0), o("select", { ...e.data[n.value] }));
51
+ const n = t.target, d = n.scrollHeight, a = n.clientHeight, u = n.scrollTop;
52
+ d - a - u < H && r("loadMore", t);
53
+ }, s = (t) => {
54
+ t.code === _ && (l.value = l.value === 0 ? e.data.length - 1 : l.value - 1), t.code === N && (l.value = l.value === e.data.length - 1 ? 0 : l.value + 1), t.code === M && e.selectable && i(e.data[l.value]);
54
55
  };
55
56
  return p(() => {
56
- let t;
57
57
  if (e.inputEl) {
58
- const l = e.inputEl.$el ?? e.inputEl;
59
- H.includes(l.tagName) ? t = l : t = l.querySelector("textarea") || l.querySelector("input") || document;
58
+ const t = e.inputEl.$el ?? e.inputEl;
59
+ I.includes(t.tagName) ? o = t : o = t.querySelector("textarea") || t.querySelector("input") || document;
60
60
  } else
61
- t = document;
62
- e.enableShortKey && t.addEventListener("keydown", m);
63
- }), { preSelectIndex: n, onItemClick: i, onListScroll: s };
61
+ o = document;
62
+ e.enableShortKey && o.addEventListener("keydown", s);
63
+ }), w(() => {
64
+ o.removeEventListener("keydown", s);
65
+ }), { preSelectIndex: l, onItemClick: i, onListScroll: y };
64
66
  }
65
- function D(e) {
67
+ function K(e) {
66
68
  return { listClasses: E(() => ({
67
69
  "mc-list": !0,
68
- "mc-list-horizontal": e.direction === v.Horizontal,
69
- "mc-list-nowrap": e.direction === v.Horizontal && !e.autoWrap
70
+ "mc-list-horizontal": e.direction === m.Horizontal,
71
+ "mc-list-nowrap": e.direction === m.Horizontal && !e.autoWrap
70
72
  })) };
71
73
  }
72
- const K = ["onClick"], U = /* @__PURE__ */ w({
74
+ const U = ["onClick"], $ = /* @__PURE__ */ z({
73
75
  __name: "List",
74
- props: A,
76
+ props: B,
75
77
  emits: ["select", "loadMore"],
76
- setup(e, { emit: o }) {
77
- const n = e, i = o, { listClasses: s } = D(n), { preSelectIndex: m, onItemClick: t, onListScroll: l } = M(n, i);
78
- return (r, d) => (f(), u(
78
+ setup(e, { emit: r }) {
79
+ const o = e, l = r, { listClasses: i } = K(o), { preSelectIndex: y, onItemClick: s, onListScroll: t } = D(o, l);
80
+ return (n, d) => (v(), f(
79
81
  "div",
80
82
  {
81
- class: g(c(s)),
83
+ class: g(c(i)),
82
84
  onScroll: d[0] || (d[0] = //@ts-ignore
83
- (...a) => c(l) && c(l)(...a))
85
+ (...a) => c(t) && c(t)(...a))
84
86
  },
85
87
  [
86
- (f(!0), u(
88
+ (v(!0), f(
87
89
  b,
88
90
  null,
89
- z(r.data, (a, y) => (f(), u(
91
+ C(n.data, (a, u) => (v(), f(
90
92
  b,
91
- { key: y },
93
+ { key: u },
92
94
  [
93
- r.variant === c(k).None ? h(r.$slots, "item", {
95
+ n.variant === c(k).None ? h(n.$slots, "item", {
94
96
  key: 0,
95
97
  item: a
96
- }, void 0, !0) : (f(), u("div", {
98
+ }, void 0, !0) : (v(), f("div", {
97
99
  key: 1,
98
100
  class: g([
99
101
  "mc-list-item",
100
102
  {
101
103
  "mc-list-item-disabled": a.disabled,
102
104
  "mc-list-item-active": a.active,
103
- "mc-list-item-pre-selection": y === c(m)
105
+ "mc-list-item-pre-selection": u === c(y)
104
106
  },
105
- r.variant
107
+ n.variant
106
108
  ]),
107
- onClick: () => c(t)(a)
109
+ onClick: () => c(s)(a)
108
110
  }, [
109
- h(r.$slots, "item", { item: a }, () => [
110
- C(
111
- T(a.label),
111
+ h(n.$slots, "item", { item: a }, () => [
112
+ T(
113
+ A(a.label),
112
114
  1
113
115
  /* TEXT */
114
116
  )
115
117
  ], !0)
116
- ], 10, K))
118
+ ], 10, U))
117
119
  ],
118
120
  64
119
121
  /* STABLE_FRAGMENT */
@@ -126,18 +128,18 @@ const K = ["onClick"], U = /* @__PURE__ */ w({
126
128
  /* CLASS, NEED_HYDRATION */
127
129
  ));
128
130
  }
129
- }), $ = (e, o) => {
130
- const n = e.__vccOpts || e;
131
- for (const [i, s] of o)
132
- n[i] = s;
133
- return n;
134
- }, S = /* @__PURE__ */ $(U, [["__scopeId", "data-v-1a543233"]]);
131
+ }), q = (e, r) => {
132
+ const o = e.__vccOpts || e;
133
+ for (const [l, i] of r)
134
+ o[l] = i;
135
+ return o;
136
+ }, S = /* @__PURE__ */ q($, [["__scopeId", "data-v-1a543233"]]);
135
137
  S.install = (e) => {
136
138
  e.component("McList", S);
137
139
  };
138
140
  export {
139
- v as ListDirection,
141
+ m as ListDirection,
140
142
  k as ListVariant,
141
143
  S as McList,
142
- A as listProps
144
+ B as listProps
143
145
  };
package/Locale/index.js CHANGED
@@ -1,64 +1,76 @@
1
1
  import { ref as u, reactive as l } from "vue";
2
- function h(n) {
3
- return new f(n);
2
+ function g(n) {
3
+ return new h(n);
4
4
  }
5
- let f = class {
5
+ let h = class {
6
6
  constructor(r) {
7
7
  this.locale = u("zh-cn"), this.messages = l({}), this.use = (e) => {
8
8
  this.locale.value = e;
9
9
  }, this.t = (e, s = {}) => {
10
10
  const t = this.messages[this.locale.value];
11
11
  return p(e, s, t);
12
- }, this.mergeLocaleMessages = (e, s) => this.messages[e] ? (this.messages[e] = o(this.messages[e], s), o(this.messages[e], s)) : (this.messages[e] = s, this.messages), this.locale.value = r.locale, this.messages = l(r.messages);
12
+ }, this.mergeLocaleMessages = (e, s) => this.messages[e] ? (this.messages[e] = a(this.messages[e], s), a(this.messages[e], s)) : (this.messages[e] = s, this.messages), this.locale.value = r.locale, this.messages = l(r.messages);
13
13
  }
14
14
  };
15
15
  function p(n, r, e) {
16
16
  const s = n.split(".");
17
17
  let t = e || {};
18
- return s.forEach((c) => {
19
- t = t[c] ?? n;
20
- }), typeof t == "function" ? t(r) : t.replace(/{(\w+)}/g, (c, a) => r[a] ?? `{${a}}`);
18
+ return s.forEach((o) => {
19
+ t = t[o] ?? n;
20
+ }), typeof t == "function" ? t(r) : t.replace(/{(\w+)}/g, (o, c) => r[c] ?? `{${c}}`);
21
21
  }
22
- function o(n, r) {
22
+ function a(n, r) {
23
23
  const e = { ...n };
24
24
  for (const s in r)
25
25
  if (Object.prototype.hasOwnProperty.call(r, s)) {
26
- const t = r[s], c = n[s];
27
- typeof t == "object" && t !== null ? typeof c == "object" && c !== null ? e[s] = o(c, t) : e[s] = { ...t } : e[s] = t;
26
+ const t = r[s], o = n[s];
27
+ typeof t == "object" && t !== null ? typeof o == "object" && o !== null ? e[s] = a(o, t) : e[s] = { ...t } : e[s] = t;
28
28
  }
29
29
  return e;
30
30
  }
31
- const g = {
31
+ const f = {
32
32
  Input: {
33
33
  send: "Send",
34
34
  pauseAnswer: "Stop",
35
35
  pleaseEnter: "Please enter your question...",
36
36
  pleaseEnterPlaceholder: "Please enter your question and press {enterKey} to send, {shiftEnterKey} to wrap."
37
+ },
38
+ Md: {
39
+ toggle: "Collapse/Expand",
40
+ copy: "Copy",
41
+ diagram: "Diagram",
42
+ code: "Code"
37
43
  }
38
- }, y = {
44
+ }, d = {
39
45
  Input: {
40
46
  send: "发送",
41
47
  pauseAnswer: "停止回答",
42
48
  pleaseEnter: "请输入您的问题...",
43
49
  pleaseEnterPlaceholder: "请输入您的问题,并按{enterKey}发送,按{shiftEnterKey}换行"
50
+ },
51
+ Md: {
52
+ toggle: "收起/展开",
53
+ copy: "复制",
54
+ diagram: "图形",
55
+ code: "代码"
44
56
  }
45
- }, M = {
46
- "en-us": g,
47
- "zh-cn": y
48
- }, i = h({
57
+ }, y = {
58
+ "en-us": f,
59
+ "zh-cn": d
60
+ }, i = g({
49
61
  locale: "zh-cn",
50
- messages: M
62
+ messages: y
51
63
  });
52
- function I() {
64
+ function E() {
53
65
  return i;
54
66
  }
55
- const E = {
67
+ const I = {
56
68
  install: (n) => {
57
69
  n.config.globalProperties.McI18n = i;
58
70
  }
59
71
  };
60
72
  export {
61
- E as McLocale,
73
+ I as McLocale,
62
74
  i as default,
63
- I as useMcI18n
75
+ E as useMcI18n
64
76
  };