feffery_utils_components 0.1.7 → 0.1.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyUtilsComponents
2
2
  Title: Build more utility components for Plotly Dash.
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -41,6 +41,7 @@ export(''FefferyIdle)
41
41
  export(''FefferyInViewport)
42
42
  export(''FefferyKeyPress)
43
43
  export(''FefferyResponsive)
44
+ export(''FefferyWebSocket)
44
45
  export(''FefferyWindowSize)
45
46
  export(''FefferySortableContainer)
46
47
  export(''FefferySortableItem)
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.7"
5
+ version = "0.1.8"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -17,6 +17,8 @@ Keyword arguments:
17
17
 
18
18
  - className (string; optional)
19
19
 
20
+ - color (string; default '#29d')
21
+
20
22
  - debug (boolean; default False)
21
23
 
22
24
  - easing (string; optional)
@@ -48,16 +50,18 @@ Keyword arguments:
48
50
 
49
51
  - spinning (boolean; default False)
50
52
 
51
- - style (dict; optional)"""
53
+ - style (dict; optional)
54
+
55
+ - zIndex (number; default 99999)"""
52
56
  _children_props = []
53
57
  _base_nodes = ['children']
54
58
  _namespace = 'feffery_utils_components'
55
59
  _type = 'FefferyTopProgress'
56
60
  @_explicitize_args
57
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, spinning=Component.UNDEFINED, minimum=Component.UNDEFINED, easing=Component.UNDEFINED, speed=Component.UNDEFINED, showSpinner=Component.UNDEFINED, debug=Component.UNDEFINED, listenPropsMode=Component.UNDEFINED, excludeProps=Component.UNDEFINED, includeProps=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
58
- self._prop_names = ['children', 'id', 'className', 'debug', 'easing', 'excludeProps', 'includeProps', 'listenPropsMode', 'loading_state', 'minimum', 'showSpinner', 'speed', 'spinning', 'style']
61
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, spinning=Component.UNDEFINED, minimum=Component.UNDEFINED, easing=Component.UNDEFINED, speed=Component.UNDEFINED, showSpinner=Component.UNDEFINED, debug=Component.UNDEFINED, listenPropsMode=Component.UNDEFINED, excludeProps=Component.UNDEFINED, includeProps=Component.UNDEFINED, color=Component.UNDEFINED, zIndex=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
62
+ self._prop_names = ['children', 'id', 'className', 'color', 'debug', 'easing', 'excludeProps', 'includeProps', 'listenPropsMode', 'loading_state', 'minimum', 'showSpinner', 'speed', 'spinning', 'style', 'zIndex']
59
63
  self._valid_wildcard_attributes = []
60
- self.available_properties = ['children', 'id', 'className', 'debug', 'easing', 'excludeProps', 'includeProps', 'listenPropsMode', 'loading_state', 'minimum', 'showSpinner', 'speed', 'spinning', 'style']
64
+ self.available_properties = ['children', 'id', 'className', 'color', 'debug', 'easing', 'excludeProps', 'includeProps', 'listenPropsMode', 'loading_state', 'minimum', 'showSpinner', 'speed', 'spinning', 'style', 'zIndex']
61
65
  self.available_wildcard_properties = []
62
66
  _explicit_args = kwargs.pop('_explicit_args')
63
67
  _locals = locals()
@@ -0,0 +1,56 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyWebSocket(Component):
7
+ """A FefferyWebSocket component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - latestMessage (string; 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
+ - message (string; optional)
30
+
31
+ - operation (a value equal to: 'connect', 'disconnect', 'send'; optional)
32
+
33
+ - socketUrl (string; required)
34
+
35
+ - state (a value equal to: 'connecting', 'open', 'closing', 'closed'; optional)"""
36
+ _children_props = []
37
+ _base_nodes = ['children']
38
+ _namespace = 'feffery_utils_components'
39
+ _type = 'FefferyWebSocket'
40
+ @_explicitize_args
41
+ def __init__(self, id=Component.UNDEFINED, socketUrl=Component.REQUIRED, operation=Component.UNDEFINED, message=Component.UNDEFINED, latestMessage=Component.UNDEFINED, state=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
+ self._prop_names = ['id', 'latestMessage', 'loading_state', 'message', 'operation', 'socketUrl', 'state']
43
+ self._valid_wildcard_attributes = []
44
+ self.available_properties = ['id', 'latestMessage', 'loading_state', 'message', 'operation', 'socketUrl', 'state']
45
+ self.available_wildcard_properties = []
46
+ _explicit_args = kwargs.pop('_explicit_args')
47
+ _locals = locals()
48
+ _locals.update(kwargs) # For wildcard attrs and excess named props
49
+ args = {k: _locals[k] for k in _explicit_args}
50
+
51
+ for k in ['socketUrl']:
52
+ if k not in args:
53
+ raise TypeError(
54
+ 'Required argument `' + k + '` was not specified.')
55
+
56
+ super(FefferyWebSocket, self).__init__(**args)
@@ -39,6 +39,7 @@ from .FefferyIdle import FefferyIdle
39
39
  from .FefferyInViewport import FefferyInViewport
40
40
  from .FefferyKeyPress import FefferyKeyPress
41
41
  from .FefferyResponsive import FefferyResponsive
42
+ from .FefferyWebSocket import FefferyWebSocket
42
43
  from .FefferyWindowSize import FefferyWindowSize
43
44
  from .FefferySortableContainer import FefferySortableContainer
44
45
  from .FefferySortableItem import FefferySortableItem
@@ -88,6 +89,7 @@ __all__ = [
88
89
  "FefferyInViewport",
89
90
  "FefferyKeyPress",
90
91
  "FefferyResponsive",
92
+ "FefferyWebSocket",
91
93
  "FefferyWindowSize",
92
94
  "FefferySortableContainer",
93
95
  "FefferySortableItem",