feffery_utils_components 0.1.9 → 0.1.11
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/FefferyGrid.py +142 -0
- package/build/lib/feffery_utils_components/FefferyGridItem.py +49 -0
- package/build/lib/feffery_utils_components/FefferyShadowDom.py +49 -0
- package/build/lib/feffery_utils_components/_imports_.py +8 -2
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +25 -25
- package/build/lib/feffery_utils_components/metadata.json +712 -127
- package/build/lib/feffery_utils_components/package-info.json +4 -2
- package/feffery_utils_components/FefferyGrid.py +142 -0
- package/feffery_utils_components/FefferyGridItem.py +49 -0
- package/feffery_utils_components/_imports_.py +4 -0
- package/feffery_utils_components/feffery_utils_components.min.js +25 -25
- package/feffery_utils_components/metadata.json +512 -0
- package/feffery_utils_components/package-info.json +2 -1
- package/package.json +2 -1
- package/src/FefferyUtilsComponents.jl +5 -3
- package/src/jl/''_fefferygrid.jl +80 -0
- package/src/jl/''_fefferygriditem.jl +33 -0
- package/src/lib/components/FefferyLazyLoad.react.js +1 -1
- package/src/lib/components/FefferyVirtualList.react.js +2 -0
- package/src/lib/components/draggable/FefferyGrid.react.js +435 -0
- package/src/lib/components/draggable/FefferyGridItem.react.js +70 -0
- package/src/lib/components/split/FefferySplit.react.js +1 -28
- package/src/lib/components/styles.css +56 -0
- package/src/lib/components/utils.js +30 -0
- package/src/lib/index.js +5 -1
- package/tests/FefferyGridTest/app.py +52 -0
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
|
@@ -8,6 +8,8 @@ export(''FefferyHexColorPicker)
|
|
|
8
8
|
export(''FefferyRgbColorPicker)
|
|
9
9
|
export(''FefferyTwitterColorPicker)
|
|
10
10
|
export(''FefferyWheelColorPicker)
|
|
11
|
+
export(''FefferyGrid)
|
|
12
|
+
export(''FefferyGridItem)
|
|
11
13
|
export(''FefferyCaptcha)
|
|
12
14
|
export(''FefferyCountDown)
|
|
13
15
|
export(''FefferyCssVar)
|
package/Project.toml
CHANGED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyGrid(Component):
|
|
7
|
+
"""A FefferyGrid 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
|
+
- allowOverlap (boolean; default False)
|
|
17
|
+
|
|
18
|
+
- autoSize (boolean; default True)
|
|
19
|
+
|
|
20
|
+
- breakpoints (dict with strings as keys and values of type number; default { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 })
|
|
21
|
+
|
|
22
|
+
- className (string; optional)
|
|
23
|
+
|
|
24
|
+
- cols (dict with strings as keys and values of type number | number; default 12)
|
|
25
|
+
|
|
26
|
+
- compactType (a value equal to: 'vertical', 'horizontal'; default 'vertical')
|
|
27
|
+
|
|
28
|
+
- containerPadding (list of numbers | dict with strings as keys and values of type list of numbers; optional)
|
|
29
|
+
|
|
30
|
+
- height (number; optional)
|
|
31
|
+
|
|
32
|
+
- isBounded (boolean; default False)
|
|
33
|
+
|
|
34
|
+
- isDraggable (boolean; default True)
|
|
35
|
+
|
|
36
|
+
- isResizable (boolean; default True)
|
|
37
|
+
|
|
38
|
+
- key (string; optional)
|
|
39
|
+
|
|
40
|
+
- layouts (dict; optional)
|
|
41
|
+
|
|
42
|
+
`layouts` is a dict with strings as keys and values of type list
|
|
43
|
+
of dicts with keys:
|
|
44
|
+
|
|
45
|
+
- h (number; optional)
|
|
46
|
+
|
|
47
|
+
- i (string; optional)
|
|
48
|
+
|
|
49
|
+
- isBounded (boolean; optional)
|
|
50
|
+
|
|
51
|
+
- isDraggable (boolean; optional)
|
|
52
|
+
|
|
53
|
+
- isResizable (boolean; optional)
|
|
54
|
+
|
|
55
|
+
- maxH (number; optional)
|
|
56
|
+
|
|
57
|
+
- maxW (number; optional)
|
|
58
|
+
|
|
59
|
+
- minH (number; optional)
|
|
60
|
+
|
|
61
|
+
- minW (number; optional)
|
|
62
|
+
|
|
63
|
+
- moved (boolean | number | string | dict | list; optional)
|
|
64
|
+
|
|
65
|
+
- static (boolean; optional)
|
|
66
|
+
|
|
67
|
+
- w (number; optional)
|
|
68
|
+
|
|
69
|
+
- x (number; optional)
|
|
70
|
+
|
|
71
|
+
- y (number; optional) | list of dicts with keys:
|
|
72
|
+
|
|
73
|
+
- h (number; optional)
|
|
74
|
+
|
|
75
|
+
- i (string; optional)
|
|
76
|
+
|
|
77
|
+
- isBounded (boolean; optional)
|
|
78
|
+
|
|
79
|
+
- isDraggable (boolean; optional)
|
|
80
|
+
|
|
81
|
+
- isResizable (boolean; optional)
|
|
82
|
+
|
|
83
|
+
- maxH (number; optional)
|
|
84
|
+
|
|
85
|
+
- maxW (number; optional)
|
|
86
|
+
|
|
87
|
+
- minH (number; optional)
|
|
88
|
+
|
|
89
|
+
- minW (number; optional)
|
|
90
|
+
|
|
91
|
+
- moved (boolean | number | string | dict | list; optional)
|
|
92
|
+
|
|
93
|
+
- static (boolean; optional)
|
|
94
|
+
|
|
95
|
+
- w (number; optional)
|
|
96
|
+
|
|
97
|
+
- x (number; optional)
|
|
98
|
+
|
|
99
|
+
- y (number; optional)
|
|
100
|
+
|
|
101
|
+
- loading_state (dict; optional)
|
|
102
|
+
|
|
103
|
+
`loading_state` is a dict with keys:
|
|
104
|
+
|
|
105
|
+
- component_name (string; optional):
|
|
106
|
+
Holds the name of the component that is loading.
|
|
107
|
+
|
|
108
|
+
- is_loading (boolean; optional):
|
|
109
|
+
Determines if the component is loading or not.
|
|
110
|
+
|
|
111
|
+
- prop_name (string; optional):
|
|
112
|
+
Holds which property is loading.
|
|
113
|
+
|
|
114
|
+
- margin (list of numbers | dict with strings as keys and values of type list of numbers; default [10, 10])
|
|
115
|
+
|
|
116
|
+
- placeholderBackground (string; default '#3b3a39')
|
|
117
|
+
|
|
118
|
+
- placeholderBorder (string; default 'none')
|
|
119
|
+
|
|
120
|
+
- placeholderBorderRadius (string; default '0px')
|
|
121
|
+
|
|
122
|
+
- placeholderOpacity (number; default 0.2)
|
|
123
|
+
|
|
124
|
+
- rowHeight (number; default 150)
|
|
125
|
+
|
|
126
|
+
- style (dict; optional)"""
|
|
127
|
+
_children_props = []
|
|
128
|
+
_base_nodes = ['children']
|
|
129
|
+
_namespace = 'feffery_utils_components'
|
|
130
|
+
_type = 'FefferyGrid'
|
|
131
|
+
@_explicitize_args
|
|
132
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, height=Component.UNDEFINED, autoSize=Component.UNDEFINED, compactType=Component.UNDEFINED, margin=Component.UNDEFINED, containerPadding=Component.UNDEFINED, rowHeight=Component.UNDEFINED, isDraggable=Component.UNDEFINED, isResizable=Component.UNDEFINED, isBounded=Component.UNDEFINED, allowOverlap=Component.UNDEFINED, breakpoints=Component.UNDEFINED, cols=Component.UNDEFINED, layouts=Component.UNDEFINED, placeholderBackground=Component.UNDEFINED, placeholderOpacity=Component.UNDEFINED, placeholderBorder=Component.UNDEFINED, placeholderBorderRadius=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
133
|
+
self._prop_names = ['children', 'id', 'allowOverlap', 'autoSize', 'breakpoints', 'className', 'cols', 'compactType', 'containerPadding', 'height', 'isBounded', 'isDraggable', 'isResizable', 'key', 'layouts', 'loading_state', 'margin', 'placeholderBackground', 'placeholderBorder', 'placeholderBorderRadius', 'placeholderOpacity', 'rowHeight', 'style']
|
|
134
|
+
self._valid_wildcard_attributes = []
|
|
135
|
+
self.available_properties = ['children', 'id', 'allowOverlap', 'autoSize', 'breakpoints', 'className', 'cols', 'compactType', 'containerPadding', 'height', 'isBounded', 'isDraggable', 'isResizable', 'key', 'layouts', 'loading_state', 'margin', 'placeholderBackground', 'placeholderBorder', 'placeholderBorderRadius', 'placeholderOpacity', 'rowHeight', 'style']
|
|
136
|
+
self.available_wildcard_properties = []
|
|
137
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
138
|
+
_locals = locals()
|
|
139
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
140
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
141
|
+
|
|
142
|
+
super(FefferyGrid, self).__init__(children=children, **args)
|
|
@@ -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 FefferyGridItem(Component):
|
|
7
|
+
"""A FefferyGridItem 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 = 'FefferyGridItem'
|
|
38
|
+
@_explicitize_args
|
|
39
|
+
def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, key=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(FefferyGridItem, self).__init__(children=children, **args)
|
|
@@ -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)
|
|
@@ -6,6 +6,8 @@ from .FefferyHexColorPicker import FefferyHexColorPicker
|
|
|
6
6
|
from .FefferyRgbColorPicker import FefferyRgbColorPicker
|
|
7
7
|
from .FefferyTwitterColorPicker import FefferyTwitterColorPicker
|
|
8
8
|
from .FefferyWheelColorPicker import FefferyWheelColorPicker
|
|
9
|
+
from .FefferyGrid import FefferyGrid
|
|
10
|
+
from .FefferyGridItem import FefferyGridItem
|
|
9
11
|
from .FefferyCaptcha import FefferyCaptcha
|
|
10
12
|
from .FefferyCountDown import FefferyCountDown
|
|
11
13
|
from .FefferyCssVar import FefferyCssVar
|
|
@@ -26,6 +28,7 @@ from .FefferyReload import FefferyReload
|
|
|
26
28
|
from .FefferyScroll import FefferyScroll
|
|
27
29
|
from .FefferyScrollbars import FefferyScrollbars
|
|
28
30
|
from .FefferySetTitle import FefferySetTitle
|
|
31
|
+
from .FefferyShadowDom import FefferyShadowDom
|
|
29
32
|
from .FefferyShortcutPanel import FefferyShortcutPanel
|
|
30
33
|
from .FefferySticky import FefferySticky
|
|
31
34
|
from .FefferyStyle import FefferyStyle
|
|
@@ -33,13 +36,13 @@ from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
|
|
|
33
36
|
from .FefferyTimeout import FefferyTimeout
|
|
34
37
|
from .FefferyTopProgress import FefferyTopProgress
|
|
35
38
|
from .FefferyVirtualList import FefferyVirtualList
|
|
39
|
+
from .FefferyWebSocket import FefferyWebSocket
|
|
36
40
|
from .FefferyDocumentVisibility import FefferyDocumentVisibility
|
|
37
41
|
from .FefferyGeolocation import FefferyGeolocation
|
|
38
42
|
from .FefferyIdle import FefferyIdle
|
|
39
43
|
from .FefferyInViewport import FefferyInViewport
|
|
40
44
|
from .FefferyKeyPress import FefferyKeyPress
|
|
41
45
|
from .FefferyResponsive import FefferyResponsive
|
|
42
|
-
from .FefferyWebSocket import FefferyWebSocket
|
|
43
46
|
from .FefferyWindowSize import FefferyWindowSize
|
|
44
47
|
from .FefferySortableContainer import FefferySortableContainer
|
|
45
48
|
from .FefferySortableItem import FefferySortableItem
|
|
@@ -56,6 +59,8 @@ __all__ = [
|
|
|
56
59
|
"FefferyRgbColorPicker",
|
|
57
60
|
"FefferyTwitterColorPicker",
|
|
58
61
|
"FefferyWheelColorPicker",
|
|
62
|
+
"FefferyGrid",
|
|
63
|
+
"FefferyGridItem",
|
|
59
64
|
"FefferyCaptcha",
|
|
60
65
|
"FefferyCountDown",
|
|
61
66
|
"FefferyCssVar",
|
|
@@ -76,6 +81,7 @@ __all__ = [
|
|
|
76
81
|
"FefferyScroll",
|
|
77
82
|
"FefferyScrollbars",
|
|
78
83
|
"FefferySetTitle",
|
|
84
|
+
"FefferyShadowDom",
|
|
79
85
|
"FefferyShortcutPanel",
|
|
80
86
|
"FefferySticky",
|
|
81
87
|
"FefferyStyle",
|
|
@@ -83,13 +89,13 @@ __all__ = [
|
|
|
83
89
|
"FefferyTimeout",
|
|
84
90
|
"FefferyTopProgress",
|
|
85
91
|
"FefferyVirtualList",
|
|
92
|
+
"FefferyWebSocket",
|
|
86
93
|
"FefferyDocumentVisibility",
|
|
87
94
|
"FefferyGeolocation",
|
|
88
95
|
"FefferyIdle",
|
|
89
96
|
"FefferyInViewport",
|
|
90
97
|
"FefferyKeyPress",
|
|
91
98
|
"FefferyResponsive",
|
|
92
|
-
"FefferyWebSocket",
|
|
93
99
|
"FefferyWindowSize",
|
|
94
100
|
"FefferySortableContainer",
|
|
95
101
|
"FefferySortableItem",
|