@web-utils/form-ui 1.0.0-beta17 → 1.0.0-beta18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/chunks/{D0EeP-eB.mjs → 53gSZ624.mjs} +2 -2
  2. package/chunks/{DsBWDK1-.mjs → 7Desvoh-.mjs} +2 -2
  3. package/chunks/{CH_v7XkN.mjs → 7vQ29mMd.mjs} +3 -3
  4. package/chunks/{CrWDXTno.mjs → 8ORg8rrN.mjs} +2 -2
  5. package/chunks/{Do5h5GzH.mjs → B4LDPAZu.mjs} +2 -2
  6. package/chunks/{uWRsKwOO.mjs → BVzpe2oN.mjs} +2 -2
  7. package/chunks/{f-CM5UVD.mjs → Bb5BT11-.mjs} +3 -3
  8. package/chunks/{DX4Wq2Fb.mjs → Bj5l6sFx.mjs} +2 -2
  9. package/chunks/{DQDBsEel.mjs → BsbfEk0E.mjs} +3 -3
  10. package/chunks/{CEWLi7G1.mjs → C1DlzLpD.mjs} +56 -56
  11. package/chunks/{Lnj54GAG.mjs → CFwUzdTu.mjs} +2 -2
  12. package/chunks/{DUBc-1s4.mjs → CKw_uzPc.mjs} +2 -2
  13. package/chunks/{1BaFmq0z.mjs → D2WviyxF.mjs} +7 -9
  14. package/chunks/{CbGBSOlX.mjs → DH1_fmkX.mjs} +3 -3
  15. package/chunks/{3ItTydl6.mjs → DUDm42gn.mjs} +2 -2
  16. package/chunks/{DFuF0u2g.mjs → DgbDpRQg.mjs} +2 -2
  17. package/chunks/{CqgD2b0r.mjs → DkqF25wT.mjs} +1 -1
  18. package/chunks/{CQTt0Oq1.mjs → DynLjTwi.mjs} +1 -1
  19. package/chunks/{Du6wl65y.mjs → Q9EsFJ4H.mjs} +2 -2
  20. package/constants.d.ts +16 -10
  21. package/constants.mjs +2 -2
  22. package/form-check-box-group/index.mjs +1 -1
  23. package/form-checkbox/index.mjs +1 -1
  24. package/form-date-picker/index.d.ts +7 -7
  25. package/form-date-picker/index.mjs +1 -1
  26. package/form-image/index.mjs +1 -1
  27. package/form-input/index.mjs +1 -1
  28. package/form-input-cron-expression/index.mjs +1 -1
  29. package/form-input-email/index.mjs +1 -1
  30. package/form-input-id-card/index.mjs +1 -1
  31. package/form-input-number/index.mjs +1 -1
  32. package/form-input-phone-number/index.mjs +1 -1
  33. package/form-item-group/index.mjs +46 -30
  34. package/form-item-x/index.mjs +1 -1
  35. package/form-radio-group/index.mjs +1 -1
  36. package/form-rate/index.mjs +1 -1
  37. package/form-select/index.mjs +1 -1
  38. package/form-slider/index.mjs +1 -1
  39. package/form-switch/index.mjs +1 -1
  40. package/form-text/index.mjs +1 -1
  41. package/index.mjs +17 -17
  42. package/package.json +1 -1
  43. package/web-types.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./Bh_CMUlo.mjs";
2
- import { o as t, r as n } from "./CEWLi7G1.mjs";
3
- import { n as r } from "./CQTt0Oq1.mjs";
2
+ import { o as t, r as n } from "./C1DlzLpD.mjs";
3
+ import { n as r } from "./DynLjTwi.mjs";
4
4
  import { ElText as i } from "element-plus/es";
5
5
  import { createVNode as a, mergeProps as o } from "vue";
6
6
  //#region src/components/form/props/text.js
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElOption as r, ElSelect as i } from "element-plus/es";
4
4
  import { createVNode as a, mergeProps as o, useModel as s } from "vue";
5
5
  //#region src/components/form/props/select.js
