feffery_utils_components 0.1.23 → 0.1.25

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 (29) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +2 -4
  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/FefferyMousePosition.py +43 -0
  6. package/build/lib/feffery_utils_components/FefferyShortcutPanel.py +31 -3
  7. package/build/lib/feffery_utils_components/_imports_.py +4 -0
  8. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +8 -8
  9. package/build/lib/feffery_utils_components/metadata.json +168 -0
  10. package/build/lib/feffery_utils_components/package-info.json +1 -1
  11. package/feffery_utils_components/FefferyListenScroll.py +45 -0
  12. package/feffery_utils_components/FefferyMousePosition.py +43 -0
  13. package/feffery_utils_components/FefferyShortcutPanel.py +31 -3
  14. package/feffery_utils_components/_imports_.py +4 -0
  15. package/feffery_utils_components/feffery_utils_components.min.js +8 -8
  16. package/feffery_utils_components/metadata.json +168 -0
  17. package/feffery_utils_components/package-info.json +1 -1
  18. package/package.json +1 -1
  19. package/src/FefferyUtilsComponents.jl +5 -3
  20. package/src/jl/''_fefferylistenscroll.jl +25 -0
  21. package/src/jl/''_fefferymouseposition.jl +24 -0
  22. package/src/jl/''_fefferyshortcutpanel.jl +15 -1
  23. package/src/lib/components/FefferyShortcutPanel.react.js +82 -12
  24. package/src/lib/components/listeners/FefferyListenScroll.react.js +69 -0
  25. package/src/lib/components/listeners/FefferyMousePosition.react.js +72 -0
  26. package/src/lib/index.js +5 -1
  27. package/usage.py +47 -17
  28. package/build/lib/feffery_utils_components/FefferyAnimated.py +0 -51
  29. 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.23
3
+ Version: 0.1.25
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -50,7 +50,9 @@ export(''FefferyGeolocation)
50
50
  export(''FefferyIdle)
51
51
  export(''FefferyInViewport)
52
52
  export(''FefferyKeyPress)
53
+ export(''FefferyListenScroll)
53
54
  export(''FefferyListenUnload)
55
+ export(''FefferyMousePosition)
54
56
  export(''FefferyResponsive)
55
57
  export(''FefferyWindowSize)
56
58
  export(''FefferySortableContainer)
@@ -58,7 +60,3 @@ export(''FefferySortableItem)
58
60
  export(''FefferySplit)
59
61
  export(''FefferySplitPane)
60
62
  export(''FefferySessionStorage)
61
- export(FefferyAnimated)
62
- export(FefferyLazyLoadImage)
63
- export(FefferySyntaxHighlighter)
64
- export(FefferyUnmount)
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.23"
5
+ version = "0.1.25"
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 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)
@@ -52,6 +52,34 @@ Keyword arguments:
52
52
 
53
53
  - openHotkey (string; default 'cmd+k,ctrl+k')
54
54
 
55
+ - panelStyles (dict; optional)
56
+
57
+ `panelStyles` is a dict with keys:
58
+
59
+ - accentColor (string; optional)
60
+
61
+ - actionsHeight (string; optional)
62
+
63
+ - fontSize (string; optional)
64
+
65
+ - groupTextColor (string; optional)
66
+
67
+ - overflowBackground (string; optional)
68
+
69
+ - secondaryBackgroundColor (string; optional)
70
+
71
+ - secondaryTextColor (string; optional)
72
+
73
+ - selectedBackground (string; optional)
74
+
75
+ - textColor (string; optional)
76
+
77
+ - top (string; optional)
78
+
79
+ - width (string; optional)
80
+
81
+ - zIndex (number; optional)
82
+
55
83
  - placeholder (string; optional)
56
84
 
57
85
  - searchValue (string; optional)
@@ -70,10 +98,10 @@ Keyword arguments:
70
98
  _namespace = 'feffery_utils_components'
71
99
  _type = 'FefferyShortcutPanel'
72
100
  @_explicitize_args
73
- def __init__(self, id=Component.UNDEFINED, locale=Component.UNDEFINED, data=Component.REQUIRED, triggeredHotkey=Component.UNDEFINED, placeholder=Component.UNDEFINED, openHotkey=Component.UNDEFINED, theme=Component.UNDEFINED, open=Component.UNDEFINED, close=Component.UNDEFINED, searchValue=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
74
- self._prop_names = ['id', 'close', 'data', 'loading_state', 'locale', 'open', 'openHotkey', 'placeholder', 'searchValue', 'theme', 'triggeredHotkey']
101
+ def __init__(self, id=Component.UNDEFINED, locale=Component.UNDEFINED, data=Component.REQUIRED, triggeredHotkey=Component.UNDEFINED, placeholder=Component.UNDEFINED, openHotkey=Component.UNDEFINED, theme=Component.UNDEFINED, open=Component.UNDEFINED, close=Component.UNDEFINED, panelStyles=Component.UNDEFINED, searchValue=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
102
+ self._prop_names = ['id', 'close', 'data', 'loading_state', 'locale', 'open', 'openHotkey', 'panelStyles', 'placeholder', 'searchValue', 'theme', 'triggeredHotkey']
75
103
  self._valid_wildcard_attributes = []
76
- self.available_properties = ['id', 'close', 'data', 'loading_state', 'locale', 'open', 'openHotkey', 'placeholder', 'searchValue', 'theme', 'triggeredHotkey']
104
+ self.available_properties = ['id', 'close', 'data', 'loading_state', 'locale', 'open', 'openHotkey', 'panelStyles', 'placeholder', 'searchValue', 'theme', 'triggeredHotkey']
77
105
  self.available_wildcard_properties = []
78
106
  _explicit_args = kwargs.pop('_explicit_args')
79
107
  _locals = locals()
@@ -48,7 +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
51
52
  from .FefferyListenUnload import FefferyListenUnload
53
+ from .FefferyMousePosition import FefferyMousePosition
52
54
  from .FefferyResponsive import FefferyResponsive
53
55
  from .FefferyWindowSize import FefferyWindowSize
54
56
  from .FefferySortableContainer import FefferySortableContainer
@@ -108,7 +110,9 @@ __all__ = [
108
110
  "FefferyIdle",
109
111
  "FefferyInViewport",
110
112
  "FefferyKeyPress",
113
+ "FefferyListenScroll",
111
114
  "FefferyListenUnload",
115
+ "FefferyMousePosition",
112
116
  "FefferyResponsive",
113
117
  "FefferyWindowSize",
114
118
  "FefferySortableContainer",