feffery_utils_components 0.1.14 → 0.1.16

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 (49) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +3 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/FefferyDeviceDetect.py +75 -0
  5. package/build/lib/feffery_utils_components/FefferyFullscreen.py +50 -0
  6. package/build/lib/feffery_utils_components/FefferyImagePaste.py +53 -0
  7. package/build/lib/feffery_utils_components/FefferyJsonViewer.py +2 -7
  8. package/build/lib/feffery_utils_components/_imports_.py +6 -0
  9. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +13 -13
  10. package/build/lib/feffery_utils_components/metadata.json +258 -1
  11. package/build/lib/feffery_utils_components/package-info.json +3 -2
  12. package/feffery_utils_components/FefferyDeviceDetect.py +75 -0
  13. package/feffery_utils_components/FefferyFullscreen.py +50 -0
  14. package/feffery_utils_components/FefferyImagePaste.py +53 -0
  15. package/feffery_utils_components/FefferyJsonViewer.py +2 -7
  16. package/feffery_utils_components/_imports_.py +6 -0
  17. package/feffery_utils_components/feffery_utils_components.min.js +13 -13
  18. package/feffery_utils_components/metadata.json +258 -1
  19. package/feffery_utils_components/package-info.json +3 -2
  20. package/package.json +3 -2
  21. package/src/FefferyUtilsComponents.jl +6 -3
  22. package/src/jl/''_fefferydevicedetect.jl +40 -0
  23. package/src/jl/''_fefferyfullscreen.jl +25 -0
  24. package/src/jl/''_fefferyimagepaste.jl +29 -0
  25. package/src/jl/''_fefferyjsonviewer.jl +1 -1
  26. package/src/lib/components/FefferyFullscreen.react.js +92 -0
  27. package/src/lib/components/FefferyImagePaste.react.js +117 -0
  28. package/src/lib/components/FefferyJsonViewer.react.js +1 -1
  29. package/src/lib/components/listeners/FefferyDeviceDetect.react.js +127 -0
  30. package/src/lib/components/styles.css +4 -0
  31. package/src/lib/index.js +7 -1
  32. package/src/lib/utils/gluejar/LICENSE +21 -0
  33. package/src/lib/utils/gluejar/Readme.md +58 -0
  34. package/src/lib/utils/gluejar/dist/index.d.ts +32 -0
  35. package/src/lib/utils/gluejar/dist/index.js +92 -0
  36. package/src/lib/utils/gluejar/dist/index.js.map +1 -0
  37. package/src/lib/utils/gluejar/package.json +53 -0
  38. package/src/lib/utils/gluejar/src/index.tsx +98 -0
  39. package/src/lib/utils/gluejar/tsconfig.json +21 -0
  40. package/src/lib/utils/react-json-view/.eslintrc.json +20 -20
  41. package/src/lib/utils/react-json-view/.prettierrc.json +14 -14
  42. package/src/lib/utils/react-json-view/LICENSE +21 -21
  43. package/src/lib/utils/react-json-view/README.md +148 -148
  44. package/src/lib/utils/react-json-view/index.d.ts +289 -289
  45. package/src/lib/utils/react-json-view/package.json +105 -105
  46. package/tests/FullscreenTest/app.py +54 -0
  47. package/tests/ImagePasteTest/app.py +58 -0
  48. package/usage.py +15 -11
  49. package/src/lib/utils/react-json-view/.github/workflows/ci-tests.yml +0 -25
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.14
3
+ Version: 0.1.16
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -21,8 +21,10 @@ export(''FefferyExtraSpinner)
21
21
  export(''FefferyFancyButton)
22
22
  export(''FefferyFancyMessage)
23
23
  export(''FefferyFancyNotification)
24
+ export(''FefferyFullscreen)
24
25
  export(''FefferyGuide)
25
26
  export(''FefferyHighlightWords)
27
+ export(''FefferyImagePaste)
26
28
  export(''FefferyJsonViewer)
27
29
  export(''FefferyLazyLoad)
28
30
  export(''FefferyLazyLoadImage)
