From 7a40014c48943d821da163a058f589a1cd9f6d53 Mon Sep 17 00:00:00 2001 From: Ryan Marren Date: Mon, 11 Jun 2018 22:52:00 -0400 Subject: [PATCH 1/9] v0.24.0 class files --- CHANGELOG.md | 5 + dash_core_components/Checklist.py | 62 +++++++++++ dash_core_components/DatePickerRange.py | 112 ++++++++++++++++++++ dash_core_components/DatePickerSingle.py | 105 +++++++++++++++++++ dash_core_components/Dropdown.py | 71 +++++++++++++ dash_core_components/Graph.py | 121 ++++++++++++++++++++++ dash_core_components/Input.py | 85 +++++++++++++++ dash_core_components/Interval.py | 57 ++++++++++ dash_core_components/Link.py | 54 ++++++++++ dash_core_components/Location.py | 55 ++++++++++ dash_core_components/Markdown.py | 54 ++++++++++ dash_core_components/RadioItems.py | 62 +++++++++++ dash_core_components/RangeSlider.py | 87 ++++++++++++++++ dash_core_components/Slider.py | 79 ++++++++++++++ dash_core_components/SyntaxHighlighter.py | 61 +++++++++++ dash_core_components/Textarea.py | 76 ++++++++++++++ dash_core_components/Upload.py | 77 ++++++++++++++ dash_core_components/__init__.py | 18 +++- package.json | 2 +- 19 files changed, 1239 insertions(+), 4 deletions(-) create mode 100644 dash_core_components/Checklist.py create mode 100644 dash_core_components/DatePickerRange.py create mode 100644 dash_core_components/DatePickerSingle.py create mode 100644 dash_core_components/Dropdown.py create mode 100644 dash_core_components/Graph.py create mode 100644 dash_core_components/Input.py create mode 100644 dash_core_components/Interval.py create mode 100644 dash_core_components/Link.py create mode 100644 dash_core_components/Location.py create mode 100644 dash_core_components/Markdown.py create mode 100644 dash_core_components/RadioItems.py create mode 100644 dash_core_components/RangeSlider.py create mode 100644 dash_core_components/Slider.py create mode 100644 dash_core_components/SyntaxHighlighter.py create mode 100644 dash_core_components/Textarea.py create mode 100644 dash_core_components/Upload.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 036a6ee10..7a432193f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [0.24.0] - UNRELEASED +### Changed +- `dash_core_components/__init__.py` now imports from python class files rather than generating classes at runtime, +adding support for IDE autocomplete ect. + ## [0.23.0] - UNRELEASED ### Added - Upgraded Plotly.js, the underlying library behind the diff --git a/dash_core_components/Checklist.py b/dash_core_components/Checklist.py new file mode 100644 index 000000000..4f657a725 --- /dev/null +++ b/dash_core_components/Checklist.py @@ -0,0 +1,62 @@ +from dash.development.base_component import Component + + +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