Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,7 @@ GitHub.sublime-settings
R/
inst/
/.build_cache/


#
.DS_Store
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dashMpComponents
Title: Dash components for the Materials Project
Version: 0.4.46
Version: 0.4.47
Description: Dash components for the Materials Project
Depends: R (>= 3.0.2)
Imports:
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export(JsonView)
export(MatSidebar)
export(CameraContextProvider)
export(CrystalToolkitAnimationScene)
export(CrystalToolkitScene)
export(Download)
export(GraphComponent)
Expand Down Expand Up @@ -63,6 +64,7 @@ export(dataTable)
export(synthesisRecipeCard)
export(dataBlock)
export(searchUIDataView)
export(crystalToolkitAnimationScene)
export(downloadButton)
export(rangeSlider)
export(periodicElement)
Expand Down
42 changes: 35 additions & 7 deletions dash_mp_components/BibCard.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# AUTO GENERATED FILE - DO NOT EDIT

import typing # noqa: F401
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
from dash.development.base_component import Component, _explicitize_args

ComponentType = typing.Union[
str,
int,
float,
Component,
None,
typing.Sequence[typing.Union[str, int, float, Component, None]],
]

NumberType = typing.Union[
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
]


class BibCard(Component):
"""A BibCard component.
Expand Down Expand Up @@ -52,18 +67,31 @@ class BibCard(Component):
_base_nodes = ['children']
_namespace = 'dash_mp_components'
_type = 'BibCard'
@_explicitize_args
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):


def __init__(
self,
id: typing.Optional[typing.Union[str, dict]] = None,
className: typing.Optional[str] = None,
title: typing.Optional[str] = None,
author: typing.Optional[str] = None,
year: typing.Optional[typing.Union[str, NumberType]] = None,
journal: typing.Optional[str] = None,
doi: typing.Optional[str] = None,
shortName: typing.Optional[str] = None,
preventOpenAccessFetch: typing.Optional[bool] = None,
openAccessUrl: typing.Optional[str] = None,
**kwargs
):
self._prop_names = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
args = {k: _locals[k] for k in _explicit_args}

super(BibCard, self).__init__(**args)

setattr(BibCard, "__init__", _explicitize_args(BibCard.__init__))
40 changes: 33 additions & 7 deletions dash_mp_components/BibFilter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# AUTO GENERATED FILE - DO NOT EDIT

import typing # noqa: F401
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
from dash.development.base_component import Component, _explicitize_args

ComponentType = typing.Union[
str,
int,
float,
Component,
None,
typing.Sequence[typing.Union[str, int, float, Component, None]],
]

NumberType = typing.Union[
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
]


class BibFilter(Component):
"""A BibFilter component.
Expand Down Expand Up @@ -50,18 +65,29 @@ class BibFilter(Component):
_base_nodes = ['children']
_namespace = 'dash_mp_components'
_type = 'BibFilter'
@_explicitize_args
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):


def __init__(
self,
id: typing.Optional[typing.Union[str, dict]] = None,
className: typing.Optional[str] = None,
format: typing.Optional[Literal["bibjson", "crossref"]] = None,
bibEntries: typing.Optional[typing.Sequence] = None,
sortField: typing.Optional[Literal["year", "author", "title"]] = None,
ascending: typing.Optional[bool] = None,
resultClassName: typing.Optional[str] = None,
preventOpenAccessFetch: typing.Optional[bool] = None,
**kwargs
):
self._prop_names = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField']
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
args = {k: _locals[k] for k in _explicit_args}

super(BibFilter, self).__init__(**args)

setattr(BibFilter, "__init__", _explicitize_args(BibFilter.__init__))
36 changes: 29 additions & 7 deletions dash_mp_components/BibjsonCard.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# AUTO GENERATED FILE - DO NOT EDIT

import typing # noqa: F401
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
from dash.development.base_component import Component, _explicitize_args

ComponentType = typing.Union[
str,
int,
float,
Component,
None,
typing.Sequence[typing.Union[str, int, float, Component, None]],
]

NumberType = typing.Union[
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
]


