@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.
Files changed (119) hide show
  1. package/chunks/{Dt3lfDnL.mjs → 7GmKqdbC.mjs} +48 -33
  2. package/chunks/{6yfBZFOB.mjs → 9MExJqL-.mjs} +4 -3
  3. package/chunks/{BQk3-Ppb2.mjs → B3yVc-P62.mjs} +38 -39
  4. package/chunks/{bFbPPcdq.mjs → B6yWUT6z.mjs} +2 -2
  5. package/chunks/BEvOkSfB.mjs +417 -0
  6. package/chunks/{D_qiRmiE.mjs → BHbMJZPp.mjs} +69 -62
  7. package/chunks/{B9gA65rt2.mjs → BJYlobMz2.mjs} +2 -2
  8. package/chunks/{CJdkjadi.mjs → BNXbI4OG.mjs} +1 -1
  9. package/chunks/{V2p-PCpL.mjs → BV-XUugQ.mjs} +3 -3
  10. package/chunks/B_RAcbs_.mjs +108 -0
  11. package/chunks/{CqVd8D222.mjs → BgTCTXs72.mjs} +4 -3
  12. package/chunks/{BtcjAHE6.mjs → BjGlxyi6.mjs} +2 -2
  13. package/chunks/{pIzhYsBe.mjs → BqC_VU52.mjs} +2 -2
  14. package/chunks/{eae6huQB.mjs → BqzJ6vY6.mjs} +2 -2
  15. package/chunks/ByTyNsWf.mjs +653 -0
  16. package/chunks/{BfxDxIg0.mjs → CB9QUXUX.mjs} +2 -2
  17. package/chunks/CGDnQr1c.mjs +67 -0
  18. package/chunks/{DKwp6AMl.mjs → CGuDBVCB.mjs} +4 -3
  19. package/chunks/{C7G-cAoI.mjs → CPvdsnRN.mjs} +1 -1
  20. package/chunks/{Bwbtu2cp.mjs → CgN7m-1v.mjs} +4 -3
  21. package/chunks/{D_Fs3bkZ.mjs → D5EQJdPL.mjs} +3 -3
  22. package/chunks/D7R9Or2m2.mjs +87 -0
  23. package/chunks/D9IFsT272.mjs +513 -0
  24. package/chunks/{CuAoMR3n.mjs → DFFNxlqD.mjs} +5 -16
  25. package/chunks/{BWh6u1O0.mjs → DWMePN6q.mjs} +1 -1
  26. package/chunks/{CAd1zK9Q.mjs → DawYTjoT.mjs} +2 -2
  27. package/chunks/{BqWvBF14.mjs → DjnHvHXo.mjs} +2 -2
  28. package/chunks/{CabldOLo.mjs → DwkOWXIR.mjs} +6 -5
  29. package/chunks/{BQyL45PF2.mjs → DyCO22Ia2.mjs} +1 -1
  30. package/chunks/{B1IPSTA6.mjs → Dytof5EW.mjs} +2 -2
  31. package/chunks/{wXeqV-_7.mjs → H70Z56YY.mjs} +9 -3
  32. package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
  33. package/chunks/{ByHz4mmh.mjs → XwerN1TU.mjs} +2 -2
  34. package/chunks/{DA7oGHSX.mjs → c0Niqotr.mjs} +2 -2
  35. package/chunks/{C2zgFLYO.mjs → oVFbZ6yk.mjs} +30 -30
  36. package/chunks/{BbSPWDDZ.mjs → z5FJgzdc.mjs} +4 -3
  37. package/constants/index.d.ts +1 -0
  38. package/editable-tree/index.mjs +1 -1
  39. package/element-dialog/index.d.ts +2 -2
  40. package/form-cascader/index.d.ts +8 -2
  41. package/form-cascader/index.mjs +1 -1
  42. package/form-checkbox/index.d.ts +10 -4
  43. package/form-checkbox/index.mjs +1 -1
  44. package/form-checkbox-group/index.d.ts +8 -2
  45. package/form-checkbox-group/index.mjs +1 -1
  46. package/form-date-picker/index.d.ts +8 -2
  47. package/form-date-picker/index.mjs +1 -1
  48. package/form-holder/index.mjs +1 -1
  49. package/form-image/index.d.ts +8 -2
  50. package/form-image/index.mjs +1 -1
  51. package/form-input/index.d.ts +8 -2
  52. package/form-input/index.mjs +1 -1
  53. package/form-input-cron-expression/index.d.ts +8 -2
  54. package/form-input-cron-expression/index.mjs +1 -1
  55. package/form-input-email/index.d.ts +8 -2
  56. package/form-input-email/index.mjs +1 -1
  57. package/form-input-id-card/index.d.ts +8 -2
  58. package/form-input-id-card/index.mjs +1 -1
  59. package/form-input-number/index.d.ts +8 -2
  60. package/form-input-number/index.mjs +1 -1
  61. package/form-input-phone-number/index.d.ts +8 -2
  62. package/form-input-phone-number/index.mjs +1 -1
  63. package/form-input-tag/index.d.ts +8 -2
  64. package/form-input-tag/index.mjs +1 -1
  65. package/form-input-time/index.d.ts +8 -2
  66. package/form-input-time/index.mjs +1 -1
  67. package/form-item-group/index.mjs +1 -1
  68. package/form-item-x/index.d.ts +8 -2
  69. package/form-item-x/index.mjs +1 -1
  70. package/form-item-x/style.css +1 -1
  71. package/form-radio-group/index.d.ts +8 -2
  72. package/form-radio-group/index.mjs +1 -1
  73. package/form-rate/index.d.ts +8 -2
  74. package/form-rate/index.mjs +1 -1
  75. package/form-select/index.d.ts +8 -2
  76. package/form-select/index.mjs +1 -1
  77. package/form-slider/index.d.ts +8 -2
  78. package/form-slider/index.mjs +1 -1
  79. package/form-switch/index.d.ts +8 -2
  80. package/form-switch/index.mjs +1 -1
  81. package/form-table/index.d.ts +43 -25
  82. package/form-table/index.mjs +1 -1
  83. package/form-table-plus/index.d.ts +8 -8
  84. package/form-table-plus/index.mjs +1 -1
  85. package/form-text/index.d.ts +8 -2
  86. package/form-text/index.mjs +1 -1
  87. package/form-textarea/index.d.ts +12 -12
  88. package/form-textarea/index.mjs +1 -1
  89. package/form-time-select/index.d.ts +8 -2
  90. package/form-time-select/index.mjs +1 -1
  91. package/helper/sub-table-plus.d.ts +38 -0
  92. package/helper/sub-table-plus.mjs +4 -0
  93. package/index.css +1 -1
  94. package/index.mjs +35 -35
  95. package/package.json +1 -1
  96. package/pageable-table/index.d.ts +11 -11
  97. package/pageable-table/index.mjs +1 -1
  98. package/sub-table/index.d.ts +36 -30
  99. package/sub-table/index.mjs +2 -537
  100. package/sub-table-plus/index.d.ts +11 -2
  101. package/sub-table-plus/index.mjs +1 -1
  102. package/table-column/index.d.ts +8 -5
  103. package/table-column/index.mjs +1 -1
  104. package/table-column-def/index.d.ts +14 -12
  105. package/table-column-def/index.mjs +1 -1
  106. package/table-view/index.d.ts +4 -0
  107. package/table-view/index.mjs +16 -8
  108. package/toolbar/index.mjs +1 -1
  109. package/toolbar-button/index.mjs +1 -1
  110. package/toolbar-button/style.css +1 -0
  111. package/vue-cron/index.mjs +1 -1
  112. package/web-types.json +1 -1
  113. package/x-input-tag/index.mjs +1 -1
  114. package/chunks/BG8z3V9d2.mjs +0 -643
  115. package/chunks/BsZgAJX_2.mjs +0 -81
  116. package/chunks/YFiU0ngn.mjs +0 -622
  117. package/chunks/gCeDFHo1.mjs +0 -32
  118. package/chunks/hlha6Bhc.mjs +0 -107
  119. package/chunks/wDS9KBFw.mjs +0 -67
