feffery_utils_components 0.0.20 → 0.0.21

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 (38) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +2 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/FefferyDiv.py +5 -3
  5. package/build/lib/feffery_utils_components/FefferyDocumentVisibility.py +46 -0
  6. package/build/lib/feffery_utils_components/FefferyExternalCss.py +48 -0
  7. package/build/lib/feffery_utils_components/FefferyGeolocation.py +46 -0
  8. package/build/lib/feffery_utils_components/FefferyIdle.py +48 -0
  9. package/build/lib/feffery_utils_components/FefferyResponsive.py +46 -0
  10. package/build/lib/feffery_utils_components/FefferySetTitle.py +46 -0
  11. package/build/lib/feffery_utils_components/FefferyWindowSize.py +48 -0
  12. package/build/lib/feffery_utils_components/_imports_.py +14 -0
  13. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +1 -1
  14. package/build/lib/feffery_utils_components/metadata.json +428 -0
  15. package/build/lib/feffery_utils_components/package-info.json +2 -1
  16. package/feffery_utils_components/FefferyCaptcha.py +5 -3
  17. package/feffery_utils_components/FefferyDiv.py +7 -5
  18. package/feffery_utils_components/FefferyKeyPress.py +48 -0
  19. package/feffery_utils_components/FefferyTimeout.py +48 -0
  20. package/feffery_utils_components/_imports_.py +4 -0
  21. package/feffery_utils_components/feffery_utils_components.min.js +1 -1
  22. package/feffery_utils_components/metadata.json +146 -2
  23. package/feffery_utils_components/package-info.json +1 -1
  24. package/package.json +1 -1
  25. package/src/FefferyUtilsComponents.jl +5 -3
  26. package/src/jl/''_fefferycaptcha.jl +2 -1
  27. package/src/jl/''_fefferydiv.jl +4 -3
  28. package/src/jl/''_fefferykeypress.jl +25 -0
  29. package/src/jl/''_fefferytimeout.jl +25 -0
  30. package/src/lib/components/FefferyCaptcha.react.js +14 -2
  31. package/src/lib/components/FefferyTimeout.react.js +68 -0
  32. package/src/lib/components/listeners/FefferyDiv.react.js +20 -11
  33. package/src/lib/components/listeners/FefferyKeyPress.react.js +69 -0
  34. package/src/lib/index.js +5 -1
  35. package/tests/FefferyCaptchaRefreshRef/app.py +49 -0
  36. package/tests/FefferyClickAwayTest/app.py +41 -0
  37. package/tests/FefferyKeyPressTest/app.py +43 -0
  38. package/tests/FefferyTimeoutTest/app.py +63 -0
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.20
3
+ Version: 0.0.21
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -20,6 +20,7 @@ export(''FefferyScroll)
20
20
  export(''FefferyScrollbars)
21
21
  export(''FefferyShortcutPanel)
22
22
  export(''FefferySyntaxHighlighter)
23
+ export(''FefferyTimeout)
23
24
  export(''FefferyTopProgress)
24
25
  export(''FefferyVirtualList)
25
26
  export(''FefferyDiv)
@@ -27,6 +28,7 @@ export(''FefferyDocumentVisibility)
27
28
  export(''FefferyGeolocation)
28
29
  export(''FefferyIdle)
29
30
  export(''FefferyInViewport)
31
+ export(''FefferyKeyPress)
30
32
  export(''FefferyResponsive)
31
33
  export(''FefferyWindowSize)
32
34
  export(''FefferySplit)
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.20"
5
+ version = "0.0.21"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -33,6 +33,8 @@ Keyword arguments:
33
33
 
34
34
  - enableListenContextMenu (boolean; default False)
35
35
 
36
+ - isHovering (boolean; optional)
37
+
36
38
  - loading_state (dict; optional)
37
39
 
38
40
  `loading_state` is a dict with keys:
@@ -60,10 +62,10 @@ Keyword arguments:
60
62
  _namespace = 'feffery_utils_components'
61
63
  _type = 'FefferyDiv'
62
64
  @_explicitize_args
63
- 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, loading_state=Component.UNDEFINED, **kwargs):
64
- self._prop_names = ['children', 'id', '_height', '_width', 'className', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'loading_state', 'mouseEnterCounts', 'mouseLeaveCounts', 'nClicks', 'nDoubleClicks', 'style']
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']
65
67
  self._valid_wildcard_attributes = []
