@web-utils/form-ui 1.0.0-beta4 → 1.0.0-beta40

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 (189) 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 -0
  6. package/chunks/B1MSrc6f.mjs +8 -0
  7. package/chunks/B3ajWLh3.mjs +198 -0
  8. package/chunks/BH_JJ8Xh.mjs +106 -0
  9. package/chunks/BWBHzD5N.mjs +89 -0
  10. package/chunks/Bd1UFJic.mjs +660 -0
  11. package/chunks/Bm5eiSmT.mjs +79 -0
  12. package/chunks/BsCS7SB5.mjs +141 -0
  13. package/chunks/BufIRDd0.mjs +185 -0
  14. package/chunks/C1AgOUe_.mjs +172 -0
  15. package/chunks/C3Uo82-I.mjs +35 -0
  16. package/chunks/C9dGL28n.mjs +56 -0
  17. package/chunks/CFOGMFgo.mjs +150 -0
  18. package/chunks/CLPSCSsy.mjs +603 -0
  19. package/chunks/CSyJ-vEx.mjs +17 -0
  20. package/chunks/CTKmEf2M.mjs +93 -0
  21. package/chunks/CWfUPCtS.mjs +1360 -0
  22. package/chunks/CXvGoZKJ.mjs +198 -0
  23. package/chunks/Cab-ZjRx.mjs +164 -0
  24. package/chunks/ChmDDqoZ2.mjs +478 -0
  25. package/chunks/Cj59E77g.mjs +230 -0
  26. package/chunks/CqTcEefA.mjs +93 -0
  27. package/chunks/Ct5bDJ50.mjs +38 -0
  28. package/chunks/CuG2Q-PM.mjs +100 -0
  29. package/chunks/D8UVq1t1.mjs +176 -0
  30. package/chunks/DDmQcNm6.mjs +93 -0
  31. package/chunks/DF9fJMQS.mjs +105 -0
  32. package/chunks/DJe97Fgi.mjs +107 -0
  33. package/chunks/DXYgAmil.mjs +317 -0
  34. package/chunks/DhtHh0jk.mjs +87 -0
  35. package/chunks/DiJyms_r.mjs +100 -0
  36. package/chunks/Ds_Tpa_M.mjs +83 -0
  37. package/chunks/TvNHGVAP.mjs +25 -0
  38. package/chunks/XCGWTz41.mjs +25 -0
  39. package/chunks/XqRTtFfp.mjs +166 -0
  40. package/chunks/cmuHpsX6.mjs +109 -0
  41. package/chunks/o6VhYAN52.mjs +207 -0
  42. package/chunks/pdwFQpA8.mjs +57 -0
  43. package/chunks/taicx2sd.mjs +25 -0
  44. package/confirm-button/index.d.ts +113 -0
  45. package/confirm-button/index.mjs +35 -0
  46. package/confirmable/index.d.ts +84 -0
  47. package/confirmable/index.mjs +8 -0
  48. package/constants/index.d.ts +53 -0
  49. package/constants/index.mjs +4 -0
  50. package/editable-tree/index.d.ts +254 -0
  51. package/editable-tree/index.mjs +2 -0
  52. package/editable-tree/style.css +1 -0
  53. package/element-dialog/index.d.ts +337 -16
  54. package/element-dialog/index.mjs +2 -91
  55. package/empty-view/index.d.ts +2 -2
  56. package/empty-view/index.mjs +1 -1
  57. package/flex-scroll-area/index.d.ts +1 -1
  58. package/flex-scroll-area/index.mjs +1 -1
  59. package/form-advice/index.mjs +13 -12
  60. package/form-button/index.d.ts +114 -0
  61. package/form-button/index.mjs +36 -0
  62. package/form-card/index.d.ts +14 -0
  63. package/form-card/index.mjs +18 -0
  64. package/form-cascader/index.d.ts +472 -0
  65. package/form-cascader/index.mjs +2 -0
  66. package/form-check-box-group/index.d.ts +289 -18
  67. package/form-check-box-group/index.mjs +1 -1
  68. package/form-check-box-group/style.css +1 -0
  69. package/form-checkbox/index.d.ts +236 -16
  70. package/form-checkbox/index.mjs +1 -1
  71. package/form-date-picker/index.d.ts +390 -19
  72. package/form-date-picker/index.mjs +1 -1
  73. package/form-holder/index.d.ts +87 -20
  74. package/form-holder/index.mjs +1 -1
  75. package/form-holder/style.css +1 -1
  76. package/form-image/index.d.ts +145 -13
  77. package/form-image/index.mjs +1 -1
  78. package/form-input/index.d.ts +301 -20
  79. package/form-input/index.mjs +1 -1
  80. package/form-input/style.css +1 -0
  81. package/form-input-cron-expression/index.d.ts +217 -0
  82. package/form-input-cron-expression/index.mjs +2 -0
  83. package/form-input-cron-expression/style.css +1 -0
  84. package/form-input-email/index.d.ts +307 -16
  85. package/form-input-email/index.mjs +1 -1
  86. package/form-input-id-card/index.d.ts +307 -16
  87. package/form-input-id-card/index.mjs +1 -1
  88. package/form-input-number/index.d.ts +246 -18
  89. package/form-input-number/index.mjs +1 -1
  90. package/form-input-phone-number/index.d.ts +307 -16
  91. package/form-input-phone-number/index.mjs +1 -1
  92. package/form-input-tag/index.d.ts +263 -1
  93. package/form-input-tag/index.mjs +1 -3
  94. package/form-input-time/index.d.ts +434 -1
  95. package/form-input-time/index.mjs +1 -3
  96. package/form-item-config-provider/index.d.ts +22 -0
  97. package/form-item-config-provider/index.mjs +24 -0
  98. package/form-item-group/index.d.ts +91 -17
  99. package/form-item-group/index.mjs +2 -78
  100. package/form-item-group/style.css +1 -1
  101. package/form-item-x/index.d.ts +141 -11
  102. package/form-item-x/index.mjs +1 -1
  103. package/form-item-x/style.css +1 -0
  104. package/form-radio-group/index.d.ts +303 -16
  105. package/form-radio-group/index.mjs +1 -1
  106. package/form-rate/index.d.ts +254 -14
  107. package/form-rate/index.mjs +1 -1
  108. package/form-red-table/index.mjs +27 -26
  109. package/form-row/index.d.ts +2 -2
  110. package/form-row/index.mjs +1 -1
  111. package/form-select/index.d.ts +537 -18
  112. package/form-select/index.mjs +1 -1
  113. package/form-slider/index.d.ts +283 -16
  114. package/form-slider/index.mjs +1 -1
  115. package/form-switch/index.d.ts +272 -14
  116. package/form-switch/index.mjs +1 -1
  117. package/form-text/index.d.ts +165 -13
  118. package/form-text/index.mjs +1 -1
  119. package/form-textarea/index.d.ts +351 -0
  120. package/form-textarea/index.mjs +2 -0
  121. package/form-time-select/index.d.ts +319 -0
  122. package/form-time-select/index.mjs +2 -0
  123. package/form-view/index.mjs +1 -1
  124. package/helper/dictionary.d.ts +15 -0
  125. package/helper/dictionary.mjs +97 -0
  126. package/hook/useDictionary.d.ts +60 -0
  127. package/hook/useDictionary.mjs +15 -0
  128. package/hook/useVisibilityChange.d.ts +4 -0
  129. package/hook/useVisibilityChange.mjs +14 -0
  130. package/iframe-window/index.d.ts +9 -0
  131. package/iframe-window/index.mjs +37 -0
  132. package/iframe-window/style.css +1 -0
  133. package/index.d.ts +52 -36
  134. package/index.mjs +54 -61
  135. package/package.json +10 -5
  136. package/pageable-table/index.d.ts +398 -0
  137. package/pageable-table/index.mjs +2 -0
  138. package/pageable-table/style.css +1 -0
  139. package/resize-observer/index.d.ts +8 -0
  140. package/resize-observer/index.mjs +40 -0
  141. package/resize-observer/style.css +1 -0
  142. package/resolver/index.mjs +29 -0
  143. package/table-column/index.d.ts +160 -0
  144. package/table-column/index.mjs +2 -0
  145. package/table-column/style.css +1 -0
  146. package/table-column-def/index.d.ts +85 -0
  147. package/table-column-def/index.mjs +11 -0
  148. package/table-view/index.d.ts +340 -1
  149. package/table-view/index.mjs +453 -6
  150. package/table-view/style.css +1 -0
  151. package/toolbar/index.d.ts +128 -1
  152. package/toolbar/index.mjs +1 -8
  153. package/toolbar/style.css +1 -0
  154. package/toolbar-button/index.d.ts +188 -1
  155. package/toolbar-button/index.mjs +1 -8
  156. package/vue-cron/index.d.ts +191 -0
  157. package/vue-cron/index.mjs +2 -0
  158. package/vue-cron/style.css +1 -0
  159. package/web-types.json +1 -1
  160. package/x-input-tag/index.d.ts +2 -0
  161. package/x-input-tag/index.mjs +227 -0
  162. package/x-input-tag/style.css +1 -0
  163. package/year-calendar/index.d.ts +99 -0
  164. package/year-calendar/index.mjs +2 -0
  165. package/year-calendar/style.css +1 -0
  166. package/chunks/B4M_TFeR.mjs +0 -152
  167. package/chunks/B5BIQCcK.mjs +0 -149
  168. package/chunks/BHNKrW1j.mjs +0 -61
  169. package/chunks/BO9jWhBl.mjs +0 -46
  170. package/chunks/BZ8aOa78.mjs +0 -35
  171. package/chunks/Bsz7y4Xp.mjs +0 -73
  172. package/chunks/Bxj372sF.mjs +0 -53
  173. package/chunks/C33EmJN8.mjs +0 -32
  174. package/chunks/C6Li3-l7.mjs +0 -28
  175. package/chunks/CBcdalMX.mjs +0 -35
  176. package/chunks/CdRsyF0n.mjs +0 -43
  177. package/chunks/ClNahmiU.mjs +0 -23
  178. package/chunks/CstztYMu.mjs +0 -28
  179. package/chunks/DC9b53M6.mjs +0 -32
  180. package/chunks/DDVAgRED.mjs +0 -36
  181. package/chunks/DpJQABVD.mjs +0 -91
  182. package/chunks/ZsLNWI9x.mjs +0 -46
  183. package/chunks/jn_iQrVZ.mjs +0 -28
  184. package/constants.d.ts +0 -1
  185. package/constants.mjs +0 -4
  186. package/input/style.css +0 -1
  187. package/resolver.mjs +0 -79
  188. package/utils/style.css +0 -1
  189. /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