@@ -1,32 +0,0 @@
1
- import { n as e, t } from "./CJdkjadi.mjs";
2
- //#region src/components/table/form-table.ts
3
- var n = {
4
- ...e,
5
- ...t,
6
- modelValue: Array,
7
- columns: Array,
8
- allowEmpty: Boolean,
9
- handleColumn: {
10
- type: Boolean,
11
- default: !0
12
- },
13
- block: {
14
- type: Boolean,
15
- default: !0
16
- },
17
- editable: Boolean,
18
- showHandleColumnAddButton: {
19
- type: Boolean,
20
- default: !0
21
- },
22
- showEmptyAddButton: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- status: {
27
- type: [Number, String],
28
- default: ""
29
- }
30
- }, r = { readonly: !0 }, i = (t) => e[t] === void 0 && r[t] !== !0;
31
- //#endregion
32
- export { i as n, n as t };
@@ -1,107 +0,0 @@
1
- import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants/index.mjs";
2
- import n from "../empty-view/index.mjs";
3
- import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, toRefs as g, useTemplateRef as _, vShow as v, watchEffect as y, withDirectives as b } from "vue";
4
- import { ElCol as x, ElCollapseTransition as S } from "element-plus";
5
- import { ElRow as C } from "element-plus/es";
6
- //#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
7
- function w(e) {
8
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
9
- }
10
- //#endregion
11
- //#region src/components/form/FormItemGroup.vue
12
- var T = {
13
- name: "FormItemGroup",
14
- props: {
15
- blockTitle: String,
16
- tips: String,
17
- active: Boolean,
18
- enabled: {
19
- type: Boolean,
20
- default: void 0
21
- },
22
- disabled: {
23
- type: Boolean,
24
- default: void 0
25
- },
26
- tag: {
27
- type: String,
28
- default: "ElCol"
29
- },
30
- span: {
31
- type: Number,
32
- default: 24
33
- },
34
- block: {
35
- type: Boolean,
36
- default: !0
37
- },
38
- wrapRow: {
39
- type: Boolean,
40
- default: !0
41
- },
42
- gutter: {
43
- type: Number,
44
- default: 20
45
- },
46
- collapse: Boolean,
47
- showTitle: {
48
- type: Boolean,
49
- default: !0
50
- },
51
- notDispatch: Boolean
52
- },
53
- setup(l, { expose: T, slots: E }) {
54
- let D = c(t, null), O = _("root"), k = m(!0), A = h(() => l.enabled), j = h(() => l.disabled), M = i(() => l.enabled === !0 ? !1 : l.disabled === !0), N = i(() => l.tag === "ElCol"), P = () => k.value = !k.value, F = p({
55
- el: h(() => N.value ? O.value.$el : O.value),
56
- disabled: j,
57
- enabled: A,
58
- isDisabled: M,
59
- open: () => {
60
- k.value = !0;
61
- },
62
- expand: k,
63
- ...g(l)
64
- });
65
- return y(() => {
66
- k.value = !l.collapse;
67
- }), f(e, F), d(() => {
68
- l.notDispatch || D == null || D.addGroup(F);
69
- }), u(() => {
70
- l.notDispatch || D == null || D.removeGroup(F);
71
- }), T(F), () => {
72
- let e = () => {
73
- var e;
74
- return o(r, null, [b(o("div", {
75
- class: "form-item-group-title",
76
- onClick: P
77
- }, [o("span", {
78
- class: "flex-item",
79
- style: "flex: 1"
80
- }, [
81
- E.title ? E.title() : l.blockTitle,
82
- E.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
83
- a("("),
84
- E.tips ? E.tips() : l.tips,
85
- a(")")
86
- ]) : null,
87
- (e = E["title-right"]) == null ? void 0 : e.call(E)
88
- ]), o("i", { class: k.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[v, l.showTitle]]), o(S, null, { default: () => {
89
- let e;
90
- return E.default ? l.wrapRow ? b(o(C, { gutter: l.gutter }, w(e = E.default()) ? e : { default: () => [e] }), [[v, k.value]]) : b(o("div", null, [E.default()]), [[v, k.value]]) : b(o(n, {
91
- "font-size": "14px",
92
- "empty-tips": "暂无信息"
93
- }, null), [[v, k.value]]);
94
- } })]);
95
- }, t = {
96
- ref: "root",
97
- class: ["form-item-group", {
98
- "default-active": l.active,
99
- "is-disabled": M.value
100
- }]
101
- };
102
- return N.value && (t.span = l.block ? 24 : l.span), s(N.value ? x : "div", t, N.value ? e : e());
103
- };
104
- }
105
- };
106
- //#endregion
107
- export { T as t };
@@ -1,67 +0,0 @@
1
- import { a as e } from "./DcTVYqeJ.mjs";
2
- import { t } from "./DOZRzqlo.mjs";
3
- import { cellClickHandlerContextKey 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
- e == null || e(t, n, r, i);
15
- }, u = (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
- }, d = () => {}, f = (t) => !e(t).length, p = {
23
- name: "TableColumn",
24
- props: { ...r },
25
- setup(e, { slots: r, attrs: p }) {
26
- let m = a(n, null);
27
- return () => {
28
- let { clickable: n, cellClick: a, ...h } = e, g, _ = c[e.type];
29
- if (!_) {
30
- let o = n || p.onClick || a;
31
- (o || e.dictType || e.options) && (g = (n) => {
32
- var s;
33
- let { row: c, column: h } = n, g = o ? (e) => {
34
- let t = u(e);
35
- if (p.onClick || a) {
36
- var n;
37
- (n = p.onClick) == null || n.call(p, c, h, c, h, t, e), a == null || a(c, h, c, h, t, e);
38
- } else l(m, c, h, t, e);
39
- } : d, _ = r == null || (s = r.default) == null ? void 0 : s.call(r, n);
40
- return f(_) && (_ = null), (e.dictType || e.options) && !_ ? i(t, {
41
- class: { "is-clickable": o },
42
- onClick: g,
43
- row: c,
44
- column: h,
45
- dictType: e.dictType,
46
- treeDict: e.treeDict,
47
- idAsValue: e.idAsValue,
48
- labelAsValue: e.labelAsValue,
49
- options: e.options
50
- }, null) : o ? i("span", {
51
- class: "is-clickable",
52
- onClick: g
53
- }, [_ || (c == null ? void 0 : c[h == null ? void 0 : h.property])]) : _;
54
- });
55
- }
56
- return i(s, o(h, {
57
- key: p.filterable,
58
- showOverflowTooltip: _ ? !1 : h.showOverflowTooltip
59
- }), {
60
- ...r,
61
- default: g || r.default
62
- });
63
- };
64
- }
65
- };
66
- //#endregion
67
- export { p as t };