feffery_utils_components 0.1.28 → 0.1.29
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_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/package.json +3 -2
- package/src/FefferyUtilsComponents.jl +4 -3
- package/src/jl/''_fefferyresizable.jl +64 -0
- 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 +33 -36
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
|
@@ -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",
|