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.
Files changed (27) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +1 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/FefferyCaptcha.py +5 -3
  5. package/build/lib/feffery_utils_components/FefferyCountDown.py +50 -0
  6. package/build/lib/feffery_utils_components/FefferyDiv.py +7 -5
  7. package/build/lib/feffery_utils_components/FefferyKeyPress.py +48 -0
  8. package/{feffery_utils_components/FefferySliderColorPicker.py → build/lib/feffery_utils_components/FefferyTimeout.py} +9 -11
  9. package/build/lib/feffery_utils_components/_imports_.py +6 -0
  10. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +1 -1
  11. package/build/lib/feffery_utils_components/metadata.json +216 -2
  12. package/build/lib/feffery_utils_components/package-info.json +1 -1
  13. package/feffery_utils_components/FefferyCountDown.py +50 -0
  14. package/feffery_utils_components/FefferyDiv.py +1 -1
  15. package/feffery_utils_components/_imports_.py +2 -0
  16. package/feffery_utils_components/feffery_utils_components.min.js +1 -1
  17. package/feffery_utils_components/metadata.json +79 -1
  18. package/feffery_utils_components/package-info.json +2 -1
  19. package/package.json +2 -1
  20. package/src/FefferyUtilsComponents.jl +4 -3
  21. package/src/jl/''_fefferycountdown.jl +26 -0
  22. package/src/jl/''_fefferydiv.jl +1 -1
  23. package/src/lib/components/FefferyCountDown.react.js +92 -0
  24. package/src/lib/components/listeners/FefferyDiv.react.js +11 -2
  25. package/src/lib/index.js +3 -1
  26. package/tests/FefferyCountDownTest/app.py +53 -0
  27. package/tests/FefferyDivHoverTest/app.py +5 -1
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyUtilsComponents
2
2
  Title: Build more utility components for Plotly Dash.
3
- Version: 0.0.21
3
+ Version: 0.0.23
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -10,6 +10,7 @@ export(''FefferyWheelColorPicker)
10
10
  export(''FefferyExternalCss)
11
11
  export(''FefferySetTitle)
12
12
  export(''FefferyCaptcha)
13
+ export(''FefferyCountDown)
13
14
  export(''FefferyExecuteJs)
14
15
  export(''FefferyExtraSpinner)
15
16
  export(''FefferyGuide)
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyUtilsComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-ea89cd6d0d23"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.0.21"
5
+ version = "0.0.23"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -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
- - mouseEnterCounts (number; default 0)
53
+ - mouseEnterCount (number; default 0)
52
54
 
53
- - mouseLeaveCounts (number; default 0)
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, mouseEnterCounts=Component.UNDEFINED, mouseLeaveCounts=Component.UNDEFINED, nClicks=Component.UNDEFINED, nDoubleClicks=Component.UNDEFINED, enableListenContextMenu=Component.UNDEFINED, contextMenuEvent=Component.UNDEFINED, isHovering=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
66
- self._prop_names = ['children', 'id', '_height', '_width', 'className', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'isHovering', 'loading_state', 'mouseEnterCounts', 'mouseLeaveCounts', 'nClicks', 'nDoubleClicks', 'style']
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', 'mouseEnterCounts', 'mouseLeaveCounts', 'nClicks', 'nDoubleClicks', 'style']
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 FefferySliderColorPicker(Component):
7
- """A FefferySliderColorPicker component.
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
- - className (string; optional)
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
- - style (dict; optional)"""
29
+ - timeoutCount (number; default 0)"""
32
30
  _children_props = []
33
31
  _base_nodes = ['children']
34
32
  _namespace = 'feffery_utils_components'
35
- _type = 'FefferySliderColorPicker'
33
+ _type = 'FefferyTimeout'
36
34
  @_explicitize_args
37
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, color=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
38
- self._prop_names = ['id', 'className', 'color', 'loading_state', 'style']
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', 'className', 'color', 'loading_state', 'style']
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(FefferySliderColorPicker, self).__init__(**args)
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",