feffery_utils_components 0.2.0-rc11 → 0.2.0-rc13

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.
Files changed (52) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +2 -0
  3. package/Project.toml +1 -1
  4. package/README.md +1 -1
  5. package/assets/demo.jpg +0 -0
  6. package/feffery_utils_components/FefferySetFavicon.py +45 -0
  7. package/feffery_utils_components/FefferySetTitle.py +7 -4
  8. package/feffery_utils_components/FefferySliderCaptcha.py +109 -0
  9. package/feffery_utils_components/__init__.py +2 -1
  10. package/feffery_utils_components/_imports_.py +4 -0
  11. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
  12. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +2 -2
  13. package/feffery_utils_components/async-feffery_animated_image.js +1 -1
  14. package/feffery_utils_components/async-feffery_aplayer.js +1 -1
  15. package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
  16. package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
  17. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  18. package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
  19. package/feffery_utils_components/async-feffery_dom2image.js +1 -1
  20. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  21. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
  22. package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
  23. package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
  24. package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
  25. package/feffery_utils_components/async-feffery_grid.js +1 -1
  26. package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
  27. package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
  28. package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
  29. package/feffery_utils_components/async-feffery_markdown_editor.js +2 -2
  30. package/feffery_utils_components/async-feffery_motion.js +1 -1
  31. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  32. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
  33. package/feffery_utils_components/async-feffery_resizable.js +1 -1
  34. package/feffery_utils_components/async-feffery_rich_text_editor.js +2 -2
  35. package/feffery_utils_components/async-feffery_rnd.js +1 -1
  36. package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
  37. package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
  38. package/feffery_utils_components/async-feffery_slider_captcha.js +1 -0
  39. package/feffery_utils_components/async-feffery_slider_captcha.js.LICENSE.txt +1 -0
  40. package/feffery_utils_components/async-feffery_sortable.js +1 -1
  41. package/feffery_utils_components/async-feffery_word_preview.js +1 -1
  42. package/feffery_utils_components/async-fuc-shared.js +2 -2
  43. package/feffery_utils_components/feffery_utils_components.min.js +2 -2
  44. package/feffery_utils_components/metadata.json +298 -1
  45. package/feffery_utils_components/package-info.json +3 -1
  46. package/package.json +3 -1
  47. package/src/lib/components/FefferySetFavicon.react.js +58 -0
  48. package/src/lib/components/FefferySetTitle.react.js +21 -6
  49. package/src/lib/components/FefferySliderCaptcha.react.js +160 -0
  50. package/src/lib/fragments/FefferySliderCaptcha.react.js +102 -0
  51. package/src/lib/index.js +5 -1
  52. package/usage.py +20 -48
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-rc11
3
+ Version: 0.2.0-rc13
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -59,9 +59,11 @@ export(''FefferyRichTextEditor)
59
59
  export(''FefferyScroll)
60
60
  export(''FefferyScrollbars)
61
61
  export(''FefferySeamlessScroll)
62
+ export(''FefferySetFavicon)
62
63
  export(''FefferySetTitle)
63
64
  export(''FefferyShadowDom)
64
65
  export(''FefferyShortcutPanel)
66
+ export(''FefferySliderCaptcha)
65
67
  export(''FefferySticky)
66
68
  export(''FefferyStyle)
67
69
  export(''FefferyTimeout)
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-rc11"
5
+ version = "0.2.0-rc13"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
package/README.md CHANGED
@@ -22,7 +22,7 @@ pip install feffery-utils-components -U
22
22
  ## 2 最新预发布版本安装方式
23
23
 
24
24
  > [!NOTE]
25
- > 最新预发布版本(2024-03-18):`0.2.0rc10`
25
+ > 最新预发布版本(2024-03-25):`0.2.0rc12`
26
26
 
