feffery_utils_components 0.0.31 → 0.0.32
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 +6 -4
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyCssVar.py +43 -0
- package/build/lib/feffery_utils_components/FefferyEyeDropper.py +45 -0
- package/build/lib/feffery_utils_components/_imports_.py +4 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/build/lib/feffery_utils_components/metadata.json +115 -0
- package/build/lib/feffery_utils_components/package-info.json +3 -2
- package/feffery_utils_components/FefferyDiv.py +5 -3
- package/feffery_utils_components/FefferyLazyLoadImage.py +53 -0
- package/feffery_utils_components/FefferySticky.py +51 -0
- package/feffery_utils_components/_imports_.py +12 -8
- package/feffery_utils_components/feffery_utils_components.min.js +8 -8
- package/feffery_utils_components/metadata.json +573 -333
- package/feffery_utils_components/package-info.json +3 -1
- package/package.json +3 -1
- package/src/FefferyUtilsComponents.jl +9 -7
- package/src/jl/''_fefferydiv.jl +2 -1
- package/src/jl/''_fefferylazyloadimage.jl +29 -0
- package/src/jl/''_fefferysticky.jl +34 -0
- package/src/lib/components/FefferyDiv.react.js +16 -2
- package/src/lib/components/{dom/FefferyExternalCss.react.js → FefferyExternalCss.react.js} +0 -0
- package/src/lib/components/{dom/FefferyExternalJs.react.js → FefferyExternalJs.react.js} +0 -0
- package/src/lib/components/FefferyLazyLoadImage.react.js +92 -0
- package/src/lib/components/{dom/FefferyRawHTML.react.js → FefferyRawHTML.react.js} +0 -0
- package/src/lib/components/{dom/FefferySetTitle.react.js → FefferySetTitle.react.js} +0 -0
- package/src/lib/components/FefferySticky.react.js +93 -0
- package/src/lib/components/styles.css +13 -0
- package/src/lib/index.js +9 -5
- package/tests/FefferyLazyLoadImageTest/app.py +33 -0
- package/tests/FefferyStickyTest/app.py +41 -0
- package/usage.py +0 -47
|
@@ -1087,6 +1087,58 @@
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
},
|
|
1090
|
+
"src/lib/components/FefferyCssVar.react.js": {
|
|
1091
|
+
"description": "",
|
|
1092
|
+
"displayName": "FefferyCssVar",
|
|
1093
|
+
"methods": [],
|
|
1094
|
+
"props": {
|
|
1095
|
+
"id": {
|
|
1096
|
+
"type": {
|
|
1097
|
+
"name": "string"
|
|
1098
|
+
},
|
|
1099
|
+
"required": false,
|
|
1100
|
+
"description": ""
|
|
1101
|
+
},
|
|
1102
|
+
"cssVars": {
|
|
1103
|
+
"type": {
|
|
1104
|
+
"name": "object"
|
|
1105
|
+
},
|
|
1106
|
+
"required": false,
|
|
1107
|
+
"description": ""
|
|
1108
|
+
},
|
|
1109
|
+
"loading_state": {
|
|
1110
|
+
"type": {
|
|
1111
|
+
"name": "shape",
|
|
1112
|
+
"value": {
|
|
1113
|
+
"is_loading": {
|
|
1114
|
+
"name": "bool",
|
|
1115
|
+
"description": "Determines if the component is loading or not",
|
|
1116
|
+
"required": false
|
|
1117
|
+
},
|
|
1118
|
+
"prop_name": {
|
|
1119
|
+
"name": "string",
|
|
1120
|
+
"description": "Holds which property is loading",
|
|
1121
|
+
"required": false
|
|
1122
|
+
},
|
|
1123
|
+
"component_name": {
|
|
1124
|
+
"name": "string",
|
|
1125
|
+
"description": "Holds the name of the component that is loading",
|
|
1126
|
+
"required": false
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
"required": false,
|
|
1131
|
+
"description": ""
|
|
1132
|
+
},
|
|
1133
|
+
"setProps": {
|
|
1134
|
+
"type": {
|
|
1135
|
+
"name": "func"
|
|
1136
|
+
},
|
|
1137
|
+
"required": false,
|
|
1138
|
+
"description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1090
1142
|
"src/lib/components/FefferyDiv.react.js": {
|
|
1091
1143
|
"description": "",
|
|
1092
1144
|
"displayName": "FefferyDiv",
|
|
@@ -1639,6 +1691,69 @@
|
|
|
1639
1691
|
}
|
|
1640
1692
|
}
|
|
1641
1693
|
},
|
|
1694
|
+
"src/lib/components/FefferyEyeDropper.react.js": {
|
|
1695
|
+
"description": "",
|
|
1696
|
+
"displayName": "FefferyEyeDropper",
|
|
1697
|
+
"methods": [],
|
|
1698
|
+
"props": {
|
|
1699
|
+
"id": {
|
|
1700
|
+
"type": {
|
|
1701
|
+
"name": "string"
|
|
1702
|
+
},
|
|
1703
|
+
"required": false,
|
|
1704
|
+
"description": ""
|
|
1705
|
+
},
|
|
1706
|
+
"enable": {
|
|
1707
|
+
"type": {
|
|
1708
|
+
"name": "bool"
|
|
1709
|
+
},
|
|
1710
|
+
"required": false,
|
|
1711
|
+
"description": "",
|
|
1712
|
+
"defaultValue": {
|
|
1713
|
+
"value": "false",
|
|
1714
|
+
"computed": false
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"color": {
|
|
1718
|
+
"type": {
|
|
1719
|
+
"name": "string"
|
|
1720
|
+
},
|
|
1721
|
+
"required": false,
|
|
1722
|
+
"description": ""
|
|
1723
|
+
},
|
|
1724
|
+
"loading_state": {
|
|
1725
|
+
"type": {
|
|
1726
|
+
"name": "shape",
|
|
1727
|
+
"value": {
|
|
1728
|
+
"is_loading": {
|
|
1729
|
+
"name": "bool",
|
|
1730
|
+
"description": "Determines if the component is loading or not",
|
|
1731
|
+
"required": false
|
|
1732
|
+
},
|
|
1733
|
+
"prop_name": {
|
|
1734
|
+
"name": "string",
|
|
1735
|
+
"description": "Holds which property is loading",
|
|
1736
|
+
"required": false
|
|
1737
|
+
},
|
|
1738
|
+
"component_name": {
|
|
1739
|
+
"name": "string",
|
|
1740
|
+
"description": "Holds the name of the component that is loading",
|
|
1741
|
+
"required": false
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
"required": false,
|
|
1746
|
+
"description": ""
|
|
1747
|
+
},
|
|
1748
|
+
"setProps": {
|
|
1749
|
+
"type": {
|
|
1750
|
+
"name": "func"
|
|
1751
|
+
},
|
|
1752
|
+
"required": false,
|
|
1753
|
+
"description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1642
1757
|
"src/lib/components/FefferyFancyMessage.js": {
|
|
1643
1758
|
"description": "",
|
|
1644
1759
|
"displayName": "FefferyFancyMessage",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "feffery_utils_components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"description": "Build more utility components for Plotly Dash.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"react-syntax-highlighter": "^15.4.4",
|
|
51
51
|
"react-toastify": "9.0.3",
|
|
52
52
|
"react-use": "^17.4.0",
|
|
53
|
-
"simplebar-react": "^2.3.7"
|
|
53
|
+
"simplebar-react": "^2.3.7",
|
|
54
|
+
"use-eye-dropper": "^1.4.3"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@babel/core": "^7.5.4",
|
|
@@ -80,16 +80,18 @@ Keyword arguments:
|
|
|
80
80
|
|
|
81
81
|
- index (number; optional)
|
|
82
82
|
|
|
83
|
+
- shadow (a value equal to: 'no-shadow', 'hover-shadow', 'always-shadow'; default 'no-shadow')
|
|
84
|
+
|
|
83
85
|
- style (dict; optional)"""
|
|
84
86
|
_children_props = ['appendChild', 'insertChild.element', 'replaceChild.element']
|
|
85
87
|
_base_nodes = ['appendChild', 'children']
|
|
86
88
|
_namespace = 'feffery_utils_components'
|
|
87
89
|
_type = 'FefferyDiv'
|
|
88
90
|
@_explicitize_args
|
|
89
|
-
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, appendChild=Component.UNDEFINED, insertChild=Component.UNDEFINED, replaceChild=Component.UNDEFINED, deleteChildIndex=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, debounceWait=Component.UNDEFINED, mouseEnterCount=Component.UNDEFINED, mouseLeaveCount=Component.UNDEFINED, nClicks=Component.UNDEFINED, nDoubleClicks=Component.UNDEFINED, enableListenContextMenu=Component.UNDEFINED, contextMenuEvent=Component.UNDEFINED, isHovering=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
90
|
-
self._prop_names = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'style']
|
|
91
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, appendChild=Component.UNDEFINED, insertChild=Component.UNDEFINED, replaceChild=Component.UNDEFINED, deleteChildIndex=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, debounceWait=Component.UNDEFINED, mouseEnterCount=Component.UNDEFINED, mouseLeaveCount=Component.UNDEFINED, nClicks=Component.UNDEFINED, nDoubleClicks=Component.UNDEFINED, enableListenContextMenu=Component.UNDEFINED, contextMenuEvent=Component.UNDEFINED, isHovering=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, shadow=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
92
|
+
self._prop_names = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'shadow', 'style']
|
|
91
93
|
self._valid_wildcard_attributes = []
|
|
92
|
-
self.available_properties = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'style']
|
|
94
|
+
self.available_properties = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'shadow', 'style']
|
|
93
95
|
self.available_wildcard_properties = []
|
|
94
96
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
95
97
|
_locals = locals()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyLazyLoadImage(Component):
|
|
7
|
+
"""A FefferyLazyLoadImage component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- alt (string; optional)
|
|
15
|
+
|
|
16
|
+
- height (string | number; 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
|
+
- placeholderSrc (string; optional)
|
|
32
|
+
|
|
33
|
+
- src (string; optional)
|
|
34
|
+
|
|
35
|
+
- threshold (number; default 100)
|
|
36
|
+
|
|
37
|
+
- width (string | number; optional)"""
|
|
38
|
+
_children_props = []
|
|
39
|
+
_base_nodes = ['children']
|
|
40
|
+
_namespace = 'feffery_utils_components'
|
|
41
|
+
_type = 'FefferyLazyLoadImage'
|
|
42
|
+
@_explicitize_args
|
|
43
|
+
def __init__(self, id=Component.UNDEFINED, alt=Component.UNDEFINED, height=Component.UNDEFINED, width=Component.UNDEFINED, src=Component.UNDEFINED, placeholderSrc=Component.UNDEFINED, threshold=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
44
|
+
self._prop_names = ['id', 'alt', 'height', 'loading_state', 'placeholderSrc', 'src', 'threshold', 'width']
|
|
45
|
+
self._valid_wildcard_attributes = []
|
|
46
|
+
self.available_properties = ['id', 'alt', 'height', 'loading_state', 'placeholderSrc', 'src', 'threshold', 'width']
|
|
47
|
+
self.available_wildcard_properties = []
|
|
48
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
49
|
+
_locals = locals()
|
|
50
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
51
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
52
|
+
|
|
53
|
+
super(FefferyLazyLoadImage, self).__init__(**args)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferySticky(Component):
|
|
7
|
+
"""A FefferySticky 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
|
+
- bottomBoundary (number | string; optional)
|
|
17
|
+
|
|
18
|
+
- enabled (boolean; default True)
|
|
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
|
+
- top (number | string; optional)
|
|
34
|
+
|
|
35
|
+
- zIndex (number | string; optional)"""
|
|
36
|
+
_children_props = []
|
|
37
|
+
_base_nodes = ['children']
|
|
38
|
+
_namespace = 'feffery_utils_components'
|
|
39
|
+
_type = 'FefferySticky'
|
|
40
|
+
@_explicitize_args
|
|
41
|
+
def __init__(self, children=None, id=Component.UNDEFINED, enabled=Component.UNDEFINED, top=Component.UNDEFINED, bottomBoundary=Component.UNDEFINED, zIndex=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
42
|
+
self._prop_names = ['children', 'id', 'bottomBoundary', 'enabled', 'loading_state', 'top', 'zIndex']
|
|
43
|
+
self._valid_wildcard_attributes = []
|
|
44
|
+
self.available_properties = ['children', 'id', 'bottomBoundary', 'enabled', 'loading_state', 'top', 'zIndex']
|
|
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
|
+
|
|
51
|
+
super(FefferySticky, self).__init__(children=children, **args)
|
|
@@ -5,15 +5,13 @@ from .FefferyHexColorPicker import FefferyHexColorPicker
|
|
|
5
5
|
from .FefferyRgbColorPicker import FefferyRgbColorPicker
|
|
6
6
|
from .FefferyTwitterColorPicker import FefferyTwitterColorPicker
|
|
7
7
|
from .FefferyWheelColorPicker import FefferyWheelColorPicker
|
|
8
|
-
from .FefferyExternalCss import FefferyExternalCss
|
|
9
|
-
from .FefferyExternalJs import FefferyExternalJs
|
|
10
|
-
from .FefferyRawHTML import FefferyRawHTML
|
|
11
|
-
from .FefferySetTitle import FefferySetTitle
|
|
12
8
|
from .FefferyCaptcha import FefferyCaptcha
|
|
13
9
|
from .FefferyCountDown import FefferyCountDown
|
|
14
10
|
from .FefferyCssVar import FefferyCssVar
|
|
15
11
|
from .FefferyDiv import FefferyDiv
|
|
16
12
|
from .FefferyExecuteJs import FefferyExecuteJs
|
|
13
|
+
from .FefferyExternalCss import FefferyExternalCss
|
|
14
|
+
from .FefferyExternalJs import FefferyExternalJs
|
|
17
15
|
from .FefferyExtraSpinner import FefferyExtraSpinner
|
|
18
16
|
from .FefferyEyeDropper import FefferyEyeDropper
|
|
19
17
|
from .FefferyFancyMessage import FefferyFancyMessage
|
|
@@ -21,12 +19,16 @@ from .FefferyFancyNotification import FefferyFancyNotification
|
|
|
21
19
|
from .FefferyGuide import FefferyGuide
|
|
22
20
|
from .FefferyHighlightWords import FefferyHighlightWords
|
|
23
21
|
from .FefferyLazyLoad import FefferyLazyLoad
|
|
22
|
+
from .FefferyLazyLoadImage import FefferyLazyLoadImage
|
|
24
23
|
from .FefferyLocation import FefferyLocation
|
|
25
24
|
from .FefferyQRCode import FefferyQRCode
|
|
25
|
+
from .FefferyRawHTML import FefferyRawHTML
|
|
26
26
|
from .FefferyReload import FefferyReload
|
|
27
27
|
from .FefferyScroll import FefferyScroll
|
|
28
28
|
from .FefferyScrollbars import FefferyScrollbars
|
|
29
|
+
from .FefferySetTitle import FefferySetTitle
|
|
29
30
|
from .FefferyShortcutPanel import FefferyShortcutPanel
|
|
31
|
+
from .FefferySticky import FefferySticky
|
|
30
32
|
from .FefferyStyle import FefferyStyle
|
|
31
33
|
from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
|
|
32
34
|
from .FefferyTimeout import FefferyTimeout
|
|
@@ -52,15 +54,13 @@ __all__ = [
|
|
|
52
54
|
"FefferyRgbColorPicker",
|
|
53
55
|
"FefferyTwitterColorPicker",
|
|
54
56
|
"FefferyWheelColorPicker",
|
|
55
|
-
"FefferyExternalCss",
|
|
56
|
-
"FefferyExternalJs",
|
|
57
|
-
"FefferyRawHTML",
|
|
58
|
-
"FefferySetTitle",
|
|
59
57
|
"FefferyCaptcha",
|
|
60
58
|
"FefferyCountDown",
|
|
61
59
|
"FefferyCssVar",
|
|
62
60
|
"FefferyDiv",
|
|
63
61
|
"FefferyExecuteJs",
|
|
62
|
+
"FefferyExternalCss",
|
|
63
|
+
"FefferyExternalJs",
|
|
64
64
|
"FefferyExtraSpinner",
|
|
65
65
|
"FefferyEyeDropper",
|
|
66
66
|
"FefferyFancyMessage",
|
|
@@ -68,12 +68,16 @@ __all__ = [
|
|
|
68
68
|
"FefferyGuide",
|
|
69
69
|
"FefferyHighlightWords",
|
|
70
70
|
"FefferyLazyLoad",
|
|
71
|
+
"FefferyLazyLoadImage",
|
|
71
72
|
"FefferyLocation",
|
|
72
73
|
"FefferyQRCode",
|
|
74
|
+
"FefferyRawHTML",
|
|
73
75
|
"FefferyReload",
|
|
74
76
|
"FefferyScroll",
|
|
75
77
|
"FefferyScrollbars",
|
|
78
|
+
"FefferySetTitle",
|
|
76
79
|
"FefferyShortcutPanel",
|
|
80
|
+
"FefferySticky",
|
|
77
81
|
"FefferyStyle",
|
|
78
82
|
"FefferySyntaxHighlighter",
|
|
79
83
|
"FefferyTimeout",
|