feffery_antd_components 0.1.1 → 0.1.4
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.
- package/DESCRIPTION +1 -1
- package/Project.toml +1 -1
- package/README.md +2 -2
- package/feffery_antd_components/AntdAlert.py +2 -2
- package/feffery_antd_components/AntdTable.py +66 -5
- package/feffery_antd_components/feffery_antd_components.min.js +9 -9
- package/feffery_antd_components/metadata.json +324 -5
- package/feffery_antd_components/package-info.json +3 -3
- package/package.json +3 -3
- package/src/FefferyAntdComponents.jl +3 -3
- package/src/jl/'feffery'_antdalert.jl +2 -2
- package/src/jl/'feffery'_antdtable.jl +37 -5
- package/src/lib/components/AntdAlert.react.js +19 -11
- package/src/lib/components/AntdTable.react.js +304 -126
- package/usage.py +206 -0
- package/build/lib/feffery_antd_components/AntdAffix.py +0 -54
- package/build/lib/feffery_antd_components/AntdAlert.py +0 -58
- package/build/lib/feffery_antd_components/AntdAnchor.py +0 -54
- package/build/lib/feffery_antd_components/AntdAvatar.py +0 -79
- package/build/lib/feffery_antd_components/AntdBackTop.py +0 -52
- package/build/lib/feffery_antd_components/AntdBadge.py +0 -70
- package/build/lib/feffery_antd_components/AntdBreadcrumb.py +0 -74
- package/build/lib/feffery_antd_components/AntdButton.py +0 -66
- package/build/lib/feffery_antd_components/AntdCalendar.py +0 -75
- package/build/lib/feffery_antd_components/AntdCard.py +0 -86
- package/build/lib/feffery_antd_components/AntdCardGrid.py +0 -52
- package/build/lib/feffery_antd_components/AntdCarousel.py +0 -56
- package/build/lib/feffery_antd_components/AntdCascader.py +0 -91
- package/build/lib/feffery_antd_components/AntdCheckbox.py +0 -71
- package/build/lib/feffery_antd_components/AntdCheckboxGroup.py +0 -79
- package/build/lib/feffery_antd_components/AntdCol.py +0 -146
- package/build/lib/feffery_antd_components/AntdCollapse.py +0 -79
- package/build/lib/feffery_antd_components/AntdComment.py +0 -88
- package/build/lib/feffery_antd_components/AntdContent.py +0 -50
- package/build/lib/feffery_antd_components/AntdCountdown.py +0 -72
- package/build/lib/feffery_antd_components/AntdDatePicker.py +0 -93
- package/build/lib/feffery_antd_components/AntdDateRangePicker.py +0 -89
- package/build/lib/feffery_antd_components/AntdDescriptionItem.py +0 -58
- package/build/lib/feffery_antd_components/AntdDescriptions.py +0 -76
- package/build/lib/feffery_antd_components/AntdDivider.py +0 -62
- package/build/lib/feffery_antd_components/AntdDraggerUpload.py +0 -82
- package/build/lib/feffery_antd_components/AntdDrawer.py +0 -72
- package/build/lib/feffery_antd_components/AntdDropdown.py +0 -84
- package/build/lib/feffery_antd_components/AntdEmpty.py +0 -54
- package/build/lib/feffery_antd_components/AntdFooter.py +0 -50
- package/build/lib/feffery_antd_components/AntdForm.py +0 -72
- package/build/lib/feffery_antd_components/AntdFormItem.py +0 -84
- package/build/lib/feffery_antd_components/AntdHeader.py +0 -50
- package/build/lib/feffery_antd_components/AntdIcon.py +0 -48
- package/build/lib/feffery_antd_components/AntdImage.py +0 -62
- package/build/lib/feffery_antd_components/AntdInput.py +0 -99
- package/build/lib/feffery_antd_components/AntdInputNumber.py +0 -99
- package/build/lib/feffery_antd_components/AntdLayout.py +0 -50
- package/build/lib/feffery_antd_components/AntdMentions.py +0 -74
- package/build/lib/feffery_antd_components/AntdMenu.py +0 -81
- package/build/lib/feffery_antd_components/AntdMessage.py +0 -54
- package/build/lib/feffery_antd_components/AntdModal.py +0 -88
- package/build/lib/feffery_antd_components/AntdNotification.py +0 -60
- package/build/lib/feffery_antd_components/AntdPageHeader.py +0 -62
- package/build/lib/feffery_antd_components/AntdPagination.py +0 -95
- package/build/lib/feffery_antd_components/AntdParagraph.py +0 -70
- package/build/lib/feffery_antd_components/AntdPopconfirm.py +0 -80
- package/build/lib/feffery_antd_components/AntdPopover.py +0 -74
- package/build/lib/feffery_antd_components/AntdProgress.py +0 -88
- package/build/lib/feffery_antd_components/AntdRadio.py +0 -54
- package/build/lib/feffery_antd_components/AntdRadioGroup.py +0 -89
- package/build/lib/feffery_antd_components/AntdRate.py +0 -60
- package/build/lib/feffery_antd_components/AntdResult.py +0 -52
- package/build/lib/feffery_antd_components/AntdRibbon.py +0 -54
- package/build/lib/feffery_antd_components/AntdRow.py +0 -72
- package/build/lib/feffery_antd_components/AntdSelect.py +0 -117
- package/build/lib/feffery_antd_components/AntdSider.py +0 -68
- package/build/lib/feffery_antd_components/AntdSkeleton.py +0 -86
- package/build/lib/feffery_antd_components/AntdSlider.py +0 -68
- package/build/lib/feffery_antd_components/AntdSpace.py +0 -60
- package/build/lib/feffery_antd_components/AntdSpin.py +0 -68
- package/build/lib/feffery_antd_components/AntdStatistic.py +0 -74
- package/build/lib/feffery_antd_components/AntdSteps.py +0 -72
- package/build/lib/feffery_antd_components/AntdSwitch.py +0 -75
- package/build/lib/feffery_antd_components/AntdTabPane.py +0 -66
- package/build/lib/feffery_antd_components/AntdTable.py +0 -179
- package/build/lib/feffery_antd_components/AntdTabs.py +0 -81
- package/build/lib/feffery_antd_components/AntdTag.py +0 -54
- package/build/lib/feffery_antd_components/AntdTestLink.py +0 -58
- package/build/lib/feffery_antd_components/AntdText.py +0 -72
- package/build/lib/feffery_antd_components/AntdTimePicker.py +0 -93
- package/build/lib/feffery_antd_components/AntdTimeRangePicker.py +0 -93
- package/build/lib/feffery_antd_components/AntdTimeline.py +0 -68
- package/build/lib/feffery_antd_components/AntdTitle.py +0 -74
- package/build/lib/feffery_antd_components/AntdTooltip.py +0 -64
- package/build/lib/feffery_antd_components/AntdTransfer.py +0 -99
- package/build/lib/feffery_antd_components/AntdTree.py +0 -107
- package/build/lib/feffery_antd_components/AntdTreeSelect.py +0 -103
- package/build/lib/feffery_antd_components/AntdTypography.py +0 -50
- package/build/lib/feffery_antd_components/AntdUpload.py +0 -80
- package/build/lib/feffery_antd_components/Link.py +0 -58
- package/build/lib/feffery_antd_components/__init__.py +0 -53
- package/build/lib/feffery_antd_components/_imports_.py +0 -157
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +0 -344
- package/build/lib/feffery_antd_components/metadata.json +0 -14640
- package/build/lib/feffery_antd_components/package-info.json +0 -77
package/usage.py
CHANGED
|
@@ -9,6 +9,211 @@ app = dash.Dash(__name__)
|
|
|
9
9
|
app.layout = html.Div(
|
|
10
10
|
[
|
|
11
11
|
|
|
12
|
+
fac.AntdTable(
|
|
13
|
+
miniChartHeight=60,
|
|
14
|
+
miniChartAnimation=False,
|
|
15
|
+
summaryRowContents=[{'content': '测试', 'align': 'center'}]*5+[{'content': '测试测试', 'colSpan': 2, 'align': 'center'}],
|
|
16
|
+
summaryRowFixed=True,
|
|
17
|
+
columns=[
|
|
18
|
+
{
|
|
19
|
+
'title': 'status-badge示例',
|
|
20
|
+
'dataIndex': 'status-badge示例',
|
|
21
|
+
# 'width': '25%',
|
|
22
|
+
'renderOptions': {
|
|
23
|
+
'renderType': 'status-badge'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
'title': 'mini-bar示例',
|
|
28
|
+
'dataIndex': 'mini-bar示例',
|
|
29
|
+
# 'width': '25%',
|
|
30
|
+
'renderOptions': {
|
|
31
|
+
'renderType': 'mini-bar'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
'title': 'ellipsis内容省略示例',
|
|
36
|
+
'dataIndex': 'ellipsis内容省略示例',
|
|
37
|
+
'renderOptions': {'renderType': 'ellipsis'}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
# 注意,mini-progress模式接受的输入应当在0到1之间
|
|
41
|
+
'title': 'mini-progress示例',
|
|
42
|
+
'dataIndex': 'mini-progress示例',
|
|
43
|
+
# 'width': '25%',
|
|
44
|
+
'renderOptions': {
|
|
45
|
+
'renderType': 'mini-progress'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
# 注意,mini-ring-progress模式接受的输入应当在0到1之间
|
|
50
|
+
'title': 'mini-ring-progress示例',
|
|
51
|
+
'dataIndex': 'mini-ring-progress示例',
|
|
52
|
+
# 'width': '25%',
|
|
53
|
+
'renderOptions': {
|
|
54
|
+
'renderType': 'mini-ring-progress'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
'title': 'mini-area示例',
|
|
59
|
+
'dataIndex': 'mini-area示例',
|
|
60
|
+
# 'width': '25%',
|
|
61
|
+
'renderOptions': {
|
|
62
|
+
'renderType': 'mini-area'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
'title': 'mini-line示例',
|
|
67
|
+
'dataIndex': 'mini-line示例',
|
|
68
|
+
# 'width': '25%',
|
|
69
|
+
'renderOptions': {
|
|
70
|
+
'renderType': 'mini-line'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
data=[
|
|
75
|
+
{
|
|
76
|
+
'key': i,
|
|
77
|
+
'ellipsis内容省略示例': '这是一段废话,用来演示超长内容再渲染巴拉巴拉巴拉巴拉巴拉巴拉巴拉巴拉',
|
|
78
|
+
'status-badge示例': {
|
|
79
|
+
'status': 'processing',
|
|
80
|
+
'text': '处理中'
|
|
81
|
+
},
|
|
82
|
+
'mini-line示例': np.random.randint(1, 20, 10),
|
|
83
|
+
'mini-bar示例': np.random.randint(1, 20, 10),
|
|
84
|
+
'mini-progress示例': np.random.rand(),
|
|
85
|
+
'mini-ring-progress示例': np.random.rand(),
|
|
86
|
+
'mini-area示例': np.random.randint(1, 20, 10)
|
|
87
|
+
}
|
|
88
|
+
for i in range(50)
|
|
89
|
+
],
|
|
90
|
+
maxHeight=400,
|
|
91
|
+
# maxWidth=800,
|
|
92
|
+
bordered=True,
|
|
93
|
+
containerId='docs-content' # 绑定局部滚动容器以确保悬浮层正常显示
|
|
94
|
+
),
|
|
95
|
+
|
|
96
|
+
fac.AntdTable(
|
|
97
|
+
selectedRowKeys=['2', '4'],
|
|
98
|
+
rowSelectionWidth='4rem',
|
|
99
|
+
columns=[
|
|
100
|
+
{
|
|
101
|
+
'title': '默认的checkbox模式',
|
|
102
|
+
'dataIndex': f'默认的checkbox模式',
|
|
103
|
+
'width': '33.33%',
|
|
104
|
+
# 'fixed': 'left'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
'title': '自定义选项的checkbox模式',
|
|
108
|
+
'dataIndex': '自定义选项的checkbox模式',
|
|
109
|
+
'width': '33.33%'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
'title': 'keyword模式',
|
|
113
|
+
'dataIndex': 'keyword模式',
|
|
114
|
+
'width': '33.33%'
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
containerId='docs-content',
|
|
118
|
+
sticky=True,
|
|
119
|
+
pagination={
|
|
120
|
+
'pageSize': 100
|
|
121
|
+
},
|
|
122
|
+
data=[
|
|
123
|
+
{
|
|
124
|
+
'默认的checkbox模式': i,
|
|
125
|
+
'自定义选项的checkbox模式': i,
|
|
126
|
+
'keyword模式': i
|
|
127
|
+
}
|
|
128
|
+
for i in range(500)
|
|
129
|
+
],
|
|
130
|
+
filterOptions={
|
|
131
|
+
'默认的checkbox模式': {
|
|
132
|
+
'filterMode': 'keyword'
|
|
133
|
+
},
|
|
134
|
+
'自定义选项的checkbox模式': {
|
|
135
|
+
'filterMode': 'keyword'
|
|
136
|
+
},
|
|
137
|
+
'keyword模式': {
|
|
138
|
+
'filterMode': 'keyword'
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
rowSelectionType='checkbox',
|
|
142
|
+
bordered=True,
|
|
143
|
+
# maxHeight=200,
|
|
144
|
+
maxWidth=1000,
|
|
145
|
+
style={
|
|
146
|
+
# 'width': '800px'
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
|
|
150
|
+
html.Div(
|
|
151
|
+
[
|
|
152
|
+
fac.AntdAlert(
|
|
153
|
+
description='好样的',
|
|
154
|
+
message=[
|
|
155
|
+
html.Div(
|
|
156
|
+
[
|
|
157
|
+
fac.AntdText(
|
|
158
|
+
'这是一段测试文字,'
|
|
159
|
+
),
|
|
160
|
+
fac.AntdText(
|
|
161
|
+
'加粗',
|
|
162
|
+
strong=True
|
|
163
|
+
),
|
|
164
|
+
html.A(
|
|
165
|
+
'链接',
|
|
166
|
+
href='/'
|
|
167
|
+
)
|
|
168
|
+
]
|
|
169
|
+
)
|
|
170
|
+
],
|
|
171
|
+
showIcon=True
|
|
172
|
+
)
|
|
173
|
+
]
|
|
174
|
+
),
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
html.Div(
|
|
178
|
+
[
|
|
179
|
+
fac.AntdAlert(
|
|
180
|
+
description='这是一段辅助说明文字',
|
|
181
|
+
message=[
|
|
182
|
+
'君不见黄河之水天上来',
|
|
183
|
+
'奔流到海不复回',
|
|
184
|
+
'君不见高堂明镜悲白发',
|
|
185
|
+
'朝如青丝暮成雪',
|
|
186
|
+
'人生得意须尽欢',
|
|
187
|
+
'莫使金樽空对月',
|
|
188
|
+
'天生我材必有用',
|
|
189
|
+
'千金散尽还复来'
|
|
190
|
+
],
|
|
191
|
+
showIcon=True,
|
|
192
|
+
messageRenderMode='loop-text'
|
|
193
|
+
)
|
|
194
|
+
]
|
|
195
|
+
),
|
|
196
|
+
|
|
197
|
+
html.Div(
|
|
198
|
+
[
|
|
199
|
+
fac.AntdAlert(
|
|
200
|
+
'这是一段辅助说明文字',
|
|
201
|
+
message=','.join([
|
|
202
|
+
'君不见黄河之水天上来',
|
|
203
|
+
'奔流到海不复回',
|
|
204
|
+
'君不见高堂明镜悲白发',
|
|
205
|
+
'朝如青丝暮成雪',
|
|
206
|
+
'人生得意须尽欢',
|
|
207
|
+
'莫使金樽空对月',
|
|
208
|
+
'天生我材必有用',
|
|
209
|
+
'千金散尽还复来'
|
|
210
|
+
]) + '。',
|
|
211
|
+
description='这是跑马灯模式示例',
|
|
212
|
+
showIcon=True,
|
|
213
|
+
messageRenderMode='marquee'
|
|
214
|
+
)
|
|
215
|
+
]
|
|
216
|
+
),
|
|
12
217
|
|
|
13
218
|
fac.AntdRadioGroup(
|
|
14
219
|
options=[
|
|
@@ -891,6 +1096,7 @@ def test_(replyClicks, deleteClicks):
|
|
|
891
1096
|
prevent_initial_call=True
|
|
892
1097
|
)
|
|
893
1098
|
def message_demo1(nClicks):
|
|
1099
|
+
|
|
894
1100
|
return fac.AntdMessage(
|
|
895
1101
|
content='全局提示框示例',
|
|
896
1102
|
icon='fc-overtime',
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AntdAffix(Component):
|
|
7
|
-
"""An AntdAffix component.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Keyword arguments:
|
|
11
|
-
|
|
12
|
-
- children (a list of or a singular dash component, string or number; optional)
|
|
13
|
-
|
|
14
|
-
- id (string; optional)
|
|
15
|
-
|
|
16
|
-
- className (string; optional)
|
|
17
|
-
|
|
18
|
-
- loading_state (dict; optional)
|
|
19
|
-
|
|
20
|
-
`loading_state` is a dict with keys:
|
|
21
|
-
|
|
22
|
-
- component_name (string; optional):
|
|
23
|
-
Holds the name of the component that is loading.
|
|
24
|
-
|
|
25
|
-
- is_loading (boolean; optional):
|
|
26
|
-
Determines if the component is loading or not.
|
|
27
|
-
|
|
28
|
-
- prop_name (string; optional):
|
|
29
|
-
Holds which property is loading.
|
|
30
|
-
|
|
31
|
-
- offsetBottom (number; optional)
|
|
32
|
-
|
|
33
|
-
- offsetTop (number; optional)
|
|
34
|
-
|
|
35
|
-
- style (dict; optional)
|
|
36
|
-
|
|
37
|
-
- target (string; optional)"""
|
|
38
|
-
@_explicitize_args
|
|
39
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, offsetBottom=Component.UNDEFINED, offsetTop=Component.UNDEFINED, target=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
40
|
-
self._prop_names = ['children', 'id', 'className', 'loading_state', 'offsetBottom', 'offsetTop', 'style', 'target']
|
|
41
|
-
self._type = 'AntdAffix'
|
|
42
|
-
self._namespace = 'feffery_antd_components'
|
|
43
|
-
self._valid_wildcard_attributes = []
|
|
44
|
-
self.available_properties = ['children', 'id', 'className', 'loading_state', 'offsetBottom', 'offsetTop', 'style', 'target']
|
|
45
|
-
self.available_wildcard_properties = []
|
|
46
|
-
_explicit_args = kwargs.pop('_explicit_args')
|
|
47
|
-
_locals = locals()
|
|
48
|
-
_locals.update(kwargs) # For wildcard attrs
|
|
49
|
-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
50
|
-
for k in []:
|
|
51
|
-
if k not in args:
|
|
52
|
-
raise TypeError(
|
|
53
|
-
'Required argument `' + k + '` was not specified.')
|
|
54
|
-
super(AntdAffix, self).__init__(children=children, **args)
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AntdAlert(Component):
|
|
7
|
-
"""An AntdAlert component.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Keyword arguments:
|
|
11
|
-
|
|
12
|
-
- id (string; optional)
|
|
13
|
-
|
|
14
|
-
- className (string; optional)
|
|
15
|
-
|
|
16
|
-
- closable (boolean; default False)
|
|
17
|
-
|
|
18
|
-
- description (string; optional)
|
|
19
|
-
|
|
20
|
-
- loading_state (dict; optional)
|
|
21
|
-
|
|
22
|
-
`loading_state` is a dict with keys:
|
|
23
|
-
|
|
24
|
-
- component_name (string; optional):
|
|
25
|
-
Holds the name of the component that is loading.
|
|
26
|
-
|
|
27
|
-
- is_loading (boolean; optional):
|
|
28
|
-
Determines if the component is loading or not.
|
|
29
|
-
|
|
30
|
-
- prop_name (string; optional):
|
|
31
|
-
Holds which property is loading.
|
|
32
|
-
|
|
33
|
-
- message (string | list of strings; optional)
|
|
34
|
-
|
|
35
|
-
- messageRenderMode (a value equal to: 'default', 'loop-text', 'marquee'; default 'default')
|
|
36
|
-
|
|
37
|
-
- showIcon (boolean; optional)
|
|
38
|
-
|
|
39
|
-
- style (dict; optional)
|
|
40
|
-
|
|
41
|
-
- type (a value equal to: 'success', 'info', 'warning', 'error'; optional)"""
|
|
42
|
-
@_explicitize_args
|
|
43
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, description=Component.UNDEFINED, message=Component.UNDEFINED, type=Component.UNDEFINED, showIcon=Component.UNDEFINED, closable=Component.UNDEFINED, messageRenderMode=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
44
|
-
self._prop_names = ['id', 'className', 'closable', 'description', 'loading_state', 'message', 'messageRenderMode', 'showIcon', 'style', 'type']
|
|
45
|
-
self._type = 'AntdAlert'
|
|
46
|
-
self._namespace = 'feffery_antd_components'
|
|
47
|
-
self._valid_wildcard_attributes = []
|
|
48
|
-
self.available_properties = ['id', 'className', 'closable', 'description', 'loading_state', 'message', 'messageRenderMode', 'showIcon', 'style', 'type']
|
|
49
|
-
self.available_wildcard_properties = []
|
|
50
|
-
_explicit_args = kwargs.pop('_explicit_args')
|
|
51
|
-
_locals = locals()
|
|
52
|
-
_locals.update(kwargs) # For wildcard attrs
|
|
53
|
-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
54
|
-
for k in []:
|
|
55
|
-
if k not in args:
|
|
56
|
-
raise TypeError(
|
|
57
|
-
'Required argument `' + k + '` was not specified.')
|
|
58
|
-
super(AntdAlert, self).__init__(**args)
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AntdAnchor(Component):
|
|
7
|
-
"""An AntdAnchor component.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Keyword arguments:
|
|
11
|
-
|
|
12
|
-
- id (string; optional)
|
|
13
|
-
|
|
14
|
-
- align (a value equal to: 'left', 'right'; default 'right')
|
|
15
|
-
|
|
16
|
-
- className (string; optional)
|
|
17
|
-
|
|
18
|
-
- containerId (string; optional)
|
|
19
|
-
|
|
20
|
-
- linkDict (optional)
|
|
21
|
-
|
|
22
|
-
- loading_state (dict; optional)
|
|
23
|
-
|
|
24
|
-
`loading_state` is a dict with keys:
|
|
25
|
-
|
|
26
|
-
- component_name (string; optional):
|
|
27
|
-
Holds the name of the component that is loading.
|
|
28
|
-
|
|
29
|
-
- is_loading (boolean; optional):
|
|
30
|
-
Determines if the component is loading or not.
|
|
31
|
-
|
|
32
|
-
- prop_name (string; optional):
|
|
33
|
-
Holds which property is loading.
|
|
34
|
-
|
|
35
|
-
- style (dict; optional)
|
|
36
|
-
|
|
37
|
-
- targetOffset (number; optional)"""
|
|
38
|
-
@_explicitize_args
|
|
39
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, linkDict=Component.UNDEFINED, align=Component.UNDEFINED, containerId=Component.UNDEFINED, targetOffset=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
40
|
-
self._prop_names = ['id', 'align', 'className', 'containerId', 'linkDict', 'loading_state', 'style', 'targetOffset']
|
|
41
|
-
self._type = 'AntdAnchor'
|
|
42
|
-
self._namespace = 'feffery_antd_components'
|
|
43
|
-
self._valid_wildcard_attributes = []
|
|
44
|
-
self.available_properties = ['id', 'align', 'className', 'containerId', 'linkDict', 'loading_state', 'style', 'targetOffset']
|
|
45
|
-
self.available_wildcard_properties = []
|
|
46
|
-
_explicit_args = kwargs.pop('_explicit_args')
|
|
47
|
-
_locals = locals()
|
|
48
|
-
_locals.update(kwargs) # For wildcard attrs
|
|
49
|
-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
50
|
-
for k in []:
|
|
51
|
-
if k not in args:
|
|
52
|
-
raise TypeError(
|
|
53
|
-
'Required argument `' + k + '` was not specified.')
|
|
54
|
-
super(AntdAnchor, self).__init__(**args)
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AntdAvatar(Component):
|
|
7
|
-
"""An AntdAvatar component.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Keyword arguments:
|
|
11
|
-
|
|
12
|
-
- id (string; optional)
|
|
13
|
-
|
|
14
|
-
- alt (string; optional)
|
|
15
|
-
|
|
16
|
-
- className (string; optional)
|
|
17
|
-
|
|
18
|
-
- gap (number; optional)
|
|
19
|
-
|
|
20
|
-
- icon (string; optional)
|
|
21
|
-
|
|
22
|
-
- loading_state (dict; optional)
|
|
23
|
-
|
|
24
|
-
`loading_state` is a dict with keys:
|
|
25
|
-
|
|
26
|
-
- component_name (string; optional):
|
|
27
|
-
Holds the name of the component that is loading.
|
|
28
|
-
|
|
29
|
-
- is_loading (boolean; optional):
|
|
30
|
-
Determines if the component is loading or not.
|
|
31
|
-
|
|
32
|
-
- prop_name (string; optional):
|
|
33
|
-
Holds which property is loading.
|
|
34
|
-
|
|
35
|
-
- mode (a value equal to: 'text', 'icon', 'image'; default 'icon')
|
|
36
|
-
|
|
37
|
-
- shape (a value equal to: 'circle', 'square'; optional)
|
|
38
|
-
|
|
39
|
-
- size (dict; optional)
|
|
40
|
-
|
|
41
|
-
`size` is a number | a value equal to: 'large', 'small', 'default'
|
|
42
|
-
| dict with keys:
|
|
43
|
-
|
|
44
|
-
- lg (number; optional)
|
|
45
|
-
|
|
46
|
-
- md (number; optional)
|
|
47
|
-
|
|
48
|
-
- sm (number; optional)
|
|
49
|
-
|
|
50
|
-
- xl (number; optional)
|
|
51
|
-
|
|
52
|
-
- xs (number; optional)
|
|
53
|
-
|
|
54
|
-
- xxl (number; optional)
|
|
55
|
-
|
|
56
|
-
- src (string; optional)
|
|
57
|
-
|
|
58
|
-
- srcSet (string; optional)
|
|
59
|
-
|
|
60
|
-
- style (dict; optional)
|
|
61
|
-
|
|
62
|
-
- text (string; optional)"""
|
|
63
|
-
@_explicitize_args
|
|
64
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, gap=Component.UNDEFINED, mode=Component.UNDEFINED, text=Component.UNDEFINED, icon=Component.UNDEFINED, alt=Component.UNDEFINED, src=Component.UNDEFINED, srcSet=Component.UNDEFINED, size=Component.UNDEFINED, shape=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
65
|
-
self._prop_names = ['id', 'alt', 'className', 'gap', 'icon', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
66
|
-
self._type = 'AntdAvatar'
|
|
67
|
-
self._namespace = 'feffery_antd_components'
|
|
68
|
-
self._valid_wildcard_attributes = []
|
|
69
|
-
self.available_properties = ['id', 'alt', 'className', 'gap', 'icon', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
70
|
-
self.available_wildcard_properties = []
|
|
71
|
-
_explicit_args = kwargs.pop('_explicit_args')
|
|
72
|
-
_locals = locals()
|
|
73
|
-
_locals.update(kwargs) # For wildcard attrs
|
|
74
|
-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
75
|
-
for k in []:
|
|
76
|
-
if k not in args:
|
|
77
|
-
raise TypeError(
|
|
78
|
-
'Required argument `' + k + '` was not specified.')
|
|
79
|
-
super(AntdAvatar, self).__init__(**args)
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AntdBackTop(Component):
|
|
7
|
-
"""An AntdBackTop component.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Keyword arguments:
|
|
11
|
-
|
|
12
|
-
- id (string; optional)
|
|
13
|
-
|
|
14
|
-
- className (string; optional)
|
|
15
|
-
|
|
16
|
-
- containerId (string; optional)
|
|
17
|
-
|
|
18
|
-
- duration (number; optional)
|
|
19
|
-
|
|
20
|
-
- loading_state (dict; optional)
|
|
21
|
-
|
|
22
|
-
`loading_state` is a dict with keys:
|
|
23
|
-
|
|
24
|
-
- component_name (string; optional):
|
|
25
|
-
Holds the name of the component that is loading.
|
|
26
|
-
|
|
27
|
-
- is_loading (boolean; optional):
|
|
28
|
-
Determines if the component is loading or not.
|
|
29
|
-
|
|
30
|
-
- prop_name (string; optional):
|
|
31
|
-
Holds which property is loading.
|
|
32
|
-
|
|
33
|
-
- style (dict; optional)
|
|
34
|
-
|
|
35
|
-
- visibilityHeight (number; optional)"""
|
|
36
|
-
@_explicitize_args
|
|
37
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, duration=Component.UNDEFINED, visibilityHeight=Component.UNDEFINED, containerId=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
38
|
-
self._prop_names = ['id', 'className', 'containerId', 'duration', 'loading_state', 'style', 'visibilityHeight']
|
|
39
|
-
self._type = 'AntdBackTop'
|
|
40
|
-
self._namespace = 'feffery_antd_components'
|
|
41
|
-
self._valid_wildcard_attributes = []
|
|
42
|
-
self.available_properties = ['id', 'className', 'containerId', 'duration', 'loading_state', 'style', 'visibilityHeight']
|
|
43
|
-
self.available_wildcard_properties = []
|
|
44
|
-
_explicit_args = kwargs.pop('_explicit_args')
|
|
45
|
-
_locals = locals()
|
|
46
|
-
_locals.update(kwargs) # For wildcard attrs
|
|
47
|
-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
48
|
-
for k in []:
|
|
49
|
-
if k not in args:
|
|
50
|
-
raise TypeError(
|
|
51
|
-
'Required argument `' + k + '` was not specified.')
|
|
52
|
-
super(AntdBackTop, self).__init__(**args)
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AntdBadge(Component):
|
|
7
|
-
"""An AntdBadge component.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Keyword arguments:
|
|
11
|
-
|
|
12
|
-
- children (a list of or a singular dash component, string or number; optional)
|
|
13
|
-
|
|
14
|
-
- id (string; optional)
|
|
15
|
-
|
|
16
|
-
- className (string; optional)
|
|
17
|
-
|
|
18
|
-
- color (string; optional)
|
|
19
|
-
|
|
20
|
-
- count (number; optional)
|
|
21
|
-
|
|
22
|
-
- dot (boolean; optional)
|
|
23
|
-
|
|
24
|
-
- loading_state (dict; optional)
|
|
25
|
-
|
|
26
|
-
`loading_state` is a dict with keys:
|
|
27
|
-
|
|
28
|
-
- component_name (string; optional):
|
|
29
|
-
Holds the name of the component that is loading.
|
|
30
|
-
|
|
31
|
-
- is_loading (boolean; optional):
|
|
32
|
-
Determines if the component is loading or not.
|
|
33
|
-
|
|
34
|
-
- prop_name (string; optional):
|
|
35
|
-
Holds which property is loading.
|
|
36
|
-
|
|
37
|
-
- nClicks (number; default 0)
|
|
38
|
-
|
|
39
|
-
- offset (list of numbers; optional)
|
|
40
|
-
|
|
41
|
-
- overflowCount (number; optional)
|
|
42
|
-
|
|
43
|
-
- showZero (boolean; optional)
|
|
44
|
-
|
|
45
|
-
- size (a value equal to: 'default', 'small'; optional)
|
|
46
|
-
|
|
47
|
-
- status (a value equal to: 'success', 'processing', 'default', 'error', 'warning'; optional)
|
|
48
|
-
|
|
49
|
-
- style (dict; optional)
|
|
50
|
-
|
|
51
|
-
- text (string; optional)
|
|
52
|
-
|
|
53
|
-
- title (string; optional)"""
|
|
54
|
-
@_explicitize_args
|
|
55
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, color=Component.UNDEFINED, count=Component.UNDEFINED, dot=Component.UNDEFINED, offset=Component.UNDEFINED, overflowCount=Component.UNDEFINED, showZero=Component.UNDEFINED, status=Component.UNDEFINED, text=Component.UNDEFINED, title=Component.UNDEFINED, size=Component.UNDEFINED, nClicks=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
56
|
-
self._prop_names = ['children', 'id', 'className', 'color', 'count', 'dot', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'text', 'title']
|
|
57
|
-
self._type = 'AntdBadge'
|
|
58
|
-
self._namespace = 'feffery_antd_components'
|
|
59
|
-
self._valid_wildcard_attributes = []
|
|
60
|
-
self.available_properties = ['children', 'id', 'className', 'color', 'count', 'dot', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'text', 'title']
|
|
61
|
-
self.available_wildcard_properties = []
|
|
62
|
-
_explicit_args = kwargs.pop('_explicit_args')
|
|
63
|
-
_locals = locals()
|
|
64
|
-
_locals.update(kwargs) # For wildcard attrs
|
|
65
|
-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
66
|
-
for k in []:
|
|
67
|
-
if k not in args:
|
|
68
|
-
raise TypeError(
|
|
69
|
-
'Required argument `' + k + '` was not specified.')
|
|
70
|
-
super(AntdBadge, self).__init__(children=children, **args)
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AntdBreadcrumb(Component):
|
|
7
|
-
"""An AntdBreadcrumb component.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Keyword arguments:
|
|
11
|
-
|
|
12
|
-
- id (string; optional)
|
|
13
|
-
|
|
14
|
-
- className (string; optional)
|
|
15
|
-
|
|
16
|
-
- items (list of dicts; optional)
|
|
17
|
-
|
|
18
|
-
`items` is a list of dicts with keys:
|
|
19
|
-
|
|
20
|
-
- href (string; optional)
|
|
21
|
-
|
|
22
|
-
- icon (string; optional)
|
|
23
|
-
|
|
24
|
-
- menuItems (list of dicts; optional)
|
|
25
|
-
|
|
26
|
-
`menuItems` is a list of dicts with keys:
|
|
27
|
-
|
|
28
|
-
- disabled (boolean; optional)
|
|
29
|
-
|
|
30
|
-
- href (string; optional)
|
|
31
|
-
|
|
32
|
-
- icon (string; optional)
|
|
33
|
-
|
|
34
|
-
- target (string; optional)
|
|
35
|
-
|
|
36
|
-
- title (string; optional)
|
|
37
|
-
|
|
38
|
-
- target (string; optional)
|
|
39
|
-
|
|
40
|
-
- title (string; optional)
|
|
41
|
-
|
|
42
|
-
- loading_state (dict; optional)
|
|
43
|
-
|
|
44
|
-
`loading_state` is a dict with keys:
|
|
45
|
-
|
|
46
|
-
- component_name (string; optional):
|
|
47
|
-
Holds the name of the component that is loading.
|
|
48
|
-
|
|
49
|
-
- is_loading (boolean; optional):
|
|
50
|
-
Determines if the component is loading or not.
|
|
51
|
-
|
|
52
|
-
- prop_name (string; optional):
|
|
53
|
-
Holds which property is loading.
|
|
54
|
-
|
|
55
|
-
- separator (string; optional)
|
|
56
|
-
|
|
57
|
-
- style (dict; optional)"""
|
|
58
|
-
@_explicitize_args
|
|
59
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, items=Component.UNDEFINED, separator=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
60
|
-
self._prop_names = ['id', 'className', 'items', 'loading_state', 'separator', 'style']
|
|
61
|
-
self._type = 'AntdBreadcrumb'
|
|
62
|
-
self._namespace = 'feffery_antd_components'
|
|
63
|
-
self._valid_wildcard_attributes = []
|
|
64
|
-
self.available_properties = ['id', 'className', 'items', 'loading_state', 'separator', 'style']
|
|
65
|
-
self.available_wildcard_properties = []
|
|
66
|
-
_explicit_args = kwargs.pop('_explicit_args')
|
|
67
|
-
_locals = locals()
|
|
68
|
-
_locals.update(kwargs) # For wildcard attrs
|
|
69
|
-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
70
|
-
for k in []:
|
|
71
|
-
if k not in args:
|
|
72
|
-
raise TypeError(
|
|
73
|
-
'Required argument `' + k + '` was not specified.')
|
|
74
|
-
super(AntdBreadcrumb, self).__init__(**args)
|