feffery_utils_components 0.1.15 → 0.1.17

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 (50) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +4 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/FefferyAnimated.py +51 -0
  5. package/build/lib/feffery_utils_components/FefferyDeviceDetect.py +75 -0
  6. package/build/lib/feffery_utils_components/FefferyFullscreen.py +50 -0
  7. package/build/lib/feffery_utils_components/FefferyJsonViewer.py +2 -7
  8. package/build/lib/feffery_utils_components/FefferyMotion.py +91 -0
  9. package/build/lib/feffery_utils_components/_imports_.py +6 -0
  10. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +13 -13
  11. package/build/lib/feffery_utils_components/metadata.json +503 -1
  12. package/build/lib/feffery_utils_components/package-info.json +5 -2
  13. package/feffery_utils_components/FefferyAnimated.py +51 -0
  14. package/feffery_utils_components/FefferyDeviceDetect.py +75 -0
  15. package/feffery_utils_components/FefferyFullscreen.py +50 -0
  16. package/feffery_utils_components/FefferyJsonViewer.py +2 -7
  17. package/feffery_utils_components/FefferyMotion.py +91 -0
  18. package/feffery_utils_components/_imports_.py +6 -0
  19. package/feffery_utils_components/feffery_utils_components.min.js +13 -13
  20. package/feffery_utils_components/metadata.json +503 -1
  21. package/feffery_utils_components/package-info.json +5 -2
  22. package/package.json +5 -2
  23. package/setup.py +8 -3
  24. package/src/FefferyUtilsComponents.jl +6 -3
  25. package/src/jl/''_fefferyanimated.jl +34 -0
  26. package/src/jl/''_fefferydevicedetect.jl +40 -0
  27. package/src/jl/''_fefferyfullscreen.jl +25 -0
  28. package/src/jl/''_fefferyjsonviewer.jl +1 -1
  29. package/src/jl/''_fefferymotion.jl +54 -0
  30. package/src/lib/components/FefferyFullscreen.react.js +92 -0
  31. package/src/lib/components/FefferyJsonViewer.react.js +1 -1
  32. package/src/lib/components/animations/FefferyMotion.react.js +218 -0
  33. package/src/lib/components/listeners/FefferyDeviceDetect.react.js +127 -0
  34. package/src/lib/index.js +7 -1
  35. package/src/lib/utils/gluejar/LICENSE +21 -21
  36. package/src/lib/utils/gluejar/Readme.md +58 -58
  37. package/src/lib/utils/gluejar/dist/index.d.ts +32 -32
  38. package/src/lib/utils/gluejar/dist/index.js +91 -91
  39. package/src/lib/utils/gluejar/package.json +53 -53
  40. package/src/lib/utils/gluejar/src/index.tsx +98 -98
  41. package/src/lib/utils/gluejar/tsconfig.json +21 -21
  42. package/src/lib/utils/react-json-view/.eslintrc.json +20 -20
  43. package/src/lib/utils/react-json-view/.prettierrc.json +14 -14
  44. package/src/lib/utils/react-json-view/LICENSE +21 -21
  45. package/src/lib/utils/react-json-view/README.md +148 -148
  46. package/src/lib/utils/react-json-view/index.d.ts +289 -289
  47. package/src/lib/utils/react-json-view/package.json +105 -105
  48. package/tests/FullscreenTest/app.py +54 -0
  49. package/tests/MotionTest/app.py +59 -0
  50. package/usage.py +15 -11
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyUtilsComponents
2
2
  Title: Build more utility components for Plotly Dash.
3
- Version: 0.1.15
3
+ Version: 0.1.17
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -1,5 +1,6 @@
1
1
  # AUTO GENERATED FILE - DO NOT EDIT
2
2
 
3
+ export(''FefferyMotion)
3
4
  export(''FefferyBlockColorPicker)
4
5
  export(''FefferyCircleColorPicker)
5
6
  export(''FefferyEyeDropper)
@@ -21,6 +22,7 @@ export(''FefferyExtraSpinner)
21
22
  export(''FefferyFancyButton)
22
23
  export(''FefferyFancyMessage)
23
24
  export(''FefferyFancyNotification)
25
+ export(''FefferyFullscreen)
24
26
  export(''FefferyGuide)
25
27
  export(''FefferyHighlightWords)
26
28
  export(''FefferyImagePaste)
@@ -42,6 +44,7 @@ export(''FefferyTimeout)
42
44
  export(''FefferyTopProgress)
43
45
  export(''FefferyVirtualList)
44
46
  export(''FefferyWebSocket)
