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 +1 -1
- package/NAMESPACE +1 -0
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyTabMessenger.py +59 -0
- package/build/lib/feffery_utils_components/_imports_.py +2 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/build/lib/feffery_utils_components/metadata.json +83 -0
- package/build/lib/feffery_utils_components/package-info.json +1 -1
- package/feffery_utils_components/FefferyTabMessenger.py +59 -0
- package/feffery_utils_components/_imports_.py +2 -0
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +83 -0
- package/feffery_utils_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/lib/components/FefferyTabMessenger.react.js +112 -0
- package/src/lib/index.js +3 -1
- package/usage.py +61 -19
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
|
@@ -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",
|