feffery_utils_components 0.2.0-rc10 → 0.2.0-rc12

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 (53) 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/feffery_utils_components/FefferyDiv.py +1 -1
  6. package/feffery_utils_components/FefferyDom2Image.py +68 -0
  7. package/feffery_utils_components/FefferySetFavicon.py +45 -0
  8. package/feffery_utils_components/FefferySetTitle.py +7 -4
  9. package/feffery_utils_components/__init__.py +2 -1
  10. package/feffery_utils_components/_imports_.py +4 -0
  11. package/feffery_utils_components/alias.py +2 -0
  12. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
  13. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +2 -2
  14. package/feffery_utils_components/async-feffery_animated_image.js +1 -1
  15. package/feffery_utils_components/async-feffery_aplayer.js +1 -1
  16. package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
  17. package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
  18. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  19. package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
  20. package/feffery_utils_components/async-feffery_dom2image.js +4 -0
  21. package/feffery_utils_components/async-feffery_dom2image.js.LICENSE.txt +1 -0
  22. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  23. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
  24. package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
  25. package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
  26. package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
  27. package/feffery_utils_components/async-feffery_grid.js +1 -1
  28. package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
  29. package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
  30. package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
  31. package/feffery_utils_components/async-feffery_markdown_editor.js +2 -2
  32. package/feffery_utils_components/async-feffery_motion.js +1 -1
  33. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  34. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
  35. package/feffery_utils_components/async-feffery_resizable.js +1 -1
  36. package/feffery_utils_components/async-feffery_rich_text_editor.js +2 -2
  37. package/feffery_utils_components/async-feffery_rnd.js +1 -1
  38. package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
  39. package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
  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 +170 -2
  45. package/feffery_utils_components/package-info.json +2 -1
  46. package/package.json +2 -1
  47. package/src/lib/components/FefferyDiv.react.js +3 -1
  48. package/src/lib/components/FefferyDom2Image.react.js +88 -0
  49. package/src/lib/components/FefferySetFavicon.react.js +58 -0
  50. package/src/lib/components/FefferySetTitle.react.js +21 -6
  51. package/src/lib/fragments/FefferyDom2Image.react.js +59 -0
  52. package/src/lib/index.js +5 -1
  53. package/usage.py +15 -27
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-rc10
3
+ Version: 0.2.0-rc12
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -35,6 +35,7 @@ export(''FefferyCountDown)
35
35
  export(''FefferyCountUp)
36
36
  export(''FefferyCssVar)
37
37
  export(''FefferyDiv)
38
+ export(''FefferyDom2Image)
38
39
  export(''FefferyEmojiPicker)
39
40
  export(''FefferyExecuteJs)
40
41
  export(''FefferyExternalCss)
@@ -58,6 +59,7 @@ export(''FefferyRichTextEditor)
58
59
  export(''FefferyScroll)
59
60
  export(''FefferyScrollbars)
60
61
  export(''FefferySeamlessScroll)
62
+ export(''FefferySetFavicon)
61
63
  export(''FefferySetTitle)
62
64
  export(''FefferyShadowDom)
63
65
  export(''FefferyShortcutPanel)
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-rc10"
5
+ version = "0.2.0-rc12"
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-14):`0.2.0rc9`
25
+ > 最新预发布版本(2024-03-22):`0.2.0rc11`
26
26
 
