@web-utils/form-ui 1.0.0-beta36 → 1.0.0-beta37

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 (75) hide show
  1. package/chunks/{iWQD3xvX.mjs → B17LMtNG.mjs} +11 -16
  2. package/chunks/{DFsI7Y6h.mjs → B2HO8aAj.mjs} +11 -11
  3. package/chunks/{axr9InkL.mjs → BC0gfvsl.mjs} +9 -13
  4. package/chunks/{DQxPzCsy.mjs → BMAsNnWL.mjs} +11 -15
  5. package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
  6. package/chunks/{D5_ctQqL.mjs → BeBtvo7Q.mjs} +1 -1
  7. package/chunks/{Cr1vBYne.mjs → BeyC-b9n.mjs} +12 -15
  8. package/chunks/{A3sHIRQ_.mjs → BiIR7j9T.mjs} +15 -42
  9. package/chunks/{_dm2lLNL.mjs → BrXlRZbl.mjs} +2 -2
  10. package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
  11. package/chunks/{Buc52aVh.mjs → Byr79NWq.mjs} +11 -29
  12. package/chunks/{BLWwTutr.mjs → C81uwgZb.mjs} +14 -33
  13. package/chunks/{CNskrN5I.mjs → C95McWbI.mjs} +2 -2
  14. package/chunks/CE8bze--.mjs +231 -0
  15. package/chunks/{DcbnHU8K.mjs → CGmMqCP6.mjs} +19 -23
  16. package/chunks/{D7hD-ppq.mjs → CRrdgtwT.mjs} +1 -1
  17. package/chunks/{DistOy_O.mjs → CUvhHVXq.mjs} +27 -19
  18. package/chunks/{DJKE5P39.mjs → CZ6kuiWf.mjs} +2 -2
  19. package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
  20. package/chunks/{ZXCLnZFa.mjs → Ce5K-XbN.mjs} +111 -144
  21. package/chunks/{CLn0r4lV.mjs → CszLlvRH.mjs} +15 -17
  22. package/chunks/{CGJkMYZ4.mjs → D0M61zlJ.mjs} +11 -20
  23. package/chunks/DjX-fB-E.mjs +35 -0
  24. package/chunks/{BwdWZEjT.mjs → DkXSvAFI.mjs} +12 -18
  25. package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
  26. package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
  27. package/chunks/{1cDNhlSV.mjs → h0Y7oZ-O.mjs} +2 -2
  28. package/editable-tree/index.d.ts +1 -1
  29. package/editable-tree/index.mjs +1 -1
  30. package/element-dialog/index.d.ts +1 -1
  31. package/element-dialog/index.mjs +1 -1
  32. package/form-cascader/index.d.ts +0 -14
  33. package/form-cascader/index.mjs +1 -1
  34. package/form-check-box-group/index.d.ts +0 -2
  35. package/form-check-box-group/index.mjs +1 -1
  36. package/form-checkbox/index.d.ts +36 -10
  37. package/form-checkbox/index.mjs +1 -1
  38. package/form-date-picker/index.mjs +1 -1
  39. package/form-holder/index.d.ts +2 -6
  40. package/form-holder/index.mjs +1 -1
  41. package/form-image/index.d.ts +2 -14
  42. package/form-image/index.mjs +1 -1
  43. package/form-input/index.d.ts +0 -24
  44. package/form-input/index.mjs +1 -1
  45. package/form-input-cron-expression/index.mjs +1 -1
  46. package/form-input-email/index.mjs +1 -1
  47. package/form-input-id-card/index.mjs +1 -1
  48. package/form-input-number/index.d.ts +0 -6
  49. package/form-input-number/index.mjs +1 -1
  50. package/form-input-phone-number/index.mjs +1 -1
  51. package/form-item-x/index.mjs +1 -1
  52. package/form-radio-group/index.d.ts +0 -2
  53. package/form-radio-group/index.mjs +1 -1
  54. package/form-rate/index.d.ts +0 -2
  55. package/form-rate/index.mjs +1 -1
  56. package/form-select/index.d.ts +0 -14
  57. package/form-select/index.mjs +1 -1
  58. package/form-slider/index.d.ts +0 -4
  59. package/form-slider/index.mjs +1 -1
  60. package/form-switch/index.d.ts +0 -2
  61. package/form-switch/index.mjs +1 -1
  62. package/form-text/index.mjs +1 -1
  63. package/helper/dictionary.mjs +1 -1
  64. package/iframe-window/index.mjs +1 -1
  65. package/index.mjs +25 -25
  66. package/package.json +1 -1
  67. package/pageable-table/index.d.ts +0 -38
  68. package/pageable-table/index.mjs +1 -1
  69. package/table-column/index.mjs +1 -1
  70. package/table-view/index.mjs +6 -6
  71. package/toolbar/index.mjs +1 -1
  72. package/toolbar-button/index.mjs +1 -1
  73. package/web-types.json +1 -1
  74. package/chunks/BLRY0zkF.mjs +0 -51
  75. package/chunks/BvsmTC3G.mjs +0 -229
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./CE8bze--.mjs";
2
+ import { n } from "./CRrdgtwT.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElSlider as o } from "element-plus/es";
5
5
  //#region src/components/form/props/slide.ts
