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

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 (103) hide show
  1. package/chunks/{BLWwTutr.mjs → B3ajWLh3.mjs} +15 -33
  2. package/chunks/{Cr1vBYne.mjs → BH_JJ8Xh.mjs} +15 -15
  3. package/chunks/{DistOy_O.mjs → BWBHzD5N.mjs} +28 -19
  4. package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
  5. package/chunks/{DcbnHU8K.mjs → BsCS7SB5.mjs} +19 -23
  6. package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
  7. package/chunks/C1AgOUe_.mjs +172 -0
  8. package/chunks/C3Uo82-I.mjs +35 -0
  9. package/chunks/C9dGL28n.mjs +56 -0
  10. package/chunks/{A3sHIRQ_.mjs → CFOGMFgo.mjs} +22 -45
  11. package/chunks/{ZXCLnZFa.mjs → CLPSCSsy.mjs} +111 -144
  12. package/chunks/{D7hD-ppq.mjs → CSyJ-vEx.mjs} +1 -1
  13. package/chunks/CTKmEf2M.mjs +93 -0
  14. package/chunks/{DFsI7Y6h.mjs → CXvGoZKJ.mjs} +12 -11
  15. package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
  16. package/chunks/Cj59E77g.mjs +230 -0
  17. package/chunks/Cj5h2Wda.mjs +32 -0
  18. package/chunks/{iWQD3xvX.mjs → CqTcEefA.mjs} +14 -16
  19. package/chunks/{axr9InkL.mjs → Ct5bDJ50.mjs} +9 -13
  20. package/chunks/{D5_ctQqL.mjs → CuG2Q-PM.mjs} +2 -2
  21. package/chunks/{CLn0r4lV.mjs → D8UVq1t1.mjs} +16 -17
  22. package/chunks/{BYAy19s4.mjs → DJe97Fgi.mjs} +2 -8
  23. package/chunks/{Buc52aVh.mjs → DXYgAmil.mjs} +12 -29
  24. package/chunks/{DQxPzCsy.mjs → DhtHh0jk.mjs} +14 -15
  25. package/chunks/{CGJkMYZ4.mjs → DiJyms_r.mjs} +12 -20
  26. package/chunks/{1cDNhlSV.mjs → TvNHGVAP.mjs} +2 -2
  27. package/chunks/{CNskrN5I.mjs → XCGWTz41.mjs} +2 -2
  28. package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
  29. package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
  30. package/chunks/{DJKE5P39.mjs → o6VhYAN52.mjs} +2 -2
  31. package/chunks/{BwdWZEjT.mjs → pdwFQpA8.mjs} +13 -18
  32. package/chunks/{_dm2lLNL.mjs → taicx2sd.mjs} +2 -2
  33. package/constants/index.d.ts +16 -5
  34. package/editable-tree/index.d.ts +1 -1
  35. package/editable-tree/index.mjs +1 -1
  36. package/element-dialog/index.d.ts +1 -1
  37. package/element-dialog/index.mjs +1 -1
  38. package/form-card/index.d.ts +14 -0
  39. package/form-card/index.mjs +18 -0
  40. package/form-cascader/index.d.ts +0 -14
  41. package/form-cascader/index.mjs +1 -1
  42. package/form-check-box-group/index.d.ts +0 -2
  43. package/form-check-box-group/index.mjs +1 -1
  44. package/form-checkbox/index.d.ts +36 -10
  45. package/form-checkbox/index.mjs +1 -1
  46. package/form-date-picker/index.mjs +1 -1
  47. package/form-holder/index.d.ts +2 -6
  48. package/form-holder/index.mjs +1 -1
  49. package/form-image/index.d.ts +2 -14
  50. package/form-image/index.mjs +1 -1
  51. package/form-input/index.d.ts +9 -26
  52. package/form-input/index.mjs +1 -1
  53. package/form-input-cron-expression/index.mjs +1 -1
  54. package/form-input-email/index.d.ts +9 -2
  55. package/form-input-email/index.mjs +1 -1
  56. package/form-input-id-card/index.d.ts +9 -2
  57. package/form-input-id-card/index.mjs +1 -1
  58. package/form-input-number/index.d.ts +0 -6
  59. package/form-input-number/index.mjs +1 -1
  60. package/form-input-phone-number/index.d.ts +9 -2
  61. package/form-input-phone-number/index.mjs +1 -1
  62. package/form-input-tag/index.d.ts +263 -1
  63. package/form-input-tag/index.mjs +1 -3
  64. package/form-input-time/index.d.ts +434 -1
  65. package/form-input-time/index.mjs +1 -3
  66. package/form-item-group/index.mjs +1 -1
  67. package/form-item-x/index.mjs +1 -1
  68. package/form-radio-group/index.d.ts +0 -2
  69. package/form-radio-group/index.mjs +1 -1
  70. package/form-rate/index.d.ts +0 -2
  71. package/form-rate/index.mjs +1 -1
  72. package/form-row/index.mjs +1 -1
  73. package/form-select/index.d.ts +0 -14
  74. package/form-select/index.mjs +1 -1
  75. package/form-slider/index.d.ts +1 -5
  76. package/form-slider/index.mjs +1 -1
  77. package/form-switch/index.d.ts +0 -2
  78. package/form-switch/index.mjs +1 -1
  79. package/form-text/index.mjs +1 -1
  80. package/form-textarea/index.d.ts +370 -0
  81. package/form-textarea/index.mjs +2 -0
  82. package/form-time-select/index.d.ts +319 -0
  83. package/form-time-select/index.mjs +2 -0
  84. package/helper/dictionary.mjs +1 -1
  85. package/iframe-window/index.mjs +1 -1
  86. package/index.d.ts +4 -1
  87. package/index.mjs +46 -43
  88. package/package.json +1 -1
  89. package/pageable-table/index.d.ts +0 -38
  90. package/pageable-table/index.mjs +1 -1
  91. package/table-column/index.mjs +1 -1
  92. package/table-column-def/index.mjs +1 -1
  93. package/table-view/index.mjs +6 -6
  94. package/toolbar/index.mjs +1 -1
  95. package/toolbar-button/index.mjs +1 -1
  96. package/web-types.json +1 -1
  97. package/x-input-tag/index.mjs +4 -3
  98. package/year-calendar/index.mjs +1 -1
  99. package/chunks/BLRY0zkF.mjs +0 -51
  100. package/chunks/BvsmTC3G.mjs +0 -229
  101. /package/chunks/{CnAEuI_c.mjs → ChmDDqoZ2.mjs} +0 -0
  102. /package/chunks/{BW6iY7Q7.mjs → DDmQcNm6.mjs} +0 -0
  103. /package/chunks/{DiE4GJtU.mjs → Ds_Tpa_M.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n, t as r } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./Cj59E77g.mjs";
