feffery_antd_components 0.1.7 → 0.1.8
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/AntdDraggerUpload.py +37 -3
- package/feffery_antd_components/AntdTable.py +20 -7
- package/feffery_antd_components/AntdUpload.py +27 -3
- package/feffery_antd_components/feffery_antd_components.min.js +2 -2
- package/feffery_antd_components/metadata.json +274 -28
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/FefferyAntdComponents.jl +3 -3
- package/src/jl/'feffery'_antddraggerupload.jl +21 -2
- package/src/jl/'feffery'_antdtable.jl +12 -6
- package/src/jl/'feffery'_antdupload.jl +14 -1
- package/src/lib/components/AntdDraggerUpload.react.js +205 -65
- package/src/lib/components/AntdTable.react.js +72 -15
- package/src/lib/components/AntdUpload.react.js +168 -54
- package/usage.py +68 -93
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.8`
|
|
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.8
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## 2 最新开发版本安装方式
|
|
@@ -39,6 +39,40 @@ Keyword arguments:
|
|
|
39
39
|
|
|
40
40
|
- taskId (string; optional)
|
|
41
41
|
|
|
42
|
+
- taskStatus (string; optional) | list of dicts with keys:
|
|
43
|
+
|
|
44
|
+
- completeTimestamp (number; optional)
|
|
45
|
+
|
|
46
|
+
- fileName (string; optional)
|
|
47
|
+
|
|
48
|
+
- fileSize (number; optional)
|
|
49
|
+
|
|
50
|
+
- taskId (string; optional)
|
|
51
|
+
|
|
52
|
+
- taskStatus (string; optional)
|
|
53
|
+
|
|
54
|
+
- listUploadTaskRecord (dict; optional)
|
|
55
|
+
|
|
56
|
+
`listUploadTaskRecord` is a dict with keys:
|
|
57
|
+
|
|
58
|
+
- completeTimestamp (number; optional)
|
|
59
|
+
|
|
60
|
+
- fileName (string; optional)
|
|
61
|
+
|
|
62
|
+
- fileSize (number; optional)
|
|
63
|
+
|
|
64
|
+
- taskId (string; optional)
|
|
65
|
+
|
|
66
|
+
- taskStatus (string; optional) | list of dicts with keys:
|
|
67
|
+
|
|
68
|
+
- completeTimestamp (number; optional)
|
|
69
|
+
|
|
70
|
+
- fileName (string; optional)
|
|
71
|
+
|
|
72
|
+
- fileSize (number; optional)
|
|
73
|
+
|
|
74
|
+
- taskId (string; optional)
|
|
75
|
+
|
|
42
76
|
- taskStatus (string; optional)
|
|
43
77
|
|
|
44
78
|
- loading_state (dict; optional)
|
|
@@ -66,12 +100,12 @@ Keyword arguments:
|
|
|
66
100
|
|
|
67
101
|
- uploadId (string; optional)"""
|
|
68
102
|
@_explicitize_args
|
|
69
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, text=Component.UNDEFINED, hint=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
70
|
-
self._prop_names = ['id', 'apiUrl', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'hint', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'text', 'uploadId']
|
|
103
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, text=Component.UNDEFINED, hint=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, listUploadTaskRecord=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
104
|
+
self._prop_names = ['id', 'apiUrl', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'hint', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'text', 'uploadId']
|
|
71
105
|
self._type = 'AntdDraggerUpload'
|
|
72
106
|
self._namespace = 'feffery_antd_components'
|
|
73
107
|
self._valid_wildcard_attributes = []
|
|
74
|
-
self.available_properties = ['id', 'apiUrl', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'hint', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'text', 'uploadId']
|
|
108
|
+
self.available_properties = ['id', 'apiUrl', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'hint', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'text', 'uploadId']
|
|
75
109
|
self.available_wildcard_properties = []
|
|
76
110
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
77
111
|
_locals = locals()
|
|
@@ -23,8 +23,6 @@ Keyword arguments:
|
|
|
23
23
|
|
|
24
24
|
- align (a value equal to: 'left', 'center', 'right'; optional)
|
|
25
25
|
|
|
26
|
-
- conditionStyle (string; optional)
|
|
27
|
-
|
|
28
26
|
- dataIndex (string; required)
|
|
29
27
|
|
|
30
28
|
- editable (boolean; optional)
|
|
@@ -53,7 +51,7 @@ Keyword arguments:
|
|
|
53
51
|
|
|
54
52
|
- renderLinkText (string; optional)
|
|
55
53
|
|
|
56
|
-
- renderType (a value equal to: 'link', 'ellipsis', 'mini-line', 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area', 'tags', 'button', 'copyable', 'status-badge', 'image'; optional)
|
|
54
|
+
- renderType (a value equal to: 'link', 'ellipsis', 'mini-line', 'mini-bar', 'mini-progress', 'mini-ring-progress', 'mini-area', 'tags', 'button', 'copyable', 'status-badge', 'image', 'custom-format'; optional)
|
|
57
55
|
|
|
58
56
|
- sorter (boolean | number | string | dict | list; optional)
|
|
59
57
|
|
|
@@ -72,10 +70,14 @@ Keyword arguments:
|
|
|
72
70
|
|
|
73
71
|
- rule (string; optional)
|
|
74
72
|
|
|
73
|
+
- conditionalStyleFuncs (dict with strings as keys and values of type string; optional)
|
|
74
|
+
|
|
75
75
|
- containerId (string; optional)
|
|
76
76
|
|
|
77
77
|
- currentData (list; optional)
|
|
78
78
|
|
|
79
|
+
- customFormatFuncs (dict with strings as keys and values of type string; optional)
|
|
80
|
+
|
|
79
81
|
- data (list of dicts; optional)
|
|
80
82
|
|
|
81
83
|
`data` is a list of dicts with strings as keys and values of type
|
|
@@ -129,6 +131,17 @@ Keyword arguments:
|
|
|
129
131
|
|
|
130
132
|
- filterOptions (dict; optional)
|
|
131
133
|
|
|
134
|
+
`filterOptions` is a dict with strings as keys and values of type
|
|
135
|
+
dict with keys:
|
|
136
|
+
|
|
137
|
+
- filterCustomItems (list | boolean | number | string | dict | list; optional)
|
|
138
|
+
|
|
139
|
+
- filterMode (a value equal to: 'checkbox', 'keyword'; optional)
|
|
140
|
+
|
|
141
|
+
- filterMultiple (boolean; optional)
|
|
142
|
+
|
|
143
|
+
- filterSearch (boolean; optional)
|
|
144
|
+
|
|
132
145
|
- loading_state (dict; optional)
|
|
133
146
|
|
|
134
147
|
`loading_state` is a dict with keys:
|
|
@@ -212,7 +225,7 @@ Keyword arguments:
|
|
|
212
225
|
|
|
213
226
|
`sortOptions` is a dict with keys:
|
|
214
227
|
|
|
215
|
-
- multiple (boolean; optional)
|
|
228
|
+
- multiple (boolean | a value equal to: 'auto'; optional)
|
|
216
229
|
|
|
217
230
|
- sortDataIndexes (list of strings; optional)
|
|
218
231
|
|
|
@@ -246,12 +259,12 @@ Keyword arguments:
|
|
|
246
259
|
|
|
247
260
|
- titlePopoverInfo (dict; optional)"""
|
|
248
261
|
@_explicitize_args
|
|
249
|
-
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):
|
|
250
|
-
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']
|
|
262
|
+
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, customFormatFuncs=Component.UNDEFINED, conditionalStyleFuncs=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
263
|
+
self._prop_names = ['id', 'bordered', 'className', 'clickedContent', 'columns', 'columnsFormatConstraint', 'conditionalStyleFuncs', 'containerId', 'currentData', 'customFormatFuncs', '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']
|
|
251
264
|
self._type = 'AntdTable'
|
|
252
265
|
self._namespace = 'feffery_antd_components'
|
|
253
266
|
self._valid_wildcard_attributes = []
|
|
254
|
-
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']
|
|
267
|
+
self.available_properties = ['id', 'bordered', 'className', 'clickedContent', 'columns', 'columnsFormatConstraint', 'conditionalStyleFuncs', 'containerId', 'currentData', 'customFormatFuncs', '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']
|
|
255
268
|
self.available_wildcard_properties = []
|
|
256
269
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
257
270
|
_locals = locals()
|
|
@@ -51,6 +51,30 @@ Keyword arguments:
|
|
|
51
51
|
|
|
52
52
|
- taskStatus (string; optional)
|
|
53
53
|
|
|
54
|
+
- listUploadTaskRecord (dict; optional)
|
|
55
|
+
|
|
56
|
+
`listUploadTaskRecord` is a dict with keys:
|
|
57
|
+
|
|
58
|
+
- completeTimestamp (number; optional)
|
|
59
|
+
|
|
60
|
+
- fileName (string; optional)
|
|
61
|
+
|
|
62
|
+
- fileSize (number; optional)
|
|
63
|
+
|
|
64
|
+
- taskId (string; optional)
|
|
65
|
+
|
|
66
|
+
- taskStatus (string; optional) | list of dicts with keys:
|
|
67
|
+
|
|
68
|
+
- completeTimestamp (number; optional)
|
|
69
|
+
|
|
70
|
+
- fileName (string; optional)
|
|
71
|
+
|
|
72
|
+
- fileSize (number; optional)
|
|
73
|
+
|
|
74
|
+
- taskId (string; optional)
|
|
75
|
+
|
|
76
|
+
- taskStatus (string; optional)
|
|
77
|
+
|
|
54
78
|
- loading_state (dict; optional)
|
|
55
79
|
|
|
56
80
|
`loading_state` is a dict with keys:
|
|
@@ -74,12 +98,12 @@ Keyword arguments:
|
|
|
74
98
|
|
|
75
99
|
- uploadId (string; optional)"""
|
|
76
100
|
@_explicitize_args
|
|
77
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, buttonContent=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
78
|
-
self._prop_names = ['id', 'apiUrl', 'buttonContent', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'uploadId']
|
|
101
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, buttonContent=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, listUploadTaskRecord=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
102
|
+
self._prop_names = ['id', 'apiUrl', 'buttonContent', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'uploadId']
|
|
79
103
|
self._type = 'AntdUpload'
|
|
80
104
|
self._namespace = 'feffery_antd_components'
|
|
81
105
|
self._valid_wildcard_attributes = []
|
|
82
|
-
self.available_properties = ['id', 'apiUrl', 'buttonContent', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'uploadId']
|
|
106
|
+
self.available_properties = ['id', 'apiUrl', 'buttonContent', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'uploadId']
|
|
83
107
|
self.available_wildcard_properties = []
|
|
84
108
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
85
109
|
_locals = locals()
|