class BibjsonCard(Component):
"""A BibjsonCard component.
Expand Down Expand Up @@ -41,18 +56,25 @@ class BibjsonCard(Component):
_base_nodes = ['children']
_namespace = 'dash_mp_components'
_type = 'BibjsonCard'
@_explicitize_args
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, bibjsonEntry=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs):


def __init__(
self,
id: typing.Optional[typing.Union[str, dict]] = None,
className: typing.Optional[str] = None,
bibjsonEntry: typing.Optional[typing.Any] = None,
preventOpenAccessFetch: typing.Optional[bool] = None,
**kwargs
):
self._prop_names = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch']
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
args = {k: _locals[k] for k in _explicit_args}

super(BibjsonCard, self).__init__(**args)

setattr(BibjsonCard, "__init__", _explicitize_args(BibjsonCard.__init__))
37 changes: 30 additions & 7 deletions dash_mp_components/BibtexButton.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# AUTO GENERATED FILE - DO NOT EDIT

import typing # noqa: F401
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
from dash.development.base_component import Component, _explicitize_args

ComponentType = typing.Union[
str,
int,
float,
Component,
None,
typing.Sequence[typing.Union[str, int, float, Component, None]],
]

NumberType = typing.Union[
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
]


class BibtexButton(Component):
"""A BibtexButton component.
Expand Down Expand Up @@ -33,18 +48,26 @@ class BibtexButton(Component):
_base_nodes = ['children']
_namespace = 'dash_mp_components'
_type = 'BibtexButton'
@_explicitize_args
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, doi=Component.UNDEFINED, url=Component.UNDEFINED, target=Component.UNDEFINED, **kwargs):


def __init__(
self,
id: typing.Optional[typing.Union[str, dict]] = None,
className: typing.Optional[str] = None,
doi: typing.Optional[str] = None,
url: typing.Optional[str] = None,
target: typing.Optional[str] = None,
**kwargs
):
self._prop_names = ['id', 'className', 'doi', 'target', 'url']
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'className', 'doi', 'target', 'url']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
args = {k: _locals[k] for k in _explicit_args}

super(BibtexButton, self).__init__(**args)

setattr(BibtexButton, "__init__", _explicitize_args(BibtexButton.__init__))
32 changes: 26 additions & 6 deletions dash_mp_components/CameraContextProvider.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# AUTO GENERATED FILE - DO NOT EDIT

import typing # noqa: F401
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
from dash.development.base_component import Component, _explicitize_args

ComponentType = typing.Union[
str,
int,
float,
Component,
None,
typing.Sequence[typing.Union[str, int, float, Component, None]],
]

NumberType = typing.Union[
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
]


class CameraContextProvider(Component):
"""A CameraContextProvider component.
Expand All @@ -18,8 +33,14 @@ class CameraContextProvider(Component):
_base_nodes = ['children']
_namespace = 'dash_mp_components'
_type = 'CameraContextProvider'
@_explicitize_args
def __init__(self, children=None, id=Component.UNDEFINED, **kwargs):


def __init__(
self,
children: typing.Optional[ComponentType] = None,
id: typing.Optional[typing.Union[str, dict]] = None,
**kwargs
):
self._prop_names = ['children', 'id']
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id']
Expand All @@ -28,8 +49,7 @@ def __init__(self, children=None, id=Component.UNDEFINED, **kwargs):
_locals = locals()
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')

super(CameraContextProvider, self).__init__(children=children, **args)

setattr(CameraContextProvider, "__init__", _explicitize_args(CameraContextProvider.__init__))
38 changes: 31 additions & 7 deletions dash_mp_components/CrossrefCard.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# AUTO GENERATED FILE - DO NOT EDIT

import typing # noqa: F401
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
from dash.development.base_component import Component, _explicitize_args

ComponentType = typing.Union[
str,
int,
float,
Component,
None,
typing.Sequence[typing.Union[str, int, float, Component, None]],
]

NumberType = typing.Union[
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
]


class CrossrefCard(Component):
"""A CrossrefCard component.
Expand Down Expand Up @@ -40,18 +55,27 @@ class CrossrefCard(Component):
_base_nodes = ['children']
_namespace = 'dash_mp_components'
_type = 'CrossrefCard'
@_explicitize_args
def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, crossrefEntry=Component.UNDEFINED, identifier=Component.UNDEFINED, errorMessage=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, **kwargs):


def __init__(
self,
id: typing.Optional[typing.Union[str, dict]] = None,
className: typing.Optional[str] = None,
crossrefEntry: typing.Optional[typing.Any] = None,
identifier: typing.Optional[str] = None,
errorMessage: typing.Optional[str] = None,
preventOpenAccessFetch: typing.Optional[bool] = None,
**kwargs
):
self._prop_names = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch']
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
args = {k: _locals[k] for k in _explicit_args}

super(CrossrefCard, self).__init__(**args)

setattr(CrossrefCard, "__init__", _explicitize_args(CrossrefCard.__init__))
Loading