feffery_utils_components 0.2.0-b4 → 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-b4
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)
@@ -71,3 +72,4 @@ export(''FefferyDebounceProp)
71
72
  export(''FefferyLocalLargeStorage)
72
73
  export(''FefferyLocalStorage)
73
74
  export(''FefferySessionStorage)
75
+ export(''FefferyThrottleProp)
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-b4"
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)
@@ -0,0 +1,51 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyThrottleProp(Component):
7
+ """A FefferyThrottleProp 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
+ - sourceProp (boolean | number | string | dict | list; optional):
29
+ 用于同步目标属性,请通过回调函数更新.
30
+
31
+ - throttleProp (boolean | number | string | dict | list; optional):
32
+ 对应sourceProp的节流控制状态.
33
+
34
+ - throttleWait (number; default 200):
35
+ 设置节流延时时长,单位:毫秒 默认:200."""
36
+ _children_props = []
37
+ _base_nodes = ['children']
38
+ _namespace = 'feffery_utils_components'
39
+ _type = 'FefferyThrottleProp'
40
+ @_explicitize_args
41
+ def __init__(self, id=Component.UNDEFINED, sourceProp=Component.UNDEFINED, throttleProp=Component.UNDEFINED, throttleWait=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
+ self._prop_names = ['id', 'loading_state', 'sourceProp', 'throttleProp', 'throttleWait']
43
+ self._valid_wildcard_attributes = []
44
+ self.available_properties = ['id', 'loading_state', 'sourceProp', 'throttleProp', 'throttleWait']
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
+ super(FefferyThrottleProp, 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
@@ -69,6 +70,7 @@ from .FefferyDebounceProp import FefferyDebounceProp
69
70
  from .FefferyLocalLargeStorage import FefferyLocalLargeStorage
70
71
  from .FefferyLocalStorage import FefferyLocalStorage
71
72
  from .FefferySessionStorage import FefferySessionStorage
73
+ from .FefferyThrottleProp import FefferyThrottleProp
72
74
 
73
75
  __all__ = [
74
76
  "FefferyAutoAnimate",
@@ -112,6 +114,7 @@ __all__ = [
112
114
  "FefferyShortcutPanel",
113
115
  "FefferySticky",
114
116
  "FefferyStyle",
117
+ "FefferyTabMessenger",
115
118
  "FefferyTimeout",
116
119
  "FefferyTopProgress",
117
120
  "FefferyVirtualList",
@@ -141,5 +144,6 @@ __all__ = [
141
144
  "FefferyDebounceProp",
142
145
  "FefferyLocalLargeStorage",
143
146
  "FefferyLocalStorage",
144
- "FefferySessionStorage"
147
+ "FefferySessionStorage",
148
+ "FefferyThrottleProp"
145
149
  ]