Skip to content

Commit e14ed07

Browse files
author
Marc-André Rivet
committed
bump version to 0.5.0 + build artifacts
1 parent 787615c commit e14ed07

13 files changed

+144
-40
lines changed

dash_daq/BooleanSwitch.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,27 @@ class BooleanSwitch(Component):
2323
- label (string; optional)
2424
- labelPosition (a value equal to: 'top', 'bottom'; default 'top'): Where the component label is positioned.
2525
- className (string; optional): Class to apply to the root component element.
26-
- style (dict; optional): Style to apply to the root object."""
26+
- style (dict; optional): Style to apply to the root object.
27+
- persistence (boolean | string | number; optional): Used to allow user interactions in this component to be persisted when
28+
the component - or the page - is refreshed. If `persisted` is truthy and
29+
hasn't changed from its previous value, a `value` that the user has
30+
changed while using the app will keep that change, as long as
31+
the new `value` also matches what was given originally.
32+
Used in conjunction with `persistence_type`.
33+
- persisted_props (list of a value equal to: 'on's; default ['on']): Properties whose user interactions will persist after refreshing the
34+
component or the page. Since only `on` is allowed this prop can
35+
normally be ignored.
36+
- persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'): Where persisted user changes will be stored:
37+
memory: only kept in memory, reset on page refresh.
38+
local: window.localStorage, data is kept after the browser quit.
39+
session: window.sessionStorage, data is cleared once the browser quit."""
2740
@_explicitize_args
28-
def __init__(self, id=Component.UNDEFINED, on=Component.UNDEFINED, color=Component.UNDEFINED, vertical=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
29-
self._prop_names = ['id', 'on', 'color', 'vertical', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
41+
def __init__(self, id=Component.UNDEFINED, on=Component.UNDEFINED, color=Component.UNDEFINED, vertical=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
42+
self._prop_names = ['id', 'on', 'color', 'vertical', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3043
self._type = 'BooleanSwitch'
3144
self._namespace = 'dash_daq'
3245
self._valid_wildcard_attributes = []
33-
self.available_properties = ['id', 'on', 'color', 'vertical', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
46+
self.available_properties = ['id', 'on', 'color', 'vertical', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3447
self.available_wildcard_properties = []
3548

3649
_explicit_args = kwargs.pop('_explicit_args')

dash_daq/ColorPicker.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,27 @@ class ColorPicker(Component):
2828
- label (string; optional)
2929
- labelPosition (a value equal to: 'top', 'bottom'; default 'top'): Where the indicator label is positioned
3030
- className (string; optional): Class to apply to the root component element
31-
- style (dict; optional): Style to apply to the root component element"""
31+
- style (dict; optional): Style to apply to the root component element
32+
- persistence (boolean | string | number; optional): Used to allow user interactions in this component to be persisted when
33+
the component - or the page - is refreshed. If `persisted` is truthy and
34+
hasn't changed from its previous value, a `value` that the user has
35+
changed while using the app will keep that change, as long as
36+
the new `value` also matches what was given originally.
37+
Used in conjunction with `persistence_type`.
38+
- persisted_props (list of a value equal to: 'value's; default ['value']): Properties whose user interactions will persist after refreshing the
39+
component or the page. Since only `value` is allowed this prop can
40+
normally be ignored.
41+
- persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'): Where persisted user changes will be stored:
42+
memory: only kept in memory, reset on page refresh.
43+
local: window.localStorage, data is kept after the browser quit.
44+
session: window.sessionStorage, data is cleared once the browser quit."""
3245
@_explicitize_args
33-
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
34-
self._prop_names = ['id', 'value', 'disabled', 'size', 'theme', 'label', 'labelPosition', 'className', 'style']
46+
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
47+
self._prop_names = ['id', 'value', 'disabled', 'size', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3548
self._type = 'ColorPicker'
3649
self._namespace = 'dash_daq'
3750
self._valid_wildcard_attributes = []
38-
self.available_properties = ['id', 'value', 'disabled', 'size', 'theme', 'label', 'labelPosition', 'className', 'style']
51+
self.available_properties = ['id', 'value', 'disabled', 'size', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3952
self.available_wildcard_properties = []
4053

4154
_explicit_args = kwargs.pop('_explicit_args')

dash_daq/Knob.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,27 @@ class Knob(Component):
5151
- style (string; optional)
5252
- label (string; optional)
5353
- className (string; optional): Class to apply to the root component element.
54-
- style (dict; optional): Style to apply to the root component element."""
54+
- style (dict; optional): Style to apply to the root component element.
55+
- persistence (boolean | string | number; optional): Used to allow user interactions in this component to be persisted when
56+
the component - or the page - is refreshed. If `persisted` is truthy and
57+
hasn't changed from its previous value, a `value` that the user has
58+
changed while using the app will keep that change, as long as
59+
the new `value` also matches what was given originally.
60+
Used in conjunction with `persistence_type`.
61+
- persisted_props (list of a value equal to: 'value's; default ['value']): Properties whose user interactions will persist after refreshing the
62+
component or the page. Since only `value` is allowed this prop can
63+
normally be ignored.
64+
- persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'): Where persisted user changes will be stored:
65+
memory: only kept in memory, reset on page refresh.
66+
local: window.localStorage, data is kept after the browser quit.
67+
session: window.sessionStorage, data is cleared once the browser quit."""
5568
@_explicitize_args
56-
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, color=Component.UNDEFINED, size=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, scale=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
57-
self._prop_names = ['id', 'value', 'color', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'scale', 'className', 'style']
69+
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, color=Component.UNDEFINED, size=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, scale=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
70+
self._prop_names = ['id', 'value', 'color', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'scale', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
5871
self._type = 'Knob'
5972
self._namespace = 'dash_daq'
6073
self._valid_wildcard_attributes = []
61-
self.available_properties = ['id', 'value', 'color', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'scale', 'className', 'style']
74+
self.available_properties = ['id', 'value', 'color', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'scale', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
6275
self.available_wildcard_properties = []
6376

6477
_explicit_args = kwargs.pop('_explicit_args')

dash_daq/NumericInput.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,27 @@ class NumericInput(Component):
2323
- label (string; optional)
2424
- labelPosition (a value equal to: 'top', 'bottom'; default 'top'): Where the numeric input label is positioned.
2525
- className (string; optional): Class to apply to the root component element.
26-
- style (dict; optional): Style to apply to the root component element."""
26+
- style (dict; optional): Style to apply to the root component element.
27+
- persistence (boolean | string | number; optional): Used to allow user interactions in this component to be persisted when
28+
the component - or the page - is refreshed. If `persisted` is truthy and
29+
hasn't changed from its previous value, a `value` that the user has
30+
changed while using the app will keep that change, as long as
31+
the new `value` also matches what was given originally.
32+
Used in conjunction with `persistence_type`.
33+
- persisted_props (list of a value equal to: 'value's; default ['value']): Properties whose user interactions will persist after refreshing the
34+
component or the page. Since only `value` is allowed this prop can
35+
normally be ignored.
36+
- persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'): Where persisted user changes will be stored:
37+
memory: only kept in memory, reset on page refresh.
38+
local: window.localStorage, data is kept after the browser quit.
39+
session: window.sessionStorage, data is cleared once the browser quit."""
2740
@_explicitize_args
28-
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, size=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
29-
self._prop_names = ['id', 'value', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
41+
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, size=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
42+
self._prop_names = ['id', 'value', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3043
self._type = 'NumericInput'
3144
self._namespace = 'dash_daq'
3245
self._valid_wildcard_attributes = []
33-
self.available_properties = ['id', 'value', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
46+
self.available_properties = ['id', 'value', 'size', 'min', 'max', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3447
self.available_wildcard_properties = []
3548

3649
_explicit_args = kwargs.pop('_explicit_args')

dash_daq/PowerButton.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,27 @@ class PowerButton(Component):
2121
- label (string; optional)
2222
- labelPosition (a value equal to: 'top', 'bottom'; default 'top'): Where the button label is positioned.
2323
- className (string; optional): Class to apply to the root component element.
24-
- style (dict; optional): Style to apply to the root component element."""
24+
- style (dict; optional): Style to apply to the root component element.
25+
- persistence (boolean | string | number; optional): Used to allow user interactions in this component to be persisted when
26+
the component - or the page - is refreshed. If `persisted` is truthy and
27+
hasn't changed from its previous value, a `value` that the user has
28+
changed while using the app will keep that change, as long as
29+
the new `value` also matches what was given originally.
30+
Used in conjunction with `persistence_type`.
31+
- persisted_props (list of a value equal to: 'on's; default ['on']): Properties whose user interactions will persist after refreshing the
32+
component or the page. Since only `on` is allowed this prop can
33+
normally be ignored.
34+
- persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'): Where persisted user changes will be stored:
35+
memory: only kept in memory, reset on page refresh.
36+
local: window.localStorage, data is kept after the browser quit.
37+
session: window.sessionStorage, data is cleared once the browser quit."""
2538
@_explicitize_args
26-
def __init__(self, id=Component.UNDEFINED, on=Component.UNDEFINED, color=Component.UNDEFINED, size=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
27-
self._prop_names = ['id', 'on', 'color', 'size', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
39+
def __init__(self, id=Component.UNDEFINED, on=Component.UNDEFINED, color=Component.UNDEFINED, size=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
40+
self._prop_names = ['id', 'on', 'color', 'size', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
2841
self._type = 'PowerButton'
2942
self._namespace = 'dash_daq'
3043
self._valid_wildcard_attributes = []
31-
self.available_properties = ['id', 'on', 'color', 'size', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
44+
self.available_properties = ['id', 'on', 'color', 'size', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3245
self.available_wildcard_properties = []
3346

3447
_explicit_args = kwargs.pop('_explicit_args')

dash_daq/PrecisionInput.py

+17-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,27 @@ class PrecisionInput(Component):
2424
- label (string; optional)
2525
- labelPosition (a value equal to: 'top', 'bottom'; default 'top'): Where the numeric input label is positioned.
2626
- className (string; optional): Class to apply to the root component element.
27-
- style (dict; optional): Style to apply to the root component element."""
27+
- style (dict; optional): Style to apply to the root component element.
28+
- persistence (boolean | string | number; optional): Used to allow user interactions in this component to be persisted when
29+
the component - or the page - is refreshed. If `persisted` is truthy and
30+
hasn't changed from its previous value, a `value` that the user has
31+
changed while using the app will keep that change, as long as
32+
the new `value` also matches what was given originally.
33+
Used in conjunction with `persistence_type`.
34+
- persisted_props (list of a value equal to: 'value's; default ['value']): Properties whose user interactions will persist after refreshing the
35+
component or the page. Since only `value` is allowed this prop can
36+
normally be ignored.
37+
- persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'): Where persisted user changes will be stored:
38+
memory: only kept in memory, reset on page refresh.
39+
local: window.localStorage, data is kept after the browser quit.
40+
session: window.sessionStorage, data is cleared once the browser quit."""
2841
@_explicitize_args
29-
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, size=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, precision=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs):
30-
self._prop_names = ['id', 'value', 'size', 'min', 'max', 'precision', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
42+
def __init__(self, id=Component.UNDEFINED, value=Component.UNDEFINED, size=Component.UNDEFINED, min=Component.UNDEFINED, max=Component.UNDEFINED, precision=Component.UNDEFINED, disabled=Component.UNDEFINED, theme=Component.UNDEFINED, label=Component.UNDEFINED, labelPosition=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
43+
self._prop_names = ['id', 'value', 'size', 'min', 'max', 'precision', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3144
self._type = 'PrecisionInput'
3245
self._namespace = 'dash_daq'
3346
self._valid_wildcard_attributes = []
34-
self.available_properties = ['id', 'value', 'size', 'min', 'max', 'precision', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style']
47+
self.available_properties = ['id', 'value', 'size', 'min', 'max', 'precision', 'disabled', 'theme', 'label', 'labelPosition', 'className', 'style', 'persistence', 'persisted_props', 'persistence_type']
3548
self.available_wildcard_properties = []
3649

3750
_explicit_args = kwargs.pop('_explicit_args')

0 commit comments

Comments
 (0)