feffery_antd_components 0.3.8 → 0.3.10

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 (68) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +1 -0
  3. package/Project.toml +1 -1
  4. package/README-en_US.md +1 -1
  5. package/README.md +1 -1
  6. package/bug_fix.py +0 -13
  7. package/feffery_antd_components/AntdButton.py +9 -3
  8. package/feffery_antd_components/AntdDivider.py +6 -3
  9. package/feffery_antd_components/AntdDropdown.py +4 -1
  10. package/feffery_antd_components/AntdFloatButtonGroup.py +6 -3
  11. package/feffery_antd_components/AntdIcon.py +11 -4
  12. package/feffery_antd_components/AntdRadioGroup.py +6 -3
  13. package/feffery_antd_components/AntdSegmented.py +8 -5
  14. package/feffery_antd_components/AntdSplitter.py +108 -0
  15. package/feffery_antd_components/AntdTable.py +5 -2
  16. package/feffery_antd_components/AntdTabs.py +8 -5
  17. package/feffery_antd_components/_icons.py +547 -0
  18. package/feffery_antd_components/_imports_.py +2 -0
  19. package/feffery_antd_components/alias.py +5 -3
  20. package/feffery_antd_components/async-antd_table.js +2 -2
  21. package/feffery_antd_components/async-data_display.js +1 -1
  22. package/feffery_antd_components/async-data_entry.js +4 -4
  23. package/feffery_antd_components/async-upload.js +2 -2
  24. package/feffery_antd_components/feffery_antd_components.min.js +9 -9
  25. package/feffery_antd_components/metadata.json +414 -9
  26. package/feffery_antd_components/package-info.json +2 -2
  27. package/package.json +2 -2
  28. package/src/jl/'feffery'_antdbutton.jl +3 -1
  29. package/src/jl/'feffery'_antddivider.jl +3 -1
  30. package/src/jl/'feffery'_antddropdown.jl +2 -1
  31. package/src/jl/'feffery'_antdfloatbuttongroup.jl +2 -1
  32. package/src/jl/'feffery'_antdicon.jl +5 -2
  33. package/src/jl/'feffery'_antdradiogroup.jl +3 -1
  34. package/src/jl/'feffery'_antdsegmented.jl +4 -2
  35. package/src/jl/'feffery'_antdsplitter.jl +47 -0
  36. package/src/jl/'feffery'_antdtable.jl +3 -2
  37. package/src/jl/'feffery'_antdtabs.jl +2 -1
  38. package/src/lib/components/dataDisplay/AntdSegmented.react.js +9 -2
  39. package/src/lib/components/dataDisplay/AntdTable.react.js +9 -3
  40. package/src/lib/components/dataDisplay/AntdTabs.react.js +5 -0
  41. package/src/lib/components/dataEntry/AntdRadioGroup.react.js +7 -0
  42. package/src/lib/components/general/AntdButton.react.js +14 -0
  43. package/src/lib/components/general/AntdFloatButtonGroup.react.js +7 -0
  44. package/src/lib/components/general/AntdIcon.react.js +79 -31
  45. package/src/lib/components/icons.react.js +240 -239
  46. package/src/lib/components/layout/AntdDivider.react.js +11 -3
  47. package/src/lib/components/layout/AntdSplitter.react.js +188 -0
  48. package/src/lib/components/navigation/AntdDropdown.react.js +5 -0
  49. package/src/lib/components/other/AntdConfigProvider.react.js +0 -2
  50. package/src/lib/fragments/AntdTable.react.js +3 -3
  51. package/src/lib/fragments/dataDisplay/AntdSegmented.react.js +2 -0
  52. package/src/lib/fragments/dataDisplay/AntdTabs.react.js +111 -105
  53. package/src/lib/fragments/dataEntry/AntdRadioGroup.react.js +3 -0
  54. package/src/lib/index.js +6 -4
  55. package/tests/dataDisplay/AntdSegmented/feat_vertical.py +32 -0
  56. package/tests/dataDisplay/AntdTable/feat_columns_fixed_bool.py +40 -0
  57. package/tests/dataDisplay/AntdTable/feat_columns_min_width.py +51 -0
  58. package/tests/dataDisplay/AntdTabs/feat_placeholder.py +124 -0
  59. package/tests/dataEntry/AntdRadioGroup/feat_block.py +40 -0
  60. package/tests/general/AntdButton/feat_color_and_variant.py +40 -0
  61. package/tests/general/AntdFloatButtonGroup/feat_placement.py +83 -0
  62. package/tests/general/AntdIcon/feat_iconfont.py +41 -0
  63. package/tests/layout/AntdDivider/feat_plain.py +21 -0
  64. package/tests/layout/AntdSplitter/feat_AntdSplitter.py +210 -0
  65. package/tests/layout/AntdSplitter/refactor.py +303 -0
  66. package/tests/navigation/AntdDropdown/feat_extra.py +29 -0
  67. package/feffery_antd_components/async-pro_editor.js +0 -11
  68. package/feffery_antd_components/async-pro_editor.js.map +0 -1
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.3.8
3
+ Version: 0.3.10
4
4
  Description: Best implementation of Antd components in Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -91,6 +91,7 @@ export('feffery'AntdHeader)
