feffery_antd_components 0.4.1 → 0.4.3-rc1

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 (31) hide show
  1. package/DESCRIPTION +1 -1
  2. package/Project.toml +1 -1
  3. package/README-en_US.md +2 -2
  4. package/README.md +2 -2
  5. package/feffery_antd_components/AntdFormItem.py +1 -1
  6. package/feffery_antd_components/AntdProgress.py +47 -11
  7. package/feffery_antd_components/AntdTable.py +8 -0
  8. package/feffery_antd_components/async-antd_table.js +2 -2
  9. package/feffery_antd_components/async-data_display.js +1 -1
  10. package/feffery_antd_components/async-data_entry.js +3 -3
  11. package/feffery_antd_components/async-upload.js +2 -2
  12. package/feffery_antd_components/feffery_antd_components.min.js +5 -5
  13. package/feffery_antd_components/metadata.json +1 -1
  14. package/feffery_antd_components/package-info.json +2 -2
  15. package/package.json +2 -2
  16. package/src/jl/'feffery'_antdformitem.jl +1 -1
  17. package/src/jl/'feffery'_antdprogress.jl +12 -5
  18. package/src/jl/'feffery'_antdtable.jl +4 -2
  19. package/src/lib/components/dataDisplay/AntdTable.react.js +11 -0
  20. package/src/lib/components/dataEntry/form/AntdFormItem.react.js +1 -1
  21. package/src/lib/components/feedback/AntdProgress.react.js +39 -5
  22. package/src/lib/components/layout/AntdSplitter.react.js +0 -1
  23. package/src/lib/fragments/AntdTable.react.js +26 -6
  24. package/src/lib/hooks/useStickyOffset.js +115 -0
  25. package/tests/dataDisplay/AntdTable/feat_sticky_header.py +81 -0
  26. package/tests/dataDisplay/AntdTable/fix_select_with_editable.py +84 -0
  27. package/tests/dataDisplay/AntdTable/refactor_mini_progress_mode.py +12 -0
  28. package/tests/feedback/AntdProgress/feat_percent_position.py +39 -0
  29. package/tests/feedback/AntdProgress/perf_size.py +26 -0
  30. package/tests/feedback/AntdProgress/perf_steps.py +37 -0
  31. package/tests/feedback/AntdProgress/perf_stroke_color.py +58 -0
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.4.1
3
+ Version: 0.4.3-rc1
4
4
  Description: Best implementation of Antd components in Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
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.4.1"
5
+ version = "0.4.3-rc1"
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.4.1` (2025-08-19)
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.4.2` (2025-08-20)
19
19
 
20
20
  ## Dash Version Compatibility Notes
21
21
 
@@ -33,7 +33,7 @@ pip install feffery-antd-components -U
33
33
  ## 2 Install the latest preview release version
34
34
 
35
35
  > [!NOTE]
36
- > The latest preview release version (2025-07-09): `0.4.0rc9`
36
+ > The latest preview release version (2025-07-09): `0.4.3rc1`
37
37
 
