@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.
Files changed (124) hide show
  1. package/chunks/{eae6huQB.mjs → B1k8ydde.mjs} +2 -2
  2. package/chunks/{B1IPSTA6.mjs → B75qfA0z.mjs} +2 -2
  3. package/chunks/{pIzhYsBe.mjs → BAw6wxW1.mjs} +2 -2
  4. package/chunks/{hzaYr6Ud2.mjs → BQyL45PF2.mjs} +1 -1
  5. package/chunks/{B9gA65rt2.mjs → BSU2FqMP2.mjs} +2 -2
  6. package/chunks/{Cln3RBAD.mjs → BWh6u1O0.mjs} +1 -1
  7. package/chunks/{DA7oGHSX.mjs → BXVB-H8_.mjs} +2 -2
  8. package/chunks/B_RAcbs_.mjs +108 -0
  9. package/chunks/{BtcjAHE6.mjs → BshE3RnA.mjs} +2 -2
  10. package/chunks/{CuAoMR3n.mjs → C6hLXCPk.mjs} +5 -16
  11. package/chunks/{vXQf89tS.mjs → C7G-cAoI.mjs} +1 -1
  12. package/chunks/{CAd1zK9Q.mjs → CBFbSsTJ.mjs} +2 -2
  13. package/chunks/CGDnQr1c.mjs +67 -0
  14. package/chunks/CGHcOyNC2.mjs +87 -0
  15. package/chunks/{ByHz4mmh.mjs → CVKPpQdS.mjs} +2 -2
  16. package/chunks/{BUGCiCnl.mjs → CXsoKP22.mjs} +4 -1
  17. package/chunks/CjRZ71IY2.mjs +512 -0
  18. package/chunks/CkjtCuMs.mjs +416 -0
  19. package/chunks/{D0Zg2CV0.mjs → CtHmTtVP.mjs} +3 -3
  20. package/chunks/{V2p-PCpL.mjs → CzHaJsnD.mjs} +3 -3
  21. package/chunks/{Dkd5BC98.mjs → D2MB3CnR.mjs} +2 -6
  22. package/chunks/{D_qiRmiE.mjs → D3mFJzGr.mjs} +32 -26
  23. package/chunks/{BbSPWDDZ.mjs → DLgFBI_X.mjs} +2 -2
  24. package/chunks/{BfxDxIg0.mjs → DVbw6xIr.mjs} +2 -2
  25. package/chunks/{kflKDW4T2.mjs → DZJ-ShZA2.mjs} +38 -39
  26. package/chunks/{CqoVAnxC2.mjs → DcFllKOf2.mjs} +2 -6
  27. package/chunks/DhVmHzB7.mjs +653 -0
  28. package/chunks/{6yfBZFOB.mjs → DitpKWMd.mjs} +4 -3
  29. package/chunks/{bFbPPcdq.mjs → DkXlFWjs.mjs} +2 -2
  30. package/chunks/{CxTg0r4n.mjs → Dt3lfDnL.mjs} +1 -1
  31. package/chunks/{BA2KEptL.mjs → GMFHxPJq.mjs} +2 -6
  32. package/chunks/{BqWvBF14.mjs → JKFepPeL.mjs} +2 -2
  33. package/chunks/{CJdkjadi.mjs → KuAMIZnG.mjs} +1 -1
  34. package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
  35. package/chunks/{wXeqV-_7.mjs → eBESsR-G.mjs} +2 -2
  36. package/chunks/{CabldOLo.mjs → v-O82KSn.mjs} +4 -3
  37. package/confirm-button/index.d.ts +9 -2
  38. package/confirm-button/index.mjs +1 -1
  39. package/confirmable/index.d.ts +9 -2
  40. package/confirmable/index.mjs +1 -1
  41. package/constants/index.d.ts +1 -0
  42. package/constants/index.mjs +2 -2
  43. package/editable-tree/index.mjs +1 -1
  44. package/element-dialog/index.d.ts +2 -2
  45. package/form-button/index.d.ts +9 -2
  46. package/form-cascader/index.d.ts +16 -10
  47. package/form-cascader/index.mjs +1 -1
  48. package/form-checkbox/index.d.ts +8 -2
  49. package/form-checkbox/index.mjs +1 -1
  50. package/form-checkbox-group/index.d.ts +8 -2
  51. package/form-checkbox-group/index.mjs +1 -1
  52. package/form-date-picker/index.d.ts +8 -2
  53. package/form-date-picker/index.mjs +1 -1
  54. package/form-image/index.d.ts +8 -2
  55. package/form-image/index.mjs +1 -1
  56. package/form-input/index.d.ts +8 -2
  57. package/form-input/index.mjs +1 -1
  58. package/form-input-cron-expression/index.d.ts +8 -2
  59. package/form-input-cron-expression/index.mjs +1 -1
  60. package/form-input-email/index.d.ts +8 -2
  61. package/form-input-email/index.mjs +1 -1
  62. package/form-input-id-card/index.d.ts +8 -2
  63. package/form-input-id-card/index.mjs +1 -1
  64. package/form-input-number/index.d.ts +8 -2
  65. package/form-input-number/index.mjs +1 -1
  66. package/form-input-phone-number/index.d.ts +8 -2
  67. package/form-input-phone-number/index.mjs +1 -1
  68. package/form-input-tag/index.d.ts +8 -2
  69. package/form-input-tag/index.mjs +1 -1
  70. package/form-input-time/index.d.ts +16 -10
  71. package/form-input-time/index.mjs +1 -1
  72. package/form-item-group/index.mjs +1 -1
  73. package/form-item-x/index.d.ts +8 -2
  74. package/form-item-x/index.mjs +1 -1
  75. package/form-radio-group/index.d.ts +8 -2
  76. package/form-radio-group/index.mjs +1 -1
  77. package/form-rate/index.d.ts +8 -2
  78. package/form-rate/index.mjs +1 -1
  79. package/form-select/index.d.ts +8 -2
  80. package/form-select/index.mjs +1 -1
  81. package/form-slider/index.d.ts +8 -2
  82. package/form-slider/index.mjs +1 -1
  83. package/form-switch/index.d.ts +8 -2
  84. package/form-switch/index.mjs +1 -1
  85. package/form-table/index.d.ts +43 -25
  86. package/form-table/index.mjs +1 -1
  87. package/form-table-plus/index.d.ts +8 -8
  88. package/form-table-plus/index.mjs +1 -1
  89. package/form-text/index.d.ts +8 -2
  90. package/form-text/index.mjs +1 -1
  91. package/form-textarea/index.d.ts +12 -12
  92. package/form-textarea/index.mjs +1 -1
  93. package/form-time-select/index.d.ts +16 -10
  94. package/form-time-select/index.mjs +1 -1
  95. package/helper/sub-table-plus.d.ts +38 -0
  96. package/helper/sub-table-plus.mjs +4 -0
  97. package/index.css +1 -1
  98. package/index.mjs +33 -33
  99. package/package.json +1 -1
  100. package/pageable-table/index.d.ts +13 -11
  101. package/pageable-table/index.mjs +1 -1
  102. package/pageable-table/style.css +1 -1
  103. package/sub-table/index.d.ts +36 -30
  104. package/sub-table/index.mjs +2 -472
  105. package/sub-table-plus/index.d.ts +15 -3
  106. package/sub-table-plus/index.mjs +1 -1
  107. package/table-column/index.d.ts +8 -5
  108. package/table-column/index.mjs +1 -1
  109. package/table-column-def/index.d.ts +14 -12
  110. package/table-column-def/index.mjs +1 -1
  111. package/table-view/index.d.ts +6 -1
  112. package/table-view/index.mjs +121 -110
  113. package/toolbar/index.mjs +1 -1
  114. package/toolbar-button/index.d.ts +2 -2
  115. package/toolbar-button/index.mjs +1 -1
  116. package/vue-cron/index.mjs +1 -1
  117. package/web-types.json +1 -1
  118. package/x-input-tag/index.mjs +1 -1
  119. package/chunks/B-zqRAXo.mjs +0 -69
  120. package/chunks/BsZgAJX_2.mjs +0 -81
  121. package/chunks/cqIZWDHo.mjs +0 -614
  122. package/chunks/gCeDFHo1.mjs +0 -32
  123. package/chunks/hlha6Bhc.mjs +0 -107
  124. package/chunks/zwXzk9ff2.mjs +0 -568
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/CxTg0r4n.mjs";
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";
@@ -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 };
@@ -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 };