@web-utils/form-ui 1.0.0-beta5 → 1.0.0-beta50

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 (208) 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/6yfBZFOB.mjs +56 -0
  7. package/chunks/B-zqRAXo.mjs +69 -0
  8. package/chunks/B1IPSTA6.mjs +198 -0
  9. package/chunks/B9gA65rt2.mjs +38 -0
  10. package/chunks/BA2KEptL.mjs +172 -0
  11. package/chunks/BBERmTup.mjs +83 -0
  12. package/chunks/BUGCiCnl.mjs +83 -0
  13. package/chunks/BbSPWDDZ.mjs +100 -0
  14. package/chunks/BfxDxIg0.mjs +106 -0
  15. package/chunks/BqWvBF14.mjs +35 -0
  16. package/chunks/BsZgAJX_2.mjs +81 -0
  17. package/chunks/BtcjAHE6.mjs +317 -0
  18. package/chunks/ByHz4mmh.mjs +87 -0
  19. package/chunks/C2zgFLYO.mjs +185 -0
  20. package/chunks/CAd1zK9Q.mjs +25 -0
  21. package/chunks/CJdkjadi.mjs +17 -0
  22. package/chunks/CabldOLo.mjs +157 -0
  23. package/chunks/CkOD-_VV.mjs +8 -0
  24. package/chunks/Cln3RBAD.mjs +660 -0
  25. package/chunks/CqoVAnxC2.mjs +93 -0
  26. package/chunks/CuAoMR3n.mjs +105 -0
  27. package/chunks/CxTg0r4n.mjs +166 -0
  28. package/chunks/D0Zg2CV0.mjs +57 -0
  29. package/chunks/DA7oGHSX.mjs +141 -0
  30. package/chunks/DOP3aBxf.mjs +93 -0
  31. package/chunks/DOZRzqlo.mjs +37 -0
  32. package/chunks/D_qiRmiE.mjs +230 -0
  33. package/chunks/DcTVYqeJ.mjs +113 -0
  34. package/chunks/Dkd5BC98.mjs +198 -0
  35. package/chunks/GI8krYU82.mjs +478 -0
  36. package/chunks/V2p-PCpL.mjs +176 -0
  37. package/chunks/bFbPPcdq.mjs +25 -0
  38. package/chunks/cqIZWDHo.mjs +614 -0
  39. package/chunks/eae6huQB.mjs +25 -0
  40. package/chunks/gCeDFHo1.mjs +32 -0
  41. package/chunks/gLPy4Sus.mjs +164 -0
  42. package/chunks/hlha6Bhc.mjs +107 -0
  43. package/chunks/hzaYr6Ud2.mjs +207 -0
  44. package/chunks/kflKDW4T2.mjs +146 -0
  45. package/chunks/pIzhYsBe.mjs +93 -0
  46. package/chunks/vXQf89tS.mjs +1361 -0
  47. package/chunks/wXeqV-_7.mjs +89 -0
  48. package/chunks/zwXzk9ff2.mjs +568 -0
  49. package/confirm-button/index.d.ts +115 -0
  50. package/confirm-button/index.mjs +35 -0
  51. package/confirmable/index.d.ts +86 -0
  52. package/confirmable/index.mjs +8 -0
  53. package/constants/index.d.ts +53 -0
  54. package/constants/index.mjs +4 -0
  55. package/dict-render/index.d.ts +28 -0
  56. package/dict-render/index.mjs +2 -0
  57. package/editable-tree/index.d.ts +254 -0
  58. package/editable-tree/index.mjs +2 -0
  59. package/editable-tree/style.css +1 -0
  60. package/element-dialog/index.d.ts +337 -16
  61. package/element-dialog/index.mjs +2 -91
  62. package/element-resize-observer/index.d.ts +8 -0
  63. package/element-resize-observer/index.mjs +40 -0
  64. package/element-resize-observer/style.css +1 -0
  65. package/empty-view/index.d.ts +2 -2
  66. package/empty-view/index.mjs +1 -1
  67. package/flex-scroll-area/index.d.ts +1 -1
  68. package/flex-scroll-area/index.mjs +1 -1
  69. package/form-advice/index.mjs +13 -12
  70. package/form-button/index.d.ts +116 -0
  71. package/form-button/index.mjs +36 -0
  72. package/form-card/index.d.ts +14 -0
  73. package/form-card/index.mjs +18 -0
  74. package/form-cascader/index.d.ts +472 -0
  75. package/form-cascader/index.mjs +2 -0
  76. package/form-checkbox/index.d.ts +236 -16
  77. package/form-checkbox/index.mjs +1 -1
  78. package/form-checkbox-group/index.d.ts +364 -0
  79. package/form-checkbox-group/index.mjs +2 -0
  80. package/form-checkbox-group/style.css +1 -0
  81. package/form-date-picker/index.d.ts +390 -19
  82. package/form-date-picker/index.mjs +1 -1
  83. package/form-holder/index.d.ts +87 -20
  84. package/form-holder/index.mjs +1 -1
  85. package/form-holder/style.css +1 -1
  86. package/form-image/index.d.ts +145 -13
  87. package/form-image/index.mjs +1 -1
  88. package/form-input/index.d.ts +301 -20
  89. package/form-input/index.mjs +1 -1
  90. package/form-input/style.css +1 -0
  91. package/form-input-cron-expression/index.d.ts +217 -0
  92. package/form-input-cron-expression/index.mjs +2 -0
  93. package/form-input-cron-expression/style.css +1 -0
  94. package/form-input-email/index.d.ts +307 -16
  95. package/form-input-email/index.mjs +1 -1
  96. package/form-input-id-card/index.d.ts +307 -16
  97. package/form-input-id-card/index.mjs +1 -1
  98. package/form-input-number/index.d.ts +246 -18
  99. package/form-input-number/index.mjs +1 -1
  100. package/form-input-phone-number/index.d.ts +307 -16
  101. package/form-input-phone-number/index.mjs +1 -1
  102. package/form-input-tag/index.d.ts +263 -1
  103. package/form-input-tag/index.mjs +1 -3
  104. package/form-input-time/index.d.ts +434 -1
  105. package/form-input-time/index.mjs +1 -3
  106. package/form-item-config-provider/index.d.ts +22 -0
  107. package/form-item-config-provider/index.mjs +24 -0
  108. package/form-item-group/index.d.ts +91 -17
  109. package/form-item-group/index.mjs +2 -78
  110. package/form-item-group/style.css +1 -1
  111. package/form-item-x/index.d.ts +141 -11
  112. package/form-item-x/index.mjs +1 -1
  113. package/form-item-x/style.css +1 -0
  114. package/form-radio-group/index.d.ts +303 -16
  115. package/form-radio-group/index.mjs +1 -1
  116. package/form-rate/index.d.ts +254 -14
  117. package/form-rate/index.mjs +1 -1
  118. package/form-red-table/index.mjs +27 -26
  119. package/form-row/index.d.ts +2 -2
  120. package/form-row/index.mjs +1 -1
  121. package/form-select/index.d.ts +537 -18
  122. package/form-select/index.mjs +1 -1
  123. package/form-slider/index.d.ts +283 -16
  124. package/form-slider/index.mjs +1 -1
  125. package/form-switch/index.d.ts +272 -14
  126. package/form-switch/index.mjs +1 -1
  127. package/form-table/index.d.ts +269 -0
  128. package/form-table/index.mjs +2 -0
  129. package/form-table-plus/index.d.ts +266 -0
  130. package/form-table-plus/index.mjs +2 -0
  131. package/form-text/index.d.ts +165 -13
  132. package/form-text/index.mjs +1 -1
  133. package/form-textarea/index.d.ts +351 -0
  134. package/form-textarea/index.mjs +2 -0
  135. package/form-time-select/index.d.ts +319 -0
  136. package/form-time-select/index.mjs +2 -0
  137. package/form-view/index.mjs +1 -1
  138. package/helper/dictionary.d.ts +15 -0
  139. package/helper/dictionary.mjs +97 -0
  140. package/hook/useDictionary.d.ts +60 -0
  141. package/hook/useDictionary.mjs +15 -0
  142. package/hook/useVisibilityChange.d.ts +4 -0
  143. package/hook/useVisibilityChange.mjs +14 -0
  144. package/iframe-window/index.d.ts +9 -0
  145. package/iframe-window/index.mjs +37 -0
  146. package/iframe-window/style.css +1 -0
  147. package/index.css +2 -0
  148. package/index.d.ts +57 -36
  149. package/index.mjs +59 -61
  150. package/package.json +10 -5
  151. package/pageable-table/index.d.ts +398 -0
  152. package/pageable-table/index.mjs +2 -0
  153. package/pageable-table/style.css +1 -0
  154. package/resolver/index.mjs +29 -0
  155. package/sub-table/index.d.ts +100 -0
  156. package/sub-table/index.mjs +472 -0
  157. package/sub-table/style.css +1 -0
  158. package/sub-table-plus/index.d.ts +97 -0
  159. package/sub-table-plus/index.mjs +2 -0
  160. package/sub-table-plus/style.css +1 -0
  161. package/table-column/index.d.ts +160 -0
  162. package/table-column/index.mjs +2 -0
  163. package/table-column/style.css +1 -0
  164. package/table-column-def/index.d.ts +95 -0
  165. package/table-column-def/index.mjs +11 -0
  166. package/table-view/index.d.ts +340 -1
  167. package/table-view/index.mjs +454 -6
  168. package/table-view/style.css +1 -0
  169. package/toolbar/index.d.ts +128 -1
  170. package/toolbar/index.mjs +1 -8
  171. package/toolbar/style.css +1 -0
  172. package/toolbar-button/index.d.ts +188 -1
  173. package/toolbar-button/index.mjs +1 -8
  174. package/vue-cron/index.d.ts +191 -0
  175. package/vue-cron/index.mjs +2 -0
  176. package/vue-cron/style.css +1 -0
  177. package/web-types.json +1 -1
  178. package/x-input-tag/index.d.ts +2 -0
  179. package/x-input-tag/index.mjs +228 -0
  180. package/x-input-tag/style.css +1 -0
  181. package/year-calendar/index.d.ts +99 -0
  182. package/year-calendar/index.mjs +2 -0
  183. package/year-calendar/style.css +1 -0
  184. package/chunks/B4M_TFeR.mjs +0 -152
  185. package/chunks/B5BIQCcK.mjs +0 -149
  186. package/chunks/BHNKrW1j.mjs +0 -61
  187. package/chunks/BO9jWhBl.mjs +0 -46
  188. package/chunks/BZ8aOa78.mjs +0 -35
  189. package/chunks/Bsz7y4Xp.mjs +0 -73
  190. package/chunks/Bxj372sF.mjs +0 -53
  191. package/chunks/C33EmJN8.mjs +0 -32
  192. package/chunks/C6Li3-l7.mjs +0 -28
  193. package/chunks/CBcdalMX.mjs +0 -35
  194. package/chunks/CdRsyF0n.mjs +0 -43
  195. package/chunks/ClNahmiU.mjs +0 -23
  196. package/chunks/CstztYMu.mjs +0 -28
  197. package/chunks/DC9b53M6.mjs +0 -32
  198. package/chunks/DDVAgRED.mjs +0 -36
  199. package/chunks/DpJQABVD.mjs +0 -91
  200. package/chunks/ZsLNWI9x.mjs +0 -46
  201. package/chunks/jn_iQrVZ.mjs +0 -28
  202. package/constants.d.ts +0 -1
  203. package/constants.mjs +0 -4
  204. package/form-check-box-group/index.d.ts +0 -93
  205. package/form-check-box-group/index.mjs +0 -2
  206. package/input/style.css +0 -1
  207. package/resolver.mjs +0 -79
  208. /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