91
91
  export('feffery'AntdLayout)
92
92
  export('feffery'AntdSider)
93
93
  export('feffery'AntdSpace)
94
+ export('feffery'AntdSplitter)
94
95
  export('feffery'AntdCol)
95
96
  export('feffery'AntdRow)
96
97
  export('feffery'AntdAnchor)
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyAntdComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-674b58f7de79"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.3.8"
5
+ version = "0.3.10"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
package/README-en_US.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  [简体中文](./README.md) | English
17
17
 
18
- Subproject of `feffery-components` projects, third-party components library of `Plotly Dash`, based on the [Antd](https://github.com/ant-design/ant-design), brings many common and powerful components into `Dash`🥳, latest stable version: `0.3.7`
18
+ Subproject of `feffery-components` projects, third-party components library of `Plotly Dash`, based on the [Antd](https://github.com/ant-design/ant-design), brings many common and powerful components into `Dash`🥳, latest stable version: `0.3.9`
19
19
 
20
20
  ## 1 Install
21
21
 
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  简体中文 | [English](./README-en_US.md)
17
17
 
18
- `feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.3.7`
18
+ `feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.3.9`
19
19
 
20
20
  ## 1 最新版本安装方式
21
21
 
package/bug_fix.py CHANGED
@@ -1,13 +0,0 @@
1
- import dash
2
- from dash import html
3
- import feffery_antd_components as fac
4
-
5
- app = dash.Dash(__name__)
6
-
7
- app.layout = html.Div(
8
- [fac.AntdDateRangePicker(disabled=[False, True])],
9
- style={'padding': 50},
10
- )
11
-
12
- if __name__ == '__main__':
13
- app.run(debug=True)
@@ -98,6 +98,12 @@ Keyword arguments:
98
98
  - motionType (a value equal to: 'happy-work'; optional):
99
99
  按钮额外的特殊交互类型,可选项有`'happy-work'`.
100
100
 
101
+ - color (a value equal to: 'default', 'primary', 'danger'; optional):
102
+ 按钮颜色风格,可选项有`'default'`、`'primary'`、`'danger'`.
103
+
104
+ - variant (a value equal to: 'outlined', 'dashed', 'solid', 'filled', 'text', 'link'; optional):
105
+ 形态变体类型,可选项有`'outlined'`、`'dashed'`、`'solid'`、`'filled'`、`'text'`、`'link'`.
106
+
101
107
  - title (string; optional):
102
108
  原生按钮title属性.
103
109
 
@@ -124,10 +130,10 @@ Keyword arguments:
124
130
  _namespace = 'feffery_antd_components'
125
131
  _type = 'AntdButton'
126
132
  @_explicitize_args
127
- def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, styles=Component.UNDEFINED, classNames=Component.UNDEFINED, loadingChildren=Component.UNDEFINED, type=Component.UNDEFINED, href=Component.UNDEFINED, target=Component.UNDEFINED, autoInsertSpace=Component.UNDEFINED, block=Component.UNDEFINED, danger=Component.UNDEFINED, disabled=Component.UNDEFINED, ghost=Component.UNDEFINED, shape=Component.UNDEFINED, size=Component.UNDEFINED, nClicks=Component.UNDEFINED, clickExecuteJsString=Component.UNDEFINED, debounceWait=Component.UNDEFINED, icon=Component.UNDEFINED, iconPosition=Component.UNDEFINED, loading=Component.UNDEFINED, autoSpin=Component.UNDEFINED, motionType=Component.UNDEFINED, title=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
128
- self._prop_names = ['id', 'key', 'children', 'style', 'className', 'styles', 'classNames', 'loadingChildren', 'type', 'href', 'target', 'autoInsertSpace', 'block', 'danger', 'disabled', 'ghost', 'shape', 'size', 'nClicks', 'clickExecuteJsString', 'debounceWait', 'icon', 'iconPosition', 'loading', 'autoSpin', 'motionType', 'title', 'data-*', 'aria-*', 'loading_state']
133
+ def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, styles=Component.UNDEFINED, classNames=Component.UNDEFINED, loadingChildren=Component.UNDEFINED, type=Component.UNDEFINED, href=Component.UNDEFINED, target=Component.UNDEFINED, autoInsertSpace=Component.UNDEFINED, block=Component.UNDEFINED, danger=Component.UNDEFINED, disabled=Component.UNDEFINED, ghost=Component.UNDEFINED, shape=Component.UNDEFINED, size=Component.UNDEFINED, nClicks=Component.UNDEFINED, clickExecuteJsString=Component.UNDEFINED, debounceWait=Component.UNDEFINED, icon=Component.UNDEFINED, iconPosition=Component.UNDEFINED, loading=Component.UNDEFINED, autoSpin=Component.UNDEFINED, motionType=Component.UNDEFINED, color=Component.UNDEFINED, variant=Component.UNDEFINED, title=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
134
+ self._prop_names = ['id', 'key', 'children', 'style', 'className', 'styles', 'classNames', 'loadingChildren', 'type', 'href', 'target', 'autoInsertSpace', 'block', 'danger', 'disabled', 'ghost', 'shape', 'size', 'nClicks', 'clickExecuteJsString', 'debounceWait', 'icon', 'iconPosition', 'loading', 'autoSpin', 'motionType', 'color', 'variant', 'title', 'data-*', 'aria-*', 'loading_state']
129
135
  self._valid_wildcard_attributes = ['data-', 'aria-']
130
- self.available_properties = ['id', 'key', 'children', 'style', 'className', 'styles', 'classNames', 'loadingChildren', 'type', 'href', 'target', 'autoInsertSpace', 'block', 'danger', 'disabled', 'ghost', 'shape', 'size', 'nClicks', 'clickExecuteJsString', 'debounceWait', 'icon', 'iconPosition', 'loading', 'autoSpin', 'motionType', 'title', 'data-*', 'aria-*', 'loading_state']
136
+ self.available_properties = ['id', 'key', 'children', 'style', 'className', 'styles', 'classNames', 'loadingChildren', 'type', 'href', 'target', 'autoInsertSpace', 'block', 'danger', 'disabled', 'ghost', 'shape', 'size', 'nClicks', 'clickExecuteJsString', 'debounceWait', 'icon', 'iconPosition', 'loading', 'autoSpin', 'motionType', 'color', 'variant', 'title', 'data-*', 'aria-*', 'loading_state']
131
137
  self.available_wildcard_properties = ['data-', 'aria-']
132
138
  _explicit_args = kwargs.pop('_explicit_args')
133
139
  _locals = locals()
@@ -55,6 +55,9 @@ Keyword arguments:
55
55
  分割线变体,可选项有`'dashed'`(虚线)、`'dotted'`(点线)、`'solid'`(实线)
56
56
  默认值:`'solid'`.
57
57
 
58
+ - plain (boolean; default True):
59
+ 文字内容是否呈现为常规正文形式 默认值:`True`.
60
+
58
61
  - data-* (string; optional):
59
62
  `data-*`格式属性通配.
60
63
 
@@ -78,10 +81,10 @@ Keyword arguments:
78
81
  _namespace = 'feffery_antd_components'
79
82
  _type = 'AntdDivider'
80
83
  @_explicitize_args
81
- def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, innerTextOrientation=Component.UNDEFINED, isDashed=Component.UNDEFINED, direction=Component.UNDEFINED, fontSize=Component.UNDEFINED, lineColor=Component.UNDEFINED, fontStyle=Component.UNDEFINED, fontWeight=Component.UNDEFINED, fontFamily=Component.UNDEFINED, fontColor=Component.UNDEFINED, variant=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
82
- self._prop_names = ['id', 'key', 'children', 'className', 'style', 'innerTextOrientation', 'isDashed', 'direction', 'fontSize', 'lineColor', 'fontStyle', 'fontWeight', 'fontFamily', 'fontColor', 'variant', 'data-*', 'aria-*', 'loading_state']
84
+ def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, innerTextOrientation=Component.UNDEFINED, isDashed=Component.UNDEFINED, direction=Component.UNDEFINED, fontSize=Component.UNDEFINED, lineColor=Component.UNDEFINED, fontStyle=Component.UNDEFINED, fontWeight=Component.UNDEFINED, fontFamily=Component.UNDEFINED, fontColor=Component.UNDEFINED, variant=Component.UNDEFINED, plain=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
85
+ self._prop_names = ['id', 'key', 'children', 'className', 'style', 'innerTextOrientation', 'isDashed', 'direction', 'fontSize', 'lineColor', 'fontStyle', 'fontWeight', 'fontFamily', 'fontColor', 'variant', 'plain', 'data-*', 'aria-*', 'loading_state']
83
86
  self._valid_wildcard_attributes = ['data-', 'aria-']
84
- self.available_properties = ['id', 'key', 'children', 'className', 'style', 'innerTextOrientation', 'isDashed', 'direction', 'fontSize', 'lineColor', 'fontStyle', 'fontWeight', 'fontFamily', 'fontColor', 'variant', 'data-*', 'aria-*', 'loading_state']
87
+ self.available_properties = ['id', 'key', 'children', 'className', 'style', 'innerTextOrientation', 'isDashed', 'direction', 'fontSize', 'lineColor', 'fontStyle', 'fontWeight', 'fontFamily', 'fontColor', 'variant', 'plain', 'data-*', 'aria-*', 'loading_state']
85
88
  self.available_wildcard_properties = ['data-', 'aria-']
86
89
  _explicit_args = kwargs.pop('_explicit_args')
87
90
  _locals = locals()
@@ -80,6 +80,9 @@ Keyword arguments:
80
80
  - title (a list of or a singular dash component, string or number; optional):
81
81
  组件型,节点标题.
82
82
 
83
+ - extra (a list of or a singular dash component, string or number; optional):
84
+ 组件型,额外内容.
85
+
83
86
  - href (string; optional):
84
87
  节点链接地址.
85
88
 
@@ -164,7 +167,7 @@ Keyword arguments:
164
167
 
165
168
  - component_name (string; optional):
166
169
  Holds the name of the component that is loading."""
167
- _children_props = ['menuItems[].title']
170
+ _children_props = ['menuItems[].title', 'menuItems[].extra']
168
171
  _base_nodes = ['children']
169
172
  _namespace = 'feffery_antd_components'
170
173
  _type = 'AntdDropdown'
@@ -42,6 +42,9 @@ Keyword arguments:
42
42
  - trigger (a value equal to: 'click', 'hover'; optional):
43
43
  菜单展开模式触发方式,可选项有`'click'`、`'hover'`.
44
44
 
45
+ - placement (a value equal to: 'top', 'right', 'bottom', 'left'; optional):
46
+ 菜单展开方向,可选项有`'top'`、`'right'`、`'bottom'`、`'left'`.
47
+
45
48
  - open (boolean; optional):
46
49
  设置或监听当前悬浮按钮组展开状态.
47
50
 
@@ -62,10 +65,10 @@ Keyword arguments:
62
65
  _namespace = 'feffery_antd_components'
63
66
  _type = 'AntdFloatButtonGroup'
64
67
  @_explicitize_args
65
- def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, icon=Component.UNDEFINED, description=Component.UNDEFINED, tooltip=Component.UNDEFINED, type=Component.UNDEFINED, shape=Component.UNDEFINED, trigger=Component.UNDEFINED, open=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
66
- self._prop_names = ['id', 'key', 'children', 'style', 'className', 'icon', 'description', 'tooltip', 'type', 'shape', 'trigger', 'open', 'loading_state']
68
+ def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, icon=Component.UNDEFINED, description=Component.UNDEFINED, tooltip=Component.UNDEFINED, type=Component.UNDEFINED, shape=Component.UNDEFINED, trigger=Component.UNDEFINED, placement=Component.UNDEFINED, open=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
69
+ self._prop_names = ['id', 'key', 'children', 'style', 'className', 'icon', 'description', 'tooltip', 'type', 'shape', 'trigger', 'placement', 'open', 'loading_state']
67
70
  self._valid_wildcard_attributes = []
68
- self.available_properties = ['id', 'key', 'children', 'style', 'className', 'icon', 'description', 'tooltip', 'type', 'shape', 'trigger', 'open', 'loading_state']
71
+ self.available_properties = ['id', 'key', 'children', 'style', 'className', 'icon', 'description', 'tooltip', 'type', 'shape', 'trigger', 'placement', 'open', 'loading_state']
69
72
  self.available_wildcard_properties = []
70
73
  _explicit_args = kwargs.pop('_explicit_args')
71
74
  _locals = locals()
@@ -21,8 +21,15 @@ Keyword arguments:
21
21
  - className (string | dict; optional):
22
22
  当前组件css类名,支持[动态css](/advanced-classname).
23
23
 
24
+ - mode (a value equal to: 'default', 'iconfont'; default 'default'):
25
+ 图标调用模式,可选项有`'default'`(内置图标)、`'iconfont'`(阿里巴巴矢量图标)
26
+ 默认值:`'default'`.
27
+
24
28
  - icon (string; optional):
25
- 图标名称.
29
+ 当`mode='default'`时,设置内置图标名称,当`mode='iconfont'`时,设置自定义源图标名称.
30
+
31
+ - scriptUrl (string | list of strings; optional):
32
+ 当`mode='iconfont'`时,设置单个或多个阿里巴巴矢量图标源(在iconfont.cn上制作).
26
33
 
27
34
  - nClicks (number; default 0):
28
35
  图标累计点击次数,用于监听图标点击行为 默认值:`0`.
@@ -53,10 +60,10 @@ Keyword arguments:
53
60
  _namespace = 'feffery_antd_components'
54
61
  _type = 'AntdIcon'
55
62
  @_explicitize_args
56
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, icon=Component.UNDEFINED, nClicks=Component.UNDEFINED, debounceWait=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
57
- self._prop_names = ['id', 'key', 'style', 'className', 'icon', 'nClicks', 'debounceWait', 'data-*', 'aria-*', 'loading_state']
63
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, mode=Component.UNDEFINED, icon=Component.UNDEFINED, scriptUrl=Component.UNDEFINED, nClicks=Component.UNDEFINED, debounceWait=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
64
+ self._prop_names = ['id', 'key', 'style', 'className', 'mode', 'icon', 'scriptUrl', 'nClicks', 'debounceWait', 'data-*', 'aria-*', 'loading_state']
58
65
  self._valid_wildcard_attributes = ['data-', 'aria-']
59
- self.available_properties = ['id', 'key', 'style', 'className', 'icon', 'nClicks', 'debounceWait', 'data-*', 'aria-*', 'loading_state']
66
+ self.available_properties = ['id', 'key', 'style', 'className', 'mode', 'icon', 'scriptUrl', 'nClicks', 'debounceWait', 'data-*', 'aria-*', 'loading_state']
60
67
  self.available_wildcard_properties = ['data-', 'aria-']
61
68
  _explicit_args = kwargs.pop('_explicit_args')
62
69
  _locals = locals()
@@ -41,6 +41,9 @@ Keyword arguments:
41
41
  - disabled (boolean; optional):
42
42
  是否禁用当前选项 默认值:`False`.s
43
43
 
44
+ - block (boolean; default False):
45
+ 是否撑满父容器 默认值:`False`.
46
+
44
47
  - disabled (boolean; default False):
45
48
  是否禁用当前组件 默认值:`False`.
46
49
 
@@ -103,10 +106,10 @@ Keyword arguments:
103
106
  _namespace = 'feffery_antd_components'
104
107
  _type = 'AntdRadioGroup'
105
108
  @_explicitize_args
106
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, name=Component.UNDEFINED, direction=Component.UNDEFINED, options=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, optionType=Component.UNDEFINED, buttonStyle=Component.UNDEFINED, readOnly=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
107
- self._prop_names = ['id', 'key', 'style', 'className', 'name', 'direction', 'options', 'disabled', 'size', 'value', 'defaultValue', 'optionType', 'buttonStyle', 'readOnly', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
109
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, name=Component.UNDEFINED, direction=Component.UNDEFINED, options=Component.UNDEFINED, block=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, optionType=Component.UNDEFINED, buttonStyle=Component.UNDEFINED, readOnly=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
110
+ self._prop_names = ['id', 'key', 'style', 'className', 'name', 'direction', 'options', 'block', 'disabled', 'size', 'value', 'defaultValue', 'optionType', 'buttonStyle', 'readOnly', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
108
111
  self._valid_wildcard_attributes = ['data-', 'aria-']
109
- self.available_properties = ['id', 'key', 'style', 'className', 'name', 'direction', 'options', 'disabled', 'size', 'value', 'defaultValue', 'optionType', 'buttonStyle', 'readOnly', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
112
+ self.available_properties = ['id', 'key', 'style', 'className', 'name', 'direction', 'options', 'block', 'disabled', 'size', 'value', 'defaultValue', 'optionType', 'buttonStyle', 'readOnly', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
110
113
  self.available_wildcard_properties = ['data-', 'aria-']
111
114
  _explicit_args = kwargs.pop('_explicit_args')
112
115
  _locals = locals()
@@ -26,8 +26,8 @@ Keyword arguments:
26
26
 
27
27
  `options` is a list of dicts with keys:
28
28
 
29
- - label (a list of or a singular dash component, string or number; required):
30
- 组件型,必填,选项标题内容.
29
+ - label (a list of or a singular dash component, string or number; optional):
30
+ 组件型,选项标题内容.
31
31
 
32
32
  - value (string | number; required):
33
33
  必填,选项值.
@@ -50,6 +50,9 @@ Keyword arguments:
50
50
  - block (boolean; default False):
51
51
  是否撑满父容器 默认值:`False`.
52
52
 
53
+ - vertical (boolean; default False):
54
+ 是否垂直展示 默认值:`False`.
55
+
53
56
  - disabled (boolean; default False):
54
57
  是否禁用当前组件 默认值:`False`.
55
58
 
@@ -95,10 +98,10 @@ Keyword arguments:
95
98
  _namespace = 'feffery_antd_components'
96
99
  _type = 'AntdSegmented'
97
100
  @_explicitize_args
98
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, block=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
99
- self._prop_names = ['id', 'key', 'style', 'className', 'options', 'value', 'defaultValue', 'block', 'disabled', 'size', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
101
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, block=Component.UNDEFINED, vertical=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, batchPropsNames=Component.UNDEFINED, batchPropsValues=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
102
+ self._prop_names = ['id', 'key', 'style', 'className', 'options', 'value', 'defaultValue', 'block', 'vertical', 'disabled', 'size', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
100
103
  self._valid_wildcard_attributes = ['data-', 'aria-']
101
- self.available_properties = ['id', 'key', 'style', 'className', 'options', 'value', 'defaultValue', 'block', 'disabled', 'size', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
104
+ self.available_properties = ['id', 'key', 'style', 'className', 'options', 'value', 'defaultValue', 'block', 'vertical', 'disabled', 'size', 'batchPropsNames', 'batchPropsValues', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
102
105
  self.available_wildcard_properties = ['data-', 'aria-']
103
106
  _explicit_args = kwargs.pop('_explicit_args')
104
107
  _locals = locals()
@@ -0,0 +1,108 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdSplitter(Component):
7
+ """An AntdSplitter component.
8
+ 分隔面板组件AntdSplitter
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional):
13
+ 组件唯一id.
14
+
15
+ - key (string; optional):
16
+ 对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
17
+
18
+ - style (dict; optional):
19
+ 当前组件css样式.
20
+
21
+ - className (string | dict; optional):
22
+ 当前组件css类名,支持[动态css](/advanced-classname).
23
+
24
+ - layout (a value equal to: 'horizontal', 'vertical'; default 'horizontal'):
25
+ 布局方向,可选项有`'horizontal'`、`'vertical'` 默认值:`'horizontal'`.
26
+
27
+ - items (list of dicts; required):
28
+ 配置分隔面板子项.
29
+
30
+ `items` is a list of dicts with keys:
31
+
32
+ - key (string; optional):
33
+ 当前子项唯一识别`key`.
34
+
35
+ - children (a list of or a singular dash component, string or number; optional):
36
+ 组件型,内嵌元素.
37
+
38
+ - style (dict; optional):
39
+ 当前子项`css`样式.
40
+
41
+ - className (string; optional):
42
+ 当前子项`css`类名.
43
+
44
+ - defaultSize (number
45
+
46
+ Or string; optional):
47
+ 初始面板尺寸,支持数字`px`或者文字`'百分比%'`类型.
48
+
49
+ - size (number | string; optional):
50
+ 面板尺寸,支持数字`px`或者文字`'百分比%'`类型.
51
+
52
+ - min (number | string; optional):
53
+ 最小尺寸,支持数字`px`或者文字`'百分比%'`类型.
54
+
55
+ - max (number | string; optional):
56
+ 最大尺寸,支持数字`px`或者文字`'百分比%'`类型.
57
+
58
+ - collapsible (dict; optional):
59
+ 是否可折叠 默认值:`False`.
60
+
61
+ `collapsible` is a boolean | dict with keys:
62
+
63
+ - start (boolean; optional)
64
+
65
+ - end (boolean; optional)
66
+
67
+ - resizable (boolean; optional):
68
+ 是否开启拖拽伸缩 默认值:`True`.
69
+
70
+ - data-* (string; optional):
71
+ `data-*`格式属性通配.
72
+
73
+ - aria-* (string; optional):
74
+ `aria-*`格式属性通配.
75
+
76
+ - loading_state (dict; optional)
77
+
78
+ `loading_state` is a dict with keys:
79
+
80
+ - is_loading (boolean; optional):
81
+ Determines if the component is loading or not.
82
+
83
+ - prop_name (string; optional):
84
+ Holds which property is loading.
85
+
86
+ - component_name (string; optional):
87
+ Holds the name of the component that is loading."""
88
+ _children_props = ['items[].children']
89
+ _base_nodes = ['children']
90
+ _namespace = 'feffery_antd_components'
91
+ _type = 'AntdSplitter'
92
+ @_explicitize_args
93
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, layout=Component.UNDEFINED, items=Component.REQUIRED, loading_state=Component.UNDEFINED, **kwargs):
94
+ self._prop_names = ['id', 'key', 'style', 'className', 'layout', 'items', 'data-*', 'aria-*', 'loading_state']
95
+ self._valid_wildcard_attributes = ['data-', 'aria-']
96
+ self.available_properties = ['id', 'key', 'style', 'className', 'layout', 'items', 'data-*', 'aria-*', 'loading_state']
97
+ self.available_wildcard_properties = ['data-', 'aria-']
98
+ _explicit_args = kwargs.pop('_explicit_args')
99
+ _locals = locals()
100
+ _locals.update(kwargs) # For wildcard attrs and excess named props
101
+ args = {k: _locals[k] for k in _explicit_args}
102
+
103
+ for k in ['items']:
104
+ if k not in args:
105
+ raise TypeError(
106
+ 'Required argument `' + k + '` was not specified.')
107
+
108
+ super(AntdSplitter, self).__init__(**args)
@@ -109,8 +109,8 @@ Keyword arguments:
109
109
  - placement (a value equal to: 'bottomLeft', 'bottomCenter', 'bottomRight', 'topLeft', 'topCenter', 'topRight'; optional):
110
110
  下拉菜单展开方向,可选项有`'bottomLeft'`、`'bottomCenter'`、`'bottomRight'`、`'topLeft'`、`'topCenter'`、`'topRight'`.
111
111
 
112
- - fixed (a value equal to: 'left', 'right'; optional):
113
- 当前字段冻结方向,可选项有`'left'`、`'right'`.
112
+ - fixed (a value equal to: 'left', 'right' | boolean; optional):
113
+ 当前字段冻结方向,可选项有`'left'`、`'right'`,设置为`True`时等价于`'left'`.
114
114
 
115
115
  - editable (boolean; optional):
116
116
  当前字段是否可编辑 默认值:`False`.
@@ -147,6 +147,9 @@ Keyword arguments:
147
147
  - width (number | string; optional):
148
148
  当前字段宽度.
149
149
 
150
+ - minWidth (number | string; optional):
151
+ 控制当前字段最小宽度,仅当`tableLayout=\"auto\"`时有效.
152
+
150
153
  - hidden (boolean; optional):
151
154
  是否隐藏当前字段 默认值:`False`.
152
155
 
@@ -148,6 +148,9 @@ Keyword arguments:
148
148
  - timestamp (number; optional):
149
149
  事件对应时间戳信息.
150
150
 
151
+ - placeholder (a list of or a singular dash component, string or number; optional):
152
+ 当`items`为空或长度为`0`时,替代进行占位显示的内容.
153
+
151
154
  - data-* (string; optional):
152
155
  `data-*`格式属性通配.
153
156
 
@@ -176,15 +179,15 @@ Keyword arguments:
176
179
  - persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'):
177
180
  属性持久化存储类型,可选项有`'local'`(本地持久化),`'session'`(会话持久化),`'memory'`(内存持久化)
178
181
  默认值:`'local'`."""
179
- _children_props = ['items[].label', 'items[].children', 'items[].closeIcon', 'tabBarLeftExtraContent', 'tabBarRightExtraContent']
180
- _base_nodes = ['tabBarLeftExtraContent', 'tabBarRightExtraContent', 'children']
182
+ _children_props = ['items[].label', 'items[].children', 'items[].closeIcon', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'placeholder']
183
+ _base_nodes = ['tabBarLeftExtraContent', 'tabBarRightExtraContent', 'placeholder', 'children']
181
184
  _namespace = 'feffery_antd_components'
182
185
  _type = 'AntdTabs'
183
186
  @_explicitize_args
184
- def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, type=Component.UNDEFINED, items=Component.UNDEFINED, itemKeys=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, disabledTabKeys=Component.UNDEFINED, tabPosition=Component.UNDEFINED, size=Component.UNDEFINED, centered=Component.UNDEFINED, indicator=Component.UNDEFINED, tabBarGutter=Component.UNDEFINED, inkBarAnimated=Component.UNDEFINED, tabPaneAnimated=Component.UNDEFINED, latestDeletePane=Component.UNDEFINED, tabCloseCounts=Component.UNDEFINED, tabBarLeftExtraContent=Component.UNDEFINED, tabBarRightExtraContent=Component.UNDEFINED, tabCount=Component.UNDEFINED, destroyInactiveTabPane=Component.UNDEFINED, clickedContextMenu=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
185
- self._prop_names = ['id', 'key', 'style', 'className', 'type', 'items', 'itemKeys', 'activeKey', 'defaultActiveKey', 'disabledTabKeys', 'tabPosition', 'size', 'centered', 'indicator', 'tabBarGutter', 'inkBarAnimated', 'tabPaneAnimated', 'latestDeletePane', 'tabCloseCounts', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCount', 'destroyInactiveTabPane', 'clickedContextMenu', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
187
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, type=Component.UNDEFINED, items=Component.UNDEFINED, itemKeys=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, disabledTabKeys=Component.UNDEFINED, tabPosition=Component.UNDEFINED, size=Component.UNDEFINED, centered=Component.UNDEFINED, indicator=Component.UNDEFINED, tabBarGutter=Component.UNDEFINED, inkBarAnimated=Component.UNDEFINED, tabPaneAnimated=Component.UNDEFINED, latestDeletePane=Component.UNDEFINED, tabCloseCounts=Component.UNDEFINED, tabBarLeftExtraContent=Component.UNDEFINED, tabBarRightExtraContent=Component.UNDEFINED, tabCount=Component.UNDEFINED, destroyInactiveTabPane=Component.UNDEFINED, clickedContextMenu=Component.UNDEFINED, placeholder=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
188
+ self._prop_names = ['id', 'key', 'style', 'className', 'type', 'items', 'itemKeys', 'activeKey', 'defaultActiveKey', 'disabledTabKeys', 'tabPosition', 'size', 'centered', 'indicator', 'tabBarGutter', 'inkBarAnimated', 'tabPaneAnimated', 'latestDeletePane', 'tabCloseCounts', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCount', 'destroyInactiveTabPane', 'clickedContextMenu', 'placeholder', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
186
189
  self._valid_wildcard_attributes = ['data-', 'aria-']
187
- self.available_properties = ['id', 'key', 'style', 'className', 'type', 'items', 'itemKeys', 'activeKey', 'defaultActiveKey', 'disabledTabKeys', 'tabPosition', 'size', 'centered', 'indicator', 'tabBarGutter', 'inkBarAnimated', 'tabPaneAnimated', 'latestDeletePane', 'tabCloseCounts', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCount', 'destroyInactiveTabPane', 'clickedContextMenu', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
190
+ self.available_properties = ['id', 'key', 'style', 'className', 'type', 'items', 'itemKeys', 'activeKey', 'defaultActiveKey', 'disabledTabKeys', 'tabPosition', 'size', 'centered', 'indicator', 'tabBarGutter', 'inkBarAnimated', 'tabPaneAnimated', 'latestDeletePane', 'tabCloseCounts', 'tabBarLeftExtraContent', 'tabBarRightExtraContent', 'tabCount', 'destroyInactiveTabPane', 'clickedContextMenu', 'placeholder', 'data-*', 'aria-*', 'loading_state', 'persistence', 'persisted_props', 'persistence_type']
188
191
  self.available_wildcard_properties = ['data-', 'aria-']
189
192
  _explicit_args = kwargs.pop('_explicit_args')
190
193
  _locals = locals()