@@ -1,6 +1,6 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n, t as r } from "./CQTt0Oq1.mjs";
3
- import { n as i, r as a } from "./CqgD2b0r.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n, t as r } from "./DynLjTwi.mjs";
3
+ import { n as i, r as a } from "./DkqF25wT.mjs";
4
4
  import { t as o } from "./wfL1FAwc.mjs";
5
5
  import { ElInput as s, ElPopover as c } from "element-plus/es";
6
6
  import { createVNode as l, mergeProps as u, ref as d } from "vue";
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElCheckbox as r, ElCheckboxButton as i, ElCheckboxGroup as a } from "element-plus/es";
4
4
  import { computed as o, createVNode as s, isVNode as c, mergeProps as l } from "vue";
5
5
  //#region src/components/form/props/checkbox-group.js
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElRadio as r, ElRadioButton as i, ElRadioGroup as a } from "element-plus/es";
4
4
  import { createVNode as o, isVNode as s, mergeProps as c, useModel as l } from "vue";
5
5
  //#region src/components/form/props/radio-group.js
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElCheckbox as r } from "element-plus/es";
4
4
  import { createVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/props/checkbox.js
@@ -1,6 +1,6 @@
1
- import { n as e } from "./CEWLi7G1.mjs";
2
- import { t } from "./DX4Wq2Fb.mjs";
3
- import { t as n } from "./CqgD2b0r.mjs";
1
+ import { n as e } from "./C1DlzLpD.mjs";
2
+ import { t } from "./Bj5l6sFx.mjs";
3
+ import { t as n } from "./DkqF25wT.mjs";
4
4
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
6
6
  function s(e) {
@@ -1,5 +1,5 @@
1
- import { i as e, n as t, t as n } from "./CEWLi7G1.mjs";
2
- import { n as r, r as i, t as a } from "./CqgD2b0r.mjs";
1
+ import { i as e, n as t, t as n } from "./C1DlzLpD.mjs";
2
+ import { n as r, r as i, t as a } from "./DkqF25wT.mjs";
3
3
  import { ElInput as o } from "element-plus/es";
4
4
  import { computed as s, createVNode as c, mergeProps as l, useModel as u } from "vue";
5
5
  import { validatePhoneNum as d } from "@web-utils/core";
@@ -1,6 +1,6 @@
1
- import { n as e } from "./CEWLi7G1.mjs";
2
- import { t } from "./DX4Wq2Fb.mjs";
3
- import { t as n } from "./CqgD2b0r.mjs";
1
+ import { n as e } from "./C1DlzLpD.mjs";
2
+ import { t } from "./Bj5l6sFx.mjs";
3
+ import { t as n } from "./DkqF25wT.mjs";
4
4
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
6
6
  function s(e) {
@@ -1,10 +1,10 @@
1
- import { formHolderContextKey as e, formItemConfigProviderContextKey as t } from "../constants.mjs";
2
- import { t as n } from "./Bh_CMUlo.mjs";
3
- import { ElCol as r, ElFormItem as i, ElTooltip as a } from "element-plus/es";
4
- import { computed as o, createVNode as s, h as c, inject as l, mergeProps as u, nextTick as d, unref as f, useTemplateRef as p } from "vue";
5
- import { ElCol as m, rowContextKey as h } from "element-plus";
1
+ import { formHolderContextKey as e, formItemConfigProviderContextKey as t, formItemGroupContextKey as n } from "../constants.mjs";
2
+ import { t as r } from "./Bh_CMUlo.mjs";
3
+ import { ElCol as i, ElFormItem as a, ElTooltip as o } from "element-plus/es";
4
+ import { computed as s, createVNode as c, h as l, inject as u, mergeProps as d, nextTick as f, unref as p, useTemplateRef as m } from "vue";
5
+ import { ElCol as h, rowContextKey as g } from "element-plus";
6
6
  //#region src/components/form/props/form-item.js
7
- var g = {
7
+ var _ = {
8
8
  prop: [String, Array],
9
9
  label: String,
10
10
  labelPosition: {
@@ -50,7 +50,7 @@ var g = {
50
50
  inputColspan: [Number, String],
51
51
  labelRowspan: [Number, String],
52
52
  inputRowspan: [Number, String]
53
- }, _ = {
53
+ }, v = {
54
54
  required: !0,
55
55
  rules: !0,
56
56
  messagePrefix: !0,
@@ -68,7 +68,7 @@ var g = {
68
68
  inputColspan: !0,
69
69
  labelRowspan: !0,
70
70
  inputRowspan: !0
71
- }, v = (e) => g[e] !== void 0 && _[e] !== !0, y = (e, { emit: t, events: r, predicate: i }) => o(() => n(e, i, r, t)), b = {
71
+ }, y = (e) => _[e] !== void 0 && v[e] !== !0, b = (e, { emit: t, events: n, predicate: i }) => s(() => r(e, i, n, t)), x = {
72
72
  span: {
73
73
  type: Number,
74
74
  default: 12
@@ -94,31 +94,31 @@ var g = {
94
94
  type: String,
95
95
  default: "div"
96
96
  }
97
- }, x = { span: !0 }, S = (e) => b[e] !== void 0 && x[e] !== !0, C = (e, { emit: t, events: r, predicate: i }) => o(() => n(e, i, r, t)), w = (t) => {
98
- let n = l(e, null);
99
- return o(() => t.required === !0 ? !0 : (n == null ? void 0 : n.requiredFieldsMap[t.prop]) === !0);
100
- }, T = (e, { rules: t, attrs: n, messagePrefix: r, message: i } = {}) => {
101
- let a = w(e);
102
- return o(() => {
103
- let o = { message: i }, s = f(t);
97
+ }, S = { span: !0 }, C = (e) => x[e] !== void 0 && S[e] !== !0, w = (e, { emit: t, events: n, predicate: i }) => s(() => r(e, i, n, t)), T = (t) => {
98
+ let n = u(e, null);
99
+ return s(() => t.required === !0 ? !0 : (n == null ? void 0 : n.requiredFieldsMap[t.prop]) === !0);
100
+ }, E = (e, { rules: t, attrs: n, messagePrefix: r, message: i } = {}) => {
101
+ let a = T(e);
102
+ return s(() => {
103
+ let o = { message: i }, s = p(t);
104
104
  return Object.keys({
105
- ...g,
106
- ...b
105
+ ..._,
106
+ ...x
107
107
  }).forEach((t) => {
108
108
  t === "rules" ? e[t] && s ? o[t] = [...e[t], ...s] : e[t] ? o[t] = e[t] : s && (o[t] = s) : t === "messagePrefix" ? o[t] = e.messagePrefix || r : o[t] = e[t];
109
109
  }), o.required = a.value, o.class = n == null ? void 0 : n.class, o.style = n == null ? void 0 : n.style, o;
110
110
  });
111
- }, E = {
111
+ }, D = {
112
112
  name: "FormItemX",
113
113
  inheritAttrs: !1,
114
114
  props: {
115
- ...g,
116
- ...b
115
+ ..._,
116
+ ...x
117
117
  },
118
- setup(n, { attrs: c, slots: f, expose: m }) {
119
- let g = l(h, null), _ = l(t, null), b = l(e, null), x = c.embed ? o(() => c.disabled) : O(n), T = y(n, { predicate: v }), E = C(n, { predicate: S }), D = o(() => (_ == null ? void 0 : _.reactive) === !0 && _.block === !1 && n.fixedSpan === void 0 && !n.half), k = w(n), A = p("formItem"), j = o(() => (_ == null ? void 0 : _.wrapCol) === !1 ? !1 : !!g && n.wrapCol), M = o(() => b != null && b.tableForm ? "" : _ != null && _.block ? "100%" : n.half && j.value ? `calc(50% - ${g.gutter.value / 2}px)` : ""), N = o(() => (_ == null ? void 0 : _.block) === !0 || n.block || n.half ? 24 : n.span), P = o(() => {
118
+ setup(n, { attrs: r, slots: l, expose: p }) {
119
+ let h = u(g, null), _ = u(t, null), v = u(e, null), x = r.embed ? s(() => r.disabled) : k(n), S = b(n, { predicate: y }), E = w(n, { predicate: C }), D = s(() => (_ == null ? void 0 : _.reactive) === !0 && _.block === !1 && n.fixedSpan === void 0 && !n.half), O = T(n), A = m("formItem"), j = s(() => (_ == null ? void 0 : _.wrapCol) === !1 ? !1 : !!h && n.wrapCol), M = s(() => v != null && v.tableForm ? "" : _ != null && _.block ? "100%" : n.half && j.value ? `calc(50% - ${h.gutter.value / 2}px)` : ""), N = s(() => (_ == null ? void 0 : _.block) === !0 || n.block || n.half ? 24 : n.span), P = s(() => {
120
120
  if (x.value) return [];
121
- if (k.value) {
121
+ if (O.value) {
122
122
  let e = {
123
123
  required: !0,
124
124
  message: n.message || `${n.messagePrefix || "请输入"}${n.label}`
@@ -127,25 +127,25 @@ var g = {
127
127
  }
128
128
  return n.rules;
129
129
  });
130
- return m({
130
+ return p({
131
131
  clearValidate: async () => {
132
132
  var e;
133
- await d(), (e = A.value) == null || e.clearValidate();
133
+ await f(), (e = A.value) == null || e.clearValidate();
134
134
  },
135
135
  validate: async () => {
136
136
  var e;
137
- await d(), (e = A.value) == null || e.validate();
137
+ await f(), (e = A.value) == null || e.validate();
138
138
  }
139
139
  }), () => {
140
140
  var e;
141
- let t = f.tips || n.tips, o = t ? s(a, {
141
+ let t = l.tips || n.tips, r = t ? c(o, {
142
142
  effect: "light",
143
143
  content: n.tips,
144
144
  offset: 4
145
145
  }, {
146
- default: () => s("i", { class: "el-icon-info form-item-input-info" }, null),
147
- content: f.tips ? f.tips : null
148
- }) : null, c = s(i, u(T.value, {
146
+ default: () => c("i", { class: "el-icon-info form-item-input-info" }, null),
147
+ content: l.tips ? l.tips : null
148
+ }) : null, s = c(a, d(S.value, {
149
149
  ref: "formItem",
150
150
  style: { width: M.value },
151
151
  class: [
@@ -154,41 +154,41 @@ var g = {
154
154
  {
155
155
  "form-item-hide-label": n.hideLabel,
156
156
  "with-tips": !n.tipsAfterLabel && t,
157
- required: x.value === !1 && k.value
157
+ required: x.value === !1 && O.value
158
158
  }
159
159
  ],
160
160
  rules: P.value
161
161
  }), {
162
- ...f,
162
+ ...l,
163
163
  default: () => {
164
164
  var e;
165
- return [(e = f.default) == null ? void 0 : e.call(f, {
165
+ return [(e = l.default) == null ? void 0 : e.call(l, {
166
166
  disabled: x.value,
167
- required: k.value
168
- }), t && !n.tipsAfterLabel ? o : null];
167
+ required: O.value
168
+ }), t && !n.tipsAfterLabel ? r : null];
169
169
  },
170
- label: () => [f.label ? f.label() : n.label, n.tipsAfterLabel ? o : null]
171
- }), l = [c, (e = f.below) == null ? void 0 : e.call(f)];
172
- return n.unwrap ? l : j.value ? s(r, u(E.value, D.value ? {
170
+ label: () => [l.label ? l.label() : n.label, n.tipsAfterLabel ? r : null]
171
+ }), u = [s, (e = l.below) == null ? void 0 : e.call(l)];
172
+ return n.unwrap ? u : j.value ? c(i, d(E.value, D.value ? {
173
173
  xs: 24,
174
174
  sm: 12,
175
175
  md: 12,
176
176
  lg: 8,
177
177
  xl: 6
178
- } : {}, { span: N.value }), { default: () => l }) : c;
178
+ } : {}, { span: N.value }), { default: () => u }) : s;
179
179
  };
180
180
  }
181
- }, D = "update:modelValue", O = (t) => {
182
- let n = l(e, null), r = l("formItemGroup", null);
183
- return o(() => {
181
+ }, O = "update:modelValue", k = (t) => {
182
+ let r = u(e, null), i = u(n, null);
183
+ return s(() => {
184
184
  if (t.disabled !== void 0) return t.disabled;
185
- if (n) {
186
- if (n.requiredFieldsMap[t.prop] === !0 || n.enabledFieldsMap[t.prop] === !0) return !1;
187
- if (n.disabledFieldsMap[t.prop] === !0) return !0;
185
+ if (r) {
186
+ if (r.requiredFieldsMap[t.prop] === !0 || r.enabledFieldsMap[t.prop] === !0) return !1;
187
+ if (r.disabledFieldsMap[t.prop] === !0) return !0;
188
188
  }
189
- return (r == null ? void 0 : r.enabled) === !0 ? !1 : (r == null ? void 0 : r.disabled) === !0 ? !0 : (n == null ? void 0 : n.disabled) === !0;
189
+ return (i == null ? void 0 : i.enabled) === !0 ? !1 : (i == null ? void 0 : i.disabled) === !0 ? !0 : (r == null ? void 0 : r.disabled) === !0;
190
190
  });
191
- }, k = { [D]: null }, A = (e, t) => e(D, t), j = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? c(E, {
191
+ }, A = { [O]: null }, j = (e, t) => e(O, t), M = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? l(D, {
192
192
  ...n.value,
193
193
  embed: !0,
194
194
  disabled: i == null ? void 0 : i.value
@@ -198,25 +198,25 @@ var g = {
198
198
  error: r.error,
199
199
  tips: r.tips,
200
200
  below: r.below
201
- }) : t, M = (e, { emit: t, slots: r, attrs: i, rules: a, events: s, predicate: l, messagePrefix: u = "请输入" }) => {
202
- let d = O(e), f = o(() => d.value ? "" : `${u}${e.label}`), p = T(e, {
201
+ }) : t, N = (e, { emit: t, slots: n, attrs: i, rules: a, events: o, predicate: c, messagePrefix: u = "请输入" }) => {
202
+ let d = k(e), f = s(() => d.value ? "" : `${u}${e.label}`), p = E(e, {
203
203
  rules: a,
204
204
  attrs: i,
205
205
  message: f.value
206
- }), h = (e) => A(t, e), g = (t) => e.col ? c(m, { span: e.block ? 24 : e.span }, { default: () => t }) : t;
206
+ }), m = (e) => j(t, e), g = (t) => e.col ? l(h, { span: e.block ? 24 : e.span }, { default: () => t }) : t;
207
207
  return {
208
- emitInput: h,
209
- render: ({ vNodes: t }) => j(e, {
208
+ emitInput: m,
209
+ render: ({ vNodes: t }) => M(e, {
210
210
  vNodes: g(t),
211
211
  formItemProps: p,
212
- slots: r,
212
+ slots: n,
213
213
  disabled: d
214
214
  }),
215
215
  placeholder: f,
216
216
  disabled: d,
217
217
  formItemProps: p,
218
- autoBind: o(() => n(e, l, s, t))
218
+ autoBind: s(() => r(e, c, o, t))
219
219
  };
220
- }, N = (e) => e.icon ? c("i", { class: e.icon }) : null;
220
+ }, P = (e) => e.icon ? l("i", { class: e.icon }) : null;
221
221
  //#endregion
222
- export { E as a, g as c, M as i, k as n, T as o, j as r, b as s, N as t };
222
+ export { D as a, _ as c, N as i, A as n, E as o, M as r, x as s, P as t };
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElSlider as r } from "element-plus/es";
4
4
  import { createVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/props/slide.js
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n, t as r } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n, t as r } from "./DynLjTwi.mjs";
3
3
  import { ElInputNumber as i } from "element-plus/es";
4
4
  import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
5
  import { isString as c } from "@web-utils/core";
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElDatePicker as r } from "element-plus/es";
4
4
  import { computed as i, createVNode as a, mergeProps as o } from "vue";
5
5
  //#region src/components/form/props/date.js
@@ -111,16 +111,14 @@ var s = {
111
111
  automaticDropdown: {
112
112
  type: Boolean,
113
113
  default: !0
114
- }
114
+ },
115
+ split: Boolean,
116
+ startDate: String,
117
+ endDate: String
115
118
  }, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
116
119
  name: "FormDatePicker",
117
120
  inheritAttrs: !1,
118
- props: {
119
- ...s,
120
- split: Boolean,
121
- startDate: String,
122
- endDate: String
123
- },
121
+ props: { ...s },
124
122
  emits: {
125
123
  ...t,
126
124
  "update:startDate": null,
@@ -1,6 +1,6 @@
1
- import { n as e } from "./CEWLi7G1.mjs";
2
- import { t } from "./DX4Wq2Fb.mjs";
3
- import { t as n } from "./CqgD2b0r.mjs";
1
+ import { n as e } from "./C1DlzLpD.mjs";
2
+ import { t } from "./Bj5l6sFx.mjs";
3
+ import { t as n } from "./DkqF25wT.mjs";
4
4
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
6
6
  function s(e) {
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElSwitch as r } from "element-plus/es";
4
4
  import { createVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/props/switch.js
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./Bh_CMUlo.mjs";
2
- import { o as t, r as n } from "./CEWLi7G1.mjs";
3
- import { n as r } from "./CQTt0Oq1.mjs";
2
+ import { o as t, r as n } from "./C1DlzLpD.mjs";
3
+ import { n as r } from "./DynLjTwi.mjs";
4
4
  import { ElImage as i } from "element-plus/es";
5
5
  import { createVNode as a, isVNode as o, mergeProps as s } from "vue";
6
6
  //#region src/components/form/props/image.js
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./CQTt0Oq1.mjs";
1
+ import { n as e, t } from "./DynLjTwi.mjs";
2
2
  //#region src/components/form/props/input.js
3
3
  var n = {
4
4
  ...e,
@@ -1,4 +1,4 @@
1
- import { c as e, s as t } from "./CEWLi7G1.mjs";
1
+ import { c as e, s as t } from "./C1DlzLpD.mjs";
2
2
  //#region src/components/form/props/common.js
3
3
  var n = {
4
4
  ...e,
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./CEWLi7G1.mjs";
2
- import { n } from "./CQTt0Oq1.mjs";
1
+ import { i as e, n as t } from "./C1DlzLpD.mjs";
2
+ import { n } from "./DynLjTwi.mjs";
3
3
  import { ElRate as r } from "element-plus/es";
4
4
  import { createVNode as i, mergeProps as a, useModel as o } from "vue";
5
5
  //#region src/components/form/props/rate.js
package/constants.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { ComputedRef, InjectionKey, TemplateRef } from 'vue';
1
+ import { InjectionKey } from 'vue';
2
2
  export declare const formHolderContextKey: InjectionKey<{
3
- tableForm: ComputedRef;
4
- disabled: ComputedRef;
5
- enabledFields: ComputedRef;
6
- requiredFields: ComputedRef;
7
- enabledFieldsMap: ComputedRef;
8
- disabledFieldsMap: ComputedRef;
9
- requiredFieldsMap: ComputedRef;
10
- disabledFields: ComputedRef;
3
+ tableForm: boolean;
4
+ disabled: boolean;
5
+ enabledFields: string[];
6
+ requiredFields: string[];
7
+ enabledFieldsMap: Record<string, boolean | undefined>;
8
+ disabledFieldsMap: Record<string, boolean | undefined>;
9
+ requiredFieldsMap: Record<string, boolean | undefined>;
10
+ disabledFields: string[];
11
11
  scrollIntoRequiredField: () => Promise<void> | any;
12
- formRef: TemplateRef;
12
+ formRef: unknown;
13
13
  validate: () => Promise<void> | any;
14
14
  validateField: () => any;
15
15
  resetFields: () => any;
@@ -19,6 +19,12 @@ export declare const formHolderContextKey: InjectionKey<{
19
19
  setInitialValues: () => any;
20
20
  getFields: () => any;
21
21
  }>;
22
+ export declare const formItemGroupContextKey: InjectionKey<{
23
+ disabled: boolean;
24
+ enabled: boolean;
25
+ isDisabled: boolean;
26
+ size: string;
27
+ }>;
22
28
  export declare const formItemConfigProviderContextKey: InjectionKey<{
23
29
  reactive: boolean;
24
30
  block: boolean;
package/constants.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/components/constants.ts
2
- var e = Symbol("formHolder"), t = Symbol("formItemConfigProvider");
2
+ var e = Symbol("formHolder"), t = Symbol("formItemGroup"), n = Symbol("formItemConfigProvider");
3
3
  //#endregion
4
- export { e as formHolderContextKey, t as formItemConfigProviderContextKey };
4
+ export { e as formHolderContextKey, n as formItemConfigProviderContextKey, t as formItemGroupContextKey };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CrWDXTno.mjs";
1
+ import { t as e } from "../chunks/8ORg8rrN.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/uWRsKwOO.mjs";
1
+ import { t as e } from "../chunks/BVzpe2oN.mjs";
2
2
  export { e as default };
@@ -1,7 +1,4 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- split: BooleanConstructor;
3
- startDate: StringConstructor;
4
- endDate: StringConstructor;
5
2
  modelValue: (StringConstructor | NumberConstructor | DateConstructor | ArrayConstructor)[];
6
3
  readonly: {
7
4
  type: BooleanConstructor;
@@ -94,6 +91,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
94
91
  type: BooleanConstructor;
95
92
  default: boolean;
96
93
  };
94
+ split: BooleanConstructor;
95
+ startDate: StringConstructor;
96
+ endDate: StringConstructor;
97
97
  wrapFormItem: {
98
98
  type: BooleanConstructor;
99
99
  default: boolean;
@@ -189,9 +189,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
189
189
  'update:endDate': null;
190
190
  "update:modelValue": null;
191
191
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
192
- split: BooleanConstructor;
193
- startDate: StringConstructor;
194
- endDate: StringConstructor;
195
192
  modelValue: (StringConstructor | NumberConstructor | DateConstructor | ArrayConstructor)[];
196
193
  readonly: {
197
194
  type: BooleanConstructor;
@@ -284,6 +281,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
284
281
  type: BooleanConstructor;
285
282
  default: boolean;
286
283
  };
284
+ split: BooleanConstructor;
285
+ startDate: StringConstructor;
286
+ endDate: StringConstructor;
287
287
  wrapFormItem: {
288
288
  type: BooleanConstructor;
289
289
  default: boolean;
@@ -400,7 +400,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
400
400
  validateEvent: boolean;
401
401
  wrapFormItem: boolean;
402
402
  col: boolean;
403
- split: boolean;
404
403
  readonly: boolean;
405
404
  editable: boolean;
406
405
  clearable: boolean;
@@ -417,5 +416,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
417
416
  showConfirm: boolean;
418
417
  showWeekNumber: boolean;
419
418
  automaticDropdown: boolean;
419
+ split: boolean;
420
420
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
421
421
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/1BaFmq0z.mjs";
1
+ import { t as e } from "../chunks/D2WviyxF.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DFuF0u2g.mjs";
1
+ import { t as e } from "../chunks/DgbDpRQg.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DX4Wq2Fb.mjs";
1
+ import { t as e } from "../chunks/Bj5l6sFx.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CH_v7XkN.mjs";
1
+ import { t as e } from "../chunks/7vQ29mMd.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/f-CM5UVD.mjs";
1
+ import { t as e } from "../chunks/Bb5BT11-.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/CbGBSOlX.mjs";
1
+ import { t as e } from "../chunks/DH1_fmkX.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DUBc-1s4.mjs";
1
+ import { t as e } from "../chunks/CKw_uzPc.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DQDBsEel.mjs";
1
+ import { t as e } from "../chunks/BsbfEk0E.mjs";
2
2
  export { e as default };