feffery_utils_components 0.0.31 → 0.1.0

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.
Files changed (39) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +8 -6
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/FefferyCssVar.py +43 -0
  5. package/build/lib/feffery_utils_components/FefferyDiv.py +5 -3
  6. package/build/lib/feffery_utils_components/FefferyEyeDropper.py +45 -0
  7. package/build/lib/feffery_utils_components/FefferyLazyLoadImage.py +53 -0
  8. package/build/lib/feffery_utils_components/FefferySticky.py +51 -0
  9. package/build/lib/feffery_utils_components/_imports_.py +16 -8
  10. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +8 -8
  11. package/build/lib/feffery_utils_components/metadata.json +650 -295
  12. package/build/lib/feffery_utils_components/package-info.json +5 -2
  13. package/feffery_utils_components/FefferyDiv.py +7 -3
  14. package/feffery_utils_components/FefferyLazyLoadImage.py +53 -0
  15. package/feffery_utils_components/FefferySticky.py +51 -0
  16. package/feffery_utils_components/_imports_.py +14 -12
  17. package/feffery_utils_components/feffery_utils_components.min.js +8 -8
  18. package/feffery_utils_components/metadata.json +581 -420
  19. package/feffery_utils_components/package-info.json +3 -1
  20. package/package.json +3 -1
  21. package/src/FefferyUtilsComponents.jl +10 -9
  22. package/src/jl/''_fefferydiv.jl +3 -1
  23. package/src/jl/''_fefferylazyloadimage.jl +29 -0
  24. package/src/jl/''_fefferysticky.jl +34 -0
  25. package/src/lib/components/FefferyDiv.react.js +27 -5
  26. package/src/lib/components/{dom/FefferyExternalCss.react.js → FefferyExternalCss.react.js} +0 -0
  27. package/src/lib/components/{dom/FefferyExternalJs.react.js → FefferyExternalJs.react.js} +0 -0
  28. package/src/lib/components/FefferyLazyLoadImage.react.js +92 -0
  29. package/src/lib/components/{dom/FefferyRawHTML.react.js → FefferyRawHTML.react.js} +0 -0
  30. package/src/lib/components/{dom/FefferySetTitle.react.js → FefferySetTitle.react.js} +0 -0
  31. package/src/lib/components/FefferySticky.react.js +93 -0
  32. package/src/lib/components/FefferyTopProgress.react.js +1 -1
  33. package/src/lib/components/{FefferyEyeDropper.react.js → colorPickers/FefferyEyeDropper.react.js} +0 -0
  34. package/src/lib/components/styles.css +13 -0
  35. package/src/lib/index.js +10 -8
  36. package/tests/FefferyLazyLoadImageTest/app.py +33 -0
  37. package/tests/FefferyStickyTest/app.py +41 -0
  38. package/usage.py +25 -33
  39. package/src/lib/components/FefferyLocation.react.js +0 -161
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyUtilsComponents
2
2
  Title: Build more utility components for Plotly Dash.
3
- Version: 0.0.31
3
+ Version: 0.1.0
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -2,33 +2,34 @@
2
2
 
3
3
  export(''FefferyBlockColorPicker)
4
4
  export(''FefferyCircleColorPicker)
5
+ export(''FefferyEyeDropper)
5
6
  export(''FefferyGithubColorPicker)
6
7
  export(''FefferyHexColorPicker)
7
8
  export(''FefferyRgbColorPicker)
8
9
  export(''FefferyTwitterColorPicker)
9
10
  export(''FefferyWheelColorPicker)
10
- export(''FefferyExternalCss)
11
- export(''FefferyExternalJs)
12
- export(''FefferyRawHTML)
13
- export(''FefferySetTitle)
14
11
  export(''FefferyCaptcha)
15
12
  export(''FefferyCountDown)
16
13
  export(''FefferyCssVar)
17
14
  export(''FefferyDiv)
18
15
  export(''FefferyExecuteJs)
16
+ export(''FefferyExternalCss)
17
+ export(''FefferyExternalJs)
19
18
  export(''FefferyExtraSpinner)
20
- export(''FefferyEyeDropper)
21
19
  export(''FefferyFancyMessage)
22
20
  export(''FefferyFancyNotification)
23
21
  export(''FefferyGuide)
24
22
  export(''FefferyHighlightWords)
25
23
  export(''FefferyLazyLoad)
26
- export(''FefferyLocation)
24
+ export(''FefferyLazyLoadImage)
27
25
  export(''FefferyQRCode)
26
+ export(''FefferyRawHTML)
28
27
  export(''FefferyReload)
29
28
  export(''FefferyScroll)
30
29
  export(''FefferyScrollbars)
30
+ export(''FefferySetTitle)
31
31
  export(''FefferyShortcutPanel)
32
+ export(''FefferySticky)
32
33
  export(''FefferyStyle)
33
34
  export(''FefferySyntaxHighlighter)
34
35
  export(''FefferyTimeout)
@@ -45,3 +46,4 @@ export(''FefferySortableContainer)
45
46
  export(''FefferySortableItem)
