feffery_utils_components 0.2.0-rc17 → 0.2.0-rc19
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/README.md +1 -1
- package/feffery_utils_components/FefferyEventSource.py +82 -0
- package/feffery_utils_components/_imports_.py +2 -0
- package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
- package/feffery_utils_components/async-feffery_animated_3d_background_three.js +1 -1
- package/feffery_utils_components/async-feffery_animated_image.js +1 -1
- package/feffery_utils_components/async-feffery_aplayer.js +1 -1
- package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
- package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
- package/feffery_utils_components/async-feffery_burger.js +1 -1
- package/feffery_utils_components/async-feffery_captcha.js +1 -1
- package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
- package/feffery_utils_components/async-feffery_dom2image.js +1 -1
- package/feffery_utils_components/async-feffery_dplayer.js +1 -1
- package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
- package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
- package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
- package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
- package/feffery_utils_components/async-feffery_grid.js +1 -1
- package/feffery_utils_components/async-feffery_http_requests.js +1 -1
- package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
- package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
- package/feffery_utils_components/async-feffery_markdown_editor.js +1 -1
- package/feffery_utils_components/async-feffery_motion.js +1 -1
- package/feffery_utils_components/async-feffery_music_player.js +1 -1
- package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
- package/feffery_utils_components/async-feffery_resizable.js +1 -1
- package/feffery_utils_components/async-feffery_rich_text_editor.js +1 -1
- package/feffery_utils_components/async-feffery_rnd.js +1 -1
- package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
- package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
- package/feffery_utils_components/async-feffery_slider_captcha.js +1 -1
- package/feffery_utils_components/async-feffery_sortable.js +1 -1
- package/feffery_utils_components/async-feffery_vditor.js +1 -1
- package/feffery_utils_components/async-feffery_word_preview.js +1 -1
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +153 -0
- package/feffery_utils_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/lib/components/FefferyCountUp.react.js +28 -5
- package/src/lib/components/FefferyEventSource.react.js +150 -0
- package/src/lib/index.js +3 -1
- package/usage.py +33 -28
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
package/README.md
CHANGED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyEventSource(Component):
|
|
7
|
+
"""A FefferyEventSource component.
|
|
8
|
+
EventSource通信组件FefferyEventSource
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional):
|
|
13
|
+
组件id.
|
|
14
|
+
|
|
15
|
+
- autoReconnect (dict; default False):
|
|
16
|
+
配置连接断开自动重连相关参数,设置为`False`时将不会自动重连 默认:`False`.
|
|
17
|
+
|
|
18
|
+
`autoReconnect` is a dict with keys:
|
|
19
|
+
|
|
20
|
+
- delay (number; optional):
|
|
21
|
+
重试前的延时时长,单位:毫秒.
|
|
22
|
+
|
|
23
|
+
- retries (number; optional):
|
|
24
|
+
重试次数. | boolean
|
|
25
|
+
|
|
26
|
+
- data (boolean | number | string | dict | list; optional):
|
|
27
|
+
监听最新的返回数据.
|
|
28
|
+
|
|
29
|
+
- event (string; optional):
|
|
30
|
+
监听最新的事件名称.
|
|
31
|
+
|
|
32
|
+
- events (list of strings; optional):
|
|
33
|
+
目标事件名称列表.
|
|
34
|
+
|
|
35
|
+
- immediate (boolean; default True):
|
|
36
|
+
是否立即建立连接 默认:`True`.
|
|
37
|
+
|
|
38
|
+
- key (string; optional):
|
|
39
|
+
强制刷新用唯一标识key值.
|
|
40
|
+
|
|
41
|
+
- loading_state (dict; optional)
|
|
42
|
+
|
|
43
|
+
`loading_state` is a dict with keys:
|
|
44
|
+
|
|
45
|
+
- component_name (string; optional):
|
|
46
|
+
Holds the name of the component that is loading.
|
|
47
|
+
|
|
48
|
+
- is_loading (boolean; optional):
|
|
49
|
+
Determines if the component is loading or not.
|
|
50
|
+
|
|
51
|
+
- prop_name (string; optional):
|
|
52
|
+
Holds which property is loading.
|
|
53
|
+
|
|
54
|
+
- operation (a value equal to: 'open', 'close'; optional):
|
|
55
|
+
控制要立即执行的操作,可选项有`'open'`、`'close'`,每次新的操作执行完成后都会重置为空值.
|
|
56
|
+
|
|
57
|
+
- status (string; optional):
|
|
58
|
+
监听最新的连接状态.
|
|
59
|
+
|
|
60
|
+
- url (string; required):
|
|
61
|
+
必填,目标服务地址."""
|
|
62
|
+
_children_props = []
|
|
63
|
+
_base_nodes = ['children']
|
|
64
|
+
_namespace = 'feffery_utils_components'
|
|
65
|
+
_type = 'FefferyEventSource'
|
|
66
|
+
@_explicitize_args
|
|
67
|
+
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, url=Component.REQUIRED, events=Component.UNDEFINED, immediate=Component.UNDEFINED, autoReconnect=Component.UNDEFINED, status=Component.UNDEFINED, data=Component.UNDEFINED, event=Component.UNDEFINED, operation=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
68
|
+
self._prop_names = ['id', 'autoReconnect', 'data', 'event', 'events', 'immediate', 'key', 'loading_state', 'operation', 'status', 'url']
|
|
69
|
+
self._valid_wildcard_attributes = []
|
|
70
|
+
self.available_properties = ['id', 'autoReconnect', 'data', 'event', 'events', 'immediate', 'key', 'loading_state', 'operation', 'status', 'url']
|
|
71
|
+
self.available_wildcard_properties = []
|
|
72
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
73
|
+
_locals = locals()
|
|
74
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
75
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
76
|
+
|
|
77
|
+
for k in ['url']:
|
|
78
|
+
if k not in args:
|
|
79
|
+
raise TypeError(
|
|
80
|
+
'Required argument `' + k + '` was not specified.')
|
|
81
|
+
|
|
82
|
+
super(FefferyEventSource, self).__init__(**args)
|
|
@@ -39,6 +39,7 @@ from .FefferyCssVar import FefferyCssVar
|
|
|
39
39
|
from .FefferyDiv import FefferyDiv
|
|
40
40
|
from .FefferyDom2Image import FefferyDom2Image
|
|
41
41
|
from .FefferyEmojiPicker import FefferyEmojiPicker
|
|
42
|
+
from .FefferyEventSource import FefferyEventSource
|
|
42
43
|
from .FefferyExecuteJs import FefferyExecuteJs
|
|
43
44
|
from .FefferyExternalCss import FefferyExternalCss
|
|
44
45
|
from .FefferyExternalJs import FefferyExternalJs
|
|
@@ -151,6 +152,7 @@ __all__ = [
|
|
|
151
152
|
"FefferyDiv",
|
|
152
153
|
"FefferyDom2Image",
|
|
153
154
|
"FefferyEmojiPicker",
|
|
155
|
+
"FefferyEventSource",
|
|
154
156
|
"FefferyExecuteJs",
|
|
155
157
|
"FefferyExternalCss",
|
|
156
158
|
"FefferyExternalJs",
|