feffery_utils_components 0.1.27 → 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 +2 -0
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyCookie.py +58 -0
- package/build/lib/feffery_utils_components/FefferyDiv.py +19 -5
- package/build/lib/feffery_utils_components/FefferyResizable.py +111 -0
- package/build/lib/feffery_utils_components/_imports_.py +4 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +8 -8
- package/build/lib/feffery_utils_components/metadata.json +529 -0
- package/build/lib/feffery_utils_components/package-info.json +3 -2
- package/feffery_utils_components/FefferyCookie.py +58 -0
- package/feffery_utils_components/FefferyDiv.py +19 -5
- package/feffery_utils_components/FefferyResizable.py +111 -0
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/feffery_utils_components.min.js +8 -8
- package/feffery_utils_components/metadata.json +529 -0
- package/feffery_utils_components/package-info.json +3 -2
- package/package.json +3 -2
- package/src/FefferyUtilsComponents.jl +5 -3
- package/src/jl/''_fefferycookie.jl +29 -0
- package/src/jl/''_fefferydiv.jl +9 -2
- package/src/jl/''_fefferyresizable.jl +64 -0
- package/src/lib/components/FefferyDiv.react.js +93 -2
- package/src/lib/components/draggable/FefferyGrid.react.js +0 -3
- package/src/lib/components/resizable/FefferyResizable.react.js +213 -0
- package/src/lib/components/store/FefferyCookie.react.js +105 -0
- package/src/lib/components/styles.css +21 -1
- package/src/lib/index.js +5 -1
- package/usage.py +35 -65
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
|
@@ -57,8 +57,10 @@ export(''FefferyLocation)
|
|
|
57
57
|
export(''FefferyMousePosition)
|
|
58
58
|
export(''FefferyResponsive)
|
|
59
59
|
export(''FefferyWindowSize)
|
|
60
|
+
export(''FefferyResizable)
|
|
60
61
|
export(''FefferySortableContainer)
|
|
61
62
|
export(''FefferySortableItem)
|
|
62
63
|
export(''FefferySplit)
|
|
63
64
|
export(''FefferySplitPane)
|
|
65
|
+
export(''FefferyCookie)
|
|
64
66
|
export(''FefferySessionStorage)
|
package/Project.toml
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyCookie(Component):
|
|
7
|
+
"""A FefferyCookie component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- cookieKey (string; required)
|
|
15
|
+
|
|
16
|
+
- defaultValue (string; optional)
|
|
17
|
+
|
|
18
|
+
- expires (number; optional)
|
|
19
|
+
|
|
20
|
+
- loading_state (dict; optional)
|
|
21
|
+
|
|
22
|
+
`loading_state` is a dict with keys:
|
|
23
|
+
|
|
24
|
+
- component_name (string; optional):
|
|
25
|
+
Holds the name of the component that is loading.
|
|
26
|
+
|
|
27
|
+
- is_loading (boolean; optional):
|
|
28
|
+
Determines if the component is loading or not.
|
|
29
|
+
|
|
30
|
+
- prop_name (string; optional):
|
|
31
|
+
Holds which property is loading.
|
|
32
|
+
|
|
33
|
+
- pathname (string; default '/')
|
|
34
|
+
|
|
35
|
+
- secure (boolean; default False)
|
|
36
|
+
|
|
37
|
+
- value (string; optional)"""
|
|
38
|
+
_children_props = []
|
|
39
|
+
_base_nodes = ['children']
|
|
40
|
+
_namespace = 'feffery_utils_components'
|
|
41
|
+
_type = 'FefferyCookie'
|
|
42
|
+
@_explicitize_args
|
|
43
|
+
def __init__(self, id=Component.UNDEFINED, cookieKey=Component.REQUIRED, defaultValue=Component.UNDEFINED, value=Component.UNDEFINED, expires=Component.UNDEFINED, pathname=Component.UNDEFINED, secure=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
44
|
+
self._prop_names = ['id', 'cookieKey', 'defaultValue', 'expires', 'loading_state', 'pathname', 'secure', 'value']
|
|
45
|
+
self._valid_wildcard_attributes = []
|
|
46
|
+
self.available_properties = ['id', 'cookieKey', 'defaultValue', 'expires', 'loading_state', 'pathname', 'secure', 'value']
|
|
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
|
+
for k in ['cookieKey']:
|
|
54
|
+
if k not in args:
|
|
55
|
+
raise TypeError(
|
|
56
|
+
'Required argument `' + k + '` was not specified.')
|
|
57
|
+
|
|
58
|
+
super(FefferyCookie, self).__init__(**args)
|
|
@@ -17,6 +17,12 @@ Keyword arguments:
|
|
|
17
17
|
|
|
18
18
|
- _width (number; optional)
|
|
19
19
|
|
|
20
|
+
- align (string; optional)
|
|
21
|
+
|
|
22
|
+
- border (string; optional)
|
|
23
|
+
|
|
24
|
+
- borderRadius (string | number; optional)
|
|
25
|
+
|
|
20
26
|
- className (string | dict; optional)
|
|
21
27
|
|
|
22
28
|
- clickAwayCount (number; default 0)
|
|
@@ -47,6 +53,8 @@ Keyword arguments:
|
|
|
47
53
|
|
|
48
54
|
- isHovering (boolean; optional)
|
|
49
55
|
|
|
56
|
+
- justify (string; optional)
|
|
57
|
+
|
|
50
58
|
- key (string; optional)
|
|
51
59
|
|
|
52
60
|
- loading_state (dict; optional)
|
|
@@ -62,6 +70,8 @@ Keyword arguments:
|
|
|
62
70
|
- prop_name (string; optional):
|
|
63
71
|
Holds which property is loading.
|
|
64
72
|
|
|
73
|
+
- margin (string | number; optional)
|
|
74
|
+
|
|
65
75
|
- mouseEnterCount (number; default 0)
|
|
66
76
|
|
|
67
77
|
- mouseLeaveCount (number; default 0)
|
|
@@ -70,20 +80,24 @@ Keyword arguments:
|
|
|
70
80
|
|
|
71
81
|
- nDoubleClicks (number; default 0)
|
|
72
82
|
|
|
83
|
+
- padding (string | number; optional)
|
|
84
|
+
|
|
73
85
|
- scrollbar (a value equal to: 'default', 'simple', 'hidden'; default 'default')
|
|
74
86
|
|
|
75
|
-
- shadow (a value equal to: 'no-shadow', 'hover-shadow', 'always-shadow'; default 'no-shadow')
|
|
87
|
+
- shadow (a value equal to: 'no-shadow', 'hover-shadow', 'always-shadow', 'hover-shadow-light', 'always-shadow-light'; default 'no-shadow')
|
|
88
|
+
|
|
89
|
+
- style (dict; optional)
|
|
76
90
|
|
|
77
|
-
-
|
|
91
|
+
- textAlign (a value equal to: 'left', 'center', 'right'; optional)"""
|
|
78
92
|
_children_props = []
|
|
79
93
|
_base_nodes = ['children']
|
|
80
94
|
_namespace = 'feffery_utils_components'
|
|
81
95
|
_type = 'FefferyDiv'
|
|
82
96
|
@_explicitize_args
|
|
83
|
-
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, debounceWait=Component.UNDEFINED, mouseEnterCount=Component.UNDEFINED, mouseLeaveCount=Component.UNDEFINED, nClicks=Component.UNDEFINED, nDoubleClicks=Component.UNDEFINED, enableListenContextMenu=Component.UNDEFINED, contextMenuEvent=Component.UNDEFINED, isHovering=Component.UNDEFINED, enableClickAway=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, shadow=Component.UNDEFINED, scrollbar=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
84
|
-
self._prop_names = ['children', 'id', '_height', '_width', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'scrollbar', 'shadow', 'style']
|
|
97
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, debounceWait=Component.UNDEFINED, mouseEnterCount=Component.UNDEFINED, mouseLeaveCount=Component.UNDEFINED, nClicks=Component.UNDEFINED, nDoubleClicks=Component.UNDEFINED, enableListenContextMenu=Component.UNDEFINED, contextMenuEvent=Component.UNDEFINED, isHovering=Component.UNDEFINED, enableClickAway=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, shadow=Component.UNDEFINED, scrollbar=Component.UNDEFINED, textAlign=Component.UNDEFINED, justify=Component.UNDEFINED, align=Component.UNDEFINED, padding=Component.UNDEFINED, margin=Component.UNDEFINED, border=Component.UNDEFINED, borderRadius=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
98
|
+
self._prop_names = ['children', 'id', '_height', '_width', 'align', 'border', 'borderRadius', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'justify', 'key', 'loading_state', 'margin', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'padding', 'scrollbar', 'shadow', 'style', 'textAlign']
|
|
85
99
|
self._valid_wildcard_attributes = []
|
|
86
|
-
self.available_properties = ['children', 'id', '_height', '_width', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'scrollbar', 'shadow', 'style']
|
|
100
|
+
self.available_properties = ['children', 'id', '_height', '_width', 'align', 'border', 'borderRadius', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'justify', 'key', 'loading_state', 'margin', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'padding', 'scrollbar', 'shadow', 'style', 'textAlign']
|
|
87
101
|
self.available_wildcard_properties = []
|
|
88
102
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
89
103
|
_locals = locals()
|
|
@@ -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,10 +55,12 @@ 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
|
|
61
62
|
from .FefferySplitPane import FefferySplitPane
|
|
63
|
+
from .FefferyCookie import FefferyCookie
|
|
62
64
|
from .FefferySessionStorage import FefferySessionStorage
|
|
63
65
|
|
|
64
66
|
__all__ = [
|
|
@@ -119,9 +121,11 @@ __all__ = [
|
|
|
119
121
|
"FefferyMousePosition",
|
|
120
122
|
"FefferyResponsive",
|
|
121
123
|
"FefferyWindowSize",
|
|
124
|
+
"FefferyResizable",
|
|
122
125
|
"FefferySortableContainer",
|
|
123
126
|
"FefferySortableItem",
|
|
124
127
|
"FefferySplit",
|
|
125
128
|
"FefferySplitPane",
|
|
129
|
+
"FefferyCookie",
|
|
126
130
|
"FefferySessionStorage"
|
|
127
131
|
]
|