46
47
  export(''FefferySplit)
47
48
  export(''FefferySplitPane)
49
+ export(FefferyLocation)
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyUtilsComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-ea89cd6d0d23"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.0.31"
5
+ version = "0.1.0"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -0,0 +1,43 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyCssVar(Component):
7
+ """A FefferyCssVar component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - cssVars (dict; optional)
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
+ _children_props = []
29
+ _base_nodes = ['children']
30
+ _namespace = 'feffery_utils_components'
31
+ _type = 'FefferyCssVar'
32
+ @_explicitize_args
33
+ def __init__(self, id=Component.UNDEFINED, cssVars=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
34
+ self._prop_names = ['id', 'cssVars', 'loading_state']
35
+ self._valid_wildcard_attributes = []
36
+ self.available_properties = ['id', 'cssVars', 'loading_state']
37
+ self.available_wildcard_properties = []
38
+ _explicit_args = kwargs.pop('_explicit_args')
39
+ _locals = locals()
40
+ _locals.update(kwargs) # For wildcard attrs and excess named props
41
+ args = {k: _locals[k] for k in _explicit_args}
42
+
43
+ super(FefferyCssVar, self).__init__(**args)
@@ -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,45 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyEyeDropper(Component):
7
+ """A FefferyEyeDropper component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - color (string; optional)
15
+
16
+ - enable (boolean; default False)
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
+ _children_props = []
31
+ _base_nodes = ['children']
32
+ _namespace = 'feffery_utils_components'
33
+ _type = 'FefferyEyeDropper'
34
+ @_explicitize_args
35
+ def __init__(self, id=Component.UNDEFINED, enable=Component.UNDEFINED, color=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
+ self._prop_names = ['id', 'color', 'enable', 'loading_state']
37
+ self._valid_wildcard_attributes = []
38
+ self.available_properties = ['id', 'color', 'enable', 'loading_state']
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}
44
+
45
+ super(FefferyEyeDropper, self).__init__(**args)
@@ -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,26 +5,30 @@ 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
10
+ from .FefferyCssVar import FefferyCssVar
14
11
  from .FefferyDiv import FefferyDiv
15
12
  from .FefferyExecuteJs import FefferyExecuteJs
13
+ from .FefferyExternalCss import FefferyExternalCss
14
+ from .FefferyExternalJs import FefferyExternalJs
16
15
  from .FefferyExtraSpinner import FefferyExtraSpinner
16
+ from .FefferyEyeDropper import FefferyEyeDropper
17
17
  from .FefferyFancyMessage import FefferyFancyMessage
18
18
  from .FefferyFancyNotification import FefferyFancyNotification
19
19
  from .FefferyGuide import FefferyGuide
20
20
  from .FefferyHighlightWords import FefferyHighlightWords
21
21
  from .FefferyLazyLoad import FefferyLazyLoad
22
+ from .FefferyLazyLoadImage import FefferyLazyLoadImage
22
23
  from .FefferyLocation import FefferyLocation
23
24
  from .FefferyQRCode import FefferyQRCode
25
+ from .FefferyRawHTML import FefferyRawHTML
24
26
  from .FefferyReload import FefferyReload
25
27
  from .FefferyScroll import FefferyScroll
26
28
  from .FefferyScrollbars import FefferyScrollbars
29
+ from .FefferySetTitle import FefferySetTitle
27
30
  from .FefferyShortcutPanel import FefferyShortcutPanel
31
+ from .FefferySticky import FefferySticky
28
32
  from .FefferyStyle import FefferyStyle
29
33
  from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
30
34
  from .FefferyTimeout import FefferyTimeout
@@ -50,26 +54,30 @@ __all__ = [
50
54
  "FefferyRgbColorPicker",
51
55
  "FefferyTwitterColorPicker",
52
56
  "FefferyWheelColorPicker",
53
- "FefferyExternalCss",
54
- "FefferyExternalJs",
55
- "FefferyRawHTML",
56
- "FefferySetTitle",
57
57
  "FefferyCaptcha",
58
58
  "FefferyCountDown",
59
+ "FefferyCssVar",
59
60
  "FefferyDiv",
60
61
  "FefferyExecuteJs",
62
+ "FefferyExternalCss",
63
+ "FefferyExternalJs",
61
64
  "FefferyExtraSpinner",
65
+ "FefferyEyeDropper",
62
66
  "FefferyFancyMessage",
63
67
  "FefferyFancyNotification",
64
68
  "FefferyGuide",
65
69
  "FefferyHighlightWords",
66
70
  "FefferyLazyLoad",
71
+ "FefferyLazyLoadImage",
67
72
  "FefferyLocation",
68
73
  "FefferyQRCode",
74
+ "FefferyRawHTML",
69
75
  "FefferyReload",
70
76
  "FefferyScroll",
71
77
  "FefferyScrollbars",
78
+ "FefferySetTitle",
72
79
  "FefferyShortcutPanel",
80
+ "FefferySticky",
73
81
  "FefferyStyle",
74
82
  "FefferySyntaxHighlighter",
75
83
  "FefferyTimeout",