feffery_utils_components 0.1.7 → 0.1.9
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 +2 -0
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyTopProgress.py +8 -4
- package/build/lib/feffery_utils_components/FefferyWebSocket.py +60 -0
- package/build/lib/feffery_utils_components/_imports_.py +2 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/build/lib/feffery_utils_components/metadata.json +148 -0
- package/build/lib/feffery_utils_components/package-info.json +1 -1
- package/feffery_utils_components/FefferyShadowDom.py +49 -0
- package/feffery_utils_components/FefferyWebSocket.py +60 -0
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +199 -0
- package/feffery_utils_components/package-info.json +3 -2
- package/package.json +3 -2
- package/src/FefferyUtilsComponents.jl +5 -3
- package/src/jl/''_fefferyshadowdom.jl +33 -0
- package/src/jl/''_fefferywebsocket.jl +30 -0
- package/src/lib/components/FefferyShadowDom.react.js +72 -0
- package/src/lib/components/FefferyWebSocket.react.js +128 -0
- package/src/lib/index.js +5 -1
- package/tests/FefferyShadowDomTest/app.py +53 -0
- package/feffery_utils_components/README.md +0 -96
|
@@ -4236,6 +4236,28 @@
|
|
|
4236
4236
|
"computed": false
|
|
4237
4237
|
}
|
|
4238
4238
|
},
|
|
4239
|
+
"color": {
|
|
4240
|
+
"type": {
|
|
4241
|
+
"name": "string"
|
|
4242
|
+
},
|
|
4243
|
+
"required": false,
|
|
4244
|
+
"description": "",
|
|
4245
|
+
"defaultValue": {
|
|
4246
|
+
"value": "'#29d'",
|
|
4247
|
+
"computed": false
|
|
4248
|
+
}
|
|
4249
|
+
},
|
|
4250
|
+
"zIndex": {
|
|
4251
|
+
"type": {
|
|
4252
|
+
"name": "number"
|
|
4253
|
+
},
|
|
4254
|
+
"required": false,
|
|
4255
|
+
"description": "",
|
|
4256
|
+
"defaultValue": {
|
|
4257
|
+
"value": "99999",
|
|
4258
|
+
"computed": false
|
|
4259
|
+
}
|
|
4260
|
+
},
|
|
4239
4261
|
"loading_state": {
|
|
4240
4262
|
"type": {
|
|
4241
4263
|
"name": "shape",
|
|
@@ -4707,6 +4729,132 @@
|
|
|
4707
4729
|
}
|
|
4708
4730
|
}
|
|
4709
4731
|
},
|
|
4732
|
+
"src/lib/components/listeners/FefferyWebSocket.react.js": {
|
|
4733
|
+
"description": "",
|
|
4734
|
+
"displayName": "FefferyWebSocket",
|
|
4735
|
+
"methods": [],
|
|
4736
|
+
"props": {
|
|
4737
|
+
"id": {
|
|
4738
|
+
"type": {
|
|
4739
|
+
"name": "string"
|
|
4740
|
+
},
|
|
4741
|
+
"required": false,
|
|
4742
|
+
"description": ""
|
|
4743
|
+
},
|
|
4744
|
+
"socketUrl": {
|
|
4745
|
+
"type": {
|
|
4746
|
+
"name": "string"
|
|
4747
|
+
},
|
|
4748
|
+
"required": true,
|
|
4749
|
+
"description": ""
|
|
4750
|
+
},
|
|
4751
|
+
"reconnectLimit": {
|
|
4752
|
+
"type": {
|
|
4753
|
+
"name": "number"
|
|
4754
|
+
},
|
|
4755
|
+
"required": false,
|
|
4756
|
+
"description": ""
|
|
4757
|
+
},
|
|
4758
|
+
"reconnectInterval": {
|
|
4759
|
+
"type": {
|
|
4760
|
+
"name": "number"
|
|
4761
|
+
},
|
|
4762
|
+
"required": false,
|
|
4763
|
+
"description": ""
|
|
4764
|
+
},
|
|
4765
|
+
"operation": {
|
|
4766
|
+
"type": {
|
|
4767
|
+
"name": "enum",
|
|
4768
|
+
"value": [
|
|
4769
|
+
{
|
|
4770
|
+
"value": "'connect'",
|
|
4771
|
+
"computed": false
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
"value": "'disconnect'",
|
|
4775
|
+
"computed": false
|
|
4776
|
+
},
|
|
4777
|
+
{
|
|
4778
|
+
"value": "'send'",
|
|
4779
|
+
"computed": false
|
|
4780
|
+
}
|
|
4781
|
+
]
|
|
4782
|
+
},
|
|
4783
|
+
"required": false,
|
|
4784
|
+
"description": ""
|
|
4785
|
+
},
|
|
4786
|
+
"message": {
|
|
4787
|
+
"type": {
|
|
4788
|
+
"name": "string"
|
|
4789
|
+
},
|
|
4790
|
+
"required": false,
|
|
4791
|
+
"description": ""
|
|
4792
|
+
},
|
|
4793
|
+
"latestMessage": {
|
|
4794
|
+
"type": {
|
|
4795
|
+
"name": "string"
|
|
4796
|
+
},
|
|
4797
|
+
"required": false,
|
|
4798
|
+
"description": ""
|
|
4799
|
+
},
|
|
4800
|
+
"state": {
|
|
4801
|
+
"type": {
|
|
4802
|
+
"name": "enum",
|
|
4803
|
+
"value": [
|
|
4804
|
+
{
|
|
4805
|
+
"value": "'connecting'",
|
|
4806
|
+
"computed": false
|
|
4807
|
+
},
|
|
4808
|
+
{
|
|
4809
|
+
"value": "'open'",
|
|
4810
|
+
"computed": false
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
"value": "'closing'",
|
|
4814
|
+
"computed": false
|
|
4815
|
+
},
|
|
4816
|
+
{
|
|
4817
|
+
"value": "'closed'",
|
|
4818
|
+
"computed": false
|
|
4819
|
+
}
|
|
4820
|
+
]
|
|
4821
|
+
},
|
|
4822
|
+
"required": false,
|
|
4823
|
+
"description": ""
|
|
4824
|
+
},
|
|
4825
|
+
"setProps": {
|
|
4826
|
+
"type": {
|
|
4827
|
+
"name": "func"
|
|
4828
|
+
},
|
|
4829
|
+
"required": false,
|
|
4830
|
+
"description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
|
|
4831
|
+
},
|
|
4832
|
+
"loading_state": {
|
|
4833
|
+
"type": {
|
|
4834
|
+
"name": "shape",
|
|
4835
|
+
"value": {
|
|
4836
|
+
"is_loading": {
|
|
4837
|
+
"name": "bool",
|
|
4838
|
+
"description": "Determines if the component is loading or not",
|
|
4839
|
+
"required": false
|
|
4840
|
+
},
|
|
4841
|
+
"prop_name": {
|
|
4842
|
+
"name": "string",
|
|
4843
|
+
"description": "Holds which property is loading",
|
|
4844
|
+
"required": false
|
|
4845
|
+
},
|
|
4846
|
+
"component_name": {
|
|
4847
|
+
"name": "string",
|
|
4848
|
+
"description": "Holds the name of the component that is loading",
|
|
4849
|
+
"required": false
|
|
4850
|
+
}
|
|
4851
|
+
}
|
|
4852
|
+
},
|
|
4853
|
+
"required": false,
|
|
4854
|
+
"description": ""
|
|
4855
|
+
}
|
|
4856
|
+
}
|
|
4857
|
+
},
|
|
4710
4858
|
"src/lib/components/listeners/FefferyWindowSize.react.js": {
|
|
4711
4859
|
"description": "",
|
|
4712
4860
|
"displayName": "FefferyWindowSize",
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyShadowDom(Component):
|
|
7
|
+
"""A FefferyShadowDom 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
|
+
- className (string; optional)
|
|
17
|
+
|
|
18
|
+
- key (string; optional)
|
|
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
|
+
- style (dict; optional)"""
|
|
34
|
+
_children_props = []
|
|
35
|
+
_base_nodes = ['children']
|
|
36
|
+
_namespace = 'feffery_utils_components'
|
|
37
|
+
_type = 'FefferyShadowDom'
|
|
38
|
+
@_explicitize_args
|
|
39
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
40
|
+
self._prop_names = ['children', 'id', 'className', 'key', 'loading_state', 'style']
|
|
41
|
+
self._valid_wildcard_attributes = []
|
|
42
|
+
self.available_properties = ['children', 'id', 'className', 'key', 'loading_state', 'style']
|
|
43
|
+
self.available_wildcard_properties = []
|
|
44
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
45
|
+
_locals = locals()
|
|
46
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
47
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
48
|
+
|
|
49
|
+
super(FefferyShadowDom, self).__init__(children=children, **args)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyWebSocket(Component):
|
|
7
|
+
"""A FefferyWebSocket component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (string; optional)
|
|
13
|
+
|
|
14
|
+
- latestMessage (string; 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
|
+
|
|
29
|
+
- message (string; optional)
|
|
30
|
+
|
|
31
|
+
- operation (a value equal to: 'connect', 'disconnect', 'send'; optional)
|
|
32
|
+
|
|
33
|
+
- reconnectInterval (number; optional)
|
|
34
|
+
|
|
35
|
+
- reconnectLimit (number; optional)
|
|
36
|
+
|
|
37
|
+
- socketUrl (string; required)
|
|
38
|
+
|
|
39
|
+
- state (a value equal to: 'connecting', 'open', 'closing', 'closed'; optional)"""
|
|
40
|
+
_children_props = []
|
|
41
|
+
_base_nodes = ['children']
|
|
42
|
+
_namespace = 'feffery_utils_components'
|
|
43
|
+
_type = 'FefferyWebSocket'
|
|
44
|
+
@_explicitize_args
|
|
45
|
+
def __init__(self, id=Component.UNDEFINED, socketUrl=Component.REQUIRED, reconnectLimit=Component.UNDEFINED, reconnectInterval=Component.UNDEFINED, operation=Component.UNDEFINED, message=Component.UNDEFINED, latestMessage=Component.UNDEFINED, state=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
46
|
+
self._prop_names = ['id', 'latestMessage', 'loading_state', 'message', 'operation', 'reconnectInterval', 'reconnectLimit', 'socketUrl', 'state']
|
|
47
|
+
self._valid_wildcard_attributes = []
|
|
48
|
+
self.available_properties = ['id', 'latestMessage', 'loading_state', 'message', 'operation', 'reconnectInterval', 'reconnectLimit', 'socketUrl', 'state']
|
|
49
|
+
self.available_wildcard_properties = []
|
|
50
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
51
|
+
_locals = locals()
|
|
52
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
53
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
54
|
+
|
|
55
|
+
for k in ['socketUrl']:
|
|
56
|
+
if k not in args:
|
|
57
|
+
raise TypeError(
|
|
58
|
+
'Required argument `' + k + '` was not specified.')
|
|
59
|
+
|
|
60
|
+
super(FefferyWebSocket, self).__init__(**args)
|
|
@@ -26,6 +26,7 @@ from .FefferyReload import FefferyReload
|
|
|
26
26
|
from .FefferyScroll import FefferyScroll
|
|
27
27
|
from .FefferyScrollbars import FefferyScrollbars
|
|
28
28
|
from .FefferySetTitle import FefferySetTitle
|
|
29
|
+
from .FefferyShadowDom import FefferyShadowDom
|
|
29
30
|
from .FefferyShortcutPanel import FefferyShortcutPanel
|
|
30
31
|
from .FefferySticky import FefferySticky
|
|
31
32
|
from .FefferyStyle import FefferyStyle
|
|
@@ -33,6 +34,7 @@ from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
|
|
|
33
34
|
from .FefferyTimeout import FefferyTimeout
|
|
34
35
|
from .FefferyTopProgress import FefferyTopProgress
|
|
35
36
|
from .FefferyVirtualList import FefferyVirtualList
|
|
37
|
+
from .FefferyWebSocket import FefferyWebSocket
|
|
36
38
|
from .FefferyDocumentVisibility import FefferyDocumentVisibility
|
|
37
39
|
from .FefferyGeolocation import FefferyGeolocation
|
|
38
40
|
from .FefferyIdle import FefferyIdle
|
|
@@ -75,6 +77,7 @@ __all__ = [
|
|
|
75
77
|
"FefferyScroll",
|
|
76
78
|
"FefferyScrollbars",
|
|
77
79
|
"FefferySetTitle",
|
|
80
|
+
"FefferyShadowDom",
|
|
78
81
|
"FefferyShortcutPanel",
|
|
79
82
|
"FefferySticky",
|
|
80
83
|
"FefferyStyle",
|
|
@@ -82,6 +85,7 @@ __all__ = [
|
|
|
82
85
|
"FefferyTimeout",
|
|
83
86
|
"FefferyTopProgress",
|
|
84
87
|
"FefferyVirtualList",
|
|
88
|
+
"FefferyWebSocket",
|
|
85
89
|
"FefferyDocumentVisibility",
|
|
86
90
|
"FefferyGeolocation",
|
|
87
91
|
"FefferyIdle",
|