diff --git a/.circleci/config.yml b/.circleci/config.yml
index 021a19e08..d8e45cb09 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -26,15 +26,14 @@ jobs:
- run:
name: Install dependencies (dash)
command: |
- git clone git@github.com:plotly/dash.git
+ git clone -b dash-component-system git@github.com:plotly/dash.git
git clone git@github.com:plotly/dash-renderer.git
- git clone git@github.com:plotly/dash-html-components.git
- git clone git@github.com:plotly/dash-table.git
+ git clone -b dash-component-system git@github.com:plotly/dash-html-components.git
. venv/bin/activate
pip install -e ./dash --quiet
cd dash-renderer && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
- cd dash-core-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
cd dash-html-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
+
- run:
name: Build
command: |
diff --git a/dash_core_components/Checklist.py b/dash_core_components/Checklist.py
deleted file mode 100644
index 407566a71..000000000
--- a/dash_core_components/Checklist.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Checklist(Component):
- """A Checklist component.
-Checklist is a component that encapsulates several checkboxes.
-The values and labels of the checklist is specified in the `options`
-property and the checked items are specified with the `values` property.
-Each checkbox is rendered as an input with a surrounding label.
-
-Keyword arguments:
-- id (string; optional)
-- options (list; optional): An array of options
-- values (list; optional): The currently selected value
-- className (string; optional): The class of the container (div)
-- style (dict; optional): The style of the container (div)
-- inputStyle (dict; optional): The style of the checkbox element
-- inputClassName (string; optional): The class of the checkbox element
-- labelStyle (dict; optional): The style of the that wraps the checkbox input
- and the option's label
-- labelClassName (string; optional): The class of the that wraps the checkbox input
- and the option's label
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, options=Component.UNDEFINED, values=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, inputStyle=Component.UNDEFINED, inputClassName=Component.UNDEFINED, labelStyle=Component.UNDEFINED, labelClassName=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'options', 'values', 'className', 'style', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', 'loading_state']
- self._type = 'Checklist'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'options', 'values', 'className', 'style', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Checklist, self).__init__(**args)
diff --git a/dash_core_components/ConfirmDialog.py b/dash_core_components/ConfirmDialog.py
deleted file mode 100644
index 1ca5a3c65..000000000
--- a/dash_core_components/ConfirmDialog.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class ConfirmDialog(Component):
- """A ConfirmDialog component.
-ConfirmDialog is used to display the browser's native "confirm" modal,
-with an optional message and two buttons ("OK" and "Cancel").
-This ConfirmDialog can be used in conjunction with buttons when the user
-is performing an action that should require an extra step of verification.
-
-Keyword arguments:
-- id (string; optional)
-- message (string; optional): Message to show in the popup.
-- submit_n_clicks (number; optional): Number of times the submit button was clicked
-- submit_n_clicks_timestamp (number; optional): Last time the submit button was clicked.
-- cancel_n_clicks (number; optional): Number of times the popup was canceled.
-- cancel_n_clicks_timestamp (number; optional): Last time the cancel button was clicked.
-- displayed (boolean; optional): Set to true to send the ConfirmDialog.
-- key (string; optional)"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, message=Component.UNDEFINED, submit_n_clicks=Component.UNDEFINED, submit_n_clicks_timestamp=Component.UNDEFINED, cancel_n_clicks=Component.UNDEFINED, cancel_n_clicks_timestamp=Component.UNDEFINED, displayed=Component.UNDEFINED, key=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'key']
- self._type = 'ConfirmDialog'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'key']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(ConfirmDialog, self).__init__(**args)
diff --git a/dash_core_components/ConfirmDialogProvider.py b/dash_core_components/ConfirmDialogProvider.py
deleted file mode 100644
index c38d9bf0e..000000000
--- a/dash_core_components/ConfirmDialogProvider.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class ConfirmDialogProvider(Component):
- """A ConfirmDialogProvider component.
-A wrapper component that will display a confirmation dialog
-when its child component has been clicked on.
-
-For example:
-```
-dcc.ConfirmDialogProvider(
- html.Button('click me', id='btn'),
- message='Danger - Are you sure you want to continue.'
- id='confirm')
-```
-
-Keyword arguments:
-- children (boolean | number | string | dict | list; optional): The children to hijack clicks from and display the popup.
-- id (string; optional)
-- message (string; optional): Message to show in the popup.
-- submit_n_clicks (number; optional): Number of times the submit was clicked
-- submit_n_clicks_timestamp (number; optional): Last time the submit button was clicked.
-- cancel_n_clicks (number; optional): Number of times the popup was canceled.
-- cancel_n_clicks_timestamp (number; optional): Last time the cancel button was clicked.
-- displayed (boolean; optional): Is the modal currently displayed.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, id=Component.UNDEFINED, message=Component.UNDEFINED, submit_n_clicks=Component.UNDEFINED, submit_n_clicks_timestamp=Component.UNDEFINED, cancel_n_clicks=Component.UNDEFINED, cancel_n_clicks_timestamp=Component.UNDEFINED, displayed=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'loading_state']
- self._type = 'ConfirmDialogProvider'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(ConfirmDialogProvider, self).__init__(children=children, **args)
diff --git a/dash_core_components/DatePickerRange.py b/dash_core_components/DatePickerRange.py
deleted file mode 100644
index e64f2cf3a..000000000
--- a/dash_core_components/DatePickerRange.py
+++ /dev/null
@@ -1,106 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class DatePickerRange(Component):
- """A DatePickerRange component.
-DatePickerRange is a tailor made component designed for selecting
-timespan across multiple days off of a calendar.
-
-The DatePicker integrates well with the Python datetime module with the
-startDate and endDate being returned in a string format suitable for
-creating datetime objects.
-
-This component is based off of Airbnb's react-dates react component
-which can be found here: https://github.com/airbnb/react-dates
-
-Keyword arguments:
-- id (string; optional)
-- start_date (string; optional): Specifies the starting date for the component.
-Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- end_date (string; optional): Specifies the ending date for the component.
-Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- min_date_allowed (string; optional): Specifies the lowest selectable date for the component.
-Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- max_date_allowed (string; optional): Specifies the highest selectable date for the component.
-Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- initial_visible_month (string; optional): Specifies the month that is initially presented when the user
-opens the calendar. Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- start_date_placeholder_text (string; optional): Text that will be displayed in the first input
-box of the date picker when no date is selected. Default value is 'Start Date'
-- end_date_placeholder_text (string; optional): Text that will be displayed in the second input
-box of the date picker when no date is selected. Default value is 'End Date'
-- day_size (number; optional): Size of rendered calendar days, higher number
-means bigger day size and larger calendar overall
-- calendar_orientation (a value equal to: 'vertical', 'horizontal'; optional): Orientation of calendar, either vertical or horizontal.
-Valid options are 'vertical' or 'horizontal'.
-- is_RTL (boolean; optional): Determines whether the calendar and days operate
-from left to right or from right to left
-- reopen_calendar_on_clear (boolean; optional): If True, the calendar will automatically open when cleared
-- number_of_months_shown (number; optional): Number of calendar months that are shown when calendar is opened
-- with_portal (boolean; optional): If True, calendar will open in a screen overlay portal,
-not supported on vertical calendar
-- with_full_screen_portal (boolean; optional): If True, calendar will open in a full screen overlay portal, will
-take precedent over 'withPortal' if both are set to true,
-not supported on vertical calendar
-- first_day_of_week (a value equal to: 0, 1, 2, 3, 4, 5, 6; optional): Specifies what day is the first day of the week, values must be
-from [0, ..., 6] with 0 denoting Sunday and 6 denoting Saturday
-- minimum_nights (number; optional): Specifies a minimum number of nights that must be selected between
-the startDate and the endDate
-- stay_open_on_select (boolean; optional): If True the calendar will not close when the user has selected a value
-and will wait until the user clicks off the calendar
-- show_outside_days (boolean; optional): If True the calendar will display days that rollover into
-the next month
-- month_format (string; optional): Specifies the format that the month will be displayed in the calendar,
-valid formats are variations of "MM YY". For example:
-"MM YY" renders as '05 97' for May 1997
-"MMMM, YYYY" renders as 'May, 1997' for May 1997
-"MMM, YY" renders as 'Sep, 97' for September 1997
-- display_format (string; optional): Specifies the format that the selected dates will be displayed
-valid formats are variations of "MM YY DD". For example:
-"MM YY DD" renders as '05 10 97' for May 10th 1997
-"MMMM, YY" renders as 'May, 1997' for May 10th 1997
-"M, D, YYYY" renders as '07, 10, 1997' for September 10th 1997
-"MMMM" renders as 'May' for May 10 1997
-- disabled (boolean; optional): If True, no dates can be selected.
-- clearable (boolean; optional): Whether or not the dropdown is "clearable", that is, whether or
-not a small "x" appears on the right of the dropdown that removes
-the selected value.
-- style (dict; optional): CSS styles appended to wrapper div
-- className (string; optional): Appends a CSS class to the wrapper div component.
-- updatemode (a value equal to: 'singledate', 'bothdates'; optional): Determines when the component should update
-its value. If `bothdates`, then the DatePicker
-will only trigger its value when the user has
-finished picking both dates. If `singledate`, then
-the DatePicker will update its value
-as one date is picked.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, start_date=Component.UNDEFINED, end_date=Component.UNDEFINED, min_date_allowed=Component.UNDEFINED, max_date_allowed=Component.UNDEFINED, initial_visible_month=Component.UNDEFINED, start_date_placeholder_text=Component.UNDEFINED, end_date_placeholder_text=Component.UNDEFINED, day_size=Component.UNDEFINED, calendar_orientation=Component.UNDEFINED, is_RTL=Component.UNDEFINED, reopen_calendar_on_clear=Component.UNDEFINED, number_of_months_shown=Component.UNDEFINED, with_portal=Component.UNDEFINED, with_full_screen_portal=Component.UNDEFINED, first_day_of_week=Component.UNDEFINED, minimum_nights=Component.UNDEFINED, stay_open_on_select=Component.UNDEFINED, show_outside_days=Component.UNDEFINED, month_format=Component.UNDEFINED, display_format=Component.UNDEFINED, disabled=Component.UNDEFINED, clearable=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, updatemode=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'start_date', 'end_date', 'min_date_allowed', 'max_date_allowed', 'initial_visible_month', 'start_date_placeholder_text', 'end_date_placeholder_text', 'day_size', 'calendar_orientation', 'is_RTL', 'reopen_calendar_on_clear', 'number_of_months_shown', 'with_portal', 'with_full_screen_portal', 'first_day_of_week', 'minimum_nights', 'stay_open_on_select', 'show_outside_days', 'month_format', 'display_format', 'disabled', 'clearable', 'style', 'className', 'updatemode', 'loading_state']
- self._type = 'DatePickerRange'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'start_date', 'end_date', 'min_date_allowed', 'max_date_allowed', 'initial_visible_month', 'start_date_placeholder_text', 'end_date_placeholder_text', 'day_size', 'calendar_orientation', 'is_RTL', 'reopen_calendar_on_clear', 'number_of_months_shown', 'with_portal', 'with_full_screen_portal', 'first_day_of_week', 'minimum_nights', 'stay_open_on_select', 'show_outside_days', 'month_format', 'display_format', 'disabled', 'clearable', 'style', 'className', 'updatemode', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(DatePickerRange, self).__init__(**args)
diff --git a/dash_core_components/DatePickerSingle.py b/dash_core_components/DatePickerSingle.py
deleted file mode 100644
index 09499efb0..000000000
--- a/dash_core_components/DatePickerSingle.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class DatePickerSingle(Component):
- """A DatePickerSingle component.
-DatePickerSingle is a tailor made component designed for selecting
-a single day off of a calendar.
-
-The DatePicker integrates well with the Python datetime module with the
-startDate and endDate being returned in a string format suitable for
-creating datetime objects.
-
-This component is based off of Airbnb's react-dates react component
-which can be found here: https://github.com/airbnb/react-dates
-
-Keyword arguments:
-- id (string; optional)
-- date (string; optional): Specifies the starting date for the component, best practice is to pass
-value via datetime object
-- min_date_allowed (string; optional): Specifies the lowest selectable date for the component.
-Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- max_date_allowed (string; optional): Specifies the highest selectable date for the component.
-Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- initial_visible_month (string; optional): Specifies the month that is initially presented when the user
-opens the calendar. Accepts datetime.datetime objects or strings
-in the format 'YYYY-MM-DD'
-- day_size (number; optional): Size of rendered calendar days, higher number
-means bigger day size and larger calendar overall
-- calendar_orientation (a value equal to: 'vertical', 'horizontal'; optional): Orientation of calendar, either vertical or horizontal.
-Valid options are 'vertical' or 'horizontal'.
-- is_RTL (boolean; optional): Determines whether the calendar and days operate
-from left to right or from right to left
-- placeholder (string; optional): Text that will be displayed in the input
-box of the date picker when no date is selected.
-Default value is 'Start Date'
-- reopen_calendar_on_clear (boolean; optional): If True, the calendar will automatically open when cleared
-- number_of_months_shown (number; optional): Number of calendar months that are shown when calendar is opened
-- with_portal (boolean; optional): If True, calendar will open in a screen overlay portal,
-not supported on vertical calendar
-- with_full_screen_portal (boolean; optional): If True, calendar will open in a full screen overlay portal, will
-take precedent over 'withPortal' if both are set to True,
-not supported on vertical calendar
-- first_day_of_week (a value equal to: 0, 1, 2, 3, 4, 5, 6; optional): Specifies what day is the first day of the week, values must be
-from [0, ..., 6] with 0 denoting Sunday and 6 denoting Saturday
-- stay_open_on_select (boolean; optional): If True the calendar will not close when the user has selected a value
-and will wait until the user clicks off the calendar
-- show_outside_days (boolean; optional): If True the calendar will display days that rollover into
-the next month
-- month_format (string; optional): Specifies the format that the month will be displayed in the calendar,
-valid formats are variations of "MM YY". For example:
-"MM YY" renders as '05 97' for May 1997
-"MMMM, YYYY" renders as 'May, 1997' for May 1997
-"MMM, YY" renders as 'Sep, 97' for September 1997
-- display_format (string; optional): Specifies the format that the selected dates will be displayed
-valid formats are variations of "MM YY DD". For example:
-"MM YY DD" renders as '05 10 97' for May 10th 1997
-"MMMM, YY" renders as 'May, 1997' for May 10th 1997
-"M, D, YYYY" renders as '07, 10, 1997' for September 10th 1997
-"MMMM" renders as 'May' for May 10 1997
-- disabled (boolean; optional): If True, no dates can be selected.
-- clearable (boolean; optional): Whether or not the dropdown is "clearable", that is, whether or
-not a small "x" appears on the right of the dropdown that removes
-the selected value.
-- style (dict; optional): CSS styles appended to wrapper div
-- className (string; optional): Appends a CSS class to the wrapper div component.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, date=Component.UNDEFINED, min_date_allowed=Component.UNDEFINED, max_date_allowed=Component.UNDEFINED, initial_visible_month=Component.UNDEFINED, day_size=Component.UNDEFINED, calendar_orientation=Component.UNDEFINED, is_RTL=Component.UNDEFINED, placeholder=Component.UNDEFINED, reopen_calendar_on_clear=Component.UNDEFINED, number_of_months_shown=Component.UNDEFINED, with_portal=Component.UNDEFINED, with_full_screen_portal=Component.UNDEFINED, first_day_of_week=Component.UNDEFINED, stay_open_on_select=Component.UNDEFINED, show_outside_days=Component.UNDEFINED, month_format=Component.UNDEFINED, display_format=Component.UNDEFINED, disabled=Component.UNDEFINED, clearable=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'date', 'min_date_allowed', 'max_date_allowed', 'initial_visible_month', 'day_size', 'calendar_orientation', 'is_RTL', 'placeholder', 'reopen_calendar_on_clear', 'number_of_months_shown', 'with_portal', 'with_full_screen_portal', 'first_day_of_week', 'stay_open_on_select', 'show_outside_days', 'month_format', 'display_format', 'disabled', 'clearable', 'style', 'className', 'loading_state']
- self._type = 'DatePickerSingle'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'date', 'min_date_allowed', 'max_date_allowed', 'initial_visible_month', 'day_size', 'calendar_orientation', 'is_RTL', 'placeholder', 'reopen_calendar_on_clear', 'number_of_months_shown', 'with_portal', 'with_full_screen_portal', 'first_day_of_week', 'stay_open_on_select', 'show_outside_days', 'month_format', 'display_format', 'disabled', 'clearable', 'style', 'className', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(DatePickerSingle, self).__init__(**args)
diff --git a/dash_core_components/Dropdown.py b/dash_core_components/Dropdown.py
deleted file mode 100644
index 11f11bc59..000000000
--- a/dash_core_components/Dropdown.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Dropdown(Component):
- """A Dropdown component.
-Dropdown is an interactive dropdown element for selecting one or more
-items.
-The values and labels of the dropdown items are specified in the `options`
-property and the selected item(s) are specified with the `value` property.
-
-Use a dropdown when you have many options (more than 5) or when you are
-constrained for space. Otherwise, you can use RadioItems or a Checklist,
-which have the benefit of showing the users all of the items at once.
-
-Keyword arguments:
-- id (string; optional)
-- options (list; optional): An array of options
-- value (string | list; optional): The value of the input. If `multi` is false (the default)
-then value is just a string that corresponds to the values
-provided in the `options` property. If `multi` is true, then
-multiple values can be selected at once, and `value` is an
-array of items with values corresponding to those in the
-`options` prop.
-- className (string; optional): className of the dropdown element
-- clearable (boolean; optional): Whether or not the dropdown is "clearable", that is, whether or
-not a small "x" appears on the right of the dropdown that removes
-the selected value.
-- disabled (boolean; optional): If true, the option is disabled
-- multi (boolean; optional): If true, the user can select multiple values
-- placeholder (string; optional): The grey, default text shown when no option is selected
-- searchable (boolean; optional): Whether to enable the searching feature or not
-- style (dict; optional)
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, className=Component.UNDEFINED, clearable=Component.UNDEFINED, disabled=Component.UNDEFINED, multi=Component.UNDEFINED, placeholder=Component.UNDEFINED, searchable=Component.UNDEFINED, style=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'options', 'value', 'className', 'clearable', 'disabled', 'multi', 'placeholder', 'searchable', 'style', 'loading_state']
- self._type = 'Dropdown'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'options', 'value', 'className', 'clearable', 'disabled', 'multi', 'placeholder', 'searchable', 'style', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Dropdown, self).__init__(**args)
diff --git a/dash_core_components/Graph.py b/dash_core_components/Graph.py
deleted file mode 100644
index 7a59aa2df..000000000
--- a/dash_core_components/Graph.py
+++ /dev/null
@@ -1,130 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Graph(Component):
- """A Graph component.
-
-
-Keyword arguments:
-- id (string; optional): The ID of this component, used to identify dash components
-in callbacks. The ID needs to be unique across all of the
-components in an app.
-- clickData (dict; optional): Data from latest click event. Read-only.
-- clickAnnotationData (dict; optional): Data from latest click annotation event. Read-only.
-- hoverData (dict; optional): Data from latest hover event. Read-only.
-- clear_on_unhover (boolean; optional): If True, `clear_on_unhover` will clear the `hoverData` property
-when the user "unhovers" from a point.
-If False, then the `hoverData` property will be equal to the
-data from the last point that was hovered over.
-- selectedData (dict; optional): Data from latest select event. Read-only.
-- relayoutData (dict; optional): Data from latest relayout event which occurs
-when the user zooms or pans on the plot or other
-layout-level edits. Has the form `{: }`
-describing the changes made. Read-only.
-- extendData (dict; optional): Data that should be appended to existing traces. Has the form
-`[updateData, traceIndices, maxPoints]`, where `updateData` is an object
-containing the data to extend, `traceIndices` (optional) is an array of
-trace indices that should be extended, and `maxPoints` (optional) is
-either an integer defining the maximum number of points allowed or an
-object with key:value pairs matching `updateData`
-Reference the Plotly.extendTraces API for full usage:
-https://plot.ly/javascript/plotlyjs-function-reference/#plotlyextendtraces
-- restyleData (list; optional): Data from latest restyle event which occurs
-when the user toggles a legend item, changes
-parcoords selections, or other trace-level edits.
-Has the form `[edits, indices]`, where `edits` is an object
-`{: }` describing the changes made,
-and `indices` is an array of trace indices that were edited.
-Read-only.
-- figure (dict; optional): Plotly `figure` object. See schema:
-https://plot.ly/javascript/reference
-Only supports `data` array and `layout` object.
-`config` is set separately by the `config` property,
-and `frames` is not supported.
-- style (dict; optional): Generic style overrides on the plot div
-- className (string; optional): className of the parent div
-- animate (boolean; optional): Beta: If true, animate between updates using
-plotly.js's `animate` function
-- animation_options (dict; optional): Beta: Object containing animation settings.
-Only applies if `animate` is `true`
-- config (optional): Plotly.js config options.
-See https://plot.ly/javascript/configuration-options/
-for more info.. config has the following type: dict containing keys 'staticPlot', 'editable', 'edits', 'autosizable', 'queueLength', 'fillFrame', 'frameMargins', 'scrollZoom', 'doubleClick', 'showTips', 'showAxisDragHandles', 'showAxisRangeEntryBoxes', 'showLink', 'sendData', 'linkText', 'displayModeBar', 'modeBarButtonsToRemove', 'modeBarButtonsToAdd', 'modeBarButtons', 'displaylogo', 'plotGlPixelRatio', 'topojsonURL', 'mapboxAccessToken'.
-Those keys have the following types:
- - staticPlot (boolean; optional): no interactivity, for export or image generation
- - editable (boolean; optional): we can edit titles, move annotations, etc - sets all pieces of `edits`
-unless a separate `edits` config item overrides individual parts
- - edits (optional): a set of editable properties. edits has the following type: dict containing keys 'annotationPosition', 'annotationTail', 'annotationText', 'axisTitleText', 'colorbarPosition', 'colorbarTitleText', 'legendPosition', 'legendText', 'shapePosition', 'titleText'.
-Those keys have the following types:
- - annotationPosition (boolean; optional): annotationPosition: the main anchor of the annotation, which is the
-text (if no arrow) or the arrow (which drags the whole thing leaving
-the arrow length & direction unchanged)
- - annotationTail (boolean; optional): just for annotations with arrows, change the length and direction of the arrow
- - annotationText (boolean; optional)
- - axisTitleText (boolean; optional)
- - colorbarPosition (boolean; optional)
- - colorbarTitleText (boolean; optional)
- - legendPosition (boolean; optional)
- - legendText (boolean; optional): edit the trace name fields from the legend
- - shapePosition (boolean; optional)
- - titleText (boolean; optional): the global `layout.title`
- - autosizable (boolean; optional): DO autosize once regardless of layout.autosize
-(use default width or height values otherwise)
- - queueLength (number; optional): set the length of the undo/redo queue
- - fillFrame (boolean; optional): if we DO autosize, do we fill the container or the screen?
- - frameMargins (number; optional): if we DO autosize, set the frame margins in percents of plot size
- - scrollZoom (boolean; optional): mousewheel or two-finger scroll zooms the plot
- - doubleClick (a value equal to: false, 'reset', 'autosize', 'reset+autosize'; optional): double click interaction (false, 'reset', 'autosize' or 'reset+autosize')
- - showTips (boolean; optional): new users see some hints about interactivity
- - showAxisDragHandles (boolean; optional): enable axis pan/zoom drag handles
- - showAxisRangeEntryBoxes (boolean; optional): enable direct range entry at the pan/zoom drag points
-(drag handles must be enabled above)
- - showLink (boolean; optional): link to open this plot in plotly
- - sendData (boolean; optional): if we show a link, does it contain data or just link to a plotly file?
- - linkText (string; optional): text appearing in the sendData link
- - displayModeBar (a value equal to: true, false, 'hover'; optional): display the mode bar (true, false, or 'hover')
- - modeBarButtonsToRemove (list; optional): remove mode bar button by name.
-All modebar button names at https://github.com/plotly/plotly.js/blob/master/src/components/modebar/buttons.js
-Common names include:
- - sendDataToCloud
-- (2D): zoom2d, pan2d, select2d, lasso2d, zoomIn2d, zoomOut2d, autoScale2d, resetScale2d
-- (Cartesian): hoverClosestCartesian, hoverCompareCartesian
-- (3D): zoom3d, pan3d, orbitRotation, tableRotation, handleDrag3d, resetCameraDefault3d, resetCameraLastSave3d, hoverClosest3d
-- (Geo): zoomInGeo, zoomOutGeo, resetGeo, hoverClosestGeo
-- hoverClosestGl2d, hoverClosestPie, toggleHover, resetViews
- - modeBarButtonsToAdd (list; optional): add mode bar button using config objects
- - modeBarButtons (boolean | number | string | dict | list; optional): fully custom mode bar buttons as nested array,
-where the outer arrays represents button groups, and
-the inner arrays have buttons config objects or names of default buttons
- - displaylogo (boolean; optional): add the plotly logo on the end of the mode bar
- - plotGlPixelRatio (number; optional): increase the pixel ratio for Gl plot images
- - topojsonURL (string; optional): URL to topojson files used in geo charts
- - mapboxAccessToken (boolean | number | string | dict | list; optional): Mapbox access token (required to plot mapbox trace types)
-If using an Mapbox Atlas server, set this option to '',
-so that plotly.js won't attempt to authenticate to the public Mapbox server.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, clickData=Component.UNDEFINED, clickAnnotationData=Component.UNDEFINED, hoverData=Component.UNDEFINED, clear_on_unhover=Component.UNDEFINED, selectedData=Component.UNDEFINED, relayoutData=Component.UNDEFINED, extendData=Component.UNDEFINED, restyleData=Component.UNDEFINED, figure=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, animate=Component.UNDEFINED, animation_options=Component.UNDEFINED, config=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'clickData', 'clickAnnotationData', 'hoverData', 'clear_on_unhover', 'selectedData', 'relayoutData', 'extendData', 'restyleData', 'figure', 'style', 'className', 'animate', 'animation_options', 'config', 'loading_state']
- self._type = 'Graph'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'clickData', 'clickAnnotationData', 'hoverData', 'clear_on_unhover', 'selectedData', 'relayoutData', 'extendData', 'restyleData', 'figure', 'style', 'className', 'animate', 'animation_options', 'config', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Graph, self).__init__(**args)
diff --git a/dash_core_components/Input.py b/dash_core_components/Input.py
deleted file mode 100644
index e70cd529f..000000000
--- a/dash_core_components/Input.py
+++ /dev/null
@@ -1,77 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Input(Component):
- """A Input component.
-A basic HTML input control for entering text, numbers, or passwords.
-
-Note that checkbox and radio types are supported through
-the Checklist and RadioItems component. Dates, times, and file uploads
-are also supported through separate components.
-
-Keyword arguments:
-- id (string; optional): The ID of this component, used to identify dash components
-in callbacks. The ID needs to be unique across all of the
-components in an app.
-- value (string | number; optional): The value of the input
-- style (dict; optional): The input's inline styles
-- className (string; optional): The class of the input element
-- debounce (boolean; optional): If true, changes to input will be sent back to the Dash server only on enter or when losing focus.
-If it's false, it will sent the value back on every change.
-- type (a value equal to: "text", 'number', 'password', 'email', 'range', 'search', 'tel', 'url', 'hidden'; optional): The type of control to render.
-- autocomplete (string; optional): This attribute indicates whether the value of the control can be automatically completed by the browser.
-- autofocus (string; optional): The element should be automatically focused after the page loaded.
-- disabled (boolean; optional): If true, the input is disabled and can't be clicked on.
-- inputmode (a value equal to: "verbatim", "latin", "latin-name", "latin-prose", "full-width-latin", "kana", "katakana", "numeric", "tel", "email", "url"; optional)
-- list (string; optional): Identifies a list of pre-defined options to suggest to the user.
-The value must be the id of a element in the same document.
-The browser displays only options that are valid values for this
-input element.
-This attribute is ignored when the type attribute's value is
-hidden, checkbox, radio, file, or a button type.
-- max (string | number; optional): The maximum (numeric or date-time) value for this item, which must not be less than its minimum (min attribute) value.
-- maxlength (string; optional): If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the maximum number of characters (in UTF-16 code units) that the user can enter. For other control types, it is ignored. It can exceed the value of the size attribute. If it is not specified, the user can enter an unlimited number of characters. Specifying a negative number results in the default behavior (i.e. the user can enter an unlimited number of characters). The constraint is evaluated only when the value of the attribute has been changed.
-- min (string | number; optional): The minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.
-- minlength (string; optional): If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the minimum number of characters (in Unicode code points) that the user can enter. For other control types, it is ignored.
-- multiple (boolean; optional): This Boolean attribute indicates whether the user can enter more than one value. This attribute applies when the type attribute is set to email or file, otherwise it is ignored.
-- name (string; optional): The name of the control, which is submitted with the form data.
-- pattern (string; optional): A regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url, email, or password, otherwise it is ignored. The regular expression language is the same as JavaScript RegExp algorithm, with the 'u' parameter that makes it treat the pattern as a sequence of unicode code points. The pattern is not surrounded by forward slashes.
-- placeholder (string; optional): A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. Note: Do not use the placeholder attribute instead of a element, their purposes are different. The attribute describes the role of the form element (i.e. it indicates what kind of information is expected), and the placeholder attribute is a hint about the format that the content should take. There are cases in which the placeholder attribute is never displayed to the user, so the form must be understandable without it.
-- readOnly (string; optional): This attribute indicates that the user cannot modify the value of the control. The value of the attribute is irrelevant. If you need read-write access to the input value, do not add the "readonly" attribute. It is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type (such as button or submit).
-- required (string; optional): This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, reset, or button). The :optional and :required CSS pseudo-classes will be applied to the field as appropriate.
-- selectionDirection (string; optional): The direction in which selection occurred. This is "forward" if the selection was made from left-to-right in an LTR locale or right-to-left in an RTL locale, or "backward" if the selection was made in the opposite direction. On platforms on which it's possible this value isn't known, the value can be "none"; for example, on macOS, the default direction is "none", then as the user begins to modify the selection using the keyboard, this will change to reflect the direction in which the selection is expanding.
-- selectionEnd (string; optional): The offset into the element's text content of the last selected character. If there's no selection, this value indicates the offset to the character following the current text input cursor position (that is, the position the next character typed would occupy).
-- selectionStart (string; optional): The offset into the element's text content of the first selected character. If there's no selection, this value indicates the offset to the character following the current text input cursor position (that is, the position the next character typed would occupy).
-- size (string; optional): The initial size of the control. This value is in pixels unless the value of the type attribute is text or password, in which case it is an integer number of characters. Starting in, this attribute applies only when the type attribute is set to text, search, tel, url, email, or password, otherwise it is ignored. In addition, the size must be greater than zero. If you do not specify a size, a default value of 20 is used.' simply states "the user agent should ensure that at least that many characters are visible", but different characters can have different widths in certain fonts. In some browsers, a certain string with x characters will not be entirely visible even if size is defined to at least x.
-- spellCheck (string; optional): Setting the value of this attribute to true indicates that the element needs to have its spelling and grammar checked. The value default indicates that the element is to act according to a default behavior, possibly based on the parent element's own spellcheck value. The value false indicates that the element should not be checked.
-- step (string | number; optional): Works with the min and max attributes to limit the increments at which a numeric or date-time value can be set. It can be the string any or a positive floating point number. If this attribute is not set to any, the control accepts only values at multiples of the step value greater than the minimum.
-- n_submit (number; optional): Number of times the `Enter` key was pressed while the input had focus.
-- n_submit_timestamp (number; optional): Last time that `Enter` was pressed.
-- n_blur (number; optional): Number of times the input lost focus.
-- n_blur_timestamp (number; optional): Last time the input lost focus.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, debounce=Component.UNDEFINED, type=Component.UNDEFINED, autocomplete=Component.UNDEFINED, autofocus=Component.UNDEFINED, disabled=Component.UNDEFINED, inputmode=Component.UNDEFINED, list=Component.UNDEFINED, max=Component.UNDEFINED, maxlength=Component.UNDEFINED, min=Component.UNDEFINED, minlength=Component.UNDEFINED, multiple=Component.UNDEFINED, name=Component.UNDEFINED, pattern=Component.UNDEFINED, placeholder=Component.UNDEFINED, readOnly=Component.UNDEFINED, required=Component.UNDEFINED, selectionDirection=Component.UNDEFINED, selectionEnd=Component.UNDEFINED, selectionStart=Component.UNDEFINED, size=Component.UNDEFINED, spellCheck=Component.UNDEFINED, step=Component.UNDEFINED, n_submit=Component.UNDEFINED, n_submit_timestamp=Component.UNDEFINED, n_blur=Component.UNDEFINED, n_blur_timestamp=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'value', 'style', 'className', 'debounce', 'type', 'autocomplete', 'autofocus', 'disabled', 'inputmode', 'list', 'max', 'maxlength', 'min', 'minlength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'selectionDirection', 'selectionEnd', 'selectionStart', 'size', 'spellCheck', 'step', 'n_submit', 'n_submit_timestamp', 'n_blur', 'n_blur_timestamp', 'loading_state']
- self._type = 'Input'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'value', 'style', 'className', 'debounce', 'type', 'autocomplete', 'autofocus', 'disabled', 'inputmode', 'list', 'max', 'maxlength', 'min', 'minlength', 'multiple', 'name', 'pattern', 'placeholder', 'readOnly', 'required', 'selectionDirection', 'selectionEnd', 'selectionStart', 'size', 'spellCheck', 'step', 'n_submit', 'n_submit_timestamp', 'n_blur', 'n_blur_timestamp', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Input, self).__init__(**args)
diff --git a/dash_core_components/Interval.py b/dash_core_components/Interval.py
deleted file mode 100644
index b126eb33d..000000000
--- a/dash_core_components/Interval.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Interval(Component):
- """A Interval component.
-A component that repeatedly increments a counter `n_intervals`
-with a fixed time delay between each increment.
-Interval is good for triggering a component on a recurring basis.
-The time delay is set with the property "interval" in milliseconds.
-
-Keyword arguments:
-- id (string; optional)
-- interval (number; optional): This component will increment the counter `n_intervals` every
-`interval` milliseconds
-- disabled (boolean; optional): If True, the counter will no longer update
-- n_intervals (number; optional): Number of times the interval has passed
-- max_intervals (number; optional): Number of times the interval will be fired.
-If -1, then the interval has no limit (the default)
-and if 0 then the interval stops running."""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, interval=Component.UNDEFINED, disabled=Component.UNDEFINED, n_intervals=Component.UNDEFINED, max_intervals=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'interval', 'disabled', 'n_intervals', 'max_intervals']
- self._type = 'Interval'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'interval', 'disabled', 'n_intervals', 'max_intervals']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Interval, self).__init__(**args)
diff --git a/dash_core_components/Link.py b/dash_core_components/Link.py
deleted file mode 100644
index ee6196933..000000000
--- a/dash_core_components/Link.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Link(Component):
- """A Link component.
-
-
-Keyword arguments:
-- children (a list of or a singular dash component, string or number; optional)
-- href (string; optional)
-- refresh (boolean; optional)
-- className (string; optional)
-- style (dict; optional)
-- id (string; optional)
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, href=Component.UNDEFINED, refresh=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, id=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'href', 'refresh', 'className', 'style', 'id', 'loading_state']
- self._type = 'Link'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'href', 'refresh', 'className', 'style', 'id', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Link, self).__init__(children=children, **args)
diff --git a/dash_core_components/Loading.py b/dash_core_components/Loading.py
deleted file mode 100644
index 2d1fc39bc..000000000
--- a/dash_core_components/Loading.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Loading(Component):
- """A Loading component.
-A Loading component that wraps any other component and displays a spinner until the wrapped component has rendered.
-
-Keyword arguments:
-- children (list | a list of or a singular dash component, string or number; optional): Array that holds components to render
-- id (string; optional)
-- type (a value equal to: 'graph', 'cube', 'circle', 'dot', 'default'; optional): Property that determines which spinner to show - one of 'graph', 'cube', 'circle', 'dot', or 'default'.
-- fullscreen (boolean; optional): Boolean that determines if the loading spinner will be displayed full-screen or not
-- debug (boolean; optional): Boolean that determines if the loading spinner will display the status.prop_name and component_name
-- className (string; optional): Additional CSS class for the root DOM node
-- style (dict; optional): Additional CSS styling for the root DOM node
-- color (string; optional): Primary colour used for the loading spinners
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, id=Component.UNDEFINED, type=Component.UNDEFINED, fullscreen=Component.UNDEFINED, debug=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, color=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'id', 'type', 'fullscreen', 'debug', 'className', 'style', 'color', 'loading_state']
- self._type = 'Loading'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'id', 'type', 'fullscreen', 'debug', 'className', 'style', 'color', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Loading, self).__init__(children=children, **args)
diff --git a/dash_core_components/Location.py b/dash_core_components/Location.py
deleted file mode 100644
index 6370c8d04..000000000
--- a/dash_core_components/Location.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Location(Component):
- """A Location component.
-Update and track the current window.location object through the window.history state.
-Use in conjunction with the `dash_core_components.Link` component to make apps with multiple pages.
-
-Keyword arguments:
-- id (string; required)
-- pathname (string; optional): pathname in window.location - e.g., "/my/full/pathname"
-- search (string; optional): search in window.location - e.g., "?myargument=1"
-- hash (string; optional): hash in window.location - e.g., "#myhash"
-- href (string; optional): href in window.location - e.g., "/my/full/pathname?myargument=1#myhash"
-- refresh (boolean; optional): Refresh the page when the location is updated?"""
- @_explicitize_args
- def __init__(self, id=Component.REQUIRED, pathname=Component.UNDEFINED, search=Component.UNDEFINED, hash=Component.UNDEFINED, href=Component.UNDEFINED, refresh=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'pathname', 'search', 'hash', 'href', 'refresh']
- self._type = 'Location'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'pathname', 'search', 'hash', 'href', 'refresh']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in ['id']:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Location, self).__init__(**args)
diff --git a/dash_core_components/LogoutButton.py b/dash_core_components/LogoutButton.py
deleted file mode 100644
index d807f0266..000000000
--- a/dash_core_components/LogoutButton.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class LogoutButton(Component):
- """A LogoutButton component.
-Logout button to submit a form post request to the `logout_url` prop.
-Usage is intended for dash-deployment-server authentication.
-
-DDS usage:
-
-`dcc.LogoutButton(logout_url=os.getenv('DASH_LOGOUT_URL'))`
-
-Custom usage:
-
-- Implement a login mechanism.
-- Create a flask route with a post method handler.
-`@app.server.route('/logout', methods=['POST'])`
- - The logout route should perform what's necessary for the user to logout.
- - If you store the session in a cookie, clear the cookie:
- `rep = flask.Response(); rep.set_cookie('session', '', expires=0)`
-
-- Create a logout button component and assign it the logout_url
-`dcc.LogoutButton(logout_url='/logout')`
-
-See https://dash.plot.ly/dash-core-components/logout_button
-for more documentation and examples.
-
-Keyword arguments:
-- id (string; optional): Id of the button.
-- label (string; optional): Text of the button
-- logout_url (string; optional): Url to submit a post logout request.
-- style (dict; optional): Style of the button
-- method (string; optional): Http method to submit the logout form.
-- className (string; optional): CSS class for the button.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, label=Component.UNDEFINED, logout_url=Component.UNDEFINED, style=Component.UNDEFINED, method=Component.UNDEFINED, className=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'label', 'logout_url', 'style', 'method', 'className', 'loading_state']
- self._type = 'LogoutButton'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'label', 'logout_url', 'style', 'method', 'className', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(LogoutButton, self).__init__(**args)
diff --git a/dash_core_components/Markdown.py b/dash_core_components/Markdown.py
deleted file mode 100644
index b86eb7d64..000000000
--- a/dash_core_components/Markdown.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Markdown(Component):
- """A Markdown component.
-A component that renders Markdown text as specified by the
-CommonMark spec.
-
-Keyword arguments:
-- children (string | list; optional): A markdown string (or array of strings) that adhreres to the CommonMark spec
-- id (string; optional)
-- className (string; optional): Class name of the container element
-- containerProps (dict; optional): An object containing custom element props to put on the container
-element such as id or style
-- dangerously_allow_html (boolean; optional): A boolean to control raw HTML escaping.
-Setting HTML from code is risky because it's easy to
-inadvertently expose your users to a cross-site scripting (XSS)
-(https://en.wikipedia.org/wiki/Cross-site_scripting) attack.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, containerProps=Component.UNDEFINED, dangerously_allow_html=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'id', 'className', 'containerProps', 'dangerously_allow_html', 'loading_state']
- self._type = 'Markdown'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'id', 'className', 'containerProps', 'dangerously_allow_html', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Markdown, self).__init__(children=children, **args)
diff --git a/dash_core_components/RadioItems.py b/dash_core_components/RadioItems.py
deleted file mode 100644
index 83ec8384c..000000000
--- a/dash_core_components/RadioItems.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class RadioItems(Component):
- """A RadioItems component.
-RadioItems is a component that encapsulates several radio item inputs.
-The values and labels of the RadioItems is specified in the `options`
-property and the seleced item is specified with the `value` property.
-Each radio item is rendered as an input with a surrounding label.
-
-Keyword arguments:
-- id (string; optional)
-- options (list; optional): An array of options
-- value (string; optional): The currently selected value
-- style (dict; optional): The style of the container (div)
-- className (string; optional): The class of the container (div)
-- inputStyle (dict; optional): The style of the radio element
-- inputClassName (string; optional): The class of the radio element
-- labelStyle (dict; optional): The style of the that wraps the radio input
- and the option's label
-- labelClassName (string; optional): The class of the that wraps the radio input
- and the option's label
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, options=Component.UNDEFINED, value=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, inputStyle=Component.UNDEFINED, inputClassName=Component.UNDEFINED, labelStyle=Component.UNDEFINED, labelClassName=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'options', 'value', 'style', 'className', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', 'loading_state']
- self._type = 'RadioItems'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'options', 'value', 'style', 'className', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(RadioItems, self).__init__(**args)
diff --git a/dash_core_components/RangeSlider.py b/dash_core_components/RangeSlider.py
deleted file mode 100644
index f72a91102..000000000
--- a/dash_core_components/RangeSlider.py
+++ /dev/null
@@ -1,73 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class RangeSlider(Component):
- """A RangeSlider component.
-A double slider with two handles.
-Used for specifying a range of numerical values.
-
-Keyword arguments:
-- id (string; optional)
-- marks (optional): Marks on the slider.
-The key determines the position,
-and the value determines what will show.
-If you want to set the style of a specific mark point,
-the value should be an object which
-contains style and label properties.. marks has the following type: dict containing keys 'number'.
-Those keys have the following types:
- - number (optional): . number has the following type: string | dict containing keys 'style', 'label'.
-Those keys have the following types:
- - style (dict; optional)
- - label (string; optional)
-- value (list; optional): The value of the input
-- allowCross (boolean; optional): allowCross could be set as true to allow those handles to cross.
-- className (string; optional): Additional CSS class for the root DOM node
-- count (number; optional): Determine how many ranges to render, and multiple handles
-will be rendered (number + 1).
-- disabled (boolean; optional): If true, the handles can't be moved.
-- dots (boolean; optional): When the step value is greater than 1,
-you can set the dots to true if you want to
-render the slider with dots.
-- included (boolean; optional): If the value is true, it means a continuous
-value is included. Otherwise, it is an independent value.
-- min (number; optional): Minimum allowed value of the slider
-- max (number; optional): Maximum allowed value of the slider
-- pushable (boolean | number; optional): pushable could be set as true to allow pushing of
-surrounding handles when moving an handle.
-When set to a number, the number will be the
-minimum ensured distance between handles.
-- step (number; optional): Value by which increments or decrements are made
-- vertical (boolean; optional): If true, the slider will be vertical
-- updatemode (a value equal to: 'mouseup', 'drag'; optional): Determines when the component should update
-its value. If `mouseup`, then the slider
-will only trigger its value when the user has
-finished dragging the slider. If `drag`, then
-the slider will update its value continuously
-as it is being dragged.
-Only use `drag` if your updates are fast.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, marks=Component.UNDEFINED, value=Component.UNDEFINED, allowCross=Component.UNDEFINED, className=Component.UNDEFINED, count=Component.UNDEFINED, disabled=Component.UNDEFINED, dots=Component.UNDEFINED, included=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, pushable=Component.UNDEFINED, step=Component.UNDEFINED, vertical=Component.UNDEFINED, updatemode=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'marks', 'value', 'allowCross', 'className', 'count', 'disabled', 'dots', 'included', 'min', 'max', 'pushable', 'step', 'vertical', 'updatemode', 'loading_state']
- self._type = 'RangeSlider'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'marks', 'value', 'allowCross', 'className', 'count', 'disabled', 'dots', 'included', 'min', 'max', 'pushable', 'step', 'vertical', 'updatemode', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(RangeSlider, self).__init__(**args)
diff --git a/dash_core_components/Slider.py b/dash_core_components/Slider.py
deleted file mode 100644
index b96e9524e..000000000
--- a/dash_core_components/Slider.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Slider(Component):
- """A Slider component.
-A slider component with a single handle.
-
-Keyword arguments:
-- id (string; optional)
-- marks (optional): Marks on the slider.
-The key determines the position,
-and the value determines what will show.
-If you want to set the style of a specific mark point,
-the value should be an object which
-contains style and label properties.. marks has the following type: dict containing keys 'number'.
-Those keys have the following types:
- - number (optional): . number has the following type: string | dict containing keys 'style', 'label'.
-Those keys have the following types:
- - style (dict; optional)
- - label (string; optional)
-- value (number; optional): The value of the input
-- className (string; optional): Additional CSS class for the root DOM node
-- disabled (boolean; optional): If true, the handles can't be moved.
-- dots (boolean; optional): When the step value is greater than 1,
-you can set the dots to true if you want to
-render the slider with dots.
-- included (boolean; optional): If the value is true, it means a continuous
-value is included. Otherwise, it is an independent value.
-- min (number; optional): Minimum allowed value of the slider
-- max (number; optional): Maximum allowed value of the slider
-- step (number; optional): Value by which increments or decrements are made
-- vertical (boolean; optional): If true, the slider will be vertical
-- updatemode (a value equal to: 'mouseup', 'drag'; optional): Determines when the component should update
-its value. If `mouseup`, then the slider
-will only trigger its value when the user has
-finished dragging the slider. If `drag`, then
-the slider will update its value continuously
-as it is being dragged.
-Only use `drag` if your updates are fast.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, marks=Component.UNDEFINED, value=Component.UNDEFINED, className=Component.UNDEFINED, disabled=Component.UNDEFINED, dots=Component.UNDEFINED, included=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, step=Component.UNDEFINED, vertical=Component.UNDEFINED, updatemode=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'marks', 'value', 'className', 'disabled', 'dots', 'included', 'min', 'max', 'step', 'vertical', 'updatemode', 'loading_state']
- self._type = 'Slider'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'marks', 'value', 'className', 'disabled', 'dots', 'included', 'min', 'max', 'step', 'vertical', 'updatemode', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Slider, self).__init__(**args)
diff --git a/dash_core_components/Store.py b/dash_core_components/Store.py
deleted file mode 100644
index bdb570c2c..000000000
--- a/dash_core_components/Store.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Store(Component):
- """A Store component.
-Easily keep data on the client side with this component.
-The data is not inserted in the DOM.
-Data can be in memory, localStorage or sessionStorage.
-The data will be kept with the id as key.
-
-Keyword arguments:
-- id (string; required): The key of the storage.
-- storage_type (a value equal to: 'local', 'session', 'memory'; optional): The type of the web storage.
-
-memory: only kept in memory, reset on page refresh.
-local: window.localStorage, data is kept after the browser quit.
-session: window.sessionStorage, data is cleared once the browser quit.
-- data (dict | list | number | string | boolean; optional): The stored data for the id.
-- clear_data (boolean; optional): Set to true to remove the data contained in `data_key`.
-- modified_timestamp (number; optional): The last time the storage was modified."""
- @_explicitize_args
- def __init__(self, id=Component.REQUIRED, storage_type=Component.UNDEFINED, data=Component.UNDEFINED, clear_data=Component.UNDEFINED, modified_timestamp=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'storage_type', 'data', 'clear_data', 'modified_timestamp']
- self._type = 'Store'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'storage_type', 'data', 'clear_data', 'modified_timestamp']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in ['id']:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Store, self).__init__(**args)
diff --git a/dash_core_components/SyntaxHighlighter.py b/dash_core_components/SyntaxHighlighter.py
deleted file mode 100644
index 12c2d0165..000000000
--- a/dash_core_components/SyntaxHighlighter.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class SyntaxHighlighter(Component):
- """A SyntaxHighlighter component.
-A component for pretty printing code.
-
-Keyword arguments:
-- children (string | list; optional): The text to display and highlight
-- id (string; optional)
-- language (string; optional): the language to highlight code in.
-- theme (a value equal to: 'light', 'dark'; optional): theme: light or dark
-- customStyle (dict; optional): prop that will be combined with the top level style on the pre tag, styles here will overwrite earlier styles.
-- codeTagProps (dict; optional): props that will be spread into the tag that is the direct parent of the highlighted code elements. Useful for styling/assigning classNames.
-- useInlineStyles (boolean; optional): if this prop is passed in as false, react syntax highlighter will not add style objects to elements, and will instead append classNames. You can then style the code block by using one of the CSS files provided by highlight.js.
-- showLineNumbers (boolean; optional): if this is enabled line numbers will be shown next to the code block.
-- startingLineNumber (number; optional): if showLineNumbers is enabled the line numbering will start from here.
-- lineNumberContainerStyle (dict; optional): the line numbers container default to appearing to the left with 10px of right padding. You can use this to override those styles.
-- lineNumberStyle (dict; optional): inline style to be passed to the span wrapping each number. Can be either an object or a function that recieves current line number as argument and returns style object.
-- wrapLines (boolean; optional): a boolean value that determines whether or not each line of code should be wrapped in a parent element. defaults to false, when false one can not take action on an element on the line level. You can see an example of what this enables here
-- lineStyle (dict; optional): inline style to be passed to the span wrapping each line if wrapLines is true. Can be either an object or a function that recieves current line number as argument and returns style object.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, id=Component.UNDEFINED, language=Component.UNDEFINED, theme=Component.UNDEFINED, customStyle=Component.UNDEFINED, codeTagProps=Component.UNDEFINED, useInlineStyles=Component.UNDEFINED, showLineNumbers=Component.UNDEFINED, startingLineNumber=Component.UNDEFINED, lineNumberContainerStyle=Component.UNDEFINED, lineNumberStyle=Component.UNDEFINED, wrapLines=Component.UNDEFINED, lineStyle=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'id', 'language', 'theme', 'customStyle', 'codeTagProps', 'useInlineStyles', 'showLineNumbers', 'startingLineNumber', 'lineNumberContainerStyle', 'lineNumberStyle', 'wrapLines', 'lineStyle', 'loading_state']
- self._type = 'SyntaxHighlighter'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'id', 'language', 'theme', 'customStyle', 'codeTagProps', 'useInlineStyles', 'showLineNumbers', 'startingLineNumber', 'lineNumberContainerStyle', 'lineNumberStyle', 'wrapLines', 'lineStyle', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(SyntaxHighlighter, self).__init__(children=children, **args)
diff --git a/dash_core_components/Tab.py b/dash_core_components/Tab.py
deleted file mode 100644
index cea216e58..000000000
--- a/dash_core_components/Tab.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Tab(Component):
- """A Tab component.
-
-
-Keyword arguments:
-- children (a list of or a singular dash component, string or number; optional): The content of the tab - will only be displayed if this tab is selected
-- id (string; optional): The ID of this component, used to identify dash components
-in callbacks. The ID needs to be unique across all of the
-components in an app.
-- label (string; optional): The tab's label
-- value (string; optional): Value for determining which Tab is currently selected
-- disabled (boolean; optional): Determines if tab is disabled or not - defaults to false
-- disabled_style (dict; optional): Overrides the default (inline) styles when disabled
-- disabled_className (string; optional): Appends a class to the Tab component when it is disabled.
-- className (string; optional): Appends a class to the Tab component.
-- selected_className (string; optional): Appends a class to the Tab component when it is selected.
-- style (dict; optional): Overrides the default (inline) styles for the Tab component.
-- selected_style (dict; optional): Overrides the default (inline) styles for the Tab component when it is selected.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, id=Component.UNDEFINED, label=Component.UNDEFINED, value=Component.UNDEFINED, disabled=Component.UNDEFINED, disabled_style=Component.UNDEFINED, disabled_className=Component.UNDEFINED, className=Component.UNDEFINED, selected_className=Component.UNDEFINED, style=Component.UNDEFINED, selected_style=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'id', 'label', 'value', 'disabled', 'disabled_style', 'disabled_className', 'className', 'selected_className', 'style', 'selected_style', 'loading_state']
- self._type = 'Tab'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'id', 'label', 'value', 'disabled', 'disabled_style', 'disabled_className', 'className', 'selected_className', 'style', 'selected_style', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Tab, self).__init__(children=children, **args)
diff --git a/dash_core_components/Tabs.py b/dash_core_components/Tabs.py
deleted file mode 100644
index 13efcc5fb..000000000
--- a/dash_core_components/Tabs.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Tabs(Component):
- """A Tabs component.
-A Dash component that lets you render pages with tabs - the Tabs component's children
-can be dcc.Tab components, which can hold a label that will be displayed as a tab, and can in turn hold
-children components that will be that tab's content.
-
-Keyword arguments:
-- children (list | a list of or a singular dash component, string or number; optional): Array that holds Tab components
-- id (string; optional): The ID of this component, used to identify dash components
-in callbacks. The ID needs to be unique across all of the
-components in an app.
-- value (string; optional): The value of the currently selected Tab
-- className (string; optional): Appends a class to the Tabs container holding the individual Tab components.
-- content_className (string; optional): Appends a class to the Tab content container holding the children of the Tab that is selected.
-- parent_className (string; optional): Appends a class to the top-level parent container holding both the Tabs container and the content container.
-- style (dict; optional): Appends (inline) styles to the Tabs container holding the individual Tab components.
-- parent_style (dict; optional): Appends (inline) styles to the top-level parent container holding both the Tabs container and the content container.
-- content_style (dict; optional): Appends (inline) styles to the tab content container holding the children of the Tab that is selected.
-- vertical (boolean; optional): Renders the tabs vertically (on the side)
-- mobile_breakpoint (number; optional): Breakpoint at which tabs are rendered full width (can be 0 if you don't want full width tabs on mobile)
-- colors (optional): Holds the colors used by the Tabs and Tab components. If you set these, you should specify colors for all properties, so:
-colors: {
- border: '#d6d6d6',
- primary: '#1975FA',
- background: '#f9f9f9'
- }. colors has the following type: dict containing keys 'border', 'primary', 'background'.
-Those keys have the following types:
- - border (string; optional)
- - primary (string; optional)
- - background (string; optional)
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, id=Component.UNDEFINED, value=Component.UNDEFINED, className=Component.UNDEFINED, content_className=Component.UNDEFINED, parent_className=Component.UNDEFINED, style=Component.UNDEFINED, parent_style=Component.UNDEFINED, content_style=Component.UNDEFINED, vertical=Component.UNDEFINED, mobile_breakpoint=Component.UNDEFINED, colors=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'id', 'value', 'className', 'content_className', 'parent_className', 'style', 'parent_style', 'content_style', 'vertical', 'mobile_breakpoint', 'colors', 'loading_state']
- self._type = 'Tabs'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'id', 'value', 'className', 'content_className', 'parent_className', 'style', 'parent_style', 'content_style', 'vertical', 'mobile_breakpoint', 'colors', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Tabs, self).__init__(children=children, **args)
diff --git a/dash_core_components/Textarea.py b/dash_core_components/Textarea.py
deleted file mode 100644
index be7010c57..000000000
--- a/dash_core_components/Textarea.py
+++ /dev/null
@@ -1,66 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Textarea(Component):
- """A Textarea component.
-A basic HTML textarea for entering multiline text.
-
-Keyword arguments:
-- id (string; optional): The ID of this component, used to identify dash components
-in callbacks. The ID needs to be unique across all of the
-components in an app.
-- value (string; optional): The value of the textarea
-- autoFocus (string; optional): The element should be automatically focused after the page loaded.
-- cols (string; optional): Defines the number of columns in a textarea.
-- disabled (string; optional): Indicates whether the user can interact with the element.
-- form (string; optional): Indicates the form that is the owner of the element.
-- maxLength (string; optional): Defines the maximum number of characters allowed in the element.
-- minLength (string; optional): Defines the minimum number of characters allowed in the element.
-- name (string; optional): Name of the element. For example used by the server to identify the fields in form submits.
-- placeholder (string; optional): Provides a hint to the user of what can be entered in the field.
-- readOnly (string; optional): Indicates whether the element can be edited.
-- required (string; optional): Indicates whether this element is required to fill out or not.
-- rows (string; optional): Defines the number of rows in a text area.
-- wrap (string; optional): Indicates whether the text should be wrapped.
-- accessKey (string; optional): Defines a keyboard shortcut to activate or add focus to the element.
-- className (string; optional): Often used with CSS to style elements with common properties.
-- contentEditable (string; optional): Indicates whether the element's content is editable.
-- contextMenu (string; optional): Defines the ID of a element which will serve as the element's context menu.
-- dir (string; optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
-- draggable (string; optional): Defines whether the element can be dragged.
-- hidden (string; optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
-- lang (string; optional): Defines the language used in the element.
-- spellCheck (string; optional): Indicates whether spell checking is allowed for the element.
-- style (dict; optional): Defines CSS styles which will override styles previously set.
-- tabIndex (string; optional): Overrides the browser's default tab order and follows the one specified instead.
-- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
-- n_blur (number; optional): Number of times the textarea lost focus.
-- n_blur_timestamp (number; optional): Last time the textarea lost focus.
-- n_clicks (number; optional): Number of times the textarea has been clicked.
-- n_clicks_timestamp (number; optional): Last time the textarea was clicked.
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, autoFocus=Component.UNDEFINED, cols=Component.UNDEFINED, disabled=Component.UNDEFINED, form=Component.UNDEFINED, maxLength=Component.UNDEFINED, minLength=Component.UNDEFINED, name=Component.UNDEFINED, placeholder=Component.UNDEFINED, readOnly=Component.UNDEFINED, required=Component.UNDEFINED, rows=Component.UNDEFINED, wrap=Component.UNDEFINED, accessKey=Component.UNDEFINED, className=Component.UNDEFINED, contentEditable=Component.UNDEFINED, contextMenu=Component.UNDEFINED, dir=Component.UNDEFINED, draggable=Component.UNDEFINED, hidden=Component.UNDEFINED, lang=Component.UNDEFINED, spellCheck=Component.UNDEFINED, style=Component.UNDEFINED, tabIndex=Component.UNDEFINED, title=Component.UNDEFINED, n_blur=Component.UNDEFINED, n_blur_timestamp=Component.UNDEFINED, n_clicks=Component.UNDEFINED, n_clicks_timestamp=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['id', 'value', 'autoFocus', 'cols', 'disabled', 'form', 'maxLength', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'rows', 'wrap', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title', 'n_blur', 'n_blur_timestamp', 'n_clicks', 'n_clicks_timestamp', 'loading_state']
- self._type = 'Textarea'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['id', 'value', 'autoFocus', 'cols', 'disabled', 'form', 'maxLength', 'minLength', 'name', 'placeholder', 'readOnly', 'required', 'rows', 'wrap', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title', 'n_blur', 'n_blur_timestamp', 'n_clicks', 'n_clicks_timestamp', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Textarea, self).__init__(**args)
diff --git a/dash_core_components/Upload.py b/dash_core_components/Upload.py
deleted file mode 100644
index bf31745a2..000000000
--- a/dash_core_components/Upload.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# AUTO GENERATED FILE - DO NOT EDIT
-
-from dash.development.base_component import Component, _explicitize_args
-
-
-class Upload(Component):
- """A Upload component.
-
-
-Keyword arguments:
-- children (a list of or a singular dash component, string or number | string; optional): Contents of the upload component
-- id (string; optional): ID of the component. Used to identify component
-in Dash callback functions.
-- contents (string | list; optional): The contents of the uploaded file as a binary string
-- filename (string | list; optional): The name of the file(s) that was(were) uploaded.
-Note that this does not include the path of the file
-(for security reasons).
-- last_modified (number | list; optional): The last modified date of the file that was uploaded in unix time
-(seconds since 1970).
-- accept (string; optional): Allow specific types of files.
-See https://github.com/okonet/attr-accept for more information.
-Keep in mind that mime type determination is not reliable across
-platforms. CSV files, for example, are reported as text/plain
-under macOS but as application/vnd.ms-excel under Windows.
-In some cases there might not be a mime type set at all.
-See: https://github.com/react-dropzone/react-dropzone/issues/276
-- disabled (boolean; optional): Enable/disable the upload component entirely
-- disable_click (boolean; optional): Disallow clicking on the component to open the file dialog
-- max_size (number; optional): Maximum file size. If `-1`, then infinite
-- min_size (number; optional): Minimum file size
-- multiple (boolean; optional): Allow dropping multiple files
-- className (string; optional): HTML class name of the component
-- className_active (string; optional): HTML class name of the component while active
-- className_reject (string; optional): HTML class name of the component if rejected
-- className_disabled (string; optional): HTML class name of the component if disabled
-- style (dict; optional): CSS styles to apply
-- style_active (dict; optional): CSS styles to apply while active
-- style_reject (dict; optional): CSS styles if rejected
-- style_disabled (dict; optional): CSS styles if disabled
-- loading_state (optional): Object that holds the loading state object coming from dash-renderer. loading_state has the following type: dict containing keys 'is_loading', 'prop_name', 'component_name'.
-Those keys have the following types:
- - is_loading (boolean; optional): Determines if the component is loading or not
- - prop_name (string; optional): Holds which property is loading
- - component_name (string; optional): Holds the name of the component that is loading"""
- @_explicitize_args
- def __init__(self, children=None, id=Component.UNDEFINED, contents=Component.UNDEFINED, filename=Component.UNDEFINED, last_modified=Component.UNDEFINED, accept=Component.UNDEFINED, disabled=Component.UNDEFINED, disable_click=Component.UNDEFINED, max_size=Component.UNDEFINED, min_size=Component.UNDEFINED, multiple=Component.UNDEFINED, className=Component.UNDEFINED, className_active=Component.UNDEFINED, className_reject=Component.UNDEFINED, className_disabled=Component.UNDEFINED, style=Component.UNDEFINED, style_active=Component.UNDEFINED, style_reject=Component.UNDEFINED, style_disabled=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
- self._prop_names = ['children', 'id', 'contents', 'filename', 'last_modified', 'accept', 'disabled', 'disable_click', 'max_size', 'min_size', 'multiple', 'className', 'className_active', 'className_reject', 'className_disabled', 'style', 'style_active', 'style_reject', 'style_disabled', 'loading_state']
- self._type = 'Upload'
- self._namespace = 'dash_core_components'
- self._valid_wildcard_attributes = []
- self.available_properties = ['children', 'id', 'contents', 'filename', 'last_modified', 'accept', 'disabled', 'disable_click', 'max_size', 'min_size', 'multiple', 'className', 'className_active', 'className_reject', 'className_disabled', 'style', 'style_active', 'style_reject', 'style_disabled', 'loading_state']
- self.available_wildcard_properties = []
-
- _explicit_args = kwargs.pop('_explicit_args')
- _locals = locals()
- _locals.update(kwargs) # For wildcard attrs
- args = {k: _locals[k] for k in _explicit_args if k != 'children'}
-
- for k in []:
- if k not in args:
- raise TypeError(
- 'Required argument `' + k + '` was not specified.')
- super(Upload, self).__init__(children=children, **args)
diff --git a/dash_core_components/__init__.py b/dash_core_components/__init__.py
index 65db42a27..c3e59c877 100644
--- a/dash_core_components/__init__.py
+++ b/dash_core_components/__init__.py
@@ -4,25 +4,9 @@
import os as _os
import sys as _sys
-import dash as _dash
from .version import __version__
-# Module imports trigger a dash.development import, need to check this first
-if not hasattr(_dash, 'development'):
- print("Dash was not successfully imported. Make sure you don't have a file "
- "named \n'dash.py' in your current directory.", file=_sys.stderr)
- _sys.exit(1)
-
-# Must update to dash>=0.23.1 to use this version of dash-core-components
-if not hasattr(_dash.development.base_component, '_explicitize_args'):
- print("Please update the `dash` module to >= 0.23.1 to use this "
- "version of dash_core_components.\n"
- "You are using version {:s}".format(_dash.version.__version__),
- file=_sys.stderr)
- _sys.exit(1)
-
-
from ._imports_ import *
from ._imports_ import __all__
@@ -45,7 +29,7 @@
'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/dash_core_components.min.js'
- ).format(__version__),
+ ).format('0.45.0-rc1'),
'namespace': 'dash_core_components'
},
{
@@ -54,7 +38,7 @@
'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/dash_core_components.min.js.map'
- ).format(__version__),
+ ).format('0.45.0-rc1'),
'namespace': 'dash_core_components',
'dynamic': True
}
diff --git a/dash_core_components/_checklist.py b/dash_core_components/_checklist.py
new file mode 100644
index 000000000..de90e9b69
--- /dev/null
+++ b/dash_core_components/_checklist.py
@@ -0,0 +1,69 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Checklist(DashComponent):
+ """
+ Checklist is a component that encapsulates several checkboxes. The values
+ and labels of the checklist is specified in the `options` property and the
+ checked items are specified with the `values` property. Each checkbox is
+ rendered as an input with a surrounding label.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Checklist'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ options = ComponentProp('options', UNDEFINED, False)
+ values = ComponentProp('values', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ inputStyle = ComponentProp('inputStyle', UNDEFINED, False)
+ inputClassName = ComponentProp('inputClassName', '', False)
+ labelStyle = ComponentProp('labelStyle', UNDEFINED, False)
+ labelClassName = ComponentProp('labelClassName', '', False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ options=UNDEFINED,
+ values=UNDEFINED,
+ className=UNDEFINED,
+ style=UNDEFINED,
+ inputStyle=UNDEFINED,
+ inputClassName='',
+ labelStyle=UNDEFINED,
+ labelClassName='',
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.List[typing.Dict[str, typing.Union[str, bool]]], Undefined], typing.Union[typing.List[str], Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param options: An array of options(default=[])
+ :param values: The currently selected value
+ :param className: The class of the container (div)
+ :param style: The style of the container (div)
+ :param inputStyle: The style of the checkbox
+ element(default={})
+ :param inputClassName: The class of the checkbox
+ element(default='')
+ :param labelStyle: The style of the that wraps the checkbox
+ input and the option's label(default={})
+ :param labelClassName: The class of the that wraps the
+ checkbox input and the option's
+ label(default='')
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_confirm_dialog.py b/dash_core_components/_confirm_dialog.py
new file mode 100644
index 000000000..9d2f827ca
--- /dev/null
+++ b/dash_core_components/_confirm_dialog.py
@@ -0,0 +1,61 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class ConfirmDialog(DashComponent):
+ """
+ ConfirmDialog is used to display the browser's native "confirm" modal,
+ with an optional message and two buttons ("OK" and "Cancel"). This
+ ConfirmDialog can be used in conjunction with buttons when the user is
+ performing an action that should require an extra step of verification.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'ConfirmDialog'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ message = ComponentProp('message', UNDEFINED, False)
+ submit_n_clicks = ComponentProp('submit_n_clicks', 0, False)
+ submit_n_clicks_timestamp = ComponentProp('submit_n_clicks_timestamp', -1, False) # noqa: E501
+ cancel_n_clicks = ComponentProp('cancel_n_clicks', 0, False)
+ cancel_n_clicks_timestamp = ComponentProp('cancel_n_clicks_timestamp', -1, False) # noqa: E501
+ displayed = ComponentProp('displayed', UNDEFINED, False)
+ key = ComponentProp('key', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ message=UNDEFINED,
+ submit_n_clicks=0,
+ submit_n_clicks_timestamp=-1,
+ cancel_n_clicks=0,
+ cancel_n_clicks_timestamp=-1,
+ displayed=UNDEFINED,
+ key=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param message: Message to show in the popup.
+ :param submit_n_clicks: Number of times the submit button was
+ clicked(default=0)
+ :param submit_n_clicks_timestamp: Last time the submit button was
+ clicked.(default=-1)
+ :param cancel_n_clicks: Number of times the popup was
+ canceled.(default=0)
+ :param cancel_n_clicks_timestamp: Last time the cancel button was
+ clicked.(default=-1)
+ :param displayed: Set to true to send the ConfirmDialog.
+ :param key:
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_confirm_dialog_provider.py b/dash_core_components/_confirm_dialog_provider.py
new file mode 100644
index 000000000..192f3398a
--- /dev/null
+++ b/dash_core_components/_confirm_dialog_provider.py
@@ -0,0 +1,67 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class ConfirmDialogProvider(DashComponent):
+ """
+ A wrapper component that will display a confirmation dialog when its child
+ component has been clicked on. For example: ```
+ dcc.ConfirmDialogProvider( html.Button('click me', id='btn'),
+ message='Danger - Are you sure you want to continue.' id='confirm')
+ ```
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'ConfirmDialogProvider'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ message = ComponentProp('message', UNDEFINED, False)
+ submit_n_clicks = ComponentProp('submit_n_clicks', 0, False)
+ submit_n_clicks_timestamp = ComponentProp('submit_n_clicks_timestamp', -1, False) # noqa: E501
+ cancel_n_clicks = ComponentProp('cancel_n_clicks', 0, False)
+ cancel_n_clicks_timestamp = ComponentProp('cancel_n_clicks_timestamp', -1, False) # noqa: E501
+ displayed = ComponentProp('displayed', UNDEFINED, False)
+ children = ComponentProp('children', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ id=UNDEFINED,
+ message=UNDEFINED,
+ submit_n_clicks=0,
+ submit_n_clicks_timestamp=-1,
+ cancel_n_clicks=0,
+ cancel_n_clicks_timestamp=-1,
+ displayed=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Any, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param message: Message to show in the popup.
+ :param submit_n_clicks: Number of times the submit was
+ clicked(default=0)
+ :param submit_n_clicks_timestamp: Last time the submit button was
+ clicked.(default=-1)
+ :param cancel_n_clicks: Number of times the popup was
+ canceled.(default=0)
+ :param cancel_n_clicks_timestamp: Last time the cancel button was
+ clicked.(default=-1)
+ :param displayed: Is the modal currently displayed.
+ :param children: The children to hijack clicks from and display the
+ popup.
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_date_picker_range.py b/dash_core_components/_date_picker_range.py
new file mode 100644
index 000000000..778b013de
--- /dev/null
+++ b/dash_core_components/_date_picker_range.py
@@ -0,0 +1,188 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class DatePickerRange(DashComponent):
+ """
+ DatePickerRange is a tailor made component designed for selecting timespan
+ across multiple days off of a calendar. The DatePicker integrates well
+ with the Python datetime module with the startDate and endDate being
+ returned in a string format suitable for creating datetime objects. This
+ component is based off of Airbnb's react-dates react component which can
+ be found here: https://github.com/airbnb/react-dates
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'DatePickerRange'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ start_date = ComponentProp('start_date', UNDEFINED, False)
+ end_date = ComponentProp('end_date', UNDEFINED, False)
+ min_date_allowed = ComponentProp('min_date_allowed', UNDEFINED, False)
+ max_date_allowed = ComponentProp('max_date_allowed', UNDEFINED, False)
+ initial_visible_month = ComponentProp('initial_visible_month', UNDEFINED, False) # noqa: E501
+ start_date_placeholder_text = ComponentProp('start_date_placeholder_text', UNDEFINED, False) # noqa: E501
+ end_date_placeholder_text = ComponentProp('end_date_placeholder_text', UNDEFINED, False) # noqa: E501
+ day_size = ComponentProp('day_size', 39, False)
+ calendar_orientation = ComponentProp('calendar_orientation', "'horizontal'", False) # noqa: E501
+ is_RTL = ComponentProp('is_RTL', False, False)
+ reopen_calendar_on_clear = ComponentProp('reopen_calendar_on_clear', False, False) # noqa: E501
+ number_of_months_shown = ComponentProp('number_of_months_shown', 1, False)
+ with_portal = ComponentProp('with_portal', False, False)
+ with_full_screen_portal = ComponentProp('with_full_screen_portal', False, False) # noqa: E501
+ first_day_of_week = ComponentProp('first_day_of_week', "0", False)
+ minimum_nights = ComponentProp('minimum_nights', UNDEFINED, False)
+ stay_open_on_select = ComponentProp('stay_open_on_select', False, False)
+ show_outside_days = ComponentProp('show_outside_days', UNDEFINED, False)
+ month_format = ComponentProp('month_format', UNDEFINED, False)
+ display_format = ComponentProp('display_format', UNDEFINED, False)
+ disabled = ComponentProp('disabled', False, False)
+ clearable = ComponentProp('clearable', False, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ updatemode = ComponentProp('updatemode', "'singledate'", False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ start_date=UNDEFINED,
+ end_date=UNDEFINED,
+ min_date_allowed=UNDEFINED,
+ max_date_allowed=UNDEFINED,
+ initial_visible_month=UNDEFINED,
+ start_date_placeholder_text=UNDEFINED,
+ end_date_placeholder_text=UNDEFINED,
+ day_size=39,
+ calendar_orientation="'horizontal'",
+ is_RTL=False,
+ reopen_calendar_on_clear=False,
+ number_of_months_shown=1,
+ with_portal=False,
+ with_full_screen_portal=False,
+ first_day_of_week="0",
+ minimum_nights=UNDEFINED,
+ stay_open_on_select=False,
+ show_outside_days=UNDEFINED,
+ month_format=UNDEFINED,
+ display_format=UNDEFINED,
+ disabled=False,
+ clearable=False,
+ style=UNDEFINED,
+ className=UNDEFINED,
+ updatemode="'singledate'",
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Any, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Any, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Any, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param start_date: Specifies the starting date for the component.
+ Accepts datetime.datetime objects or strings in
+ the format 'YYYY-MM-DD'
+ :param end_date: Specifies the ending date for the component.
+ Accepts datetime.datetime objects or strings in
+ the format 'YYYY-MM-DD'
+ :param min_date_allowed: Specifies the lowest selectable date for
+ the component. Accepts datetime.datetime
+ objects or strings in the format 'YYYY-MM-
+ DD'
+ :param max_date_allowed: Specifies the highest selectable date for
+ the component. Accepts datetime.datetime
+ objects or strings in the format 'YYYY-MM-
+ DD'
+ :param initial_visible_month: Specifies the month that is initially
+ presented when the user opens the
+ calendar. Accepts datetime.datetime
+ objects or strings in the format
+ 'YYYY-MM-DD'
+ :param start_date_placeholder_text: Text that will be displayed in
+ the first input box of the date
+ picker when no date is
+ selected. Default value is
+ 'Start Date'
+ :param end_date_placeholder_text: Text that will be displayed in
+ the second input box of the date
+ picker when no date is selected.
+ Default value is 'End Date'
+ :param day_size: Size of rendered calendar days, higher number
+ means bigger day size and larger calendar
+ overall(default=39)
+ :param calendar_orientation: Orientation of calendar, either
+ vertical or horizontal. Valid options
+ are 'vertical' or
+ 'horizontal'.(Possible values:
+ 'vertical',
+ 'horizontal')(default='horizontal')
+ :param is_RTL: Determines whether the calendar and days operate
+ from left to right or from right to
+ left(default=false)
+ :param reopen_calendar_on_clear: If True, the calendar will
+ automatically open when
+ cleared(default=false)
+ :param number_of_months_shown: Number of calendar months that are
+ shown when calendar is
+ opened(default=1)
+ :param with_portal: If True, calendar will open in a screen overlay
+ portal, not supported on vertical
+ calendar(default=false)
+ :param with_full_screen_portal: If True, calendar will open in a
+ full screen overlay portal, will
+ take precedent over 'withPortal' if
+ both are set to true, not supported
+ on vertical calendar(default=false)
+ :param first_day_of_week: Specifies what day is the first day of
+ the week, values must be from [0, ..., 6]
+ with 0 denoting Sunday and 6 denoting
+ Saturday(Possible values: 0, 1, 2, 3, 4,
+ 5, 6)(default=0)
+ :param minimum_nights: Specifies a minimum number of nights that
+ must be selected between the startDate and
+ the endDate
+ :param stay_open_on_select: If True the calendar will not close
+ when the user has selected a value and
+ will wait until the user clicks off the
+ calendar(default=false)
+ :param show_outside_days: If True the calendar will display days
+ that rollover into the next month
+ :param month_format: Specifies the format that the month will be
+ displayed in the calendar, valid formats are
+ variations of "MM YY". For example: "MM YY"
+ renders as '05 97' for May 1997 "MMMM, YYYY"
+ renders as 'May, 1997' for May 1997 "MMM, YY"
+ renders as 'Sep, 97' for September 1997
+ :param display_format: Specifies the format that the selected dates
+ will be displayed valid formats are
+ variations of "MM YY DD". For example: "MM
+ YY DD" renders as '05 10 97' for May 10th
+ 1997 "MMMM, YY" renders as 'May, 1997' for
+ May 10th 1997 "M, D, YYYY" renders as '07,
+ 10, 1997' for September 10th 1997 "MMMM"
+ renders as 'May' for May 10 1997
+ :param disabled: If True, no dates can be selected.(default=false)
+ :param clearable: Whether or not the dropdown is "clearable", that
+ is, whether or not a small "x" appears on the
+ right of the dropdown that removes the selected
+ value.(default=false)
+ :param style: CSS styles appended to wrapper div
+ :param className: Appends a CSS class to the wrapper div component.
+ :param updatemode: Determines when the component should update its
+ value. If `bothdates`, then the DatePicker will
+ only trigger its value when the user has
+ finished picking both dates. If `singledate`,
+ then the DatePicker will update its value as one
+ date is picked.(Possible values: 'singledate',
+ 'bothdates')(default='singledate')
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_date_picker_single.py b/dash_core_components/_date_picker_single.py
new file mode 100644
index 000000000..7274cb75b
--- /dev/null
+++ b/dash_core_components/_date_picker_single.py
@@ -0,0 +1,161 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class DatePickerSingle(DashComponent):
+ """
+ DatePickerSingle is a tailor made component designed for selecting a
+ single day off of a calendar. The DatePicker integrates well with the
+ Python datetime module with the startDate and endDate being returned in a
+ string format suitable for creating datetime objects. This component is
+ based off of Airbnb's react-dates react component which can be found here:
+ https://github.com/airbnb/react-dates
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'DatePickerSingle'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ date = ComponentProp('date', UNDEFINED, False)
+ min_date_allowed = ComponentProp('min_date_allowed', UNDEFINED, False)
+ max_date_allowed = ComponentProp('max_date_allowed', UNDEFINED, False)
+ initial_visible_month = ComponentProp('initial_visible_month', UNDEFINED, False) # noqa: E501
+ day_size = ComponentProp('day_size', 39, False)
+ calendar_orientation = ComponentProp('calendar_orientation', "'horizontal'", False) # noqa: E501
+ is_RTL = ComponentProp('is_RTL', False, False)
+ placeholder = ComponentProp('placeholder', UNDEFINED, False)
+ reopen_calendar_on_clear = ComponentProp('reopen_calendar_on_clear', False, False) # noqa: E501
+ number_of_months_shown = ComponentProp('number_of_months_shown', 1, False)
+ with_portal = ComponentProp('with_portal', False, False)
+ with_full_screen_portal = ComponentProp('with_full_screen_portal', False, False) # noqa: E501
+ first_day_of_week = ComponentProp('first_day_of_week', "0", False)
+ stay_open_on_select = ComponentProp('stay_open_on_select', False, False)
+ show_outside_days = ComponentProp('show_outside_days', True, False)
+ month_format = ComponentProp('month_format', UNDEFINED, False)
+ display_format = ComponentProp('display_format', UNDEFINED, False)
+ disabled = ComponentProp('disabled', False, False)
+ clearable = ComponentProp('clearable', False, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ date=UNDEFINED,
+ min_date_allowed=UNDEFINED,
+ max_date_allowed=UNDEFINED,
+ initial_visible_month=UNDEFINED,
+ day_size=39,
+ calendar_orientation="'horizontal'",
+ is_RTL=False,
+ placeholder=UNDEFINED,
+ reopen_calendar_on_clear=False,
+ number_of_months_shown=1,
+ with_portal=False,
+ with_full_screen_portal=False,
+ first_day_of_week="0",
+ stay_open_on_select=False,
+ show_outside_days=True,
+ month_format=UNDEFINED,
+ display_format=UNDEFINED,
+ disabled=False,
+ clearable=False,
+ style=UNDEFINED,
+ className=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Any, Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Any, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param date: Specifies the starting date for the component, best
+ practice is to pass value via datetime object
+ :param min_date_allowed: Specifies the lowest selectable date for
+ the component. Accepts datetime.datetime
+ objects or strings in the format 'YYYY-MM-
+ DD'
+ :param max_date_allowed: Specifies the highest selectable date for
+ the component. Accepts datetime.datetime
+ objects or strings in the format 'YYYY-MM-
+ DD'
+ :param initial_visible_month: Specifies the month that is initially
+ presented when the user opens the
+ calendar. Accepts datetime.datetime
+ objects or strings in the format
+ 'YYYY-MM-DD'
+ :param day_size: Size of rendered calendar days, higher number
+ means bigger day size and larger calendar
+ overall(default=39)
+ :param calendar_orientation: Orientation of calendar, either
+ vertical or horizontal. Valid options
+ are 'vertical' or
+ 'horizontal'.(Possible values:
+ 'vertical',
+ 'horizontal')(default='horizontal')
+ :param is_RTL: Determines whether the calendar and days operate
+ from left to right or from right to
+ left(default=false)
+ :param placeholder: Text that will be displayed in the input box of
+ the date picker when no date is selected.
+ Default value is 'Start Date'
+ :param reopen_calendar_on_clear: If True, the calendar will
+ automatically open when
+ cleared(default=false)
+ :param number_of_months_shown: Number of calendar months that are
+ shown when calendar is
+ opened(default=1)
+ :param with_portal: If True, calendar will open in a screen overlay
+ portal, not supported on vertical
+ calendar(default=false)
+ :param with_full_screen_portal: If True, calendar will open in a
+ full screen overlay portal, will
+ take precedent over 'withPortal' if
+ both are set to True, not supported
+ on vertical calendar(default=false)
+ :param first_day_of_week: Specifies what day is the first day of
+ the week, values must be from [0, ..., 6]
+ with 0 denoting Sunday and 6 denoting
+ Saturday(Possible values: 0, 1, 2, 3, 4,
+ 5, 6)(default=0)
+ :param stay_open_on_select: If True the calendar will not close
+ when the user has selected a value and
+ will wait until the user clicks off the
+ calendar(default=false)
+ :param show_outside_days: If True the calendar will display days
+ that rollover into the next
+ month(default=true)
+ :param month_format: Specifies the format that the month will be
+ displayed in the calendar, valid formats are
+ variations of "MM YY". For example: "MM YY"
+ renders as '05 97' for May 1997 "MMMM, YYYY"
+ renders as 'May, 1997' for May 1997 "MMM, YY"
+ renders as 'Sep, 97' for September 1997
+ :param display_format: Specifies the format that the selected dates
+ will be displayed valid formats are
+ variations of "MM YY DD". For example: "MM
+ YY DD" renders as '05 10 97' for May 10th
+ 1997 "MMMM, YY" renders as 'May, 1997' for
+ May 10th 1997 "M, D, YYYY" renders as '07,
+ 10, 1997' for September 10th 1997 "MMMM"
+ renders as 'May' for May 10 1997
+ :param disabled: If True, no dates can be selected.(default=false)
+ :param clearable: Whether or not the dropdown is "clearable", that
+ is, whether or not a small "x" appears on the
+ right of the dropdown that removes the selected
+ value.(default=false)
+ :param style: CSS styles appended to wrapper div
+ :param className: Appends a CSS class to the wrapper div component.
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_dropdown.py b/dash_core_components/_dropdown.py
new file mode 100644
index 000000000..47a96c08e
--- /dev/null
+++ b/dash_core_components/_dropdown.py
@@ -0,0 +1,81 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Dropdown(DashComponent):
+ """
+ Dropdown is an interactive dropdown element for selecting one or more
+ items. The values and labels of the dropdown items are specified in the
+ `options` property and the selected item(s) are specified with the `value`
+ property. Use a dropdown when you have many options (more than 5) or when
+ you are constrained for space. Otherwise, you can use RadioItems or a
+ Checklist, which have the benefit of showing the users all of the items at
+ once.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Dropdown'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ options = ComponentProp('options', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ clearable = ComponentProp('clearable', True, False)
+ disabled = ComponentProp('disabled', False, False)
+ multi = ComponentProp('multi', False, False)
+ placeholder = ComponentProp('placeholder', UNDEFINED, False)
+ searchable = ComponentProp('searchable', True, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ options=UNDEFINED,
+ value=UNDEFINED,
+ className=UNDEFINED,
+ clearable=True,
+ disabled=False,
+ multi=False,
+ placeholder=UNDEFINED,
+ searchable=True,
+ style=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.List[typing.Dict[str, typing.Union[str, bool]]], Undefined], typing.Union[typing.Union[str,typing.List[str]], Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param options: An array of options
+ :param value: The value of the input. If `multi` is false (the
+ default) then value is just a string that corresponds
+ to the values provided in the `options` property. If
+ `multi` is true, then multiple values can be selected
+ at once, and `value` is an array of items with values
+ corresponding to those in the `options` prop.
+ :param className: className of the dropdown element
+ :param clearable: Whether or not the dropdown is "clearable", that
+ is, whether or not a small "x" appears on the
+ right of the dropdown that removes the selected
+ value.(default=true)
+ :param disabled: If true, the option is disabled(default=false)
+ :param multi: If true, the user can select multiple
+ values(default=false)
+ :param placeholder: The grey, default text shown when no option is
+ selected
+ :param searchable: Whether to enable the searching feature or
+ not(default=true)
+ :param style:
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_graph.py b/dash_core_components/_graph.py
new file mode 100644
index 000000000..b0a9912cc
--- /dev/null
+++ b/dash_core_components/_graph.py
@@ -0,0 +1,141 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Graph(DashComponent):
+
+ _namespace = 'dash_core_components'
+ _typename = 'Graph'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ clickData = ComponentProp('clickData', UNDEFINED, False)
+ clickAnnotationData = ComponentProp('clickAnnotationData', UNDEFINED, False) # noqa: E501
+ hoverData = ComponentProp('hoverData', UNDEFINED, False)
+ clear_on_unhover = ComponentProp('clear_on_unhover', False, False)
+ selectedData = ComponentProp('selectedData', UNDEFINED, False)
+ relayoutData = ComponentProp('relayoutData', UNDEFINED, False)
+ extendData = ComponentProp('extendData', UNDEFINED, False)
+ restyleData = ComponentProp('restyleData', UNDEFINED, False)
+ figure = ComponentProp('figure', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ animate = ComponentProp('animate', False, False)
+ animation_options = ComponentProp('animation_options', UNDEFINED, False)
+ config = ComponentProp('config', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ clickData=UNDEFINED,
+ clickAnnotationData=UNDEFINED,
+ hoverData=UNDEFINED,
+ clear_on_unhover=False,
+ selectedData=UNDEFINED,
+ relayoutData=UNDEFINED,
+ extendData=UNDEFINED,
+ restyleData=UNDEFINED,
+ figure=UNDEFINED,
+ style=UNDEFINED,
+ className=UNDEFINED,
+ animate=False,
+ animation_options=UNDEFINED,
+ config=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.List, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, typing.Dict[str, typing.Union[bool]], typing.Union[float, int], typing.Any, str, typing.List]], Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id: The ID of this component, used to identify dash
+ components in callbacks. The ID needs to be unique
+ across all of the components in an app.
+ :param clickData: Data from latest click event. Read-
+ only.(default=null)
+ :param clickAnnotationData: Data from latest click annotation
+ event. Read-only.(default=null)
+ :param hoverData: Data from latest hover event. Read-
+ only.(default=null)
+ :param clear_on_unhover: If True, `clear_on_unhover` will clear the
+ `hoverData` property when the user
+ "unhovers" from a point. If False, then
+ the `hoverData` property will be equal to
+ the data from the last point that was
+ hovered over.(default=false)
+ :param selectedData: Data from latest select event. Read-
+ only.(default=null)
+ :param relayoutData: Data from latest relayout event which occurs
+ when the user zooms or pans on the plot or
+ other layout-level edits. Has the form `{: }` describing the changes
+ made. Read-only.(default=null)
+ :param extendData: Data that should be appended to existing traces.
+ Has the form `[updateData, traceIndices,
+ maxPoints]`, where `updateData` is an object
+ containing the data to extend, `traceIndices`
+ (optional) is an array of trace indices that
+ should be extended, and `maxPoints` (optional)
+ is either an integer defining the maximum number
+ of points allowed or an object with key:value
+ pairs matching `updateData` Reference the
+ Plotly.extendTraces API for full usage:
+ https://plot.ly/javascript/plotlyjs-function-
+ reference/#plotlyextendtraces(default=null)
+ :param restyleData: Data from latest restyle event which occurs
+ when the user toggles a legend item, changes
+ parcoords selections, or other trace-level
+ edits. Has the form `[edits, indices]`, where
+ `edits` is an object `{: }`
+ describing the changes made, and `indices` is
+ an array of trace indices that were edited.
+ Read-only.(default=null)
+ :param figure: Plotly `figure` object. See schema:
+ https://plot.ly/javascript/reference Only supports
+ `data` array and `layout` object. `config` is set
+ separately by the `config` property, and `frames` is
+ not supported.(default={data: [], layout: {}})
+ :param style: Generic style overrides on the plot div
+ :param className: className of the parent div
+ :param animate: Beta: If true, animate between updates using
+ plotly.js's `animate` function(default=false)
+ :param animation_options: Beta: Object containing animation
+ settings. Only applies if `animate` is
+ `true`(default={ frame: {
+ redraw: false, }, transition: {
+ duration: 750, ease: 'cubic-in-
+ out', }, })
+ :param config: Plotly.js config options. See
+ https://plot.ly/javascript/configuration-options/
+ for more info.(default={ staticPlot: false,
+ editable: false, edits: {
+ annotationPosition: false, annotationTail:
+ false, annotationText: false,
+ axisTitleText: false, colorbarPosition:
+ false, colorbarTitleText: false,
+ legendPosition: false, legendText: false,
+ shapePosition: false, titleText: false,
+ }, autosizable: false, queueLength: 0,
+ fillFrame: false, frameMargins: 0,
+ scrollZoom: false, doubleClick:
+ 'reset+autosize', showTips: true,
+ showAxisDragHandles: true,
+ showAxisRangeEntryBoxes: true, showLink: false,
+ sendData: true, linkText: 'Edit chart',
+ showSources: false, displayModeBar: 'hover',
+ modeBarButtonsToRemove: [], modeBarButtonsToAdd:
+ [], modeBarButtons: false, displaylogo:
+ true, plotGlPixelRatio: 2, topojsonURL:
+ 'https://cdn.plot.ly/', mapboxAccessToken: null,
+ })
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_imports_.py b/dash_core_components/_imports_.py
index 0fabe31bb..f581328cc 100644
--- a/dash_core_components/_imports_.py
+++ b/dash_core_components/_imports_.py
@@ -1,26 +1,26 @@
-from .Checklist import Checklist
-from .ConfirmDialog import ConfirmDialog
-from .ConfirmDialogProvider import ConfirmDialogProvider
-from .DatePickerRange import DatePickerRange
-from .DatePickerSingle import DatePickerSingle
-from .Dropdown import Dropdown
-from .Graph import Graph
-from .Input import Input
-from .Interval import Interval
-from .Link import Link
-from .Loading import Loading
-from .Location import Location
-from .LogoutButton import LogoutButton
-from .Markdown import Markdown
-from .RadioItems import RadioItems
-from .RangeSlider import RangeSlider
-from .Slider import Slider
-from .Store import Store
-from .SyntaxHighlighter import SyntaxHighlighter
-from .Tab import Tab
-from .Tabs import Tabs
-from .Textarea import Textarea
-from .Upload import Upload
+from ._checklist import Checklist
+from ._confirm_dialog import ConfirmDialog
+from ._confirm_dialog_provider import ConfirmDialogProvider
+from ._date_picker_range import DatePickerRange
+from ._date_picker_single import DatePickerSingle
+from ._dropdown import Dropdown
+from ._graph import Graph
+from ._input import Input
+from ._interval import Interval
+from ._link import Link
+from ._loading import Loading
+from ._location import Location
+from ._logout_button import LogoutButton
+from ._markdown import Markdown
+from ._radio_items import RadioItems
+from ._range_slider import RangeSlider
+from ._slider import Slider
+from ._store import Store
+from ._syntax_highlighter import SyntaxHighlighter
+from ._tab import Tab
+from ._tabs import Tabs
+from ._textarea import Textarea
+from ._upload import Upload
__all__ = [
"Checklist",
@@ -46,4 +46,4 @@
"Tabs",
"Textarea",
"Upload"
-]
\ No newline at end of file
+]
diff --git a/dash_core_components/_input.py b/dash_core_components/_input.py
new file mode 100644
index 000000000..d9e809ce8
--- /dev/null
+++ b/dash_core_components/_input.py
@@ -0,0 +1,261 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Input(DashComponent):
+ """
+ A basic HTML input control for entering text, numbers, or passwords. Note
+ that checkbox and radio types are supported through the Checklist and
+ RadioItems component. Dates, times, and file uploads are also supported
+ through separate components.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Input'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ debounce = ComponentProp('debounce', False, False)
+ type = ComponentProp('type', UNDEFINED, False)
+ autocomplete = ComponentProp('autocomplete', UNDEFINED, False)
+ autofocus = ComponentProp('autofocus', UNDEFINED, False)
+ disabled = ComponentProp('disabled', UNDEFINED, False)
+ inputmode = ComponentProp('inputmode', UNDEFINED, False)
+ list = ComponentProp('list', UNDEFINED, False)
+ max = ComponentProp('max', UNDEFINED, False)
+ maxlength = ComponentProp('maxlength', UNDEFINED, False)
+ min = ComponentProp('min', UNDEFINED, False)
+ minlength = ComponentProp('minlength', UNDEFINED, False)
+ multiple = ComponentProp('multiple', UNDEFINED, False)
+ name = ComponentProp('name', UNDEFINED, False)
+ pattern = ComponentProp('pattern', UNDEFINED, False)
+ placeholder = ComponentProp('placeholder', UNDEFINED, False)
+ readOnly = ComponentProp('readOnly', UNDEFINED, False)
+ required = ComponentProp('required', UNDEFINED, False)
+ selectionDirection = ComponentProp('selectionDirection', UNDEFINED, False)
+ selectionEnd = ComponentProp('selectionEnd', UNDEFINED, False)
+ selectionStart = ComponentProp('selectionStart', UNDEFINED, False)
+ size = ComponentProp('size', UNDEFINED, False)
+ spellCheck = ComponentProp('spellCheck', UNDEFINED, False)
+ step = ComponentProp('step', UNDEFINED, False)
+ n_submit = ComponentProp('n_submit', 0, False)
+ n_submit_timestamp = ComponentProp('n_submit_timestamp', -1, False)
+ n_blur = ComponentProp('n_blur', 0, False)
+ n_blur_timestamp = ComponentProp('n_blur_timestamp', -1, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ value=UNDEFINED,
+ style=UNDEFINED,
+ className=UNDEFINED,
+ debounce=False,
+ type=UNDEFINED,
+ autocomplete=UNDEFINED,
+ autofocus=UNDEFINED,
+ disabled=UNDEFINED,
+ inputmode=UNDEFINED,
+ list=UNDEFINED,
+ max=UNDEFINED,
+ maxlength=UNDEFINED,
+ min=UNDEFINED,
+ minlength=UNDEFINED,
+ multiple=UNDEFINED,
+ name=UNDEFINED,
+ pattern=UNDEFINED,
+ placeholder=UNDEFINED,
+ readOnly=UNDEFINED,
+ required=UNDEFINED,
+ selectionDirection=UNDEFINED,
+ selectionEnd=UNDEFINED,
+ selectionStart=UNDEFINED,
+ size=UNDEFINED,
+ spellCheck=UNDEFINED,
+ step=UNDEFINED,
+ n_submit=0,
+ n_submit_timestamp=-1,
+ n_blur=0,
+ n_blur_timestamp=-1,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.Union[str,typing.Union[float, int]], Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Any, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Any, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[str,typing.Union[float, int]], Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[str,typing.Union[float, int]], Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[str,typing.Union[float, int]], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id: The ID of this component, used to identify dash
+ components in callbacks. The ID needs to be unique
+ across all of the components in an app.
+ :param value: The value of the input
+ :param style: The input's inline styles
+ :param className: The class of the input element
+ :param debounce: If true, changes to input will be sent back to the
+ Dash server only on enter or when losing focus. If
+ it's false, it will sent the value back on every
+ change.(default=false)
+ :param type: The type of control to render.(Possible values:
+ "text", 'number', 'password', 'email', 'range',
+ 'search', 'tel', 'url', 'hidden')
+ :param autocomplete: This attribute indicates whether the value of
+ the control can be automatically completed by
+ the browser.
+ :param autofocus: The element should be automatically focused after
+ the page loaded.
+ :param disabled: If true, the input is disabled and can't be
+ clicked on.
+ :param inputmode: (Possible values: "verbatim", "latin", "latin-
+ name", "latin-prose", "full-width-latin", "kana",
+ "katakana", "numeric", "tel", "email", "url")
+ :param list: Identifies a list of pre-defined options to suggest to
+ the user. The value must be the id of a
+ element in the same document. The browser displays
+ only options that are valid values for this input
+ element. This attribute is ignored when the type
+ attribute's value is hidden, checkbox, radio, file, or
+ a button type.
+ :param max: The maximum (numeric or date-time) value for this item,
+ which must not be less than its minimum (min attribute)
+ value.
+ :param maxlength: If the value of the type attribute is text,
+ email, search, password, tel, or url, this
+ attribute specifies the maximum number of
+ characters (in UTF-16 code units) that the user
+ can enter. For other control types, it is
+ ignored. It can exceed the value of the size
+ attribute. If it is not specified, the user can
+ enter an unlimited number of characters.
+ Specifying a negative number results in the
+ default behavior (i.e. the user can enter an
+ unlimited number of characters). The constraint
+ is evaluated only when the value of the attribute
+ has been changed.
+ :param min: The minimum (numeric or date-time) value for this item,
+ which must not be greater than its maximum (max
+ attribute) value.
+ :param minlength: If the value of the type attribute is text,
+ email, search, password, tel, or url, this
+ attribute specifies the minimum number of
+ characters (in Unicode code points) that the user
+ can enter. For other control types, it is
+ ignored.
+ :param multiple: This Boolean attribute indicates whether the user
+ can enter more than one value. This attribute
+ applies when the type attribute is set to email or
+ file, otherwise it is ignored.
+ :param name: The name of the control, which is submitted with the
+ form data.
+ :param pattern: A regular expression that the control's value is
+ checked against. The pattern must match the entire
+ value, not just some subset. Use the title
+ attribute to describe the pattern to help the user.
+ This attribute applies when the value of the type
+ attribute is text, search, tel, url, email, or
+ password, otherwise it is ignored. The regular
+ expression language is the same as JavaScript
+ RegExp algorithm, with the 'u' parameter that makes
+ it treat the pattern as a sequence of unicode code
+ points. The pattern is not surrounded by forward
+ slashes.
+ :param placeholder: A hint to the user of what can be entered in
+ the control . The placeholder text must not
+ contain carriage returns or line-feeds. Note:
+ Do not use the placeholder attribute instead of
+ a element, their purposes are
+ different. The attribute describes the
+ role of the form element (i.e. it indicates
+ what kind of information is expected), and the
+ placeholder attribute is a hint about the
+ format that the content should take. There are
+ cases in which the placeholder attribute is
+ never displayed to the user, so the form must
+ be understandable without it.
+ :param readOnly: This attribute indicates that the user cannot
+ modify the value of the control. The value of the
+ attribute is irrelevant. If you need read-write
+ access to the input value, do not add the
+ "readonly" attribute. It is ignored if the value
+ of the type attribute is hidden, range, color,
+ checkbox, radio, file, or a button type (such as
+ button or submit).
+ :param required: This attribute specifies that the user must fill
+ in a value before submitting a form. It cannot be
+ used when the type attribute is hidden, image, or
+ a button type (submit, reset, or button). The
+ :optional and :required CSS pseudo-classes will be
+ applied to the field as appropriate.
+ :param selectionDirection: The direction in which selection
+ occurred. This is "forward" if the
+ selection was made from left-to-right in
+ an LTR locale or right-to-left in an RTL
+ locale, or "backward" if the selection
+ was made in the opposite direction. On
+ platforms on which it's possible this
+ value isn't known, the value can be
+ "none"; for example, on macOS, the
+ default direction is "none", then as the
+ user begins to modify the selection
+ using the keyboard, this will change to
+ reflect the direction in which the
+ selection is expanding.
+ :param selectionEnd: The offset into the element's text content of
+ the last selected character. If there's no
+ selection, this value indicates the offset to
+ the character following the current text input
+ cursor position (that is, the position the
+ next character typed would occupy).
+ :param selectionStart: The offset into the element's text content
+ of the first selected character. If there's
+ no selection, this value indicates the
+ offset to the character following the
+ current text input cursor position (that is,
+ the position the next character typed would
+ occupy).
+ :param size: The initial size of the control. This value is in
+ pixels unless the value of the type attribute is text
+ or password, in which case it is an integer number of
+ characters. Starting in, this attribute applies only
+ when the type attribute is set to text, search, tel,
+ url, email, or password, otherwise it is ignored. In
+ addition, the size must be greater than zero. If you
+ do not specify a size, a default value of 20 is used.'
+ simply states "the user agent should ensure that at
+ least that many characters are visible", but different
+ characters can have different widths in certain fonts.
+ In some browsers, a certain string with x characters
+ will not be entirely visible even if size is defined
+ to at least x.
+ :param spellCheck: Setting the value of this attribute to true
+ indicates that the element needs to have its
+ spelling and grammar checked. The value default
+ indicates that the element is to act according
+ to a default behavior, possibly based on the
+ parent element's own spellcheck value. The value
+ false indicates that the element should not be
+ checked.
+ :param step: Works with the min and max attributes to limit the
+ increments at which a numeric or date-time value can
+ be set. It can be the string any or a positive
+ floating point number. If this attribute is not set to
+ any, the control accepts only values at multiples of
+ the step value greater than the minimum.
+ :param n_submit: Number of times the `Enter` key was pressed while
+ the input had focus.(default=0)
+ :param n_submit_timestamp: Last time that `Enter` was
+ pressed.(default=-1)
+ :param n_blur: Number of times the input lost focus.(default=0)
+ :param n_blur_timestamp: Last time the input lost
+ focus.(default=-1)
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_interval.py b/dash_core_components/_interval.py
new file mode 100644
index 000000000..b5ee1a203
--- /dev/null
+++ b/dash_core_components/_interval.py
@@ -0,0 +1,54 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Interval(DashComponent):
+ """
+ A component that repeatedly increments a counter `n_intervals` with a
+ fixed time delay between each increment. Interval is good for triggering a
+ component on a recurring basis. The time delay is set with the property
+ "interval" in milliseconds.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Interval'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ interval = ComponentProp('interval', 1000, False)
+ disabled = ComponentProp('disabled', UNDEFINED, False)
+ n_intervals = ComponentProp('n_intervals', 0, False)
+ max_intervals = ComponentProp('max_intervals', -1, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ interval=1000,
+ disabled=UNDEFINED,
+ n_intervals=0,
+ max_intervals=-1,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param interval: This component will increment the counter
+ `n_intervals` every `interval`
+ milliseconds(default=1000)
+ :param disabled: If True, the counter will no longer update
+ :param n_intervals: Number of times the interval has
+ passed(default=0)
+ :param max_intervals: Number of times the interval will be fired.
+ If -1, then the interval has no limit (the
+ default) and if 0 then the interval stops
+ running.(default=-1)
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_link.py b/dash_core_components/_link.py
new file mode 100644
index 000000000..ffcb42103
--- /dev/null
+++ b/dash_core_components/_link.py
@@ -0,0 +1,49 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Link(DashComponent):
+
+ _namespace = 'dash_core_components'
+ _typename = 'Link'
+ available_wildcard_properties = [
+
+ ]
+ href = ComponentProp('href', UNDEFINED, False)
+ refresh = ComponentProp('refresh', False, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ id = ComponentProp('id', UNDEFINED, False)
+ children = ComponentProp('children', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ href=UNDEFINED,
+ refresh=False,
+ className=UNDEFINED,
+ style=UNDEFINED,
+ id=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Union[str, int, float, DashComponent,typing.List[typing.Union[str, int, float, DashComponent]]], Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param href:
+ :param refresh: (default=false)
+ :param className:
+ :param style:
+ :param id:
+ :param children:
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_loading.py b/dash_core_components/_loading.py
new file mode 100644
index 000000000..d27222b4b
--- /dev/null
+++ b/dash_core_components/_loading.py
@@ -0,0 +1,65 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Loading(DashComponent):
+ """
+ A Loading component that wraps any other component and displays a spinner
+ until the wrapped component has rendered.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Loading'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ children = ComponentProp('children', UNDEFINED, False)
+ type = ComponentProp('type', "'default'", False)
+ fullscreen = ComponentProp('fullscreen', UNDEFINED, False)
+ debug = ComponentProp('debug', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ color = ComponentProp('color', '#119DFF', False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ id=UNDEFINED,
+ type="'default'",
+ fullscreen=UNDEFINED,
+ debug=UNDEFINED,
+ className=UNDEFINED,
+ style=UNDEFINED,
+ color='#119DFF',
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Union[typing.List[typing.Union[str, int, float, DashComponent,typing.List[typing.Union[str, int, float, DashComponent]]]],typing.Union[str, int, float, DashComponent,typing.List[typing.Union[str, int, float, DashComponent]]]], Undefined], typing.Union[str, Undefined], typing.Union[typing.Any, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param children: Array that holds components to render
+ :param type: Property that determines which spinner to show - one
+ of 'graph', 'cube', 'circle', 'dot', or
+ 'default'.(Possible values: 'graph', 'cube', 'circle',
+ 'dot', 'default')(default='default')
+ :param fullscreen: Boolean that determines if the loading spinner
+ will be displayed full-screen or not
+ :param debug: Boolean that determines if the loading spinner will
+ display the status.prop_name and component_name
+ :param className: Additional CSS class for the root DOM node
+ :param style: Additional CSS styling for the root DOM node
+ :param color: Primary colour used for the loading
+ spinners(default='#119DFF')
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_location.py b/dash_core_components/_location.py
new file mode 100644
index 000000000..fd4b78fef
--- /dev/null
+++ b/dash_core_components/_location.py
@@ -0,0 +1,53 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Location(DashComponent):
+ """
+ Update and track the current window.location object through the
+ window.history state. Use in conjunction with the
+ `dash_core_components.Link` component to make apps with multiple pages.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Location'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, True)
+ pathname = ComponentProp('pathname', UNDEFINED, False)
+ search = ComponentProp('search', UNDEFINED, False)
+ hash = ComponentProp('hash', UNDEFINED, False)
+ href = ComponentProp('href', UNDEFINED, False)
+ refresh = ComponentProp('refresh', True, False)
+
+ def __init__(
+ self,
+ id,
+ pathname=UNDEFINED,
+ search=UNDEFINED,
+ hash=UNDEFINED,
+ href=UNDEFINED,
+ refresh=True,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param pathname: pathname in window.location - e.g.,
+ "/my/full/pathname"
+ :param search: search in window.location - e.g., "?myargument=1"
+ :param hash: hash in window.location - e.g., "#myhash"
+ :param href: href in window.location - e.g.,
+ "/my/full/pathname?myargument=1#myhash"
+ :param refresh: Refresh the page when the location is
+ updated?(default=true)
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_logout_button.py b/dash_core_components/_logout_button.py
new file mode 100644
index 000000000..c125e8a3a
--- /dev/null
+++ b/dash_core_components/_logout_button.py
@@ -0,0 +1,63 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class LogoutButton(DashComponent):
+ """
+ Logout button to submit a form post request to the `logout_url` prop.
+ Usage is intended for dash-deployment-server authentication. DDS usage:
+ `dcc.LogoutButton(logout_url=os.getenv('DASH_LOGOUT_URL'))` Custom usage:
+ - Implement a login mechanism. - Create a flask route with a post method
+ handler. `@app.server.route('/logout', methods=['POST'])` - The logout
+ route should perform what's necessary for the user to logout. - If you
+ store the session in a cookie, clear the cookie: `rep =
+ flask.Response(); rep.set_cookie('session', '', expires=0)` - Create a
+ logout button component and assign it the logout_url
+ `dcc.LogoutButton(logout_url='/logout')` See https://dash.plot.ly/dash-
+ core-components/logout_button for more documentation and examples.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'LogoutButton'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ label = ComponentProp('label', 'Logout', False)
+ logout_url = ComponentProp('logout_url', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ method = ComponentProp('method', 'post', False)
+ className = ComponentProp('className', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ label='Logout',
+ logout_url=UNDEFINED,
+ style=UNDEFINED,
+ method='post',
+ className=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id: Id of the button.
+ :param label: Text of the button(default='Logout')
+ :param logout_url: Url to submit a post logout request.
+ :param style: Style of the button
+ :param method: Http method to submit the logout
+ form.(default='post')
+ :param className: CSS class for the button.
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_markdown.py b/dash_core_components/_markdown.py
new file mode 100644
index 000000000..afa0bbc43
--- /dev/null
+++ b/dash_core_components/_markdown.py
@@ -0,0 +1,60 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Markdown(DashComponent):
+ """
+ A component that renders Markdown text as specified by the CommonMark
+ spec.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Markdown'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ containerProps = ComponentProp('containerProps', UNDEFINED, False)
+ dangerously_allow_html = ComponentProp('dangerously_allow_html', False, False) # noqa: E501
+ children = ComponentProp('children', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ id=UNDEFINED,
+ className=UNDEFINED,
+ containerProps=UNDEFINED,
+ dangerously_allow_html=False,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Union[str,typing.List[str]], Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param className: Class name of the container element
+ :param containerProps: An object containing custom element props to
+ put on the container element such as id or
+ style
+ :param dangerously_allow_html: A boolean to control raw HTML
+ escaping. Setting HTML from code is
+ risky because it's easy to
+ inadvertently expose your users to a
+ cross-site scripting (XSS) (https://
+ en.wikipedia.org/wiki/Cross-
+ site_scripting)
+ attack.(default=false)
+ :param children: A markdown string (or array of strings) that
+ adhreres to the CommonMark spec
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_radio_items.py b/dash_core_components/_radio_items.py
new file mode 100644
index 000000000..7be9a1789
--- /dev/null
+++ b/dash_core_components/_radio_items.py
@@ -0,0 +1,69 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class RadioItems(DashComponent):
+ """
+ RadioItems is a component that encapsulates several radio item inputs. The
+ values and labels of the RadioItems is specified in the `options` property
+ and the seleced item is specified with the `value` property. Each radio
+ item is rendered as an input with a surrounding label.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'RadioItems'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ options = ComponentProp('options', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ inputStyle = ComponentProp('inputStyle', UNDEFINED, False)
+ inputClassName = ComponentProp('inputClassName', '', False)
+ labelStyle = ComponentProp('labelStyle', UNDEFINED, False)
+ labelClassName = ComponentProp('labelClassName', '', False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ options=UNDEFINED,
+ value=UNDEFINED,
+ style=UNDEFINED,
+ className=UNDEFINED,
+ inputStyle=UNDEFINED,
+ inputClassName='',
+ labelStyle=UNDEFINED,
+ labelClassName='',
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.List[typing.Dict[str, typing.Union[str, bool]]], Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param options: An array of options(default=[])
+ :param value: The currently selected value
+ :param style: The style of the container (div)
+ :param className: The class of the container (div)
+ :param inputStyle: The style of the radio
+ element(default={})
+ :param inputClassName: The class of the radio
+ element(default='')
+ :param labelStyle: The style of the that wraps the radio
+ input and the option's label(default={})
+ :param labelClassName: The class of the that wraps the
+ radio input and the option's
+ label(default='')
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_range_slider.py b/dash_core_components/_range_slider.py
new file mode 100644
index 000000000..5c8a487b6
--- /dev/null
+++ b/dash_core_components/_range_slider.py
@@ -0,0 +1,100 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class RangeSlider(DashComponent):
+ """
+ A double slider with two handles. Used for specifying a range of numerical
+ values.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'RangeSlider'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ marks = ComponentProp('marks', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ allowCross = ComponentProp('allowCross', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ count = ComponentProp('count', UNDEFINED, False)
+ disabled = ComponentProp('disabled', UNDEFINED, False)
+ dots = ComponentProp('dots', UNDEFINED, False)
+ included = ComponentProp('included', UNDEFINED, False)
+ min = ComponentProp('min', UNDEFINED, False)
+ max = ComponentProp('max', UNDEFINED, False)
+ pushable = ComponentProp('pushable', UNDEFINED, False)
+ step = ComponentProp('step', UNDEFINED, False)
+ vertical = ComponentProp('vertical', UNDEFINED, False)
+ updatemode = ComponentProp('updatemode', "'mouseup'", False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ marks=UNDEFINED,
+ value=UNDEFINED,
+ allowCross=UNDEFINED,
+ className=UNDEFINED,
+ count=UNDEFINED,
+ disabled=UNDEFINED,
+ dots=UNDEFINED,
+ included=UNDEFINED,
+ min=UNDEFINED,
+ max=UNDEFINED,
+ pushable=UNDEFINED,
+ step=UNDEFINED,
+ vertical=UNDEFINED,
+ updatemode="'mouseup'",
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[typing.Union[str,typing.Dict[str, typing.Union[typing.Dict, str]]]]], Undefined], typing.Union[typing.List[typing.Union[float, int]], Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[bool,typing.Union[float, int]], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[typing.Any, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param marks: Marks on the slider. The key determines the position,
+ and the value determines what will show. If you want
+ to set the style of a specific mark point, the value
+ should be an object which contains style and label
+ properties.
+ :param value: The value of the input
+ :param allowCross: allowCross could be set as true to allow those
+ handles to cross.
+ :param className: Additional CSS class for the root DOM node
+ :param count: Determine how many ranges to render, and multiple
+ handles will be rendered (number + 1).
+ :param disabled: If true, the handles can't be moved.
+ :param dots: When the step value is greater than 1, you can set the
+ dots to true if you want to render the slider with
+ dots.
+ :param included: If the value is true, it means a continuous value
+ is included. Otherwise, it is an independent
+ value.
+ :param min: Minimum allowed value of the slider
+ :param max: Maximum allowed value of the slider
+ :param pushable: pushable could be set as true to allow pushing of
+ surrounding handles when moving an handle. When
+ set to a number, the number will be the minimum
+ ensured distance between handles.
+ :param step: Value by which increments or decrements are made
+ :param vertical: If true, the slider will be vertical
+ :param updatemode: Determines when the component should update its
+ value. If `mouseup`, then the slider will only
+ trigger its value when the user has finished
+ dragging the slider. If `drag`, then the slider
+ will update its value continuously as it is
+ being dragged. Only use `drag` if your updates
+ are fast.(Possible values: 'mouseup',
+ 'drag')(default='mouseup')
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_slider.py b/dash_core_components/_slider.py
new file mode 100644
index 000000000..273fd8313
--- /dev/null
+++ b/dash_core_components/_slider.py
@@ -0,0 +1,85 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Slider(DashComponent):
+ """
+ A slider component with a single handle.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Slider'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ marks = ComponentProp('marks', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ disabled = ComponentProp('disabled', UNDEFINED, False)
+ dots = ComponentProp('dots', UNDEFINED, False)
+ included = ComponentProp('included', UNDEFINED, False)
+ min = ComponentProp('min', UNDEFINED, False)
+ max = ComponentProp('max', UNDEFINED, False)
+ step = ComponentProp('step', UNDEFINED, False)
+ vertical = ComponentProp('vertical', UNDEFINED, False)
+ updatemode = ComponentProp('updatemode', "'mouseup'", False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ marks=UNDEFINED,
+ value=UNDEFINED,
+ className=UNDEFINED,
+ disabled=UNDEFINED,
+ dots=UNDEFINED,
+ included=UNDEFINED,
+ min=UNDEFINED,
+ max=UNDEFINED,
+ step=UNDEFINED,
+ vertical=UNDEFINED,
+ updatemode="'mouseup'",
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.Dict[str, typing.Union[typing.Union[str,typing.Dict[str, typing.Union[typing.Dict, str]]]]], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[typing.Any, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param marks: Marks on the slider. The key determines the position,
+ and the value determines what will show. If you want
+ to set the style of a specific mark point, the value
+ should be an object which contains style and label
+ properties.
+ :param value: The value of the input
+ :param className: Additional CSS class for the root DOM node
+ :param disabled: If true, the handles can't be moved.
+ :param dots: When the step value is greater than 1, you can set the
+ dots to true if you want to render the slider with
+ dots.
+ :param included: If the value is true, it means a continuous value
+ is included. Otherwise, it is an independent
+ value.
+ :param min: Minimum allowed value of the slider
+ :param max: Maximum allowed value of the slider
+ :param step: Value by which increments or decrements are made
+ :param vertical: If true, the slider will be vertical
+ :param updatemode: Determines when the component should update its
+ value. If `mouseup`, then the slider will only
+ trigger its value when the user has finished
+ dragging the slider. If `drag`, then the slider
+ will update its value continuously as it is
+ being dragged. Only use `drag` if your updates
+ are fast.(Possible values: 'mouseup',
+ 'drag')(default='mouseup')
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_store.py b/dash_core_components/_store.py
new file mode 100644
index 000000000..e14aa73a7
--- /dev/null
+++ b/dash_core_components/_store.py
@@ -0,0 +1,55 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Store(DashComponent):
+ """
+ Easily keep data on the client side with this component. The data is not
+ inserted in the DOM. Data can be in memory, localStorage or
+ sessionStorage. The data will be kept with the id as key.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Store'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, True)
+ storage_type = ComponentProp('storage_type', "'memory'", False)
+ data = ComponentProp('data', UNDEFINED, False)
+ clear_data = ComponentProp('clear_data', False, False)
+ modified_timestamp = ComponentProp('modified_timestamp', -1, False)
+
+ def __init__(
+ self,
+ id,
+ storage_type="'memory'",
+ data=UNDEFINED,
+ clear_data=False,
+ modified_timestamp=-1,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[typing.Any, Undefined], typing.Union[typing.Union[typing.Dict,typing.List,typing.Union[float, int],str,bool], Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined]) -> None # noqa: E501
+ """
+ :param id: The key of the storage.
+ :param storage_type: The type of the web storage. memory: only
+ kept in memory, reset on page refresh. local:
+ window.localStorage, data is kept after the
+ browser quit. session: window.sessionStorage,
+ data is cleared once the browser
+ quit.(Possible values: 'local', 'session',
+ 'memory')(default='memory')
+ :param data: The stored data for the id.
+ :param clear_data: Set to true to remove the data contained in
+ `data_key`.(default=false)
+ :param modified_timestamp: The last time the storage was
+ modified.(default=-1)
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_syntax_highlighter.py b/dash_core_components/_syntax_highlighter.py
new file mode 100644
index 000000000..5518ce74b
--- /dev/null
+++ b/dash_core_components/_syntax_highlighter.py
@@ -0,0 +1,100 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class SyntaxHighlighter(DashComponent):
+ """
+ A component for pretty printing code.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'SyntaxHighlighter'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ children = ComponentProp('children', UNDEFINED, False)
+ language = ComponentProp('language', UNDEFINED, False)
+ theme = ComponentProp('theme', UNDEFINED, False)
+ customStyle = ComponentProp('customStyle', UNDEFINED, False)
+ codeTagProps = ComponentProp('codeTagProps', UNDEFINED, False)
+ useInlineStyles = ComponentProp('useInlineStyles', UNDEFINED, False)
+ showLineNumbers = ComponentProp('showLineNumbers', UNDEFINED, False)
+ startingLineNumber = ComponentProp('startingLineNumber', UNDEFINED, False)
+ lineNumberContainerStyle = ComponentProp('lineNumberContainerStyle', UNDEFINED, False) # noqa: E501
+ lineNumberStyle = ComponentProp('lineNumberStyle', UNDEFINED, False)
+ wrapLines = ComponentProp('wrapLines', UNDEFINED, False)
+ lineStyle = ComponentProp('lineStyle', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ id=UNDEFINED,
+ language=UNDEFINED,
+ theme=UNDEFINED,
+ customStyle=UNDEFINED,
+ codeTagProps=UNDEFINED,
+ useInlineStyles=UNDEFINED,
+ showLineNumbers=UNDEFINED,
+ startingLineNumber=UNDEFINED,
+ lineNumberContainerStyle=UNDEFINED,
+ lineNumberStyle=UNDEFINED,
+ wrapLines=UNDEFINED,
+ lineStyle=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Union[str,typing.List[str]], Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Any, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id:
+ :param children: The text to display and highlight
+ :param language: the language to highlight code in.
+ :param theme: theme: light or dark(Possible values: 'light',
+ 'dark')
+ :param customStyle: prop that will be combined with the top level
+ style on the pre tag, styles here will
+ overwrite earlier styles.
+ :param codeTagProps: props that will be spread into the tag
+ that is the direct parent of the highlighted
+ code elements. Useful for styling/assigning
+ classNames.
+ :param useInlineStyles: if this prop is passed in as false, react
+ syntax highlighter will not add style
+ objects to elements, and will instead
+ append classNames. You can then style the
+ code block by using one of the CSS files
+ provided by highlight.js.
+ :param showLineNumbers: if this is enabled line numbers will be
+ shown next to the code block.
+ :param startingLineNumber: if showLineNumbers is enabled the line
+ numbering will start from here.
+ :param lineNumberContainerStyle: the line numbers container default
+ to appearing to the left with 10px
+ of right padding. You can use this
+ to override those styles.
+ :param lineNumberStyle: inline style to be passed to the span
+ wrapping each number. Can be either an
+ object or a function that recieves current
+ line number as argument and returns style
+ object.
+ :param wrapLines: a boolean value that determines whether or not
+ each line of code should be wrapped in a parent
+ element. defaults to false, when false one can
+ not take action on an element on the line level.
+ You can see an example of what this enables here
+ :param lineStyle: inline style to be passed to the span wrapping
+ each line if wrapLines is true. Can be either an
+ object or a function that recieves current line
+ number as argument and returns style object.
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_tab.py b/dash_core_components/_tab.py
new file mode 100644
index 000000000..195217dfa
--- /dev/null
+++ b/dash_core_components/_tab.py
@@ -0,0 +1,73 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Tab(DashComponent):
+
+ _namespace = 'dash_core_components'
+ _typename = 'Tab'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ label = ComponentProp('label', UNDEFINED, False)
+ children = ComponentProp('children', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ disabled = ComponentProp('disabled', False, False)
+ disabled_style = ComponentProp('disabled_style', UNDEFINED, False)
+ disabled_className = ComponentProp('disabled_className', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ selected_className = ComponentProp('selected_className', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ selected_style = ComponentProp('selected_style', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ id=UNDEFINED,
+ label=UNDEFINED,
+ value=UNDEFINED,
+ disabled=False,
+ disabled_style=UNDEFINED,
+ disabled_className=UNDEFINED,
+ className=UNDEFINED,
+ selected_className=UNDEFINED,
+ style=UNDEFINED,
+ selected_style=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Union[str, int, float, DashComponent,typing.List[typing.Union[str, int, float, DashComponent]]], Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id: The ID of this component, used to identify dash
+ components in callbacks. The ID needs to be unique
+ across all of the components in an app.
+ :param label: The tab's label
+ :param children: The content of the tab - will only be displayed if
+ this tab is selected
+ :param value: Value for determining which Tab is currently selected
+ :param disabled: Determines if tab is disabled or not - defaults to
+ false(default=false)
+ :param disabled_style: Overrides the default (inline) styles when
+ disabled(default={ color: '#d6d6d6', })
+ :param disabled_className: Appends a class to the Tab component
+ when it is disabled.
+ :param className: Appends a class to the Tab component.
+ :param selected_className: Appends a class to the Tab component
+ when it is selected.
+ :param style: Overrides the default (inline) styles for the Tab
+ component.
+ :param selected_style: Overrides the default (inline) styles for
+ the Tab component when it is selected.
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_tabs.py b/dash_core_components/_tabs.py
new file mode 100644
index 000000000..eaab858c7
--- /dev/null
+++ b/dash_core_components/_tabs.py
@@ -0,0 +1,93 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Tabs(DashComponent):
+ """
+ A Dash component that lets you render pages with tabs - the Tabs
+ component's children can be dcc.Tab components, which can hold a label
+ that will be displayed as a tab, and can in turn hold children components
+ that will be that tab's content.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Tabs'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ content_className = ComponentProp('content_className', UNDEFINED, False)
+ parent_className = ComponentProp('parent_className', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ parent_style = ComponentProp('parent_style', UNDEFINED, False)
+ content_style = ComponentProp('content_style', UNDEFINED, False)
+ vertical = ComponentProp('vertical', False, False)
+ mobile_breakpoint = ComponentProp('mobile_breakpoint', 800, False)
+ children = ComponentProp('children', UNDEFINED, False)
+ colors = ComponentProp('colors', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ id=UNDEFINED,
+ value=UNDEFINED,
+ className=UNDEFINED,
+ content_className=UNDEFINED,
+ parent_className=UNDEFINED,
+ style=UNDEFINED,
+ parent_style=UNDEFINED,
+ content_style=UNDEFINED,
+ vertical=False,
+ mobile_breakpoint=800,
+ colors=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Union[typing.List[typing.Union[str, int, float, DashComponent,typing.List[typing.Union[str, int, float, DashComponent]]]],typing.Union[str, int, float, DashComponent,typing.List[typing.Union[str, int, float, DashComponent]]]], Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Dict[str, typing.Union[str]], Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id: The ID of this component, used to identify dash
+ components in callbacks. The ID needs to be unique
+ across all of the components in an app.
+ :param value: The value of the currently selected Tab
+ :param className: Appends a class to the Tabs container holding the
+ individual Tab components.
+ :param content_className: Appends a class to the Tab content
+ container holding the children of the Tab
+ that is selected.
+ :param parent_className: Appends a class to the top-level parent
+ container holding both the Tabs container
+ and the content container.
+ :param style: Appends (inline) styles to the Tabs container holding
+ the individual Tab components.
+ :param parent_style: Appends (inline) styles to the top-level
+ parent container holding both the Tabs
+ container and the content container.
+ :param content_style: Appends (inline) styles to the tab content
+ container holding the children of the Tab
+ that is selected.
+ :param vertical: Renders the tabs vertically (on the
+ side)(default=false)
+ :param mobile_breakpoint: Breakpoint at which tabs are rendered
+ full width (can be 0 if you don't want
+ full width tabs on mobile)(default=800)
+ :param children: Array that holds Tab components
+ :param colors: Holds the colors used by the Tabs and Tab
+ components. If you set these, you should specify
+ colors for all properties, so: colors: { border:
+ '#d6d6d6', primary: '#1975FA', background:
+ '#f9f9f9' }(default={ border: '#d6d6d6',
+ primary: '#1975FA', background: '#f9f9f9', })
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_textarea.py b/dash_core_components/_textarea.py
new file mode 100644
index 000000000..4b9a61733
--- /dev/null
+++ b/dash_core_components/_textarea.py
@@ -0,0 +1,146 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Textarea(DashComponent):
+ """
+ A basic HTML textarea for entering multiline text.
+ """
+
+ _namespace = 'dash_core_components'
+ _typename = 'Textarea'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ value = ComponentProp('value', UNDEFINED, False)
+ autoFocus = ComponentProp('autoFocus', UNDEFINED, False)
+ cols = ComponentProp('cols', UNDEFINED, False)
+ disabled = ComponentProp('disabled', UNDEFINED, False)
+ form = ComponentProp('form', UNDEFINED, False)
+ maxLength = ComponentProp('maxLength', UNDEFINED, False)
+ minLength = ComponentProp('minLength', UNDEFINED, False)
+ name = ComponentProp('name', UNDEFINED, False)
+ placeholder = ComponentProp('placeholder', UNDEFINED, False)
+ readOnly = ComponentProp('readOnly', UNDEFINED, False)
+ required = ComponentProp('required', UNDEFINED, False)
+ rows = ComponentProp('rows', UNDEFINED, False)
+ wrap = ComponentProp('wrap', UNDEFINED, False)
+ accessKey = ComponentProp('accessKey', UNDEFINED, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ contentEditable = ComponentProp('contentEditable', UNDEFINED, False)
+ contextMenu = ComponentProp('contextMenu', UNDEFINED, False)
+ dir = ComponentProp('dir', UNDEFINED, False)
+ draggable = ComponentProp('draggable', UNDEFINED, False)
+ hidden = ComponentProp('hidden', UNDEFINED, False)
+ lang = ComponentProp('lang', UNDEFINED, False)
+ spellCheck = ComponentProp('spellCheck', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ tabIndex = ComponentProp('tabIndex', UNDEFINED, False)
+ title = ComponentProp('title', UNDEFINED, False)
+ n_blur = ComponentProp('n_blur', 0, False)
+ n_blur_timestamp = ComponentProp('n_blur_timestamp', -1, False)
+ n_clicks = ComponentProp('n_clicks', 0, False)
+ n_clicks_timestamp = ComponentProp('n_clicks_timestamp', -1, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ id=UNDEFINED,
+ value=UNDEFINED,
+ autoFocus=UNDEFINED,
+ cols=UNDEFINED,
+ disabled=UNDEFINED,
+ form=UNDEFINED,
+ maxLength=UNDEFINED,
+ minLength=UNDEFINED,
+ name=UNDEFINED,
+ placeholder=UNDEFINED,
+ readOnly=UNDEFINED,
+ required=UNDEFINED,
+ rows=UNDEFINED,
+ wrap=UNDEFINED,
+ accessKey=UNDEFINED,
+ className=UNDEFINED,
+ contentEditable=UNDEFINED,
+ contextMenu=UNDEFINED,
+ dir=UNDEFINED,
+ draggable=UNDEFINED,
+ hidden=UNDEFINED,
+ lang=UNDEFINED,
+ spellCheck=UNDEFINED,
+ style=UNDEFINED,
+ tabIndex=UNDEFINED,
+ title=UNDEFINED,
+ n_blur=0,
+ n_blur_timestamp=-1,
+ n_clicks=0,
+ n_clicks_timestamp=-1,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id: The ID of this component, used to identify dash
+ components in callbacks. The ID needs to be unique
+ across all of the components in an app.
+ :param value: The value of the textarea
+ :param autoFocus: The element should be automatically focused after
+ the page loaded.
+ :param cols: Defines the number of columns in a textarea.
+ :param disabled: Indicates whether the user can interact with the
+ element.
+ :param form: Indicates the form that is the owner of the element.
+ :param maxLength: Defines the maximum number of characters allowed
+ in the element.
+ :param minLength: Defines the minimum number of characters allowed
+ in the element.
+ :param name: Name of the element. For example used by the server to
+ identify the fields in form submits.
+ :param placeholder: Provides a hint to the user of what can be
+ entered in the field.
+ :param readOnly: Indicates whether the element can be edited.
+ :param required: Indicates whether this element is required to fill
+ out or not.
+ :param rows: Defines the number of rows in a text area.
+ :param wrap: Indicates whether the text should be wrapped.
+ :param accessKey: Defines a keyboard shortcut to activate or add
+ focus to the element.
+ :param className: Often used with CSS to style elements with common
+ properties.
+ :param contentEditable: Indicates whether the element's content is
+ editable.
+ :param contextMenu: Defines the ID of a element which will
+ serve as the element's context menu.
+ :param dir: Defines the text direction. Allowed values are ltr
+ (Left-To-Right) or rtl (Right-To-Left)
+ :param draggable: Defines whether the element can be dragged.
+ :param hidden: Prevents rendering of given element, while keeping
+ child elements, e.g. script elements, active.
+ :param lang: Defines the language used in the element.
+ :param spellCheck: Indicates whether spell checking is allowed for
+ the element.
+ :param style: Defines CSS styles which will override styles
+ previously set.
+ :param tabIndex: Overrides the browser's default tab order and
+ follows the one specified instead.
+ :param title: Text to be displayed in a tooltip when hovering over
+ the element.
+ :param n_blur: Number of times the textarea lost focus.(default=0)
+ :param n_blur_timestamp: Last time the textarea lost
+ focus.(default=-1)
+ :param n_clicks: Number of times the textarea has been
+ clicked.(default=0)
+ :param n_clicks_timestamp: Last time the textarea was
+ clicked.(default=-1)
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/_upload.py b/dash_core_components/_upload.py
new file mode 100644
index 000000000..acba88dca
--- /dev/null
+++ b/dash_core_components/_upload.py
@@ -0,0 +1,112 @@
+# pylint: disable=line-too-long, redefined-builtin, too-many-arguments, too-many-locals, unused-argument, unused-import, too-many-ancestors # noqa: E501
+"""
+Autogenerated file
+DO NOT EDIT.
+"""
+import typing
+
+from dash_component_system import (
+ DashComponent, UNDEFINED, Undefined, ComponentProp
+)
+
+
+class Upload(DashComponent):
+
+ _namespace = 'dash_core_components'
+ _typename = 'Upload'
+ available_wildcard_properties = [
+
+ ]
+ id = ComponentProp('id', UNDEFINED, False)
+ contents = ComponentProp('contents', UNDEFINED, False)
+ filename = ComponentProp('filename', UNDEFINED, False)
+ last_modified = ComponentProp('last_modified', UNDEFINED, False)
+ children = ComponentProp('children', UNDEFINED, False)
+ accept = ComponentProp('accept', UNDEFINED, False)
+ disabled = ComponentProp('disabled', False, False)
+ disable_click = ComponentProp('disable_click', False, False)
+ max_size = ComponentProp('max_size', -1, False)
+ min_size = ComponentProp('min_size', 0, False)
+ multiple = ComponentProp('multiple', False, False)
+ className = ComponentProp('className', UNDEFINED, False)
+ className_active = ComponentProp('className_active', UNDEFINED, False)
+ className_reject = ComponentProp('className_reject', UNDEFINED, False)
+ className_disabled = ComponentProp('className_disabled', UNDEFINED, False)
+ style = ComponentProp('style', UNDEFINED, False)
+ style_active = ComponentProp('style_active', UNDEFINED, False)
+ style_reject = ComponentProp('style_reject', UNDEFINED, False)
+ style_disabled = ComponentProp('style_disabled', UNDEFINED, False)
+ loading_state = ComponentProp('loading_state', UNDEFINED, False)
+
+ def __init__(
+ self,
+ children=UNDEFINED,
+ id=UNDEFINED,
+ contents=UNDEFINED,
+ filename=UNDEFINED,
+ last_modified=UNDEFINED,
+ accept=UNDEFINED,
+ disabled=False,
+ disable_click=False,
+ max_size=-1,
+ min_size=0,
+ multiple=False,
+ className=UNDEFINED,
+ className_active=UNDEFINED,
+ className_reject=UNDEFINED,
+ className_disabled=UNDEFINED,
+ style=UNDEFINED,
+ style_active=UNDEFINED,
+ style_reject=UNDEFINED,
+ style_disabled=UNDEFINED,
+ loading_state=UNDEFINED,
+ ):
+ # type: (typing.Union[typing.Union[typing.Union[str, int, float, DashComponent,typing.List[typing.Union[str, int, float, DashComponent]]],str], Undefined], typing.Union[str, Undefined], typing.Union[typing.Union[str,typing.List[str]], Undefined], typing.Union[typing.Union[str,typing.List[str]], Undefined], typing.Union[typing.Union[typing.Union[float, int],typing.List[typing.Union[float, int]]], Undefined], typing.Union[str, Undefined], typing.Union[bool, Undefined], typing.Union[bool, Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[typing.Union[float, int], Undefined], typing.Union[bool, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[str, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict, Undefined], typing.Union[typing.Dict[str, typing.Union[bool, str]], Undefined]) -> None # noqa: E501
+ """
+ :param id: ID of the component. Used to identify component in Dash
+ callback functions.
+ :param contents: The contents of the uploaded file as a binary
+ string
+ :param filename: The name of the file(s) that was(were) uploaded.
+ Note that this does not include the path of the
+ file (for security reasons).
+ :param last_modified: The last modified date of the file that was
+ uploaded in unix time (seconds since 1970).
+ :param children: Contents of the upload component
+ :param accept: Allow specific types of files. See
+ https://github.com/okonet/attr-accept for more
+ information. Keep in mind that mime type
+ determination is not reliable across platforms. CSV
+ files, for example, are reported as text/plain under
+ macOS but as application/vnd.ms-excel under Windows.
+ In some cases there might not be a mime type set at
+ all. See: https://github.com/react-dropzone/react-
+ dropzone/issues/276
+ :param disabled: Enable/disable the upload component
+ entirely(default=false)
+ :param disable_click: Disallow clicking on the component to open
+ the file dialog(default=false)
+ :param max_size: Maximum file size. If `-1`, then
+ infinite(default=-1)
+ :param min_size: Minimum file size(default=0)
+ :param multiple: Allow dropping multiple files(default=false)
+ :param className: HTML class name of the component
+ :param className_active: HTML class name of the component while
+ active
+ :param className_reject: HTML class name of the component if
+ rejected
+ :param className_disabled: HTML class name of the component if
+ disabled
+ :param style: CSS styles to apply(default={})
+ :param style_active: CSS styles to apply while active(default={
+ borderStyle: 'solid', borderColor: '#6c6',
+ backgroundColor: '#eee', })
+ :param style_reject: CSS styles if rejected(default={
+ borderStyle: 'solid', borderColor: '#c66',
+ backgroundColor: '#eee', })
+ :param style_disabled: CSS styles if disabled(default={
+ opacity: 0.5, })
+ :param loading_state: Object that holds the loading state object
+ coming from dash-renderer
+ """
+ DashComponent.__init__(self, locals())
diff --git a/dash_core_components/package.json b/dash_core_components/package.json
index 9f34d159a..3e2751489 100644
--- a/dash_core_components/package.json
+++ b/dash_core_components/package.json
@@ -17,16 +17,15 @@
"start": "webpack-serve ./webpack.serve.config.js --open",
"lint": "eslint src test",
"lint:py": "flake8 --ignore=E501,F401,F841,F811 test",
- "test": "run-s -c test-unit test:py test:pyimport lint format:test lint:py",
+ "test": "run-s -c test-unit test:py lint format:test lint:py",
"test:py": "python -m unittest test.test_integration",
- "test:pyimport": "python -m unittest test.test_dash_import",
"test-unit": "jest",
"format": "prettier --config .prettierrc --write src/**/*.js test/unit/*.js",
"format:test": "prettier --config .prettierrc src/**/*.js test/unit/*.js --list-different",
"uninstall-local": "pip uninstall dash-core-components -y",
"build:js": "webpack --mode production",
"build:js-dev": "webpack --mode development",
- "build:py": "dash-generate-components ./src/components dash_core_components",
+ "build:py": "build-dash-components ./src/components dash_core_components",
"build:r": "dash-generate-components ./src/components dash_core_components --r-prefix 'dcc'",
"build": "npm run build:js && npm run build:js-dev && npm run build:py",
"build-dev": "npm run build:js-dev && npm run build:py",
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 796a2041f..825df2e8f 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -4,3 +4,4 @@ pandas
dash_table_experiments
xlrd
flake8
+dash-component-system==0.0.1rc1
diff --git a/package.json b/package.json
index 9f34d159a..3e2751489 100644
--- a/package.json
+++ b/package.json
@@ -17,16 +17,15 @@
"start": "webpack-serve ./webpack.serve.config.js --open",
"lint": "eslint src test",
"lint:py": "flake8 --ignore=E501,F401,F841,F811 test",
- "test": "run-s -c test-unit test:py test:pyimport lint format:test lint:py",
+ "test": "run-s -c test-unit test:py lint format:test lint:py",
"test:py": "python -m unittest test.test_integration",
- "test:pyimport": "python -m unittest test.test_dash_import",
"test-unit": "jest",
"format": "prettier --config .prettierrc --write src/**/*.js test/unit/*.js",
"format:test": "prettier --config .prettierrc src/**/*.js test/unit/*.js --list-different",
"uninstall-local": "pip uninstall dash-core-components -y",
"build:js": "webpack --mode production",
"build:js-dev": "webpack --mode development",
- "build:py": "dash-generate-components ./src/components dash_core_components",
+ "build:py": "build-dash-components ./src/components dash_core_components",
"build:r": "dash-generate-components ./src/components dash_core_components --r-prefix 'dcc'",
"build": "npm run build:js && npm run build:js-dev && npm run build:py",
"build-dev": "npm run build:js-dev && npm run build:py",
diff --git a/setup.py b/setup.py
index 83d142790..2905efb68 100644
--- a/setup.py
+++ b/setup.py
@@ -12,5 +12,7 @@
include_package_data=True,
license='MIT',
description='Dash UI core component suite',
- install_requires=[]
+ install_requires=[
+ 'dash-component-system==0.0.1rc1'
+ ]
)
diff --git a/test/test_dash_import.py b/test/test_dash_import.py
deleted file mode 100644
index 64fb350ec..000000000
--- a/test/test_dash_import.py
+++ /dev/null
@@ -1,23 +0,0 @@
-import os
-import unittest
-
-
-class TestDashImport(unittest.TestCase):
- def setUp(self):
- with open('dash.py', 'w') as f:
- pass
-
- def tearDown(self):
- try:
- os.remove('dash.py')
- os.remove('dash.pyc')
- except OSError:
- pass
-
- def test_dash_import(self):
- """Test that program exits if the wrong dash module was imported"""
-
- with self.assertRaises(SystemExit) as cm:
- import dash_core_components
-
- self.assertEqual(cm.exception.code, 1)
diff --git a/test/test_integration.py b/test/test_integration.py
index b06aaad61..79085c6cf 100644
--- a/test/test_integration.py
+++ b/test/test_integration.py
@@ -1725,7 +1725,7 @@ def test_confirm(self):
app.layout = html.Div([
html.Button(id='button', children='Send confirm', n_clicks=0),
- dcc.ConfirmDialog(id='confirm', message='Please confirm.'),
+ dcc.ConfirmDialog(id='confirm', message='Please confirm simple.'),
html.Div(id='confirmed')
])
@@ -1743,7 +1743,7 @@ def test_confirm_dialog_provider(self):
app.layout = html.Div([
dcc.ConfirmDialogProvider(
html.Button('click me', id='button'),
- id='confirm', message='Please confirm.'),
+ id='confirm', message='Please confirm by provider.'),
html.Div(id='confirmed')
])
@@ -1754,7 +1754,7 @@ def test_confirm_without_callback(self):
app.layout = html.Div([
dcc.ConfirmDialogProvider(
html.Button('click me', id='button'),
- id='confirm', message='Please confirm.'),
+ id='confirm', message='Please confirm without callback.'),
html.Div(id='confirmed')
])
self._test_confirm(app, 'ConfirmDialogProviderWithoutCallback',
@@ -1773,18 +1773,24 @@ def test_confirm_as_children(self):
[Input('button', 'n_clicks')])
def on_click(n_clicks):
if n_clicks:
- return dcc.ConfirmDialog(
- displayed=True,
- id='confirm',
- key='confirm-{}'.format(time.time()),
- message='Please confirm.')
+ return [
+ dcc.ConfirmDialog(
+ displayed=True,
+ id='confirm',
+ key='confirm-{}'.format(time.time()),
+ message='Please confirm as children.'
+ )
+ ]
self.startServer(app)
button = self.wait_for_element_by_css_selector('#button')
button.click()
- time.sleep(2)
+
+ WebDriverWait(self.driver, 10).until(
+ EC.alert_is_present()
+ )
self.driver.switch_to.alert.accept()