Skip to content

Commit 2a4d3d6

Browse files
committed
Merge branch 'animation'
2 parents 178fb02 + c5a0a58 commit 2a4d3d6

Some content is hidden

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

65 files changed

+70628
-81015
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,7 @@ GitHub.sublime-settings
283283
R/
284284
inst/
285285
/.build_cache/
286+
287+
288+
#
289+
.DS_Store

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dashMpComponents
22
Title: Dash components for the Materials Project
3-
Version: 0.4.46
3+
Version: 0.4.47
44
Description: Dash components for the Materials Project
55
Depends: R (>= 3.0.2)
66
Imports:

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export(JsonView)
44
export(MatSidebar)
55
export(CameraContextProvider)
6+
export(CrystalToolkitAnimationScene)
67
export(CrystalToolkitScene)
78
export(Download)
89
export(GraphComponent)
@@ -63,6 +64,7 @@ export(dataTable)
6364
export(synthesisRecipeCard)
6465
export(dataBlock)
6566
export(searchUIDataView)
67+
export(crystalToolkitAnimationScene)
6668
export(downloadButton)
6769
export(rangeSlider)
6870
export(periodicElement)

dash_mp_components/BibCard.py

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3+
import typing # noqa: F401
4+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
35
from dash.development.base_component import Component, _explicitize_args
46

7+
ComponentType = typing.Union[
8+
str,
9+
int,
10+
float,
11+
Component,
12+
None,
13+
typing.Sequence[typing.Union[str, int, float, Component, None]],
14+
]
15+
16+
NumberType = typing.Union[
17+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
18+
]
19+
520

621
class BibCard(Component):
722
"""A BibCard component.
@@ -52,18 +67,31 @@ class BibCard(Component):
5267
_base_nodes = ['children']
5368
_namespace = 'dash_mp_components'
5469
_type = 'BibCard'
55-
@_explicitize_args
56-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, title=Component.UNDEFINED, author=Component.UNDEFINED, year=Component.UNDEFINED, journal=Component.UNDEFINED, doi=Component.UNDEFINED, shortName=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, openAccessUrl=Component.UNDEFINED, **kwargs):
70+
71+
72+
def __init__(
73+
self,
74+
id: typing.Optional[typing.Union[str, dict]] = None,
75+
className: typing.Optional[str] = None,
76+
title: typing.Optional[str] = None,
77+
author: typing.Optional[str] = None,
78+
year: typing.Optional[typing.Union[str, NumberType]] = None,
79+
journal: typing.Optional[str] = None,
80+
doi: typing.Optional[str] = None,
81+
shortName: typing.Optional[str] = None,
82+
preventOpenAccessFetch: typing.Optional[bool] = None,
83+
openAccessUrl: typing.Optional[str] = None,
84+
**kwargs
85+
):
5786
self._prop_names = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
5887
self._valid_wildcard_attributes = []
5988
self.available_properties = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
6089
self.available_wildcard_properties = []
6190
_explicit_args = kwargs.pop('_explicit_args')
6291
_locals = locals()
6392
_locals.update(kwargs) # For wildcard attrs and excess named props
64-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
65-
for k in []:
66-
if k not in args:
67-
raise TypeError(
68-
'Required argument `' + k + '` was not specified.')
93+
args = {k: _locals[k] for k in _explicit_args}
94+
6995
super(BibCard, self).__init__(**args)
96+
97+
setattr(BibCard, "__init__", _explicitize_args(BibCard.__init__))

dash_mp_components/BibFilter.py

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3+
import typing # noqa: F401
4+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
35
from dash.development.base_component import Component, _explicitize_args
46

7+
ComponentType = typing.Union[
8+
str,
9+
int,
10+
float,
11+
Component,
12+
None,
13+
typing.Sequence[typing.Union[str, int, float, Component, None]],
14+
]
15+
16+
NumberType = typing.Union[
17+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
18+
]
19+
520

621
class BibFilter(Component):
722
"""A BibFilter component.
@@ -50,18 +65,29 @@ class BibFilter(Component):
5065
_base_nodes = ['children']
5166
_namespace = 'dash_mp_components'
5267
_type = 'BibFilter'
53-
@_explicitize_args
54-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, format=Component.UNDEFINED, bibEntries=Component.UNDEFINED, sortField=Component.UNDEFINED, ascending=Component.UNDEFINED, resultClassName=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs):
68+
69+
70+
def __init__(
71+
self,
72+
id: typing.Optional[typing.Union[str, dict]] = None,
73+
className: typing.Optional[str] = None,
74+
format: typing.Optional[Literal["bibjson", "crossref"]] = None,
75+
bibEntries: typing.Optional[typing.Sequence] = None,
76+
sortField: typing.Optional[Literal["year", "author", "title"]] = None,
77+
ascending: typing.Optional[bool] = None,
78+
resultClassName: typing.Optional[str] = None,
79+
preventOpenAccessFetch: typing.Optional[bool] = None,
80+
**kwargs
81+
):
5582
self._prop_names = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField']
5683
self._valid_wildcard_attributes = []
5784
self.available_properties = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField']
5885
self.available_wildcard_properties = []
5986
_explicit_args = kwargs.pop('_explicit_args')
6087
_locals = locals()
6188
_locals.update(kwargs) # For wildcard attrs and excess named props
62-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
63-
for k in []:
64-
if k not in args:
65-
raise TypeError(
66-
'Required argument `' + k + '` was not specified.')
89+
args = {k: _locals[k] for k in _explicit_args}
90+
6791
super(BibFilter, self).__init__(**args)
92+
93+
setattr(BibFilter, "__init__", _explicitize_args(BibFilter.__init__))

