feffery_utils_components 0.1.21 → 0.1.23
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 +4 -1
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyCountUp.py +68 -0
- package/build/lib/feffery_utils_components/FefferyDiv.py +13 -25
- package/build/lib/feffery_utils_components/FefferyListenUnload.py +43 -0
- package/build/lib/feffery_utils_components/FefferyMotion.py +5 -3
- package/build/lib/feffery_utils_components/FefferyUnmount.py +45 -0
- package/build/lib/feffery_utils_components/_imports_.py +4 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +4 -4
- package/build/lib/feffery_utils_components/metadata.json +216 -39
- package/build/lib/feffery_utils_components/package-info.json +3 -2
- package/feffery_utils_components/FefferyCountUp.py +68 -0
- package/feffery_utils_components/FefferyDiv.py +13 -25
- package/feffery_utils_components/FefferyListenUnload.py +43 -0
- package/feffery_utils_components/FefferyMotion.py +5 -3
- package/feffery_utils_components/FefferyUnmount.py +45 -0
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/feffery_utils_components.min.js +4 -4
- package/feffery_utils_components/metadata.json +216 -39
- package/feffery_utils_components/package-info.json +3 -2
- package/package.json +3 -2
- package/src/FefferyUtilsComponents.jl +5 -3
- package/src/jl/''_fefferycountup.jl +34 -0
- package/src/jl/''_fefferydiv.jl +6 -12
- package/src/jl/''_fefferylistenunload.jl +24 -0
- package/src/jl/''_fefferymotion.jl +2 -1
- package/src/jl/''_fefferyunmount.jl +31 -0
- package/src/lib/components/FefferyCountUp.react.js +116 -0
- package/src/lib/components/FefferyDiv.react.js +10 -69
- package/src/lib/components/animations/FefferyMotion.react.js +4 -0
- package/src/lib/components/listeners/FefferyListenUnload.react.js +68 -0
- package/src/lib/index.js +5 -1
- package/usage.py +16 -98
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
|
@@ -14,6 +14,7 @@ export(''FefferyGrid)
|
|
|
14
14
|
export(''FefferyGridItem)
|
|
15
15
|
export(''FefferyCaptcha)
|
|
16
16
|
export(''FefferyCountDown)
|
|
17
|
+
export(''FefferyCountUp)
|
|
17
18
|
export(''FefferyCssVar)
|
|
18
19
|
export(''FefferyDiv)
|
|
19
20
|
export(''FefferyExecuteJs)
|
|
@@ -49,6 +50,7 @@ export(''FefferyGeolocation)
|
|
|
49
50
|
export(''FefferyIdle)
|
|
50
51
|
export(''FefferyInViewport)
|
|
51
52
|
export(''FefferyKeyPress)
|
|
53
|
+
export(''FefferyListenUnload)
|
|
52
54
|
export(''FefferyResponsive)
|
|
53
55
|
export(''FefferyWindowSize)
|
|
54
56
|
export(''FefferySortableContainer)
|
|
@@ -58,4 +60,5 @@ export(''FefferySplitPane)
|
|
|
58
60
|
export(''FefferySessionStorage)
|
|
59
61
|
export(FefferyAnimated)
|
|
60
62
|
export(FefferyLazyLoadImage)
|
|
61
|
-
export(FefferySyntaxHighlighter)
|
|
63
|
+
export(FefferySyntaxHighlighter)
|
|
64
|
+
export(FefferyUnmount)
|
package/Project.toml
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyCountUp(Component):
|
|
7
|
+
"""A FefferyCountUp component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- className (string; optional)
|
|
15
|
+
|
|
16
|
+
- decimals (number; default 0)
|
|
17
|
+
|
|
18
|
+
- duration (number; default 2)
|
|
19
|
+
|
|
20
|
+
- enableScrollSpy (boolean; default True)
|
|
21
|
+
|
|
22
|
+
- end (number; required)
|
|
23
|
+
|
|
24
|
+
- key (string; optional)
|
|
25
|
+
|
|
26
|
+
- loading_state (dict; optional)
|
|
27
|
+
|
|
28
|
+
`loading_state` is a dict with keys:
|
|
29
|
+
|
|
30
|
+
- component_name (string; optional):
|
|
31
|
+
Holds the name of the component that is loading.
|
|
32
|
+
|
|
33
|
+
- is_loading (boolean; optional):
|
|
34
|
+
Determines if the component is loading or not.
|
|
35
|
+
|
|
36
|
+
- prop_name (string; optional):
|
|
37
|
+
Holds which property is loading.
|
|
38
|
+
|
|
39
|
+
- scrollSpyDelay (number; default 0)
|
|
40
|
+
|
|
41
|
+
- scrollSpyOnce (boolean; default True)
|
|
42
|
+
|
|
43
|
+
- separator (string; default ',')
|
|
44
|
+
|
|
45
|
+
- start (number; default 0)
|
|
46
|
+
|
|
47
|
+
- style (dict; optional)"""
|
|
48
|
+
_children_props = []
|
|
49
|
+
_base_nodes = ['children']
|
|
50
|
+
_namespace = 'feffery_utils_components'
|
|
51
|
+
_type = 'FefferyCountUp'
|
|
52
|
+
@_explicitize_args
|
|
53
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, end=Component.REQUIRED, start=Component.UNDEFINED, duration=Component.UNDEFINED, decimals=Component.UNDEFINED, enableScrollSpy=Component.UNDEFINED, scrollSpyDelay=Component.UNDEFINED, scrollSpyOnce=Component.UNDEFINED, separator=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
54
|
+
self._prop_names = ['id', 'className', 'decimals', 'duration', 'enableScrollSpy', 'end', 'key', 'loading_state', 'scrollSpyDelay', 'scrollSpyOnce', 'separator', 'start', 'style']
|
|
55
|
+
self._valid_wildcard_attributes = []
|
|
56
|
+
self.available_properties = ['id', 'className', 'decimals', 'duration', 'enableScrollSpy', 'end', 'key', 'loading_state', 'scrollSpyDelay', 'scrollSpyOnce', 'separator', 'start', 'style']
|
|
57
|
+
self.available_wildcard_properties = []
|
|
58
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
59
|
+
_locals = locals()
|
|
60
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
61
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
62
|
+
|
|
63
|
+
for k in ['end']:
|
|
64
|
+
if k not in args:
|
|
65
|
+
raise TypeError(
|
|
66
|
+
'Required argument `' + k + '` was not specified.')
|
|
67
|
+
|
|
68
|
+
super(FefferyCountUp, self).__init__(**args)
|
|
@@ -17,8 +17,6 @@ Keyword arguments:
|
|
|
17
17
|
|
|
18
18
|
- _width (number; optional)
|
|
19
19
|
|
|
20
|
-
- appendChild (a list of or a singular dash component, string or number; optional)
|
|
21
|
-
|
|
22
20
|
- className (string | dict; optional)
|
|
23
21
|
|
|
24
22
|
- clickAwayCount (number; default 0)
|
|
@@ -27,28 +25,26 @@ Keyword arguments:
|
|
|
27
25
|
|
|
28
26
|
`contextMenuEvent` is a dict with keys:
|
|
29
27
|
|
|
28
|
+
- clientX (number; optional)
|
|
29
|
+
|
|
30
|
+
- clientY (number; optional)
|
|
31
|
+
|
|
30
32
|
- pageX (number; optional)
|
|
31
33
|
|
|
32
34
|
- pageY (number; optional)
|
|
33
35
|
|
|
36
|
+
- screenX (number; optional)
|
|
37
|
+
|
|
38
|
+
- screenY (number; optional)
|
|
39
|
+
|
|
34
40
|
- timestamp (number; optional)
|
|
35
41
|
|
|
36
42
|
- debounceWait (number; default 150)
|
|
37
43
|
|
|
38
|
-
- deleteChildIndex (number; optional)
|
|
39
|
-
|
|
40
44
|
- enableClickAway (boolean; default False)
|
|
41
45
|
|
|
42
46
|
- enableListenContextMenu (boolean; default False)
|
|
43
47
|
|
|
44
|
-
- insertChild (dict; optional)
|
|
45
|
-
|
|
46
|
-
`insertChild` is a dict with keys:
|
|
47
|
-
|
|
48
|
-
- element (a list of or a singular dash component, string or number; optional)
|
|
49
|
-
|
|
50
|
-
- index (number; optional)
|
|
51
|
-
|
|
52
48
|
- isHovering (boolean; optional)
|
|
53
49
|
|
|
54
50
|
- key (string; optional)
|
|
@@ -74,28 +70,20 @@ Keyword arguments:
|
|
|
74
70
|
|
|
75
71
|
- nDoubleClicks (number; default 0)
|
|
76
72
|
|
|
77
|
-
- replaceChild (dict; optional)
|
|
78
|
-
|
|
79
|
-
`replaceChild` is a dict with keys:
|
|
80
|
-
|
|
81
|
-
- element (a list of or a singular dash component, string or number; optional)
|
|
82
|
-
|
|
83
|
-
- index (number; optional)
|
|
84
|
-
|
|
85
73
|
- scrollbar (a value equal to: 'default', 'simple', 'hidden'; default 'default')
|
|
86
74
|
|
|
87
75
|
- shadow (a value equal to: 'no-shadow', 'hover-shadow', 'always-shadow'; default 'no-shadow')
|
|
88
76
|
|
|
89
77
|
- style (dict; optional)"""
|
|
90
|
-
_children_props = [
|
|
91
|
-
_base_nodes = ['
|
|
78
|
+
_children_props = []
|
|
79
|
+
_base_nodes = ['children']
|
|
92
80
|
_namespace = 'feffery_utils_components'
|
|
93
81
|
_type = 'FefferyDiv'
|
|
94
82
|
@_explicitize_args
|
|
95
|
-
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED,
|
|
96
|
-
self._prop_names = ['children', 'id', '_height', '_width', '
|
|
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
85
|
self._valid_wildcard_attributes = []
|
|
98
|
-
self.available_properties = ['children', 'id', '_height', '_width', '
|
|
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']
|
|
99
87
|
self.available_wildcard_properties = []
|
|
100
88
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
101
89
|
_locals = locals()
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyListenUnload(Component):
|
|
7
|
+
"""A FefferyListenUnload component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- loading_state (dict; optional)
|
|
15
|
+
|
|
16
|
+
`loading_state` is a dict with keys:
|
|
17
|
+
|
|
18
|
+
- component_name (string; optional):
|
|
19
|
+
Holds the name of the component that is loading.
|
|
20
|
+
|
|
21
|
+
- is_loading (boolean; optional):
|
|
22
|
+
Determines if the component is loading or not.
|
|
23
|
+
|
|
24
|
+
- prop_name (string; optional):
|
|
25
|
+
Holds which property is loading.
|
|
26
|
+
|
|
27
|
+
- unloaded (boolean; optional)"""
|
|
28
|
+
_children_props = []
|
|
29
|
+
_base_nodes = ['children']
|
|
30
|
+
_namespace = 'feffery_utils_components'
|
|
31
|
+
_type = 'FefferyListenUnload'
|
|
32
|
+
@_explicitize_args
|
|
33
|
+
def __init__(self, id=Component.UNDEFINED, unloaded=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
34
|
+
self._prop_names = ['id', 'loading_state', 'unloaded']
|
|
35
|
+
self._valid_wildcard_attributes = []
|
|
36
|
+
self.available_properties = ['id', 'loading_state', 'unloaded']
|
|
37
|
+
self.available_wildcard_properties = []
|
|
38
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
39
|
+
_locals = locals()
|
|
40
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
41
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
42
|
+
|
|
43
|
+
super(FefferyListenUnload, self).__init__(**args)
|
|
@@ -21,6 +21,8 @@ Keyword arguments:
|
|
|
21
21
|
|
|
22
22
|
- initial (dict | boolean | string; optional)
|
|
23
23
|
|
|
24
|
+
- key (string; optional)
|
|
25
|
+
|
|
24
26
|
- loading_state (dict; optional)
|
|
25
27
|
|
|
26
28
|
`loading_state` is a dict with keys:
|
|
@@ -78,10 +80,10 @@ Keyword arguments:
|
|
|
78
80
|
_namespace = 'feffery_utils_components'
|
|
79
81
|
_type = 'FefferyMotion'
|
|
80
82
|
@_explicitize_args
|
|
81
|
-
def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, initial=Component.UNDEFINED, animate=Component.UNDEFINED, exit=Component.UNDEFINED, whileHover=Component.UNDEFINED, whileTap=Component.UNDEFINED, transition=Component.UNDEFINED, whileInView=Component.UNDEFINED, viewport=Component.UNDEFINED, variants=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
82
|
-
self._prop_names = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
|
|
83
|
+
def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, key=Component.UNDEFINED, initial=Component.UNDEFINED, animate=Component.UNDEFINED, exit=Component.UNDEFINED, whileHover=Component.UNDEFINED, whileTap=Component.UNDEFINED, transition=Component.UNDEFINED, whileInView=Component.UNDEFINED, viewport=Component.UNDEFINED, variants=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
84
|
+
self._prop_names = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'key', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
|
|
83
85
|
self._valid_wildcard_attributes = []
|
|
84
|
-
self.available_properties = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
|
|
86
|
+
self.available_properties = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'key', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
|
|
85
87
|
self.available_wildcard_properties = []
|
|
86
88
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
87
89
|
_locals = locals()
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyUnmount(Component):
|
|
7
|
+
"""A FefferyUnmount 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
|
+
- isUnmount (boolean; optional)
|
|
17
|
+
|
|
18
|
+
- loading_state (dict; optional)
|
|
19
|
+
|
|
20
|
+
`loading_state` is a dict with keys:
|
|
21
|
+
|
|
22
|
+
- component_name (string; optional):
|
|
23
|
+
Holds the name of the component that is loading.
|
|
24
|
+
|
|
25
|
+
- is_loading (boolean; optional):
|
|
26
|
+
Determines if the component is loading or not.
|
|
27
|
+
|
|
28
|
+
- prop_name (string; optional):
|
|
29
|
+
Holds which property is loading."""
|
|
30
|
+
_children_props = []
|
|
31
|
+
_base_nodes = ['children']
|
|
32
|
+
_namespace = 'feffery_utils_components'
|
|
33
|
+
_type = 'FefferyUnmount'
|
|
34
|
+
@_explicitize_args
|
|
35
|
+
def __init__(self, children=None, id=Component.UNDEFINED, isUnmount=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
36
|
+
self._prop_names = ['children', 'id', 'isUnmount', 'loading_state']
|
|
37
|
+
self._valid_wildcard_attributes = []
|
|
38
|
+
self.available_properties = ['children', 'id', 'isUnmount', 'loading_state']
|
|
39
|
+
self.available_wildcard_properties = []
|
|
40
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
41
|
+
_locals = locals()
|
|
42
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
43
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
44
|
+
|
|
45
|
+
super(FefferyUnmount, self).__init__(children=children, **args)
|
|
@@ -12,6 +12,7 @@ from .FefferyGrid import FefferyGrid
|
|
|
12
12
|
from .FefferyGridItem import FefferyGridItem
|
|
13
13
|
from .FefferyCaptcha import FefferyCaptcha
|
|
14
14
|
from .FefferyCountDown import FefferyCountDown
|
|
15
|
+
from .FefferyCountUp import FefferyCountUp
|
|
15
16
|
from .FefferyCssVar import FefferyCssVar
|
|
16
17
|
from .FefferyDiv import FefferyDiv
|
|
17
18
|
from .FefferyExecuteJs import FefferyExecuteJs
|
|
@@ -47,6 +48,7 @@ from .FefferyGeolocation import FefferyGeolocation
|
|
|
47
48
|
from .FefferyIdle import FefferyIdle
|
|
48
49
|
from .FefferyInViewport import FefferyInViewport
|
|
49
50
|
from .FefferyKeyPress import FefferyKeyPress
|
|
51
|
+
from .FefferyListenUnload import FefferyListenUnload
|
|
50
52
|
from .FefferyResponsive import FefferyResponsive
|
|
51
53
|
from .FefferyWindowSize import FefferyWindowSize
|
|
52
54
|
from .FefferySortableContainer import FefferySortableContainer
|
|
@@ -70,6 +72,7 @@ __all__ = [
|
|
|
70
72
|
"FefferyGridItem",
|
|
71
73
|
"FefferyCaptcha",
|
|
72
74
|
"FefferyCountDown",
|
|
75
|
+
"FefferyCountUp",
|
|
73
76
|
"FefferyCssVar",
|
|
74
77
|
"FefferyDiv",
|
|
75
78
|
"FefferyExecuteJs",
|
|
@@ -105,6 +108,7 @@ __all__ = [
|
|
|
105
108
|
"FefferyIdle",
|
|
106
109
|
"FefferyInViewport",
|
|
107
110
|
"FefferyKeyPress",
|
|
111
|
+
"FefferyListenUnload",
|
|
108
112
|
"FefferyResponsive",
|
|
109
113
|
"FefferyWindowSize",
|
|
110
114
|
"FefferySortableContainer",
|