@web-utils/form-ui 1.0.0-beta56 → 1.0.0-beta57

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 (153) hide show
  1. package/chunks/-qKZw-3p2.mjs +23 -0
  2. package/chunks/{B3A-CnYr.mjs → 33G2_TH8.mjs} +4 -4
  3. package/chunks/{gLPy4Sus.mjs → 8P-OAGbj.mjs} +1 -1
  4. package/chunks/B2PuSZ_F.mjs +35 -0
  5. package/chunks/B6B-rhhB.mjs +37 -0
  6. package/chunks/{C7Mak2La.mjs → BHT38Us-.mjs} +7 -6
  7. package/chunks/BWoKh6f6.mjs +66 -0
  8. package/chunks/{Dt_s96gL2.mjs → BXrA0SYn2.mjs} +2 -2
  9. package/chunks/BZ0v5mka.mjs +30 -0
  10. package/chunks/CE1uX9hJ.mjs +95 -0
  11. package/chunks/CGnOR2gn.mjs +59 -0
  12. package/chunks/CJ1-f8sg.mjs +30 -0
  13. package/chunks/{5KomemiE2.mjs → CUq3MOiQ2.mjs} +29 -29
  14. package/chunks/CdzoVG6J.mjs +47 -0
  15. package/chunks/{BZTAuJxn2.mjs → CqoMZ9Wo2.mjs} +1 -1
  16. package/chunks/CrQmTHMA.mjs +105 -0
  17. package/chunks/Crh2RUrS.mjs +106 -0
  18. package/chunks/DBUJ7Bva.mjs +56 -0
  19. package/chunks/DB_UKPay.mjs +27 -0
  20. package/chunks/{BvKUeniN.mjs → DEC2O0q-.mjs} +46 -44
  21. package/chunks/{BoJgSMkL.mjs → DUhF8YOY.mjs} +2 -2
  22. package/chunks/Du1PslcN.mjs +28 -0
  23. package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
  24. package/chunks/EAJCsX8W.mjs +32 -0
  25. package/chunks/{Bq62m7IR2.mjs → T4GdQtY8.mjs} +11 -11
  26. package/chunks/ZFJ73RWd2.mjs +29 -0
  27. package/chunks/{D2B9Y3oT.mjs → fmIV_kHp.mjs} +2 -2
  28. package/chunks/h5488Kii.mjs +27 -0
  29. package/chunks/k3cC9SGC.mjs +27 -0
  30. package/chunks/{CauzhVSa2.mjs → rJWvEBq9.mjs} +12 -12
  31. package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
  32. package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
  33. package/chunks/vd9nXj8B.mjs +59 -0
  34. package/chunks/{g8MIBMw92.mjs → ztBRZQwM.mjs} +13 -13
  35. package/confirm-button/index.mjs +1 -1
  36. package/confirmable/index.mjs +1 -1
  37. package/editable-tree/index.mjs +591 -2
  38. package/element-dialog/index.mjs +1 -1
  39. package/element-resize-observer/index.mjs +1 -1
  40. package/form-cascader/index.mjs +1 -1
  41. package/form-checkbox/index.mjs +1 -1
  42. package/form-checkbox-group/index.mjs +1 -1
  43. package/form-date-picker/index.mjs +1 -1
  44. package/form-holder/index.mjs +1 -1
  45. package/form-image/index.mjs +1 -1
  46. package/form-input/index.mjs +1 -1
  47. package/form-input-cron-expression/index.mjs +1 -1
  48. package/form-input-email/index.mjs +1 -1
  49. package/form-input-id-card/index.mjs +1 -1
  50. package/form-input-number/index.mjs +1 -1
  51. package/form-input-phone-number/index.mjs +1 -1
  52. package/form-input-tag/index.mjs +1 -1
  53. package/form-input-time/index.mjs +1 -1
  54. package/form-item-group/index.mjs +1 -1
  55. package/form-item-x/index.mjs +1 -1
  56. package/form-radio-group/index.mjs +1 -1
  57. package/form-rate/index.mjs +1 -1
  58. package/form-row/index.mjs +1 -1
  59. package/form-select/index.mjs +1 -1
  60. package/form-slider/index.mjs +1 -1
  61. package/form-switch/index.mjs +1 -1
  62. package/form-table/index.mjs +1 -1
  63. package/form-table-plus/index.mjs +1 -1
  64. package/form-text/index.mjs +1 -1
  65. package/form-textarea/index.mjs +1 -1
  66. package/form-time-select/index.mjs +1 -1
  67. package/helper/dictionary.mjs +1 -1
  68. package/helper/form-item.d.ts +1 -1
  69. package/helper/form-item.mjs +27 -2
  70. package/helper/input.mjs +1 -1
  71. package/iframe-window/index.mjs +1 -1
  72. package/index.mjs +37 -37
  73. package/package.json +1 -1
  74. package/pageable-table/index.mjs +1 -1
  75. package/props/cascader.d.ts +326 -0
  76. package/{chunks/Czz_49pC.mjs → props/cascader.mjs} +8 -58
  77. package/props/checkbox-group.d.ts +213 -0
  78. package/props/checkbox-group.mjs +83 -0
  79. package/props/checkbox.d.ts +202 -0
  80. package/props/checkbox.mjs +71 -0
  81. package/props/col.d.ts +74 -0
  82. package/props/col.mjs +32 -0
  83. package/props/common.d.ts +114 -0
  84. package/props/common.mjs +18 -0
  85. package/props/date.d.ts +339 -0
  86. package/props/date.mjs +145 -0
  87. package/props/form-item.d.ts +144 -0
  88. package/props/form-item.mjs +73 -0
  89. package/props/form.d.ts +157 -0
  90. package/props/form.mjs +89 -0
  91. package/props/image.d.ts +102 -0
  92. package/props/image.mjs +10 -0
  93. package/props/input-cron.d.ts +102 -0
  94. package/props/input-cron.mjs +16 -0
  95. package/props/input-number.d.ts +216 -0
  96. package/props/input-number.mjs +72 -0
  97. package/props/input-tag.d.ts +123 -0
  98. package/props/input-tag.mjs +33 -0
  99. package/props/input.d.ts +299 -0
  100. package/props/input.mjs +97 -0
  101. package/props/radio-group.d.ts +205 -0
  102. package/props/radio-group.mjs +84 -0
  103. package/props/rate.d.ts +211 -0
  104. package/{chunks/D0kIhzQo.mjs → props/rate.mjs} +7 -28
  105. package/props/select.d.ts +450 -0
  106. package/props/select.mjs +218 -0
  107. package/props/slide.d.ts +235 -0
  108. package/{chunks/DZrQmH9Y.mjs → props/slide.mjs} +7 -28
  109. package/props/switch.d.ts +229 -0
  110. package/{chunks/ecpQ-ODX.mjs → props/switch.mjs} +7 -33
  111. package/props/text.d.ts +127 -0
  112. package/props/text.mjs +22 -0
  113. package/props/textarea.d.ts +266 -0
  114. package/{chunks/CNK4mfga.mjs → props/textarea.mjs} +19 -31
  115. package/props/time-select.d.ts +216 -0
  116. package/props/time-select.mjs +67 -0
  117. package/props/time.d.ts +304 -0
  118. package/{chunks/C3MF_-bN.mjs → props/time.mjs} +8 -39
  119. package/props/tree.d.ts +76 -0
  120. package/props/tree.mjs +75 -0
  121. package/sub-table/index.mjs +1 -1
  122. package/sub-table-plus/index.mjs +1 -1
  123. package/table-column/index.mjs +1 -1
  124. package/table-column-def/index.mjs +1 -1
  125. package/table-view/index.mjs +13 -13
  126. package/toolbar/index.mjs +1 -1
  127. package/toolbar-button/index.mjs +1 -1
  128. package/vue-cron/index.mjs +1 -1
  129. package/web-types.json +1 -1
  130. package/x-input-tag/index.mjs +2 -2
  131. package/year-calendar/index.mjs +1 -1
  132. package/chunks/6GcIyEQV.mjs +0 -95
  133. package/chunks/8c9TEVNY.mjs +0 -36
  134. package/chunks/AAZfNtly.mjs +0 -119
  135. package/chunks/BKlMENhV.mjs +0 -57
  136. package/chunks/BNVYEWWW.mjs +0 -57
  137. package/chunks/BTuzBfTA.mjs +0 -141
  138. package/chunks/C6Dq9Dgb.mjs +0 -17
  139. package/chunks/C6u76g6o.mjs +0 -158
  140. package/chunks/CLO5X9Lb.mjs +0 -176
  141. package/chunks/CdoiMj7L2.mjs +0 -39
  142. package/chunks/DTVTvvq-.mjs +0 -189
  143. package/chunks/DWE67l1f.mjs +0 -317
  144. package/chunks/DWMePN6q.mjs +0 -660
  145. package/chunks/D_L1p3vm2.mjs +0 -90
  146. package/chunks/Dy_5vPdP.mjs +0 -101
  147. package/chunks/Goee5Y-H.mjs +0 -198
  148. /package/chunks/{BlxLaWcU.mjs → 6av50rJm.mjs} +0 -0
  149. /package/chunks/{CkOD-_VV.mjs → B1MSrc6f.mjs} +0 -0
  150. /package/chunks/{BNqVEHk_.mjs → C-0zqLII.mjs} +0 -0
  151. /package/chunks/{xq_LR6R2.mjs → CI1ehQi5.mjs} +0 -0
  152. /package/chunks/{DcTVYqeJ.mjs → DuOxL6xh.mjs} +0 -0
  153. /package/chunks/{CXsoKP22.mjs → mekxD3ef.mjs} +0 -0
