feffery_utils_components 0.2.0-rc16 → 0.2.0-rc17
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/FefferyBurger.py +77 -0
- package/feffery_utils_components/FefferyPhotoSphereViewer.py +34 -8
- package/feffery_utils_components/__init__.py +2 -1
- package/feffery_utils_components/_imports_.py +2 -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 +1 -121
- 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 -0
- 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 +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_photo_sphere_viewer.js.LICENSE.txt +2 -98
- 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 -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/async-fuc-shared.js +129 -9
- package/feffery_utils_components/async-fuc-shared.js.LICENSE.txt +6 -0
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +293 -2
- package/feffery_utils_components/package-info.json +4 -2
- package/package.json +4 -2
- package/src/lib/components/FefferyBurger.react.js +120 -0
- package/src/lib/components/FefferyPhotoSphereViewer.react.js +49 -7
- package/src/lib/fragments/FefferyBurger.react.js +90 -0
- package/src/lib/fragments/FefferyPhotoSphereViewer.react.js +19 -0
- package/src/lib/index.js +3 -1
- package/usage.py +29 -150
- package/webpack.config.js +1 -0
- package/feffery_utils_components/async-feffery_animated_3d_background_three.js.LICENSE.txt +0 -5
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
package/README.md
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyBurger(Component):
|
|
7
|
+
"""A FefferyBurger component.
|
|
8
|
+
动态菜单图标组件FefferyBurger
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional):
|
|
13
|
+
组件唯一id.
|
|
14
|
+
|
|
15
|
+
- className (string; optional):
|
|
16
|
+
当前组件css类名.
|
|
17
|
+
|
|
18
|
+
- color (string; optional):
|
|
19
|
+
图标颜色.
|
|
20
|
+
|
|
21
|
+
- direction (a value equal to: 'left', 'right'; default 'left'):
|
|
22
|
+
部分类型图标可用,控制动画方向,可选项有`'left'`、`'right'` 默认值:`'left'`.
|
|
23
|
+
|
|
24
|
+
- distance (a value equal to: 'sm', 'md', 'lg'; default 'md'):
|
|
25
|
+
图标水平线之间的间距大小规格,可选项有`'sm'`、`'md'`、`'lg'` 默认值:`'md'`.
|
|
26
|
+
|
|
27
|
+
- duration (number; default 0.3):
|
|
28
|
+
动画过程时长,单位:秒,设置为`0`时将关闭动画 默认值:`0.3`.
|
|
29
|
+
|
|
30
|
+
- key (string; optional):
|
|
31
|
+
对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
|
|
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
|
+
- rounded (boolean; default False):
|
|
47
|
+
是否渲染为圆角矩形 默认值:`False`.
|
|
48
|
+
|
|
49
|
+
- size (number; default 32):
|
|
50
|
+
图标像素尺寸 默认值:`32`.
|
|
51
|
+
|
|
52
|
+
- style (dict; optional):
|
|
53
|
+
当前组件css样式.
|
|
54
|
+
|
|
55
|
+
- toggled (boolean; optional):
|
|
56
|
+
设置或监听切换状态.
|
|
57
|
+
|
|
58
|
+
- type (a value equal to: 'default', 'squash', 'cross', 'twirl', 'fade', 'slant', 'spiral', 'divide', 'turn', 'pivot', 'sling', 'squeeze', 'spin', 'rotate'; default 'default'):
|
|
59
|
+
图标类型,可选项有`'default'`、`'squash'`、`'cross'`、`'twirl'`、`'fade'`、`'slant'`、`'spiral'`
|
|
60
|
+
、`'divide'`、`'turn'`、`'pivot'`、`'sling'`、`'squeeze'`、`'spin'`、`'rotate'`
|
|
61
|
+
默认值:`'default'`."""
|
|
62
|
+
_children_props = []
|
|
63
|
+
_base_nodes = ['children']
|
|
64
|
+
_namespace = 'feffery_utils_components'
|
|
65
|
+
_type = 'FefferyBurger'
|
|
66
|
+
@_explicitize_args
|
|
67
|
+
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, type=Component.UNDEFINED, toggled=Component.UNDEFINED, size=Component.UNDEFINED, direction=Component.UNDEFINED, duration=Component.UNDEFINED, distance=Component.UNDEFINED, color=Component.UNDEFINED, rounded=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
68
|
+
self._prop_names = ['id', 'className', 'color', 'direction', 'distance', 'duration', 'key', 'loading_state', 'rounded', 'size', 'style', 'toggled', 'type']
|
|
69
|
+
self._valid_wildcard_attributes = []
|
|
70
|
+
self.available_properties = ['id', 'className', 'color', 'direction', 'distance', 'duration', 'key', 'loading_state', 'rounded', 'size', 'style', 'toggled', 'type']
|
|
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
|
+
super(FefferyBurger, self).__init__(**args)
|
|
@@ -27,14 +27,20 @@ Keyword arguments:
|
|
|
27
27
|
- height (string; optional):
|
|
28
28
|
设置查看器高度,同css中的height属性.
|
|
29
29
|
|
|
30
|
+
- hideNavbarButton (boolean; default False):
|
|
31
|
+
是否渲染底部导航栏隐藏按钮 默认值:`False`.
|
|
32
|
+
|
|
30
33
|
- key (string; optional):
|
|
31
34
|
辅助刷新用唯一标识key值.
|
|
32
35
|
|
|
33
36
|
- lang (dict; optional):
|
|
34
|
-
|
|
37
|
+
为相关功能控件或场景设置鼠标悬停提示信息文案.
|
|
35
38
|
|
|
36
39
|
`lang` is a dict with keys:
|
|
37
40
|
|
|
41
|
+
- autorotate (string; optional):
|
|
42
|
+
自动旋转调节.
|
|
43
|
+
|
|
38
44
|
- download (string; optional):
|
|
39
45
|
下载操作.
|
|
40
46
|
|
|
@@ -44,6 +50,9 @@ Keyword arguments:
|
|
|
44
50
|
- littlePlanetButton (string; optional):
|
|
45
51
|
小星球模式.
|
|
46
52
|
|
|
53
|
+
- loadError (string; optional):
|
|
54
|
+
资源加载失败.
|
|
55
|
+
|
|
47
56
|
- moveDown (string; optional):
|
|
48
57
|
下移操作.
|
|
49
58
|
|
|
@@ -93,10 +102,27 @@ Keyword arguments:
|
|
|
93
102
|
- moveSpeed (number; default 1):
|
|
94
103
|
设置鼠标平移速度 默认:1.
|
|
95
104
|
|
|
96
|
-
- navbar (list of a value equal to: 'zoom', 'move', 'download', 'caption', 'fullscreen's | boolean; default ['caption']):
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
- navbar (list of a value equal to: 'zoom', 'move', 'download', 'caption', 'fullscreen', 'autorotate's | boolean; default ['caption']):
|
|
106
|
+
配置导航栏中需要显示的功能项及顺序,设置为`False`时将隐藏导航栏
|
|
107
|
+
可选的有`'zoom'`、`'move'`、`'download'`、`'caption'`、`'fullscreen'`、`'autorotate'`
|
|
108
|
+
默认值:`['caption']`.
|
|
109
|
+
|
|
110
|
+
- plugins (list of dicts; optional):
|
|
111
|
+
用于配置额外插件功能.
|
|
112
|
+
|
|
113
|
+
`plugins` is a list of dicts with keys:
|
|
114
|
+
|
|
115
|
+
- autorotateSpeed (string; optional):
|
|
116
|
+
`Autorotate`模式下,自动旋转速度 默认值:`2rpm`.
|
|
117
|
+
|
|
118
|
+
- autostartDelay (number; optional):
|
|
119
|
+
`Autorotate`模式下,从用户无操作到恢复自动旋转的延时,单位:毫秒 默认值:`2000`.
|
|
120
|
+
|
|
121
|
+
- autostartOnIdle (boolean; optional):
|
|
122
|
+
`Autorotate`模式下,是否在用户无操作一段时间后恢复自动旋转 默认值:`True`.
|
|
123
|
+
|
|
124
|
+
- type (a value equal to: 'Autorotate'; required):
|
|
125
|
+
必填,插件类型,可选项有`'Autorotate'`.
|
|
100
126
|
|
|
101
127
|
- src (string; optional):
|
|
102
128
|
设置全景图片资源地址.
|
|
@@ -111,10 +137,10 @@ Keyword arguments:
|
|
|
111
137
|
_namespace = 'feffery_utils_components'
|
|
112
138
|
_type = 'FefferyPhotoSphereViewer'
|
|
113
139
|
@_explicitize_args
|
|
114
|
-
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, src=Component.UNDEFINED, width=Component.UNDEFINED, height=Component.UNDEFINED, littlePlanet=Component.UNDEFINED, containerClass=Component.UNDEFINED, navbar=Component.UNDEFINED, caption=Component.UNDEFINED, downloadUrl=Component.UNDEFINED, loadingImg=Component.UNDEFINED, loadingTxt=Component.UNDEFINED, mousewheel=Component.UNDEFINED, mousemove=Component.UNDEFINED, moveSpeed=Component.UNDEFINED, zoomSpeed=Component.UNDEFINED, fisheye=Component.UNDEFINED, lang=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
115
|
-
self._prop_names = ['id', 'caption', 'containerClass', 'downloadUrl', 'fisheye', 'height', 'key', 'lang', 'littlePlanet', 'loadingImg', 'loadingTxt', 'loading_state', 'mousemove', 'mousewheel', 'moveSpeed', 'navbar', 'src', 'width', 'zoomSpeed']
|
|
140
|
+
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, src=Component.UNDEFINED, width=Component.UNDEFINED, height=Component.UNDEFINED, littlePlanet=Component.UNDEFINED, containerClass=Component.UNDEFINED, navbar=Component.UNDEFINED, caption=Component.UNDEFINED, downloadUrl=Component.UNDEFINED, loadingImg=Component.UNDEFINED, loadingTxt=Component.UNDEFINED, mousewheel=Component.UNDEFINED, mousemove=Component.UNDEFINED, moveSpeed=Component.UNDEFINED, zoomSpeed=Component.UNDEFINED, fisheye=Component.UNDEFINED, lang=Component.UNDEFINED, hideNavbarButton=Component.UNDEFINED, plugins=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
141
|
+
self._prop_names = ['id', 'caption', 'containerClass', 'downloadUrl', 'fisheye', 'height', 'hideNavbarButton', 'key', 'lang', 'littlePlanet', 'loadingImg', 'loadingTxt', 'loading_state', 'mousemove', 'mousewheel', 'moveSpeed', 'navbar', 'plugins', 'src', 'width', 'zoomSpeed']
|
|
116
142
|
self._valid_wildcard_attributes = []
|
|
117
|
-
self.available_properties = ['id', 'caption', 'containerClass', 'downloadUrl', 'fisheye', 'height', 'key', 'lang', 'littlePlanet', 'loadingImg', 'loadingTxt', 'loading_state', 'mousemove', 'mousewheel', 'moveSpeed', 'navbar', 'src', 'width', 'zoomSpeed']
|
|
143
|
+
self.available_properties = ['id', 'caption', 'containerClass', 'downloadUrl', 'fisheye', 'height', 'hideNavbarButton', 'key', 'lang', 'littlePlanet', 'loadingImg', 'loadingTxt', 'loading_state', 'mousemove', 'mousewheel', 'moveSpeed', 'navbar', 'plugins', 'src', 'width', 'zoomSpeed']
|
|
118
144
|
self.available_wildcard_properties = []
|
|
119
145
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
120
146
|
_locals = locals()
|
|
@@ -30,6 +30,7 @@ from .FefferyMarkdownEditor import FefferyMarkdownEditor
|
|
|
30
30
|
from .FefferyRichTextEditor import FefferyRichTextEditor
|
|
31
31
|
from .FefferyVditor import FefferyVditor
|
|
32
32
|
from .FefferyAnimatedImage import FefferyAnimatedImage
|
|
33
|
+
from .FefferyBurger import FefferyBurger
|
|
33
34
|
from .FefferyCaptcha import FefferyCaptcha
|
|
34
35
|
from .FefferyCompareSlider import FefferyCompareSlider
|
|
35
36
|
from .FefferyCountDown import FefferyCountDown
|
|
@@ -141,6 +142,7 @@ __all__ = [
|
|
|
141
142
|
"FefferyRichTextEditor",
|
|
142
143
|
"FefferyVditor",
|
|
143
144
|
"FefferyAnimatedImage",
|
|
145
|
+
"FefferyBurger",
|
|
144
146
|
"FefferyCaptcha",
|
|
145
147
|
"FefferyCompareSlider",
|
|
146
148
|
"FefferyCountDown",
|
|
@@ -27,6 +27,7 @@ from .FefferyGrid import FefferyGrid as Grid
|
|
|
27
27
|
from .FefferyGridItem import FefferyGridItem as GridItem
|
|
28
28
|
from .FefferyRND import FefferyRND as RND
|
|
29
29
|
from .FefferyAnimatedImage import FefferyAnimatedImage as AnimatedImage
|
|
30
|
+
from .FefferyBurger import FefferyBurger as Burger
|
|
30
31
|
from .FefferyCaptcha import FefferyCaptcha as Captcha
|
|
31
32
|
from .FefferyCompareSlider import FefferyCompareSlider as CompareSlider
|
|
32
33
|
from .FefferyCountDown import FefferyCountDown as CountDown
|
|
@@ -136,6 +137,7 @@ __all__ = [
|
|
|
136
137
|
"GridItem",
|
|
137
138
|
"RND",
|
|
138
139
|
"AnimatedImage",
|
|
140
|
+
"Burger",
|
|
139
141
|
"Captcha",
|
|
140
142
|
"CompareSlider",
|
|
141
143
|
"CountDown",
|