27
27
  ```bash
28
28
  pip install feffery-utils-components --pre -U
Binary file
@@ -0,0 +1,45 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferySetFavicon(Component):
7
+ """A FefferySetFavicon component.
8
+ favicon设置组件FefferySetFavicon
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional):
13
+ 组件id.
14
+
15
+ - favicon (string; optional):
16
+ 用于设置要更新的favicon图片文件地址,支持svg、png、ico、gif格式.
17
+
18
+ - loading_state (dict; optional)
19
+
20
+ `loading_state` is a dict with keys:
21
+
22
+ - component_name (string; optional):
23
+ Holds the name of the component that is loading.
24
+
25
+ - is_loading (boolean; optional):
26
+ Determines if the component is loading or not.
27
+
28
+ - prop_name (string; optional):
29
+ Holds which property is loading."""
30
+ _children_props = []
31
+ _base_nodes = ['children']
32
+ _namespace = 'feffery_utils_components'
33
+ _type = 'FefferySetFavicon'
34
+ @_explicitize_args
35
+ def __init__(self, id=Component.UNDEFINED, favicon=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
+ self._prop_names = ['id', 'favicon', 'loading_state']
37
+ self._valid_wildcard_attributes = []
38
+ self.available_properties = ['id', 'favicon', 'loading_state']
39
+ self.available_wildcard_properties = []
40
+ _explicit_args = kwargs.pop('_explicit_args')
41
+ _locals = locals()
42
+ _locals.update(kwargs) # For wildcard attrs and excess named props
43
+ args = {k: _locals[k] for k in _explicit_args}
44
+
45
+ super(FefferySetFavicon, self).__init__(**args)
@@ -5,7 +5,7 @@ from dash.development.base_component import Component, _explicitize_args
5
5
 
6
6
  class FefferySetTitle(Component):
7
7
  """A FefferySetTitle component.
8
-
8
+ 页面title设置组件FefferySetTitle
9
9
 
10
10
  Keyword arguments:
11
11
 
@@ -25,6 +25,9 @@ Keyword arguments:
25
25
  - prop_name (string; optional):
26
26
  Holds which property is loading.
27
27
 
28
+ - originTitle (string; optional):
29
+ 当title参数为空,或当前组件从页面中卸载后应当还原的title.
30
+
28
31
  - title (string; optional):
29
32
  用于设置要更新的title信息."""
30
33
  _children_props = []
@@ -32,10 +35,10 @@ Keyword arguments:
32
35
  _namespace = 'feffery_utils_components'
33
36
  _type = 'FefferySetTitle'
34
37
  @_explicitize_args
35
- def __init__(self, id=Component.UNDEFINED, title=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
- self._prop_names = ['id', 'loading_state', 'title']
38
+ def __init__(self, id=Component.UNDEFINED, title=Component.UNDEFINED, originTitle=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
39
+ self._prop_names = ['id', 'loading_state', 'originTitle', 'title']
37
40
  self._valid_wildcard_attributes = []
38
- self.available_properties = ['id', 'loading_state', 'title']
41
+ self.available_properties = ['id', 'loading_state', 'originTitle', 'title']
39
42
  self.available_wildcard_properties = []
40
43
  _explicit_args = kwargs.pop('_explicit_args')
41
44
  _locals = locals()
@@ -0,0 +1,109 @@
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
+ - imgSrc (string; optional):
25
+ 用于生成拼图的完整图片地址.
26
+
27
+ - imgWidth (number; optional):
28
+ 声明用于生成拼图的完整图片像素宽度值.
29
+
30
+ - loading_state (dict; optional)
31
+
32
+ `loading_state` is a dict with keys:
33
+
34
+ - component_name (string; optional):
35
+ Holds the name of the component that is loading.
36
+
37
+ - is_loading (boolean; optional):
38
+ Determines if the component is loading or not.
39
+
40
+ - prop_name (string; optional):
41
+ Holds which property is loading.
42
+
43
+ - mode (a value equal to: 'embed', 'float', 'slider'; default 'embed'):
44
+ 显示模式,可选项有`'embed'`、`'float'`、`'slider'` 默认值:`'embed'`.
45
+
46
+ - placement (a value equal to: 'top', 'bottom'; default 'top'):
47
+ 拼图图片显示方位,可选项有`'top'`、`'bottom'` 默认值:`'top'`.
48
+
49
+ - refresh (boolean; optional):
50
+ 手动刷新用,每次更新为`True`时会主动触发刷新,每次成功刷新后会重置为`False`.
51
+
52
+ - showRefreshIcon (boolean; default True):
53
+ 显示右上角刷新按钮 默认值:`True`.
54
+
55
+ - style (dict; optional):
56
+ css样式.
57
+
58
+ - tipText (dict; optional):
59
+ 配置相关文案提示内容.
60
+
61
+ `tipText` is a dict with keys:
62
+
63
+ - default (a list of or a singular dash component, string or number; optional):
64
+ 默认提示内容.
65
+
66
+ - error (a list of or a singular dash component, string or number; optional):
67
+ 验证失败提示内容.
68
+
69
+ - loading (a list of or a singular dash component, string or number; optional):
70
+ 加载中提示内容.
71
+
72
+ - moving (a list of or a singular dash component, string or number; optional):
73
+ 移动中提示内容.
74
+
75
+ - success (a list of or a singular dash component, string or number; optional):
76
+ 验证成功提示内容.
77
+
78
+ - verifying (a list of or a singular dash component, string or number; optional):
79
+ 验证中提示内容.
80
+
81
+ - verifyResult (dict; optional):
82
+ 监听最近一次验证结果.
83
+
84
+ `verifyResult` is a dict with keys:
85
+
86
+ - status (a value equal to: 'success', 'error'; optional):
87
+ 验证状态,`'success'`表示验证成功,`'error'`表示验证失败.
88
+
89
+ - timestamp (number; optional):
90
+ 事件发生时间戳.
91
+
92
+ - xOffset (number; default 5):
93
+ 拼图合法验证像素偏移量 默认值:`5`."""
94
+ _children_props = ['tipText.default', 'tipText.loading', 'tipText.moving', 'tipText.verifying', 'tipText.success', 'tipText.error']
95
+ _base_nodes = ['children']
96
+ _namespace = 'feffery_utils_components'
97
+ _type = 'FefferySliderCaptcha'
98
+ @_explicitize_args
99
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, imgSrc=Component.UNDEFINED, imgWidth=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):
100
+ self._prop_names = ['id', 'autoRefreshOnError', 'className', 'errorHoldDuration', 'imgSrc', 'imgWidth', 'loading_state', 'mode', 'placement', 'refresh', 'showRefreshIcon', 'style', 'tipText', 'verifyResult', 'xOffset']
101
+ self._valid_wildcard_attributes = []
102
+ self.available_properties = ['id', 'autoRefreshOnError', 'className', 'errorHoldDuration', 'imgSrc', 'imgWidth', 'loading_state', 'mode', 'placement', 'refresh', 'showRefreshIcon', 'style', 'tipText', 'verifyResult', 'xOffset']
103
+ self.available_wildcard_properties = []
104
+ _explicit_args = kwargs.pop('_explicit_args')
105
+ _locals = locals()
106
+ _locals.update(kwargs) # For wildcard attrs and excess named props
107
+ args = {k: _locals[k] for k in _explicit_args}
108
+
109
+ super(FefferySliderCaptcha, self).__init__(**args)
@@ -58,7 +58,8 @@ async_resources = [
58
58
  'feffery_rnd',
59
59
  'feffery_animated_image',
60
60
  'feffery_motion',
61
- 'feffery_dom2image'
61
+ 'feffery_dom2image',
62
+ 'feffery_slider_captcha'
62
63
  ]
63
64
 
64
65
  _js_dist = []
@@ -57,9 +57,11 @@ from .FefferyRichTextEditor import FefferyRichTextEditor
57
57
  from .FefferyScroll import FefferyScroll
58
58
  from .FefferyScrollbars import FefferyScrollbars
59
59
  from .FefferySeamlessScroll import FefferySeamlessScroll
60
+ from .FefferySetFavicon import FefferySetFavicon
60
61
  from .FefferySetTitle import FefferySetTitle
61
62
  from .FefferyShadowDom import FefferyShadowDom
62
63
  from .FefferyShortcutPanel import FefferyShortcutPanel
64
+ from .FefferySliderCaptcha import FefferySliderCaptcha
63
65
  from .FefferySticky import FefferySticky
64
66
  from .FefferyStyle import FefferyStyle
65
67
  from .FefferyTimeout import FefferyTimeout
@@ -163,9 +165,11 @@ __all__ = [
163
165
  "FefferyScroll",
164
166
  "FefferyScrollbars",
165
167
  "FefferySeamlessScroll",
168
+ "FefferySetFavicon",
166
169
  "FefferySetTitle",
167
170
  "FefferyShadowDom",
168
171
  "FefferyShortcutPanel",
172
+ "FefferySliderCaptcha",
169
173
  "FefferySticky",
170
174
  "FefferyStyle",
171
175
  "FefferyTimeout",