@web-utils/form-ui 1.0.0-beta50 → 1.0.0-beta52
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/{eae6huQB.mjs → B1k8ydde.mjs} +2 -2
- package/chunks/{B1IPSTA6.mjs → B75qfA0z.mjs} +2 -2
- package/chunks/{pIzhYsBe.mjs → BAw6wxW1.mjs} +2 -2
- package/chunks/{hzaYr6Ud2.mjs → BQyL45PF2.mjs} +1 -1
- package/chunks/{B9gA65rt2.mjs → BSU2FqMP2.mjs} +2 -2
- package/chunks/{Cln3RBAD.mjs → BWh6u1O0.mjs} +1 -1
- package/chunks/{DA7oGHSX.mjs → BXVB-H8_.mjs} +2 -2
- package/chunks/B_RAcbs_.mjs +108 -0
- package/chunks/{BtcjAHE6.mjs → BshE3RnA.mjs} +2 -2
- package/chunks/{CuAoMR3n.mjs → C6hLXCPk.mjs} +5 -16
- package/chunks/{vXQf89tS.mjs → C7G-cAoI.mjs} +1 -1
- package/chunks/{CAd1zK9Q.mjs → CBFbSsTJ.mjs} +2 -2
- package/chunks/CGDnQr1c.mjs +67 -0
- package/chunks/CGHcOyNC2.mjs +87 -0
- package/chunks/{ByHz4mmh.mjs → CVKPpQdS.mjs} +2 -2
- package/chunks/{BUGCiCnl.mjs → CXsoKP22.mjs} +4 -1
- package/chunks/CjRZ71IY2.mjs +512 -0
- package/chunks/CkjtCuMs.mjs +416 -0
- package/chunks/{D0Zg2CV0.mjs → CtHmTtVP.mjs} +3 -3
- package/chunks/{V2p-PCpL.mjs → CzHaJsnD.mjs} +3 -3
- package/chunks/{Dkd5BC98.mjs → D2MB3CnR.mjs} +2 -6
- package/chunks/{D_qiRmiE.mjs → D3mFJzGr.mjs} +32 -26
- package/chunks/{BbSPWDDZ.mjs → DLgFBI_X.mjs} +2 -2
- package/chunks/{BfxDxIg0.mjs → DVbw6xIr.mjs} +2 -2
- package/chunks/{kflKDW4T2.mjs → DZJ-ShZA2.mjs} +38 -39
- package/chunks/{CqoVAnxC2.mjs → DcFllKOf2.mjs} +2 -6
- package/chunks/DhVmHzB7.mjs +653 -0
- package/chunks/{6yfBZFOB.mjs → DitpKWMd.mjs} +4 -3
- package/chunks/{bFbPPcdq.mjs → DkXlFWjs.mjs} +2 -2
- package/chunks/{CxTg0r4n.mjs → Dt3lfDnL.mjs} +1 -1
- package/chunks/{BA2KEptL.mjs → GMFHxPJq.mjs} +2 -6
- package/chunks/{BqWvBF14.mjs → JKFepPeL.mjs} +2 -2
- package/chunks/{CJdkjadi.mjs → KuAMIZnG.mjs} +1 -1
- package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
- package/chunks/{wXeqV-_7.mjs → eBESsR-G.mjs} +2 -2
- package/chunks/{CabldOLo.mjs → v-O82KSn.mjs} +4 -3
- package/confirm-button/index.d.ts +9 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.d.ts +9 -2
- package/confirmable/index.mjs +1 -1
- package/constants/index.d.ts +1 -0
- package/constants/index.mjs +2 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +2 -2
- package/form-button/index.d.ts +9 -2
- package/form-cascader/index.d.ts +16 -10
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.d.ts +8 -2
- 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-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 +16 -10
- 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-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 +16 -10
- 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 +33 -33
- package/package.json +1 -1
- package/pageable-table/index.d.ts +13 -11
- package/pageable-table/index.mjs +1 -1
- package/pageable-table/style.css +1 -1
- package/sub-table/index.d.ts +36 -30
- package/sub-table/index.mjs +2 -472
- package/sub-table-plus/index.d.ts +15 -3
- 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 +6 -1
- package/table-view/index.mjs +121 -110
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +2 -2
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +1 -1
- package/chunks/B-zqRAXo.mjs +0 -69
- package/chunks/BsZgAJX_2.mjs +0 -81
- package/chunks/cqIZWDHo.mjs +0 -614
- package/chunks/gCeDFHo1.mjs +0 -32
- package/chunks/hlha6Bhc.mjs +0 -107
- package/chunks/zwXzk9ff2.mjs +0 -568
package/x-input-tag/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Dt3lfDnL.mjs";
|
|
2
2
|
import { t } from "../chunks/CkOD-_VV.mjs";
|
|
3
3
|
import { isArray as n, isDef as r, isPlainObject as i, scrollIntoView as a } from "@web-utils/core";
|
|
4
4
|
import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, nextTick as f, normalizeClass as p, openBlock as m, renderList as h, toDisplayString as g, vShow as _, withCtx as v, withDirectives as y, withKeys as b } from "vue";
|
package/chunks/B-zqRAXo.mjs
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./DcTVYqeJ.mjs";
|
|
2
|
-
import { t } from "./DOZRzqlo.mjs";
|
|
3
|
-
import { tableViewContextKey as n } from "../constants/index.mjs";
|
|
4
|
-
import { t as r } from "./BBERmTup.mjs";
|
|
5
|
-
import { createVNode as i, inject as a, mergeProps as o } from "vue";
|
|
6
|
-
import { ElTableColumn as s } from "element-plus/es";
|
|
7
|
-
//#region src/components/table/TableColumn.vue?vue&type=script&lang.jsx
|
|
8
|
-
var c = {
|
|
9
|
-
selection: !0,
|
|
10
|
-
"single-selection": !0,
|
|
11
|
-
index: !0,
|
|
12
|
-
expand: !0
|
|
13
|
-
}, l = (e, t, n, r, i) => {
|
|
14
|
-
var a;
|
|
15
|
-
let o = (e == null || (a = e.$parent) == null ? void 0 : a.rowDbClick) || (e == null ? void 0 : e.rowDbClick);
|
|
16
|
-
o == null || o(t, n, r, i);
|
|
17
|
-
}, u = (e) => {
|
|
18
|
-
let t = e.target;
|
|
19
|
-
for (; t && t.tagName.toUpperCase() !== "HTML";) {
|
|
20
|
-
if (t.tagName.toUpperCase() === "TD") return t;
|
|
21
|
-
t = t.parentNode;
|
|
22
|
-
}
|
|
23
|
-
return null;
|
|
24
|
-
}, d = () => {}, f = (t) => !e(t).length, p = {
|
|
25
|
-
name: "TableColumn",
|
|
26
|
-
props: { ...r },
|
|
27
|
-
setup(e, { slots: r, attrs: p }) {
|
|
28
|
-
let m = a(n, null);
|
|
29
|
-
return () => {
|
|
30
|
-
let { clickable: n, cellClick: a, ...h } = e, g, _ = c[e.type];
|
|
31
|
-
if (!_) {
|
|
32
|
-
let o = n || p.onClick || a;
|
|
33
|
-
(o || e.dictType || e.options) && (g = (n) => {
|
|
34
|
-
var s;
|
|
35
|
-
let { row: c, column: h } = n, g = o ? (e) => {
|
|
36
|
-
let t = u(e);
|
|
37
|
-
if (p.onClick || a) {
|
|
38
|
-
var n;
|
|
39
|
-
(n = p.onClick) == null || n.call(p, c, h, c, h, t, e), a == null || a(c, h, c, h, t, e);
|
|
40
|
-
} else l(m, c, h, t, e);
|
|
41
|
-
} : d, _ = r == null || (s = r.default) == null ? void 0 : s.call(r, n);
|
|
42
|
-
return f(_) && (_ = null), (e.dictType || e.options) && !_ ? i(t, {
|
|
43
|
-
class: { "is-clickable": o },
|
|
44
|
-
onClick: g,
|
|
45
|
-
row: c,
|
|
46
|
-
column: h,
|
|
47
|
-
dictType: e.dictType,
|
|
48
|
-
treeDict: e.treeDict,
|
|
49
|
-
idAsValue: e.idAsValue,
|
|
50
|
-
labelAsValue: e.labelAsValue,
|
|
51
|
-
options: e.options
|
|
52
|
-
}, null) : o ? i("span", {
|
|
53
|
-
class: "is-clickable",
|
|
54
|
-
onClick: g
|
|
55
|
-
}, [_ || (c == null ? void 0 : c[h == null ? void 0 : h.property])]) : _;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return i(s, o(h, {
|
|
59
|
-
key: p.filterable,
|
|
60
|
-
showOverflowTooltip: _ ? !1 : h.showOverflowTooltip
|
|
61
|
-
}), {
|
|
62
|
-
...r,
|
|
63
|
-
default: g || r.default
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
//#endregion
|
|
69
|
-
export { p as t };
|
package/chunks/BsZgAJX_2.mjs
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t } from "./D_qiRmiE.mjs";
|
|
2
|
-
import n from "../sub-table/index.mjs";
|
|
3
|
-
import { n as r, t as i } from "./gCeDFHo1.mjs";
|
|
4
|
-
import { createVNode as a, mergeProps as o, ref as s, useModel as c } from "vue";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/components/form/FormTable.vue
|
|
7
|
-
var l = {
|
|
8
|
-
name: "FormTable",
|
|
9
|
-
props: { ...i },
|
|
10
|
-
emits: {
|
|
11
|
-
...t,
|
|
12
|
-
"add-row": null
|
|
13
|
-
},
|
|
14
|
-
setup(t, { emit: i, attrs: l, slots: u }) {
|
|
15
|
-
let d = c(t, "modelValue"), f = s([]), p = (e) => {
|
|
16
|
-
f.value = e;
|
|
17
|
-
}, { render: m, placeholder: h, disabled: g, listeners: _, inputProps: v } = e(t, {
|
|
18
|
-
emit: i,
|
|
19
|
-
slots: u,
|
|
20
|
-
attrs: l,
|
|
21
|
-
predicate: r
|
|
22
|
-
});
|
|
23
|
-
return () => {
|
|
24
|
-
var e;
|
|
25
|
-
let r = {};
|
|
26
|
-
for (let n = 0; n < (((e = t.columns) == null ? void 0 : e.length) ?? 0); n++) {
|
|
27
|
-
let e = t.columns[n];
|
|
28
|
-
r[e.prop] = (t, n, r) => {
|
|
29
|
-
var i;
|
|
30
|
-
return (i = u[e.prop]) == null ? void 0 : i.call(u, t, n, r);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
return m({ vNodes: a(n, o(_.value, v.value, {
|
|
34
|
-
prop: t.prop,
|
|
35
|
-
disabled: g.value,
|
|
36
|
-
modelValue: d.value,
|
|
37
|
-
"onUpdate:modelValue": (e) => d.value = e,
|
|
38
|
-
placeholder: h.value,
|
|
39
|
-
onSelectionChange: p
|
|
40
|
-
}), {
|
|
41
|
-
...r,
|
|
42
|
-
columns: ({ columns: e }) => {
|
|
43
|
-
var t;
|
|
44
|
-
return (t = u.columns) == null ? void 0 : t.call(u, { columns: e });
|
|
45
|
-
},
|
|
46
|
-
handle: ({ add: e, remove: t }) => {
|
|
47
|
-
var n;
|
|
48
|
-
return (n = u.handle) == null ? void 0 : n.call(u, {
|
|
49
|
-
add: e,
|
|
50
|
-
remove: t
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
tag: ({ column: e, row: t, $index: n }) => {
|
|
54
|
-
var r;
|
|
55
|
-
return (r = u.tag) == null ? void 0 : r.call(u, {
|
|
56
|
-
column: e,
|
|
57
|
-
row: t,
|
|
58
|
-
$index: n
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
"handle-column-header": ({ column: e, $index: t }) => {
|
|
62
|
-
var n;
|
|
63
|
-
return (n = u["handle-column-header"]) == null ? void 0 : n.call(u, {
|
|
64
|
-
column: e,
|
|
65
|
-
index: t
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
toolbar: ({ addRow: e, delRow: t, refresh: n }) => {
|
|
69
|
-
var r;
|
|
70
|
-
return (r = u.toolbar) == null ? void 0 : r.call(u, {
|
|
71
|
-
addRow: e,
|
|
72
|
-
delRow: t,
|
|
73
|
-
refresh: n
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}) });
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
//#endregion
|
|
81
|
-
export { l as t };
|