47
+ export(''FefferyDeviceDetect)
45
48
  export(''FefferyDocumentVisibility)
46
49
  export(''FefferyGeolocation)
47
50
  export(''FefferyIdle)
@@ -54,3 +57,4 @@ export(''FefferySortableItem)
54
57
  export(''FefferySplit)
55
58
  export(''FefferySplitPane)
56
59
  export(''FefferySessionStorage)
60
+ export(FefferyAnimated)
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.1.15"
5
+ version = "0.1.17"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -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 FefferyAnimated(Component):
7
+ """A FefferyAnimated 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
+ - animate (dict; optional)
17
+
18
+ - className (string; optional)
19
+
20
+ - initial (dict; optional)
21
+
22
+ - loading_state (dict; optional)
23
+
24
+ `loading_state` is a dict with keys:
25
+
26
+ - component_name (string; optional):
27
+ Holds the name of the component that is loading.
28
+
29
+ - is_loading (boolean; optional):
30
+ Determines if the component is loading or not.
31
+
32
+ - prop_name (string; optional):
33
+ Holds which property is loading.
34
+
35
+ - style (dict; optional)"""
36
+ _children_props = []
37
+ _base_nodes = ['children']
38
+ _namespace = 'feffery_utils_components'
39
+ _type = 'FefferyAnimated'
40
+ @_explicitize_args
41
+ def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, initial=Component.UNDEFINED, animate=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
+ self._prop_names = ['children', 'id', 'animate', 'className', 'initial', 'loading_state', 'style']
43
+ self._valid_wildcard_attributes = []
44
+ self.available_properties = ['children', 'id', 'animate', 'className', 'initial', 'loading_state', '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
+
51
+ super(FefferyAnimated, self).__init__(children=children, **args)
@@ -0,0 +1,75 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyDeviceDetect(Component):
7
+ """A FefferyDeviceDetect component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - deviceInfo (dict; optional)
15
+
16
+ `deviceInfo` is a dict with keys:
17
+
18
+ - browserName (string; optional)
19
+
20
+ - browserVersion (string; optional)
21
+
22
+ - deviceType (string; optional)
23
+
24
+ - fullBrowserVersion (string; optional)
25
+
26
+ - isAndroid (boolean; optional)
27
+
28
+ - isChrome (boolean; optional)
29
+
30
+ - isEdge (boolean; optional)
31
+
32
+ - isFirefox (boolean; optional)
33
+
34
+ - isIE (boolean; optional)
35
+
36
+ - isIOS (boolean; optional)
37
+
38
+ - isMobile (boolean; optional)
39
+
40
+ - isSafari (boolean; optional)
41
+
42
+ - osName (string; optional)
43
+
44
+ - osVersion (string; optional)
45
+
46
+ - ua (string; optional)
47
+
48
+ - loading_state (dict; optional)
49
+
50
+ `loading_state` is a dict with keys:
51
+
52
+ - component_name (string; optional):
53
+ Holds the name of the component that is loading.
54
+
55
+ - is_loading (boolean; optional):
56
+ Determines if the component is loading or not.
57
+
58
+ - prop_name (string; optional):
59
+ Holds which property is loading."""
60
+ _children_props = []
61
+ _base_nodes = ['children']
62
+ _namespace = 'feffery_utils_components'
63
+ _type = 'FefferyDeviceDetect'
64
+ @_explicitize_args
65
+ def __init__(self, id=Component.UNDEFINED, deviceInfo=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
66
+ self._prop_names = ['id', 'deviceInfo', 'loading_state']
67
+ self._valid_wildcard_attributes = []
68
+ self.available_properties = ['id', 'deviceInfo', 'loading_state']
69
+ self.available_wildcard_properties = []
70
+ _explicit_args = kwargs.pop('_explicit_args')
71
+ _locals = locals()
72
+ _locals.update(kwargs) # For wildcard attrs and excess named props
73
+ args = {k: _locals[k] for k in _explicit_args}
74
+
75
+ super(FefferyDeviceDetect, self).__init__(**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 FefferyFullscreen(Component):
7
+ """A FefferyFullscreen component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - isFullscreen (boolean; default False)
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
+ - targetId (string; required)"""
30
+ _children_props = []
31
+ _base_nodes = ['children']
32
+ _namespace = 'feffery_utils_components'
33
+ _type = 'FefferyFullscreen'
34
+ @_explicitize_args
35
+ def __init__(self, id=Component.UNDEFINED, targetId=Component.REQUIRED, isFullscreen=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
36
+ self._prop_names = ['id', 'isFullscreen', 'loading_state', 'targetId']
37
+ self._valid_wildcard_attributes = []
38
+ self.available_properties = ['id', 'isFullscreen', 'loading_state', 'targetId']
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
+ for k in ['targetId']:
46
+ if k not in args:
47
+ raise TypeError(
48
+ 'Required argument `' + k + '` was not specified.')
49
+
50
+ super(FefferyFullscreen, self).__init__(**args)
@@ -19,7 +19,7 @@ Keyword arguments:
19
19
 
20
20
  - collapsed (boolean | number; default False)
21
21
 
22
- - data (dict; required)
22
+ - data (dict; optional)
23
23
 
24
24
  - deletable (boolean; default False)
25
25
 
@@ -66,7 +66,7 @@ Keyword arguments:
66
66
  _namespace = 'feffery_utils_components'
67
67
  _type = 'FefferyJsonViewer'
68
68
  @_explicitize_args
69
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, data=Component.REQUIRED, theme=Component.UNDEFINED, indent=Component.UNDEFINED, iconStyle=Component.UNDEFINED, collapsed=Component.UNDEFINED, collapseStringsAfterLength=Component.UNDEFINED, groupArraysAfterLength=Component.UNDEFINED, enableClipboard=Component.UNDEFINED, displayObjectSize=Component.UNDEFINED, displayDataTypes=Component.UNDEFINED, editable=Component.UNDEFINED, addible=Component.UNDEFINED, deletable=Component.UNDEFINED, sortKeys=Component.UNDEFINED, quotesOnKeys=Component.UNDEFINED, displayArrayKey=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
69
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, data=Component.UNDEFINED, theme=Component.UNDEFINED, indent=Component.UNDEFINED, iconStyle=Component.UNDEFINED, collapsed=Component.UNDEFINED, collapseStringsAfterLength=Component.UNDEFINED, groupArraysAfterLength=Component.UNDEFINED, enableClipboard=Component.UNDEFINED, displayObjectSize=Component.UNDEFINED, displayDataTypes=Component.UNDEFINED, editable=Component.UNDEFINED, addible=Component.UNDEFINED, deletable=Component.UNDEFINED, sortKeys=Component.UNDEFINED, quotesOnKeys=Component.UNDEFINED, displayArrayKey=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
70
70
  self._prop_names = ['id', 'addible', 'className', 'collapseStringsAfterLength', 'collapsed', 'data', 'deletable', 'displayArrayKey', 'displayDataTypes', 'displayObjectSize', 'editable', 'enableClipboard', 'groupArraysAfterLength', 'iconStyle', 'indent', 'key', 'loading_state', 'quotesOnKeys', 'sortKeys', 'style', 'theme']
71
71
  self._valid_wildcard_attributes = []
72
72
  self.available_properties = ['id', 'addible', 'className', 'collapseStringsAfterLength', 'collapsed', 'data', 'deletable', 'displayArrayKey', 'displayDataTypes', 'displayObjectSize', 'editable', 'enableClipboard', 'groupArraysAfterLength', 'iconStyle', 'indent', 'key', 'loading_state', 'quotesOnKeys', 'sortKeys', 'style', 'theme']
@@ -76,9 +76,4 @@ Keyword arguments:
76
76
  _locals.update(kwargs) # For wildcard attrs and excess named props
77
77
  args = {k: _locals[k] for k in _explicit_args}
78
78
 
79
- for k in ['data']:
80
- if k not in args:
81
- raise TypeError(
82
- 'Required argument `' + k + '` was not specified.')
83
-
84
79
  super(FefferyJsonViewer, self).__init__(**args)
@@ -0,0 +1,91 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyMotion(Component):
7
+ """A FefferyMotion 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
+ - animate (dict | string; optional)
17
+
18
+ - className (string; optional)
19
+
20
+ - exit (dict | string; optional)
21
+
22
+ - initial (dict | boolean | string; optional)
23
+
24
+ - loading_state (dict; optional)
25
+
26
+ `loading_state` is a dict with keys:
27
+
28
+ - component_name (string; optional):
29
+ Holds the name of the component that is loading.
30
+
31
+ - is_loading (boolean; optional):
32
+ Determines if the component is loading or not.
33
+
34
+ - prop_name (string; optional):
35
+ Holds which property is loading.
36
+
37
+ - style (dict; optional)
38
+
39
+ - transition (dict; optional)
40
+
41
+ `transition` is a dict with keys:
42
+
43
+ - delay (number; optional)
44
+
45
+ - duration (number; optional)
46
+
47
+ - ease (a value equal to: 'linear', 'easeIn', 'easeOut', 'easeInOut', 'circIn', 'circOut', 'circInOut', 'backIn', 'backOut', 'backInOut', 'anticipate'; optional)
48
+
49
+ - repeat (number | a value equal to: 'infinity'; optional)
50
+
51
+ - repeatDelay (number; optional)
52
+
53
+ - repeatType (a value equal to: 'loop', 'reverse', 'mirror'; optional)
54
+
55
+ - times (list of numbers; optional)
56
+
57
+ - type (a value equal to: 'spring', 'tween'; optional)
58
+
59
+ - variants (dict; optional)
60
+
61
+ - viewport (dict; optional)
62
+
63
+ `viewport` is a dict with keys:
64
+
65
+ - amount (a value equal to: 'some', 'all'; optional)
66
+
67
+ - margin (string; optional)
68
+
69
+ - once (boolean; optional)
70
+
71
+ - whileHover (dict | string; optional)
72
+
73
+ - whileInView (dict | string; optional)
74
+
75
+ - whileTap (dict | string; optional)"""
76
+ _children_props = []
77
+ _base_nodes = ['children']
78
+ _namespace = 'feffery_utils_components'
79
+ _type = 'FefferyMotion'
80
+ @_explicitize_args
81
+ def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, initial=Component.UNDEFINED, animate=Component.UNDEFINED, exit=Component.UNDEFINED, whileHover=Component.UNDEFINED, whileTap=Component.UNDEFINED, transition=Component.UNDEFINED, whileInView=Component.UNDEFINED, viewport=Component.UNDEFINED, variants=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
82
+ self._prop_names = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
83
+ self._valid_wildcard_attributes = []
84
+ self.available_properties = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
85
+ self.available_wildcard_properties = []
86
+ _explicit_args = kwargs.pop('_explicit_args')
87
+ _locals = locals()
88
+ _locals.update(kwargs) # For wildcard attrs and excess named props
89
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
90
+
91
+ super(FefferyMotion, self).__init__(children=children, **args)
@@ -1,3 +1,4 @@
1
+ from .FefferyMotion import FefferyMotion
1
2
  from .FefferyBlockColorPicker import FefferyBlockColorPicker
2
3
  from .FefferyCircleColorPicker import FefferyCircleColorPicker
3
4
  from .FefferyEyeDropper import FefferyEyeDropper
@@ -19,6 +20,7 @@ from .FefferyExtraSpinner import FefferyExtraSpinner
19
20
  from .FefferyFancyButton import FefferyFancyButton
20
21
  from .FefferyFancyMessage import FefferyFancyMessage
21
22
  from .FefferyFancyNotification import FefferyFancyNotification
23
+ from .FefferyFullscreen import FefferyFullscreen
22
24
  from .FefferyGuide import FefferyGuide
23
25
  from .FefferyHighlightWords import FefferyHighlightWords
24
26
  from .FefferyImagePaste import FefferyImagePaste
@@ -40,6 +42,7 @@ from .FefferyTimeout import FefferyTimeout
40
42
  from .FefferyTopProgress import FefferyTopProgress
41
43
  from .FefferyVirtualList import FefferyVirtualList
42
44
  from .FefferyWebSocket import FefferyWebSocket
45
+ from .FefferyDeviceDetect import FefferyDeviceDetect
43
46
  from .FefferyDocumentVisibility import FefferyDocumentVisibility
44
47
  from .FefferyGeolocation import FefferyGeolocation
45
48
  from .FefferyIdle import FefferyIdle
@@ -54,6 +57,7 @@ from .FefferySplitPane import FefferySplitPane
54
57
  from .FefferySessionStorage import FefferySessionStorage
55
58
 
56
59
  __all__ = [
60
+ "FefferyMotion",
57
61
  "FefferyBlockColorPicker",
58
62
  "FefferyCircleColorPicker",
59
63
  "FefferyEyeDropper",
@@ -75,6 +79,7 @@ __all__ = [
75
79
  "FefferyFancyButton",
76
80
  "FefferyFancyMessage",
77
81
  "FefferyFancyNotification",
82
+ "FefferyFullscreen",
78
83
  "FefferyGuide",
79
84
  "FefferyHighlightWords",
80
85
  "FefferyImagePaste",
@@ -96,6 +101,7 @@ __all__ = [
96
101
  "FefferyTopProgress",
97
102
  "FefferyVirtualList",
98
103
  "FefferyWebSocket",
104
+ "FefferyDeviceDetect",
99
105
  "FefferyDocumentVisibility",
100
106
  "FefferyGeolocation",
101
107
  "FefferyIdle",