feffery_utils_components 0.2.0-rc12 → 0.2.0-rc14
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/assets/demo.jpg +0 -0
- package/feffery_utils_components/FefferySliderCaptcha.py +112 -0
- package/feffery_utils_components/__init__.py +2 -1
- 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 +2 -2
- 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_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_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 +2 -2
- 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 +2 -2
- 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 -0
- package/feffery_utils_components/async-feffery_slider_captcha.js.LICENSE.txt +1 -0
- package/feffery_utils_components/async-feffery_sortable.js +1 -1
- package/feffery_utils_components/async-feffery_word_preview.js +1 -1
- package/feffery_utils_components/async-fuc-shared.js +2 -2
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +253 -0
- package/feffery_utils_components/package-info.json +3 -1
- package/package.json +3 -1
- package/src/lib/components/FefferySliderCaptcha.react.js +169 -0
- package/src/lib/fragments/FefferySliderCaptcha.react.js +104 -0
- package/src/lib/index.js +3 -1
- package/usage.py +24 -14
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
package/README.md
CHANGED
package/assets/demo.jpg
ADDED
|
Binary file
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferySliderCaptcha(Component):
|
|
7
|
+
"""A FefferySliderCaptcha component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional):
|
|
13
|
+
组件id.
|
|
14
|
+
|
|
15
|
+
- autoRefreshOnError (boolean; default True):
|
|
16
|
+
验证失败后是否自动刷新 默认值:`True`.
|
|
17
|
+
|
|
18
|
+
- className (string; optional):
|
|
19
|
+
css类名.
|
|
20
|
+
|
|
21
|
+
- errorHoldDuration (number; default 500):
|
|
22
|
+
当`autoRefreshOnError=True`时,每次验证失败后停顿多少毫秒自动刷新 默认值:`500`.
|
|
23
|
+
|
|
24
|
+
- imgHeight (number; default 160):
|
|
25
|
+
声明用于生成拼图的完整图片像素高度值 默认值:`160`.
|
|
26
|
+
|
|
27
|
+
- imgSrc (string; optional):
|
|
28
|
+
用于生成拼图的完整图片地址.
|
|
29
|
+
|
|
30
|
+
- imgWidth (number; default 320):
|
|
31
|
+
声明用于生成拼图的完整图片像素宽度值 默认值:`320`.
|
|
32
|
+
|
|
33
|
+
- loading_state (dict; optional)
|
|
34
|
+
|
|
35
|
+
`loading_state` is a dict with keys:
|
|
36
|
+
|
|
37
|
+
- component_name (string; optional):
|
|
38
|
+
Holds the name of the component that is loading.
|
|
39
|
+
|
|
40
|
+
- is_loading (boolean; optional):
|
|
41
|
+
Determines if the component is loading or not.
|
|
42
|
+
|
|
43
|
+
- prop_name (string; optional):
|
|
44
|
+
Holds which property is loading.
|
|
45
|
+
|
|
46
|
+
- mode (a value equal to: 'embed', 'float', 'slider'; default 'embed'):
|
|
47
|
+
显示模式,可选项有`'embed'`、`'float'`、`'slider'` 默认值:`'embed'`.
|
|
48
|
+
|
|
49
|
+
- placement (a value equal to: 'top', 'bottom'; default 'top'):
|
|
50
|
+
拼图图片显示方位,可选项有`'top'`、`'bottom'` 默认值:`'top'`.
|
|
51
|
+
|
|
52
|
+
- refresh (boolean; optional):
|
|
53
|
+
手动刷新用,每次更新为`True`时会主动触发刷新,每次成功刷新后会重置为`False`.
|
|
54
|
+
|
|
55
|
+
- showRefreshIcon (boolean; default True):
|
|
56
|
+
显示右上角刷新按钮 默认值:`True`.
|
|
57
|
+
|
|
58
|
+
- style (dict; optional):
|
|
59
|
+
css样式.
|
|
60
|
+
|
|
61
|
+
- tipText (dict; optional):
|
|
62
|
+
配置相关文案提示内容.
|
|
63
|
+
|
|
64
|
+
`tipText` is a dict with keys:
|
|
65
|
+
|
|
66
|
+
- default (a list of or a singular dash component, string or number; optional):
|
|
67
|
+
默认提示内容.
|
|
68
|
+
|
|
69
|
+
- error (a list of or a singular dash component, string or number; optional):
|
|
70
|
+
验证失败提示内容.
|
|
71
|
+
|
|
72
|
+
- loading (a list of or a singular dash component, string or number; optional):
|
|
73
|
+
加载中提示内容.
|
|
74
|
+
|
|
75
|
+
- moving (a list of or a singular dash component, string or number; optional):
|
|
76
|
+
移动中提示内容.
|
|
77
|
+
|
|
78
|
+
- success (a list of or a singular dash component, string or number; optional):
|
|
79
|
+
验证成功提示内容.
|
|
80
|
+
|
|
81
|
+
- verifying (a list of or a singular dash component, string or number; optional):
|
|
82
|
+
验证中提示内容.
|
|
83
|
+
|
|
84
|
+
- verifyResult (dict; optional):
|
|
85
|
+
监听最近一次验证结果.
|
|
86
|
+
|
|
87
|
+
`verifyResult` is a dict with keys:
|
|
88
|
+
|
|
89
|
+
- status (a value equal to: 'success', 'error'; optional):
|
|
90
|
+
验证状态,`'success'`表示验证成功,`'error'`表示验证失败.
|
|
91
|
+
|
|
92
|
+
- timestamp (number; optional):
|
|
93
|
+
事件发生时间戳.
|
|
94
|
+
|
|
95
|
+
- xOffset (number; default 5):
|
|
96
|
+
拼图合法验证像素偏移量 默认值:`5`."""
|
|
97
|
+
_children_props = ['tipText.default', 'tipText.loading', 'tipText.moving', 'tipText.verifying', 'tipText.success', 'tipText.error']
|
|
98
|
+
_base_nodes = ['children']
|
|
99
|
+
_namespace = 'feffery_utils_components'
|
|
100
|
+
_type = 'FefferySliderCaptcha'
|
|
101
|
+
@_explicitize_args
|
|
102
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, imgSrc=Component.UNDEFINED, imgWidth=Component.UNDEFINED, imgHeight=Component.UNDEFINED, xOffset=Component.UNDEFINED, mode=Component.UNDEFINED, tipText=Component.UNDEFINED, showRefreshIcon=Component.UNDEFINED, autoRefreshOnError=Component.UNDEFINED, errorHoldDuration=Component.UNDEFINED, placement=Component.UNDEFINED, refresh=Component.UNDEFINED, verifyResult=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
103
|
+
self._prop_names = ['id', 'autoRefreshOnError', 'className', 'errorHoldDuration', 'imgHeight', 'imgSrc', 'imgWidth', 'loading_state', 'mode', 'placement', 'refresh', 'showRefreshIcon', 'style', 'tipText', 'verifyResult', 'xOffset']
|
|
104
|
+
self._valid_wildcard_attributes = []
|
|
105
|
+
self.available_properties = ['id', 'autoRefreshOnError', 'className', 'errorHoldDuration', 'imgHeight', 'imgSrc', 'imgWidth', 'loading_state', 'mode', 'placement', 'refresh', 'showRefreshIcon', 'style', 'tipText', 'verifyResult', 'xOffset']
|
|
106
|
+
self.available_wildcard_properties = []
|
|
107
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
108
|
+
_locals = locals()
|
|
109
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
110
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
111
|
+
|
|
112
|
+
super(FefferySliderCaptcha, self).__init__(**args)
|
|
@@ -61,6 +61,7 @@ from .FefferySetFavicon import FefferySetFavicon
|
|
|
61
61
|
from .FefferySetTitle import FefferySetTitle
|
|
62
62
|
from .FefferyShadowDom import FefferyShadowDom
|
|
63
63
|
from .FefferyShortcutPanel import FefferyShortcutPanel
|
|
64
|
+
from .FefferySliderCaptcha import FefferySliderCaptcha
|
|
64
65
|
from .FefferySticky import FefferySticky
|
|
65
66
|
from .FefferyStyle import FefferyStyle
|
|
66
67
|
from .FefferyTimeout import FefferyTimeout
|
|
@@ -168,6 +169,7 @@ __all__ = [
|
|
|
168
169
|
"FefferySetTitle",
|
|
169
170
|
"FefferyShadowDom",
|
|
170
171
|
"FefferyShortcutPanel",
|
|
172
|
+
"FefferySliderCaptcha",
|
|
171
173
|
"FefferySticky",
|
|
172
174
|
"FefferyStyle",
|
|
173
175
|
"FefferyTimeout",
|