feffery_utils_components 0.1.22 → 0.1.24

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 (31) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +3 -3
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/{FefferyLazyLoadImage.py → FefferyListenScroll.py} +9 -17
  5. package/build/lib/feffery_utils_components/FefferyListenUnload.py +43 -0
  6. package/build/lib/feffery_utils_components/FefferyMousePosition.py +43 -0
  7. package/build/lib/feffery_utils_components/{FefferyAnimated.py → FefferyUnmount.py} +9 -15
  8. package/build/lib/feffery_utils_components/_imports_.py +6 -0
  9. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +8 -8
  10. package/build/lib/feffery_utils_components/metadata.json +163 -0
  11. package/build/lib/feffery_utils_components/package-info.json +1 -1
  12. package/feffery_utils_components/FefferyListenScroll.py +45 -0
  13. package/feffery_utils_components/FefferyListenUnload.py +43 -0
  14. package/feffery_utils_components/FefferyMousePosition.py +43 -0
  15. package/feffery_utils_components/FefferyUnmount.py +45 -0
  16. package/feffery_utils_components/_imports_.py +6 -0
  17. package/feffery_utils_components/feffery_utils_components.min.js +8 -8
  18. package/feffery_utils_components/metadata.json +163 -0
  19. package/feffery_utils_components/package-info.json +1 -1
  20. package/package.json +1 -1
  21. package/src/FefferyUtilsComponents.jl +6 -3
  22. package/src/jl/''_fefferylistenscroll.jl +25 -0
  23. package/src/jl/''_fefferylistenunload.jl +24 -0
  24. package/src/jl/''_fefferymouseposition.jl +24 -0
  25. package/src/jl/''_fefferyunmount.jl +31 -0
  26. package/src/lib/components/listeners/FefferyListenScroll.react.js +69 -0
  27. package/src/lib/components/listeners/FefferyListenUnload.react.js +68 -0
  28. package/src/lib/components/listeners/FefferyMousePosition.react.js +72 -0
  29. package/src/lib/index.js +7 -1
  30. package/usage.py +30 -19
  31. package/build/lib/feffery_utils_components/FefferySyntaxHighlighter.py +0 -58
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyUtilsComponents
2
2
  Title: Build more utility components for Plotly Dash.
3
- Version: 0.1.22
3
+ Version: 0.1.24
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -50,6 +50,9 @@ export(''FefferyGeolocation)
50
50
  export(''FefferyIdle)
51
51
  export(''FefferyInViewport)
52
52
  export(''FefferyKeyPress)
53
+ export(''FefferyListenScroll)
54
+ export(''FefferyListenUnload)
55
+ export(''FefferyMousePosition)
53
56
  export(''FefferyResponsive)
54
57
  export(''FefferyWindowSize)
55
58
  export(''FefferySortableContainer)
@@ -57,6 +60,3 @@ export(''FefferySortableItem)
57
60
  export(''FefferySplit)
58
61
  export(''FefferySplitPane)
59
62
  export(''FefferySessionStorage)
60
- export(FefferyAnimated)
61
- export(FefferyLazyLoadImage)
62
- export(FefferySyntaxHighlighter)
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.1.22"
5
+ version = "0.1.24"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -3,18 +3,14 @@
3
3
  from dash.development.base_component import Component, _explicitize_args
4
4
 
5
5
 
6
- class FefferyLazyLoadImage(Component):
7
- """A FefferyLazyLoadImage component.
6
+ class FefferyListenScroll(Component):
7
+ """A FefferyListenScroll component.
8
8
 
9
9
 
10
10
  Keyword arguments:
11
11
 
12
12
  - id (string; optional)
13
13
 
14
- - alt (string; optional)
15
-
16
- - height (string | number; optional)
17
-
18
14
  - loading_state (dict; optional)
19
15
 
20
16
  `loading_state` is a dict with keys:
@@ -28,26 +24,22 @@ Keyword arguments:
28
24
  - prop_name (string; optional):
29
25
  Holds which property is loading.
30
26
 
31
- - placeholderSrc (string; optional)
32
-
33
- - src (string; optional)
34
-
35
- - threshold (number; default 100)
27
+ - position (dict; optional)
36
28
 
37
- - width (string | number; optional)"""
29
+ - target (string; optional)"""
38
30
  _children_props = []
39
31
  _base_nodes = ['children']
40
32
  _namespace = 'feffery_utils_components'
41
- _type = 'FefferyLazyLoadImage'
33
+ _type = 'FefferyListenScroll'
42
34
  @_explicitize_args
