feffery_antd_components 0.2.6 → 0.2.7

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 (50) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +1 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_antd_components/AntdCompact.py +55 -0
  5. package/build/lib/feffery_antd_components/AntdDatePicker.py +7 -1
  6. package/build/lib/feffery_antd_components/AntdDateRangePicker.py +7 -1
  7. package/build/lib/feffery_antd_components/AntdDropdown.py +4 -0
  8. package/build/lib/feffery_antd_components/AntdFormItem.py +1 -1
  9. package/build/lib/feffery_antd_components/AntdInput.py +5 -3
  10. package/build/lib/feffery_antd_components/AntdSpace.py +7 -5
  11. package/build/lib/feffery_antd_components/AntdTree.py +2 -0
  12. package/build/lib/feffery_antd_components/AntdUpload.py +17 -3
  13. package/build/lib/feffery_antd_components/_imports_.py +2 -0
  14. package/build/lib/feffery_antd_components/package-info.json +3 -3
  15. package/feffery_antd_components/AntdCompact.py +55 -0
  16. package/feffery_antd_components/AntdDatePicker.py +7 -1
  17. package/feffery_antd_components/AntdDateRangePicker.py +7 -1
  18. package/feffery_antd_components/AntdDropdown.py +4 -0
  19. package/feffery_antd_components/AntdFormItem.py +1 -1
  20. package/feffery_antd_components/AntdInput.py +5 -3
  21. package/feffery_antd_components/AntdSpace.py +7 -5
  22. package/feffery_antd_components/AntdTree.py +2 -0
  23. package/feffery_antd_components/AntdUpload.py +17 -3
  24. package/feffery_antd_components/_imports_.py +2 -0
  25. package/feffery_antd_components/package-info.json +3 -3
  26. package/package.json +3 -3
  27. package/src/jl/'feffery'_antdcompact.jl +35 -0
  28. package/src/jl/'feffery'_antddatepicker.jl +4 -1
  29. package/src/jl/'feffery'_antddaterangepicker.jl +4 -1
  30. package/src/jl/'feffery'_antddropdown.jl +3 -1
  31. package/src/jl/'feffery'_antdinput.jl +2 -1
  32. package/src/jl/'feffery'_antdspace.jl +2 -1
  33. package/src/jl/'feffery'_antdtree.jl +2 -1
  34. package/src/jl/'feffery'_antdupload.jl +8 -1
  35. package/src/lib/components/AntdCompact.react.js +103 -0
  36. package/src/lib/components/AntdDatePicker.react.js +18 -3
  37. package/src/lib/components/AntdDateRangePicker.react.js +21 -3
  38. package/src/lib/components/AntdDropdown.react.js +7 -1
  39. package/src/lib/components/AntdInput.react.js +37 -3
  40. package/src/lib/components/AntdSpace.react.js +5 -2
  41. package/src/lib/components/AntdStatistic.react.js +3 -4
  42. package/src/lib/components/AntdTree.react.js +5 -2
  43. package/src/lib/components/form/AntdFormItem.react.js +0 -1
  44. package/src/lib/components/upload/AntdUpload.react.js +21 -1
  45. package/src/lib/index.js +3 -1
  46. package/usage.py +15 -139
  47. package/build/lib/feffery_antd_components/feffery_antd_components.min.js +0 -1
  48. package/build/lib/feffery_antd_components/metadata.json +0 -24770
  49. package/feffery_antd_components/feffery_antd_components.min.js +0 -1
  50. package/feffery_antd_components/metadata.json +0 -24770
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyAntdComponents
2
2
  Title: Best implementation of Antd components in Plotly Dash.
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Description: Best implementation of Antd components in Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -17,6 +17,7 @@ export('feffery'AntdCheckbox)
17
17
  export('feffery'AntdCheckboxGroup)
18
18
  export('feffery'AntdCollapse)
19
19
  export('feffery'AntdComment)
20
+ export('feffery'AntdCompact)
20
21
  export('feffery'AntdConfigProvider)
21
22
  export('feffery'AntdCopyText)