@@ -0,0 +1,317 @@
1
+ import { i as e, n as t } from "./Cj59E77g.mjs";
2
+ import { n } from "./CSyJ-vEx.mjs";
3
+ import { useDictionary as r } from "../hook/useDictionary.mjs";
4
+ import { isNumber as i, isPlainObject as a, isString as o } from "@web-utils/core";
5
+ import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
6
+ import { ElOption as f, ElSelect as p } from "element-plus/es";
7
+ //#region src/components/form/props/select.ts
8
+ var m = {
9
+ ...n,
10
+ modelValue: [
11
+ String,
12
+ Number,
13
+ Boolean,
14
+ Object,
15
+ Array
16
+ ],
17
+ multiple: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ options: {
22
+ type: Array,
23
+ default: () => []
24
+ },
25
+ props: {
26
+ type: Object,
27
+ default: () => ({
28
+ label: "label",
29
+ value: "value"
30
+ })
31
+ },
32
+ valueKey: {
33
+ type: String,
34
+ default: "value"
35
+ },
36
+ size: String,
37
+ clearable: {
38
+ type: Boolean,
39
+ default: !0
40
+ },
41
+ collapseTags: {
42
+ type: Boolean,
43
+ default: !1
44
+ },
45
+ collapseTagsTooltip: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ tagTooltip: {
50
+ type: Object,
51
+ default: () => ({})
52
+ },
53
+ multipleLimit: {
54
+ type: Number,
55
+ default: 0
56
+ },
57
+ id: String,
58
+ name: String,
59
+ effect: {
60
+ type: String,
61
+ default: "light"
62
+ },
63
+ autocomplete: {
64
+ type: String,
65
+ default: "off"
66
+ },
67
+ placeholder: String,
68
+ filterable: {
69
+ type: Boolean,
70
+ default: !1
71
+ },
72
+ allowCreate: {
73
+ type: Boolean,
74
+ default: !1
75
+ },
76
+ filterMethod: Function,
77
+ remote: {
78
+ type: Boolean,
79
+ default: !1
80
+ },
81
+ debounce: {
82
+ type: Number,
83
+ default: 300
84
+ },
85
+ remoteMethod: Function,
86
+ remoteShowSuffix: {
87
+ type: Boolean,
88
+ default: !1
89
+ },
90
+ loading: {
91
+ type: Boolean,
92
+ default: !1
93
+ },
94
+ loadingText: String,
95
+ noMatchText: String,
96
+ noDataText: String,
97
+ popperClass: {
98
+ type: String,
99
+ default: ""
100
+ },
101
+ popperStyle: [String, Object],
102
+ reserveKeyword: {
103
+ type: Boolean,
104
+ default: !0
105
+ },
106
+ defaultFirstOption: {
107
+ type: Boolean,
108
+ default: !1
109
+ },
110
+ teleported: {
111
+ type: Boolean,
112
+ default: !0
113
+ },
114
+ appendTo: [String, Object],
115
+ persistent: {
116
+ type: Boolean,
117
+ default: !0
118
+ },
119
+ automaticDropdown: {
120
+ type: Boolean,
121
+ default: !1
122
+ },
123
+ clearIcon: [String, Object],
124
+ fitInputWidth: {
125
+ type: Boolean,
126
+ default: !1
127
+ },
128
+ suffixIcon: [String, Object],
129
+ tagType: {
130
+ type: String,
131
+ default: "info"
132
+ },
133
+ tagEffect: {
134
+ type: String,
135
+ default: "light"
136
+ },
137
+ validateEvent: {
138
+ type: Boolean,
139
+ default: !0
140
+ },
141
+ dropDownOffset: {
142
+ type: Number,
143
+ default: 12
144
+ },
145
+ showArrow: {
146
+ type: Boolean,
147
+ default: !0
148
+ },
149
+ placement: {
150
+ type: String,
151
+ default: "bottom-start"
152
+ },
153
+ fallbackPlacements: {
154
+ type: Array,
155
+ default: () => [
156
+ "bottom-start",
157
+ "top-start",
158
+ "right",
159
+ "left"
160
+ ]
161
+ },
162
+ maxCollapseTags: {
163
+ type: Number,
164
+ default: 1
165
+ },
166
+ popperOptions: {
167
+ type: Object,
168
+ default: () => ({})
169
+ },
170
+ ariaLabel: String,
171
+ emptyValues: Array,
172
+ valueOnClear: [
173
+ String,
174
+ Number,
175
+ Boolean,
176
+ Function
177
+ ],
178
+ suffixTransition: {
179
+ type: Boolean,
180
+ default: !0
181
+ },
182
+ tabindex: [String, Number],
183
+ dictType: String,
184
+ gender: Boolean,
185
+ year: [Boolean, Number],
186
+ all: Boolean,
187
+ confirm: Boolean,
188
+ start: Number,
189
+ end: Number,
190
+ optionLabel: [String, Number],
191
+ emitLabel: Boolean,
192
+ english: Boolean,
193
+ chinese: Boolean,
194
+ typing: Boolean,
195
+ multipleStringMode: Boolean,
196
+ multipleStringSeparator: {
197
+ type: String,
198
+ default: ","
199
+ }
200
+ }, h = {
201
+ modelValue: !0,
202
+ emptyValues: !0,
203
+ disabled: !0,
204
+ dropDownOffset: !0,
205
+ valueOnClear: !0,
206
+ options: !0,
207
+ dictType: !0,
208
+ gender: !0,
209
+ year: !0,
210
+ all: !0,
211
+ confirm: !0,
212
+ start: !0,
213
+ end: !0,
214
+ optionLabel: !0,
215
+ emitLabel: !0,
216
+ english: !0,
217
+ chinese: !0,
218
+ typing: !0,
219
+ multipleStringMode: !0,
220
+ multipleStringSeparator: !0
221
+ }, g = (e) => n[e] === void 0 && h[e] !== !0, _ = {
222
+ name: "FormSelect",
223
+ inheritAttrs: !1,
224
+ props: { ...m },
225
+ emits: { ...t },
226
+ setup(t, { emit: n, slots: m, attrs: h }) {
227
+ let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = e(t, {
228
+ emit: n,
229
+ slots: m,
230
+ attrs: h,
231
+ predicate: g,
232
+ messagePrefix: "请选择"
233
+ }), C = u(null), w = u(!1);
234
+ d(() => {
235
+ if (t.multiple && t.multipleStringMode) {
236
+ var e;
237
+ C.value = (e = t.modelValue) == null ? void 0 : e.split(",").filter((e) => e);
238
+ } else C.value = t.modelValue;
239
+ });
240
+ let T = (e) => {
241
+ if (t.multiple && t.multipleStringMode ? _(e.join(t.multipleStringSeparator)) : _(e), t.emitLabel) {
242
+ let r = O.value.find((n) => n[t.props.value] === e), i = r == null ? void 0 : r[t.props.label];
243
+ i !== t.optionLabel && n("update:optionLabel", i);
244
+ }
245
+ }, { dictItems: E } = r(t), D = u([]), O = s(() => {
246
+ if (t.dictType) return E.value;
247
+ if (t.remote) return D.value;
248
+ if (t.gender) return [{
249
+ [t.props.label]: "男",
250
+ [t.props.value]: t.chinese ? "男" : t.typing ? 1 : "1"
251
+ }, {
252
+ [t.props.label]: "女",
253
+ [t.props.value]: t.chinese ? "女" : t.typing ? 2 : "2"
254
+ }];
255
+ if (t.confirm) return [{
256
+ [t.props.label]: "是",
257
+ [t.props.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
258
+ }, {
259
+ [t.props.label]: "否",
260
+ [t.props.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
261
+ }];
262
+ if (t.all) return [{
263
+ [t.props.value]: "",
264
+ [t.props.label]: "全部"
265
+ }, ...t.options];
266
+ if (t.start && t.end) return Array(t.end - t.start + 1).fill(1).map((e, n) => ({
267
+ [t.props.label]: t.start + n,
268
+ [t.props.value]: t.start + n
269
+ }));
270
+ if (t.year) {
271
+ let e = (/* @__PURE__ */ new Date()).getFullYear(), n = [], r = 10;
272
+ i(t.year) && (r = t.year);
273
+ for (let i = -r; i <= r; i++) {
274
+ let r = e + i;
275
+ n.push({
276
+ [t.props.label]: r,
277
+ [t.props.value]: r
278
+ });
279
+ }
280
+ return n;
281
+ }
282
+ return t.options ? t.options.map((e) => (e[t.props.value] = e[t.props.value] ?? e[t.props.label], e)) : [];
283
+ }), k = async (e) => {
284
+ try {
285
+ var n;
286
+ w.value = !0;
287
+ let r = await t.remoteMethod(e, t.prop);
288
+ ((n = r.data.data) == null ? void 0 : n.length) >= 0 ? o(r.data.data[0]) ? D.value = r.data.data.map((e) => ({
289
+ [t.props.value]: e,
290
+ [t.props.label]: e
291
+ })) : a(r.data.data[0]) && (D.value = r.data.data) : D.value = [];
292
+ } catch {}
293
+ w.value = !1;
294
+ };
295
+ return d(() => {
296
+ t.remote && k();
297
+ }), () => v({ vNodes: c(p, l(x.value, S.value, {
298
+ offset: t.dropDownOffset,
299
+ "model-value": C.value,
300
+ "onUpdate:modelValue": T,
301
+ disabled: b.value,
302
+ placeholder: y.value
303
+ }), {
304
+ ...m,
305
+ default: m.default || (() => {
306
+ var e;
307
+ return (e = O.value) == null ? void 0 : e.map(({ value: e, label: t }) => c(f, {
308
+ key: e,
309
+ label: t,
310
+ value: e
311
+ }, null));
312
+ })
313
+ }) });
314
+ }
315
+ };
316
+ //#endregion
317
+ export { _ as t };
@@ -0,0 +1,87 @@
1
+ import { i as e, n as t } from "./Cj59E77g.mjs";
2
+ import { n } from "./CSyJ-vEx.mjs";
3
+ import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
+ import { ElRate as o } from "element-plus/es";
5
+ //#region src/components/form/props/rate.ts
6
+ var s = {
7
+ ...n,
8
+ modelValue: Number,
9
+ max: {
10
+ type: Number,
11
+ default: 5
12
+ },
13
+ size: String,
14
+ allowHalf: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ lowThreshold: {
19
+ type: Number,
20
+ default: 2
21
+ },
22
+ highThreshold: {
23
+ type: Number,
24
+ default: 4
25
+ },
26
+ colors: [Array, Object],
27
+ voidColor: {
28
+ type: String,
29
+ default: "#c6d1de"
30
+ },
31
+ disabledVoidColor: {
32
+ type: String,
33
+ default: "#eff2f7"
34
+ },
35
+ icons: [Array, Object],
36
+ voidIcon: [String, Object],
37
+ disabledVoidIcon: [String, Object],
38
+ showText: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ showScore: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ textColor: String,
47
+ texts: {
48
+ type: Array,
49
+ default: () => [
50
+ "Extremely bad",
51
+ "Disappointed",
52
+ "Fair",
53
+ "Satisfied",
54
+ "Surprise"
55
+ ]
56
+ },
57
+ scoreTemplate: String,
58
+ clearable: {
59
+ type: Boolean,
60
+ default: !1
61
+ },
62
+ id: String,
63
+ ariaLabel: String
64
+ }, c = {
65
+ disabled: !0,
66
+ modelValue: !0
67
+ }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
68
+ name: "FormRate",
69
+ inheritAttrs: !1,
70
+ props: { ...s },
71
+ emits: { ...t },
72
+ setup(t, { emit: n, slots: s, attrs: c }) {
73
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
74
+ emit: n,
75
+ slots: s,
76
+ attrs: c,
77
+ predicate: l
78
+ });
79
+ return () => d({ vNodes: r(o, i(p.value, m.value, {
80
+ modelValue: u.value,
81
+ "onUpdate:modelValue": (e) => u.value = e,
82
+ disabled: f.value
83
+ }), null) });
84
+ }
85
+ };
86
+ //#endregion
87
+ export { u as t };
@@ -0,0 +1,100 @@
1
+ import { i as e, n as t } from "./Cj59E77g.mjs";
2
+ import { n, t as r } from "./CSyJ-vEx.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,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,25 @@
1
+ import { n as e } from "./Cj59E77g.mjs";
2
+ import { n as t, t as n } from "./CFOGMFgo.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 "./Cj59E77g.mjs";
2
+ import { n as t, t as n } from "./CFOGMFgo.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 };