feffery_utils_components 0.0.5 → 0.0.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/.Rbuildignore +34 -0
- package/DESCRIPTION +1 -1
- package/NAMESPACE +8 -0
- package/Project.toml +2 -2
- package/build/lib/feffery_utils_components/FefferyCaptcha.py +51 -0
- package/build/lib/feffery_utils_components/FefferyPasteImage.py +56 -0
- package/build/lib/feffery_utils_components/FefferyShortcutPanel.py +53 -0
- package/build/lib/feffery_utils_components/FefferySyntaxHighlighter.py +52 -0
- package/build/lib/feffery_utils_components/FefferyTopProgress.py +68 -0
- package/build/lib/feffery_utils_components/FefferyUtilsComponents.py +40 -0
- package/build/lib/feffery_utils_components/FefferyWaterMark.py +64 -0
- package/build/lib/feffery_utils_components/__init__.py +89 -0
- package/build/lib/feffery_utils_components/_imports_.py +15 -0
- package/build/lib/feffery_utils_components/feffery_utils_components.min.js +407 -0
- package/build/lib/feffery_utils_components/metadata.json +689 -0
- package/build/lib/feffery_utils_components/package-info.json +80 -0
- package/feffery_utils_components/{FefferyContextMenu.py → FefferyDashboard.py} +4 -4
- package/feffery_utils_components/FefferyGuide.py +69 -0
- package/feffery_utils_components/FefferyResizable.py +39 -0
- package/feffery_utils_components/FefferyShortcutPanel.py +51 -0
- package/feffery_utils_components/FefferySplit.py +59 -0
- package/feffery_utils_components/{FefferyNprogress.py → FefferySplitPane.py} +8 -12
- package/feffery_utils_components/FefferyTopProgress.py +68 -0
- package/feffery_utils_components/_imports_.py +11 -1
- package/feffery_utils_components/feffery_utils_components.min.js +404 -1
- package/feffery_utils_components/metadata.json +657 -13
- package/feffery_utils_components/package-info.json +7 -3
- package/git-operations.md +23 -0
- package/package.json +7 -1
- package/src/FefferyUtilsComponents.jl +8 -3
- package/src/jl/''_fefferydashboard.jl +23 -0
- package/src/jl/''_fefferyguide.jl +38 -0
- package/src/jl/''_fefferykeyboardshortcut.jl +36 -0
- package/src/jl/''_fefferyresizable.jl +23 -0
- package/src/jl/''_fefferyshortcutpanel.jl +29 -0
- package/src/jl/''_fefferysplit.jl +39 -0
- package/src/jl/''_fefferysplitpane.jl +32 -0
- package/src/jl/''_fefferytopprogress.jl +41 -0
- package/src/lib/components/FefferyExecuteJs.react.js +45 -0
- package/src/lib/components/FefferyGuide.react.js +174 -0
- package/src/lib/components/FefferyShortcutPanel.react.js +277 -0
- package/src/lib/components/FefferyTopProgress.react.js +180 -0
- package/src/lib/components/split/FefferySplit.react.js +199 -0
- package/src/lib/components/split/FefferySplitPane.react.js +75 -0
- package/src/lib/components/styles.css +70 -3
- package/src/lib/index.js +13 -1
- package/usage.py +184 -38
- package/webpack.config.js +2 -0
- package/feffery_utils_components/FefferyFefferySyntaxHighlighter.py +0 -46
- package/feffery_utils_components/__pycache__/FefferyCaptcha.cpython-37.pyc +0 -0
- package/feffery_utils_components/__pycache__/FefferyPasteImage.cpython-37.pyc +0 -0
- package/feffery_utils_components/__pycache__/FefferySyntaxHighlighter.cpython-37.pyc +0 -0
- package/feffery_utils_components/__pycache__/FefferyWaterMark.cpython-37.pyc +0 -0
- package/feffery_utils_components/__pycache__/__init__.cpython-37.pyc +0 -0
- package/feffery_utils_components/__pycache__/_imports_.cpython-37.pyc +0 -0
- package/feffery_utils_components/feffery_utils_components.min.js.LICENSE.txt +0 -32
- package/feffery_utils_components/feffery_utils_components.min.js.map +0 -1
package/.Rbuildignore
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ignore JS config files/folders
|
|
2
|
+
node_modules/
|
|
3
|
+
coverage/
|
|
4
|
+
src/
|
|
5
|
+
lib/
|
|
6
|
+
.babelrc
|
|
7
|
+
.builderrc
|
|
8
|
+
.eslintrc
|
|
9
|
+
.npmignore
|
|
10
|
+
.editorconfig
|
|
11
|
+
.eslintignore
|
|
12
|
+
.prettierrc
|
|
13
|
+
.circleci
|
|
14
|
+
.github
|
|
15
|
+
|
|
16
|
+
# demo folder has special meaning in R
|
|
17
|
+
# this should hopefully make it still
|
|
18
|
+
# allow for the possibility to make R demos
|
|
19
|
+
demo/.*\.js
|
|
20
|
+
demo/.*\.html
|
|
21
|
+
demo/.*\.css
|
|
22
|
+
|
|
23
|
+
# ignore Python files/folders
|
|
24
|
+
setup.py
|
|
25
|
+
usage.py
|
|
26
|
+
setup.py
|
|
27
|
+
requirements.txt
|
|
28
|
+
MANIFEST.in
|
|
29
|
+
CHANGELOG.md
|
|
30
|
+
test/
|
|
31
|
+
# CRAN has weird LICENSE requirements
|
|
32
|
+
LICENSE.txt
|
|
33
|
+
^.*\.Rproj$
|
|
34
|
+
^\.Rproj\.user$
|
package/DESCRIPTION
CHANGED
package/NAMESPACE
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
2
|
|
|
3
3
|
export(''FefferyCaptcha)
|
|
4
|
+
export(''FefferyGuide)
|
|
4
5
|
export(''FefferyPasteImage)
|
|
6
|
+
export(''FefferyShortcutPanel)
|
|
5
7
|
export(''FefferySyntaxHighlighter)
|
|
8
|
+
export(''FefferyTopProgress)
|
|
6
9
|
export(''FefferyWaterMark)
|
|
10
|
+
export(''FefferySplit)
|
|
11
|
+
export(''FefferySplitPane)
|
|
12
|
+
export(FefferyDashboard)
|
|
13
|
+
export(FefferyKeyboardShortcut)
|
|
14
|
+
export(FefferyResizable)
|
package/Project.toml
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
name = "FefferyUtilsComponents"
|
|
3
3
|
uuid = "1b08a953-4be3-4667-9a23-ea89cd6d0d23"
|
|
4
4
|
authors = ["CNFeffery <fefferypzy@gmail.com>"]
|
|
5
|
-
version = "0.0.
|
|
5
|
+
version = "0.0.8"
|
|
6
6
|
|
|
7
7
|
[deps]
|
|
8
8
|
Dash = "1b08a953-4be3-4667-9a23-3db579824955"
|
|
9
9
|
|
|
10
10
|
[compat]
|
|
11
11
|
julia = "1.2"
|
|
12
|
-
Dash = "0.1.3"
|
|
12
|
+
Dash = "0.1.3, 1.0"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FefferyCaptcha(Component):
|
|
7
|
+
"""A FefferyCaptcha component.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Keyword arguments:
|
|
11
|
+
|
|
12
|
+
- id (optional)
|
|
13
|
+
|
|
14
|
+
- bgColor (optional)
|
|
15
|
+
|
|
16
|
+
- captcha (optional)
|
|
17
|
+
|
|
18
|
+
- charNum (default 4)
|
|
19
|
+
|
|
20
|
+
- className (optional)
|
|
21
|
+
|
|
22
|
+
- fontSize (optional)
|
|
23
|
+
|
|
24
|
+
- height (optional)
|
|
25
|
+
|
|
26
|
+
- loading_state (optional)
|
|
27
|
+
|
|
28
|
+
- setProps (optional):
|
|
29
|
+
Dash-assigned callback that should be called to report property
|
|
30
|
+
changes to Dash, to make them available for callbacks.
|
|
31
|
+
|
|
32
|
+
- style (optional)
|
|
33
|
+
|
|
34
|
+
- width (optional)"""
|
|
35
|
+
@_explicitize_args
|
|
36
|
+
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, captcha=Component.UNDEFINED, charNum=Component.UNDEFINED, height=Component.UNDEFINED, width=Component.UNDEFINED, bgColor=Component.UNDEFINED, fontSize=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
37
|
+
self._prop_names = ['id', 'bgColor', 'captcha', 'charNum', 'className', 'fontSize', 'height', 'loading_state', 'setProps', 'style', 'width']
|
|
38
|
+
self._type = 'FefferyCaptcha'
|
|
39
|
+
self._namespace = 'feffery_utils_components'
|
|
40
|
+
self._valid_wildcard_attributes = []
|
|
41
|
+
self.available_properties = ['id', 'bgColor', 'captcha', 'charNum', 'className', 'fontSize', 'height', 'loading_state', 'setProps', 'style', 'width']
|
|
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(FefferyCaptcha, self).__init__(**args)
|
|
@@ -0,0 +1,56 @@
|
|
|
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)
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
- className (optional)
|
|
15
|
+
|
|
16
|
+
- data (optional)
|
|
17
|
+
|
|
18
|
+
- disableHotkeys (optional)
|
|
19
|
+
|
|
20
|
+
- loading_state (optional)
|
|
21
|
+
|
|
22
|
+
- locale (default 'cn')
|
|
23
|
+
|
|
24
|
+
- openHotkey (optional)
|
|
25
|
+
|
|
26
|
+
- placeholder (optional)
|
|
27
|
+
|
|
28
|
+
- setProps (optional):
|
|
29
|
+
Dash-assigned callback that should be called to report property
|
|
30
|
+
changes to Dash, to make them available for callbacks.
|
|
31
|
+
|
|
32
|
+
- style (optional)
|
|
33
|
+
|
|
34
|
+
- theme (default 'light')
|
|
35
|
+
|
|
36
|
+
- triggeredHotkey (optional)"""
|
|
37
|
+
@_explicitize_args
|
|
38
|
+
def __init__(self, id=Component.UNDEFINED, className=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):
|
|
39
|
+
self._prop_names = ['id', 'className', 'data', 'disableHotkeys', 'loading_state', 'locale', 'openHotkey', 'placeholder', 'setProps', 'style', 'theme', 'triggeredHotkey']
|
|
40
|
+
self._type = 'FefferyShortcutPanel'
|
|
41
|
+
self._namespace = 'feffery_utils_components'
|
|
42
|
+
self._valid_wildcard_attributes = []
|
|
43
|
+
self.available_properties = ['id', 'className', 'data', 'disableHotkeys', 'loading_state', 'locale', 'openHotkey', 'placeholder', 'setProps', 'style', 'theme', 'triggeredHotkey']
|
|
44
|
+
self.available_wildcard_properties = []
|
|
45
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
46
|
+
_locals = locals()
|
|
47
|
+
_locals.update(kwargs) # For wildcard attrs
|
|
48
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
49
|
+
for k in []:
|
|
50
|
+
if k not in args:
|
|
51
|
+
raise TypeError(
|
|
52
|
+
'Required argument `' + k + '` was not specified.')
|
|
53
|
+
super(FefferyShortcutPanel, self).__init__(**args)
|
|
@@ -0,0 +1,52 @@
|
|
|
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)
|
|
@@ -0,0 +1,68 @@
|
|
|
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)
|
|
@@ -0,0 +1,40 @@
|
|
|
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)
|
|
@@ -0,0 +1,64 @@
|
|
|
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)
|
|
@@ -0,0 +1,89 @@
|
|
|
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)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from .FefferyCaptcha import FefferyCaptcha
|
|
2
|
+
from .FefferyPasteImage import FefferyPasteImage
|
|
3
|
+
from .FefferyShortcutPanel import FefferyShortcutPanel
|
|
4
|
+
from .FefferySyntaxHighlighter import FefferySyntaxHighlighter
|
|
5
|
+
from .FefferyTopProgress import FefferyTopProgress
|
|
6
|
+
from .FefferyWaterMark import FefferyWaterMark
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"FefferyCaptcha",
|
|
10
|
+
"FefferyPasteImage",
|
|
11
|
+
"FefferyShortcutPanel",
|
|
12
|
+
"FefferySyntaxHighlighter",
|
|
13
|
+
"FefferyTopProgress",
|
|
14
|
+
"FefferyWaterMark"
|
|
15
|
+
]
|