22
23
  export('feffery'AntdCountdown)
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyAntdComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-baf51bd2b26e"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.2.6"
5
+ version = "0.2.7"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -0,0 +1,55 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdCompact(Component):
7
+ """An AntdCompact component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional):
13
+ The content of the tab - will only be displayed if this tab is
14
+ selected.
15
+
16
+ - id (string; optional)
17
+
18
+ - block (boolean; default False)
19
+
20
+ - className (string | dict; optional)
21
+
22
+ - direction (a value equal to: 'vertical', 'horizontal'; default 'horizontal')
23
+
24
+ - key (string; optional)
25
+
26
+ - loading_state (dict; optional)
27
+
28
+ `loading_state` is a dict with keys:
29
+
30
+ - component_name (string; optional):
31
+ Holds the name of the component that is loading.
32
+
33
+ - is_loading (boolean; optional):
34
+ Determines if the component is loading or not.
35
+
36
+ - prop_name (string; optional):
37
+ Holds which property is loading.
38
+
39
+ - style (dict; optional)"""
40
+ _children_props = []
41
+ _base_nodes = ['children']
42
+ _namespace = 'feffery_antd_components'
43
+ _type = 'AntdCompact'
44
+ @_explicitize_args
45
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, direction=Component.UNDEFINED, block=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
46
+ self._prop_names = ['children', 'id', 'block', 'className', 'direction', 'key', 'loading_state', 'style']
47
+ self._valid_wildcard_attributes = []
48
+ self.available_properties = ['children', 'id', 'block', 'className', 'direction', 'key', 'loading_state', 'style']
49
+ self.available_wildcard_properties = []
50
+ _explicit_args = kwargs.pop('_explicit_args')
51
+ _locals = locals()
52
+ _locals.update(kwargs) # For wildcard attrs and excess named props
53
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
54
+
55
+ super(AntdCompact, self).__init__(children=children, **args)
@@ -85,7 +85,13 @@ Keyword arguments:
85
85
 
86
86
  - readOnly (boolean; optional)
87
87
 
88
- - showTime (boolean; default False)
88
+ - showTime (dict; default False)
89
+
90
+ `showTime` is a boolean | dict with keys:
91
+
92
+ - defaultValue (string; optional)
93
+
94
+ - format (string; optional)
89
95
 
90
96
  - size (a value equal to: 'small', 'middle', 'large'; default 'middle')
91
97
 
@@ -85,7 +85,13 @@ Keyword arguments:
85
85
 
86
86
  - readOnly (boolean; optional)
87
87
 
88
- - showTime (boolean; default False)
88
+ - showTime (dict; default False)
89
+
90
+ `showTime` is a boolean | dict with keys:
91
+
92
+ - defaultValue (list of strings; optional)
93
+
94
+ - format (string; optional)
89
95
 
90
96
  - size (a value equal to: 'small', 'middle', 'large'; default 'middle')
91
97
 
@@ -21,10 +21,14 @@ Keyword arguments:
21
21
 
22
22
  `buttonProps` is a dict with keys:
23
23
 
24
+ - className (string; optional)
25
+
24
26
  - danger (boolean; optional)
25
27
 
26
28
  - size (a value equal to: 'default', 'small', 'large'; optional)
27
29
 
30
+ - style (dict; optional)
31
+
28
32
  - type (a value equal to: 'primary', 'ghost', 'dashed', 'link', 'text', 'default'; optional)
29
33
 
30
34
  - className (string | dict; optional)
@@ -29,7 +29,7 @@ Keyword arguments:
29
29
 
30
30
  - label (a list of or a singular dash component, string or number; optional)
31
31
 
32
- - labelAlign (a value equal to: 'left', 'right'; default 'right')
32
+ - labelAlign (a value equal to: 'left', 'right'; optional)
33
33
 
34
34
  - labelCol (dict; optional)
35
35
 
@@ -39,6 +39,8 @@ Keyword arguments:
39
39
 
40
40
  - disabled (boolean; default False)
41
41
 
42
+ - emptyAsNone (boolean; default False)
43
+
42
44
  - key (string; optional)
43
45
 
44
46
  - loading_state (dict; optional)
@@ -107,10 +109,10 @@ Keyword arguments:
107
109
  _namespace = 'feffery_antd_components'
