instaui 0.2.0__py2.py3-none-any.whl → 0.2.1__py2.py3-none-any.whl
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.
- instaui/arco/component_types.py +389 -182
- instaui/arco/components/input.py +1 -1
- instaui/arco/components/typography.py +1 -1
- instaui/boot_info.py +2 -2
- instaui/components/component.py +5 -2
- instaui/components/element.py +11 -8
- instaui/components/html/range.py +2 -2
- instaui/components/html/ul.py +2 -2
- instaui/components/match.py +2 -2
- instaui/components/mixins.py +8 -4
- instaui/components/vfor.py +8 -6
- instaui/fastapi_server/_utils.py +5 -21
- instaui/fastapi_server/dependency_router.py +5 -1
- instaui/fastapi_server/event_router.py +5 -5
- instaui/fastapi_server/request_context.py +5 -4
- instaui/fastapi_server/watch_router.py +2 -2
- instaui/patch_update.py +54 -0
- instaui/response.py +64 -0
- instaui/spa_router/_file_base_utils.py +1 -1
- instaui/static/insta-ui.esm-browser.prod.js +817 -801
- instaui/static/insta-ui.js.map +1 -1
- instaui/ui/__init__.py +29 -6
- instaui/ui/__init__.pyi +2 -0
- instaui/ui_functions/ui_types.py +6 -2
- instaui/vars/mixin_types/element_binding.py +5 -1
- instaui/vars/mixin_types/observable.py +1 -1
- instaui/vars/vue_computed.py +5 -2
- instaui/webview/api.py +2 -23
- {instaui-0.2.0.dist-info → instaui-0.2.1.dist-info}/METADATA +1 -1
- {instaui-0.2.0.dist-info → instaui-0.2.1.dist-info}/RECORD +32 -30
- {instaui-0.2.0.dist-info → instaui-0.2.1.dist-info}/WHEEL +0 -0
- {instaui-0.2.0.dist-info → instaui-0.2.1.dist-info}/licenses/LICENSE +0 -0
instaui/arco/component_types.py
CHANGED
@@ -1,33 +1,41 @@
|
|
1
1
|
"""
|
2
2
|
This file is automatically generated by InstaUI. Do not modify it manually.
|
3
3
|
"""
|
4
|
+
|
4
5
|
from typing import Union, Dict, List, Any, Literal, Tuple, Optional
|
5
6
|
import datetime
|
6
7
|
from typing_extensions import TypedDict
|
7
8
|
from instaui.vars.types import TMaybeRef
|
8
9
|
|
10
|
+
|
9
11
|
class TButton(TypedDict, total=False):
|
10
|
-
type: TMaybeRef[
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
type: TMaybeRef[
|
13
|
+
Union[str, Literal["primary", "secondary", "dashed", "outline", "text"]]
|
14
|
+
]
|
15
|
+
shape: TMaybeRef[Union[str, Literal["square", "round", "circle"]]]
|
16
|
+
status: TMaybeRef[Union[str, Literal["normal", "warning", "success", "danger"]]]
|
17
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
14
18
|
long: TMaybeRef[bool]
|
15
19
|
loading: TMaybeRef[bool]
|
16
20
|
disabled: TMaybeRef[bool]
|
17
21
|
html_type: TMaybeRef[str]
|
18
22
|
autofocus: TMaybeRef[bool]
|
19
23
|
href: TMaybeRef[str]
|
20
|
-
|
24
|
+
|
25
|
+
|
21
26
|
class TLink(TypedDict, total=False):
|
22
27
|
href: TMaybeRef[str]
|
23
|
-
status: TMaybeRef[Union[str,Literal[
|
28
|
+
status: TMaybeRef[Union[str, Literal["normal", "warning", "success", "danger"]]]
|
24
29
|
hoverable: TMaybeRef[bool]
|
25
30
|
icon: TMaybeRef[bool]
|
26
31
|
loading: TMaybeRef[bool]
|
27
32
|
disabled: TMaybeRef[bool]
|
28
|
-
|
33
|
+
|
34
|
+
|
29
35
|
class TTypography(TypedDict, total=False):
|
30
|
-
type: TMaybeRef[
|
36
|
+
type: TMaybeRef[
|
37
|
+
Union[str, Literal["primary", "secondary", "success", "danger", "warning"]]
|
38
|
+
]
|
31
39
|
bold: TMaybeRef[bool]
|
32
40
|
mark: TMaybeRef[Union[bool, Dict[str, str]]]
|
33
41
|
underline: TMaybeRef[bool]
|
@@ -44,33 +52,40 @@ class TTypography(TypedDict, total=False):
|
|
44
52
|
ellipsis: TMaybeRef[Union[bool, Any]]
|
45
53
|
edit_tooltip_props: TMaybeRef[Dict]
|
46
54
|
copy_tooltip_props: TMaybeRef[Dict]
|
47
|
-
|
55
|
+
|
56
|
+
|
48
57
|
class TDivider(TypedDict, total=False):
|
49
|
-
direction: TMaybeRef[Union[str,Literal[
|
50
|
-
orientation: TMaybeRef[Union[str,Literal[
|
51
|
-
type: TMaybeRef[Union[str,Literal[
|
58
|
+
direction: TMaybeRef[Union[str, Literal["horizontal", "vertical"]]]
|
59
|
+
orientation: TMaybeRef[Union[str, Literal["left", "center", "right"]]]
|
60
|
+
type: TMaybeRef[Union[str, Literal["solid", "dashed", "dotted", "double"]]]
|
52
61
|
size: TMaybeRef[int]
|
53
62
|
margin: TMaybeRef[Union[int, str]]
|
54
|
-
|
63
|
+
|
64
|
+
|
55
65
|
class TLayout(TypedDict, total=False):
|
56
66
|
has_sider: TMaybeRef[bool]
|
57
|
-
|
67
|
+
|
68
|
+
|
58
69
|
class TSpace(TypedDict, total=False):
|
59
|
-
align: TMaybeRef[Union[str,Literal[
|
60
|
-
direction: TMaybeRef[Union[str,Literal[
|
61
|
-
size: TMaybeRef[Union[int, Union[str,Literal[
|
70
|
+
align: TMaybeRef[Union[str, Literal["start", "end", "center", "baseline"]]]
|
71
|
+
direction: TMaybeRef[Union[str, Literal["vertical", "horizontal"]]]
|
72
|
+
size: TMaybeRef[Union[int, Union[str, Literal["mini", "small", "medium", "large"]]]]
|
62
73
|
wrap: TMaybeRef[bool]
|
63
74
|
fill: TMaybeRef[bool]
|
64
|
-
|
75
|
+
|
76
|
+
|
65
77
|
class TAvatar(TypedDict, total=False):
|
66
|
-
shape: TMaybeRef[Union[str,Literal[
|
78
|
+
shape: TMaybeRef[Union[str, Literal["circle", "square"]]]
|
67
79
|
image_url: TMaybeRef[str]
|
68
80
|
size: TMaybeRef[int]
|
69
81
|
auto_fix_font_size: TMaybeRef[bool]
|
70
|
-
trigger_type: TMaybeRef[Union[str,Literal[
|
82
|
+
trigger_type: TMaybeRef[Union[str, Literal["mask", "button"]]]
|
71
83
|
trigger_icon_style: Any
|
72
|
-
object_fit: TMaybeRef[
|
73
|
-
|
84
|
+
object_fit: TMaybeRef[
|
85
|
+
Union[str, Literal["fill", "contain", "cover", "none", "scale-down"]]
|
86
|
+
]
|
87
|
+
|
88
|
+
|
74
89
|
class TBadge(TypedDict, total=False):
|
75
90
|
text: TMaybeRef[str]
|
76
91
|
dot: TMaybeRef[bool]
|
@@ -78,94 +93,114 @@ class TBadge(TypedDict, total=False):
|
|
78
93
|
max_count: TMaybeRef[int]
|
79
94
|
offset: TMaybeRef[List[int]]
|
80
95
|
color: TMaybeRef[Union[Any, str]]
|
81
|
-
status: TMaybeRef[
|
96
|
+
status: TMaybeRef[
|
97
|
+
Union[str, Literal["normal", "processing", "success", "warning", "danger"]]
|
98
|
+
]
|
82
99
|
count: TMaybeRef[int]
|
83
|
-
|
100
|
+
|
101
|
+
|
84
102
|
class TCalendar(TypedDict, total=False):
|
85
103
|
model_value: TMaybeRef[datetime.date]
|
86
104
|
default_value: TMaybeRef[datetime.date]
|
87
|
-
mode: TMaybeRef[Union[str,Literal[
|
88
|
-
default_mode: TMaybeRef[Union[str,Literal[
|
89
|
-
modes: TMaybeRef[List[Union[str,Literal[
|
90
|
-
|
105
|
+
mode: TMaybeRef[Union[str, Literal["month", "year"]]]
|
106
|
+
default_mode: TMaybeRef[Union[str, Literal["month", "year"]]]
|
107
|
+
modes: TMaybeRef[List[Union[str, Literal["month", "year"]]]]
|
108
|
+
|
109
|
+
|
91
110
|
class TCard(TypedDict, total=False):
|
92
111
|
bordered: TMaybeRef[bool]
|
93
112
|
loading: TMaybeRef[bool]
|
94
113
|
hoverable: TMaybeRef[bool]
|
95
|
-
size: TMaybeRef[Union[str,Literal[
|
114
|
+
size: TMaybeRef[Union[str, Literal["medium", "small"]]]
|
96
115
|
header_style: Any
|
97
116
|
body_style: Any
|
98
117
|
title: TMaybeRef[str]
|
99
118
|
extra: TMaybeRef[str]
|
100
|
-
|
119
|
+
|
120
|
+
|
101
121
|
class TCarousel(TypedDict, total=False):
|
102
122
|
current: TMaybeRef[int]
|
103
123
|
default_current: TMaybeRef[int]
|
104
124
|
auto_play: TMaybeRef[Union[bool, Any]]
|
105
125
|
move_speed: TMaybeRef[int]
|
106
|
-
animation_name: TMaybeRef[Union[str,Literal[
|
107
|
-
trigger: TMaybeRef[Union[str,Literal[
|
108
|
-
direction: TMaybeRef[Union[str,Literal[
|
109
|
-
show_arrow: TMaybeRef[Union[str,Literal[
|
126
|
+
animation_name: TMaybeRef[Union[str, Literal["slide", "fade", "card"]]]
|
127
|
+
trigger: TMaybeRef[Union[str, Literal["click", "hover"]]]
|
128
|
+
direction: TMaybeRef[Union[str, Literal["horizontal", "vertical"]]]
|
129
|
+
show_arrow: TMaybeRef[Union[str, Literal["always", "hover", "never"]]]
|
110
130
|
arrow_class: TMaybeRef[str]
|
111
|
-
indicator_type: TMaybeRef[Union[str,Literal[
|
112
|
-
indicator_position: TMaybeRef[
|
131
|
+
indicator_type: TMaybeRef[Union[str, Literal["line", "dot", "slider", "never"]]]
|
132
|
+
indicator_position: TMaybeRef[
|
133
|
+
Union[str, Literal["bottom", "top", "left", "right", "outer"]]
|
134
|
+
]
|
113
135
|
indicator_class: TMaybeRef[str]
|
114
136
|
transition_timing_function: TMaybeRef[str]
|
115
|
-
|
137
|
+
|
138
|
+
|
116
139
|
class TCollapse(TypedDict, total=False):
|
117
140
|
active_key: TMaybeRef[List[Union[str, int]]]
|
118
141
|
default_active_key: TMaybeRef[List[Union[str, int]]]
|
119
142
|
accordion: TMaybeRef[bool]
|
120
143
|
show_expand_icon: TMaybeRef[bool]
|
121
|
-
expand_icon_position: TMaybeRef[Union[str,Literal[
|
144
|
+
expand_icon_position: TMaybeRef[Union[str, Literal["left", "right"]]]
|
122
145
|
bordered: TMaybeRef[bool]
|
123
146
|
destroy_on_hide: TMaybeRef[bool]
|
124
|
-
|
147
|
+
|
148
|
+
|
125
149
|
class TComment(TypedDict, total=False):
|
126
150
|
author: TMaybeRef[str]
|
127
151
|
avatar: TMaybeRef[str]
|
128
152
|
content: TMaybeRef[str]
|
129
153
|
datetime: TMaybeRef[str]
|
130
154
|
align: Any
|
131
|
-
|
155
|
+
|
156
|
+
|
132
157
|
class TDescriptions(TypedDict, total=False):
|
133
158
|
data: TMaybeRef[List]
|
134
159
|
column: TMaybeRef[Union[int, Any]]
|
135
160
|
title: TMaybeRef[str]
|
136
|
-
layout: TMaybeRef[
|
161
|
+
layout: TMaybeRef[
|
162
|
+
Union[
|
163
|
+
str,
|
164
|
+
Literal["horizontal", "vertical", "inline-horizontal", "inline-vertical"],
|
165
|
+
]
|
166
|
+
]
|
137
167
|
align: Any
|
138
|
-
size: TMaybeRef[Union[str,Literal[
|
168
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
139
169
|
bordered: TMaybeRef[bool]
|
140
170
|
label_style: Any
|
141
171
|
value_style: Any
|
142
|
-
table_layout: TMaybeRef[Union[str,Literal[
|
143
|
-
|
172
|
+
table_layout: TMaybeRef[Union[str, Literal["auto", "fixed"]]]
|
173
|
+
|
174
|
+
|
144
175
|
class TEmpty(TypedDict, total=False):
|
145
176
|
description: TMaybeRef[str]
|
146
177
|
img_src: TMaybeRef[str]
|
147
178
|
in_config_provider: TMaybeRef[bool]
|
148
|
-
|
179
|
+
|
180
|
+
|
149
181
|
class TImage(TypedDict, total=False):
|
150
182
|
src: TMaybeRef[str]
|
151
183
|
width: TMaybeRef[Union[str, int]]
|
152
184
|
height: TMaybeRef[Union[str, int]]
|
153
185
|
title: TMaybeRef[str]
|
154
186
|
description: TMaybeRef[str]
|
155
|
-
fit: TMaybeRef[
|
187
|
+
fit: TMaybeRef[
|
188
|
+
Union[str, Literal["contain", "cover", "fill", "none", "scale-down"]]
|
189
|
+
]
|
156
190
|
alt: TMaybeRef[str]
|
157
|
-
hide_footer: TMaybeRef[Union[bool, Union[str,Literal[
|
158
|
-
footer_position: TMaybeRef[Union[str,Literal[
|
191
|
+
hide_footer: TMaybeRef[Union[bool, Union[str, Literal["never"]]]]
|
192
|
+
footer_position: TMaybeRef[Union[str, Literal["inner", "outer"]]]
|
159
193
|
show_loader: TMaybeRef[bool]
|
160
194
|
preview: TMaybeRef[bool]
|
161
195
|
preview_visible: TMaybeRef[bool]
|
162
196
|
default_preview_visible: TMaybeRef[bool]
|
163
197
|
preview_props: Any
|
164
198
|
footer_class: TMaybeRef[Union[str, List, Dict]]
|
165
|
-
|
199
|
+
|
200
|
+
|
166
201
|
class TList(TypedDict, total=False):
|
167
202
|
data: TMaybeRef[List]
|
168
|
-
size: TMaybeRef[Union[str,Literal[
|
203
|
+
size: TMaybeRef[Union[str, Literal["small", "medium", "large"]]]
|
169
204
|
bordered: TMaybeRef[bool]
|
170
205
|
split: TMaybeRef[bool]
|
171
206
|
loading: TMaybeRef[bool]
|
@@ -176,20 +211,40 @@ class TList(TypedDict, total=False):
|
|
176
211
|
bottom_offset: TMaybeRef[int]
|
177
212
|
virtual_list_props: Any
|
178
213
|
scrollbar: TMaybeRef[Union[bool, Any]]
|
179
|
-
|
214
|
+
|
215
|
+
|
180
216
|
class TPopover(TypedDict, total=False):
|
181
217
|
popup_visible: TMaybeRef[bool]
|
182
218
|
default_popup_visible: TMaybeRef[bool]
|
183
219
|
title: TMaybeRef[str]
|
184
220
|
content: TMaybeRef[str]
|
185
|
-
trigger: TMaybeRef[Union[str,Literal[
|
186
|
-
position: TMaybeRef[
|
221
|
+
trigger: TMaybeRef[Union[str, Literal["hover", "click", "focus", "contextMenu"]]]
|
222
|
+
position: TMaybeRef[
|
223
|
+
Union[
|
224
|
+
str,
|
225
|
+
Literal[
|
226
|
+
"top",
|
227
|
+
"tl",
|
228
|
+
"tr",
|
229
|
+
"bottom",
|
230
|
+
"bl",
|
231
|
+
"br",
|
232
|
+
"left",
|
233
|
+
"lt",
|
234
|
+
"lb",
|
235
|
+
"right",
|
236
|
+
"rt",
|
237
|
+
"rb",
|
238
|
+
],
|
239
|
+
]
|
240
|
+
]
|
187
241
|
content_class: Any
|
188
242
|
content_style: Any
|
189
243
|
arrow_class: Any
|
190
244
|
arrow_style: Any
|
191
245
|
popup_container: TMaybeRef[Union[str, Any]]
|
192
|
-
|
246
|
+
|
247
|
+
|
193
248
|
class TStatistic(TypedDict, total=False):
|
194
249
|
title: TMaybeRef[str]
|
195
250
|
value: TMaybeRef[Union[int, datetime.date, datetime.datetime]]
|
@@ -204,21 +259,24 @@ class TStatistic(TypedDict, total=False):
|
|
204
259
|
value_from_: TMaybeRef[int]
|
205
260
|
placeholder: TMaybeRef[str]
|
206
261
|
value_style: Any
|
207
|
-
|
262
|
+
|
263
|
+
|
208
264
|
class TTable(TypedDict, total=False):
|
209
265
|
columns: TMaybeRef[List]
|
210
266
|
data: TMaybeRef[List]
|
211
267
|
bordered: TMaybeRef[Union[bool, Any]]
|
212
268
|
hoverable: TMaybeRef[bool]
|
213
269
|
stripe: TMaybeRef[bool]
|
214
|
-
size: TMaybeRef[Union[str,Literal[
|
270
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
215
271
|
table_layout_fixed: TMaybeRef[bool]
|
216
272
|
loading: TMaybeRef[Union[bool, Dict[str, Any]]]
|
217
273
|
row_selection: Any
|
218
274
|
expandable: Any
|
219
275
|
scroll: TMaybeRef[Dict[str, Union[int, str]]]
|
220
276
|
pagination: TMaybeRef[Union[bool, Any]]
|
221
|
-
page_position: TMaybeRef[
|
277
|
+
page_position: TMaybeRef[
|
278
|
+
Union[str, Literal["tl", "top", "tr", "bl", "bottom", "br"]]
|
279
|
+
]
|
222
280
|
indent_size: TMaybeRef[int]
|
223
281
|
row_key: TMaybeRef[str]
|
224
282
|
show_header: TMaybeRef[bool]
|
@@ -242,13 +300,16 @@ class TTable(TypedDict, total=False):
|
|
242
300
|
sticky_header: TMaybeRef[Union[bool, int]]
|
243
301
|
scrollbar: TMaybeRef[Union[bool, Any]]
|
244
302
|
show_empty_tree: TMaybeRef[bool]
|
245
|
-
|
303
|
+
|
304
|
+
|
246
305
|
class TTabs(TypedDict, total=False):
|
247
306
|
default_active_key: TMaybeRef[Union[str, int]]
|
248
|
-
position: TMaybeRef[Union[str,Literal[
|
249
|
-
size: TMaybeRef[Union[str,Literal[
|
250
|
-
type: TMaybeRef[
|
251
|
-
|
307
|
+
position: TMaybeRef[Union[str, Literal["left", "right", "top", "bottom"]]]
|
308
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
309
|
+
type: TMaybeRef[
|
310
|
+
Union[str, Literal["line", "card", "card-gutter", "text", "rounded", "capsule"]]
|
311
|
+
]
|
312
|
+
direction: TMaybeRef[Union[str, Literal["horizontal", "vertical"]]]
|
252
313
|
editable: TMaybeRef[bool]
|
253
314
|
show_add_button: TMaybeRef[bool]
|
254
315
|
destroy_on_hide: TMaybeRef[bool]
|
@@ -258,12 +319,34 @@ class TTabs(TypedDict, total=False):
|
|
258
319
|
header_padding: TMaybeRef[bool]
|
259
320
|
auto_switch: TMaybeRef[bool]
|
260
321
|
hide_content: TMaybeRef[bool]
|
261
|
-
trigger: TMaybeRef[Union[str,Literal[
|
262
|
-
scroll_position: TMaybeRef[
|
263
|
-
|
322
|
+
trigger: TMaybeRef[Union[str, Literal["hover", "click"]]]
|
323
|
+
scroll_position: TMaybeRef[
|
324
|
+
Union[Union[str, Literal["start", "end", "center", "auto"]], int]
|
325
|
+
]
|
326
|
+
|
327
|
+
|
264
328
|
class TTag(TypedDict, total=False):
|
265
|
-
color: TMaybeRef[
|
266
|
-
|
329
|
+
color: TMaybeRef[
|
330
|
+
Union[
|
331
|
+
str,
|
332
|
+
Literal[
|
333
|
+
"red",
|
334
|
+
"orangered",
|
335
|
+
"orange",
|
336
|
+
"gold",
|
337
|
+
"lime",
|
338
|
+
"green",
|
339
|
+
"cyan",
|
340
|
+
"blue",
|
341
|
+
"arcoblue",
|
342
|
+
"purple",
|
343
|
+
"pinkpurple",
|
344
|
+
"magenta",
|
345
|
+
"gray",
|
346
|
+
],
|
347
|
+
]
|
348
|
+
]
|
349
|
+
size: TMaybeRef[Union[str, Literal["small", "medium", "large"]]]
|
267
350
|
bordered: TMaybeRef[bool]
|
268
351
|
visible: TMaybeRef[bool]
|
269
352
|
default_visible: TMaybeRef[bool]
|
@@ -273,19 +356,39 @@ class TTag(TypedDict, total=False):
|
|
273
356
|
checked: TMaybeRef[bool]
|
274
357
|
default_checked: TMaybeRef[bool]
|
275
358
|
nowrap: TMaybeRef[bool]
|
276
|
-
|
359
|
+
|
360
|
+
|
277
361
|
class TTimeline(TypedDict, total=False):
|
278
362
|
reverse: TMaybeRef[bool]
|
279
|
-
direction: TMaybeRef[Union[str,Literal[
|
280
|
-
mode: TMaybeRef[Union[str,Literal[
|
363
|
+
direction: TMaybeRef[Union[str, Literal["horizontal", "vertical"]]]
|
364
|
+
mode: TMaybeRef[Union[str, Literal["left", "right", "top", "bottom", "alternate"]]]
|
281
365
|
pending: TMaybeRef[Union[bool, str]]
|
282
|
-
label_position: TMaybeRef[Union[str,Literal[
|
283
|
-
|
366
|
+
label_position: TMaybeRef[Union[str, Literal["relative", "same"]]]
|
367
|
+
|
368
|
+
|
284
369
|
class TTooltip(TypedDict, total=False):
|
285
370
|
popup_visible: TMaybeRef[bool]
|
286
371
|
default_popup_visible: TMaybeRef[bool]
|
287
372
|
content: TMaybeRef[str]
|
288
|
-
position: TMaybeRef[
|
373
|
+
position: TMaybeRef[
|
374
|
+
Union[
|
375
|
+
str,
|
376
|
+
Literal[
|
377
|
+
"top",
|
378
|
+
"tl",
|
379
|
+
"tr",
|
380
|
+
"bottom",
|
381
|
+
"bl",
|
382
|
+
"br",
|
383
|
+
"left",
|
384
|
+
"lt",
|
385
|
+
"lb",
|
386
|
+
"right",
|
387
|
+
"rt",
|
388
|
+
"rb",
|
389
|
+
],
|
390
|
+
]
|
391
|
+
]
|
289
392
|
mini: TMaybeRef[bool]
|
290
393
|
background_color: TMaybeRef[str]
|
291
394
|
content_class: Any
|
@@ -293,16 +396,17 @@ class TTooltip(TypedDict, total=False):
|
|
293
396
|
arrow_class: Any
|
294
397
|
arrow_style: Any
|
295
398
|
popup_container: TMaybeRef[Union[str, Any]]
|
296
|
-
|
399
|
+
|
400
|
+
|
297
401
|
class TTree(TypedDict, total=False):
|
298
|
-
size: TMaybeRef[Union[str,Literal[
|
402
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
299
403
|
block_node: TMaybeRef[bool]
|
300
404
|
default_expand_all: TMaybeRef[bool]
|
301
405
|
multiple: TMaybeRef[bool]
|
302
406
|
checkable: TMaybeRef[Union[bool, str]]
|
303
407
|
selectable: TMaybeRef[Union[bool, str]]
|
304
408
|
check_strictly: TMaybeRef[bool]
|
305
|
-
checked_strategy: TMaybeRef[Union[str,Literal[
|
409
|
+
checked_strategy: TMaybeRef[Union[str, Literal["all", "parent", "child"]]]
|
306
410
|
default_selected_keys: TMaybeRef[List[Union[str, int]]]
|
307
411
|
selected_keys: TMaybeRef[List[Union[str, int]]]
|
308
412
|
default_checked_keys: TMaybeRef[List[Union[str, int]]]
|
@@ -322,8 +426,9 @@ class TTree(TypedDict, total=False):
|
|
322
426
|
half_checked_keys: TMaybeRef[List[Union[str, int]]]
|
323
427
|
only_check_leaf: TMaybeRef[bool]
|
324
428
|
animation: TMaybeRef[bool]
|
325
|
-
action_on_node_click: TMaybeRef[Union[str,Literal[
|
326
|
-
|
429
|
+
action_on_node_click: TMaybeRef[Union[str, Literal["expand"]]]
|
430
|
+
|
431
|
+
|
327
432
|
class TAutocomplete(TypedDict, total=False):
|
328
433
|
model_value: TMaybeRef[str]
|
329
434
|
default_value: TMaybeRef[str]
|
@@ -335,7 +440,8 @@ class TAutocomplete(TypedDict, total=False):
|
|
335
440
|
trigger_props: Any
|
336
441
|
allow_clear: TMaybeRef[bool]
|
337
442
|
virtual_list_props: Any
|
338
|
-
|
443
|
+
|
444
|
+
|
339
445
|
class TCascader(TypedDict, total=False):
|
340
446
|
path_mode: TMaybeRef[bool]
|
341
447
|
multiple: TMaybeRef[bool]
|
@@ -343,13 +449,13 @@ class TCascader(TypedDict, total=False):
|
|
343
449
|
default_value: TMaybeRef[Union[str, int, Dict[str, Any]]]
|
344
450
|
disabled: TMaybeRef[bool]
|
345
451
|
error: TMaybeRef[bool]
|
346
|
-
size: TMaybeRef[Union[str,Literal[
|
452
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
347
453
|
allow_search: TMaybeRef[bool]
|
348
454
|
allow_clear: TMaybeRef[bool]
|
349
455
|
input_value: TMaybeRef[str]
|
350
456
|
default_input_value: TMaybeRef[str]
|
351
457
|
popup_visible: TMaybeRef[bool]
|
352
|
-
expand_trigger: TMaybeRef[Union[str,Literal[
|
458
|
+
expand_trigger: TMaybeRef[Union[str, Literal["click", "hover"]]]
|
353
459
|
default_popup_visible: TMaybeRef[bool]
|
354
460
|
placeholder: TMaybeRef[str]
|
355
461
|
filter_option: TMaybeRef[str]
|
@@ -368,18 +474,20 @@ class TCascader(TypedDict, total=False):
|
|
368
474
|
expand_child: TMaybeRef[bool]
|
369
475
|
virtual_list_props: Any
|
370
476
|
tag_nowrap: TMaybeRef[bool]
|
371
|
-
|
477
|
+
|
478
|
+
|
372
479
|
class TCheckbox(TypedDict, total=False):
|
373
480
|
model_value: TMaybeRef[Union[bool, List[Union[str, int, bool]]]]
|
374
481
|
default_checked: TMaybeRef[bool]
|
375
482
|
disabled: TMaybeRef[bool]
|
376
483
|
indeterminate: TMaybeRef[bool]
|
377
|
-
|
484
|
+
|
485
|
+
|
378
486
|
class TColorpicker(TypedDict, total=False):
|
379
487
|
model_value: TMaybeRef[str]
|
380
488
|
default_value: TMaybeRef[str]
|
381
|
-
format: TMaybeRef[Union[str,Literal[
|
382
|
-
size: TMaybeRef[Union[str,Literal[
|
489
|
+
format: TMaybeRef[Union[str, Literal["hex", "rgb"]]]
|
490
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
383
491
|
show_text: TMaybeRef[bool]
|
384
492
|
show_history: TMaybeRef[bool]
|
385
493
|
show_preset: TMaybeRef[bool]
|
@@ -389,17 +497,18 @@ class TColorpicker(TypedDict, total=False):
|
|
389
497
|
trigger_props: Any
|
390
498
|
history_colors: TMaybeRef[List[str]]
|
391
499
|
preset_colors: TMaybeRef[List[str]]
|
392
|
-
|
500
|
+
|
501
|
+
|
393
502
|
class TDatepicker(TypedDict, total=False):
|
394
503
|
locale: TMaybeRef[Dict[str, Any]]
|
395
504
|
hide_trigger: TMaybeRef[bool]
|
396
505
|
allow_clear: TMaybeRef[bool]
|
397
506
|
readonly: TMaybeRef[bool]
|
398
507
|
error: TMaybeRef[bool]
|
399
|
-
size: TMaybeRef[Union[str,Literal[
|
508
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
400
509
|
shortcuts: TMaybeRef[List]
|
401
|
-
shortcuts_position: TMaybeRef[Union[str,Literal[
|
402
|
-
position: TMaybeRef[Union[str,Literal[
|
510
|
+
shortcuts_position: TMaybeRef[Union[str, Literal["left", "bottom", "right"]]]
|
511
|
+
position: TMaybeRef[Union[str, Literal["top", "tl", "tr", "bottom", "bl", "br"]]]
|
403
512
|
popup_visible: TMaybeRef[bool]
|
404
513
|
default_popup_visible: TMaybeRef[bool]
|
405
514
|
trigger_props: Any
|
@@ -411,29 +520,31 @@ class TDatepicker(TypedDict, total=False):
|
|
411
520
|
picker_value: TMaybeRef[Union[datetime.date, datetime.datetime, str, int]]
|
412
521
|
default_picker_value: TMaybeRef[Union[datetime.date, datetime.datetime, str, int]]
|
413
522
|
popup_container: TMaybeRef[Union[str, Any]]
|
414
|
-
value_format: TMaybeRef[Union[Union[str,Literal[
|
523
|
+
value_format: TMaybeRef[Union[Union[str, Literal["timestamp", "Date"]], str]]
|
415
524
|
preview_shortcut: TMaybeRef[bool]
|
416
525
|
show_confirm_btn: TMaybeRef[bool]
|
417
526
|
disabled_input: TMaybeRef[bool]
|
418
527
|
abbreviation: TMaybeRef[bool]
|
419
|
-
|
528
|
+
|
529
|
+
|
420
530
|
class TForm(TypedDict, total=False):
|
421
531
|
model: TMaybeRef[Dict]
|
422
|
-
layout: TMaybeRef[Union[str,Literal[
|
423
|
-
size: TMaybeRef[Union[str,Literal[
|
532
|
+
layout: TMaybeRef[Union[str, Literal["horizontal", "vertical", "inline"]]]
|
533
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
424
534
|
label_col_props: TMaybeRef[Dict]
|
425
535
|
wrapper_col_props: TMaybeRef[Dict]
|
426
|
-
label_align: TMaybeRef[Union[str,Literal[
|
536
|
+
label_align: TMaybeRef[Union[str, Literal["left", "right"]]]
|
427
537
|
disabled: TMaybeRef[bool]
|
428
538
|
rules: TMaybeRef[Dict[str, Union[Any, List]]]
|
429
539
|
auto_label_width: TMaybeRef[bool]
|
430
540
|
id: TMaybeRef[str]
|
431
541
|
scroll_to_first_error: TMaybeRef[bool]
|
432
|
-
|
542
|
+
|
543
|
+
|
433
544
|
class TInput(TypedDict, total=False):
|
434
545
|
model_value: TMaybeRef[str]
|
435
546
|
default_value: TMaybeRef[str]
|
436
|
-
size: TMaybeRef[Union[str,Literal[
|
547
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
437
548
|
allow_clear: TMaybeRef[bool]
|
438
549
|
disabled: TMaybeRef[bool]
|
439
550
|
readonly: TMaybeRef[bool]
|
@@ -446,11 +557,12 @@ class TInput(TypedDict, total=False):
|
|
446
557
|
input_attrs: TMaybeRef[Dict]
|
447
558
|
prepend: TMaybeRef[str]
|
448
559
|
append: TMaybeRef[str]
|
449
|
-
|
560
|
+
|
561
|
+
|
450
562
|
class TInputnumber(TypedDict, total=False):
|
451
563
|
model_value: TMaybeRef[int]
|
452
564
|
default_value: TMaybeRef[int]
|
453
|
-
mode: TMaybeRef[Union[str,Literal[
|
565
|
+
mode: TMaybeRef[Union[str, Literal["embed", "button"]]]
|
454
566
|
precision: TMaybeRef[int]
|
455
567
|
step: TMaybeRef[int]
|
456
568
|
disabled: TMaybeRef[bool]
|
@@ -461,24 +573,26 @@ class TInputnumber(TypedDict, total=False):
|
|
461
573
|
parser: TMaybeRef[str]
|
462
574
|
placeholder: TMaybeRef[str]
|
463
575
|
hide_button: TMaybeRef[bool]
|
464
|
-
size: TMaybeRef[Union[str,Literal[
|
576
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
465
577
|
allow_clear: TMaybeRef[bool]
|
466
|
-
model_event: TMaybeRef[Union[str,Literal[
|
578
|
+
model_event: TMaybeRef[Union[str, Literal["change", "input"]]]
|
467
579
|
read_only: TMaybeRef[bool]
|
468
580
|
input_attrs: TMaybeRef[Dict]
|
469
|
-
|
581
|
+
|
582
|
+
|
470
583
|
class TVerificationcode(TypedDict, total=False):
|
471
584
|
model_value: TMaybeRef[str]
|
472
585
|
default_value: TMaybeRef[str]
|
473
586
|
length: TMaybeRef[int]
|
474
|
-
size: TMaybeRef[Union[str,Literal[
|
587
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
475
588
|
disabled: TMaybeRef[bool]
|
476
589
|
masked: TMaybeRef[bool]
|
477
590
|
readonly: TMaybeRef[bool]
|
478
591
|
error: TMaybeRef[bool]
|
479
592
|
separator: TMaybeRef[str]
|
480
593
|
formatter: TMaybeRef[str]
|
481
|
-
|
594
|
+
|
595
|
+
|
482
596
|
class TInputtag(TypedDict, total=False):
|
483
597
|
model_value: TMaybeRef[List[Union[str, int, Any]]]
|
484
598
|
default_value: TMaybeRef[List[Union[str, int, Any]]]
|
@@ -489,30 +603,33 @@ class TInputtag(TypedDict, total=False):
|
|
489
603
|
error: TMaybeRef[bool]
|
490
604
|
readonly: TMaybeRef[bool]
|
491
605
|
allow_clear: TMaybeRef[bool]
|
492
|
-
size: TMaybeRef[Union[str,Literal[
|
606
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
493
607
|
max_tag_count: TMaybeRef[int]
|
494
608
|
retain_input_value: TMaybeRef[Union[bool, Dict[str, bool]]]
|
495
609
|
format_tag: TMaybeRef[str]
|
496
610
|
unique_value: TMaybeRef[bool]
|
497
611
|
field_names: Any
|
498
612
|
tag_nowrap: TMaybeRef[bool]
|
499
|
-
|
613
|
+
|
614
|
+
|
500
615
|
class TMention(TypedDict, total=False):
|
501
616
|
model_value: TMaybeRef[str]
|
502
617
|
default_value: TMaybeRef[str]
|
503
618
|
data: TMaybeRef[List[Union[str, int, Any]]]
|
504
619
|
prefix: TMaybeRef[Union[str, List[str]]]
|
505
620
|
split: TMaybeRef[str]
|
506
|
-
type: TMaybeRef[Union[str,Literal[
|
621
|
+
type: TMaybeRef[Union[str, Literal["input", "textarea"]]]
|
507
622
|
disabled: TMaybeRef[bool]
|
508
623
|
allow_clear: TMaybeRef[bool]
|
509
|
-
|
624
|
+
|
625
|
+
|
510
626
|
class TRadio(TypedDict, total=False):
|
511
627
|
model_value: TMaybeRef[Union[str, int, bool]]
|
512
628
|
default_checked: TMaybeRef[bool]
|
513
|
-
type: TMaybeRef[Union[str,Literal[
|
629
|
+
type: TMaybeRef[Union[str, Literal["radio", "button"]]]
|
514
630
|
disabled: TMaybeRef[bool]
|
515
|
-
|
631
|
+
|
632
|
+
|
516
633
|
class TRate(TypedDict, total=False):
|
517
634
|
count: TMaybeRef[int]
|
518
635
|
model_value: TMaybeRef[int]
|
@@ -523,14 +640,23 @@ class TRate(TypedDict, total=False):
|
|
523
640
|
readonly: TMaybeRef[bool]
|
524
641
|
disabled: TMaybeRef[bool]
|
525
642
|
color: TMaybeRef[Union[str, Dict[str, str]]]
|
526
|
-
|
643
|
+
|
644
|
+
|
527
645
|
class TSelect(TypedDict, total=False):
|
528
646
|
multiple: TMaybeRef[bool]
|
529
|
-
model_value: TMaybeRef[
|
530
|
-
|
647
|
+
model_value: TMaybeRef[
|
648
|
+
Union[
|
649
|
+
str, int, bool, Dict[str, Any], List[Union[str, int, bool, Dict[str, Any]]]
|
650
|
+
]
|
651
|
+
]
|
652
|
+
default_value: TMaybeRef[
|
653
|
+
Union[
|
654
|
+
str, int, bool, Dict[str, Any], List[Union[str, int, bool, Dict[str, Any]]]
|
655
|
+
]
|
656
|
+
]
|
531
657
|
input_value: TMaybeRef[str]
|
532
658
|
default_input_value: TMaybeRef[str]
|
533
|
-
size: TMaybeRef[Union[str,Literal[
|
659
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
534
660
|
placeholder: TMaybeRef[str]
|
535
661
|
loading: TMaybeRef[bool]
|
536
662
|
disabled: TMaybeRef[bool]
|
@@ -559,7 +685,8 @@ class TSelect(TypedDict, total=False):
|
|
559
685
|
show_header_on_empty: TMaybeRef[bool]
|
560
686
|
show_footer_on_empty: TMaybeRef[bool]
|
561
687
|
tag_nowrap: TMaybeRef[bool]
|
562
|
-
|
688
|
+
|
689
|
+
|
563
690
|
class TSlider(TypedDict, total=False):
|
564
691
|
model_value: TMaybeRef[Union[int, Tuple[int, int]]]
|
565
692
|
default_value: TMaybeRef[Union[int, Tuple[int, int]]]
|
@@ -573,14 +700,15 @@ class TSlider(TypedDict, total=False):
|
|
573
700
|
show_input: TMaybeRef[bool]
|
574
701
|
range: TMaybeRef[bool]
|
575
702
|
show_tooltip: TMaybeRef[bool]
|
576
|
-
|
703
|
+
|
704
|
+
|
577
705
|
class TSwitch(TypedDict, total=False):
|
578
706
|
model_value: TMaybeRef[Union[str, int, bool]]
|
579
707
|
default_checked: TMaybeRef[bool]
|
580
708
|
disabled: TMaybeRef[bool]
|
581
709
|
loading: TMaybeRef[bool]
|
582
|
-
type: TMaybeRef[Union[str,Literal[
|
583
|
-
size: TMaybeRef[Union[str,Literal[
|
710
|
+
type: TMaybeRef[Union[str, Literal["circle", "round", "line"]]]
|
711
|
+
size: TMaybeRef[Union[str, Literal["small", "medium"]]]
|
584
712
|
checked_value: TMaybeRef[Union[str, int, bool]]
|
585
713
|
unchecked_value: TMaybeRef[Union[str, int, bool]]
|
586
714
|
checked_color: TMaybeRef[str]
|
@@ -588,7 +716,8 @@ class TSwitch(TypedDict, total=False):
|
|
588
716
|
before_change: TMaybeRef[str]
|
589
717
|
checked_text: TMaybeRef[str]
|
590
718
|
unchecked_text: TMaybeRef[str]
|
591
|
-
|
719
|
+
|
720
|
+
|
592
721
|
class TTextarea(TypedDict, total=False):
|
593
722
|
model_value: TMaybeRef[str]
|
594
723
|
default_value: TMaybeRef[str]
|
@@ -602,18 +731,23 @@ class TTextarea(TypedDict, total=False):
|
|
602
731
|
word_length: TMaybeRef[str]
|
603
732
|
word_slice: TMaybeRef[str]
|
604
733
|
textarea_attrs: TMaybeRef[Dict[str, Any]]
|
605
|
-
|
734
|
+
|
735
|
+
|
606
736
|
class TTimepicker(TypedDict, total=False):
|
607
|
-
type: TMaybeRef[Union[str,Literal[
|
608
|
-
model_value: TMaybeRef[
|
609
|
-
|
737
|
+
type: TMaybeRef[Union[str, Literal["time", "time-range"]]]
|
738
|
+
model_value: TMaybeRef[
|
739
|
+
Union[str, int, datetime.date, List[Union[str, int, datetime.date]]]
|
740
|
+
]
|
741
|
+
default_value: TMaybeRef[
|
742
|
+
Union[str, int, datetime.date, List[Union[str, int, datetime.date]]]
|
743
|
+
]
|
610
744
|
disabled: TMaybeRef[bool]
|
611
745
|
allow_clear: TMaybeRef[bool]
|
612
746
|
readonly: TMaybeRef[bool]
|
613
747
|
error: TMaybeRef[bool]
|
614
748
|
format: TMaybeRef[str]
|
615
749
|
placeholder: TMaybeRef[Union[str, List[str]]]
|
616
|
-
size: TMaybeRef[Union[str,Literal[
|
750
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
617
751
|
popup_container: TMaybeRef[Union[str, Any]]
|
618
752
|
use12_hours: TMaybeRef[bool]
|
619
753
|
step: TMaybeRef[Dict[str, int]]
|
@@ -622,12 +756,13 @@ class TTimepicker(TypedDict, total=False):
|
|
622
756
|
disabled_seconds: Any
|
623
757
|
hide_disabled_options: TMaybeRef[bool]
|
624
758
|
disable_confirm: TMaybeRef[bool]
|
625
|
-
position: TMaybeRef[Union[str,Literal[
|
759
|
+
position: TMaybeRef[Union[str, Literal["top", "tl", "tr", "bottom", "bl", "br"]]]
|
626
760
|
popup_visible: TMaybeRef[bool]
|
627
761
|
default_popup_visible: TMaybeRef[bool]
|
628
762
|
trigger_props: Any
|
629
763
|
unmount_on_close: TMaybeRef[bool]
|
630
|
-
|
764
|
+
|
765
|
+
|
631
766
|
class TTransfer(TypedDict, total=False):
|
632
767
|
data: TMaybeRef[List]
|
633
768
|
model_value: TMaybeRef[List[str]]
|
@@ -642,12 +777,13 @@ class TTransfer(TypedDict, total=False):
|
|
642
777
|
title: TMaybeRef[List[str]]
|
643
778
|
source_input_search_props: TMaybeRef[Dict]
|
644
779
|
target_input_search_props: TMaybeRef[Dict]
|
645
|
-
|
780
|
+
|
781
|
+
|
646
782
|
class TTreeselect(TypedDict, total=False):
|
647
783
|
disabled: TMaybeRef[bool]
|
648
784
|
loading: TMaybeRef[bool]
|
649
785
|
error: TMaybeRef[bool]
|
650
|
-
size: TMaybeRef[Union[str,Literal[
|
786
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
651
787
|
border: TMaybeRef[bool]
|
652
788
|
allow_search: TMaybeRef[Union[bool, Dict[str, bool]]]
|
653
789
|
allow_clear: TMaybeRef[bool]
|
@@ -661,7 +797,7 @@ class TTreeselect(TypedDict, total=False):
|
|
661
797
|
label_in_value: TMaybeRef[bool]
|
662
798
|
tree_checkable: TMaybeRef[bool]
|
663
799
|
tree_check_strictly: TMaybeRef[bool]
|
664
|
-
tree_checked_strategy: TMaybeRef[Union[str,Literal[
|
800
|
+
tree_checked_strategy: TMaybeRef[Union[str, Literal["all", "parent", "child"]]]
|
665
801
|
tree_props: Any
|
666
802
|
trigger_props: Any
|
667
803
|
popup_visible: TMaybeRef[bool]
|
@@ -673,13 +809,14 @@ class TTreeselect(TypedDict, total=False):
|
|
673
809
|
disable_filter: TMaybeRef[bool]
|
674
810
|
popup_container: TMaybeRef[Union[str, Any]]
|
675
811
|
fallback_option: TMaybeRef[Union[bool, str]]
|
676
|
-
selectable: TMaybeRef[Union[bool, Union[str,Literal[
|
812
|
+
selectable: TMaybeRef[Union[bool, Union[str, Literal["leaf"]]]]
|
677
813
|
scrollbar: TMaybeRef[Union[bool, Any]]
|
678
814
|
show_header_on_empty: TMaybeRef[bool]
|
679
815
|
show_footer_on_empty: TMaybeRef[bool]
|
680
816
|
input_value: TMaybeRef[str]
|
681
817
|
default_input_value: TMaybeRef[str]
|
682
|
-
|
818
|
+
|
819
|
+
|
683
820
|
class TUpload(TypedDict, total=False):
|
684
821
|
file_list: TMaybeRef[List]
|
685
822
|
default_file_list: TMaybeRef[List]
|
@@ -705,27 +842,31 @@ class TUpload(TypedDict, total=False):
|
|
705
842
|
show_preview_button: TMaybeRef[bool]
|
706
843
|
download: TMaybeRef[bool]
|
707
844
|
show_link: TMaybeRef[bool]
|
708
|
-
image_loading: TMaybeRef[Union[str,Literal[
|
709
|
-
list_type: TMaybeRef[Union[str,Literal[
|
845
|
+
image_loading: TMaybeRef[Union[str, Literal["eager", "lazy"]]]
|
846
|
+
list_type: TMaybeRef[Union[str, Literal["text", "picture", "picture-card"]]]
|
710
847
|
response_url_key: TMaybeRef[Union[str, str]]
|
711
848
|
custom_icon: Any
|
712
849
|
image_preview: TMaybeRef[bool]
|
713
850
|
on_before_upload: TMaybeRef[str]
|
714
851
|
on_before_remove: TMaybeRef[str]
|
715
852
|
on_button_click: TMaybeRef[str]
|
716
|
-
|
853
|
+
|
854
|
+
|
717
855
|
class TAlert(TypedDict, total=False):
|
718
|
-
type: TMaybeRef[
|
856
|
+
type: TMaybeRef[
|
857
|
+
Union[str, Literal["info", "success", "warning", "error", "normal"]]
|
858
|
+
]
|
719
859
|
show_icon: TMaybeRef[bool]
|
720
860
|
closable: TMaybeRef[bool]
|
721
861
|
title: TMaybeRef[str]
|
722
862
|
banner: TMaybeRef[bool]
|
723
863
|
center: TMaybeRef[bool]
|
724
|
-
|
864
|
+
|
865
|
+
|
725
866
|
class TDrawer(TypedDict, total=False):
|
726
867
|
visible: TMaybeRef[bool]
|
727
868
|
default_visible: TMaybeRef[bool]
|
728
|
-
placement: TMaybeRef[Union[str,Literal[
|
869
|
+
placement: TMaybeRef[Union[str, Literal["top", "right", "bottom", "left"]]]
|
729
870
|
title: TMaybeRef[str]
|
730
871
|
mask: TMaybeRef[bool]
|
731
872
|
mask_closable: TMaybeRef[bool]
|
@@ -749,7 +890,8 @@ class TDrawer(TypedDict, total=False):
|
|
749
890
|
header: TMaybeRef[bool]
|
750
891
|
footer: TMaybeRef[bool]
|
751
892
|
hide_cancel: TMaybeRef[bool]
|
752
|
-
|
893
|
+
|
894
|
+
|
753
895
|
class TModal(TypedDict, total=False):
|
754
896
|
visible: TMaybeRef[bool]
|
755
897
|
default_visible: TMaybeRef[bool]
|
@@ -757,7 +899,7 @@ class TModal(TypedDict, total=False):
|
|
757
899
|
top: TMaybeRef[Union[int, str]]
|
758
900
|
mask: TMaybeRef[bool]
|
759
901
|
title: TMaybeRef[str]
|
760
|
-
title_align: TMaybeRef[Union[str,Literal[
|
902
|
+
title_align: TMaybeRef[Union[str, Literal["start", "center"]]]
|
761
903
|
align_center: TMaybeRef[bool]
|
762
904
|
unmount_on_close: TMaybeRef[bool]
|
763
905
|
mask_closable: TMaybeRef[bool]
|
@@ -785,7 +927,8 @@ class TModal(TypedDict, total=False):
|
|
785
927
|
body_class: TMaybeRef[Union[str, List]]
|
786
928
|
body_style: Any
|
787
929
|
hide_title: TMaybeRef[bool]
|
788
|
-
|
930
|
+
|
931
|
+
|
789
932
|
class TNotification(TypedDict, total=False):
|
790
933
|
info: TMaybeRef[str]
|
791
934
|
success: TMaybeRef[str]
|
@@ -793,13 +936,32 @@ class TNotification(TypedDict, total=False):
|
|
793
936
|
error: TMaybeRef[str]
|
794
937
|
remove: TMaybeRef[str]
|
795
938
|
clear: TMaybeRef[str]
|
796
|
-
|
939
|
+
|
940
|
+
|
797
941
|
class TPopconfirm(TypedDict, total=False):
|
798
942
|
content: TMaybeRef[str]
|
799
|
-
position: TMaybeRef[
|
943
|
+
position: TMaybeRef[
|
944
|
+
Union[
|
945
|
+
str,
|
946
|
+
Literal[
|
947
|
+
"top",
|
948
|
+
"tl",
|
949
|
+
"tr",
|
950
|
+
"bottom",
|
951
|
+
"bl",
|
952
|
+
"br",
|
953
|
+
"left",
|
954
|
+
"lt",
|
955
|
+
"lb",
|
956
|
+
"right",
|
957
|
+
"rt",
|
958
|
+
"rb",
|
959
|
+
],
|
960
|
+
]
|
961
|
+
]
|
800
962
|
popup_visible: TMaybeRef[bool]
|
801
963
|
default_popup_visible: TMaybeRef[bool]
|
802
|
-
type: TMaybeRef[Union[str,Literal[
|
964
|
+
type: TMaybeRef[Union[str, Literal["info", "success", "warning", "error"]]]
|
803
965
|
ok_text: TMaybeRef[str]
|
804
966
|
cancel_text: TMaybeRef[str]
|
805
967
|
ok_loading: TMaybeRef[bool]
|
@@ -812,10 +974,11 @@ class TPopconfirm(TypedDict, total=False):
|
|
812
974
|
popup_container: TMaybeRef[Union[str, Any]]
|
813
975
|
on_before_ok: TMaybeRef[str]
|
814
976
|
on_before_cancel: TMaybeRef[str]
|
815
|
-
|
977
|
+
|
978
|
+
|
816
979
|
class TProgress(TypedDict, total=False):
|
817
|
-
type: TMaybeRef[Union[str,Literal[
|
818
|
-
size: TMaybeRef[Union[str,Literal[
|
980
|
+
type: TMaybeRef[Union[str, Literal["line", "circle"]]]
|
981
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
819
982
|
percent: TMaybeRef[int]
|
820
983
|
steps: TMaybeRef[int]
|
821
984
|
animation: TMaybeRef[bool]
|
@@ -824,42 +987,55 @@ class TProgress(TypedDict, total=False):
|
|
824
987
|
color: TMaybeRef[Union[str, Dict]]
|
825
988
|
track_color: TMaybeRef[str]
|
826
989
|
show_text: TMaybeRef[bool]
|
827
|
-
status: TMaybeRef[Union[str,Literal[
|
828
|
-
|
990
|
+
status: TMaybeRef[Union[str, Literal["normal", "success", "warning", "danger"]]]
|
991
|
+
|
992
|
+
|
829
993
|
class TResult(TypedDict, total=False):
|
830
|
-
status: TMaybeRef[
|
994
|
+
status: TMaybeRef[
|
995
|
+
Union[
|
996
|
+
Union[
|
997
|
+
str, Literal["info", "success", "warning", "error", "403", "404", "500"]
|
998
|
+
],
|
999
|
+
None,
|
1000
|
+
]
|
1001
|
+
]
|
831
1002
|
title: TMaybeRef[str]
|
832
1003
|
subtitle: TMaybeRef[str]
|
833
|
-
|
1004
|
+
|
1005
|
+
|
834
1006
|
class TSpin(TypedDict, total=False):
|
835
1007
|
size: TMaybeRef[int]
|
836
1008
|
loading: TMaybeRef[bool]
|
837
1009
|
dot: TMaybeRef[bool]
|
838
1010
|
tip: TMaybeRef[str]
|
839
1011
|
hide_icon: TMaybeRef[bool]
|
840
|
-
|
1012
|
+
|
1013
|
+
|
841
1014
|
class TSkeleton(TypedDict, total=False):
|
842
1015
|
loading: TMaybeRef[bool]
|
843
1016
|
animation: TMaybeRef[bool]
|
844
|
-
|
1017
|
+
|
1018
|
+
|
845
1019
|
class TBreadcrumb(TypedDict, total=False):
|
846
1020
|
max_count: TMaybeRef[int]
|
847
1021
|
routes: TMaybeRef[List]
|
848
1022
|
separator: TMaybeRef[Union[str, int]]
|
849
1023
|
custom_url: TMaybeRef[str]
|
850
|
-
|
1024
|
+
|
1025
|
+
|
851
1026
|
class TDropdown(TypedDict, total=False):
|
852
1027
|
popup_visible: TMaybeRef[bool]
|
853
1028
|
default_popup_visible: TMaybeRef[bool]
|
854
|
-
trigger: TMaybeRef[Union[str,Literal[
|
855
|
-
position: TMaybeRef[Union[str,Literal[
|
1029
|
+
trigger: TMaybeRef[Union[str, Literal["hover", "click", "focus", "contextMenu"]]]
|
1030
|
+
position: TMaybeRef[Union[str, Literal["top", "tl", "tr", "bottom", "bl", "br"]]]
|
856
1031
|
popup_container: TMaybeRef[Union[str, Any]]
|
857
1032
|
popup_max_height: TMaybeRef[Union[bool, int]]
|
858
1033
|
hide_on_select: TMaybeRef[bool]
|
859
|
-
|
1034
|
+
|
1035
|
+
|
860
1036
|
class TMenu(TypedDict, total=False):
|
861
|
-
theme: TMaybeRef[Union[str,Literal[
|
862
|
-
mode: TMaybeRef[Union[str,Literal[
|
1037
|
+
theme: TMaybeRef[Union[str, Literal["light", "dark"]]]
|
1038
|
+
mode: TMaybeRef[Union[str, Literal["vertical", "horizontal", "pop", "popButton"]]]
|
863
1039
|
level_indent: TMaybeRef[int]
|
864
1040
|
auto_open: TMaybeRef[bool]
|
865
1041
|
collapsed: TMaybeRef[bool]
|
@@ -876,14 +1052,16 @@ class TMenu(TypedDict, total=False):
|
|
876
1052
|
trigger_props: Any
|
877
1053
|
tooltip_props: TMaybeRef[Dict]
|
878
1054
|
auto_open_selected: TMaybeRef[bool]
|
879
|
-
breakpoint: TMaybeRef[Union[str,Literal[
|
1055
|
+
breakpoint: TMaybeRef[Union[str, Literal["xxl", "xl", "lg", "md", "sm", "xs"]]]
|
880
1056
|
popup_max_height: TMaybeRef[Union[bool, int]]
|
881
|
-
|
1057
|
+
|
1058
|
+
|
882
1059
|
class TPageheader(TypedDict, total=False):
|
883
1060
|
title: TMaybeRef[str]
|
884
1061
|
subtitle: TMaybeRef[str]
|
885
1062
|
show_back: TMaybeRef[bool]
|
886
|
-
|
1063
|
+
|
1064
|
+
|
887
1065
|
class TPagination(TypedDict, total=False):
|
888
1066
|
total: TMaybeRef[int]
|
889
1067
|
current: TMaybeRef[int]
|
@@ -899,43 +1077,50 @@ class TPagination(TypedDict, total=False):
|
|
899
1077
|
show_page_size: TMaybeRef[bool]
|
900
1078
|
page_size_options: TMaybeRef[List[int]]
|
901
1079
|
page_size_props: Any
|
902
|
-
size: TMaybeRef[Union[str,Literal[
|
1080
|
+
size: TMaybeRef[Union[str, Literal["mini", "small", "medium", "large"]]]
|
903
1081
|
page_item_style: Any
|
904
1082
|
active_page_item_style: Any
|
905
1083
|
base_size: TMaybeRef[int]
|
906
1084
|
buffer_size: TMaybeRef[int]
|
907
1085
|
auto_adjust: TMaybeRef[bool]
|
908
|
-
|
1086
|
+
|
1087
|
+
|
909
1088
|
class TSteps(TypedDict, total=False):
|
910
|
-
type: TMaybeRef[Union[str,Literal[
|
911
|
-
direction: TMaybeRef[Union[str,Literal[
|
912
|
-
label_placement: TMaybeRef[Union[str,Literal[
|
1089
|
+
type: TMaybeRef[Union[str, Literal["default", "arrow", "dot", "navigation"]]]
|
1090
|
+
direction: TMaybeRef[Union[str, Literal["horizontal", "vertical"]]]
|
1091
|
+
label_placement: TMaybeRef[Union[str, Literal["horizontal", "vertical"]]]
|
913
1092
|
current: TMaybeRef[int]
|
914
1093
|
default_current: TMaybeRef[int]
|
915
|
-
status: TMaybeRef[Union[str,Literal[
|
1094
|
+
status: TMaybeRef[Union[str, Literal["wait", "process", "finish", "error"]]]
|
916
1095
|
line_less: TMaybeRef[bool]
|
917
1096
|
small: TMaybeRef[bool]
|
918
1097
|
changeable: TMaybeRef[bool]
|
919
|
-
|
1098
|
+
|
1099
|
+
|
920
1100
|
class TAffix(TypedDict, total=False):
|
921
1101
|
offset_top: TMaybeRef[int]
|
922
1102
|
offset_bottom: TMaybeRef[int]
|
923
1103
|
target: TMaybeRef[Union[str, Any, Any]]
|
924
1104
|
target_container: TMaybeRef[Union[str, Any, Any]]
|
925
|
-
|
1105
|
+
|
1106
|
+
|
926
1107
|
class TAnchor(TypedDict, total=False):
|
927
|
-
boundary: TMaybeRef[
|
1108
|
+
boundary: TMaybeRef[
|
1109
|
+
Union[Union[str, Literal["start", "end", "center", "nearest"]], int]
|
1110
|
+
]
|
928
1111
|
line_less: TMaybeRef[bool]
|
929
1112
|
scroll_container: TMaybeRef[Union[str, Any, Any]]
|
930
1113
|
change_hash: TMaybeRef[bool]
|
931
1114
|
smooth: TMaybeRef[bool]
|
932
|
-
|
1115
|
+
|
1116
|
+
|
933
1117
|
class TBacktop(TypedDict, total=False):
|
934
1118
|
visible_height: TMaybeRef[int]
|
935
1119
|
target_container: TMaybeRef[Union[str, Any]]
|
936
1120
|
easing: TMaybeRef[str]
|
937
1121
|
duration: TMaybeRef[int]
|
938
|
-
|
1122
|
+
|
1123
|
+
|
939
1124
|
class TConfigprovider(TypedDict, total=False):
|
940
1125
|
prefix_cls: TMaybeRef[str]
|
941
1126
|
locale: TMaybeRef[Dict]
|
@@ -944,18 +1129,38 @@ class TConfigprovider(TypedDict, total=False):
|
|
944
1129
|
update_at_scroll: TMaybeRef[bool]
|
945
1130
|
scroll_to_close: TMaybeRef[bool]
|
946
1131
|
exchange_time: TMaybeRef[bool]
|
947
|
-
|
1132
|
+
|
1133
|
+
|
948
1134
|
class TResizebox(TypedDict, total=False):
|
949
1135
|
width: TMaybeRef[int]
|
950
1136
|
height: TMaybeRef[int]
|
951
1137
|
component: TMaybeRef[str]
|
952
|
-
directions: TMaybeRef[List[Union[str,Literal[
|
953
|
-
|
1138
|
+
directions: TMaybeRef[List[Union[str, Literal["left", "right", "top", "bottom"]]]]
|
1139
|
+
|
1140
|
+
|
954
1141
|
class TTrigger(TypedDict, total=False):
|
955
1142
|
popup_visible: TMaybeRef[bool]
|
956
1143
|
default_popup_visible: TMaybeRef[bool]
|
957
|
-
trigger: TMaybeRef[Union[str,Literal[
|
958
|
-
position: TMaybeRef[
|
1144
|
+
trigger: TMaybeRef[Union[str, Literal["hover", "click", "focus", "contextMenu"]]]
|
1145
|
+
position: TMaybeRef[
|
1146
|
+
Union[
|
1147
|
+
str,
|
1148
|
+
Literal[
|
1149
|
+
"top",
|
1150
|
+
"tl",
|
1151
|
+
"tr",
|
1152
|
+
"bottom",
|
1153
|
+
"bl",
|
1154
|
+
"br",
|
1155
|
+
"left",
|
1156
|
+
"lt",
|
1157
|
+
"lb",
|
1158
|
+
"right",
|
1159
|
+
"rt",
|
1160
|
+
"rb",
|
1161
|
+
],
|
1162
|
+
]
|
1163
|
+
]
|
959
1164
|
disabled: TMaybeRef[bool]
|
960
1165
|
popup_offset: TMaybeRef[int]
|
961
1166
|
popup_translate: Any
|
@@ -986,21 +1191,24 @@ class TTrigger(TypedDict, total=False):
|
|
986
1191
|
prevent_focus: TMaybeRef[bool]
|
987
1192
|
scroll_to_close: TMaybeRef[bool]
|
988
1193
|
scroll_to_close_distance: TMaybeRef[int]
|
989
|
-
|
1194
|
+
|
1195
|
+
|
990
1196
|
class TSplit(TypedDict, total=False):
|
991
1197
|
component: TMaybeRef[str]
|
992
|
-
direction: TMaybeRef[Union[str,Literal[
|
1198
|
+
direction: TMaybeRef[Union[str, Literal["horizontal", "vertical"]]]
|
993
1199
|
size: TMaybeRef[Union[int, str]]
|
994
1200
|
default_size: TMaybeRef[Union[int, str]]
|
995
1201
|
min: TMaybeRef[Union[int, str]]
|
996
1202
|
max: TMaybeRef[Union[int, str]]
|
997
1203
|
disabled: TMaybeRef[bool]
|
998
|
-
|
1204
|
+
|
1205
|
+
|
999
1206
|
class TOverflowlist(TypedDict, total=False):
|
1000
1207
|
min: TMaybeRef[int]
|
1001
1208
|
margin: TMaybeRef[int]
|
1002
|
-
from_: TMaybeRef[Union[str,Literal[
|
1003
|
-
|
1209
|
+
from_: TMaybeRef[Union[str, Literal["start", "end"]]]
|
1210
|
+
|
1211
|
+
|
1004
1212
|
class TWatermark(TypedDict, total=False):
|
1005
1213
|
content: TMaybeRef[Union[str, List[str]]]
|
1006
1214
|
image: TMaybeRef[str]
|
@@ -1016,4 +1224,3 @@ class TWatermark(TypedDict, total=False):
|
|
1016
1224
|
grayscale: TMaybeRef[bool]
|
1017
1225
|
repeat: TMaybeRef[bool]
|
1018
1226
|
staggered: TMaybeRef[bool]
|
1019
|
-
|