feffery_antd_components 0.3.0-b1 → 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.
Files changed (30) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +1 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_antd_components/AntdDraggablePanel.py +121 -0
  5. package/build/lib/feffery_antd_components/_imports_.py +2 -0
  6. package/build/lib/feffery_antd_components/alias.py +2 -0
  7. package/build/lib/feffery_antd_components/async-antd_table.js +1 -1
  8. package/build/lib/feffery_antd_components/async-data_display.js +12 -12
  9. package/build/lib/feffery_antd_components/async-data_entry.js +8 -8
  10. package/build/lib/feffery_antd_components/async-upload.js +2 -2
  11. package/build/lib/feffery_antd_components/feffery_antd_components.min.js +22 -22
  12. package/build/lib/feffery_antd_components/metadata.json +280 -0
  13. package/build/lib/feffery_antd_components/package-info.json +3 -2
  14. package/feffery_antd_components/AntdDraggablePanel.py +121 -0
  15. package/feffery_antd_components/_imports_.py +2 -0
  16. package/feffery_antd_components/alias.py +2 -0
  17. package/feffery_antd_components/async-antd_table.js +1 -1
  18. package/feffery_antd_components/async-data_display.js +12 -12
  19. package/feffery_antd_components/async-data_entry.js +8 -8
  20. package/feffery_antd_components/async-upload.js +2 -2
  21. package/feffery_antd_components/feffery_antd_components.min.js +22 -22
  22. package/feffery_antd_components/metadata.json +280 -0
  23. package/feffery_antd_components/package-info.json +3 -2
  24. package/package.json +3 -2
  25. package/src/jl/'feffery'_antddraggablepanel.jl +62 -0
  26. package/src/lib/components/dataDisplay/AntdDraggablePanel.react.js +174 -0
  27. package/src/lib/fragments/AntdTable.react.js +67 -65
  28. package/src/lib/fragments/dataDisplay/AntdDraggablePanel.react.js +62 -0
  29. package/src/lib/index.js +3 -1
  30. package/usage.py +48 -14
@@ -1920,6 +1920,286 @@
1920
1920
  }
1921
1921
  }
1922
1922
  },
