feffery_utils_components 0.0.9 → 0.0.13

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 (64) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +5 -5
  3. package/Project.toml +1 -1
  4. package/feffery_utils_components/FefferyCaptcha.py +5 -3
  5. package/feffery_utils_components/FefferyCircleColorPicker.py +47 -0
  6. package/{build/lib/feffery_utils_components/FefferyDashboard.py → feffery_utils_components/FefferyColorPicker.py} +9 -11
  7. package/feffery_utils_components/FefferyDiv.py +47 -0
  8. package/feffery_utils_components/FefferyExecuteJs.py +5 -3
  9. package/feffery_utils_components/FefferyExtraSpinner.py +49 -0
  10. package/feffery_utils_components/FefferyGuide.py +5 -3
  11. package/feffery_utils_components/FefferyScroll.py +57 -0
  12. package/feffery_utils_components/FefferyScrollbars.py +51 -0
  13. package/feffery_utils_components/FefferyShortcutPanel.py +5 -3
  14. package/feffery_utils_components/FefferySplit.py +8 -8
  15. package/feffery_utils_components/FefferySplitPane.py +5 -3
  16. package/feffery_utils_components/FefferySyntaxHighlighter.py +5 -3
  17. package/feffery_utils_components/FefferyTopProgress.py +5 -3
  18. package/feffery_utils_components/_imports_.py +10 -4
  19. package/feffery_utils_components/feffery_utils_components.min.js +50 -28
  20. package/feffery_utils_components/metadata.json +457 -202
  21. package/feffery_utils_components/package-info.json +7 -6
  22. package/package.json +7 -6
  23. package/src/FefferyUtilsComponents.jl +8 -5
  24. package/src/jl/''_fefferycirclecolorpicker.jl +26 -0
  25. package/src/jl/''_fefferycolorpicker.jl +22 -0
  26. package/src/jl/''_fefferydiv.jl +32 -0
  27. package/src/jl/''_fefferyextraspinner.jl +27 -0
  28. package/src/jl/''_fefferyscroll.jl +31 -0
  29. package/src/jl/''_fefferyscrollbars.jl +34 -0
  30. package/src/jl/''_fefferysplit.jl +1 -2
  31. package/src/lib/components/FefferyCaptcha.react.js +6 -2
  32. package/src/lib/components/FefferyDiv.react.js +85 -0
  33. package/src/lib/components/FefferyExecuteJs.react.js +21 -12
  34. package/src/lib/components/FefferyExtraSpinner.react.js +373 -0
  35. package/src/lib/components/FefferyGuide.react.js +11 -4
  36. package/src/lib/components/FefferyScroll.react.js +170 -0
  37. package/src/lib/components/FefferyScrollbars.react.js +104 -0
  38. package/src/lib/components/FefferyShortcutPanel.react.js +5 -1
  39. package/src/lib/components/FefferySyntaxHighlighter.react.js +6 -2
  40. package/src/lib/components/FefferyTopProgress.react.js +3 -3
  41. package/src/lib/components/colorPickers/FefferyCircleColorPicker.react.js +88 -0
  42. package/src/lib/components/nprogress.css +84 -0
  43. package/src/lib/components/split/FefferySplit.react.js +28 -42
  44. package/src/lib/components/styles.css +32 -8
  45. package/src/lib/index.js +11 -6
  46. package/usage.py +107 -39
  47. package/build/lib/feffery_utils_components/FefferyCaptcha.py +0 -51
  48. package/build/lib/feffery_utils_components/FefferyGuide.py +0 -69
  49. package/build/lib/feffery_utils_components/FefferyPasteImage.py +0 -56
  50. package/build/lib/feffery_utils_components/FefferyResizable.py +0 -39
  51. package/build/lib/feffery_utils_components/FefferyShortcutPanel.py +0 -51
  52. package/build/lib/feffery_utils_components/FefferySplit.py +0 -59
  53. package/build/lib/feffery_utils_components/FefferySplitPane.py +0 -48
  54. package/build/lib/feffery_utils_components/FefferySyntaxHighlighter.py +0 -52
  55. package/build/lib/feffery_utils_components/FefferyTopProgress.py +0 -68
  56. package/build/lib/feffery_utils_components/FefferyUtilsComponents.py +0 -40
  57. package/build/lib/feffery_utils_components/FefferyWaterMark.py +0 -64
  58. package/build/lib/feffery_utils_components/__init__.py +0 -89
  59. package/build/lib/feffery_utils_components/_imports_.py +0 -21
  60. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +0 -407
  61. package/build/lib/feffery_utils_components/metadata.json +0 -1053
  62. package/build/lib/feffery_utils_components/package-info.json +0 -84
  63. package/src/lib/components/FefferyPasteImage.react.js +0 -168
  64. package/src/lib/components/FefferyWaterMark.react.js +0 -112
