feffery_utils_components 0.1.15 → 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 (41) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +2 -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/FefferyJsonViewer.py +2 -7
  7. package/build/lib/feffery_utils_components/_imports_.py +4 -0
  8. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +13 -13
  9. package/build/lib/feffery_utils_components/metadata.json +178 -1
  10. package/build/lib/feffery_utils_components/package-info.json +3 -2
  11. package/feffery_utils_components/FefferyDeviceDetect.py +75 -0
  12. package/feffery_utils_components/FefferyFullscreen.py +50 -0
  13. package/feffery_utils_components/FefferyJsonViewer.py +2 -7
  14. package/feffery_utils_components/_imports_.py +4 -0
  15. package/feffery_utils_components/feffery_utils_components.min.js +13 -13
  16. package/feffery_utils_components/metadata.json +178 -1
  17. package/feffery_utils_components/package-info.json +3 -2
  18. package/package.json +3 -2
  19. package/src/FefferyUtilsComponents.jl +5 -3
  20. package/src/jl/''_fefferydevicedetect.jl +40 -0
  21. package/src/jl/''_fefferyfullscreen.jl +25 -0
  22. package/src/jl/''_fefferyjsonviewer.jl +1 -1
  23. package/src/lib/components/FefferyFullscreen.react.js +92 -0
  24. package/src/lib/components/FefferyJsonViewer.react.js +1 -1
  25. package/src/lib/components/listeners/FefferyDeviceDetect.react.js +127 -0
  26. package/src/lib/index.js +5 -1
  27. package/src/lib/utils/gluejar/LICENSE +21 -21
  28. package/src/lib/utils/gluejar/Readme.md +58 -58
  29. package/src/lib/utils/gluejar/dist/index.d.ts +32 -32
  30. package/src/lib/utils/gluejar/dist/index.js +91 -91
  31. package/src/lib/utils/gluejar/package.json +53 -53
  32. package/src/lib/utils/gluejar/src/index.tsx +98 -98
  33. package/src/lib/utils/gluejar/tsconfig.json +21 -21
  34. package/src/lib/utils/react-json-view/.eslintrc.json +20 -20
  35. package/src/lib/utils/react-json-view/.prettierrc.json +14 -14
  36. package/src/lib/utils/react-json-view/LICENSE +21 -21
  37. package/src/lib/utils/react-json-view/README.md +148 -148
  38. package/src/lib/utils/react-json-view/index.d.ts +289 -289
  39. package/src/lib/utils/react-json-view/package.json +105 -105
  40. package/tests/FullscreenTest/app.py +54 -0
  41. 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.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,6 +21,7 @@ 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)
26
27
  export(''FefferyImagePaste)
@@ -42,6 +43,7 @@ export(''FefferyTimeout)
42
43
  export(''FefferyTopProgress)
43
44
  export(''FefferyVirtualList)
44
45
  export(''FefferyWebSocket)
46
+ export(''FefferyDeviceDetect)
45
47
  export(''FefferyDocumentVisibility)
46
48
  export(''FefferyGeolocation)
47
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.15"
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)
@@ -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,6 +19,7 @@ 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
24
25
  from .FefferyImagePaste import FefferyImagePaste
@@ -40,6 +41,7 @@ from .FefferyTimeout import FefferyTimeout
40
41
  from .FefferyTopProgress import FefferyTopProgress
41
42
  from .FefferyVirtualList import FefferyVirtualList
42
43
  from .FefferyWebSocket import FefferyWebSocket
44
+ from .FefferyDeviceDetect import FefferyDeviceDetect
43
45
  from .FefferyDocumentVisibility import FefferyDocumentVisibility
44
46
  from .FefferyGeolocation import FefferyGeolocation
45
47
  from .FefferyIdle import FefferyIdle
@@ -75,6 +77,7 @@ __all__ = [
75
77
  "FefferyFancyButton",
76
78
  "FefferyFancyMessage",
77
79
  "FefferyFancyNotification",
80
+ "FefferyFullscreen",
78
81
  "FefferyGuide",
79
82
  "FefferyHighlightWords",
80
83
  "FefferyImagePaste",
@@ -96,6 +99,7 @@ __all__ = [
96
99
  "FefferyTopProgress",
97
100
  "FefferyVirtualList",
98
101
  "FefferyWebSocket",
102
+ "FefferyDeviceDetect",
99
103
  "FefferyDocumentVisibility",
100
104
  "FefferyGeolocation",
101
105
  "FefferyIdle",