From f26507e8fb9873fdb669808655f188dc97e3fb26 Mon Sep 17 00:00:00 2001
From: Maximilian Schulz <83698606+maxschulz-COL@users.noreply.github.com>
Date: Tue, 16 Jul 2024 14:20:55 +0200
Subject: [PATCH 1/3] [Bug] External links for vm.Card now open in the full
body (#585)
Co-authored-by: Petar Pejovic <108530920+petar-qb@users.noreply.github.com>
---
...8_maximilian_schulz_try_out_link_target.md | 47 +++++++++++++
vizro-core/examples/scratch_dev/app.py | 67 +++++++++++++------
.../src/vizro/models/_components/card.py | 1 +
.../vizro/models/_components/test_card.py | 1 +
4 files changed, 97 insertions(+), 19 deletions(-)
create mode 100644 vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md
diff --git a/vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md b/vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md
new file mode 100644
index 000000000..e5c49cb41
--- /dev/null
+++ b/vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+### Fixed
+
+- External `href` links in `vm.Card` now open in the full body of the window as opposed to in the same frame as they were clicked. ([#585](https://github.com/mckinsey/vizro/pull/585))
+
+
diff --git a/vizro-core/examples/scratch_dev/app.py b/vizro-core/examples/scratch_dev/app.py
index 973fa7292..49775d2be 100644
--- a/vizro-core/examples/scratch_dev/app.py
+++ b/vizro-core/examples/scratch_dev/app.py
@@ -1,38 +1,67 @@
-"""Dev app to try things out."""
+"""Example app to show all features of Vizro."""
+
+# check out https://github.com/mckinsey/vizro for more info about Vizro
+# and checkout https://vizro.readthedocs.io/en/stable/ for documentation
-import numpy as np
import vizro.models as vm
import vizro.plotly.express as px
from vizro import Vizro
df = px.data.iris()
-df["species_one_long"] = np.where(
- df["species"] == "setosa", "setosa is one common species you can select in the iris dataset.", df["species"]
-)
-df["species_long"] = df["species"] + " is one common species you can select in the iris dataset."
-df["species_very_long"] = (
- df["species"]
- + " is one common species you can select in the iris dataset is one common species you can select in the iris data."
-)
page = vm.Page(
- title="",
+ title="Vizro on PyCafe",
+ layout=vm.Layout(
+ grid=[[0, 0, 0, 1, 2, 3], [4, 4, 4, 4, 4, 4], [4, 4, 4, 4, 4, 4], [5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5]],
+ row_min_height="175px",
+ ),
components=[
- vm.Graph(
- id="graph_1",
- figure=px.scatter(df, title="Title", x="sepal_width", y="sepal_length", color="species"),
+ vm.Card(
+ text="""
+ ### What is Vizro?
+
+ Vizro is a toolkit for creating modular data visualization applications.
+ """
+ ),
+ vm.Card(
+ text="""
+ ### Github
+
+ Checkout Vizro's github page.
+ """,
+ href="https://github.com/mckinsey/vizro",
),
+ vm.Card(
+ text="""
+ ### Docs
+
+ Visit the documentation for codes examples, tutorials and API reference.
+ """,
+ href="https://vizro.readthedocs.io/",
+ ),
+ vm.Card(
+ text="""
+ ### Nav Link
+
+ Click this for page 2.
+ """,
+ href="/page2",
+ ),
+ vm.Graph(id="scatter_chart", figure=px.scatter(df, x="sepal_length", y="petal_width", color="species")),
+ vm.Graph(id="hist_chart", figure=px.histogram(df, x="sepal_width", color="species")),
],
controls=[
- vm.Filter(column="species"),
- vm.Filter(column="species_long"),
- vm.Filter(column="species_one_long"),
- vm.Filter(column="species_very_long"),
+ vm.Filter(column="species", selector=vm.Dropdown(value=["ALL"])),
+ vm.Filter(column="petal_length"),
+ vm.Filter(column="sepal_width"),
],
)
+page2 = vm.Page(
+ title="Page2", components=[vm.Graph(id="hist_chart2", figure=px.histogram(df, x="sepal_width", color="species"))]
+)
-dashboard = vm.Dashboard(pages=[page])
+dashboard = vm.Dashboard(pages=[page, page2])
if __name__ == "__main__":
Vizro().build(dashboard).run()
diff --git a/vizro-core/src/vizro/models/_components/card.py b/vizro-core/src/vizro/models/_components/card.py
index fc2f93fe8..2638b63ac 100644
--- a/vizro-core/src/vizro/models/_components/card.py
+++ b/vizro-core/src/vizro/models/_components/card.py
@@ -39,6 +39,7 @@ def build(self):
dbc.NavLink(
children=text,
href=get_relative_path(self.href) if self.href.startswith("/") else self.href,
+ target="_top",
)
if self.href
else text
diff --git a/vizro-core/tests/unit/vizro/models/_components/test_card.py b/vizro-core/tests/unit/vizro/models/_components/test_card.py
index c2fe1fa09..44c9d24ab 100755
--- a/vizro-core/tests/unit/vizro/models/_components/test_card.py
+++ b/vizro-core/tests/unit/vizro/models/_components/test_card.py
@@ -53,6 +53,7 @@ def test_card_build_with_href(self):
dbc.NavLink(
dcc.Markdown(id="card_id", children="Hello", dangerously_allow_html=False),
href="https://www.google.com",
+ target="_top",
),
className="card-nav",
)
From 35c3261b95c8f8c8b0b4af2f26d5641170039f31 Mon Sep 17 00:00:00 2001
From: nadijagraca <108531476+nadijagraca@users.noreply.github.com>
Date: Tue, 16 Jul 2024 16:29:37 +0200
Subject: [PATCH 2/3] [Release] Release of vizro 0.1.19 (#586)
---
vizro-core/CHANGELOG.md | 32 +
...ne_improve_captured_callable_validation.md | 47 -
.../20240624_113542_antony.milne_0_1_18.md | 48 -
...114610_antony.milne_make_vizro_callable.md | 47 -
...42_petar_pejovic_fix_title_misalignment.md | 47 -
...65216_huong_li_nguyen_add_sign_kpi_card.md | 47 -
...m_graph_as_source_of_filter_interaction.md | 48 -
...0627_105712_maximilian_schulz_small_fix.md | 48 -
..._084052_huong_li_nguyen_update_docs_kpi.md | 48 -
...g_li_nguyen_pre_commit_ci_update_config.md | 48 -
...uong_li_nguyen_fix_selector_return_type.md | 47 -
...3_171525_jo_stichbury_admonition_review.md | 48 -
...9_huong_li_nguyen_fix_default_nav_items.md | 47 -
..._li_nguyen_enable_dynamic_option_height.md | 47 -
...ng_li_nguyen_automatically_assign_label.md | 48 -
...40711_110926_maximilian_schulz_fix_typo.md | 48 -
...0240712_090435_antony.milne_custom_icon.md | 48 -
...712_095053_huong_li_nguyen_update_demos.md | 46 -
...8_maximilian_schulz_try_out_link_target.md | 47 -
...16_150216_nadija_ratkusic_graca_0_1_19.md} | 0
vizro-core/schemas/0.1.18.json | 1416 -----------------
.../schemas/{0.1.19.dev0.json => 0.1.19.json} | 0
vizro-core/src/vizro/__init__.py | 2 +-
23 files changed, 33 insertions(+), 2271 deletions(-)
delete mode 100644 vizro-core/changelog.d/20240621_132255_antony.milne_improve_captured_callable_validation.md
delete mode 100644 vizro-core/changelog.d/20240624_113542_antony.milne_0_1_18.md
delete mode 100644 vizro-core/changelog.d/20240625_114610_antony.milne_make_vizro_callable.md
delete mode 100644 vizro-core/changelog.d/20240626_161742_petar_pejovic_fix_title_misalignment.md
delete mode 100644 vizro-core/changelog.d/20240626_165216_huong_li_nguyen_add_sign_kpi_card.md
delete mode 100644 vizro-core/changelog.d/20240627_102933_petar_pejovic_custom_graph_as_source_of_filter_interaction.md
delete mode 100644 vizro-core/changelog.d/20240627_105712_maximilian_schulz_small_fix.md
delete mode 100644 vizro-core/changelog.d/20240701_084052_huong_li_nguyen_update_docs_kpi.md
delete mode 100644 vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md
delete mode 100644 vizro-core/changelog.d/20240703_091955_huong_li_nguyen_fix_selector_return_type.md
delete mode 100644 vizro-core/changelog.d/20240703_171525_jo_stichbury_admonition_review.md
delete mode 100644 vizro-core/changelog.d/20240708_105029_huong_li_nguyen_fix_default_nav_items.md
delete mode 100644 vizro-core/changelog.d/20240708_185435_huong_li_nguyen_enable_dynamic_option_height.md
delete mode 100644 vizro-core/changelog.d/20240709_142241_huong_li_nguyen_automatically_assign_label.md
delete mode 100644 vizro-core/changelog.d/20240711_110926_maximilian_schulz_fix_typo.md
delete mode 100644 vizro-core/changelog.d/20240712_090435_antony.milne_custom_icon.md
delete mode 100644 vizro-core/changelog.d/20240712_095053_huong_li_nguyen_update_demos.md
delete mode 100644 vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md
rename vizro-core/changelog.d/{20240624_105106_runner.md => 20240716_150216_nadija_ratkusic_graca_0_1_19.md} (100%)
delete mode 100644 vizro-core/schemas/0.1.18.json
rename vizro-core/schemas/{0.1.19.dev0.json => 0.1.19.json} (100%)
diff --git a/vizro-core/CHANGELOG.md b/vizro-core/CHANGELOG.md
index 5c7a8f099..7d7e5cccd 100644
--- a/vizro-core/CHANGELOG.md
+++ b/vizro-core/CHANGELOG.md
@@ -11,6 +11,38 @@ See the fragment files in the [changelog.d directory](https://github.com/mckinse
+
+
+# 0.1.19 — 2024-07-16
+
+## Removed
+
+- Remove `demo` dashboard folder from repository. ([#581](https://github.com/mckinsey/vizro/pull/581))
+
+## Added
+
+- Improve validation error messages for `CapturedCallable`. ([#547](https://github.com/mckinsey/vizro/pull/547))
+
+- Vizro app itself implements WSGI interface as a shortcut to `app.dash.server`. ([#580](https://github.com/mckinsey/vizro/pull/580))
+
+## Changed
+
+- Include sign in default `reference_format` of `kpi_card_reference`. ([#549](https://github.com/mckinsey/vizro/pull/549))
+
+- Update `optionHeight` of `vm.Dropdown` dynamically based on character length. ([#574](https://github.com/mckinsey/vizro/pull/574))
+
+- Rename `features` demo dashboard folder to `dev`. ([#581](https://github.com/mckinsey/vizro/pull/581))
+
+## Fixed
+
+- Fix title disappearance when scrolling `dash_data_table`. ([#548](https://github.com/mckinsey/vizro/pull/548))
+
+- Ensure that categorical selectors always return a list of values. ([#562](https://github.com/mckinsey/vizro/pull/562))
+
+- Remove default icon provision for `vm.NavLink` when the icon count exceeds 9 and a user icon is provided.([#572](https://github.com/mckinsey/vizro/pull/572))
+
+- External `href` links in `vm.Card` now open in the full body of the window as opposed to in the same frame as they were clicked. ([#585](https://github.com/mckinsey/vizro/pull/585))
+
# 0.1.18 — 2024-06-24
diff --git a/vizro-core/changelog.d/20240621_132255_antony.milne_improve_captured_callable_validation.md b/vizro-core/changelog.d/20240621_132255_antony.milne_improve_captured_callable_validation.md
deleted file mode 100644
index f831fa007..000000000
--- a/vizro-core/changelog.d/20240621_132255_antony.milne_improve_captured_callable_validation.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-### Added
-
-- Improve validation error messages for `CapturedCallable`. ([#547](https://github.com/mckinsey/vizro/pull/547))
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240624_113542_antony.milne_0_1_18.md b/vizro-core/changelog.d/20240624_113542_antony.milne_0_1_18.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240624_113542_antony.milne_0_1_18.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240625_114610_antony.milne_make_vizro_callable.md b/vizro-core/changelog.d/20240625_114610_antony.milne_make_vizro_callable.md
deleted file mode 100644
index e35846d9f..000000000
--- a/vizro-core/changelog.d/20240625_114610_antony.milne_make_vizro_callable.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-### Added
-
-- Vizro app itself implements WSGI interface as a shortcut to `app.dash.server`. ([#580](https://github.com/mckinsey/vizro/pull/580))
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240626_161742_petar_pejovic_fix_title_misalignment.md b/vizro-core/changelog.d/20240626_161742_petar_pejovic_fix_title_misalignment.md
deleted file mode 100644
index 6a0ca52e0..000000000
--- a/vizro-core/changelog.d/20240626_161742_petar_pejovic_fix_title_misalignment.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-### Fixed
-
-- Fix title disappearance when scrolling dash_data_table. ([#548](https://github.com/mckinsey/vizro/pull/548))
-
-
diff --git a/vizro-core/changelog.d/20240626_165216_huong_li_nguyen_add_sign_kpi_card.md b/vizro-core/changelog.d/20240626_165216_huong_li_nguyen_add_sign_kpi_card.md
deleted file mode 100644
index 379ea531b..000000000
--- a/vizro-core/changelog.d/20240626_165216_huong_li_nguyen_add_sign_kpi_card.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-### Changed
-
-- Include sign in default `reference_format` of `kpi_card_reference`. ([#549](https://github.com/mckinsey/vizro/pull/549))
-
-
-
-
diff --git a/vizro-core/changelog.d/20240627_102933_petar_pejovic_custom_graph_as_source_of_filter_interaction.md b/vizro-core/changelog.d/20240627_102933_petar_pejovic_custom_graph_as_source_of_filter_interaction.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240627_102933_petar_pejovic_custom_graph_as_source_of_filter_interaction.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240627_105712_maximilian_schulz_small_fix.md b/vizro-core/changelog.d/20240627_105712_maximilian_schulz_small_fix.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240627_105712_maximilian_schulz_small_fix.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240701_084052_huong_li_nguyen_update_docs_kpi.md b/vizro-core/changelog.d/20240701_084052_huong_li_nguyen_update_docs_kpi.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240701_084052_huong_li_nguyen_update_docs_kpi.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md b/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240703_091955_huong_li_nguyen_fix_selector_return_type.md b/vizro-core/changelog.d/20240703_091955_huong_li_nguyen_fix_selector_return_type.md
deleted file mode 100644
index b1e16724c..000000000
--- a/vizro-core/changelog.d/20240703_091955_huong_li_nguyen_fix_selector_return_type.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-### Fixed
-
-- Ensure that categorical selectors always return a list of values. ([#562](https://github.com/mckinsey/vizro/pull/562))
-
-
diff --git a/vizro-core/changelog.d/20240703_171525_jo_stichbury_admonition_review.md b/vizro-core/changelog.d/20240703_171525_jo_stichbury_admonition_review.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240703_171525_jo_stichbury_admonition_review.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240708_105029_huong_li_nguyen_fix_default_nav_items.md b/vizro-core/changelog.d/20240708_105029_huong_li_nguyen_fix_default_nav_items.md
deleted file mode 100644
index b97b8932d..000000000
--- a/vizro-core/changelog.d/20240708_105029_huong_li_nguyen_fix_default_nav_items.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-### Fixed
-
-- Remove default icon provision for `vm.NavLink` when the icon count exceeds 9 and a user icon is provided.([#572](https://github.com/mckinsey/vizro/pull/572))
-
-
diff --git a/vizro-core/changelog.d/20240708_185435_huong_li_nguyen_enable_dynamic_option_height.md b/vizro-core/changelog.d/20240708_185435_huong_li_nguyen_enable_dynamic_option_height.md
deleted file mode 100644
index 364aab922..000000000
--- a/vizro-core/changelog.d/20240708_185435_huong_li_nguyen_enable_dynamic_option_height.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-### Changed
-
-- Update `optionHeight` of `vm.Dropdown` dynamically based on character length. ([#574](https://github.com/mckinsey/vizro/pull/574))
-
-
-
-
diff --git a/vizro-core/changelog.d/20240709_142241_huong_li_nguyen_automatically_assign_label.md b/vizro-core/changelog.d/20240709_142241_huong_li_nguyen_automatically_assign_label.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240709_142241_huong_li_nguyen_automatically_assign_label.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240711_110926_maximilian_schulz_fix_typo.md b/vizro-core/changelog.d/20240711_110926_maximilian_schulz_fix_typo.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240711_110926_maximilian_schulz_fix_typo.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240712_090435_antony.milne_custom_icon.md b/vizro-core/changelog.d/20240712_090435_antony.milne_custom_icon.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240712_090435_antony.milne_custom_icon.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240712_095053_huong_li_nguyen_update_demos.md b/vizro-core/changelog.d/20240712_095053_huong_li_nguyen_update_demos.md
deleted file mode 100644
index c74db5d27..000000000
--- a/vizro-core/changelog.d/20240712_095053_huong_li_nguyen_update_demos.md
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-### Removed
-
-- Remove `demo` dashboard folder from repository. ([#581](https://github.com/mckinsey/vizro/pull/581))
-
-
-
-### Changed
-
-- Rename `features` demo dashboard folder to `dev`. ([#581](https://github.com/mckinsey/vizro/pull/581))
-
-
-
-
diff --git a/vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md b/vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md
deleted file mode 100644
index e5c49cb41..000000000
--- a/vizro-core/changelog.d/20240716_091858_maximilian_schulz_try_out_link_target.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-### Fixed
-
-- External `href` links in `vm.Card` now open in the full body of the window as opposed to in the same frame as they were clicked. ([#585](https://github.com/mckinsey/vizro/pull/585))
-
-
diff --git a/vizro-core/changelog.d/20240624_105106_runner.md b/vizro-core/changelog.d/20240716_150216_nadija_ratkusic_graca_0_1_19.md
similarity index 100%
rename from vizro-core/changelog.d/20240624_105106_runner.md
rename to vizro-core/changelog.d/20240716_150216_nadija_ratkusic_graca_0_1_19.md
diff --git a/vizro-core/schemas/0.1.18.json b/vizro-core/schemas/0.1.18.json
deleted file mode 100644
index 5c04f2438..000000000
--- a/vizro-core/schemas/0.1.18.json
+++ /dev/null
@@ -1,1416 +0,0 @@
-{
- "title": "Dashboard",
- "description": "Vizro Dashboard to be used within [`Vizro`][vizro._vizro.Vizro.build].\n\nArgs:\n pages (List[Page]): See [`Page`][vizro.models.Page].\n theme (Literal[\"vizro_dark\", \"vizro_light\"]): Layout theme to be applied across dashboard.\n Defaults to `vizro_dark`.\n navigation (Navigation): See [`Navigation`][vizro.models.Navigation]. Defaults to `None`.\n title (str): Dashboard title to appear on every page on top left-side. Defaults to `\"\"`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "pages": {
- "title": "Pages",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Page"
- }
- },
- "theme": {
- "title": "Theme",
- "description": "Layout theme to be applied across dashboard. Defaults to `vizro_dark`",
- "default": "vizro_dark",
- "enum": ["vizro_dark", "vizro_light"],
- "type": "string"
- },
- "navigation": {
- "$ref": "#/definitions/Navigation"
- },
- "title": {
- "title": "Title",
- "description": "Dashboard title to appear on every page on top left-side.",
- "default": "",
- "type": "string"
- }
- },
- "required": ["pages"],
- "additionalProperties": false,
- "definitions": {
- "Action": {
- "title": "Action",
- "description": "Action to be inserted into `actions` of relevant component.\n\nArgs:\n function (CapturedCallable): See [`CapturedCallable`][vizro.models.types.CapturedCallable].\n inputs (List[str]): Inputs in the form `.` passed to the action function.\n Defaults to `[]`.\n outputs (List[str]): Outputs in the form `.` changed by the action function.\n Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "inputs": {
- "title": "Inputs",
- "description": "Inputs in the form `.` passed to the action function.",
- "default": [],
- "pattern": "^[^.]+[.][^.]+$",
- "type": "array",
- "items": {
- "type": "string",
- "pattern": "^[^.]+[.][^.]+$"
- }
- },
- "outputs": {
- "title": "Outputs",
- "description": "Outputs in the form `.` changed by the action function.",
- "default": [],
- "pattern": "^[^.]+[.][^.]+$",
- "type": "array",
- "items": {
- "type": "string",
- "pattern": "^[^.]+[.][^.]+$"
- }
- }
- },
- "additionalProperties": false
- },
- "AgGrid": {
- "title": "AgGrid",
- "description": "Wrapper for `dash-ag-grid.AgGrid` to visualize grids in dashboard.\n\nArgs:\n type (Literal[\"ag_grid\"]): Defaults to `\"ag_grid\"`.\n figure (CapturedCallable): AgGrid like object to be displayed. For more information see:\n [`dash-ag-grid.AgGrid`](https://dash.plotly.com/dash-ag-grid).\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "ag_grid",
- "enum": ["ag_grid"],
- "type": "string"
- },
- "title": {
- "title": "Title",
- "description": "Title of the AgGrid",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "Button": {
- "title": "Button",
- "description": "Component provided to `Page` to trigger any defined `action` in `Page`.\n\nArgs:\n type (Literal[\"button\"]): Defaults to `\"button\"`.\n text (str): Text to be displayed on button. Defaults to `\"Click me!\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "button",
- "enum": ["button"],
- "type": "string"
- },
- "text": {
- "title": "Text",
- "description": "Text to be displayed on button.",
- "default": "Click me!",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "Card": {
- "title": "Card",
- "description": "Creates a card utilizing `dcc.Markdown` as title and text component.\n\nArgs:\n type (Literal[\"card\"]): Defaults to `\"card\"`.\n text (str): Markdown string to create card title/text that should adhere to the CommonMark Spec.\n href (str): URL (relative or absolute) to navigate to. If not provided the Card serves as a text card\n only. Defaults to `\"\"`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "card",
- "enum": ["card"],
- "type": "string"
- },
- "text": {
- "title": "Text",
- "description": "Markdown string to create card title/text that should adhere to the CommonMark Spec.",
- "type": "string"
- },
- "href": {
- "title": "Href",
- "description": "URL (relative or absolute) to navigate to. If not provided the Card serves as a text card only.",
- "default": "",
- "type": "string"
- }
- },
- "required": ["text"],
- "additionalProperties": false
- },
- "Figure": {
- "title": "Figure",
- "description": "Creates a figure-like object that can be displayed in the dashboard and is reactive to controls.\n\nArgs:\n type (Literal[\"figure\"]): Defaults to `\"figure\"`.\n figure (CapturedCallable): See [`vizro.figures`][vizro.figures].",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "figure",
- "enum": ["figure"],
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "Graph": {
- "title": "Graph",
- "description": "Wrapper for `dcc.Graph` to visualize charts in dashboard.\n\nArgs:\n type (Literal[\"graph\"]): Defaults to `\"graph\"`.\n figure (CapturedCallable): See [`CapturedCallable`][vizro.models.types.CapturedCallable].\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "graph",
- "enum": ["graph"],
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "Table": {
- "title": "Table",
- "description": "Wrapper for `dash_table.DataTable` to visualize tables in dashboard.\n\nArgs:\n type (Literal[\"table\"]): Defaults to `\"table\"`.\n figure (CapturedCallable): Table like object to be displayed. For more information see:\n [`dash_table.DataTable`](https://dash.plotly.com/datatable).\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "table",
- "enum": ["table"],
- "type": "string"
- },
- "title": {
- "title": "Title",
- "description": "Title of the table",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "Tabs": {
- "title": "Tabs",
- "description": "Tabs to group together a set of containers on a page.\n\nArgs:\n type (Literal[\"tabs\"]): Defaults to `\"tabs\"`.\n tabs (List[Container]): See [`Container`][vizro.models.Container].",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "tabs",
- "enum": ["tabs"],
- "type": "string"
- },
- "tabs": {
- "title": "Tabs",
- "type": "array",
- "items": {
- "$ref": "#/definitions/Container"
- }
- }
- },
- "required": ["tabs"],
- "additionalProperties": false
- },
- "Layout": {
- "title": "Layout",
- "description": "Grid specification to place chart/components on the [`Page`][vizro.models.Page].\n\nArgs:\n grid (List[List[int]]): Grid specification to arrange components on screen.\n row_gap (str): Gap between rows in px. Defaults to `\"12px\"`.\n col_gap (str): Gap between columns in px. Defaults to `\"12px\"`.\n row_min_height (str): Minimum row height in px. Defaults to `\"0px\"`.\n col_min_width (str): Minimum column width in px. Defaults to `\"0px\"`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "grid": {
- "title": "Grid",
- "description": "Grid specification to arrange components on screen.",
- "type": "array",
- "items": {
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- },
- "row_gap": {
- "title": "Row Gap",
- "description": "Gap between rows in px. Defaults to 12px.",
- "default": "24px",
- "pattern": "[0-9]+px",
- "type": "string"
- },
- "col_gap": {
- "title": "Col Gap",
- "description": "Gap between columns in px. Defaults to 12px.",
- "default": "24px",
- "pattern": "[0-9]+px",
- "type": "string"
- },
- "row_min_height": {
- "title": "Row Min Height",
- "description": "Minimum row height in px. Defaults to 0px.",
- "default": "0px",
- "pattern": "[0-9]+px",
- "type": "string"
- },
- "col_min_width": {
- "title": "Col Min Width",
- "description": "Minimum column width in px. Defaults to 0px.",
- "default": "0px",
- "pattern": "[0-9]+px",
- "type": "string"
- }
- },
- "required": ["grid"],
- "additionalProperties": false
- },
- "Container": {
- "title": "Container",
- "description": "Container to group together a set of components on a page.\n\nArgs:\n type (Literal[\"container\"]): Defaults to `\"container\"`.\n components (List[ComponentType]): See [ComponentType][vizro.models.types.ComponentType]. At least one component\n has to be provided.\n title (str): Title to be displayed.\n layout (Layout): Layout to place components in. Defaults to `None`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "container",
- "enum": ["container"],
- "type": "string"
- },
- "components": {
- "title": "Components",
- "type": "array",
- "items": {
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "ag_grid": "#/definitions/AgGrid",
- "button": "#/definitions/Button",
- "card": "#/definitions/Card",
- "container": "#/definitions/Container",
- "figure": "#/definitions/Figure",
- "graph": "#/definitions/Graph",
- "table": "#/definitions/Table",
- "tabs": "#/definitions/Tabs"
- }
- },
- "oneOf": [
- {
- "$ref": "#/definitions/AgGrid"
- },
- {
- "$ref": "#/definitions/Button"
- },
- {
- "$ref": "#/definitions/Card"
- },
- {
- "$ref": "#/definitions/Container"
- },
- {
- "$ref": "#/definitions/Figure"
- },
- {
- "$ref": "#/definitions/Graph"
- },
- {
- "$ref": "#/definitions/Table"
- },
- {
- "$ref": "#/definitions/Tabs"
- }
- ]
- }
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed.",
- "type": "string"
- },
- "layout": {
- "$ref": "#/definitions/Layout"
- }
- },
- "required": ["components", "title"],
- "additionalProperties": false
- },
- "OptionsDictType": {
- "title": "OptionsDictType",
- "type": "object",
- "properties": {
- "label": {
- "title": "Label",
- "type": "string"
- },
- "value": {
- "title": "Value",
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "string",
- "format": "date"
- }
- ]
- }
- },
- "required": ["label", "value"],
- "additionalProperties": false
- },
- "Checklist": {
- "title": "Checklist",
- "description": "Categorical multi-option selector `Checklist`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.Checklist`](https://dash.plotly.com/dash-core-components/checklist).\n\nArgs:\n type (Literal[\"checklist\"]): Defaults to `\"checklist\"`.\n options (OptionsType): See [`OptionsType`][vizro.models.types.OptionsType]. Defaults to `[]`.\n value (Optional[MultiValueType]): See [`MultiValueType`][vizro.models.types.MultiValueType]. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "checklist",
- "enum": ["checklist"],
- "type": "string"
- },
- "options": {
- "title": "Options",
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "boolean"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string",
- "format": "date"
- }
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/definitions/OptionsDictType"
- }
- }
- ]
- },
- "value": {
- "title": "Value",
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "boolean"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string",
- "format": "date"
- }
- }
- ]
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "DatePicker": {
- "title": "DatePicker",
- "description": "Temporal single/range option selector `DatePicker`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or [`Parameter`][vizro.models.Parameter].\nBased on the underlying [`dmc.DatePicker`](https://www.dash-mantine-components.com/components/datepicker) or\n[`dmc.DateRangePicker`](https://www.dash-mantine-components.com/components/datepicker#daterangepicker).\n\nArgs:\n type (Literal[\"date_picker\"]): Defaults to `\"date_picker\"`.\n min (Optional[date]): Start date for date picker. Defaults to `None`.\n max (Optional[date]): End date for date picker. Defaults to `None`.\n value (Union[List[date], date]): Default date/dates for date picker. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n range (bool): Boolean flag for displaying range picker. Default to `True`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "date_picker",
- "enum": ["date_picker"],
- "type": "string"
- },
- "min": {
- "title": "Min",
- "description": "Start date for date picker.",
- "type": "string",
- "format": "date"
- },
- "max": {
- "title": "Max",
- "description": "End date for date picker.",
- "type": "string",
- "format": "date"
- },
- "value": {
- "title": "Value",
- "description": "Default date for date picker",
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string",
- "format": "date"
- }
- },
- {
- "type": "string",
- "format": "date"
- }
- ]
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed.",
- "default": "",
- "type": "string"
- },
- "range": {
- "title": "Range",
- "description": "Boolean flag for displaying range picker.",
- "default": true,
- "type": "boolean"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "Dropdown": {
- "title": "Dropdown",
- "description": "Categorical single/multi-option selector `Dropdown`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.Dropdown`](https://dash.plotly.com/dash-core-components/dropdown).\n\nArgs:\n type (Literal[\"dropdown\"]): Defaults to `\"dropdown\"`.\n options (OptionsType): See [`OptionsType`][vizro.models.types.OptionsType]. Defaults to `[]`.\n value (Optional[Union[SingleValueType, MultiValueType]]): See\n [`SingleValueType`][vizro.models.types.SingleValueType] and\n [`MultiValueType`][vizro.models.types.MultiValueType]. Defaults to `None`.\n multi (bool): Whether to allow selection of multiple values. Defaults to `True`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "dropdown",
- "enum": ["dropdown"],
- "type": "string"
- },
- "options": {
- "title": "Options",
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "boolean"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string",
- "format": "date"
- }
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/definitions/OptionsDictType"
- }
- }
- ]
- },
- "value": {
- "title": "Value",
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "string",
- "format": "date"
- },
- {
- "type": "array",
- "items": {
- "type": "boolean"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string",
- "format": "date"
- }
- }
- ]
- },
- "multi": {
- "title": "Multi",
- "description": "Whether to allow selection of multiple values",
- "default": true,
- "type": "boolean"
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "RadioItems": {
- "title": "RadioItems",
- "description": "Categorical single-option selector `RadioItems`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.RadioItems`](https://dash.plotly.com/dash-core-components/radioitems).\n\nArgs:\n type (Literal[\"radio_items\"]): Defaults to `\"radio_items\"`.\n options (OptionsType): See [`OptionsType`][vizro.models.types.OptionsType]. Defaults to `[]`.\n value (Optional[SingleValueType]): See [`SingleValueType`][vizro.models.types.SingleValueType].\n Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "radio_items",
- "enum": ["radio_items"],
- "type": "string"
- },
- "options": {
- "title": "Options",
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "boolean"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "string",
- "format": "date"
- }
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/definitions/OptionsDictType"
- }
- }
- ]
- },
- "value": {
- "title": "Value",
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "number"
- },
- {
- "type": "string"
- },
- {
- "type": "string",
- "format": "date"
- }
- ]
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "RangeSlider": {
- "title": "RangeSlider",
- "description": "Numeric multi-option selector `RangeSlider`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.RangeSlider`](https://dash.plotly.com/dash-core-components/rangeslider).\n\nArgs:\n type (Literal[\"range_slider\"]): Defaults to `\"range_slider\"`.\n min (Optional[float]): Start value for slider. Defaults to `None`.\n max (Optional[float]): End value for slider. Defaults to `None`.\n step (Optional[float]): Step-size for marks on slider. Defaults to `None`.\n marks (Optional[Dict[int, Union[str, dict]]]): Marks to be displayed on slider. Defaults to `{}`.\n value (Optional[List[float]]): Default start and end value for slider. Must be 2 items. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "range_slider",
- "enum": ["range_slider"],
- "type": "string"
- },
- "min": {
- "title": "Min",
- "description": "Start value for slider.",
- "type": "number"
- },
- "max": {
- "title": "Max",
- "description": "End value for slider.",
- "type": "number"
- },
- "step": {
- "title": "Step",
- "description": "Step-size for marks on slider.",
- "type": "number"
- },
- "marks": {
- "title": "Marks",
- "description": "Marks to be displayed on slider.",
- "default": {},
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "object"
- }
- ]
- }
- },
- "value": {
- "title": "Value",
- "description": "Default start and end value for slider",
- "minItems": 2,
- "maxItems": 2,
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed.",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "Slider": {
- "title": "Slider",
- "description": "Numeric single-option selector `Slider`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.Slider`](https://dash.plotly.com/dash-core-components/slider).\n\nArgs:\n type (Literal[\"range_slider\"]): Defaults to `\"range_slider\"`.\n min (Optional[float]): Start value for slider. Defaults to `None`.\n max (Optional[float]): End value for slider. Defaults to `None`.\n step (Optional[float]): Step-size for marks on slider. Defaults to `None`.\n marks (Optional[Dict[int, Union[str, dict]]]): Marks to be displayed on slider. Defaults to `{}`.\n value (Optional[float]): Default value for slider. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "slider",
- "enum": ["slider"],
- "type": "string"
- },
- "min": {
- "title": "Min",
- "description": "Start value for slider.",
- "type": "number"
- },
- "max": {
- "title": "Max",
- "description": "End value for slider.",
- "type": "number"
- },
- "step": {
- "title": "Step",
- "description": "Step-size for marks on slider.",
- "type": "number"
- },
- "marks": {
- "title": "Marks",
- "description": "Marks to be displayed on slider.",
- "default": {},
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "object"
- }
- ]
- }
- },
- "value": {
- "title": "Value",
- "description": "Default value for slider.",
- "type": "number"
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed.",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "additionalProperties": false
- },
- "Filter": {
- "title": "Filter",
- "description": "Filter the data supplied to `targets` on the [`Page`][vizro.models.Page].\n\nExamples:\n >>> print(repr(Filter(column=\"species\")))\n\nArgs:\n type (Literal[\"filter\"]): Defaults to `\"filter\"`.\n column (str): Column of `DataFrame` to filter.\n targets (List[ModelID]): Target component to be affected by filter. If none are given then target all components\n on the page that use `column`.\n selector (SelectorType): See [SelectorType][vizro.models.types.SelectorType]. Defaults to `None`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "filter",
- "enum": ["filter"],
- "type": "string"
- },
- "column": {
- "title": "Column",
- "description": "Column of DataFrame to filter.",
- "type": "string"
- },
- "targets": {
- "title": "Targets",
- "description": "Target component to be affected by filter. If none are given then target all components on the page that use `column`.",
- "default": [],
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "selector": {
- "title": "Selector",
- "description": "Selectors to be used inside a control.",
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "checklist": "#/definitions/Checklist",
- "date_picker": "#/definitions/DatePicker",
- "dropdown": "#/definitions/Dropdown",
- "radio_items": "#/definitions/RadioItems",
- "range_slider": "#/definitions/RangeSlider",
- "slider": "#/definitions/Slider"
- }
- },
- "oneOf": [
- {
- "$ref": "#/definitions/Checklist"
- },
- {
- "$ref": "#/definitions/DatePicker"
- },
- {
- "$ref": "#/definitions/Dropdown"
- },
- {
- "$ref": "#/definitions/RadioItems"
- },
- {
- "$ref": "#/definitions/RangeSlider"
- },
- {
- "$ref": "#/definitions/Slider"
- }
- ]
- }
- },
- "required": ["column"],
- "additionalProperties": false
- },
- "Parameter": {
- "title": "Parameter",
- "description": "Alter the arguments supplied to any `targets` on the [`Page`][vizro.models.Page].\n\nExamples:\n >>> Parameter(targets=[\"scatter.x\"], selector=Slider(min=0, max=1, default=0.8, title=\"Bubble opacity\"))\n\nArgs:\n type (Literal[\"parameter\"]): Defaults to `\"parameter\"`.\n targets (List[str]): Targets in the form of `.`.\n selector (SelectorType): See [SelectorType][vizro.models.types.SelectorType]. Converts selector value\n `\"NONE\"` into `None` to allow optional parameters.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "parameter",
- "enum": ["parameter"],
- "type": "string"
- },
- "targets": {
- "title": "Targets",
- "description": "Targets in the form of `.`.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "selector": {
- "title": "Selector",
- "description": "Selectors to be used inside a control.",
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "checklist": "#/definitions/Checklist",
- "date_picker": "#/definitions/DatePicker",
- "dropdown": "#/definitions/Dropdown",
- "radio_items": "#/definitions/RadioItems",
- "range_slider": "#/definitions/RangeSlider",
- "slider": "#/definitions/Slider"
- }
- },
- "oneOf": [
- {
- "$ref": "#/definitions/Checklist"
- },
- {
- "$ref": "#/definitions/DatePicker"
- },
- {
- "$ref": "#/definitions/Dropdown"
- },
- {
- "$ref": "#/definitions/RadioItems"
- },
- {
- "$ref": "#/definitions/RangeSlider"
- },
- {
- "$ref": "#/definitions/Slider"
- }
- ]
- }
- },
- "required": ["targets", "selector"],
- "additionalProperties": false
- },
- "ActionsChain": {
- "title": "ActionsChain",
- "description": "All models that are registered to the model manager should inherit from this class.\n\nArgs:\n id (str): ID to identify model. Must be unique throughout the whole dashboard. Defaults to `\"\"`.\n When no ID is chosen, ID will be automatically generated.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "trigger": {
- "title": "Trigger",
- "type": "array",
- "items": [
- {
- "title": "Component Id",
- "type": "string"
- },
- {
- "title": "Component Property",
- "type": "string"
- }
- ],
- "minItems": 2,
- "maxItems": 2
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/Action"
- }
- }
- },
- "required": ["trigger"],
- "additionalProperties": false
- },
- "Page": {
- "title": "Page",
- "description": "A page in [`Dashboard`][vizro.models.Dashboard] with its own URL path and place in the `Navigation`.\n\nArgs:\n components (List[ComponentType]): See [ComponentType][vizro.models.types.ComponentType]. At least one component\n has to be provided.\n title (str): Title to be displayed.\n description (str): Description for meta tags.\n layout (Layout): Layout to place components in. Defaults to `None`.\n controls (List[ControlType]): See [ControlType][vizro.models.types.ControlType]. Defaults to `[]`.\n path (str): Path to navigate to page. Defaults to `\"\"`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "components": {
- "title": "Components",
- "type": "array",
- "items": {
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "ag_grid": "#/definitions/AgGrid",
- "button": "#/definitions/Button",
- "card": "#/definitions/Card",
- "container": "#/definitions/Container",
- "figure": "#/definitions/Figure",
- "graph": "#/definitions/Graph",
- "table": "#/definitions/Table",
- "tabs": "#/definitions/Tabs"
- }
- },
- "oneOf": [
- {
- "$ref": "#/definitions/AgGrid"
- },
- {
- "$ref": "#/definitions/Button"
- },
- {
- "$ref": "#/definitions/Card"
- },
- {
- "$ref": "#/definitions/Container"
- },
- {
- "$ref": "#/definitions/Figure"
- },
- {
- "$ref": "#/definitions/Graph"
- },
- {
- "$ref": "#/definitions/Table"
- },
- {
- "$ref": "#/definitions/Tabs"
- }
- ]
- }
- },
- "title": {
- "title": "Title",
- "description": "Title to be displayed.",
- "type": "string"
- },
- "description": {
- "title": "Description",
- "description": "Description for meta tags.",
- "default": "",
- "type": "string"
- },
- "layout": {
- "$ref": "#/definitions/Layout"
- },
- "controls": {
- "title": "Controls",
- "default": [],
- "type": "array",
- "items": {
- "discriminator": {
- "propertyName": "type",
- "mapping": {
- "filter": "#/definitions/Filter",
- "parameter": "#/definitions/Parameter"
- }
- },
- "oneOf": [
- {
- "$ref": "#/definitions/Filter"
- },
- {
- "$ref": "#/definitions/Parameter"
- }
- ]
- }
- },
- "path": {
- "title": "Path",
- "description": "Path to navigate to page.",
- "default": "",
- "type": "string"
- },
- "actions": {
- "title": "Actions",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/ActionsChain"
- }
- }
- },
- "required": ["components", "title"],
- "additionalProperties": false
- },
- "Accordion": {
- "title": "Accordion",
- "description": "Accordion to be used as nav_selector in [`Navigation`][vizro.models.Navigation].\n\nArgs:\n type (Literal[\"accordion\"]): Defaults to `\"accordion\"`.\n pages (Dict[str, List[str]]): Mapping from name of a pages group to a list of page IDs. Defaults to `{}`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "accordion",
- "enum": ["accordion"],
- "type": "string"
- },
- "pages": {
- "title": "Pages",
- "description": "Mapping from name of a pages group to a list of page IDs.",
- "default": {},
- "type": "object",
- "additionalProperties": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "additionalProperties": false
- },
- "NavLink": {
- "title": "NavLink",
- "description": "Icon that serves as a navigation link to be used in navigation bar of Dashboard.\n\nArgs:\n pages (NavPagesType): See [`NavPagesType`][vizro.models.types.NavPagesType]. Defaults to `[]`.\n label (str): Text description of the icon for use in tooltip.\n icon (str): Icon name from [Google Material icons library](https://fonts.google.com/icons). Defaults to `\"\"`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "pages": {
- "title": "Pages",
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- ]
- },
- "label": {
- "title": "Label",
- "description": "Text description of the icon for use in tooltip.",
- "type": "string"
- },
- "icon": {
- "title": "Icon",
- "description": "Icon name from Google Material icons library.",
- "default": "",
- "type": "string"
- }
- },
- "required": ["label"],
- "additionalProperties": false
- },
- "NavBar": {
- "title": "NavBar",
- "description": "Navigation bar to be used as a nav_selector for `Navigation`.\n\nArgs:\n type (Literal[\"nav_bar\"]): Defaults to `\"nav_bar\"`.\n pages (Dict[str, List[str]]): Mapping from name of a pages group to a list of page IDs. Defaults to `{}`.\n items (List[NavLink]): See [`NavLink`][vizro.models.NavLink]. Defaults to `[]`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "type": {
- "title": "Type",
- "default": "nav_bar",
- "enum": ["nav_bar"],
- "type": "string"
- },
- "pages": {
- "title": "Pages",
- "description": "Mapping from name of a pages group to a list of page IDs.",
- "default": {},
- "type": "object",
- "additionalProperties": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "items": {
- "title": "Items",
- "default": [],
- "type": "array",
- "items": {
- "$ref": "#/definitions/NavLink"
- }
- }
- },
- "additionalProperties": false
- },
- "Navigation": {
- "title": "Navigation",
- "description": "Navigation in [`Dashboard`][vizro.models.Dashboard] to structure [`Pages`][vizro.models.Page].\n\nArgs:\n pages (NavPagesType): See [`NavPagesType`][vizro.models.types.NavPagesType]. Defaults to `[]`.\n nav_selector (NavSelectorType): See [`NavSelectorType`][vizro.models.types.NavSelectorType].\n Defaults to `None`.",
- "type": "object",
- "properties": {
- "id": {
- "title": "Id",
- "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
- "default": "",
- "type": "string"
- },
- "pages": {
- "title": "Pages",
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "object",
- "additionalProperties": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- ]
- },
- "nav_selector": {
- "title": "Nav Selector",
- "anyOf": [
- {
- "$ref": "#/definitions/Accordion"
- },
- {
- "$ref": "#/definitions/NavBar"
- }
- ]
- }
- },
- "additionalProperties": false
- }
- }
-}
diff --git a/vizro-core/schemas/0.1.19.dev0.json b/vizro-core/schemas/0.1.19.json
similarity index 100%
rename from vizro-core/schemas/0.1.19.dev0.json
rename to vizro-core/schemas/0.1.19.json
diff --git a/vizro-core/src/vizro/__init__.py b/vizro-core/src/vizro/__init__.py
index 79534b0e3..e918a5f53 100644
--- a/vizro-core/src/vizro/__init__.py
+++ b/vizro-core/src/vizro/__init__.py
@@ -5,6 +5,6 @@
__all__ = ["Vizro"]
-__version__ = "0.1.19.dev0"
+__version__ = "0.1.19"
logging.basicConfig(level=os.getenv("VIZRO_LOG_LEVEL", "WARNING"))
From 02781ccf33db6eb5e32976b7bb01780e4fe96513 Mon Sep 17 00:00:00 2001
From: Vizro Team <145135826+vizro-svc@users.noreply.github.com>
Date: Tue, 16 Jul 2024 14:33:41 +0000
Subject: [PATCH 3/3] [Release] Bump vizro-core to 0.1.20.dev0 [skip ci]
---
.../changelog.d/20240716_143136_runner.md | 48 +
vizro-core/schemas/0.1.20.dev0.json | 1416 +++++++++++++++++
vizro-core/src/vizro/__init__.py | 2 +-
3 files changed, 1465 insertions(+), 1 deletion(-)
create mode 100644 vizro-core/changelog.d/20240716_143136_runner.md
create mode 100644 vizro-core/schemas/0.1.20.dev0.json
diff --git a/vizro-core/changelog.d/20240716_143136_runner.md b/vizro-core/changelog.d/20240716_143136_runner.md
new file mode 100644
index 000000000..f1f65e73c
--- /dev/null
+++ b/vizro-core/changelog.d/20240716_143136_runner.md
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
diff --git a/vizro-core/schemas/0.1.20.dev0.json b/vizro-core/schemas/0.1.20.dev0.json
new file mode 100644
index 000000000..99492cc9f
--- /dev/null
+++ b/vizro-core/schemas/0.1.20.dev0.json
@@ -0,0 +1,1416 @@
+{
+ "title": "Dashboard",
+ "description": "Vizro Dashboard to be used within [`Vizro`][vizro._vizro.Vizro.build].\n\nArgs:\n pages (List[Page]): See [`Page`][vizro.models.Page].\n theme (Literal[\"vizro_dark\", \"vizro_light\"]): Layout theme to be applied across dashboard.\n Defaults to `vizro_dark`.\n navigation (Navigation): See [`Navigation`][vizro.models.Navigation]. Defaults to `None`.\n title (str): Dashboard title to appear on every page on top left-side. Defaults to `\"\"`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "pages": {
+ "title": "Pages",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Page"
+ }
+ },
+ "theme": {
+ "title": "Theme",
+ "description": "Layout theme to be applied across dashboard. Defaults to `vizro_dark`",
+ "default": "vizro_dark",
+ "enum": ["vizro_dark", "vizro_light"],
+ "type": "string"
+ },
+ "navigation": {
+ "$ref": "#/definitions/Navigation"
+ },
+ "title": {
+ "title": "Title",
+ "description": "Dashboard title to appear on every page on top left-side.",
+ "default": "",
+ "type": "string"
+ }
+ },
+ "required": ["pages"],
+ "additionalProperties": false,
+ "definitions": {
+ "Action": {
+ "title": "Action",
+ "description": "Action to be inserted into `actions` of relevant component.\n\nArgs:\n function (CapturedCallable): Action function. See [`vizro.actions`][vizro.actions].\n inputs (List[str]): Inputs in the form `.` passed to the action function.\n Defaults to `[]`.\n outputs (List[str]): Outputs in the form `.` changed by the action function.\n Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "inputs": {
+ "title": "Inputs",
+ "description": "Inputs in the form `.` passed to the action function.",
+ "default": [],
+ "pattern": "^[^.]+[.][^.]+$",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "pattern": "^[^.]+[.][^.]+$"
+ }
+ },
+ "outputs": {
+ "title": "Outputs",
+ "description": "Outputs in the form `.` changed by the action function.",
+ "default": [],
+ "pattern": "^[^.]+[.][^.]+$",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "pattern": "^[^.]+[.][^.]+$"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "AgGrid": {
+ "title": "AgGrid",
+ "description": "Wrapper for `dash-ag-grid.AgGrid` to visualize grids in dashboard.\n\nArgs:\n type (Literal[\"ag_grid\"]): Defaults to `\"ag_grid\"`.\n figure (CapturedCallable): Function that returns a Dash AgGrid. See [`vizro.tables`][vizro.tables].\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "ag_grid",
+ "enum": ["ag_grid"],
+ "type": "string"
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title of the AgGrid",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Button": {
+ "title": "Button",
+ "description": "Component provided to `Page` to trigger any defined `action` in `Page`.\n\nArgs:\n type (Literal[\"button\"]): Defaults to `\"button\"`.\n text (str): Text to be displayed on button. Defaults to `\"Click me!\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "button",
+ "enum": ["button"],
+ "type": "string"
+ },
+ "text": {
+ "title": "Text",
+ "description": "Text to be displayed on button.",
+ "default": "Click me!",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Card": {
+ "title": "Card",
+ "description": "Creates a card utilizing `dcc.Markdown` as title and text component.\n\nArgs:\n type (Literal[\"card\"]): Defaults to `\"card\"`.\n text (str): Markdown string to create card title/text that should adhere to the CommonMark Spec.\n href (str): URL (relative or absolute) to navigate to. If not provided the Card serves as a text card\n only. Defaults to `\"\"`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "card",
+ "enum": ["card"],
+ "type": "string"
+ },
+ "text": {
+ "title": "Text",
+ "description": "Markdown string to create card title/text that should adhere to the CommonMark Spec.",
+ "type": "string"
+ },
+ "href": {
+ "title": "Href",
+ "description": "URL (relative or absolute) to navigate to. If not provided the Card serves as a text card only.",
+ "default": "",
+ "type": "string"
+ }
+ },
+ "required": ["text"],
+ "additionalProperties": false
+ },
+ "Figure": {
+ "title": "Figure",
+ "description": "Creates a figure-like object that can be displayed in the dashboard and is reactive to controls.\n\nArgs:\n type (Literal[\"figure\"]): Defaults to `\"figure\"`.\n figure (CapturedCallable): Function that returns a figure-like object. See [`vizro.figures`][vizro.figures].",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "figure",
+ "enum": ["figure"],
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Graph": {
+ "title": "Graph",
+ "description": "Wrapper for `dcc.Graph` to visualize charts in dashboard.\n\nArgs:\n type (Literal[\"graph\"]): Defaults to `\"graph\"`.\n figure (CapturedCallable): Function that returns a graph.\n See `CapturedCallable`][vizro.models.types.CapturedCallable].\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "graph",
+ "enum": ["graph"],
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Table": {
+ "title": "Table",
+ "description": "Wrapper for `dash_table.DataTable` to visualize tables in dashboard.\n\nArgs:\n type (Literal[\"table\"]): Defaults to `\"table\"`.\n figure (CapturedCallable): Function that returns a Dash DataTable. See [`vizro.tables`][vizro.tables].\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "table",
+ "enum": ["table"],
+ "type": "string"
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title of the table",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Tabs": {
+ "title": "Tabs",
+ "description": "Tabs to group together a set of containers on a page.\n\nArgs:\n type (Literal[\"tabs\"]): Defaults to `\"tabs\"`.\n tabs (List[Container]): See [`Container`][vizro.models.Container].",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "tabs",
+ "enum": ["tabs"],
+ "type": "string"
+ },
+ "tabs": {
+ "title": "Tabs",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Container"
+ }
+ }
+ },
+ "required": ["tabs"],
+ "additionalProperties": false
+ },
+ "Layout": {
+ "title": "Layout",
+ "description": "Grid specification to place chart/components on the [`Page`][vizro.models.Page].\n\nArgs:\n grid (List[List[int]]): Grid specification to arrange components on screen.\n row_gap (str): Gap between rows in px. Defaults to `\"12px\"`.\n col_gap (str): Gap between columns in px. Defaults to `\"12px\"`.\n row_min_height (str): Minimum row height in px. Defaults to `\"0px\"`.\n col_min_width (str): Minimum column width in px. Defaults to `\"0px\"`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "grid": {
+ "title": "Grid",
+ "description": "Grid specification to arrange components on screen.",
+ "type": "array",
+ "items": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ }
+ },
+ "row_gap": {
+ "title": "Row Gap",
+ "description": "Gap between rows in px. Defaults to 12px.",
+ "default": "24px",
+ "pattern": "[0-9]+px",
+ "type": "string"
+ },
+ "col_gap": {
+ "title": "Col Gap",
+ "description": "Gap between columns in px. Defaults to 12px.",
+ "default": "24px",
+ "pattern": "[0-9]+px",
+ "type": "string"
+ },
+ "row_min_height": {
+ "title": "Row Min Height",
+ "description": "Minimum row height in px. Defaults to 0px.",
+ "default": "0px",
+ "pattern": "[0-9]+px",
+ "type": "string"
+ },
+ "col_min_width": {
+ "title": "Col Min Width",
+ "description": "Minimum column width in px. Defaults to 0px.",
+ "default": "0px",
+ "pattern": "[0-9]+px",
+ "type": "string"
+ }
+ },
+ "required": ["grid"],
+ "additionalProperties": false
+ },
+ "Container": {
+ "title": "Container",
+ "description": "Container to group together a set of components on a page.\n\nArgs:\n type (Literal[\"container\"]): Defaults to `\"container\"`.\n components (List[ComponentType]): See [ComponentType][vizro.models.types.ComponentType]. At least one component\n has to be provided.\n title (str): Title to be displayed.\n layout (Layout): Layout to place components in. Defaults to `None`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "container",
+ "enum": ["container"],
+ "type": "string"
+ },
+ "components": {
+ "title": "Components",
+ "type": "array",
+ "items": {
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "ag_grid": "#/definitions/AgGrid",
+ "button": "#/definitions/Button",
+ "card": "#/definitions/Card",
+ "container": "#/definitions/Container",
+ "figure": "#/definitions/Figure",
+ "graph": "#/definitions/Graph",
+ "table": "#/definitions/Table",
+ "tabs": "#/definitions/Tabs"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/definitions/AgGrid"
+ },
+ {
+ "$ref": "#/definitions/Button"
+ },
+ {
+ "$ref": "#/definitions/Card"
+ },
+ {
+ "$ref": "#/definitions/Container"
+ },
+ {
+ "$ref": "#/definitions/Figure"
+ },
+ {
+ "$ref": "#/definitions/Graph"
+ },
+ {
+ "$ref": "#/definitions/Table"
+ },
+ {
+ "$ref": "#/definitions/Tabs"
+ }
+ ]
+ }
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed.",
+ "type": "string"
+ },
+ "layout": {
+ "$ref": "#/definitions/Layout"
+ }
+ },
+ "required": ["components", "title"],
+ "additionalProperties": false
+ },
+ "OptionsDictType": {
+ "title": "OptionsDictType",
+ "type": "object",
+ "properties": {
+ "label": {
+ "title": "Label",
+ "type": "string"
+ },
+ "value": {
+ "title": "Value",
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "string",
+ "format": "date"
+ }
+ ]
+ }
+ },
+ "required": ["label", "value"],
+ "additionalProperties": false
+ },
+ "Checklist": {
+ "title": "Checklist",
+ "description": "Categorical multi-option selector `Checklist`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.Checklist`](https://dash.plotly.com/dash-core-components/checklist).\n\nArgs:\n type (Literal[\"checklist\"]): Defaults to `\"checklist\"`.\n options (OptionsType): See [`OptionsType`][vizro.models.types.OptionsType]. Defaults to `[]`.\n value (Optional[MultiValueType]): See [`MultiValueType`][vizro.models.types.MultiValueType]. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "checklist",
+ "enum": ["checklist"],
+ "type": "string"
+ },
+ "options": {
+ "title": "Options",
+ "default": [],
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OptionsDictType"
+ }
+ }
+ ]
+ },
+ "value": {
+ "title": "Value",
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "date"
+ }
+ }
+ ]
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "DatePicker": {
+ "title": "DatePicker",
+ "description": "Temporal single/range option selector `DatePicker`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or [`Parameter`][vizro.models.Parameter].\nBased on the underlying [`dmc.DatePicker`](https://www.dash-mantine-components.com/components/datepicker) or\n[`dmc.DateRangePicker`](https://www.dash-mantine-components.com/components/datepicker#daterangepicker).\n\nArgs:\n type (Literal[\"date_picker\"]): Defaults to `\"date_picker\"`.\n min (Optional[date]): Start date for date picker. Defaults to `None`.\n max (Optional[date]): End date for date picker. Defaults to `None`.\n value (Union[List[date], date]): Default date/dates for date picker. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n range (bool): Boolean flag for displaying range picker. Default to `True`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "date_picker",
+ "enum": ["date_picker"],
+ "type": "string"
+ },
+ "min": {
+ "title": "Min",
+ "description": "Start date for date picker.",
+ "type": "string",
+ "format": "date"
+ },
+ "max": {
+ "title": "Max",
+ "description": "End date for date picker.",
+ "type": "string",
+ "format": "date"
+ },
+ "value": {
+ "title": "Value",
+ "description": "Default date for date picker",
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "type": "string",
+ "format": "date"
+ }
+ ]
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed.",
+ "default": "",
+ "type": "string"
+ },
+ "range": {
+ "title": "Range",
+ "description": "Boolean flag for displaying range picker.",
+ "default": true,
+ "type": "boolean"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Dropdown": {
+ "title": "Dropdown",
+ "description": "Categorical single/multi-option selector `Dropdown`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.Dropdown`](https://dash.plotly.com/dash-core-components/dropdown).\n\nArgs:\n type (Literal[\"dropdown\"]): Defaults to `\"dropdown\"`.\n options (OptionsType): See [`OptionsType`][vizro.models.types.OptionsType]. Defaults to `[]`.\n value (Optional[Union[SingleValueType, MultiValueType]]): See\n [`SingleValueType`][vizro.models.types.SingleValueType] and\n [`MultiValueType`][vizro.models.types.MultiValueType]. Defaults to `None`.\n multi (bool): Whether to allow selection of multiple values. Defaults to `True`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "dropdown",
+ "enum": ["dropdown"],
+ "type": "string"
+ },
+ "options": {
+ "title": "Options",
+ "default": [],
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OptionsDictType"
+ }
+ }
+ ]
+ },
+ "value": {
+ "title": "Value",
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "string",
+ "format": "date"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "date"
+ }
+ }
+ ]
+ },
+ "multi": {
+ "title": "Multi",
+ "description": "Whether to allow selection of multiple values",
+ "default": true,
+ "type": "boolean"
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "RadioItems": {
+ "title": "RadioItems",
+ "description": "Categorical single-option selector `RadioItems`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.RadioItems`](https://dash.plotly.com/dash-core-components/radioitems).\n\nArgs:\n type (Literal[\"radio_items\"]): Defaults to `\"radio_items\"`.\n options (OptionsType): See [`OptionsType`][vizro.models.types.OptionsType]. Defaults to `[]`.\n value (Optional[SingleValueType]): See [`SingleValueType`][vizro.models.types.SingleValueType].\n Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "radio_items",
+ "enum": ["radio_items"],
+ "type": "string"
+ },
+ "options": {
+ "title": "Options",
+ "default": [],
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "boolean"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/OptionsDictType"
+ }
+ }
+ ]
+ },
+ "value": {
+ "title": "Value",
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "string"
+ },
+ {
+ "type": "string",
+ "format": "date"
+ }
+ ]
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "RangeSlider": {
+ "title": "RangeSlider",
+ "description": "Numeric multi-option selector `RangeSlider`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.RangeSlider`](https://dash.plotly.com/dash-core-components/rangeslider).\n\nArgs:\n type (Literal[\"range_slider\"]): Defaults to `\"range_slider\"`.\n min (Optional[float]): Start value for slider. Defaults to `None`.\n max (Optional[float]): End value for slider. Defaults to `None`.\n step (Optional[float]): Step-size for marks on slider. Defaults to `None`.\n marks (Optional[Dict[int, Union[str, dict]]]): Marks to be displayed on slider. Defaults to `{}`.\n value (Optional[List[float]]): Default start and end value for slider. Must be 2 items. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "range_slider",
+ "enum": ["range_slider"],
+ "type": "string"
+ },
+ "min": {
+ "title": "Min",
+ "description": "Start value for slider.",
+ "type": "number"
+ },
+ "max": {
+ "title": "Max",
+ "description": "End value for slider.",
+ "type": "number"
+ },
+ "step": {
+ "title": "Step",
+ "description": "Step-size for marks on slider.",
+ "type": "number"
+ },
+ "marks": {
+ "title": "Marks",
+ "description": "Marks to be displayed on slider.",
+ "default": {},
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "value": {
+ "title": "Value",
+ "description": "Default start and end value for slider",
+ "minItems": 2,
+ "maxItems": 2,
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed.",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Slider": {
+ "title": "Slider",
+ "description": "Numeric single-option selector `Slider`.\n\nCan be provided to [`Filter`][vizro.models.Filter] or\n[`Parameter`][vizro.models.Parameter]. Based on the underlying\n[`dcc.Slider`](https://dash.plotly.com/dash-core-components/slider).\n\nArgs:\n type (Literal[\"range_slider\"]): Defaults to `\"range_slider\"`.\n min (Optional[float]): Start value for slider. Defaults to `None`.\n max (Optional[float]): End value for slider. Defaults to `None`.\n step (Optional[float]): Step-size for marks on slider. Defaults to `None`.\n marks (Optional[Dict[int, Union[str, dict]]]): Marks to be displayed on slider. Defaults to `{}`.\n value (Optional[float]): Default value for slider. Defaults to `None`.\n title (str): Title to be displayed. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "slider",
+ "enum": ["slider"],
+ "type": "string"
+ },
+ "min": {
+ "title": "Min",
+ "description": "Start value for slider.",
+ "type": "number"
+ },
+ "max": {
+ "title": "Max",
+ "description": "End value for slider.",
+ "type": "number"
+ },
+ "step": {
+ "title": "Step",
+ "description": "Step-size for marks on slider.",
+ "type": "number"
+ },
+ "marks": {
+ "title": "Marks",
+ "description": "Marks to be displayed on slider.",
+ "default": {},
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "value": {
+ "title": "Value",
+ "description": "Default value for slider.",
+ "type": "number"
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed.",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Filter": {
+ "title": "Filter",
+ "description": "Filter the data supplied to `targets` on the [`Page`][vizro.models.Page].\n\nExamples:\n >>> print(repr(Filter(column=\"species\")))\n\nArgs:\n type (Literal[\"filter\"]): Defaults to `\"filter\"`.\n column (str): Column of `DataFrame` to filter.\n targets (List[ModelID]): Target component to be affected by filter. If none are given then target all components\n on the page that use `column`.\n selector (SelectorType): See [SelectorType][vizro.models.types.SelectorType]. Defaults to `None`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "filter",
+ "enum": ["filter"],
+ "type": "string"
+ },
+ "column": {
+ "title": "Column",
+ "description": "Column of DataFrame to filter.",
+ "type": "string"
+ },
+ "targets": {
+ "title": "Targets",
+ "description": "Target component to be affected by filter. If none are given then target all components on the page that use `column`.",
+ "default": [],
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "selector": {
+ "title": "Selector",
+ "description": "Selectors to be used inside a control.",
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "checklist": "#/definitions/Checklist",
+ "date_picker": "#/definitions/DatePicker",
+ "dropdown": "#/definitions/Dropdown",
+ "radio_items": "#/definitions/RadioItems",
+ "range_slider": "#/definitions/RangeSlider",
+ "slider": "#/definitions/Slider"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/definitions/Checklist"
+ },
+ {
+ "$ref": "#/definitions/DatePicker"
+ },
+ {
+ "$ref": "#/definitions/Dropdown"
+ },
+ {
+ "$ref": "#/definitions/RadioItems"
+ },
+ {
+ "$ref": "#/definitions/RangeSlider"
+ },
+ {
+ "$ref": "#/definitions/Slider"
+ }
+ ]
+ }
+ },
+ "required": ["column"],
+ "additionalProperties": false
+ },
+ "Parameter": {
+ "title": "Parameter",
+ "description": "Alter the arguments supplied to any `targets` on the [`Page`][vizro.models.Page].\n\nExamples:\n >>> Parameter(targets=[\"scatter.x\"], selector=Slider(min=0, max=1, default=0.8, title=\"Bubble opacity\"))\n\nArgs:\n type (Literal[\"parameter\"]): Defaults to `\"parameter\"`.\n targets (List[str]): Targets in the form of `.`.\n selector (SelectorType): See [SelectorType][vizro.models.types.SelectorType]. Converts selector value\n `\"NONE\"` into `None` to allow optional parameters.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "parameter",
+ "enum": ["parameter"],
+ "type": "string"
+ },
+ "targets": {
+ "title": "Targets",
+ "description": "Targets in the form of `.`.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "selector": {
+ "title": "Selector",
+ "description": "Selectors to be used inside a control.",
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "checklist": "#/definitions/Checklist",
+ "date_picker": "#/definitions/DatePicker",
+ "dropdown": "#/definitions/Dropdown",
+ "radio_items": "#/definitions/RadioItems",
+ "range_slider": "#/definitions/RangeSlider",
+ "slider": "#/definitions/Slider"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/definitions/Checklist"
+ },
+ {
+ "$ref": "#/definitions/DatePicker"
+ },
+ {
+ "$ref": "#/definitions/Dropdown"
+ },
+ {
+ "$ref": "#/definitions/RadioItems"
+ },
+ {
+ "$ref": "#/definitions/RangeSlider"
+ },
+ {
+ "$ref": "#/definitions/Slider"
+ }
+ ]
+ }
+ },
+ "required": ["targets", "selector"],
+ "additionalProperties": false
+ },
+ "ActionsChain": {
+ "title": "ActionsChain",
+ "description": "All models that are registered to the model manager should inherit from this class.\n\nArgs:\n id (str): ID to identify model. Must be unique throughout the whole dashboard. Defaults to `\"\"`.\n When no ID is chosen, ID will be automatically generated.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "trigger": {
+ "title": "Trigger",
+ "type": "array",
+ "items": [
+ {
+ "title": "Component Id",
+ "type": "string"
+ },
+ {
+ "title": "Component Property",
+ "type": "string"
+ }
+ ],
+ "minItems": 2,
+ "maxItems": 2
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Action"
+ }
+ }
+ },
+ "required": ["trigger"],
+ "additionalProperties": false
+ },
+ "Page": {
+ "title": "Page",
+ "description": "A page in [`Dashboard`][vizro.models.Dashboard] with its own URL path and place in the `Navigation`.\n\nArgs:\n components (List[ComponentType]): See [ComponentType][vizro.models.types.ComponentType]. At least one component\n has to be provided.\n title (str): Title to be displayed.\n description (str): Description for meta tags.\n layout (Layout): Layout to place components in. Defaults to `None`.\n controls (List[ControlType]): See [ControlType][vizro.models.types.ControlType]. Defaults to `[]`.\n path (str): Path to navigate to page. Defaults to `\"\"`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "components": {
+ "title": "Components",
+ "type": "array",
+ "items": {
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "ag_grid": "#/definitions/AgGrid",
+ "button": "#/definitions/Button",
+ "card": "#/definitions/Card",
+ "container": "#/definitions/Container",
+ "figure": "#/definitions/Figure",
+ "graph": "#/definitions/Graph",
+ "table": "#/definitions/Table",
+ "tabs": "#/definitions/Tabs"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/definitions/AgGrid"
+ },
+ {
+ "$ref": "#/definitions/Button"
+ },
+ {
+ "$ref": "#/definitions/Card"
+ },
+ {
+ "$ref": "#/definitions/Container"
+ },
+ {
+ "$ref": "#/definitions/Figure"
+ },
+ {
+ "$ref": "#/definitions/Graph"
+ },
+ {
+ "$ref": "#/definitions/Table"
+ },
+ {
+ "$ref": "#/definitions/Tabs"
+ }
+ ]
+ }
+ },
+ "title": {
+ "title": "Title",
+ "description": "Title to be displayed.",
+ "type": "string"
+ },
+ "description": {
+ "title": "Description",
+ "description": "Description for meta tags.",
+ "default": "",
+ "type": "string"
+ },
+ "layout": {
+ "$ref": "#/definitions/Layout"
+ },
+ "controls": {
+ "title": "Controls",
+ "default": [],
+ "type": "array",
+ "items": {
+ "discriminator": {
+ "propertyName": "type",
+ "mapping": {
+ "filter": "#/definitions/Filter",
+ "parameter": "#/definitions/Parameter"
+ }
+ },
+ "oneOf": [
+ {
+ "$ref": "#/definitions/Filter"
+ },
+ {
+ "$ref": "#/definitions/Parameter"
+ }
+ ]
+ }
+ },
+ "path": {
+ "title": "Path",
+ "description": "Path to navigate to page.",
+ "default": "",
+ "type": "string"
+ },
+ "actions": {
+ "title": "Actions",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ActionsChain"
+ }
+ }
+ },
+ "required": ["components", "title"],
+ "additionalProperties": false
+ },
+ "Accordion": {
+ "title": "Accordion",
+ "description": "Accordion to be used as nav_selector in [`Navigation`][vizro.models.Navigation].\n\nArgs:\n type (Literal[\"accordion\"]): Defaults to `\"accordion\"`.\n pages (Dict[str, List[str]]): Mapping from name of a pages group to a list of page IDs. Defaults to `{}`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "accordion",
+ "enum": ["accordion"],
+ "type": "string"
+ },
+ "pages": {
+ "title": "Pages",
+ "description": "Mapping from name of a pages group to a list of page IDs.",
+ "default": {},
+ "type": "object",
+ "additionalProperties": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "NavLink": {
+ "title": "NavLink",
+ "description": "Icon that serves as a navigation link to be used in navigation bar of Dashboard.\n\nArgs:\n pages (NavPagesType): See [`NavPagesType`][vizro.models.types.NavPagesType]. Defaults to `[]`.\n label (str): Text description of the icon for use in tooltip.\n icon (str): Icon name from [Google Material icons library](https://fonts.google.com/icons). Defaults to `\"\"`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "pages": {
+ "title": "Pages",
+ "default": [],
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ ]
+ },
+ "label": {
+ "title": "Label",
+ "description": "Text description of the icon for use in tooltip.",
+ "type": "string"
+ },
+ "icon": {
+ "title": "Icon",
+ "description": "Icon name from Google Material icons library.",
+ "default": "",
+ "type": "string"
+ }
+ },
+ "required": ["label"],
+ "additionalProperties": false
+ },
+ "NavBar": {
+ "title": "NavBar",
+ "description": "Navigation bar to be used as a nav_selector for `Navigation`.\n\nArgs:\n type (Literal[\"nav_bar\"]): Defaults to `\"nav_bar\"`.\n pages (Dict[str, List[str]]): Mapping from name of a pages group to a list of page IDs. Defaults to `{}`.\n items (List[NavLink]): See [`NavLink`][vizro.models.NavLink]. Defaults to `[]`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "default": "nav_bar",
+ "enum": ["nav_bar"],
+ "type": "string"
+ },
+ "pages": {
+ "title": "Pages",
+ "description": "Mapping from name of a pages group to a list of page IDs.",
+ "default": {},
+ "type": "object",
+ "additionalProperties": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "items": {
+ "title": "Items",
+ "default": [],
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/NavLink"
+ }
+ }
+ },
+ "additionalProperties": false
+ },
+ "Navigation": {
+ "title": "Navigation",
+ "description": "Navigation in [`Dashboard`][vizro.models.Dashboard] to structure [`Pages`][vizro.models.Page].\n\nArgs:\n pages (NavPagesType): See [`NavPagesType`][vizro.models.types.NavPagesType]. Defaults to `[]`.\n nav_selector (NavSelectorType): See [`NavSelectorType`][vizro.models.types.NavSelectorType].\n Defaults to `None`.",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "Id",
+ "description": "ID to identify model. Must be unique throughout the whole dashboard.When no ID is chosen, ID will be automatically generated.",
+ "default": "",
+ "type": "string"
+ },
+ "pages": {
+ "title": "Pages",
+ "default": [],
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "object",
+ "additionalProperties": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ ]
+ },
+ "nav_selector": {
+ "title": "Nav Selector",
+ "anyOf": [
+ {
+ "$ref": "#/definitions/Accordion"
+ },
+ {
+ "$ref": "#/definitions/NavBar"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ }
+ }
+}
diff --git a/vizro-core/src/vizro/__init__.py b/vizro-core/src/vizro/__init__.py
index e918a5f53..2aaf415ce 100644
--- a/vizro-core/src/vizro/__init__.py
+++ b/vizro-core/src/vizro/__init__.py
@@ -5,6 +5,6 @@
__all__ = ["Vizro"]
-__version__ = "0.1.19"
+__version__ = "0.1.20.dev0"
logging.basicConfig(level=os.getenv("VIZRO_LOG_LEVEL", "WARNING"))