@@ -1,69 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferyGuide(Component):
7
- """A FefferyGuide component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - id (optional)
13
-
14
- - arrow (optional)
15
-
16
- - className (optional)
17
-
18
- - closable (optional)
19
-
20
- - hotspot (optional)
21
-
22
- - loading_state (optional)
23
-
24
- - localKey (optional)
25
-
26
- - locale (default 'zh')
27
-
28
- - mask (optional)
29
-
30
- - maskClassName (optional)
31
-
32
- - modalClassName (optional)
33
-
34
- - nextText (optional)
35
-
36
- - okText (optional)
37
-
38
- - prevText (optional)
39
-
40
- - setProps (optional):
41
- Dash-assigned callback that should be called to report property
42
- changes to Dash, to make them available for callbacks.
43
-
44
- - showPreviousBtn (default True)
45
-
46
- - step (optional)
47
-
48
- - stepText (optional)
49
-
50
- - steps (optional)
51
-
52
- - style (optional)"""
53
- @_explicitize_args
54
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, steps=Component.UNDEFINED, localKey=Component.UNDEFINED, closable=Component.UNDEFINED, modalClassName=Component.UNDEFINED, maskClassName=Component.UNDEFINED, mask=Component.UNDEFINED, arrow=Component.UNDEFINED, hotspot=Component.UNDEFINED, stepText=Component.UNDEFINED, nextText=Component.UNDEFINED, prevText=Component.UNDEFINED, showPreviousBtn=Component.UNDEFINED, okText=Component.UNDEFINED, step=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
55
- self._prop_names = ['id', 'arrow', 'className', 'closable', 'hotspot', 'loading_state', 'localKey', 'locale', 'mask', 'maskClassName', 'modalClassName', 'nextText', 'okText', 'prevText', 'setProps', 'showPreviousBtn', 'step', 'stepText', 'steps', 'style']
56
- self._type = 'FefferyGuide'
57
- self._namespace = 'feffery_utils_components'
58
- self._valid_wildcard_attributes = []
59
- self.available_properties = ['id', 'arrow', 'className', 'closable', 'hotspot', 'loading_state', 'localKey', 'locale', 'mask', 'maskClassName', 'modalClassName', 'nextText', 'okText', 'prevText', 'setProps', 'showPreviousBtn', 'step', 'stepText', 'steps', 'style']
60
- self.available_wildcard_properties = []
61
- _explicit_args = kwargs.pop('_explicit_args')
62
- _locals = locals()
63
- _locals.update(kwargs) # For wildcard attrs
64
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
65
- for k in []:
66
- if k not in args:
67
- raise TypeError(
68
- 'Required argument `' + k + '` was not specified.')
69
- super(FefferyGuide, self).__init__(**args)
@@ -1,56 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferyPasteImage(Component):
7
- """A FefferyPasteImage component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - children (a list of or a singular dash component, string or number; optional):
13
- The content of the tab - will only be displayed if this tab is
14
- selected.
15
-
16
- - id (string; required)
17
-
18
- - className (string; default 'feffery-paste-image-container')
19
-
20
- - currentPastedImages (list of boolean | number | string | dict | lists; optional)
21
-
22
- - deletedIdx (list of numbers; optional)
23
-
24
- - imageHeight (number; default 200)
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
-
39
- - style (dict; optional)"""
40
- @_explicitize_args
41
- def __init__(self, children=None, id=Component.REQUIRED, className=Component.UNDEFINED, style=Component.UNDEFINED, currentPastedImages=Component.UNDEFINED, deletedIdx=Component.UNDEFINED, imageHeight=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
- self._prop_names = ['children', 'id', 'className', 'currentPastedImages', 'deletedIdx', 'imageHeight', 'loading_state', 'style']
43
- self._type = 'FefferyPasteImage'
44
- self._namespace = 'feffery_utils_components'
45
- self._valid_wildcard_attributes = []
46
- self.available_properties = ['children', 'id', 'className', 'currentPastedImages', 'deletedIdx', 'imageHeight', 'loading_state', 'style']
47
- self.available_wildcard_properties = []
48
- _explicit_args = kwargs.pop('_explicit_args')
49
- _locals = locals()
50
- _locals.update(kwargs) # For wildcard attrs
51
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
52
- for k in ['id']:
53
- if k not in args:
54
- raise TypeError(
55
- 'Required argument `' + k + '` was not specified.')
56
- super(FefferyPasteImage, self).__init__(children=children, **args)
@@ -1,39 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferyResizable(Component):
7
- """A FefferyResizable component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - id (optional)
13
-
14
- - className (optional)
15
-
16
- - loading_state (optional)
17
-
18
- - setProps (optional):
19
- Dash-assigned callback that should be called to report property
20
- changes to Dash, to make them available for callbacks.
21
-
22
- - style (optional)"""
23
- @_explicitize_args
24
- def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
25
- self._prop_names = ['id', 'className', 'loading_state', 'setProps', 'style']
26
- self._type = 'FefferyResizable'
27
- self._namespace = 'feffery_utils_components'
28
- self._valid_wildcard_attributes = []
29
- self.available_properties = ['id', 'className', 'loading_state', 'setProps', 'style']
30
- self.available_wildcard_properties = []
31
- _explicit_args = kwargs.pop('_explicit_args')
32
- _locals = locals()
33
- _locals.update(kwargs) # For wildcard attrs
34
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
35
- for k in []:
36
- if k not in args:
37
- raise TypeError(
38
- 'Required argument `' + k + '` was not specified.')
39
- super(FefferyResizable, self).__init__(**args)
@@ -1,51 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferyShortcutPanel(Component):
7
- """A FefferyShortcutPanel component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - id (optional)
13
-
14
- - data (optional)
15
-
16
- - disableHotkeys (optional)
17
-
18
- - loading_state (optional)
19
-
20
- - locale (default 'zh')
21
-
22
- - openHotkey (optional)
23
-
24
- - placeholder (optional)
25
-
26
- - setProps (optional):
27
- Dash-assigned callback that should be called to report property
28
- changes to Dash, to make them available for callbacks.
29
-
30
- - style (optional)
31
-
32
- - theme (default 'light')
33
-
34
- - triggeredHotkey (optional)"""
35
- @_explicitize_args
36
- def __init__(self, id=Component.UNDEFINED, style=Component.UNDEFINED, locale=Component.UNDEFINED, data=Component.UNDEFINED, triggeredHotkey=Component.UNDEFINED, placeholder=Component.UNDEFINED, disableHotkeys=Component.UNDEFINED, openHotkey=Component.UNDEFINED, theme=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
37
- self._prop_names = ['id', 'data', 'disableHotkeys', 'loading_state', 'locale', 'openHotkey', 'placeholder', 'setProps', 'style', 'theme', 'triggeredHotkey']
38
- self._type = 'FefferyShortcutPanel'
39
- self._namespace = 'feffery_utils_components'
40
- self._valid_wildcard_attributes = []
41
- self.available_properties = ['id', 'data', 'disableHotkeys', 'loading_state', 'locale', 'openHotkey', 'placeholder', 'setProps', 'style', 'theme', 'triggeredHotkey']
42
- self.available_wildcard_properties = []
43
- _explicit_args = kwargs.pop('_explicit_args')
44
- _locals = locals()
45
- _locals.update(kwargs) # For wildcard attrs
46
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
47
- for k in []:
48
- if k not in args:
49
- raise TypeError(
50
- 'Required argument `' + k + '` was not specified.')
51
- super(FefferyShortcutPanel, self).__init__(**args)
@@ -1,59 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferySplit(Component):
7
- """A FefferySplit component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - children (optional)
13
-
14
- - id (optional)
15
-
16
- - className (optional)
17
-
18
- - cursor (optional)
19
-
20
- - defaultSizes (optional)
21
-
22
- - direction (default 'horizontal')
23
-
24
- - dragInterval (optional)
25
-
26
- - expandToMin (optional)
27
-
28
- - gutterSize (optional)
29
-
30
- - loading_state (optional)
31
-
32
- - maxSize (optional)
33
-
34
- - minSize (optional)
35
-
36
- - setProps (optional):
37
- Dash-assigned callback that should be called to report property
38
- changes to Dash, to make them available for callbacks.
39
-
40
- - sizes (optional)
41
-
42
- - style (optional)"""
43
- @_explicitize_args
44
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, defaultSizes=Component.UNDEFINED, sizes=Component.UNDEFINED, minSize=Component.UNDEFINED, maxSize=Component.UNDEFINED, expandToMin=Component.UNDEFINED, gutterSize=Component.UNDEFINED, dragInterval=Component.UNDEFINED, direction=Component.UNDEFINED, cursor=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
45
- self._prop_names = ['children', 'id', 'className', 'cursor', 'defaultSizes', 'direction', 'dragInterval', 'expandToMin', 'gutterSize', 'loading_state', 'maxSize', 'minSize', 'setProps', 'sizes', 'style']
46
- self._type = 'FefferySplit'
47
- self._namespace = 'feffery_utils_components'
48
- self._valid_wildcard_attributes = []
49
- self.available_properties = ['children', 'id', 'className', 'cursor', 'defaultSizes', 'direction', 'dragInterval', 'expandToMin', 'gutterSize', 'loading_state', 'maxSize', 'minSize', 'setProps', 'sizes', 'style']
50
- self.available_wildcard_properties = []
51
- _explicit_args = kwargs.pop('_explicit_args')
52
- _locals = locals()
53
- _locals.update(kwargs) # For wildcard attrs
54
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
55
- for k in []:
56
- if k not in args:
57
- raise TypeError(
58
- 'Required argument `' + k + '` was not specified.')
59
- super(FefferySplit, self).__init__(children=children, **args)
@@ -1,48 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferySplitPane(Component):
7
- """A FefferySplitPane 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
- - loading_state (dict; optional)
19
-
20
- `loading_state` is a dict with keys:
21
-
22
- - component_name (string; optional):
23
- Holds the name of the component that is loading.
24
-
25
- - is_loading (boolean; optional):
26
- Determines if the component is loading or not.
27
-
28
- - prop_name (string; optional):
29
- Holds which property is loading.
30
-
31
- - style (dict; optional)"""
32
- @_explicitize_args
33
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
34
- self._prop_names = ['children', 'id', 'className', 'loading_state', 'style']
35
- self._type = 'FefferySplitPane'
36
- self._namespace = 'feffery_utils_components'
37
- self._valid_wildcard_attributes = []
38
- self.available_properties = ['children', 'id', 'className', 'loading_state', 'style']
39
- self.available_wildcard_properties = []
40
- _explicit_args = kwargs.pop('_explicit_args')
41
- _locals = locals()
42
- _locals.update(kwargs) # For wildcard attrs
43
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
44
- for k in []:
45
- if k not in args:
46
- raise TypeError(
47
- 'Required argument `' + k + '` was not specified.')
48
- super(FefferySplitPane, self).__init__(children=children, **args)
@@ -1,52 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferySyntaxHighlighter(Component):
7
- """A FefferySyntaxHighlighter component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - id (string; optional)
13
-
14
- - codeString (string; required)
15
-
16
- - codeStyle (string; default 'prism')
17
-
18
- - language (string; required)
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
- - showInlineLineNumbers (boolean; optional)
34
-
35
- - showLineNumbers (boolean; optional)"""
36
- @_explicitize_args
37
- def __init__(self, id=Component.UNDEFINED, codeStyle=Component.UNDEFINED, codeString=Component.REQUIRED, language=Component.REQUIRED, showLineNumbers=Component.UNDEFINED, showInlineLineNumbers=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
38
- self._prop_names = ['id', 'codeString', 'codeStyle', 'language', 'loading_state', 'showInlineLineNumbers', 'showLineNumbers']
39
- self._type = 'FefferySyntaxHighlighter'
40
- self._namespace = 'feffery_utils_components'
41
- self._valid_wildcard_attributes = []
42
- self.available_properties = ['id', 'codeString', 'codeStyle', 'language', 'loading_state', 'showInlineLineNumbers', 'showLineNumbers']
43
- self.available_wildcard_properties = []
44
- _explicit_args = kwargs.pop('_explicit_args')
45
- _locals = locals()
46
- _locals.update(kwargs) # For wildcard attrs
47
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
48
- for k in ['codeString', 'language']:
49
- if k not in args:
50
- raise TypeError(
51
- 'Required argument `' + k + '` was not specified.')
52
- super(FefferySyntaxHighlighter, self).__init__(**args)
@@ -1,68 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferyTopProgress(Component):
7
- """A FefferyTopProgress component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - children (a list of or a singular dash component, string or number; optional):
13
- The content of the tab - will only be displayed if this tab is
14
- selected.
15
-
16
- - id (string; optional)
17
-
18
- - className (string; optional)
19
-
20
- - debug (boolean; default False)
21
-
22
- - easing (string; optional)
23
-
24
- - excludeProps (list of strings; optional)
25
-
26
- - includeProps (list of strings; optional)
27
-
28
- - listenPropsMode (a value equal to: 'default', 'exclude', 'include'; default 'default')
29
-
30
- - loading_state (dict; optional)
31
-
32
- `loading_state` is a dict with keys:
33
-
34
- - component_name (string; optional):
35
- Holds the name of the component that is loading.
36
-
37
- - is_loading (boolean; optional):
38
- Determines if the component is loading or not.
39
-
40
- - prop_name (string; optional):
41
- Holds which property is loading.
42
-
43
- - minimum (number; optional)
44
-
45
- - showSpinner (boolean; optional)
46
-
47
- - speed (number; optional)
48
-
49
- - spinning (boolean; default False)
50
-
51
- - style (dict; optional)"""
52
- @_explicitize_args
53
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, spinning=Component.UNDEFINED, minimum=Component.UNDEFINED, easing=Component.UNDEFINED, speed=Component.UNDEFINED, showSpinner=Component.UNDEFINED, debug=Component.UNDEFINED, listenPropsMode=Component.UNDEFINED, excludeProps=Component.UNDEFINED, includeProps=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
54
- self._prop_names = ['children', 'id', 'className', 'debug', 'easing', 'excludeProps', 'includeProps', 'listenPropsMode', 'loading_state', 'minimum', 'showSpinner', 'speed', 'spinning', 'style']
55
- self._type = 'FefferyTopProgress'
56
- self._namespace = 'feffery_utils_components'
57
- self._valid_wildcard_attributes = []
58
- self.available_properties = ['children', 'id', 'className', 'debug', 'easing', 'excludeProps', 'includeProps', 'listenPropsMode', 'loading_state', 'minimum', 'showSpinner', 'speed', 'spinning', 'style']
59
- self.available_wildcard_properties = []
60
- _explicit_args = kwargs.pop('_explicit_args')
61
- _locals = locals()
62
- _locals.update(kwargs) # For wildcard attrs
63
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
64
- for k in []:
65
- if k not in args:
66
- raise TypeError(
67
- 'Required argument `' + k + '` was not specified.')
68
- super(FefferyTopProgress, self).__init__(children=children, **args)
@@ -1,40 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferyUtilsComponents(Component):
7
- """A FefferyUtilsComponents component.
8
- ExampleComponent is an example component.
9
- It takes a property, `label`, and
10
- displays it.
11
- It renders an input with the property `value`
12
- which is editable by the user.
13
-
14
- Keyword arguments:
15
-
16
- - id (string; optional):
17
- The ID used to identify this component in Dash callbacks.
18
-
19
- - label (string; required):
20
- A label that will be printed when this component is rendered.
21
-
22
- - value (string; optional):
23
- The value displayed in the input."""
24
- @_explicitize_args
25
- def __init__(self, id=Component.UNDEFINED, label=Component.REQUIRED, value=Component.UNDEFINED, **kwargs):
26
- self._prop_names = ['id', 'label', 'value']
27
- self._type = 'FefferyUtilsComponents'
28
- self._namespace = 'feffery_utils_components'
29
- self._valid_wildcard_attributes = []
30
- self.available_properties = ['id', 'label', 'value']
31
- self.available_wildcard_properties = []
32
- _explicit_args = kwargs.pop('_explicit_args')
33
- _locals = locals()
34
- _locals.update(kwargs) # For wildcard attrs
35
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
36
- for k in ['label']:
37
- if k not in args:
38
- raise TypeError(
39
- 'Required argument `' + k + '` was not specified.')
40
- super(FefferyUtilsComponents, self).__init__(**args)
@@ -1,64 +0,0 @@
1
- # AUTO GENERATED FILE - DO NOT EDIT
2
-
3
- from dash.development.base_component import Component, _explicitize_args
4
-
5
-
6
- class FefferyWaterMark(Component):
7
- """A FefferyWaterMark component.
8
-
9
-
10
- Keyword arguments:
11
-
12
- - children (a list of or a singular dash component, string or number; optional):
13
- The content of the tab - will only be displayed if this tab is
14
- selected.
15
-
16
- - id (string; optional)
17
-
18
- - className (string; optional)
19
-
20
- - content (string; optional)
21
-
22
- - fontColor (string; optional)
23
-
24
- - fontSize (number; optional)
25
-
26
- - gapX (number; optional)
27
-
28
- - gapY (number; optional)
29
-
30
- - loading_state (dict; optional)
31
-
32
- `loading_state` is a dict with keys:
33
-
34
- - component_name (string; optional):
35
- Holds the name of the component that is loading.
36
-
37
- - is_loading (boolean; optional):
38
- Determines if the component is loading or not.
39
-
40
- - prop_name (string; optional):
41
- Holds which property is loading.
42
-
43
- - rotate (number; optional)
44
-
45
- - style (dict; optional)
46
-
47
- - zIndex (number; optional)"""
48
- @_explicitize_args
49
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, content=Component.UNDEFINED, rotate=Component.UNDEFINED, zIndex=Component.UNDEFINED, fontColor=Component.UNDEFINED, fontSize=Component.UNDEFINED, gapX=Component.UNDEFINED, gapY=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
50
- self._prop_names = ['children', 'id', 'className', 'content', 'fontColor', 'fontSize', 'gapX', 'gapY', 'loading_state', 'rotate', 'style', 'zIndex']
51
- self._type = 'FefferyWaterMark'
52
- self._namespace = 'feffery_utils_components'
53
- self._valid_wildcard_attributes = []
54
- self.available_properties = ['children', 'id', 'className', 'content', 'fontColor', 'fontSize', 'gapX', 'gapY', 'loading_state', 'rotate', 'style', 'zIndex']
55
- self.available_wildcard_properties = []
56
- _explicit_args = kwargs.pop('_explicit_args')
57
- _locals = locals()
58
- _locals.update(kwargs) # For wildcard attrs
59
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
60
- for k in []:
61
- if k not in args:
62
- raise TypeError(
63
- 'Required argument `' + k + '` was not specified.')
64
- super(FefferyWaterMark, self).__init__(children=children, **args)
@@ -1,89 +0,0 @@
1
- from __future__ import print_function as _
2
-
3
- import os as _os
4
- import sys as _sys
5
- import json
6
-
7
- import dash as _dash
8
-
9
- # noinspection PyUnresolvedReferences
10
- from ._imports_ import *
11
- from ._imports_ import __all__
12
-
13
- if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'):
14
- print('Dash was not successfully imported. '
15
- 'Make sure you don\'t have a file '
16
- 'named \n"dash.py" in your current directory.', file=_sys.stderr)
17
- _sys.exit(1)
18
-
19
- _basepath = _os.path.dirname(__file__)
20
- _filepath = _os.path.abspath(_os.path.join(_basepath, 'package-info.json'))
21
- with open(_filepath) as f:
22
- package = json.load(f)
23
-
24
- package_name = package['name'].replace(' ', '_').replace('-', '_')
25
- __version__ = package['version']
26
-
27
- _current_path = _os.path.dirname(_os.path.abspath(__file__))
28
-
29
- _this_module = _sys.modules[__name__]
30
-
31
- async_resources = []
32
-
33
- _js_dist = []
34
-
35
- _js_dist.extend(
36
- [
37
- {
38
- "relative_package_path": "async-{}.js".format(async_resource),
39
- "external_url": (
40
- "https://unpkg.com/{0}@{2}"
41
- "/{1}/async-{3}.js"
42
- ).format(package_name, __name__, __version__, async_resource),
43
- "namespace": package_name,
44
- "async": True,
45
- }
46
- for async_resource in async_resources
47
- ]
48
- )
49
-
50
- # TODO: Figure out if unpkg link works
51
- _js_dist.extend(
52
- [
53
- {
54
- "relative_package_path": "async-{}.js.map".format(async_resource),
55
- "external_url": (
56
- "https://unpkg.com/{0}@{2}"
57
- "/{1}/async-{3}.js.map"
58
- ).format(package_name, __name__, __version__, async_resource),
59
- "namespace": package_name,
60
- "dynamic": True,
61
- }
62
- for async_resource in async_resources
63
- ]
64
- )
65
-
66
- _js_dist.extend(
67
- [
68
- {
69
- 'relative_package_path': 'feffery_utils_components.min.js',
70
- 'external_url': 'https://unpkg.com/{0}@{2}/{1}/{1}.min.js'.format(
71
- package_name, __name__, __version__),
72
- 'namespace': package_name
73
- },
74
- {
75
- 'relative_package_path': 'feffery_utils_components.min.js.map',
76
- 'external_url': 'https://unpkg.com/{0}@{2}/{1}/{1}.min.js.map'.format(
77
- package_name, __name__, __version__),
78
- 'namespace': package_name,
79
- 'dynamic': True
80
- }
81
- ]
82
- )
83
-
84
- _css_dist = []
85
-
86
-
87
- for _component in __all__:
88
- setattr(locals()[_component], '_js_dist', _js_dist)
89
- setattr(locals()[_component], '_css_dist', _css_dist)
@@ -1,21 +0,0 @@
1
- from .FefferyCaptcha import FefferyCaptcha
2
- from .FefferyGuide import FefferyGuide
3
- from .FefferyPasteImage import FefferyPasteImage
4
- from .FefferyShortcutPanel import FefferyShortcutPanel
5
- from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
6
- from .FefferyTopProgress import FefferyTopProgress
7
- from .FefferyWaterMark import FefferyWaterMark
8
- from .FefferySplit import FefferySplit
9
- from .FefferySplitPane import FefferySplitPane
10
-
11
- __all__ = [
12
- "FefferyCaptcha",
13
- "FefferyGuide",
14
- "FefferyPasteImage",
15
- "FefferyShortcutPanel",
16
- "FefferySyntaxHighlighter",
17
- "FefferyTopProgress",
18
- "FefferyWaterMark",
19
- "FefferySplit",
20
- "FefferySplitPane"
21
- ]