@web-utils/form-ui 1.0.0-beta3 → 1.0.0-beta31

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 (176) hide show
  1. package/api/index.d.ts +60 -0
  2. package/api/index.mjs +42 -0
  3. package/awesome-button/index.d.ts +60 -0
  4. package/awesome-button/index.mjs +49 -0
  5. package/base.css +1 -1
  6. package/chunks/4ZuVpQf6.mjs +478 -0
  7. package/chunks/B99alfW4.mjs +207 -0
  8. package/chunks/BQ77eAb3.mjs +71 -0
  9. package/chunks/BV_N8p9t.mjs +83 -0
  10. package/chunks/BV_P9a8o.mjs +100 -0
  11. package/chunks/BgDYHgyH.mjs +189 -0
  12. package/chunks/Bm5eiSmT.mjs +79 -0
  13. package/chunks/BmZieBZW.mjs +88 -0
  14. package/chunks/Br4i8stg.mjs +222 -0
  15. package/chunks/C3a15Ful.mjs +95 -0
  16. package/chunks/C44-CFi-.mjs +636 -0
  17. package/chunks/C4bM8miy.mjs +174 -0
  18. package/chunks/C9J3j0PX.mjs +93 -0
  19. package/chunks/Cby3mvvZ.mjs +216 -0
  20. package/chunks/Cc3EJjbV.mjs +25 -0
  21. package/chunks/Cgl-hCE5.mjs +25 -0
  22. package/chunks/Ci1XxmdE.mjs +51 -0
  23. package/chunks/CkFapoKt.mjs +8 -0
  24. package/chunks/CsfgUCe9.mjs +17 -0
  25. package/chunks/CugRu2Ka.mjs +42 -0
  26. package/chunks/Cy-4nmyC.mjs +106 -0
  27. package/chunks/D1EOkWJ7.mjs +25 -0
  28. package/chunks/D1G2MMMx.mjs +1360 -0
  29. package/chunks/DO8dVGef.mjs +98 -0
  30. package/chunks/DazglPJZ.mjs +180 -0
  31. package/chunks/Dt6gY213.mjs +62 -0
  32. package/chunks/DtAYXPvz.mjs +108 -0
  33. package/chunks/JhyiXnbd.mjs +76 -0
  34. package/chunks/S64sNmuR.mjs +226 -0
  35. package/chunks/bnRb5PUB.mjs +108 -0
  36. package/chunks/dM-icPM8.mjs +107 -0
  37. package/chunks/pxFLMMUm.mjs +110 -0
  38. package/chunks/q1SlJP1y.mjs +171 -0
  39. package/confirm-button/index.d.ts +113 -0
  40. package/confirm-button/index.mjs +35 -0
  41. package/confirmable/index.d.ts +84 -0
  42. package/confirmable/index.mjs +8 -0
  43. package/constants/index.d.ts +42 -0
  44. package/constants/index.mjs +4 -0
  45. package/dict-render/index.d.ts +28 -0
  46. package/element-dialog/index.d.ts +374 -0
  47. package/element-dialog/index.mjs +2 -91
  48. package/empty-view/index.d.ts +29 -0
  49. package/empty-view/index.mjs +1 -1
  50. package/flex-scroll-area/index.d.ts +22 -0
  51. package/flex-scroll-area/index.mjs +1 -1
  52. package/form-advice/index.d.ts +9 -0
  53. package/form-advice/index.mjs +13 -12
  54. package/form-button/index.d.ts +114 -0
  55. package/form-button/index.mjs +36 -0
  56. package/form-cascader/index.d.ts +486 -0
  57. package/form-cascader/index.mjs +2 -0
  58. package/form-cell/index.d.ts +25 -0
  59. package/form-check-box-group/index.d.ts +295 -0
  60. package/form-check-box-group/index.mjs +1 -1
  61. package/form-checkbox/index.d.ts +273 -0
  62. package/form-checkbox/index.mjs +1 -1
  63. package/form-date-picker/index.d.ts +423 -0
  64. package/form-date-picker/index.mjs +1 -1
  65. package/form-holder/index.d.ts +166 -0
  66. package/form-holder/index.mjs +1 -1
  67. package/form-holder/style.css +1 -1
  68. package/form-image/index.d.ts +226 -0
  69. package/form-image/index.mjs +1 -1
  70. package/form-input/index.d.ts +389 -0
  71. package/form-input/index.mjs +1 -1
  72. package/form-input/style.css +1 -0
  73. package/form-input-cron-expression/index.d.ts +217 -0
  74. package/form-input-cron-expression/index.mjs +2 -0
  75. package/form-input-cron-expression/style.css +1 -0
  76. package/form-input-email/index.d.ts +363 -0
  77. package/form-input-email/index.mjs +1 -1
  78. package/form-input-id-card/index.d.ts +363 -0
  79. package/form-input-id-card/index.mjs +1 -1
  80. package/form-input-number/index.d.ts +327 -0
  81. package/form-input-number/index.mjs +1 -1
  82. package/form-input-phone-number/index.d.ts +363 -0
  83. package/form-input-phone-number/index.mjs +1 -1
  84. package/form-input-tag/index.d.ts +2 -0
  85. package/form-input-time/index.d.ts +2 -0
  86. package/form-item-config-provider/index.d.ts +22 -0
  87. package/form-item-config-provider/index.mjs +24 -0
  88. package/form-item-group/index.d.ts +94 -0
  89. package/form-item-group/index.mjs +2 -78
  90. package/form-item-group/style.css +1 -1
  91. package/form-item-x/index.d.ts +184 -0
  92. package/form-item-x/index.mjs +1 -1
  93. package/form-item-x/style.css +1 -0
  94. package/form-radio-group/index.d.ts +283 -0
  95. package/form-radio-group/index.mjs +1 -1
  96. package/form-rate/index.d.ts +321 -0
  97. package/form-rate/index.mjs +1 -1
  98. package/form-red-table/index.d.ts +21 -0
  99. package/form-red-table/index.mjs +27 -26
  100. package/form-row/index.d.ts +11 -0
  101. package/form-row/index.mjs +1 -1
  102. package/form-select/index.d.ts +542 -0
  103. package/form-select/index.mjs +1 -1
  104. package/form-slider/index.d.ts +350 -0
  105. package/form-slider/index.mjs +1 -1
  106. package/form-switch/index.d.ts +339 -0
  107. package/form-switch/index.mjs +1 -1
  108. package/form-text/index.d.ts +229 -0
  109. package/form-text/index.mjs +1 -1
  110. package/form-view/index.d.ts +2 -0
  111. package/form-view/index.mjs +1 -1
  112. package/helper/dictionary.d.ts +15 -0
  113. package/helper/dictionary.mjs +97 -0
  114. package/hook/useDictionary.d.ts +60 -0
  115. package/hook/useDictionary.mjs +15 -0
  116. package/hook/useVisibilityChange.d.ts +4 -0
  117. package/hook/useVisibilityChange.mjs +14 -0
  118. package/iframe-window/index.d.ts +9 -0
  119. package/iframe-window/index.mjs +37 -0
  120. package/iframe-window/style.css +1 -0
  121. package/index.d.ts +51 -0
  122. package/index.mjs +51 -37
  123. package/month-calendar/index.d.ts +80 -0
  124. package/package.json +12 -7
  125. package/pageable-table/index.d.ts +436 -0
  126. package/pageable-table/index.mjs +2 -0
  127. package/pageable-table/style.css +1 -0
  128. package/resize-observer/index.d.ts +8 -0
  129. package/resize-observer/index.mjs +40 -0
  130. package/resize-observer/style.css +1 -0
  131. package/resolver/index.d.ts +9 -0
  132. package/resolver/index.mjs +29 -0
  133. package/table-column/index.d.ts +160 -0
  134. package/table-column/index.mjs +2 -0
  135. package/table-column/style.css +1 -0
  136. package/table-column-def/index.d.ts +85 -0
  137. package/table-column-def/index.mjs +11 -0
  138. package/table-column-filter/index.d.ts +11 -0
  139. package/table-column-filterable/index.d.ts +10 -0
  140. package/table-view/index.d.ts +2 -0
  141. package/table-view/index.mjs +1 -1
  142. package/toolbar/index.d.ts +129 -0
  143. package/toolbar/index.mjs +1 -8
  144. package/toolbar/style.css +1 -0
  145. package/toolbar-button/index.d.ts +77 -0
  146. package/toolbar-button/index.mjs +1 -8
  147. package/vue-cron/index.d.ts +191 -0
  148. package/vue-cron/index.mjs +2 -0
  149. package/vue-cron/style.css +1 -0
  150. package/web-types.json +1 -1
  151. package/x-input-tag/index.d.ts +2 -0
  152. package/x-input-tag/index.mjs +226 -0
  153. package/x-input-tag/style.css +1 -0
  154. package/year-calendar/index.d.ts +99 -0
  155. package/year-calendar/index.mjs +2 -0
  156. package/year-calendar/style.css +1 -0
  157. package/chunks/B4M_TFeR.mjs +0 -152
  158. package/chunks/B5BIQCcK.mjs +0 -149
  159. package/chunks/BHNKrW1j.mjs +0 -61
  160. package/chunks/BO9jWhBl.mjs +0 -46
  161. package/chunks/BZ8aOa78.mjs +0 -35
  162. package/chunks/Bsz7y4Xp.mjs +0 -73
  163. package/chunks/Bxj372sF.mjs +0 -53
  164. package/chunks/C33EmJN8.mjs +0 -32
  165. package/chunks/C6Li3-l7.mjs +0 -28
  166. package/chunks/CBcdalMX.mjs +0 -35
  167. package/chunks/CdRsyF0n.mjs +0 -43
  168. package/chunks/ClNahmiU.mjs +0 -23
  169. package/chunks/CstztYMu.mjs +0 -28
  170. package/chunks/DC9b53M6.mjs +0 -32
  171. package/chunks/DDVAgRED.mjs +0 -36
  172. package/chunks/DpJQABVD.mjs +0 -91
  173. package/chunks/ZsLNWI9x.mjs +0 -46
  174. package/chunks/jn_iQrVZ.mjs +0 -28
  175. package/constants.mjs +0 -4
  176. package/input/style.css +0 -1
