feffery_utils_components 0.1.26 → 0.1.28

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 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/FefferyCookie.py +58 -0
  5. package/build/lib/feffery_utils_components/FefferyDiv.py +19 -5
  6. package/build/lib/feffery_utils_components/FefferyLocation.py +59 -0
  7. package/build/lib/feffery_utils_components/_imports_.py +4 -0
  8. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +5 -5
  9. package/build/lib/feffery_utils_components/metadata.json +312 -0
  10. package/build/lib/feffery_utils_components/package-info.json +1 -1
  11. package/feffery_utils_components/FefferyCookie.py +58 -0
  12. package/feffery_utils_components/FefferyDiv.py +19 -5
  13. package/feffery_utils_components/FefferyLocation.py +59 -0
  14. package/feffery_utils_components/_imports_.py +4 -0
  15. package/feffery_utils_components/feffery_utils_components.min.js +5 -5
  16. package/feffery_utils_components/metadata.json +312 -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/''_fefferycookie.jl +29 -0
  21. package/src/jl/''_fefferydiv.jl +9 -2
  22. package/src/jl/''_fefferylocation.jl +16 -10
  23. package/src/lib/components/FefferyDiv.react.js +93 -2
  24. package/src/lib/components/FefferyFancyMessage.js +0 -1
  25. package/src/lib/components/listeners/FefferyLocation.react.js +99 -0
  26. package/src/lib/components/store/FefferyCookie.react.js +105 -0
  27. package/src/lib/components/styles.css +16 -1
  28. package/src/lib/index.js +5 -1
  29. package/usage.py +32 -18
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.26
3
+ Version: 0.1.28
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -53,6 +53,7 @@ export(''FefferyKeyPress)
53
53
  export(''FefferyListenPaste)
54
54
  export(''FefferyListenScroll)
55
55
  export(''FefferyListenUnload)
56
+ export(''FefferyLocation)
56
57
  export(''FefferyMousePosition)
57
58
  export(''FefferyResponsive)
58
59
  export(''FefferyWindowSize)
@@ -60,4 +61,5 @@ export(''FefferySortableContainer)
60
61
  export(''FefferySortableItem)
61
62
  export(''FefferySplit)
62
63
  export(''FefferySplitPane)
