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

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/{CauzhVSa2.mjs → 4-vc_q1t.mjs} +12 -12
  3. package/chunks/{Bq62m7IR2.mjs → 4C611CU2.mjs} +11 -11
  4. package/chunks/{gLPy4Sus.mjs → 8P-OAGbj.mjs} +1 -1
  5. package/chunks/B2PuSZ_F.mjs +35 -0
  6. package/chunks/B6B-rhhB.mjs +37 -0
  7. package/chunks/{C7Mak2La.mjs → BHT38Us-.mjs} +7 -6
  8. package/chunks/BWoKh6f6.mjs +66 -0
  9. package/chunks/{Dt_s96gL2.mjs → BXrA0SYn2.mjs} +2 -2
  10. package/chunks/BZ0v5mka.mjs +30 -0
  11. package/chunks/{5KomemiE2.mjs → BlmtfUfl2.mjs} +29 -29
  12. package/chunks/CE1uX9hJ.mjs +95 -0
  13. package/chunks/CGnOR2gn.mjs +59 -0
  14. package/chunks/CJ1-f8sg.mjs +30 -0
  15. package/chunks/{B3A-CnYr.mjs → CSnlDCNV.mjs} +5 -5
  16. package/chunks/CdzoVG6J.mjs +47 -0
  17. package/chunks/{BZTAuJxn2.mjs → CqoMZ9Wo2.mjs} +1 -1
  18. package/chunks/CrQmTHMA.mjs +105 -0
  19. package/chunks/Crh2RUrS.mjs +106 -0
  20. package/chunks/DBUJ7Bva.mjs +56 -0
  21. package/chunks/DB_UKPay.mjs +27 -0
  22. package/chunks/{BvKUeniN.mjs → DEC2O0q-.mjs} +46 -44
  23. package/chunks/{BoJgSMkL.mjs → DUhF8YOY.mjs} +2 -2
  24. package/chunks/{g8MIBMw92.mjs → Dqq8z1t4.mjs} +13 -13
  25. package/chunks/Du1PslcN.mjs +28 -0
  26. package/chunks/{Dluor05A.mjs → DyEYDv4B.mjs} +7 -6
  27. package/chunks/EAJCsX8W.mjs +32 -0
  28. package/chunks/ZFJ73RWd2.mjs +29 -0
  29. package/chunks/{D2B9Y3oT.mjs → fmIV_kHp.mjs} +2 -2
  30. package/chunks/h5488Kii.mjs +27 -0
  31. package/chunks/k3cC9SGC.mjs +27 -0
  32. package/chunks/{7GmKqdbC.mjs → usyXQe35.mjs} +1 -1
  33. package/chunks/{BpCiVuKL.mjs → v3wbYL_-.mjs} +7 -6
  34. package/chunks/vd9nXj8B.mjs +59 -0
  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