108
110
  _type = 'AntdInput'
109
111
  @_explicitize_args
110
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, autoComplete=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, placeholder=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, md5Value=Component.UNDEFINED, debounceValue=Component.UNDEFINED, passwordUseMd5=Component.UNDEFINED, debounceWait=Component.UNDEFINED, addonBefore=Component.UNDEFINED, addonAfter=Component.UNDEFINED, prefix=Component.UNDEFINED, suffix=Component.UNDEFINED, maxLength=Component.UNDEFINED, showCount=Component.UNDEFINED, autoSize=Component.UNDEFINED, nSubmit=Component.UNDEFINED, nClicksSearch=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, readOnly=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
111
- self._prop_names = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
112
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, autoComplete=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, placeholder=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, md5Value=Component.UNDEFINED, debounceValue=Component.UNDEFINED, passwordUseMd5=Component.UNDEFINED, debounceWait=Component.UNDEFINED, addonBefore=Component.UNDEFINED, addonAfter=Component.UNDEFINED, prefix=Component.UNDEFINED, suffix=Component.UNDEFINED, maxLength=Component.UNDEFINED, showCount=Component.UNDEFINED, autoSize=Component.UNDEFINED, nSubmit=Component.UNDEFINED, nClicksSearch=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, readOnly=Component.UNDEFINED, emptyAsNone=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
113
+ self._prop_names = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
112
114
  self._valid_wildcard_attributes = []
113
- self.available_properties = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
115
+ self.available_properties = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
114
116
  self.available_wildcard_properties = []
115
117
  _explicit_args = kwargs.pop('_explicit_args')
116
118
  _locals = locals()
@@ -21,6 +21,8 @@ Keyword arguments:
21
21
 
22
22
  - className (string | dict; optional)
23
23
 
24
+ - customSplit (a list of or a singular dash component, string or number; optional)
25
+
24
26
  - direction (a value equal to: 'vertical', 'horizontal'; default 'horizontal')
25
27
 
26
28
  - key (string; optional)
@@ -43,15 +45,15 @@ Keyword arguments:
43
45
  - style (dict; optional)
44
46
 