@@ -0,0 +1,174 @@
1
+ import { i as e, n as t, t as n } from "./Br4i8stg.mjs";
2
+ import { n as r, t as i } from "./CsfgUCe9.mjs";
3
+ import { validatePhoneNum as a } from "@web-utils/core";
4
+ import { computed as o, createVNode as s, mergeProps as c, useModel as l } from "vue";
5
+ import { ElInput as u } from "element-plus/es";
6
+ //#region src/utils/form-validate.ts
7
+ var d = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
8
+ function f(e, t, n) {
9
+ t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
10
+ }
11
+ //#endregion
12
+ //#region src/components/form/props/input.ts
13
+ var p = {
14
+ ...r,
15
+ ...i,
16
+ type: {
17
+ type: String,
18
+ default: "text"
19
+ },
20
+ modelValue: [String, Number],
21
+ modelModifiers: Object,
22
+ maxlength: [String, Number],
23
+ minlength: [String, Number],
24
+ showWordLimit: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ wordLimitPosition: {
29
+ type: String,
30
+ default: "inside"
31
+ },
32
+ placeholder: String,
33
+ clearable: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ clearIcon: [String, Object],
38
+ formatter: Function,
39
+ parser: Function,
40
+ showPassword: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ size: String,
45
+ prefixIcon: [String, Object],
46
+ suffixIcon: [String, Object],
47
+ rows: {
48
+ type: Number,
49
+ default: 2
50
+ },
51
+ autosize: [Boolean, Object],
52
+ autocomplete: {
53
+ type: String,
54
+ default: "off"
55
+ },
56
+ name: String,
57
+ readonly: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ max: [String, Number],
62
+ min: [String, Number],
63
+ step: [String, Number],
64
+ resize: String,
65
+ autofocus: {
66
+ type: Boolean,
67
+ default: !1
68
+ },
69
+ form: String,
70
+ ariaLabel: String,
71
+ tabindex: [String, Number],
72
+ validateEvent: {
73
+ type: Boolean,
74
+ default: !0
75
+ },
76
+ inputStyle: [String, Object],
77
+ label: String,
78
+ inputmode: String,
79
+ countGraphemes: Function,
80
+ prepend: String,
81
+ append: String,
82
+ prefix: String,
83
+ suffix: String,
84
+ picker: Boolean,
85
+ readonlyGrey: {
86
+ type: Boolean,
87
+ default: !0
88
+ }
89
+ }, m = {
90
+ readonly: !0,
91
+ prefixIcon: !0,
92
+ suffixIcon: !0,
93
+ placeholder: !0,
94
+ modelValue: !0,
95
+ readonlyGrey: !0,
96
+ picker: !0,
97
+ append: !0,
98
+ prefix: !0,
99
+ suffix: !0,
100
+ prepend: !0
101
+ }, h = [
102
+ "click",
103
+ "blur",
104
+ "focus",
105
+ "change",
106
+ "input",
107
+ "clear",
108
+ "keydown",
109
+ "mouseleave",
110
+ "mouseenter",
111
+ "compositionstart",
112
+ "compositionupdate",
113
+ "compositionend"
114
+ ], g = (e) => r[e] === void 0 && m[e] !== !0, _ = {
115
+ name: "FormInput",
116
+ inheritAttrs: !1,
117
+ props: { ...p },
118
+ emits: {
119
+ ...t,
120
+ click: null,
121
+ blur: null,
122
+ focus: null,
123
+ change: null,
124
+ input: null,
125
+ clear: null,
126
+ keydown: null,
127
+ mouseleave: null,
128
+ mouseenter: null,
129
+ compositionstart: null,
130
+ compositionupdate: null,
131
+ compositionend: null
132
+ },
133
+ setup(t, { emit: r, slots: i, attrs: p }) {
134
+ let m = l(t, "modelValue"), _ = `请输入正确的${t.label}!`, { render: v, placeholder: y, disabled: b, autoBind: x } = e(t, {
135
+ emit: r,
136
+ slots: i,
137
+ attrs: p,
138
+ rules: o(() => {
139
+ if (!t.type || t.type === "textarea") return null;
140
+ let e = {
141
+ message: _,
142
+ trigger: "blur"
143
+ };
144
+ if (t.type === "email") e.validator = d;
145
+ else if (t.type === "idcard") e.validator = f;
146
+ else if (t.type === "phone") e.validator = a;
147
+ else return null;
148
+ return [e];
149
+ }),
150
+ events: h,
151
+ predicate: g
152
+ });
153
+ return () => v({ vNodes: s(u, c({ class: ["form-input", {
154
+ "is-readonly": t.readonlyGrey && t.readonly && !t.picker,
155
+ "el-input-cursor-pointer": t.picker && !b.value
156
+ }] }, x.value, {
157
+ modelValue: m.value,
158
+ "onUpdate:modelValue": (e) => m.value = e,
159
+ disabled: b.value,
160
+ placeholder: y.value,
161
+ readonly: t.readonly || t.picker,
162
+ "prefix-icon": n({ icon: t.picker ? "el-icon-search" : t.prefixIcon }),
163
+ "suffix-icon": n({ icon: t.suffixIcon })
164
+ }), {
165
+ prefix: i.prefix || t.prefix ? () => t.prefix : null,
166
+ suffix: i.suffix || t.suffix ? () => t.suffix : null,
167
+ "password-icon": i["password-icon"],
168
+ prepend: i.prepend || t.prepend ? () => t.prepend : null,
169
+ append: i.append || t.append ? () => t.append : null
170
+ }) });
171
+ }
172
+ };
173
+ //#endregion
174
+ export { p as n, _ as t };
@@ -0,0 +1,93 @@
1
+ import { columnSizeContextKey as e, setColumnSizeContextKey as t } from "../constants/index.mjs";
2
+ import n from "../form-cell/index.mjs";
3
+ import { camelize as r, isDef as i, isString as a } from "@web-utils/core";
4
+ import { Comment as o, Fragment as s, Text as c, createVNode as l, inject as u, isVNode as d } from "vue";
5
+ import { ElTooltip as f } from "element-plus/es";
6
+ //#region src/components/red-form/FormRow.vue?vue&type=script&lang.jsx
7
+ function p(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !d(e);
9
+ }
10
+ var m = (e) => {
11
+ let t = Object.keys({});
12
+ for (let n in e) t[r(n)] = e[n];
13
+ return t;
14
+ }, h = (e, { columnSize: t }) => {
15
+ if (!e || !e.length) return null;
16
+ e = e.filter((e) => e.type !== o);
17
+ let n = [], r = e.length === 1;
18
+ for (let o = 0; o < e.length; o++) {
19
+ let v = e[o], { name: y } = v.type;
20
+ if (v.type === c) n.push({
21
+ tag: y,
22
+ type: "text",
23
+ content: v,
24
+ colspan: r ? t : 0
25
+ });
26
+ else if (v.type === s) n.push(...h(v.children, { columnSize: t }));
27
+ else if (a(v.type) && v.type === "td") n.push({
28
+ tag: v.type,
29
+ type: "td",
30
+ content: v
31
+ });
32
+ else if (y === "FormCell") n.push({
33
+ tag: y,
34
+ type: "FormCell",
35
+ content: v
36
+ });
37
+ else if (typeof v.type == "object") {
38
+ var u, d;
39
+ let { label: e, hideLabel: a, labelColspan: o, inputColspan: s, labelRowspan: c, inputRowspan: h, tipsAfterLabel: b, tips: x } = m(v.props);
40
+ if (!i(a)) {
41
+ var p, g, _;
42
+ let t = (p = v.children) == null ? void 0 : p.tips, r = t || x ? l(f, {
43
+ effect: "light",
44
+ content: x,
45
+ offset: 4
46
+ }, {
47
+ default: () => l("i", { class: "el-icon-info form-item-input-info" }, null),
48
+ content: t || null
49
+ }) : null;
50
+ n.push({
51
+ tag: y,
52
+ type: "label",
53
+ colspan: o,
54
+ rowspan: c,
55
+ content: [((g = v.children) == null || (_ = g.label) == null ? void 0 : _.call(g)) || e, b === "" ? r : null]
56
+ });
57
+ }
58
+ let S;
59
+ S = r && i(a) ? t : i(s) ? s : r ? t - 1 : 0, n.push({
60
+ tag: y,
61
+ type: "input",
62
+ colspan: S,
63
+ rowspan: h,
64
+ content: [v, (u = v.children) == null || (d = u.below) == null ? void 0 : d.call(u)]
65
+ });
66
+ } else console.error("未知节点");
67
+ }
68
+ return n;
69
+ }, g = {
70
+ name: "FormRow",
71
+ props: {
72
+ isLabel: Boolean,
73
+ alignCenter: Boolean
74
+ },
75
+ setup(r, { slots: i }) {
76
+ let a = u(t, null), o = u(e, null);
77
+ return () => {
78
+ var e;
79
+ let t = (e = i.default) == null ? void 0 : e.call(i), s = [];
80
+ return s.push(...h(t, { columnSize: (o == null ? void 0 : o.value) ?? 0 })), ((o == null ? void 0 : o.value) ?? 0) < s.length && (a == null || a(s.length)), l("tr", null, [s.map(({ tag: e, type: t, colspan: i, rowspan: a, content: o }) => e === "td" || t === "FormCell" ? o : t === "text" ? l(n, {
81
+ isLabel: r.isLabel,
82
+ alignCenter: r.alignCenter,
83
+ colspan: i
84
+ }, p(o) ? o : { default: () => [o] }) : l("td", {
85
+ class: t,
86
+ colspan: i,
87
+ rowspan: a
88
+ }, [o]))]);
89
+ };
90
+ }
91
+ };
92
+ //#endregion
93
+ export { g as t };
@@ -0,0 +1,216 @@
1
+ import { i as e, n as t } from "./Br4i8stg.mjs";
2
+ import { n, t as r } from "./CsfgUCe9.mjs";
3
+ import { useDictionary as i } from "../hook/useDictionary.mjs";
4
+ import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
5
+ import { computed as l, createVNode as u, mergeProps as d } from "vue";
6
+ import { cloneDeep as f } from "@web-utils/integrations/lodash";
7
+ import { ElCascader as p } from "element-plus/es";
8
+ //#region src/components/form/props/cascader.ts
9
+ var m = {
10
+ ...n,
11
+ ...r,
12
+ modelValue: [
13
+ String,
14
+ Number,
15
+ Array
16
+ ],
17
+ options: Array,
18
+ props: Object,
19
+ size: String,
20
+ placeholder: String,
21
+ disabled: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ clearable: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ clearIcon: [String, Object],
30
+ showAllLevels: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
34
+ collapseTags: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ collapseTagsTooltip: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ maxCollapseTagsTooltipHeight: [String, Number],
43
+ separator: {
44
+ type: String,
45
+ default: "/"
46
+ },
47
+ filterable: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ filterMethod: Function,
52
+ debounce: {
53
+ type: Number,
54
+ default: 300
55
+ },
56
+ beforeFilter: Function,
57
+ popperClass: {
58
+ type: String,
59
+ default: ""
60
+ },
61
+ popperStyle: [String, Object],
62
+ teleported: {
63
+ type: Boolean,
64
+ default: !0
65
+ },
66
+ effect: {
67
+ type: String,
68
+ default: "light"
69
+ },
70
+ tagType: {
71
+ type: String,
72
+ default: "info"
73
+ },
74
+ tagEffect: {
75
+ type: String,
76
+ default: "light"
77
+ },
78
+ validateEvent: {
79
+ type: Boolean,
80
+ default: !0
81
+ },
82
+ maxCollapseTags: {
83
+ type: Number,
84
+ default: 1
85
+ },
86
+ emptyValues: Array,
87
+ valueOnClear: [
88
+ String,
89
+ Number,
90
+ Boolean,
91
+ Function
92
+ ],
93
+ persistent: {
94
+ type: Boolean,
95
+ default: !0
96
+ },
97
+ fallbackPlacements: {
98
+ type: Array,
99
+ default: () => [
100
+ "bottom-start",
101
+ "top-start",
102
+ "right",
103
+ "left"
104
+ ]
105
+ },
106
+ placement: {
107
+ type: String,
108
+ default: "bottom-start"
109
+ },
110
+ popperAppendToBody: {
111
+ type: Boolean,
112
+ default: !0
113
+ },
114
+ showCheckedStrategy: {
115
+ type: String,
116
+ default: "child"
117
+ },
118
+ readonly: Boolean,
119
+ last: Boolean,
120
+ checkStrictly: Boolean,
121
+ labelKey: {
122
+ type: String,
123
+ default: "label"
124
+ },
125
+ valueKey: {
126
+ type: String,
127
+ default: "value"
128
+ },
129
+ emitPath: {
130
+ type: Boolean,
131
+ default: !0
132
+ },
133
+ join: {
134
+ type: Boolean,
135
+ default: !0
136
+ },
137
+ idAsValue: {
138
+ type: Boolean,
139
+ default: !0
140
+ },
141
+ labelAsValue: Boolean,
142
+ treeDict: {
143
+ type: Boolean,
144
+ default: !0
145
+ },
146
+ dictType: String
147
+ }, h = {
148
+ modelValue: !0,
149
+ readonly: !0,
150
+ props: !0
151
+ }, g = [
152
+ "change",
153
+ "expand-change",
154
+ "blur",
155
+ "focus",
156
+ "clear",
157
+ "visible-change",
158
+ "remove-tag"
159
+ ], _ = (e) => n[e] === void 0 && h[e] !== !0, v = {
160
+ name: "FormCascader",
161
+ props: { ...m },
162
+ emits: {
163
+ ...t,
164
+ change: null,
165
+ "expand-change": null,
166
+ blur: null,
167
+ focus: null,
168
+ clear: null,
169
+ "visible-change": null,
170
+ "remove-tag": null
171
+ },
172
+ setup(t, { slots: n, emit: r, attrs: m }) {
173
+ let { emitInput: h, render: v, placeholder: y, disabled: b, autoBind: x } = e(t, {
174
+ emit: r,
175
+ slots: n,
176
+ attrs: m,
177
+ events: g,
178
+ predicate: _
179
+ }), { dictItems: S } = i(t), C = l(() => {
180
+ if (t.dictType) return S.value;
181
+ if (t.options) {
182
+ let e = f(t.options);
183
+ return t.last && c(e), e;
184
+ } else return [];
185
+ }), w = l(() => {
186
+ if (t.join) return o(t.modelValue) ? t.modelValue : s(t.modelValue) ? t.modelValue.split(t.separator) : [];
187
+ if (t.last) {
188
+ let [e] = a(C.value, (e) => e[t.valueKey] === t.modelValue), n = [];
189
+ for (; e;) n.push(e[t.valueKey]), e = e.parent;
190
+ return n.reverse();
191
+ }
192
+ return t.modelValue;
193
+ }), T = (e) => {
194
+ t.join && o(e) ? h(e.join(t.separator)) : h(t.last ? e[e.length - 1] : e);
195
+ };
196
+ return () => v({ vNodes: u(p, d({
197
+ style: "width: 100%",
198
+ class: { "is-readonly": t.readonly }
199
+ }, x.value, {
200
+ "model-value": w.value,
201
+ options: C.value,
202
+ props: {
203
+ checkStrictly: t.checkStrictly,
204
+ label: t.labelKey,
205
+ value: t.valueKey,
206
+ emitPath: t.emitPath,
207
+ expandTrigger: "hover"
208
+ },
209
+ disabled: b.value,
210
+ placeholder: y.value,
211
+ "onUpdate:modelValue": T
212
+ }), null) });
213
+ }
214
+ };
215
+ //#endregion
216
+ export { v as t };
@@ -0,0 +1,25 @@
1
+ import { n as e } from "./Br4i8stg.mjs";
2
+ import { n as t, t as n } from "./C4bM8miy.mjs";
3
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ //#region src/components/form/FormInputEmail.vue?vue&type=script&lang.jsx
5
+ function s(e) {
6
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
7
+ }
8
+ //#endregion
9
+ //#region src/components/form/FormInputEmail.vue
10
+ var c = {
11
+ name: "FormInputEmail",
12
+ inheritAttrs: !1,
13
+ props: { ...t },
14
+ emits: { ...e },
15
+ setup(e, { slots: t, attrs: i }) {
16
+ let c = o(e, "modelValue");
17
+ return () => r(n, a(e, i, {
18
+ modelValue: c.value,
19
+ "onUpdate:modelValue": (e) => c.value = e,
20
+ type: "email"
21
+ }), s(t) ? t : { default: () => [t] });
22
+ }
23
+ };
24
+ //#endregion
25
+ export { c as t };
@@ -0,0 +1,25 @@
1
+ import { n as e } from "./Br4i8stg.mjs";
2
+ import { n as t, t as n } from "./C4bM8miy.mjs";
3
+ import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
4
+ //#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
5
+ function s(e) {
6
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
7
+ }
8
+ //#endregion
9
+ //#region src/components/form/FormInputIdCard.vue
10
+ var c = {
11
+ name: "FormInputIdCard",
12
+ inheritAttrs: !1,
13
+ props: { ...t },
14
+ emits: { ...e },
15
+ setup(e, { slots: t, attrs: i }) {
16
+ let c = o(e, "modelValue");
17
+ return () => r(n, a(e, i, {
18
+ modelValue: c.value,
19
+ "onUpdate:modelValue": (e) => c.value = e,
20
+ type: "idcard"
21
+ }), s(t) ? t : { default: () => [t] });
22
+ }
23
+ };
24
+ //#endregion
25
+ export { c as t };
@@ -0,0 +1,51 @@
1
+ import { s as e } from "./BQ77eAb3.mjs";
2
+ import { o as t, r as n } from "./Br4i8stg.mjs";
3
+ import { n as r } from "./CsfgUCe9.mjs";
4
+ import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
5
+ import { ElImage as s } from "element-plus/es";
6
+ //#region src/components/form/props/image.ts
7
+ var c = {
8
+ ...r,
9
+ src: String,
10
+ fit: String,
11
+ hideOnClickModal: Boolean
12
+ }, l = { modelValue: !0 }, u = [
13
+ "load",
14
+ "error",
15
+ "switch",
16
+ "close",
17
+ "show"
18
+ ], d = (e) => r[e] === void 0 && l[e] !== !0;
19
+ //#endregion
20
+ //#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
21
+ function f(e) {
22
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
23
+ }
24
+ //#endregion
25
+ //#region src/components/form/FormImage.vue
26
+ var p = {
27
+ name: "FormImage",
28
+ inheritAttrs: !1,
29
+ props: { ...c },
30
+ emits: {
31
+ load: null,
32
+ error: null,
33
+ switch: null,
34
+ close: null,
35
+ show: null
36
+ },
37
+ setup(r, { slots: a, attrs: c, emit: l }) {
38
+ let p = t(r, { attrs: c }), m = e(r, {
39
+ events: u,
40
+ predicate: d,
41
+ emit: l
42
+ });
43
+ return () => n(r, {
44
+ vNodes: i(s, o(m.value, c, { "preview-src-list": [r.src] }), f(a) ? a : { default: () => [a] }),
45
+ formItemProps: p,
46
+ slots: a
47
+ });
48
+ }
49
+ };
50
+ //#endregion
51
+ export { p as t };
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,17 @@
1
+ import { c as e, s as t } from "./Br4i8stg.mjs";
2
+ //#region src/components/form/props/common.ts
3
+ var n = {
4
+ ...e,
5
+ ...t,
6
+ wrapFormItem: {
7
+ type: Boolean,
8
+ default: !0
9
+ },
10
+ disabled: {
11
+ type: Boolean,
12
+ default: void 0
13
+ },
14
+ col: Boolean
15
+ }, r = { size: { type: String } };
16
+ //#endregion
17
+ export { n, r as t };
@@ -0,0 +1,42 @@
1
+ import { s as e } from "./BQ77eAb3.mjs";
2
+ import { o as t, r as n } from "./Br4i8stg.mjs";
3
+ import { n as r } from "./CsfgUCe9.mjs";
4
+ import { createVNode as i, mergeProps as a } from "vue";
5
+ import { ElText as o } from "element-plus/es";
6
+ //#region src/components/form/props/text.ts
7
+ var s = {
8
+ ...r,
9
+ type: String,
10
+ size: {
11
+ type: String,
12
+ default: "default"
13
+ },
14
+ truncated: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ lineClamp: [String, Number],
19
+ tag: {
20
+ type: String,
21
+ default: "span"
22
+ },
23
+ text: String
24
+ }, c = { modelValue: !0 }, l = ["change"], u = (e) => r[e] === void 0 && c[e] !== !0, d = {
25
+ name: "FormText",
26
+ inheritAttrs: !1,
27
+ props: { ...s },
28
+ setup(r, { slots: s, emit: c, attrs: d }) {
29
+ let f = t(r, { attrs: d }), p = e(r, {
30
+ events: l,
31
+ predicate: u,
32
+ emit: c
33
+ });
34
+ return () => n(r, {
35
+ vNodes: i(o, a(p.value, d), { default: s.default || (() => r.text) }),
36
+ formItemProps: f,
37
+ slots: s
38
+ });
39
+ }
40
+ };
41
+ //#endregion
42
+ export { d as t };