basic-report 0.4.0__tar.gz → 0.4.2__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.
- {basic_report-0.4.0 → basic_report-0.4.2}/PKG-INFO +1 -1
- {basic_report-0.4.0 → basic_report-0.4.2}/pyproject.toml +1 -1
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/page.py +4 -1
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/report.py +4 -1
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/cards.html +1 -1
- {basic_report-0.4.0 → basic_report-0.4.2}/LICENSE.md +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/README.md +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/__init__.py +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/configs/default.yaml +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/basic_report/section_title.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/bootstrap/bootstrap.min.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/bootstrap/bootstrap.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/bootstrap/jquery-3.3.1.slim.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/bootstrap/popper.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/datatables/dataTables.bootstrap4.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/datatables/jquery.dataTables.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/CalendarLabel.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/Legend.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/Tooltip.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/cal-heatmap.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/cal-heatmap.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/d3.v7.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/popper.min.js +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/heatmap.py +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/base.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/css/accordion.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/css/colors.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/css/heatmap.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/css/navbar.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/css/site.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/css/table.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/css/tabs.css +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/accordion.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/columns.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/dictionary.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/global_links.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/header.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/image.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/list.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/navbar_left.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/navbar_right.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/navbar_top.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/report_ball_section.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/report_header.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/section_title.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/sublevel.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/table.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/tabs.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/text.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/base.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/button_next.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/button_prev.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/heatmap.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/legend.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/script.html +0 -0
- {basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/utils.py +0 -0
|
@@ -652,7 +652,8 @@ class ReportPage:
|
|
|
652
652
|
footer_text_color: str | None = None,
|
|
653
653
|
footer_background_color: str | None = None,
|
|
654
654
|
footer_border_color: str | None = None,
|
|
655
|
-
|
|
655
|
+
min_width: str='18rem',
|
|
656
|
+
max_width: str='23rem',
|
|
656
657
|
):
|
|
657
658
|
""" Add a section title to the page
|
|
658
659
|
|
|
@@ -669,6 +670,7 @@ class ReportPage:
|
|
|
669
670
|
footer_background_color (str | None): The name of the background color for the footer section
|
|
670
671
|
footer_border_color (str | None): The name of the border color for the footer section, only really
|
|
671
672
|
affects the line between the footer and the body
|
|
673
|
+
min_width (str): The minimum width of the card
|
|
672
674
|
max_width (str): The maximum width of the card
|
|
673
675
|
"""
|
|
674
676
|
self._is_page_in_status('cards')
|
|
@@ -684,6 +686,7 @@ class ReportPage:
|
|
|
684
686
|
|
|
685
687
|
card_cfg = {
|
|
686
688
|
'image_source': image,
|
|
689
|
+
'min_width': min_width,
|
|
687
690
|
'max_width': max_width,
|
|
688
691
|
|
|
689
692
|
'background_color': default(background_color,
|
|
@@ -484,7 +484,8 @@ class Report:
|
|
|
484
484
|
footer_text_color: str | None = None,
|
|
485
485
|
footer_background_color: str | None = None,
|
|
486
486
|
footer_border_color: str | None = None,
|
|
487
|
-
|
|
487
|
+
min_width: str='18rem',
|
|
488
|
+
max_width: str='23rem',
|
|
488
489
|
):
|
|
489
490
|
""" Add a section title to the page
|
|
490
491
|
|
|
@@ -501,6 +502,7 @@ class Report:
|
|
|
501
502
|
footer_background_color (str | None): The name of the background color for the footer section
|
|
502
503
|
footer_border_color (str | None): The name of the border color for the footer section, only really
|
|
503
504
|
affects the line between the footer and the body
|
|
505
|
+
min_width (str): The minimum width of the card
|
|
504
506
|
max_width (str): The maximum width of the card
|
|
505
507
|
"""
|
|
506
508
|
self.current.add_card(
|
|
@@ -515,6 +517,7 @@ class Report:
|
|
|
515
517
|
footer_text_color=footer_text_color,
|
|
516
518
|
footer_background_color=footer_background_color,
|
|
517
519
|
footer_border_color=footer_border_color,
|
|
520
|
+
min_width=min_width,
|
|
518
521
|
max_width=max_width,
|
|
519
522
|
)
|
|
520
523
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="container p-1">
|
|
2
2
|
<div class="card-{{ cards_type }}">
|
|
3
3
|
{%- for item in card_items %}
|
|
4
|
-
<div class="card bg-{{ item.background_color }} border-{{ item.border_color }} mb-3" style="max-width: {{ item.max_width }};">
|
|
4
|
+
<div class="card bg-{{ item.background_color }} border-{{ item.border_color }} mb-3" style="min-width: {{ item.min_width }}; max-width: {{ item.max_width }};">
|
|
5
5
|
{%- if item.image_source is not none %}
|
|
6
6
|
<img class="card-img-top" src="{{ item.image_source}}">
|
|
7
7
|
{%- endif %}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/bootstrap/popper.min.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/Legend.min.js
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/Tooltip.min.js
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/cal-heatmap.css
RENAMED
|
File without changes
|
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/d3.v7.min.js
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/css_and_scripts/heatmap/popper.min.js
RENAMED
|
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
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/accordion.html
RENAMED
|
File without changes
|
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/dictionary.html
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/global_links.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/navbar_left.html
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/navbar_right.html
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/navbar_top.html
RENAMED
|
File without changes
|
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/report_header.html
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/elements/section_title.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/button_next.html
RENAMED
|
File without changes
|
{basic_report-0.4.0 → basic_report-0.4.2}/src/basic_report/templates/heatmap/button_prev.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|