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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyUtilsComponents
2
2
  Title: Build more utility components for Plotly Dash.
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
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.1.13"
5
+ version = "0.1.14"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -11,7 +11,9 @@ Keyword arguments:
11
11
 
12
12
  - id (string; optional)
13
13
 
14
- - data (list of dicts; optional)
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
- - openHotkey (string; optional)
51
+ - open (boolean; default False)
52
52
 
53
- - placeholder (string; optional)
53
+ - openHotkey (string; default 'cmd+k,ctrl+k')
54
54
 
55
- - style (dict; optional)
55
+ - placeholder (string; optional)
56
56
 
57
57
  - theme (a value equal to: 'light', 'dark'; default 'light')
58
58
 
59
- - triggeredHotkey (string; optional)"""
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, style=Component.UNDEFINED, locale=Component.UNDEFINED, data=Component.UNDEFINED, triggeredHotkey=Component.UNDEFINED, placeholder=Component.UNDEFINED, disableHotkeys=Component.UNDEFINED, openHotkey=Component.UNDEFINED, theme=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
66
- self._prop_names = ['id', 'data', 'disableHotkeys', 'loading_state', 'locale', 'openHotkey', 'placeholder', 'style', 'theme', 'triggeredHotkey']
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', 'data', 'disableHotkeys', 'loading_state', 'locale', 'openHotkey', 'placeholder', 'style', 'theme', 'triggeredHotkey']
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)