feffery_utils_components 0.2.0-b8 → 0.2.0-b9

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 (35) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +1 -0
  3. package/Project.toml +1 -1
  4. package/README.md +7 -1
  5. package/build/lib/feffery_utils_components/FefferyCaptcha.py +20 -10
  6. package/build/lib/feffery_utils_components/FefferyEmojiPicker.py +259 -0
  7. package/build/lib/feffery_utils_components/__init__.py +1 -1
  8. package/build/lib/feffery_utils_components/_imports_.py +2 -0
  9. package/build/lib/feffery_utils_components/async-feffery_aplayer.js +2 -2
  10. package/build/lib/feffery_utils_components/async-feffery_captcha.js +1 -1
  11. package/build/lib/feffery_utils_components/async-feffery_dplayer.js +1 -1
  12. package/build/lib/feffery_utils_components/async-feffery_emoji_picker.js +1 -0
  13. package/build/lib/feffery_utils_components/async-feffery_music_player.js +1 -1
  14. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +2 -2
  15. package/build/lib/feffery_utils_components/metadata.json +777 -10
  16. package/build/lib/feffery_utils_components/package-info.json +4 -1
  17. package/feffery_utils_components/FefferyCaptcha.py +20 -10
  18. package/feffery_utils_components/FefferyEmojiPicker.py +259 -0
  19. package/feffery_utils_components/__init__.py +1 -1
  20. package/feffery_utils_components/_imports_.py +2 -0
  21. package/feffery_utils_components/async-feffery_aplayer.js +2 -2
  22. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  23. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  24. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -0
  25. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  26. package/feffery_utils_components/feffery_utils_components.min.js +2 -2
  27. package/feffery_utils_components/metadata.json +777 -10
  28. package/feffery_utils_components/package-info.json +4 -1
  29. package/package.json +4 -1
  30. package/src/lib/components/FefferyCaptcha.react.js +30 -10
  31. package/src/lib/components/FefferyEmojiPicker.react.js +352 -0
  32. package/src/lib/fragments/FefferyEmojiPicker.react.js +98 -0
  33. package/src/lib/index.js +6 -4
  34. package/usage.py +16 -65
  35. package/feffery_utils_components/async-feffery_captcha.js.LICENSE.txt +0 -8
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-b8
3
+ Version: 0.2.0-b9
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -18,6 +18,7 @@ export(''FefferyCountDown)
18
18
  export(''FefferyCountUp)
19
19
  export(''FefferyCssVar)
20
20
  export(''FefferyDiv)
21
+ export(''FefferyEmojiPicker)
21
22
  export(''FefferyExecuteJs)
22
23
  export(''FefferyExternalCss)
23
24
  export(''FefferyExternalJs)
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-b8"
5
+ version = "0.2.0-b9"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
package/README.md CHANGED
@@ -36,4 +36,10 @@ app = dash.Dash(serve_locally=False)
36
36
 
37
37
  ## 4 在线文档
38
38
 
39
- <a href='http://fuc.feffery.tech/' target='_blank'>文档地址</a>
39
+ <a href='http://fuc.feffery.tech/' target='_blank'>文档地址</a>
40
+
41
+ ## 5 贡献者
42
+
43
+ <a href = "https://github.com/CNFeffery/feffery-utils-components/graphs/contributors">
44
+ <img src = "https://contrib.rocks/image?repo=CNFeffery/feffery-utils-components"/>
45
+ </a>
@@ -9,19 +9,26 @@ class FefferyCaptcha(Component):
9
9
 
10
10
  Keyword arguments:
11
11
 
12
- - id (string; optional)
12
+ - id (string; optional):
13
+ 部件id.
13
14
 
14
- - bgColor (string; optional)
15
+ - bgColor (string; optional):
16
+ 设置验证码图片背景色,默认为'#DFF0D8'.
15
17
 
16
- - captcha (string; optional)
18
+ - captcha (string; optional):
19
+ 对应当前的验证码字符串.
17
20
 
18
- - charNum (number; default 4)
21
+ - charNum (number; default 4):
22
+ 设置验证码字符数量.
19
23
 
20
- - className (string; optional)
24
+ - className (string; optional):
25
+ css类名.
21
26
 
22
- - fontSize (number; optional)
27
+ - fontSize (number; optional):
28
+ 设置验证码字体像素大小,默认为25.
23
29
 
24
- - height (number; optional)
30
+ - height (number; optional):
31
+ 设置验证码的像素高度,默认为40.
25
32
 
26
33
  - loading_state (dict; optional)
