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.
- package/DESCRIPTION +1 -1
- package/NAMESPACE +2 -0
- package/Project.toml +1 -1
- package/README.md +1 -1
- package/feffery_utils_components/FefferyDiv.py +1 -1
- package/feffery_utils_components/FefferyDom2Image.py +68 -0
- package/feffery_utils_components/FefferySetFavicon.py +45 -0
- package/feffery_utils_components/FefferySetTitle.py +7 -4
- package/feffery_utils_components/__init__.py +2 -1
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/alias.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 +4 -0
- package/feffery_utils_components/async-feffery_dom2image.js.LICENSE.txt +1 -0
- 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_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 +170 -2
- package/feffery_utils_components/package-info.json +2 -1
- package/package.json +2 -1
- package/src/lib/components/FefferyDiv.react.js +3 -1
- package/src/lib/components/FefferyDom2Image.react.js +88 -0
- package/src/lib/components/FefferySetFavicon.react.js +58 -0
- package/src/lib/components/FefferySetTitle.react.js +21 -6
- package/src/lib/fragments/FefferyDom2Image.react.js +59 -0
- package/src/lib/index.js +5 -1
- package/usage.py +15 -27
package/DESCRIPTION
CHANGED
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
package/README.md
CHANGED
|
@@ -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()
|
|
@@ -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",
|