@web-utils/form-ui 1.0.0-beta51 → 1.0.0-beta53
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/{Dt3lfDnL.mjs → 7GmKqdbC.mjs} +48 -33
- package/chunks/{6yfBZFOB.mjs → 9MExJqL-.mjs} +4 -3
- package/chunks/{BQk3-Ppb2.mjs → B3yVc-P62.mjs} +38 -39
- package/chunks/{bFbPPcdq.mjs → B6yWUT6z.mjs} +2 -2
- package/chunks/BEvOkSfB.mjs +417 -0
- package/chunks/{D_qiRmiE.mjs → BHbMJZPp.mjs} +69 -62
- package/chunks/{B9gA65rt2.mjs → BJYlobMz2.mjs} +2 -2
- package/chunks/{CJdkjadi.mjs → BNXbI4OG.mjs} +1 -1
- package/chunks/{V2p-PCpL.mjs → BV-XUugQ.mjs} +3 -3
- package/chunks/B_RAcbs_.mjs +108 -0
- package/chunks/{CqVd8D222.mjs → BgTCTXs72.mjs} +4 -3
- package/chunks/{BtcjAHE6.mjs → BjGlxyi6.mjs} +2 -2
- package/chunks/{pIzhYsBe.mjs → BqC_VU52.mjs} +2 -2
- package/chunks/{eae6huQB.mjs → BqzJ6vY6.mjs} +2 -2
- package/chunks/ByTyNsWf.mjs +653 -0
- package/chunks/{BfxDxIg0.mjs → CB9QUXUX.mjs} +2 -2
- package/chunks/CGDnQr1c.mjs +67 -0
- package/chunks/{DKwp6AMl.mjs → CGuDBVCB.mjs} +4 -3
- package/chunks/{C7G-cAoI.mjs → CPvdsnRN.mjs} +1 -1
- package/chunks/{Bwbtu2cp.mjs → CgN7m-1v.mjs} +4 -3
- package/chunks/{D_Fs3bkZ.mjs → D5EQJdPL.mjs} +3 -3
- package/chunks/D7R9Or2m2.mjs +87 -0
- package/chunks/D9IFsT272.mjs +513 -0
- package/chunks/{CuAoMR3n.mjs → DFFNxlqD.mjs} +5 -16
- package/chunks/{BWh6u1O0.mjs → DWMePN6q.mjs} +1 -1
- package/chunks/{CAd1zK9Q.mjs → DawYTjoT.mjs} +2 -2
- package/chunks/{BqWvBF14.mjs → DjnHvHXo.mjs} +2 -2
- package/chunks/{CabldOLo.mjs → DwkOWXIR.mjs} +6 -5
- package/chunks/{BQyL45PF2.mjs → DyCO22Ia2.mjs} +1 -1
- package/chunks/{B1IPSTA6.mjs → Dytof5EW.mjs} +2 -2
- package/chunks/{wXeqV-_7.mjs → H70Z56YY.mjs} +9 -3
- package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
- package/chunks/{ByHz4mmh.mjs → XwerN1TU.mjs} +2 -2
- package/chunks/{DA7oGHSX.mjs → c0Niqotr.mjs} +2 -2
- package/chunks/{C2zgFLYO.mjs → oVFbZ6yk.mjs} +30 -30
- package/chunks/{BbSPWDDZ.mjs → z5FJgzdc.mjs} +4 -3
- package/constants/index.d.ts +1 -0
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +2 -2
- package/form-cascader/index.d.ts +8 -2
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.d.ts +10 -4
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +8 -2
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +8 -2
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +8 -2
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +8 -2
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +8 -2
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +8 -2
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +8 -2
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +8 -2
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +8 -2
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +8 -2
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.d.ts +8 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +8 -2
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -1
- package/form-radio-group/index.d.ts +8 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +8 -2
- package/form-rate/index.mjs +1 -1
- package/form-select/index.d.ts +8 -2
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +8 -2
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +8 -2
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +43 -25
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +8 -8
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +8 -2
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +12 -12
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +8 -2
- package/form-time-select/index.mjs +1 -1
- package/helper/sub-table-plus.d.ts +38 -0
- package/helper/sub-table-plus.mjs +4 -0
- package/index.css +1 -1
- package/index.mjs +35 -35
- package/package.json +1 -1
- package/pageable-table/index.d.ts +11 -11
- package/pageable-table/index.mjs +1 -1
- package/sub-table/index.d.ts +36 -30
- package/sub-table/index.mjs +2 -537
- package/sub-table-plus/index.d.ts +11 -2
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.d.ts +8 -5
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +14 -12
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +4 -0
- package/table-view/index.mjs +16 -8
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/toolbar-button/style.css +1 -0
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +1 -1
- package/chunks/BG8z3V9d2.mjs +0 -643
- package/chunks/BsZgAJX_2.mjs +0 -81
- package/chunks/YFiU0ngn.mjs +0 -622
- package/chunks/gCeDFHo1.mjs +0 -32
- package/chunks/hlha6Bhc.mjs +0 -107
- package/chunks/wDS9KBFw.mjs +0 -67
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { a as e, f as t } from "./DcTVYqeJ.mjs";
|
|
2
|
+
import { t as n } from "./DOZRzqlo.mjs";
|
|
3
|
+
import { cellClickHandlerContextKey as r } from "../constants/index.mjs";
|
|
4
|
+
import { n as i, t as a } from "./XoImEoke.mjs";
|
|
5
|
+
import { createVNode as o, inject as s, mergeProps as c } from "vue";
|
|
6
|
+
import { ElTableColumn as l } from "element-plus/es";
|
|
7
|
+
//#region src/components/table/TableColumn.vue?vue&type=script&lang.jsx
|
|
8
|
+
var u = {
|
|
9
|
+
selection: !0,
|
|
10
|
+
"single-selection": !0,
|
|
11
|
+
index: !0,
|
|
12
|
+
expand: !0
|
|
13
|
+
}, d = (e, t, n, r, i) => {
|
|
14
|
+
e == null || e(t, n, r, i);
|
|
15
|
+
}, f = (e) => {
|
|
16
|
+
let t = e.target;
|
|
17
|
+
for (; t && t.tagName.toUpperCase() !== "HTML";) {
|
|
18
|
+
if (t.tagName.toUpperCase() === "TD") return t;
|
|
19
|
+
t = t.parentNode;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}, p = () => {}, m = (t) => !e(t).length, h = {
|
|
23
|
+
name: "TableColumn",
|
|
24
|
+
props: { ...a },
|
|
25
|
+
setup(e, { slots: a, attrs: h }) {
|
|
26
|
+
let g = s(r, null), _ = t(e, i);
|
|
27
|
+
return () => {
|
|
28
|
+
let t, r = u[e.type];
|
|
29
|
+
if (!r) {
|
|
30
|
+
let r = e.clickable || h.onClick || e.cellClick;
|
|
31
|
+
(r || e.dictType || e.options) && (t = (t) => {
|
|
32
|
+
var i;
|
|
33
|
+
let { row: s, column: c } = t, l = r ? (t) => {
|
|
34
|
+
let n = f(t);
|
|
35
|
+
if (h.onClick || e.cellClick) {
|
|
36
|
+
var r, i;
|
|
37
|
+
(r = h.onClick) == null || r.call(h, s, c, s, c, n, t), (i = e.cellClick) == null || i.call(e, s, c, s, c, n, t);
|
|
38
|
+
} else d(g, s, c, n, t);
|
|
39
|
+
} : p, u = a == null || (i = a.default) == null ? void 0 : i.call(a, t);
|
|
40
|
+
return m(u) && (u = null), (e.dictType || e.options) && !u ? o(n, {
|
|
41
|
+
class: { "is-clickable": r },
|
|
42
|
+
onClick: l,
|
|
43
|
+
row: s,
|
|
44
|
+
column: c,
|
|
45
|
+
dictType: e.dictType,
|
|
46
|
+
treeDict: e.treeDict,
|
|
47
|
+
idAsValue: e.idAsValue,
|
|
48
|
+
labelAsValue: e.labelAsValue,
|
|
49
|
+
options: e.options
|
|
50
|
+
}, null) : r ? o("span", {
|
|
51
|
+
class: "is-clickable",
|
|
52
|
+
onClick: l
|
|
53
|
+
}, [u || (s == null ? void 0 : s[c == null ? void 0 : c.property])]) : u;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return o(l, c(_.value, {
|
|
57
|
+
key: e.filterable,
|
|
58
|
+
showOverflowTooltip: r ? !1 : e.showOverflowTooltip
|
|
59
|
+
}), {
|
|
60
|
+
...a,
|
|
61
|
+
default: t || a.default
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { h as t };
|
|
@@ -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 "./BHbMJZPp.mjs";
|
|
2
|
+
import { n, t as r } from "./BNXbI4OG.mjs";
|
|
3
3
|
import { createVNode as i, mergeProps as a } from "vue";
|
|
4
4
|
import { ElTimePicker as o } from "element-plus/es";
|
|
5
5
|
//#region src/components/form/props/time.ts
|
|
@@ -134,7 +134,8 @@ var s = {
|
|
|
134
134
|
step: !0,
|
|
135
135
|
minTime: !0,
|
|
136
136
|
maxTime: !0,
|
|
137
|
-
selectableRange: !0
|
|
137
|
+
selectableRange: !0,
|
|
138
|
+
valueOnClear: !0
|
|
138
139
|
}, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
|
|
139
140
|
name: "FormInputTime",
|
|
140
141
|
inheritAttrs: !1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./7GmKqdbC.mjs";
|
|
2
2
|
import { t } from "./CkOD-_VV.mjs";
|
|
3
3
|
import { copy as n } from "@web-utils/core";
|
|
4
4
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, openBlock as u, renderList as d, toDisplayString as f, withCtx as p } from "vue";
|
|
@@ -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 "./BHbMJZPp.mjs";
|
|
2
|
+
import { n, t as r } from "./BNXbI4OG.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";
|
|
@@ -144,7 +144,8 @@ var m = {
|
|
|
144
144
|
modelValue: !0,
|
|
145
145
|
readonly: !0,
|
|
146
146
|
disabled: !0,
|
|
147
|
-
props: !0
|
|
147
|
+
props: !0,
|
|
148
|
+
valueOnClear: !0
|
|
148
149
|
}, g = (e) => n[e] === void 0 && h[e] !== !0, _ = {
|
|
149
150
|
name: "FormCascader",
|
|
150
151
|
props: { ...m },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
3
|
-
import { t as i } from "./
|
|
1
|
+
import { i as e, n as t } from "./BHbMJZPp.mjs";
|
|
2
|
+
import { n, t as r } from "./BNXbI4OG.mjs";
|
|
3
|
+
import { t as i } from "./CPvdsnRN.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o, ref as s } from "vue";
|
|
5
5
|
import { ElInput as c, ElPopover as l } from "element-plus/es";
|
|
6
6
|
//#region src/components/form/props/input-cron.ts
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { i as e, n as t } from "./BHbMJZPp.mjs";
|
|
2
|
+
import { n, t as r } from "./BNXbI4OG.mjs";
|
|
3
|
+
import { n as i, t as a } from "./BEvOkSfB.mjs";
|
|
4
|
+
import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
|
|
5
|
+
//#region src/components/table/form-table.ts
|
|
6
|
+
var u = {
|
|
7
|
+
...n,
|
|
8
|
+
...r,
|
|
9
|
+
...i
|
|
10
|
+
}, d = {
|
|
11
|
+
modelValue: !0,
|
|
12
|
+
block: !0
|
|
13
|
+
}, f = (e) => n[e] === void 0 && d[e] !== !0, p = {
|
|
14
|
+
name: "FormTable",
|
|
15
|
+
props: { ...u },
|
|
16
|
+
emits: {
|
|
17
|
+
...t,
|
|
18
|
+
"add-row": null
|
|
19
|
+
},
|
|
20
|
+
setup(t, { emit: n, attrs: r, slots: i }) {
|
|
21
|
+
let u = l(t, "modelValue"), d = c([]), p = (e) => {
|
|
22
|
+
d.value = e;
|
|
23
|
+
}, { render: m, placeholder: h, disabled: g, listeners: _, inputProps: v } = e(t, {
|
|
24
|
+
emit: n,
|
|
25
|
+
slots: i,
|
|
26
|
+
attrs: r,
|
|
27
|
+
predicate: f,
|
|
28
|
+
block: t.block === void 0 ? !0 : t.block
|
|
29
|
+
});
|
|
30
|
+
return () => {
|
|
31
|
+
var e;
|
|
32
|
+
let n = {};
|
|
33
|
+
for (let r = 0; r < (((e = t.columns) == null ? void 0 : e.length) ?? 0); r++) {
|
|
34
|
+
let e = t.columns[r];
|
|
35
|
+
n[e.prop] = (t, n, r) => {
|
|
36
|
+
var a;
|
|
37
|
+
return (a = i[e.prop]) == null ? void 0 : a.call(i, t, n, r);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return m({ vNodes: o(a, s(_.value, v.value, {
|
|
41
|
+
disabled: g.value,
|
|
42
|
+
modelValue: u.value,
|
|
43
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
44
|
+
placeholder: h.value,
|
|
45
|
+
onSelectionChange: p
|
|
46
|
+
}), {
|
|
47
|
+
...n,
|
|
48
|
+
columns: ({ columns: e }) => {
|
|
49
|
+
var t;
|
|
50
|
+
return (t = i.columns) == null ? void 0 : t.call(i, { columns: e });
|
|
51
|
+
},
|
|
52
|
+
handle: ({ add: e, remove: t }) => {
|
|
53
|
+
var n;
|
|
54
|
+
return (n = i.handle) == null ? void 0 : n.call(i, {
|
|
55
|
+
add: e,
|
|
56
|
+
remove: t
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
tag: ({ column: e, row: t, $index: n }) => {
|
|
60
|
+
var r;
|
|
61
|
+
return (r = i.tag) == null ? void 0 : r.call(i, {
|
|
62
|
+
column: e,
|
|
63
|
+
row: t,
|
|
64
|
+
$index: n
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
"handle-column-header": ({ column: e, $index: t }) => {
|
|
68
|
+
var n;
|
|
69
|
+
return (n = i["handle-column-header"]) == null ? void 0 : n.call(i, {
|
|
70
|
+
column: e,
|
|
71
|
+
index: t
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
toolbar: ({ addRow: e, delRow: t, refresh: n }) => {
|
|
75
|
+
var r;
|
|
76
|
+
return (r = i.toolbar) == null ? void 0 : r.call(i, {
|
|
77
|
+
addRow: e,
|
|
78
|
+
delRow: t,
|
|
79
|
+
refresh: n
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}) });
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { p as t };
|