27
34
 
@@ -36,11 +43,14 @@ Keyword arguments:
36
43
  - prop_name (string; optional):
37
44
  Holds which property is loading.
38
45
 
39
- - refresh (boolean; optional)
46
+ - refresh (boolean; optional):
47
+ 用于手动刷新验证码,当传入True时会强制刷新验证码,再自动重置为False.
40
48
 
41
- - style (dict; optional)
49
+ - style (dict; optional):
50
+ 自定义css字典.
42
51
 
43
- - width (number; optional)"""
52
+ - width (number; optional):
53
+ 设置验证码的像素宽度,默认为100."""
44
54
  _children_props = []
45
55
  _base_nodes = ['children']
46
56
  _namespace = 'feffery_utils_components'
@@ -0,0 +1,259 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyEmojiPicker(Component):
7
+ """A FefferyEmojiPicker component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional):
13
+ 部件id.
14
+
15
+ - autoFocus (boolean; default False):
16
+ 设置选择器是否自动获取搜索框的焦点,默认为False.
17
+
18
+ - categories (list of a value equal to: 'frequent', 'people', 'nature', 'foods', 'activity', 'places', 'objects', 'symbols', 'flags's; default ['frequent', 'people', 'nature', 'foods', 'activity', 'places', 'objects', 'symbols', 'flags']):
19
+ 设置emoji显示的类别.
20
+
21
+ - className (string; optional):
22
+ css类名.
23
+
24
+ - clickOutsideNums (number; default 0):
25
+ 监听点击选择器外区域的次数.
26
+
27
+ - custom (list of dicts; optional):
28
+ 设置是否显示搜索框,默认为True.
29
+
30
+ `custom` is a list of dicts with keys:
31
+
32
+ - emojis (list of dicts; optional):
33
+ emoji分组的emoji.
34
+
35
+ `emojis` is a list of dicts with keys:
36
+
37
+ - id (string; optional):
38
+
39
+ emoji的id.
40
+
41
+ - keywords (list; optional):
42
+
43
+ emoji的keywords.
44
+
45
+ - name (string; optional):
46
+
47
+ emoji的名称.
48
+
49
+ - skins (list of dicts; optional):
50
+
51
+ emoji的分类.
52
+
53
+ `skins` is a list of dicts with keys:
54
+
55
+ - src (string; optional):
56
+
57
+ emoji的图片地址.
58
+
59
+ - id (string; optional):
60
+ emoji分组的id.
61
+
62
+ - name (string; optional):
63
+ emoji分组的名称.
64
+
65
+ - customCategoryIcons (dict; optional):
66
+ 设置是否显示搜索框,默认为True.
67
+
68
+ `customCategoryIcons` is a dict with keys:
69
+
70
+ - categoryIcons (dict; optional):
71
+ 自定义emoji分组的图标.
72
+
73
+ `categoryIcons` is a dict with keys:
74
+
75
+ - activity (dict; optional)
76
+
77
+ `activity` is a dict with keys:
78
+
79
+ - src (string; optional):
80
+ 自定义activity分组的src.
81
+
82
+ - svg (string; optional):
83
+ 自定义activity分组的svg.
84
+
85
+ - flags (dict; optional)
86
+
87
+ `flags` is a dict with keys:
88
+
89
+ - src (string; optional):
90
+ 自定义flags分组的src.
91
+
92
+ - svg (string; optional):
93
+ 自定义flags分组的svg.
94
+
95
+ - foods (dict; optional)
96
+
97
+ `foods` is a dict with keys:
98
+
99
+ - src (string; optional):
100
+ 自定义foods分组的src.
101
+
102
+ - svg (string; optional):
103
+ 自定义foods分组的svg.
104
+
105
+ - frequent (dict; optional):
106
+ 自定义frequent分组的icon.
107
+
108
+ `frequent` is a dict with keys:
109
+
110
+ - src (string; optional):
111
+ 自定义frequent分组的src.
112
+
113
+ - svg (string; optional):
114
+ 自定义frequent分组的svg.
115
+
116
+ - nature (dict; optional)
117
+
118
+ `nature` is a dict with keys:
119
+
120
+ - src (string; optional):
121
+ 自定义nature分组的src.
122
+
123
+ - svg (string; optional):
124
+ 自定义nature分组的svg.
125
+
126
+ - objects (dict; optional)
127
+
128
+ `objects` is a dict with keys:
129
+
130
+ - src (string; optional):
131
+ 自定义objects分组的src.
132
+
133
+ - svg (string; optional):
134
+ 自定义objects分组的svg.
135
+
136
+ - people (dict; optional)
137
+
138
+ `people` is a dict with keys:
139
+
140
+ - src (string; optional):
141
+ 自定义people分组的src.
142
+
143
+ - svg (string; optional):
144
+ 自定义people分组的svg.
145
+
146
+ - places (dict; optional)
147
+
148
+ `places` is a dict with keys:
149
+
150
+ - src (string; optional):
151
+ 自定义places分组的src.
152
+
153
+ - svg (string; optional):
154
+ 自定义places分组的svg.
155
+
156
+ - symbols (dict; optional)
157
+
158
+ `symbols` is a dict with keys:
159
+
160
+ - src (string; optional):
161
+ 自定义symbols分组的src.
162
+
163
+ - svg (string; optional):
164
+ 自定义symbols分组的svg.
165
+
166
+ - dynamicWidth (boolean; default False):
167
+ 设置是否根据选择器的宽度动态计算每行显示的emoji数量,当设置为True时,perLine参数失效,默认为False.
168
+
169
+ - emojiButtonColors (list; optional):
170
+ 设置影响悬浮背景颜色的颜色数组.
171
+
172
+ - emojiButtonRadius (string; default '100%'):
173
+ 设置emoji按钮的圆角,默认为'100%'.
174
+
175
+ - emojiButtonSize (number; default 36):
176
+ 设置emoji按钮的大小,默认为36.
177
+
178
+ - emojiSize (number; default 24):
179
+ 设置emoji的大小,默认为24.
180
+
181
+ - emojiVersion (a value equal to: 1, 2, 3, 4, 5, 11, 12, 12.1, 13, 13.1, 14; default 14):
182
+ 设置使用的emoji数据的版本,默认为最新版14.
183
+
184
+ - exceptEmojis (list; optional):
185
+ 设置需要从选择器中移除的emoji的id.
186
+
187
+ - icons (a value equal to: 'auto', 'outline', 'solid'; default 'auto'):
188
+ 设置要用于选取器的图标类型。 outline用于浅色主题,solid用于深色主题.
189
+
190
+ - loading_state (dict; optional)
191
+
192
+ `loading_state` is a dict with keys:
193
+
194
+ - component_name (string; optional):
195
+ Holds the name of the component that is loading.
196
+
197
+ - is_loading (boolean; optional):
198
+ Determines if the component is loading or not.
199
+
200
+ - prop_name (string; optional):
201
+ Holds which property is loading.
202
+
203
+ - locale (a value equal to: 'en', 'zh'; default 'zh'):
204
+ 语言设置.
205
+
206
+ - maxFrequentRows (number; default 0):
207
+ 设置要显示的frequent行的最大数目,设置为0将禁用frequent类别.
208
+
209
+ - navPosition (a value equal to: 'top', 'bottom', 'none'; default 'top'):
210
+ 设置导航栏的位置,默认为'top'.
211
+
212
+ - noResultsEmoji (string; default 'cry'):
213
+ 设置无结果时的emoji的id,默认为'cry'.
214
+
215
+ - perLine (number; default 9):
216
+ 设置每行显示的emoji数量,当dynamicWidth参数设置为True时,perLine参数失效,默认为9.
217
+
218
+ - previewEmoji (string; optional):
219
+ 设置当不悬停任何emoji时,用于预览的emoji的id。当预览位置位于底部时默认为'point_up',当预览位置处于顶部时默认为'point_down'.
220
+
221
+ - previewPosition (a value equal to: 'top', 'bottom', 'none'; default 'bottom'):
222
+ 设置预览位置,默认为'bottom'.
223
+
224
+ - searchPosition (a value equal to: 'sticky', 'static', 'none'; default 'sticky'):
225
+ 设置搜索框的位置,默认为'sticky'.
226
+
227
+ - set (a value equal to: 'native', 'apple', 'facebook', 'google', 'twitter'; default 'native'):
228
+ 设置emoji的集合来源,默认为'native',建议使用'native'.
229
+
230
+ - skin (a value equal to: 1, 2, 3, 4, 5, 6; default 1):
231
+ 设置emoji的皮肤类型,默认为1.
232
+
233
+ - skinTonePosition (a value equal to: 'preview', 'search', 'none'; default 'preview'):
234
+ 设置皮肤选择器的位置,默认为'preview'.
235
+
236
+ - style (dict; optional):
237
+ 自定义css字典.
238
+
239
+ - theme (a value equal to: 'auto', 'light', 'dark'; default 'auto'):
240
+ 设置选择器的主题,默认为'auto'.
241
+
242
+ - value (dict; optional):
243
+ 监听当前选择的emoji信息."""
244
+ _children_props = []
245
+ _base_nodes = ['children']
246
+ _namespace = 'feffery_utils_components'
247
+ _type = 'FefferyEmojiPicker'
248
+ @_explicitize_args
249
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, categories=Component.UNDEFINED, custom=Component.UNDEFINED, customCategoryIcons=Component.UNDEFINED, autoFocus=Component.UNDEFINED, dynamicWidth=Component.UNDEFINED, perLine=Component.UNDEFINED, emojiButtonColors=Component.UNDEFINED, emojiButtonRadius=Component.UNDEFINED, emojiButtonSize=Component.UNDEFINED, emojiSize=Component.UNDEFINED, emojiVersion=Component.UNDEFINED, exceptEmojis=Component.UNDEFINED, icons=Component.UNDEFINED, maxFrequentRows=Component.UNDEFINED, navPosition=Component.UNDEFINED, noResultsEmoji=Component.UNDEFINED, previewEmoji=Component.UNDEFINED, previewPosition=Component.UNDEFINED, searchPosition=Component.UNDEFINED, set=Component.UNDEFINED, skin=Component.UNDEFINED, skinTonePosition=Component.UNDEFINED, theme=Component.UNDEFINED, value=Component.UNDEFINED, clickOutsideNums=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
250
+ self._prop_names = ['id', 'autoFocus', 'categories', 'className', 'clickOutsideNums', 'custom', 'customCategoryIcons', 'dynamicWidth', 'emojiButtonColors', 'emojiButtonRadius', 'emojiButtonSize', 'emojiSize', 'emojiVersion', 'exceptEmojis', 'icons', 'loading_state', 'locale', 'maxFrequentRows', 'navPosition', 'noResultsEmoji', 'perLine', 'previewEmoji', 'previewPosition', 'searchPosition', 'set', 'skin', 'skinTonePosition', 'style', 'theme', 'value']
251
+ self._valid_wildcard_attributes = []
252
+ self.available_properties = ['id', 'autoFocus', 'categories', 'className', 'clickOutsideNums', 'custom', 'customCategoryIcons', 'dynamicWidth', 'emojiButtonColors', 'emojiButtonRadius', 'emojiButtonSize', 'emojiSize', 'emojiVersion', 'exceptEmojis', 'icons', 'loading_state', 'locale', 'maxFrequentRows', 'navPosition', 'noResultsEmoji', 'perLine', 'previewEmoji', 'previewPosition', 'searchPosition', 'set', 'skin', 'skinTonePosition', 'style', 'theme', 'value']
253
+ self.available_wildcard_properties = []
254
+ _explicit_args = kwargs.pop('_explicit_args')
255
+ _locals = locals()
256
+ _locals.update(kwargs) # For wildcard attrs and excess named props
257
+ args = {k: _locals[k] for k in _explicit_args}
258
+
259
+ super(FefferyEmojiPicker, self).__init__(**args)
@@ -28,7 +28,7 @@ _current_path = _os.path.dirname(_os.path.abspath(__file__))
28
28
 
