feffery_antd_components 0.2.10 → 0.2.11-rc1
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/build/lib/feffery_antd_components/AntdAvatar.py +7 -3
- package/build/lib/feffery_antd_components/AntdCard.py +10 -5
- package/build/lib/feffery_antd_components/AntdCardMeta.py +53 -0
- package/build/lib/feffery_antd_components/AntdTabs.py +6 -3
- package/build/lib/feffery_antd_components/_imports_.py +2 -0
- package/build/lib/feffery_antd_components/async-antd_table.js +1 -1
- package/build/lib/feffery_antd_components/async-data_display.js +1 -1
- package/build/lib/feffery_antd_components/async-data_entry.js +1 -1
- package/build/lib/feffery_antd_components/async-upload.js +1 -1
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/build/lib/feffery_antd_components/metadata.json +168 -0
- package/build/lib/feffery_antd_components/package-info.json +2 -2
- package/feffery_antd_components/AntdAvatar.py +7 -3
- package/feffery_antd_components/AntdCard.py +10 -5
- package/feffery_antd_components/AntdCardMeta.py +53 -0
- package/feffery_antd_components/AntdTabs.py +6 -3
- package/feffery_antd_components/_imports_.py +2 -0
- package/feffery_antd_components/async-antd_table.js +1 -1
- package/feffery_antd_components/async-data_display.js +1 -1
- package/feffery_antd_components/async-data_entry.js +1 -1
- package/feffery_antd_components/async-upload.js +1 -1
- package/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/feffery_antd_components/metadata.json +168 -0
- package/feffery_antd_components/package-info.json +2 -2
- package/package.json +2 -2
- package/src/jl/'feffery'_antdavatar.jl +3 -1
- package/src/jl/'feffery'_antdcard.jl +3 -1
- package/src/jl/'feffery'_antdcardmeta.jl +29 -0
- package/src/jl/'feffery'_antdtabs.jl +2 -1
- package/src/lib/components/dataDisplay/AntdAvatar.react.js +12 -0
- package/src/lib/components/dataDisplay/card/AntdCard.react.js +8 -0
- package/src/lib/components/dataDisplay/card/AntdCardMeta.react.js +68 -0
- package/src/lib/components/dataDisplay/tabs/AntdTabs.react.js +5 -0
- package/src/lib/components/icons.react.js +109 -1
- package/src/lib/fragments/dataDisplay/AntdAvatar.react.js +4 -0
- package/src/lib/fragments/dataDisplay/card/AntdCard.react.js +11 -6
- package/src/lib/fragments/dataDisplay/card/AntdCardMeta.react.js +45 -0
- package/src/lib/fragments/dataDisplay/tabs/AntdTabs.react.js +7 -0
- package/src/lib/index.js +2 -0
- package/usage.py +2 -8
- package/build/lib/feffery_antd_components/async-antd_upload.js +0 -1
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
|
@@ -15,6 +15,10 @@ Keyword arguments:
|
|
|
15
15
|
|
|
16
16
|
- className (string | dict; optional)
|
|
17
17
|
|
|
18
|
+
- crossOrigin (a value equal to: 'anonymous', 'use-credentials', ''; optional)
|
|
19
|
+
|
|
20
|
+
- draggable (boolean | a value equal to: 'true', 'false'; optional)
|
|
21
|
+
|
|
18
22
|
- gap (number; default 4)
|
|
19
23
|
|
|
20
24
|
- icon (string; optional)
|
|
@@ -69,10 +73,10 @@ Keyword arguments:
|
|
|
69
73
|
_namespace = 'feffery_antd_components'
|
|
70
74
|
_type = 'AntdAvatar'
|
|
71
75
|
@_explicitize_args
|
|
72
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, gap=Component.UNDEFINED, text=Component.UNDEFINED, icon=Component.UNDEFINED, iconRenderer=Component.UNDEFINED, alt=Component.UNDEFINED, src=Component.UNDEFINED, srcSet=Component.UNDEFINED, size=Component.UNDEFINED, shape=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
73
|
-
self._prop_names = ['id', 'alt', 'className', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
76
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, gap=Component.UNDEFINED, text=Component.UNDEFINED, icon=Component.UNDEFINED, iconRenderer=Component.UNDEFINED, alt=Component.UNDEFINED, src=Component.UNDEFINED, srcSet=Component.UNDEFINED, draggable=Component.UNDEFINED, crossOrigin=Component.UNDEFINED, size=Component.UNDEFINED, shape=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
77
|
+
self._prop_names = ['id', 'alt', 'className', 'crossOrigin', 'draggable', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
74
78
|
self._valid_wildcard_attributes = []
|
|
75
|
-
self.available_properties = ['id', 'alt', 'className', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
79
|
+
self.available_properties = ['id', 'alt', 'className', 'crossOrigin', 'draggable', 'gap', 'icon', 'iconRenderer', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
|
|
76
80
|
self.available_wildcard_properties = []
|
|
77
81
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
78
82
|
_locals = locals()
|
|
@@ -15,6 +15,8 @@ Keyword arguments:
|
|
|
15
15
|
|
|
16
16
|
- id (string; optional)
|
|
17
17
|
|
|
18
|
+
- actions (list of a list of or a singular dash component, string or numbers; optional)
|
|
19
|
+
|
|
18
20
|
- bodyStyle (dict; optional)
|
|
19
21
|
|
|
20
22
|
- bordered (boolean; default True)
|
|
@@ -33,6 +35,9 @@ Keyword arguments:
|
|
|
33
35
|
|
|
34
36
|
- style (dict; optional)
|
|
35
37
|
|
|
38
|
+
- extra (a list of or a singular dash component, string or number; optional):
|
|
39
|
+
设置卡片右上角额外元素,优先级高于extraLink.
|
|
40
|
+
|
|
36
41
|
- extraLink (dict; optional)
|
|
37
42
|
|
|
38
43
|
`extraLink` is a dict with keys:
|
|
@@ -71,15 +76,15 @@ Keyword arguments:
|
|
|
71
76
|
- style (dict; optional)
|
|
72
77
|
|
|
73
78
|
- title (a list of or a singular dash component, string or number; optional)"""
|
|
74
|
-
_children_props = ['title']
|
|
75
|
-
_base_nodes = ['title', 'children']
|
|
79
|
+
_children_props = ['actions', 'title', 'extra']
|
|
80
|
+
_base_nodes = ['actions', 'title', 'extra', 'children']
|
|
76
81
|
_namespace = 'feffery_antd_components'
|
|
77
82
|
_type = 'AntdCard'
|
|
78
83
|
@_explicitize_args
|
|
79
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, title=Component.UNDEFINED, extraLink=Component.UNDEFINED, coverImg=Component.UNDEFINED, bodyStyle=Component.UNDEFINED, headStyle=Component.UNDEFINED, bordered=Component.UNDEFINED, hoverable=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
80
|
-
self._prop_names = ['children', 'id', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
84
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, actions=Component.UNDEFINED, title=Component.UNDEFINED, extraLink=Component.UNDEFINED, extra=Component.UNDEFINED, coverImg=Component.UNDEFINED, bodyStyle=Component.UNDEFINED, headStyle=Component.UNDEFINED, bordered=Component.UNDEFINED, hoverable=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
85
|
+
self._prop_names = ['children', 'id', 'actions', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extra', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
81
86
|
self._valid_wildcard_attributes = []
|
|
82
|
-
self.available_properties = ['children', 'id', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
87
|
+
self.available_properties = ['children', 'id', 'actions', 'bodyStyle', 'bordered', 'className', 'coverImg', 'extra', 'extraLink', 'headStyle', 'hoverable', 'key', 'loading_state', 'size', 'style', 'title']
|
|
83
88
|
self.available_wildcard_properties = []
|
|
84
89
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
85
90
|
_locals = locals()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdCardMeta(Component):
|
|
7
|
+
"""An AntdCardMeta component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- avatar (a list of or a singular dash component, string or number; optional)
|
|
15
|
+
|
|
16
|
+
- className (string | dict; optional)
|
|
17
|
+
|
|
18
|
+
- description (a list of or a singular dash component, string or number; optional)
|
|
19
|
+
|
|
20
|
+
- key (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
|
+
- style (dict; optional)
|
|
36
|
+
|
|
37
|
+
- title (a list of or a singular dash component, string or number; optional)"""
|
|
38
|
+
_children_props = ['avatar', 'description', 'title']
|
|
39
|
+
_base_nodes = ['avatar', 'description', 'title', 'children']
|
|
40
|
+
_namespace = 'feffery_antd_components'
|
|
41
|
+
_type = 'AntdCardMeta'
|
|
42
|
+
@_explicitize_args
|
|
43
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, avatar=Component.UNDEFINED, description=Component.UNDEFINED, title=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
44
|
+
self._prop_names = ['id', 'avatar', 'className', 'description', 'key', 'loading_state', 'style', 'title']
|
|
45
|
+
self._valid_wildcard_attributes = []
|
|
46
|
+
self.available_properties = ['id', 'avatar', 'className', 'description', 'key', 'loading_state', 'style', 'title']
|
|
47
|
+
self.available_wildcard_properties = []
|
|
48
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
49
|
+
_locals = locals()
|
|
50
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
51
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
52
|
+
|
|
53
|
+
super(AntdCardMeta, self).__init__(**args)
|
|
@@ -37,6 +37,9 @@ Keyword arguments:
|
|
|
37
37
|
|
|
38
38
|
- inkBarAnimated (boolean; default True)
|
|
39
39
|
|
|
40
|
+
- itemKeys (list of strings; optional):
|
|
41
|
+
用于按顺序同步记录items中各子项key值数组.
|
|
42
|
+
|
|
40
43
|
- items (list of dicts; optional)
|
|
41
44
|
|
|
42
45
|
`items` is a list of dicts with keys:
|
|
@@ -125,10 +128,10 @@ Keyword arguments:
|
|
|
125
128
|
_namespace = 'feffery_antd_components'
|
|
126
129
|
_type = 'AntdTabs'
|
|
127
130
|
@_explicitize_args
|
|
128
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, items=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, disabledTabKeys=Component.UNDEFINED, tabPosition=Component.UNDEFINED, size=Component.UNDEFINED, type=Component.UNDEFINED, centered=Component.UNDEFINED, tabBarGutter=Component.UNDEFINED, inkBarAnimated=Component.UNDEFINED, tabPaneAnimated=Component.UNDEFINED, latestDeletePane=Component.UNDEFINED, tabCloseCounts=Component.UNDEFINED, tabBarLeftExtraContent=Component.UNDEFINED, tabBarRightExtraContent=Component.UNDEFINED, tabCount=Component.UNDEFINED, destroyInactiveTabPane=Component.UNDEFINED, clickedContextMenu=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
129
|
-
self._prop_names = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
131
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, items=Component.UNDEFINED, itemKeys=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, disabledTabKeys=Component.UNDEFINED, tabPosition=Component.UNDEFINED, size=Component.UNDEFINED, type=Component.UNDEFINED, centered=Component.UNDEFINED, tabBarGutter=Component.UNDEFINED, inkBarAnimated=Component.UNDEFINED, tabPaneAnimated=Component.UNDEFINED, latestDeletePane=Component.UNDEFINED, tabCloseCounts=Component.UNDEFINED, tabBarLeftExtraContent=Component.UNDEFINED, tabBarRightExtraContent=Component.UNDEFINED, tabCount=Component.UNDEFINED, destroyInactiveTabPane=Component.UNDEFINED, clickedContextMenu=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
132
|
+
self._prop_names = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'itemKeys', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
130
133
|
self._valid_wildcard_attributes = []
|
|
131
|
-
self.available_properties = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
134
|
+
self.available_properties = ['children', 'id', 'activeKey', 'centered', 'className', 'clickedContextMenu', 'defaultActiveKey', 'destroyInactiveTabPane', 'disabledTabKeys', 'inkBarAnimated', 'itemKeys', 'items', 'key', 'latestDeletePane', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'tabBarGutter', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCloseCounts', 'tabCount', 'tabPaneAnimated', 'tabPosition', 'type']
|
|
132
135
|
self.available_wildcard_properties = []
|
|
133
136
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
134
137
|
_locals = locals()
|
|
@@ -20,6 +20,7 @@ from .AntdTooltip import AntdTooltip
|
|
|
20
20
|
from .AntdTree import AntdTree
|
|
21
21
|
from .AntdCard import AntdCard
|
|
22
22
|
from .AntdCardGrid import AntdCardGrid
|
|
23
|
+
from .AntdCardMeta import AntdCardMeta
|
|
23
24
|
from .AntdDescriptionItem import AntdDescriptionItem
|
|
24
25
|
from .AntdDescriptions import AntdDescriptions
|
|
25
26
|
from .AntdTabPane import AntdTabPane
|
|
@@ -118,6 +119,7 @@ __all__ = [
|
|
|
118
119
|
"AntdTree",
|
|
119
120
|
"AntdCard",
|
|
120
121
|
"AntdCardGrid",
|
|
122
|
+
"AntdCardMeta",
|
|
121
123
|
"AntdDescriptionItem",
|
|
122
124
|
"AntdDescriptions",
|
|
123
125
|
"AntdTabPane",
|