feffery_antd_components 0.1.9 → 0.1.10
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 +4 -0
- package/Project.toml +1 -1
- package/README.md +2 -2
- package/feffery_antd_components/AntdAccordion.py +62 -0
- package/feffery_antd_components/AntdAccordionItem.py +56 -0
- package/feffery_antd_components/AntdCheckCard.py +60 -0
- package/feffery_antd_components/AntdCheckCardGroup.py +60 -0
- package/feffery_antd_components/_imports_.py +8 -0
- package/feffery_antd_components/feffery_antd_components.min.js +9 -9
- package/feffery_antd_components/metadata.json +7097 -6536
- package/feffery_antd_components/package-info.json +6 -5
- package/package.json +6 -5
- package/src/FefferyAntdComponents.jl +7 -3
- package/src/jl/'feffery'_antdaccordion.jl +39 -0
- package/src/jl/'feffery'_antdaccordionitem.jl +36 -0
- package/src/jl/'feffery'_antdcheckcard.jl +38 -0
- package/src/jl/'feffery'_antdcheckcardgroup.jl +38 -0
- package/src/lib/components/AntdAffix.react.js +1 -7
- package/src/lib/components/AntdCollapse.react.js +1 -7
- package/src/lib/components/AntdComment.react.js +1 -7
- package/src/lib/components/AntdPageHeader.react.js +1 -7
- package/src/lib/components/AntdPopconfirm.react.js +1 -7
- package/src/lib/components/AntdPopover.react.js +1 -7
- package/src/lib/components/AntdSkeleton.react.js +1 -7
- package/src/lib/components/AntdSpace.react.js +1 -7
- package/src/lib/components/AntdSpin.react.js +1 -7
- package/src/lib/components/AntdTable.react.js +3 -1
- package/src/lib/components/AntdTooltip.react.js +1 -7
- package/src/lib/components/AntdWatermark.react.js +1 -7
- package/src/lib/components/accordion/AntdAccordion.react.js +167 -0
- package/src/lib/components/accordion/AntdAccordionItem.react.js +98 -0
- package/src/lib/components/card/AntdCard.react.js +1 -7
- package/src/lib/components/card/AntdCardGrid.react.js +1 -7
- package/src/lib/components/check-card/AntdCheckCard.react.js +113 -0
- package/src/lib/components/check-card/AntdCheckCardGroup.react.js +119 -0
- package/src/lib/components/descriptions/AntdDescriptionItem.react.js +1 -7
- package/src/lib/components/descriptions/AntdDescriptions.react.js +1 -7
- package/src/lib/components/grid/AntdCol.react.js +1 -7
- package/src/lib/components/grid/AntdRow.react.js +1 -7
- package/src/lib/components/layout/AntdContent.react.js +1 -7
- package/src/lib/components/layout/AntdFooter.react.js +1 -7
- package/src/lib/components/layout/AntdHeader.react.js +1 -7
- package/src/lib/components/layout/AntdLayout.react.js +1 -7
- package/src/lib/components/layout/AntdSider.react.js +1 -7
- package/src/lib/components/tabs/AntdTabPane.react.js +1 -7
- package/src/lib/components/tabs/AntdTabs.react.js +2 -26
- package/src/lib/components/typography/AntdParagraph.react.js +1 -7
- package/src/lib/components/typography/AntdText.react.js +1 -7
- package/src/lib/components/typography/AntdTitle.react.js +1 -7
- package/src/lib/components/utils.js +31 -0
- package/src/lib/index.js +9 -1
- package/usage.py +66 -25
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
export('feffery'AntdAccordion)
|
|
4
|
+
export('feffery'AntdAccordionItem)
|
|
3
5
|
export('feffery'AntdAffix)
|
|
4
6
|
export('feffery'AntdAlert)
|
|
5
7
|
export('feffery'AntdAnchor)
|
|
@@ -64,6 +66,8 @@ export('feffery'AntdUpload)
|
|
|
64
66
|
export('feffery'AntdWatermark)
|
|
65
67
|
export('feffery'AntdCard)
|
|
66
68
|
export('feffery'AntdCardGrid)
|
|
69
|
+
export('feffery'AntdCheckCard)
|
|
70
|
+
export('feffery'AntdCheckCardGroup)
|
|
67
71
|
export('feffery'AntdDescriptionItem)
|
|
68
72
|
export('feffery'AntdDescriptions)
|
|
69
73
|
export('feffery'AntdForm)
|
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.10`
|
|
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.10
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## 2 最新开发版本安装方式
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdAccordion(Component):
|
|
7
|
+
"""An AntdAccordion 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
|
+
- accordion (boolean; default True)
|
|
17
|
+
|
|
18
|
+
- activeKey (string | list of strings | number | list of numbers; optional)
|
|
19
|
+
|
|
20
|
+
- bordered (boolean; optional)
|
|
21
|
+
|
|
22
|
+
- className (string; optional)
|
|
23
|
+
|
|
24
|
+
- collapsible (a value equal to: 'header', 'disabled'; optional)
|
|
25
|
+
|
|
26
|
+
- defaultActiveKey (string | list of strings | number | list of numbers; optional)
|
|
27
|
+
|
|
28
|
+
- expandIconPosition (a value equal to: 'left', 'right'; optional)
|
|
29
|
+
|
|
30
|
+
- ghost (boolean; optional)
|
|
31
|
+
|
|
32
|
+
- loading_state (dict; optional)
|
|
33
|
+
|
|
34
|
+
`loading_state` is a dict with keys:
|
|
35
|
+
|
|
36
|
+
- component_name (string; optional):
|
|
37
|
+
Holds the name of the component that is loading.
|
|
38
|
+
|
|
39
|
+
- is_loading (boolean; optional):
|
|
40
|
+
Determines if the component is loading or not.
|
|
41
|
+
|
|
42
|
+
- prop_name (string; optional):
|
|
43
|
+
Holds which property is loading.
|
|
44
|
+
|
|
45
|
+
- style (dict; optional)"""
|
|
46
|
+
@_explicitize_args
|
|
47
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, accordion=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, bordered=Component.UNDEFINED, collapsible=Component.UNDEFINED, expandIconPosition=Component.UNDEFINED, ghost=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
48
|
+
self._prop_names = ['children', 'id', 'accordion', 'activeKey', 'bordered', 'className', 'collapsible', 'defaultActiveKey', 'expandIconPosition', 'ghost', 'loading_state', 'style']
|
|
49
|
+
self._type = 'AntdAccordion'
|
|
50
|
+
self._namespace = 'feffery_antd_components'
|
|
51
|
+
self._valid_wildcard_attributes = []
|
|
52
|
+
self.available_properties = ['children', 'id', 'accordion', 'activeKey', 'bordered', 'className', 'collapsible', 'defaultActiveKey', 'expandIconPosition', 'ghost', 'loading_state', 'style']
|
|
53
|
+
self.available_wildcard_properties = []
|
|
54
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
55
|
+
_locals = locals()
|
|
56
|
+
_locals.update(kwargs) # For wildcard attrs
|
|
57
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
58
|
+
for k in []:
|
|
59
|
+
if k not in args:
|
|
60
|
+
raise TypeError(
|
|
61
|
+
'Required argument `' + k + '` was not specified.')
|
|
62
|
+
super(AntdAccordion, self).__init__(children=children, **args)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdAccordionItem(Component):
|
|
7
|
+
"""An AntdAccordionItem 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
|
+
- collapsible (a value equal to: 'header', 'disabled'; optional)
|
|
19
|
+
|
|
20
|
+
- key (string | number; required)
|
|
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
|
+
- showArrow (boolean; optional)
|
|
36
|
+
|
|
37
|
+
- style (dict; optional)
|
|
38
|
+
|
|
39
|
+
- title (string; default '')"""
|
|
40
|
+
@_explicitize_args
|
|
41
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.REQUIRED, collapsible=Component.UNDEFINED, title=Component.UNDEFINED, showArrow=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
42
|
+
self._prop_names = ['children', 'id', 'className', 'collapsible', 'key', 'loading_state', 'showArrow', 'style', 'title']
|
|
43
|
+
self._type = 'AntdAccordionItem'
|
|
44
|
+
self._namespace = 'feffery_antd_components'
|
|
45
|
+
self._valid_wildcard_attributes = []
|
|
46
|
+
self.available_properties = ['children', 'id', 'className', 'collapsible', 'key', 'loading_state', 'showArrow', 'style', 'title']
|
|
47
|
+
self.available_wildcard_properties = []
|
|
48
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
49
|
+
_locals = locals()
|
|
50
|
+
_locals.update(kwargs) # For wildcard attrs
|
|
51
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
52
|
+
for k in ['key']:
|
|
53
|
+
if k not in args:
|
|
54
|
+
raise TypeError(
|
|
55
|
+
'Required argument `' + k + '` was not specified.')
|
|
56
|
+
super(AntdAccordionItem, self).__init__(children=children, **args)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdCheckCard(Component):
|
|
7
|
+
"""An AntdCheckCard 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
|
+
- bordered (boolean; optional)
|
|
17
|
+
|
|
18
|
+
- checked (boolean; optional)
|
|
19
|
+
|
|
20
|
+
- className (string; optional)
|
|
21
|
+
|
|
22
|
+
- defaultChecked (boolean; optional)
|
|
23
|
+
|
|
24
|
+
- disabled (boolean; optional)
|
|
25
|
+
|
|
26
|
+
- loading_state (dict; optional)
|
|
27
|
+
|
|
28
|
+
`loading_state` is a dict with keys:
|
|
29
|
+
|
|
30
|
+
- component_name (string; optional):
|
|
31
|
+
Holds the name of the component that is loading.
|
|
32
|
+
|
|
33
|
+
- is_loading (boolean; optional):
|
|
34
|
+
Determines if the component is loading or not.
|
|
35
|
+
|
|
36
|
+
- prop_name (string; optional):
|
|
37
|
+
Holds which property is loading.
|
|
38
|
+
|
|
39
|
+
- size (a value equal to: 'small', 'default', 'large'; optional)
|
|
40
|
+
|
|
41
|
+
- style (dict; optional)
|
|
42
|
+
|
|
43
|
+
- value (string; optional)"""
|
|
44
|
+
@_explicitize_args
|
|
45
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, checked=Component.UNDEFINED, bordered=Component.UNDEFINED, value=Component.UNDEFINED, defaultChecked=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
46
|
+
self._prop_names = ['children', 'id', 'bordered', 'checked', 'className', 'defaultChecked', 'disabled', 'loading_state', 'size', 'style', 'value']
|
|
47
|
+
self._type = 'AntdCheckCard'
|
|
48
|
+
self._namespace = 'feffery_antd_components'
|
|
49
|
+
self._valid_wildcard_attributes = []
|
|
50
|
+
self.available_properties = ['children', 'id', 'bordered', 'checked', 'className', 'defaultChecked', 'disabled', 'loading_state', 'size', 'style', 'value']
|
|
51
|
+
self.available_wildcard_properties = []
|
|
52
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
53
|
+
_locals = locals()
|
|
54
|
+
_locals.update(kwargs) # For wildcard attrs
|
|
55
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
56
|
+
for k in []:
|
|
57
|
+
if k not in args:
|
|
58
|
+
raise TypeError(
|
|
59
|
+
'Required argument `' + k + '` was not specified.')
|
|
60
|
+
super(AntdCheckCard, self).__init__(children=children, **args)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdCheckCardGroup(Component):
|
|
7
|
+
"""An AntdCheckCardGroup 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
|
+
- bordered (boolean; optional)
|
|
17
|
+
|
|
18
|
+
- className (string; optional)
|
|
19
|
+
|
|
20
|
+
- defaultValue (string | list of strings; optional)
|
|
21
|
+
|
|
22
|
+
- disabled (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
|
+
- multiple (boolean; optional)
|
|
38
|
+
|
|
39
|
+
- size (a value equal to: 'small', 'default', 'large'; optional)
|
|
40
|
+
|
|
41
|
+
- style (dict; optional)
|
|
42
|
+
|
|
43
|
+
- value (string | list of strings; optional)"""
|
|
44
|
+
@_explicitize_args
|
|
45
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, multiple=Component.UNDEFINED, bordered=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
46
|
+
self._prop_names = ['children', 'id', 'bordered', 'className', 'defaultValue', 'disabled', 'loading_state', 'multiple', 'size', 'style', 'value']
|
|
47
|
+
self._type = 'AntdCheckCardGroup'
|
|
48
|
+
self._namespace = 'feffery_antd_components'
|
|
49
|
+
self._valid_wildcard_attributes = []
|
|
50
|
+
self.available_properties = ['children', 'id', 'bordered', 'className', 'defaultValue', 'disabled', 'loading_state', 'multiple', 'size', 'style', 'value']
|
|
51
|
+
self.available_wildcard_properties = []
|
|
52
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
53
|
+
_locals = locals()
|
|
54
|
+
_locals.update(kwargs) # For wildcard attrs
|
|
55
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
56
|
+
for k in []:
|
|
57
|
+
if k not in args:
|
|
58
|
+
raise TypeError(
|
|
59
|
+
'Required argument `' + k + '` was not specified.')
|
|
60
|
+
super(AntdCheckCardGroup, self).__init__(children=children, **args)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from .AntdAccordion import AntdAccordion
|
|
2
|
+
from .AntdAccordionItem import AntdAccordionItem
|
|
1
3
|
from .AntdAffix import AntdAffix
|
|
2
4
|
from .AntdAlert import AntdAlert
|
|
3
5
|
from .AntdAnchor import AntdAnchor
|
|
@@ -62,6 +64,8 @@ from .AntdUpload import AntdUpload
|
|
|
62
64
|
from .AntdWatermark import AntdWatermark
|
|
63
65
|
from .AntdCard import AntdCard
|
|
64
66
|
from .AntdCardGrid import AntdCardGrid
|
|
67
|
+
from .AntdCheckCard import AntdCheckCard
|
|
68
|
+
from .AntdCheckCardGroup import AntdCheckCardGroup
|
|
65
69
|
from .AntdDescriptionItem import AntdDescriptionItem
|
|
66
70
|
from .AntdDescriptions import AntdDescriptions
|
|
67
71
|
from .AntdForm import AntdForm
|
|
@@ -80,6 +84,8 @@ from .AntdText import AntdText
|
|
|
80
84
|
from .AntdTitle import AntdTitle
|
|
81
85
|
|
|
82
86
|
__all__ = [
|
|
87
|
+
"AntdAccordion",
|
|
88
|
+
"AntdAccordionItem",
|
|
83
89
|
"AntdAffix",
|
|
84
90
|
"AntdAlert",
|
|
85
91
|
"AntdAnchor",
|
|
@@ -144,6 +150,8 @@ __all__ = [
|
|
|
144
150
|
"AntdWatermark",
|
|
145
151
|
"AntdCard",
|
|
146
152
|
"AntdCardGrid",
|
|
153
|
+
"AntdCheckCard",
|
|
154
|
+
"AntdCheckCardGroup",
|
|
147
155
|
"AntdDescriptionItem",
|
|
148
156
|
"AntdDescriptions",
|
|
149
157
|
"AntdForm",
|