1923
+ "src/lib/components/dataDisplay/AntdDraggablePanel.react.js": {
1924
+ "description": "",
1925
+ "displayName": "AntdDraggablePanel",
1926
+ "methods": [],
1927
+ "props": {
1928
+ "id": {
1929
+ "type": {
1930
+ "name": "string"
1931
+ },
1932
+ "required": false,
1933
+ "description": "\u7ec4\u4ef6id"
1934
+ },
1935
+ "children": {
1936
+ "type": {
1937
+ "name": "node"
1938
+ },
1939
+ "required": false,
1940
+ "description": "\u5185\u90e8\u7ec4\u4ef6\u5143\u7d20"
1941
+ },
1942
+ "style": {
1943
+ "type": {
1944
+ "name": "object"
1945
+ },
1946
+ "required": false,
1947
+ "description": "css\u6837\u5f0f"
1948
+ },
1949
+ "className": {
1950
+ "type": {
1951
+ "name": "union",
1952
+ "value": [
1953
+ {
1954
+ "name": "string"
1955
+ },
1956
+ {
1957
+ "name": "object"
1958
+ }
1959
+ ]
1960
+ },
1961
+ "required": false,
1962
+ "description": "css\u7c7b\u540d"
1963
+ },
1964
+ "key": {
1965
+ "type": {
1966
+ "name": "string"
1967
+ },
1968
+ "required": false,
1969
+ "description": "\u5f3a\u5236\u5237\u65b0\u7528"
1970
+ },
1971
+ "mode": {
1972
+ "type": {
1973
+ "name": "enum",
1974
+ "value": [
1975
+ {
1976
+ "value": "'fixed'",
1977
+ "computed": false
1978
+ },
1979
+ {
1980
+ "value": "'float'",
1981
+ "computed": false
1982
+ }
1983
+ ]
1984
+ },
1985
+ "required": false,
1986
+ "description": "\u8bbe\u7f6e\u9762\u677f\u6a21\u5f0f\uff0c\u53ef\u9009\u7684\u6709'fixed'\uff08\u56fa\u5b9a\u6a21\u5f0f\uff09\u3001'float'\uff08\u6d6e\u52a8\u7a97\u53e3\u6a21\u5f0f\uff09\r\n\u9ed8\u8ba4\uff1a'fixed'",
1987
+ "defaultValue": {
1988
+ "value": "'fixed'",
1989
+ "computed": false
1990
+ }
1991
+ },
1992
+ "defaultSize": {
1993
+ "type": {
1994
+ "name": "exact",
1995
+ "value": {
1996
+ "width": {
1997
+ "name": "union",
1998
+ "value": [
1999
+ {
2000
+ "name": "number"
2001
+ },
2002
+ {
2003
+ "name": "string"
2004
+ }
2005
+ ],
2006
+ "description": "\u8bbe\u7f6e\u50cf\u7d20\u5bbd\u5ea6\u6570\u503c\uff0c\u6216css\u5bbd\u5ea6\u5b57\u7b26\u4e32",
2007
+ "required": false
2008
+ },
2009
+ "height": {
2010
+ "name": "union",
2011
+ "value": [
2012
+ {
2013
+ "name": "number"
2014
+ },
2015
+ {
2016
+ "name": "string"
2017
+ }
2018
+ ],
2019
+ "description": "\u8bbe\u7f6e\u50cf\u7d20\u9ad8\u5ea6\u6570\u503c\uff0c\u6216css\u9ad8\u5ea6\u5b57\u7b26\u4e32",
2020
+ "required": false
2021
+ }
2022
+ }
2023
+ },
2024
+ "required": false,
2025
+ "description": "\u8bbe\u7f6e\u5f53\u524d\u9762\u677f\u9ed8\u8ba4\u5c3a\u5bf8"
2026
+ },
2027
+ "defaultPosition": {
2028
+ "type": {
2029
+ "name": "exact",
2030
+ "value": {
2031
+ "x": {
2032
+ "name": "number",
2033
+ "description": "\u8bbe\u7f6e\u8ddd\u79bb\u6587\u6863\u5de6\u7aef\u50cf\u7d20\u8ddd\u79bb",
2034
+ "required": false
2035
+ },
2036
+ "y": {
2037
+ "name": "number",
2038
+ "description": "\u8bbe\u7f6e\u8ddd\u79bb\u6587\u6863\u9876\u7aef\u50cf\u7d20\u8ddd\u79bb",
2039
+ "required": false
2040
+ }
2041
+ }
2042
+ },
2043
+ "required": false,
2044
+ "description": "\u8bbe\u7f6e\u5f53\u524d\u9762\u677f\u9ed8\u8ba4\u4f4d\u7f6e"
2045
+ },
2046
+ "placement": {
2047
+ "type": {
2048
+ "name": "enum",
2049
+ "value": [
2050
+ {
2051
+ "value": "'right'",
2052
+ "computed": false
2053
+ },
2054
+ {
2055
+ "value": "'left'",
2056
+ "computed": false
2057
+ },
2058
+ {
2059
+ "value": "'top'",
2060
+ "computed": false
2061
+ },
2062
+ {
2063
+ "value": "'bottom'",
2064
+ "computed": false
2065
+ }
2066
+ ]
2067
+ },
2068
+ "required": false,
2069
+ "description": "\u56fa\u5b9a\u6a21\u5f0f\u4e0b\uff0c\u7528\u4e8e\u8bbe\u7f6e\u9762\u677f\u671d\u5411\uff0c\u53ef\u9009\u7684\u6709'right'\u3001'left'\u3001'top'\u3001'bottom'\r\n\u9ed8\u8ba4\uff1a'right'",
2070
+ "defaultValue": {
2071
+ "value": "'right'",
2072
+ "computed": false
2073
+ }
2074
+ },
2075
+ "minWidth": {
2076
+ "type": {
2077
+ "name": "number"
2078
+ },
2079
+ "required": false,
2080
+ "description": "\u9762\u677f\u6700\u5c0f\u50cf\u7d20\u5bbd\u5ea6"
2081
+ },
2082
+ "minHeight": {
2083
+ "type": {
2084
+ "name": "number"
2085
+ },
2086
+ "required": false,
2087
+ "description": "\u9762\u677f\u6700\u5c0f\u50cf\u7d20\u9ad8\u5ea6"
2088
+ },
2089
+ "maxWidth": {
2090
+ "type": {
2091
+ "name": "number"
2092
+ },
2093
+ "required": false,
2094
+ "description": "\u9762\u677f\u6700\u5927\u50cf\u7d20\u5bbd\u5ea6"
2095
+ },
2096
+ "maxHeight": {
2097
+ "type": {
2098
+ "name": "number"
2099
+ },
2100
+ "required": false,
2101
+ "description": "\u9762\u677f\u6700\u5927\u50cf\u7d20\u9ad8\u5ea6"
2102
+ },
2103
+ "resize": {
2104
+ "type": {
2105
+ "name": "union",
2106
+ "value": [
2107
+ {
2108
+ "name": "bool"
2109
+ },
2110
+ {
2111
+ "name": "exact",
2112
+ "value": {
2113
+ "bottom": {
2114
+ "name": "bool",
2115
+ "required": false
2116
+ },
2117
+ "bottomLeft": {
2118
+ "name": "bool",
2119
+ "required": false
2120
+ },
2121
+ "bottomRight": {
2122
+ "name": "bool",
2123
+ "required": false
2124
+ },
2125
+ "left": {
2126
+ "name": "bool",
2127
+ "required": false
2128
+ },
2129
+ "right": {
2130
+ "name": "bool",
2131
+ "required": false
2132
+ },
2133
+ "top": {
2134
+ "name": "bool",
2135
+ "required": false
2136
+ },
2137
+ "topLeft": {
2138
+ "name": "bool",
2139
+ "required": false
2140
+ },
2141
+ "topRight": {
2142
+ "name": "bool",
2143
+ "required": false
2144
+ }
2145
+ }
2146
+ }
2147
+ ]
2148
+ },
2149
+ "required": false,
2150
+ "description": "\u914d\u7f6e\u5c3a\u5bf8\u53ef\u8c03\u6574\u6027\uff0c\u53ef\u72ec\u7acb\u63a7\u5236\u5404\u4e2a\u65b9\u5411\uff0c\u4e5f\u53ef\u76f4\u63a5\u63a7\u5236\u6240\u6709\u65b9\u5411\u662f\u5426\u53ef\u8c03\u6574\u5c3a\u5bf8"
2151
+ },
2152
+ "expandable": {
2153
+ "type": {
2154
+ "name": "bool"
2155
+ },
2156
+ "required": false,
2157
+ "description": "\u9762\u677f\u662f\u5426\u53ef\u5c55\u5f00\r\n\u9ed8\u8ba4\uff1atrue",
2158
+ "defaultValue": {
2159
+ "value": "true",
2160
+ "computed": false
2161
+ }
2162
+ },
2163
+ "isExpand": {
2164
+ "type": {
2165
+ "name": "bool"
2166
+ },
2167
+ "required": false,
2168
+ "description": "\u8bbe\u7f6e\u6216\u76d1\u542c\u5f53\u524d\u9762\u677f\u662f\u5426\u4e3a\u5c55\u5f00\u72b6\u6001"
2169
+ },
2170
+ "loading_state": {
2171
+ "type": {
2172
+ "name": "shape",
2173
+ "value": {
2174
+ "is_loading": {
2175
+ "name": "bool",
2176
+ "description": "Determines if the component is loading or not",
2177
+ "required": false
2178
+ },
2179
+ "prop_name": {
2180
+ "name": "string",
2181
+ "description": "Holds which property is loading",
2182
+ "required": false
2183
+ },
2184
+ "component_name": {
2185
+ "name": "string",
2186
+ "description": "Holds the name of the component that is loading",
2187
+ "required": false
2188
+ }
2189
+ }
2190
+ },
2191
+ "required": false,
2192
+ "description": ""
2193
+ },
2194
+ "setProps": {
2195
+ "type": {
2196
+ "name": "func"
2197
+ },
2198
+ "required": false,
2199
+ "description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
2200
+ }
2201
+ }
2202
+ },
1923
2203
  "src/lib/components/dataDisplay/AntdEmpty.react.js": {
1924
2204
  "description": "",
1925
2205
  "displayName": "AntdEmpty",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feffery_antd_components",
3
- "version": "0.3.0-b1",
3
+ "version": "0.3.0-b2",
4
4
  "description": "Best implementation of Antd components in Plotly Dash.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,6 +28,7 @@
28
28
  "@ant-design/happy-work-theme": "^1.0.0",
29
29
  "@ant-design/icons": "^5.0.0",
30
30
  "@ant-design/pro-card": "^1.20.1",
31
+ "@ant-design/pro-editor": "^0.31.0",
31
32
  "@ant-design/pro-layout": "^7.17.13",
32
33
  "@plotly/webpack-dash-dynamic-import": "^1.3.0",
33
34
  "ahooks": "^3.7.0",
@@ -90,4 +91,4 @@
90
91
  "node": ">=8.11.0",
91
92
  "npm": ">=6.1.0"
92
93
  }
93
- }
94
+ }
@@ -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)
@@ -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",