dash-mp-components 0.5.2rc4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. dash_mp_components/BibCard.py +94 -0
  2. dash_mp_components/BibFilter.py +90 -0
  3. dash_mp_components/BibjsonCard.py +77 -0
  4. dash_mp_components/BibtexButton.py +70 -0
  5. dash_mp_components/CameraContextProvider.py +52 -0
  6. dash_mp_components/CrossrefCard.py +78 -0
  7. dash_mp_components/CrystalToolkitAnimationScene.py +190 -0
  8. dash_mp_components/CrystalToolkitScene.py +190 -0
  9. dash_mp_components/DataBlock.py +90 -0
  10. dash_mp_components/DataTable.py +147 -0
  11. dash_mp_components/Download.py +73 -0
  12. dash_mp_components/DownloadButton.py +76 -0
  13. dash_mp_components/DownloadDropdown.py +78 -0
  14. dash_mp_components/Drawer.py +57 -0
  15. dash_mp_components/DrawerContextProvider.py +50 -0
  16. dash_mp_components/DrawerTrigger.py +61 -0
  17. dash_mp_components/Dropdown.py +99 -0
  18. dash_mp_components/DualRangeSlider.py +80 -0
  19. dash_mp_components/Enlargeable.py +57 -0
  20. dash_mp_components/FilterField.py +71 -0
  21. dash_mp_components/Formula.py +64 -0
  22. dash_mp_components/GlobalSearchBar.py +80 -0
  23. dash_mp_components/GraphComponent.py +60 -0
  24. dash_mp_components/JsonView.py +91 -0
  25. dash_mp_components/Link.py +113 -0
  26. dash_mp_components/Markdown.py +98 -0
  27. dash_mp_components/MatSidebar.py +60 -0
  28. dash_mp_components/MaterialsInput.py +124 -0
  29. dash_mp_components/Modal.py +57 -0
  30. dash_mp_components/ModalContextProvider.py +70 -0
  31. dash_mp_components/ModalTrigger.py +57 -0
  32. dash_mp_components/Navbar.py +98 -0
  33. dash_mp_components/NavbarDropdown.py +87 -0
  34. dash_mp_components/NotificationDropdown.py +71 -0
  35. dash_mp_components/OpenAccessButton.py +90 -0
  36. dash_mp_components/PeriodicContext.py +66 -0
  37. dash_mp_components/PeriodicContextTable.py +78 -0
  38. dash_mp_components/PeriodicElement.py +53 -0
  39. dash_mp_components/PeriodicFilter.py +47 -0
  40. dash_mp_components/PeriodicTableInput.py +61 -0
  41. dash_mp_components/PhononAnimationScene.py +190 -0
  42. dash_mp_components/PublicationButton.py +90 -0
  43. dash_mp_components/RangeSlider.py +77 -0
  44. dash_mp_components/Scrollspy.py +84 -0
  45. dash_mp_components/SearchUIContainer.py +129 -0
  46. dash_mp_components/SearchUIDataHeader.py +50 -0
  47. dash_mp_components/SearchUIDataView.py +48 -0
  48. dash_mp_components/SearchUIFilters.py +47 -0
  49. dash_mp_components/SearchUIGrid.py +52 -0
  50. dash_mp_components/SearchUISearchBar.py +71 -0
  51. dash_mp_components/Select.py +88 -0
  52. dash_mp_components/Switch.py +62 -0
  53. dash_mp_components/SynthesisRecipeCard.py +59 -0
  54. dash_mp_components/Tabs.py +81 -0
  55. dash_mp_components/Tooltip.py +105 -0
  56. dash_mp_components/__init__.py +58 -0
  57. dash_mp_components/_imports_.py +113 -0
  58. dash_mp_components/dash_mp_components.min.js +3 -0
  59. dash_mp_components/dash_mp_components.min.js.map +1 -0
  60. dash_mp_components/metadata.json +1 -0
  61. dash_mp_components/package-info.json +85 -0
  62. dash_mp_components-0.5.2rc4.dist-info/METADATA +13 -0
  63. dash_mp_components-0.5.2rc4.dist-info/RECORD +66 -0
  64. dash_mp_components-0.5.2rc4.dist-info/WHEEL +5 -0
  65. dash_mp_components-0.5.2rc4.dist-info/licenses/LICENSE +0 -0
  66. dash_mp_components-0.5.2rc4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,94 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+
