feffery_antd_components 0.4.1 → 0.4.2
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/README-en_US.md +1 -1
- package/README.md +1 -1
- package/feffery_antd_components/AntdProgress.py +47 -11
- package/feffery_antd_components/AntdTable.py +4 -0
- package/feffery_antd_components/async-antd_table.js +2 -2
- package/feffery_antd_components/async-data_entry.js +1 -1
- package/feffery_antd_components/feffery_antd_components.min.js +4 -4
- package/feffery_antd_components/metadata.json +1 -1
- package/feffery_antd_components/package-info.json +2 -2
- package/package.json +2 -2
- package/src/jl/'feffery'_antdprogress.jl +12 -5
- package/src/jl/'feffery'_antdtable.jl +2 -1
- package/src/lib/components/dataDisplay/AntdTable.react.js +4 -0
- package/src/lib/components/feedback/AntdProgress.react.js +39 -5
- package/src/lib/components/layout/AntdSplitter.react.js +0 -1
- package/src/lib/fragments/AntdTable.react.js +10 -3
- package/tests/dataDisplay/AntdTable/refactor_mini_progress_mode.py +12 -0
- package/tests/feedback/AntdProgress/feat_percent_position.py +39 -0
- package/tests/feedback/AntdProgress/perf_size.py +26 -0
- package/tests/feedback/AntdProgress/perf_steps.py +37 -0
- package/tests/feedback/AntdProgress/perf_stroke_color.py +58 -0
package/DESCRIPTION
CHANGED
package/Project.toml
CHANGED
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.
|
|
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
|
|
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.
|
|
18
|
+
`feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.4.2`(2025-08-20)
|
|
19
19
|
|
|
20
20
|
## Dash版本兼容性说明
|
|
21
21
|
|
|
@@ -40,8 +40,8 @@ Keyword arguments:
|
|
|
40
40
|
进度条尺寸规格,可选项有`'small'`、`'default'`、`'large'`,传入数值型表示像素尺寸,传入字典型可分别控制宽度和高度
|
|
41
41
|
默认值:`'default'`.
|
|
42
42
|
|
|
43
|
-
`size` is a number | list of
|
|
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 (
|
|
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
|
-
|
|
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
|
|
|
@@ -1061,6 +1064,7 @@ Keyword arguments:
|
|
|
1061
1064
|
"tooltipCustomContent": NotRequired[str],
|
|
1062
1065
|
"progressOneHundredPercentColor": NotRequired[str],
|
|
1063
1066
|
"progressShowPercent": NotRequired[bool],
|
|
1067
|
+
"progressPercentPrecision": NotRequired[NumberType],
|
|
1064
1068
|
"progressPercentPosition": NotRequired["ColumnsRenderOptionsProgressPercentPosition"],
|
|
1065
1069
|
"progressStrokeLinecap": NotRequired[Literal["square", "round"]],
|
|
1066
1070
|
"progressSize": NotRequired[NumberType],
|