@@ -1,90 +0,0 @@
1
- import { n as e, o as t } from "./BvKUeniN.mjs";
2
- import { n, t as r } from "./C6Dq9Dgb.mjs";
3
- import { createVNode as i, mergeProps as a } from "vue";
4
- import { ElTimeSelect as o } from "element-plus/es";
5
- //#region src/components/form/props/time-select.ts
6
- var s = {
7
- ...n,
8
- ...r,
9
- modelValue: String,
10
- editable: {
11
- type: Boolean,
12
- default: !0
13
- },
14
- clearable: {
15
- type: Boolean,
16
- default: !0
17
- },
18
- includeEndTime: {
19
- type: Boolean,
20
- default: !1
21
- },
22
- size: {
23
- type: String,
24
- default: "default"
25
- },
26
- placeholder: String,
27
- name: String,
28
- effect: {
29
- type: String,
30
- default: "light"
31
- },
32
- prefixIcon: [String, Object],
33
- clearIcon: [String, Object],
34
- start: {
35
- type: String,
36
- default: "09:00"
37
- },
38
- end: {
39
- type: String,
40
- default: "18:00"
41
- },
42
- step: {
43
- type: String,
44
- default: "00:30"
45
- },
46
- minTime: String,
47
- maxTime: String,
48
- format: {
49
- type: String,
50
- default: "HH:mm"
51
- },
52
- emptyValues: Array,
53
- valueOnClear: [
54
- String,
55
- Number,
56
- Boolean,
57
- Function
58
- ],
59
- popperClass: {
60
- type: String,
61
- default: ""
62
- },
63
- popperStyle: [String, Object]
64
- }, c = {
65
- disabled: !0,
66
- modelValue: !0,
67
- valueOnClear: !0
68
- }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
69
- name: "FormTimeSelect",
70
- inheritAttrs: !1,
71
- props: { ...s },
72
- emits: { ...e },
73
- setup(e, { emit: n, slots: r, attrs: s }) {
74
- let { emitInput: c, render: u, placeholder: d, disabled: f, listeners: p, inputProps: m } = t(e, {
75
- emit: n,
76
- slots: r,
77
- attrs: s,
78
- predicate: l
79
- });
80
- return () => u({ vNodes: i(o, a(p.value, m.value, {
81
- style: "width: 100%",
82
- modelValue: e.modelValue,
83
- disabled: f.value,
84
- "onUpdate:modelValue": c,
85
- placeholder: d.value
86
- }), null) });
87
- }
88
- };
89
- //#endregion
90
- export { u as t };
@@ -1,101 +0,0 @@
1
- import { n as e, o as t } from "./BvKUeniN.mjs";
2
- import { n, t as r } from "./C6Dq9Dgb.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
- valueOnClear: !0
74
- }, d = (e) => n[e] === void 0 && u[e] !== !0, f = {
75
- name: "FormInputNumber",
76
- inheritAttrs: !1,
77
- props: { ...l },
78
- emits: { ...e },
79
- setup(e, { emit: n, slots: r, attrs: l }) {
80
- let { emitInput: u, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = t(e, {
81
- emit: n,
82
- slots: r,
83
- attrs: l,
84
- predicate: d
85
- }), _ = a(() => i(e.modelValue) ? Number(e.modelValue) : e.modelValue);
86
- return () => f({ vNodes: o(c, s(h.value, g.value, {
87
- style: "width: 100%",
88
- modelValue: _.value,
89
- disabled: m.value,
90
- "onUpdate:modelValue": u,
91
- placeholder: p.value
92
- }), {
93
- prefix: r.prefix || e.prefix ? () => e.prefix : null,
94
- suffix: r.suffix || e.suffix ? () => e.suffix : e.append,
95
- "decrease-icon": r["decrease-icon"],
96
- "increase-icon": r["increase-icon"]
97
- }) });
98
- }
99
- };
100
- //#endregion
101
- export { f as t };
@@ -1,198 +0,0 @@
1
- import { n as e, o as t } from "./BvKUeniN.mjs";
2
- import { n } from "./C6Dq9Dgb.mjs";
3
- import { computed as r, createVNode as i, mergeProps as a } from "vue";
4
- import { ElDatePicker as o } from "element-plus/es";
5
- import { toDate as s } from "@web-utils/integrations/dayjs";
6
- //#region src/components/form/props/date.ts
7
- var c = {
8
- ...n,
9
- modelValue: [
10
- Number,
11
- String,
12
- Date,
13
- Array
14
- ],
15
- readonly: {
16
- type: Boolean,
17
- default: !1
18
- },
19
- size: String,
20
- editable: {
21
- type: Boolean,
22
- default: !0
23
- },
24
- clearable: {
25
- type: Boolean,
26
- default: !0
27
- },
28
- placeholder: {
29
- type: String,
30
- default: ""
31
- },
32
- startPlaceholder: {
33
- type: String,
34
- default: "开始日期"
35
- },
36
- endPlaceholder: {
37
- type: String,
38
- default: "结束日期"
39
- },
40
- type: {
41
- type: String,
42
- default: "date"
43
- },
44
- format: {
45
- type: String,
46
- default: "YYYY-MM-DD"
47
- },
48
- popperClass: String,
49
- popperStyle: [String, Object],
50
- popperOptions: {
51
- type: Object,
52
- default: () => ({})
53
- },
54
- rangeSeparator: {
55
- type: String,
56
- default: "至"
57
- },
58
- defaultValue: Object,
59
- defaultTime: Object,
60
- valueFormat: String,
61
- id: [String, Array],
62
- name: {
63
- type: [String, Array],
64
- default: ""
65
- },
66
- unlinkPanels: {
67
- type: Boolean,
68
- default: !1
69
- },
70
- prefixIcon: [String, Object],
71
- clearIcon: [String, Object],
72
- validateEvent: {
73
- type: Boolean,
74
- default: !0
75
- },
76
- disabledDate: Function,
77
- shortcuts: {
78
- type: Array,
79
- default: () => []
80
- },
81
- cellClassName: Function,
82
- teleported: {
83
- type: Boolean,
84
- default: !0
85
- },
86
- emptyValues: Array,
87
- valueOnClear: [
88
- String,
89
- Number,
90
- Boolean,
91
- Function
92
- ],
93
- fallbackPlacements: {
94
- type: Array,
95
- default: () => [
96
- "bottom",
97
- "top",
98
- "right",
99
- "left"
100
- ]
101
- },
102
- placement: {
103
- type: String,
104
- default: "bottom"
105
- },
106
- showFooter: {
107
- type: Boolean,
108
- default: !0
109
- },
110
- showConfirm: {
111
- type: Boolean,
112
- default: !0
113
- },
114
- showWeekNumber: {
115
- type: Boolean,
116
- default: !1
117
- },
118
- automaticDropdown: {
119
- type: Boolean,
120
- default: !0
121
- },
122
- split: {
123
- type: Boolean,
124
- default: !0
125
- },
126
- startDate: String,
127
- endDate: String,
128
- start: String,
129
- end: String,
130
- year: Boolean,
131
- month: Boolean,
132
- dates: Boolean,
133
- week: Boolean,
134
- dateTime: Boolean,
135
- dateTimeRange: Boolean,
136
- dateRange: Boolean,
137
- monthRange: Boolean,
138
- miniDate: String,
139
- maxDate: String
140
- }, l = {
141
- modelValue: !0,
142
- name: !0,
143
- disabled: !0,
144
- emptyValues: !0,
145
- type: !0,
146
- valueOnClear: !0
147
- }, u = (e) => n[e] === void 0 && l[e] !== !0, d = {
148
- name: "FormDatePicker",
149
- inheritAttrs: !1,
150
- props: { ...c },
151
- emits: {
152
- ...e,
153
- "update:startDate": null,
154
- "update:endDate": null
155
- },
156
- setup(e, { emit: n, slots: c, attrs: l }) {
157
- let { emitInput: d, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = t(e, {
158
- emit: n,
159
- slots: c,
160
- attrs: l,
161
- predicate: u,
162
- messagePrefix: "请选择"
163
- }), _ = r(() => e.dateTimeRange || e.dateRange || e.monthRange), v = r(() => e.year ? "YYYY" : e.month || e.monthRange ? "YYYY-MM" : e.week ? "YYYY 第 WW 周" : e.dateTime || e.dateTimeRange ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"), y = r(() => e.year ? "year" : e.month ? "month" : e.dates ? "dates" : e.week ? "week" : e.dateTime ? "datetime" : e.dateTimeRange ? "datetimerange" : e.dateRange ? "daterange" : e.monthRange ? "monthrange" : "date"), b = r(() => {
164
- if (e.miniDate) {
165
- let t = s(e.miniDate);
166
- return t.setDate(t.getDate() - 1), t;
167
- } else return null;
168
- }), x = r(() => e.maxDate ? s(e.maxDate) : null), S = (e) => {
169
- if (!b.value && !x.value) return !1;
170
- let t = e.getTime();
171
- return b.value && !x.value ? t <= b.value.getTime() : !b.value && x.value ? t >= x.value.getTime() : b.value && x.value ? !(t > b.value.getTime() && t <= x.value.getTime()) : !1;
172
- }, C = (e, t) => {
173
- n("update:startDate", e), n("update:endDate", t);
174
- }, w = (t) => {
175
- _.value && e.split ? t ? C(t[0], t[1]) : C(null, null) : d(t);
176
- }, T = r(() => _.value && e.split ? [e.startDate, e.endDate] : e.modelValue), E = r(() => e.week ? "YYYY-MM-DD" : e.valueFormat || v.value), D = r(() => e.format || v.value);
177
- return () => f({ vNodes: i(o, a(h.value, g.value, {
178
- style: "width: 100%",
179
- type: y.value,
180
- modelValue: T.value,
181
- disabled: m.value,
182
- placeholder: p.value,
183
- format: D.value,
184
- disabledDate: S,
185
- "value-format": E.value,
186
- "onUpdate:modelValue": w
187
- }), {
188
- default: c.default,
189
- "range-separator": c["range-separator"],
190
- "pre-month": c["pre-month"],
191
- "next-month": c["next-month"],
192
- "pre-year": c["pre-year"],
193
- "next-year": c["next-year"]
194
- }) });
195
- }
196
- };
197
- //#endregion
198
- export { d as t };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes