feffery_antd_components 0.3.0-b0 → 0.3.0-b2
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/AntdDraggablePanel.py +121 -0
- package/build/lib/feffery_antd_components/AntdDropdown.py +15 -6
- package/build/lib/feffery_antd_components/_imports_.py +2 -0
- package/build/lib/feffery_antd_components/alias.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 +12 -12
- package/build/lib/feffery_antd_components/async-data_entry.js +8 -8
- package/build/lib/feffery_antd_components/async-upload.js +2 -2
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +22 -22
- package/build/lib/feffery_antd_components/metadata.json +309 -0
- package/build/lib/feffery_antd_components/package-info.json +3 -2
- package/feffery_antd_components/AntdDraggablePanel.py +121 -0
- package/feffery_antd_components/AntdDropdown.py +15 -6
- package/feffery_antd_components/_imports_.py +2 -0
- package/feffery_antd_components/alias.py +2 -0
- package/feffery_antd_components/async-antd_table.js +1 -1
- package/feffery_antd_components/async-data_display.js +12 -12
- package/feffery_antd_components/async-data_entry.js +8 -8
- package/feffery_antd_components/async-upload.js +2 -2
- package/feffery_antd_components/feffery_antd_components.min.js +22 -22
- package/feffery_antd_components/metadata.json +309 -0
- package/feffery_antd_components/package-info.json +3 -2
- package/package.json +3 -2
- package/src/jl/'feffery'_antddraggablepanel.jl +62 -0
- package/src/jl/'feffery'_antddropdown.jl +10 -1
- package/src/lib/components/dataDisplay/AntdDraggablePanel.react.js +174 -0
- package/src/lib/components/feedback/AntdNotification.react.js +7 -6
- package/src/lib/components/navigation/AntdDropdown.react.js +47 -10
- package/src/lib/components/other/AntdConfigProvider.js +3 -1
- package/src/lib/fragments/AntdTable.react.js +67 -65
- package/src/lib/fragments/dataDisplay/AntdDraggablePanel.react.js +62 -0
- package/src/lib/index.js +3 -1
- package/usage.py +50 -26
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AntdDraggablePanel(Component):
|
|
7
|
+
"""An AntdDraggablePanel component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- children (a list of or a singular dash component, string or number; optional):
|
|
13
|
+
内部组件元素.
|
|
14
|
+
|
|
15
|
+
- id (string; optional):
|
|
16
|
+
组件id.
|
|
17
|
+
|
|
18
|
+
- className (string | dict; optional):
|
|
19
|
+
css类名.
|
|
20
|
+
|
|
21
|
+
- defaultPosition (dict; optional):
|
|
22
|
+
设置当前面板默认位置.
|
|
23
|
+
|
|
24
|
+
`defaultPosition` is a dict with keys:
|
|
25
|
+
|
|
26
|
+
- x (number; optional):
|
|
27
|
+
设置距离文档左端像素距离.
|
|
28
|
+
|
|
29
|
+
- y (number; optional):
|
|
30
|
+
设置距离文档顶端像素距离.
|
|
31
|
+
|
|
32
|
+
- defaultSize (dict; optional):
|
|
33
|
+
设置当前面板默认尺寸.
|
|
34
|
+
|
|
35
|
+
`defaultSize` is a dict with keys:
|
|
36
|
+
|
|
37
|
+
- height (number | string; optional):
|
|
38
|
+
设置像素高度数值,或css高度字符串.
|
|
39
|
+
|
|
40
|
+
- width (number | string; optional):
|
|
41
|
+
设置像素宽度数值,或css宽度字符串.
|
|
42
|
+
|
|
43
|
+
- expandable (boolean; default True):
|
|
44
|
+
面板是否可展开 默认:True.
|
|
45
|
+
|
|
46
|
+
- isExpand (boolean; optional):
|
|
47
|
+
设置或监听当前面板是否为展开状态.
|
|
48
|
+
|
|
49
|
+
- key (string; optional):
|
|
50
|
+
强制刷新用.
|
|
51
|
+
|
|
52
|
+
- loading_state (dict; optional)
|
|
53
|
+
|
|
54
|
+
`loading_state` is a dict with keys:
|
|
55
|
+
|
|
56
|
+
- component_name (string; optional):
|
|
57
|
+
Holds the name of the component that is loading.
|
|
58
|
+
|
|
59
|
+
- is_loading (boolean; optional):
|
|
60
|
+
Determines if the component is loading or not.
|
|
61
|
+
|
|
62
|
+
- prop_name (string; optional):
|
|
63
|
+
Holds which property is loading.
|
|
64
|
+
|
|
65
|
+
- maxHeight (number; optional):
|
|
66
|
+
面板最大像素高度.
|
|
67
|
+
|
|
68
|
+
- maxWidth (number; optional):
|
|
69
|
+
面板最大像素宽度.
|
|
70
|
+
|
|
71
|
+
- minHeight (number; optional):
|
|
72
|
+
面板最小像素高度.
|
|
73
|
+
|
|
74
|
+
- minWidth (number; optional):
|
|
75
|
+
面板最小像素宽度.
|
|
76
|
+
|
|
77
|
+
- mode (a value equal to: 'fixed', 'float'; default 'fixed'):
|
|
78
|
+
设置面板模式,可选的有'fixed'(固定模式)、'float'(浮动窗口模式) 默认:'fixed'.
|
|
79
|
+
|
|
80
|
+
- placement (a value equal to: 'right', 'left', 'top', 'bottom'; default 'right'):
|
|
81
|
+
固定模式下,用于设置面板朝向,可选的有'right'、'left'、'top'、'bottom' 默认:'right'.
|
|
82
|
+
|
|
83
|
+
- resize (dict; optional):
|
|
84
|
+
配置尺寸可调整性,可独立控制各个方向,也可直接控制所有方向是否可调整尺寸.
|
|
85
|
+
|
|
86
|
+
`resize` is a boolean | dict with keys:
|
|
87
|
+
|
|
88
|
+
- bottom (boolean; optional)
|
|
89
|
+
|
|
90
|
+
- bottomLeft (boolean; optional)
|
|
91
|
+
|
|
92
|
+
- bottomRight (boolean; optional)
|
|
93
|
+
|
|
94
|
+
- left (boolean; optional)
|
|
95
|
+
|
|
96
|
+
- right (boolean; optional)
|
|
97
|
+
|
|
98
|
+
- top (boolean; optional)
|
|
99
|
+
|
|
100
|
+
- topLeft (boolean; optional)
|
|
101
|
+
|
|
102
|
+
- topRight (boolean; optional)
|
|
103
|
+
|
|
104
|
+
- style (dict; optional):
|
|
105
|
+
css样式."""
|
|
106
|
+
_children_props = []
|
|
107
|
+
_base_nodes = ['children']
|
|
108
|
+
_namespace = 'feffery_antd_components'
|
|
109
|
+
_type = 'AntdDraggablePanel'
|
|
110
|
+
@_explicitize_args
|
|
111
|
+
def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, defaultSize=Component.UNDEFINED, defaultPosition=Component.UNDEFINED, placement=Component.UNDEFINED, minWidth=Component.UNDEFINED, minHeight=Component.UNDEFINED, maxWidth=Component.UNDEFINED, maxHeight=Component.UNDEFINED, resize=Component.UNDEFINED, expandable=Component.UNDEFINED, isExpand=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
112
|
+
self._prop_names = ['children', 'id', 'className', 'defaultPosition', 'defaultSize', 'expandable', 'isExpand', 'key', 'loading_state', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'mode', 'placement', 'resize', 'style']
|
|
113
|
+
self._valid_wildcard_attributes = []
|
|
114
|
+
self.available_properties = ['children', 'id', 'className', 'defaultPosition', 'defaultSize', 'expandable', 'isExpand', 'key', 'loading_state', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'mode', 'placement', 'resize', 'style']
|
|
115
|
+
self.available_wildcard_properties = []
|
|
116
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
117
|
+
_locals = locals()
|
|
118
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
119
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
120
|
+
|
|
121
|
+
super(AntdDraggablePanel, self).__init__(children=children, **args)
|
|
@@ -9,6 +9,9 @@ class AntdDropdown(Component):
|
|
|
9
9
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
|
|
12
|
+
- children (a list of or a singular dash component, string or number; optional):
|
|
13
|
+
自定义下拉菜单锚定的自定义元素,优先级最高.
|
|
14
|
+
|
|
12
15
|
- id (string; optional)
|
|
13
16
|
|
|
14
17
|
- arrow (boolean; default False)
|
|
@@ -110,20 +113,26 @@ Keyword arguments:
|
|
|
110
113
|
|
|
111
114
|
- trigger (a value equal to: 'click', 'hover'; default 'hover')
|
|
112
115
|
|
|
113
|
-
- visible (boolean; default False)
|
|
116
|
+
- visible (boolean; default False)
|
|
117
|
+
|
|
118
|
+
- wrapperClassName (string | dict; optional):
|
|
119
|
+
针对自定义锚定元素的父容器设置css类名.
|
|
120
|
+
|
|
121
|
+
- wrapperStyle (dict; optional):
|
|
122
|
+
针对自定义锚定元素的父容器设置css样式."""
|
|
114
123
|
_children_props = ['menuItems[].title']
|
|
115
124
|
_base_nodes = ['children']
|
|
116
125
|
_namespace = 'feffery_antd_components'
|
|
117
126
|
_type = 'AntdDropdown'
|
|
118
127
|
@_explicitize_args
|
|
119
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, title=Component.UNDEFINED, buttonMode=Component.UNDEFINED, buttonProps=Component.UNDEFINED, freePosition=Component.UNDEFINED, freePositionStyle=Component.UNDEFINED, freePositionClassName=Component.UNDEFINED, clickedKey=Component.UNDEFINED, nClicks=Component.UNDEFINED, menuItems=Component.UNDEFINED, selectable=Component.UNDEFINED, multiple=Component.UNDEFINED, selectedKeys=Component.UNDEFINED, nonSelectableKeys=Component.UNDEFINED, arrow=Component.UNDEFINED, disabled=Component.UNDEFINED, overlayClassName=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, placement=Component.UNDEFINED, trigger=Component.UNDEFINED, autoAdjustOverflow=Component.UNDEFINED, visible=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
120
|
-
self._prop_names = ['id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'multiple', 'nClicks', 'nonSelectableKeys', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'selectable', 'selectedKeys', 'style', 'title', 'trigger', 'visible']
|
|
128
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, wrapperStyle=Component.UNDEFINED, wrapperClassName=Component.UNDEFINED, key=Component.UNDEFINED, title=Component.UNDEFINED, buttonMode=Component.UNDEFINED, buttonProps=Component.UNDEFINED, freePosition=Component.UNDEFINED, freePositionStyle=Component.UNDEFINED, freePositionClassName=Component.UNDEFINED, clickedKey=Component.UNDEFINED, nClicks=Component.UNDEFINED, menuItems=Component.UNDEFINED, selectable=Component.UNDEFINED, multiple=Component.UNDEFINED, selectedKeys=Component.UNDEFINED, nonSelectableKeys=Component.UNDEFINED, arrow=Component.UNDEFINED, disabled=Component.UNDEFINED, overlayClassName=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, placement=Component.UNDEFINED, trigger=Component.UNDEFINED, autoAdjustOverflow=Component.UNDEFINED, visible=Component.UNDEFINED, popupContainer=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
129
|
+
self._prop_names = ['children', 'id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'multiple', 'nClicks', 'nonSelectableKeys', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'selectable', 'selectedKeys', 'style', 'title', 'trigger', 'visible', 'wrapperClassName', 'wrapperStyle']
|
|
121
130
|
self._valid_wildcard_attributes = []
|
|
122
|
-
self.available_properties = ['id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'multiple', 'nClicks', 'nonSelectableKeys', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'selectable', 'selectedKeys', 'style', 'title', 'trigger', 'visible']
|
|
131
|
+
self.available_properties = ['children', 'id', 'arrow', 'autoAdjustOverflow', 'batchPropsNames', 'batchPropsValues', 'buttonMode', 'buttonProps', 'className', 'clickedKey', 'disabled', 'freePosition', 'freePositionClassName', 'freePositionStyle', 'key', 'loading_state', 'menuItems', 'multiple', 'nClicks', 'nonSelectableKeys', 'overlayClassName', 'overlayStyle', 'placement', 'popupContainer', 'selectable', 'selectedKeys', 'style', 'title', 'trigger', 'visible', 'wrapperClassName', 'wrapperStyle']
|
|
123
132
|
self.available_wildcard_properties = []
|
|
124
133
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
125
134
|
_locals = locals()
|
|
126
135
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
127
|
-
args = {k: _locals[k] for k in _explicit_args}
|
|
136
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
128
137
|
|
|
129
|
-
super(AntdDropdown, self).__init__(**args)
|
|
138
|
+
super(AntdDropdown, self).__init__(children=children, **args)
|
|
@@ -6,6 +6,7 @@ from .AntdCarousel import AntdCarousel
|
|
|
6
6
|
from .AntdCollapse import AntdCollapse
|
|
7
7
|
from .AntdComment import AntdComment
|
|
8
8
|
from .AntdCountdown import AntdCountdown
|
|
9
|
+
from .AntdDraggablePanel import AntdDraggablePanel
|
|
9
10
|
from .AntdEmpty import AntdEmpty
|
|
10
11
|
from .AntdImage import AntdImage
|
|
11
12
|
from .AntdImageGroup import AntdImageGroup
|
|
@@ -111,6 +112,7 @@ __all__ = [
|
|
|
111
112
|
"AntdCollapse",
|
|
112
113
|
"AntdComment",
|
|
113
114
|
"AntdCountdown",
|
|
115
|
+
"AntdDraggablePanel",
|
|
114
116
|
"AntdEmpty",
|
|
115
117
|
"AntdImage",
|
|
116
118
|
"AntdImageGroup",
|
|
@@ -6,6 +6,7 @@ from .AntdCarousel import AntdCarousel as Carousel
|
|
|
6
6
|
from .AntdCollapse import AntdCollapse as Collapse
|
|
7
7
|
from .AntdComment import AntdComment as Comment
|
|
8
8
|
from .AntdCountdown import AntdCountdown as Countdown
|
|
9
|
+
from .AntdDraggablePanel import AntdDraggablePanel as DraggablePanel
|
|
9
10
|
from .AntdEmpty import AntdEmpty as Empty
|
|
10
11
|
from .AntdImage import AntdImage as Image
|
|
11
12
|
from .AntdImageGroup import AntdImageGroup as ImageGroup
|
|
@@ -111,6 +112,7 @@ __all__ = [
|
|
|
111
112
|
"Collapse",
|
|
112
113
|
"Comment",
|
|
113
114
|
"Countdown",
|
|
115
|
+
"DraggablePanel",
|
|
114
116
|
"Empty",
|
|
115
117
|
"Image",
|
|
116
118
|
"ImageGroup",
|