feffery_utils_components 0.1.21 → 0.1.22
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/FefferyCountUp.py +68 -0
- package/build/lib/feffery_utils_components/FefferyDiv.py +13 -25
- package/build/lib/feffery_utils_components/FefferyMotion.py +5 -3
- package/build/lib/feffery_utils_components/_imports_.py +2 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +4 -4
- package/build/lib/feffery_utils_components/metadata.json +164 -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/FefferyMotion.py +5 -3
- package/feffery_utils_components/_imports_.py +2 -0
- package/feffery_utils_components/feffery_utils_components.min.js +4 -4
- package/feffery_utils_components/metadata.json +164 -39
- package/feffery_utils_components/package-info.json +3 -2
- package/package.json +3 -2
- package/src/FefferyUtilsComponents.jl +4 -3
- package/src/jl/''_fefferycountup.jl +34 -0
- package/src/jl/''_fefferydiv.jl +6 -12
- package/src/jl/''_fefferymotion.jl +2 -1
- 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/index.js +3 -1
- package/usage.py +17 -100
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
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()
|
|
@@ -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()
|
|
@@ -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
|
|
@@ -70,6 +71,7 @@ __all__ = [
|
|
|
70
71
|
"FefferyGridItem",
|
|
71
72
|
"FefferyCaptcha",
|
|
72
73
|
"FefferyCountDown",
|
|
74
|
+
"FefferyCountUp",
|
|
73
75
|
"FefferyCssVar",
|
|
74
76
|
"FefferyDiv",
|
|
75
77
|
"FefferyExecuteJs",
|