fj-form 0.0.8 → 0.0.9

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/fj-form.css CHANGED
@@ -1 +1 @@
1
- .item-content[data-v-a68b4020],.item-content[data-v-24741d13],.item-content[data-v-57dac883],.item-content[data-v-1dbe63eb],.item-content[data-v-18ca05b4],.item-content[data-v-f63495ba]{width:100%}.fj-form-container[data-v-103aecbc]{width:100%;height:100%;display:flex;border:1px solid rgba(128,128,128,.445)}.fj-form-container .fj-block[data-v-103aecbc]{padding:6px;margin-bottom:6px}.fj-form-container .fj-block .block-title[data-v-103aecbc]{padding:6px}.fj-form-container .fj-block .fj-form-item[data-v-103aecbc]{padding:6px;position:relative;display:flex}.fj-form-container .fj-block .fj-form-item .remove[data-v-103aecbc]{width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE8UlEQVR4Aeya63HUMBSFZfMYigAm+QWpglAJ2UpYKtlQSUIVgV/ZAYpggFicz7Ec27G8siWvw2R3rOhl3XvP0dXLSm4e+e9AwCN3AHPwgIMHPHIGDkPgkTvAYRKcNASuXj49vXr17Ozb6+ebr6+eXRCU/nh19OJobo9CR0rdowkAaJbnF1mWbawxZybLTglKr7OiuMY4jDQz/Erd0uHTTf1Y3aMIoKcBOoQN47Kbm81YQ4ZkUheiG9vyohjlicEEwC49jTGdsFWeoKh65BUpSQB8qG6RcCYSPlSW7IyCCKA3JXjdlJYZs377/XemcEwgr/o7IhKR0AceXdLp1Y2t2Cx7dj5BBHQZxYA3339/akonr/JzlSUjoQ+8LYr36JKe+iFf6a7LzM3N6V3GnwoioNschd0y8pRXhkST4AN/8vPvJbq6Ad0qq/XmWfZO+XtPtyCIAGttk81aSVcYeQyJJSEUPPPS19fPr9HbDbI5aEkOIkAzexP00a7xFUPCCPAsw615SSTUoDs2q6r/CSKgsPZLs3l3TmjWufQUEkLBs9ew7EGM2WpOWKETbyBuhGanNYrbySACzJMnjLtaoJSvMaIt6n5uDAmh4Est1m6NtZeAZ05gZ2qNWZvGr8jzz42sNxlEwMn217Ya17UgudgmioSiuHBDKRQ87xMA/fbHn/fEgGdnWhumhGxdY7OSO58gApBCbyquvUBp7U2y6SQYc6Stc3mOkKBT0/ipZ0twjSIjF9/o/WsNv4+uvA88nlHZ6l4bjIMJQIo2H8eKk5IQCl4ufobuoihK1/aBxzP0XvAzigCkzkACYsvg63kHXvUrn9vT82PBo3Q0ATSagwSB63X7OcGDZRIBNExJwlLgwTGZABqnIGFJ8GCIIgABsSQwppHjAkvr3G7vdBFHE4CQGBJo3xO28ozkE16PHpOEAASnIuHkx59zZOEZqZY67POFZASgAMMVT9onqF3r2Qd4FCYlAIE+ErSTq3dwvDcUUoIf0kNdcgIQqk1Jywso0w6udaKkzBfyPOdjRltGlu08hvvkDZUnJyD0YDNkFHt5HWjan9eqswOHoaG2Y+uSEpACvAPgJSHxJ/dkBKQEP0hCoq/NTkcSAuYA7wzs9YSEJEQTEAOe2Z6dnwPri+ckIYqAWPBZdce4JAmTCUgB3vV49Oe1iIlxEgEpwS9NwmgC5gC/JAmjCEgO3trW53aIiB0OfDQds1kKJqDcy2v5wUgXdGS99xnL1TVjZnsmvGaZtsuXfMPznR2mToxWFyYiYf7r8RTgHSEzkLAO9YIgD+gyqn36mvO6A+CLh3q+2yYRCXdil7gev9NuzBjwrl0sCZJTnyDzpa7HZcQk8LQjxJBAexcWux6f0vPOaBdHkLDs9XgK8FNJKFcp1/g2rofDbbb/b9Ak2Hc9jsLmTEvet9T1q95d6vMEdHV1a/nb7/U4Crmt5V9UFCz5FiRtcljnW2UTMn0koGtId7lK6Uo/RF2YB0gSR1JFfW5VjzvV3z6JwN8KM6aPhKquV3dla/XKcBRMAGIwBHaV7iNCxcZQn6LnTec3l+5RBGAT7GoXuAIo21mVbZU+17Kzsnl+TL3KZnmQnVr3aAJAxi4QY+hpekbpFTc6of+WgoypIbXuSQRMNf4htjsQ8BB7ZZ82HTxgn2w/RF0HD3iIvbJPm/57D4gl6x8AAAD//351XeMAAAAGSURBVAMAZzZEvRGweMYAAAAASUVORK5CYII=) no-repeat center top;background-size:contain;cursor:pointer}.fj-form-container .fj-block .draggable[data-v-103aecbc]{padding-left:30px;position:relative}.fj-form-container .fj-block .draggable[data-v-103aecbc]:after{content:"";display:block;position:absolute;top:0;left:0;width:30px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAADQElEQVR4AexaUZLSQBDtoFdwjV/CSRZOInwq5Rlcz2Chn3AT8CTwZ1yvoMT3MLg1TCeTQMJmhklN78JMd2f69ZtJZ4qB3PgVAbhxAkhkQGTAjSMQl8CNEyBugnEJNF0CP76lw8dFOj2VX1/SMccoTX0+p34tBjC4x6/pGkHnL/ayxYSXp5IPZM0xCnV9AcIJwM9F+onBSS5jqXtBl0DQtu9AVALAABKRBznzou1gL+/ONL+KWSkApD0DuHQW9EFfl/rpyl4FgLQ90L6lu8LXkj5bcneRm1NjFYCXv2Uo2pXI5s9ARnfzLNEk2ctEoKOYDjWfZAY21i0k71Dof6rM6dClArAfyP1h1Pyzu/uQTd68z3Zm99O3Vx+zDXXQY+mABQaoZAT61tA1+vG97Ub/SwCsgqACoM4gESsoKbt0XQNUjRFl7lrqN+5/9KkCgI2LqB11mv/PxbLPReoDKO1fZfdXAcDtv0PMhmc7H4tmp/0NVGORZAGAx6Hhk8sFkzr7EWvfuaIH+9LrefZZ01ABwAa3grKVMTDjgVXeQRYp19WpbGGnrjUGjDGjcVLcOCkYmHUhh00bexd8q00FgJrIDkHgR1NyGQtFhIGeipV5wQVfpZkmMBSC3oVUbdqYWvnrMLMDBYsF6GvadoWvpnZX0S9lAO8O+kzw/xIQdqA3qQ03/WyVAJA+oOUIU+dyaAQEaU9b0hv2vW2VABxnjUBmZAOyOWFg6CcglhRj1B31mfaY//9WCwBqkw3MJgMjIJoUYyvq0sYHqQ2AD8GcM8cIwDmohWQTPANcySoFgHU/6nq+S3f5rn4N34yBFauKhQoAAp+y7oeFWtqi36fGGPjOooKgAoDn+VufIqw513tNTwVAU/S9D0lVK1kVABY0CFg1QL9/LZFNEZM1dxUAaqHSG7H0xeeZz4ISflScUyIMu5UCQFWWvgBi5bO4yvJKAAhC6BIBCD3DrvgiA1wIhT4eGRB6hl3xRQa4EPJtvOl8SxkQzwP+/TaI79JNQe2bPmOI5wHISjwPAAhWU/eA4t05ngfE8wD+6GmexfMAa+EE1KHuAQHF5wwlAuCEKHCFyIDAE+wMLzLACVHgCt4z4NL8/AUAAP//IpJYPAAAAAZJREFUAwC+q32uNR1pEgAAAABJRU5ErkJggg==) no-repeat center center;background-size:contain;cursor:pointer}.edit-container[data-v-e67c9263]{width:100%;height:100%;display:flex}.edit-container .aside[data-v-e67c9263]{padding:10px;flex:1}.edit-container .aside .btn-content[data-v-e67c9263]{padding:10px 0;display:flex;justify-content:flex-end}.edit-container .section[data-v-e67c9263]{padding:10px;flex:1}.edit-container .section .header[data-v-e67c9263]{padding:10px}.edit-container .section .main[data-v-e67c9263]{flex:1}.edit-container .section .footer[data-v-e67c9263]{padding:10px 0;display:flex;justify-content:flex-end}
1
+ .item-content[data-v-a68b4020],.item-content[data-v-5dd61519],.item-content[data-v-57dac883],.item-content[data-v-1dbe63eb],.item-content[data-v-18ca05b4],.item-content[data-v-43a4ec42]{width:100%}.fj-form-container[data-v-103aecbc]{width:100%;height:100%;display:flex;border:1px solid rgba(128,128,128,.445)}.fj-form-container .fj-block[data-v-103aecbc]{padding:6px;margin-bottom:6px}.fj-form-container .fj-block .block-title[data-v-103aecbc]{padding:6px}.fj-form-container .fj-block .fj-form-item[data-v-103aecbc]{padding:6px;position:relative;display:flex}.fj-form-container .fj-block .fj-form-item .remove[data-v-103aecbc]{width:20px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE8UlEQVR4Aeya63HUMBSFZfMYigAm+QWpglAJ2UpYKtlQSUIVgV/ZAYpggFicz7Ec27G8siWvw2R3rOhl3XvP0dXLSm4e+e9AwCN3AHPwgIMHPHIGDkPgkTvAYRKcNASuXj49vXr17Ozb6+ebr6+eXRCU/nh19OJobo9CR0rdowkAaJbnF1mWbawxZybLTglKr7OiuMY4jDQz/Erd0uHTTf1Y3aMIoKcBOoQN47Kbm81YQ4ZkUheiG9vyohjlicEEwC49jTGdsFWeoKh65BUpSQB8qG6RcCYSPlSW7IyCCKA3JXjdlJYZs377/XemcEwgr/o7IhKR0AceXdLp1Y2t2Cx7dj5BBHQZxYA3339/akonr/JzlSUjoQ+8LYr36JKe+iFf6a7LzM3N6V3GnwoioNschd0y8pRXhkST4AN/8vPvJbq6Ad0qq/XmWfZO+XtPtyCIAGttk81aSVcYeQyJJSEUPPPS19fPr9HbDbI5aEkOIkAzexP00a7xFUPCCPAsw615SSTUoDs2q6r/CSKgsPZLs3l3TmjWufQUEkLBs9ew7EGM2WpOWKETbyBuhGanNYrbySACzJMnjLtaoJSvMaIt6n5uDAmh4Est1m6NtZeAZ05gZ2qNWZvGr8jzz42sNxlEwMn217Ya17UgudgmioSiuHBDKRQ87xMA/fbHn/fEgGdnWhumhGxdY7OSO58gApBCbyquvUBp7U2y6SQYc6Stc3mOkKBT0/ipZ0twjSIjF9/o/WsNv4+uvA88nlHZ6l4bjIMJQIo2H8eKk5IQCl4ufobuoihK1/aBxzP0XvAzigCkzkACYsvg63kHXvUrn9vT82PBo3Q0ATSagwSB63X7OcGDZRIBNExJwlLgwTGZABqnIGFJ8GCIIgABsSQwppHjAkvr3G7vdBFHE4CQGBJo3xO28ozkE16PHpOEAASnIuHkx59zZOEZqZY67POFZASgAMMVT9onqF3r2Qd4FCYlAIE+ErSTq3dwvDcUUoIf0kNdcgIQqk1Jywso0w6udaKkzBfyPOdjRltGlu08hvvkDZUnJyD0YDNkFHt5HWjan9eqswOHoaG2Y+uSEpACvAPgJSHxJ/dkBKQEP0hCoq/NTkcSAuYA7wzs9YSEJEQTEAOe2Z6dnwPri+ckIYqAWPBZdce4JAmTCUgB3vV49Oe1iIlxEgEpwS9NwmgC5gC/JAmjCEgO3trW53aIiB0OfDQds1kKJqDcy2v5wUgXdGS99xnL1TVjZnsmvGaZtsuXfMPznR2mToxWFyYiYf7r8RTgHSEzkLAO9YIgD+gyqn36mvO6A+CLh3q+2yYRCXdil7gev9NuzBjwrl0sCZJTnyDzpa7HZcQk8LQjxJBAexcWux6f0vPOaBdHkLDs9XgK8FNJKFcp1/g2rofDbbb/b9Ak2Hc9jsLmTEvet9T1q95d6vMEdHV1a/nb7/U4Crmt5V9UFCz5FiRtcljnW2UTMn0koGtId7lK6Uo/RF2YB0gSR1JFfW5VjzvV3z6JwN8KM6aPhKquV3dla/XKcBRMAGIwBHaV7iNCxcZQn6LnTec3l+5RBGAT7GoXuAIo21mVbZU+17Kzsnl+TL3KZnmQnVr3aAJAxi4QY+hpekbpFTc6of+WgoypIbXuSQRMNf4htjsQ8BB7ZZ82HTxgn2w/RF0HD3iIvbJPm/57D4gl6x8AAAD//351XeMAAAAGSURBVAMAZzZEvRGweMYAAAAASUVORK5CYII=) no-repeat center top;background-size:contain;cursor:pointer}.fj-form-container .fj-block .draggable[data-v-103aecbc]{padding-left:30px;position:relative}.fj-form-container .fj-block .draggable[data-v-103aecbc]:after{content:"";display:block;position:absolute;top:0;left:0;width:30px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAADQElEQVR4AexaUZLSQBDtoFdwjV/CSRZOInwq5Rlcz2Chn3AT8CTwZ1yvoMT3MLg1TCeTQMJmhklN78JMd2f69ZtJZ4qB3PgVAbhxAkhkQGTAjSMQl8CNEyBugnEJNF0CP76lw8dFOj2VX1/SMccoTX0+p34tBjC4x6/pGkHnL/ayxYSXp5IPZM0xCnV9AcIJwM9F+onBSS5jqXtBl0DQtu9AVALAABKRBznzou1gL+/ONL+KWSkApD0DuHQW9EFfl/rpyl4FgLQ90L6lu8LXkj5bcneRm1NjFYCXv2Uo2pXI5s9ARnfzLNEk2ctEoKOYDjWfZAY21i0k71Dof6rM6dClArAfyP1h1Pyzu/uQTd68z3Zm99O3Vx+zDXXQY+mABQaoZAT61tA1+vG97Ub/SwCsgqACoM4gESsoKbt0XQNUjRFl7lrqN+5/9KkCgI2LqB11mv/PxbLPReoDKO1fZfdXAcDtv0PMhmc7H4tmp/0NVGORZAGAx6Hhk8sFkzr7EWvfuaIH+9LrefZZ01ABwAa3grKVMTDjgVXeQRYp19WpbGGnrjUGjDGjcVLcOCkYmHUhh00bexd8q00FgJrIDkHgR1NyGQtFhIGeipV5wQVfpZkmMBSC3oVUbdqYWvnrMLMDBYsF6GvadoWvpnZX0S9lAO8O+kzw/xIQdqA3qQ03/WyVAJA+oOUIU+dyaAQEaU9b0hv2vW2VABxnjUBmZAOyOWFg6CcglhRj1B31mfaY//9WCwBqkw3MJgMjIJoUYyvq0sYHqQ2AD8GcM8cIwDmohWQTPANcySoFgHU/6nq+S3f5rn4N34yBFauKhQoAAp+y7oeFWtqi36fGGPjOooKgAoDn+VufIqw513tNTwVAU/S9D0lVK1kVABY0CFg1QL9/LZFNEZM1dxUAaqHSG7H0xeeZz4ISflScUyIMu5UCQFWWvgBi5bO4yvJKAAhC6BIBCD3DrvgiA1wIhT4eGRB6hl3xRQa4EPJtvOl8SxkQzwP+/TaI79JNQe2bPmOI5wHISjwPAAhWU/eA4t05ngfE8wD+6GmexfMAa+EE1KHuAQHF5wwlAuCEKHCFyIDAE+wMLzLACVHgCt4z4NL8/AUAAP//IpJYPAAAAAZJREFUAwC+q32uNR1pEgAAAABJRU5ErkJggg==) no-repeat center center;background-size:contain;cursor:pointer}.edit-container[data-v-e67c9263]{width:100%;height:100%;display:flex}.edit-container .aside[data-v-e67c9263]{padding:10px;flex:1}.edit-container .aside .btn-content[data-v-e67c9263]{padding:10px 0;display:flex;justify-content:flex-end}.edit-container .section[data-v-e67c9263]{padding:10px;flex:1}.edit-container .section .header[data-v-e67c9263]{padding:10px}.edit-container .section .main[data-v-e67c9263]{flex:1}.edit-container .section .footer[data-v-e67c9263]{padding:10px 0;display:flex;justify-content:flex-end}
package/dist/fj-form.js CHANGED
@@ -1,11 +1,11 @@
1
- import { getCurrentInstance as pe, inject as K, ref as P, computed as v, unref as w, watch as ae, shallowRef as qe, watchEffect as yo, readonly as or, getCurrentScope as bo, onScopeDispose as _o, onMounted as it, isRef as Se, warn as wo, provide as st, defineComponent as N, openBlock as C, createElementBlock as L, mergeProps as Ee, renderSlot as ne, createElementVNode as H, normalizeClass as Z, createVNode as M, Transition as ar, withCtx as U, withDirectives as ir, normalizeStyle as Be, createTextVNode as ke, toDisplayString as gt, vShow as sr, createBlock as te, resolveDynamicComponent as lt, reactive as At, toRefs as lr, onBeforeUnmount as ur, onUpdated as xo, Fragment as _t, nextTick as Ht, useSlots as To, createCommentVNode as De, TransitionGroup as $o, shallowReactive as cr, withModifiers as Oo, isVNode as fr, render as hn, useModel as me, resolveComponent as ie, renderList as dr, h as W } from "vue";
1
+ import { getCurrentInstance as pe, inject as K, ref as P, computed as v, unref as w, watch as ae, shallowRef as qe, watchEffect as ho, readonly as or, getCurrentScope as bo, onScopeDispose as _o, onMounted as it, isRef as Se, warn as wo, provide as st, defineComponent as N, openBlock as C, createElementBlock as L, mergeProps as Ee, renderSlot as ne, createElementVNode as H, normalizeClass as Z, createVNode as M, Transition as ar, withCtx as U, withDirectives as ir, normalizeStyle as Be, createTextVNode as ke, toDisplayString as gt, vShow as sr, createBlock as te, resolveDynamicComponent as lt, reactive as At, toRefs as lr, onBeforeUnmount as ur, onUpdated as xo, Fragment as _t, nextTick as Ht, useSlots as To, createCommentVNode as De, TransitionGroup as $o, shallowReactive as cr, withModifiers as Oo, isVNode as fr, render as yn, useModel as me, resolveComponent as ie, renderList as dr, h as W } from "vue";
2
2
  const pr = /* @__PURE__ */ Symbol(), pt = "el", So = "is-", we = (e, t, n, r, o) => {
3
3
  let i = `${e}-${t}`;
4
4
  return n && (i += `-${n}`), r && (i += `__${r}`), o && (i += `--${o}`), i;
5
5
  }, mr = /* @__PURE__ */ Symbol("namespaceContextKey"), vr = (e) => {
6
6
  const t = e || (pe() ? K(mr, P(pt)) : P(pt));
7
7
  return v(() => w(t) || pt);
8
- }, he = (e, t) => {
8
+ }, ye = (e, t) => {
9
9
  const n = vr(t);
10
10
  return {
11
11
  namespace: n,
@@ -40,7 +40,7 @@ process.env.NODE_ENV !== "production" && Object.freeze({});
40
40
  process.env.NODE_ENV !== "production" && Object.freeze([]);
41
41
  const Eo = () => {
42
42
  }, Co = Object.prototype.hasOwnProperty, Pt = (e, t) => Co.call(e, t), et = Array.isArray, ze = (e) => typeof e == "function", ve = (e) => typeof e == "string", Zt = (e) => e !== null && typeof e == "object";
43
- var gr = typeof global == "object" && global && global.Object === Object && global, Fo = typeof self == "object" && self && self.Object === Object && self, se = gr || Fo || Function("return this")(), ge = se.Symbol, hr = Object.prototype, Io = hr.hasOwnProperty, jo = hr.toString, Ye = ge ? ge.toStringTag : void 0;
43
+ var gr = typeof global == "object" && global && global.Object === Object && global, Fo = typeof self == "object" && self && self.Object === Object && self, se = gr || Fo || Function("return this")(), ge = se.Symbol, yr = Object.prototype, Io = yr.hasOwnProperty, jo = yr.toString, Ye = ge ? ge.toStringTag : void 0;
44
44
  function Ao(e) {
45
45
  var t = Io.call(e, Ye), n = e[Ye];
46
46
  try {
@@ -55,9 +55,9 @@ var Po = Object.prototype, Vo = Po.toString;
55
55
  function No(e) {
56
56
  return Vo.call(e);
57
57
  }
58
- var Mo = "[object Null]", Lo = "[object Undefined]", yn = ge ? ge.toStringTag : void 0;
58
+ var Mo = "[object Null]", Lo = "[object Undefined]", hn = ge ? ge.toStringTag : void 0;
59
59
  function Ue(e) {
60
- return e == null ? e === void 0 ? Lo : Mo : yn && yn in Object(e) ? Ao(e) : No(e);
60
+ return e == null ? e === void 0 ? Lo : Mo : hn && hn in Object(e) ? Ao(e) : No(e);
61
61
  }
62
62
  function Ke(e) {
63
63
  return e != null && typeof e == "object";
@@ -71,12 +71,12 @@ function ko(e, t) {
71
71
  o[n] = t(e[n], n, e);
72
72
  return o;
73
73
  }
74
- var ye = Array.isArray, bn = ge ? ge.prototype : void 0, _n = bn ? bn.toString : void 0;
75
- function yr(e) {
74
+ var he = Array.isArray, bn = ge ? ge.prototype : void 0, _n = bn ? bn.toString : void 0;
75
+ function hr(e) {
76
76
  if (typeof e == "string")
77
77
  return e;
78
- if (ye(e))
79
- return ko(e, yr) + "";
78
+ if (he(e))
79
+ return ko(e, hr) + "";
80
80
  if (Jt(e))
81
81
  return _n ? _n.call(e) : "";
82
82
  var t = e + "";
@@ -220,9 +220,9 @@ var Tr = Object.prototype, pa = Tr.hasOwnProperty, ma = Tr.propertyIsEnumerable,
220
220
  function va() {
221
221
  return !1;
222
222
  }
223
- var Or = typeof exports == "object" && exports && !exports.nodeType && exports, On = Or && typeof module == "object" && module && !module.nodeType && module, ga = On && On.exports === Or, Sn = ga ? se.Buffer : void 0, ha = Sn ? Sn.isBuffer : void 0, Sr = ha || va, ya = "[object Arguments]", ba = "[object Array]", _a = "[object Boolean]", wa = "[object Date]", xa = "[object Error]", Ta = "[object Function]", $a = "[object Map]", Oa = "[object Number]", Sa = "[object Object]", Ea = "[object RegExp]", Ca = "[object Set]", Fa = "[object String]", Ia = "[object WeakMap]", ja = "[object ArrayBuffer]", Aa = "[object DataView]", Pa = "[object Float32Array]", Va = "[object Float64Array]", Na = "[object Int8Array]", Ma = "[object Int16Array]", La = "[object Int32Array]", qa = "[object Uint8Array]", ka = "[object Uint8ClampedArray]", Da = "[object Uint16Array]", Ra = "[object Uint32Array]", A = {};
223
+ var Or = typeof exports == "object" && exports && !exports.nodeType && exports, On = Or && typeof module == "object" && module && !module.nodeType && module, ga = On && On.exports === Or, Sn = ga ? se.Buffer : void 0, ya = Sn ? Sn.isBuffer : void 0, Sr = ya || va, ha = "[object Arguments]", ba = "[object Array]", _a = "[object Boolean]", wa = "[object Date]", xa = "[object Error]", Ta = "[object Function]", $a = "[object Map]", Oa = "[object Number]", Sa = "[object Object]", Ea = "[object RegExp]", Ca = "[object Set]", Fa = "[object String]", Ia = "[object WeakMap]", ja = "[object ArrayBuffer]", Aa = "[object DataView]", Pa = "[object Float32Array]", Va = "[object Float64Array]", Na = "[object Int8Array]", Ma = "[object Int16Array]", La = "[object Int32Array]", qa = "[object Uint8Array]", ka = "[object Uint8ClampedArray]", Da = "[object Uint16Array]", Ra = "[object Uint32Array]", A = {};
224
224
  A[Pa] = A[Va] = A[Na] = A[Ma] = A[La] = A[qa] = A[ka] = A[Da] = A[Ra] = !0;
225
- A[ya] = A[ba] = A[ja] = A[_a] = A[Aa] = A[wa] = A[xa] = A[Ta] = A[$a] = A[Oa] = A[Sa] = A[Ea] = A[Ca] = A[Fa] = A[Ia] = !1;
225
+ A[ha] = A[ba] = A[ja] = A[_a] = A[Aa] = A[wa] = A[xa] = A[Ta] = A[$a] = A[Oa] = A[Sa] = A[Ea] = A[Ca] = A[Fa] = A[Ia] = !1;
226
226
  function Ba(e) {
227
227
  return Ke(e) && en(e.length) && !!A[Ue(e)];
228
228
  }
@@ -239,7 +239,7 @@ var Er = typeof exports == "object" && exports && !exports.nodeType && exports,
239
239
  }
240
240
  })(), En = We && We.isTypedArray, Wa = En ? nn(En) : Ba, Ua = Object.prototype, Ka = Ua.hasOwnProperty;
241
241
  function Cr(e, t) {
242
- var n = ye(e), r = !n && $r(e), o = !n && !r && Sr(e), i = !n && !r && !o && Wa(e), a = n || r || o || i, s = a ? fa(e.length, String) : [], u = s.length;
242
+ var n = he(e), r = !n && $r(e), o = !n && !r && Sr(e), i = !n && !r && !o && Wa(e), a = n || r || o || i, s = a ? fa(e.length, String) : [], u = s.length;
243
243
  for (var d in e)
244
244
  (t || Ka.call(e, d)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
245
245
  (d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -286,7 +286,7 @@ function on(e) {
286
286
  }
287
287
  var ti = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ni = /^\w*$/;
288
288
  function ri(e, t) {
289
- if (ye(e))
289
+ if (he(e))
290
290
  return !1;
291
291
  var n = typeof e;
292
292
  return n == "number" || n == "symbol" || n == "boolean" || e == null || Jt(e) ? !0 : ni.test(e) || !ti.test(e) || t != null && e in Object(t);
@@ -339,13 +339,13 @@ function xt(e, t) {
339
339
  return n;
340
340
  return -1;
341
341
  }
342
- var gi = Array.prototype, hi = gi.splice;
343
- function yi(e) {
342
+ var gi = Array.prototype, yi = gi.splice;
343
+ function hi(e) {
344
344
  var t = this.__data__, n = xt(t, e);
345
345
  if (n < 0)
346
346
  return !1;
347
347
  var r = t.length - 1;
348
- return n == r ? t.pop() : hi.call(t, n, 1), --this.size, !0;
348
+ return n == r ? t.pop() : yi.call(t, n, 1), --this.size, !0;
349
349
  }
350
350
  function bi(e) {
351
351
  var t = this.__data__, n = xt(t, e);
@@ -366,7 +366,7 @@ function de(e) {
366
366
  }
367
367
  }
368
368
  de.prototype.clear = vi;
369
- de.prototype.delete = yi;
369
+ de.prototype.delete = hi;
370
370
  de.prototype.get = bi;
371
371
  de.prototype.has = _i;
372
372
  de.prototype.set = wi;
@@ -440,10 +440,10 @@ var ji = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
440
440
  }), t;
441
441
  });
442
442
  function Vi(e) {
443
- return e == null ? "" : yr(e);
443
+ return e == null ? "" : hr(e);
444
444
  }
445
445
  function sn(e, t) {
446
- return ye(e) ? e : ri(e, t) ? [e] : Pi(Vi(e));
446
+ return he(e) ? e : ri(e, t) ? [e] : Pi(Vi(e));
447
447
  }
448
448
  function ln(e) {
449
449
  if (typeof e == "string" || Jt(e))
@@ -471,7 +471,7 @@ function Nt() {
471
471
  if (!arguments.length)
472
472
  return [];
473
473
  var e = arguments[0];
474
- return ye(e) ? e : [e];
474
+ return he(e) ? e : [e];
475
475
  }
476
476
  function Mi() {
477
477
  this.__data__ = new de(), this.size = 0;
@@ -547,7 +547,7 @@ function Ji(e, t) {
547
547
  }
548
548
  function Mr(e, t, n) {
549
549
  var r = t(e);
550
- return ye(e) ? r : jr(r, n(e));
550
+ return he(e) ? r : jr(r, n(e));
551
551
  }
552
552
  function Xi(e) {
553
553
  return Mr(e, rn, un);
@@ -600,7 +600,7 @@ function ps(e, t) {
600
600
  var n = t ? cn(e.buffer) : e.buffer;
601
601
  return new e.constructor(n, e.byteOffset, e.length);
602
602
  }
603
- var ms = "[object Boolean]", vs = "[object Date]", gs = "[object Map]", hs = "[object Number]", ys = "[object RegExp]", bs = "[object Set]", _s = "[object String]", ws = "[object Symbol]", xs = "[object ArrayBuffer]", Ts = "[object DataView]", $s = "[object Float32Array]", Os = "[object Float64Array]", Ss = "[object Int8Array]", Es = "[object Int16Array]", Cs = "[object Int32Array]", Fs = "[object Uint8Array]", Is = "[object Uint8ClampedArray]", js = "[object Uint16Array]", As = "[object Uint32Array]";
603
+ var ms = "[object Boolean]", vs = "[object Date]", gs = "[object Map]", ys = "[object Number]", hs = "[object RegExp]", bs = "[object Set]", _s = "[object String]", ws = "[object Symbol]", xs = "[object ArrayBuffer]", Ts = "[object DataView]", $s = "[object Float32Array]", Os = "[object Float64Array]", Ss = "[object Int8Array]", Es = "[object Int16Array]", Cs = "[object Int32Array]", Fs = "[object Uint8Array]", Is = "[object Uint8ClampedArray]", js = "[object Uint16Array]", As = "[object Uint32Array]";
604
604
  function Ps(e, t, n) {
605
605
  var r = e.constructor;
606
606
  switch (t) {
@@ -623,10 +623,10 @@ function Ps(e, t, n) {
623
623
  return ps(e, n);
624
624
  case gs:
625
625
  return new r();
626
- case hs:
626
+ case ys:
627
627
  case _s:
628
628
  return new r(e);
629
- case ys:
629
+ case hs:
630
630
  return fs(e);
631
631
  case bs:
632
632
  return new r();
@@ -654,16 +654,16 @@ function Je(e, t, n, r, o, i) {
654
654
  return a;
655
655
  if (!Te(e))
656
656
  return e;
657
- var c = ye(e);
657
+ var c = he(e);
658
658
  if (c) {
659
659
  if (a = ls(e), !s)
660
660
  return ra(e, a);
661
661
  } else {
662
- var p = ce(e), h = p == qr || p == Ys;
662
+ var p = ce(e), y = p == qr || p == Ys;
663
663
  if (Sr(e))
664
664
  return Ui(e, s);
665
- if (p == kr || p == Lr || h && !o) {
666
- if (a = u || h ? {} : Vs(e), !s)
665
+ if (p == kr || p == Lr || y && !o) {
666
+ if (a = u || y ? {} : Vs(e), !s)
667
667
  return u ? Ji(e, zi(a, e)) : Hi(e, Bi(a, e));
668
668
  } else {
669
669
  if (!j[p])
@@ -672,9 +672,9 @@ function Je(e, t, n, r, o, i) {
672
672
  }
673
673
  }
674
674
  i || (i = new Ge());
675
- var y = i.get(e);
676
- if (y)
677
- return y;
675
+ var h = i.get(e);
676
+ if (h)
677
+ return h;
678
678
  i.set(e, a), Ds(e) ? e.forEach(function(m) {
679
679
  a.add(Je(m, t, n, m, e, i));
680
680
  }) : Ls(e) && e.forEach(function(m, l) {
@@ -690,7 +690,7 @@ function It(e) {
690
690
  return Je(e, pl);
691
691
  }
692
692
  var ml = 1, vl = 4;
693
- function ht(e) {
693
+ function yt(e) {
694
694
  return Je(e, ml | vl);
695
695
  }
696
696
  function gl(e, t, n) {
@@ -701,16 +701,16 @@ function gl(e, t, n) {
701
701
  break;
702
702
  e = e[a];
703
703
  }
704
- return i || ++r != o ? i : (o = e == null ? 0 : e.length, !!o && en(o) && Xt(a, o) && (ye(e) || $r(e)));
704
+ return i || ++r != o ? i : (o = e == null ? 0 : e.length, !!o && en(o) && Xt(a, o) && (he(e) || $r(e)));
705
705
  }
706
- function hl(e) {
706
+ function yl(e) {
707
707
  for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n; ) {
708
708
  var o = e[t];
709
709
  r[o[0]] = o[1];
710
710
  }
711
711
  return r;
712
712
  }
713
- var yl = Object.prototype, bl = yl.hasOwnProperty;
713
+ var hl = Object.prototype, bl = hl.hasOwnProperty;
714
714
  function _l(e, t) {
715
715
  return e != null && bl.call(e, t);
716
716
  }
@@ -740,7 +740,7 @@ const Xe = (e) => typeof e == "boolean", fe = (e) => typeof e == "number", $l =
740
740
  function Sl(e, t) {
741
741
  var n;
742
742
  const r = qe();
743
- return yo(() => {
743
+ return ho(() => {
744
744
  r.value = e();
745
745
  }, {
746
746
  ...t,
@@ -828,14 +828,14 @@ function Vl(...e) {
828
828
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
829
829
  const i = [], a = () => {
830
830
  i.forEach((c) => c()), i.length = 0;
831
- }, s = (c, p, h, y) => (c.addEventListener(p, h, y), () => c.removeEventListener(p, h, y)), u = ae(
831
+ }, s = (c, p, y, h) => (c.addEventListener(p, y, h), () => c.removeEventListener(p, y, h)), u = ae(
832
832
  () => [Dt(t), rt(o)],
833
833
  ([c, p]) => {
834
834
  if (a(), !c)
835
835
  return;
836
- const h = Cl(p) ? { ...p } : p;
836
+ const y = Cl(p) ? { ...p } : p;
837
837
  i.push(
838
- ...n.flatMap((y) => r.map((g) => s(c, y, g, h)))
838
+ ...n.flatMap((h) => r.map((g) => s(c, h, g, y)))
839
839
  );
840
840
  },
841
841
  { immediate: !0, flush: "post" }
@@ -864,8 +864,8 @@ function Rr(e, t, n = {}) {
864
864
  (p) => {
865
865
  if (s(), a.value && r) {
866
866
  i = new ResizeObserver(t);
867
- for (const h of p)
868
- h && i.observe(h, o);
867
+ for (const y of p)
868
+ y && i.observe(y, o);
869
869
  }
870
870
  },
871
871
  { immediate: !0, flush: "post" }
@@ -1127,9 +1127,9 @@ const Dl = (e) => (t, n) => Rl(t, n, w(e)), Rl = (e, t, n) => Ir(n, e, e).replac
1127
1127
  validator: n || a ? (d) => {
1128
1128
  let c = !1, p = [];
1129
1129
  if (n && (p = Array.from(n), Pt(e, "default") && p.push(o), c || (c = p.includes(d))), a && (c || (c = a(d))), !c && p.length > 0) {
1130
- const h = [...new Set(p)].map((y) => JSON.stringify(y)).join(", ");
1130
+ const y = [...new Set(p)].map((h) => JSON.stringify(h)).join(", ");
1131
1131
  wo(
1132
- `Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${h}], got value ${JSON.stringify(
1132
+ `Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${y}], got value ${JSON.stringify(
1133
1133
  d
1134
1134
  )}.`
1135
1135
  );
@@ -1139,7 +1139,7 @@ const Dl = (e) => (t, n) => Rl(t, n, w(e)), Rl = (e, t, n) => Ir(n, e, e).replac
1139
1139
  [Kr]: !0
1140
1140
  };
1141
1141
  return Pt(e, "default") && (u.default = o), u;
1142
- }, le = (e) => hl(
1142
+ }, le = (e) => yl(
1143
1143
  Object.entries(e).map(([t, n]) => [
1144
1144
  t,
1145
1145
  Gr(n, t)
@@ -1170,12 +1170,12 @@ const Dl = (e) => (t, n) => Rl(t, n, w(e)), Rl = (e, t, n) => Ir(n, e, e).replac
1170
1170
  set value(r) {
1171
1171
  Tl(e, t, r);
1172
1172
  }
1173
- }), yt = P();
1173
+ }), ht = P();
1174
1174
  function Hr(e, t = void 0) {
1175
- return pe() ? K(pr, yt) : yt;
1175
+ return pe() ? K(pr, ht) : ht;
1176
1176
  }
1177
1177
  function Hl(e, t) {
1178
- const n = Hr(), r = he(
1178
+ const n = Hr(), r = ye(
1179
1179
  e,
1180
1180
  v(() => {
1181
1181
  var s;
@@ -1231,7 +1231,7 @@ const Zr = (e, t, n = !1) => {
1231
1231
  emptyValues: s.value.emptyValues,
1232
1232
  valueOnClear: s.value.valueOnClear
1233
1233
  }))
1234
- ), (n || !yt.value) && (yt.value = s.value), s;
1234
+ ), (n || !ht.value) && (ht.value = s.value), s;
1235
1235
  }, Zl = (e, t) => {
1236
1236
  const n = [.../* @__PURE__ */ new Set([...Un(e), ...Un(t)])], r = {};
1237
1237
  for (const o of n)
@@ -1277,7 +1277,7 @@ const eu = le({
1277
1277
  __name: "icon",
1278
1278
  props: eu,
1279
1279
  setup(e) {
1280
- const t = e, n = he("icon"), r = v(() => {
1280
+ const t = e, n = ye("icon"), r = v(() => {
1281
1281
  const { size: o, color: i } = t, a = ot(o);
1282
1282
  return !a && !i ? {} : {
1283
1283
  fontSize: a,
@@ -1385,7 +1385,7 @@ const du = V([
1385
1385
  }, mu = () => Ie && /android/i.test(window.navigator.userAgent), Le = (e) => e, Rt = {
1386
1386
  prefix: Math.floor(Math.random() * 1e4),
1387
1387
  current: 0
1388
- }, vu = /* @__PURE__ */ Symbol("elIdInjection"), gu = () => pe() ? K(vu, Rt) : Rt, hu = (e) => {
1388
+ }, vu = /* @__PURE__ */ Symbol("elIdInjection"), gu = () => pe() ? K(vu, Rt) : Rt, yu = (e) => {
1389
1389
  const t = gu();
1390
1390
  !Ie && t === Rt && Q(
1391
1391
  "IdInjection",
@@ -1399,14 +1399,14 @@ usage: app.provide(ID_INJECTION_KEY, {
1399
1399
  return Sl(
1400
1400
  () => w(e) || `${n.value}-id-${t.prefix}-${t.current++}`
1401
1401
  );
1402
- }, $t = /* @__PURE__ */ Symbol("formContextKey"), bt = /* @__PURE__ */ Symbol("formItemContextKey"), yu = (e) => {
1402
+ }, $t = /* @__PURE__ */ Symbol("formContextKey"), bt = /* @__PURE__ */ Symbol("formItemContextKey"), hu = (e) => {
1403
1403
  const t = pe();
1404
1404
  return v(() => {
1405
1405
  var n, r;
1406
1406
  return (r = (n = t?.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[e];
1407
1407
  });
1408
1408
  }, Jr = (e, t = {}) => {
1409
- const n = P(void 0), r = t.prop ? n : yu("size"), o = t.global ? n : Kl(), i = t.form ? { size: void 0 } : K($t, void 0), a = t.formItem ? { size: void 0 } : K(bt, void 0);
1409
+ const n = P(void 0), r = t.prop ? n : hu("size"), o = t.global ? n : Kl(), i = t.form ? { size: void 0 } : K($t, void 0), a = t.formItem ? { size: void 0 } : K(bt, void 0);
1410
1410
  return v(
1411
1411
  () => r.value || w(e) || a?.size || i?.size || o.value || ""
1412
1412
  );
@@ -1474,7 +1474,7 @@ usage: app.provide(ID_INJECTION_KEY, {
1474
1474
  __name: "badge",
1475
1475
  props: wu,
1476
1476
  setup(e, { expose: t }) {
1477
- const n = e, r = he("badge"), o = v(() => n.isDot ? "" : fe(n.value) && fe(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), i = v(() => {
1477
+ const n = e, r = ye("badge"), o = v(() => n.isDot ? "" : fe(n.value) && fe(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), i = v(() => {
1478
1478
  var a;
1479
1479
  return [
1480
1480
  {
@@ -1579,7 +1579,7 @@ const $u = ut(Tu), Ou = le({
1579
1579
  __name: "col",
1580
1580
  props: Ou,
1581
1581
  setup(e) {
1582
- const t = e, { gutter: n } = K(Xr, { gutter: v(() => 0) }), r = he("col"), o = v(() => {
1582
+ const t = e, { gutter: n } = K(Xr, { gutter: v(() => 0) }), r = ye("col"), o = v(() => {
1583
1583
  const a = {};
1584
1584
  return n.value && (a.paddingLeft = a.paddingRight = `${n.value / 2}px`), a;
1585
1585
  }), i = v(() => {
@@ -1752,7 +1752,7 @@ const ft = (e, t) => {
1752
1752
  props: Iu,
1753
1753
  emits: ju,
1754
1754
  setup(e, { expose: t, emit: n }) {
1755
- const r = e, o = n, i = P(), a = At([]), s = Jr(), u = he("form"), d = v(() => {
1755
+ const r = e, o = n, i = P(), a = At([]), s = Jr(), u = ye("form"), d = v(() => {
1756
1756
  const { labelPosition: b, inline: $ } = r;
1757
1757
  return [
1758
1758
  u.b(),
@@ -1764,9 +1764,9 @@ const ft = (e, t) => {
1764
1764
  ];
1765
1765
  }), c = (b) => ft(a, [b])[0], p = (b) => {
1766
1766
  a.push(b);
1767
- }, h = (b) => {
1768
- b.prop && a.splice(a.indexOf(b), 1);
1769
1767
  }, y = (b) => {
1768
+ b.prop && a.splice(a.indexOf(b), 1);
1769
+ }, h = (b) => {
1770
1770
  if (!r.model) {
1771
1771
  Q(Ne, "model is required for setInitialValues to work.");
1772
1772
  return;
@@ -1853,8 +1853,8 @@ const ft = (e, t) => {
1853
1853
  validateField: E,
1854
1854
  getField: c,
1855
1855
  addField: p,
1856
- removeField: h,
1857
- setInitialValues: y,
1856
+ removeField: y,
1857
+ setInitialValues: h,
1858
1858
  ...Pu()
1859
1859
  })
1860
1860
  ), t({
@@ -1865,7 +1865,7 @@ const ft = (e, t) => {
1865
1865
  scrollToField: q,
1866
1866
  getField: c,
1867
1867
  fields: a,
1868
- setInitialValues: y
1868
+ setInitialValues: h
1869
1869
  }), (b, $) => (C(), L(
1870
1870
  "form",
1871
1871
  {
@@ -2038,28 +2038,28 @@ var Jn = /* @__PURE__ */ (function(e) {
2038
2038
  })(/* @__PURE__ */ Wt(Error));
2039
2039
  function zu(e, t, n, r, o) {
2040
2040
  if (t.first) {
2041
- var i = new Promise(function(h, y) {
2041
+ var i = new Promise(function(y, h) {
2042
2042
  var g = function(l) {
2043
- return r(l), l.length ? y(new Jn(l, Ut(l))) : h(o);
2043
+ return r(l), l.length ? h(new Jn(l, Ut(l))) : y(o);
2044
2044
  }, f = Bu(e);
2045
2045
  Zn(f, n, g);
2046
2046
  });
2047
- return i.catch(function(h) {
2048
- return h;
2047
+ return i.catch(function(y) {
2048
+ return y;
2049
2049
  }), i;
2050
2050
  }
2051
- var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), u = s.length, d = 0, c = [], p = new Promise(function(h, y) {
2051
+ var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), u = s.length, d = 0, c = [], p = new Promise(function(y, h) {
2052
2052
  var g = function(m) {
2053
2053
  if (c.push.apply(c, m), d++, d === u)
2054
- return r(c), c.length ? y(new Jn(c, Ut(c))) : h(o);
2054
+ return r(c), c.length ? h(new Jn(c, Ut(c))) : y(o);
2055
2055
  };
2056
- s.length || (r(c), h(o)), s.forEach(function(f) {
2056
+ s.length || (r(c), y(o)), s.forEach(function(f) {
2057
2057
  var m = e[f];
2058
2058
  a.indexOf(f) !== -1 ? Zn(m, n, g) : Ru(m, n, g);
2059
2059
  });
2060
2060
  });
2061
- return p.catch(function(h) {
2062
- return h;
2061
+ return p.catch(function(y) {
2062
+ return y;
2063
2063
  }), p;
2064
2064
  }
2065
2065
  function Wu(e) {
@@ -2121,7 +2121,7 @@ var eo = function(t, n, r, o, i, a) {
2121
2121
  }, u.v6 = function(x) {
2122
2122
  return x && x.exact ? s : new RegExp("" + t(x) + o + t(x), "g");
2123
2123
  };
2124
- var d = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", p = u.v4().source, h = u.v6().source, y = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", g = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", f = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", l = '(?:[/?#][^\\s"]*)?', T = "(?:" + d + "|www\\.)" + c + "(?:localhost|" + p + "|" + h + "|" + y + g + f + ")" + m + l;
2124
+ var d = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", p = u.v4().source, y = u.v6().source, h = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", g = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", f = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", l = '(?:[/?#][^\\s"]*)?', T = "(?:" + d + "|www\\.)" + c + "(?:localhost|" + p + "|" + y + "|" + h + g + f + ")" + m + l;
2125
2125
  return dt = new RegExp("(?:^" + T + "$)", "i"), dt;
2126
2126
  }), er = {
2127
2127
  // http://emailregex.com/
@@ -2179,10 +2179,10 @@ var eo = function(t, n, r, o, i, a) {
2179
2179
  var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = t.type;
2180
2180
  a.indexOf(s) > -1 ? He[s](n) || o.push(ee(i.messages.types[s], t.fullField, t.type)) : s && typeof n !== t.type && o.push(ee(i.messages.types[s], t.fullField, t.type));
2181
2181
  }, Hu = function(t, n, r, o, i) {
2182
- var a = typeof t.len == "number", s = typeof t.min == "number", u = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, p = null, h = typeof n == "number", y = typeof n == "string", g = Array.isArray(n);
2183
- if (h ? p = "number" : y ? p = "string" : g && (p = "array"), !p)
2182
+ var a = typeof t.len == "number", s = typeof t.min == "number", u = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, p = null, y = typeof n == "number", h = typeof n == "string", g = Array.isArray(n);
2183
+ if (y ? p = "number" : h ? p = "string" : g && (p = "array"), !p)
2184
2184
  return !1;
2185
- g && (c = n.length), y && (c = n.replace(d, "_").length), a ? c !== t.len && o.push(ee(i.messages[p].len, t.fullField, t.len)) : s && !u && c < t.min ? o.push(ee(i.messages[p].min, t.fullField, t.min)) : u && !s && c > t.max ? o.push(ee(i.messages[p].max, t.fullField, t.max)) : s && u && (c < t.min || c > t.max) && o.push(ee(i.messages[p].range, t.fullField, t.min, t.max));
2185
+ g && (c = n.length), h && (c = n.replace(d, "_").length), a ? c !== t.len && o.push(ee(i.messages[p].len, t.fullField, t.len)) : s && !u && c < t.min ? o.push(ee(i.messages[p].min, t.fullField, t.min)) : u && !s && c > t.max ? o.push(ee(i.messages[p].max, t.fullField, t.max)) : s && u && (c < t.min || c > t.max) && o.push(ee(i.messages[p].range, t.fullField, t.min, t.max));
2186
2186
  }, Me = "enum", Zu = function(t, n, r, o, i) {
2187
2187
  t[Me] = Array.isArray(t[Me]) ? t[Me] : [], t[Me].indexOf(n) === -1 && o.push(ee(i.messages[Me], t.fullField, t[Me].join(", ")));
2188
2188
  }, Ju = function(t, n, r, o, i) {
@@ -2433,14 +2433,14 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
2433
2433
  p === Gt && (p = Kt()), Qn(p, u.messages), u.messages = p;
2434
2434
  } else
2435
2435
  u.messages = this.messages();
2436
- var h = {}, y = u.keys || Object.keys(this.rules);
2437
- y.forEach(function(f) {
2436
+ var y = {}, h = u.keys || Object.keys(this.rules);
2437
+ h.forEach(function(f) {
2438
2438
  var m = a.rules[f], l = s[f];
2439
2439
  m.forEach(function(T) {
2440
2440
  var x = T;
2441
2441
  typeof x.transform == "function" && (s === r && (s = xe({}, s)), l = s[f] = x.transform(l)), typeof x == "function" ? x = {
2442
2442
  validator: x
2443
- } : x = xe({}, x), x.validator = a.getValidationMethod(x), x.validator && (x.field = f, x.fullField = x.fullField || f, x.type = a.getType(x), h[f] = h[f] || [], h[f].push({
2443
+ } : x = xe({}, x), x.validator = a.getValidationMethod(x), x.validator && (x.field = f, x.fullField = x.fullField || f, x.type = a.getType(x), y[f] = y[f] || [], y[f].push({
2444
2444
  rule: x,
2445
2445
  value: l,
2446
2446
  source: s,
@@ -2449,7 +2449,7 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
2449
2449
  });
2450
2450
  });
2451
2451
  var g = {};
2452
- return zu(h, u, function(f, m) {
2452
+ return zu(y, u, function(f, m) {
2453
2453
  var l = f.rule, T = (l.type === "object" || l.type === "array") && (typeof l.fields == "object" || typeof l.defaultField == "object");
2454
2454
  T = T && (l.required || !l.required && f.value), l.field = f.field;
2455
2455
  function x(b, $) {
@@ -2581,7 +2581,7 @@ var vc = N({
2581
2581
  }) {
2582
2582
  const n = K($t, void 0), r = K(bt);
2583
2583
  r || Ll(tr, "usage: <el-form-item><label-wrap /></el-form-item>");
2584
- const o = he("form"), i = P(), a = P(0), s = () => {
2584
+ const o = ye("form"), i = P(), a = P(0), s = () => {
2585
2585
  var c;
2586
2586
  if ((c = i.value) != null && c.firstElementChild) {
2587
2587
  const p = window.getComputedStyle(i.value.firstElementChild).width;
@@ -2607,12 +2607,12 @@ var vc = N({
2607
2607
  if (!t)
2608
2608
  return null;
2609
2609
  const {
2610
- isAutoWidth: h
2610
+ isAutoWidth: y
2611
2611
  } = e;
2612
- if (h) {
2613
- const y = n?.autoLabelWidth, g = r?.hasLabel, f = {};
2614
- if (g && y && y !== "auto") {
2615
- const m = Math.max(0, Number.parseInt(y, 10) - a.value), T = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
2612
+ if (y) {
2613
+ const h = n?.autoLabelWidth, g = r?.hasLabel, f = {};
2614
+ if (g && h && h !== "auto") {
2615
+ const m = Math.max(0, Number.parseInt(h, 10) - a.value), T = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
2616
2616
  m && (f[T] = `${m}px`);
2617
2617
  }
2618
2618
  return M("div", {
@@ -2627,12 +2627,12 @@ var vc = N({
2627
2627
  };
2628
2628
  }
2629
2629
  });
2630
- const gc = ["role", "aria-labelledby"], hc = N({
2630
+ const gc = ["role", "aria-labelledby"], yc = N({
2631
2631
  name: "ElFormItem",
2632
2632
  __name: "form-item",
2633
2633
  props: mc,
2634
2634
  setup(e, { expose: t }) {
2635
- const n = e, r = To(), o = K($t, void 0), i = K(bt, void 0), a = Jr(void 0, { formItem: !1 }), s = he("form-item"), u = hu().value, d = P([]), c = P(""), p = Al(c, 100), h = P(""), y = P();
2635
+ const n = e, r = To(), o = K($t, void 0), i = K(bt, void 0), a = Jr(void 0, { formItem: !1 }), s = ye("form-item"), u = yu().value, d = P([]), c = P(""), p = Al(c, 100), y = P(""), h = P();
2636
2636
  let g, f = !1;
2637
2637
  const m = v(
2638
2638
  () => n.labelPosition || o?.labelPosition
@@ -2706,7 +2706,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
2706
2706
  }, po = (_) => {
2707
2707
  var I, z;
2708
2708
  const { errors: B, fields: oe } = _;
2709
- (!B || !oe) && console.error(_), Pe("error"), h.value = B ? (z = (I = B?.[0]) == null ? void 0 : I.message) != null ? z : `${n.prop} is required` : "", o?.emit("validate", n.prop, !1, h.value);
2709
+ (!B || !oe) && console.error(_), Pe("error"), y.value = B ? (z = (I = B?.[0]) == null ? void 0 : I.message) != null ? z : `${n.prop} is required` : "", o?.emit("validate", n.prop, !1, y.value);
2710
2710
  }, mo = () => {
2711
2711
  Pe("success"), o?.emit("validate", n.prop, !0, "");
2712
2712
  }, vo = async (_) => {
@@ -2726,7 +2726,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
2726
2726
  return I?.(!1, Ve), z ? !1 : Promise.reject(Ve);
2727
2727
  }));
2728
2728
  }, St = () => {
2729
- Pe(""), h.value = "", f = !1;
2729
+ Pe(""), y.value = "", f = !1;
2730
2730
  }, vn = async () => {
2731
2731
  const _ = o?.model;
2732
2732
  if (!_ || !n.prop)
@@ -2735,7 +2735,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
2735
2735
  f = !0, I.value = It(g), await Ht(), St(), f = !1;
2736
2736
  }, go = (_) => {
2737
2737
  d.value.includes(_) || d.value.push(_);
2738
- }, ho = (_) => {
2738
+ }, yo = (_) => {
2739
2739
  d.value = d.value.filter((I) => I !== _);
2740
2740
  }, gn = (_) => {
2741
2741
  g = It(_);
@@ -2743,7 +2743,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
2743
2743
  ae(
2744
2744
  () => n.error,
2745
2745
  (_) => {
2746
- h.value = _ || "", Pe(_ ? "error" : "");
2746
+ y.value = _ || "", Pe(_ ? "error" : "");
2747
2747
  },
2748
2748
  { immediate: !0 }
2749
2749
  ), ae(
@@ -2752,9 +2752,9 @@ const gc = ["role", "aria-labelledby"], hc = N({
2752
2752
  );
2753
2753
  const Et = At({
2754
2754
  ...lr(n),
2755
- $el: y,
2755
+ $el: h,
2756
2756
  size: a,
2757
- validateMessage: h,
2757
+ validateMessage: y,
2758
2758
  validateState: c,
2759
2759
  labelId: u,
2760
2760
  inputIds: d,
@@ -2762,7 +2762,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
2762
2762
  hasLabel: $,
2763
2763
  fieldValue: J,
2764
2764
  addInputId: go,
2765
- removeInputId: ho,
2765
+ removeInputId: yo,
2766
2766
  resetField: vn,
2767
2767
  clearValidate: St,
2768
2768
  validate: mn,
@@ -2775,7 +2775,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
2775
2775
  o?.removeField(Et);
2776
2776
  }), t({
2777
2777
  size: a,
2778
- validateMessage: h,
2778
+ validateMessage: y,
2779
2779
  validateState: c,
2780
2780
  validate: mn,
2781
2781
  clearValidate: St,
@@ -2785,7 +2785,7 @@ const gc = ["role", "aria-labelledby"], hc = N({
2785
2785
  var z;
2786
2786
  return C(), L("div", {
2787
2787
  ref_key: "formItemRef",
2788
- ref: y,
2788
+ ref: h,
2789
2789
  class: Z(x.value),
2790
2790
  role: k.value ? "group" : void 0,
2791
2791
  "aria-labelledby": k.value ? w(u) : void 0
@@ -2829,14 +2829,14 @@ const gc = ["role", "aria-labelledby"], hc = N({
2829
2829
  default: U(() => [
2830
2830
  fo.value ? ne(_.$slots, "error", {
2831
2831
  key: 0,
2832
- error: h.value
2832
+ error: y.value
2833
2833
  }, () => [
2834
2834
  H(
2835
2835
  "div",
2836
2836
  {
2837
2837
  class: Z(q.value)
2838
2838
  },
2839
- gt(h.value),
2839
+ gt(y.value),
2840
2840
  3
2841
2841
  )
2842
2842
  ]) : De("v-if", !0)
@@ -2850,8 +2850,8 @@ const gc = ["role", "aria-labelledby"], hc = N({
2850
2850
  };
2851
2851
  }
2852
2852
  });
2853
- var to = /* @__PURE__ */ je(hc, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);
2854
- const yc = ut(Nu, {
2853
+ var to = /* @__PURE__ */ je(yc, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);
2854
+ const hc = ut(Nu, {
2855
2855
  FormItem: to
2856
2856
  }), bc = Xl(to), _c = [
2857
2857
  "start",
@@ -2883,7 +2883,7 @@ const yc = ut(Nu, {
2883
2883
  __name: "row",
2884
2884
  props: xc,
2885
2885
  setup(e) {
2886
- const t = e, n = he("row"), r = v(() => t.gutter);
2886
+ const t = e, n = ye("row"), r = v(() => t.gutter);
2887
2887
  st(Xr, {
2888
2888
  gutter: r
2889
2889
  });
@@ -3021,7 +3021,7 @@ const nr = ut($c), no = [
3021
3021
  props: Oc,
3022
3022
  emits: Sc,
3023
3023
  setup(e, { expose: t, emit: n }) {
3024
- const { Close: r } = pu, o = e, i = n, a = P(!1), { ns: s, zIndex: u } = Hl("message"), { currentZIndex: d, nextZIndex: c } = u, p = P(), h = P(!1), y = P(0);
3024
+ const { Close: r } = pu, o = e, i = n, a = P(!1), { ns: s, zIndex: u } = Hl("message"), { currentZIndex: d, nextZIndex: c } = u, p = P(), y = P(!1), h = P(0);
3025
3025
  let g;
3026
3026
  const f = v(
3027
3027
  () => o.type ? o.type === "error" ? "danger" : o.type : "info"
@@ -3030,7 +3030,7 @@ const nr = ut($c), no = [
3030
3030
  return { [s.bm("icon", O)]: O && Yn[O] };
3031
3031
  }), l = v(
3032
3032
  () => o.icon || Yn[o.type] || ""
3033
- ), T = v(() => o.placement || Re), x = v(() => Fc(o.id, T.value)), E = v(() => Ic(o.id, o.offset, T.value) + x.value), q = v(() => y.value + E.value), b = v(() => T.value.includes("left") ? s.is("left") : T.value.includes("right") ? s.is("right") : s.is("center")), $ = v(
3033
+ ), T = v(() => o.placement || Re), x = v(() => Fc(o.id, T.value)), E = v(() => Ic(o.id, o.offset, T.value) + x.value), q = v(() => h.value + E.value), b = v(() => T.value.includes("left") ? s.is("left") : T.value.includes("right") ? s.is("right") : s.is("center")), $ = v(
3034
3034
  () => T.value.startsWith("top") ? "top" : "bottom"
3035
3035
  ), F = v(() => ({
3036
3036
  [$.value]: `${E.value}px`,
@@ -3045,7 +3045,7 @@ const nr = ut($c), no = [
3045
3045
  g?.();
3046
3046
  }
3047
3047
  function J() {
3048
- h.value = !1, Ht(() => {
3048
+ y.value = !1, Ht(() => {
3049
3049
  var O;
3050
3050
  a.value || ((O = o.onClose) == null || O.call(o), i("destroy"));
3051
3051
  });
@@ -3054,16 +3054,16 @@ const nr = ut($c), no = [
3054
3054
  bu(O) === Bt.esc && J();
3055
3055
  }
3056
3056
  return it(() => {
3057
- k(), c(), h.value = !0;
3057
+ k(), c(), y.value = !0;
3058
3058
  }), ae(
3059
3059
  () => o.repeatNum,
3060
3060
  () => {
3061
3061
  X(), k();
3062
3062
  }
3063
3063
  ), Vl(document, "keydown", R), Rr(p, () => {
3064
- y.value = p.value.getBoundingClientRect().height;
3064
+ h.value = p.value.getBoundingClientRect().height;
3065
3065
  }), t({
3066
- visible: h,
3066
+ visible: y,
3067
3067
  bottom: q,
3068
3068
  close: J
3069
3069
  }), (O, ue) => (C(), te(ar, {
@@ -3140,7 +3140,7 @@ const nr = ut($c), no = [
3140
3140
  _: 1
3141
3141
  }, 8, ["class"])) : De("v-if", !0)
3142
3142
  ], 46, jc), [
3143
- [sr, h.value]
3143
+ [sr, y.value]
3144
3144
  ])
3145
3145
  ]),
3146
3146
  _: 3
@@ -3185,7 +3185,7 @@ const Mc = (e) => {
3185
3185
  o?.(), qc(c);
3186
3186
  },
3187
3187
  onDestroy: () => {
3188
- hn(null, i);
3188
+ yn(null, i);
3189
3189
  }
3190
3190
  }, s = M(
3191
3191
  Vc,
@@ -3194,7 +3194,7 @@ const Mc = (e) => {
3194
3194
  default: ze(a.message) ? a.message : () => a.message
3195
3195
  } : null
3196
3196
  );
3197
- s.appContext = n || Oe._context, hn(s, i), e.appendChild(i.firstElementChild);
3197
+ s.appContext = n || Oe._context, yn(s, i), e.appendChild(i.firstElementChild);
3198
3198
  const u = s.component, c = {
3199
3199
  id: r,
3200
3200
  vnode: s,
@@ -3261,8 +3261,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3261
3261
  },
3262
3262
  setup(e) {
3263
3263
  const t = e, n = me(t, "modelValue"), r = v(() => {
3264
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength: c, showWordLimit: p, type: h, initValue: y } = t.data;
3265
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength: c, showWordLimit: p, type: h, initValue: y };
3264
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength: c, showWordLimit: p, type: y, initValue: h } = t.data;
3265
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, maxlength: d, minlength: c, showWordLimit: p, type: y, initValue: h };
3266
3266
  });
3267
3267
  return (o, i) => {
3268
3268
  const a = ie("el-input");
@@ -3288,9 +3288,9 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3288
3288
  },
3289
3289
  setup(e) {
3290
3290
  const t = e, n = K("dictList"), r = me(t, "modelValue"), o = v(() => {
3291
- const { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p = [], multiple: h, multipleLimit: y, initValue: g } = t.data;
3292
- return { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, multiple: h, multipleLimit: y, initValue: g };
3293
- }), i = v(() => t.data.dictId ? n.find((a) => a.id === t.data.dictId)?.children || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
3291
+ const { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p = [], multiple: y, multipleLimit: h, initValue: g } = t.data;
3292
+ return { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, multiple: y, multipleLimit: h, initValue: g };
3293
+ }), i = v(() => t.data.dictId ? n.map((a) => (a.value = a.id, a)) || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
3294
3294
  return (a, s) => {
3295
3295
  const u = ie("el-option"), d = ie("el-select");
3296
3296
  return C(), L("div", Uc, [
@@ -3311,7 +3311,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3311
3311
  ]);
3312
3312
  };
3313
3313
  }
3314
- }), io = /* @__PURE__ */ _e(Kc, [["__scopeId", "data-v-24741d13"]]), Gc = { class: "item-content" }, Yc = /* @__PURE__ */ N({
3314
+ }), io = /* @__PURE__ */ _e(Kc, [["__scopeId", "data-v-5dd61519"]]), Gc = { class: "item-content" }, Yc = /* @__PURE__ */ N({
3315
3315
  name: "NumberItem",
3316
3316
  __name: "number",
3317
3317
  props: {
@@ -3320,8 +3320,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3320
3320
  },
3321
3321
  setup(e) {
3322
3322
  const t = e, n = me(t, "modelValue"), r = v(() => {
3323
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max: c, step: p, precision: h, controls: y, initValue: g } = t.data;
3324
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max: c, step: p, precision: h, controls: y, initValue: g };
3323
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max: c, step: p, precision: y, controls: h, initValue: g } = t.data;
3324
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, min: d, max: c, step: p, precision: y, controls: h, initValue: g };
3325
3325
  });
3326
3326
  return (o, i) => {
3327
3327
  const a = ie("el-input-number");
@@ -3342,8 +3342,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3342
3342
  },
3343
3343
  setup(e) {
3344
3344
  const t = e, n = me(t, "modelValue"), r = v(() => {
3345
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width: c, activeText: p, inactiveText: h, activeValue: y, inactiveValue: g, initValue: f } = t.data;
3346
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width: c, activeText: p, inactiveText: h, activeValue: y, inactiveValue: g, initValue: f };
3345
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width: c, activeText: p, inactiveText: y, activeValue: h, inactiveValue: g, initValue: f } = t.data;
3346
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, loading: d, width: c, activeText: p, inactiveText: y, activeValue: h, inactiveValue: g, initValue: f };
3347
3347
  });
3348
3348
  return (o, i) => {
3349
3349
  const a = ie("el-switch");
@@ -3364,8 +3364,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3364
3364
  },
3365
3365
  setup(e) {
3366
3366
  const t = e, n = me(t, "modelValue"), r = v(() => {
3367
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue: c, defaultTime: p, dateFormat: h, timeFormat: y, valueFormat: g = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: f } = t.data;
3368
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue: c, defaultTime: p, dateFormat: h, timeFormat: y, valueFormat: g, initValue: f };
3367
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue: c, defaultTime: p, dateFormat: y, timeFormat: h, valueFormat: g = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: f } = t.data;
3368
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: u, type: d, defaultValue: c, defaultTime: p, dateFormat: y, timeFormat: h, valueFormat: g, initValue: f };
3369
3369
  });
3370
3370
  return (o, i) => {
3371
3371
  const a = ie("el-date-picker");
@@ -3386,9 +3386,9 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3386
3386
  },
3387
3387
  setup(e) {
3388
3388
  const t = e, n = K("dictList"), r = me(t, "modelValue"), o = v(() => {
3389
- const { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, border: h, textColor: y, fill: g, type: f, initValue: m } = t.data;
3390
- return { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, border: h, textColor: y, fill: g, type: f, initValue: m };
3391
- }), i = v(() => t.data.dictId ? n.find((a) => a.id === t.data.dictId)?.children || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
3389
+ const { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, border: y, textColor: h, fill: g, type: f, initValue: m } = t.data;
3390
+ return { clearable: a, disabled: s, required: u, readonly: d, placeholder: c, options: p, border: y, textColor: h, fill: g, type: f, initValue: m };
3391
+ }), i = v(() => t.data.dictId ? t.data.dictId === "all" ? n.map((a) => (a.value = a.id, a)) || [] : n.find((a) => a.id === t.data.dictId)?.children || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
3392
3392
  return (a, s) => {
3393
3393
  const u = ie("el-radio"), d = ie("el-radio-group");
3394
3394
  return C(), L("div", Qc, [
@@ -3410,7 +3410,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3410
3410
  ]);
3411
3411
  };
3412
3412
  }
3413
- }), co = /* @__PURE__ */ _e(ef, [["__scopeId", "data-v-f63495ba"]]), tf = { class: "fj-form-container" }, nf = /* @__PURE__ */ N({
3413
+ }), co = /* @__PURE__ */ _e(ef, [["__scopeId", "data-v-43a4ec42"]]), tf = { class: "fj-form-container" }, nf = /* @__PURE__ */ N({
3414
3414
  name: "FjForm",
3415
3415
  __name: "index",
3416
3416
  props: {
@@ -3432,17 +3432,17 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3432
3432
  }, {
3433
3433
  deep: !0
3434
3434
  }), it(() => {
3435
- u.value = ht(a.value);
3435
+ u.value = yt(a.value);
3436
3436
  });
3437
3437
  function d() {
3438
- return W(yc, { model: a.value, ref: i, style: "width: 100%" }, {
3438
+ return W(hc, { model: a.value, ref: i, style: "width: 100%" }, {
3439
3439
  default: () => W(nr, { id: "dragzone" }, {
3440
3440
  default: () => s.value.map((l) => c(l))
3441
3441
  })
3442
3442
  });
3443
3443
  }
3444
3444
  function c(l) {
3445
- return l.formType === "block" ? p(l) : h(l);
3445
+ return l.formType === "block" ? p(l) : y(l);
3446
3446
  }
3447
3447
  function p(l) {
3448
3448
  return W(Hn, { span: 24 }, {
@@ -3453,16 +3453,16 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3453
3453
  })
3454
3454
  });
3455
3455
  }
3456
- function h(l) {
3456
+ function y(l) {
3457
3457
  return W(Hn, { xs: 24, sm: 24, md: l.span, lg: l.span, xl: 12 }, {
3458
3458
  default: () => W("div", { class: "fj-form-item" }, {
3459
3459
  default: () => [W(bc, { prop: l.key, rules: l.rules, label: l.label, style: "width: 100%" }, {
3460
- default: () => y(l)
3460
+ default: () => h(l)
3461
3461
  }), o.edit ? W("div", { class: "remove", onClick: () => g(l) }, { default: () => null }) : null]
3462
3462
  })
3463
3463
  });
3464
3464
  }
3465
- function y(l) {
3465
+ function h(l) {
3466
3466
  switch (l.formType) {
3467
3467
  case "input":
3468
3468
  return W(ao, {
@@ -3520,7 +3520,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3520
3520
  r("remove", l);
3521
3521
  }
3522
3522
  function f() {
3523
- a.value = ht(u.value);
3523
+ a.value = yt(u.value);
3524
3524
  }
3525
3525
  function m() {
3526
3526
  return new Promise((l, T) => {
@@ -3954,7 +3954,7 @@ class mf extends Ae {
3954
3954
  super(t), this.options = t.options || [], this.border = t.border || !0, this.textColor = t.textColor, this.fill = t.fill, this.type = t.type || "button", this.placeholder = `请选择${t.key}`;
3955
3955
  }
3956
3956
  }
3957
- const vf = { class: "edit-container" }, gf = { class: "aside" }, hf = { class: "form" }, yf = { class: "btn-content" }, bf = { class: "section" }, _f = { class: "main" }, wf = { class: "footer" }, xf = /* @__PURE__ */ N({
3957
+ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "form" }, hf = { class: "btn-content" }, bf = { class: "section" }, _f = { class: "main" }, wf = { class: "footer" }, xf = /* @__PURE__ */ N({
3958
3958
  name: "EditComp",
3959
3959
  __name: "index",
3960
3960
  setup(e) {
@@ -3970,43 +3970,43 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, hf = { class: "
3970
3970
  n.value = [new rr({ key: "root", label: "生成结果,输入内容设置默认值" })], r.value = {};
3971
3971
  }
3972
3972
  function u() {
3973
- t.value?.submit().then((y) => {
3974
- if (Object.keys(r.value).includes(y.key)) {
3975
- Bc.error(`重复key: ${y.key}`);
3973
+ t.value?.submit().then((h) => {
3974
+ if (Object.keys(r.value).includes(h.key)) {
3975
+ Bc.error(`重复key: ${h.key}`);
3976
3976
  return;
3977
3977
  } else {
3978
- const g = a[y.formItemType].ins;
3978
+ const g = a[h.formItemType].ins;
3979
3979
  if (g) {
3980
- const f = new g(y);
3981
- r.value = { ...r.value, [y.key]: f.initValue }, n.value.forEach((m) => {
3982
- m.children && y.key && m.children.push(f);
3980
+ const f = new g(h);
3981
+ r.value = { ...r.value, [h.key]: f.initValue }, n.value.forEach((m) => {
3982
+ m.children && h.key && m.children.push(f);
3983
3983
  });
3984
3984
  }
3985
3985
  }
3986
3986
  });
3987
3987
  }
3988
- function d(y) {
3989
- console.log(y);
3988
+ function d(h) {
3989
+ console.log(h);
3990
3990
  }
3991
- function c(y) {
3992
- console.log(y);
3993
- const g = ht(n.value), f = ht(r.value);
3994
- if (y?.key && g?.[0]?.children) {
3995
- const m = g[0].children.filter((l) => l.key != y.key) || [];
3996
- console.log(m), g[0].children = m, n.value = g, delete f[y.key], r.value = f;
3991
+ function c(h) {
3992
+ console.log(h);
3993
+ const g = yt(n.value), f = yt(r.value);
3994
+ if (h?.key && g?.[0]?.children) {
3995
+ const m = g[0].children.filter((l) => l.key != h.key) || [];
3996
+ console.log(m), g[0].children = m, n.value = g, delete f[h.key], r.value = f;
3997
3997
  }
3998
3998
  }
3999
3999
  function p() {
4000
4000
  console.log("%c 配置信息 CONFIG ", "color: lime"), console.log(JSON.stringify(n.value, null, " ")), console.log("%c 配置信息 DATA :", "color: orange"), console.log(JSON.stringify(r.value, null, " "));
4001
4001
  }
4002
- function h() {
4002
+ function y() {
4003
4003
  t.value?.reset();
4004
4004
  }
4005
- return (y, g) => {
4005
+ return (h, g) => {
4006
4006
  const f = ie("el-button"), m = ie("el-button-group");
4007
4007
  return C(), L("div", vf, [
4008
4008
  H("div", gf, [
4009
- H("div", hf, [
4009
+ H("div", yf, [
4010
4010
  M(w(Yt), {
4011
4011
  config: n.value,
4012
4012
  "onUpdate:config": g[0] || (g[0] = (l) => n.value = l),
@@ -4017,7 +4017,7 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, hf = { class: "
4017
4017
  onRemove: c
4018
4018
  }, null, 8, ["config", "data"])
4019
4019
  ]),
4020
- H("div", yf, [
4020
+ H("div", hf, [
4021
4021
  M(m, null, {
4022
4022
  default: U(() => [
4023
4023
  M(f, {
@@ -4068,7 +4068,7 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, hf = { class: "
4068
4068
  }),
4069
4069
  M(f, {
4070
4070
  type: "warning",
4071
- onClick: h
4071
+ onClick: y
4072
4072
  }, {
4073
4073
  default: U(() => [...g[7] || (g[7] = [
4074
4074
  ke("重置", -1)
@@ -14,4 +14,4 @@ usage: app.provide(ID_INJECTION_KEY, {
14
14
  (?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
15
15
  (?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
16
16
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
17
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+a+"$"),u=function(E){return E&&E.exact?s:new RegExp("(?:"+t(E)+n+t(E)+")|(?:"+t(E)+a+t(E)+")","g")};u.v4=function(w){return w&&w.exact?i:new RegExp(""+t(w)+n+t(w),"g")},u.v6=function(w){return w&&w.exact?l:new RegExp(""+t(w)+a+t(w),"g")};var p="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,y=u.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",f="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",c='(?:[/?#][^\\s"]*)?',x="(?:"+p+"|www\\.)"+d+"(?:localhost|"+m+"|"+y+"|"+b+h+f+")"+g+c;return Je=new RegExp("(?:^"+x+"$)","i"),Je}),lr={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Be={integer:function(t){return Be.number(t)&&parseInt(t,10)===t},float:function(t){return Be.number(t)&&!Be.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Be.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(lr.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Zl())},hex:function(t){return typeof t=="string"&&!!t.match(lr.hex)}},Jl=function(t,n,o,a,s){if(t.required&&n===void 0){sr(t,n,o,a,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Be[l](n)||a.push(z(s.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&a.push(z(s.messages.types[l],t.fullField,t.type))},Xl=function(t,n,o,a,s){var i=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,m=null,y=typeof n=="number",b=typeof n=="string",h=Array.isArray(n);if(y?m="number":b?m="string":h&&(m="array"),!m)return!1;h&&(d=n.length),b&&(d=n.replace(p,"_").length),i?d!==t.len&&a.push(z(s.messages[m].len,t.fullField,t.len)):l&&!u&&d<t.min?a.push(z(s.messages[m].min,t.fullField,t.min)):u&&!l&&d>t.max?a.push(z(s.messages[m].max,t.fullField,t.max)):l&&u&&(d<t.min||d>t.max)&&a.push(z(s.messages[m].range,t.fullField,t.min,t.max))},xe="enum",Ql=function(t,n,o,a,s){t[xe]=Array.isArray(t[xe])?t[xe]:[],t[xe].indexOf(n)===-1&&a.push(z(s.messages[xe],t.fullField,t[xe].join(", ")))},ec=function(t,n,o,a,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(z(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push(z(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},$={required:sr,whitespace:Hl,type:Jl,range:Xl,enum:Ql,pattern:ec},tc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n,"string")&&!t.required)return o();$.required(t,n,a,i,s,"string"),A(n,"string")||($.type(t,n,a,i,s),$.range(t,n,a,i,s),$.pattern(t,n,a,i,s),t.whitespace===!0&&$.whitespace(t,n,a,i,s))}o(i)},nc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$.type(t,n,a,i,s)}o(i)},rc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},oc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$.type(t,n,a,i,s)}o(i)},ac=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),A(n)||$.type(t,n,a,i,s)}o(i)},ic=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},sc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},lc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return o();$.required(t,n,a,i,s,"array"),n!=null&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},cc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$.type(t,n,a,i,s)}o(i)},uc="enum",dc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$[uc](t,n,a,i,s)}o(i)},fc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n,"string")&&!t.required)return o();$.required(t,n,a,i,s),A(n,"string")||$.pattern(t,n,a,i,s)}o(i)},pc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n,"date")&&!t.required)return o();if($.required(t,n,a,i,s),!A(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),$.type(t,u,a,i,s),u&&$.range(t,u.getTime(),a,i,s)}}o(i)},mc=function(t,n,o,a,s){var i=[],l=Array.isArray(n)?"array":typeof n;$.required(t,n,a,i,s,l),o(i)},Ft=function(t,n,o,a,s){var i=t.type,l=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(A(n,i)&&!t.required)return o();$.required(t,n,a,l,s,i),A(n,i)||$.type(t,n,a,l,s)}o(l)},gc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s)}o(i)},Me={string:tc,method:nc,number:rc,boolean:oc,regexp:ac,integer:ic,float:sc,array:lc,object:cc,enum:dc,pattern:fc,date:pc,url:Ft,hex:Ft,email:Ft,required:mc,any:gc};function It(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Nt=It(),Le=(function(){function e(n){this.rules=null,this._messages=Nt,this.define(n)}var t=e.prototype;return t.define=function(o){var a=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(s){var i=o[s];a.rules[s]=Array.isArray(i)?i:[i]})},t.messages=function(o){return o&&(this._messages=ir(It(),o)),this._messages},t.validate=function(o,a,s){var i=this;a===void 0&&(a={}),s===void 0&&(s=function(){});var l=o,u=a,p=s;if(typeof u=="function"&&(p=u,u={}),!this.rules||Object.keys(this.rules).length===0)return p&&p(null,l),Promise.resolve(l);function d(f){var g=[],c={};function x(E){if(Array.isArray(E)){var N;g=(N=g).concat.apply(N,E)}else g.push(E)}for(var w=0;w<f.length;w++)x(f[w]);g.length?(c=jt(g),p(g,c)):p(null,l)}if(u.messages){var m=this.messages();m===Nt&&(m=It()),ir(m,u.messages),u.messages=m}else u.messages=this.messages();var y={},b=u.keys||Object.keys(this.rules);b.forEach(function(f){var g=i.rules[f],c=l[f];g.forEach(function(x){var w=x;typeof w.transform=="function"&&(l===o&&(l=fe({},l)),c=l[f]=w.transform(c)),typeof w=="function"?w={validator:w}:w=fe({},w),w.validator=i.getValidationMethod(w),w.validator&&(w.field=f,w.fullField=w.fullField||f,w.type=i.getType(w),y[f]=y[f]||[],y[f].push({rule:w,value:c,source:l,field:f}))})});var h={};return Kl(y,u,function(f,g){var c=f.rule,x=(c.type==="object"||c.type==="array")&&(typeof c.fields=="object"||typeof c.defaultField=="object");x=x&&(c.required||!c.required&&f.value),c.field=f.field;function w(v,C){return fe({},C,{fullField:c.fullField+"."+v,fullFields:c.fullFields?[].concat(c.fullFields,[v]):[v]})}function E(v){v===void 0&&(v=[]);var C=Array.isArray(v)?v:[v];!u.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&c.message!==void 0&&(C=[].concat(c.message));var S=C.map(ar(c,l));if(u.first&&S.length)return h[c.field]=1,g(S);if(!x)g(S);else{if(c.required&&!f.value)return c.message!==void 0?S=[].concat(c.message).map(ar(c,l)):u.error&&(S=[u.error(c,z(u.messages.required,c.field))]),g(S);var P={};c.defaultField&&Object.keys(f.value).map(function(k){P[k]=c.defaultField}),P=fe({},P,f.rule.fields);var U={};Object.keys(P).forEach(function(k){var T=P[k],X=Array.isArray(T)?T:[T];U[k]=X.map(w.bind(null,k))});var D=new e(U);D.messages(u.messages),f.rule.options&&(f.rule.options.messages=u.messages,f.rule.options.error=u.error),D.validate(f.value,f.rule.options||u,function(k){var T=[];S&&S.length&&T.push.apply(T,S),k&&k.length&&T.push.apply(T,k),g(T.length?T:null)})}}var N;if(c.asyncValidator)N=c.asyncValidator(c,f.value,E,f.source,u);else if(c.validator){try{N=c.validator(c,f.value,E,f.source,u)}catch(v){console.error?.(v),u.suppressValidatorError||setTimeout(function(){throw v},0),E(v.message)}N===!0?E():N===!1?E(typeof c.message=="function"?c.message(c.fullField||c.field):c.message||(c.fullField||c.field)+" fails"):N instanceof Array?E(N):N instanceof Error&&E(N.message)}N&&N.then&&N.then(function(){return E()},function(v){return E(v)})},function(f){d(f)},l)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!Me.hasOwnProperty(o.type))throw new Error(z("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var a=Object.keys(o),s=a.indexOf("message");return s!==-1&&a.splice(s,1),a.length===1&&a[0]==="required"?Me.required:Me[this.getType(o)]||void 0},e})();Le.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Me[t]=n},Le.warning=nr,Le.messages=Nt,Le.validators=Me;const hc=["","error","validating","success"],yc=G({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:F([String,Array])},required:{type:Boolean,default:void 0},rules:{type:F([Object,Array])},error:String,validateStatus:{type:String,values:hc},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:$t}}),cr="ElLabelWrap";var bc=r.defineComponent({name:cr,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=r.inject(Ge,void 0),o=r.inject(Ye);o||qs(cr,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Q("form"),s=r.ref(),i=r.ref(0),l=()=>{var d;if((d=s.value)!=null&&d.firstElementChild){const m=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(m))}else return 0},u=(d="update")=>{r.nextTick(()=>{t.default&&e.isAutoWidth&&(d==="update"?i.value=l():d==="remove"&&n?.deregisterLabelWidth(i.value))})},p=()=>u("update");return r.onMounted(()=>{p()}),r.onBeforeUnmount(()=>{u("remove")}),r.onUpdated(()=>p()),r.watch(i,(d,m)=>{e.updateAll&&n?.registerLabelWidth(d,m)}),kn(r.computed(()=>{var d,m;return(m=(d=s.value)==null?void 0:d.firstElementChild)!=null?m:null}),p),()=>{var d,m;if(!t)return null;const{isAutoWidth:y}=e;if(y){const b=n?.autoLabelWidth,h=o?.hasLabel,f={};if(h&&b&&b!=="auto"){const g=Math.max(0,Number.parseInt(b,10)-i.value),x=(o.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(f[x]=`${g}px`)}return r.createVNode("div",{ref:s,class:[a.be("item","label-wrap")],style:f},[(d=t.default)==null?void 0:d.call(t)])}else return r.createVNode(r.Fragment,{ref:s},[(m=t.default)==null?void 0:m.call(t)])}}});const vc=["role","aria-labelledby"],_c=r.defineComponent({name:"ElFormItem",__name:"form-item",props:yc,setup(e,{expose:t}){const n=e,o=r.useSlots(),a=r.inject(Ge,void 0),s=r.inject(Ye,void 0),i=Qn(void 0,{formItem:!1}),l=Q("form-item"),u=_l().value,p=r.ref([]),d=r.ref(""),m=As(d,100),y=r.ref(""),b=r.ref();let h,f=!1;const g=r.computed(()=>n.labelPosition||a?.labelPosition),c=r.computed(()=>{var _;return g.value==="top"?{}:{width:Ae((_=n.labelWidth)!=null?_:a?.labelWidth)}}),x=r.computed(()=>{var _;if(g.value==="top"||a?.inline)return{};if(!n.label&&!n.labelWidth&&U)return{};const O=Ae((_=n.labelWidth)!=null?_:a?.labelWidth);return!n.label&&!o.label?{marginLeft:O}:{}}),w=r.computed(()=>[l.b(),l.m(i.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",Pt.value||n.required),l.is("no-asterisk",a?.hideRequiredAsterisk),a?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:a?.statusIcon,[l.m(`label-${g.value}`)]:g.value}]),E=r.computed(()=>Ie(n.inlineMessage)?n.inlineMessage:a?.inlineMessage||!1),N=r.computed(()=>[l.e("error"),{[l.em("error","inline")]:E.value}]),v=r.computed(()=>n.prop?Ee(n.prop)?n.prop.join("."):n.prop:""),C=r.computed(()=>!!(n.label||o.label)),S=r.computed(()=>{var _;return(_=n.for)!=null?_:p.value.length===1?p.value[0]:void 0}),P=r.computed(()=>!S.value&&C.value),U=!!s,D=r.computed(()=>{const _=a?.model;if(!(!_||!n.prop))return We(_,n.prop).value}),k=r.computed(()=>{const{required:_}=n,O=[];n.rules&&O.push(...gt(n.rules));const M=a?.rules;if(M&&n.prop){const B=We(M,n.prop).value;B&&O.push(...gt(B))}if(_!==void 0){const B=O.map((Y,$e)=>[Y,$e]).filter(([Y])=>"required"in Y);if(B.length>0)for(const[Y,$e]of B)Y.required!==_&&(O[$e]={...Y,required:_});else O.push({required:_})}return O}),T=r.computed(()=>k.value.length>0),X=_=>k.value.filter(M=>!M.trigger||!_?!0:Ee(M.trigger)?M.trigger.includes(_):M.trigger===_).map(({trigger:M,...B})=>B),Pt=r.computed(()=>k.value.some(_=>_.required)),hu=r.computed(()=>{var _;return m.value==="error"&&n.showMessage&&((_=a?.showMessage)!=null?_:!0)}),Tr=r.computed(()=>`${n.label||""}${a?.labelSuffix||""}`),Te=_=>{d.value=_},yu=_=>{var O,M;const{errors:B,fields:Y}=_;(!B||!Y)&&console.error(_),Te("error"),y.value=B?(M=(O=B?.[0])==null?void 0:O.message)!=null?M:`${n.prop} is required`:"",a?.emit("validate",n.prop,!1,y.value)},bu=()=>{Te("success"),a?.emit("validate",n.prop,!0,"")},vu=async _=>{const O=v.value;return new Le({[O]:_}).validate({[O]:D.value},{firstFields:!0}).then(()=>(bu(),!0)).catch(B=>(yu(B),Promise.reject(B)))},$r=async(_,O)=>{if(f||!n.prop)return!1;const M=ge(O);if(!T.value)return O?.(!1),!1;const B=X(_);return B.length===0?(O?.(!0),!0):(Te("validating"),vu(B).then(()=>(O?.(!0),!0)).catch(Y=>{const{fields:$e}=Y;return O?.(!1,$e),M?!1:Promise.reject($e)}))},At=()=>{Te(""),y.value="",f=!1},Er=async()=>{const _=a?.model;if(!_||!n.prop)return;const O=We(_,n.prop);f=!0,O.value=wt(h),await r.nextTick(),At(),f=!1},_u=_=>{p.value.includes(_)||p.value.push(_)},wu=_=>{p.value=p.value.filter(O=>O!==_)},Sr=_=>{h=wt(_)};r.watch(()=>n.error,_=>{y.value=_||"",Te(_?"error":"")},{immediate:!0}),r.watch(()=>n.validateStatus,_=>Te(_||""));const kt=r.reactive({...r.toRefs(n),$el:b,size:i,validateMessage:y,validateState:d,labelId:u,inputIds:p,isGroup:P,hasLabel:C,fieldValue:D,addInputId:_u,removeInputId:wu,resetField:Er,clearValidate:At,validate:$r,propString:v,setInitialValue:Sr});return r.provide(Ye,kt),r.onMounted(()=>{n.prop&&(a?.addField(kt),h=wt(D.value))}),r.onBeforeUnmount(()=>{a?.removeField(kt)}),t({size:i,validateMessage:y,validateState:d,validate:$r,clearValidate:At,resetField:Er,setInitialValue:Sr}),(_,O)=>{var M;return r.openBlock(),r.createElementBlock("div",{ref_key:"formItemRef",ref:b,class:r.normalizeClass(w.value),role:P.value?"group":void 0,"aria-labelledby":P.value?r.unref(u):void 0},[r.createVNode(r.unref(bc),{"is-auto-width":c.value.width==="auto","update-all":((M=r.unref(a))==null?void 0:M.labelWidth)==="auto"},{default:r.withCtx(()=>[_.label||_.$slots.label?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.value?"label":"div"),{key:0,id:r.unref(u),for:S.value,class:r.normalizeClass(r.unref(l).e("label")),style:r.normalizeStyle(c.value)},{default:r.withCtx(()=>[r.renderSlot(_.$slots,"label",{label:Tr.value},()=>[r.createTextVNode(r.toDisplayString(Tr.value),1)])]),_:3},8,["id","for","class","style"])):r.createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),r.createElementVNode("div",{class:r.normalizeClass(r.unref(l).e("content")),style:r.normalizeStyle(x.value)},[r.renderSlot(_.$slots,"default"),r.createVNode(r.TransitionGroup,{name:`${r.unref(l).namespace.value}-zoom-in-top`},{default:r.withCtx(()=>[hu.value?r.renderSlot(_.$slots,"error",{key:0,error:y.value},()=>[r.createElementVNode("div",{class:r.normalizeClass(N.value)},r.toDisplayString(y.value),3)]):r.createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,vc)}}});var ur=de(_c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const wc=Pe(Ml,{FormItem:ur}),xc=tl(ur),Cc=G({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),Tc=r.defineComponent({name:"ElRow",__name:"row",props:Cc,setup(e){const t=e,n=Q("row"),o=r.computed(()=>t.gutter);r.provide(er,{gutter:o});const a=r.computed(()=>{const i={};return t.gutter&&(i.marginRight=i.marginLeft=`-${t.gutter/2}px`),i}),s=r.computed(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(i,l)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.tag),{class:r.normalizeClass(s.value),style:r.normalizeStyle(a.value)},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["class","style"]))}});var $c=de(Tc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const dr=Pe($c),fr=["primary","success","info","warning","error"],pr=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Ce="top",q=_e({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:ue?document.body:void 0}),Ec=G({customClass:{type:String,default:q.customClass},dangerouslyUseHTMLString:{type:Boolean,default:q.dangerouslyUseHTMLString},duration:{type:Number,default:q.duration},icon:{type:gl,default:q.icon},id:{type:String,default:q.id},message:{type:F([String,Object,Function]),default:q.message},onClose:{type:F(Function),default:q.onClose},showClose:{type:Boolean,default:q.showClose},type:{type:String,values:fr,default:q.type},plain:{type:Boolean,default:q.plain},offset:{type:Number,default:q.offset},placement:{type:String,values:pr,default:q.placement},zIndex:{type:Number,default:q.zIndex},grouping:{type:Boolean,default:q.grouping},repeatNum:{type:Number,default:q.repeatNum}}),Sc={destroy:()=>!0},W=r.shallowReactive({}),Oc=e=>(W[e]||(W[e]=r.shallowReactive([])),W[e]),Vc=(e,t)=>{const n=W[t]||[],o=n.findIndex(i=>i.id===e),a=n[o];let s;return o>0&&(s=n[o-1]),{current:a,prev:s}},jc=(e,t)=>{const{prev:n}=Vc(e,t);return n?n.vm.exposed.bottom.value:0},Fc=(e,t,n)=>(W[n]||[]).findIndex(s=>s.id===e)>0?16:t,Ic=["id"],Nc=["innerHTML"],Pc=r.defineComponent({name:"ElMessage",__name:"message",props:Ec,emits:Sc,setup(e,{expose:t,emit:n}){const{Close:o}=hl,a=e,s=n,i=r.ref(!1),{ns:l,zIndex:u}=Xs("message"),{currentZIndex:p,nextZIndex:d}=u,m=r.ref(),y=r.ref(!1),b=r.ref(0);let h;const f=r.computed(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=r.computed(()=>{const T=a.type;return{[l.bm("icon",T)]:T&&Xn[T]}}),c=r.computed(()=>a.icon||Xn[a.type]||""),x=r.computed(()=>a.placement||Ce),w=r.computed(()=>jc(a.id,x.value)),E=r.computed(()=>Fc(a.id,a.offset,x.value)+w.value),N=r.computed(()=>b.value+E.value),v=r.computed(()=>x.value.includes("left")?l.is("left"):x.value.includes("right")?l.is("right"):l.is("center")),C=r.computed(()=>x.value.startsWith("top")?"top":"bottom"),S=r.computed(()=>({[C.value]:`${E.value}px`,zIndex:p.value}));function P(){a.duration!==0&&({stop:h}=ks(()=>{D()},a.duration))}function U(){h?.()}function D(){y.value=!1,r.nextTick(()=>{var T;i.value||((T=a.onClose)==null||T.call(a),s("destroy"))})}function k(T){xl(T)===St.esc&&D()}return r.onMounted(()=>{P(),d(),y.value=!0}),r.watch(()=>a.repeatNum,()=>{U(),P()}),Bs(document,"keydown",k),kn(m,()=>{b.value=m.value.getBoundingClientRect().height}),t({visible:y,bottom:N,close:D}),(T,X)=>(r.openBlock(),r.createBlock(r.Transition,{name:r.unref(l).b("fade"),onBeforeEnter:X[0]||(X[0]=Pt=>i.value=!0),onBeforeLeave:T.onClose,onAfterLeave:X[1]||(X[1]=Pt=>T.$emit("destroy")),persisted:""},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{id:T.id,ref_key:"messageRef",ref:m,class:r.normalizeClass([r.unref(l).b(),{[r.unref(l).m(T.type)]:T.type},r.unref(l).is("closable",T.showClose),r.unref(l).is("plain",T.plain),r.unref(l).is("bottom",C.value==="bottom"),v.value,T.customClass]),style:r.normalizeStyle(S.value),role:"alert",onMouseenter:U,onMouseleave:P},[T.repeatNum>1?(r.openBlock(),r.createBlock(r.unref(Sl),{key:0,value:T.repeatNum,type:f.value,class:r.normalizeClass(r.unref(l).e("badge"))},null,8,["value","type","class"])):r.createCommentVNode("v-if",!0),c.value?(r.openBlock(),r.createBlock(r.unref(Zn),{key:1,class:r.normalizeClass([r.unref(l).e("icon"),g.value])},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value)))]),_:1},8,["class"])):r.createCommentVNode("v-if",!0),r.renderSlot(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),r.createElementVNode("p",{class:r.normalizeClass(r.unref(l).e("content")),innerHTML:T.message},null,10,Nc)],2112)):(r.openBlock(),r.createElementBlock("p",{key:0,class:r.normalizeClass(r.unref(l).e("content"))},r.toDisplayString(T.message),3))]),T.showClose?(r.openBlock(),r.createBlock(r.unref(Zn),{key:2,class:r.normalizeClass(r.unref(l).e("closeBtn")),onClick:r.withModifiers(D,["stop"])},{default:r.withCtx(()=>[r.createVNode(r.unref(o))]),_:1},8,["class"])):r.createCommentVNode("v-if",!0)],46,Ic),[[r.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Ac=de(Pc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let kc=1;const Bc=e=>{if(!e.appendTo)e.appendTo=document.body;else if(ee(e.appendTo)){let n=document.querySelector(e.appendTo);Ss(n)||(R("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body),e.appendTo=n}},Mc=e=>{!e.placement&&ee(L.placement)&&L.placement&&(e.placement=L.placement),e.placement||(e.placement=Ce),pr.includes(e.placement)||(R("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${Ce}'.`),e.placement=Ce)},mr=e=>{const t=!e||ee(e)||r.isVNode(e)||ge(e)?{message:e}:e,n={...q,...t};return Bc(n),Mc(n),Ie(L.grouping)&&!n.grouping&&(n.grouping=L.grouping),J(L.duration)&&n.duration===3e3&&(n.duration=L.duration),J(L.offset)&&n.offset===16&&(n.offset=L.offset),Ie(L.showClose)&&!n.showClose&&(n.showClose=L.showClose),Ie(L.plain)&&!n.plain&&(n.plain=L.plain),n},Lc=e=>{const t=e.props.placement||Ce,n=W[t],o=n.indexOf(e);if(o===-1)return;n.splice(o,1);const{handler:a}=e;a.close()},qc=({appendTo:e,...t},n)=>{const o=`message_${kc++}`,a=t.onClose,s=document.createElement("div"),i={...t,id:o,onClose:()=>{a?.(),Lc(d)},onDestroy:()=>{r.render(null,s)}},l=r.createVNode(Ac,i,ge(i.message)||r.isVNode(i.message)?{default:ge(i.message)?i.message:()=>i.message}:null);l.appContext=n||pe._context,r.render(l,s),e.appendChild(s.firstElementChild);const u=l.component,d={id:o,vnode:l,vm:u,handler:{close:()=>{u.exposed.close()}},props:l.component.props};return d},pe=(e={},t)=>{if(!ue)return{close:()=>{}};const n=mr(e),o=Oc(n.placement||Ce);if(n.grouping&&o.length){const s=o.find(({vnode:i})=>{var l;return((l=i.props)==null?void 0:l.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}if(J(L.max)&&o.length>=L.max)return{close:()=>{}};const a=qc(n,t);return o.push(a),a.handler};fr.forEach(e=>{pe[e]=(t={},n)=>{const o=mr(t);return pe({...o,type:e},n)}});function Dc(e){for(const t in W)if(Qe(W,t)){const n=[...W[t]];for(const o of n)(!e||e===o.props.type)&&o.handler.close()}}function Rc(e){if(!W[e])return;[...W[e]].forEach(n=>n.handler.close())}pe.closeAll=Dc,pe.closeAllByPlacement=Rc,pe._context=null;const zc=el(pe,"$message"),Uc={class:"item-content"},Wc=r.defineComponent({name:"InputItem",__name:"input",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,maxlength:p,minlength:d,showWordLimit:m,type:y,initValue:b}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,maxlength:p,minlength:d,showWordLimit:m,type:y,initValue:b}});return(a,s)=>{const i=r.resolveComponent("el-input");return r.openBlock(),r.createElementBlock("div",Uc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value),null,16,["modelValue"])])}}}),oe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},gr=oe(Wc,[["__scopeId","data-v-a68b4020"]]),Kc={class:"item-content"},hr=oe(r.defineComponent({name:"SelectItem",__name:"select",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.inject("dictList"),o=r.useModel(t,"modelValue"),a=r.computed(()=>{const{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m=[],multiple:y,multipleLimit:b,initValue:h}=t.data;return{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m,multiple:y,multipleLimit:b,initValue:h}}),s=r.computed(()=>t.data.dictId?n.find(i=>i.id===t.data.dictId)?.children||[]:a.value.options&&a.value.options.length>0?a.value.options:[]);return(i,l)=>{const u=r.resolveComponent("el-option"),p=r.resolveComponent("el-select");return r.openBlock(),r.createElementBlock("div",Kc,[r.createVNode(p,r.mergeProps({modelValue:r.unref(o),"onUpdate:modelValue":l[0]||(l[0]=d=>r.isRef(o)?o.value=d:null)},a.value),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,d=>(r.openBlock(),r.createBlock(u,{key:d.value,label:d.label,value:d.value,disabled:d.disabled},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue"])])}}}),[["__scopeId","data-v-24741d13"]]),Gc={class:"item-content"},yr=oe(r.defineComponent({name:"NumberItem",__name:"number",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,min:p,max:d,step:m,precision:y,controls:b,initValue:h}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,min:p,max:d,step:m,precision:y,controls:b,initValue:h}});return(a,s)=>{const i=r.resolveComponent("el-input-number");return r.openBlock(),r.createElementBlock("div",Gc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value,{style:{width:"100%"}}),null,16,["modelValue"])])}}}),[["__scopeId","data-v-57dac883"]]),Yc={class:"item-content"},br=oe(r.defineComponent({name:"SwitchItem",__name:"switch",props:{modelValue:{type:[Number,String,Boolean]},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,loading:p,width:d,activeText:m,inactiveText:y,activeValue:b,inactiveValue:h,initValue:f}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,loading:p,width:d,activeText:m,inactiveText:y,activeValue:b,inactiveValue:h,initValue:f}});return(a,s)=>{const i=r.resolveComponent("el-switch");return r.openBlock(),r.createElementBlock("div",Yc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value),null,16,["modelValue"])])}}}),[["__scopeId","data-v-1dbe63eb"]]),Hc={class:"item-content"},vr=oe(r.defineComponent({name:"DateItem",__name:"date",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,type:p,defaultValue:d,defaultTime:m,dateFormat:y,timeFormat:b,valueFormat:h="YYYY-MM-DDTHH:mm:ss[Z]",initValue:f}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,type:p,defaultValue:d,defaultTime:m,dateFormat:y,timeFormat:b,valueFormat:h,initValue:f}});return(a,s)=>{const i=r.resolveComponent("el-date-picker");return r.openBlock(),r.createElementBlock("div",Hc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value,{style:{width:"100%"}}),null,16,["modelValue"])])}}}),[["__scopeId","data-v-18ca05b4"]]),Zc={class:"item-content"},_r=oe(r.defineComponent({name:"RadioItem",__name:"radio",props:{modelValue:{type:[Number,String,Boolean]},data:{}},setup(e){const t=e,n=r.inject("dictList"),o=r.useModel(t,"modelValue"),a=r.computed(()=>{const{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m,border:y,textColor:b,fill:h,type:f,initValue:g}=t.data;return{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m,border:y,textColor:b,fill:h,type:f,initValue:g}}),s=r.computed(()=>t.data.dictId?n.find(i=>i.id===t.data.dictId)?.children||[]:a.value.options&&a.value.options.length>0?a.value.options:[]);return(i,l)=>{const u=r.resolveComponent("el-radio"),p=r.resolveComponent("el-radio-group");return r.openBlock(),r.createElementBlock("div",Zc,[r.createVNode(p,r.mergeProps({modelValue:r.unref(o),"onUpdate:modelValue":l[0]||(l[0]=d=>r.isRef(o)?o.value=d:null)},a.value),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,d=>(r.openBlock(),r.createBlock(u,{key:d.value,value:d.value,label:d.label,disabled:d.disabled,border:a.value.border},null,8,["value","label","disabled","border"]))),128))]),_:1},16,["modelValue"])])}}}),[["__scopeId","data-v-f63495ba"]]),Jc={class:"fj-form-container"},Xe=oe(r.defineComponent({name:"FjForm",__name:"index",props:{data:{},config:{},draggable:{type:Boolean},dictList:{},labelWidth:{},span:{},edit:{type:Boolean}},emits:["change","remove"],setup(e,{expose:t,emit:n}){const o=n,a=e;r.provide("dictList",a.dictList);const s=r.ref(),i=r.useModel(a,"data"),l=r.useModel(a,"config"),u=r.shallowRef();r.watch(i,c=>{o("change",c)},{deep:!0}),r.onMounted(()=>{u.value=Ue(i.value)});function p(){return r.h(wc,{model:i.value,ref:s,style:"width: 100%"},{default:()=>r.h(dr,{id:"dragzone"},{default:()=>l.value.map(c=>d(c))})})}function d(c){return c.formType==="block"?m(c):y(c)}function m(c){return r.h(tr,{span:24},{default:()=>r.h("div",{class:"fj-block"},{default:()=>[r.h("div",{class:"block-title"},c.label),r.h(dr,{},{default:()=>c?.children?.length?c.children.map(x=>d(x)):null})]})})}function y(c){return r.h(tr,{xs:24,sm:24,md:c.span,lg:c.span,xl:12},{default:()=>r.h("div",{class:"fj-form-item"},{default:()=>[r.h(xc,{prop:c.key,rules:c.rules,label:c.label,style:"width: 100%"},{default:()=>b(c)}),a.edit?r.h("div",{class:"remove",onClick:()=>h(c)},{default:()=>null}):null]})})}function b(c){switch(c.formType){case"input":return r.h(gr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"select":return r.h(hr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"number":return r.h(yr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"switch":return r.h(br,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"date":return r.h(vr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"radio":return r.h(_r,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});default:return r.h("div",{},{default:()=>"invalid node"})}}function h(c){o("remove",c)}function f(){i.value=Ue(u.value)}function g(){return new Promise((c,x)=>{s.value?s.value.validate((w,E)=>{w?c(i.value):x(E)}):x("表单ref不存在")})}return t({submit:g,reset:f}),(c,x)=>(r.openBlock(),r.createElementBlock("div",Jc,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p())))]))}}),[["__scopeId","data-v-103aecbc"]]),Xc=[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"},{label:"email",value:"email"},{label:"search",value:"search"},{label:"tel",value:"tel"},{label:"url",value:"url"}],Qc=[{label:"6",value:6},{label:"8",value:8},{label:"12",value:12},{label:"16",value:16},{label:"18",value:18},{label:"24",value:24}],eu=[{label:"input",value:"input"},{label:"select",value:"select"},{label:"number",value:"number"},{label:"switch",value:"switch"},{label:"date",value:"date"},{label:"radio",value:"radio"}],tu={formItemType:"input",key:"",label:"",dictCode:"",span:24,clearable:!0,disabled:!1,required:!1,min:0,step:1,precision:0,maxlength:64,minlength:0,inputType:"text"},nu=[{formType:"block",span:24,key:"root",label:"输入配置信息,点击添加生成表单",clearable:!0,disabled:!1,readonly:!1,children:[{formType:"select",span:24,key:"formItemType",label:"表单类型",clearable:!0,disabled:!1,readonly:!1,rules:{required:!0,message:"请输入formItemType",trigger:"change"},children:[],initValue:"",options:eu,multiple:!1,multipleLimit:1024,placeholder:"请选择formItemType"},{formType:"input",span:12,key:"key",label:"key",clearable:!0,disabled:!1,readonly:!1,rules:{required:!0,message:"请输入key",trigger:"change"},children:[],initValue:"",maxlength:64,minlength:0,showWordLimit:!1,placeholder:"请输入key"},{formType:"input",span:12,key:"label",label:"label",clearable:!0,disabled:!1,readonly:!1,rules:{required:!0,message:"请输入label",trigger:"change"},children:[],initValue:"",maxlength:64,minlength:0,showWordLimit:!1,placeholder:"请输入label"},{formType:"input",span:24,key:"dictCode",label:"字典码",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:"",maxlength:64,minlength:0,showWordLimit:!1,placeholder:"请输入dictCode",type:"text"},{formType:"radio",span:24,key:"span",label:"span",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:"",options:Qc,border:!0,type:"button",placeholder:"请选择span"},{formType:"switch",span:8,key:"clearable",label:"是否可清除",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:!1,loading:!1,activeValue:!0,inactiveValue:!1,placeholder:"请选择clearable"},{formType:"switch",span:8,key:"disabled",label:"是否禁用",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:!1,loading:!1,activeValue:!0,inactiveValue:!1,placeholder:"请选择disabled"},{formType:"switch",span:8,key:"required",label:"是否必填",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:!1,loading:!1,activeValue:!0,inactiveValue:!1,placeholder:"请选择required"},{formType:"number",span:8,key:"min",label:"最小值",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入min1"},{formType:"number",span:8,key:"step",label:"step",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入step"},{formType:"number",span:8,key:"precision",label:"数字精度",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入precision"},{formType:"number",span:8,key:"maxlength",label:"input最大长度",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:64,min:0,step:1,precision:0,controls:!0,placeholder:"请输入maxlength"},{formType:"number",span:8,key:"minlength",label:"input最小长度",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入minlength"},{formType:"select",span:8,key:"inputType",label:"input类型",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:"",options:Xc,multiple:!1,multipleLimit:1024,placeholder:"请选择inputType"}],initValue:""}];class me{formType="block";span;key;label;clearable;disabled;required;readonly;dictId;rules;children;initValue;constructor(t){this.span=t.span||24,this.key=t.key,this.label=t.label||"",this.clearable=t.clearable||!0,this.disabled=t.disabled||!1,this.readonly=t.readonly||!1,this.children=t.children||[],this.initValue=t.initValue||"",t.required&&!t.rules&&(this.rules={required:!0,message:`请输入${t.key}`,trigger:"change"}),t.rules&&(this.rules=t.rules)}}class wr extends me{children=[];initValue="";constructor(t){super(t)}}class ru extends me{formType="input";maxlength;minlength;showWordLimit;placeholder="请输入";type;initValue="";constructor(t){super(t),this.maxlength=t.maxlength||1024,this.minlength=t.minlength||0,this.showWordLimit=t.showWordLimit||!1,this.type=t.type||"text",this.placeholder=`请输入${t.key}`}}class ou extends me{formType="number";min;max;step;precision;controls=!1;placeholder="请输入";initValue=0;constructor(t){super(t),this.min=t.min||0,this.max=t.max,this.step=t.step||1,this.precision=t.precision||0,this.controls=t.controls||!0,this.placeholder=`请输入${t.key}`}}class au extends me{formType="select";options;multiple;multipleLimit;placeholder="请选择";initValue="";constructor(t){super(t),this.options=t.options||[],this.multiple=t.multiple||!1,this.multipleLimit=t.multipleLimit||1024,this.placeholder=`请选择${t.key}`}}class iu extends me{formType="switch";loading;width;activeText;inactiveText;activeValue;inactiveValue;initValue=!1;constructor(t){super(t),this.loading=t.loading||!1,this.width=t.width,this.activeText=t.activeText,this.inactiveText=t.inactiveText,this.activeValue=t.activeValue||!0,this.inactiveValue=t.inactiveValue||!1,this.placeholder=`请选择${t.key}`}}class su extends me{formType="date";type="datetime";defaultValue;defaultTime;valueFormat="YYYY-MM-DDTHH:mm:ss[Z]";dateFormat="YYYY-MM-DD";timeFormat="HH:mm:ss";initValue=new Date;constructor(t){super(t),this.type=t.type||"datetime",this.defaultValue=t.defaultValue,this.defaultTime=t.defaultTime,this.valueFormat=t.valueFormat||"YYYY-MM-DDTHH:mm:ss[Z]",this.dateFormat=t.dateFormat||"YYYY-MM-DD",this.timeFormat=t.timeFormat||"HH:mm:ss",this.placeholder=`请选择${t.key}`}}class lu extends me{formType="radio";options=[];border=!0;textColor;fill;type;initValue="";constructor(t){super(t),this.options=t.options||[],this.border=t.border||!0,this.textColor=t.textColor,this.fill=t.fill,this.type=t.type||"button",this.placeholder=`请选择${t.key}`}}const cu={class:"edit-container"},uu={class:"aside"},du={class:"form"},fu={class:"btn-content"},pu={class:"section"},mu={class:"main"},gu={class:"footer"},xr=oe(r.defineComponent({name:"EditComp",__name:"index",setup(e){const t=r.ref(),n=r.shallowRef([new wr({key:"root",label:"生成结果,输入内容设置默认值"})]),o=r.shallowRef({}),a=r.shallowRef(tu),s=r.shallowRef(nu),i={input:{comp:gr,ins:ru},select:{comp:hr,ins:au},number:{comp:yr,ins:ou},switch:{comp:br,ins:iu},date:{comp:vr,ins:su},radio:{comp:_r,ins:lu}};function l(){n.value=[new wr({key:"root",label:"生成结果,输入内容设置默认值"})],o.value={}}function u(){t.value?.submit().then(b=>{if(Object.keys(o.value).includes(b.key)){zc.error(`重复key: ${b.key}`);return}else{const h=i[b.formItemType].ins;if(h){const f=new h(b);o.value={...o.value,[b.key]:f.initValue},n.value.forEach(g=>{g.children&&b.key&&g.children.push(f)})}}})}function p(b){console.log(b)}function d(b){console.log(b);const h=Ue(n.value),f=Ue(o.value);if(b?.key&&h?.[0]?.children){const g=h[0].children.filter(c=>c.key!=b.key)||[];console.log(g),h[0].children=g,n.value=h,delete f[b.key],o.value=f}}function m(){console.log("%c 配置信息 CONFIG ","color: lime"),console.log(JSON.stringify(n.value,null," ")),console.log("%c 配置信息 DATA :","color: orange"),console.log(JSON.stringify(o.value,null," "))}function y(){t.value?.reset()}return(b,h)=>{const f=r.resolveComponent("el-button"),g=r.resolveComponent("el-button-group");return r.openBlock(),r.createElementBlock("div",cu,[r.createElementVNode("div",uu,[r.createElementVNode("div",du,[r.createVNode(r.unref(Xe),{config:n.value,"onUpdate:config":h[0]||(h[0]=c=>n.value=c),data:o.value,"onUpdate:data":h[1]||(h[1]=c=>o.value=c),edit:!0,onChange:p,onRemove:d},null,8,["config","data"])]),r.createElementVNode("div",fu,[r.createVNode(g,null,{default:r.withCtx(()=>[r.createVNode(f,{type:"danger",onClick:l},{default:r.withCtx(()=>[...h[4]||(h[4]=[r.createTextVNode("清空",-1)])]),_:1})]),_:1})])]),r.createElementVNode("div",pu,[r.createElementVNode("div",mu,[r.createVNode(r.unref(Xe),{ref_key:"formRef",ref:t,config:s.value,"onUpdate:config":h[2]||(h[2]=c=>s.value=c),data:a.value,"onUpdate:data":h[3]||(h[3]=c=>a.value=c)},null,8,["config","data"])]),r.createElementVNode("div",gu,[r.createVNode(g,null,{default:r.withCtx(()=>[r.createVNode(f,{type:"warning",onClick:u},{default:r.withCtx(()=>[...h[5]||(h[5]=[r.createTextVNode("添加",-1)])]),_:1}),r.createVNode(f,{type:"warning",onClick:m},{default:r.withCtx(()=>[...h[6]||(h[6]=[r.createTextVNode("打印",-1)])]),_:1}),r.createVNode(f,{type:"warning",onClick:y},{default:r.withCtx(()=>[...h[7]||(h[7]=[r.createTextVNode("重置",-1)])]),_:1})]),_:1})])])])}}}),[["__scopeId","data-v-e67c9263"]]);function Cr(e){e.component("FjForm",Xe),e.component("EditForm",xr)}I.EditForm=xr,I.FjForm=Xe,I.default=Cr,I.install=Cr,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
17
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+a+"$"),u=function(E){return E&&E.exact?s:new RegExp("(?:"+t(E)+n+t(E)+")|(?:"+t(E)+a+t(E)+")","g")};u.v4=function(w){return w&&w.exact?i:new RegExp(""+t(w)+n+t(w),"g")},u.v6=function(w){return w&&w.exact?l:new RegExp(""+t(w)+a+t(w),"g")};var p="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,y=u.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",f="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",c='(?:[/?#][^\\s"]*)?',x="(?:"+p+"|www\\.)"+d+"(?:localhost|"+m+"|"+y+"|"+b+h+f+")"+g+c;return Je=new RegExp("(?:^"+x+"$)","i"),Je}),lr={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Be={integer:function(t){return Be.number(t)&&parseInt(t,10)===t},float:function(t){return Be.number(t)&&!Be.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Be.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(lr.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Zl())},hex:function(t){return typeof t=="string"&&!!t.match(lr.hex)}},Jl=function(t,n,o,a,s){if(t.required&&n===void 0){sr(t,n,o,a,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Be[l](n)||a.push(z(s.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&a.push(z(s.messages.types[l],t.fullField,t.type))},Xl=function(t,n,o,a,s){var i=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,m=null,y=typeof n=="number",b=typeof n=="string",h=Array.isArray(n);if(y?m="number":b?m="string":h&&(m="array"),!m)return!1;h&&(d=n.length),b&&(d=n.replace(p,"_").length),i?d!==t.len&&a.push(z(s.messages[m].len,t.fullField,t.len)):l&&!u&&d<t.min?a.push(z(s.messages[m].min,t.fullField,t.min)):u&&!l&&d>t.max?a.push(z(s.messages[m].max,t.fullField,t.max)):l&&u&&(d<t.min||d>t.max)&&a.push(z(s.messages[m].range,t.fullField,t.min,t.max))},xe="enum",Ql=function(t,n,o,a,s){t[xe]=Array.isArray(t[xe])?t[xe]:[],t[xe].indexOf(n)===-1&&a.push(z(s.messages[xe],t.fullField,t[xe].join(", ")))},ec=function(t,n,o,a,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(z(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push(z(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},$={required:sr,whitespace:Hl,type:Jl,range:Xl,enum:Ql,pattern:ec},tc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n,"string")&&!t.required)return o();$.required(t,n,a,i,s,"string"),A(n,"string")||($.type(t,n,a,i,s),$.range(t,n,a,i,s),$.pattern(t,n,a,i,s),t.whitespace===!0&&$.whitespace(t,n,a,i,s))}o(i)},nc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$.type(t,n,a,i,s)}o(i)},rc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},oc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$.type(t,n,a,i,s)}o(i)},ac=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),A(n)||$.type(t,n,a,i,s)}o(i)},ic=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},sc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},lc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return o();$.required(t,n,a,i,s,"array"),n!=null&&($.type(t,n,a,i,s),$.range(t,n,a,i,s))}o(i)},cc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$.type(t,n,a,i,s)}o(i)},uc="enum",dc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s),n!==void 0&&$[uc](t,n,a,i,s)}o(i)},fc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n,"string")&&!t.required)return o();$.required(t,n,a,i,s),A(n,"string")||$.pattern(t,n,a,i,s)}o(i)},pc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n,"date")&&!t.required)return o();if($.required(t,n,a,i,s),!A(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),$.type(t,u,a,i,s),u&&$.range(t,u.getTime(),a,i,s)}}o(i)},mc=function(t,n,o,a,s){var i=[],l=Array.isArray(n)?"array":typeof n;$.required(t,n,a,i,s,l),o(i)},Ft=function(t,n,o,a,s){var i=t.type,l=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(A(n,i)&&!t.required)return o();$.required(t,n,a,l,s,i),A(n,i)||$.type(t,n,a,l,s)}o(l)},gc=function(t,n,o,a,s){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(A(n)&&!t.required)return o();$.required(t,n,a,i,s)}o(i)},Me={string:tc,method:nc,number:rc,boolean:oc,regexp:ac,integer:ic,float:sc,array:lc,object:cc,enum:dc,pattern:fc,date:pc,url:Ft,hex:Ft,email:Ft,required:mc,any:gc};function It(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Nt=It(),Le=(function(){function e(n){this.rules=null,this._messages=Nt,this.define(n)}var t=e.prototype;return t.define=function(o){var a=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(s){var i=o[s];a.rules[s]=Array.isArray(i)?i:[i]})},t.messages=function(o){return o&&(this._messages=ir(It(),o)),this._messages},t.validate=function(o,a,s){var i=this;a===void 0&&(a={}),s===void 0&&(s=function(){});var l=o,u=a,p=s;if(typeof u=="function"&&(p=u,u={}),!this.rules||Object.keys(this.rules).length===0)return p&&p(null,l),Promise.resolve(l);function d(f){var g=[],c={};function x(E){if(Array.isArray(E)){var N;g=(N=g).concat.apply(N,E)}else g.push(E)}for(var w=0;w<f.length;w++)x(f[w]);g.length?(c=jt(g),p(g,c)):p(null,l)}if(u.messages){var m=this.messages();m===Nt&&(m=It()),ir(m,u.messages),u.messages=m}else u.messages=this.messages();var y={},b=u.keys||Object.keys(this.rules);b.forEach(function(f){var g=i.rules[f],c=l[f];g.forEach(function(x){var w=x;typeof w.transform=="function"&&(l===o&&(l=fe({},l)),c=l[f]=w.transform(c)),typeof w=="function"?w={validator:w}:w=fe({},w),w.validator=i.getValidationMethod(w),w.validator&&(w.field=f,w.fullField=w.fullField||f,w.type=i.getType(w),y[f]=y[f]||[],y[f].push({rule:w,value:c,source:l,field:f}))})});var h={};return Kl(y,u,function(f,g){var c=f.rule,x=(c.type==="object"||c.type==="array")&&(typeof c.fields=="object"||typeof c.defaultField=="object");x=x&&(c.required||!c.required&&f.value),c.field=f.field;function w(v,C){return fe({},C,{fullField:c.fullField+"."+v,fullFields:c.fullFields?[].concat(c.fullFields,[v]):[v]})}function E(v){v===void 0&&(v=[]);var C=Array.isArray(v)?v:[v];!u.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&c.message!==void 0&&(C=[].concat(c.message));var S=C.map(ar(c,l));if(u.first&&S.length)return h[c.field]=1,g(S);if(!x)g(S);else{if(c.required&&!f.value)return c.message!==void 0?S=[].concat(c.message).map(ar(c,l)):u.error&&(S=[u.error(c,z(u.messages.required,c.field))]),g(S);var P={};c.defaultField&&Object.keys(f.value).map(function(k){P[k]=c.defaultField}),P=fe({},P,f.rule.fields);var U={};Object.keys(P).forEach(function(k){var T=P[k],X=Array.isArray(T)?T:[T];U[k]=X.map(w.bind(null,k))});var D=new e(U);D.messages(u.messages),f.rule.options&&(f.rule.options.messages=u.messages,f.rule.options.error=u.error),D.validate(f.value,f.rule.options||u,function(k){var T=[];S&&S.length&&T.push.apply(T,S),k&&k.length&&T.push.apply(T,k),g(T.length?T:null)})}}var N;if(c.asyncValidator)N=c.asyncValidator(c,f.value,E,f.source,u);else if(c.validator){try{N=c.validator(c,f.value,E,f.source,u)}catch(v){console.error?.(v),u.suppressValidatorError||setTimeout(function(){throw v},0),E(v.message)}N===!0?E():N===!1?E(typeof c.message=="function"?c.message(c.fullField||c.field):c.message||(c.fullField||c.field)+" fails"):N instanceof Array?E(N):N instanceof Error&&E(N.message)}N&&N.then&&N.then(function(){return E()},function(v){return E(v)})},function(f){d(f)},l)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!Me.hasOwnProperty(o.type))throw new Error(z("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var a=Object.keys(o),s=a.indexOf("message");return s!==-1&&a.splice(s,1),a.length===1&&a[0]==="required"?Me.required:Me[this.getType(o)]||void 0},e})();Le.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Me[t]=n},Le.warning=nr,Le.messages=Nt,Le.validators=Me;const hc=["","error","validating","success"],yc=G({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:F([String,Array])},required:{type:Boolean,default:void 0},rules:{type:F([Object,Array])},error:String,validateStatus:{type:String,values:hc},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:$t}}),cr="ElLabelWrap";var bc=r.defineComponent({name:cr,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=r.inject(Ge,void 0),o=r.inject(Ye);o||qs(cr,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Q("form"),s=r.ref(),i=r.ref(0),l=()=>{var d;if((d=s.value)!=null&&d.firstElementChild){const m=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(m))}else return 0},u=(d="update")=>{r.nextTick(()=>{t.default&&e.isAutoWidth&&(d==="update"?i.value=l():d==="remove"&&n?.deregisterLabelWidth(i.value))})},p=()=>u("update");return r.onMounted(()=>{p()}),r.onBeforeUnmount(()=>{u("remove")}),r.onUpdated(()=>p()),r.watch(i,(d,m)=>{e.updateAll&&n?.registerLabelWidth(d,m)}),kn(r.computed(()=>{var d,m;return(m=(d=s.value)==null?void 0:d.firstElementChild)!=null?m:null}),p),()=>{var d,m;if(!t)return null;const{isAutoWidth:y}=e;if(y){const b=n?.autoLabelWidth,h=o?.hasLabel,f={};if(h&&b&&b!=="auto"){const g=Math.max(0,Number.parseInt(b,10)-i.value),x=(o.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(f[x]=`${g}px`)}return r.createVNode("div",{ref:s,class:[a.be("item","label-wrap")],style:f},[(d=t.default)==null?void 0:d.call(t)])}else return r.createVNode(r.Fragment,{ref:s},[(m=t.default)==null?void 0:m.call(t)])}}});const vc=["role","aria-labelledby"],_c=r.defineComponent({name:"ElFormItem",__name:"form-item",props:yc,setup(e,{expose:t}){const n=e,o=r.useSlots(),a=r.inject(Ge,void 0),s=r.inject(Ye,void 0),i=Qn(void 0,{formItem:!1}),l=Q("form-item"),u=_l().value,p=r.ref([]),d=r.ref(""),m=As(d,100),y=r.ref(""),b=r.ref();let h,f=!1;const g=r.computed(()=>n.labelPosition||a?.labelPosition),c=r.computed(()=>{var _;return g.value==="top"?{}:{width:Ae((_=n.labelWidth)!=null?_:a?.labelWidth)}}),x=r.computed(()=>{var _;if(g.value==="top"||a?.inline)return{};if(!n.label&&!n.labelWidth&&U)return{};const O=Ae((_=n.labelWidth)!=null?_:a?.labelWidth);return!n.label&&!o.label?{marginLeft:O}:{}}),w=r.computed(()=>[l.b(),l.m(i.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",Pt.value||n.required),l.is("no-asterisk",a?.hideRequiredAsterisk),a?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:a?.statusIcon,[l.m(`label-${g.value}`)]:g.value}]),E=r.computed(()=>Ie(n.inlineMessage)?n.inlineMessage:a?.inlineMessage||!1),N=r.computed(()=>[l.e("error"),{[l.em("error","inline")]:E.value}]),v=r.computed(()=>n.prop?Ee(n.prop)?n.prop.join("."):n.prop:""),C=r.computed(()=>!!(n.label||o.label)),S=r.computed(()=>{var _;return(_=n.for)!=null?_:p.value.length===1?p.value[0]:void 0}),P=r.computed(()=>!S.value&&C.value),U=!!s,D=r.computed(()=>{const _=a?.model;if(!(!_||!n.prop))return We(_,n.prop).value}),k=r.computed(()=>{const{required:_}=n,O=[];n.rules&&O.push(...gt(n.rules));const M=a?.rules;if(M&&n.prop){const B=We(M,n.prop).value;B&&O.push(...gt(B))}if(_!==void 0){const B=O.map((Y,$e)=>[Y,$e]).filter(([Y])=>"required"in Y);if(B.length>0)for(const[Y,$e]of B)Y.required!==_&&(O[$e]={...Y,required:_});else O.push({required:_})}return O}),T=r.computed(()=>k.value.length>0),X=_=>k.value.filter(M=>!M.trigger||!_?!0:Ee(M.trigger)?M.trigger.includes(_):M.trigger===_).map(({trigger:M,...B})=>B),Pt=r.computed(()=>k.value.some(_=>_.required)),hu=r.computed(()=>{var _;return m.value==="error"&&n.showMessage&&((_=a?.showMessage)!=null?_:!0)}),Tr=r.computed(()=>`${n.label||""}${a?.labelSuffix||""}`),Te=_=>{d.value=_},yu=_=>{var O,M;const{errors:B,fields:Y}=_;(!B||!Y)&&console.error(_),Te("error"),y.value=B?(M=(O=B?.[0])==null?void 0:O.message)!=null?M:`${n.prop} is required`:"",a?.emit("validate",n.prop,!1,y.value)},bu=()=>{Te("success"),a?.emit("validate",n.prop,!0,"")},vu=async _=>{const O=v.value;return new Le({[O]:_}).validate({[O]:D.value},{firstFields:!0}).then(()=>(bu(),!0)).catch(B=>(yu(B),Promise.reject(B)))},$r=async(_,O)=>{if(f||!n.prop)return!1;const M=ge(O);if(!T.value)return O?.(!1),!1;const B=X(_);return B.length===0?(O?.(!0),!0):(Te("validating"),vu(B).then(()=>(O?.(!0),!0)).catch(Y=>{const{fields:$e}=Y;return O?.(!1,$e),M?!1:Promise.reject($e)}))},At=()=>{Te(""),y.value="",f=!1},Er=async()=>{const _=a?.model;if(!_||!n.prop)return;const O=We(_,n.prop);f=!0,O.value=wt(h),await r.nextTick(),At(),f=!1},_u=_=>{p.value.includes(_)||p.value.push(_)},wu=_=>{p.value=p.value.filter(O=>O!==_)},Sr=_=>{h=wt(_)};r.watch(()=>n.error,_=>{y.value=_||"",Te(_?"error":"")},{immediate:!0}),r.watch(()=>n.validateStatus,_=>Te(_||""));const kt=r.reactive({...r.toRefs(n),$el:b,size:i,validateMessage:y,validateState:d,labelId:u,inputIds:p,isGroup:P,hasLabel:C,fieldValue:D,addInputId:_u,removeInputId:wu,resetField:Er,clearValidate:At,validate:$r,propString:v,setInitialValue:Sr});return r.provide(Ye,kt),r.onMounted(()=>{n.prop&&(a?.addField(kt),h=wt(D.value))}),r.onBeforeUnmount(()=>{a?.removeField(kt)}),t({size:i,validateMessage:y,validateState:d,validate:$r,clearValidate:At,resetField:Er,setInitialValue:Sr}),(_,O)=>{var M;return r.openBlock(),r.createElementBlock("div",{ref_key:"formItemRef",ref:b,class:r.normalizeClass(w.value),role:P.value?"group":void 0,"aria-labelledby":P.value?r.unref(u):void 0},[r.createVNode(r.unref(bc),{"is-auto-width":c.value.width==="auto","update-all":((M=r.unref(a))==null?void 0:M.labelWidth)==="auto"},{default:r.withCtx(()=>[_.label||_.$slots.label?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(S.value?"label":"div"),{key:0,id:r.unref(u),for:S.value,class:r.normalizeClass(r.unref(l).e("label")),style:r.normalizeStyle(c.value)},{default:r.withCtx(()=>[r.renderSlot(_.$slots,"label",{label:Tr.value},()=>[r.createTextVNode(r.toDisplayString(Tr.value),1)])]),_:3},8,["id","for","class","style"])):r.createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),r.createElementVNode("div",{class:r.normalizeClass(r.unref(l).e("content")),style:r.normalizeStyle(x.value)},[r.renderSlot(_.$slots,"default"),r.createVNode(r.TransitionGroup,{name:`${r.unref(l).namespace.value}-zoom-in-top`},{default:r.withCtx(()=>[hu.value?r.renderSlot(_.$slots,"error",{key:0,error:y.value},()=>[r.createElementVNode("div",{class:r.normalizeClass(N.value)},r.toDisplayString(y.value),3)]):r.createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,vc)}}});var ur=de(_c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const wc=Pe(Ml,{FormItem:ur}),xc=tl(ur),Cc=G({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),Tc=r.defineComponent({name:"ElRow",__name:"row",props:Cc,setup(e){const t=e,n=Q("row"),o=r.computed(()=>t.gutter);r.provide(er,{gutter:o});const a=r.computed(()=>{const i={};return t.gutter&&(i.marginRight=i.marginLeft=`-${t.gutter/2}px`),i}),s=r.computed(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(i,l)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.tag),{class:r.normalizeClass(s.value),style:r.normalizeStyle(a.value)},{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["class","style"]))}});var $c=de(Tc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const dr=Pe($c),fr=["primary","success","info","warning","error"],pr=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Ce="top",q=_e({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:ue?document.body:void 0}),Ec=G({customClass:{type:String,default:q.customClass},dangerouslyUseHTMLString:{type:Boolean,default:q.dangerouslyUseHTMLString},duration:{type:Number,default:q.duration},icon:{type:gl,default:q.icon},id:{type:String,default:q.id},message:{type:F([String,Object,Function]),default:q.message},onClose:{type:F(Function),default:q.onClose},showClose:{type:Boolean,default:q.showClose},type:{type:String,values:fr,default:q.type},plain:{type:Boolean,default:q.plain},offset:{type:Number,default:q.offset},placement:{type:String,values:pr,default:q.placement},zIndex:{type:Number,default:q.zIndex},grouping:{type:Boolean,default:q.grouping},repeatNum:{type:Number,default:q.repeatNum}}),Sc={destroy:()=>!0},W=r.shallowReactive({}),Oc=e=>(W[e]||(W[e]=r.shallowReactive([])),W[e]),Vc=(e,t)=>{const n=W[t]||[],o=n.findIndex(i=>i.id===e),a=n[o];let s;return o>0&&(s=n[o-1]),{current:a,prev:s}},jc=(e,t)=>{const{prev:n}=Vc(e,t);return n?n.vm.exposed.bottom.value:0},Fc=(e,t,n)=>(W[n]||[]).findIndex(s=>s.id===e)>0?16:t,Ic=["id"],Nc=["innerHTML"],Pc=r.defineComponent({name:"ElMessage",__name:"message",props:Ec,emits:Sc,setup(e,{expose:t,emit:n}){const{Close:o}=hl,a=e,s=n,i=r.ref(!1),{ns:l,zIndex:u}=Xs("message"),{currentZIndex:p,nextZIndex:d}=u,m=r.ref(),y=r.ref(!1),b=r.ref(0);let h;const f=r.computed(()=>a.type?a.type==="error"?"danger":a.type:"info"),g=r.computed(()=>{const T=a.type;return{[l.bm("icon",T)]:T&&Xn[T]}}),c=r.computed(()=>a.icon||Xn[a.type]||""),x=r.computed(()=>a.placement||Ce),w=r.computed(()=>jc(a.id,x.value)),E=r.computed(()=>Fc(a.id,a.offset,x.value)+w.value),N=r.computed(()=>b.value+E.value),v=r.computed(()=>x.value.includes("left")?l.is("left"):x.value.includes("right")?l.is("right"):l.is("center")),C=r.computed(()=>x.value.startsWith("top")?"top":"bottom"),S=r.computed(()=>({[C.value]:`${E.value}px`,zIndex:p.value}));function P(){a.duration!==0&&({stop:h}=ks(()=>{D()},a.duration))}function U(){h?.()}function D(){y.value=!1,r.nextTick(()=>{var T;i.value||((T=a.onClose)==null||T.call(a),s("destroy"))})}function k(T){xl(T)===St.esc&&D()}return r.onMounted(()=>{P(),d(),y.value=!0}),r.watch(()=>a.repeatNum,()=>{U(),P()}),Bs(document,"keydown",k),kn(m,()=>{b.value=m.value.getBoundingClientRect().height}),t({visible:y,bottom:N,close:D}),(T,X)=>(r.openBlock(),r.createBlock(r.Transition,{name:r.unref(l).b("fade"),onBeforeEnter:X[0]||(X[0]=Pt=>i.value=!0),onBeforeLeave:T.onClose,onAfterLeave:X[1]||(X[1]=Pt=>T.$emit("destroy")),persisted:""},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{id:T.id,ref_key:"messageRef",ref:m,class:r.normalizeClass([r.unref(l).b(),{[r.unref(l).m(T.type)]:T.type},r.unref(l).is("closable",T.showClose),r.unref(l).is("plain",T.plain),r.unref(l).is("bottom",C.value==="bottom"),v.value,T.customClass]),style:r.normalizeStyle(S.value),role:"alert",onMouseenter:U,onMouseleave:P},[T.repeatNum>1?(r.openBlock(),r.createBlock(r.unref(Sl),{key:0,value:T.repeatNum,type:f.value,class:r.normalizeClass(r.unref(l).e("badge"))},null,8,["value","type","class"])):r.createCommentVNode("v-if",!0),c.value?(r.openBlock(),r.createBlock(r.unref(Zn),{key:1,class:r.normalizeClass([r.unref(l).e("icon"),g.value])},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.value)))]),_:1},8,["class"])):r.createCommentVNode("v-if",!0),r.renderSlot(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),r.createElementVNode("p",{class:r.normalizeClass(r.unref(l).e("content")),innerHTML:T.message},null,10,Nc)],2112)):(r.openBlock(),r.createElementBlock("p",{key:0,class:r.normalizeClass(r.unref(l).e("content"))},r.toDisplayString(T.message),3))]),T.showClose?(r.openBlock(),r.createBlock(r.unref(Zn),{key:2,class:r.normalizeClass(r.unref(l).e("closeBtn")),onClick:r.withModifiers(D,["stop"])},{default:r.withCtx(()=>[r.createVNode(r.unref(o))]),_:1},8,["class"])):r.createCommentVNode("v-if",!0)],46,Ic),[[r.vShow,y.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Ac=de(Pc,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let kc=1;const Bc=e=>{if(!e.appendTo)e.appendTo=document.body;else if(ee(e.appendTo)){let n=document.querySelector(e.appendTo);Ss(n)||(R("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),n=document.body),e.appendTo=n}},Mc=e=>{!e.placement&&ee(L.placement)&&L.placement&&(e.placement=L.placement),e.placement||(e.placement=Ce),pr.includes(e.placement)||(R("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${Ce}'.`),e.placement=Ce)},mr=e=>{const t=!e||ee(e)||r.isVNode(e)||ge(e)?{message:e}:e,n={...q,...t};return Bc(n),Mc(n),Ie(L.grouping)&&!n.grouping&&(n.grouping=L.grouping),J(L.duration)&&n.duration===3e3&&(n.duration=L.duration),J(L.offset)&&n.offset===16&&(n.offset=L.offset),Ie(L.showClose)&&!n.showClose&&(n.showClose=L.showClose),Ie(L.plain)&&!n.plain&&(n.plain=L.plain),n},Lc=e=>{const t=e.props.placement||Ce,n=W[t],o=n.indexOf(e);if(o===-1)return;n.splice(o,1);const{handler:a}=e;a.close()},qc=({appendTo:e,...t},n)=>{const o=`message_${kc++}`,a=t.onClose,s=document.createElement("div"),i={...t,id:o,onClose:()=>{a?.(),Lc(d)},onDestroy:()=>{r.render(null,s)}},l=r.createVNode(Ac,i,ge(i.message)||r.isVNode(i.message)?{default:ge(i.message)?i.message:()=>i.message}:null);l.appContext=n||pe._context,r.render(l,s),e.appendChild(s.firstElementChild);const u=l.component,d={id:o,vnode:l,vm:u,handler:{close:()=>{u.exposed.close()}},props:l.component.props};return d},pe=(e={},t)=>{if(!ue)return{close:()=>{}};const n=mr(e),o=Oc(n.placement||Ce);if(n.grouping&&o.length){const s=o.find(({vnode:i})=>{var l;return((l=i.props)==null?void 0:l.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}if(J(L.max)&&o.length>=L.max)return{close:()=>{}};const a=qc(n,t);return o.push(a),a.handler};fr.forEach(e=>{pe[e]=(t={},n)=>{const o=mr(t);return pe({...o,type:e},n)}});function Dc(e){for(const t in W)if(Qe(W,t)){const n=[...W[t]];for(const o of n)(!e||e===o.props.type)&&o.handler.close()}}function Rc(e){if(!W[e])return;[...W[e]].forEach(n=>n.handler.close())}pe.closeAll=Dc,pe.closeAllByPlacement=Rc,pe._context=null;const zc=el(pe,"$message"),Uc={class:"item-content"},Wc=r.defineComponent({name:"InputItem",__name:"input",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,maxlength:p,minlength:d,showWordLimit:m,type:y,initValue:b}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,maxlength:p,minlength:d,showWordLimit:m,type:y,initValue:b}});return(a,s)=>{const i=r.resolveComponent("el-input");return r.openBlock(),r.createElementBlock("div",Uc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value),null,16,["modelValue"])])}}}),oe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n},gr=oe(Wc,[["__scopeId","data-v-a68b4020"]]),Kc={class:"item-content"},hr=oe(r.defineComponent({name:"SelectItem",__name:"select",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.inject("dictList"),o=r.useModel(t,"modelValue"),a=r.computed(()=>{const{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m=[],multiple:y,multipleLimit:b,initValue:h}=t.data;return{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m,multiple:y,multipleLimit:b,initValue:h}}),s=r.computed(()=>t.data.dictId?n.map(i=>(i.value=i.id,i))||[]:a.value.options&&a.value.options.length>0?a.value.options:[]);return(i,l)=>{const u=r.resolveComponent("el-option"),p=r.resolveComponent("el-select");return r.openBlock(),r.createElementBlock("div",Kc,[r.createVNode(p,r.mergeProps({modelValue:r.unref(o),"onUpdate:modelValue":l[0]||(l[0]=d=>r.isRef(o)?o.value=d:null)},a.value),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,d=>(r.openBlock(),r.createBlock(u,{key:d.value,label:d.label,value:d.value,disabled:d.disabled},null,8,["label","value","disabled"]))),128))]),_:1},16,["modelValue"])])}}}),[["__scopeId","data-v-5dd61519"]]),Gc={class:"item-content"},yr=oe(r.defineComponent({name:"NumberItem",__name:"number",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,min:p,max:d,step:m,precision:y,controls:b,initValue:h}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,min:p,max:d,step:m,precision:y,controls:b,initValue:h}});return(a,s)=>{const i=r.resolveComponent("el-input-number");return r.openBlock(),r.createElementBlock("div",Gc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value,{style:{width:"100%"}}),null,16,["modelValue"])])}}}),[["__scopeId","data-v-57dac883"]]),Yc={class:"item-content"},br=oe(r.defineComponent({name:"SwitchItem",__name:"switch",props:{modelValue:{type:[Number,String,Boolean]},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,loading:p,width:d,activeText:m,inactiveText:y,activeValue:b,inactiveValue:h,initValue:f}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,loading:p,width:d,activeText:m,inactiveText:y,activeValue:b,inactiveValue:h,initValue:f}});return(a,s)=>{const i=r.resolveComponent("el-switch");return r.openBlock(),r.createElementBlock("div",Yc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value),null,16,["modelValue"])])}}}),[["__scopeId","data-v-1dbe63eb"]]),Hc={class:"item-content"},vr=oe(r.defineComponent({name:"DateItem",__name:"date",props:{modelValue:{},data:{}},setup(e){const t=e,n=r.useModel(t,"modelValue"),o=r.computed(()=>{const{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,type:p,defaultValue:d,defaultTime:m,dateFormat:y,timeFormat:b,valueFormat:h="YYYY-MM-DDTHH:mm:ss[Z]",initValue:f}=t.data;return{clearable:a,disabled:s,required:i,readonly:l,placeholder:u,type:p,defaultValue:d,defaultTime:m,dateFormat:y,timeFormat:b,valueFormat:h,initValue:f}});return(a,s)=>{const i=r.resolveComponent("el-date-picker");return r.openBlock(),r.createElementBlock("div",Hc,[r.createVNode(i,r.mergeProps({modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null)},o.value,{style:{width:"100%"}}),null,16,["modelValue"])])}}}),[["__scopeId","data-v-18ca05b4"]]),Zc={class:"item-content"},_r=oe(r.defineComponent({name:"RadioItem",__name:"radio",props:{modelValue:{type:[Number,String,Boolean]},data:{}},setup(e){const t=e,n=r.inject("dictList"),o=r.useModel(t,"modelValue"),a=r.computed(()=>{const{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m,border:y,textColor:b,fill:h,type:f,initValue:g}=t.data;return{clearable:i,disabled:l,required:u,readonly:p,placeholder:d,options:m,border:y,textColor:b,fill:h,type:f,initValue:g}}),s=r.computed(()=>t.data.dictId?t.data.dictId==="all"?n.map(i=>(i.value=i.id,i))||[]:n.find(i=>i.id===t.data.dictId)?.children||[]:a.value.options&&a.value.options.length>0?a.value.options:[]);return(i,l)=>{const u=r.resolveComponent("el-radio"),p=r.resolveComponent("el-radio-group");return r.openBlock(),r.createElementBlock("div",Zc,[r.createVNode(p,r.mergeProps({modelValue:r.unref(o),"onUpdate:modelValue":l[0]||(l[0]=d=>r.isRef(o)?o.value=d:null)},a.value),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,d=>(r.openBlock(),r.createBlock(u,{key:d.value,value:d.value,label:d.label,disabled:d.disabled,border:a.value.border},null,8,["value","label","disabled","border"]))),128))]),_:1},16,["modelValue"])])}}}),[["__scopeId","data-v-43a4ec42"]]),Jc={class:"fj-form-container"},Xe=oe(r.defineComponent({name:"FjForm",__name:"index",props:{data:{},config:{},draggable:{type:Boolean},dictList:{},labelWidth:{},span:{},edit:{type:Boolean}},emits:["change","remove"],setup(e,{expose:t,emit:n}){const o=n,a=e;r.provide("dictList",a.dictList);const s=r.ref(),i=r.useModel(a,"data"),l=r.useModel(a,"config"),u=r.shallowRef();r.watch(i,c=>{o("change",c)},{deep:!0}),r.onMounted(()=>{u.value=Ue(i.value)});function p(){return r.h(wc,{model:i.value,ref:s,style:"width: 100%"},{default:()=>r.h(dr,{id:"dragzone"},{default:()=>l.value.map(c=>d(c))})})}function d(c){return c.formType==="block"?m(c):y(c)}function m(c){return r.h(tr,{span:24},{default:()=>r.h("div",{class:"fj-block"},{default:()=>[r.h("div",{class:"block-title"},c.label),r.h(dr,{},{default:()=>c?.children?.length?c.children.map(x=>d(x)):null})]})})}function y(c){return r.h(tr,{xs:24,sm:24,md:c.span,lg:c.span,xl:12},{default:()=>r.h("div",{class:"fj-form-item"},{default:()=>[r.h(xc,{prop:c.key,rules:c.rules,label:c.label,style:"width: 100%"},{default:()=>b(c)}),a.edit?r.h("div",{class:"remove",onClick:()=>h(c)},{default:()=>null}):null]})})}function b(c){switch(c.formType){case"input":return r.h(gr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"select":return r.h(hr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"number":return r.h(yr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"switch":return r.h(br,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"date":return r.h(vr,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});case"radio":return r.h(_r,{modelValue:i.value[c.key],"onUpdate:modelValue":x=>{i.value={...i.value,[c.key]:x}},data:c},{});default:return r.h("div",{},{default:()=>"invalid node"})}}function h(c){o("remove",c)}function f(){i.value=Ue(u.value)}function g(){return new Promise((c,x)=>{s.value?s.value.validate((w,E)=>{w?c(i.value):x(E)}):x("表单ref不存在")})}return t({submit:g,reset:f}),(c,x)=>(r.openBlock(),r.createElementBlock("div",Jc,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(p())))]))}}),[["__scopeId","data-v-103aecbc"]]),Xc=[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"},{label:"email",value:"email"},{label:"search",value:"search"},{label:"tel",value:"tel"},{label:"url",value:"url"}],Qc=[{label:"6",value:6},{label:"8",value:8},{label:"12",value:12},{label:"16",value:16},{label:"18",value:18},{label:"24",value:24}],eu=[{label:"input",value:"input"},{label:"select",value:"select"},{label:"number",value:"number"},{label:"switch",value:"switch"},{label:"date",value:"date"},{label:"radio",value:"radio"}],tu={formItemType:"input",key:"",label:"",dictCode:"",span:24,clearable:!0,disabled:!1,required:!1,min:0,step:1,precision:0,maxlength:64,minlength:0,inputType:"text"},nu=[{formType:"block",span:24,key:"root",label:"输入配置信息,点击添加生成表单",clearable:!0,disabled:!1,readonly:!1,children:[{formType:"select",span:24,key:"formItemType",label:"表单类型",clearable:!0,disabled:!1,readonly:!1,rules:{required:!0,message:"请输入formItemType",trigger:"change"},children:[],initValue:"",options:eu,multiple:!1,multipleLimit:1024,placeholder:"请选择formItemType"},{formType:"input",span:12,key:"key",label:"key",clearable:!0,disabled:!1,readonly:!1,rules:{required:!0,message:"请输入key",trigger:"change"},children:[],initValue:"",maxlength:64,minlength:0,showWordLimit:!1,placeholder:"请输入key"},{formType:"input",span:12,key:"label",label:"label",clearable:!0,disabled:!1,readonly:!1,rules:{required:!0,message:"请输入label",trigger:"change"},children:[],initValue:"",maxlength:64,minlength:0,showWordLimit:!1,placeholder:"请输入label"},{formType:"input",span:24,key:"dictCode",label:"字典码",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:"",maxlength:64,minlength:0,showWordLimit:!1,placeholder:"请输入dictCode",type:"text"},{formType:"radio",span:24,key:"span",label:"span",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:"",options:Qc,border:!0,type:"button",placeholder:"请选择span"},{formType:"switch",span:8,key:"clearable",label:"是否可清除",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:!1,loading:!1,activeValue:!0,inactiveValue:!1,placeholder:"请选择clearable"},{formType:"switch",span:8,key:"disabled",label:"是否禁用",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:!1,loading:!1,activeValue:!0,inactiveValue:!1,placeholder:"请选择disabled"},{formType:"switch",span:8,key:"required",label:"是否必填",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:!1,loading:!1,activeValue:!0,inactiveValue:!1,placeholder:"请选择required"},{formType:"number",span:8,key:"min",label:"最小值",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入min1"},{formType:"number",span:8,key:"step",label:"step",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入step"},{formType:"number",span:8,key:"precision",label:"数字精度",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入precision"},{formType:"number",span:8,key:"maxlength",label:"input最大长度",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:64,min:0,step:1,precision:0,controls:!0,placeholder:"请输入maxlength"},{formType:"number",span:8,key:"minlength",label:"input最小长度",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:0,min:0,step:1,precision:0,controls:!0,placeholder:"请输入minlength"},{formType:"select",span:8,key:"inputType",label:"input类型",clearable:!0,disabled:!1,readonly:!1,children:[],initValue:"",options:Xc,multiple:!1,multipleLimit:1024,placeholder:"请选择inputType"}],initValue:""}];class me{formType="block";span;key;label;clearable;disabled;required;readonly;dictId;rules;children;initValue;constructor(t){this.span=t.span||24,this.key=t.key,this.label=t.label||"",this.clearable=t.clearable||!0,this.disabled=t.disabled||!1,this.readonly=t.readonly||!1,this.children=t.children||[],this.initValue=t.initValue||"",t.required&&!t.rules&&(this.rules={required:!0,message:`请输入${t.key}`,trigger:"change"}),t.rules&&(this.rules=t.rules)}}class wr extends me{children=[];initValue="";constructor(t){super(t)}}class ru extends me{formType="input";maxlength;minlength;showWordLimit;placeholder="请输入";type;initValue="";constructor(t){super(t),this.maxlength=t.maxlength||1024,this.minlength=t.minlength||0,this.showWordLimit=t.showWordLimit||!1,this.type=t.type||"text",this.placeholder=`请输入${t.key}`}}class ou extends me{formType="number";min;max;step;precision;controls=!1;placeholder="请输入";initValue=0;constructor(t){super(t),this.min=t.min||0,this.max=t.max,this.step=t.step||1,this.precision=t.precision||0,this.controls=t.controls||!0,this.placeholder=`请输入${t.key}`}}class au extends me{formType="select";options;multiple;multipleLimit;placeholder="请选择";initValue="";constructor(t){super(t),this.options=t.options||[],this.multiple=t.multiple||!1,this.multipleLimit=t.multipleLimit||1024,this.placeholder=`请选择${t.key}`}}class iu extends me{formType="switch";loading;width;activeText;inactiveText;activeValue;inactiveValue;initValue=!1;constructor(t){super(t),this.loading=t.loading||!1,this.width=t.width,this.activeText=t.activeText,this.inactiveText=t.inactiveText,this.activeValue=t.activeValue||!0,this.inactiveValue=t.inactiveValue||!1,this.placeholder=`请选择${t.key}`}}class su extends me{formType="date";type="datetime";defaultValue;defaultTime;valueFormat="YYYY-MM-DDTHH:mm:ss[Z]";dateFormat="YYYY-MM-DD";timeFormat="HH:mm:ss";initValue=new Date;constructor(t){super(t),this.type=t.type||"datetime",this.defaultValue=t.defaultValue,this.defaultTime=t.defaultTime,this.valueFormat=t.valueFormat||"YYYY-MM-DDTHH:mm:ss[Z]",this.dateFormat=t.dateFormat||"YYYY-MM-DD",this.timeFormat=t.timeFormat||"HH:mm:ss",this.placeholder=`请选择${t.key}`}}class lu extends me{formType="radio";options=[];border=!0;textColor;fill;type;initValue="";constructor(t){super(t),this.options=t.options||[],this.border=t.border||!0,this.textColor=t.textColor,this.fill=t.fill,this.type=t.type||"button",this.placeholder=`请选择${t.key}`}}const cu={class:"edit-container"},uu={class:"aside"},du={class:"form"},fu={class:"btn-content"},pu={class:"section"},mu={class:"main"},gu={class:"footer"},xr=oe(r.defineComponent({name:"EditComp",__name:"index",setup(e){const t=r.ref(),n=r.shallowRef([new wr({key:"root",label:"生成结果,输入内容设置默认值"})]),o=r.shallowRef({}),a=r.shallowRef(tu),s=r.shallowRef(nu),i={input:{comp:gr,ins:ru},select:{comp:hr,ins:au},number:{comp:yr,ins:ou},switch:{comp:br,ins:iu},date:{comp:vr,ins:su},radio:{comp:_r,ins:lu}};function l(){n.value=[new wr({key:"root",label:"生成结果,输入内容设置默认值"})],o.value={}}function u(){t.value?.submit().then(b=>{if(Object.keys(o.value).includes(b.key)){zc.error(`重复key: ${b.key}`);return}else{const h=i[b.formItemType].ins;if(h){const f=new h(b);o.value={...o.value,[b.key]:f.initValue},n.value.forEach(g=>{g.children&&b.key&&g.children.push(f)})}}})}function p(b){console.log(b)}function d(b){console.log(b);const h=Ue(n.value),f=Ue(o.value);if(b?.key&&h?.[0]?.children){const g=h[0].children.filter(c=>c.key!=b.key)||[];console.log(g),h[0].children=g,n.value=h,delete f[b.key],o.value=f}}function m(){console.log("%c 配置信息 CONFIG ","color: lime"),console.log(JSON.stringify(n.value,null," ")),console.log("%c 配置信息 DATA :","color: orange"),console.log(JSON.stringify(o.value,null," "))}function y(){t.value?.reset()}return(b,h)=>{const f=r.resolveComponent("el-button"),g=r.resolveComponent("el-button-group");return r.openBlock(),r.createElementBlock("div",cu,[r.createElementVNode("div",uu,[r.createElementVNode("div",du,[r.createVNode(r.unref(Xe),{config:n.value,"onUpdate:config":h[0]||(h[0]=c=>n.value=c),data:o.value,"onUpdate:data":h[1]||(h[1]=c=>o.value=c),edit:!0,onChange:p,onRemove:d},null,8,["config","data"])]),r.createElementVNode("div",fu,[r.createVNode(g,null,{default:r.withCtx(()=>[r.createVNode(f,{type:"danger",onClick:l},{default:r.withCtx(()=>[...h[4]||(h[4]=[r.createTextVNode("清空",-1)])]),_:1})]),_:1})])]),r.createElementVNode("div",pu,[r.createElementVNode("div",mu,[r.createVNode(r.unref(Xe),{ref_key:"formRef",ref:t,config:s.value,"onUpdate:config":h[2]||(h[2]=c=>s.value=c),data:a.value,"onUpdate:data":h[3]||(h[3]=c=>a.value=c)},null,8,["config","data"])]),r.createElementVNode("div",gu,[r.createVNode(g,null,{default:r.withCtx(()=>[r.createVNode(f,{type:"warning",onClick:u},{default:r.withCtx(()=>[...h[5]||(h[5]=[r.createTextVNode("添加",-1)])]),_:1}),r.createVNode(f,{type:"warning",onClick:m},{default:r.withCtx(()=>[...h[6]||(h[6]=[r.createTextVNode("打印",-1)])]),_:1}),r.createVNode(f,{type:"warning",onClick:y},{default:r.withCtx(()=>[...h[7]||(h[7]=[r.createTextVNode("重置",-1)])]),_:1})]),_:1})])])])}}}),[["__scopeId","data-v-e67c9263"]]);function Cr(e){e.component("FjForm",Xe),e.component("EditForm",xr)}I.EditForm=xr,I.FjForm=Xe,I.default=Cr,I.install=Cr,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fj-form",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"