27
27
  ```bash
28
28
  pip install feffery-utils-components --pre -U
@@ -5,7 +5,7 @@ from dash.development.base_component import Component, _explicitize_args
5
5
 
6
6
  class FefferyDiv(Component):
7
7
  """A FefferyDiv component.
8
-
8
+ 进阶div容器组件FefferyDiv
9
9
 
10
10
  Keyword arguments:
11
11
 
@@ -0,0 +1,68 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyDom2Image(Component):
7
+ """A FefferyDom2Image component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional):
13
+ 组件id.
14
+
15
+ - key (string; optional):
16
+ 强制刷新用.
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
+
31
+ - scale (number; default 1):
32
+ 精度缩放比例,默认为1.
33
+
34
+ - screenshotResult (dict; optional):
35
+ 监听最近一次元素转图片的结果数据.
36
+
37
+ `screenshotResult` is a dict with keys:
38
+
39
+ - dataUrl (string; optional):
40
+ 若本次转换成功,则记录转换后的图片dataUrl信息.
41
+
42
+ - selector (string; optional):
43
+ 记录本次转换结果对应的选择器.
44
+
45
+ - status (a value equal to: 'success', 'failed'; optional):
46
+ 记录本次转换任务的执行状态,可选的有'success'、'failed'.
47
+
48
+ - timestamp (number; optional):
49
+ 对应当前任务完成的时间戳.
50
+
51
+ - targetSelector (string; optional):
52
+ 设置目标元素选择器,每次执行转换操作后都会重置为空值."""
53
+ _children_props = []
54
+ _base_nodes = ['children']
55
+ _namespace = 'feffery_utils_components'
56
+ _type = 'FefferyDom2Image'
57
+ @_explicitize_args
58
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, targetSelector=Component.UNDEFINED, scale=Component.UNDEFINED, screenshotResult=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
59
+ self._prop_names = ['id', 'key', 'loading_state', 'scale', 'screenshotResult', 'targetSelector']
60
+ self._valid_wildcard_attributes = []
61
+ self.available_properties = ['id', 'key', 'loading_state', 'scale', 'screenshotResult', 'targetSelector']
62
+ self.available_wildcard_properties = []
63
+ _explicit_args = kwargs.pop('_explicit_args')
64
+ _locals = locals()
65
+ _locals.update(kwargs) # For wildcard attrs and excess named props
66
+ args = {k: _locals[k] for k in _explicit_args}
67
+
68
+ super(FefferyDom2Image, self).__init__(**args)
@@ -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()
@@ -57,7 +57,8 @@ async_resources = [
57
57
  'feffery_animated_3d_background_p5',
58
58
  'feffery_rnd',
59
59
  'feffery_animated_image',
60
- 'feffery_motion'
60
+ 'feffery_motion',
61
+ 'feffery_dom2image'
61
62
  ]
62
63
 
63
64
  _js_dist = []
@@ -33,6 +33,7 @@ from .FefferyCountDown import FefferyCountDown
33
33
  from .FefferyCountUp import FefferyCountUp
34
34
  from .FefferyCssVar import FefferyCssVar
35
35
  from .FefferyDiv import FefferyDiv
36
+ from .FefferyDom2Image import FefferyDom2Image
36
37
  from .FefferyEmojiPicker import FefferyEmojiPicker
37
38
  from .FefferyExecuteJs import FefferyExecuteJs
38
39
  from .FefferyExternalCss import FefferyExternalCss
@@ -56,6 +57,7 @@ from .FefferyRichTextEditor import FefferyRichTextEditor
56
57
  from .FefferyScroll import FefferyScroll
57
58
  from .FefferyScrollbars import FefferyScrollbars
58
59
  from .FefferySeamlessScroll import FefferySeamlessScroll
60
+ from .FefferySetFavicon import FefferySetFavicon
59
61
  from .FefferySetTitle import FefferySetTitle
60
62
  from .FefferyShadowDom import FefferyShadowDom
61
63
  from .FefferyShortcutPanel import FefferyShortcutPanel
@@ -138,6 +140,7 @@ __all__ = [
138
140
  "FefferyCountUp",
139
141
  "FefferyCssVar",
140
142
  "FefferyDiv",
143
+ "FefferyDom2Image",
141
144
  "FefferyEmojiPicker",
142
145
  "FefferyExecuteJs",
143
146
  "FefferyExternalCss",
@@ -161,6 +164,7 @@ __all__ = [
161
164
  "FefferyScroll",
162
165
  "FefferyScrollbars",
163
166
  "FefferySeamlessScroll",
167
+ "FefferySetFavicon",
164
168
  "FefferySetTitle",
165
169
  "FefferyShadowDom",
166
170
  "FefferyShortcutPanel",
@@ -33,6 +33,7 @@ from .FefferyCountDown import FefferyCountDown as CountDown
33
33
  from .FefferyCountUp import FefferyCountUp as CountUp
34
34
  from .FefferyCssVar import FefferyCssVar as CssVar
35
35
  from .FefferyDiv import FefferyDiv as Div
36
+ from .FefferyDom2Image import FefferyDom2Image as Dom2Image
36
37
  from .FefferyEmojiPicker import FefferyEmojiPicker as EmojiPicker
37
38
  from .FefferyExecuteJs import FefferyExecuteJs as ExecuteJs
38
39
  from .FefferyExternalCss import FefferyExternalCss as ExternalCss
@@ -138,6 +139,7 @@ __all__ = [
138
139
  "CountUp",
139
140
  "CssVar",
140
141
  "Div",
142
+ "Dom2Image",
141
143
  "EmojiPicker",
142
144
  "ExecuteJs",
143
145
  "ExternalCss",