feffery_antd_components 0.1.2 → 0.1.5
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/build/lib/feffery_antd_components/AntdAlert.py +2 -2
- package/build/lib/feffery_antd_components/AntdTable.py +66 -5
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +9 -9
- package/build/lib/feffery_antd_components/metadata.json +324 -5
- package/build/lib/feffery_antd_components/package-info.json +3 -3
- package/feffery_antd_components/AntdAlert.py +2 -2
- package/feffery_antd_components/AntdTable.py +76 -5
- package/feffery_antd_components/feffery_antd_components.min.js +9 -9
- package/feffery_antd_components/metadata.json +386 -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 +43 -5
- package/src/lib/components/AntdAlert.react.js +19 -11
- package/src/lib/components/AntdTable.react.js +323 -126
- package/usage.py +207 -0
package/DESCRIPTION
CHANGED
package/Project.toml
CHANGED
package/README.md
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
`feffery-components`计划子项目,`Plotly Dash`第三方组件库,将基于`Antd`,将超多具有丰富功能的组件引入`Dash`的世界🥳,最新版本:`0.1.
|
|
18
|
+
`feffery-components`计划子项目,`Plotly Dash`第三方组件库,将基于`Antd`,将超多具有丰富功能的组件引入`Dash`的世界🥳,最新版本:`0.1.3`
|
|
19
19
|
|
|
20
20
|
## 1 最新版本安装方式
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
pip install feffery-antd-components==0.1.
|
|
23
|
+
pip install feffery-antd-components==0.1.3
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## 2 最新开发版本安装方式
|
|
@@ -15,7 +15,7 @@ Keyword arguments:
|
|
|
15
15
|
|
|
16
16
|
- closable (boolean; default False)
|
|
17
17
|
|
|
18
|
-
- description (string; optional)
|
|
18
|
+
- description (boolean | number | string | dict | list; optional)
|
|
19
19
|
|
|
20
20
|
- loading_state (dict; optional)
|
|
21
21
|
|
|
@@ -30,7 +30,7 @@ Keyword arguments:
|
|
|
30
30
|
- prop_name (string; optional):
|
|
31
31
|
Holds which property is loading.
|
|
32
32
|
|
|
33
|
-
- message (string | list of
|
|
33
|
+
- message (boolean | number | string | dict | list | list of boolean | number | string | dict | lists; optional)
|
|
34
34
|
|
|
35
35
|
- messageRenderMode (a value equal to: 'default', 'loop-text', 'marquee'; default 'default')
|
|
36
36
|
|
|
@@ -49,7 +49,7 @@ Keyword arguments:
|
|
|
49
49
|
|
|
50
50
|
- renderLinkText (string; optional)
|
|
51
51
|
|
|
52
|
-
- renderType (a value equal to: 'link', 'ellipsis', 'mini-line', 'mini-bar', 'mini-progress', 'mini-area', 'tags', 'button', 'copyable'; optional)
|
|
52
|
+
- renderType (a value equal to: 'link', 'ellipsis', 'mini-line', 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area', 'tags', 'button', 'copyable', 'status-badge'; optional)
|
|
53
53
|
|
|
54
54
|
- sorter (boolean | number | string | dict | list; optional)
|
|
55
55
|
|
|
@@ -74,6 +74,35 @@ Keyword arguments:
|
|
|
74
74
|
|
|
75
75
|
- data (list of dicts; optional)
|
|
76
76
|
|
|
77
|
+
`data` is a list of dicts with strings as keys and values of type
|
|
78
|
+
string | number | dict with keys:
|
|
79
|
+
|
|
80
|
+
- disabled (boolean; optional)
|
|
81
|
+
|
|
82
|
+
- href (string; optional)
|
|
83
|
+
|
|
84
|
+
- target (string; optional)
|
|
85
|
+
|
|
86
|
+
Or list of numbers | list of dicts with keys:
|
|
87
|
+
|
|
88
|
+
- color (string; optional)
|
|
89
|
+
|
|
90
|
+
- tag (string | number; optional) | dict with keys:
|
|
91
|
+
|
|
92
|
+
- content (string | number; optional)
|
|
93
|
+
|
|
94
|
+
- danger (boolean; optional)
|
|
95
|
+
|
|
96
|
+
- disabled (boolean; optional)
|
|
97
|
+
|
|
98
|
+
- style (dict; optional)
|
|
99
|
+
|
|
100
|
+
- type (a value equal to: 'primary', 'ghost', 'dashed', 'link', 'text', 'default'; optional) | dict with keys:
|
|
101
|
+
|
|
102
|
+
- status (a value equal to: 'success', 'processing', 'default', 'error', 'warning'; optional)
|
|
103
|
+
|
|
104
|
+
- text (string | number; optional)
|
|
105
|
+
|
|
77
106
|
- enableHoverListen (boolean; default False)
|
|
78
107
|
|
|
79
108
|
- filter (dict; optional)
|
|
@@ -97,6 +126,12 @@ Keyword arguments:
|
|
|
97
126
|
|
|
98
127
|
- maxHeight (number; optional)
|
|
99
128
|
|
|
129
|
+
- maxWidth (number; optional)
|
|
130
|
+
|
|
131
|
+
- miniChartAnimation (boolean; default False)
|
|
132
|
+
|
|
133
|
+
- miniChartHeight (number; default 30)
|
|
134
|
+
|
|
100
135
|
- mode (a value equal to: 'client-side', 'server-side'; default 'client-side')
|
|
101
136
|
|
|
102
137
|
- nClicksButton (number; default 0)
|
|
@@ -107,6 +142,8 @@ Keyword arguments:
|
|
|
107
142
|
|
|
108
143
|
- current (number; optional)
|
|
109
144
|
|
|
145
|
+
- disabled (boolean; optional)
|
|
146
|
+
|
|
110
147
|
- hideOnSinglePage (boolean; optional)
|
|
111
148
|
|
|
112
149
|
- pageSize (number; optional)
|
|
@@ -115,14 +152,22 @@ Keyword arguments:
|
|
|
115
152
|
|
|
116
153
|
- position (a value equal to: 'topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight'; optional)
|
|
117
154
|
|
|
155
|
+
- responsive (boolean; optional)
|
|
156
|
+
|
|
118
157
|
- showQuickJumper (boolean; optional)
|
|
119
158
|
|
|
159
|
+
- showSizeChanger (boolean; optional)
|
|
160
|
+
|
|
161
|
+
- showTitle (boolean; optional)
|
|
162
|
+
|
|
120
163
|
- showTotalPrefix (string; optional)
|
|
121
164
|
|
|
122
165
|
- showTotalSuffix (string; optional)
|
|
123
166
|
|
|
124
167
|
- simple (boolean; optional)
|
|
125
168
|
|
|
169
|
+
- size (a value equal to: 'default', 'small'; optional)
|
|
170
|
+
|
|
126
171
|
- total (number; optional)
|
|
127
172
|
|
|
128
173
|
- recentlyButtonClickedRow (dict; optional)
|
|
@@ -135,7 +180,9 @@ Keyword arguments:
|
|
|
135
180
|
|
|
136
181
|
- rowSelectionType (a value equal to: 'checkbox', 'radio'; optional)
|
|
137
182
|
|
|
138
|
-
-
|
|
183
|
+
- rowSelectionWidth (string | number; optional)
|
|
184
|
+
|
|
185
|
+
- selectedRowKeys (list of string | numbers; optional)
|
|
139
186
|
|
|
140
187
|
- selectedRows (list; optional)
|
|
141
188
|
|
|
@@ -157,16 +204,30 @@ Keyword arguments:
|
|
|
157
204
|
|
|
158
205
|
- orders (list of a value equal to: 'ascend', 'descend's; optional)
|
|
159
206
|
|
|
207
|
+
- sticky (boolean; optional)
|
|
208
|
+
|
|
160
209
|
- style (dict; optional)
|
|
161
210
|
|
|
211
|
+
- summaryRowContents (list of dicts; optional)
|
|
212
|
+
|
|
213
|
+
`summaryRowContents` is a list of dicts with keys:
|
|
214
|
+
|
|
215
|
+
- align (a value equal to: 'left', 'center', 'right'; optional)
|
|
216
|
+
|
|
217
|
+
- colSpan (number; optional)
|
|
218
|
+
|
|
219
|
+
- content (string | number; optional)
|
|
220
|
+
|
|
221
|
+
- summaryRowFixed (boolean; default False)
|
|
222
|
+
|
|
162
223
|
- titlePopoverInfo (dict; optional)"""
|
|
163
224
|
@_explicitize_args
|
|
164
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, containerId=Component.UNDEFINED, columns=Component.UNDEFINED, size=Component.UNDEFINED, rowSelectionType=Component.UNDEFINED, selectedRowKeys=Component.UNDEFINED, selectedRows=Component.UNDEFINED, enableHoverListen=Component.UNDEFINED, recentlyMouseEnterColumn=Component.UNDEFINED, recentlyMouseEnterRow=Component.UNDEFINED, titlePopoverInfo=Component.UNDEFINED, columnsFormatConstraint=Component.UNDEFINED, data=Component.UNDEFINED, sortOptions=Component.UNDEFINED, filterOptions=Component.UNDEFINED, pagination=Component.UNDEFINED, bordered=Component.UNDEFINED, maxHeight=Component.UNDEFINED, currentData=Component.UNDEFINED, recentlyChangedRow=Component.UNDEFINED, recentlyButtonClickedRow=Component.UNDEFINED, nClicksButton=Component.UNDEFINED, clickedContent=Component.UNDEFINED, sorter=Component.UNDEFINED, filter=Component.UNDEFINED, mode=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
165
|
-
self._prop_names = ['id', 'bordered', 'className', 'clickedContent', 'columns', 'columnsFormatConstraint', 'containerId', 'currentData', 'data', 'enableHoverListen', 'filter', 'filterOptions', 'loading_state', 'locale', 'maxHeight', 'mode', 'nClicksButton', 'pagination', 'recentlyButtonClickedRow', 'recentlyChangedRow', 'recentlyMouseEnterColumn', 'recentlyMouseEnterRow', 'rowSelectionType', 'selectedRowKeys', 'selectedRows', 'size', 'sortOptions', 'sorter', 'style', 'titlePopoverInfo']
|
|
225
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, containerId=Component.UNDEFINED, columns=Component.UNDEFINED, miniChartHeight=Component.UNDEFINED, miniChartAnimation=Component.UNDEFINED, size=Component.UNDEFINED, rowSelectionType=Component.UNDEFINED, selectedRowKeys=Component.UNDEFINED, rowSelectionWidth=Component.UNDEFINED, selectedRows=Component.UNDEFINED, sticky=Component.UNDEFINED, enableHoverListen=Component.UNDEFINED, recentlyMouseEnterColumn=Component.UNDEFINED, recentlyMouseEnterRow=Component.UNDEFINED, titlePopoverInfo=Component.UNDEFINED, columnsFormatConstraint=Component.UNDEFINED, data=Component.UNDEFINED, sortOptions=Component.UNDEFINED, filterOptions=Component.UNDEFINED, pagination=Component.UNDEFINED, bordered=Component.UNDEFINED, maxHeight=Component.UNDEFINED, maxWidth=Component.UNDEFINED, currentData=Component.UNDEFINED, recentlyChangedRow=Component.UNDEFINED, recentlyButtonClickedRow=Component.UNDEFINED, nClicksButton=Component.UNDEFINED, clickedContent=Component.UNDEFINED, sorter=Component.UNDEFINED, filter=Component.UNDEFINED, mode=Component.UNDEFINED, summaryRowContents=Component.UNDEFINED, summaryRowFixed=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
226
|
+
self._prop_names = ['id', 'bordered', 'className', 'clickedContent', 'columns', 'columnsFormatConstraint', 'containerId', 'currentData', 'data', 'enableHoverListen', 'filter', 'filterOptions', 'loading_state', 'locale', 'maxHeight', 'maxWidth', 'miniChartAnimation', 'miniChartHeight', 'mode', 'nClicksButton', 'pagination', 'recentlyButtonClickedRow', 'recentlyChangedRow', 'recentlyMouseEnterColumn', 'recentlyMouseEnterRow', 'rowSelectionType', 'rowSelectionWidth', 'selectedRowKeys', 'selectedRows', 'size', 'sortOptions', 'sorter', 'sticky', 'style', 'summaryRowContents', 'summaryRowFixed', 'titlePopoverInfo']
|
|
166
227
|
self._type = 'AntdTable'
|
|
167
228
|
self._namespace = 'feffery_antd_components'
|
|
168
229
|
self._valid_wildcard_attributes = []
|
|
169
|
-
self.available_properties = ['id', 'bordered', 'className', 'clickedContent', 'columns', 'columnsFormatConstraint', 'containerId', 'currentData', 'data', 'enableHoverListen', 'filter', 'filterOptions', 'loading_state', 'locale', 'maxHeight', 'mode', 'nClicksButton', 'pagination', 'recentlyButtonClickedRow', 'recentlyChangedRow', 'recentlyMouseEnterColumn', 'recentlyMouseEnterRow', 'rowSelectionType', 'selectedRowKeys', 'selectedRows', 'size', 'sortOptions', 'sorter', 'style', 'titlePopoverInfo']
|
|
230
|
+
self.available_properties = ['id', 'bordered', 'className', 'clickedContent', 'columns', 'columnsFormatConstraint', 'containerId', 'currentData', 'data', 'enableHoverListen', 'filter', 'filterOptions', 'loading_state', 'locale', 'maxHeight', 'maxWidth', 'miniChartAnimation', 'miniChartHeight', 'mode', 'nClicksButton', 'pagination', 'recentlyButtonClickedRow', 'recentlyChangedRow', 'recentlyMouseEnterColumn', 'recentlyMouseEnterRow', 'rowSelectionType', 'rowSelectionWidth', 'selectedRowKeys', 'selectedRows', 'size', 'sortOptions', 'sorter', 'sticky', 'style', 'summaryRowContents', 'summaryRowFixed', 'titlePopoverInfo']
|
|
170
231
|
self.available_wildcard_properties = []
|
|
171
232
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
172
233
|
_locals = locals()
|