@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
@@ -0,0 +1,216 @@
1
+ import { commonManualBindProps } from './common.ts';
2
+ export declare const allProps: {
3
+ /**
4
+ * 选中项绑定值
5
+ */
6
+ modelValue: (NumberConstructor | null)[];
7
+ /**
8
+ * 设置计数器允许的最小值
9
+ */
10
+ min: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ /**
15
+ * 设置计数器允许的最大值
16
+ */
17
+ max: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ /**
22
+ * 计数器步长
23
+ */
24
+ step: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ /**
29
+ * 是否只能输入 step 的倍数
30
+ */
31
+ stepStrictly: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ /**
36
+ * 数值精度
37
+ */
38
+ precision: NumberConstructor;
39
+ /**
40
+ * 计数器尺寸
41
+ * @values large, default, small
42
+ */
43
+ size: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ /**
48
+ * 原生 readonly 属性,是否只读
49
+ * @since 2.2.16
50
+ */
51
+ readonly: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ /**
56
+ * 是否使用控制按钮
57
+ */
58
+ controls: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ /**
63
+ * 控制按钮位置
64
+ * @values default, right
65
+ */
66
+ controlsPosition: StringConstructor;
67
+ /**
68
+ * 等价于原生 input name 属性
69
+ */
70
+ name: StringConstructor;
71
+ /**
72
+ * 等价于原生 input aria-label 属性
73
+ * @since 2.7.2
74
+ */
75
+ ariaLabel: StringConstructor;
76
+ /**
77
+ * 等价于原生 input placeholder 属性
78
+ */
79
+ placeholder: StringConstructor;
80
+ /**
81
+ * 等价于原生 input id 属性
82
+ */
83
+ id: StringConstructor;
84
+ /**
85
+ * 当输入框被清空时显示的值
86
+ * @since 2.2.0
87
+ */
88
+ valueOnClear: (StringConstructor | NumberConstructor | null)[];
89
+ /**
90
+ * 是否触发表单验证
91
+ */
92
+ validateEvent: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ /**
97
+ * 等价于原生 input inputmode 属性
98
+ * @since 2.10.3
99
+ */
100
+ inputmode: StringConstructor;
101
+ /**
102
+ * 内部输入文本对齐
103
+ * @since 2.10.5
104
+ * @values left, center, right
105
+ */
106
+ align: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ };
110
+ /**
111
+ * 禁用科学计数法的输入(例如输入 'e')
112
+ * @since 2.10.5
113
+ */
114
+ disabledScientific: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ prefix: StringConstructor;
119
+ suffix: StringConstructor;
120
+ append: StringConstructor;
121
+ wrapFormItem: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ disabled: {
126
+ type: BooleanConstructor;
127
+ default: undefined;
128
+ };
129
+ col: BooleanConstructor;
130
+ span: {
131
+ type: NumberConstructor;
132
+ default: number;
133
+ };
134
+ offset: {
135
+ type: NumberConstructor;
136
+ default: number;
137
+ };
138
+ push: {
139
+ type: NumberConstructor;
140
+ default: number;
141
+ };
142
+ pull: {
143
+ type: NumberConstructor;
144
+ default: number;
145
+ };
146
+ xs: {
147
+ type: (ObjectConstructor | NumberConstructor)[];
148
+ };
149
+ sm: {
150
+ type: (ObjectConstructor | NumberConstructor)[];
151
+ };
152
+ md: {
153
+ type: (ObjectConstructor | NumberConstructor)[];
154
+ };
155
+ lg: {
156
+ type: (ObjectConstructor | NumberConstructor)[];
157
+ };
158
+ xl: {
159
+ type: (ObjectConstructor | NumberConstructor)[];
160
+ };
161
+ tag: {
162
+ type: StringConstructor;
163
+ default: string;
164
+ };
165
+ prop: (StringConstructor | ArrayConstructor)[];
166
+ label: StringConstructor;
167
+ labelPosition: {
168
+ type: StringConstructor;
169
+ default: string;
170
+ };
171
+ labelWidth: (StringConstructor | NumberConstructor)[];
172
+ required: {
173
+ type: BooleanConstructor;
174
+ default: boolean;
175
+ };
176
+ rules: ObjectConstructor;
177
+ error: StringConstructor;
178
+ showMessage: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ inlineMessage: {
183
+ type: BooleanConstructor;
184
+ default: boolean;
185
+ };
186
+ for: StringConstructor;
187
+ validateStatus: StringConstructor;
188
+ messagePrefix: StringConstructor;
189
+ message: StringConstructor;
190
+ wrapCol: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ fixedSpan: NumberConstructor;
195
+ block: {
196
+ type: BooleanConstructor;
197
+ default: undefined;
198
+ };
199
+ unwrap: BooleanConstructor;
200
+ half: BooleanConstructor;
201
+ formItemClass: StringConstructor;
202
+ hideLabel: BooleanConstructor;
203
+ tips: {
204
+ type: StringConstructor;
205
+ };
206
+ tipsAfterLabel: {
207
+ type: BooleanConstructor;
208
+ default: boolean;
209
+ };
210
+ labelColspan: (StringConstructor | NumberConstructor)[];
211
+ inputColspan: (StringConstructor | NumberConstructor)[];
212
+ labelRowspan: (StringConstructor | NumberConstructor)[];
213
+ inputRowspan: (StringConstructor | NumberConstructor)[];
214
+ };
215
+ export declare const manualBindProps: Record<string, boolean | undefined>;
216
+ export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
@@ -0,0 +1,72 @@
1
+ import { commonAutoBindProps as e, commonManualBindProps as t } from "./common.mjs";
2
+ //#region src/props/input-number.ts
3
+ var n = {
4
+ ...t,
5
+ ...e,
6
+ modelValue: [Number, null],
7
+ min: {
8
+ type: Number,
9
+ default: -(2 ** 53 - 1)
10
+ },
11
+ max: {
12
+ type: Number,
13
+ default: 2 ** 53 - 1
14
+ },
15
+ step: {
16
+ type: Number,
17
+ default: 1
18
+ },
19
+ stepStrictly: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ precision: Number,
24
+ size: {
25
+ type: String,
26
+ default: "default"
27
+ },
28
+ readonly: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ controls: {
33
+ type: Boolean,
34
+ default: !1
35
+ },
36
+ controlsPosition: String,
37
+ name: String,
38
+ ariaLabel: String,
39
+ placeholder: String,
40
+ id: String,
41
+ valueOnClear: [
42
+ Number,
43
+ null,
44
+ String
45
+ ],
46
+ validateEvent: {
47
+ type: Boolean,
48
+ default: !0
49
+ },
50
+ inputmode: String,
51
+ align: {
52
+ type: String,
53
+ default: "left"
54
+ },
55
+ disabledScientific: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ prefix: String,
60
+ suffix: String,
61
+ append: String
62
+ }, r = {
63
+ readonly: !0,
64
+ placeholder: !0,
65
+ disabled: !0,
66
+ modelValue: !0,
67
+ prefix: !0,
68
+ suffix: !0,
69
+ valueOnClear: !0
70
+ }, i = (e) => t[e] === void 0 && r[e] !== !0;
71
+ //#endregion
72
+ export { n as allProps, r as manualBindProps, i as predicate };
@@ -0,0 +1,123 @@
1
+ import { commonManualBindProps } from './common.ts';
2
+ export declare const allProps: {
3
+ modelValue: (StringConstructor | ArrayConstructor)[];
4
+ arrayMode: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ objectMode: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ separator: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ boundarySelector: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ query: FunctionConstructor;
21
+ type: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ size: {
26
+ type: StringConstructor;
27
+ };
28
+ wrapFormItem: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ disabled: {
33
+ type: BooleanConstructor;
34
+ default: undefined;
35
+ };
36
+ col: BooleanConstructor;
37
+ span: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ offset: {
42
+ type: NumberConstructor;
43
+ default: number;
44
+ };
45
+ push: {
46
+ type: NumberConstructor;
47
+ default: number;
48
+ };
49
+ pull: {
50
+ type: NumberConstructor;
51
+ default: number;
52
+ };
53
+ xs: {
54
+ type: (ObjectConstructor | NumberConstructor)[];
55
+ };
56
+ sm: {
57
+ type: (ObjectConstructor | NumberConstructor)[];
58
+ };
59
+ md: {
60
+ type: (ObjectConstructor | NumberConstructor)[];
61
+ };
62
+ lg: {
63
+ type: (ObjectConstructor | NumberConstructor)[];
64
+ };
65
+ xl: {
66
+ type: (ObjectConstructor | NumberConstructor)[];
67
+ };
68
+ tag: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ prop: (StringConstructor | ArrayConstructor)[];
73
+ label: StringConstructor;
74
+ labelPosition: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ labelWidth: (StringConstructor | NumberConstructor)[];
79
+ required: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ rules: ObjectConstructor;
84
+ error: StringConstructor;
85
+ showMessage: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ inlineMessage: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ for: StringConstructor;
94
+ validateStatus: StringConstructor;
95
+ messagePrefix: StringConstructor;
96
+ message: StringConstructor;
97
+ wrapCol: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ fixedSpan: NumberConstructor;
102
+ block: {
103
+ type: BooleanConstructor;
104
+ default: undefined;
105
+ };
106
+ unwrap: BooleanConstructor;
107
+ half: BooleanConstructor;
108
+ formItemClass: StringConstructor;
109
+ hideLabel: BooleanConstructor;
110
+ tips: {
111
+ type: StringConstructor;
112
+ };
113
+ tipsAfterLabel: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ labelColspan: (StringConstructor | NumberConstructor)[];
118
+ inputColspan: (StringConstructor | NumberConstructor)[];
119
+ labelRowspan: (StringConstructor | NumberConstructor)[];
120
+ inputRowspan: (StringConstructor | NumberConstructor)[];
121
+ };
122
+ export declare const manualBindProps: Record<string, boolean | undefined>;
123
+ export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
@@ -0,0 +1,33 @@
1
+ import { commonAutoBindProps as e, commonManualBindProps as t } from "./common.mjs";
2
+ //#region src/props/input-tag.ts
3
+ var n = {
4
+ ...t,
5
+ ...e,
6
+ modelValue: [Array, String],
7
+ arrayMode: {
8
+ type: Boolean,
9
+ default: !0
10
+ },
11
+ objectMode: {
12
+ type: Boolean,
13
+ default: !0
14
+ },
15
+ separator: {
16
+ type: String,
17
+ default: ","
18
+ },
19
+ boundarySelector: {
20
+ type: String,
21
+ default: ".form-scroller"
22
+ },
23
+ query: Function,
24
+ type: {
25
+ type: String,
26
+ default: "标签"
27
+ }
28
+ }, r = {
29
+ disabled: !0,
30
+ modelValue: !0
31
+ }, i = (e) => t[e] === void 0 && r[e] !== !0;
32
+ //#endregion
33
+ export { n as allProps, r as manualBindProps, i as predicate };