@pungfe/element 0.5.5 → 0.5.6

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.
Files changed (57) hide show
  1. package/dist/{advance-DrHYYcdo.cjs → advance-DVDS76yD.cjs} +1 -1
  2. package/dist/{advance-BrUQo-Pm.js → advance-DYwZGL1V.js} +4 -4
  3. package/dist/advance.cjs +1 -1
  4. package/dist/advance.js +1 -1
  5. package/dist/basic-B9QKaeaZ.cjs +1 -0
  6. package/dist/{basic-B4szF9wy.js → basic-Dp460DHr.js} +148 -147
  7. package/dist/basic.cjs +1 -1
  8. package/dist/basic.js +1 -1
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.js +3 -3
  11. package/dist/{locales-1sqaDY76.js → locales-BubNY4OM.js} +4 -4
  12. package/dist/locales.js +1 -1
  13. package/dist/package.json.d.ts +126 -0
  14. package/dist/{components → src/components}/advance/XCascaderRequest.vue.d.ts +1 -1
  15. package/dist/{components → src/components}/advance/XFormRequestNext.vue.d.ts +1 -1
  16. package/dist/{components → src/components}/advance/XRequest.vue.d.ts +1 -1
  17. package/dist/{components → src/components}/advance/XSelectRequest.vue.d.ts +1 -1
  18. package/dist/{components → src/components}/advance/XTableConfig.vue.d.ts +3 -3
  19. package/dist/{components → src/components}/advance/XTableFlex.vue.d.ts +4 -4
  20. package/dist/{components → src/components}/advance/XTableRequestConfigNext.vue.d.ts +5 -4
  21. package/dist/{components → src/components}/advance/XTableRequestNext.vue.d.ts +5 -5
  22. package/dist/{components → src/components}/basic/Table.vue.d.ts +2 -2
  23. package/dist/style.css +1 -1
  24. package/package.json +12 -9
  25. package/dist/basic-BHdwt1Pu.cjs +0 -1
  26. /package/dist/{advance.d.ts → src/advance.d.ts} +0 -0
  27. /package/dist/{basic.d.ts → src/basic.d.ts} +0 -0
  28. /package/dist/{components → src/components}/advance/XButtonAsync.vue.d.ts +0 -0
  29. /package/dist/{components → src/components}/advance/XButtonConfirm.vue.d.ts +0 -0
  30. /package/dist/{components → src/components}/advance/XFormFlex.vue.d.ts +0 -0
  31. /package/dist/{components → src/components}/advance/XUploadOssNext.vue.d.ts +0 -0
  32. /package/dist/{components → src/components}/basic/Button.vue.d.ts +0 -0
  33. /package/dist/{components → src/components}/basic/Cascader.vue.d.ts +0 -0
  34. /package/dist/{components → src/components}/basic/Checkbox.vue.d.ts +0 -0
  35. /package/dist/{components → src/components}/basic/ConfigProvider.vue.d.ts +0 -0
  36. /package/dist/{components → src/components}/basic/DatePicker.vue.d.ts +0 -0
  37. /package/dist/{components → src/components}/basic/Dialog.vue.d.ts +0 -0
  38. /package/dist/{components → src/components}/basic/Form.vue.d.ts +0 -0
  39. /package/dist/{components → src/components}/basic/FormItem.vue.d.ts +0 -0
  40. /package/dist/{components → src/components}/basic/Input.vue.d.ts +0 -0
  41. /package/dist/{components → src/components}/basic/InputNumber.vue.d.ts +0 -0
  42. /package/dist/{components → src/components}/basic/Pagination.vue.d.ts +0 -0
  43. /package/dist/{components → src/components}/basic/Select.vue.d.ts +0 -0
  44. /package/dist/{components → src/components}/basic/TabPane.vue.d.ts +0 -0
  45. /package/dist/{components → src/components}/basic/Tabs.vue.d.ts +0 -0
  46. /package/dist/{components → src/components}/basic/Upload.vue.d.ts +0 -0
  47. /package/dist/{composables → src/composables}/useElementConfig.d.ts +0 -0
  48. /package/dist/{constants → src/constants}/index.d.ts +0 -0
  49. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  50. /package/dist/{install.d.ts → src/install.d.ts} +0 -0
  51. /package/dist/{locales → src/locales}/ar.d.ts +0 -0
  52. /package/dist/{locales → src/locales}/en.d.ts +0 -0
  53. /package/dist/{locales → src/locales}/th.d.ts +0 -0
  54. /package/dist/{locales → src/locales}/zh-cn.d.ts +0 -0
  55. /package/dist/{locales.d.ts → src/locales.d.ts} +0 -0
  56. /package/dist/{resolver.d.ts → src/resolver.d.ts} +0 -0
  57. /package/dist/{types.d.ts → src/types.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import { t as e } from "./locales-1sqaDY76.js";
2
- import { ElButton as t, ElCascader as n, ElCheckbox as r, ElConfigProvider as i, ElDatePicker as a, ElDialog as o, ElForm as s, ElFormItem as c, ElInput as l, ElInputNumber as u, ElOption as ee, ElPagination as d, ElSelect as te, ElTabPane as f, ElTable as p, ElTableColumn as ne, ElTabs as m, ElUpload as h, useLocale as g } from "element-plus";
3
- import { Fragment as _, computed as v, createBlock as y, createElementBlock as re, createSlots as b, createVNode as x, defineComponent as S, getCurrentInstance as C, getCurrentScope as ie, guardReactiveProps as w, inject as T, mergeModels as E, mergeProps as D, nextTick as ae, normalizeProps as O, onMounted as k, onScopeDispose as oe, onUnmounted as se, openBlock as A, provide as j, ref as ce, renderList as M, renderSlot as N, shallowRef as P, toValue as F, unref as I, useId as le, useModel as L, useTemplateRef as R, watch as z, withCtx as B } from "vue";
1
+ import { t as e } from "./locales-BubNY4OM.js";
2
+ import { ElButton as t, ElCascader as n, ElCheckbox as r, ElConfigProvider as i, ElDatePicker as a, ElDialog as o, ElForm as s, ElFormItem as c, ElInput as l, ElInputNumber as u, ElOption as ee, ElPagination as te, ElSelect as ne, ElTabPane as d, ElTable as f, ElTableColumn as re, ElTabs as p, ElUpload as m, useLocale as h } from "element-plus";
3
+ import { Fragment as g, computed as _, createBlock as v, createElementBlock as ie, createSlots as y, createVNode as b, defineComponent as x, getCurrentInstance as S, getCurrentScope as ae, guardReactiveProps as C, inject as w, mergeModels as T, mergeProps as E, nextTick as oe, normalizeProps as D, onMounted as O, onScopeDispose as se, onUnmounted as ce, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, shallowRef as P, toValue as F, unref as I, useId as le, useModel as L, useTemplateRef as R, watch as z, withCtx as B, withModifiers as ue } from "vue";
4
4
  //#region \0rolldown/runtime.js
5
5
  var V = Object.defineProperty, H = (e, t) => {
6
6
  let n = {};
@@ -11,11 +11,11 @@ var V = Object.defineProperty, H = (e, t) => {
11
11
  return t || V(n, Symbol.toStringTag, { value: "Module" }), n;
12
12
  };
13
13
  //#endregion
14
- //#region node_modules/@vueuse/shared/dist/index.js
14
+ //#region node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.35_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
15
15
  function U(e, t) {
16
- return ie() ? (oe(e, t), !0) : !1;
16
+ return ae() ? (se(e, t), !0) : !1;
17
17
  }
18
- function ue() {
18
+ function de() {
19
19
  let e = /* @__PURE__ */ new Set(), t = (t) => {
20
20
  e.delete(t);
21
21
  };
@@ -35,7 +35,7 @@ function ue() {
35
35
  var W = typeof window < "u" && typeof document < "u";
36
36
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
37
37
  var G = () => {};
38
- function de(e, t) {
38
+ function fe(e, t) {
39
39
  function n(...n) {
40
40
  return new Promise((r, i) => {
41
41
  Promise.resolve(e(() => t.apply(this, n), {
@@ -47,7 +47,7 @@ function de(e, t) {
47
47
  }
48
48
  return n;
49
49
  }
50
- function fe(e, t = {}) {
50
+ function pe(e, t = {}) {
51
51
  let n, r, i = G, a = (e) => {
52
52
  clearTimeout(e), i(), i = G;
53
53
  }, o;
@@ -62,47 +62,47 @@ function fe(e, t = {}) {
62
62
  });
63
63
  };
64
64
  }
65
- function pe(e) {
65
+ function me(e) {
66
66
  return Array.isArray(e) ? e : [e];
67
67
  }
68
- function me(e) {
69
- return e || C();
68
+ function he(e) {
69
+ return e || S();
70
70
  }
71
- function he(e, t = 200, n = {}) {
72
- return de(fe(t, n), e);
71
+ function ge(e, t = 200, n = {}) {
72
+ return fe(pe(t, n), e);
73
73
  }
74
74
  function K(e, t = !0, n) {
75
- me(n) ? k(e, n) : t ? e() : ae(e);
75
+ he(n) ? O(e, n) : t ? e() : oe(e);
76
76
  }
77
- function ge(e, t) {
78
- return v(() => F(e).map((e) => F(e)).filter(t));
77
+ function _e(e, t) {
78
+ return _(() => F(e).map((e) => F(e)).filter(t));
79
79
  }
80
80
  function q(e, t) {
81
- return v(() => F(e).map((e) => F(e)).map(t));
81
+ return _(() => F(e).map((e) => F(e)).map(t));
82
82
  }
83
83
  //#endregion
84
- //#region node_modules/@vueuse/core/dist/index.js
85
- var J = W ? window : void 0, _e = W ? window.document : void 0;
84
+ //#region node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.35_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
85
+ var J = W ? window : void 0, ve = W ? window.document : void 0;
86
86
  W && window.navigator, W && window.location;
87
87
  function Y(e) {
88
88
  let t = F(e);
89
89
  return t?.$el ?? t;
90
90
  }
91
- function ve() {
92
- let e = P(!1), t = C();
93
- return t && k(() => {
91
+ function ye() {
92
+ let e = P(!1), t = S();
93
+ return t && O(() => {
94
94
  e.value = !0;
95
95
  }, t), e;
96
96
  }
97
97
  /* @__NO_SIDE_EFFECTS__ */
98
- function ye(e) {
99
- let t = ve();
100
- return v(() => (t.value, !!e()));
98
+ function be(e) {
99
+ let t = ye();
100
+ return _(() => (t.value, !!e()));
101
101
  }
102
- function be(e, t, n = {}) {
103
- let { window: r = J, ...i } = n, a, o = /* @__PURE__ */ ye(() => r && "ResizeObserver" in r), s = () => {
102
+ function xe(e, t, n = {}) {
103
+ let { window: r = J, ...i } = n, a, o = /* @__PURE__ */ be(() => r && "ResizeObserver" in r), s = () => {
104
104
  a &&= (a.disconnect(), void 0);
105
- }, c = z(v(() => {
105
+ }, c = z(_(() => {
106
106
  let t = F(e);
107
107
  return Array.isArray(t) ? t.map((e) => Y(e)) : [Y(t)];
108
108
  }), (e) => {
@@ -121,14 +121,14 @@ function be(e, t, n = {}) {
121
121
  stop: l
122
122
  };
123
123
  }
124
- function xe(e, t = {
124
+ function Se(e, t = {
125
125
  width: 0,
126
126
  height: 0
127
127
  }, n = {}) {
128
- let { window: r = J, box: i = "content-box" } = n, a = v(() => {
128
+ let { window: r = J, box: i = "content-box" } = n, a = _(() => {
129
129
  var t;
130
130
  return (t = Y(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
131
- }), o = P(t.width), s = P(t.height), { stop: c } = be(e, ([t]) => {
131
+ }), o = P(t.width), s = P(t.height), { stop: c } = xe(e, ([t]) => {
132
132
  let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
133
133
  if (r && a.value) {
134
134
  let t = Y(e);
@@ -137,7 +137,7 @@ function xe(e, t = {
137
137
  o.value = e.width, s.value = e.height;
138
138
  }
139
139
  } else if (n) {
140
- let e = pe(n);
140
+ let e = me(n);
141
141
  o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
142
142
  } else o.value = t.contentRect.width, s.value = t.contentRect.height;
143
143
  }, n);
@@ -159,7 +159,7 @@ function xe(e, t = {
159
159
  }
160
160
  //#endregion
161
161
  //#region src/components/basic/Button.vue
162
- var Se = /* @__PURE__ */ S({
162
+ var Ce = /* @__PURE__ */ x({
163
163
  __name: "Button",
164
164
  props: {
165
165
  disabled: {
@@ -178,7 +178,7 @@ var Se = /* @__PURE__ */ S({
178
178
  emits: ["click"],
179
179
  setup(e, { emit: n }) {
180
180
  let r = n;
181
- return (n, i) => (A(), y(I(t), D({
181
+ return (n, i) => (k(), v(I(t), E({
182
182
  type: e.type,
183
183
  text: e.text,
184
184
  link: e.link,
@@ -190,9 +190,9 @@ var Se = /* @__PURE__ */ S({
190
190
  _: 3
191
191
  }, 16));
192
192
  }
193
- }), X = Symbol("X_LOCALE_CONFIG"), Z = Symbol("X_ELEMENT_CONFIG"), Ce = Symbol("X_ELEMENT_INSTALLED"), we = Symbol("X_ELEMENT_IN_TABLE"), Te = Symbol("X_ELEMENT_IN_FORM"), Ee = Symbol("X_ELEMENT_IN_TABS"), De = Symbol("X_ELEMENT_IN_TAB_PANE"), Oe = Symbol("X_FORM_VALIDATIONS"), Q = Symbol("X_FORM_ITEM_VALIDATION"), ke = Symbol("X_TAB_PANE"), Ae = Symbol("X_TABS_MODEL_UPDATE_HOOK"), je = /* @__PURE__ */ S({
193
+ }), X = Symbol("X_LOCALE_CONFIG"), Z = Symbol("X_ELEMENT_CONFIG"), we = Symbol("X_ELEMENT_INSTALLED"), Te = Symbol("X_ELEMENT_IN_TABLE"), Ee = Symbol("X_ELEMENT_IN_FORM"), De = Symbol("X_ELEMENT_IN_TABS"), Oe = Symbol("X_ELEMENT_IN_TAB_PANE"), ke = Symbol("X_FORM_VALIDATIONS"), Q = Symbol("X_FORM_ITEM_VALIDATION"), Ae = Symbol("X_TAB_PANE"), je = Symbol("X_TABS_MODEL_UPDATE_HOOK"), Me = /* @__PURE__ */ x({
194
194
  __name: "Cascader",
195
- props: /*@__PURE__*/ E({
195
+ props: /*@__PURE__*/ T({
196
196
  clearable: { type: Boolean },
197
197
  data: {},
198
198
  disabled: {
@@ -210,17 +210,17 @@ var Se = /* @__PURE__ */ S({
210
210
  }),
211
211
  emits: ["update:modelValue"],
212
212
  setup(e) {
213
- let { t } = g(T(X)), r = L(e, "modelValue"), i = v(() => e.data ?? []), a = v({
213
+ let { t } = h(w(X)), r = L(e, "modelValue"), i = _(() => e.data ?? []), a = _({
214
214
  get: () => r.value,
215
215
  set: (e) => {
216
216
  r.value = e;
217
217
  }
218
- }), o = T(Q, void 0);
218
+ }), o = w(Q, void 0);
219
219
  if (o?.required) {
220
220
  let { label: e, validator: n } = o;
221
221
  o.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? t("el.validation.cascader", { label: e }) : n?.();
222
222
  }
223
- return (r, o) => (A(), y(I(n), D({
223
+ return (r, o) => (k(), v(I(n), E({
224
224
  modelValue: a.value,
225
225
  "onUpdate:modelValue": o[0] ||= (e) => a.value = e
226
226
  }, {
@@ -233,9 +233,9 @@ var Se = /* @__PURE__ */ S({
233
233
  placeholder: e.placeholder ?? I(t)("el.select.placeholder")
234
234
  }), null, 16, ["modelValue"]));
235
235
  }
236
- }), Me = /* @__PURE__ */ S({
236
+ }), Ne = /* @__PURE__ */ x({
237
237
  __name: "Checkbox",
238
- props: /*@__PURE__*/ E({
238
+ props: /*@__PURE__*/ T({
239
239
  disabled: {
240
240
  type: Boolean,
241
241
  default: () => void 0
@@ -257,31 +257,31 @@ var Se = /* @__PURE__ */ S({
257
257
  ] },
258
258
  modelModifiers: {}
259
259
  }),
260
- emits: /*@__PURE__*/ E(["blur", "focus"], ["update:modelValue"]),
260
+ emits: /*@__PURE__*/ T(["blur", "focus"], ["update:modelValue"]),
261
261
  setup(e) {
262
- let t = L(e, "modelValue"), { t: n } = g(T(X)), i = T(Q, void 0);
262
+ let t = L(e, "modelValue"), { t: n } = h(w(X)), i = w(Q, void 0);
263
263
  if (i?.required) {
264
264
  let { label: e, validator: r } = i;
265
265
  i.validator = () => e && !t.value ? n("el.validation.input", { label: e }) : r?.();
266
266
  }
267
- return (n, i) => (A(), y(I(r), D({ disabled: e.disabled }, {
267
+ return (n, i) => (k(), v(I(r), E({ disabled: e.disabled }, {
268
268
  modelValue: t.value,
269
269
  "onUpdate:modelValue": i[0] ||= (e) => t.value = e
270
270
  }), null, 16, ["modelValue"]));
271
271
  }
272
- }), Ne = /* @__PURE__ */ S({
272
+ }), Pe = /* @__PURE__ */ x({
273
273
  __name: "ConfigProvider",
274
274
  props: { locale: {} },
275
275
  setup(t) {
276
- let n = v(() => t.locale ?? e);
277
- return j(X, n), (e, t) => (A(), y(I(i), { locale: n.value }, {
276
+ let n = _(() => t.locale ?? e);
277
+ return A(X, n), (e, t) => (k(), v(I(i), { locale: n.value }, {
278
278
  default: B(() => [N(e.$slots, "default")]),
279
279
  _: 3
280
280
  }, 8, ["locale"]));
281
281
  }
282
- }), Pe = /* @__PURE__ */ S({
282
+ }), $ = /* @__PURE__ */ x({
283
283
  __name: "DatePicker",
284
- props: /*@__PURE__*/ E({
284
+ props: /*@__PURE__*/ T({
285
285
  disabled: {
286
286
  type: Boolean,
287
287
  default: () => void 0
@@ -306,25 +306,25 @@ var Se = /* @__PURE__ */ S({
306
306
  end: {},
307
307
  endModifiers: {}
308
308
  }),
309
- emits: /*@__PURE__*/ E(["blur", "focus"], [
309
+ emits: /*@__PURE__*/ T(["blur", "focus"], [
310
310
  "update:modelValue",
311
311
  "update:start",
312
312
  "update:end"
313
313
  ]),
314
314
  setup(e) {
315
- let t = L(e, "modelValue"), n = L(e, "start"), r = L(e, "end"), i = T(Z), { t: o } = g(T(X)), s = v({
315
+ let t = L(e, "modelValue"), n = L(e, "start"), r = L(e, "end"), i = w(Z), { t: o } = h(w(X)), s = _({
316
316
  get() {
317
317
  return e.type.includes("range") && n.value && r.value ? [n.value, r.value] : e.type.includes("range") ? null : t.value;
318
318
  },
319
319
  set(i) {
320
320
  e.type.includes("range") && Array.isArray(i) ? (n.value = i?.[0], r.value = i?.[1]) : t.value = i;
321
321
  }
322
- }), c = T(Q, void 0);
322
+ }), c = w(Q, void 0);
323
323
  if (c?.required) {
324
324
  let { label: i, validator: a } = c;
325
325
  c.validator = () => i && e.type.includes("range") && (!n.value || !r.value) || i && !e.type.includes("range") && !t.value ? o("el.validation.datepicker", { label: i }) : a?.();
326
326
  }
327
- return (t, n) => (A(), y(I(a), D({
327
+ return (t, n) => (k(), v(I(a), E({
328
328
  disabled: e.disabled,
329
329
  disabledDate: e.disabledDate,
330
330
  type: e.type,
@@ -342,9 +342,9 @@ var Se = /* @__PURE__ */ S({
342
342
  onFocus: n[2] ||= (e) => t.$emit("focus", e)
343
343
  }), null, 16, ["modelValue"]));
344
344
  }
345
- }), $ = /* @__PURE__ */ S({
345
+ }), Fe = /* @__PURE__ */ x({
346
346
  __name: "Dialog",
347
- props: /*@__PURE__*/ E({
347
+ props: /*@__PURE__*/ T({
348
348
  alignCenter: { type: Boolean },
349
349
  bodyClass: {},
350
350
  center: { type: Boolean },
@@ -370,7 +370,7 @@ var Se = /* @__PURE__ */ S({
370
370
  emits: ["update:modelValue"],
371
371
  setup(e) {
372
372
  let t = L(e, "modelValue");
373
- return (n, r) => (A(), y(I(o), D({
373
+ return (n, r) => (k(), v(I(o), E({
374
374
  modelValue: t.value,
375
375
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e
376
376
  }, {
@@ -383,7 +383,7 @@ var Se = /* @__PURE__ */ S({
383
383
  draggable: e.draggable,
384
384
  closeOnClickModal: e.closeOnClickModal,
385
385
  closeOnPressEscape: e.closeOnPressEscape
386
- }), b({
386
+ }), y({
387
387
  default: B(() => [N(n.$slots, "default")]),
388
388
  _: 2
389
389
  }, ["header" in n.$slots ? {
@@ -396,7 +396,7 @@ var Se = /* @__PURE__ */ S({
396
396
  key: "1"
397
397
  } : void 0]), 1040, ["modelValue"]));
398
398
  }
399
- }), Fe = /* @__PURE__ */ S({
399
+ }), Ie = /* @__PURE__ */ x({
400
400
  __name: "Form",
401
401
  props: {
402
402
  content: { type: Function },
@@ -413,9 +413,9 @@ var Se = /* @__PURE__ */ S({
413
413
  },
414
414
  setup(e, { expose: t }) {
415
415
  let n = R("form"), r = () => e.content?.({ data: e.data ?? {} });
416
- j(Te, !0);
416
+ A(Ee, !0);
417
417
  let i = [];
418
- j(Oe, i);
418
+ A(ke, i);
419
419
  let a = () => i.every((e) => e.validate()), o = () => i.forEach((e) => e.clearValidate());
420
420
  return t({
421
421
  clearValidate: o,
@@ -424,7 +424,7 @@ var Se = /* @__PURE__ */ S({
424
424
  o(), n.value?.resetFields();
425
425
  },
426
426
  validate: a
427
- }), (t, i) => (A(), y(I(s), D({
427
+ }), (t, i) => (k(), v(I(s), E({
428
428
  ref_key: "form",
429
429
  ref: n
430
430
  }, {
@@ -435,12 +435,12 @@ var Se = /* @__PURE__ */ S({
435
435
  labelWidth: e.labelWidth,
436
436
  labelSuffix: e.labelSuffix,
437
437
  size: e.size
438
- }), {
439
- default: B(() => [x(r)]),
438
+ }, { onSubmit: i[0] ||= ue(() => {}, ["prevent"]) }), {
439
+ default: B(() => [b(r)]),
440
440
  _: 1
441
441
  }, 16));
442
442
  }
443
- }), Ie = /* @__PURE__ */ S({
443
+ }), Le = /* @__PURE__ */ x({
444
444
  __name: "FormItem",
445
445
  props: {
446
446
  content: { type: Function },
@@ -449,7 +449,7 @@ var Se = /* @__PURE__ */ S({
449
449
  validator: { type: Function }
450
450
  },
451
451
  setup(e) {
452
- let t = T(Oe, void 0), n = T(Ee, void 0), r = T(De, void 0), i = T(ke, void 0), a = T(Ae, void 0), o = ce(), s = le(), l = {
452
+ let t = w(ke, void 0), n = w(De, void 0), r = w(Oe, void 0), i = w(Ae, void 0), a = w(je, void 0), o = j(), s = le(), l = {
453
453
  clearValidate: () => o.value = void 0,
454
454
  id: s,
455
455
  label: e.label,
@@ -457,19 +457,19 @@ var Se = /* @__PURE__ */ S({
457
457
  validate: () => (o.value = l.validator?.() ?? void 0, o.value && n && r && i && a?.trigger(i), !o.value),
458
458
  validator: e.validator
459
459
  };
460
- j(Q, l), k(() => {
460
+ A(Q, l), O(() => {
461
461
  t?.some((e) => e.id === s) || t?.push(l);
462
- }), se(() => {
462
+ }), ce(() => {
463
463
  let e = t?.findIndex((e) => e.id === s);
464
464
  e && e > -1 && t?.splice(e, 1);
465
465
  });
466
466
  let u = () => e.content?.();
467
- return (t, n) => (A(), y(I(c), {
467
+ return (t, n) => (k(), v(I(c), {
468
468
  label: e.label,
469
469
  required: e.required,
470
470
  error: o.value
471
- }, b({
472
- default: B(() => [N(t.$slots, "default", {}, () => [x(u)])]),
471
+ }, y({
472
+ default: B(() => [N(t.$slots, "default", {}, () => [b(u)])]),
473
473
  _: 2
474
474
  }, ["label" in t.$slots ? {
475
475
  name: "label",
@@ -481,9 +481,9 @@ var Se = /* @__PURE__ */ S({
481
481
  "error"
482
482
  ]));
483
483
  }
484
- }), Le = /* @__PURE__ */ S({
484
+ }), Re = /* @__PURE__ */ x({
485
485
  __name: "Input",
486
- props: /*@__PURE__*/ E({
486
+ props: /*@__PURE__*/ T({
487
487
  autocomplete: {},
488
488
  autosize: { type: [Object, Boolean] },
489
489
  clearable: { type: Boolean },
@@ -501,13 +501,13 @@ var Se = /* @__PURE__ */ S({
501
501
  modelValue: {},
502
502
  modelModifiers: {}
503
503
  }),
504
- emits: /*@__PURE__*/ E([
504
+ emits: /*@__PURE__*/ T([
505
505
  "blur",
506
506
  "change",
507
507
  "focus"
508
508
  ], ["update:modelValue"]),
509
509
  setup(e, { emit: t }) {
510
- let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = T(Q, void 0);
510
+ let n = t, r = L(e, "modelValue"), { t: i } = h(w(X)), a = w(Q, void 0);
511
511
  if (a?.required) {
512
512
  let { label: e, validator: t } = a;
513
513
  a.validator = () => e && !r.value ? i("el.validation.input", { label: e }) : t?.();
@@ -519,7 +519,7 @@ var Se = /* @__PURE__ */ S({
519
519
  }, c = (e) => {
520
520
  n("change", e);
521
521
  };
522
- return (t, n) => (A(), y(I(l), D({
522
+ return (t, n) => (k(), v(I(l), E({
523
523
  disabled: e.disabled,
524
524
  type: e.type,
525
525
  size: e.size,
@@ -534,7 +534,7 @@ var Se = /* @__PURE__ */ S({
534
534
  onBlur: o,
535
535
  onFocus: s,
536
536
  onChange: c
537
- }), b({ _: 2 }, [
537
+ }), y({ _: 2 }, [
538
538
  "append" in t.$slots ? {
539
539
  name: "append",
540
540
  fn: B(() => [N(t.$slots, "append")]),
@@ -557,9 +557,9 @@ var Se = /* @__PURE__ */ S({
557
557
  } : void 0
558
558
  ]), 1040, ["modelValue"]));
559
559
  }
560
- }), Re = /* @__PURE__ */ S({
560
+ }), ze = /* @__PURE__ */ x({
561
561
  __name: "InputNumber",
562
- props: /*@__PURE__*/ E({
562
+ props: /*@__PURE__*/ T({
563
563
  align: {},
564
564
  controls: { type: Boolean },
565
565
  disabled: {
@@ -578,9 +578,9 @@ var Se = /* @__PURE__ */ S({
578
578
  modelValue: {},
579
579
  modelModifiers: {}
580
580
  }),
581
- emits: /*@__PURE__*/ E(["blur", "focus"], ["update:modelValue"]),
581
+ emits: /*@__PURE__*/ T(["blur", "focus"], ["update:modelValue"]),
582
582
  setup(e, { emit: t }) {
583
- let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = T(Q, void 0);
583
+ let n = t, r = L(e, "modelValue"), { t: i } = h(w(X)), a = w(Q, void 0);
584
584
  if (a?.required) {
585
585
  let { label: e, validator: t } = a;
586
586
  a.validator = () => e && !r.value ? i("el.validation.inputNumber", { label: e }) : t?.();
@@ -590,7 +590,7 @@ var Se = /* @__PURE__ */ S({
590
590
  }, s = (e) => {
591
591
  n("blur", e);
592
592
  };
593
- return (t, n) => (A(), y(I(u), D({
593
+ return (t, n) => (k(), v(I(u), E({
594
594
  align: e.align,
595
595
  controls: e.controls,
596
596
  disabled: e.disabled,
@@ -607,7 +607,7 @@ var Se = /* @__PURE__ */ S({
607
607
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
608
608
  onBlur: s,
609
609
  onFocus: o
610
- }), b({ _: 2 }, ["prefix" in t.$slots ? {
610
+ }), y({ _: 2 }, ["prefix" in t.$slots ? {
611
611
  name: "prefix",
612
612
  fn: B(() => [N(t.$slots, "prefix")]),
613
613
  key: "0"
@@ -617,9 +617,9 @@ var Se = /* @__PURE__ */ S({
617
617
  key: "1"
618
618
  } : void 0]), 1040, ["modelValue"]));
619
619
  }
620
- }), ze = /* @__PURE__ */ S({
620
+ }), Be = /* @__PURE__ */ x({
621
621
  __name: "Pagination",
622
- props: /*@__PURE__*/ E({
622
+ props: /*@__PURE__*/ T({
623
623
  background: { type: Boolean },
624
624
  defaultPageSize: { default: 20 },
625
625
  layout: {},
@@ -632,10 +632,10 @@ var Se = /* @__PURE__ */ S({
632
632
  pageSize: {},
633
633
  pageSizeModifiers: {}
634
634
  }),
635
- emits: /*@__PURE__*/ E(["currentChange", "sizeChange"], ["update:currentPage", "update:pageSize"]),
635
+ emits: /*@__PURE__*/ T(["currentChange", "sizeChange"], ["update:currentPage", "update:pageSize"]),
636
636
  setup(e, { emit: t }) {
637
- let n = T(Z), r = t, i = L(e, "currentPage"), a = L(e, "pageSize"), o = n?.pagination;
638
- return g(T(X)), (t, n) => (A(), y(I(d), D({
637
+ let n = w(Z), r = t, i = L(e, "currentPage"), a = L(e, "pageSize"), o = n?.pagination;
638
+ return h(w(X)), (t, n) => (k(), v(I(te), E({
639
639
  size: e.size,
640
640
  total: e.total,
641
641
  pageSizes: e.pageSizes,
@@ -658,9 +658,9 @@ var Se = /* @__PURE__ */ S({
658
658
  "default-page-size"
659
659
  ]));
660
660
  }
661
- }), Be = /* @__PURE__ */ S({
661
+ }), Ve = /* @__PURE__ */ x({
662
662
  __name: "Select",
663
- props: /*@__PURE__*/ E({
663
+ props: /*@__PURE__*/ T({
664
664
  allowCreate: { type: Boolean },
665
665
  clearable: { type: Boolean },
666
666
  collapseTags: { type: Boolean },
@@ -685,13 +685,13 @@ var Se = /* @__PURE__ */ S({
685
685
  modelValue: {},
686
686
  modelModifiers: {}
687
687
  }),
688
- emits: /*@__PURE__*/ E([
688
+ emits: /*@__PURE__*/ T([
689
689
  "blur",
690
690
  "change",
691
691
  "focus"
692
692
  ], ["update:modelValue"]),
693
693
  setup(e, { emit: t }) {
694
- let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = ce([]), o = q(() => e.data ?? [], e.factory), s = v(() => [...q(a, e.factory).value, ...o.value]), c = (t) => {
694
+ let n = t, r = L(e, "modelValue"), { t: i } = h(w(X)), a = j([]), o = q(() => e.data ?? [], e.factory), s = _(() => [...q(a, e.factory).value, ...o.value]), c = (t) => {
695
695
  if (typeof t == "object") {
696
696
  if (e.identify) return e.identify(t);
697
697
  throw Error("`identify` is required when value's type extends `object` or `object[]`");
@@ -703,7 +703,7 @@ var Se = /* @__PURE__ */ S({
703
703
  n === u && i && (a.value = i);
704
704
  } else a.value = [];
705
705
  }, { immediate: !0 });
706
- let d = v(() => s.value.map((e) => {
706
+ let te = _(() => s.value.map((e) => {
707
707
  let t = c(e.value);
708
708
  return {
709
709
  disabled: e.disabled,
@@ -712,28 +712,28 @@ var Se = /* @__PURE__ */ S({
712
712
  render: e.render,
713
713
  value: t
714
714
  };
715
- })), f = v({
715
+ })), d = _({
716
716
  get: () => r.value && (Array.isArray(r.value) ? r.value.map(c) : c(r.value)),
717
717
  set: (t) => {
718
718
  Array.isArray(t) ? r.value = t.map((e) => l(e)) : r.value = t === void 0 ? void 0 : l(t) ?? (e.allowCreate ? t : void 0);
719
719
  }
720
- }), p = T(Q, void 0);
721
- if (p?.required) {
722
- let { label: e, validator: t } = p;
723
- p.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? i("el.validation.select", { label: e }) : t?.();
720
+ }), f = w(Q, void 0);
721
+ if (f?.required) {
722
+ let { label: e, validator: t } = f;
723
+ f.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? i("el.validation.select", { label: e }) : t?.();
724
724
  }
725
- let ne = (e) => {
726
- n("blur", e), p?.validate?.();
727
- }, m = (e) => {
725
+ let re = (e) => {
726
+ n("blur", e), f?.validate?.();
727
+ }, p = (e) => {
728
728
  n("focus", e);
729
- }, h = (e) => {
729
+ }, m = (e) => {
730
730
  n("change", e);
731
- }, b = (e) => x(ee, {
731
+ }, y = (e) => b(ee, {
732
732
  disabled: e.disabled,
733
733
  label: e.label,
734
734
  value: e.value
735
735
  }, { default: () => e.render?.() ?? e.label });
736
- return (t, n) => (A(), y(I(te), D({
736
+ return (t, n) => (k(), v(I(ne), E({
737
737
  placeholder: e.placeholder ?? I(i)("el.select.placeholder"),
738
738
  disabled: e.disabled,
739
739
  allowCreate: e.allowCreate,
@@ -748,13 +748,14 @@ var Se = /* @__PURE__ */ S({
748
748
  collapseTagsTooltip: e.collapseTagsTooltip,
749
749
  defaultFirstOption: e.defaultFirstOption || e.allowCreate
750
750
  }, {
751
- modelValue: f.value,
752
- "onUpdate:modelValue": n[0] ||= (e) => f.value = e,
753
- onBlur: ne,
754
- onFocus: m,
755
- onChange: h
751
+ modelValue: d.value,
752
+ "onUpdate:modelValue": n[0] ||= (e) => d.value = e,
753
+ onBlur: re,
754
+ onFocus: p,
755
+ onChange: m
756
756
  }), {
757
- default: B(() => [(A(!0), re(_, null, M(d.value, (e) => (A(), y(b, {
757
+ default: B(() => [(k(!0), ie(g, null, M(te.value, (e) => (k(), v(y, {
758
+ key: e.key,
758
759
  label: e.label,
759
760
  value: e.value,
760
761
  disabled: e.disabled,
@@ -764,11 +765,11 @@ var Se = /* @__PURE__ */ S({
764
765
  "value",
765
766
  "disabled",
766
767
  "render"
767
- ]))), 256))]),
768
+ ]))), 128))]),
768
769
  _: 1
769
770
  }, 16, ["modelValue"]));
770
771
  }
771
- }), Ve = /* @__PURE__ */ S({
772
+ }), He = /* @__PURE__ */ x({
772
773
  __name: "Table",
773
774
  props: {
774
775
  cellClassName: { type: [Function, String] },
@@ -806,7 +807,7 @@ var Se = /* @__PURE__ */ S({
806
807
  "selectionChange"
807
808
  ],
808
809
  setup(e, { expose: t, emit: n }) {
809
- let r = n, i = T(Z)?.table, a = R("table");
810
+ let r = n, i = w(Z)?.table, a = R("table");
810
811
  t({
811
812
  clearSelection: () => a.value?.clearSelection(),
812
813
  doLayout: () => a.value?.doLayout(),
@@ -817,8 +818,8 @@ var Se = /* @__PURE__ */ S({
817
818
  setScrollTop: (e) => a.value?.setScrollTop(e),
818
819
  toggleAllSelection: () => a.value?.toggleAllSelection(),
819
820
  toggleRowSelection: (e, t, n) => a.value?.toggleRowSelection(e, t, n)
820
- }), j(we, !0);
821
- let o = /* @__PURE__ */ S((e) => () => x(ne, {
821
+ }), A(Te, !0);
822
+ let o = /* @__PURE__ */ x((e) => () => b(re, {
822
823
  align: e.align,
823
824
  columnKey: e.columnKey,
824
825
  fixed: e.fixed,
@@ -845,7 +846,7 @@ var Se = /* @__PURE__ */ S({
845
846
  "type",
846
847
  "width"
847
848
  ] });
848
- return (t, n) => (A(), y(I(p), D({
849
+ return (t, n) => (k(), v(I(f), E({
849
850
  ref_key: "table",
850
851
  ref: a,
851
852
  data: e.data
@@ -869,7 +870,7 @@ var Se = /* @__PURE__ */ S({
869
870
  onSelectionChange: n[2] ||= (e) => r("selectionChange", e),
870
871
  onHeaderDragend: n[3] ||= (e, t, n) => r("headerDragend", e, t, n)
871
872
  }), {
872
- default: B(() => [(A(!0), re(_, null, M(e.columns, (t) => (A(), y(I(o), D({ ref_for: !0 }, {
873
+ default: B(() => [(k(!0), ie(g, null, M(e.columns, (t) => (k(), v(I(o), E({ ref_for: !0 }, {
873
874
  align: e.align ?? I(i)?.align,
874
875
  headerAlign: e.headerAlign ?? I(i)?.headerAlign,
875
876
  ...t
@@ -877,7 +878,7 @@ var Se = /* @__PURE__ */ S({
877
878
  _: 1
878
879
  }, 16, ["data"]));
879
880
  }
880
- }), He = /* @__PURE__ */ S({
881
+ }), Ue = /* @__PURE__ */ x({
881
882
  __name: "TabPane",
882
883
  props: {
883
884
  closable: { type: Boolean },
@@ -890,7 +891,7 @@ var Se = /* @__PURE__ */ S({
890
891
  return t({
891
892
  label: e.label,
892
893
  name: e.name
893
- }), j(De, !0), j(ke, e.name), (t, n) => (A(), y(I(f), O(w({
894
+ }), A(Oe, !0), A(Ae, e.name), (t, n) => (k(), v(I(d), D(C({
894
895
  label: e.label,
895
896
  name: e.name,
896
897
  disabled: e.disabled,
@@ -901,9 +902,9 @@ var Se = /* @__PURE__ */ S({
901
902
  _: 3
902
903
  }, 16));
903
904
  }
904
- }), Ue = /* @__PURE__ */ S({
905
+ }), We = /* @__PURE__ */ x({
905
906
  __name: "Tabs",
906
- props: /*@__PURE__*/ E({
907
+ props: /*@__PURE__*/ T({
907
908
  addable: { type: Boolean },
908
909
  editable: { type: Boolean },
909
910
  tabPosition: {},
@@ -912,16 +913,16 @@ var Se = /* @__PURE__ */ S({
912
913
  modelValue: {},
913
914
  modelModifiers: {}
914
915
  }),
915
- emits: /*@__PURE__*/ E([
916
+ emits: /*@__PURE__*/ T([
916
917
  "change",
917
918
  "edit",
918
919
  "remove"
919
920
  ], ["update:modelValue"]),
920
921
  setup(e) {
921
922
  let t = L(e, "modelValue");
922
- j(Ee, !0);
923
- let n = ue();
924
- return j(Ae, n), n.on((e) => t.value = e), (n, r) => (A(), y(I(m), D({
923
+ A(De, !0);
924
+ let n = de();
925
+ return A(je, n), n.on((e) => t.value = e), (n, r) => (k(), v(I(p), E({
925
926
  addable: e.addable,
926
927
  editable: e.editable,
927
928
  tabPosition: e.tabPosition,
@@ -932,7 +933,7 @@ var Se = /* @__PURE__ */ S({
932
933
  onTabChange: r[1] ||= (e) => n.$emit("change", e),
933
934
  onTabRemove: r[2] ||= (e) => n.$emit("remove", e),
934
935
  onEdit: r[3] ||= (e, t) => n.$emit("edit", e, t)
935
- }), b({
936
+ }), y({
936
937
  default: B(() => [N(n.$slots, "default")]),
937
938
  _: 2
938
939
  }, ["addIcon" in n.$slots ? {
@@ -941,7 +942,7 @@ var Se = /* @__PURE__ */ S({
941
942
  key: "0"
942
943
  } : void 0]), 1040, ["modelValue"]));
943
944
  }
944
- }), We = /* @__PURE__ */ S({
945
+ }), Ge = /* @__PURE__ */ x({
945
946
  __name: "Upload",
946
947
  props: {
947
948
  accept: {},
@@ -961,7 +962,7 @@ var Se = /* @__PURE__ */ S({
961
962
  }
962
963
  },
963
964
  setup(e) {
964
- let t = T(Q, void 0);
965
+ let t = w(Q, void 0);
965
966
  if (t?.required) {
966
967
  let { validator: e } = t;
967
968
  t.validator = () => e?.();
@@ -973,7 +974,7 @@ var Se = /* @__PURE__ */ S({
973
974
  }, i = (t) => {
974
975
  e.onPreview?.(t);
975
976
  };
976
- return (t, a) => (A(), y(I(h), O(w({
977
+ return (t, a) => (k(), v(I(m), D(C({
977
978
  action: e.action,
978
979
  disabled: e.disabled,
979
980
  accept: e.accept,
@@ -986,7 +987,7 @@ var Se = /* @__PURE__ */ S({
986
987
  onPreview: i,
987
988
  onSuccess: n,
988
989
  onRemove: r
989
- })), b({
990
+ })), y({
990
991
  default: B(() => [N(t.$slots, "default")]),
991
992
  _: 2
992
993
  }, [
@@ -1010,23 +1011,23 @@ var Se = /* @__PURE__ */ S({
1010
1011
  } : void 0
1011
1012
  ]), 1040));
1012
1013
  }
1013
- }), Ge = /* @__PURE__ */ H({
1014
- XButton: () => Se,
1015
- XCascader: () => je,
1016
- XCheckbox: () => Me,
1017
- XConfigProvider: () => Ne,
1018
- XDatePicker: () => Pe,
1019
- XDialog: () => $,
1020
- XForm: () => Fe,
1021
- XFormItem: () => Ie,
1022
- XInput: () => Le,
1023
- XInputNumber: () => Re,
1024
- XPagination: () => ze,
1025
- XSelect: () => Be,
1026
- XTabPane: () => He,
1027
- XTable: () => Ve,
1028
- XTabs: () => Ue,
1029
- XUpload: () => We
1014
+ }), Ke = /* @__PURE__ */ H({
1015
+ XButton: () => Ce,
1016
+ XCascader: () => Me,
1017
+ XCheckbox: () => Ne,
1018
+ XConfigProvider: () => Pe,
1019
+ XDatePicker: () => $,
1020
+ XDialog: () => Fe,
1021
+ XForm: () => Ie,
1022
+ XFormItem: () => Le,
1023
+ XInput: () => Re,
1024
+ XInputNumber: () => ze,
1025
+ XPagination: () => Be,
1026
+ XSelect: () => Ve,
1027
+ XTabPane: () => Ue,
1028
+ XTable: () => He,
1029
+ XTabs: () => We,
1030
+ XUpload: () => Ge
1030
1031
  });
1031
1032
  //#endregion
1032
- export { H as A, Y as C, ge as D, U as E, q as O, _e as S, K as T, Z as _, Ve as a, X as b, Re as c, Fe as d, $ as f, je as g, Me as h, He as i, he as k, Le as l, Ne as m, We as n, Be as o, Pe as p, Ue as r, ze as s, Ge as t, Ie as u, Ce as v, xe as w, Se as x, we as y };
1033
+ export { H as A, Y as C, _e as D, U as E, q as O, ve as S, K as T, Z as _, He as a, X as b, ze as c, Ie as d, Fe as f, Me as g, Ne as h, Ue as i, ge as k, Re as l, Pe as m, Ge as n, Ve as o, $ as p, We as r, Be as s, Ke as t, Le as u, we as v, Se as w, Ce as x, Te as y };