@@ -0,0 +1,172 @@
1
+ import { i as e, n as t } from "./D_qiRmiE.mjs";
2
+ import { n, t as r } from "./CJdkjadi.mjs";
3
+ import { createVNode as i, mergeProps as a } from "vue";
4
+ import { ElTimePicker as o } from "element-plus/es";
5
+ //#region src/components/form/props/time.ts
6
+ var s = {
7
+ ...n,
8
+ ...r,
9
+ modelValue: [
10
+ Number,
11
+ String,
12
+ Object
13
+ ],
14
+ readonly: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ disabled: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ editable: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ clearable: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
30
+ size: String,
31
+ placeholder: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ startPlaceholder: {
36
+ type: String,
37
+ default: "开始时间"
38
+ },
39
+ endPlaceholder: {
40
+ type: String,
41
+ default: "结束时间"
42
+ },
43
+ isRange: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ arrowControl: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ popperClass: {
52
+ type: String,
53
+ default: ""
54
+ },
55
+ popperStyle: [String, Object],
56
+ popperOptions: Object,
57
+ fallbackPlacements: {
58
+ type: Array,
59
+ default: () => [
60
+ "bottom",
61
+ "top",
62
+ "right",
63
+ "left"
64
+ ]
65
+ },
66
+ placement: {
67
+ type: String,
68
+ default: "bottom-start"
69
+ },
70
+ rangeSeparator: {
71
+ type: String,
72
+ default: "-"
73
+ },
74
+ format: {
75
+ type: String,
76
+ default: "HH:mm:ss"
77
+ },
78
+ defaultValue: [Date, Array],
79
+ valueFormat: String,
80
+ id: [String, Array],
81
+ name: {
82
+ type: String,
83
+ default: ""
84
+ },
85
+ ariaLabel: String,
86
+ prefixIcon: [String, Object],
87
+ clearIcon: [String, Object],
88
+ disabledHours: Function,
89
+ disabledMinutes: Function,
90
+ disabledSeconds: Function,
91
+ teleported: {
92
+ type: Boolean,
93
+ default: !0
94
+ },
95
+ tabindex: [String, Number],
96
+ emptyValues: Array,
97
+ valueOnClear: [
98
+ String,
99
+ Number,
100
+ Boolean,
101
+ Function
102
+ ],
103
+ saveOnBlur: {
104
+ type: Boolean,
105
+ default: !0
106
+ },
107
+ range: Boolean,
108
+ start: {
109
+ type: String,
110
+ default: "09:00"
111
+ },
112
+ end: {
113
+ type: String,
114
+ default: "18:00"
115
+ },
116
+ step: {
117
+ type: String,
118
+ default: "00:30"
119
+ },
120
+ minTime: {
121
+ type: String,
122
+ default: "00:00"
123
+ },
124
+ maxTime: {
125
+ type: String,
126
+ default: ""
127
+ },
128
+ selectableRange: String
129
+ }, c = {
130
+ disabled: !0,
131
+ modelValue: !0,
132
+ isRange: !0,
133
+ range: !0,
134
+ placement: !0,
135
+ popperOptions: !0,
136
+ start: !0,
137
+ end: !0,
138
+ step: !0,
139
+ minTime: !0,
140
+ maxTime: !0,
141
+ selectableRange: !0
142
+ }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
143
+ name: "FormInputTime",
144
+ inheritAttrs: !1,
145
+ props: { ...s },
146
+ emits: { ...t },
147
+ setup(t, { emit: n, slots: r, attrs: s }) {
148
+ let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = e(t, {
149
+ emit: n,
150
+ slots: r,
151
+ attrs: s,
152
+ predicate: l
153
+ }), h = { modifiers: [{
154
+ name: "arrow",
155
+ options: { padding: ({ popper: e, reference: t, placement: n }) => e.width / 2 }
156
+ }] };
157
+ return () => u({ vNodes: i(o, a(p.value, m.value, {
158
+ "popper-options": t.popperOptions || h,
159
+ style: "width: 100%",
160
+ placement: t.placement || "left",
161
+ "is-range": t.isRange || t.range,
162
+ format: t.format,
163
+ "value-format": t.valueFormat || t.format,
164
+ modelValue: t.modelValue,
165
+ disabled: f.value,
166
+ "onUpdate:modelValue": c,
167
+ placeholder: d.value
168
+ }), null) });
169
+ }
170
+ };
171
+ //#endregion
172
+ export { u as t };
@@ -0,0 +1,83 @@
1
+ //#region src/components/table/table-column.ts
2
+ var e = {
3
+ type: {
4
+ type: String,
5
+ default: "default"
6
+ },
7
+ index: [Number, Function],
8
+ label: String,
9
+ columnKey: String,
10
+ prop: String,
11
+ width: [String, Number],
12
+ minWidth: [String, Number],
13
+ fixed: [Boolean, String],
14
+ renderHeader: Function,
15
+ sortable: [Boolean, String],
16
+ sortMethod: Function,
17
+ sortBy: [
18
+ Function,
19
+ String,
20
+ Array
21
+ ],
22
+ sortOrders: {
23
+ type: Array,
24
+ default: () => [
25
+ "ascending",
26
+ "descending",
27
+ null
28
+ ]
29
+ },
30
+ resizable: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
34
+ formatter: Function,
35
+ showOverflowTooltip: {
36
+ type: [Boolean, Object],
37
+ default: !0
38
+ },
39
+ align: {
40
+ type: String,
41
+ default: "left"
42
+ },
43
+ headerAlign: {
44
+ type: String,
45
+ default: "left"
46
+ },
47
+ className: String,
48
+ labelClassName: String,
49
+ selectable: Function,
50
+ reserveSelection: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ filters: Array,
55
+ filterPlacement: String,
56
+ filterClassName: String,
57
+ filterMultiple: {
58
+ type: Boolean,
59
+ default: !0
60
+ },
61
+ filterMethod: Function,
62
+ filteredValue: {
63
+ type: Array,
64
+ default: () => []
65
+ },
66
+ tooltipFormatter: Function,
67
+ property: String,
68
+ showTooltipWhenOverflow: Boolean,
69
+ clickable: Boolean,
70
+ cellClick: Function,
71
+ dictType: String,
72
+ options: Array,
73
+ autoUpdate: Boolean,
74
+ treeDict: Boolean,
75
+ idAsValue: {
76
+ type: Boolean,
77
+ default: !0
78
+ },
79
+ labelAsValue: Boolean,
80
+ maxWidth: String
81
+ };
82
+ //#endregion
83
+ export { e as t };
@@ -0,0 +1,83 @@
1
+ import { isFunction as e } from "@web-utils/core";
2
+ import { defineComponent as t, h as n } from "vue";
3
+ import { ElButton as r, ElLoading as i, ElMessageBox as a } from "element-plus";
4
+ //#region src/components/button/confirmable-mixin.ts
5
+ async function o(t, n, r) {
6
+ let { stop: o, prevent: s, message: c, loadable: l, loadingText: u, confirmable: d, confirmType: f, confirmText: p, confirmTitle: m } = n;
7
+ o && t.stopPropagation(), s && t.preventDefault();
8
+ let { onBefore: h, onClick: g, onCancel: _, onAfter: v } = r;
9
+ if (e(g)) try {
10
+ let n = !0;
11
+ if (e(h) && (n = await h(t)), !n) return;
12
+ d && await a.confirm(c || p, {
13
+ type: f,
14
+ title: m
15
+ });
16
+ let r;
17
+ l && (r = i.service({
18
+ background: "rgba(0,0,0,0.3)",
19
+ text: u
20
+ }));
21
+ let o;
22
+ try {
23
+ o = await g(t);
24
+ } catch {}
25
+ l && (r == null || r.close()), e(v) && await v(t, o);
26
+ } catch (t) {
27
+ e(_) && await _(t);
28
+ }
29
+ }
30
+ var s = t({
31
+ inheritAttrs: !1,
32
+ props: {
33
+ stop: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ prevent: {
38
+ type: Boolean,
39
+ default: !0
40
+ },
41
+ text: {
42
+ type: String,
43
+ default: ""
44
+ },
45
+ message: String,
46
+ confirmable: {
47
+ type: Boolean,
48
+ default: !0
49
+ },
50
+ confirmText: {
51
+ type: String,
52
+ default: "你确定要删除该记录吗?"
53
+ },
54
+ confirmType: {
55
+ type: String,
56
+ default: "warning"
57
+ },
58
+ confirmTitle: String,
59
+ loadable: Boolean,
60
+ loadingText: {
61
+ type: String,
62
+ default: "正在处理中请稍候..."
63
+ },
64
+ tag: {
65
+ type: String,
66
+ default: "i"
67
+ },
68
+ icon: String
69
+ },
70
+ render() {
71
+ let e = this.tag === "ElButton" ? r : this.tag, { text: t, icon: i, ...a } = this.$props, { onClick: s, ...c } = this.$attrs;
72
+ return n(e, {
73
+ ...c,
74
+ ...a,
75
+ onClick: (e) => o(e, this.$props, this.$attrs)
76
+ }, {
77
+ default: this.$slots.default || (() => t),
78
+ icon: this.icon ? () => n("i", { class: this.icon }) : null
79
+ });
80
+ }
81
+ });
82
+ //#endregion
83
+ export { s as t };
@@ -0,0 +1,100 @@
1
+ import { i as e, n as t } from "./D_qiRmiE.mjs";
2
+ import { n, t as r } from "./CJdkjadi.mjs";
3
+ import { isString as i } from "@web-utils/core";
4
+ import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
+ import { ElInputNumber as c } from "element-plus/es";
6
+ //#region src/components/form/props/input-number.ts
7
+ var l = {
8
+ ...n,
9
+ ...r,
10
+ modelValue: [Number, null],
11
+ min: {
12
+ type: Number,
13
+ default: -(2 ** 53 - 1)
14
+ },
15
+ max: {
16
+ type: Number,
17
+ default: 2 ** 53 - 1
18
+ },
19
+ step: {
20
+ type: Number,
21
+ default: 1
22
+ },
23
+ stepStrictly: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ precision: Number,
28
+ size: {
29
+ type: String,
30
+ default: "default"
31
+ },
32
+ readonly: {
33
+ type: Boolean,
34
+ default: !1
35
+ },
36
+ controls: {
37
+ type: Boolean,
38
+ default: !1
39
+ },
40
+ controlsPosition: String,
41
+ name: String,
42
+ ariaLabel: String,
43
+ placeholder: String,
44
+ id: String,
45
+ valueOnClear: [
46
+ Number,
47
+ null,
48
+ String
49
+ ],
50
+ validateEvent: {
51
+ type: Boolean,
52
+ default: !0
53
+ },
54
+ inputmode: String,
55
+ align: {
56
+ type: String,
57
+ default: "left"
58
+ },
59
+ disabledScientific: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ prefix: String,
64
+ suffix: String,
65
+ append: String
66
+ }, u = {
67
+ readonly: !0,
68
+ placeholder: !0,
69
+ disabled: !0,
70
+ modelValue: !0,
71
+ prefix: !0,
72
+ suffix: !0
73
+ }, d = (e) => n[e] === void 0 && u[e] !== !0, f = {
74
+ name: "FormInputNumber",
75
+ inheritAttrs: !1,
76
+ props: { ...l },
77
+ emits: { ...t },
78
+ setup(t, { emit: n, slots: r, attrs: l }) {
79
+ let { emitInput: u, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = e(t, {
80
+ emit: n,
81
+ slots: r,
82
+ attrs: l,
83
+ predicate: d
84
+ }), _ = a(() => i(t.modelValue) ? Number(t.modelValue) : t.modelValue);
85
+ return () => f({ vNodes: o(c, s(h.value, g.value, {
86
+ style: "width: 100%",
87
+ modelValue: _.value,
88
+ disabled: m.value,
89
+ "onUpdate:modelValue": u,
90
+ placeholder: p.value
91
+ }), {
92
+ prefix: r.prefix || t.prefix ? () => t.prefix : null,
93
+ suffix: r.suffix || t.suffix ? () => t.suffix : t.append,
94
+ "decrease-icon": r["decrease-icon"],
95
+ "increase-icon": r["increase-icon"]
96
+ }) });
97
+ }
98
+ };
99
+ //#endregion
100
+ export { f as t };
@@ -0,0 +1,106 @@
1
+ import { i as e, n as t } from "./D_qiRmiE.mjs";
2
+ import { n } from "./CJdkjadi.mjs";
3
+ import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
+ import { ElSwitch as o } from "element-plus/es";
5
+ //#region src/components/form/props/switch.ts
6
+ var s = {
7
+ ...n,
8
+ modelValue: [
9
+ Boolean,
10
+ String,
11
+ Number
12
+ ],
13
+ loading: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ size: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ width: [Number, String],
22
+ inlinePrompt: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ activeIcon: [String, Object],
27
+ inactiveIcon: [String, Object],
28
+ activeActionIcon: [String, Object],
29
+ inactiveActionIcon: [String, Object],
30
+ activeText: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ inactiveText: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ activeValue: {
39
+ type: [
40
+ Boolean,
41
+ String,
42
+ Number
43
+ ],
44
+ default: "Y"
45
+ },
46
+ inactiveValue: {
47
+ type: [
48
+ Boolean,
49
+ String,
50
+ Number
51
+ ],
52
+ default: "N"
53
+ },
54
+ name: {
55
+ type: String,
56
+ default: ""
57
+ },
58
+ validateEvent: {
59
+ type: Boolean,
60
+ default: !0
61
+ },
62
+ beforeChange: Function,
63
+ id: String,
64
+ tabindex: [String, Number],
65
+ ariaLabel: String,
66
+ activeColor: {
67
+ type: String,
68
+ default: ""
69
+ },
70
+ inactiveColor: {
71
+ type: String,
72
+ default: ""
73
+ },
74
+ borderColor: {
75
+ type: String,
76
+ default: ""
77
+ }
78
+ }, c = {
79
+ disabled: !0,
80
+ modelValue: !0
81
+ }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
82
+ name: "FormSwitch",
83
+ inheritAttrs: !1,
84
+ props: { ...s },
85
+ emits: { ...t },
86
+ setup(t, { emit: n, slots: s, attrs: c }) {
87
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
88
+ emit: n,
89
+ attrs: c,
90
+ slots: s,
91
+ predicate: l
92
+ });
93
+ return () => d({ vNodes: r(o, i(p.value, m.value, {
94
+ modelValue: u.value,
95
+ "onUpdate:modelValue": (e) => u.value = e,
96
+ disabled: f.value
97
+ }), {
98
+ "active-action": s["active-action"],
99
+ "inactive-action": s["inactive-action"],
100
+ active: s.active,
101
+ inactive: s.inactive
102
+ }) });
103
+ }
104
+ };
105
+ //#endregion
106
+ export { u as t };
@@ -0,0 +1,35 @@
1
+ import { f as e } from "./DcTVYqeJ.mjs";
2
+ import { o as t, r as n } from "./D_qiRmiE.mjs";
3
+ import { n as r } from "./CJdkjadi.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 = (e) => r[e] === void 0 && l[e] !== !0;
13
+ //#endregion
14
+ //#region src/components/form/FormImage.vue?vue&type=script&lang.jsx
15
+ function d(e) {
16
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !a(e);
17
+ }
18
+ //#endregion
19
+ //#region src/components/form/FormImage.vue
20
+ var f = {
21
+ name: "FormImage",
22
+ inheritAttrs: !1,
23
+ props: { ...c },
24
+ emits: {},
25
+ setup(r, { slots: a, attrs: c }) {
26
+ let l = t(r, { attrs: c }), f = e(r, u);
27
+ return () => n(r, {
28
+ vNodes: i(s, o(f.value, c, { "preview-src-list": [r.src] }), d(a) ? a : { default: () => [a] }),
29
+ formItemProps: l,
30
+ slots: a
31
+ });
32
+ }
33
+ };
34
+ //#endregion
35
+ export { f as t };
@@ -0,0 +1,81 @@
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 };