@rft-rc/recycle-ui 0.0.1-rc.6 → 0.0.2-rc.1

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
@@ -1,50 +1,119 @@
1
- import { defineComponent as S, computed as f, createElementBlock as d, openBlock as i, normalizeStyle as h, normalizeClass as z, createCommentVNode as g, renderSlot as y, createTextVNode as M, toDisplayString as _, inject as x, createElementVNode as b, ref as T, watchEffect as oe, provide as D, Fragment as A, renderList as Q, createBlock as X, onMounted as Z, onUnmounted as ae, Teleport as ce, createVNode as P, Transition as re, withCtx as ee, createApp as le, reactive as ie, TransitionGroup as ue, render as te } from "vue";
2
- const de = ["disabled"], fe = {
1
+ import { defineComponent as W, inject as z, computed as _, onMounted as be, createElementBlock as m, openBlock as r, normalizeStyle as A, normalizeClass as V, createCommentVNode as k, toDisplayString as x, renderSlot as C, Fragment as M, createBlock as q, createTextVNode as H, createElementVNode as $, ref as I, watchEffect as Le, provide as F, renderList as Y, onUnmounted as ke, Teleport as Ne, createVNode as L, Transition as le, withCtx as O, createApp as Be, reactive as We, TransitionGroup as Te, render as $e, watch as ie, nextTick as ue, unref as K } from "vue";
2
+ const ze = {
3
+ key: 0,
4
+ class: "rc-icon__unicode"
5
+ }, Me = /* @__PURE__ */ W({
6
+ name: "rc-icon",
7
+ __name: "index",
8
+ props: {
9
+ name: {},
10
+ size: { default: 16 },
11
+ color: { default: "" },
12
+ spin: { type: Boolean, default: !1 },
13
+ code: { default: "" }
14
+ },
15
+ setup(e) {
16
+ const t = e, a = z(re, {}), i = _(() => (a == null ? void 0 : a.iconClass) || "iconfont"), v = _(() => t.name || ""), f = _(() => typeof t.size == "number" ? `${t.size}px` : t.size || "16px"), u = _(() => ({
17
+ fontSize: f.value,
18
+ color: t.color || void 0,
19
+ lineHeight: 1,
20
+ fontFamily: (a == null ? void 0 : a.iconClass) || "iconfont"
21
+ })), o = _(() => {
22
+ const l = t.code;
23
+ if (l == null || l === "" || l === 0) return "";
24
+ if (typeof l == "number")
25
+ return String.fromCharCode(l);
26
+ const c = String(l).replace(/^0x/i, ""), b = parseInt(c, 16);
27
+ return Number.isNaN(b) ? "" : String.fromCharCode(b);
28
+ });
29
+ return be(() => {
30
+ if (typeof window > "u") return;
31
+ const l = a && a.iconCssUrl || Ce.iconCssUrl;
32
+ if (!l) return;
33
+ const c = `link[rel="stylesheet"][data-rcui-icon="true"][href="${l}"]`;
34
+ if (!document.head.querySelector(c)) {
35
+ const y = document.createElement("link");
36
+ y.rel = "stylesheet", y.href = l, y.setAttribute("data-rcui-icon", "true"), document.head.appendChild(y);
37
+ }
38
+ }), (l, c) => (r(), m("i", {
39
+ class: V(["rc-icon", [i.value, v.value, { "rc-icon--spin": e.spin }]]),
40
+ style: A(u.value),
41
+ "aria-hidden": "true"
42
+ }, [
43
+ o.value ? (r(), m("span", ze, x(o.value), 1)) : k("", !0)
44
+ ], 6));
45
+ }
46
+ }), T = (e, t) => {
47
+ const a = e.__vccOpts || e;
48
+ for (const [i, v] of t)
49
+ a[i] = v;
50
+ return a;
51
+ }, D = /* @__PURE__ */ T(Me, [["__scopeId", "data-v-3857a892"]]), Ue = ["disabled"], Fe = {
3
52
  key: 0,
4
53
  class: "rc-button__spinner"
5
- }, me = /* @__PURE__ */ S({
54
+ }, Ge = {
55
+ key: 0,
56
+ class: "rc-button__icon rc-button__icon--prefix"
57
+ }, Oe = {
58
+ key: 2,
59
+ class: "rc-button__icon rc-button__icon--suffix"
60
+ }, Pe = /* @__PURE__ */ W({
6
61
  __name: "index",
7
62
  props: {
8
63
  type: { default: "default" },
9
64
  size: { default: "medium" },
10
- plain: { type: Boolean, default: !1 },
65
+ mode: { default: void 0 },
11
66
  block: { type: Boolean, default: !1 },
12
67
  label: { default: "" },
13
68
  round: { type: [Number, String, Boolean], default: 6 },
14
69
  disabled: { type: Boolean, default: !1 },
15
- loading: { type: Boolean, default: !1 }
70
+ loading: { type: Boolean, default: !1 },
71
+ preIcon: { default: "" },
72
+ suffixIcon: { default: "" }
16
73
  },
17
74
  emits: ["click"],
18
75
  setup(e, { emit: t }) {
19
- const n = e, c = t, r = (l) => {
20
- !n.disabled && !n.loading && c("click", l);
21
- }, u = f(() => {
22
- const l = n.round;
23
- return typeof l == "boolean" ? l ? "999px" : "6px" : typeof l == "number" ? `${l}px` : String(l);
76
+ const a = e, i = t, v = (u) => {
77
+ !a.disabled && !a.loading && i("click", u);
78
+ }, f = _(() => {
79
+ const u = a.round;
80
+ return typeof u == "boolean" ? u ? "999px" : "6px" : typeof u == "number" ? `${u}px` : String(u);
24
81
  });
25
- return (l, o) => (i(), d("button", {
26
- class: z(["rc-button", [`rc-button--${e.type}`, `rc-button--${e.size}`, { "is-plain": e.plain, "is-block": e.block, "is-disabled": e.disabled, "is-loading": e.loading }]]),
27
- style: h({ borderRadius: u.value }),
82
+ return (u, o) => (r(), m("button", {
83
+ class: V(["rc-button", [`rc-button--${e.type}`, `rc-button--${e.size}`, e.mode ? `rc-button--${e.mode}` : "", { "is-block": e.block, "is-disabled": e.disabled, "is-loading": e.loading }]]),
84
+ style: A({ borderRadius: f.value }),
28
85
  disabled: e.disabled || e.loading,
29
- onClick: r
86
+ onClick: v
30
87
  }, [
31
- e.loading ? (i(), d("span", fe)) : g("", !0),
32
- y(l.$slots, "default", {}, () => [
33
- M(_(e.label), 1)
34
- ], !0)
35
- ], 14, de));
88
+ e.loading ? (r(), m("span", Fe)) : (r(), m(M, { key: 1 }, [
89
+ e.preIcon || u.$slots.preIcon ? (r(), m("span", Ge, [
90
+ C(u.$slots, "preIcon", {}, () => [
91
+ e.preIcon ? (r(), q(D, {
92
+ key: 0,
93
+ name: e.preIcon
94
+ }, null, 8, ["name"])) : k("", !0)
95
+ ], !0)
96
+ ])) : k("", !0)
97
+ ], 64)),
98
+ C(u.$slots, "default", {}, () => [
99
+ H(x(e.label), 1)
100
+ ], !0),
101
+ !e.loading && (e.suffixIcon || u.$slots.suffixIcon) ? (r(), m("span", Oe, [
102
+ C(u.$slots, "suffixIcon", {}, () => [
103
+ e.suffixIcon ? (r(), q(D, {
104
+ key: 0,
105
+ name: e.suffixIcon
106
+ }, null, 8, ["name"])) : k("", !0)
107
+ ], !0)
108
+ ])) : k("", !0)
109
+ ], 14, Ue));
36
110
  }
37
- }), w = (e, t) => {
38
- const n = e.__vccOpts || e;
39
- for (const [c, r] of t)
40
- n[c] = r;
41
- return n;
42
- }, G = /* @__PURE__ */ w(me, [["__scopeId", "data-v-a70e95bb"]]);
43
- G.name = "rc-button";
44
- function H(e) {
45
- return e.component(G.name, G), e;
111
+ }), Q = /* @__PURE__ */ T(Pe, [["__scopeId", "data-v-3ed3109f"]]);
112
+ Q.name = "rc-button";
113
+ function de(e) {
114
+ return e.component(Q.name, Q), e;
46
115
  }
47
- const pe = { class: "rc-desc-item__value" }, ye = /* @__PURE__ */ S({
116
+ const je = { class: "rc-desc-item__value" }, qe = /* @__PURE__ */ W({
48
117
  name: "rc-descriptions-item",
49
118
  __name: "item",
50
119
  props: {
@@ -55,42 +124,42 @@ const pe = { class: "rc-desc-item__value" }, ye = /* @__PURE__ */ S({
55
124
  },
56
125
  setup(e) {
57
126
  const t = e;
58
- x("rcDescItemWidth", void 0), x("rcDescSingleWidth", ""), x("rcDescGap", "0px");
59
- const n = x("rcDescGapPx", 0), c = x("rcDescColCount", 1), r = x("rcDescLabelWidth", ""), u = f(() => {
60
- const s = typeof t.span == "string" ? parseInt(t.span, 10) : t.span, a = typeof (c == null ? void 0 : c.value) == "number" ? c.value : c, m = !Number.isNaN(s) && s > 0 ? s : 1;
61
- return Math.min(m, a || 1);
62
- }), l = f(() => {
63
- const s = typeof (c == null ? void 0 : c.value) == "number" ? c.value : c, a = typeof (n == null ? void 0 : n.value) == "number" ? n.value : n, m = u.value;
64
- if (!s || s <= 1 || m >= s) return "100%";
65
- const p = (s - 1) * a, v = (m - 1) * a;
66
- return `calc((100% - ${p}px) * ${m} / ${s} + ${v}px)`;
67
- }), o = f(() => {
68
- const s = typeof (r == null ? void 0 : r.value) == "string" ? r.value : r, a = t.labelWidth !== "" ? t.labelWidth : s || "";
69
- return a ? { width: typeof a == "number" ? `${a}px` : String(a), flex: "0 0 auto" } : {};
127
+ z("rcDescItemWidth", void 0), z("rcDescSingleWidth", ""), z("rcDescGap", "0px");
128
+ const a = z("rcDescGapPx", 0), i = z("rcDescColCount", 1), v = z("rcDescLabelWidth", ""), f = _(() => {
129
+ const l = typeof t.span == "string" ? parseInt(t.span, 10) : t.span, c = typeof (i == null ? void 0 : i.value) == "number" ? i.value : i, b = !Number.isNaN(l) && l > 0 ? l : 1;
130
+ return Math.min(b, c || 1);
131
+ }), u = _(() => {
132
+ const l = typeof (i == null ? void 0 : i.value) == "number" ? i.value : i, c = typeof (a == null ? void 0 : a.value) == "number" ? a.value : a, b = f.value;
133
+ if (!l || l <= 1 || b >= l) return "100%";
134
+ const y = (l - 1) * c, g = (b - 1) * c;
135
+ return `calc((100% - ${y}px) * ${b} / ${l} + ${g}px)`;
136
+ }), o = _(() => {
137
+ const l = typeof (v == null ? void 0 : v.value) == "string" ? v.value : v, c = t.labelWidth !== "" ? t.labelWidth : l || "";
138
+ return c ? { width: typeof c == "number" ? `${c}px` : String(c), flex: "0 0 auto" } : {};
70
139
  });
71
- return (s, a) => (i(), d("div", {
140
+ return (l, c) => (r(), m("div", {
72
141
  class: "rc-desc-item",
73
- style: h({ width: l.value, flex: `0 0 ${l.value}` })
142
+ style: A({ width: u.value, flex: `0 0 ${u.value}` })
74
143
  }, [
75
- b("div", {
144
+ $("div", {
76
145
  class: "rc-desc-item__label",
77
- style: h(o.value)
146
+ style: A(o.value)
78
147
  }, [
79
- y(s.$slots, "label", {}, () => [
80
- M(_(e.label), 1)
148
+ C(l.$slots, "label", {}, () => [
149
+ H(x(e.label), 1)
81
150
  ], !0)
82
151
  ], 4),
83
- b("div", pe, [
84
- y(s.$slots, "default", {}, () => [
85
- M(_(e.value), 1)
152
+ $("div", je, [
153
+ C(l.$slots, "default", {}, () => [
154
+ H(x(e.value), 1)
86
155
  ], !0)
87
156
  ])
88
157
  ], 4));
89
158
  }
90
- }), R = /* @__PURE__ */ w(ye, [["__scopeId", "data-v-970d0b99"]]), ge = { class: "rc-descriptions" }, be = {
159
+ }), P = /* @__PURE__ */ T(qe, [["__scopeId", "data-v-970d0b99"]]), He = { class: "rc-descriptions" }, Ke = {
91
160
  key: 0,
92
161
  class: "rc-descriptions__title"
93
- }, ve = /* @__PURE__ */ S({
162
+ }, Ye = /* @__PURE__ */ W({
94
163
  name: "rc-descriptions",
95
164
  __name: "index",
96
165
  props: {
@@ -102,66 +171,66 @@ const pe = { class: "rc-desc-item__value" }, ye = /* @__PURE__ */ S({
102
171
  keyMap: {}
103
172
  },
104
173
  setup(e) {
105
- const t = e, n = T(null), c = f(() => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)), r = f(() => {
106
- const a = typeof t.column == "string" ? Number.parseInt(t.column, 10) : t.column ?? 1;
107
- return !Number.isNaN(a) && a > 0 ? a : 1;
108
- }), u = T("100%"), l = T("100%");
109
- oe(() => {
110
- const a = r.value;
111
- if (a <= 1)
112
- u.value = "100%", l.value = "100%";
174
+ const t = e, a = I(null), i = _(() => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)), v = _(() => {
175
+ const c = typeof t.column == "string" ? Number.parseInt(t.column, 10) : t.column ?? 1;
176
+ return !Number.isNaN(c) && c > 0 ? c : 1;
177
+ }), f = I("100%"), u = I("100%");
178
+ Le(() => {
179
+ const c = v.value;
180
+ if (c <= 1)
181
+ f.value = "100%", u.value = "100%";
113
182
  else {
114
- const m = typeof t.gap == "number" ? t.gap : parseFloat(String(t.gap)) || 0, v = `calc((100% - ${(a - 1) * m}px) / ${a})`;
115
- l.value = v, u.value = v;
183
+ const b = typeof t.gap == "number" ? t.gap : parseFloat(String(t.gap)) || 0, g = `calc((100% - ${(c - 1) * b}px) / ${c})`;
184
+ u.value = g, f.value = g;
116
185
  }
117
- }), D("rcDescItemWidth", u), D("rcDescSingleWidth", l), D("rcDescColCount", r), D("rcDescGapPx", f(() => typeof t.gap == "number" ? t.gap : parseFloat(String(t.gap)) || 0));
118
- const o = f(() => t.labelWidth === "" || t.labelWidth === void 0 ? "" : typeof t.labelWidth == "number" ? `${t.labelWidth}px` : String(t.labelWidth));
119
- D("rcDescLabelWidth", o), D("rcDescGap", f(() => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)));
120
- const s = f(() => {
121
- var p, v, V;
122
- const a = ((p = t.keyMap) == null ? void 0 : p.key) ?? "label", m = ((v = t.keyMap) == null ? void 0 : v.value) ?? "value";
123
- return (V = t.data) != null && V.length ? t.data.map((I) => ({
124
- label: I == null ? void 0 : I[a],
125
- value: I == null ? void 0 : I[m]
186
+ }), F("rcDescItemWidth", f), F("rcDescSingleWidth", u), F("rcDescColCount", v), F("rcDescGapPx", _(() => typeof t.gap == "number" ? t.gap : parseFloat(String(t.gap)) || 0));
187
+ const o = _(() => t.labelWidth === "" || t.labelWidth === void 0 ? "" : typeof t.labelWidth == "number" ? `${t.labelWidth}px` : String(t.labelWidth));
188
+ F("rcDescLabelWidth", o), F("rcDescGap", _(() => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)));
189
+ const l = _(() => {
190
+ var y, g, h;
191
+ const c = ((y = t.keyMap) == null ? void 0 : y.key) ?? "label", b = ((g = t.keyMap) == null ? void 0 : g.value) ?? "value";
192
+ return (h = t.data) != null && h.length ? t.data.map((E) => ({
193
+ label: E == null ? void 0 : E[c],
194
+ value: E == null ? void 0 : E[b]
126
195
  })) : [];
127
196
  });
128
- return (a, m) => (i(), d("div", ge, [
129
- a.$slots.title || e.title ? (i(), d("div", be, [
130
- y(a.$slots, "title", {}, () => [
131
- M(_(e.title), 1)
197
+ return (c, b) => (r(), m("div", He, [
198
+ c.$slots.title || e.title ? (r(), m("div", Ke, [
199
+ C(c.$slots, "title", {}, () => [
200
+ H(x(e.title), 1)
132
201
  ], !0)
133
- ])) : g("", !0),
134
- b("div", {
202
+ ])) : k("", !0),
203
+ $("div", {
135
204
  class: "rc-descriptions__body",
136
- style: h({ gap: c.value }),
205
+ style: A({ gap: i.value }),
137
206
  ref_key: "wrapEl",
138
- ref: n
207
+ ref: a
139
208
  }, [
140
- s.value.length ? (i(!0), d(A, { key: 0 }, Q(s.value, (p, v) => (i(), X(R, {
141
- key: v,
142
- label: p.label,
143
- value: p.value,
209
+ l.value.length ? (r(!0), m(M, { key: 0 }, Y(l.value, (y, g) => (r(), q(P, {
210
+ key: g,
211
+ label: y.label,
212
+ value: y.value,
144
213
  "label-width": e.labelWidth
145
- }, null, 8, ["label", "value", "label-width"]))), 128)) : y(a.$slots, "default", { key: 1 }, void 0, !0)
214
+ }, null, 8, ["label", "value", "label-width"]))), 128)) : C(c.$slots, "default", { key: 1 }, void 0, !0)
146
215
  ], 4)
147
216
  ]));
148
217
  }
149
- }), B = /* @__PURE__ */ w(ve, [["__scopeId", "data-v-5fcaa235"]]);
150
- B.name = "rc-descriptions";
151
- R.name = "rc-descriptions-item";
152
- function K(e) {
153
- return e.component(B.name, B), e.component("RcDescriptions", B), e.component(R.name, R), e.component("RcDescriptionsItem", R), e;
218
+ }), J = /* @__PURE__ */ T(Ye, [["__scopeId", "data-v-5fcaa235"]]);
219
+ J.name = "rc-descriptions";
220
+ P.name = "rc-descriptions-item";
221
+ function fe(e) {
222
+ return e.component(J.name, J), e.component("RcDescriptions", J), e.component(P.name, P), e.component("RcDescriptionsItem", P), e;
154
223
  }
155
- const He = B, Ke = R, he = { class: "rc-card__title" }, _e = { class: "rc-card__title-text" }, $e = {
224
+ const Lt = J, Nt = P, Je = { class: "rc-card__title" }, Qe = { class: "rc-card__title-text" }, Xe = {
156
225
  key: 0,
157
226
  class: "rc-card__status"
158
- }, ke = {
227
+ }, Ze = {
159
228
  key: 1,
160
229
  class: "rc-card__divider"
161
- }, xe = {
230
+ }, et = {
162
231
  key: 2,
163
232
  class: "rc-card__action"
164
- }, Ce = /* @__PURE__ */ S({
233
+ }, tt = /* @__PURE__ */ W({
165
234
  name: "rc-card",
166
235
  __name: "index",
167
236
  props: {
@@ -179,84 +248,84 @@ const He = B, Ke = R, he = { class: "rc-card__title" }, _e = { class: "rc-card__
179
248
  height: { default: "" }
180
249
  },
181
250
  setup(e) {
182
- const t = e, n = f(() => {
251
+ const t = e, a = _(() => {
183
252
  const o = typeof t.round == "boolean" ? t.round ? "12px" : "0" : typeof t.round == "number" ? `${t.round}px` : String(t.round);
184
253
  return {
185
254
  backgroundColor: t.color || "var(--rc-white)",
186
255
  borderRadius: o,
187
- boxShadow: l(t.elevation),
188
- width: u(t.width),
189
- height: u(t.height)
256
+ boxShadow: u(t.elevation),
257
+ width: f(t.width),
258
+ height: f(t.height)
190
259
  };
191
- }), c = f(() => t.padding || "16px"), r = f(
260
+ }), i = _(() => t.padding || "16px"), v = _(
192
261
  () => typeof t.gap == "number" ? `${t.gap}px` : String(t.gap)
193
262
  );
194
- function u(o) {
263
+ function f(o) {
195
264
  return o == null || o === "" ? "" : typeof o == "number" ? `${o}px` : String(o);
196
265
  }
197
- function l(o) {
266
+ function u(o) {
198
267
  if (!o || o <= 0) return "none";
199
- const s = 4 * o;
200
- return `0 ${Math.round(s / 2)}px ${s}px rgba(0,0,0,0.06), 0 ${Math.round(
201
- s / 4
202
- )}px ${Math.round(s / 2)}px rgba(0,0,0,0.04)`;
268
+ const l = 4 * o;
269
+ return `0 ${Math.round(l / 2)}px ${l}px rgba(0,0,0,0.06), 0 ${Math.round(
270
+ l / 4
271
+ )}px ${Math.round(l / 2)}px rgba(0,0,0,0.04)`;
203
272
  }
204
- return (o, s) => (i(), d("div", {
205
- class: z(["rc-card", [{ "rc-card--bordered": e.bordered }]]),
206
- style: h(n.value)
273
+ return (o, l) => (r(), m("div", {
274
+ class: V(["rc-card", [{ "rc-card--bordered": e.bordered }]]),
275
+ style: A(a.value)
207
276
  }, [
208
- o.$slots.title || e.title || o.$slots.status || e.status ? (i(), d("div", {
277
+ o.$slots.title || e.title || o.$slots.status || e.status ? (r(), m("div", {
209
278
  key: 0,
210
279
  class: "rc-card__top",
211
- style: h({ backgroundColor: e.topBgColor || "rgba(29, 133, 252, 0.05)" })
280
+ style: A({ backgroundColor: e.topBgColor || "rgba(29, 133, 252, 0.05)" })
212
281
  }, [
213
- b("div", he, [
214
- y(o.$slots, "title", {}, () => [
215
- b("span", _e, _(e.title), 1)
282
+ $("div", Je, [
283
+ C(o.$slots, "title", {}, () => [
284
+ $("span", Qe, x(e.title), 1)
216
285
  ], !0)
217
286
  ]),
218
- o.$slots.status || e.status ? (i(), d("div", $e, [
219
- y(o.$slots, "status", {}, () => [
220
- b("span", {
287
+ o.$slots.status || e.status ? (r(), m("div", Xe, [
288
+ C(o.$slots, "status", {}, () => [
289
+ $("span", {
221
290
  class: "rc-card__status-text",
222
- style: h({ color: e.statusColor || "var(--rc-primary)" })
223
- }, _(e.status), 5)
291
+ style: A({ color: e.statusColor || "var(--rc-primary)" })
292
+ }, x(e.status), 5)
224
293
  ], !0)
225
- ])) : g("", !0)
226
- ], 4)) : g("", !0),
227
- b("div", {
294
+ ])) : k("", !0)
295
+ ], 4)) : k("", !0),
296
+ $("div", {
228
297
  class: "rc-card__body",
229
- style: h({ padding: c.value, gap: r.value })
298
+ style: A({ padding: i.value, gap: v.value })
230
299
  }, [
231
- y(o.$slots, "content", {}, () => [
232
- y(o.$slots, "default", {}, void 0, !0)
300
+ C(o.$slots, "content", {}, () => [
301
+ C(o.$slots, "default", {}, void 0, !0)
233
302
  ], !0)
234
303
  ], 4),
235
- o.$slots.action ? (i(), d("div", ke)) : g("", !0),
236
- o.$slots.action ? (i(), d("div", xe, [
237
- y(o.$slots, "action", {}, void 0, !0)
238
- ])) : g("", !0)
304
+ o.$slots.action ? (r(), m("div", Ze)) : k("", !0),
305
+ o.$slots.action ? (r(), m("div", et, [
306
+ C(o.$slots, "action", {}, void 0, !0)
307
+ ])) : k("", !0)
239
308
  ], 6));
240
309
  }
241
- }), U = /* @__PURE__ */ w(Ce, [["__scopeId", "data-v-a7b95214"]]);
242
- U.name = "rc-card";
243
- const Se = "RcCard";
244
- function O(e) {
245
- return e.component(U.name, U), e.component(Se, U), e;
310
+ }), te = /* @__PURE__ */ T(tt, [["__scopeId", "data-v-a7b95214"]]);
311
+ te.name = "rc-card";
312
+ const nt = "RcCard";
313
+ function me(e) {
314
+ return e.component(te.name, te), e.component(nt, te), e;
246
315
  }
247
- const we = {
316
+ const st = {
248
317
  key: 0,
249
318
  class: "rc-toast__mask"
250
- }, Ie = { class: "rc-toast__content" }, De = {
319
+ }, at = { class: "rc-toast__content" }, lt = {
251
320
  key: 0,
252
321
  class: "rc-toast__spinner"
253
- }, Ne = {
322
+ }, rt = {
254
323
  key: 1,
255
324
  class: "rc-toast__icon rc-toast__icon--success"
256
- }, Re = {
325
+ }, ot = {
257
326
  key: 2,
258
327
  class: "rc-toast__icon rc-toast__icon--fail"
259
- }, We = { class: "rc-toast__text" }, Be = /* @__PURE__ */ S({
328
+ }, ct = { class: "rc-toast__text" }, it = /* @__PURE__ */ W({
260
329
  __name: "index",
261
330
  props: {
262
331
  message: { default: "" },
@@ -266,250 +335,433 @@ const we = {
266
335
  onAfterLeave: {}
267
336
  },
268
337
  setup(e, { expose: t }) {
269
- const n = e, c = T(!0);
270
- let r;
271
- function u() {
272
- r && (clearTimeout(r), r = null);
338
+ const a = e, i = I(!0);
339
+ let v;
340
+ function f() {
341
+ v && (clearTimeout(v), v = null);
273
342
  }
274
- function l() {
275
- u(), c.value = !1;
343
+ function u() {
344
+ f(), i.value = !1;
276
345
  }
277
- return t({ close: l }), Z(() => {
278
- n.duration && n.duration > 0 && (r = setTimeout(() => {
279
- l();
280
- }, n.duration));
281
- }), ae(() => {
282
- u();
283
- }), (o, s) => (i(), d(A, null, [
284
- (i(), X(ce, { to: "body" }, [
285
- P(re, {
346
+ return t({ close: u }), be(() => {
347
+ a.duration && a.duration > 0 && (v = setTimeout(() => {
348
+ u();
349
+ }, a.duration));
350
+ }), ke(() => {
351
+ f();
352
+ }), (o, l) => (r(), m(M, null, [
353
+ (r(), q(Ne, { to: "body" }, [
354
+ L(le, {
286
355
  name: "rc-toast-fade",
287
356
  onAfterLeave: e.onAfterLeave
288
357
  }, {
289
- default: ee(() => [
290
- c.value ? (i(), d("div", {
358
+ default: O(() => [
359
+ i.value ? (r(), m("div", {
291
360
  key: 0,
292
- class: z(["rc-toast", [`rc-toast--${e.type}`]])
361
+ class: V(["rc-toast", [`rc-toast--${e.type}`]])
293
362
  }, [
294
- e.mask ? (i(), d("div", we)) : g("", !0),
295
- b("div", Ie, [
296
- e.type === "loading" ? (i(), d("div", De)) : e.type === "success" ? (i(), d("div", Ne)) : e.type === "fail" ? (i(), d("div", Re)) : g("", !0),
297
- b("div", We, _(e.message), 1)
363
+ e.mask ? (r(), m("div", st)) : k("", !0),
364
+ $("div", at, [
365
+ e.type === "loading" ? (r(), m("div", lt)) : e.type === "success" ? (r(), m("div", rt)) : e.type === "fail" ? (r(), m("div", ot)) : k("", !0),
366
+ $("div", ct, x(e.message), 1)
298
367
  ])
299
- ], 2)) : g("", !0)
368
+ ], 2)) : k("", !0)
300
369
  ]),
301
370
  _: 1
302
371
  }, 8, ["onAfterLeave"])
303
372
  ])),
304
- y(o.$slots, "default", {}, void 0, !0)
373
+ C(o.$slots, "default", {}, void 0, !0)
305
374
  ], 64));
306
375
  }
307
- }), E = /* @__PURE__ */ w(Be, [["__scopeId", "data-v-d234c9c5"]]);
308
- let C = null, W = null;
309
- function Y() {
310
- C && (C.unmount(), C = null), W && (document.body.removeChild(W), W = null);
376
+ }), ne = /* @__PURE__ */ T(it, [["__scopeId", "data-v-d234c9c5"]]);
377
+ let U = null, j = null;
378
+ function ve() {
379
+ U && (U.unmount(), U = null), j && (document.body.removeChild(j), j = null);
311
380
  }
312
- function Oe(e) {
381
+ function Bt(e) {
313
382
  const t = typeof e == "string" ? { message: e } : e || {};
314
- Y(), W = document.createElement("div"), document.body.appendChild(W);
315
- const n = {
383
+ ve(), j = document.createElement("div"), document.body.appendChild(j);
384
+ const a = {
316
385
  message: t.message,
317
386
  type: t.type ?? "text",
318
387
  duration: t.duration ?? 2e3,
319
388
  mask: t.mask ?? !1,
320
389
  onAfterLeave: () => {
321
- var c;
322
- Y(), (c = t.onClose) == null || c.call(t);
390
+ var i;
391
+ ve(), (i = t.onClose) == null || i.call(t);
323
392
  }
324
393
  };
325
- return C = le(E, n), C.mount(W), {
326
- close: ze
394
+ return U = Be(ne, a), U.mount(j), {
395
+ close: ut
327
396
  };
328
397
  }
329
- function ze() {
330
- var e, t, n;
331
- C && ((n = (t = (e = C._instance) == null ? void 0 : e.exposed) == null ? void 0 : t.close) == null || n.call(t));
398
+ function ut() {
399
+ var e, t, a;
400
+ U && ((a = (t = (e = U._instance) == null ? void 0 : e.exposed) == null ? void 0 : t.close) == null || a.call(t));
332
401
  }
333
- E.name = "rc-toast";
334
- function j(e) {
335
- return e.component(E.name, E), e;
402
+ ne.name = "rc-toast";
403
+ function pe(e) {
404
+ return e.component(ne.name, ne), e;
336
405
  }
337
- const Te = {
406
+ const dt = {
338
407
  class: "rc-message",
339
408
  role: "alert",
340
409
  "aria-live": "polite"
341
- }, Ue = { class: "rc-message__content" }, Le = /* @__PURE__ */ S({
410
+ }, ft = { class: "rc-message__content" }, mt = /* @__PURE__ */ W({
342
411
  __name: "index",
343
412
  setup(e, { expose: t }) {
344
- const n = ie([]);
345
- let c = 1;
346
- function r(l) {
347
- const o = n.findIndex((s) => s.id === l);
348
- o >= 0 && n.splice(o, 1);
413
+ const a = We([]);
414
+ let i = 1;
415
+ function v(u) {
416
+ const o = a.findIndex((l) => l.id === u);
417
+ o >= 0 && a.splice(o, 1);
349
418
  }
350
- function u(l, o, s) {
351
- const a = c++;
352
- return n.push({ id: a, type: l, content: o, duration: s }), s > 0 && window.setTimeout(() => r(a), s), a;
419
+ function f(u, o, l) {
420
+ const c = i++;
421
+ return a.push({ id: c, type: u, content: o, duration: l }), l > 0 && window.setTimeout(() => v(c), l), c;
353
422
  }
354
- return t({ add: u, remove: r }), (l, o) => (i(), d("div", Te, [
355
- P(ue, {
423
+ return t({ add: f, remove: v }), (u, o) => (r(), m("div", dt, [
424
+ L(Te, {
356
425
  name: "rc-message-fade",
357
426
  tag: "div"
358
427
  }, {
359
- default: ee(() => [
360
- (i(!0), d(A, null, Q(n, (s) => (i(), d("div", {
361
- key: s.id,
362
- class: z(["rc-message__item", `rc-message--${s.type}`])
428
+ default: O(() => [
429
+ (r(!0), m(M, null, Y(a, (l) => (r(), m("div", {
430
+ key: l.id,
431
+ class: V(["rc-message__item", `rc-message--${l.type}`])
363
432
  }, [
364
- b("span", Ue, _(s.content), 1)
433
+ $("span", ft, x(l.content), 1)
365
434
  ], 2))), 128))
366
435
  ]),
367
436
  _: 1
368
437
  })
369
438
  ]));
370
439
  }
371
- }), Me = /* @__PURE__ */ w(Le, [["__scopeId", "data-v-87811df0"]]);
372
- let k = null, $ = null;
373
- function Ee() {
440
+ }), vt = /* @__PURE__ */ T(mt, [["__scopeId", "data-v-87811df0"]]);
441
+ let B = null, N = null;
442
+ function pt() {
374
443
  var t;
375
- if (k && $) return;
376
- k = document.createElement("div"), document.body.appendChild(k);
377
- const e = P(Me, {});
378
- te(e, k), $ = (t = e.component) == null ? void 0 : t.exposed;
444
+ if (B && N) return;
445
+ B = document.createElement("div"), document.body.appendChild(B);
446
+ const e = L(vt, {});
447
+ $e(e, B), N = (t = e.component) == null ? void 0 : t.exposed;
379
448
  }
380
- function N(e, t, n) {
381
- var r;
382
- Ee();
383
- const c = typeof n == "number" ? n : e === "loading" ? 0 : 2e3;
384
- return (r = $ == null ? void 0 : $.add) == null ? void 0 : r.call($, e, t, c);
449
+ function G(e, t, a) {
450
+ var v;
451
+ pt();
452
+ const i = typeof a == "number" ? a : e === "loading" ? 0 : 2e3;
453
+ return (v = N == null ? void 0 : N.add) == null ? void 0 : v.call(N, e, t, i);
385
454
  }
386
- const Ge = {
455
+ const yt = {
387
456
  open(e) {
388
- return N(e.type || "info", e.content, e.duration);
457
+ return G(e.type || "info", e.content, e.duration);
389
458
  },
390
459
  info(e, t) {
391
- return N("info", e, t);
460
+ return G("info", e, t);
392
461
  },
393
462
  success(e, t) {
394
- return N("success", e, t);
463
+ return G("success", e, t);
395
464
  },
396
465
  warning(e, t) {
397
- return N("warning", e, t);
466
+ return G("warning", e, t);
398
467
  },
399
468
  error(e, t) {
400
- return N("error", e, t);
469
+ return G("error", e, t);
401
470
  },
402
471
  loading(e, t) {
403
- return N("loading", e, t);
472
+ return G("loading", e, t);
404
473
  },
405
474
  destroy() {
406
- k && (te(null, k), k.remove(), k = null, $ = null);
475
+ B && ($e(null, B), B.remove(), B = null, N = null);
407
476
  }
408
477
  };
409
- function q(e) {
410
- return e.config.globalProperties.$message = Ge, e;
478
+ function ye(e) {
479
+ return e.config.globalProperties.$message = yt, e;
411
480
  }
412
- const Ae = {
481
+ D.name = "rc-icon";
482
+ function he(e) {
483
+ return e.component(D.name, D), e.component("RcIcon", D), e;
484
+ }
485
+ const ht = { class: "rc-search-area" }, gt = { class: "rc-search-area__bar" }, _t = ["onClick"], bt = { class: "rc-search-area__item-label" }, kt = { class: "rc-search-area__panel-content" }, $t = {
413
486
  key: 0,
414
- class: "rc-icon__unicode"
415
- }, Pe = /* @__PURE__ */ S({
416
- name: "rc-icon",
487
+ class: "rc-search-area__options-grid"
488
+ }, Ct = ["onClick"], xt = { class: "rc-search-area__option-label" }, St = {
489
+ key: 1,
490
+ class: "rc-search-area__options-grid"
491
+ }, wt = ["onClick"], It = { class: "rc-search-area__option-label" }, At = {
492
+ key: 2,
493
+ class: "rc-search-area__empty"
494
+ }, Rt = { class: "rc-search-area__panel-footer" }, Vt = /* @__PURE__ */ W({
495
+ name: "rc-search-area",
417
496
  __name: "index",
418
497
  props: {
419
- name: {},
420
- size: { default: 16 },
421
- color: { default: "" },
422
- spin: { type: Boolean, default: !1 },
423
- code: { default: "" }
498
+ items: { default: () => [] },
499
+ modelValue: { default: () => ({}) },
500
+ showMask: { type: Boolean, default: !0 }
424
501
  },
425
- setup(e) {
426
- const t = e, n = x(F, {}), c = f(() => (n == null ? void 0 : n.iconClass) || "iconfont"), r = f(() => t.name || ""), u = f(() => typeof t.size == "number" ? `${t.size}px` : t.size || "16px"), l = f(() => ({
427
- fontSize: u.value,
428
- color: t.color || void 0,
429
- lineHeight: 1,
430
- fontFamily: (n == null ? void 0 : n.iconClass) || "iconfont"
431
- })), o = f(() => {
432
- const s = t.code;
433
- if (s == null || s === "" || s === 0) return "";
434
- if (typeof s == "number")
435
- return String.fromCharCode(s);
436
- const a = String(s).replace(/^0x/i, ""), m = parseInt(a, 16);
437
- return Number.isNaN(m) ? "" : String.fromCharCode(m);
502
+ emits: ["update:modelValue", "change", "confirm", "reset", "item-change"],
503
+ setup(e, { expose: t, emit: a }) {
504
+ const i = e, v = a, f = I(null), u = I(null), o = I(null), l = I({ top: "0px" }), c = async () => {
505
+ if (f.value === null || !u.value)
506
+ return;
507
+ await ue();
508
+ const s = u.value.getBoundingClientRect().top;
509
+ l.value = { top: `${s}px` };
510
+ }, b = (n) => {
511
+ if (f.value === null || !u.value)
512
+ return;
513
+ const s = n.target;
514
+ if (u.value.contains(s))
515
+ return;
516
+ const d = u.value.closest(".rc-search-area");
517
+ if (d) {
518
+ const p = d.querySelector(".rc-search-area__bar");
519
+ if (p && p.contains(s))
520
+ return;
521
+ }
522
+ se();
523
+ };
524
+ ie(f, async (n) => {
525
+ n !== null ? (await ue(), c(), window.addEventListener("resize", c), window.addEventListener("scroll", c, !0), document.addEventListener("click", b, !0)) : (window.removeEventListener("resize", c), window.removeEventListener("scroll", c, !0), document.removeEventListener("click", b, !0));
526
+ }), ke(() => {
527
+ window.removeEventListener("resize", c), window.removeEventListener("scroll", c, !0), document.removeEventListener("click", b, !0);
438
528
  });
439
- return Z(() => {
440
- if (typeof window > "u") return;
441
- const s = n && n.iconCssUrl || ne.iconCssUrl;
529
+ const y = I({}), g = I({ ...i.modelValue });
530
+ ie(() => i.modelValue, (n) => {
531
+ g.value = { ...n || {} };
532
+ }, { deep: !0, immediate: !0 });
533
+ const h = _(() => f.value === null ? null : i.items[f.value]), E = _(() => {
534
+ if (!h.value) return "";
535
+ const n = De(h.value);
536
+ return n > 0 ? `(${n}项)` : "";
537
+ }), Se = (n) => {
538
+ const s = g.value[n.key];
539
+ if (s == null || s === "")
540
+ return n.label;
541
+ if (n.type === "single") {
542
+ const d = oe(n, s);
543
+ if (d)
544
+ return `${n.label}: ${X(d)}`;
545
+ } else {
546
+ const d = Array.isArray(s) ? s : [s];
547
+ if (d.length > 0) {
548
+ const p = d.map((S) => {
549
+ const w = oe(n, S);
550
+ return w ? X(w) : null;
551
+ }).filter((S) => S !== null);
552
+ if (p.length > 0)
553
+ return `${n.label}: ${p.join("、")}`;
554
+ }
555
+ }
556
+ return n.label;
557
+ }, we = (n) => {
558
+ const s = i.items[n];
442
559
  if (!s) return;
443
- const a = `link[rel="stylesheet"][data-rcui-icon="true"][href="${s}"]`;
444
- if (!document.head.querySelector(a)) {
445
- const p = document.createElement("link");
446
- p.rel = "stylesheet", p.href = s, p.setAttribute("data-rcui-icon", "true"), document.head.appendChild(p);
560
+ if (f.value === n) {
561
+ f.value = null;
562
+ return;
447
563
  }
448
- }), (s, a) => (i(), d("i", {
449
- class: z(["rc-icon", [c.value, r.value, { "rc-icon--spin": e.spin }]]),
450
- style: h(l.value),
451
- "aria-hidden": "true"
452
- }, [
453
- o.value ? (i(), d("span", Ae, _(o.value), 1)) : g("", !0)
454
- ], 6));
564
+ const d = g.value[s.key];
565
+ s.type === "single" ? y.value[s.key] = d !== void 0 ? d : null : y.value[s.key] = d !== void 0 ? Array.isArray(d) ? [...d] : [d] : [], f.value = n;
566
+ }, se = () => {
567
+ f.value = null;
568
+ }, X = (n) => typeof n == "string" ? n : n.label || String(n.value), Z = (n) => typeof n == "string" ? n : n.value !== void 0 ? n.value : n, oe = (n, s) => n.options.find((d) => {
569
+ const p = Z(d);
570
+ return p === s || String(p) === String(s);
571
+ }) || null, ee = (n) => {
572
+ if (!h.value) return !1;
573
+ const s = h.value.key, d = y.value[s], p = Z(n);
574
+ return h.value.type === "single" ? d != null && d === p : (Array.isArray(d) ? d : []).some((w) => w === p || String(w) === String(p));
575
+ }, Ie = (n) => {
576
+ if (!h.value) return;
577
+ const s = h.value.key, d = Z(n);
578
+ y.value[s] === d ? y.value[s] = null : y.value[s] = d;
579
+ }, Ae = (n) => {
580
+ if (!h.value) return;
581
+ const s = h.value.key, d = Z(n), p = Array.isArray(y.value[s]) ? [...y.value[s]] : [], S = p.findIndex(
582
+ (w) => w === d || String(w) === String(d)
583
+ );
584
+ S >= 0 ? p.splice(S, 1) : p.push(d), y.value[s] = p;
585
+ }, Re = () => {
586
+ if (!h.value) return;
587
+ const n = h.value.key;
588
+ h.value.type === "single" ? y.value[n] = null : y.value[n] = [];
589
+ }, Ve = () => {
590
+ if (!h.value) return;
591
+ const n = h.value.key, s = y.value[n], d = g.value[n];
592
+ let p;
593
+ h.value.type === "single" ? (p = s ?? void 0, g.value[n] = p) : (p = Array.isArray(s) && s.length > 0 ? s : void 0, g.value[n] = p), v("update:modelValue", { ...g.value }), v("change", { ...g.value }, h.value), v("confirm", { ...g.value }, h.value), JSON.stringify(d) !== JSON.stringify(p) && v("item-change", n, p), se();
594
+ }, ce = (n) => {
595
+ const s = g.value[n.key];
596
+ return s == null || s === "" ? 0 : n.type === "single" ? 1 : Array.isArray(s) ? s.length : s ? 1 : 0;
597
+ }, De = (n) => {
598
+ const s = y.value[n.key];
599
+ return s == null || s === "" ? 0 : n.type === "single" ? 1 : Array.isArray(s) ? s.length : 0;
600
+ };
601
+ return t({
602
+ /** 获取当前筛选值 */
603
+ getValues: () => ({ ...g.value }),
604
+ /** 重置所有筛选 */
605
+ reset: () => {
606
+ g.value = {}, y.value = {}, v("update:modelValue", {}), v("change", {}, null), v("reset");
607
+ }
608
+ }), (n, s) => (r(), m("div", ht, [
609
+ $("div", gt, [
610
+ (r(!0), m(M, null, Y(i.items, (d, p) => (r(), m("div", {
611
+ key: p,
612
+ class: V(["rc-search-area__item", {
613
+ "is-active": f.value === p,
614
+ "has-value": ce(d) > 0
615
+ }]),
616
+ onClick: (S) => we(p)
617
+ }, [
618
+ $("span", bt, x(Se(d)), 1),
619
+ L(K(D), {
620
+ name: "icon_a-xiala2",
621
+ color: f.value !== p && ce(d) > 0 ? "#1677ff" : "#969799",
622
+ class: V(["rc-search-area__item-arrow", { "is-up": f.value === p }])
623
+ }, null, 8, ["color", "class"])
624
+ ], 10, _t))), 128))
625
+ ]),
626
+ L(le, { name: "rc-search-area-fade" }, {
627
+ default: O(() => [
628
+ f.value !== null && i.showMask ? (r(), m("div", {
629
+ key: 0,
630
+ ref_key: "maskRef",
631
+ ref: o,
632
+ class: "rc-search-area__mask",
633
+ style: A(l.value),
634
+ onClick: se
635
+ }, null, 4)) : k("", !0)
636
+ ]),
637
+ _: 1
638
+ }),
639
+ L(le, { name: "rc-search-area-slide" }, {
640
+ default: O(() => {
641
+ var d, p, S, w;
642
+ return [
643
+ f.value !== null ? (r(), m("div", {
644
+ key: 0,
645
+ ref_key: "panelRef",
646
+ ref: u,
647
+ class: "rc-search-area__panel"
648
+ }, [
649
+ $("div", kt, [
650
+ ((d = h.value) == null ? void 0 : d.type) === "single" ? (r(), m("div", $t, [
651
+ (r(!0), m(M, null, Y(h.value.options, (R, ae) => (r(), m("div", {
652
+ key: ae,
653
+ class: V(["rc-search-area__option", { "is-selected": ee(R) }]),
654
+ onClick: (Ee) => Ie(R)
655
+ }, [
656
+ $("span", xt, x(X(R)), 1),
657
+ ee(R) ? (r(), q(K(D), {
658
+ key: 0,
659
+ name: "icon_select",
660
+ class: "rc-search-area__option-check"
661
+ })) : k("", !0)
662
+ ], 10, Ct))), 128))
663
+ ])) : (r(), m("div", St, [
664
+ (r(!0), m(M, null, Y(((p = h.value) == null ? void 0 : p.options) || [], (R, ae) => (r(), m("div", {
665
+ key: ae,
666
+ class: V(["rc-search-area__option", { "is-selected": ee(R) }]),
667
+ onClick: (Ee) => Ae(R)
668
+ }, [
669
+ $("span", It, x(X(R)), 1),
670
+ ee(R) ? (r(), q(K(D), {
671
+ key: 0,
672
+ name: "icon_select",
673
+ class: "rc-search-area__option-check"
674
+ })) : k("", !0)
675
+ ], 10, wt))), 128))
676
+ ])),
677
+ ((w = (S = h.value) == null ? void 0 : S.options) == null ? void 0 : w.length) === 0 ? (r(), m("div", At, [...s[0] || (s[0] = [
678
+ $("p", null, "暂无选项", -1)
679
+ ])])) : k("", !0)
680
+ ]),
681
+ $("div", Rt, [
682
+ L(K(Q), {
683
+ block: "",
684
+ onClick: Re
685
+ }, {
686
+ default: O(() => [...s[1] || (s[1] = [
687
+ H(" 重置 ", -1)
688
+ ])]),
689
+ _: 1
690
+ }),
691
+ L(K(Q), {
692
+ type: "primary",
693
+ block: "",
694
+ onClick: Ve
695
+ }, {
696
+ default: O(() => [
697
+ H(" 确定" + x(E.value), 1)
698
+ ]),
699
+ _: 1
700
+ })
701
+ ])
702
+ ], 512)) : k("", !0)
703
+ ];
704
+ }),
705
+ _: 1
706
+ })
707
+ ]));
455
708
  }
456
- }), L = /* @__PURE__ */ w(Pe, [["__scopeId", "data-v-3857a892"]]);
457
- L.name = "rc-icon";
458
- function J(e) {
459
- return e.component(L.name, L), e.component("RcIcon", L), e;
460
- }
461
- const F = Symbol("RECYCLE_UI_CONFIG"), ne = {
709
+ }), ge = /* @__PURE__ */ T(Vt, [["__scopeId", "data-v-6a70650d"]]), _e = (e) => {
710
+ e.component("RcSearchArea", ge), e.component("rc-search-area", ge);
711
+ }, re = Symbol("RECYCLE_UI_CONFIG"), Ce = {
462
712
  prefix: "rc",
463
713
  autoRegister: !0,
464
- provideKey: F,
714
+ provideKey: re,
465
715
  // 预留主题/其他全局配置
466
716
  theme: {},
467
717
  // IconFont 默认配置(可在 app.use 时覆盖)
468
718
  iconCssUrl: "//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",
469
719
  iconClass: "iconfont"
470
720
  };
471
- function Fe(e, t) {
472
- t.autoRegister !== !1 && (typeof H == "function" && H(e), typeof K == "function" && K(e), typeof O == "function" && O(e), typeof j == "function" && j(e), typeof J == "function" && J(e), typeof q == "function" && q(e));
721
+ function Dt(e, t) {
722
+ t.autoRegister !== !1 && (typeof de == "function" && de(e), typeof fe == "function" && fe(e), typeof me == "function" && me(e), typeof pe == "function" && pe(e), typeof he == "function" && he(e), typeof ye == "function" && ye(e), typeof _e == "function" && _e(e));
473
723
  }
474
- const se = (e, t) => {
475
- const n = { ...ne, ...t || {} };
476
- if (e.provide(n.provideKey ?? F, n), e.config.globalProperties.$recycleUI = n, typeof window < "u" && n.iconCssUrl) {
477
- const c = `link[rel="stylesheet"][data-rcui-icon="true"][href="${n.iconCssUrl}"]`;
478
- if (!document.head.querySelector(c)) {
479
- const u = document.createElement("link");
480
- u.rel = "stylesheet", u.href = n.iconCssUrl, u.setAttribute("data-rcui-icon", "true"), document.head.appendChild(u);
724
+ const xe = (e, t) => {
725
+ const a = { ...Ce, ...t || {} };
726
+ if (e.provide(a.provideKey ?? re, a), e.config.globalProperties.$recycleUI = a, typeof window < "u" && a.iconCssUrl) {
727
+ const i = `link[rel="stylesheet"][data-rcui-icon="true"][href="${a.iconCssUrl}"]`;
728
+ if (!document.head.querySelector(i)) {
729
+ const f = document.createElement("link");
730
+ f.rel = "stylesheet", f.href = a.iconCssUrl, f.setAttribute("data-rcui-icon", "true"), document.head.appendChild(f);
481
731
  }
482
732
  }
483
- return Fe(e, n), e;
484
- }, Ye = { install: se };
485
- function je(e) {
733
+ return Dt(e, a), e;
734
+ }, Wt = { install: xe };
735
+ function Tt(e) {
486
736
  return {
487
737
  install(t) {
488
- se(t, e);
738
+ xe(t, e);
489
739
  }
490
740
  };
491
741
  }
492
742
  export {
493
- F as RECYCLE_UI_SYMBOL,
494
- G as RcButton,
495
- U as RcCard,
496
- He as RcDescriptions,
497
- Ke as RcDescriptionsItem,
498
- L as RcIcon,
499
- E as RcToast,
500
- je as createRecycleUI,
501
- Ye as default,
502
- ne as defaultRecycleUIConfig,
503
- ze as hideToast,
504
- se as install,
505
- H as installButton,
506
- O as installCard,
507
- K as installDescriptions,
508
- J as installIcon,
509
- q as installMessage,
510
- Ge as message,
511
- He as rcDescriptions,
512
- Ke as rcDescriptionsItem,
513
- Oe as showToast
743
+ re as RECYCLE_UI_SYMBOL,
744
+ Q as RcButton,
745
+ te as RcCard,
746
+ Lt as RcDescriptions,
747
+ Nt as RcDescriptionsItem,
748
+ D as RcIcon,
749
+ ge as RcSearchArea,
750
+ ne as RcToast,
751
+ Tt as createRecycleUI,
752
+ Wt as default,
753
+ Ce as defaultRecycleUIConfig,
754
+ ut as hideToast,
755
+ xe as install,
756
+ de as installButton,
757
+ me as installCard,
758
+ fe as installDescriptions,
759
+ he as installIcon,
760
+ ye as installMessage,
761
+ _e as installSearchArea,
762
+ yt as message,
763
+ Lt as rcDescriptions,
764
+ Nt as rcDescriptionsItem,
765
+ Bt as showToast
514
766
  };
515
767
  //# sourceMappingURL=index.mjs.map