feffery_antd_components 0.3.12 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESCRIPTION +1 -1
- package/Project.toml +1 -1
- package/README-en_US.md +1 -1
- package/README.md +1 -1
- package/feffery_antd_components/AntdAccordion.py +94 -3
- package/feffery_antd_components/AntdAffix.py +29 -1
- package/feffery_antd_components/AntdAlert.py +41 -5
- package/feffery_antd_components/AntdAnchor.py +33 -1
- package/feffery_antd_components/AntdAvatar.py +49 -1
- package/feffery_antd_components/AntdAvatarGroup.py +43 -1
- package/feffery_antd_components/AntdBackTop.py +30 -1
- package/feffery_antd_components/AntdBadge.py +55 -1
- package/feffery_antd_components/AntdBreadcrumb.py +62 -1
- package/feffery_antd_components/AntdButton.py +64 -1
- package/feffery_antd_components/AntdCalendar.py +55 -1
- package/feffery_antd_components/AntdCard.py +58 -1
- package/feffery_antd_components/AntdCardGrid.py +28 -1
- package/feffery_antd_components/AntdCardMeta.py +28 -1
- package/feffery_antd_components/AntdCarousel.py +38 -1
- package/feffery_antd_components/AntdCascader.py +58 -1
- package/feffery_antd_components/AntdCenter.py +28 -1
- package/feffery_antd_components/AntdCheckCard.py +37 -1
- package/feffery_antd_components/AntdCheckCardGroup.py +38 -1
- package/feffery_antd_components/AntdCheckableTag.py +29 -1
- package/feffery_antd_components/AntdCheckbox.py +37 -1
- package/feffery_antd_components/AntdCheckboxGroup.py +44 -1
- package/feffery_antd_components/AntdCol.py +104 -1
- package/feffery_antd_components/AntdCollapse.py +82 -3
- package/feffery_antd_components/AntdColorPicker.py +57 -1
- package/feffery_antd_components/AntdComment.py +54 -1
- package/feffery_antd_components/AntdCompact.py +28 -1
- package/feffery_antd_components/AntdConfigProvider.py +49 -1
- package/feffery_antd_components/AntdContent.py +26 -1
- package/feffery_antd_components/AntdCopyText.py +31 -1
- package/feffery_antd_components/AntdCountdown.py +33 -1
- package/feffery_antd_components/AntdCustomSkeleton.py +34 -1
- package/feffery_antd_components/AntdDatePicker.py +104 -1
- package/feffery_antd_components/AntdDateRangePicker.py +104 -1
- package/feffery_antd_components/AntdDescriptionItem.py +30 -1
- package/feffery_antd_components/AntdDescriptions.py +60 -1
- package/feffery_antd_components/AntdDivider.py +37 -1
- package/feffery_antd_components/AntdDraggablePanel.py +66 -1
- package/feffery_antd_components/AntdDraggerUpload.py +123 -1
- package/feffery_antd_components/AntdDrawer.py +67 -1
- package/feffery_antd_components/AntdDropdown.py +78 -1
- package/feffery_antd_components/AntdEditorLayout.py +117 -1
- package/feffery_antd_components/AntdEmpty.py +30 -1
- package/feffery_antd_components/AntdFlex.py +32 -1
- package/feffery_antd_components/AntdFloatButton.py +33 -1
- package/feffery_antd_components/AntdFloatButtonGroup.py +34 -1
- package/feffery_antd_components/AntdFooter.py +26 -1
- package/feffery_antd_components/AntdForm.py +54 -1
- package/feffery_antd_components/AntdFormItem.py +57 -1
- package/feffery_antd_components/AntdFormRender.py +254 -1
- package/feffery_antd_components/AntdHeader.py +26 -1
- package/feffery_antd_components/AntdIcon.py +30 -1
- package/feffery_antd_components/AntdImage.py +50 -1
- package/feffery_antd_components/AntdImageGroup.py +48 -1
- package/feffery_antd_components/AntdInput.py +92 -1
- package/feffery_antd_components/AntdInputNumber.py +55 -1
- package/feffery_antd_components/AntdLayout.py +26 -1
- package/feffery_antd_components/AntdMentions.py +59 -1
- package/feffery_antd_components/AntdMenu.py +55 -2
- package/feffery_antd_components/AntdMessage.py +33 -1
- package/feffery_antd_components/AntdModal.py +80 -1
- package/feffery_antd_components/AntdNotification.py +46 -1
- package/feffery_antd_components/AntdOTP.py +37 -1
- package/feffery_antd_components/AntdPageHeader.py +32 -1
- package/feffery_antd_components/AntdPagination.py +48 -1
- package/feffery_antd_components/AntdParagraph.py +47 -1
- package/feffery_antd_components/AntdPictureUpload.py +136 -1
- package/feffery_antd_components/AntdPopconfirm.py +77 -1
- package/feffery_antd_components/AntdPopover.py +42 -1
- package/feffery_antd_components/AntdPopupCard.py +39 -1
- package/feffery_antd_components/AntdProgress.py +73 -1
- package/feffery_antd_components/AntdQRCode.py +47 -1
- package/feffery_antd_components/AntdRadioGroup.py +50 -1
- package/feffery_antd_components/AntdRate.py +39 -1
- package/feffery_antd_components/AntdResult.py +30 -1
- package/feffery_antd_components/AntdRibbon.py +29 -1
- package/feffery_antd_components/AntdRow.py +42 -1
- package/feffery_antd_components/AntdSegmented.py +48 -1
- package/feffery_antd_components/AntdSegmentedColoring.py +56 -1
- package/feffery_antd_components/AntdSelect.py +85 -1
- package/feffery_antd_components/AntdSider.py +34 -1
- package/feffery_antd_components/AntdSkeleton.py +62 -1
- package/feffery_antd_components/AntdSkeletonAvatar.py +28 -1
- package/feffery_antd_components/AntdSkeletonButton.py +29 -1
- package/feffery_antd_components/AntdSkeletonImage.py +25 -1
- package/feffery_antd_components/AntdSkeletonInput.py +27 -1
- package/feffery_antd_components/AntdSlider.py +65 -1
- package/feffery_antd_components/AntdSpace.py +48 -1
- package/feffery_antd_components/AntdSpin.py +39 -1
- package/feffery_antd_components/AntdSplitter.py +51 -1
- package/feffery_antd_components/AntdSpoiler.py +35 -1
- package/feffery_antd_components/AntdStatistic.py +33 -1
- package/feffery_antd_components/AntdSteps.py +48 -1
- package/feffery_antd_components/AntdSwitch.py +39 -1
- package/feffery_antd_components/AntdTable.py +363 -1
- package/feffery_antd_components/AntdTabs.py +93 -1
- package/feffery_antd_components/AntdTag.py +33 -1
- package/feffery_antd_components/AntdText.py +45 -1
- package/feffery_antd_components/AntdTimePicker.py +56 -1
- package/feffery_antd_components/AntdTimeRangePicker.py +56 -1
- package/feffery_antd_components/AntdTimeline.py +41 -1
- package/feffery_antd_components/AntdTitle.py +38 -1
- package/feffery_antd_components/AntdTooltip.py +41 -1
- package/feffery_antd_components/AntdTour.py +95 -1
- package/feffery_antd_components/AntdTransfer.py +64 -1
- package/feffery_antd_components/AntdTree.py +94 -1
- package/feffery_antd_components/AntdTreeSelect.py +78 -3
- package/feffery_antd_components/AntdUpload.py +133 -1
- package/feffery_antd_components/AntdWatermark.py +38 -1
- package/feffery_antd_components/Fragment.py +25 -1
- package/feffery_antd_components/async-antd_table.js +2 -2
- package/feffery_antd_components/async-data_display.js +1 -1
- package/feffery_antd_components/async-data_entry.js +6 -6
- package/feffery_antd_components/async-upload.js +2 -2
- package/feffery_antd_components/feffery_antd_components.min.js +16 -12
- package/feffery_antd_components/metadata.json +1 -1
- package/feffery_antd_components/package-info.json +2 -2
- package/package.json +2 -2
- package/setup.py +1 -1
- package/src/jl/'feffery'_antdaccordion.jl +11 -1
- package/src/jl/'feffery'_antdalert.jl +2 -1
- package/src/jl/'feffery'_antdcollapse.jl +11 -1
- package/src/jl/'feffery'_antdtreeselect.jl +3 -1
- package/src/lib/components/dataDisplay/AntdAccordion.react.js +35 -0
- package/src/lib/components/dataDisplay/AntdCollapse.react.js +64 -15
- package/src/lib/components/dataEntry/AntdTreeSelect.react.js +6 -0
- package/src/lib/components/feedback/AntdAlert.react.js +8 -0
- package/src/lib/components/navigation/AntdMenu.react.js +0 -1
- package/src/lib/fragments/dataDisplay/AntdAccordion.react.js +36 -28
- package/src/lib/fragments/dataEntry/AntdTreeSelect.react.js +2 -0
- package/tests/dataDisplay/AntdAccordion/feat_size.py +36 -0
- package/tests/dataDisplay/AntdAccordion/feat_styles.py +35 -0
- package/tests/dataDisplay/AntdCollapse/feat_size.py +30 -0
- package/tests/dataDisplay/AntdCollapse/feat_styles.py +29 -0
- package/tests/dataEntry/AntdTreeSelect/feat_max_count.py +71 -0
- package/tests/feedback/AntdAlert/feat_icon.py +35 -0
- package/tests/navigation/AntdMenu/fix_with_sider.py +71 -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.3.
|
|
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.13` (2025-01-17)
|
|
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.
|
|
18
|
+
`feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新稳定版本:`0.3.13`(2025-01-17)
|
|
19
19
|
|
|
20
20
|
## 1 最新版本安装方式
|
|
21
21
|
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdAccordion(Component):
|
|
@@ -21,6 +28,28 @@ Keyword arguments:
|
|
|
21
28
|
- className (string | dict; optional):
|
|
22
29
|
当前组件css类名,支持[动态css](/advanced-classname).
|
|
23
30
|
|
|
31
|
+
- styles (dict; optional):
|
|
32
|
+
细分控制子元素css样式.
|
|
33
|
+
|
|
34
|
+
`styles` is a dict with keys:
|
|
35
|
+
|
|
36
|
+
- header (dict; optional):
|
|
37
|
+
头部元素css样式.
|
|
38
|
+
|
|
39
|
+
- body (dict; optional):
|
|
40
|
+
内容元素css样式.
|
|
41
|
+
|
|
42
|
+
- classNames (dict; optional):
|
|
43
|
+
细分控制子元素css类名.
|
|
44
|
+
|
|
45
|
+
`classNames` is a dict with keys:
|
|
46
|
+
|
|
47
|
+
- header (string; optional):
|
|
48
|
+
头部元素css类名.
|
|
49
|
+
|
|
50
|
+
- body (string; optional):
|
|
51
|
+
内容元素css类名.
|
|
52
|
+
|
|
24
53
|
- items (list of dicts; optional):
|
|
25
54
|
定义手风琴子项.
|
|
26
55
|
|
|
@@ -65,6 +94,9 @@ Keyword arguments:
|
|
|
65
94
|
- bordered (boolean; default True):
|
|
66
95
|
是否渲染边框 默认值:`True`.
|
|
67
96
|
|
|
97
|
+
- size (a value equal to: 'large', 'middle', 'small'; default 'middle'):
|
|
98
|
+
组件尺寸规格,可选项有`'small'`、`'middle'`、`'large'` 默认值:`'middle'`.
|
|
99
|
+
|
|
68
100
|
- collapsible (a value equal to: 'header', 'disabled', 'icon'; optional):
|
|
69
101
|
设置所有子项折叠触发方式,可选项有`'header'`、`'disabled'`、`'icon'`.
|
|
70
102
|
|
|
@@ -96,11 +128,70 @@ Keyword arguments:
|
|
|
96
128
|
_base_nodes = ['children']
|
|
97
129
|
_namespace = 'feffery_antd_components'
|
|
98
130
|
_type = 'AntdAccordion'
|
|
131
|
+
Styles = TypedDict(
|
|
132
|
+
"Styles",
|
|
133
|
+
{
|
|
134
|
+
"header": NotRequired[dict],
|
|
135
|
+
"body": NotRequired[dict]
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
ClassNames = TypedDict(
|
|
140
|
+
"ClassNames",
|
|
141
|
+
{
|
|
142
|
+
"header": NotRequired[str],
|
|
143
|
+
"body": NotRequired[str]
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
Items = TypedDict(
|
|
148
|
+
"Items",
|
|
149
|
+
{
|
|
150
|
+
"children": NotRequired[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]],
|
|
151
|
+
"className": NotRequired[typing.Union[str, dict]],
|
|
152
|
+
"style": NotRequired[dict],
|
|
153
|
+
"key": typing.Union[str, typing.Union[int, float, numbers.Number]],
|
|
154
|
+
"collapsible": NotRequired[Literal["header", "disabled", "icon"]],
|
|
155
|
+
"title": NotRequired[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]],
|
|
156
|
+
"extra": NotRequired[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]],
|
|
157
|
+
"showArrow": NotRequired[bool],
|
|
158
|
+
"forceRender": NotRequired[bool]
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
LoadingState = TypedDict(
|
|
163
|
+
"LoadingState",
|
|
164
|
+
{
|
|
165
|
+
"is_loading": NotRequired[bool],
|
|
166
|
+
"prop_name": NotRequired[str],
|
|
167
|
+
"component_name": NotRequired[str]
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
|
|
99
171
|
@_explicitize_args
|
|
100
|
-
def __init__(
|
|
101
|
-
self
|
|
172
|
+
def __init__(
|
|
173
|
+
self,
|
|
174
|
+
id: typing.Optional[str] = None,
|
|
175
|
+
key: typing.Optional[str] = None,
|
|
176
|
+
style: typing.Optional[dict] = None,
|
|
177
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
178
|
+
styles: typing.Optional["Styles"] = None,
|
|
179
|
+
classNames: typing.Optional["ClassNames"] = None,
|
|
180
|
+
items: typing.Optional[typing.Sequence["Items"]] = None,
|
|
181
|
+
accordion: typing.Optional[bool] = None,
|
|
182
|
+
activeKey: typing.Optional[typing.Union[str, typing.Sequence[str], typing.Union[int, float, numbers.Number], typing.Sequence[typing.Union[int, float, numbers.Number]]]] = None,
|
|
183
|
+
defaultActiveKey: typing.Optional[typing.Union[str, typing.Sequence[str], typing.Union[int, float, numbers.Number], typing.Sequence[typing.Union[int, float, numbers.Number]]]] = None,
|
|
184
|
+
bordered: typing.Optional[bool] = None,
|
|
185
|
+
size: typing.Optional[Literal["large", "middle", "small"]] = None,
|
|
186
|
+
collapsible: typing.Optional[Literal["header", "disabled", "icon"]] = None,
|
|
187
|
+
expandIconPosition: typing.Optional[Literal["left", "right"]] = None,
|
|
188
|
+
ghost: typing.Optional[bool] = None,
|
|
189
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
190
|
+
**kwargs
|
|
191
|
+
):
|
|
192
|
+
self._prop_names = ['id', 'key', 'style', 'className', 'styles', 'classNames', 'items', 'accordion', 'activeKey', 'defaultActiveKey', 'bordered', 'size', 'collapsible', 'expandIconPosition', 'ghost', 'data-*', 'aria-*', 'loading_state']
|
|
102
193
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
103
|
-
self.available_properties = ['id', 'key', 'style', 'className', 'items', 'accordion', 'activeKey', 'defaultActiveKey', 'bordered', 'collapsible', 'expandIconPosition', 'ghost', 'data-*', 'aria-*', 'loading_state']
|
|
194
|
+
self.available_properties = ['id', 'key', 'style', 'className', 'styles', 'classNames', 'items', 'accordion', 'activeKey', 'defaultActiveKey', 'bordered', 'size', 'collapsible', 'expandIconPosition', 'ghost', 'data-*', 'aria-*', 'loading_state']
|
|
104
195
|
self.available_wildcard_properties = ['data-', 'aria-']
|
|
105
196
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
106
197
|
_locals = locals()
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdAffix(Component):
|
|
@@ -55,8 +62,29 @@ Keyword arguments:
|
|
|
55
62
|
_base_nodes = ['children']
|
|
56
63
|
_namespace = 'feffery_antd_components'
|
|
57
64
|
_type = 'AntdAffix'
|
|
65
|
+
LoadingState = TypedDict(
|
|
66
|
+
"LoadingState",
|
|
67
|
+
{
|
|
68
|
+
"is_loading": NotRequired[bool],
|
|
69
|
+
"prop_name": NotRequired[str],
|
|
70
|
+
"component_name": NotRequired[str]
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
|
|
58
74
|
@_explicitize_args
|
|
59
|
-
def __init__(
|
|
75
|
+
def __init__(
|
|
76
|
+
self,
|
|
77
|
+
children: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
78
|
+
id: typing.Optional[str] = None,
|
|
79
|
+
key: typing.Optional[str] = None,
|
|
80
|
+
style: typing.Optional[dict] = None,
|
|
81
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
82
|
+
offsetBottom: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
83
|
+
offsetTop: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
84
|
+
target: typing.Optional[str] = None,
|
|
85
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
86
|
+
**kwargs
|
|
87
|
+
):
|
|
60
88
|
self._prop_names = ['id', 'key', 'children', 'style', 'className', 'offsetBottom', 'offsetTop', 'target', 'data-*', 'aria-*', 'loading_state']
|
|
61
89
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
62
90
|
self.available_properties = ['id', 'key', 'children', 'style', 'className', 'offsetBottom', 'offsetTop', 'target', 'data-*', 'aria-*', 'loading_state']
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdAlert(Component):
|
|
@@ -34,6 +41,9 @@ Keyword arguments:
|
|
|
34
41
|
- showIcon (boolean; default False):
|
|
35
42
|
是否显示额外图标 默认值:`False`.
|
|
36
43
|
|
|
44
|
+
- icon (a list of or a singular dash component, string or number; optional):
|
|
45
|
+
组件型,当`showIcon=True`时,用于自定义图标元素.
|
|
46
|
+
|
|
37
47
|
- closable (boolean; default False):
|
|
38
48
|
是否可关闭 默认值:`False`.
|
|
39
49
|
|
|
@@ -64,15 +74,41 @@ Keyword arguments:
|
|
|
64
74
|
|
|
65
75
|
- component_name (string; optional):
|
|
66
76
|
Holds the name of the component that is loading."""
|
|
67
|
-
_children_props = ['message', 'description', 'action']
|
|
68
|
-
_base_nodes = ['message', 'description', 'action', 'children']
|
|
77
|
+
_children_props = ['message', 'description', 'icon', 'action']
|
|
78
|
+
_base_nodes = ['message', 'description', 'icon', 'action', 'children']
|
|
69
79
|
_namespace = 'feffery_antd_components'
|
|
70
80
|
_type = 'AntdAlert'
|
|
81
|
+
LoadingState = TypedDict(
|
|
82
|
+
"LoadingState",
|
|
83
|
+
{
|
|
84
|
+
"is_loading": NotRequired[bool],
|
|
85
|
+
"prop_name": NotRequired[str],
|
|
86
|
+
"component_name": NotRequired[str]
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
|
|
71
90
|
@_explicitize_args
|
|
72
|
-
def __init__(
|
|
73
|
-
self
|
|
91
|
+
def __init__(
|
|
92
|
+
self,
|
|
93
|
+
id: typing.Optional[str] = None,
|
|
94
|
+
key: typing.Optional[str] = None,
|
|
95
|
+
style: typing.Optional[dict] = None,
|
|
96
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
97
|
+
message: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
98
|
+
description: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
99
|
+
type: typing.Optional[Literal["success", "info", "warning", "error"]] = None,
|
|
100
|
+
showIcon: typing.Optional[bool] = None,
|
|
101
|
+
icon: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
102
|
+
closable: typing.Optional[bool] = None,
|
|
103
|
+
messageRenderMode: typing.Optional[Literal["default", "loop-text", "marquee"]] = None,
|
|
104
|
+
action: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
105
|
+
banner: typing.Optional[bool] = None,
|
|
106
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
107
|
+
**kwargs
|
|
108
|
+
):
|
|
109
|
+
self._prop_names = ['id', 'key', 'style', 'className', 'message', 'description', 'type', 'showIcon', 'icon', 'closable', 'messageRenderMode', 'action', 'banner', 'data-*', 'aria-*', 'loading_state']
|
|
74
110
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
75
|
-
self.available_properties = ['id', 'key', 'style', 'className', 'message', 'description', 'type', 'showIcon', 'closable', 'messageRenderMode', 'action', 'banner', 'data-*', 'aria-*', 'loading_state']
|
|
111
|
+
self.available_properties = ['id', 'key', 'style', 'className', 'message', 'description', 'type', 'showIcon', 'icon', 'closable', 'messageRenderMode', 'action', 'banner', 'data-*', 'aria-*', 'loading_state']
|
|
76
112
|
self.available_wildcard_properties = ['data-', 'aria-']
|
|
77
113
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
78
114
|
_locals = locals()
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdAnchor(Component):
|
|
@@ -67,8 +74,33 @@ Keyword arguments:
|
|
|
67
74
|
_base_nodes = ['children']
|
|
68
75
|
_namespace = 'feffery_antd_components'
|
|
69
76
|
_type = 'AntdAnchor'
|
|
77
|
+
LoadingState = TypedDict(
|
|
78
|
+
"LoadingState",
|
|
79
|
+
{
|
|
80
|
+
"is_loading": NotRequired[bool],
|
|
81
|
+
"prop_name": NotRequired[str],
|
|
82
|
+
"component_name": NotRequired[str]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
|
|
70
86
|
@_explicitize_args
|
|
71
|
-
def __init__(
|
|
87
|
+
def __init__(
|
|
88
|
+
self,
|
|
89
|
+
id: typing.Optional[str] = None,
|
|
90
|
+
key: typing.Optional[str] = None,
|
|
91
|
+
style: typing.Optional[dict] = None,
|
|
92
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
93
|
+
linkDict: typing.Optional[typing.Any] = None,
|
|
94
|
+
align: typing.Optional[Literal["left", "right"]] = None,
|
|
95
|
+
containerId: typing.Optional[str] = None,
|
|
96
|
+
targetOffset: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
97
|
+
affix: typing.Optional[bool] = None,
|
|
98
|
+
bounds: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
99
|
+
offsetTop: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
100
|
+
clickedLink: typing.Optional[dict] = None,
|
|
101
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
102
|
+
**kwargs
|
|
103
|
+
):
|
|
72
104
|
self._prop_names = ['id', 'key', 'style', 'className', 'linkDict', 'align', 'containerId', 'targetOffset', 'affix', 'bounds', 'offsetTop', 'clickedLink', 'data-*', 'aria-*', 'loading_state']
|
|
73
105
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
74
106
|
self.available_properties = ['id', 'key', 'style', 'className', 'linkDict', 'align', 'containerId', 'targetOffset', 'affix', 'bounds', 'offsetTop', 'clickedLink', 'data-*', 'aria-*', 'loading_state']
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdAvatar(Component):
|
|
@@ -94,8 +101,49 @@ Keyword arguments:
|
|
|
94
101
|
_base_nodes = ['children']
|
|
95
102
|
_namespace = 'feffery_antd_components'
|
|
96
103
|
_type = 'AntdAvatar'
|
|
104
|
+
Size = TypedDict(
|
|
105
|
+
"Size",
|
|
106
|
+
{
|
|
107
|
+
"xs": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
108
|
+
"sm": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
109
|
+
"md": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
110
|
+
"lg": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
111
|
+
"xl": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
112
|
+
"xxl": NotRequired[typing.Union[int, float, numbers.Number]]
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
LoadingState = TypedDict(
|
|
117
|
+
"LoadingState",
|
|
118
|
+
{
|
|
119
|
+
"is_loading": NotRequired[bool],
|
|
120
|
+
"prop_name": NotRequired[str],
|
|
121
|
+
"component_name": NotRequired[str]
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
|
|
97
125
|
@_explicitize_args
|
|
98
|
-
def __init__(
|
|
126
|
+
def __init__(
|
|
127
|
+
self,
|
|
128
|
+
id: typing.Optional[str] = None,
|
|
129
|
+
key: typing.Optional[str] = None,
|
|
130
|
+
style: typing.Optional[dict] = None,
|
|
131
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
132
|
+
mode: typing.Optional[Literal["text", "icon", "image"]] = None,
|
|
133
|
+
gap: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
134
|
+
text: typing.Optional[str] = None,
|
|
135
|
+
icon: typing.Optional[str] = None,
|
|
136
|
+
iconRenderer: typing.Optional[Literal["AntdIcon", "fontawesome"]] = None,
|
|
137
|
+
alt: typing.Optional[str] = None,
|
|
138
|
+
src: typing.Optional[str] = None,
|
|
139
|
+
srcSet: typing.Optional[str] = None,
|
|
140
|
+
draggable: typing.Optional[typing.Union[bool, Literal["true", "false"]]] = None,
|
|
141
|
+
crossOrigin: typing.Optional[Literal["anonymous", "use-credentials", ""]] = None,
|
|
142
|
+
size: typing.Optional[typing.Union[typing.Union[int, float, numbers.Number], Literal["large", "small", "default"], "Size"]] = None,
|
|
143
|
+
shape: typing.Optional[Literal["circle", "square"]] = None,
|
|
144
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
145
|
+
**kwargs
|
|
146
|
+
):
|
|
99
147
|
self._prop_names = ['id', 'key', 'style', 'className', 'mode', 'gap', 'text', 'icon', 'iconRenderer', 'alt', 'src', 'srcSet', 'draggable', 'crossOrigin', 'size', 'shape', 'data-*', 'aria-*', 'loading_state']
|
|
100
148
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
101
149
|
self.available_properties = ['id', 'key', 'style', 'className', 'mode', 'gap', 'text', 'icon', 'iconRenderer', 'alt', 'src', 'srcSet', 'draggable', 'crossOrigin', 'size', 'shape', 'data-*', 'aria-*', 'loading_state']
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdAvatarGroup(Component):
|
|
@@ -78,8 +85,43 @@ Keyword arguments:
|
|
|
78
85
|
_base_nodes = ['children']
|
|
79
86
|
_namespace = 'feffery_antd_components'
|
|
80
87
|
_type = 'AntdAvatarGroup'
|
|
88
|
+
Size = TypedDict(
|
|
89
|
+
"Size",
|
|
90
|
+
{
|
|
91
|
+
"xs": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
92
|
+
"sm": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
93
|
+
"md": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
94
|
+
"lg": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
95
|
+
"xl": NotRequired[typing.Union[int, float, numbers.Number]],
|
|
96
|
+
"xxl": NotRequired[typing.Union[int, float, numbers.Number]]
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
LoadingState = TypedDict(
|
|
101
|
+
"LoadingState",
|
|
102
|
+
{
|
|
103
|
+
"is_loading": NotRequired[bool],
|
|
104
|
+
"prop_name": NotRequired[str],
|
|
105
|
+
"component_name": NotRequired[str]
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
|
|
81
109
|
@_explicitize_args
|
|
82
|
-
def __init__(
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
children: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
113
|
+
id: typing.Optional[str] = None,
|
|
114
|
+
key: typing.Optional[str] = None,
|
|
115
|
+
style: typing.Optional[dict] = None,
|
|
116
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
117
|
+
maxCount: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
118
|
+
maxPopoverPlacement: typing.Optional[Literal["top", "bottom"]] = None,
|
|
119
|
+
maxPopoverTrigger: typing.Optional[Literal["hover", "click"]] = None,
|
|
120
|
+
maxStyle: typing.Optional[dict] = None,
|
|
121
|
+
size: typing.Optional[typing.Union[typing.Union[int, float, numbers.Number], Literal["large", "small", "default"], "Size"]] = None,
|
|
122
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
123
|
+
**kwargs
|
|
124
|
+
):
|
|
83
125
|
self._prop_names = ['id', 'key', 'children', 'style', 'className', 'maxCount', 'maxPopoverPlacement', 'maxPopoverTrigger', 'maxStyle', 'size', 'data-*', 'aria-*', 'loading_state']
|
|
84
126
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
85
127
|
self.available_properties = ['id', 'key', 'children', 'style', 'className', 'maxCount', 'maxPopoverPlacement', 'maxPopoverTrigger', 'maxStyle', 'size', 'data-*', 'aria-*', 'loading_state']
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdBackTop(Component):
|
|
@@ -58,8 +65,30 @@ Keyword arguments:
|
|
|
58
65
|
_base_nodes = ['children']
|
|
59
66
|
_namespace = 'feffery_antd_components'
|
|
60
67
|
_type = 'AntdBackTop'
|
|
68
|
+
LoadingState = TypedDict(
|
|
69
|
+
"LoadingState",
|
|
70
|
+
{
|
|
71
|
+
"is_loading": NotRequired[bool],
|
|
72
|
+
"prop_name": NotRequired[str],
|
|
73
|
+
"component_name": NotRequired[str]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
|
|
61
77
|
@_explicitize_args
|
|
62
|
-
def __init__(
|
|
78
|
+
def __init__(
|
|
79
|
+
self,
|
|
80
|
+
id: typing.Optional[str] = None,
|
|
81
|
+
key: typing.Optional[str] = None,
|
|
82
|
+
style: typing.Optional[dict] = None,
|
|
83
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
84
|
+
duration: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
85
|
+
visibilityHeight: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
86
|
+
containerId: typing.Optional[str] = None,
|
|
87
|
+
containerSelector: typing.Optional[str] = None,
|
|
88
|
+
nClicks: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
89
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
90
|
+
**kwargs
|
|
91
|
+
):
|
|
63
92
|
self._prop_names = ['id', 'key', 'style', 'className', 'duration', 'visibilityHeight', 'containerId', 'containerSelector', 'nClicks', 'data-*', 'aria-*', 'loading_state']
|
|
64
93
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
65
94
|
self.available_properties = ['id', 'key', 'style', 'className', 'duration', 'visibilityHeight', 'containerId', 'containerSelector', 'nClicks', 'data-*', 'aria-*', 'loading_state']
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdBadge(Component):
|
|
@@ -101,8 +108,55 @@ Keyword arguments:
|
|
|
101
108
|
_base_nodes = ['children']
|
|
102
109
|
_namespace = 'feffery_antd_components'
|
|
103
110
|
_type = 'AntdBadge'
|
|
111
|
+
Styles = TypedDict(
|
|
112
|
+
"Styles",
|
|
113
|
+
{
|
|
114
|
+
"root": NotRequired[dict],
|
|
115
|
+
"indicator": NotRequired[dict]
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
ClassNames = TypedDict(
|
|
120
|
+
"ClassNames",
|
|
121
|
+
{
|
|
122
|
+
"root": NotRequired[str],
|
|
123
|
+
"indicator": NotRequired[str]
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
LoadingState = TypedDict(
|
|
128
|
+
"LoadingState",
|
|
129
|
+
{
|
|
130
|
+
"is_loading": NotRequired[bool],
|
|
131
|
+
"prop_name": NotRequired[str],
|
|
132
|
+
"component_name": NotRequired[str]
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
|
|
104
136
|
@_explicitize_args
|
|
105
|
-
def __init__(
|
|
137
|
+
def __init__(
|
|
138
|
+
self,
|
|
139
|
+
children: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
140
|
+
id: typing.Optional[str] = None,
|
|
141
|
+
key: typing.Optional[str] = None,
|
|
142
|
+
style: typing.Optional[dict] = None,
|
|
143
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
144
|
+
styles: typing.Optional["Styles"] = None,
|
|
145
|
+
classNames: typing.Optional["ClassNames"] = None,
|
|
146
|
+
color: typing.Optional[str] = None,
|
|
147
|
+
count: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
148
|
+
dot: typing.Optional[bool] = None,
|
|
149
|
+
showZero: typing.Optional[bool] = None,
|
|
150
|
+
overflowCount: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
151
|
+
offset: typing.Optional[typing.Sequence[typing.Union[int, float, numbers.Number]]] = None,
|
|
152
|
+
status: typing.Optional[Literal["success", "processing", "default", "error", "warning"]] = None,
|
|
153
|
+
text: typing.Optional[str] = None,
|
|
154
|
+
title: typing.Optional[str] = None,
|
|
155
|
+
size: typing.Optional[Literal["default", "small"]] = None,
|
|
156
|
+
nClicks: typing.Optional[typing.Union[int, float, numbers.Number]] = None,
|
|
157
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
158
|
+
**kwargs
|
|
159
|
+
):
|
|
106
160
|
self._prop_names = ['id', 'key', 'children', 'style', 'className', 'styles', 'classNames', 'color', 'count', 'dot', 'showZero', 'overflowCount', 'offset', 'status', 'text', 'title', 'size', 'nClicks', 'data-*', 'aria-*', 'loading_state']
|
|
107
161
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
108
162
|
self.available_properties = ['id', 'key', 'children', 'style', 'className', 'styles', 'classNames', 'color', 'count', 'dot', 'showZero', 'overflowCount', 'offset', 'status', 'text', 'title', 'size', 'nClicks', 'data-*', 'aria-*', 'loading_state']
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
import numbers # noqa: F401
|
|
5
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
3
6
|
from dash.development.base_component import Component, _explicitize_args
|
|
7
|
+
try:
|
|
8
|
+
from dash.development.base_component import ComponentType # noqa: F401
|
|
9
|
+
except ImportError:
|
|
10
|
+
ComponentType = typing.TypeVar("ComponentType", bound=Component)
|
|
4
11
|
|
|
5
12
|
|
|
6
13
|
class AntdBreadcrumb(Component):
|
|
@@ -112,8 +119,62 @@ Keyword arguments:
|
|
|
112
119
|
_base_nodes = ['separator', 'children']
|
|
113
120
|
_namespace = 'feffery_antd_components'
|
|
114
121
|
_type = 'AntdBreadcrumb'
|
|
122
|
+
ItemsMenuItems = TypedDict(
|
|
123
|
+
"ItemsMenuItems",
|
|
124
|
+
{
|
|
125
|
+
"title": NotRequired[str],
|
|
126
|
+
"href": NotRequired[str],
|
|
127
|
+
"target": NotRequired[str],
|
|
128
|
+
"disabled": NotRequired[bool],
|
|
129
|
+
"icon": NotRequired[str],
|
|
130
|
+
"iconRenderer": NotRequired[Literal["AntdIcon", "fontawesome"]]
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
Items = TypedDict(
|
|
135
|
+
"Items",
|
|
136
|
+
{
|
|
137
|
+
"title": NotRequired[str],
|
|
138
|
+
"key": NotRequired[str],
|
|
139
|
+
"href": NotRequired[str],
|
|
140
|
+
"target": NotRequired[str],
|
|
141
|
+
"icon": NotRequired[str],
|
|
142
|
+
"iconRenderer": NotRequired[Literal["AntdIcon", "fontawesome"]],
|
|
143
|
+
"menuItems": NotRequired[typing.Sequence["ItemsMenuItems"]]
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
ClickedItem = TypedDict(
|
|
148
|
+
"ClickedItem",
|
|
149
|
+
{
|
|
150
|
+
"itemTitle": NotRequired[str],
|
|
151
|
+
"itemKey": NotRequired[str],
|
|
152
|
+
"timestamp": NotRequired[typing.Union[int, float, numbers.Number]]
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
LoadingState = TypedDict(
|
|
157
|
+
"LoadingState",
|
|
158
|
+
{
|
|
159
|
+
"is_loading": NotRequired[bool],
|
|
160
|
+
"prop_name": NotRequired[str],
|
|
161
|
+
"component_name": NotRequired[str]
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
|
|
115
165
|
@_explicitize_args
|
|
116
|
-
def __init__(
|
|
166
|
+
def __init__(
|
|
167
|
+
self,
|
|
168
|
+
id: typing.Optional[str] = None,
|
|
169
|
+
key: typing.Optional[str] = None,
|
|
170
|
+
style: typing.Optional[dict] = None,
|
|
171
|
+
className: typing.Optional[typing.Union[str, dict]] = None,
|
|
172
|
+
items: typing.Optional[typing.Sequence["Items"]] = None,
|
|
173
|
+
separator: typing.Optional[typing.Union[str, int, float, ComponentType, typing.Sequence[typing.Union[str, int, float, ComponentType]]]] = None,
|
|
174
|
+
clickedItem: typing.Optional["ClickedItem"] = None,
|
|
175
|
+
loading_state: typing.Optional["LoadingState"] = None,
|
|
176
|
+
**kwargs
|
|
177
|
+
):
|
|
117
178
|
self._prop_names = ['id', 'key', 'style', 'className', 'items', 'separator', 'clickedItem', 'data-*', 'aria-*', 'loading_state']
|
|
118
179
|
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
119
180
|
self.available_properties = ['id', 'key', 'style', 'className', 'items', 'separator', 'clickedItem', 'data-*', 'aria-*', 'loading_state']
|