@@ -67,29 +67,24 @@ var s = {
67
67
  type: Boolean,
68
68
  default: !0
69
69
  }
70
- }, c = { modelValue: !0 }, l = ["change", "input"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
70
+ }, c = { modelValue: !0 }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
71
71
  name: "FormSlider",
72
72
  inheritAttrs: !1,
73
73
  props: { ...s },
74
- emits: {
75
- ...t,
76
- change: null,
77
- input: null
78
- },
74
+ emits: { ...t },
79
75
  setup(t, { emit: n, slots: s, attrs: c }) {
80
- let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
76
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
81
77
  emit: n,
82
78
  slots: s,
83
- events: l,
84
- predicate: u,
79
+ predicate: l,
85
80
  attrs: c
86
81
  });
87
- return () => f({ vNodes: r(o, i(m.value, {
88
- modelValue: d.value,
89
- "onUpdate:modelValue": (e) => d.value = e,
90
- disabled: p.value
82
+ return () => d({ vNodes: r(o, i(p.value, m.value, {
83
+ modelValue: u.value,
84
+ "onUpdate:modelValue": (e) => u.value = e,
85
+ disabled: f.value
91
86
  }), null) });
92
87
  }
93
88
  };
94
89
  //#endregion
95
- export { d as t };
90
+ export { u as t };
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./CE8bze--.mjs";
2
+ import { n } from "./CRrdgtwT.mjs";
3
3
  import { computed as r, createVNode as i, mergeProps as a } from "vue";
4
4
  import { ElDatePicker as o } from "element-plus/es";
5
5
  import { toDate as s } from "@web-utils/integrations/dayjs";
@@ -143,7 +143,7 @@ var c = {
143
143
  emptyValues: !0,
144
144
  type: !0,
145
145
  valueOnClear: !0
146
- }, u = ["change"], d = (e) => n[e] === void 0 && l[e] !== !0, f = {
146
+ }, u = (e) => n[e] === void 0 && l[e] !== !0, d = {
147
147
  name: "FormDatePicker",
148
148
  inheritAttrs: !1,
149
149
  props: { ...c },
@@ -153,12 +153,11 @@ var c = {
153
153
  "update:endDate": null
154
154
  },
155
155
  setup(t, { emit: n, slots: c, attrs: l }) {
156
- let { emitInput: f, render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
156
+ let { emitInput: d, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = e(t, {
157
157
  emit: n,
158
158
  slots: c,
159
159
  attrs: l,
160
- events: u,
161
- predicate: d,
160
+ predicate: u,
162
161
  messagePrefix: "请选择"
163
162
  }), _ = r(() => t.dateTimeRange || t.dateRange || t.monthRange), v = r(() => t.year ? "YYYY" : t.month || t.monthRange ? "YYYY-MM" : t.week ? "YYYY 第 WW 周" : t.dateTime || t.dateTimeRange ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"), y = r(() => t.year ? "year" : t.month ? "month" : t.dates ? "dates" : t.week ? "week" : t.dateTime ? "datetime" : t.dateTimeRange ? "datetimerange" : t.dateRange ? "daterange" : t.monthRange ? "monthrange" : "date"), b = r(() => {
164
163
  if (t.miniDate) {
@@ -172,13 +171,14 @@ var c = {
172
171
  }, C = (e, t) => {
173
172
  n("update:startDate", e), n("update:endDate", t);
174
173
  }, w = (e) => {
175
- _.value && t.split ? e ? C(e[0], e[1]) : C(null, null) : f(e);
174
+ _.value && t.split ? e ? C(e[0], e[1]) : C(null, null) : d(e);
176
175
  }, T = r(() => _.value && t.split ? [t.startDate, t.endDate] : t.modelValue), E = r(() => t.week ? "YYYY-MM-DD" : t.valueFormat || v.value), D = r(() => t.format || v.value);
177
- return () => p({ vNodes: i(o, a({ style: "width: 100%" }, g.value, {
176
+ return () => f({ vNodes: i(o, a(h.value, g.value, {
177
+ style: "width: 100%",
178
178
  type: y.value,
179
179
  modelValue: T.value,
180
- disabled: h.value,
181
- placeholder: m.value,
180
+ disabled: m.value,
181
+ placeholder: p.value,
182
182
  format: D.value,
183
183
  disabledDate: S,
184
184
  "value-format": E.value,
@@ -194,4 +194,4 @@ var c = {
194
194
  }
195
195
  };
196
196
  //#endregion
197
- export { f as t };
197
+ export { d as t };
@@ -1,6 +1,6 @@
1
- import { u as e } from "./BX-cVxlK.mjs";
2
- import { o as t, r as n } from "./BvsmTC3G.mjs";
3
- import { n as r } from "./D7hD-ppq.mjs";
1
+ import { d as e } from "./cmuHpsX6.mjs";
2
+ import { o as t, r as n } from "./CE8bze--.mjs";
3
+ import { n as r } from "./CRrdgtwT.mjs";
4
4
  import { createVNode as i, mergeProps as a } from "vue";
5
5
  import { ElText as o } from "element-plus/es";
6
6
  //#region src/components/form/props/text.ts
@@ -21,22 +21,18 @@ var s = {
21
21
  default: "span"
22
22
  },
23
23
  text: String
24
- }, c = { modelValue: !0 }, l = ["change"], u = (e) => r[e] === void 0 && c[e] !== !0, d = {
24
+ }, c = { modelValue: !0 }, l = (e) => r[e] === void 0 && c[e] !== !0, u = {
25
25
  name: "FormText",
26
26
  inheritAttrs: !1,
27
27
  props: { ...s },
28
- setup(r, { slots: s, emit: c, attrs: d }) {
29
- let f = t(r, { attrs: d }), p = e(r, {
30
- events: l,
31
- predicate: u,
32
- emit: c
33
- });
28
+ setup(r, { slots: s, attrs: c }) {
29
+ let u = t(r, { attrs: c }), d = e(r, l);
34
30
  return () => n(r, {
35
- vNodes: i(o, a(p.value, d), { default: s.default || (() => r.text) }),
36
- formItemProps: f,
31
+ vNodes: i(o, a(d.value, c), { default: s.default || (() => r.text) }),
32
+ formItemProps: u,
37
33
  slots: s
38
34
  });
39
35
  }
40
36
  };
41
37
  //#endregion
42
- export { d as t };
38
+ export { u as t };
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./CE8bze--.mjs";
2
+ import { n } from "./CRrdgtwT.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElRate as o } from "element-plus/es";
5
5
  //#region src/components/form/props/rate.ts
@@ -61,28 +61,24 @@ var s = {
61
61
  },
62
62
  id: String,
63
63
  ariaLabel: String
64
- }, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
64
+ }, c = { modelValue: !0 }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
65
65
  name: "FormRate",
66
66
  inheritAttrs: !1,
67
67
  props: { ...s },
68
- emits: {
69
- ...t,
70
- change: null
71
- },
68
+ emits: { ...t },
72
69
  setup(t, { emit: n, slots: s, attrs: c }) {
73
- let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
70
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
74
71
  emit: n,
75
72
  slots: s,
76
73
  attrs: c,
77
- events: l,
78
- predicate: u
74
+ predicate: l
79
75
  });
80
- return () => f({ vNodes: r(o, i(m.value, {
81
- modelValue: d.value,
82
- "onUpdate:modelValue": (e) => d.value = e,
83
- disabled: p.value
76
+ return () => d({ vNodes: r(o, i(p.value, m.value, {
77
+ modelValue: u.value,
78
+ "onUpdate:modelValue": (e) => u.value = e,
79
+ disabled: f.value
84
80
  }), null) });
85
81
  }
86
82
  };
87
83
  //#endregion
88
- export { d as t };
84
+ export { u as t };