7
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
8
+ ComponentType = typing.Union[
9
+ ComponentSingleType,
10
+ typing.Sequence[ComponentSingleType],
11
+ ]
12
+
13
+ NumberType = typing.Union[
14
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
15
+ ]
16
+
17
+
18
+ class BibCard(Component):
19
+ """A BibCard component.
20
+ Render bibliographic information in a formatted card view
21
+
22
+ Keyword arguments:
23
+
24
+ - id (string; optional):
25
+ The ID used to identify this component in Dash callbacks.
26
+
27
+ - author (string; optional):
28
+ Authors of the reference This string will render as is, so any
29
+ formatting must be done beforehand.
30
+
31
+ - className (string; optional):
32
+ Class name(s) to append to the component's default class
33
+ (mpc-bib-card).
34
+
35
+ - doi (string; optional):
36
+ The DOI (Digital Object Identifier) of the reference This
37
+ identifier is used to generate links to the reference's online
38
+ publication, open access PDF, and bibtex.
39
+
40
+ - journal (string; optional):
41
+ Name of the journal or publisher of the reference.
42
+
43
+ - openAccessUrl (string; optional):
44
+ Directly supply the URL to an accessible PDF of the reference If
45
+ supplied, the component will not try to fetch an open access URL
46
+ @default undefined.
47
+
48
+ - preventOpenAccessFetch (boolean; optional):
49
+ Set to True to prevent dynamically fetching a link to a free PDF
50
+ of each reference (using the \"doi\" field for individual bib
51
+ entry). NOTE: the open access URL can also be included in a bib
52
+ entry in the \"openAccessUrl\" property. If set, the URL will not
53
+ be fetched. @default False.
54
+
55
+ - shortName (string; optional):
56
+ Shortened title of the article.
57
+
58
+ - title (string; optional):
59
+ Title of the reference Will render as a link if doi is supplied.
60
+
61
+ - year (string | number; optional):
62
+ Year of the reference as either a string or number."""
63
+ _children_props: typing.List[str] = []
64
+ _base_nodes = ['children']
65
+ _namespace = 'dash_mp_components'
66
+ _type = 'BibCard'
67
+
68
+
69
+ def __init__(
70
+ self,
71
+ id: typing.Optional[typing.Union[str, dict]] = None,
72
+ className: typing.Optional[str] = None,
73
+ title: typing.Optional[str] = None,
74
+ author: typing.Optional[str] = None,
75
+ year: typing.Optional[typing.Union[str, NumberType]] = None,
76
+ journal: typing.Optional[str] = None,
77
+ doi: typing.Optional[str] = None,
78
+ shortName: typing.Optional[str] = None,
79
+ preventOpenAccessFetch: typing.Optional[bool] = None,
80
+ openAccessUrl: typing.Optional[str] = None,
81
+ **kwargs
82
+ ):
83
+ self._prop_names = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
84
+ self._valid_wildcard_attributes = []
85
+ self.available_properties = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
86
+ self.available_wildcard_properties = []
87
+ _explicit_args = kwargs.pop('_explicit_args')
88
+ _locals = locals()
89
+ _locals.update(kwargs) # For wildcard attrs and excess named props
90
+ args = {k: _locals[k] for k in _explicit_args}
91
+
92
+ super(BibCard, self).__init__(**args)
93
+
94
+ setattr(BibCard, "__init__", _explicitize_args(BibCard.__init__))
@@ -0,0 +1,90 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+
7
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
8
+ ComponentType = typing.Union[
9
+ ComponentSingleType,
10
+ typing.Sequence[ComponentSingleType],
11
+ ]
12
+
13
+ NumberType = typing.Union[
14
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
15
+ ]
16
+
17
+
18
+ class BibFilter(Component):
19
+ """A BibFilter component.
20
+ Component for rendering and filtering a list of citations in bibjson or crossref format
21
+ Expects bibjson in the format output by the bibtexparser library (https://bibtexparser.readthedocs.io/en/v1.1.0/tutorial.html#)
22
+ Expects crossref in the format returned by the Crossref API
23
+
24
+ Keyword arguments:
25
+
26
+ - id (string; optional):
27
+ The ID used to identify this component in Dash callbacks.
28
+
29
+ - ascending (boolean; optional):
30
+ Set to True to have the initial sorting direction be ascending
31
+ @default False.
32
+
33
+ - bibEntries (list; optional):
34
+ List of bib objects in bibjson or crossref format Only the
35
+ following bib properties are used by this component: - title -
36
+ author (as a list or string) - year - doi - journal If any of
37
+ those properties are missing, that property will be omitted from
38
+ the bibjson result card. Any extra properties are simply ignored.
39
+
40
+ - className (string; optional):
41
+ Class name(s) to append to the component's default class
42
+ (mpc-bib-filter).
43
+
44
+ - format (a value equal to: 'bibjson', 'crossref'; optional):
45
+ Format of the bibliographoc objects supplied in bibEntries
46
+ @default 'bibjson'.
47
+
48
+ - preventOpenAccessFetch (boolean; optional):
49
+ Set to True to prevent dynamically fetching a link to a free PDF
50
+ of each reference (using the \"doi\" field for individual bib
51
+ entry). NOTE: the open access URL can also be included in a bib
52
+ entry in the \"openAccessUrl\" property. If set, the URL will not
53
+ be fetched. @default False.
54
+
55
+ - resultClassName (string; optional):
56
+ Class name(s) to append to individual result cards' default class
57
+ (mpc-bib-card).
58
+
59
+ - sortField (a value equal to: 'year', 'author', 'title'; optional):
60
+ Name of property to initially sort entries by @default 'year'."""
61
+ _children_props: typing.List[str] = []
62
+ _base_nodes = ['children']
63
+ _namespace = 'dash_mp_components'
64
+ _type = 'BibFilter'
65
+
66
+
67
+ def __init__(
68
+ self,
69
+ id: typing.Optional[typing.Union[str, dict]] = None,
70
+ className: typing.Optional[str] = None,
71
+ format: typing.Optional[Literal["bibjson", "crossref"]] = None,
72
+ bibEntries: typing.Optional[typing.Sequence] = None,
73
+ sortField: typing.Optional[Literal["year", "author", "title"]] = None,
74
+ ascending: typing.Optional[bool] = None,
75
+ resultClassName: typing.Optional[str] = None,
76
+ preventOpenAccessFetch: typing.Optional[bool] = None,
77
+ **kwargs
78
+ ):
79
+ self._prop_names = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField']
80
+ self._valid_wildcard_attributes = []
81
+ self.available_properties = ['id', 'ascending', 'bibEntries', 'className', 'format', 'preventOpenAccessFetch', 'resultClassName', 'sortField']
82
+ self.available_wildcard_properties = []
83
+ _explicit_args = kwargs.pop('_explicit_args')
84
+ _locals = locals()
85
+ _locals.update(kwargs) # For wildcard attrs and excess named props
86
+ args = {k: _locals[k] for k in _explicit_args}
87
+
88
+ super(BibFilter, self).__init__(**args)
89
+
90
+ setattr(BibFilter, "__init__", _explicitize_args(BibFilter.__init__))
@@ -0,0 +1,77 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+
7
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
8
+ ComponentType = typing.Union[
9
+ ComponentSingleType,
10
+ typing.Sequence[ComponentSingleType],
11
+ ]
12
+
13
+ NumberType = typing.Union[
14
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
15
+ ]
16
+
17
+
18
+ class BibjsonCard(Component):
19
+ """A BibjsonCard component.
20
+ Parses a bibjson entry and renders a BibCard
21
+ Expects bibjsonEntry in the format used by the bibtexparser library (https://bibtexparser.readthedocs.io/en/v1.1.0/tutorial.html#)
22
+
23
+ Keyword arguments:
24
+
25
+ - id (string; optional):
26
+ The ID used to identify this component in Dash callbacks.
27
+
28
+ - bibjsonEntry (boolean | number | string | dict | list; optional):
29
+ A single bib object in bibjson format Only the following bib
30
+ properties are used by this component: title, author (as a list or
31
+ string), year, doi, journal. If any of those properties are
32
+ missing, that property will be omitted from the bibjson result
33
+ card. Any extra properties are simply ignored. e.g. {
34
+ \"journal\": \"Physical Review X\", \"year\": \"2015\",
35
+ \"issn\": \"21603308\", \"isbn\": \"2160-3308\",
36
+ \"doi\": \"10.1103/PhysRevX.5.011006\", \"author\":
37
+ [\"Agapito, Luis A.\", \"Curtarolo, Stefano\", \"Nardelli, Marco
38
+ Buongiorno\"], \"title\": \"Reformulation of DFT + U as a
39
+ Pseudohybrid Hubbard Density Functional for Accelerated Materials
40
+ Discovery\", \"ENTRYTYPE\": \"article\", \"ID\":
41
+ \"agapito2015\" }.
42
+
43
+ - className (string; optional):
44
+ Class name(s) to append to the component's default class.
45
+
46
+ - preventOpenAccessFetch (boolean; optional):
47
+ Set to True to prevent dynamically fetching a link to a free PDF
48
+ of each reference (using the \"doi\" field for individual bib
49
+ entry). NOTE: the open access URL can also be included in a bib
50
+ entry in the \"openAccessUrl\" property. If set, the URL will not
51
+ be fetched. @default False."""
52
+ _children_props: typing.List[str] = []
53
+ _base_nodes = ['children']
54
+ _namespace = 'dash_mp_components'
55
+ _type = 'BibjsonCard'
56
+
57
+
58
+ def __init__(
59
+ self,
60
+ id: typing.Optional[typing.Union[str, dict]] = None,
61
+ className: typing.Optional[str] = None,
62
+ bibjsonEntry: typing.Optional[typing.Any] = None,
63
+ preventOpenAccessFetch: typing.Optional[bool] = None,
64
+ **kwargs
65
+ ):
66
+ self._prop_names = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch']
67
+ self._valid_wildcard_attributes = []
68
+ self.available_properties = ['id', 'bibjsonEntry', 'className', 'preventOpenAccessFetch']
69
+ self.available_wildcard_properties = []
70
+ _explicit_args = kwargs.pop('_explicit_args')
71
+ _locals = locals()
72
+ _locals.update(kwargs) # For wildcard attrs and excess named props
73
+ args = {k: _locals[k] for k in _explicit_args}
74
+
75
+ super(BibjsonCard, self).__init__(**args)
76
+
77
+ setattr(BibjsonCard, "__init__", _explicitize_args(BibjsonCard.__init__))
@@ -0,0 +1,70 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+
7
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
8
+ ComponentType = typing.Union[
9
+ ComponentSingleType,
10
+ typing.Sequence[ComponentSingleType],
11
+ ]
12
+
13
+ NumberType = typing.Union[
14
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
15
+ ]
16
+
17
+
18
+ class BibtexButton(Component):
19
+ """A BibtexButton component.
20
+ Standardized button for linking to BibTeX.
21
+ If no url prop is supplied, a link will be generated
22
+ using the doi prop and doi2bib.org.
23
+
24
+ Keyword arguments:
25
+
26
+ - id (string; optional):
27
+ The ID used to identify this component in Dash callbacks.
28
+
29
+ - className (string; optional):
30
+ Class name(s) to append to the component's default class
31
+ (mpc-bibtex-button) @default 'button is-small'.
32
+
33
+ - doi (string; optional):
34
+ The DOI (Digital Object Identifier) of the reference to pass to
35
+ doi2bib.org.
36
+
37
+ - target (string; optional):
38
+ Value to add to the anchor tag's target attribute @default
39
+ '_blank'.
40
+
41
+ - url (string; optional):
42
+ Directly supply the URL to a reference's bibtex. If supplied, the
43
+ component will not generate its own link using the doi prop."""
44
+ _children_props: typing.List[str] = []
45
+ _base_nodes = ['children']
46
+ _namespace = 'dash_mp_components'
47
+ _type = 'BibtexButton'
48
+
49
+
50
+ def __init__(
51
+ self,
52
+ id: typing.Optional[typing.Union[str, dict]] = None,
53
+ className: typing.Optional[str] = None,
54
+ doi: typing.Optional[str] = None,
55
+ url: typing.Optional[str] = None,
56
+ target: typing.Optional[str] = None,
57
+ **kwargs
58
+ ):
59
+ self._prop_names = ['id', 'className', 'doi', 'target', 'url']
60
+ self._valid_wildcard_attributes = []
61
+ self.available_properties = ['id', 'className', 'doi', 'target', 'url']
62
+ self.available_wildcard_properties = []
63
+ _explicit_args = kwargs.pop('_explicit_args')
64
+ _locals = locals()
65
+ _locals.update(kwargs) # For wildcard attrs and excess named props
66
+ args = {k: _locals[k] for k in _explicit_args}
67
+
68
+ super(BibtexButton, self).__init__(**args)
69
+
70
+ setattr(BibtexButton, "__init__", _explicitize_args(BibtexButton.__init__))
@@ -0,0 +1,52 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+
7
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
8
+ ComponentType = typing.Union[
9
+ ComponentSingleType,
10
+ typing.Sequence[ComponentSingleType],
11
+ ]
12
+
13
+ NumberType = typing.Union[
14
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
15
+ ]
16
+
17
+
18
+ class CameraContextProvider(Component):
19
+ """A CameraContextProvider component.
20
+ Use this component to synchronize the camera of multiple
21
+ SimpleSceneComponent
22
+
23
+ Keyword arguments:
24
+
25
+ - children (optional)
26
+
27
+ - id (optional):
28
+ The ID used to identify this component in Dash callbacks."""
29
+ _children_props: typing.List[str] = []
30
+ _base_nodes = ['children']
31
+ _namespace = 'dash_mp_components'
32
+ _type = 'CameraContextProvider'
33
+
34
+
35
+ def __init__(
36
+ self,
37
+ children: typing.Optional[ComponentType] = None,
38
+ id: typing.Optional[typing.Union[str, dict]] = None,
39
+ **kwargs
40
+ ):
41
+ self._prop_names = ['children', 'id']
42
+ self._valid_wildcard_attributes = []
43
+ self.available_properties = ['children', 'id']
44
+ self.available_wildcard_properties = []
45
+ _explicit_args = kwargs.pop('_explicit_args')
46
+ _locals = locals()
47
+ _locals.update(kwargs) # For wildcard attrs and excess named props
48
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
49
+
50
+ super(CameraContextProvider, self).__init__(children=children, **args)
51
+
52
+ setattr(CameraContextProvider, "__init__", _explicitize_args(CameraContextProvider.__init__))
@@ -0,0 +1,78 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+
7
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
8
+ ComponentType = typing.Union[
9
+ ComponentSingleType,
10
+ typing.Sequence[ComponentSingleType],
11
+ ]
12
+
13
+ NumberType = typing.Union[
14
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
15
+ ]
16
+
17
+
18
+ class CrossrefCard(Component):
19
+ """A CrossrefCard component.
20
+ Parses a crossref entry or fetches a reference from the crossref API and renders a BibCard.
21
+
22
+ Keyword arguments:
23
+
24
+ - id (string; optional):
25
+ The ID used to identify this component in Dash callbacks.
26
+
27
+ - className (string; optional):
28
+ Class name(s) to append to the component's default class.
29
+
30
+ - crossrefEntry (boolean | number | string | dict | list; optional):
31
+ A single bib object in crossref format. If a crossEntry is
32
+ supplied, a request will not be made to the crossref API. The
33
+ following bib values are parsed from a Crossref API response:
34
+ title, authors, year, doi, journal.
35
+
36
+ - errorMessage (string; optional):
37
+ Error message to show inside the card if the crossref request
38
+ fails @default 'Could not find reference'.
39
+
40
+ - identifier (string; optional):
41
+ Either a DOI or bibtex string to use to search against the
42
+ Crossref /works endpoint. An identifier must be supplied if you
43
+ are not supplying the crossrefEntry directly.
44
+
45
+ - preventOpenAccessFetch (boolean; optional):
46
+ Set to True to prevent dynamically fetching a link to a free PDF
47
+ of each reference (using the \"doi\" field for individual bib
48
+ entry). NOTE: the open access URL can also be included in a bib
49
+ entry in the \"openAccessUrl\" property. If set, the URL will not
50
+ be fetched. @default False."""
51
+ _children_props: typing.List[str] = []
52
+ _base_nodes = ['children']
53
+ _namespace = 'dash_mp_components'
54
+ _type = 'CrossrefCard'
55
+
56
+
57
+ def __init__(
58
+ self,
59
+ id: typing.Optional[typing.Union[str, dict]] = None,
60
+ className: typing.Optional[str] = None,
61
+ crossrefEntry: typing.Optional[typing.Any] = None,
62
+ identifier: typing.Optional[str] = None,
63
+ errorMessage: typing.Optional[str] = None,
64
+ preventOpenAccessFetch: typing.Optional[bool] = None,
65
+ **kwargs
66
+ ):
67
+ self._prop_names = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch']
68
+ self._valid_wildcard_attributes = []
69
+ self.available_properties = ['id', 'className', 'crossrefEntry', 'errorMessage', 'identifier', 'preventOpenAccessFetch']
70
+ self.available_wildcard_properties = []
71
+ _explicit_args = kwargs.pop('_explicit_args')
72
+ _locals = locals()
73
+ _locals.update(kwargs) # For wildcard attrs and excess named props
74
+ args = {k: _locals[k] for k in _explicit_args}
75
+
76
+ super(CrossrefCard, self).__init__(**args)
77
+
78
+ setattr(CrossrefCard, "__init__", _explicitize_args(CrossrefCard.__init__))
@@ -0,0 +1,190 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ import typing # noqa: F401
4
+ from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
5
+ from dash.development.base_component import Component, _explicitize_args
6
+
7
+ ComponentSingleType = typing.Union[str, int, float, Component, None]
8
+ ComponentType = typing.Union[
9
+ ComponentSingleType,
10
+ typing.Sequence[ComponentSingleType],
11
+ ]
12
+
13
+ NumberType = typing.Union[
14
+ typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
15
+ ]
16
+
17
+
18
+ class CrystalToolkitAnimationScene(Component):
19
+ """A CrystalToolkitAnimationScene component.
20
+
21
+
22
+ Keyword arguments:
23
+
24
+ - children (optional):
25
+ First child will be rendered as the settings panel. Second child
26
+ will be rendered as the bottom panel (legend).
27
+
28
+ - id (optional):
29
+ The ID used to identify this component in Dash callbacks.
30
+
31
+ - animation (optional):
32
+ Animation type.
33
+
34
+ - axisView (optional):
35
+ Where is the axis displayed ( 'NW' / 'NE' / 'SE' / 'SW' / 'HIDDEN'
36
+ ).
37
+
38
+ - className (optional):
39
+ Class name that will wrap around the whole scene component. When
40
+ enlarged, this class name is applied to the modal-content element.
41
+
42
+ - currentCameraState (optional):
43
+ THIS PROP IS SET AUTOMATICALLY Object that maintains the current
44
+ state of the camera. e.g. { position: {x: 0, y: 0, z: 0},
45
+ quarternion: {x: 0, y: 0, z: 0, w: 0}, zoom: 1,
46
+ setByComponentId: \"1\", following: True }.
47
+
48
+ - customCameraState (optional):
49
+ Object for setting the scene to a custom camera state. When
50
+ modified, the camera will update to new custom state. e.g. {
51
+ position: {x: 0, y: 0, z: 0}, quarternion: {x: 0, y: 0, z: 0, w:
52
+ 0}, (optional) zoom: 1 (optional) }.
53
+
54
+ - data (optional):
55
+ Simple3DScene JSON, the easiest way to generate this is to use the
56
+ Scene class in crystal_toolkit.core.scene and its to_json method.
57
+
58
+ - debug (optional):
59
+ Display a debug view.
60
+
61
+ - fileOptions (optional):
62
+ List of options to show in file download dropdown.
63
+
64
+ - fileTimestamp (optional):
65
+ THIS PROP IS SET AUTOMATICALLY Date string that represents the
66
+ time fileType was set. Use this prop in dash callbacks to trigger
67
+ file downloads.
68
+
69
+ - fileType (optional):
70
+ THIS PROP IS SET AUTOMATICALLY The last file type clicked in the
71
+ file download menu.
72
+
73
+ - imageData (optional):
74
+ THIS PROP IS SET AUTOMATICALLY Data string for the image generated
75
+ on image button click.
76
+
77
+ - imageDataTimestamp (optional):
78
+ THIS PROP IS SET AUTOMATICALLY Date string that represents the
79
+ time imageData was set. Use this prop in dash callbacks to trigger
80
+ downloads of imageData.
81
+
82
+ - imageRequest (optional):
83
+ Set to trigger a screenshot or scene download. Must be an object
84
+ with the following structure: { \"filetype\": \"png\" // the
85
+ image format (\"png\", \"dae\") } Passing this prop as an object
86
+ ensures that new requests are triggered any time the prop is set.
87
+
88
+ - imageType (optional):
89
+ File type to be downloaded as an image. Either png or dae.
90
+
91
+ - inletPadding (optional):
92
+ Padding of the axis view.
93
+
94
+ - inletSize (optional):
95
+ Size of the axis view.
96
+
97
+ - sceneSize (optional):
98
+ Width / Height of the displayed component.
99
+
100
+ - selectedObject (optional):
101
+ This points to the last clicked objects. Use it in your dash
102
+ callback to know which objects are currently selected in the
103
+ scene.
104
+
105
+ - setProps (optional):
106
+ Dash-assigned callback that should be called whenever any of the
107
+ properties change.
108
+
109
+ - settings (optional):
110
+ Options used for generating scene. Supported options and their
111
+ defaults are given as follows: { antialias: True, // set to
112
+ False to improve performance renderer: 'webgl', // 'svg' also
113
+ an option, used for unit testing transparentBackground: False,
114
+ // transparent background background: '#ffffff', // background
115
+ color if not transparent, sphereSegments: 32, // decrease to
116
+ improve performance cylinderSegments: 16, // decrease to
117
+ improve performance staticScene: True, // disable if animation
118
+ required defaultZoom: 1, // 1 will zoom to fit object exactly,
119
+ <1 will add padding between object and box bounds zoomToFit2D:
120
+ False // if True, will zoom to fit object only along the X and Y
121
+ axes (not Z) extractAxis: False // will remove the axis from
122
+ the main scene isMultiSelectionEnabled: False // allow to use
123
+ shift to select, secondaryObjectView: True // show the selected
124
+ object in a detail view animation: 'play' | 'slider' | 'none'
125
+ // choose which style of animation is use } There are several
126
+ additional options used for debugging and testing, please consult
127
+ the source code directly for these.
128
+
129
+ - showControls (optional)
130
+
131
+ - showExpandButton (optional)
132
+
133
+ - showExportButton (optional)
134
+
135
+ - showImageButton (optional)
136
+
137
+ - showPositionButton (optional)
138
+
139
+ - toggleVisibility (optional):
140
+ Hide/show nodes in scene by its name (key), value is 1 to show the
141
+ node and 0 to hide it."""
142
+ _children_props: typing.List[str] = []
143
+ _base_nodes = ['children']
144
+ _namespace = 'dash_mp_components'
145
+ _type = 'CrystalToolkitAnimationScene'
146
+
147
+
148
+ def __init__(
149
+ self,
150
+ children: typing.Optional[ComponentType] = None,
151
+ id: typing.Optional[typing.Union[str, dict]] = None,
152
+ className: typing.Optional[typing.Any] = None,
153
+ data: typing.Optional[typing.Any] = None,
154
+ settings: typing.Optional[typing.Any] = None,
155
+ toggleVisibility: typing.Optional[typing.Any] = None,
156
+ imageRequest: typing.Optional[typing.Any] = None,
157
+ imageType: typing.Optional[typing.Any] = None,
158
+ imageData: typing.Optional[typing.Any] = None,
159
+ imageDataTimestamp: typing.Optional[typing.Any] = None,
160
+ fileOptions: typing.Optional[typing.Any] = None,
161
+ fileType: typing.Optional[typing.Any] = None,
162
+ fileTimestamp: typing.Optional[typing.Any] = None,
163
+ selectedObject: typing.Optional[typing.Any] = None,
164
+ sceneSize: typing.Optional[typing.Any] = None,
165
+ axisView: typing.Optional[typing.Any] = None,
166
+ inletSize: typing.Optional[typing.Any] = None,
167
+ inletPadding: typing.Optional[typing.Any] = None,
168
+ debug: typing.Optional[typing.Any] = None,
169
+ animation: typing.Optional[typing.Any] = None,
170
+ currentCameraState: typing.Optional[typing.Any] = None,
171
+ customCameraState: typing.Optional[typing.Any] = None,
172
+ showControls: typing.Optional[typing.Any] = None,
173
+ showExpandButton: typing.Optional[typing.Any] = None,
174
+ showImageButton: typing.Optional[typing.Any] = None,
175
+ showExportButton: typing.Optional[typing.Any] = None,
176
+ showPositionButton: typing.Optional[typing.Any] = None,
177
+ **kwargs
178
+ ):
179
+ self._prop_names = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageRequest', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility']
180
+ self._valid_wildcard_attributes = []
181
+ self.available_properties = ['children', 'id', 'animation', 'axisView', 'className', 'currentCameraState', 'customCameraState', 'data', 'debug', 'fileOptions', 'fileTimestamp', 'fileType', 'imageData', 'imageDataTimestamp', 'imageRequest', 'imageType', 'inletPadding', 'inletSize', 'sceneSize', 'selectedObject', 'setProps', 'settings', 'showControls', 'showExpandButton', 'showExportButton', 'showImageButton', 'showPositionButton', 'toggleVisibility']
182
+ self.available_wildcard_properties = []
183
+ _explicit_args = kwargs.pop('_explicit_args')
184
+ _locals = locals()
185
+ _locals.update(kwargs) # For wildcard attrs and excess named props
186
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
187
+
188
+ super(CrystalToolkitAnimationScene, self).__init__(children=children, **args)
189
+
190
+ setattr(CrystalToolkitAnimationScene, "__init__", _explicitize_args(CrystalToolkitAnimationScene.__init__))