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
|
@@ -4687,13 +4687,6 @@
|
|
|
4687
4687
|
"required": false,
|
|
4688
4688
|
"description": ""
|
|
4689
4689
|
},
|
|
4690
|
-
"style": {
|
|
4691
|
-
"type": {
|
|
4692
|
-
"name": "object"
|
|
4693
|
-
},
|
|
4694
|
-
"required": false,
|
|
4695
|
-
"description": ""
|
|
4696
|
-
},
|
|
4697
4690
|
"locale": {
|
|
4698
4691
|
"type": {
|
|
4699
4692
|
"name": "enum",
|
|
@@ -4767,17 +4760,22 @@
|
|
|
4767
4760
|
}
|
|
4768
4761
|
}
|
|
4769
4762
|
},
|
|
4770
|
-
"required":
|
|
4763
|
+
"required": true,
|
|
4771
4764
|
"description": ""
|
|
4772
4765
|
},
|
|
4773
4766
|
"triggeredHotkey": {
|
|
4774
4767
|
"type": {
|
|
4775
|
-
"name": "
|
|
4776
|
-
"value":
|
|
4777
|
-
{
|
|
4778
|
-
"name": "string"
|
|
4768
|
+
"name": "exact",
|
|
4769
|
+
"value": {
|
|
4770
|
+
"id": {
|
|
4771
|
+
"name": "string",
|
|
4772
|
+
"required": false
|
|
4773
|
+
},
|
|
4774
|
+
"timestamp": {
|
|
4775
|
+
"name": "number",
|
|
4776
|
+
"required": false
|
|
4779
4777
|
}
|
|
4780
|
-
|
|
4778
|
+
}
|
|
4781
4779
|
},
|
|
4782
4780
|
"required": false,
|
|
4783
4781
|
"description": ""
|
|
@@ -4789,19 +4787,16 @@
|
|
|
4789
4787
|
"required": false,
|
|
4790
4788
|
"description": ""
|
|
4791
4789
|
},
|
|
4792
|
-
"disableHotkeys": {
|
|
4793
|
-
"type": {
|
|
4794
|
-
"name": "bool"
|
|
4795
|
-
},
|
|
4796
|
-
"required": false,
|
|
4797
|
-
"description": ""
|
|
4798
|
-
},
|
|
4799
4790
|
"openHotkey": {
|
|
4800
4791
|
"type": {
|
|
4801
4792
|
"name": "string"
|
|
4802
4793
|
},
|
|
4803
4794
|
"required": false,
|
|
4804
|
-
"description": ""
|
|
4795
|
+
"description": "",
|
|
4796
|
+
"defaultValue": {
|
|
4797
|
+
"value": "'cmd+k,ctrl+k'",
|
|
4798
|
+
"computed": false
|
|
4799
|
+
}
|
|
4805
4800
|
},
|
|
4806
4801
|
"theme": {
|
|
4807
4802
|
"type": {
|
|
@@ -4824,6 +4819,28 @@
|
|
|
4824
4819
|
"computed": false
|
|
4825
4820
|
}
|
|
4826
4821
|
},
|
|
4822
|
+
"open": {
|
|
4823
|
+
"type": {
|
|
4824
|
+
"name": "bool"
|
|
4825
|
+
},
|
|
4826
|
+
"required": false,
|
|
4827
|
+
"description": "",
|
|
4828
|
+
"defaultValue": {
|
|
4829
|
+
"value": "false",
|
|
4830
|
+
"computed": false
|
|
4831
|
+
}
|
|
4832
|
+
},
|
|
4833
|
+
"close": {
|
|
4834
|
+
"type": {
|
|
4835
|
+
"name": "bool"
|
|
4836
|
+
},
|
|
4837
|
+
"required": false,
|
|
4838
|
+
"description": "",
|
|
4839
|
+
"defaultValue": {
|
|
4840
|
+
"value": "false",
|
|
4841
|
+
"computed": false
|
|
4842
|
+
}
|
|
4843
|
+
},
|
|
4827
4844
|
"loading_state": {
|
|
4828
4845
|
"type": {
|
|
4829
4846
|
"name": "shape",
|
|
@@ -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)
|