@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,114 @@
1
+ export declare const commonManualBindProps: {
2
+ /**
3
+ * 是否使用 FormItem 包裹
4
+ */
5
+ wrapFormItem: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
9
+ /**
10
+ * 是否禁用
11
+ */
12
+ disabled: {
13
+ type: BooleanConstructor;
14
+ default: undefined;
15
+ };
16
+ /**
17
+ * 是否使用 ElCol 包裹
18
+ */
19
+ col: BooleanConstructor;
20
+ span: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ offset: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ push: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ pull: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ };
36
+ xs: {
37
+ type: (ObjectConstructor | NumberConstructor)[];
38
+ };
39
+ sm: {
40
+ type: (ObjectConstructor | NumberConstructor)[];
41
+ };
42
+ md: {
43
+ type: (ObjectConstructor | NumberConstructor)[];
44
+ };
45
+ lg: {
46
+ type: (ObjectConstructor | NumberConstructor)[];
47
+ };
48
+ xl: {
49
+ type: (ObjectConstructor | NumberConstructor)[];
50
+ };
51
+ tag: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ prop: (StringConstructor | ArrayConstructor)[];
56
+ label: StringConstructor;
57
+ labelPosition: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ labelWidth: (StringConstructor | NumberConstructor)[];
62
+ required: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ rules: ObjectConstructor;
67
+ error: StringConstructor;
68
+ showMessage: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ inlineMessage: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ size: StringConstructor;
77
+ for: StringConstructor;
78
+ validateStatus: StringConstructor;
79
+ messagePrefix: StringConstructor;
80
+ message: StringConstructor;
81
+ wrapCol: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ fixedSpan: NumberConstructor;
86
+ block: {
87
+ type: BooleanConstructor;
88
+ default: undefined;
89
+ };
90
+ unwrap: BooleanConstructor;
91
+ half: BooleanConstructor;
92
+ formItemClass: StringConstructor;
93
+ hideLabel: BooleanConstructor;
94
+ tips: {
95
+ type: StringConstructor;
96
+ };
97
+ tipsAfterLabel: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ labelColspan: (StringConstructor | NumberConstructor)[];
102
+ inputColspan: (StringConstructor | NumberConstructor)[];
103
+ labelRowspan: (StringConstructor | NumberConstructor)[];
104
+ inputRowspan: (StringConstructor | NumberConstructor)[];
105
+ };
106
+ export declare const commonAutoBindProps: {
107
+ /**
108
+ * 大小
109
+ * @values 'large', 'default', 'small'
110
+ */
111
+ size: {
112
+ type: StringConstructor;
113
+ };
114
+ };
@@ -0,0 +1,18 @@
1
+ import { formItemProps as e } from "./form-item.mjs";
2
+ import { colProps as t } from "./col.mjs";
3
+ //#region src/props/common.ts
4
+ var n = {
5
+ ...e,
6
+ ...t,
7
+ wrapFormItem: {
8
+ type: Boolean,
9
+ default: !0
10
+ },
11
+ disabled: {
12
+ type: Boolean,
13
+ default: void 0
14
+ },
15
+ col: Boolean
16
+ }, r = { size: { type: String } };
17
+ //#endregion
18
+ export { r as commonAutoBindProps, n as commonManualBindProps };
@@ -0,0 +1,339 @@
1
+ import { commonManualBindProps } from './common.ts';
2
+ export declare const allProps: {
3
+ /**
4
+ * 绑定值,如果是 range 选择器,数组长度应为 2
5
+ */
6
+ modelValue: (StringConstructor | DateConstructor | ArrayConstructor | NumberConstructor)[];
7
+ /**
8
+ * 只读
9
+ */
10
+ readonly: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ /**
15
+ * 输入框尺寸
16
+ * @values large, default, small
17
+ */
18
+ size: StringConstructor;
19
+ /**
20
+ * 文本框可输入
21
+ */
22
+ editable: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ /**
27
+ * 是否显示清除按钮
28
+ */
29
+ clearable: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ /**
34
+ * 非范围选择时的占位内容
35
+ */
36
+ placeholder: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ /**
41
+ * 范围选择时开始日期的占位内容
42
+ */
43
+ startPlaceholder: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ /**
48
+ * 范围选择时结束日期的占位内容
49
+ */
50
+ endPlaceholder: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ /**
55
+ * 显示类型
56
+ * @values year, month, date, week, datetime, datetimerange, daterange, monthrange
57
+ */
58
+ type: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ /**
63
+ * 显示在输入框中的格式
64
+ */
65
+ format: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ /**
70
+ * DatePicker 下拉框的类名
71
+ */
72
+ popperClass: StringConstructor;
73
+ /**
74
+ * 弹出内容的自定义样式
75
+ */
76
+ popperStyle: (StringConstructor | ObjectConstructor)[];
77
+ /**
78
+ * 自定义 popper 选项,更多请参考 popper.js
79
+ */
80
+ popperOptions: {
81
+ type: ObjectConstructor;
82
+ default: () => {};
83
+ };
84
+ /**
85
+ * 选择范围时的分隔符
86
+ */
87
+ rangeSeparator: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ /**
92
+ * 可选,选择器打开时默认显示的时间
93
+ */
94
+ defaultValue: ObjectConstructor;
95
+ /**
96
+ * 范围选择时选中日期所使用的当日内具体时刻
97
+ */
98
+ defaultTime: ObjectConstructor;
99
+ /**
100
+ * 可选,绑定值的格式。不指定则绑定值为 Date 对象
101
+ */
102
+ valueFormat: StringConstructor;
103
+ /**
104
+ * 等价于原生 input id 属性
105
+ */
106
+ id: (StringConstructor | ArrayConstructor)[];
107
+ /**
108
+ * 等价于原生 input name 属性
109
+ */
110
+ name: {
111
+ type: (StringConstructor | ArrayConstructor)[];
112
+ default: string;
113
+ };
114
+ /**
115
+ * 在范围选择器里取消两个日期面板之间的联动
116
+ */
117
+ unlinkPanels: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ /**
122
+ * 自定义前缀图标 如果 type 的值是 TimeLikeType,那么就是 Clock,不然就是 Calendar
123
+ */
124
+ prefixIcon: (StringConstructor | ObjectConstructor)[];
125
+ /**
126
+ * 自定义清除图标
127
+ */
128
+ clearIcon: (StringConstructor | ObjectConstructor)[];
129
+ /**
130
+ * 是否触发表单验证
131
+ */
132
+ validateEvent: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ /**
137
+ * 一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。应该返回一个 Boolean 值
138
+ */
139
+ disabledDate: FunctionConstructor;
140
+ /**
141
+ * 设置快捷选项,需要传入数组对象
142
+ */
143
+ shortcuts: {
144
+ type: ArrayConstructor;
145
+ default: () => never[];
146
+ };
147
+ /**
148
+ * 设置自定义类名
149
+ */
150
+ cellClassName: FunctionConstructor;
151
+ /**
152
+ * 是否将 date-picker 的下拉列表插入至 body 元素
153
+ */
154
+ teleported: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ /**
159
+ * 组件的空值配置,参考 config-provider
160
+ * @since 2.7.0
161
+ */
162
+ emptyValues: ArrayConstructor;
163
+ /**
164
+ * 清空选项的值,参考 config-provider
165
+ * @since 2.7.0
166
+ */
167
+ valueOnClear: (StringConstructor | BooleanConstructor | FunctionConstructor | NumberConstructor)[];
168
+ /**
169
+ * Tooltip 可用的 positions 请查看 popper.js 文档
170
+ * @since 2.8.4
171
+ */
172
+ fallbackPlacements: {
173
+ type: ArrayConstructor;
174
+ default: () => string[];
175
+ };
176
+ /**
177
+ * 下拉框出现的位置
178
+ * @since 2.8.4
179
+ * @values top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end
180
+ */
181
+ placement: {
182
+ type: StringConstructor;
183
+ default: string;
184
+ };
185
+ /**
186
+ * 是否显示 footer
187
+ * @since 2.10.5
188
+ */
189
+ showFooter: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ /**
194
+ * 是否显示确定按钮
195
+ * @since 2.11.0
196
+ */
197
+ showConfirm: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ /**
202
+ * 显示周数(除周外)
203
+ * @since 2.10.3
204
+ */
205
+ showWeekNumber: {
206
+ type: BooleanConstructor;
207
+ default: boolean;
208
+ };
209
+ /**
210
+ * 该属性决定在输入框获得焦点时日期选择面板是否弹出。(在 3.0 版本中,默认值将设置为 false)
211
+ * @since 2.11.4
212
+ */
213
+ automaticDropdown: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ /**
218
+ * 是否切分, 只对范围选择有效
219
+ */
220
+ split: {
221
+ type: BooleanConstructor;
222
+ default: boolean;
223
+ };
224
+ /**
225
+ * 开始事件, 只对范围选择有效
226
+ */
227
+ startDate: StringConstructor;
228
+ /**
229
+ * 结束事件, 只对范围选择有效
230
+ */
231
+ endDate: StringConstructor;
232
+ start: StringConstructor;
233
+ end: StringConstructor;
234
+ year: BooleanConstructor;
235
+ month: BooleanConstructor;
236
+ dates: BooleanConstructor;
237
+ week: BooleanConstructor;
238
+ dateTime: BooleanConstructor;
239
+ dateTimeRange: BooleanConstructor;
240
+ dateRange: BooleanConstructor;
241
+ monthRange: BooleanConstructor;
242
+ miniDate: StringConstructor;
243
+ maxDate: StringConstructor;
244
+ wrapFormItem: {
245
+ type: BooleanConstructor;
246
+ default: boolean;
247
+ };
248
+ disabled: {
249
+ type: BooleanConstructor;
250
+ default: undefined;
251
+ };
252
+ col: BooleanConstructor;
253
+ span: {
254
+ type: NumberConstructor;
255
+ default: number;
256
+ };
257
+ offset: {
258
+ type: NumberConstructor;
259
+ default: number;
260
+ };
261
+ push: {
262
+ type: NumberConstructor;
263
+ default: number;
264
+ };
265
+ pull: {
266
+ type: NumberConstructor;
267
+ default: number;
268
+ };
269
+ xs: {
270
+ type: (ObjectConstructor | NumberConstructor)[];
271
+ };
272
+ sm: {
273
+ type: (ObjectConstructor | NumberConstructor)[];
274
+ };
275
+ md: {
276
+ type: (ObjectConstructor | NumberConstructor)[];
277
+ };
278
+ lg: {
279
+ type: (ObjectConstructor | NumberConstructor)[];
280
+ };
281
+ xl: {
282
+ type: (ObjectConstructor | NumberConstructor)[];
283
+ };
284
+ tag: {
285
+ type: StringConstructor;
286
+ default: string;
287
+ };
288
+ prop: (StringConstructor | ArrayConstructor)[];
289
+ label: StringConstructor;
290
+ labelPosition: {
291
+ type: StringConstructor;
292
+ default: string;
293
+ };
294
+ labelWidth: (StringConstructor | NumberConstructor)[];
295
+ required: {
296
+ type: BooleanConstructor;
297
+ default: boolean;
298
+ };
299
+ rules: ObjectConstructor;
300
+ error: StringConstructor;
301
+ showMessage: {
302
+ type: BooleanConstructor;
303
+ default: boolean;
304
+ };
305
+ inlineMessage: {
306
+ type: BooleanConstructor;
307
+ default: boolean;
308
+ };
309
+ for: StringConstructor;
310
+ validateStatus: StringConstructor;
311
+ messagePrefix: StringConstructor;
312
+ message: StringConstructor;
313
+ wrapCol: {
314
+ type: BooleanConstructor;
315
+ default: boolean;
316
+ };
317
+ fixedSpan: NumberConstructor;
318
+ block: {
319
+ type: BooleanConstructor;
320
+ default: undefined;
321
+ };
322
+ unwrap: BooleanConstructor;
323
+ half: BooleanConstructor;
324
+ formItemClass: StringConstructor;
325
+ hideLabel: BooleanConstructor;
326
+ tips: {
327
+ type: StringConstructor;
328
+ };
329
+ tipsAfterLabel: {
330
+ type: BooleanConstructor;
331
+ default: boolean;
332
+ };
333
+ labelColspan: (StringConstructor | NumberConstructor)[];
334
+ inputColspan: (StringConstructor | NumberConstructor)[];
335
+ labelRowspan: (StringConstructor | NumberConstructor)[];
336
+ inputRowspan: (StringConstructor | NumberConstructor)[];
337
+ };
338
+ export declare const manualBindProps: Record<string, boolean | undefined>;
339
+ export declare const predicate: (propsKey: keyof typeof commonManualBindProps) => boolean;
package/props/date.mjs ADDED
@@ -0,0 +1,145 @@
1
+ import { commonManualBindProps as e } from "./common.mjs";
2
+ //#region src/props/date.ts
3
+ var t = {
4
+ ...e,
5
+ modelValue: [
6
+ Number,
7
+ String,
8
+ Date,
9
+ Array
10
+ ],
11
+ readonly: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ size: String,
16
+ editable: {
17
+ type: Boolean,
18
+ default: !0
19
+ },
20
+ clearable: {
21
+ type: Boolean,
22
+ default: !0
23
+ },
24
+ placeholder: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ startPlaceholder: {
29
+ type: String,
30
+ default: "开始日期"
31
+ },
32
+ endPlaceholder: {
33
+ type: String,
34
+ default: "结束日期"
35
+ },
36
+ type: {
37
+ type: String,
38
+ default: "date"
39
+ },
40
+ format: {
41
+ type: String,
42
+ default: "YYYY-MM-DD"
43
+ },
44
+ popperClass: String,
45
+ popperStyle: [String, Object],
46
+ popperOptions: {
47
+ type: Object,
48
+ default: () => ({})
49
+ },
50
+ rangeSeparator: {
51
+ type: String,
52
+ default: "至"
53
+ },
54
+ defaultValue: Object,
55
+ defaultTime: Object,
56
+ valueFormat: String,
57
+ id: [String, Array],
58
+ name: {
59
+ type: [String, Array],
60
+ default: ""
61
+ },
62
+ unlinkPanels: {
63
+ type: Boolean,
64
+ default: !1
65
+ },
66
+ prefixIcon: [String, Object],
67
+ clearIcon: [String, Object],
68
+ validateEvent: {
69
+ type: Boolean,
70
+ default: !0
71
+ },
72
+ disabledDate: Function,
73
+ shortcuts: {
74
+ type: Array,
75
+ default: () => []
76
+ },
77
+ cellClassName: Function,
78
+ teleported: {
79
+ type: Boolean,
80
+ default: !0
81
+ },
82
+ emptyValues: Array,
83
+ valueOnClear: [
84
+ String,
85
+ Number,
86
+ Boolean,
87
+ Function
88
+ ],
89
+ fallbackPlacements: {
90
+ type: Array,
91
+ default: () => [
92
+ "bottom",
93
+ "top",
94
+ "right",
95
+ "left"
96
+ ]
97
+ },
98
+ placement: {
99
+ type: String,
100
+ default: "bottom"
101
+ },
102
+ showFooter: {
103
+ type: Boolean,
104
+ default: !0
105
+ },
106
+ showConfirm: {
107
+ type: Boolean,
108
+ default: !0
109
+ },
110
+ showWeekNumber: {
111
+ type: Boolean,
112
+ default: !1
113
+ },
114
+ automaticDropdown: {
115
+ type: Boolean,
116
+ default: !0
117
+ },
118
+ split: {
119
+ type: Boolean,
120
+ default: !0
121
+ },
122
+ startDate: String,
123
+ endDate: String,
124
+ start: String,
125
+ end: String,
126
+ year: Boolean,
127
+ month: Boolean,
128
+ dates: Boolean,
129
+ week: Boolean,
130
+ dateTime: Boolean,
131
+ dateTimeRange: Boolean,
132
+ dateRange: Boolean,
133
+ monthRange: Boolean,
134
+ miniDate: String,
135
+ maxDate: String
136
+ }, n = {
137
+ modelValue: !0,
138
+ name: !0,
139
+ disabled: !0,
140
+ emptyValues: !0,
141
+ type: !0,
142
+ valueOnClear: !0
143
+ }, r = (t) => e[t] === void 0 && n[t] !== !0;
144
+ //#endregion
145
+ export { t as allProps, n as manualBindProps, r as predicate };