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.
- package/DESCRIPTION +1 -1
- package/NAMESPACE +2 -4
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/{FefferyLazyLoadImage.py → FefferyListenScroll.py} +9 -17
- package/build/lib/feffery_utils_components/FefferyMousePosition.py +43 -0
- package/build/lib/feffery_utils_components/FefferyShortcutPanel.py +31 -3
- package/build/lib/feffery_utils_components/_imports_.py +4 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +8 -8
- package/build/lib/feffery_utils_components/metadata.json +168 -0
- package/build/lib/feffery_utils_components/package-info.json +1 -1
- package/feffery_utils_components/FefferyListenScroll.py +45 -0
- package/feffery_utils_components/FefferyMousePosition.py +43 -0
- package/feffery_utils_components/FefferyShortcutPanel.py +31 -3
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/feffery_utils_components.min.js +8 -8
- package/feffery_utils_components/metadata.json +168 -0
- package/feffery_utils_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/FefferyUtilsComponents.jl +5 -3
- package/src/jl/''_fefferylistenscroll.jl +25 -0
- package/src/jl/''_fefferymouseposition.jl +24 -0
- package/src/jl/''_fefferyshortcutpanel.jl +15 -1
- package/src/lib/components/FefferyShortcutPanel.react.js +82 -12
- package/src/lib/components/listeners/FefferyListenScroll.react.js +69 -0
- package/src/lib/components/listeners/FefferyMousePosition.react.js +72 -0
- package/src/lib/index.js +5 -1
- package/usage.py +47 -17
- package/build/lib/feffery_utils_components/FefferyAnimated.py +0 -51
- package/build/lib/feffery_utils_components/FefferySyntaxHighlighter.py +0 -58
package/DESCRIPTION
CHANGED
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
package/build/lib/feffery_utils_components/{FefferyLazyLoadImage.py → FefferyListenScroll.py}
RENAMED
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
from dash.development.base_component import Component, _explicitize_args
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class
|
|
7
|
-
"""A
|
|
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
|
-
-
|
|
32
|
-
|
|
33
|
-
- src (string; optional)
|
|
34
|
-
|
|
35
|
-
- threshold (number; default 100)
|
|
27
|
+
- position (dict; optional)
|
|
36
28
|
|
|
37
|
-
-
|
|
29
|
+
- target (string; optional)"""
|
|
38
30
|
_children_props = []
|
|
39
31
|
_base_nodes = ['children']
|
|
40
32
|
_namespace = 'feffery_utils_components'
|
|
41
|
-
_type = '
|
|
33
|
+
_type = 'FefferyListenScroll'
|
|
42
34
|
@_explicitize_args
|
|
43
|
-
def __init__(self, id=Component.UNDEFINED,
|
|
44
|
-
self._prop_names = ['id', '
|
|
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', '
|
|
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(
|
|
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",
|