@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.
- package/chunks/{BLWwTutr.mjs → B3ajWLh3.mjs} +15 -33
- package/chunks/{Cr1vBYne.mjs → BH_JJ8Xh.mjs} +15 -15
- package/chunks/{DistOy_O.mjs → BWBHzD5N.mjs} +28 -19
- package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
- package/chunks/{DcbnHU8K.mjs → BsCS7SB5.mjs} +19 -23
- package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
- package/chunks/C1AgOUe_.mjs +172 -0
- package/chunks/C3Uo82-I.mjs +35 -0
- package/chunks/C9dGL28n.mjs +56 -0
- package/chunks/{A3sHIRQ_.mjs → CFOGMFgo.mjs} +22 -45
- package/chunks/{ZXCLnZFa.mjs → CLPSCSsy.mjs} +111 -144
- package/chunks/{D7hD-ppq.mjs → CSyJ-vEx.mjs} +1 -1
- package/chunks/CTKmEf2M.mjs +93 -0
- package/chunks/{DFsI7Y6h.mjs → CXvGoZKJ.mjs} +12 -11
- package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
- package/chunks/Cj59E77g.mjs +230 -0
- package/chunks/Cj5h2Wda.mjs +32 -0
- package/chunks/{iWQD3xvX.mjs → CqTcEefA.mjs} +14 -16
- package/chunks/{axr9InkL.mjs → Ct5bDJ50.mjs} +9 -13
- package/chunks/{D5_ctQqL.mjs → CuG2Q-PM.mjs} +2 -2
- package/chunks/{CLn0r4lV.mjs → D8UVq1t1.mjs} +16 -17
- package/chunks/{BYAy19s4.mjs → DJe97Fgi.mjs} +2 -8
- package/chunks/{Buc52aVh.mjs → DXYgAmil.mjs} +12 -29
- package/chunks/{DQxPzCsy.mjs → DhtHh0jk.mjs} +14 -15
- package/chunks/{CGJkMYZ4.mjs → DiJyms_r.mjs} +12 -20
- package/chunks/{1cDNhlSV.mjs → TvNHGVAP.mjs} +2 -2
- package/chunks/{CNskrN5I.mjs → XCGWTz41.mjs} +2 -2
- package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
- package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
- package/chunks/{DJKE5P39.mjs → o6VhYAN52.mjs} +2 -2
- package/chunks/{BwdWZEjT.mjs → pdwFQpA8.mjs} +13 -18
- package/chunks/{_dm2lLNL.mjs → taicx2sd.mjs} +2 -2
- package/constants/index.d.ts +16 -5
- package/editable-tree/index.d.ts +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +1 -1
- package/element-dialog/index.mjs +1 -1
- package/form-card/index.d.ts +14 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +0 -14
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.d.ts +0 -2
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +36 -10
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +2 -6
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +2 -14
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +9 -26
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +9 -2
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +9 -2
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +0 -6
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +9 -2
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +263 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +434 -1
- package/form-input-time/index.mjs +1 -3
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +0 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +0 -2
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +0 -14
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +1 -5
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +0 -2
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +370 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +319 -0
- package/form-time-select/index.mjs +2 -0
- package/helper/dictionary.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.d.ts +4 -1
- package/index.mjs +46 -43
- package/package.json +1 -1
- package/pageable-table/index.d.ts +0 -38
- package/pageable-table/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +4 -3
- package/year-calendar/index.mjs +1 -1
- package/chunks/BLRY0zkF.mjs +0 -51
- package/chunks/BvsmTC3G.mjs +0 -229
- /package/chunks/{CnAEuI_c.mjs → ChmDDqoZ2.mjs} +0 -0
- /package/chunks/{BW6iY7Q7.mjs → DDmQcNm6.mjs} +0 -0
- /package/chunks/{DiE4GJtU.mjs → Ds_Tpa_M.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
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 () =>
|
|
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:
|
|
210
|
-
placeholder:
|
|
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 {
|
|
198
|
+
export { _ as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
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 = {
|
|
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
|
|
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
|
-
|
|
91
|
-
predicate: u
|
|
91
|
+
predicate: l
|
|
92
92
|
});
|
|
93
|
-
return () =>
|
|
94
|
-
modelValue:
|
|
95
|
-
"onUpdate:modelValue": (e) =>
|
|
96
|
-
disabled:
|
|
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 {
|
|
106
|
+
export { u as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
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:
|
|
26
|
-
|
|
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:
|
|
50
|
-
|
|
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 =
|
|
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
|
|
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
|
-
|
|
69
|
-
predicate: u
|
|
78
|
+
predicate: l
|
|
70
79
|
});
|
|
71
|
-
return () =>
|
|
80
|
+
return () => d({ vNodes: r(o, i(m.value, p.value, {
|
|
72
81
|
label: t.labelValue,
|
|
73
|
-
modelValue:
|
|
74
|
-
"onUpdate:modelValue": (e) =>
|
|
75
|
-
disabled:
|
|
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 {
|
|
89
|
+
export { u as t };
|