Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 987d107

Browse files
author
Marc-André Rivet
committed
bump version to v1.1.0
1 parent 560d4e1 commit 987d107

29 files changed

+261
-148
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [Unreleased] -
5+
## [1.1.0] - 2019-08-05
66

7-
### Fixed
7+
### Changed
88
- Fixed inconsistent behavior of `input` with `type=number` [#580](https://github.com/plotly/dash-core-components/pull/580)
99

1010
### Updated

dash_core_components/Checklist.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ class Checklist(Component):
1414
- id (string; optional): The ID of this component, used to identify dash components
1515
in callbacks. The ID needs to be unique across all of the
1616
components in an app.
17-
- options (optional): An array of options. options has the following type: list of dict containing keys 'label', 'value', 'disabled'.
17+
- options (dict; optional): An array of options. options has the following type: list of dicts containing keys 'label', 'value', 'disabled'.
1818
Those keys have the following types:
1919
- label (string | number; required): The checkbox's label
2020
- value (string | number; required): The value of the checkbox. This value
2121
corresponds to the items specified in the
2222
`value` property.
23-
- disabled (boolean; optional): If true, this checkbox is disabled and can't be clicked on.s
23+
- disabled (boolean; optional): If true, this checkbox is disabled and can't be clicked on.
2424
- value (list of string | numbers; optional): The currently selected value
2525
- className (string; optional): The class of the container (div)
2626
- style (dict; optional): The style of the container (div)
2727
- inputStyle (dict; optional): The style of the <input> checkbox element
28-
- inputClassName (string; optional): The class of the <input> checkbox element
28+
- inputClassName (string; default ''): The class of the <input> checkbox element
2929
- labelStyle (dict; optional): The style of the <label> that wraps the checkbox input
3030
and the option's label
31-
- labelClassName (string; optional): The class of the <label> that wraps the checkbox input
31+
- labelClassName (string; default ''): The class of the <label> that wraps the checkbox input
3232
and the option's label
33-
- 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'.
33+
- loading_state (dict; 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'.
3434
Those keys have the following types:
3535
- is_loading (boolean; optional): Determines if the component is loading or not
3636
- prop_name (string; optional): Holds which property is loading

dash_core_components/ConfirmDialog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ class ConfirmDialog(Component):
1515
in callbacks. The ID needs to be unique across all of the
1616
components in an app.
1717
- message (string; optional): Message to show in the popup.
18-
- submit_n_clicks (number; optional): Number of times the submit button was clicked
19-
- submit_n_clicks_timestamp (number; optional): Last time the submit button was clicked.
20-
- cancel_n_clicks (number; optional): Number of times the popup was canceled.
21-
- cancel_n_clicks_timestamp (number; optional): Last time the cancel button was clicked.
18+
- submit_n_clicks (number; default 0): Number of times the submit button was clicked
19+
- submit_n_clicks_timestamp (number; default -1): Last time the submit button was clicked.
20+
- cancel_n_clicks (number; default 0): Number of times the popup was canceled.
21+
- cancel_n_clicks_timestamp (number; default -1): Last time the cancel button was clicked.
2222
- displayed (boolean; optional): Set to true to send the ConfirmDialog."""
2323
@_explicitize_args
2424
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, **kwargs):

dash_core_components/ConfirmDialogProvider.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class ConfirmDialogProvider(Component):
2222
in callbacks. The ID needs to be unique across all of the
2323
components in an app.
2424
- message (string; optional): Message to show in the popup.
25-
- submit_n_clicks (number; optional): Number of times the submit was clicked
26-
- submit_n_clicks_timestamp (number; optional): Last time the submit button was clicked.
27-
- cancel_n_clicks (number; optional): Number of times the popup was canceled.
28-
- cancel_n_clicks_timestamp (number; optional): Last time the cancel button was clicked.
25+
- submit_n_clicks (number; default 0): Number of times the submit was clicked
26+
- submit_n_clicks_timestamp (number; default -1): Last time the submit button was clicked.
27+
- cancel_n_clicks (number; default 0): Number of times the popup was canceled.
28+
- cancel_n_clicks_timestamp (number; default -1): Last time the cancel button was clicked.
2929
- displayed (boolean; optional): Is the modal currently displayed.
30-
- 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'.
30+
- loading_state (dict; 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'.
3131
Those keys have the following types:
3232
- is_loading (boolean; optional): Determines if the component is loading or not
3333
- prop_name (string; optional): Holds which property is loading

dash_core_components/DatePickerRange.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,24 @@ class DatePickerRange(Component):
4242
box of the date picker when no date is selected. Default value is 'Start Date'
4343
- end_date_placeholder_text (string; optional): Text that will be displayed in the second input
4444
box of the date picker when no date is selected. Default value is 'End Date'
45-
- day_size (number; optional): Size of rendered calendar days, higher number
45+
- day_size (number; default 39): Size of rendered calendar days, higher number
4646
means bigger day size and larger calendar overall
47-
- calendar_orientation (a value equal to: 'vertical', 'horizontal'; optional): Orientation of calendar, either vertical or horizontal.
47+
- calendar_orientation (a value equal to: 'vertical', 'horizontal'; default 'horizontal'): Orientation of calendar, either vertical or horizontal.
4848
Valid options are 'vertical' or 'horizontal'.
49-
- is_RTL (boolean; optional): Determines whether the calendar and days operate
49+
- is_RTL (boolean; default False): Determines whether the calendar and days operate
5050
from left to right or from right to left
51-
- reopen_calendar_on_clear (boolean; optional): If True, the calendar will automatically open when cleared
52-
- number_of_months_shown (number; optional): Number of calendar months that are shown when calendar is opened
53-
- with_portal (boolean; optional): If True, calendar will open in a screen overlay portal,
51+
- reopen_calendar_on_clear (boolean; default False): If True, the calendar will automatically open when cleared
52+
- number_of_months_shown (number; default 1): Number of calendar months that are shown when calendar is opened
53+
- with_portal (boolean; default False): If True, calendar will open in a screen overlay portal,
5454
not supported on vertical calendar
55-
- with_full_screen_portal (boolean; optional): If True, calendar will open in a full screen overlay portal, will
55+
- with_full_screen_portal (boolean; default False): If True, calendar will open in a full screen overlay portal, will
5656
take precedent over 'withPortal' if both are set to true,
5757
not supported on vertical calendar
58-
- 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
58+
- first_day_of_week (a value equal to: 0, 1, 2, 3, 4, 5, 6; default 0): Specifies what day is the first day of the week, values must be
5959
from [0, ..., 6] with 0 denoting Sunday and 6 denoting Saturday
6060
- minimum_nights (number; optional): Specifies a minimum number of nights that must be selected between
6161
the startDate and the endDate
62-
- stay_open_on_select (boolean; optional): If True the calendar will not close when the user has selected a value
62+
- stay_open_on_select (boolean; default False): If True the calendar will not close when the user has selected a value
6363
and will wait until the user clicks off the calendar
6464
- show_outside_days (boolean; optional): If True the calendar will display days that rollover into
6565
the next month
@@ -74,19 +74,19 @@ class DatePickerRange(Component):
7474
"MMMM, YY" renders as 'May, 1997' for May 10th 1997
7575
"M, D, YYYY" renders as '07, 10, 1997' for September 10th 1997
7676
"MMMM" renders as 'May' for May 10 1997
77-
- disabled (boolean; optional): If True, no dates can be selected.
78-
- clearable (boolean; optional): Whether or not the dropdown is "clearable", that is, whether or
77+
- disabled (boolean; default False): If True, no dates can be selected.
78+
- clearable (boolean; default False): Whether or not the dropdown is "clearable", that is, whether or
7979
not a small "x" appears on the right of the dropdown that removes
8080
the selected value.
8181
- style (dict; optional): CSS styles appended to wrapper div
8282
- className (string; optional): Appends a CSS class to the wrapper div component.
83-
- updatemode (a value equal to: 'singledate', 'bothdates'; optional): Determines when the component should update
83+
- updatemode (a value equal to: 'singledate', 'bothdates'; default 'singledate'): Determines when the component should update
8484
its value. If `bothdates`, then the DatePicker
8585
will only trigger its value when the user has
8686
finished picking both dates. If `singledate`, then
8787
the DatePicker will update its value
8888
as one date is picked.
89-
- 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'.
89+
- loading_state (dict; 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'.
9090
Those keys have the following types:
9191
- is_loading (boolean; optional): Determines if the component is loading or not
9292
- prop_name (string; optional): Holds which property is loading

dash_core_components/DatePickerSingle.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,27 @@ class DatePickerSingle(Component):
3030
- initial_visible_month (string; optional): Specifies the month that is initially presented when the user
3131
opens the calendar. Accepts datetime.datetime objects or strings
3232
in the format 'YYYY-MM-DD'
33-
- day_size (number; optional): Size of rendered calendar days, higher number
33+
- day_size (number; default 39): Size of rendered calendar days, higher number
3434
means bigger day size and larger calendar overall
35-
- calendar_orientation (a value equal to: 'vertical', 'horizontal'; optional): Orientation of calendar, either vertical or horizontal.
35+
- calendar_orientation (a value equal to: 'vertical', 'horizontal'; default 'horizontal'): Orientation of calendar, either vertical or horizontal.
3636
Valid options are 'vertical' or 'horizontal'.
37-
- is_RTL (boolean; optional): Determines whether the calendar and days operate
37+
- is_RTL (boolean; default False): Determines whether the calendar and days operate
3838
from left to right or from right to left
3939
- placeholder (string; optional): Text that will be displayed in the input
4040
box of the date picker when no date is selected.
4141
Default value is 'Start Date'
42-
- reopen_calendar_on_clear (boolean; optional): If True, the calendar will automatically open when cleared
43-
- number_of_months_shown (number; optional): Number of calendar months that are shown when calendar is opened
44-
- with_portal (boolean; optional): If True, calendar will open in a screen overlay portal,
42+
- reopen_calendar_on_clear (boolean; default False): If True, the calendar will automatically open when cleared
43+
- number_of_months_shown (number; default 1): Number of calendar months that are shown when calendar is opened
44+
- with_portal (boolean; default False): If True, calendar will open in a screen overlay portal,
4545
not supported on vertical calendar
46-
- with_full_screen_portal (boolean; optional): If True, calendar will open in a full screen overlay portal, will
46+
- with_full_screen_portal (boolean; default False): If True, calendar will open in a full screen overlay portal, will
4747
take precedent over 'withPortal' if both are set to True,
4848
not supported on vertical calendar
49-
- 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
49+
- first_day_of_week (a value equal to: 0, 1, 2, 3, 4, 5, 6; default 0): Specifies what day is the first day of the week, values must be
5050
from [0, ..., 6] with 0 denoting Sunday and 6 denoting Saturday
51-
- stay_open_on_select (boolean; optional): If True the calendar will not close when the user has selected a value
51+
- stay_open_on_select (boolean; default False): If True the calendar will not close when the user has selected a value
5252
and will wait until the user clicks off the calendar
53-
- show_outside_days (boolean; optional): If True the calendar will display days that rollover into
53+
- show_outside_days (boolean; default True): If True the calendar will display days that rollover into
5454
the next month
5555
- month_format (string; optional): Specifies the format that the month will be displayed in the calendar,
5656
valid formats are variations of "MM YY". For example:
@@ -63,13 +63,13 @@ class DatePickerSingle(Component):
6363
"MMMM, YY" renders as 'May, 1997' for May 10th 1997
6464
"M, D, YYYY" renders as '07, 10, 1997' for September 10th 1997
6565
"MMMM" renders as 'May' for May 10 1997
66-
- disabled (boolean; optional): If True, no dates can be selected.
67-
- clearable (boolean; optional): Whether or not the dropdown is "clearable", that is, whether or
66+
- disabled (boolean; default False): If True, no dates can be selected.
67+
- clearable (boolean; default False): Whether or not the dropdown is "clearable", that is, whether or
6868
not a small "x" appears on the right of the dropdown that removes
6969
the selected value.
7070
- style (dict; optional): CSS styles appended to wrapper div
7171
- className (string; optional): Appends a CSS class to the wrapper div component.
72-
- 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'.
72+
- loading_state (dict; 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'.
7373
Those keys have the following types:
7474
- is_loading (boolean; optional): Determines if the component is loading or not
7575
- prop_name (string; optional): Holds which property is loading

dash_core_components/Dropdown.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ class Dropdown(Component):
1818
- id (string; optional): The ID of this component, used to identify dash components
1919
in callbacks. The ID needs to be unique across all of the
2020
components in an app.
21-
- options (optional): An array of options {label: [string|number], value: [string|number]},
22-
an optional disabled field can be used for each option. options has the following type: list of dict containing keys 'label', 'value', 'disabled'.
21+
- options (dict; optional): An array of options {label: [string|number], value: [string|number]},
22+
an optional disabled field can be used for each option. options has the following type: list of dicts containing keys 'label', 'value', 'disabled'.
2323
Those keys have the following types:
2424
- label (string | number; required): The dropdown's label
2525
- value (string | number; required): The value of the dropdown. This value
2626
corresponds to the items specified in the
2727
`value` property.
28-
- disabled (boolean; optional): If true, this option is disabled and cannot be selected.s
28+
- disabled (boolean; optional): If true, this option is disabled and cannot be selected.
2929
- value (string | number | list of string | numbers; optional): The value of the input. If `multi` is false (the default)
3030
then value is just a string that corresponds to the values
3131
provided in the `options` property. If `multi` is true, then
3232
multiple values can be selected at once, and `value` is an
3333
array of items with values corresponding to those in the
3434
`options` prop.
35-
- optionHeight (number; optional): height of each option. Can be increased when label lengths would wrap around
35+
- optionHeight (number; default 35): height of each option. Can be increased when label lengths would wrap around
3636
- className (string; optional): className of the dropdown element
37-
- clearable (boolean; optional): Whether or not the dropdown is "clearable", that is, whether or
37+
- clearable (boolean; default True): Whether or not the dropdown is "clearable", that is, whether or
3838
not a small "x" appears on the right of the dropdown that removes
3939
the selected value.
40-
- disabled (boolean; optional): If true, this dropdown is disabled and the selection cannot be changed.
41-
- multi (boolean; optional): If true, the user can select multiple values
40+
- disabled (boolean; default False): If true, this dropdown is disabled and the selection cannot be changed.
41+
- multi (boolean; default False): If true, the user can select multiple values
4242
- placeholder (string; optional): The grey, default text shown when no option is selected
43-
- searchable (boolean; optional): Whether to enable the searching feature or not
43+
- searchable (boolean; default True): Whether to enable the searching feature or not
4444
- style (dict; optional): Defines CSS styles which will override styles previously set.
45-
- 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'.
45+
- loading_state (dict; 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'.
4646
Those keys have the following types:
4747
- is_loading (boolean; optional): Determines if the component is loading or not
4848
- prop_name (string; optional): Holds which property is loading

0 commit comments

Comments
 (0)