29
29
  _this_module = _sys.modules[__name__]
30
30
 
31
- async_resources = ['feffery_captcha', 'feffery_aplayer', 'feffery_dplayer', 'feffery_music_player']
31
+ async_resources = ['feffery_captcha', 'feffery_aplayer', 'feffery_dplayer', 'feffery_music_player', 'feffery_emoji_picker']
32
32
 
33
33
  _js_dist = []
34
34
 
@@ -16,6 +16,7 @@ from .FefferyCountDown import FefferyCountDown
16
16
  from .FefferyCountUp import FefferyCountUp
17
17
  from .FefferyCssVar import FefferyCssVar
18
18
  from .FefferyDiv import FefferyDiv
19
+ from .FefferyEmojiPicker import FefferyEmojiPicker
19
20
  from .FefferyExecuteJs import FefferyExecuteJs
20
21
  from .FefferyExternalCss import FefferyExternalCss
21
22
  from .FefferyExternalJs import FefferyExternalJs
@@ -92,6 +93,7 @@ __all__ = [
92
93
  "FefferyCountUp",
93
94
  "FefferyCssVar",
94
95
  "FefferyDiv",
96
+ "FefferyEmojiPicker",
95
97
  "FefferyExecuteJs",
96
98
  "FefferyExternalCss",
97
99
  "FefferyExternalJs",