ecodev-front 0.0.45__tar.gz → 0.0.47__tar.gz
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.
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/PKG-INFO +1 -1
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/__init__.py +9 -9
- ecodev_front-0.0.45/ecodev_front/nav_header.py → ecodev_front-0.0.47/ecodev_front/app_header.py +3 -10
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/app_layout.py +10 -12
- ecodev_front-0.0.47/ecodev_front/divider.py +23 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/ids.py +4 -6
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/pyproject.toml +1 -1
- ecodev_front-0.0.45/ecodev_front/divider.py +0 -13
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/LICENSE.md +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/README.md +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/card.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/constants.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/data_table.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/display_utils.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/div.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/footer.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/graph.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/group.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/login.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/nav_items.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/navlink.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/pie_chart.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/report_value.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/search_bar.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/segment_control.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/select.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/stack.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/stepper.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/tabs.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/text.py +0 -0
- {ecodev_front-0.0.45 → ecodev_front-0.0.47}/ecodev_front/upload_box.py +0 -0
|
@@ -23,23 +23,23 @@ from ecodev_front.group import group
|
|
|
23
23
|
from ecodev_front.ids import APPSHELL
|
|
24
24
|
from ecodev_front.ids import ASIDE
|
|
25
25
|
from ecodev_front.ids import FOOTER_ID
|
|
26
|
-
from ecodev_front.ids import
|
|
26
|
+
from ecodev_front.ids import NAVBAR
|
|
27
27
|
from ecodev_front.ids import LOGIN_BTN_ID
|
|
28
28
|
from ecodev_front.ids import LOGIN_PASSWORD_INPUT_ID
|
|
29
29
|
from ecodev_front.ids import LOGIN_USERNAME_INPUT_ID
|
|
30
30
|
from ecodev_front.ids import LOGOUT_BTN_ID
|
|
31
31
|
from ecodev_front.ids import MAIN_CONTENT_ID
|
|
32
32
|
from ecodev_front.ids import NAVBAR
|
|
33
|
-
from ecodev_front.ids import
|
|
33
|
+
from ecodev_front.ids import HEADER_ID
|
|
34
34
|
from ecodev_front.ids import PAGE
|
|
35
|
-
from ecodev_front.ids import
|
|
35
|
+
from ecodev_front.ids import ASIDE
|
|
36
36
|
from ecodev_front.ids import TOKEN
|
|
37
37
|
from ecodev_front.ids import URL
|
|
38
38
|
from ecodev_front.login import login
|
|
39
|
-
from ecodev_front.
|
|
40
|
-
from ecodev_front.
|
|
41
|
-
from ecodev_front.
|
|
42
|
-
from ecodev_front.
|
|
39
|
+
from ecodev_front.app_header import app_header
|
|
40
|
+
from ecodev_front.app_header import app_logo
|
|
41
|
+
from ecodev_front.app_header import app_title
|
|
42
|
+
from ecodev_front.divider import header_divider
|
|
43
43
|
from ecodev_front.nav_items import action_item
|
|
44
44
|
from ecodev_front.nav_items import menu
|
|
45
45
|
from ecodev_front.nav_items import menu_item
|
|
@@ -60,8 +60,8 @@ from ecodev_front.upload_box import upload_box
|
|
|
60
60
|
|
|
61
61
|
__all__ = [
|
|
62
62
|
'CHILDREN', 'DATA', 'PATHNAME', 'N_CLICKS', 'VALUE', 'URL', 'TOKEN',
|
|
63
|
-
'
|
|
64
|
-
'LOGIN_BTN_ID', 'FOOTER_ID', 'MAIN_CONTENT_ID', '
|
|
63
|
+
'HEADER_ID', 'LOGIN_USERNAME_INPUT_ID', 'LOGIN_PASSWORD_INPUT_ID', 'LOGOUT_BTN_ID',
|
|
64
|
+
'LOGIN_BTN_ID', 'FOOTER_ID', 'MAIN_CONTENT_ID', 'NAVBAR', 'ASIDE',
|
|
65
65
|
'DISABLED', 'STYLE', 'PAGE', 'APPSHELL', 'ASIDE', 'NAVBAR', 'dash_base_layout',
|
|
66
66
|
'app_logo', 'app_title', 'app_header', 'menu', 'data_table', 'header_divider',
|
|
67
67
|
'action_item', 'login', 'menu_item', 'upload_box', 'card_section',
|
ecodev_front-0.0.45/ecodev_front/nav_header.py → ecodev_front-0.0.47/ecodev_front/app_header.py
RENAMED
|
@@ -14,7 +14,7 @@ def app_logo(logo_path: str = '/assets/logo.png',
|
|
|
14
14
|
"""
|
|
15
15
|
Application logo component.
|
|
16
16
|
"""
|
|
17
|
-
style = style or {'margin-left': '10px', '
|
|
17
|
+
style = style or {'margin-left': '10px', 'width': width}
|
|
18
18
|
return dmc.AspectRatio(dmc.Image(src=logo_path),
|
|
19
19
|
ratio=ratio, style=style)
|
|
20
20
|
|
|
@@ -37,16 +37,9 @@ def app_header(logo: html.Div,
|
|
|
37
37
|
children=[
|
|
38
38
|
dmc.Anchor(href='/', children=[
|
|
39
39
|
dmc.Group([logo, title],
|
|
40
|
-
justify='space-around'
|
|
40
|
+
justify='space-around',
|
|
41
|
+
style={'margin-top':'5px'}),
|
|
41
42
|
])
|
|
42
43
|
])
|
|
43
44
|
|
|
44
45
|
|
|
45
|
-
def header_divider() -> dmc.Divider:
|
|
46
|
-
"""
|
|
47
|
-
Generates the vertical navbar dividers between sections
|
|
48
|
-
"""
|
|
49
|
-
return dmc.Divider(orientation='vertical',
|
|
50
|
-
style={'color': '#f2f2f2',
|
|
51
|
-
'marginTop': '10px',
|
|
52
|
-
'marginBottom': '10px'})
|
|
@@ -4,14 +4,13 @@ Base app component, utilising dmc.AppShell.
|
|
|
4
4
|
import dash
|
|
5
5
|
import dash_mantine_components as dmc
|
|
6
6
|
from dash import dcc
|
|
7
|
-
from dash import html
|
|
8
7
|
|
|
9
8
|
from ecodev_front.ids import APPSHELL
|
|
10
9
|
from ecodev_front.ids import FOOTER_ID
|
|
11
|
-
from ecodev_front.ids import
|
|
10
|
+
from ecodev_front.ids import NAVBAR
|
|
12
11
|
from ecodev_front.ids import MAIN_CONTENT_ID
|
|
13
|
-
from ecodev_front.ids import
|
|
14
|
-
from ecodev_front.ids import
|
|
12
|
+
from ecodev_front.ids import HEADER_ID
|
|
13
|
+
from ecodev_front.ids import ASIDE
|
|
15
14
|
from ecodev_front.ids import TOKEN
|
|
16
15
|
from ecodev_front.ids import URL
|
|
17
16
|
|
|
@@ -32,18 +31,17 @@ def dash_base_layout(stores: list[tuple[str, str]],
|
|
|
32
31
|
dcc.Store(id=TOKEN, data={TOKEN: None}, storage_type='local'),
|
|
33
32
|
*[dcc.Store(id=store_id, storage_type=storage_type)
|
|
34
33
|
for store_id, storage_type in stores],
|
|
35
|
-
dmc.AppShellHeader(id=
|
|
34
|
+
dmc.AppShellHeader(id=HEADER_ID,
|
|
36
35
|
style={'background-color': main_color},
|
|
37
36
|
zIndex=100,
|
|
38
37
|
children=[]
|
|
39
38
|
),
|
|
40
39
|
|
|
41
|
-
dmc.AppShellMain(
|
|
40
|
+
dmc.AppShellMain(
|
|
42
41
|
id=MAIN_CONTENT_ID,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
style={'margin-top': '2%',
|
|
42
|
+
children=dash.page_container,
|
|
43
|
+
style={'width': '100%',
|
|
44
|
+
'margin-top': '2%',
|
|
47
45
|
'justifyContent': 'center',
|
|
48
46
|
'display': 'flex'},
|
|
49
47
|
),
|
|
@@ -58,7 +56,7 @@ def dash_base_layout(stores: list[tuple[str, str]],
|
|
|
58
56
|
),
|
|
59
57
|
|
|
60
58
|
dmc.AppShellNavbar(
|
|
61
|
-
id=
|
|
59
|
+
id=NAVBAR,
|
|
62
60
|
children=[],
|
|
63
61
|
zIndex=90,
|
|
64
62
|
withBorder=True,
|
|
@@ -66,7 +64,7 @@ def dash_base_layout(stores: list[tuple[str, str]],
|
|
|
66
64
|
),
|
|
67
65
|
|
|
68
66
|
dmc.AppShellAside(
|
|
69
|
-
id=
|
|
67
|
+
id=ASIDE,
|
|
70
68
|
children=[],
|
|
71
69
|
zIndex=90,
|
|
72
70
|
withBorder=True,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""
|
|
2
|
+
File containing a page divider
|
|
3
|
+
"""
|
|
4
|
+
import dash_mantine_components as dmc
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def divider(orientation: str = 'horizontal',
|
|
8
|
+
margin: int = 10,
|
|
9
|
+
w: str | int = '') -> dmc.Divider:
|
|
10
|
+
"""
|
|
11
|
+
Renders a divider
|
|
12
|
+
"""
|
|
13
|
+
return dmc.Divider(orientation=orientation, m=margin, w=w)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def header_divider() -> dmc.Divider:
|
|
17
|
+
"""
|
|
18
|
+
Generates the vertical navbar dividers between app header sections
|
|
19
|
+
"""
|
|
20
|
+
return dmc.Divider(orientation='vertical',
|
|
21
|
+
style={'color': '#f2f2f2',
|
|
22
|
+
'marginTop': '10px',
|
|
23
|
+
'marginBottom': '10px'})
|
|
@@ -4,21 +4,19 @@ File containing component IDs, to use in callbacks
|
|
|
4
4
|
|
|
5
5
|
URL = 'url'
|
|
6
6
|
TOKEN = 'token'
|
|
7
|
-
|
|
7
|
+
HEADER_ID = 'navbar-id'
|
|
8
8
|
LOGIN_USERNAME_INPUT_ID = 'login-username-id'
|
|
9
9
|
LOGIN_PASSWORD_INPUT_ID = 'login-password-id'
|
|
10
10
|
LOGIN_BTN_ID = 'login-button-id'
|
|
11
11
|
LOGOUT_BTN_ID = 'logout-button-id'
|
|
12
12
|
FOOTER_ID = 'footer-id'
|
|
13
13
|
MAIN_CONTENT_ID = 'main-content-id'
|
|
14
|
-
LEFT_ASIDE_ID = 'left-aside-id'
|
|
15
|
-
RIGHT_ASIDE_ID = 'right-aside-id'
|
|
16
14
|
PAGE = 'page'
|
|
17
15
|
APPSHELL = 'appshell'
|
|
18
16
|
ASIDE = 'aside'
|
|
19
17
|
NAVBAR = 'navbar'
|
|
20
18
|
|
|
21
19
|
|
|
22
|
-
__all__ = ['URL', 'TOKEN', '
|
|
23
|
-
'LOGIN_BTN_ID', 'LOGOUT_BTN_ID', 'FOOTER_ID', 'MAIN_CONTENT_ID', '
|
|
24
|
-
'
|
|
20
|
+
__all__ = ['URL', 'TOKEN', 'HEADER_ID', 'LOGIN_USERNAME_INPUT_ID', 'LOGIN_PASSWORD_INPUT_ID',
|
|
21
|
+
'LOGIN_BTN_ID', 'LOGOUT_BTN_ID', 'FOOTER_ID', 'MAIN_CONTENT_ID', 'NAVBAR',
|
|
22
|
+
'ASIDE', 'PAGE', 'APPSHELL']
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
File containing a page divider
|
|
3
|
-
"""
|
|
4
|
-
import dash_mantine_components as dmc
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def divider(orientation: str = 'horizontal',
|
|
8
|
-
margin: int = 10,
|
|
9
|
-
w: str | int = '') -> dmc.Divider:
|
|
10
|
-
"""
|
|
11
|
-
Renders a divider
|
|
12
|
-
"""
|
|
13
|
-
return dmc.Divider(orientation=orientation, m=margin, w=w)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|