dash_mp_components/BibjsonCard.py

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3+
import typing # noqa: F401
4+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
35
from dash.development.base_component import Component, _explicitize_args
46

7+
ComponentType = typing.Union[
8+
str,
9+
int,
10+
float,
11+
Component,
12+
None,
13+
typing.Sequence[typing.Union[str, int, float, Component, None]],
14+
]
15+
16+
NumberType = typing.Union[
17+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
18+
]
19+
520

621
class BibjsonCard(Component):
722
"""A BibjsonCard component.
@@ -41,18 +56,25 @@ class BibjsonCard(Component):
4156
_base_nodes = ['children']
4257
_namespace = 'dash_mp_components'
4358
_type = 'BibjsonCard'
44-
@_explicitize_args
45-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, bibjsonEntry=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs):
59+
60+
61+
def __init__(
62+
self,
63+
id: typing.Optional[typing.Union[str, dict]] = None,
64+
className: typing.Optional[str] = None,
65+
bibjsonEntry: typing.Optional[typing.Any] = None,
66+
preventOpenAccessFetch: typing.Optional[bool] = None,
67+
**kwargs
68+
):
4669
self._prop_names = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch']
4770
self._valid_wildcard_attributes = []
4871
self.available_properties = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch']
4972
self.available_wildcard_properties = []
5073
_explicit_args = kwargs.pop('_explicit_args')
5174
_locals = locals()
5275
_locals.update(kwargs) # For wildcard attrs and excess named props
53-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
54-
for k in []:
55-
if k not in args:
56-
raise TypeError(
57-
'Required argument `' + k + '` was not specified.')
76+
args = {k: _locals[k] for k in _explicit_args}
77+
5878
super(BibjsonCard, self).__init__(**args)
79+
80+
setattr(BibjsonCard, "__init__", _explicitize_args(BibjsonCard.__init__))

dash_mp_components/BibtexButton.py

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3+
import typing # noqa: F401
4+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
35
from dash.development.base_component import Component, _explicitize_args
46

7+
ComponentType = typing.Union[
8+
str,
9+
int,
10+
float,
11+
Component,
12+
None,
13+
typing.Sequence[typing.Union[str, int, float, Component, None]],
14+
]
15+
16+
NumberType = typing.Union[
17+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
18+
]
19+
520

621
class BibtexButton(Component):
722
"""A BibtexButton component.
@@ -33,18 +48,26 @@ class BibtexButton(Component):
3348
_base_nodes = ['children']
3449
_namespace = 'dash_mp_components'
3550
_type = 'BibtexButton'
36-
@_explicitize_args
37-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, doi=Component.UNDEFINED, url=Component.UNDEFINED, target=Component.UNDEFINED, **kwargs):
51+
52+
53+
def __init__(
54+
self,
55+
id: typing.Optional[typing.Union[str, dict]] = None,
56+
className: typing.Optional[str] = None,
57+
doi: typing.Optional[str] = None,
58+
url: typing.Optional[str] = None,
59+
target: typing.Optional[str] = None,
60+
**kwargs
61+
):
3862
self._prop_names = ['id', 'className', 'doi', 'target', 'url']
3963
self._valid_wildcard_attributes = []
4064
self.available_properties = ['id', 'className', 'doi', 'target', 'url']
4165
self.available_wildcard_properties = []
4266
_explicit_args = kwargs.pop('_explicit_args')
4367
_locals = locals()
4468
_locals.update(kwargs) # For wildcard attrs and excess named props
45-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
46-
for k in []:
47-
if k not in args:
48-
raise TypeError(
49-
'Required argument `' + k + '` was not specified.')
69+
args = {k: _locals[k] for k in _explicit_args}
70+
5071
super(BibtexButton, self).__init__(**args)
72+
73+
setattr(BibtexButton, "__init__", _explicitize_args(BibtexButton.__init__))