43
- def __init__(self, id=Component.UNDEFINED, alt=Component.UNDEFINED, height=Component.UNDEFINED, width=Component.UNDEFINED, src=Component.UNDEFINED, placeholderSrc=Component.UNDEFINED, threshold=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
44
- self._prop_names = ['id', 'alt', 'height', 'loading_state', 'placeholderSrc', 'src', 'threshold', 'width']
35
+ def __init__(self, id=Component.UNDEFINED, target=Component.UNDEFINED, position=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
+ self._prop_names = ['id', 'loading_state', 'position', 'target']
45
37
  self._valid_wildcard_attributes = []
46
- self.available_properties = ['id', 'alt', 'height', 'loading_state', 'placeholderSrc', 'src', 'threshold', 'width']
38
+ self.available_properties = ['id', 'loading_state', 'position', 'target']
47
39
  self.available_wildcard_properties = []
48
40
  _explicit_args = kwargs.pop('_explicit_args')
49
41
  _locals = locals()
50
42
  _locals.update(kwargs) # For wildcard attrs and excess named props
51
43
  args = {k: _locals[k] for k in _explicit_args}
52
44
 
53
- super(FefferyLazyLoadImage, self).__init__(**args)
45
+ super(FefferyListenScroll, self).__init__(**args)
@@ -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)
@@ -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 FefferyMousePosition(Component):
7
+ """A FefferyMousePosition 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
+ - position (dict; optional)"""
28
+ _children_props = []
29
+ _base_nodes = ['children']
30
+ _namespace = 'feffery_utils_components'
31
+ _type = 'FefferyMousePosition'
32
+ @_explicitize_args
33
+ def __init__(self, id=Component.UNDEFINED, position=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
34
+ self._prop_names = ['id', 'loading_state', 'position']
35
+ self._valid_wildcard_attributes = []
36
+ self.available_properties = ['id', 'loading_state', 'position']
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(FefferyMousePosition, self).__init__(**args)
@@ -3,8 +3,8 @@
3
3
  from dash.development.base_component import Component, _explicitize_args
4
4
 
5
5
 
6
- class FefferyAnimated(Component):
7
- """A FefferyAnimated component.
6
+ class FefferyUnmount(Component):
7
+ """A FefferyUnmount component.
8
8
 
9
9
 
10
10
  Keyword arguments:
@@ -13,11 +13,7 @@ Keyword arguments:
13
13
 
14
14
  - id (string; optional)
15
15
 
16
- - animate (dict; optional)
17
-
18
- - className (string; optional)
19
-
20
- - initial (dict; optional)
16
+ - isUnmount (boolean; optional)
21
17
 
22
18
  - loading_state (dict; optional)
23
19
 
@@ -30,22 +26,20 @@ Keyword arguments:
30
26
  Determines if the component is loading or not.
31
27
 
32
28
  - prop_name (string; optional):
33
- Holds which property is loading.
34
-
35
- - style (dict; optional)"""
29
+ Holds which property is loading."""
36
30
  _children_props = []
37
31
  _base_nodes = ['children']
38
32
  _namespace = 'feffery_utils_components'
39
- _type = 'FefferyAnimated'
33
+ _type = 'FefferyUnmount'
40
34
  @_explicitize_args
41
- def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, initial=Component.UNDEFINED, animate=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
- self._prop_names = ['children', 'id', 'animate', 'className', 'initial', 'loading_state', 'style']
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']
43
37
  self._valid_wildcard_attributes = []
44
- self.available_properties = ['children', 'id', 'animate', 'className', 'initial', 'loading_state', 'style']
38
+ self.available_properties = ['children', 'id', 'isUnmount', 'loading_state']
45
39
  self.available_wildcard_properties = []
46
40
  _explicit_args = kwargs.pop('_explicit_args')
47
41
  _locals = locals()
48
42
  _locals.update(kwargs) # For wildcard attrs and excess named props
49
43
  args = {k: _locals[k] for k in _explicit_args if k != 'children'}
50
44
 
51
- super(FefferyAnimated, self).__init__(children=children, **args)
45
+ super(FefferyUnmount, self).__init__(children=children, **args)
@@ -48,6 +48,9 @@ from .FefferyGeolocation import FefferyGeolocation
48
48
  from .FefferyIdle import FefferyIdle
49
49
  from .FefferyInViewport import FefferyInViewport
50
50
  from .FefferyKeyPress import FefferyKeyPress
51
+ from .FefferyListenScroll import FefferyListenScroll
52
+ from .FefferyListenUnload import FefferyListenUnload
53
+ from .FefferyMousePosition import FefferyMousePosition
51
54
  from .FefferyResponsive import FefferyResponsive
52
55
  from .FefferyWindowSize import FefferyWindowSize
53
56
  from .FefferySortableContainer import FefferySortableContainer
@@ -107,6 +110,9 @@ __all__ = [
107
110
  "FefferyIdle",
108
111
  "FefferyInViewport",
109
112
  "FefferyKeyPress",
113
+ "FefferyListenScroll",
114
+ "FefferyListenUnload",
115
+ "FefferyMousePosition",
110
116
  "FefferyResponsive",
111
117
  "FefferyWindowSize",
112
118
  "FefferySortableContainer",