38
38
  ```bash
39
39
  pip install feffery-antd-components --pre -U
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.4.1`(2025-08-19
18
+ `feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.4.2`(2025-08-20
19
19
 
20
20
  ## Dash版本兼容性说明
21
21
 
@@ -33,7 +33,7 @@ pip install feffery-antd-components -U
33
33
  ## 2 最新预发布版本安装方式
34
34
 
35
35
  > [!NOTE]
36
- > 最新预发布版本(2025-07-09):`0.4.0rc9`
36
+ > 最新预发布版本(2025-07-09):`0.4.3rc1`
37
37
 
38
38
  ```bash
39
39
  pip install feffery-antd-components --pre -U
@@ -68,7 +68,7 @@ Keyword arguments:
68
68
  同css中的flex属性,用于更灵活的控制控件部分所占宽度.
69
69
 
70
70
  - colon (boolean; optional):
71
- 当`layput='horizontal'`时,控制是否在表单项标签部分末尾添加冒号,优先级高于所属`AntdForm`中的`colon`参数.
71
+ 当`layout='horizontal'`时,控制是否在表单项标签部分末尾添加冒号,优先级高于所属`AntdForm`中的`colon`参数.
72
72
 
73
73
  - label (a list of or a singular dash component, string or number; optional):
74
74
  组件型,当前表单项标签内容.
@@ -40,8 +40,8 @@ Keyword arguments:
40
40
  进度条尺寸规格,可选项有`'small'`、`'default'`、`'large'`,传入数值型表示像素尺寸,传入字典型可分别控制宽度和高度
41
41
  默认值:`'default'`.
42
42
 
43
- `size` is a number | list of numbers | a value equal to: 'small',
44
- 'default' | dict with keys:
43
+ `size` is a number | list of number | strings | a value equal to:
44
+ 'small', 'default' | dict with keys:
45
45
 
46
46
  - width (number; optional):
47
47
  像素宽度.
@@ -96,16 +96,27 @@ Keyword arguments:
96
96
  - showInfo (boolean; default True):
97
97
  是否显示进度数值或状态图标 默认值:`True`.
98
98
 
99
+ - percentPosition (dict; optional):
100
+ 适用于`'line'`型进度条,配置进度条附带进度数值信息显示位置.
101
+
102
+ `percentPosition` is a dict with keys:
103
+
104
+ - align (a value equal to: 'start', 'center', 'end'; optional):
105
+ 对齐方式,可选项有`'start'`、`'center'`、`'end'`.
106
+
107
+ - type (a value equal to: 'inner', 'outer'; optional):
108
+ 内外位置,可选项有`'inner'`、`'outer'`.
109
+
99
110
  - strokeColor (dict; optional):
100
111
  配置进度条颜色,支持渐变色.
101
112
 
102
- `strokeColor` is a string | dict with keys:
113
+ `strokeColor` is a string | list of strings | dict with keys:
103
114
 
104
115
  - from (string; optional):
105
116
  渐变色开端颜色.
106
117
 
107
118
  - to (string; optional):
108
- 渐变色末端颜色.
119
+ 渐变色末端颜色. | dict with strings as keys and values of type string
109
120
 
110
121
  - strokeLinecap (a value equal to: 'round', 'butt', 'square'; optional):
111
122
  进度条线型,可选项有`'round'`、`'butt'`、`'square'` 默认值:`'round'`.
@@ -123,8 +134,16 @@ Keyword arguments:
123
134
  仪表盘缺口方向,可选项有`'top'`、`'bottom'`、`'left'`、`'right'`,仅`type='dashboard'`时可用
124
135
  默认值:`'bottom'`.
125
136
 
126
- - steps (number; optional):
127
- 进度条分段数量.
137
+ - steps (dict; optional):
138
+ 配置进度条分段数量,针对`'circle'`、`'dashboard'`型进度条支持传入字典型进行更详细的配置.
139
+
140
+ `steps` is a number | dict with keys:
141
+
142
+ - count (number; optional):
143
+ 分段数量.
144
+
145
+ - gap (number; optional):
146
+ 分段间隔像素大小.
128
147
 
129
148
  - data-* (string; optional):
130
149
  `data-*`格式属性通配.
@@ -168,6 +187,14 @@ Keyword arguments:
168
187
  }
169
188
  )
170
189
 
190
+ PercentPosition = TypedDict(
191
+ "PercentPosition",
192
+ {
193
+ "align": NotRequired[Literal["start", "center", "end"]],
194
+ "type": NotRequired[Literal["inner", "outer"]]
195
+ }
196
+ )
197
+
171
198
  StrokeColor = TypedDict(
172
199
  "StrokeColor",
173
200
  {
@@ -176,6 +203,14 @@ Keyword arguments:
176
203
  }
177
204
  )
178
205
 
206
+ Steps = TypedDict(
207
+ "Steps",
208
+ {
209
+ "count": NotRequired[NumberType],
210
+ "gap": NotRequired[NumberType]
211
+ }
212
+ )
213
+
179
214
 
180
215
  def __init__(
181
216
  self,
@@ -184,24 +219,25 @@ Keyword arguments:
184
219
  style: typing.Optional[typing.Any] = None,
185
220
  className: typing.Optional[typing.Union[str, dict]] = None,
186
221
  type: typing.Optional[Literal["line", "circle", "dashboard"]] = None,
187
- size: typing.Optional[typing.Union[NumberType, typing.Sequence[NumberType], Literal["small", "default"], "Size"]] = None,
222
+ size: typing.Optional[typing.Union[NumberType, typing.Sequence[typing.Union[NumberType, str]], Literal["small", "default"], "Size"]] = None,
188
223
  percent: typing.Optional[NumberType] = None,
189
224
  success: typing.Optional["Success"] = None,
190
225
  format: typing.Optional["Format"] = None,
191
226
  status: typing.Optional[Literal["success", "exception", "normal", "active"]] = None,
192
227
  showInfo: typing.Optional[bool] = None,
193
- strokeColor: typing.Optional[typing.Union[str, "StrokeColor"]] = None,
228
+ percentPosition: typing.Optional["PercentPosition"] = None,
229
+ strokeColor: typing.Optional[typing.Union[str, typing.Sequence[str], "StrokeColor", typing.Dict[typing.Union[str, float, int], str]]] = None,
194
230
  strokeLinecap: typing.Optional[Literal["round", "butt", "square"]] = None,
195
231
  strokeWidth: typing.Optional[NumberType] = None,
196
232
  trailColor: typing.Optional[str] = None,
197
233
  gapDegree: typing.Optional[NumberType] = None,
198
234
  gapPosition: typing.Optional[Literal["top", "bottom", "left", "right"]] = None,
199
- steps: typing.Optional[NumberType] = None,
235
+ steps: typing.Optional[typing.Union[NumberType, "Steps"]] = None,
200
236
  **kwargs
201
237
  ):
202
- self._prop_names = ['id', 'key', 'style', 'className', 'type', 'size', 'percent', 'success', 'format', 'status', 'showInfo', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'gapDegree', 'gapPosition', 'steps', 'data-*', 'aria-*']
238
+ self._prop_names = ['id', 'key', 'style', 'className', 'type', 'size', 'percent', 'success', 'format', 'status', 'showInfo', 'percentPosition', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'gapDegree', 'gapPosition', 'steps', 'data-*', 'aria-*']
203
239
  self._valid_wildcard_attributes = ['data-', 'aria-']
204
- self.available_properties = ['id', 'key', 'style', 'className', 'type', 'size', 'percent', 'success', 'format', 'status', 'showInfo', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'gapDegree', 'gapPosition', 'steps', 'data-*', 'aria-*']
240
+ self.available_properties = ['id', 'key', 'style', 'className', 'type', 'size', 'percent', 'success', 'format', 'status', 'showInfo', 'percentPosition', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'gapDegree', 'gapPosition', 'steps', 'data-*', 'aria-*']
205
241
  self.available_wildcard_properties = ['data-', 'aria-']
206
242
  _explicit_args = kwargs.pop('_explicit_args')
207
243
  _locals = locals()
@@ -98,6 +98,9 @@ Keyword arguments:
98
98
  当`renderType`为`'mini-progress'`时,设置进度条是否附带进度数值信息
99
99
  默认值:`False`.
100
100
 
101
+ - progressPercentPrecision (number; optional):
102
+ 当`renderType`为`'mini-progress'`时,设置进度条附带进度数值信息的小数位数,默认保持原始数值的精度.
103
+
101
104
  - progressPercentPosition (dict; optional):
102
105
  当`renderType`为`'mini-progress'`时,设置进度条附带进度数值信息显示的位置.
103
106
 
@@ -576,6 +579,9 @@ Keyword arguments:
576
579
 
577
580
  `sticky` is a boolean | dict with keys:
578
581
 
582
+ - belowSelector (string | list of strings; optional):
583
+ 粘性表头附着目标元素对应的选择器规则字符串,设置后,粘性表头激活后将附着在目标元素下方.
584
+
579
585
  - offsetHeader (number; optional):
580
586
  粘性表头竖直方向上的像素偏移量.
581
587
 
@@ -1061,6 +1067,7 @@ Keyword arguments:
1061
1067
  "tooltipCustomContent": NotRequired[str],
1062
1068
  "progressOneHundredPercentColor": NotRequired[str],
1063
1069
  "progressShowPercent": NotRequired[bool],
1070
+ "progressPercentPrecision": NotRequired[NumberType],
1064
1071
  "progressPercentPosition": NotRequired["ColumnsRenderOptionsProgressPercentPosition"],
1065
1072
  "progressStrokeLinecap": NotRequired[Literal["square", "round"]],
1066
1073
  "progressSize": NotRequired[NumberType],
@@ -1170,6 +1177,7 @@ Keyword arguments:
1170
1177
  Sticky = TypedDict(
1171
1178
  "Sticky",
1172
1179
  {
1180
+ "belowSelector": NotRequired[typing.Union[str, typing.Sequence[str]]],
1173
1181
  "offsetHeader": NotRequired[NumberType],
1174
1182
  "offsetScroll": NotRequired[NumberType]
1175
1183
  }