feffery_antd_components 0.1.8 → 0.1.9
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/NAMESPACE +1 -0
- package/Project.toml +1 -1
- package/feffery_antd_components/AntdPopconfirm.py +5 -3
- package/feffery_antd_components/AntdRadioGroup.py +3 -3
- package/{build/lib/feffery_antd_components/AntdCheckboxGroup.py → feffery_antd_components/AntdSegmented.py} +17 -11
- package/feffery_antd_components/AntdSwitch.py +5 -3
- package/feffery_antd_components/_imports_.py +2 -0
- package/feffery_antd_components/feffery_antd_components.min.js +143 -158
- package/feffery_antd_components/metadata.json +259 -4
- package/feffery_antd_components/package-info.json +3 -3
- package/package.json +3 -3
- package/src/FefferyAntdComponents.jl +4 -3
- package/src/jl/'feffery'_antdpopconfirm.jl +2 -1
- package/src/jl/'feffery'_antdradiogroup.jl +3 -3
- package/src/jl/'feffery'_antdsegmented.jl +48 -0
- package/src/jl/'feffery'_antdswitch.jl +2 -1
- package/src/lib/components/AntdMessage.react.js +2 -0
- package/src/lib/components/AntdPopconfirm.react.js +7 -2
- package/src/lib/components/AntdRadioGroup.react.js +10 -4
- package/src/lib/components/AntdSegmented.react.js +167 -0
- package/src/lib/components/AntdSwitch.react.js +9 -1
- package/src/lib/components/tabs/AntdTabs.react.js +0 -1
- package/src/lib/index.js +3 -1
- package/usage.py +28 -115
- package/build/lib/feffery_antd_components/AntdAffix.py +0 -54
- package/build/lib/feffery_antd_components/AntdAlert.py +0 -58
- package/build/lib/feffery_antd_components/AntdAnchor.py +0 -60
- package/build/lib/feffery_antd_components/AntdAvatar.py +0 -79
- package/build/lib/feffery_antd_components/AntdBackTop.py +0 -52
- package/build/lib/feffery_antd_components/AntdBadge.py +0 -70
- package/build/lib/feffery_antd_components/AntdBreadcrumb.py +0 -74
- package/build/lib/feffery_antd_components/AntdButton.py +0 -68
- package/build/lib/feffery_antd_components/AntdCalendar.py +0 -75
- package/build/lib/feffery_antd_components/AntdCard.py +0 -86
- package/build/lib/feffery_antd_components/AntdCardGrid.py +0 -52
- package/build/lib/feffery_antd_components/AntdCarousel.py +0 -56
- package/build/lib/feffery_antd_components/AntdCascader.py +0 -93
- package/build/lib/feffery_antd_components/AntdCheckbox.py +0 -71
- package/build/lib/feffery_antd_components/AntdCol.py +0 -146
- package/build/lib/feffery_antd_components/AntdCollapse.py +0 -79
- package/build/lib/feffery_antd_components/AntdComment.py +0 -88
- package/build/lib/feffery_antd_components/AntdContent.py +0 -50
- package/build/lib/feffery_antd_components/AntdCountdown.py +0 -72
- package/build/lib/feffery_antd_components/AntdDatePicker.py +0 -95
- package/build/lib/feffery_antd_components/AntdDateRangePicker.py +0 -91
- package/build/lib/feffery_antd_components/AntdDescriptionItem.py +0 -58
- package/build/lib/feffery_antd_components/AntdDescriptions.py +0 -76
- package/build/lib/feffery_antd_components/AntdDivider.py +0 -62
- package/build/lib/feffery_antd_components/AntdDraggerUpload.py +0 -84
- package/build/lib/feffery_antd_components/AntdDrawer.py +0 -72
- package/build/lib/feffery_antd_components/AntdDropdown.py +0 -84
- package/build/lib/feffery_antd_components/AntdEmpty.py +0 -54
- package/build/lib/feffery_antd_components/AntdFooter.py +0 -50
- package/build/lib/feffery_antd_components/AntdForm.py +0 -72
- package/build/lib/feffery_antd_components/AntdFormItem.py +0 -84
- package/build/lib/feffery_antd_components/AntdHeader.py +0 -50
- package/build/lib/feffery_antd_components/AntdIcon.py +0 -48
- package/build/lib/feffery_antd_components/AntdImage.py +0 -62
- package/build/lib/feffery_antd_components/AntdInput.py +0 -101
- package/build/lib/feffery_antd_components/AntdInputNumber.py +0 -101
- package/build/lib/feffery_antd_components/AntdLayout.py +0 -50
- package/build/lib/feffery_antd_components/AntdMentions.py +0 -76
- package/build/lib/feffery_antd_components/AntdMenu.py +0 -81
- package/build/lib/feffery_antd_components/AntdMessage.py +0 -56
- package/build/lib/feffery_antd_components/AntdModal.py +0 -88
- package/build/lib/feffery_antd_components/AntdNotification.py +0 -60
- package/build/lib/feffery_antd_components/AntdPageHeader.py +0 -62
- package/build/lib/feffery_antd_components/AntdPagination.py +0 -95
- package/build/lib/feffery_antd_components/AntdParagraph.py +0 -70
- package/build/lib/feffery_antd_components/AntdPasteImage.py +0 -52
- package/build/lib/feffery_antd_components/AntdPopconfirm.py +0 -80
- package/build/lib/feffery_antd_components/AntdPopover.py +0 -74
- package/build/lib/feffery_antd_components/AntdProgress.py +0 -88
- package/build/lib/feffery_antd_components/AntdRadio.py +0 -54
- package/build/lib/feffery_antd_components/AntdRadioGroup.py +0 -89
- package/build/lib/feffery_antd_components/AntdRate.py +0 -60
- package/build/lib/feffery_antd_components/AntdResult.py +0 -52
- package/build/lib/feffery_antd_components/AntdRibbon.py +0 -54
- package/build/lib/feffery_antd_components/AntdRow.py +0 -72
- package/build/lib/feffery_antd_components/AntdSelect.py +0 -121
- package/build/lib/feffery_antd_components/AntdSider.py +0 -68
- package/build/lib/feffery_antd_components/AntdSkeleton.py +0 -86
- package/build/lib/feffery_antd_components/AntdSlider.py +0 -68
- package/build/lib/feffery_antd_components/AntdSpace.py +0 -60
- package/build/lib/feffery_antd_components/AntdSpin.py +0 -68
- package/build/lib/feffery_antd_components/AntdStatistic.py +0 -74
- package/build/lib/feffery_antd_components/AntdSteps.py +0 -72
- package/build/lib/feffery_antd_components/AntdSwitch.py +0 -75
- package/build/lib/feffery_antd_components/AntdTabPane.py +0 -66
- package/build/lib/feffery_antd_components/AntdTable.py +0 -264
- package/build/lib/feffery_antd_components/AntdTabs.py +0 -81
- package/build/lib/feffery_antd_components/AntdTag.py +0 -54
- package/build/lib/feffery_antd_components/AntdTestLink.py +0 -58
- package/build/lib/feffery_antd_components/AntdText.py +0 -72
- package/build/lib/feffery_antd_components/AntdTimePicker.py +0 -95
- package/build/lib/feffery_antd_components/AntdTimeRangePicker.py +0 -95
- package/build/lib/feffery_antd_components/AntdTimeline.py +0 -68
- package/build/lib/feffery_antd_components/AntdTitle.py +0 -74
- package/build/lib/feffery_antd_components/AntdTooltip.py +0 -64
- package/build/lib/feffery_antd_components/AntdTransfer.py +0 -99
- package/build/lib/feffery_antd_components/AntdTree.py +0 -103
- package/build/lib/feffery_antd_components/AntdTreeSelect.py +0 -107
- package/build/lib/feffery_antd_components/AntdTypography.py +0 -50
- package/build/lib/feffery_antd_components/AntdUpload.py +0 -92
- package/build/lib/feffery_antd_components/AntdWatermark.py +0 -64
- package/build/lib/feffery_antd_components/Link.py +0 -58
- package/build/lib/feffery_antd_components/__init__.py +0 -53
- package/build/lib/feffery_antd_components/_imports_.py +0 -161
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +0 -344
- package/build/lib/feffery_antd_components/metadata.json +0 -15596
- package/build/lib/feffery_antd_components/package-info.json +0 -81
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
package/Project.toml
CHANGED
|
@@ -25,6 +25,8 @@ Keyword arguments:
|
|
|
25
25
|
|
|
26
26
|
- confirmCounts (number; default 0)
|
|
27
27
|
|
|
28
|
+
- containerStrategy (a value equal to: 'parent', 'body'; default 'parent')
|
|
29
|
+
|
|
28
30
|
- disabled (boolean; optional)
|
|
29
31
|
|
|
30
32
|
- loading_state (dict; optional)
|
|
@@ -62,12 +64,12 @@ Keyword arguments:
|
|
|
62
64
|
|
|
63
65
|
- trigger (a value equal to: 'hover', 'focus', 'click' | list of a value equal to: 'hover', 'focus', 'click's; optional)"""
|
|
64
66
|
@_explicitize_args
|
|
65
|
-
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, title=Component.UNDEFINED, disabled=Component.UNDEFINED, placement=Component.UNDEFINED, mouseEnterDelay=Component.UNDEFINED, mouseLeaveDelay=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, overlayInnerStyle=Component.UNDEFINED, okText=Component.UNDEFINED, okButtonProps=Component.UNDEFINED, cancelText=Component.UNDEFINED, cancelButtonProps=Component.UNDEFINED, confirmCounts=Component.UNDEFINED, cancelCounts=Component.UNDEFINED, trigger=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
66
|
-
self._prop_names = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
67
|
+
def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, title=Component.UNDEFINED, disabled=Component.UNDEFINED, placement=Component.UNDEFINED, mouseEnterDelay=Component.UNDEFINED, mouseLeaveDelay=Component.UNDEFINED, overlayStyle=Component.UNDEFINED, overlayInnerStyle=Component.UNDEFINED, okText=Component.UNDEFINED, okButtonProps=Component.UNDEFINED, cancelText=Component.UNDEFINED, cancelButtonProps=Component.UNDEFINED, confirmCounts=Component.UNDEFINED, cancelCounts=Component.UNDEFINED, containerStrategy=Component.UNDEFINED, trigger=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
68
|
+
self._prop_names = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'containerStrategy', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
67
69
|
self._type = 'AntdPopconfirm'
|
|
68
70
|
self._namespace = 'feffery_antd_components'
|
|
69
71
|
self._valid_wildcard_attributes = []
|
|
70
|
-
self.available_properties = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
72
|
+
self.available_properties = ['children', 'id', 'cancelButtonProps', 'cancelCounts', 'cancelText', 'className', 'confirmCounts', 'containerStrategy', 'disabled', 'loading_state', 'locale', 'mouseEnterDelay', 'mouseLeaveDelay', 'okButtonProps', 'okText', 'overlayInnerStyle', 'overlayStyle', 'placement', 'style', 'title', 'trigger']
|
|
71
73
|
self.available_wildcard_properties = []
|
|
72
74
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
73
75
|
_locals = locals()
|
|
@@ -15,7 +15,7 @@ Keyword arguments:
|
|
|
15
15
|
|
|
16
16
|
- className (string; optional)
|
|
17
17
|
|
|
18
|
-
- defaultValue (string; optional)
|
|
18
|
+
- defaultValue (string | number; optional)
|
|
19
19
|
|
|
20
20
|
- direction (a value equal to: 'horizontal', 'vertical'; default 'horizontal')
|
|
21
21
|
|
|
@@ -42,9 +42,9 @@ Keyword arguments:
|
|
|
42
42
|
|
|
43
43
|
- disabled (boolean; optional)
|
|
44
44
|
|
|
45
|
-
- label (string;
|
|
45
|
+
- label (string; optional)
|
|
46
46
|
|
|
47
|
-
- value (string;
|
|
47
|
+
- value (string | number; optional)
|
|
48
48
|
|
|
49
49
|
- persisted_props (list of a value equal to: 'value's; default ['value']):
|
|
50
50
|
Properties whose user interactions will persist after refreshing
|
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
from dash.development.base_component import Component, _explicitize_args
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
class
|
|
7
|
-
"""An
|
|
6
|
+
class AntdSegmented(Component):
|
|
7
|
+
"""An AntdSegmented component.
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
|
|
12
12
|
- id (string; optional)
|
|
13
13
|
|
|
14
|
+
- block (boolean; optional)
|
|
15
|
+
|
|
14
16
|
- className (string; optional)
|
|
15
17
|
|
|
18
|
+
- defaultValue (string | number; optional)
|
|
19
|
+
|
|
16
20
|
- disabled (boolean; optional)
|
|
17
21
|
|
|
18
22
|
- loading_state (dict; optional)
|
|
@@ -36,9 +40,9 @@ Keyword arguments:
|
|
|
36
40
|
|
|
37
41
|
- label (string; optional)
|
|
38
42
|
|
|
39
|
-
- value (string; optional)
|
|
43
|
+
- value (string | number; optional)
|
|
40
44
|
|
|
41
|
-
- persisted_props (list of a value equal to: 'value's;
|
|
45
|
+
- persisted_props (list of a value equal to: 'value's; optional):
|
|
42
46
|
Properties whose user interactions will persist after refreshing
|
|
43
47
|
the component or the page. Since only `value` is allowed this
|
|
44
48
|
prop can normally be ignored.
|
|
@@ -51,22 +55,24 @@ Keyword arguments:
|
|
|
51
55
|
change, as long as the new `value` also matches what was given
|
|
52
56
|
originally. Used in conjunction with `persistence_type`.
|
|
53
57
|
|
|
54
|
-
- persistence_type (a value equal to: 'local', 'session', 'memory';
|
|
58
|
+
- persistence_type (a value equal to: 'local', 'session', 'memory'; optional):
|
|
55
59
|
Where persisted user changes will be stored: memory: only kept in
|
|
56
60
|
memory, reset on page refresh. local: window.localStorage, data
|
|
57
61
|
is kept after the browser quit. session: window.sessionStorage,
|
|
58
62
|
data is cleared once the browser quit.
|
|
59
63
|
|
|
64
|
+
- size (a value equal to: 'large', 'middle', 'small'; optional)
|
|
65
|
+
|
|
60
66
|
- style (dict; optional)
|
|
61
67
|
|
|
62
|
-
- value (
|
|
68
|
+
- value (string | number; optional)"""
|
|
63
69
|
@_explicitize_args
|
|
64
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED,
|
|
65
|
-
self._prop_names = ['id', 'className', 'disabled', 'loading_state', 'options', 'persisted_props', 'persistence', 'persistence_type', 'style', 'value']
|
|
66
|
-
self._type = '
|
|
70
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, block=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
71
|
+
self._prop_names = ['id', 'block', 'className', 'defaultValue', 'disabled', 'loading_state', 'options', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
72
|
+
self._type = 'AntdSegmented'
|
|
67
73
|
self._namespace = 'feffery_antd_components'
|
|
68
74
|
self._valid_wildcard_attributes = []
|
|
69
|
-
self.available_properties = ['id', 'className', 'disabled', 'loading_state', 'options', 'persisted_props', 'persistence', 'persistence_type', 'style', 'value']
|
|
75
|
+
self.available_properties = ['id', 'block', 'className', 'defaultValue', 'disabled', 'loading_state', 'options', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
70
76
|
self.available_wildcard_properties = []
|
|
71
77
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
72
78
|
_locals = locals()
|
|
@@ -76,4 +82,4 @@ Keyword arguments:
|
|
|
76
82
|
if k not in args:
|
|
77
83
|
raise TypeError(
|
|
78
84
|
'Required argument `' + k + '` was not specified.')
|
|
79
|
-
super(
|
|
85
|
+
super(AntdSegmented, self).__init__(**args)
|
|
@@ -19,6 +19,8 @@ Keyword arguments:
|
|
|
19
19
|
|
|
20
20
|
- disabled (boolean; optional)
|
|
21
21
|
|
|
22
|
+
- loading (boolean; optional)
|
|
23
|
+
|
|
22
24
|
- loading_state (dict; optional)
|
|
23
25
|
|
|
24
26
|
`loading_state` is a dict with keys:
|
|
@@ -57,12 +59,12 @@ Keyword arguments:
|
|
|
57
59
|
|
|
58
60
|
- unCheckedChildren (string; optional)"""
|
|
59
61
|
@_explicitize_args
|
|
60
|
-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, disabled=Component.UNDEFINED, checked=Component.UNDEFINED, checkedChildren=Component.UNDEFINED, unCheckedChildren=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
61
|
-
self._prop_names = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
62
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, disabled=Component.UNDEFINED, checked=Component.UNDEFINED, checkedChildren=Component.UNDEFINED, unCheckedChildren=Component.UNDEFINED, size=Component.UNDEFINED, loading=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
63
|
+
self._prop_names = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
62
64
|
self._type = 'AntdSwitch'
|
|
63
65
|
self._namespace = 'feffery_antd_components'
|
|
64
66
|
self._valid_wildcard_attributes = []
|
|
65
|
-
self.available_properties = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
67
|
+
self.available_properties = ['id', 'checked', 'checkedChildren', 'className', 'disabled', 'loading', 'loading_state', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'unCheckedChildren']
|
|
66
68
|
self.available_wildcard_properties = []
|
|
67
69
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
68
70
|
_locals = locals()
|
|
@@ -40,6 +40,7 @@ from .AntdRadioGroup import AntdRadioGroup
|
|
|
40
40
|
from .AntdRate import AntdRate
|
|
41
41
|
from .AntdResult import AntdResult
|
|
42
42
|
from .AntdRibbon import AntdRibbon
|
|
43
|
+
from .AntdSegmented import AntdSegmented
|
|
43
44
|
from .AntdSelect import AntdSelect
|
|
44
45
|
from .AntdSkeleton import AntdSkeleton
|
|
45
46
|
from .AntdSlider import AntdSlider
|
|
@@ -121,6 +122,7 @@ __all__ = [
|
|
|
121
122
|
"AntdRate",
|
|
122
123
|
"AntdResult",
|
|
123
124
|
"AntdRibbon",
|
|
125
|
+
"AntdSegmented",
|
|
124
126
|
"AntdSelect",
|
|
125
127
|
"AntdSkeleton",
|
|
126
128
|
"AntdSlider",
|