dash_mp_components/CameraContextProvider.py

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3+
import typing # noqa: F401
4+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
35
from dash.development.base_component import Component, _explicitize_args
46

7+
ComponentType = typing.Union[
8+
str,
9+
int,
10+
float,
11+
Component,
12+
None,
13+
typing.Sequence[typing.Union[str, int, float, Component, None]],
14+
]
15+
16+
NumberType = typing.Union[
17+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
18+
]
19+
520

621
class CameraContextProvider(Component):
722
"""A CameraContextProvider component.
@@ -18,8 +33,14 @@ class CameraContextProvider(Component):
1833
_base_nodes = ['children']
1934
_namespace = 'dash_mp_components'
2035
_type = 'CameraContextProvider'
21-
@_explicitize_args
22-
def __init__(self, children=None, id=Component.UNDEFINED, **kwargs):
36+
37+
38+
def __init__(
39+
self,
40+
children: typing.Optional[ComponentType] = None,
41+
id: typing.Optional[typing.Union[str, dict]] = None,
42+
**kwargs
43+
):
2344
self._prop_names = ['children', 'id']
2445
self._valid_wildcard_attributes = []
2546
self.available_properties = ['children', 'id']
@@ -28,8 +49,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, **kwargs):
2849
_locals = locals()
2950
_locals.update(kwargs) # For wildcard attrs and excess named props
3051
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
31-
for k in []:
32-
if k not in args:
33-
raise TypeError(
34-
'Required argument `' + k + '` was not specified.')
52+
3553
super(CameraContextProvider, self).__init__(children=children, **args)
54+
55+
setattr(CameraContextProvider, "__init__", _explicitize_args(CameraContextProvider.__init__))

dash_mp_components/CrossrefCard.py

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3+
import typing # noqa: F401
4+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
35
from dash.development.base_component import Component, _explicitize_args
46

7+
ComponentType = typing.Union[
8+
str,
9+
int,
10+
float,
11+
Component,
12+
None,
13+
typing.Sequence[typing.Union[str, int, float, Component, None]],
14+
]
15+
16+
NumberType = typing.Union[
17+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
18+
]
19+
520

621
class CrossrefCard(Component):
722
"""A CrossrefCard component.
@@ -40,18 +55,27 @@ class CrossrefCard(Component):
4055
_base_nodes = ['children']
4156
_namespace = 'dash_mp_components'
4257
_type = 'CrossrefCard'
43-
@_explicitize_args
44-
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, crossrefEntry=Component.UNDEFINED, identifier=Component.UNDEFINED, errorMessage=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs):
58+
59+
60+
def __init__(
61+
self,
62+
id: typing.Optional[typing.Union[str, dict]] = None,
63+
className: typing.Optional[str] = None,
64+
crossrefEntry: typing.Optional[typing.Any] = None,
65+
identifier: typing.Optional[str] = None,
66+
errorMessage: typing.Optional[str] = None,
67+
preventOpenAccessFetch: typing.Optional[bool] = None,
68+
**kwargs
69+
):
4570
self._prop_names = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch']
4671
self._valid_wildcard_attributes = []
4772
self.available_properties = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch']
4873
self.available_wildcard_properties = []
4974
_explicit_args = kwargs.pop('_explicit_args')
5075
_locals = locals()
5176
_locals.update(kwargs) # For wildcard attrs and excess named props
52-
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
53-
for k in []:
54-
if k not in args:
55-
raise TypeError(
56-
'Required argument `' + k + '` was not specified.')
77+
args = {k: _locals[k] for k in _explicit_args}
78+
5779
super(CrossrefCard, self).__init__(**args)
80+
81+
setattr(CrossrefCard, "__init__", _explicitize_args(CrossrefCard.__init__))

0 commit comments

Comments
 (0)