feffery_utils_components 0.2.0-b5 → 0.2.0-b6

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.2.0-b5
3
+ Version: 0.2.0-b6
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(''FefferyShadowDom)
41
41
  export(''FefferyShortcutPanel)
42
42
  export(''FefferySticky)
43
43
  export(''FefferyStyle)
44
+ export(''FefferyTabMessenger)
44
45
  export(''FefferyTimeout)
45
46
  export(''FefferyTopProgress)
46
47
  export(''FefferyVirtualList)
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.2.0-b5"
5
+ version = "0.2.0-b6"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -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 FefferyTabMessenger(Component):
7
+ """A FefferyTabMessenger component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional):
13
+ 组件id.
14
+
15
+ - loading_state (dict; optional)
16
+
17
+ `loading_state` is a dict with keys:
18
+
19
+ - component_name (string; optional):
20
+ Holds the name of the component that is loading.
21
+
22
+ - is_loading (boolean; optional):
23
+ Determines if the component is loading or not.
24
+
25
+ - prop_name (string; optional):
26
+ Holds which property is loading.
27
+
28
+ - recivedMessage (string; optional):
29
+ 当role为'receiver'时,用于监听最近一次收到的信息内容.
30
+
31
+ - role (a value equal to: 'sender', 'receiver'; required):
32
+ 必填,声明当前组件所在标签页角色,可选的有'sender'和'receiver'.
33
+
34
+ - targetUrl (string; optional):
35
+ 当role为'sender'时,用于定义自动创建打开的目标标签页对应url.
36
+
37
+ - toSendMessage (string; optional):
38
+ 当role为'sender'时,用于设置将要新发送的信息内容,每次成功发送后都会重置为空."""
39
+ _children_props = []
40
+ _base_nodes = ['children']
41
+ _namespace = 'feffery_utils_components'
42
+ _type = 'FefferyTabMessenger'
43
+ @_explicitize_args
44
+ def __init__(self, id=Component.UNDEFINED, role=Component.REQUIRED, targetUrl=Component.UNDEFINED, toSendMessage=Component.UNDEFINED, recivedMessage=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
45
+ self._prop_names = ['id', 'loading_state', 'recivedMessage', 'role', 'targetUrl', 'toSendMessage']
46
+ self._valid_wildcard_attributes = []
47
+ self.available_properties = ['id', 'loading_state', 'recivedMessage', 'role', 'targetUrl', 'toSendMessage']
48
+ self.available_wildcard_properties = []
49
+ _explicit_args = kwargs.pop('_explicit_args')
50
+ _locals = locals()
51
+ _locals.update(kwargs) # For wildcard attrs and excess named props
52
+ args = {k: _locals[k] for k in _explicit_args}
53
+
54
+ for k in ['role']:
55
+ if k not in args:
56
+ raise TypeError(
57
+ 'Required argument `' + k + '` was not specified.')
58
+
59
+ super(FefferyTabMessenger, self).__init__(**args)
@@ -39,6 +39,7 @@ from .FefferyShadowDom import FefferyShadowDom
39
39
  from .FefferyShortcutPanel import FefferyShortcutPanel
40
40
  from .FefferySticky import FefferySticky
41
41
  from .FefferyStyle import FefferyStyle
42
+ from .FefferyTabMessenger import FefferyTabMessenger
42
43
  from .FefferyTimeout import FefferyTimeout
43
44
  from .FefferyTopProgress import FefferyTopProgress
44
45
  from .FefferyVirtualList import FefferyVirtualList
@@ -113,6 +114,7 @@ __all__ = [
113
114
  "FefferyShortcutPanel",
114
115
  "FefferySticky",
115
116
  "FefferyStyle",
117
+ "FefferyTabMessenger",
116
118
  "FefferyTimeout",
117
119
  "FefferyTopProgress",
118
120
  "FefferyVirtualList",