66
- self.available_properties = ['children', 'id', '_height', '_width', 'className', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'loading_state', 'mouseEnterCounts', 'mouseLeaveCounts', 'nClicks', 'nDoubleClicks', 'style']
68
+ self.available_properties = ['children', 'id', '_height', '_width', 'className', 'contextMenuEvent', 'debounceWait', 'enableListenContextMenu', 'isHovering', 'loading_state', 'mouseEnterCounts', 'mouseLeaveCounts', 'nClicks', 'nDoubleClicks', 'style']
67
69
  self.available_wildcard_properties = []
68
70
  _explicit_args = kwargs.pop('_explicit_args')
69
71
  _locals = locals()
@@ -0,0 +1,46 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyDocumentVisibility(Component):
7
+ """A FefferyDocumentVisibility component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - documentVisibility (a value equal to: 'visible', 'hidden'; optional)
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
+ _children_props = []
29
+ _base_nodes = ['children']
30
+ _namespace = 'feffery_utils_components'
31
+ _type = 'FefferyDocumentVisibility'
32
+ @_explicitize_args
33
+ def __init__(self, id=Component.UNDEFINED, documentVisibility=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
34
+ self._prop_names = ['id', 'documentVisibility', 'loading_state']
35
+ self._valid_wildcard_attributes = []
36
+ self.available_properties = ['id', 'documentVisibility', 'loading_state']
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 if k != 'children'}
42
+ for k in []:
43
+ if k not in args:
44
+ raise TypeError(
45
+ 'Required argument `' + k + '` was not specified.')
46
+ super(FefferyDocumentVisibility, self).__init__(**args)
@@ -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 FefferyExternalCss(Component):
7
+ """A FefferyExternalCss component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - cssUrl (string; default '')
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
+ - recentlyStatus (a value equal to: 'unset', 'loading', 'ready', 'error'; optional)"""
30
+ _children_props = []
31
+ _base_nodes = ['children']
32
+ _namespace = 'feffery_utils_components'
33
+ _type = 'FefferyExternalCss'
34
+ @_explicitize_args
35
+ def __init__(self, id=Component.UNDEFINED, cssUrl=Component.UNDEFINED, recentlyStatus=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
+ self._prop_names = ['id', 'cssUrl', 'loading_state', 'recentlyStatus']
37
+ self._valid_wildcard_attributes = []
38
+ self.available_properties = ['id', 'cssUrl', 'loading_state', 'recentlyStatus']
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 []:
45
+ if k not in args:
46
+ raise TypeError(
47
+ 'Required argument `' + k + '` was not specified.')
48
+ super(FefferyExternalCss, self).__init__(**args)
@@ -0,0 +1,46 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyGeolocation(Component):
7
+ """A FefferyGeolocation component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - geoLocationInfo (dict; optional)
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
+ _children_props = []
29
+ _base_nodes = ['children']
30
+ _namespace = 'feffery_utils_components'
31
+ _type = 'FefferyGeolocation'
32
+ @_explicitize_args
33
+ def __init__(self, id=Component.UNDEFINED, geoLocationInfo=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
34
+ self._prop_names = ['id', 'geoLocationInfo', 'loading_state']
35
+ self._valid_wildcard_attributes = []
36
+ self.available_properties = ['id', 'geoLocationInfo', 'loading_state']
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 if k != 'children'}
42
+ for k in []:
43
+ if k not in args:
44
+ raise TypeError(
45
+ 'Required argument `' + k + '` was not specified.')
46
+ super(FefferyGeolocation, self).__init__(**args)
@@ -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 FefferyIdle(Component):
7
+ """A FefferyIdle component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - isIdle (boolean; optional)
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
+ - waitDuration (number; default 3000)"""
30
+ _children_props = []
31
+ _base_nodes = ['children']
32
+ _namespace = 'feffery_utils_components'
33
+ _type = 'FefferyIdle'
34
+ @_explicitize_args
35
+ def __init__(self, id=Component.UNDEFINED, isIdle=Component.UNDEFINED, waitDuration=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
+ self._prop_names = ['id', 'isIdle', 'loading_state', 'waitDuration']
37
+ self._valid_wildcard_attributes = []
38
+ self.available_properties = ['id', 'isIdle', 'loading_state', 'waitDuration']
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 []:
45
+ if k not in args:
46
+ raise TypeError(
47
+ 'Required argument `' + k + '` was not specified.')
48
+ super(FefferyIdle, self).__init__(**args)
@@ -0,0 +1,46 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyResponsive(Component):
7
+ """A FefferyResponsive 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
+ - responsive (dict; optional)"""
28
+ _children_props = []
29
+ _base_nodes = ['children']
30
+ _namespace = 'feffery_utils_components'
31
+ _type = 'FefferyResponsive'
32
+ @_explicitize_args
33
+ def __init__(self, id=Component.UNDEFINED, responsive=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
34
+ self._prop_names = ['id', 'loading_state', 'responsive']
35
+ self._valid_wildcard_attributes = []
36
+ self.available_properties = ['id', 'loading_state', 'responsive']
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 if k != 'children'}
42
+ for k in []:
43
+ if k not in args:
44
+ raise TypeError(
45
+ 'Required argument `' + k + '` was not specified.')
46
+ super(FefferyResponsive, self).__init__(**args)
@@ -0,0 +1,46 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferySetTitle(Component):
7
+ """A FefferySetTitle 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
+ - title (string; optional)"""
28
+ _children_props = []
29
+ _base_nodes = ['children']
30
+ _namespace = 'feffery_utils_components'
31
+ _type = 'FefferySetTitle'
32
+ @_explicitize_args
33
+ def __init__(self, id=Component.UNDEFINED, title=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
34
+ self._prop_names = ['id', 'loading_state', 'title']
35
+ self._valid_wildcard_attributes = []
36
+ self.available_properties = ['id', 'loading_state', 'title']
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 if k != 'children'}
42
+ for k in []:
43
+ if k not in args:
44
+ raise TypeError(
45
+ 'Required argument `' + k + '` was not specified.')
46
+ super(FefferySetTitle, self).__init__(**args)
@@ -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 FefferyWindowSize(Component):
7
+ """A FefferyWindowSize component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - _height (number; optional)
15
+
16
+ - _width (number; 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 = 'FefferyWindowSize'
34
+ @_explicitize_args
35
+ def __init__(self, id=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
+ self._prop_names = ['id', '_height', '_width', 'loading_state']
37
+ self._valid_wildcard_attributes = []
38
+ self.available_properties = ['id', '_height', '_width', '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
+ for k in []:
45
+ if k not in args:
46
+ raise TypeError(
47
+ 'Required argument `' + k + '` was not specified.')
48
+ super(FefferyWindowSize, self).__init__(**args)
@@ -5,6 +5,8 @@ from .FefferyHexColorPicker import FefferyHexColorPicker
5
5
  from .FefferyRgbColorPicker import FefferyRgbColorPicker
6
6
  from .FefferyTwitterColorPicker import FefferyTwitterColorPicker
7
7
  from .FefferyWheelColorPicker import FefferyWheelColorPicker
8
+ from .FefferyExternalCss import FefferyExternalCss
9
+ from .FefferySetTitle import FefferySetTitle
8
10
  from .FefferyCaptcha import FefferyCaptcha
9
11
  from .FefferyExecuteJs import FefferyExecuteJs
10
12
  from .FefferyExtraSpinner import FefferyExtraSpinner
@@ -19,7 +21,12 @@ from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
19
21
  from .FefferyTopProgress import FefferyTopProgress
20
22
  from .FefferyVirtualList import FefferyVirtualList
21
23
  from .FefferyDiv import FefferyDiv
24
+ from .FefferyDocumentVisibility import FefferyDocumentVisibility
25
+ from .FefferyGeolocation import FefferyGeolocation
26
+ from .FefferyIdle import FefferyIdle
22
27
  from .FefferyInViewport import FefferyInViewport
28
+ from .FefferyResponsive import FefferyResponsive
29
+ from .FefferyWindowSize import FefferyWindowSize
23
30
  from .FefferySplit import FefferySplit
24
31
  from .FefferySplitPane import FefferySplitPane
25
32
 
@@ -31,6 +38,8 @@ __all__ = [
31
38
  "FefferyRgbColorPicker",
32
39
  "FefferyTwitterColorPicker",
33
40
  "FefferyWheelColorPicker",
41
+ "FefferyExternalCss",
42
+ "FefferySetTitle",
34
43
  "FefferyCaptcha",
35
44
  "FefferyExecuteJs",
36
45
  "FefferyExtraSpinner",
@@ -45,7 +54,12 @@ __all__ = [
45
54
  "FefferyTopProgress",
46
55
  "FefferyVirtualList",
47
56
  "FefferyDiv",
57
+ "FefferyDocumentVisibility",
58
+ "FefferyGeolocation",
59
+ "FefferyIdle",
48
60
  "FefferyInViewport",
61
+ "FefferyResponsive",
62
+ "FefferyWindowSize",
49
63
  "FefferySplit",
50
64
  "FefferySplitPane"
51
65
  ]