diff --git a/CHANGELOG.md b/CHANGELOG.md index 26545cb86..51ec93f4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,17 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Fixed -- Fix style regression in DatePickerSingle and DatePickerRange [#518](https://github.com/plotly/dash-core-components/issues/518) +- Fixed style regression in DatePickerSingle and DatePickerRange [#518](https://github.com/plotly/dash-core-components/issues/518) +- **Breaking** - In `dcc.Input`, fixed several HTML properties that weren't properly camel cased and therefore were not actually applied in the DOM [#523](https://github.com/plotly/dash-core-components/pull/523/): + - `autocomplete` is now `autoComplete` + - `autofocus` is now `autoFocus` + - `inputmode` is now `inputMode` + - `maxlength` is now `maxLength` + - `minlength` is now `minLength` +- Improved property definitions of various components in anticipation of upcoming component validation (https://github.com/plotly/dash-renderer/pull/100/). [#523](https://github.com/plotly/dash-core-components/pull/523/) +- **Breaking** - `n_blur_timestamp` & `n_submit_timestamp` in `Input` & `Textarea` is now a number instead of a date object/string. This matches the form of `n_clicks_timestamp` as used in `dash_html_components`. [#523](https://github.com/plotly/dash-core-components/pull/523/) +- Fixed an issue with `ConfirmDialog` that could display multiple confirm popups instead of a single popup in certain contexts. [#523](https://github.com/plotly/dash-core-components/pull/523/) + ## [0.46.0] - 2019-04-10 ### Added diff --git a/dash_core_components/Dropdown.py b/dash_core_components/Dropdown.py index 11f11bc59..f6b793de8 100644 --- a/dash_core_components/Dropdown.py +++ b/dash_core_components/Dropdown.py @@ -17,7 +17,7 @@ class Dropdown(Component): 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) +- value (string | list | number | 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 diff --git a/dash_core_components/Graph.py b/dash_core_components/Graph.py index 2c7bd4d4f..64920a853 100644 --- a/dash_core_components/Graph.py +++ b/dash_core_components/Graph.py @@ -23,7 +23,7 @@ class Graph(Component): 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 +- extendData (list | 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 @@ -38,11 +38,14 @@ class Graph(Component): `{: }` 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: +- figure (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. +and `frames` is not supported.. figure has the following type: dict containing keys 'data', 'layout'. +Those keys have the following types: + - data (list; optional) + - layout (dict; optional) - 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 diff --git a/dash_core_components/Input.py b/dash_core_components/Input.py index e70cd529f..f3db64cc3 100644 --- a/dash_core_components/Input.py +++ b/dash_core_components/Input.py @@ -21,10 +21,15 @@ class Input(Component): - 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) +- autoComplete (string; optional): This attribute indicates whether the value of the control can be automatically completed by the browser. +- autoFocus (a value equal to: 'autoFocus', 'autofocus', 'AUTOFOCUS' | boolean; optional): The element should be automatically focused after the page loaded. +autoFocus is an HTML boolean attribute - it is enabled by a boolean or +'autoFocus'. Alternative capitalizations `autofocus` & `AUTOFOCUS` +are also acccepted. +- disabled (a value equal to: 'disabled', 'DISABLED' | boolean; optional): If true, the input is disabled and can't be clicked on. +disabled is an HTML boolean attribute - it is enabled by a boolean or +'disabled'. Alternative capitalizations `DISABLED` +- 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 @@ -32,20 +37,26 @@ class Input(Component): 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. +- maxLength (string | number; 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. +- minLength (string | number; 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