45
47
  - wrap (boolean; default False)"""
46
- _children_props = []
47
- _base_nodes = ['children']
48
+ _children_props = ['customSplit']
49
+ _base_nodes = ['customSplit', 'children']
48
50
  _namespace = 'feffery_antd_components'
49
51
  _type = 'AntdSpace'
50
52
  @_explicitize_args
51
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, align=Component.UNDEFINED, direction=Component.UNDEFINED, size=Component.UNDEFINED, addSplitLine=Component.UNDEFINED, wrap=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
52
- self._prop_names = ['children', 'id', 'addSplitLine', 'align', 'className', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
53
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, align=Component.UNDEFINED, direction=Component.UNDEFINED, size=Component.UNDEFINED, addSplitLine=Component.UNDEFINED, customSplit=Component.UNDEFINED, wrap=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
54
+ self._prop_names = ['children', 'id', 'addSplitLine', 'align', 'className', 'customSplit', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
53
55
  self._valid_wildcard_attributes = []
54
- self.available_properties = ['children', 'id', 'addSplitLine', 'align', 'className', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
56
+ self.available_properties = ['children', 'id', 'addSplitLine', 'align', 'className', 'customSplit', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
55
57
  self.available_wildcard_properties = []
56
58
  _explicit_args = kwargs.pop('_explicit_args')
57
59
  _locals = locals()
@@ -27,6 +27,8 @@ Keyword arguments:
27
27
 
28
28
  - nodeKey (string; optional)
29
29
 
30
+ - timestamp (number; optional)
31
+
30
32
  - defaultCheckedKeys (list of strings; optional)
31
33
 
32
34
  - defaultExpandAll (boolean; default False)
@@ -15,6 +15,20 @@ Keyword arguments:
15
15
 
16
16
  - buttonContent (a list of or a singular dash component, string or number; optional)
17
17
 
18
+ - buttonProps (dict; optional)
19
+
20
+ `buttonProps` is a dict with keys:
21
+
22
+ - className (string; optional)
23
+
24
+ - danger (boolean; optional)
25
+
26
+ - size (a value equal to: 'default', 'small', 'large'; optional)
27
+
28
+ - style (dict; optional)
29
+
30
+ - type (a value equal to: 'primary', 'ghost', 'dashed', 'link', 'text', 'default'; optional)
31
+
18
32
  - className (string | dict; optional)
19
33
 
20
34
  - confirmBeforeDelete (boolean; default False)
@@ -154,10 +168,10 @@ Keyword arguments:
154
168
  _namespace = 'feffery_antd_components'
155
169
  _type = 'AntdUpload'
156
170
  @_explicitize_args
157
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, headers=Component.UNDEFINED, downloadUrl=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, buttonContent=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, confirmBeforeDelete=Component.UNDEFINED, showPercent=Component.UNDEFINED, progressProps=Component.UNDEFINED, showSuccessMessage=Component.UNDEFINED, showErrorMessage=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, listUploadTaskRecord=Component.UNDEFINED, defaultFileList=Component.UNDEFINED, disabled=Component.UNDEFINED, status=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
158
- self._prop_names = ['id', 'apiUrl', 'buttonContent', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
171
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, headers=Component.UNDEFINED, downloadUrl=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, buttonContent=Component.UNDEFINED, buttonProps=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, confirmBeforeDelete=Component.UNDEFINED, showPercent=Component.UNDEFINED, progressProps=Component.UNDEFINED, showSuccessMessage=Component.UNDEFINED, showErrorMessage=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, listUploadTaskRecord=Component.UNDEFINED, defaultFileList=Component.UNDEFINED, disabled=Component.UNDEFINED, status=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
172
+ self._prop_names = ['id', 'apiUrl', 'buttonContent', 'buttonProps', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
159
173
  self._valid_wildcard_attributes = []
160
- self.available_properties = ['id', 'apiUrl', 'buttonContent', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
174
+ self.available_properties = ['id', 'apiUrl', 'buttonContent', 'buttonProps', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
161
175
  self.available_wildcard_properties = []
162
176
  _explicit_args = kwargs.pop('_explicit_args')
163
177
  _locals = locals()
@@ -15,6 +15,7 @@ from .AntdCheckbox import AntdCheckbox
15
15
  from .AntdCheckboxGroup import AntdCheckboxGroup
16
16
  from .AntdCollapse import AntdCollapse
17
17
  from .AntdComment import AntdComment
18
+ from .AntdCompact import AntdCompact
18
19
  from .AntdConfigProvider import AntdConfigProvider
19
20
  from .AntdCopyText import AntdCopyText
20
21
  from .AntdCountdown import AntdCountdown
@@ -111,6 +112,7 @@ __all__ = [
111
112
  "AntdCheckboxGroup",
112
113
  "AntdCollapse",
113
114
  "AntdComment",
115
+ "AntdCompact",
114
116
  "AntdConfigProvider",
115
117
  "AntdCopyText",
116
118
  "AntdCountdown",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feffery_antd_components",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Best implementation of Antd components in Plotly Dash.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "@ant-design/pro-layout": "^6.34.7",
30
30
  "@plotly/webpack-dash-dynamic-import": "^1.3.0",
31
31
  "ahooks": "^3.7.0",
32
- "antd": "^4.24.0",
32
+ "antd": "^4.24.10",
33
33
  "antd-img-crop": "^4.2.3",
34
34
  "color": "^4.2.3",
35
35
  "is-absolute-url": "4.0.1",
@@ -89,4 +89,4 @@
89
89
  "node": ">=8.11.0",
90
90
  "npm": ">=6.1.0"
91
91
  }
92
- }
92
+ }
@@ -0,0 +1,55 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdCompact(Component):
7
+ """An AntdCompact component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional):
13
+ The content of the tab - will only be displayed if this tab is
14
+ selected.
15
+
16
+ - id (string; optional)
17
+
18
+ - block (boolean; default False)
19
+
20
+ - className (string | dict; optional)
21
+
22
+ - direction (a value equal to: 'vertical', 'horizontal'; default 'horizontal')
23
+
24
+ - key (string; optional)
25
+
26
+ - loading_state (dict; optional)
27
+
28
+ `loading_state` is a dict with keys:
29
+
30
+ - component_name (string; optional):
31
+ Holds the name of the component that is loading.
32
+
33
+ - is_loading (boolean; optional):
34
+ Determines if the component is loading or not.
35
+
36
+ - prop_name (string; optional):
37
+ Holds which property is loading.
38
+
39
+ - style (dict; optional)"""
40
+ _children_props = []
41
+ _base_nodes = ['children']
42
+ _namespace = 'feffery_antd_components'
43
+ _type = 'AntdCompact'
44
+ @_explicitize_args
45
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, direction=Component.UNDEFINED, block=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
46
+ self._prop_names = ['children', 'id', 'block', 'className', 'direction', 'key', 'loading_state', 'style']
47
+ self._valid_wildcard_attributes = []
48
+ self.available_properties = ['children', 'id', 'block', 'className', 'direction', 'key', 'loading_state', 'style']
49
+ self.available_wildcard_properties = []
50
+ _explicit_args = kwargs.pop('_explicit_args')
51
+ _locals = locals()
52
+ _locals.update(kwargs) # For wildcard attrs and excess named props
53
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
54
+
55
+ super(AntdCompact, self).__init__(children=children, **args)
@@ -85,7 +85,13 @@ Keyword arguments:
85
85
 
86
86
  - readOnly (boolean; optional)
87
87
 
88
- - showTime (boolean; default False)
88
+ - showTime (dict; default False)
89
+
90
+ `showTime` is a boolean | dict with keys:
91
+
92
+ - defaultValue (string; optional)
93
+
94
+ - format (string; optional)
89
95
 
90
96
  - size (a value equal to: 'small', 'middle', 'large'; default 'middle')
91
97
 
@@ -85,7 +85,13 @@ Keyword arguments:
85
85
 
86
86
  - readOnly (boolean; optional)
87
87
 
88
- - showTime (boolean; default False)
88
+ - showTime (dict; default False)
89
+
90
+ `showTime` is a boolean | dict with keys:
91
+
92
+ - defaultValue (list of strings; optional)
93
+
94
+ - format (string; optional)
89
95
 
90
96
  - size (a value equal to: 'small', 'middle', 'large'; default 'middle')
91
97
 
@@ -21,10 +21,14 @@ Keyword arguments:
21
21
 
22
22
  `buttonProps` is a dict with keys:
23
23
 
24
+ - className (string; optional)
25
+
24
26
  - danger (boolean; optional)
25
27
 
26
28
  - size (a value equal to: 'default', 'small', 'large'; optional)
27
29
 
30
+ - style (dict; optional)
31
+
28
32
  - type (a value equal to: 'primary', 'ghost', 'dashed', 'link', 'text', 'default'; optional)
29
33
 
30
34
  - className (string | dict; optional)
@@ -29,7 +29,7 @@ Keyword arguments:
29
29
 
30
30
  - label (a list of or a singular dash component, string or number; optional)
31
31
 
32
- - labelAlign (a value equal to: 'left', 'right'; default 'right')
32
+ - labelAlign (a value equal to: 'left', 'right'; optional)
33
33
 
34
34
  - labelCol (dict; optional)
35
35
 
@@ -39,6 +39,8 @@ Keyword arguments:
39
39
 
40
40
  - disabled (boolean; default False)
41
41
 
42
+ - emptyAsNone (boolean; default False)
43
+
42
44
  - key (string; optional)
43
45
 
44
46
  - loading_state (dict; optional)
@@ -107,10 +109,10 @@ Keyword arguments:
107
109
  _namespace = 'feffery_antd_components'
108
110
  _type = 'AntdInput'
109
111
  @_explicitize_args
110
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, autoComplete=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, placeholder=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, md5Value=Component.UNDEFINED, debounceValue=Component.UNDEFINED, passwordUseMd5=Component.UNDEFINED, debounceWait=Component.UNDEFINED, addonBefore=Component.UNDEFINED, addonAfter=Component.UNDEFINED, prefix=Component.UNDEFINED, suffix=Component.UNDEFINED, maxLength=Component.UNDEFINED, showCount=Component.UNDEFINED, autoSize=Component.UNDEFINED, nSubmit=Component.UNDEFINED, nClicksSearch=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, readOnly=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
111
- self._prop_names = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
112
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, mode=Component.UNDEFINED, autoComplete=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, bordered=Component.UNDEFINED, placeholder=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, md5Value=Component.UNDEFINED, debounceValue=Component.UNDEFINED, passwordUseMd5=Component.UNDEFINED, debounceWait=Component.UNDEFINED, addonBefore=Component.UNDEFINED, addonAfter=Component.UNDEFINED, prefix=Component.UNDEFINED, suffix=Component.UNDEFINED, maxLength=Component.UNDEFINED, showCount=Component.UNDEFINED, autoSize=Component.UNDEFINED, nSubmit=Component.UNDEFINED, nClicksSearch=Component.UNDEFINED, status=Component.UNDEFINED, allowClear=Component.UNDEFINED, readOnly=Component.UNDEFINED, emptyAsNone=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
113
+ self._prop_names = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
112
114
  self._valid_wildcard_attributes = []
113
- self.available_properties = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
115
+ self.available_properties = ['id', 'addonAfter', 'addonBefore', 'allowClear', 'autoComplete', 'autoSize', 'bordered', 'className', 'debounceValue', 'debounceWait', 'defaultValue', 'disabled', 'emptyAsNone', 'key', 'loading_state', 'maxLength', 'md5Value', 'mode', 'nClicksSearch', 'nSubmit', 'passwordUseMd5', 'persisted_props', 'persistence', 'persistence_type', 'placeholder', 'prefix', 'readOnly', 'showCount', 'size', 'status', 'style', 'suffix', 'value']
114
116
  self.available_wildcard_properties = []
115
117
  _explicit_args = kwargs.pop('_explicit_args')
116
118
  _locals = locals()
@@ -21,6 +21,8 @@ Keyword arguments:
21
21
 
22
22
  - className (string | dict; optional)
23
23
 
24
+ - customSplit (a list of or a singular dash component, string or number; optional)
25
+
24
26
  - direction (a value equal to: 'vertical', 'horizontal'; default 'horizontal')
25
27
 
26
28
  - key (string; optional)
@@ -43,15 +45,15 @@ Keyword arguments:
43
45
  - style (dict; optional)
44
46
 
45
47
  - wrap (boolean; default False)"""