@@ -41,6 +43,7 @@ export(''FefferyTimeout)
41
43
  export(''FefferyTopProgress)
42
44
  export(''FefferyVirtualList)
43
45
  export(''FefferyWebSocket)
46
+ export(''FefferyDeviceDetect)
44
47
  export(''FefferyDocumentVisibility)
45
48
  export(''FefferyGeolocation)
46
49
  export(''FefferyIdle)
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.14"
5
+ version = "0.1.16"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -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)
@@ -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 FefferyImagePaste(Component):
7
+ """A FefferyImagePaste component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - disabled (boolean; default False)
15
+
16
+ - imageInfo (dict; optional)
17
+
18
+ `imageInfo` is a dict with keys:
19
+
20
+ - base64 (string; optional)
21
+
22
+ - timestamp (number; optional)
23
+
24
+ - key (string; optional)
25
+
26
+ - loading_state (dict; optional)
27
+
28
+ `loading_state` is a dict with keys:
29
+
30
+ - component_name (string; optional):
31
+ Holds the name of the component that is loading.
32
+
33
+ - is_loading (boolean; optional):
34
+ Determines if the component is loading or not.
35
+
36
+ - prop_name (string; optional):
37
+ Holds which property is loading."""
38
+ _children_props = []
39
+ _base_nodes = ['children']
40
+ _namespace = 'feffery_utils_components'
41
+ _type = 'FefferyImagePaste'
42
+ @_explicitize_args
43
+ def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, imageInfo=Component.UNDEFINED, disabled=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
44
+ self._prop_names = ['id', 'disabled', 'imageInfo', 'key', 'loading_state']
45
+ self._valid_wildcard_attributes = []
46
+ self.available_properties = ['id', 'disabled', 'imageInfo', 'key', 'loading_state']
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(FefferyImagePaste, 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)
@@ -19,8 +19,10 @@ from .FefferyExtraSpinner import FefferyExtraSpinner
19
19
  from .FefferyFancyButton import FefferyFancyButton
20
20
  from .FefferyFancyMessage import FefferyFancyMessage
21
21
  from .FefferyFancyNotification import FefferyFancyNotification
22
+ from .FefferyFullscreen import FefferyFullscreen
22
23
  from .FefferyGuide import FefferyGuide
23
24
  from .FefferyHighlightWords import FefferyHighlightWords
25
+ from .FefferyImagePaste import FefferyImagePaste
24
26
  from .FefferyJsonViewer import FefferyJsonViewer
25
27
  from .FefferyLazyLoad import FefferyLazyLoad
26
28
  from .FefferyLazyLoadImage import FefferyLazyLoadImage
@@ -39,6 +41,7 @@ from .FefferyTimeout import FefferyTimeout
39
41
  from .FefferyTopProgress import FefferyTopProgress
40
42
  from .FefferyVirtualList import FefferyVirtualList
41
43
  from .FefferyWebSocket import FefferyWebSocket
44
+ from .FefferyDeviceDetect import FefferyDeviceDetect
42
45
  from .FefferyDocumentVisibility import FefferyDocumentVisibility
43
46
  from .FefferyGeolocation import FefferyGeolocation
44
47
  from .FefferyIdle import FefferyIdle
@@ -74,8 +77,10 @@ __all__ = [
74
77
  "FefferyFancyButton",
75
78
  "FefferyFancyMessage",
76
79
  "FefferyFancyNotification",
80
+ "FefferyFullscreen",
77
81
  "FefferyGuide",
78
82
  "FefferyHighlightWords",
83
+ "FefferyImagePaste",
79
84
  "FefferyJsonViewer",
80
85
  "FefferyLazyLoad",
81
86
  "FefferyLazyLoadImage",
@@ -94,6 +99,7 @@ __all__ = [
94
99
  "FefferyTopProgress",
95
100
  "FefferyVirtualList",
96
101
  "FefferyWebSocket",
102
+ "FefferyDeviceDetect",
97
103
  "FefferyDocumentVisibility",
98
104
  "FefferyGeolocation",
99
105
  "FefferyIdle",