feffery_utils_components 0.1.28 → 0.2.0-a1
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 +39 -2
- package/build/lib/feffery_utils_components/FefferyResizable.py +111 -0
- package/build/lib/feffery_utils_components/_imports_.py +2 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +10 -10
- package/build/lib/feffery_utils_components/metadata.json +339 -0
- package/build/lib/feffery_utils_components/package-info.json +3 -2
- package/feffery_utils_components/FefferyResizable.py +111 -0
- package/feffery_utils_components/_imports_.py +2 -0
- package/feffery_utils_components/feffery_utils_components.min.js +10 -10
- package/feffery_utils_components/metadata.json +339 -0
- package/feffery_utils_components/package-info.json +3 -2
- package/fuc-logo.svg +127 -0
- package/package.json +3 -2
- package/src/FefferyUtilsComponents.jl +4 -3
- package/src/jl/''_fefferyresizable.jl +64 -0
- package/src/lib/components/FefferyFancyNotification.js +32 -25
- package/src/lib/components/draggable/FefferyGrid.react.js +0 -3
- package/src/lib/components/resizable/FefferyResizable.react.js +213 -0
- package/src/lib/components/styles.css +5 -0
- package/src/lib/index.js +3 -1
- package/usage.py +44 -27
- package/demo.py +0 -117
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
package/README.md
CHANGED
|
@@ -1,2 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="./fuc-logo.svg" height=200></img>
|
|
3
|
+
</p>
|
|
4
|
+
<h1 align="center">feffery-utils-components</h1>
|
|
5
|
+
<div align="center">
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
[](https://github.com/plotly/dash/blob/master/LICENSE)
|
|
9
|
+
[](https://pypi.org/project/feffery-utils-components/)
|
|
10
|
+
[](https://pepy.tech/project/feffery-utils-components)
|
|
11
|
+
[](https://pepy.tech/project/feffery-utils-components)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
`feffery-components`计划子项目,`Plotly Dash`第三方组件库,将超多实用辅助功能组件引入`Dash`的世界🥳,最新版本:`0.1.29`
|
|
16
|
+
|
|
17
|
+
## 1 最新版本安装方式
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install feffery-utils-components -U
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 2 最新预发布版本安装方式
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install feffery-utils-components --pre -U
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## 3 静态资源 CDN 加速方法
|
|
30
|
+
|
|
31
|
+
```Python
|
|
32
|
+
# 非debug模式下对Dash()传入参数serve_locally=False会强制浏览器端从unpkg cdn加载各个依赖的
|
|
33
|
+
# xxx.min.js等静态资源,从而避免占用服务器带宽,适合中小型站点加速访问
|
|
34
|
+
app = dash.Dash(serve_locally=False)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## 4 在线文档
|
|
38
|
+
|
|
39
|
+
<a href='http://fuc.feffery.tech/' target='_blank'>文档地址</a>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyResizable(Component):
|
|
7
|
+
"""A FefferyResizable 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
|
+
- bounds (a value equal to: 'window', 'parent'; default 'window')
|
|
17
|
+
|
|
18
|
+
- className (string; optional)
|
|
19
|
+
|
|
20
|
+
- defaultSize (dict; optional)
|
|
21
|
+
|
|
22
|
+
`defaultSize` is a dict with keys:
|
|
23
|
+
|
|
24
|
+
- height (number | string; optional)
|
|
25
|
+
|
|
26
|
+
- width (number | string; optional)
|
|
27
|
+
|
|
28
|
+
- direction (list of a value equal to: 'top', 'right', 'bottom', 'left', 'topRight', 'bottomRight', 'bottomLeft', 'topLeft's; default ['top', 'right', 'bottom', 'left', 'topRight', 'bottomRight', 'bottomLeft', 'topLeft'])
|
|
29
|
+
|
|
30
|
+
- grid (list of numbers; default [1, 1])
|
|
31
|
+
|
|
32
|
+
- handleClassNames (dict; optional)
|
|
33
|
+
|
|
34
|
+
`handleClassNames` is a dict with keys:
|
|
35
|
+
|
|
36
|
+
- bottom (string; optional)
|
|
37
|
+
|
|
38
|
+
- bottomLeft (string; optional)
|
|
39
|
+
|
|
40
|
+
- bottomRight (string; optional)
|
|
41
|
+
|
|
42
|
+
- left (string; optional)
|
|
43
|
+
|
|
44
|
+
- right (string; optional)
|
|
45
|
+
|
|
46
|
+
- top (string; optional)
|
|
47
|
+
|
|
48
|
+
- topLeft (string; optional)
|
|
49
|
+
|
|
50
|
+
- topRight (string; optional)
|
|
51
|
+
|
|
52
|
+
- handleStyles (dict; optional)
|
|
53
|
+
|
|
54
|
+
`handleStyles` is a dict with keys:
|
|
55
|
+
|
|
56
|
+
- bottom (dict; optional)
|
|
57
|
+
|
|
58
|
+
- bottomLeft (dict; optional)
|
|
59
|
+
|
|
60
|
+
- bottomRight (dict; optional)
|
|
61
|
+
|
|
62
|
+
- left (dict; optional)
|
|
63
|
+
|
|
64
|
+
- right (dict; optional)
|
|
65
|
+
|
|
66
|
+
- top (dict; optional)
|
|
67
|
+
|
|
68
|
+
- topLeft (dict; optional)
|
|
69
|
+
|
|
70
|
+
- topRight (dict; optional)
|
|
71
|
+
|
|
72
|
+
- key (string; optional)
|
|
73
|
+
|
|
74
|
+
- loading_state (dict; optional)
|
|
75
|
+
|
|
76
|
+
`loading_state` is a dict with keys:
|
|
77
|
+
|
|
78
|
+
- component_name (string; optional):
|
|
79
|
+
Holds the name of the component that is loading.
|
|
80
|
+
|
|
81
|
+
- is_loading (boolean; optional):
|
|
82
|
+
Determines if the component is loading or not.
|
|
83
|
+
|
|
84
|
+
- prop_name (string; optional):
|
|
85
|
+
Holds which property is loading.
|
|
86
|
+
|
|
87
|
+
- maxHeight (number | string; optional)
|
|
88
|
+
|
|
89
|
+
- maxWidth (number | string; optional)
|
|
90
|
+
|
|
91
|
+
- minHeight (number | string; default 10)
|
|
92
|
+
|
|
93
|
+
- minWidth (number | string; default 10)
|
|
94
|
+
|
|
95
|
+
- style (dict; optional)"""
|
|
96
|
+
_children_props = []
|
|
97
|
+
_base_nodes = ['children']
|
|
98
|
+
_namespace = 'feffery_utils_components'
|
|
99
|
+
_type = 'FefferyResizable'
|
|
100
|
+
@_explicitize_args
|
|
101
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, defaultSize=Component.UNDEFINED, minWidth=Component.UNDEFINED, minHeight=Component.UNDEFINED, maxWidth=Component.UNDEFINED, maxHeight=Component.UNDEFINED, direction=Component.UNDEFINED, grid=Component.UNDEFINED, bounds=Component.UNDEFINED, handleStyles=Component.UNDEFINED, handleClassNames=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
102
|
+
self._prop_names = ['children', 'id', 'bounds', 'className', 'defaultSize', 'direction', 'grid', 'handleClassNames', 'handleStyles', 'key', 'loading_state', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'style']
|
|
103
|
+
self._valid_wildcard_attributes = []
|
|
104
|
+
self.available_properties = ['children', 'id', 'bounds', 'className', 'defaultSize', 'direction', 'grid', 'handleClassNames', 'handleStyles', 'key', 'loading_state', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'style']
|
|
105
|
+
self.available_wildcard_properties = []
|
|
106
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
107
|
+
_locals = locals()
|
|
108
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
109
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
110
|
+
|
|
111
|
+
super(FefferyResizable, self).__init__(children=children, **args)
|
|
@@ -55,6 +55,7 @@ from .FefferyLocation import FefferyLocation
|
|
|
55
55
|
from .FefferyMousePosition import FefferyMousePosition
|
|
56
56
|
from .FefferyResponsive import FefferyResponsive
|
|
57
57
|
from .FefferyWindowSize import FefferyWindowSize
|
|
58
|
+
from .FefferyResizable import FefferyResizable
|
|
58
59
|
from .FefferySortableContainer import FefferySortableContainer
|
|
59
60
|
from .FefferySortableItem import FefferySortableItem
|
|
60
61
|
from .FefferySplit import FefferySplit
|
|
@@ -120,6 +121,7 @@ __all__ = [
|
|
|
120
121
|
"FefferyMousePosition",
|
|
121
122
|
"FefferyResponsive",
|
|
122
123
|
"FefferyWindowSize",
|
|
124
|
+
"FefferyResizable",
|
|
123
125
|
"FefferySortableContainer",
|
|
124
126
|
"FefferySortableItem",
|
|
125
127
|
"FefferySplit",
|