2
+ import { n, t as r } from "./CSyJ-vEx.mjs";
3
3
  import { useDictionary as i } from "../hook/useDictionary.mjs";
4
4
  import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
5
5
  import { computed as l, createVNode as u, mergeProps as d } from "vue";
@@ -147,35 +147,18 @@ var m = {
147
147
  }, h = {
148
148
  modelValue: !0,
149
149
  readonly: !0,
150
+ disabled: !0,
150
151
  props: !0
151
- }, g = [
152
- "change",
153
- "expand-change",
154
- "blur",
155
- "focus",
156
- "clear",
157
- "visible-change",
158
- "remove-tag"
159
- ], _ = (e) => n[e] === void 0 && h[e] !== !0, v = {
152
+ }, g = (e) => n[e] === void 0 && h[e] !== !0, _ = {
160
153
  name: "FormCascader",
161
154
  props: { ...m },
162
- emits: {
163
- ...t,
164
- change: null,
165
- "expand-change": null,
166
- blur: null,
167
- focus: null,
168
- clear: null,
169
- "visible-change": null,
170
- "remove-tag": null
171
- },
172
- setup(t, { slots: n, emit: r, attrs: m }) {
173
- let { emitInput: h, render: v, placeholder: y, disabled: b, autoBind: x } = e(t, {
174
- emit: r,
175
- slots: n,
155
+ emits: { ...t },
156
+ setup(t, { emit: n, slots: r, attrs: m }) {
157
+ let { emitInput: h, render: _, placeholder: v, disabled: y, listeners: b, inputProps: x } = e(t, {
158
+ emit: n,
159
+ slots: r,
176
160
  attrs: m,
177
- events: g,
178
- predicate: _
161
+ predicate: g
179
162
  }), { dictItems: S } = i(t), C = l(() => {
180
163
  if (t.dictType) return S.value;
181
164
  if (t.options) {
@@ -193,10 +176,9 @@ var m = {
193
176
  }), T = (e) => {
194
177
  t.join && o(e) ? h(e.join(t.separator)) : h(t.last ? e[e.length - 1] : e);
195
178
  };
196
- return () => v({ vNodes: u(p, d({
179
+ return () => _({ vNodes: u(p, d(b.value, x.value, {
197
180
  style: "width: 100%",
198
- class: { "is-readonly": t.readonly }
199
- }, x.value, {
181
+ class: { "is-readonly": t.readonly },
200
182
  "model-value": w.value,
201
183
  options: C.value,
202
184
  props: {
@@ -206,11 +188,11 @@ var m = {
206
188
  emitPath: t.emitPath,
207
189
  expandTrigger: "hover"
208
190
  },
209
- disabled: b.value,
210
- placeholder: y.value,
191
+ disabled: y.value,
192
+ placeholder: v.value,
211
193
  "onUpdate:modelValue": T
212
194
  }), null) });
213
195
  }
214
196
  };
215
197
  //#endregion
216
- export { v as t };
198
+ export { _ 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 "./Cj59E77g.mjs";
2
+ import { n } from "./CSyJ-vEx.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElSwitch as o } from "element-plus/es";
5
5
  //#region src/components/form/props/switch.ts
@@ -75,25 +75,25 @@ var s = {
75
75
  type: String,
76
76
  default: ""
77
77
  }
78
- }, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
78
+ }, c = {
79
+ disabled: !0,
80
+ modelValue: !0
81
+ }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
79
82
  name: "FormSwitch",
80
83
  inheritAttrs: !1,
81
84
  props: { ...s },
82
- emits: {
83
- ...t,
84
- change: null
85
- },
85
+ emits: { ...t },
86
86
  setup(t, { emit: n, slots: s, attrs: c }) {
87
- let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
87
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
88
88
  emit: n,
89
+ attrs: c,
89
90
  slots: s,
90
- events: l,
91
- predicate: u
91
+ predicate: l
92
92
  });
93
- return () => f({ vNodes: r(o, i(m.value, c, {
94
- modelValue: d.value,
95
- "onUpdate:modelValue": (e) => d.value = e,
96
- disabled: p.value
93
+ return () => d({ vNodes: r(o, i(p.value, m.value, {
94
+ modelValue: u.value,
95
+ "onUpdate:modelValue": (e) => u.value = e,
96
+ disabled: f.value
97
97
  }), {
98
98
  "active-action": s["active-action"],
99
99
  "inactive-action": s["inactive-action"],
@@ -103,4 +103,4 @@ var s = {
103
103
  }
104
104
  };
105
105
  //#endregion
106
- export { d as t };
106
+ 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 "./Cj59E77g.mjs";
2
+ import { n } from "./CSyJ-vEx.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElCheckbox as o } from "element-plus/es";
5
5
  //#region src/components/form/props/checkbox.ts
@@ -22,8 +22,14 @@ var s = {
22
22
  Boolean,
23
23
  Object
24
24
  ],
25
- trueValue: [String, Number],
26
- falseValue: [String, Number],
25
+ trueValue: {
26
+ type: [String, Number],
27
+ default: "1"
28
+ },
29
+ falseValue: {
30
+ type: [String, Number],
31
+ default: "0"
32
+ },
27
33
  border: {
28
34
  type: Boolean,
29
35
  default: !1
@@ -46,35 +52,38 @@ var s = {
46
52
  id: String,
47
53
  ariaControls: String,
48
54
  ariaLabel: String,
49
- trueLabel: [String, Number],
50
- falseLabel: [String, Number],
55
+ trueLabel: {
56
+ type: [String, Number],
57
+ default: "1"
58
+ },
59
+ falseLabel: {
60
+ type: [String, Number],
61
+ default: "0"
62
+ },
51
63
  controls: String
52
64
  }, c = {
53
65
  modelValue: !0,
66
+ disabled: !0,
54
67
  labelValue: !0
55
- }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
68
+ }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
56
69
  name: "FormCheckbox",
57
70
  inheritAttrs: !1,
58
71
  props: { ...s },
59
- emits: {
60
- ...t,
61
- change: null
62
- },
72
+ emits: { ...t },
63
73
  setup(t, { emit: n, slots: s, attrs: c }) {
64
- let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
74
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
65
75
  emit: n,
66
76
  slots: s,
67
77
  attrs: c,
68
- events: l,
69
- predicate: u
78
+ predicate: l
70
79
  });
71
- return () => f({ vNodes: r(o, i(m.value, {
80
+ return () => d({ vNodes: r(o, i(m.value, p.value, {
72
81
  label: t.labelValue,
73
- modelValue: d.value,
74
- "onUpdate:modelValue": (e) => d.value = e,
75
- disabled: p.value
82
+ modelValue: u.value,
83
+ "onUpdate:modelValue": (e) => u.value = e,
84
+ disabled: f.value
76
85
  }), { default: s.default }) });
77
86
  }
78
87
  };
79
88
  //#endregion
80
- export { d as t };
89
+ export { u as t };