@@ -0,0 +1,27 @@
1
+ import { n as e, o as t } from "./DEC2O0q-.mjs";
2
+ import { allProps as n, predicate as r } from "../props/rate.mjs";
3
+ import { createVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ import { ElRate as s } from "element-plus/es";
5
+ //#endregion
6
+ //#region src/components/form/FormRate.vue
7
+ var c = {
8
+ name: "FormRate",
9
+ inheritAttrs: !1,
10
+ props: { ...n },
11
+ emits: { ...e },
12
+ setup(e, { emit: n, slots: c, attrs: l }) {
13
+ let u = o(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
14
+ emit: n,
15
+ slots: c,
16
+ attrs: l,
17
+ predicate: r
18
+ });
19
+ return () => d({ vNodes: i(s, a(p.value, m.value, {
20
+ modelValue: u.value,
21
+ "onUpdate:modelValue": (e) => u.value = e,
22
+ disabled: f.value
23
+ }), null) });
24
+ }
25
+ };
26
+ //#endregion
27
+ export { c as t };
@@ -0,0 +1,27 @@
1
+ import { n as e, o as t } from "./DEC2O0q-.mjs";
2
+ import { allProps as n, predicate as r } from "../props/slide.mjs";
3
+ import { createVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ import { ElSlider as s } from "element-plus/es";
5
+ //#endregion
6
+ //#region src/components/form/FormSlider.vue
7
+ var c = {
8
+ name: "FormSlider",
9
+ inheritAttrs: !1,
10
+ props: { ...n },
11
+ emits: { ...e },
12
+ setup(e, { emit: n, slots: c, attrs: l }) {
13
+ let u = o(e, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = t(e, {
14
+ emit: n,
15
+ slots: c,
16
+ predicate: r,
17
+ attrs: l
18
+ });
19
+ return () => d({ vNodes: i(s, a(p.value, m.value, {
20
+ modelValue: u.value,
21
+ "onUpdate:modelValue": (e) => u.value = e,
22
+ disabled: f.value
23
+ }), null) });
24
+ }
25
+ };
26
+ //#endregion
27
+ export { c as t };
@@ -1,17 +1,17 @@
1
1
  import { t as e } from "./DOZRzqlo.mjs";
2
- import { t } from "./7GmKqdbC.mjs";
3
- import { t as n } from "./CkOD-_VV.mjs";
4
- import { n as r } from "./BvKUeniN.mjs";
5
- import { t as i } from "./Czz_49pC.mjs";
6
- import { t as a } from "./C6u76g6o.mjs";
7
- import { t as o } from "./CLO5X9Lb.mjs";
8
- import { t as s } from "./Goee5Y-H.mjs";
9
- import { t as c } from "./Dy_5vPdP.mjs";
10
- import { t as l } from "./C7Mak2La.mjs";
11
- import { t as u } from "./DWE67l1f.mjs";
12
- import { t as d } from "./B3A-CnYr.mjs";
2
+ import { t } from "./usyXQe35.mjs";
3
+ import { t as n } from "./B1MSrc6f.mjs";
4
+ import { n as r } from "./DEC2O0q-.mjs";
5
+ import { t as i } from "./DBUJ7Bva.mjs";
6
+ import { t as a } from "./BWoKh6f6.mjs";
7
+ import { t as o } from "./CE1uX9hJ.mjs";
8
+ import { t as s } from "./CGnOR2gn.mjs";
9
+ import { t as c } from "./B2PuSZ_F.mjs";
10
+ import { t as l } from "./BHT38Us-.mjs";
11
+ import { t as u } from "./CrQmTHMA.mjs";
12
+ import { t as d } from "./33G2_TH8.mjs";
13
13
  import f from "../table-column-def/index.mjs";
14
- import { t as p } from "./CNK4mfga.mjs";
14
+ import { t as p } from "./DB_UKPay.mjs";
15
15
  import { findTreeChildren as m, isFunction as h } from "@web-utils/core";
16
16
  import { Fragment as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, mergeProps as w, openBlock as T, renderList as E, renderSlot as D, resolveComponent as O, toDisplayString as k, withCtx as A, withModifiers as j } from "vue";
17
17
  import { formContextKey as M, formItemContextKey as N } from "element-plus";
@@ -1,4 +1,4 @@
1
- import { f as e } from "./DcTVYqeJ.mjs";
1
+ import { f as e } from "./DuOxL6xh.mjs";
2
2
  import { hasAuthority as t } from "../api/index.mjs";
3
3
  import { toolbarContextKey as n } from "../constants/index.mjs";
4
4
  import { isArray as r, isFunction as i } from "@web-utils/core";
@@ -1,5 +1,6 @@
1
- import { n as e } from "./BvKUeniN.mjs";
2
- import { n as t, t as n } from "./C6u76g6o.mjs";
1
+ import { n as e } from "./DEC2O0q-.mjs";
2
+ import { t } from "./BWoKh6f6.mjs";
3
+ import { allProps as n } from "../props/input.mjs";
3
4
  import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
5
  //#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
5
6
  function s(e) {
@@ -10,15 +11,15 @@ function s(e) {
10
11
  var c = {
11
12
  name: "FormInputIdCard",
12
13
  inheritAttrs: !1,
13
- props: { ...t },
14
+ props: { ...n },
14
15
  emits: { ...e },
15
- setup(e, { slots: t, attrs: i }) {
16
+ setup(e, { slots: n, attrs: i }) {
16
17
  let c = o(e, "modelValue");
17
- return () => r(n, a(e, i, {
18
+ return () => r(t, a(e, i, {
18
19
  modelValue: c.value,
19
20
  "onUpdate:modelValue": (e) => c.value = e,
20
21
  type: "idcard"
21
- }), s(t) ? t : { default: () => [t] });
22
+ }), s(n) ? n : { default: () => [n] });
22
23
  }
23
24
  };
24
25
  //#endregion
@@ -0,0 +1,59 @@
1
+ import { n as e, o as t } from "./DEC2O0q-.mjs";
2
+ import { useDictionary as n } from "../hook/useDictionary.mjs";
3
+ import { allProps as r, predicate as i } from "../props/radio-group.mjs";
4
+ import { computed as a, createVNode as o, isVNode as s, mergeProps as c, useModel as l } from "vue";
5
+ import { ElRadio as u, ElRadioButton as d, ElRadioGroup as f } from "element-plus/es";
6
+ //#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
7
+ function p(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
9
+ }
10
+ //#endregion
11
+ //#region src/components/form/FormRadioGroup.vue
12
+ var m = {
13
+ name: "FormRadioGroup",
14
+ inheritAttrs: !1,
15
+ props: { ...r },
16
+ emits: { ...e },
17
+ setup(e, { slots: r, attrs: s, emit: m }) {
18
+ let h = l(e, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = t(e, {
19
+ emit: m,
20
+ slots: r,
21
+ attrs: s,
22
+ predicate: i,
23
+ messagePrefix: "请选择"
24
+ }), b = a(() => e.classic ? "label" : e.labelProp), x = a(() => e.classic ? "value" : e.valueProp), { dictItems: S } = n(e), C = a(() => e.dictType ? S.value : e.gender ? [{
25
+ [b.value]: "男",
26
+ [x.value]: e.chinese ? "男" : e.typing ? 1 : "1"
27
+ }, {
28
+ [b.value]: "女",
29
+ [x.value]: e.chinese ? "女" : e.typing ? 2 : "2"
30
+ }] : e.confirm ? [{
31
+ [b.value]: "是",
32
+ [x.value]: e.chinese ? "是" : e.english ? "Y" : e.typing ? 1 : "1"
33
+ }, {
34
+ [b.value]: "否",
35
+ [x.value]: e.chinese ? "否" : e.english ? "N" : e.typing ? 0 : "0"
36
+ }] : e.options);
37
+ return () => g({ vNodes: o(f, c(v.value, y.value, {
38
+ modelValue: h.value,
39
+ "onUpdate:modelValue": (e) => h.value = e,
40
+ disabled: _.value
41
+ }), {
42
+ ...r,
43
+ default: r.default || (() => {
44
+ var t;
45
+ return (t = C.value) == null ? void 0 : t.map(({ value: t, label: n, disabled: r }) => e.type === "button" || e.radioType === "button" ? o(d, {
46
+ key: t,
47
+ value: t,
48
+ disabled: r
49
+ }, p(n) ? n : { default: () => [n] }) : o(u, {
50
+ key: t,
51
+ value: t,
52
+ disabled: r
53
+ }, p(n) ? n : { default: () => [n] }));
54
+ })
55
+ }) });
56
+ }
57
+ };
58
+ //#endregion
59
+ export { m as t };
@@ -1,18 +1,18 @@
1
- import { s as e } from "./DcTVYqeJ.mjs";
1
+ import { s as e } from "./DuOxL6xh.mjs";
2
2
  import { t } from "./DOZRzqlo.mjs";
3
3
  import { cellClickHandlerContextKey as n } from "../constants/index.mjs";
4
- import { t as r } from "./7GmKqdbC.mjs";
5
- import { t as i } from "./CkOD-_VV.mjs";
6
- import { n as a } from "./BvKUeniN.mjs";
7
- import { t as o } from "./Czz_49pC.mjs";
8
- import { t as ee } from "./6GcIyEQV.mjs";
9
- import { t as s } from "./C6u76g6o.mjs";
10
- import { t as c } from "./CLO5X9Lb.mjs";
11
- import { t as l } from "./Goee5Y-H.mjs";
12
- import { t as u } from "./Dy_5vPdP.mjs";
13
- import { t as d } from "./C7Mak2La.mjs";
14
- import { t as f } from "./DWE67l1f.mjs";
15
- import { t as p } from "./B3A-CnYr.mjs";
4
+ import { t as r } from "./usyXQe35.mjs";
5
+ import { t as i } from "./B1MSrc6f.mjs";
6
+ import { n as a } from "./DEC2O0q-.mjs";
7
+ import { t as o } from "./DBUJ7Bva.mjs";
8
+ import { t as ee } from "./BZ0v5mka.mjs";
9
+ import { t as s } from "./BWoKh6f6.mjs";
10
+ import { t as c } from "./CE1uX9hJ.mjs";
11
+ import { t as l } from "./CGnOR2gn.mjs";
12
+ import { t as u } from "./B2PuSZ_F.mjs";
13
+ import { t as d } from "./BHT38Us-.mjs";
14
+ import { t as f } from "./CrQmTHMA.mjs";
15
+ import { t as p } from "./33G2_TH8.mjs";
16
16
  import m from "../table-column-def/index.mjs";
17
17
  import { findTreeChildren as h, isFunction as g } from "@web-utils/core";
18
18
  import { Fragment as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, normalizeClass as E, openBlock as D, renderList as O, renderSlot as k, resolveComponent as A, toDisplayString as j, toHandlers as M, withCtx as N, withModifiers as P } from "vue";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/CXsoKP22.mjs";
1
+ import { t as e } from "../chunks/mekxD3ef.mjs";
2
2
  //#region src/components/button/ConfirmButton.vue
3
3
  var t = {
4
4
  name: "ConfirmButton",
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/CXsoKP22.mjs";
1
+ import { t as e } from "../chunks/mekxD3ef.mjs";
2
2
  //#region src/components/button/Confirmable.vue
3
3
  var t = {
4
4
  name: "Confirmable",