feffery_antd_components 0.1.6 → 0.1.9
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/NAMESPACE +1 -0
- package/Project.toml +1 -1
- package/README.md +2 -2
- package/feffery_antd_components/AntdDraggerUpload.py +40 -4
- package/feffery_antd_components/AntdImage.py +2 -2
- package/feffery_antd_components/AntdPopconfirm.py +5 -3
- package/feffery_antd_components/AntdRadioGroup.py +3 -3
- package/feffery_antd_components/AntdSegmented.py +85 -0
- package/feffery_antd_components/AntdSwitch.py +5 -3
- package/feffery_antd_components/AntdTable.py +27 -8
- package/feffery_antd_components/AntdUpload.py +40 -4
- package/feffery_antd_components/_imports_.py +2 -0
- package/feffery_antd_components/feffery_antd_components.min.js +143 -158
- package/feffery_antd_components/metadata.json +653 -60
- package/feffery_antd_components/package-info.json +3 -3
- package/package.json +3 -3
- package/src/FefferyAntdComponents.jl +4 -3
- package/src/jl/'feffery'_antddraggerupload.jl +22 -2
- package/src/jl/'feffery'_antdimage.jl +2 -2
- package/src/jl/'feffery'_antdpopconfirm.jl +2 -1
- package/src/jl/'feffery'_antdradiogroup.jl +3 -3
- package/src/jl/'feffery'_antdsegmented.jl +48 -0
- package/src/jl/'feffery'_antdswitch.jl +2 -1
- package/src/jl/'feffery'_antdtable.jl +17 -7
- package/src/jl/'feffery'_antdupload.jl +22 -2
- package/src/lib/components/AntdDraggerUpload.react.js +221 -51
- package/src/lib/components/AntdImage.react.js +8 -2
- package/src/lib/components/AntdMessage.react.js +2 -0
- package/src/lib/components/AntdPopconfirm.react.js +7 -2
- package/src/lib/components/AntdRadioGroup.react.js +10 -4
- package/src/lib/components/AntdSegmented.react.js +167 -0
- package/src/lib/components/AntdSwitch.react.js +9 -1
- package/src/lib/components/AntdTable.react.js +103 -16
- package/src/lib/components/AntdUpload.react.js +220 -52
- package/src/lib/components/tabs/AntdTabs.react.js +0 -1
- package/src/lib/index.js +3 -1
- package/usage.py +23 -1275
package/DESCRIPTION
CHANGED
package/NAMESPACE
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 最新开发版本安装方式
|
|
@@ -19,7 +19,7 @@ Keyword arguments:
|
|
|
19
19
|
|
|
20
20
|
- failedTooltipInfo (string; optional)
|
|
21
21
|
|
|
22
|
-
- fileListMaxLength (number;
|
|
22
|
+
- fileListMaxLength (number; optional)
|
|
23
23
|
|
|
24
24
|
- fileMaxSize (number; default 500)
|
|
25
25
|
|
|
@@ -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)
|
|
@@ -58,18 +92,20 @@ Keyword arguments:
|
|
|
58
92
|
|
|
59
93
|
- multiple (boolean; optional)
|
|
60
94
|
|
|
95
|
+
- showUploadList (boolean; optional)
|
|
96
|
+
|
|
61
97
|
- style (dict; optional)
|
|
62
98
|
|
|
63
99
|
- text (string; optional)
|
|
64
100
|
|
|
65
101
|
- uploadId (string; optional)"""
|
|
66
102
|
@_explicitize_args
|
|
67
|
-
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, lastUploadTaskRecord=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
68
|
-
self._prop_names = ['id', 'apiUrl', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'hint', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', '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']
|
|
69
105
|
self._type = 'AntdDraggerUpload'
|
|
70
106
|
self._namespace = 'feffery_antd_components'
|
|
71
107
|
self._valid_wildcard_attributes = []
|
|
72
|
-
self.available_properties = ['id', 'apiUrl', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'hint', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', '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']
|
|
73
109
|
self.available_wildcard_properties = []
|
|
74
110
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
75
111
|
_locals = locals()
|
|
@@ -17,7 +17,7 @@ Keyword arguments:
|
|
|
17
17
|
|
|
18
18
|
- fallback (string; default `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIM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IAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==`)
|
|
19
19
|
|
|
20
|
-
- height (number; optional)
|
|
20
|
+
- height (number | string; optional)
|
|
21
21
|
|
|
22
22
|
- loading_state (dict; optional)
|
|
23
23
|
|
|
@@ -42,7 +42,7 @@ Keyword arguments:
|
|
|
42
42
|
|
|
43
43
|
- style (dict; optional)
|
|
44
44
|
|
|
45
|
-
- width (number; optional)"""
|
|
45
|
+
- width (number | string; optional)"""
|
|
46
46
|
@_explicitize_args
|
|
47
47
|
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, alt=Component.UNDEFINED, width=Component.UNDEFINED, height=Component.UNDEFINED, src=Component.UNDEFINED, fallback=Component.UNDEFINED, multiImageMode=Component.UNDEFINED, preview=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
48
48
|
self._prop_names = ['id', 'alt', 'className', 'fallback', 'height', 'loading_state', 'locale', 'multiImageMode', 'preview', 'src', 'style', 'width']
|
|
@@ -25,6 +25,8 @@ Keyword arguments:
|
|
|
25
25
|
|
|
26
26
|
- confirmCounts (number; default 0)
|
|
27
27
|
|
|
28
|
+
- containerStrategy (a value equal to: 'parent', 'body'; default 'parent')
|
|
29
|
+
|
|
28
30
|
- disabled (boolean; optional)
|
|
29
31
|
|
|
30
32
|
- loading_state (dict; optional)
|
|
@@ -62,12 +64,12 @@ Keyword arguments:
|
|
|
62
64
|
|
|
63
65
|
- trigger (a value equal to: 'hover', 'focus', 'click' | list of a value equal to: 'hover', 'focus', 'click's; optional)"""
|
|
64
66
|
@_explicitize_args
|
|
65
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, title=Component.UNDEFINED, disabled=Component.UNDEFINED, placement=Component.UNDEFINED, mouseEnterDelay=Component.UNDEFINED, mouseLeaveDelay=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, overlayInnerStyle=Component.UNDEFINED, okText=Component.UNDEFINED, okButtonProps=Component.UNDEFINED, cancelText=Component.UNDEFINED, cancelButtonProps=Component.UNDEFINED, confirmCounts=Component.UNDEFINED, cancelCounts=Component.UNDEFINED, trigger=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
66
|
-
self._prop_names = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
67
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, title=Component.UNDEFINED, disabled=Component.UNDEFINED, placement=Component.UNDEFINED, mouseEnterDelay=Component.UNDEFINED, mouseLeaveDelay=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, overlayInnerStyle=Component.UNDEFINED, okText=Component.UNDEFINED, okButtonProps=Component.UNDEFINED, cancelText=Component.UNDEFINED, cancelButtonProps=Component.UNDEFINED, confirmCounts=Component.UNDEFINED, cancelCounts=Component.UNDEFINED, containerStrategy=Component.UNDEFINED, trigger=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
68
|
+
self._prop_names = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'containerStrategy', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
67
69
|
self._type = 'AntdPopconfirm'
|
|
68
70
|
self._namespace = 'feffery_antd_components'
|
|
69
71
|
self._valid_wildcard_attributes = []
|
|
70
|
-
self.available_properties = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
72
|
+
self.available_properties = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'containerStrategy', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
71
73
|
self.available_wildcard_properties = []
|
|
72
74
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
73
75
|
_locals = locals()
|
|
@@ -15,7 +15,7 @@ Keyword arguments:
|
|
|
15
15
|
|
|
16
16
|
- className (string; optional)
|
|
17
17
|
|
|
18
|
-
- defaultValue (string; optional)
|
|
18
|
+
- defaultValue (string | number; optional)
|
|
19
19
|
|
|
20
20
|
- direction (a value equal to: 'horizontal', 'vertical'; default 'horizontal')
|
|
21
21
|
|
|
@@ -42,9 +42,9 @@ Keyword arguments:
|
|
|
42
42
|
|
|
43
43
|
- disabled (boolean; optional)
|
|
44
44
|
|
|
45
|
-
- label (string;
|
|
45
|
+
- label (string; optional)
|
|
46
46
|
|
|
47
|
-
- value (string;
|
|
47
|
+
- value (string | number; optional)
|
|
48
48
|
|
|
49
49
|
- persisted_props (list of a value equal to: 'value's; default ['value']):
|
|
50
50
|
Properties whose user interactions will persist after refreshing
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdSegmented(Component):
|
|
7
|
+
"""An AntdSegmented component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- block (boolean; optional)
|
|
15
|
+
|
|
16
|
+
- className (string; optional)
|
|
17
|
+
|
|
18
|
+
- defaultValue (string | number; optional)
|
|
19
|
+
|
|
20
|
+
- disabled (boolean; 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
|
+
- options (list of dicts; optional)
|
|
36
|
+
|
|
37
|
+
`options` is a list of dicts with keys:
|
|
38
|
+
|
|
39
|
+
- disabled (boolean; optional)
|
|
40
|
+
|
|
41
|
+
- label (string; optional)
|
|
42
|
+
|
|
43
|
+
- value (string | number; optional)
|
|
44
|
+
|
|
45
|
+
- persisted_props (list of a value equal to: 'value's; optional):
|
|
46
|
+
Properties whose user interactions will persist after refreshing
|
|
47
|
+
the component or the page. Since only `value` is allowed this
|
|
48
|
+
prop can normally be ignored.
|
|
49
|
+
|
|
50
|
+
- persistence (boolean | string | number; optional):
|
|
51
|
+
Used to allow user interactions in this component to be persisted
|
|
52
|
+
when the component - or the page - is refreshed. If `persisted`
|
|
53
|
+
is truthy and hasn't changed from its previous value, a `value`
|
|
54
|
+
that the user has changed while using the app will keep that
|
|
55
|
+
change, as long as the new `value` also matches what was given
|
|
56
|
+
originally. Used in conjunction with `persistence_type`.
|
|
57
|
+
|
|
58
|
+
- persistence_type (a value equal to: 'local', 'session', 'memory'; optional):
|
|
59
|
+
Where persisted user changes will be stored: memory: only kept in
|
|
60
|
+
memory, reset on page refresh. local: window.localStorage, data
|
|
61
|
+
is kept after the browser quit. session: window.sessionStorage,
|
|
62
|
+
data is cleared once the browser quit.
|
|
63
|
+
|
|
64
|
+
- size (a value equal to: 'large', 'middle', 'small'; optional)
|
|
65
|
+
|
|
66
|
+
- style (dict; optional)
|
|
67
|
+
|
|
68
|
+
- value (string | number; optional)"""
|
|
69
|
+
@_explicitize_args
|
|
70
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, block=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
71
|
+
self._prop_names = ['id', 'block', 'className', 'defaultValue', 'disabled', 'loading_state', 'options', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
72
|
+
self._type = 'AntdSegmented'
|
|
73
|
+
self._namespace = 'feffery_antd_components'
|
|
74
|
+
self._valid_wildcard_attributes = []
|
|
75
|
+
self.available_properties = ['id', 'block', 'className', 'defaultValue', 'disabled', 'loading_state', 'options', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
76
|
+
self.available_wildcard_properties = []
|
|
77
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
78
|
+
_locals = locals()
|
|
79
|
+
_locals.update(kwargs) # For wildcard attrs
|
|
80
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
81
|
+
for k in []:
|
|
82
|
+
if k not in args:
|
|
83
|
+
raise TypeError(
|
|
84
|
+
'Required argument `' + k + '` was not specified.')
|
|
85
|
+
super(AntdSegmented, self).__init__(**args)
|
|
@@ -19,6 +19,8 @@ Keyword arguments:
|
|
|
19
19
|
|
|
20
20
|
- disabled (boolean; optional)
|
|
21
21
|
|
|
22
|
+
- loading (boolean; optional)
|
|
23
|
+
|
|
22
24
|
- loading_state (dict; optional)
|
|
23
25
|
|
|
24
26
|
`loading_state` is a dict with keys:
|
|
@@ -57,12 +59,12 @@ Keyword arguments:
|
|
|
57
59
|
|
|
58
60
|
- unCheckedChildren (string; optional)"""
|
|
59
61
|
@_explicitize_args
|
|
60
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, disabled=Component.UNDEFINED, checked=Component.UNDEFINED, checkedChildren=Component.UNDEFINED, unCheckedChildren=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
61
|
-
self._prop_names = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
62
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, disabled=Component.UNDEFINED, checked=Component.UNDEFINED, checkedChildren=Component.UNDEFINED, unCheckedChildren=Component.UNDEFINED, size=Component.UNDEFINED, loading=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
63
|
+
self._prop_names = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
62
64
|
self._type = 'AntdSwitch'
|
|
63
65
|
self._namespace = 'feffery_antd_components'
|
|
64
66
|
self._valid_wildcard_attributes = []
|
|
65
|
-
self.available_properties = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
67
|
+
self.available_properties = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
66
68
|
self.available_wildcard_properties = []
|
|
67
69
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
68
70
|
_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'; 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
|
|
@@ -115,7 +117,13 @@ Keyword arguments:
|
|
|
115
117
|
|
|
116
118
|
- status (a value equal to: 'success', 'processing', 'default', 'error', 'warning'; optional)
|
|
117
119
|
|
|
118
|
-
- text (string | number; optional)
|
|
120
|
+
- text (string | number; optional) | dict with keys:
|
|
121
|
+
|
|
122
|
+
- height (string | number; optional)
|
|
123
|
+
|
|
124
|
+
- preview (boolean; optional)
|
|
125
|
+
|
|
126
|
+
- src (string; optional)
|
|
119
127
|
|
|
120
128
|
- enableHoverListen (boolean; default False)
|
|
121
129
|
|
|
@@ -123,6 +131,17 @@ Keyword arguments:
|
|
|
123
131
|
|
|
124
132
|
- filterOptions (dict; optional)
|
|
125
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
|
+
|
|
126
145
|
- loading_state (dict; optional)
|
|
127
146
|
|
|
128
147
|
`loading_state` is a dict with keys:
|
|
@@ -206,7 +225,7 @@ Keyword arguments:
|
|
|
206
225
|
|
|
207
226
|
`sortOptions` is a dict with keys:
|
|
208
227
|
|
|
209
|
-
- multiple (boolean; optional)
|
|
228
|
+
- multiple (boolean | a value equal to: 'auto'; optional)
|
|
210
229
|
|
|
211
230
|
- sortDataIndexes (list of strings; optional)
|
|
212
231
|
|
|
@@ -240,12 +259,12 @@ Keyword arguments:
|
|
|
240
259
|
|
|
241
260
|
- titlePopoverInfo (dict; optional)"""
|
|
242
261
|
@_explicitize_args
|
|
243
|
-
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):
|
|
244
|
-
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']
|
|
245
264
|
self._type = 'AntdTable'
|
|
246
265
|
self._namespace = 'feffery_antd_components'
|
|
247
266
|
self._valid_wildcard_attributes = []
|
|
248
|
-
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']
|
|
249
268
|
self.available_wildcard_properties = []
|
|
250
269
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
251
270
|
_locals = locals()
|
|
@@ -21,7 +21,7 @@ Keyword arguments:
|
|
|
21
21
|
|
|
22
22
|
- failedTooltipInfo (string; optional)
|
|
23
23
|
|
|
24
|
-
- fileListMaxLength (number;
|
|
24
|
+
- fileListMaxLength (number; optional)
|
|
25
25
|
|
|
26
26
|
- fileMaxSize (number; default 500)
|
|
27
27
|
|
|
@@ -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)
|
|
@@ -58,16 +92,18 @@ Keyword arguments:
|
|
|
58
92
|
|
|
59
93
|
- multiple (boolean; optional)
|
|
60
94
|
|
|
95
|
+
- showUploadList (boolean; optional)
|
|
96
|
+
|
|
61
97
|
- style (dict; optional)
|
|
62
98
|
|
|
63
99
|
- uploadId (string; optional)"""
|
|
64
100
|
@_explicitize_args
|
|
65
|
-
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, lastUploadTaskRecord=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
66
|
-
self._prop_names = ['id', 'apiUrl', 'buttonContent', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', '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']
|
|
67
103
|
self._type = 'AntdUpload'
|
|
68
104
|
self._namespace = 'feffery_antd_components'
|
|
69
105
|
self._valid_wildcard_attributes = []
|
|
70
|
-
self.available_properties = ['id', 'apiUrl', 'buttonContent', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'lastUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'style', 'uploadId']
|
|
106
|
+
self.available_properties = ['id', 'apiUrl', 'buttonContent', 'className', 'directory', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'showUploadList', 'style', 'uploadId']
|
|
71
107
|
self.available_wildcard_properties = []
|
|
72
108
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
73
109
|
_locals = locals()
|
|
@@ -40,6 +40,7 @@ from .AntdRadioGroup import AntdRadioGroup
|
|
|
40
40
|
from .AntdRate import AntdRate
|
|
41
41
|
from .AntdResult import AntdResult
|
|
42
42
|
from .AntdRibbon import AntdRibbon
|
|
43
|
+
from .AntdSegmented import AntdSegmented
|
|
43
44
|
from .AntdSelect import AntdSelect
|
|
44
45
|
from .AntdSkeleton import AntdSkeleton
|
|
45
46
|
from .AntdSlider import AntdSlider
|
|
@@ -121,6 +122,7 @@ __all__ = [
|
|
|
121
122
|
"AntdRate",
|
|
122
123
|
"AntdResult",
|
|
123
124
|
"AntdRibbon",
|
|
125
|
+
"AntdSegmented",
|
|
124
126
|
"AntdSelect",
|
|
125
127
|
"AntdSkeleton",
|
|
126
128
|
"AntdSlider",
|