feffery_utils_components 0.0.22 → 0.0.24
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 +3 -0
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyCountDown.py +50 -0
- package/build/lib/feffery_utils_components/FefferyDiv.py +1 -1
- package/build/lib/feffery_utils_components/_imports_.py +2 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +1 -1
- package/build/lib/feffery_utils_components/metadata.json +79 -1
- package/build/lib/feffery_utils_components/package-info.json +2 -1
- package/feffery_utils_components/FefferyDiv.py +1 -1
- package/feffery_utils_components/FefferyExternalJs.py +48 -0
- package/feffery_utils_components/FefferySortableContainer.py +54 -0
- package/feffery_utils_components/FefferySortableItem.py +50 -0
- package/feffery_utils_components/_imports_.py +6 -0
- package/feffery_utils_components/feffery_utils_components.min.js +3 -3
- package/feffery_utils_components/metadata.json +255 -1
- package/feffery_utils_components/package-info.json +4 -1
- package/package.json +4 -1
- package/src/FefferyUtilsComponents.jl +6 -3
- package/src/jl/''_fefferydiv.jl +1 -1
- package/src/jl/''_fefferyexternaljs.jl +25 -0
- package/src/jl/''_fefferysortablecontainer.jl +34 -0
- package/src/jl/''_fefferysortableitem.jl +32 -0
- package/src/lib/components/dom/FefferyExternalJs.react.js +75 -0
- package/src/lib/components/listeners/FefferyDiv.react.js +11 -2
- package/src/lib/components/sortable/FefferySortableContainer.react.js +100 -0
- package/src/lib/components/sortable/FefferySortableItem.react.js +61 -0
- package/src/lib/components/styles.css +4 -0
- package/src/lib/index.js +7 -1
- package/tests/FefferyDivHoverTest/app.py +5 -1
- package/tests/SortableTest/app.py +46 -0
|
@@ -884,6 +884,76 @@
|
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
},
|
|
887
|
+
"src/lib/components/FefferyCountDown.react.js": {
|
|
888
|
+
"description": "",
|
|
889
|
+
"displayName": "FefferyCountDown",
|
|
890
|
+
"methods": [],
|
|
891
|
+
"props": {
|
|
892
|
+
"id": {
|
|
893
|
+
"type": {
|
|
894
|
+
"name": "string"
|
|
895
|
+
},
|
|
896
|
+
"required": false,
|
|
897
|
+
"description": ""
|
|
898
|
+
},
|
|
899
|
+
"delay": {
|
|
900
|
+
"type": {
|
|
901
|
+
"name": "number"
|
|
902
|
+
},
|
|
903
|
+
"required": false,
|
|
904
|
+
"description": ""
|
|
905
|
+
},
|
|
906
|
+
"interval": {
|
|
907
|
+
"type": {
|
|
908
|
+
"name": "number"
|
|
909
|
+
},
|
|
910
|
+
"required": false,
|
|
911
|
+
"description": "",
|
|
912
|
+
"defaultValue": {
|
|
913
|
+
"value": "1",
|
|
914
|
+
"computed": false
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"countdown": {
|
|
918
|
+
"type": {
|
|
919
|
+
"name": "number"
|
|
920
|
+
},
|
|
921
|
+
"required": false,
|
|
922
|
+
"description": ""
|
|
923
|
+
},
|
|
924
|
+
"setProps": {
|
|
925
|
+
"type": {
|
|
926
|
+
"name": "func"
|
|
927
|
+
},
|
|
928
|
+
"required": false,
|
|
929
|
+
"description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
|
|
930
|
+
},
|
|
931
|
+
"loading_state": {
|
|
932
|
+
"type": {
|
|
933
|
+
"name": "shape",
|
|
934
|
+
"value": {
|
|
935
|
+
"is_loading": {
|
|
936
|
+
"name": "bool",
|
|
937
|
+
"description": "Determines if the component is loading or not",
|
|
938
|
+
"required": false
|
|
939
|
+
},
|
|
940
|
+
"prop_name": {
|
|
941
|
+
"name": "string",
|
|
942
|
+
"description": "Holds which property is loading",
|
|
943
|
+
"required": false
|
|
944
|
+
},
|
|
945
|
+
"component_name": {
|
|
946
|
+
"name": "string",
|
|
947
|
+
"description": "Holds the name of the component that is loading",
|
|
948
|
+
"required": false
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
"required": false,
|
|
953
|
+
"description": ""
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
},
|
|
887
957
|
"src/lib/components/FefferyExecuteJs.react.js": {
|
|
888
958
|
"description": "",
|
|
889
959
|
"displayName": "FefferyExecuteJs",
|
|
@@ -2886,7 +2956,15 @@
|
|
|
2886
2956
|
},
|
|
2887
2957
|
"className": {
|
|
2888
2958
|
"type": {
|
|
2889
|
-
"name": "
|
|
2959
|
+
"name": "union",
|
|
2960
|
+
"value": [
|
|
2961
|
+
{
|
|
2962
|
+
"name": "string"
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
"name": "object"
|
|
2966
|
+
}
|
|
2967
|
+
]
|
|
2890
2968
|
},
|
|
2891
2969
|
"required": false,
|
|
2892
2970
|
"description": ""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "feffery_utils_components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "Build more utility components for Plotly Dash.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@uiw/react-color-wheel": "^1.1.0",
|
|
28
28
|
"ahooks": "^3.7.0",
|
|
29
29
|
"byte-guide": "^1.0.7",
|
|
30
|
+
"lodash": "^4.17.21",
|
|
30
31
|
"ninja-keys": "^1.1.12",
|
|
31
32
|
"nprogress": "^0.2.0",
|
|
32
33
|
"ramda": "^0.26.1",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyExternalJs(Component):
|
|
7
|
+
"""A FefferyExternalJs component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- jsUrl (string; default '')
|
|
15
|
+
|
|
16
|
+
- loading_state (dict; optional)
|
|
17
|
+
|
|
18
|
+
`loading_state` is a dict with keys:
|
|
19
|
+
|
|
20
|
+
- component_name (string; optional):
|
|
21
|
+
Holds the name of the component that is loading.
|
|
22
|
+
|
|
23
|
+
- is_loading (boolean; optional):
|
|
24
|
+
Determines if the component is loading or not.
|
|
25
|
+
|
|
26
|
+
- prop_name (string; optional):
|
|
27
|
+
Holds which property is loading.
|
|
28
|
+
|
|
29
|
+
- recentlyStatus (a value equal to: 'unset', 'loading', 'ready', 'error'; optional)"""
|
|
30
|
+
_children_props = []
|
|
31
|
+
_base_nodes = ['children']
|
|
32
|
+
_namespace = 'feffery_utils_components'
|
|
33
|
+
_type = 'FefferyExternalJs'
|
|
34
|
+
@_explicitize_args
|
|
35
|
+
def __init__(self, id=Component.UNDEFINED, jsUrl=Component.UNDEFINED, recentlyStatus=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
36
|
+
self._prop_names = ['id', 'jsUrl', 'loading_state', 'recentlyStatus']
|
|
37
|
+
self._valid_wildcard_attributes = []
|
|
38
|
+
self.available_properties = ['id', 'jsUrl', 'loading_state', 'recentlyStatus']
|
|
39
|
+
self.available_wildcard_properties = []
|
|
40
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
41
|
+
_locals = locals()
|
|
42
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
43
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
44
|
+
for k in []:
|
|
45
|
+
if k not in args:
|
|
46
|
+
raise TypeError(
|
|
47
|
+
'Required argument `' + k + '` was not specified.')
|
|
48
|
+
super(FefferyExternalJs, self).__init__(**args)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferySortableContainer(Component):
|
|
7
|
+
"""A FefferySortableContainer component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- children (a list of or a singular dash component, string or number; optional)
|
|
13
|
+
|
|
14
|
+
- id (string; optional)
|
|
15
|
+
|
|
16
|
+
- className (string; optional)
|
|
17
|
+
|
|
18
|
+
- helperClassName (string | dict; default 'sortable-helper')
|
|
19
|
+
|
|
20
|
+
- loading_state (dict; optional)
|
|
21
|
+
|
|
22
|
+
`loading_state` is a dict with keys:
|
|
23
|
+
|
|
24
|
+
- component_name (string; optional):
|
|
25
|
+
Holds the name of the component that is loading.
|
|
26
|
+
|
|
27
|
+
- is_loading (boolean; optional):
|
|
28
|
+
Determines if the component is loading or not.
|
|
29
|
+
|
|
30
|
+
- prop_name (string; optional):
|
|
31
|
+
Holds which property is loading.
|
|
32
|
+
|
|
33
|
+
- orders (list of numbers; optional)
|
|
34
|
+
|
|
35
|
+
- style (dict; optional)"""
|
|
36
|
+
_children_props = []
|
|
37
|
+
_base_nodes = ['children']
|
|
38
|
+
_namespace = 'feffery_utils_components'
|
|
39
|
+
_type = 'FefferySortableContainer'
|
|
40
|
+
@_explicitize_args
|
|
41
|
+
def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, helperClassName=Component.UNDEFINED, orders=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
42
|
+
self._prop_names = ['children', 'id', 'className', 'helperClassName', 'loading_state', 'orders', 'style']
|
|
43
|
+
self._valid_wildcard_attributes = []
|
|
44
|
+
self.available_properties = ['children', 'id', 'className', 'helperClassName', 'loading_state', 'orders', 'style']
|
|
45
|
+
self.available_wildcard_properties = []
|
|
46
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
47
|
+
_locals = locals()
|
|
48
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
49
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
50
|
+
for k in []:
|
|
51
|
+
if k not in args:
|
|
52
|
+
raise TypeError(
|
|
53
|
+
'Required argument `' + k + '` was not specified.')
|
|
54
|
+
super(FefferySortableContainer, self).__init__(children=children, **args)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferySortableItem(Component):
|
|
7
|
+
"""A FefferySortableItem component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- children (a list of or a singular dash component, string or number; optional)
|
|
13
|
+
|
|
14
|
+
- id (string; optional)
|
|
15
|
+
|
|
16
|
+
- className (string; optional)
|
|
17
|
+
|
|
18
|
+
- loading_state (dict; optional)
|
|
19
|
+
|
|
20
|
+
`loading_state` is a dict with keys:
|
|
21
|
+
|
|
22
|
+
- component_name (string; optional):
|
|
23
|
+
Holds the name of the component that is loading.
|
|
24
|
+
|
|
25
|
+
- is_loading (boolean; optional):
|
|
26
|
+
Determines if the component is loading or not.
|
|
27
|
+
|
|
28
|
+
- prop_name (string; optional):
|
|
29
|
+
Holds which property is loading.
|
|
30
|
+
|
|
31
|
+
- style (dict; optional)"""
|
|
32
|
+
_children_props = []
|
|
33
|
+
_base_nodes = ['children']
|
|
34
|
+
_namespace = 'feffery_utils_components'
|
|
35
|
+
_type = 'FefferySortableItem'
|
|
36
|
+
@_explicitize_args
|
|
37
|
+
def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
38
|
+
self._prop_names = ['children', 'id', 'className', 'loading_state', 'style']
|
|
39
|
+
self._valid_wildcard_attributes = []
|
|
40
|
+
self.available_properties = ['children', 'id', 'className', 'loading_state', 'style']
|
|
41
|
+
self.available_wildcard_properties = []
|
|
42
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
43
|
+
_locals = locals()
|
|
44
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
45
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
46
|
+
for k in []:
|
|
47
|
+
if k not in args:
|
|
48
|
+
raise TypeError(
|
|
49
|
+
'Required argument `' + k + '` was not specified.')
|
|
50
|
+
super(FefferySortableItem, self).__init__(children=children, **args)
|
|
@@ -6,6 +6,7 @@ from .FefferyRgbColorPicker import FefferyRgbColorPicker
|
|
|
6
6
|
from .FefferyTwitterColorPicker import FefferyTwitterColorPicker
|
|
7
7
|
from .FefferyWheelColorPicker import FefferyWheelColorPicker
|
|
8
8
|
from .FefferyExternalCss import FefferyExternalCss
|
|
9
|
+
from .FefferyExternalJs import FefferyExternalJs
|
|
9
10
|
from .FefferySetTitle import FefferySetTitle
|
|
10
11
|
from .FefferyCaptcha import FefferyCaptcha
|
|
11
12
|
from .FefferyCountDown import FefferyCountDown
|
|
@@ -30,6 +31,8 @@ from .FefferyInViewport import FefferyInViewport
|
|
|
30
31
|
from .FefferyKeyPress import FefferyKeyPress
|
|
31
32
|
from .FefferyResponsive import FefferyResponsive
|
|
32
33
|
from .FefferyWindowSize import FefferyWindowSize
|
|
34
|
+
from .FefferySortableContainer import FefferySortableContainer
|
|
35
|
+
from .FefferySortableItem import FefferySortableItem
|
|
33
36
|
from .FefferySplit import FefferySplit
|
|
34
37
|
from .FefferySplitPane import FefferySplitPane
|
|
35
38
|
|
|
@@ -42,6 +45,7 @@ __all__ = [
|
|
|
42
45
|
"FefferyTwitterColorPicker",
|
|
43
46
|
"FefferyWheelColorPicker",
|
|
44
47
|
"FefferyExternalCss",
|
|
48
|
+
"FefferyExternalJs",
|
|
45
49
|
"FefferySetTitle",
|
|
46
50
|
"FefferyCaptcha",
|
|
47
51
|
"FefferyCountDown",
|
|
@@ -66,6 +70,8 @@ __all__ = [
|
|
|
66
70
|
"FefferyKeyPress",
|
|
67
71
|
"FefferyResponsive",
|
|
68
72
|
"FefferyWindowSize",
|
|
73
|
+
"FefferySortableContainer",
|
|
74
|
+
"FefferySortableItem",
|
|
69
75
|
"FefferySplit",
|
|
70
76
|
"FefferySplitPane"
|
|
71
77
|
]
|