46
- _children_props = []
47
- _base_nodes = ['children']
48
+ _children_props = ['customSplit']
49
+ _base_nodes = ['customSplit', 'children']
48
50
  _namespace = 'feffery_antd_components'
49
51
  _type = 'AntdSpace'
50
52
  @_explicitize_args
51
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, align=Component.UNDEFINED, direction=Component.UNDEFINED, size=Component.UNDEFINED, addSplitLine=Component.UNDEFINED, wrap=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
52
- self._prop_names = ['children', 'id', 'addSplitLine', 'align', 'className', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
53
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, align=Component.UNDEFINED, direction=Component.UNDEFINED, size=Component.UNDEFINED, addSplitLine=Component.UNDEFINED, customSplit=Component.UNDEFINED, wrap=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
54
+ self._prop_names = ['children', 'id', 'addSplitLine', 'align', 'className', 'customSplit', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
53
55
  self._valid_wildcard_attributes = []
54
- self.available_properties = ['children', 'id', 'addSplitLine', 'align', 'className', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
56
+ self.available_properties = ['children', 'id', 'addSplitLine', 'align', 'className', 'customSplit', 'direction', 'key', 'loading_state', 'size', 'style', 'wrap']
55
57
  self.available_wildcard_properties = []
56
58
  _explicit_args = kwargs.pop('_explicit_args')
57
59
  _locals = locals()
@@ -27,6 +27,8 @@ Keyword arguments:
27
27
 
28
28
  - nodeKey (string; optional)
29
29
 
30
+ - timestamp (number; optional)
31
+
30
32
  - defaultCheckedKeys (list of strings; optional)
31
33
 
32
34
  - defaultExpandAll (boolean; default False)
@@ -15,6 +15,20 @@ Keyword arguments:
15
15
 
16
16
  - buttonContent (a list of or a singular dash component, string or number; optional)
17
17
 
18
+ - buttonProps (dict; optional)
19
+
20
+ `buttonProps` is a dict with keys:
21
+
22
+ - className (string; optional)
23
+
24
+ - danger (boolean; optional)
25
+
26
+ - size (a value equal to: 'default', 'small', 'large'; optional)
27
+
28
+ - style (dict; optional)
29
+
30
+ - type (a value equal to: 'primary', 'ghost', 'dashed', 'link', 'text', 'default'; optional)
31
+
18
32
  - className (string | dict; optional)
19
33
 
20
34
  - confirmBeforeDelete (boolean; default False)
@@ -154,10 +168,10 @@ Keyword arguments:
154
168
  _namespace = 'feffery_antd_components'
155
169
  _type = 'AntdUpload'
156
170
  @_explicitize_args
157
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, headers=Component.UNDEFINED, downloadUrl=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, buttonContent=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, confirmBeforeDelete=Component.UNDEFINED, showPercent=Component.UNDEFINED, progressProps=Component.UNDEFINED, showSuccessMessage=Component.UNDEFINED, showErrorMessage=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, listUploadTaskRecord=Component.UNDEFINED, defaultFileList=Component.UNDEFINED, disabled=Component.UNDEFINED, status=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
158
- self._prop_names = ['id', 'apiUrl', 'buttonContent', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
171
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, locale=Component.UNDEFINED, apiUrl=Component.UNDEFINED, headers=Component.UNDEFINED, downloadUrl=Component.UNDEFINED, fileListMaxLength=Component.UNDEFINED, fileTypes=Component.UNDEFINED, buttonContent=Component.UNDEFINED, buttonProps=Component.UNDEFINED, uploadId=Component.UNDEFINED, fileMaxSize=Component.UNDEFINED, multiple=Component.UNDEFINED, directory=Component.UNDEFINED, failedTooltipInfo=Component.UNDEFINED, showUploadList=Component.UNDEFINED, confirmBeforeDelete=Component.UNDEFINED, showPercent=Component.UNDEFINED, progressProps=Component.UNDEFINED, showSuccessMessage=Component.UNDEFINED, showErrorMessage=Component.UNDEFINED, lastUploadTaskRecord=Component.UNDEFINED, listUploadTaskRecord=Component.UNDEFINED, defaultFileList=Component.UNDEFINED, disabled=Component.UNDEFINED, status=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
172
+ self._prop_names = ['id', 'apiUrl', 'buttonContent', 'buttonProps', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
159
173
  self._valid_wildcard_attributes = []
160
- self.available_properties = ['id', 'apiUrl', 'buttonContent', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
174
+ self.available_properties = ['id', 'apiUrl', 'buttonContent', 'buttonProps', 'className', 'confirmBeforeDelete', 'defaultFileList', 'directory', 'disabled', 'downloadUrl', 'failedTooltipInfo', 'fileListMaxLength', 'fileMaxSize', 'fileTypes', 'headers', 'key', 'lastUploadTaskRecord', 'listUploadTaskRecord', 'loading_state', 'locale', 'multiple', 'progressProps', 'showErrorMessage', 'showPercent', 'showSuccessMessage', 'showUploadList', 'status', 'style', 'uploadId']
161
175
  self.available_wildcard_properties = []
162
176
  _explicit_args = kwargs.pop('_explicit_args')
163
177
  _locals = locals()
@@ -15,6 +15,7 @@ from .AntdCheckbox import AntdCheckbox
15
15
  from .AntdCheckboxGroup import AntdCheckboxGroup
16
16
  from .AntdCollapse import AntdCollapse
17
17
  from .AntdComment import AntdComment
18
+ from .AntdCompact import AntdCompact
18
19
  from .AntdConfigProvider import AntdConfigProvider
19
20
  from .AntdCopyText import AntdCopyText
20
21
  from .AntdCountdown import AntdCountdown
@@ -111,6 +112,7 @@ __all__ = [
111
112
  "AntdCheckboxGroup",
112
113
  "AntdCollapse",
113
114
  "AntdComment",
115
+ "AntdCompact",
114
116
  "AntdConfigProvider",
115
117
  "AntdCopyText",
116
118
  "AntdCountdown",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feffery_antd_components",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Best implementation of Antd components in Plotly Dash.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "@ant-design/pro-layout": "^6.34.7",
30
30
  "@plotly/webpack-dash-dynamic-import": "^1.3.0",
31
31
  "ahooks": "^3.7.0",
32
- "antd": "^4.24.0",
32
+ "antd": "^4.24.10",
33
33
  "antd-img-crop": "^4.2.3",
34
34
  "color": "^4.2.3",
35
35
  "is-absolute-url": "4.0.1",
@@ -89,4 +89,4 @@
89
89
  "node": ">=8.11.0",
90
90
  "npm": ">=6.1.0"
91
91
  }
92
- }
92
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feffery_antd_components",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Best implementation of Antd components in Plotly Dash.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "@ant-design/pro-layout": "^6.34.7",
30
30
  "@plotly/webpack-dash-dynamic-import": "^1.3.0",
31
31
  "ahooks": "^3.7.0",
32
- "antd": "^4.24.0",
32
+ "antd": "^4.24.10",
33
33
  "antd-img-crop": "^4.2.3",
34
34
  "color": "^4.2.3",
35
35
  "is-absolute-url": "4.0.1",
@@ -89,4 +89,4 @@
89
89
  "node": ">=8.11.0",
90
90
  "npm": ">=6.1.0"
91
91
  }
92
- }
92
+ }
@@ -0,0 +1,35 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ export 'feffery'_antdcompact
4
+
5
+ """
6
+ 'feffery'_antdcompact(;kwargs...)
7
+ 'feffery'_antdcompact(children::Any;kwargs...)
8
+ 'feffery'_antdcompact(children_maker::Function;kwargs...)
9
+
10
+
11
+ An AntdCompact component.
12
+
13
+ Keyword arguments:
14
+ - `children` (a list of or a singular dash component, string or number; optional): The content of the tab - will only be displayed if this tab is selected
15
+ - `id` (String; optional)
16
+ - `block` (Bool; optional)
17
+ - `className` (String | Dict; optional)
18
+ - `direction` (a value equal to: 'vertical', 'horizontal'; optional)
19
+ - `key` (String; optional)
20
+ - `loading_state` (optional): . loading_state has the following type: lists containing elements 'is_loading', 'prop_name', 'component_name'.
21
+ Those elements have the following types:
22
+ - `is_loading` (Bool; optional): Determines if the component is loading or not
23
+ - `prop_name` (String; optional): Holds which property is loading
24
+ - `component_name` (String; optional): Holds the name of the component that is loading
25
+ - `style` (Dict; optional)
26
+ """
27
+ function 'feffery'_antdcompact(; kwargs...)
28
+ available_props = Symbol[:children, :id, :block, :className, :direction, :key, :loading_state, :style]
29
+ wild_props = Symbol[]
30
+ return Component("'feffery'_antdcompact", "AntdCompact", "feffery_antd_components", available_props, wild_props; kwargs...)
31
+ end
32
+
33
+ 'feffery'_antdcompact(children::Any; kwargs...) = 'feffery'_antdcompact(;kwargs..., children = children)
34
+ 'feffery'_antdcompact(children_maker::Function; kwargs...) = 'feffery'_antdcompact(children_maker(); kwargs...)
35
+
@@ -47,7 +47,10 @@ session: window.sessionStorage, data is cleared once the browser quit.
47
47
  - `placement` (a value equal to: 'bottomLeft', 'bottomRight', 'topLeft', 'topRight'; optional)
48
48
  - `popupContainer` (a value equal to: 'parent', 'body'; optional)
49
49
  - `readOnly` (Bool; optional)
50
- - `showTime` (Bool; optional)
50
+ - `showTime` (optional): . showTime has the following type: Bool | lists containing elements 'defaultValue', 'format'.
51
+ Those elements have the following types:
52
+ - `defaultValue` (String; optional)
53
+ - `format` (String; optional)
51
54
  - `size` (a value equal to: 'small', 'middle', 'large'; optional)
52
55
  - `status` (a value equal to: 'error', 'warning'; optional)
53
56
  - `style` (Dict; optional)