64
+ export(''FefferyCookie)
63
65
  export(''FefferySessionStorage)
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.26"
5
+ version = "0.1.28"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -0,0 +1,58 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyCookie(Component):
7
+ """A FefferyCookie component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - cookieKey (string; required)
15
+
16
+ - defaultValue (string; optional)
17
+
18
+ - expires (number; optional)
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
+
33
+ - pathname (string; default '/')
34
+
35
+ - secure (boolean; default False)
36
+
37
+ - value (string; optional)"""
38
+ _children_props = []
39
+ _base_nodes = ['children']
40
+ _namespace = 'feffery_utils_components'
41
+ _type = 'FefferyCookie'
42
+ @_explicitize_args
43
+ def __init__(self, id=Component.UNDEFINED, cookieKey=Component.REQUIRED, defaultValue=Component.UNDEFINED, value=Component.UNDEFINED, expires=Component.UNDEFINED, pathname=Component.UNDEFINED, secure=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
44
+ self._prop_names = ['id', 'cookieKey', 'defaultValue', 'expires', 'loading_state', 'pathname', 'secure', 'value']
45
+ self._valid_wildcard_attributes = []
46
+ self.available_properties = ['id', 'cookieKey', 'defaultValue', 'expires', 'loading_state', 'pathname', 'secure', 'value']
47
+ self.available_wildcard_properties = []
48
+ _explicit_args = kwargs.pop('_explicit_args')
49
+ _locals = locals()
50
+ _locals.update(kwargs) # For wildcard attrs and excess named props
51
+ args = {k: _locals[k] for k in _explicit_args}
52
+
53
+ for k in ['cookieKey']:
54
+ if k not in args:
55
+ raise TypeError(
56
+ 'Required argument `' + k + '` was not specified.')
57
+
58
+ super(FefferyCookie, self).__init__(**args)
@@ -17,6 +17,12 @@ Keyword arguments:
17
17
 
18
18
  - _width (number; optional)
19
19
 
20
+ - align (string; optional)
21
+
22
+ - border (string; optional)
23
+
24
+ - borderRadius (string | number; optional)
25
+
20
26
  - className (string | dict; optional)
21
27
 
22
28
  - clickAwayCount (number; default 0)
@@ -47,6 +53,8 @@ Keyword arguments:
47
53
 
48
54
  - isHovering (boolean; optional)
49
55
 
56
+ - justify (string; optional)
57
+
50
58
  - key (string; optional)
51
59
 
52
60
  - loading_state (dict; optional)
@@ -62,6 +70,8 @@ Keyword arguments:
62
70
  - prop_name (string; optional):
63
71
  Holds which property is loading.
64
72
 
73
+ - margin (string | number; optional)
74
+
65
75
  - mouseEnterCount (number; default 0)
66
76
 
67
77
  - mouseLeaveCount (number; default 0)
@@ -70,20 +80,24 @@ Keyword arguments:
70
80
 
71
81
  - nDoubleClicks (number; default 0)
72
82
 
83
+ - padding (string | number; optional)
84
+
73
85
  - scrollbar (a value equal to: 'default', 'simple', 'hidden'; default 'default')
74
86
 
75
- - shadow (a value equal to: 'no-shadow', 'hover-shadow', 'always-shadow'; default 'no-shadow')
87
+ - shadow (a value equal to: 'no-shadow', 'hover-shadow', 'always-shadow', 'hover-shadow-light', 'always-shadow-light'; default 'no-shadow')
88
+
89
+ - style (dict; optional)
76
90
 
77
- - style (dict; optional)"""
91
+ - textAlign (a value equal to: 'left', 'center', 'right'; optional)"""
78
92
  _children_props = []
79
93
  _base_nodes = ['children']
80
94
  _namespace = 'feffery_utils_components'
81
95
  _type = 'FefferyDiv'
82
96
  @_explicitize_args
83
- def __init__(self, children=None, id=Component.UNDEFINED, key=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, enableClickAway=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, shadow=Component.UNDEFINED, scrollbar=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
84
- self._prop_names = ['children', 'id', '_height', '_width', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'scrollbar', 'shadow', 'style']
97
+ def __init__(self, children=None, id=Component.UNDEFINED, key=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, enableClickAway=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, shadow=Component.UNDEFINED, scrollbar=Component.UNDEFINED, textAlign=Component.UNDEFINED, justify=Component.UNDEFINED, align=Component.UNDEFINED, padding=Component.UNDEFINED, margin=Component.UNDEFINED, border=Component.UNDEFINED, borderRadius=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
98
+ self._prop_names = ['children', 'id', '_height', '_width', 'align', 'border', 'borderRadius', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'justify', 'key', 'loading_state', 'margin', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'padding', 'scrollbar', 'shadow', 'style', 'textAlign']
85
99
  self._valid_wildcard_attributes = []
86
- self.available_properties = ['children', 'id', '_height', '_width', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'scrollbar', 'shadow', 'style']
100
+ self.available_properties = ['children', 'id', '_height', '_width', 'align', 'border', 'borderRadius', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'enableClickAway', 'enableListenContextMenu', 'isHovering', 'justify', 'key', 'loading_state', 'margin', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'padding', 'scrollbar', 'shadow', 'style', 'textAlign']
87
101
  self.available_wildcard_properties = []
88
102
  _explicit_args = kwargs.pop('_explicit_args')
89
103
  _locals = locals()
@@ -0,0 +1,59 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyLocation(Component):
7
+ """A FefferyLocation component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - hash (string; optional)
15
+
16
+ - host (string; optional)
17
+
18
+ - hostname (string; optional)
19
+
20
+ - href (string; optional)
21
+
22
+ - loading_state (dict; optional)
23
+
24
+ `loading_state` is a dict with keys:
25
+
26
+ - component_name (string; optional):
27
+ Holds the name of the component that is loading.
28
+
29
+ - is_loading (boolean; optional):
30
+ Determines if the component is loading or not.
31
+
32
+ - prop_name (string; optional):
33
+ Holds which property is loading.
34
+
35
+ - pathname (string; optional)
36
+
37
+ - port (string; optional)
38
+
39
+ - protocol (string; optional)
40
+
41
+ - search (string; optional)
42
+
43
+ - trigger (a value equal to: 'load', 'pushstate', 'popstate'; optional)"""
44
+ _children_props = []
45
+ _base_nodes = ['children']
46
+ _namespace = 'feffery_utils_components'
47
+ _type = 'FefferyLocation'
48
+ @_explicitize_args
49
+ def __init__(self, id=Component.UNDEFINED, href=Component.UNDEFINED, pathname=Component.UNDEFINED, search=Component.UNDEFINED, hash=Component.UNDEFINED, host=Component.UNDEFINED, hostname=Component.UNDEFINED, port=Component.UNDEFINED, protocol=Component.UNDEFINED, trigger=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
50
+ self._prop_names = ['id', 'hash', 'host', 'hostname', 'href', 'loading_state', 'pathname', 'port', 'protocol', 'search', 'trigger']
51
+ self._valid_wildcard_attributes = []
52
+ self.available_properties = ['id', 'hash', 'host', 'hostname', 'href', 'loading_state', 'pathname', 'port', 'protocol', 'search', 'trigger']
53
+ self.available_wildcard_properties = []
54
+ _explicit_args = kwargs.pop('_explicit_args')
55
+ _locals = locals()
56
+ _locals.update(kwargs) # For wildcard attrs and excess named props
57
+ args = {k: _locals[k] for k in _explicit_args}
58
+
59
+ super(FefferyLocation, self).__init__(**args)
@@ -51,6 +51,7 @@ from .FefferyKeyPress import FefferyKeyPress
51
51
  from .FefferyListenPaste import FefferyListenPaste
52
52
  from .FefferyListenScroll import FefferyListenScroll
53
53
  from .FefferyListenUnload import FefferyListenUnload
54
+ from .FefferyLocation import FefferyLocation
54
55
  from .FefferyMousePosition import FefferyMousePosition
55
56
  from .FefferyResponsive import FefferyResponsive
56
57
  from .FefferyWindowSize import FefferyWindowSize
@@ -58,6 +59,7 @@ from .FefferySortableContainer import FefferySortableContainer
58
59
  from .FefferySortableItem import FefferySortableItem
59
60
  from .FefferySplit import FefferySplit
60
61
  from .FefferySplitPane import FefferySplitPane
62
+ from .FefferyCookie import FefferyCookie
61
63
  from .FefferySessionStorage import FefferySessionStorage
62
64
 
63
65
  __all__ = [
@@ -114,6 +116,7 @@ __all__ = [
114
116
  "FefferyListenPaste",
115
117
  "FefferyListenScroll",
116
118
  "FefferyListenUnload",
119
+ "FefferyLocation",
117
120
  "FefferyMousePosition",
118
121
  "FefferyResponsive",
119
122
  "FefferyWindowSize",
@@ -121,5 +124,6 @@ __all__ = [
121
124
  "FefferySortableItem",
122
125
  "FefferySplit",
123
126
  "FefferySplitPane",
127
+ "FefferyCookie",
124
128
  "FefferySessionStorage"
125
129
  ]