feffery_utils_components 0.1.7 → 0.1.8
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 +1 -0
- package/Project.toml +1 -1
- package/build/lib/feffery_utils_components/FefferyTopProgress.py +8 -4
- package/build/lib/feffery_utils_components/FefferyWebSocket.py +56 -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 +134 -0
- package/build/lib/feffery_utils_components/package-info.json +1 -1
- package/feffery_utils_components/FefferyWebSocket.py +60 -0
- package/feffery_utils_components/_imports_.py +2 -0
- package/feffery_utils_components/feffery_utils_components.min.js +2 -2
- package/feffery_utils_components/metadata.json +126 -0
- package/feffery_utils_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/FefferyUtilsComponents.jl +4 -3
- package/src/jl/''_fefferywebsocket.jl +30 -0
- package/src/lib/components/listeners/FefferyWebSocket.react.js +128 -0
- package/src/lib/index.js +3 -1
|
@@ -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,118 @@
|
|
|
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
|
+
"operation": {
|
|
4752
|
+
"type": {
|
|
4753
|
+
"name": "enum",
|
|
4754
|
+
"value": [
|
|
4755
|
+
{
|
|
4756
|
+
"value": "'connect'",
|
|
4757
|
+
"computed": false
|
|
4758
|
+
},
|
|
4759
|
+
{
|
|
4760
|
+
"value": "'disconnect'",
|
|
4761
|
+
"computed": false
|
|
4762
|
+
},
|
|
4763
|
+
{
|
|
4764
|
+
"value": "'send'",
|
|
4765
|
+
"computed": false
|
|
4766
|
+
}
|
|
4767
|
+
]
|
|
4768
|
+
},
|
|
4769
|
+
"required": false,
|
|
4770
|
+
"description": ""
|
|
4771
|
+
},
|
|
4772
|
+
"message": {
|
|
4773
|
+
"type": {
|
|
4774
|
+
"name": "string"
|
|
4775
|
+
},
|
|
4776
|
+
"required": false,
|
|
4777
|
+
"description": ""
|
|
4778
|
+
},
|
|
4779
|
+
"latestMessage": {
|
|
4780
|
+
"type": {
|
|
4781
|
+
"name": "string"
|
|
4782
|
+
},
|
|
4783
|
+
"required": false,
|
|
4784
|
+
"description": ""
|
|
4785
|
+
},
|
|
4786
|
+
"state": {
|
|
4787
|
+
"type": {
|
|
4788
|
+
"name": "enum",
|
|
4789
|
+
"value": [
|
|
4790
|
+
{
|
|
4791
|
+
"value": "'connecting'",
|
|
4792
|
+
"computed": false
|
|
4793
|
+
},
|
|
4794
|
+
{
|
|
4795
|
+
"value": "'open'",
|
|
4796
|
+
"computed": false
|
|
4797
|
+
},
|
|
4798
|
+
{
|
|
4799
|
+
"value": "'closing'",
|
|
4800
|
+
"computed": false
|
|
4801
|
+
},
|
|
4802
|
+
{
|
|
4803
|
+
"value": "'closed'",
|
|
4804
|
+
"computed": false
|
|
4805
|
+
}
|
|
4806
|
+
]
|
|
4807
|
+
},
|
|
4808
|
+
"required": false,
|
|
4809
|
+
"description": ""
|
|
4810
|
+
},
|
|
4811
|
+
"setProps": {
|
|
4812
|
+
"type": {
|
|
4813
|
+
"name": "func"
|
|
4814
|
+
},
|
|
4815
|
+
"required": false,
|
|
4816
|
+
"description": "Dash-assigned callback that should be called to report property changes\r\nto Dash, to make them available for callbacks."
|
|
4817
|
+
},
|
|
4818
|
+
"loading_state": {
|
|
4819
|
+
"type": {
|
|
4820
|
+
"name": "shape",
|
|
4821
|
+
"value": {
|
|
4822
|
+
"is_loading": {
|
|
4823
|
+
"name": "bool",
|
|
4824
|
+
"description": "Determines if the component is loading or not",
|
|
4825
|
+
"required": false
|
|
4826
|
+
},
|
|
4827
|
+
"prop_name": {
|
|
4828
|
+
"name": "string",
|
|
4829
|
+
"description": "Holds which property is loading",
|
|
4830
|
+
"required": false
|
|
4831
|
+
},
|
|
4832
|
+
"component_name": {
|
|
4833
|
+
"name": "string",
|
|
4834
|
+
"description": "Holds the name of the component that is loading",
|
|
4835
|
+
"required": false
|
|
4836
|
+
}
|
|
4837
|
+
}
|
|
4838
|
+
},
|
|
4839
|
+
"required": false,
|
|
4840
|
+
"description": ""
|
|
4841
|
+
}
|
|
4842
|
+
}
|
|
4843
|
+
},
|
|
4710
4844
|
"src/lib/components/listeners/FefferyWindowSize.react.js": {
|
|
4711
4845
|
"description": "",
|
|
4712
4846
|
"displayName": "FefferyWindowSize",
|
|
@@ -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)
|
|
@@ -39,6 +39,7 @@ from .FefferyIdle import FefferyIdle
|
|
|
39
39
|
from .FefferyInViewport import FefferyInViewport
|
|
40
40
|
from .FefferyKeyPress import FefferyKeyPress
|
|
41
41
|
from .FefferyResponsive import FefferyResponsive
|
|
42
|
+
from .FefferyWebSocket import FefferyWebSocket
|
|
42
43
|
from .FefferyWindowSize import FefferyWindowSize
|
|
43
44
|
from .FefferySortableContainer import FefferySortableContainer
|
|
44
45
|
from .FefferySortableItem import FefferySortableItem
|
|
@@ -88,6 +89,7 @@ __all__ = [
|
|
|
88
89
|
"FefferyInViewport",
|
|
89
90
|
"FefferyKeyPress",
|
|
90
91
|
"FefferyResponsive",
|
|
92
|
+
"FefferyWebSocket",
|
|
91
93
|
"FefferyWindowSize",
|
|
92
94
|
"FefferySortableContainer",
|
|
93
95
|
"FefferySortableItem",
|