feffery_utils_components 0.1.13 → 0.1.14
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/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyShortcutPanel.py +21 -10
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +4 -4
- package/build/lib/feffery_utils_components/metadata.json +38 -21
- package/build/lib/feffery_utils_components/package-info.json +1 -1
- package/feffery_utils_components/FefferyShortcutPanel.py +21 -10
- package/feffery_utils_components/feffery_utils_components.min.js +4 -4
- package/feffery_utils_components/metadata.json +38 -21
- package/feffery_utils_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/FefferyUtilsComponents.jl +3 -3
- package/src/jl/''_fefferyshortcutpanel.jl +8 -5
- package/src/lib/components/FefferyShortcutPanel.react.js +106 -69
- package/src/lib/components/colorPickers/FefferyBlockColorPicker.react.js +1 -1
- package/src/lib/components/colorPickers/FefferyCircleColorPicker.react.js +1 -1
- package/src/lib/components/colorPickers/FefferyGithubColorPicker.react.js +1 -1
- package/src/lib/components/colorPickers/FefferyTwitterColorPicker.react.js +1 -1
- package/src/lib/components/styles.css +5 -0
- package/tests/ShortcutPanelTest/app.py +32 -0
package/DESCRIPTION
CHANGED
package/Project.toml
CHANGED
|
@@ -11,7 +11,9 @@ Keyword arguments:
|
|
|
11
11
|
|
|
12
12
|
- id (string; optional)
|
|
13
13
|
|
|
14
|
-
-
|
|
14
|
+
- close (boolean; default False)
|
|
15
|
+
|
|
16
|
+
- data (list of dicts; required)
|
|
15
17
|
|
|
16
18
|
`data` is a list of dicts with keys:
|
|
17
19
|
|
|
@@ -31,8 +33,6 @@ Keyword arguments:
|
|
|
31
33
|
|
|
32
34
|
- title (string; required)
|
|
33
35
|
|
|
34
|
-
- disableHotkeys (boolean; optional)
|
|
35
|
-
|
|
36
36
|
- loading_state (dict; optional)
|
|
37
37
|
|
|
38
38
|
`loading_state` is a dict with keys:
|
|
@@ -48,28 +48,39 @@ Keyword arguments:
|
|
|
48
48
|
|
|
49
49
|
- locale (a value equal to: 'en', 'zh'; default 'zh')
|
|
50
50
|
|
|
51
|
-
-
|
|
51
|
+
- open (boolean; default False)
|
|
52
52
|
|
|
53
|
-
-
|
|
53
|
+
- openHotkey (string; default 'cmd+k,ctrl+k')
|
|
54
54
|
|
|
55
|
-
-
|
|
55
|
+
- placeholder (string; optional)
|
|
56
56
|
|
|
57
57
|
- theme (a value equal to: 'light', 'dark'; default 'light')
|
|
58
58
|
|
|
59
|
-
- triggeredHotkey (
|
|
59
|
+
- triggeredHotkey (dict; optional)
|
|
60
|
+
|
|
61
|
+
`triggeredHotkey` is a dict with keys:
|
|
62
|
+
|
|
63
|
+
- id (string; optional)
|
|
64
|
+
|
|
65
|
+
- timestamp (number; optional)"""
|
|
60
66
|
_children_props = []
|
|
61
67
|
_base_nodes = ['children']
|
|
62
68
|
_namespace = 'feffery_utils_components'
|
|
63
69
|
_type = 'FefferyShortcutPanel'
|
|
64
70
|
@_explicitize_args
|
|
65
|
-
def __init__(self, id=Component.UNDEFINED,
|
|
66
|
-
self._prop_names = ['id', '
|
|
71
|
+
def __init__(self, id=Component.UNDEFINED, locale=Component.UNDEFINED, data=Component.REQUIRED, triggeredHotkey=Component.UNDEFINED, placeholder=Component.UNDEFINED, openHotkey=Component.UNDEFINED, theme=Component.UNDEFINED, open=Component.UNDEFINED, close=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
72
|
+
self._prop_names = ['id', 'close', 'data', 'loading_state', 'locale', 'open', 'openHotkey', 'placeholder', 'theme', 'triggeredHotkey']
|
|
67
73
|
self._valid_wildcard_attributes = []
|
|
68
|
-
self.available_properties = ['id', '
|
|
74
|
+
self.available_properties = ['id', 'close', 'data', 'loading_state', 'locale', 'open', 'openHotkey', 'placeholder', 'theme', 'triggeredHotkey']
|
|
69
75
|
self.available_wildcard_properties = []
|
|
70
76
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
71
77
|
_locals = locals()
|
|
72
78
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
73
79
|
args = {k: _locals[k] for k in _explicit_args}
|
|
74
80
|
|
|
81
|
+
for k in ['data']:
|
|
82
|
+
if k not in args:
|
|
83
|
+
raise TypeError(
|
|
84
|
+
'Required argument `' + k + '` was not specified.')
|
|
85
|
+
|
|
75
86
|
super(FefferyShortcutPanel, self).__init__(**args)
|