feffery_utils_components 0.0.21 → 0.0.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 +1 -0
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyCaptcha.py +5 -3
- package/build/lib/feffery_utils_components/FefferyCountDown.py +50 -0
- package/build/lib/feffery_utils_components/FefferyDiv.py +7 -5
- package/build/lib/feffery_utils_components/FefferyKeyPress.py +48 -0
- package/{feffery_utils_components/FefferySliderColorPicker.py → build/lib/feffery_utils_components/FefferyTimeout.py} +9 -11
- package/build/lib/feffery_utils_components/_imports_.py +6 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +1 -1
- package/build/lib/feffery_utils_components/metadata.json +216 -2
- package/build/lib/feffery_utils_components/package-info.json +1 -1
- package/feffery_utils_components/FefferyCountDown.py +50 -0
- package/feffery_utils_components/FefferyDiv.py +1 -1
- package/feffery_utils_components/_imports_.py +2 -0
- package/feffery_utils_components/feffery_utils_components.min.js +1 -1
- package/feffery_utils_components/metadata.json +79 -1
- package/feffery_utils_components/package-info.json +2 -1
- package/package.json +2 -1
- package/src/FefferyUtilsComponents.jl +4 -3
- package/src/jl/''_fefferycountdown.jl +26 -0
- package/src/jl/''_fefferydiv.jl +1 -1
- package/src/lib/components/FefferyCountDown.react.js +92 -0
- package/src/lib/components/listeners/FefferyDiv.react.js +11 -2
- package/src/lib/index.js +3 -1
- package/tests/FefferyCountDownTest/app.py +53 -0
- package/tests/FefferyDivHoverTest/app.py +5 -1
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
|
@@ -36,6 +36,8 @@ Keyword arguments:
|
|
|
36
36
|
- prop_name (string; optional):
|
|
37
37
|
Holds which property is loading.
|
|
38
38
|
|
|
39
|
+
- refresh (boolean; optional)
|
|
40
|
+
|
|
39
41
|
- style (dict; optional)
|
|
40
42
|
|
|
41
43
|
- width (number; optional)"""
|
|
@@ -44,10 +46,10 @@ Keyword arguments:
|
|
|
44
46
|
_namespace = 'feffery_utils_components'
|
|
45
47
|
_type = 'FefferyCaptcha'
|
|
46
48
|
@_explicitize_args
|
|
47
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, captcha=Component.UNDEFINED, charNum=Component.UNDEFINED, height=Component.UNDEFINED, width=Component.UNDEFINED, bgColor=Component.UNDEFINED, fontSize=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
48
|
-
self._prop_names = ['id', 'bgColor', 'captcha', 'charNum', 'className', 'fontSize', 'height', 'loading_state', 'style', 'width']
|
|
49
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, captcha=Component.UNDEFINED, charNum=Component.UNDEFINED, height=Component.UNDEFINED, width=Component.UNDEFINED, bgColor=Component.UNDEFINED, fontSize=Component.UNDEFINED, refresh=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
50
|
+
self._prop_names = ['id', 'bgColor', 'captcha', 'charNum', 'className', 'fontSize', 'height', 'loading_state', 'refresh', 'style', 'width']
|
|
49
51
|
self._valid_wildcard_attributes = []
|
|
50
|
-
self.available_properties = ['id', 'bgColor', 'captcha', 'charNum', 'className', 'fontSize', 'height', 'loading_state', 'style', 'width']
|
|
52
|
+
self.available_properties = ['id', 'bgColor', 'captcha', 'charNum', 'className', 'fontSize', 'height', 'loading_state', 'refresh', 'style', 'width']
|
|
51
53
|
self.available_wildcard_properties = []
|
|
52
54
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
53
55
|
_locals = locals()
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyCountDown(Component):
|
|
7
|
+
"""A FefferyCountDown component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- countdown (number; optional)
|
|
15
|
+
|
|
16
|
+
- delay (number; optional)
|
|
17
|
+
|
|
18
|
+
- interval (number; default 1)
|
|
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
|
+
_children_props = []
|
|
33
|
+
_base_nodes = ['children']
|
|
34
|
+
_namespace = 'feffery_utils_components'
|
|
35
|
+
_type = 'FefferyCountDown'
|
|
36
|
+
@_explicitize_args
|
|
37
|
+
def __init__(self, id=Component.UNDEFINED, delay=Component.UNDEFINED, interval=Component.UNDEFINED, countdown=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
38
|
+
self._prop_names = ['id', 'countdown', 'delay', 'interval', 'loading_state']
|
|
39
|
+
self._valid_wildcard_attributes = []
|
|
40
|
+
self.available_properties = ['id', 'countdown', 'delay', 'interval', 'loading_state']
|
|
41
|
+
self.available_wildcard_properties = []
|
|
42
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
43
|
+
_locals = locals()
|
|
44
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
45
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
46
|
+
for k in []:
|
|
47
|
+
if k not in args:
|
|
48
|
+
raise TypeError(
|
|
49
|
+
'Required argument `' + k + '` was not specified.')
|
|
50
|
+
super(FefferyCountDown, self).__init__(**args)
|
|
@@ -19,6 +19,8 @@ Keyword arguments:
|
|
|
19
19
|
|
|
20
20
|
- className (string; optional)
|
|
21
21
|
|
|
22
|
+
- clickAwayCount (number; default 0)
|
|
23
|
+
|
|
22
24
|
- contextMenuEvent (dict; optional)
|
|
23
25
|
|
|
24
26
|
`contextMenuEvent` is a dict with keys:
|
|
@@ -48,9 +50,9 @@ Keyword arguments:
|
|
|
48
50
|
- prop_name (string; optional):
|
|
49
51
|
Holds which property is loading.
|
|
50
52
|
|
|
51
|
-
-
|
|
53
|
+
- mouseEnterCount (number; default 0)
|
|
52
54
|
|
|
53
|
-
-
|
|
55
|
+
- mouseLeaveCount (number; default 0)
|
|
54
56
|
|
|
55
57
|
- nClicks (number; default 0)
|
|
56
58
|
|
|
@@ -62,10 +64,10 @@ Keyword arguments:
|
|
|
62
64
|
_namespace = 'feffery_utils_components'
|
|
63
65
|
_type = 'FefferyDiv'
|
|
64
66
|
@_explicitize_args
|
|
65
|
-
def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, debounceWait=Component.UNDEFINED,
|
|
66
|
-
self._prop_names = ['children', 'id', '_height', '_width', 'className', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'isHovering', 'loading_state', '
|
|
67
|
+
def __init__(self, children=None, id=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, clickAwayCount=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
68
|
+
self._prop_names = ['children', 'id', '_height', '_width', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'isHovering', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'style']
|
|
67
69
|
self._valid_wildcard_attributes = []
|
|
68
|
-
self.available_properties = ['children', 'id', '_height', '_width', 'className', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'isHovering', 'loading_state', '
|
|
70
|
+
self.available_properties = ['children', 'id', '_height', '_width', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'isHovering', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'style']
|
|
69
71
|
self.available_wildcard_properties = []
|
|
70
72
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
71
73
|
_locals = locals()
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyKeyPress(Component):
|
|
7
|
+
"""A FefferyKeyPress component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- keys (string; required)
|
|
15
|
+
|
|
16
|
+
- loading_state (dict; optional)
|
|
17
|
+
|
|
18
|
+
`loading_state` is a dict with keys:
|
|
19
|
+
|
|
20
|
+
- component_name (string; optional):
|
|
21
|
+
Holds the name of the component that is loading.
|
|
22
|
+
|
|
23
|
+
- is_loading (boolean; optional):
|
|
24
|
+
Determines if the component is loading or not.
|
|
25
|
+
|
|
26
|
+
- prop_name (string; optional):
|
|
27
|
+
Holds which property is loading.
|
|
28
|
+
|
|
29
|
+
- pressedTimes (number; default 0)"""
|
|
30
|
+
_children_props = []
|
|
31
|
+
_base_nodes = ['children']
|
|
32
|
+
_namespace = 'feffery_utils_components'
|
|
33
|
+
_type = 'FefferyKeyPress'
|
|
34
|
+
@_explicitize_args
|
|
35
|
+
def __init__(self, id=Component.UNDEFINED, keys=Component.REQUIRED, pressedTimes=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
36
|
+
self._prop_names = ['id', 'keys', 'loading_state', 'pressedTimes']
|
|
37
|
+
self._valid_wildcard_attributes = []
|
|
38
|
+
self.available_properties = ['id', 'keys', 'loading_state', 'pressedTimes']
|
|
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
|
+
for k in ['keys']:
|
|
45
|
+
if k not in args:
|
|
46
|
+
raise TypeError(
|
|
47
|
+
'Required argument `' + k + '` was not specified.')
|
|
48
|
+
super(FefferyKeyPress, self).__init__(**args)
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
from dash.development.base_component import Component, _explicitize_args
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class
|
|
7
|
-
"""A
|
|
6
|
+
class FefferyTimeout(Component):
|
|
7
|
+
"""A FefferyTimeout component.
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
|
|
12
12
|
- id (string; optional)
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
- color (string; optional)
|
|
14
|
+
- delay (number; optional)
|
|
17
15
|
|
|
18
16
|
- loading_state (dict; optional)
|
|
19
17
|
|
|
@@ -28,16 +26,16 @@ Keyword arguments:
|
|
|
28
26
|
- prop_name (string; optional):
|
|
29
27
|
Holds which property is loading.
|
|
30
28
|
|
|
31
|
-
-
|
|
29
|
+
- timeoutCount (number; default 0)"""
|
|
32
30
|
_children_props = []
|
|
33
31
|
_base_nodes = ['children']
|
|
34
32
|
_namespace = 'feffery_utils_components'
|
|
35
|
-
_type = '
|
|
33
|
+
_type = 'FefferyTimeout'
|
|
36
34
|
@_explicitize_args
|
|
37
|
-
def __init__(self, id=Component.UNDEFINED,
|
|
38
|
-
self._prop_names = ['id', '
|
|
35
|
+
def __init__(self, id=Component.UNDEFINED, timeoutCount=Component.UNDEFINED, delay=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
36
|
+
self._prop_names = ['id', 'delay', 'loading_state', 'timeoutCount']
|
|
39
37
|
self._valid_wildcard_attributes = []
|
|
40
|
-
self.available_properties = ['id', '
|
|
38
|
+
self.available_properties = ['id', 'delay', 'loading_state', 'timeoutCount']
|
|
41
39
|
self.available_wildcard_properties = []
|
|
42
40
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
43
41
|
_locals = locals()
|
|
@@ -47,4 +45,4 @@ Keyword arguments:
|
|
|
47
45
|
if k not in args:
|
|
48
46
|
raise TypeError(
|
|
49
47
|
'Required argument `' + k + '` was not specified.')
|
|
50
|
-
super(
|
|
48
|
+
super(FefferyTimeout, self).__init__(**args)
|
|
@@ -8,6 +8,7 @@ from .FefferyWheelColorPicker import FefferyWheelColorPicker
|
|
|
8
8
|
from .FefferyExternalCss import FefferyExternalCss
|
|
9
9
|
from .FefferySetTitle import FefferySetTitle
|
|
10
10
|
from .FefferyCaptcha import FefferyCaptcha
|
|
11
|
+
from .FefferyCountDown import FefferyCountDown
|
|
11
12
|
from .FefferyExecuteJs import FefferyExecuteJs
|
|
12
13
|
from .FefferyExtraSpinner import FefferyExtraSpinner
|
|
13
14
|
from .FefferyGuide import FefferyGuide
|
|
@@ -18,6 +19,7 @@ from .FefferyScroll import FefferyScroll
|
|
|
18
19
|
from .FefferyScrollbars import FefferyScrollbars
|
|
19
20
|
from .FefferyShortcutPanel import FefferyShortcutPanel
|
|
20
21
|
from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
|
|
22
|
+
from .FefferyTimeout import FefferyTimeout
|
|
21
23
|
from .FefferyTopProgress import FefferyTopProgress
|
|
22
24
|
from .FefferyVirtualList import FefferyVirtualList
|
|
23
25
|
from .FefferyDiv import FefferyDiv
|
|
@@ -25,6 +27,7 @@ from .FefferyDocumentVisibility import FefferyDocumentVisibility
|
|
|
25
27
|
from .FefferyGeolocation import FefferyGeolocation
|
|
26
28
|
from .FefferyIdle import FefferyIdle
|
|
27
29
|
from .FefferyInViewport import FefferyInViewport
|
|
30
|
+
from .FefferyKeyPress import FefferyKeyPress
|
|
28
31
|
from .FefferyResponsive import FefferyResponsive
|
|
29
32
|
from .FefferyWindowSize import FefferyWindowSize
|
|
30
33
|
from .FefferySplit import FefferySplit
|
|
@@ -41,6 +44,7 @@ __all__ = [
|
|
|
41
44
|
"FefferyExternalCss",
|
|
42
45
|
"FefferySetTitle",
|
|
43
46
|
"FefferyCaptcha",
|
|
47
|
+
"FefferyCountDown",
|
|
44
48
|
"FefferyExecuteJs",
|
|
45
49
|
"FefferyExtraSpinner",
|
|
46
50
|
"FefferyGuide",
|
|
@@ -51,6 +55,7 @@ __all__ = [
|
|
|
51
55
|
"FefferyScrollbars",
|
|
52
56
|
"FefferyShortcutPanel",
|
|
53
57
|
"FefferySyntaxHighlighter",
|
|
58
|
+
"FefferyTimeout",
|
|
54
59
|
"FefferyTopProgress",
|
|
55
60
|
"FefferyVirtualList",
|
|
56
61
|
"FefferyDiv",
|
|
@@ -58,6 +63,7 @@ __all__ = [
|
|
|
58
63
|
"FefferyGeolocation",
|
|
59
64
|
"FefferyIdle",
|
|
60
65
|
"FefferyInViewport",
|
|
66
|
+
"FefferyKeyPress",
|
|
61
67
|
"FefferyResponsive",
|
|
62
68
|
"FefferyWindowSize",
|
|
63
69
|
"FefferySplit",
|