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

Commit 44949a4

Browse files
authored
merge dev into master 1.16.0 (#951)
1 parent d763596 commit 44949a4

File tree

173 files changed

+4436
-2601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+4436
-2601
lines changed

.circleci/config.yml

+18-44
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
lint-unit-37: &lint-unit
1313
working_directory: ~/project
1414
docker:
15-
- image: circleci/python:3.7.6-stretch-node-browsers
15+
- image: circleci/python:3.7.9-stretch-node-browsers
1616
auth:
1717
username: dashautomation
1818
password: $DASH_PAT_DOCKERHUB
@@ -50,7 +50,7 @@ jobs:
5050
lint-unit-36:
5151
<<: *lint-unit
5252
docker:
53-
- image: circleci/python:3.6.9-stretch-node-browsers
53+
- image: circleci/python:3.6.12-stretch-node-browsers
5454
auth:
5555
username: dashautomation
5656
password: $DASH_PAT_DOCKERHUB
@@ -60,7 +60,7 @@ jobs:
6060
lint-unit-27:
6161
<<: *lint-unit
6262
docker:
63-
- image: circleci/python:2.7-stretch-node-browsers
63+
- image: circleci/python:2.7.18-stretch-node-browsers
6464
auth:
6565
username: dashautomation
6666
password: $DASH_PAT_DOCKERHUB
@@ -70,7 +70,7 @@ jobs:
7070
build-dash-37: &build-dash
7171
working_directory: ~/project
7272
docker:
73-
- image: circleci/python:3.7.6-stretch-node-browsers
73+
- image: circleci/python:3.7.9-stretch-node-browsers
7474
auth:
7575
username: dashautomation
7676
password: $DASH_PAT_DOCKERHUB
@@ -116,7 +116,7 @@ jobs:
116116
build-dash-36:
117117
<<: *build-dash
118118
docker:
119-
- image: circleci/python:3.6.9-stretch-node-browsers
119+
- image: circleci/python:3.6.12-stretch-node-browsers
120120
auth:
121121
username: dashautomation
122122
password: $DASH_PAT_DOCKERHUB
@@ -126,7 +126,7 @@ jobs:
126126
build-dash-27:
127127
<<: *build-dash
128128
docker:
129-
- image: circleci/python:2.7-stretch-node-browsers
129+
- image: circleci/python:2.7.18-stretch-node-browsers
130130
auth:
131131
username: dashautomation
132132
password: $DASH_PAT_DOCKERHUB
@@ -136,7 +136,7 @@ jobs:
136136
test-37: &test
137137
working_directory: ~/project
138138
docker:
139-
- image: circleci/python:3.7.6-stretch-node-browsers
139+
- image: circleci/python:3.7.9-stretch-node-browsers
140140
auth:
141141
username: dashautomation
142142
password: $DASH_PAT_DOCKERHUB
@@ -172,7 +172,7 @@ jobs:
172172
test-36:
173173
<<: *test
174174
docker:
175-
- image: circleci/python:3.6.9-stretch-node-browsers
175+
- image: circleci/python:3.6.12-stretch-node-browsers
176176
auth:
177177
username: dashautomation
178178
password: $DASH_PAT_DOCKERHUB
@@ -183,7 +183,7 @@ jobs:
183183
test-27:
184184
<<: *test
185185
docker:
186-
- image: circleci/python:2.7-stretch-node-browsers
186+
- image: circleci/python:2.7.18-stretch-node-browsers
187187
auth:
188188
username: dashautomation
189189
password: $DASH_PAT_DOCKERHUB
@@ -194,7 +194,7 @@ jobs:
194194
test-legacy-37: &test-legacy
195195
working_directory: ~/project
196196
docker:
197-
- image: circleci/python:3.7.6-stretch-node-browsers
197+
- image: circleci/python:3.7.9-stretch-node-browsers
198198
auth:
199199
username: dashautomation
200200
password: $DASH_PAT_DOCKERHUB
@@ -231,7 +231,7 @@ jobs:
231231
test-legacy-36:
232232
<<: *test-legacy
233233
docker:
234-
- image: circleci/python:3.6.9-stretch-node-browsers
234+
- image: circleci/python:3.6.12-stretch-node-browsers
235235
auth:
236236
username: dashautomation
237237
password: $DASH_PAT_DOCKERHUB
@@ -241,7 +241,7 @@ jobs:
241241
test-legacy-27:
242242
<<: *test-legacy
243243
docker:
244-
- image: circleci/python:2.7-stretch-node-browsers
244+
- image: circleci/python:2.7.18-stretch-node-browsers
245245
auth:
246246
username: dashautomation
247247
password: $DASH_PAT_DOCKERHUB
@@ -253,63 +253,37 @@ workflows:
253253
version: 2
254254
python3.7:
255255
jobs:
256-
- lint-unit-37:
257-
context:
258-
- dash-docker-hub
259-
- build-dash-37:
260-
context:
261-
- dash-docker-hub
256+
- lint-unit-37
257+
- build-dash-37
262258
- test-37:
263-
context:
264-
- dash-docker-hub
265259
requires:
266260
- build-dash-37
267261
- test-legacy-37:
268-
context:
269-
- dash-docker-hub
270262
requires:
271263
- build-dash-37
272264
- percy-finalize:
273-
context:
274-
- dash-docker-hub
275265
requires:
276266
- test-37
277267
- test-legacy-37
278268

279269
python3.6:
280270
jobs:
281-
- lint-unit-36:
282-
context:
283-
- dash-docker-hub
284-
- build-dash-36:
285-
context:
286-
- dash-docker-hub
271+
- lint-unit-36
272+
- build-dash-36
287273
- test-36:
288-
context:
289-
- dash-docker-hub
290274
requires:
291275
- build-dash-36
292276
- test-legacy-36:
293-
context:
294-
- dash-docker-hub
295277
requires:
296278
- build-dash-36
297279

298280
python2.7:
299281
jobs:
300-
- lint-unit-27:
301-
context:
302-
- dash-docker-hub
303-
- build-dash-27:
304-
context:
305-
- dash-docker-hub
282+
- lint-unit-27
283+
- build-dash-27
306284
- test-27:
307-
context:
308-
- dash-docker-hub
309285
requires:
310286
- build-dash-27
311287
- test-legacy-27:
312-
context:
313-
- dash-docker-hub
314288
requires:
315289
- build-dash-27

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
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+
## [1.16.0] - 2021-04-08
6+
### Added
7+
- [#863](https://github.com/plotly/dash-core-components/pull/863) Adds a new `Download` component. Along with this several utility functions are added to help construct the appropriate data format:
8+
- `dcc.send_file` - send a file from disk
9+
- `dcc.send_data_frame` - send a `DataFrame`, using one of its writer methods
10+
- `dcc.send_bytes` - send a bytestring or the result of a bytestring writer
11+
- `dcc.send_string` - send a string or the result of a string writer
12+
13+
### Changed
14+
- [#923](https://github.com/plotly/dash-core-components/pull/923)
15+
Set `autoComplete` to off in `dcc.Dropdown`. This fixes [#808](https://github.com/plotly/dash-core-components/issues/808)
16+
17+
### Fixed
18+
- [#930](https://github.com/plotly/dash-core-components/pull/930) Fixed a bug [#867](https://github.com/plotly/dash-core-components/issues/867) with `DatePickerRange` that would sometimes shift the allowed dates by one day.
19+
- [#934](https://github.com/plotly/dash-core-components/pull/934) Fixed a bug in `EnhancedTab` component that ignored `disabled_className` property
20+
521
## [1.15.0] - 2021-01-19
622
### Fixed
723
- [#905](https://github.com/plotly/dash-core-components/pull/905) Make sure the `figure` prop of `dcc.Graph` receives updates from user interactions in the graph, by using the same `layout` object as provided in the prop rather than cloning it. Fixes [#879](https://github.com/plotly/dash-core-components/issues/879).

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashCoreComponents
22
Title: Core Interactive UI Components for 'Dash'
3-
Version: 1.15.0
3+
Version: 1.16.0
44
Description: 'Dash' ships with supercharged components for interactive user interfaces. A core set of components, written and maintained by the 'Dash' team, is available in the 'dashCoreComponents' package. The source for this package is on GitHub: plotly/dash-core-components.
55
Depends: R (>= 3.0.2)
66
Imports:

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export(dccConfirmDialog)
55
export(dccConfirmDialogProvider)
66
export(dccDatePickerRange)
77
export(dccDatePickerSingle)
8+
export(dccDownload)
89
export(dccDropdown)
910
export(dccGraph)
1011
export(dccInput)

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "DashCoreComponents"
33
uuid = "1b08a953-4be3-4667-9a23-9da06441d987"
44
authors = ["Chris Parmer <[email protected]>"]
5-
version = "1.15.0"
5+
version = "1.16.0"
66

77
[deps]
88
DashBase = "03207cf0-e2b3-4b91-9ca8-690cf0fb507e"

R/dccChecklist.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
dccChecklist <- function(id=NULL, options=NULL, value=NULL, className=NULL, style=NULL, inputStyle=NULL, inputClassName=NULL, labelStyle=NULL, labelClassName=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) {
3+
dccChecklist <- function(id=NULL, className=NULL, inputClassName=NULL, inputStyle=NULL, labelClassName=NULL, labelStyle=NULL, loading_state=NULL, options=NULL, persisted_props=NULL, persistence=NULL, persistence_type=NULL, style=NULL, value=NULL) {
44

5-
props <- list(id=id, options=options, value=value, className=className, style=style, inputStyle=inputStyle, inputClassName=inputClassName, labelStyle=labelStyle, labelClassName=labelClassName, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type)
5+
props <- list(id=id, className=className, inputClassName=inputClassName, inputStyle=inputStyle, labelClassName=labelClassName, labelStyle=labelStyle, loading_state=loading_state, options=options, persisted_props=persisted_props, persistence=persistence, persistence_type=persistence_type, style=style, value=value)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'Checklist',
1212
namespace = 'dash_core_components',
13-
propNames = c('id', 'options', 'value', 'className', 'style', 'inputStyle', 'inputClassName', 'labelStyle', 'labelClassName', 'loading_state', 'persistence', 'persisted_props', 'persistence_type'),
13+
propNames = c('id', 'className', 'inputClassName', 'inputStyle', 'labelClassName', 'labelStyle', 'loading_state', 'options', 'persisted_props', 'persistence', 'persistence_type', 'style', 'value'),
1414
package = 'dashCoreComponents'
1515
)
1616

R/dccConfirmDialog.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
dccConfirmDialog <- function(id=NULL, message=NULL, submit_n_clicks=NULL, submit_n_clicks_timestamp=NULL, cancel_n_clicks=NULL, cancel_n_clicks_timestamp=NULL, displayed=NULL) {
3+
dccConfirmDialog <- function(id=NULL, cancel_n_clicks=NULL, cancel_n_clicks_timestamp=NULL, displayed=NULL, message=NULL, submit_n_clicks=NULL, submit_n_clicks_timestamp=NULL) {
44

5-
props <- list(id=id, message=message, submit_n_clicks=submit_n_clicks, submit_n_clicks_timestamp=submit_n_clicks_timestamp, cancel_n_clicks=cancel_n_clicks, cancel_n_clicks_timestamp=cancel_n_clicks_timestamp, displayed=displayed)
5+
props <- list(id=id, cancel_n_clicks=cancel_n_clicks, cancel_n_clicks_timestamp=cancel_n_clicks_timestamp, displayed=displayed, message=message, submit_n_clicks=submit_n_clicks, submit_n_clicks_timestamp=submit_n_clicks_timestamp)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'ConfirmDialog',
1212
namespace = 'dash_core_components',
13-
propNames = c('id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed'),
13+
propNames = c('id', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp'),
1414
package = 'dashCoreComponents'
1515
)
1616

R/dccConfirmDialogProvider.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
dccConfirmDialogProvider <- function(children=NULL, id=NULL, message=NULL, submit_n_clicks=NULL, submit_n_clicks_timestamp=NULL, cancel_n_clicks=NULL, cancel_n_clicks_timestamp=NULL, displayed=NULL, loading_state=NULL) {
3+
dccConfirmDialogProvider <- function(children=NULL, id=NULL, cancel_n_clicks=NULL, cancel_n_clicks_timestamp=NULL, displayed=NULL, loading_state=NULL, message=NULL, submit_n_clicks=NULL, submit_n_clicks_timestamp=NULL) {
44

5-
props <- list(children=children, id=id, message=message, submit_n_clicks=submit_n_clicks, submit_n_clicks_timestamp=submit_n_clicks_timestamp, cancel_n_clicks=cancel_n_clicks, cancel_n_clicks_timestamp=cancel_n_clicks_timestamp, displayed=displayed, loading_state=loading_state)
5+
props <- list(children=children, id=id, cancel_n_clicks=cancel_n_clicks, cancel_n_clicks_timestamp=cancel_n_clicks_timestamp, displayed=displayed, loading_state=loading_state, message=message, submit_n_clicks=submit_n_clicks, submit_n_clicks_timestamp=submit_n_clicks_timestamp)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'ConfirmDialogProvider',
1212
namespace = 'dash_core_components',
13-
propNames = c('children', 'id', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'loading_state'),
13+
propNames = c('children', 'id', 'cancel_n_clicks', 'cancel_n_clicks_timestamp', 'displayed', 'loading_state', 'message', 'submit_n_clicks', 'submit_n_clicks_timestamp'),
1414
package = 'dashCoreComponents'
1515
)
1616

R/dccDatePickerRange.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
dccDatePickerRange <- function(id=NULL, start_date=NULL, start_date_id=NULL, end_date_id=NULL, end_date=NULL, min_date_allowed=NULL, max_date_allowed=NULL, initial_visible_month=NULL, start_date_placeholder_text=NULL, end_date_placeholder_text=NULL, day_size=NULL, calendar_orientation=NULL, is_RTL=NULL, reopen_calendar_on_clear=NULL, number_of_months_shown=NULL, with_portal=NULL, with_full_screen_portal=NULL, first_day_of_week=NULL, minimum_nights=NULL, stay_open_on_select=NULL, show_outside_days=NULL, month_format=NULL, display_format=NULL, disabled=NULL, clearable=NULL, style=NULL, className=NULL, updatemode=NULL, loading_state=NULL, persistence=NULL, persisted_props=NULL, persistence_type=NULL) {
3+
dccDatePickerRange <- function(id=NULL, calendar_orientation=NULL, className=NULL, clearable=NULL, day_size=NULL, disabled=NULL, display_format=NULL, end_date=NULL, end_date_id=NULL, end_date_placeholder_text=NULL, first_day_of_week=NULL, initial_visible_month=NULL, is_RTL=NULL, loading_state=NULL, max_date_allowed=NULL, min_date_allowed=NULL, minimum_nights=NULL, month_format=NULL, number_of_months_shown=NULL, persisted_props=NULL, persistence=NULL, persistence_type=NULL, reopen_calendar_on_clear=NULL, show_outside_days=NULL, start_date=NULL, start_date_id=NULL, start_date_placeholder_text=NULL, stay_open_on_select=NULL, style=NULL, updatemode=NULL, with_full_screen_portal=NULL, with_portal=NULL) {
44

5-
props <- list(id=id, start_date=start_date, start_date_id=start_date_id, end_date_id=end_date_id, end_date=end_date, min_date_allowed=min_date_allowed, max_date_allowed=max_date_allowed, initial_visible_month=initial_visible_month, start_date_placeholder_text=start_date_placeholder_text, end_date_placeholder_text=end_date_placeholder_text, day_size=day_size, calendar_orientation=calendar_orientation, is_RTL=is_RTL, reopen_calendar_on_clear=reopen_calendar_on_clear, number_of_months_shown=number_of_months_shown, with_portal=with_portal, with_full_screen_portal=with_full_screen_portal, first_day_of_week=first_day_of_week, minimum_nights=minimum_nights, stay_open_on_select=stay_open_on_select, show_outside_days=show_outside_days, month_format=month_format, display_format=display_format, disabled=disabled, clearable=clearable, style=style, className=className, updatemode=updatemode, loading_state=loading_state, persistence=persistence, persisted_props=persisted_props, persistence_type=persistence_type)
5+
props <- list(id=id, calendar_orientation=calendar_orientation, className=className, clearable=clearable, day_size=day_size, disabled=disabled, display_format=display_format, end_date=end_date, end_date_id=end_date_id, end_date_placeholder_text=end_date_placeholder_text, first_day_of_week=first_day_of_week, initial_visible_month=initial_visible_month, is_RTL=is_RTL, loading_state=loading_state, max_date_allowed=max_date_allowed, min_date_allowed=min_date_allowed, minimum_nights=minimum_nights, month_format=month_format, number_of_months_shown=number_of_months_shown, persisted_props=persisted_props, persistence=persistence, persistence_type=persistence_type, reopen_calendar_on_clear=reopen_calendar_on_clear, show_outside_days=show_outside_days, start_date=start_date, start_date_id=start_date_id, start_date_placeholder_text=start_date_placeholder_text, stay_open_on_select=stay_open_on_select, style=style, updatemode=updatemode, with_full_screen_portal=with_full_screen_portal, with_portal=with_portal)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'DatePickerRange',
1212
namespace = 'dash_core_components',
13-
propNames = c('id', 'start_date', 'start_date_id', 'end_date_id', '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', 'persistence', 'persisted_props', 'persistence_type'),
13+
propNames = c('id', 'calendar_orientation', 'className', 'clearable', 'day_size', 'disabled', 'display_format', 'end_date', 'end_date_id', 'end_date_placeholder_text', 'first_day_of_week', 'initial_visible_month', 'is_RTL', 'loading_state', 'max_date_allowed', 'min_date_allowed', 'minimum_nights', 'month_format', 'number_of_months_shown', 'persisted_props', 'persistence', 'persistence_type', 'reopen_calendar_on_clear', 'show_outside_days', 'start_date', 'start_date_id', 'start_date_placeholder_text', 'stay_open_on_select', 'style', 'updatemode', 'with_full_screen_portal', 'with_portal'),
1414
package = 'dashCoreComponents'
1515
)
1616

0 commit comments

Comments
 (0)