@hitachivantara/app-shell-ui 0.38.0
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.
- package/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/dts/index.d.ts +9 -0
- package/dist/esm/components/AppShell/AppShell.js +13 -0
- package/dist/esm/components/AppShell/AppShell.js.map +1 -0
- package/dist/esm/components/AppShellProvider/AppShellProvider.js +62 -0
- package/dist/esm/components/AppShellProvider/AppShellProvider.js.map +1 -0
- package/dist/esm/components/AppShellRoutes/AppShellRoutes.js +31 -0
- package/dist/esm/components/AppShellRoutes/AppShellRoutes.js.map +1 -0
- package/dist/esm/components/AppShellViewProvider/AppShellViewProvider.js +16 -0
- package/dist/esm/components/AppShellViewProvider/AppShellViewProvider.js.map +1 -0
- package/dist/esm/components/CustomHooksInitializer/CustomHooksInitializer.js +7 -0
- package/dist/esm/components/CustomHooksInitializer/CustomHooksInitializer.js.map +1 -0
- package/dist/esm/components/GlobalStyles/GlobalStyles.js +19 -0
- package/dist/esm/components/GlobalStyles/GlobalStyles.js.map +1 -0
- package/dist/esm/components/GlobalStyles/index.js +5 -0
- package/dist/esm/components/GlobalStyles/index.js.map +1 -0
- package/dist/esm/components/IconUiKit/IconUiKit.js +10 -0
- package/dist/esm/components/IconUiKit/IconUiKit.js.map +1 -0
- package/dist/esm/components/IconUiKit/index.js +7 -0
- package/dist/esm/components/IconUiKit/index.js.map +1 -0
- package/dist/esm/components/hoc/withClickAwayListener.js +15 -0
- package/dist/esm/components/hoc/withClickAwayListener.js.map +1 -0
- package/dist/esm/components/hoc/withGlobalProvider.js +34 -0
- package/dist/esm/components/hoc/withGlobalProvider.js.map +1 -0
- package/dist/esm/components/layout/Header/BrandLogo/BrandLogo.js +20 -0
- package/dist/esm/components/layout/Header/BrandLogo/BrandLogo.js.map +1 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Hitachi/Hitachi.js +10 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Hitachi/Hitachi.js.map +1 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Hitachi/styles.js +28 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Hitachi/styles.js.map +1 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Lumada/Lumada.js +15 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Lumada/Lumada.js.map +1 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Lumada/styles.js +34 -0
- package/dist/esm/components/layout/Header/BrandLogo/Logos/Lumada/styles.js.map +1 -0
- package/dist/esm/components/layout/Header/Header.js +38 -0
- package/dist/esm/components/layout/Header/Header.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/DynamicAction.js +22 -0
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/DynamicAction.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/index.js +5 -0
- package/dist/esm/components/layout/Header/HeaderActions/DynamicAction/index.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/HeaderActions.js +31 -0
- package/dist/esm/components/layout/Header/HeaderActions/HeaderActions.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/AppSwitcherToggle.js +52 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/AppSwitcherToggle.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/index.js +5 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/index.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/styles.js +12 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/AppSwitcherToggle/styles.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/ColorModeSwitcher.js +24 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/ColorModeSwitcher.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/index.js +5 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/ColorModeSwitcher/index.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/HelpButton.js +24 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/HelpButton.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/index.js +5 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/HelpButton/index.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/InternalAction/InternalAction.js +34 -0
- package/dist/esm/components/layout/Header/HeaderActions/InternalActions/InternalAction/InternalAction.js.map +1 -0
- package/dist/esm/components/layout/Header/HeaderActions/index.js +5 -0
- package/dist/esm/components/layout/Header/HeaderActions/index.js.map +1 -0
- package/dist/esm/components/layout/Header/styles.js +22 -0
- package/dist/esm/components/layout/Header/styles.js.map +1 -0
- package/dist/esm/components/layout/Loading/Loading.js +9 -0
- package/dist/esm/components/layout/Loading/Loading.js.map +1 -0
- package/dist/esm/components/layout/Loading/styles.js +24 -0
- package/dist/esm/components/layout/Loading/styles.js.map +1 -0
- package/dist/esm/components/layout/Main/Main.js +30 -0
- package/dist/esm/components/layout/Main/Main.js.map +1 -0
- package/dist/esm/components/layout/Main/styles.js +19 -0
- package/dist/esm/components/layout/Main/styles.js.map +1 -0
- package/dist/esm/components/layout/VerticalNavigation/VerticalNavigation.js +56 -0
- package/dist/esm/components/layout/VerticalNavigation/VerticalNavigation.js.map +1 -0
- package/dist/esm/components/layout/VerticalNavigation/styles.js +21 -0
- package/dist/esm/components/layout/VerticalNavigation/styles.js.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/hooks/useClearLocationState.js +19 -0
- package/dist/esm/lib/hooks/useClearLocationState.js.map +1 -0
- package/dist/esm/lib/hooks/useCustomEventListener.js +18 -0
- package/dist/esm/lib/hooks/useCustomEventListener.js.map +1 -0
- package/dist/esm/lib/hooks/useLocalStorage.js +24 -0
- package/dist/esm/lib/hooks/useLocalStorage.js.map +1 -0
- package/dist/esm/lib/hooks/useNavigationMenuItems.js +33 -0
- package/dist/esm/lib/hooks/useNavigationMenuItems.js.map +1 -0
- package/dist/esm/lib/hooks/useNotificationsEventListener.js +32 -0
- package/dist/esm/lib/hooks/useNotificationsEventListener.js.map +1 -0
- package/dist/esm/lib/hooks/useThemeEventListener.js +27 -0
- package/dist/esm/lib/hooks/useThemeEventListener.js.map +1 -0
- package/dist/esm/lib/i18n/index.js +29 -0
- package/dist/esm/lib/i18n/index.js.map +1 -0
- package/dist/esm/lib/i18n/localization/en.json.js +55 -0
- package/dist/esm/lib/i18n/localization/en.json.js.map +1 -0
- package/dist/esm/lib/i18n/localization/pt.json.js +55 -0
- package/dist/esm/lib/i18n/localization/pt.json.js.map +1 -0
- package/dist/esm/lib/utils/CombinedProviders.js +18 -0
- package/dist/esm/lib/utils/CombinedProviders.js.map +1 -0
- package/dist/esm/lib/utils/basePathUtils.js +5 -0
- package/dist/esm/lib/utils/basePathUtils.js.map +1 -0
- package/dist/esm/lib/utils/documentUtil.js +9 -0
- package/dist/esm/lib/utils/documentUtil.js.map +1 -0
- package/dist/esm/lib/utils/navigationUtil.js +41 -0
- package/dist/esm/lib/utils/navigationUtil.js.map +1 -0
- package/dist/esm/lib/utils/textUtil.js +5 -0
- package/dist/esm/lib/utils/textUtil.js.map +1 -0
- package/dist/esm/pages/ErrorPage/ErrorPage.js +30 -0
- package/dist/esm/pages/ErrorPage/ErrorPage.js.map +1 -0
- package/dist/esm/pages/ErrorPage/Footer/Footer.js +38 -0
- package/dist/esm/pages/ErrorPage/Footer/Footer.js.map +1 -0
- package/dist/esm/pages/ErrorPage/Footer/styles.js +23 -0
- package/dist/esm/pages/ErrorPage/Footer/styles.js.map +1 -0
- package/dist/esm/pages/ErrorPage/styles.js +40 -0
- package/dist/esm/pages/ErrorPage/styles.js.map +1 -0
- package/dist/esm/pages/GenericError/500.svg.js +5 -0
- package/dist/esm/pages/GenericError/500.svg.js.map +1 -0
- package/dist/esm/pages/GenericError/GenericError.js +17 -0
- package/dist/esm/pages/GenericError/GenericError.js.map +1 -0
- package/dist/esm/pages/LoadingPage/LoadingPage.js +15 -0
- package/dist/esm/pages/LoadingPage/LoadingPage.js.map +1 -0
- package/dist/esm/pages/LoadingPage/index.js +5 -0
- package/dist/esm/pages/LoadingPage/index.js.map +1 -0
- package/dist/esm/pages/LoadingPage/styles.js +16 -0
- package/dist/esm/pages/LoadingPage/styles.js.map +1 -0
- package/dist/esm/pages/NotFound/404.svg.js +5 -0
- package/dist/esm/pages/NotFound/404.svg.js.map +1 -0
- package/dist/esm/pages/NotFound/NotFound.js +14 -0
- package/dist/esm/pages/NotFound/NotFound.js.map +1 -0
- package/dist/esm/pages/NotFound/index.js +5 -0
- package/dist/esm/pages/NotFound/index.js.map +1 -0
- package/dist/esm/providers/BannerProvider.js +72 -0
- package/dist/esm/providers/BannerProvider.js.map +1 -0
- package/dist/esm/providers/LayoutProvider.js +25 -0
- package/dist/esm/providers/LayoutProvider.js.map +1 -0
- package/dist/esm/providers/NavigationProvider.js +56 -0
- package/dist/esm/providers/NavigationProvider.js.map +1 -0
- package/dist/esm/providers/hooks/useBannerContext.js +10 -0
- package/dist/esm/providers/hooks/useBannerContext.js.map +1 -0
- package/dist/esm/providers/hooks/useLayoutContext.js +10 -0
- package/dist/esm/providers/hooks/useLayoutContext.js.map +1 -0
- package/dist/esm/providers/hooks/useNavigationContext.js +10 -0
- package/dist/esm/providers/hooks/useNavigationContext.js.map +1 -0
- package/package.json +72 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2019 Hitachi Vantara Corporation
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @hitachivantara/app-shell-ui
|
|
2
|
+
|
|
3
|
+
Hitachi Vantara App Shell. Effortless UI integration with top-notch user experience, empowering composability.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
The App Shell is a set of shared client-side modules for common user-focused UI components and services. Together with the [Hitachi NEXT UI Kit](https://www.npmjs.com/package/@hitachivantara/uikit-react-core), it aims to provide a consistent user experience across all Hitachi Vantara applications, adopting the NEXT Design System and addressing Lumada Architecture key concepts of Composability and Portability.
|
|
8
|
+
|
|
9
|
+
At its core, the App Shell consists of a collection of UI patterns shared by all products within the platform, providing a consistent set of interaction patterns that persist across all products. These include navigation, notifications, user information, and other common UX.
|
|
10
|
+
|
|
11
|
+
The App Shell also provides services that support the integration and communication between embedded applications, as well as guidelines and strategies for building web apps with multiple teams that ship features independently.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
The App Shell is available as an NPM package, and can be installed with:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @hitachivantara/app-shell
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Setup instructions for the App Shell are available in https://github.com/lumada-design/hv-app-shell.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as o, Fragment as e, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import t from "../hoc/withGlobalProvider.js";
|
|
3
|
+
import p from "../layout/Header/Header.js";
|
|
4
|
+
import l from "../layout/Main/Main.js";
|
|
5
|
+
import m from "../AppShellRoutes/AppShellRoutes.js";
|
|
6
|
+
const i = () => /* @__PURE__ */ o(e, { children: [
|
|
7
|
+
/* @__PURE__ */ r(p, {}),
|
|
8
|
+
/* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(m, {}) })
|
|
9
|
+
] }), d = t(i);
|
|
10
|
+
export {
|
|
11
|
+
d as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=AppShell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShell.js","sources":["../../../../src/components/AppShell/AppShell.tsx"],"sourcesContent":["import Header from \"../layout/Header\";\nimport Main from \"../layout/Main\";\nimport AppShellRoutes from \"../AppShellRoutes\";\nimport withGlobalProvider from \"../hoc/withGlobalProvider\";\n\nconst AppShell = () => {\n return (\n <>\n <Header />\n <Main>\n <AppShellRoutes />\n </Main>\n </>\n );\n};\n\nexport default withGlobalProvider(AppShell);\n"],"names":["AppShell","jsxs","Fragment","jsx","Header","Main","AppShellRoutes","withGlobalProvider"],"mappings":";;;;;AAKA,MAAMA,IAAWA,MAGX,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,EAAA,gBAAAC,EAACC,GAAM,EAAA;AAAA,EACN,gBAAAD,EAAAE,GAAA,EACC,UAAC,gBAAAF,EAAAG,GAAA,CAAc,CAAA,GACjB;AACF,EAAA,CAAA,GAIWC,IAAAA,EAAmBP,CAAQ;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useContext as M, useState as d, useEffect as l, useMemo as A } from "react";
|
|
3
|
+
import { HvAppShellContext as b, HvAppShellRuntimeContext as w, CONFIG_TRANSLATIONS_NAMESPACE as _ } from "@hitachivantara/app-shell-shared";
|
|
4
|
+
import { BrowserRouter as H } from "react-router-dom";
|
|
5
|
+
import { I18nContext as N } from "react-i18next";
|
|
6
|
+
import { themes as T, HvProvider as B } from "@hitachivantara/uikit-react-core";
|
|
7
|
+
import j from "../../lib/utils/basePathUtils.js";
|
|
8
|
+
import { addResourceBundles as G } from "../../lib/i18n/index.js";
|
|
9
|
+
import C, { LOCAL_STORAGE_KEYS as D } from "../../lib/hooks/useLocalStorage.js";
|
|
10
|
+
import F from "../../lib/utils/CombinedProviders.js";
|
|
11
|
+
const K = ({
|
|
12
|
+
children: E,
|
|
13
|
+
config: m,
|
|
14
|
+
configUrl: n
|
|
15
|
+
}) => {
|
|
16
|
+
var v, f, P, S;
|
|
17
|
+
const {
|
|
18
|
+
i18n: a
|
|
19
|
+
} = M(N), {
|
|
20
|
+
value: I
|
|
21
|
+
} = C(D.COLOR_MODE), [p, h] = d(void 0), [x, $] = d(!1);
|
|
22
|
+
l(() => {
|
|
23
|
+
!m && n && fetch(new URL(n)).then((r) => r.json()).then((r) => h(r)).catch((r) => {
|
|
24
|
+
console.error(`It was not possible to obtain the context from: ${n}`, r), h(void 0), $(!0);
|
|
25
|
+
});
|
|
26
|
+
}, [m, n]);
|
|
27
|
+
const e = A(() => m ?? p, [m, p]);
|
|
28
|
+
if (x)
|
|
29
|
+
throw Error("It was not possible to obtain the configuration");
|
|
30
|
+
e != null && e.translations && G(a, e.translations, _);
|
|
31
|
+
const [c, L] = d(void 0), [u, O] = d(void 0);
|
|
32
|
+
l(() => {
|
|
33
|
+
var r, t;
|
|
34
|
+
(r = e == null ? void 0 : e.theming) != null && r.themes && Promise.all((t = e.theming.themes) == null ? void 0 : t.map((o) => (o === "ds3" || o === "ds5") && T[o] || import(
|
|
35
|
+
/* @vite-ignore */
|
|
36
|
+
o
|
|
37
|
+
).then((s) => s.default).catch((s) => {
|
|
38
|
+
console.error(`Import of theme bundle ${o} failed! ${s}`);
|
|
39
|
+
}))).then((o) => {
|
|
40
|
+
L(o.filter((s) => !!s));
|
|
41
|
+
}).catch((o) => {
|
|
42
|
+
console.error(`Import of themes failed! ${o}`);
|
|
43
|
+
});
|
|
44
|
+
}, [(v = e == null ? void 0 : e.theming) == null ? void 0 : v.themes]), l(() => {
|
|
45
|
+
e != null && e.providers && Promise.all(e.providers.map((r) => import(
|
|
46
|
+
/* @vite-ignore */
|
|
47
|
+
r.bundle
|
|
48
|
+
).then((t) => t.default).catch((t) => {
|
|
49
|
+
console.error(`Import of provider '${r.bundle}' failed! ${t}`);
|
|
50
|
+
}))).then((r) => O(r.filter((t) => !!t))).catch((r) => {
|
|
51
|
+
console.error("Import of providers failed!", r);
|
|
52
|
+
});
|
|
53
|
+
}, [e == null ? void 0 : e.providers]);
|
|
54
|
+
const R = A(() => ({
|
|
55
|
+
i18n: a
|
|
56
|
+
}), [a]);
|
|
57
|
+
return !e || (f = e.theming) != null && f.themes && !c || e.providers != null && u === void 0 ? null : /* @__PURE__ */ i(b.Provider, { value: e, children: /* @__PURE__ */ i(w.Provider, { value: R, children: /* @__PURE__ */ i(B, { themes: c, theme: (P = e.theming) == null ? void 0 : P.theme, colorMode: I ?? ((S = e.theming) == null ? void 0 : S.colorMode), children: /* @__PURE__ */ i(H, { basename: j(e), children: /* @__PURE__ */ i(F, { providers: u, children: E }) }) }) }) });
|
|
58
|
+
}, Z = K;
|
|
59
|
+
export {
|
|
60
|
+
Z as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=AppShellProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShellProvider.js","sources":["../../../../src/components/AppShellProvider/AppShellProvider.tsx"],"sourcesContent":["import {\n ComponentType,\n ReactNode,\n useContext,\n useEffect,\n useMemo,\n useState\n} from \"react\";\nimport {\n CONFIG_TRANSLATIONS_NAMESPACE,\n HvAppShellConfig,\n HvAppShellContext,\n HvAppShellContextValue,\n HvAppShellRuntimeContext\n} from \"@hitachivantara/app-shell-shared\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { I18nContext } from \"react-i18next\";\n\nimport {\n HvProvider,\n HvTheme,\n themes as baseThemes\n} from \"@hitachivantara/uikit-react-core\";\n\nimport getBasePath from \"../../lib/utils/basePathUtils\";\nimport { addResourceBundles } from \"../../lib/i18n\";\nimport useLocalStorage, {\n LOCAL_STORAGE_KEYS\n} from \"../../lib/hooks/useLocalStorage\";\nimport CombinedProviders from \"../../lib/utils/CombinedProviders\";\n\nexport type AppShellProviderProps = {\n children: ReactNode;\n config?: Partial<HvAppShellConfig>;\n configUrl?: string;\n};\n\nconst AppShellProvider = ({\n children,\n config: localConfig,\n configUrl\n}: AppShellProviderProps) => {\n const { i18n } = useContext(I18nContext);\n const { value: storedColorModeValue } = useLocalStorage(\n LOCAL_STORAGE_KEYS.COLOR_MODE\n );\n const [loadedConfig, setLoadedConfig] = useState<\n HvAppShellConfig | undefined\n >(undefined);\n\n const [hasError, setHasError] = useState<boolean>(false);\n\n useEffect(() => {\n if (!localConfig && configUrl) {\n fetch(new URL(configUrl))\n .then(result => {\n return result.json();\n })\n .then(data => setLoadedConfig(data))\n .catch(e => {\n console.error(\n `It was not possible to obtain the context from: ${configUrl}`,\n e\n );\n setLoadedConfig(undefined);\n setHasError(true);\n });\n }\n }, [localConfig, configUrl]);\n\n const theConfig: HvAppShellContextValue | undefined = useMemo(\n () => localConfig ?? loadedConfig,\n [localConfig, loadedConfig]\n );\n\n if (hasError) {\n throw Error(\"It was not possible to obtain the configuration\");\n }\n\n if (theConfig?.translations) {\n addResourceBundles(\n i18n,\n theConfig.translations,\n CONFIG_TRANSLATIONS_NAMESPACE\n );\n }\n\n const [themes, setThemes] = useState<HvTheme[] | undefined>(undefined);\n const [providers, setProviders] = useState<\n ComponentType<{ children: ReactNode }>[] | undefined\n >(undefined);\n\n useEffect(() => {\n if (theConfig?.theming?.themes) {\n Promise.all(\n theConfig.theming.themes?.map(bundle => {\n return (\n ((bundle === \"ds3\" || bundle === \"ds5\") && baseThemes[bundle]) ||\n import(/* @vite-ignore */ bundle)\n .then(module => module.default)\n .catch(e => {\n console.error(`Import of theme bundle ${bundle} failed! ${e}`);\n })\n );\n })\n )\n .then(loadedThemes => {\n setThemes(loadedThemes.filter(theme => !!theme));\n })\n .catch(e => {\n console.error(`Import of themes failed! ${e}`);\n });\n }\n }, [theConfig?.theming?.themes]);\n\n useEffect(() => {\n if (theConfig?.providers) {\n Promise.all(\n theConfig.providers.map(provider => {\n return import(/* @vite-ignore */ provider.bundle)\n .then(module => module.default)\n .catch(e => {\n console.error(\n `Import of provider '${provider.bundle}' failed! ${e}`\n );\n });\n })\n )\n .then(loadedProviders =>\n setProviders(loadedProviders.filter(provider => !!provider))\n )\n .catch(e => {\n console.error(`Import of providers failed!`, e);\n });\n }\n }, [theConfig?.providers]);\n\n const runtimeContext = useMemo(\n () => ({\n i18n\n }),\n [i18n]\n );\n if (\n !theConfig ||\n (theConfig.theming?.themes && !themes) ||\n (theConfig.providers != null && providers === undefined)\n ) {\n return null;\n }\n\n return (\n <HvAppShellContext.Provider value={theConfig}>\n <HvAppShellRuntimeContext.Provider value={runtimeContext}>\n <HvProvider\n themes={themes}\n theme={theConfig.theming?.theme}\n colorMode={storedColorModeValue ?? theConfig.theming?.colorMode}>\n <BrowserRouter basename={getBasePath(theConfig)}>\n <CombinedProviders providers={providers}>\n {children}\n </CombinedProviders>\n </BrowserRouter>\n </HvProvider>\n </HvAppShellRuntimeContext.Provider>\n </HvAppShellContext.Provider>\n );\n};\n\nexport default AppShellProvider;\n"],"names":["AppShellProvider","children","config","localConfig","configUrl","i18n","useContext","I18nContext","value","storedColorModeValue","useLocalStorage","LOCAL_STORAGE_KEYS","COLOR_MODE","loadedConfig","setLoadedConfig","useState","undefined","hasError","setHasError","useEffect","fetch","URL","then","result","json","data","catch","e","console","error","theConfig","useMemo","Error","translations","CONFIG_TRANSLATIONS_NAMESPACE","themes","setThemes","providers","setProviders","theming","Promise","all","map","bundle","baseThemes","module","default","loadedThemes","filter","theme","provider","loadedProviders","runtimeContext","HvAppShellContext","jsx","HvAppShellRuntimeContext","HvProvider","colorMode","BrowserRouter","getBasePath","CombinedProviders","AppShellProvider$1"],"mappings":";;;;;;;;;;AAqCA,MAAMA,IAAmBA,CAAC;AAAA,EACxBC,UAAAA;AAAAA,EACAC,QAAQC;AAAAA,EACRC,WAAAA;A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H,GACxC,UAAA,gBAAAE,EAACE,GACC,UAAArB,GACA,QAAOL,IAAAA,EAAUS,YAAVT,gBAAAA,EAAmBmB,OAC1B,WAAWxC,OAAwBqB,IAAAA,EAAUS,YAAVT,gBAAAA,EAAmB2B,YACtD,UAAA,gBAAAH,EAACI,KAAc,UAAUC,EAAY7B,CAAS,GAC5C,4BAAC8B,GAAkB,EAAA,WAAAvB,GAChBpC,UAAAA,GACH,EACF,CAAA,EACF,CAAA,GACF,EACF,CAAA;AAEJ,GAEA4D,IAAe7D;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as o, jsxs as u } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { lazy as l, Suspense as i } from "react";
|
|
3
|
+
import { Routes as f, Route as n } from "react-router-dom";
|
|
4
|
+
import { ErrorBoundary as c } from "react-error-boundary";
|
|
5
|
+
import { useHvAppShellConfig as d } from "@hitachivantara/app-shell-shared";
|
|
6
|
+
import a from "../../pages/LoadingPage/LoadingPage.js";
|
|
7
|
+
import { getAppIdFromBundle as h } from "../../lib/utils/navigationUtil.js";
|
|
8
|
+
import g from "../AppShellViewProvider/AppShellViewProvider.js";
|
|
9
|
+
import A from "../../pages/GenericError/GenericError.js";
|
|
10
|
+
const R = l(() => import("../../pages/NotFound/index.js")), S = () => {
|
|
11
|
+
var e;
|
|
12
|
+
const {
|
|
13
|
+
mainPanel: t
|
|
14
|
+
} = d();
|
|
15
|
+
return /* @__PURE__ */ o(i, { fallback: /* @__PURE__ */ o(a, {}), children: /* @__PURE__ */ u(f, { children: [
|
|
16
|
+
(e = t == null ? void 0 : t.views) == null ? void 0 : e.map((r) => {
|
|
17
|
+
const {
|
|
18
|
+
bundle: p
|
|
19
|
+
} = r, m = h(p), s = l(() => import(
|
|
20
|
+
/* @vite-ignore */
|
|
21
|
+
p
|
|
22
|
+
));
|
|
23
|
+
return /* @__PURE__ */ o(n, { path: r.route, element: /* @__PURE__ */ o(g, { id: m, children: /* @__PURE__ */ o(c, { fallback: /* @__PURE__ */ o(A, { fullPage: !1 }), children: /* @__PURE__ */ o(s, { ...r.config }) }, r.route) }) }, r.route);
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ o(n, { path: "*", element: /* @__PURE__ */ o(R, {}) }, "notFound")
|
|
26
|
+
] }) });
|
|
27
|
+
}, I = S;
|
|
28
|
+
export {
|
|
29
|
+
I as default
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=AppShellRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShellRoutes.js","sources":["../../../../src/components/AppShellRoutes/AppShellRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from \"react\";\nimport { Route, Routes } from \"react-router-dom\";\nimport { ErrorBoundary } from \"react-error-boundary\";\nimport { useHvAppShellConfig } from \"@hitachivantara/app-shell-shared\";\n\nimport AppShellViewProvider from \"../AppShellViewProvider\";\nimport GenericError from \"../../pages/GenericError\";\nimport LoadingPage from \"../../pages/LoadingPage\";\nimport { getAppIdFromBundle } from \"../../lib/utils/navigationUtil\";\n\nconst NotFound = lazy(() => import(\"../../pages/NotFound\"));\n\nconst AppShellRoutes = () => {\n const { mainPanel } = useHvAppShellConfig();\n return (\n <Suspense fallback={<LoadingPage />}>\n <Routes>\n {mainPanel?.views?.map(view => {\n const { bundle } = view;\n const appId = getAppIdFromBundle(bundle);\n\n const RouteComponent = lazy(() => import(/* @vite-ignore */ bundle));\n\n return (\n <Route\n key={view.route}\n path={view.route}\n element={\n <AppShellViewProvider id={appId}>\n <ErrorBoundary\n key={view.route}\n fallback={<GenericError fullPage={false} />}>\n <RouteComponent {...view.config} />\n </ErrorBoundary>\n </AppShellViewProvider>\n }\n />\n );\n })}\n <Route path=\"*\" key=\"notFound\" element={<NotFound />} />\n </Routes>\n </Suspense>\n );\n};\n\nexport default AppShellRoutes;\n"],"names":["NotFound","lazy","AppShellRoutes","mainPanel","useHvAppShellConfig","Suspense","LoadingPage","Routes","views","map","view","bundle","appId","getAppIdFromBundle","RouteComponent","jsx","Route","route","AppShellViewProvider","ErrorBoundary","GenericError","config","AppShellRoutes$1"],"mappings":";;;;;;;;;AAUA,MAAMA,IAAWC,EAAK,MAAM,OAAO,+BAAsB,CAAC,GAEpDC,IAAiBA,MAAM;;AACrB,QAAA;AAAA,IAAEC,WAAAA;AAAAA,MAAcC,EAAoB;AAC1C,2BACGC,GAAS,EAAA,4BAAWC,GAAW,CAAA,CAAA,GAC9B,4BAACC,GACEJ,EAAAA,UAAAA;AAAAA,KAAWK,IAAAA,KAAAA,gBAAAA,EAAAA,UAAAA,gBAAAA,EAAOC,IAAIC,CAAQA,MAAA;AACvB,YAAA;AAAA,QAAEC,QAAAA;AAAAA,MAAWD,IAAAA,GACbE,IAAQC,EAAmBF,CAAM,GAEjCG,IAAiBb,EAAK,MAAM;AAAA;AAAA,QAA0BU;AAAAA,OAAO;AAEnE,aACG,gBAAAI,EAAAC,GAAA,EAEC,MAAMN,EAAKO,OACX,SACG,gBAAAF,EAAAG,GAAA,EAAqB,IAAIN,GACxB,UAAC,gBAAAG,EAAAI,GAAA,EAEC,UAAU,gBAAAJ,EAACK,GAAa,EAAA,UAAU,GAAM,CAAA,GACxC,UAAC,gBAAAL,EAAAD,GAAA,KAAmBJ,EAAKW,OAAO,CAAA,EAAA,GAF3BX,EAAKO,KAGZ,EACF,CAAA,KATGP,EAAKO,KAWV;AAAA,IAAA;AAAA,IAGN,gBAAAF,EAACC,KAAM,MAAK,KAAmB,SAAU,gBAAAD,EAAAf,GAAA,CAAA,MAArB,UAAiC;AAAA,EAAA,EACvD,CAAA,EACF,CAAA;AAEJ,GAEAsB,IAAepB;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as p } from "react";
|
|
3
|
+
import { HvAppShellViewContext as i } from "@hitachivantara/app-shell-shared";
|
|
4
|
+
const l = ({
|
|
5
|
+
children: o,
|
|
6
|
+
id: e
|
|
7
|
+
}) => {
|
|
8
|
+
const r = p(() => ({
|
|
9
|
+
id: e
|
|
10
|
+
}), [e]);
|
|
11
|
+
return /* @__PURE__ */ t(i.Provider, { value: r, children: o });
|
|
12
|
+
}, v = l;
|
|
13
|
+
export {
|
|
14
|
+
v as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=AppShellViewProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShellViewProvider.js","sources":["../../../../src/components/AppShellViewProvider/AppShellViewProvider.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\n\nimport {\n HvAppShellViewContext,\n HvAppShellViewContextValue\n} from \"@hitachivantara/app-shell-shared\";\n\nexport type AppShellViewProviderProps = {\n children: React.ReactNode;\n id: string;\n};\n\nconst AppShellViewProvider = ({ children, id }: AppShellViewProviderProps) => {\n const value: HvAppShellViewContextValue = useMemo(() => ({ id }), [id]);\n\n return (\n <HvAppShellViewContext.Provider value={value}>\n {children}\n </HvAppShellViewContext.Provider>\n );\n};\n\nexport default AppShellViewProvider;\n"],"names":["AppShellViewProvider","children","id","value","useMemo","jsx","HvAppShellViewContext","AppShellViewProvider$1"],"mappings":";;;AAYA,MAAMA,IAAuBA,CAAC;AAAA,EAAEC,UAAAA;AAAAA,EAAUC,IAAAA;AAA8B,MAAM;AACtEC,QAAAA,IAAoCC,EAAQ,OAAO;AAAA,IAAEF,IAAAA;AAAAA,EAAAA,IAAO,CAACA,CAAE,CAAC;AAEtE,SACG,gBAAAG,EAAAC,EAAsB,UAAtB,EAA+B,OAAAH,GAC7BF,UAAAA,EACH,CAAA;AAEJ,GAEAM,IAAeP;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomHooksInitializer.js","sources":["../../../../src/components/CustomHooksInitializer/CustomHooksInitializer.tsx"],"sourcesContent":["import useClearLocationState from \"../../lib/hooks/useClearLocationState\";\nimport useCustomEventListener from \"../../lib/hooks/useCustomEventListener\";\n\nconst CustomHooksInitializer = () => {\n useCustomEventListener();\n useClearLocationState();\n\n return null;\n};\n\nexport default CustomHooksInitializer;\n"],"names":["CustomHooksInitializer","useCustomEventListener","useClearLocationState","CustomHooksInitializer$1"],"mappings":";;AAGA,MAAMA,IAAyBA,OACNC,KACDC,KAEf,OAGTC,IAAeH;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as b } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Global as l } from "@emotion/react";
|
|
3
|
+
function s() {
|
|
4
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
5
|
+
}
|
|
6
|
+
var c = process.env.NODE_ENV === "production" ? {
|
|
7
|
+
name: "1ay3zcm",
|
|
8
|
+
styles: "html,body{height:unset;}"
|
|
9
|
+
} : {
|
|
10
|
+
name: "1xkfqfu-GlobalStyles",
|
|
11
|
+
styles: "html,body{height:unset;};label:GlobalStyles;",
|
|
12
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9fX3cvaHYtYXBwLXNoZWxsL2h2LWFwcC1zaGVsbC9jbGllbnQvcGFja2FnZXMvYXBwLXNoZWxsLXVpL3NyYy9jb21wb25lbnRzL0dsb2JhbFN0eWxlcy9HbG9iYWxTdHlsZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVVlIiwiZmlsZSI6Ii9fX3cvaHYtYXBwLXNoZWxsL2h2LWFwcC1zaGVsbC9jbGllbnQvcGFja2FnZXMvYXBwLXNoZWxsLXVpL3NyYy9jb21wb25lbnRzL0dsb2JhbFN0eWxlcy9HbG9iYWxTdHlsZXMudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgR2xvYmFsLCBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcblxuLyoqXG4gKiBUaGlzIGNvbXBvbmVudCBjYW4gYmUgdXNlZCB0byBzZXQgfCBhZGQgfCBtb2RpZnkgZ2xvYmFsIGNzcy4gSXQgY2FuIGFsc28gb3ZlcnJpZGUgcHJvcGVydGllcyBkZWZpbmVkIGluIFVJLUtJVC5cbiAqXG4gKiBXZSBuZWVkIHRvIGhhdmUgdGhpcyBjb21wb25lbnQgYmVjYXVzZSB0aGUgVUktS0lUIGlzIGZvcmNpbmcgdGhlIGhlaWdodCB0byAxMDAlIGFuZCB0aGlzIGNhdXNlZCBBcHAgU2hlbGwgdG8gc2hvd1xuICogYSB2ZXJ0aWNhbCBzY3JvbGwgYmFyIHdoZW4gaXQgc2hvdWxkbid0IGR1ZSB0byB0aGUgaGVhZGVyIGhlaWdodC5cbiAqL1xuY29uc3QgR2xvYmFsU3R5bGVzID0gKCkgPT4gKFxuICA8R2xvYmFsXG4gICAgc3R5bGVzPXtjc3NgXG4gICAgICBodG1sLFxuICAgICAgYm9keSB7XG4gICAgICAgIGhlaWdodDogdW5zZXQ7XG4gICAgICB9XG4gICAgYH1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IEdsb2JhbFN0eWxlcztcbiJdfQ== */",
|
|
13
|
+
toString: s
|
|
14
|
+
};
|
|
15
|
+
const G = () => /* @__PURE__ */ b(l, { styles: c }), o = G;
|
|
16
|
+
export {
|
|
17
|
+
o as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=GlobalStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalStyles.js","sources":["../../../../src/components/GlobalStyles/GlobalStyles.tsx"],"sourcesContent":["import { Global, css } from \"@emotion/react\";\n\n/**\n * This component can be used to set | add | modify global css. It can also override properties defined in UI-KIT.\n *\n * We need to have this component because the UI-KIT is forcing the height to 100% and this caused App Shell to show\n * a vertical scroll bar when it shouldn't due to the header height.\n */\nconst GlobalStyles = () => (\n <Global\n styles={css`\n html,\n body {\n height: unset;\n }\n `}\n />\n);\n\nexport default GlobalStyles;\n"],"names":["_ref","process","env","NODE_ENV","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","GlobalStyles","jsx","Global","GlobalStyles$1"],"mappings":";;;;;AAEA,IAAAA,IAAAC,QAAAC,IAAAC,aAAA,eAAA;AAAA,EAAAC,MAAA;AAAA,EAAAC,QAAA;AAAA,IAAA;AAAA,EAAAD,MAAA;AAAA,EAAAC,QAAA;AAAA,EAAAC,KAAA;AAAA,EAAAC,UAAAC;AAAA;AAMA,MAAMC,IAAeA,MAClB,gBAAAC,EAAAC,GAAA,EACC,QAAOX,EAOV,CAAA,GAEDY,IAAeH;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { HvIconSprite as s } from "@hitachivantara/uikit-react-icons";
|
|
3
|
+
var i, o;
|
|
4
|
+
const e = (o = (i = import.meta).resolve) == null ? void 0 : o.call(i, "@hv/uikit-icons/icons.svg"), n = ({
|
|
5
|
+
name: t
|
|
6
|
+
}) => /* @__PURE__ */ r(s, { spriteUrl: e, iconName: t }), p = n;
|
|
7
|
+
export {
|
|
8
|
+
p as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=IconUiKit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconUiKit.js","sources":["../../../../src/components/IconUiKit/IconUiKit.tsx"],"sourcesContent":["import { HvIconSprite } from \"@hitachivantara/uikit-react-icons\";\n\nexport type IconUiKitProps = {\n name: string;\n};\n\nconst spriteUri = import.meta.resolve?.(\n \"@hv/uikit-icons/icons.svg\"\n) as unknown as string;\n\nconst IconUiKit = ({ name }: IconUiKitProps) => {\n return <HvIconSprite spriteUrl={spriteUri} iconName={name} />;\n};\n\nexport default IconUiKit;\n"],"names":["spriteUri","import","resolve","IconUiKit","name","jsx","HvIconSprite","IconUiKit$1"],"mappings":";;;AAMA,MAAMA,KAAYC,KAAAA,IAAAA,aAAYC,YAAZD,gBAAAA,EAAAA,KAAAA,GAChB,8BAGIE,IAAYA,CAAC;AAAA,EAAEC,MAAAA;AAAqB,MAChC,gBAAAC,EAAAC,GAAA,EAAa,WAAWN,GAAW,UAAUI,EAAQ,CAAA,GAG/DG,IAAeJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/IconUiKit/index.tsx"],"sourcesContent":["import React from \"react\";\nimport IconUiKit from \"./IconUiKit\";\n\nexport type IconUiKitProps = {\n name: string;\n};\n\nexport default React.memo(IconUiKit);\n"],"names":["IconUiKit","React","memo"],"mappings":";;AAOA,MAAAA,IAAeC,EAAMC,KAAKF,CAAS;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { createPortal as s } from "react-dom";
|
|
3
|
+
import { ClickAwayListener as c } from "@mui/material";
|
|
4
|
+
import m from "../../lib/utils/documentUtil.js";
|
|
5
|
+
const o = (t) => {
|
|
6
|
+
const a = t.displayName ?? t.name, l = m(), i = ({
|
|
7
|
+
onClickAway: r,
|
|
8
|
+
...n
|
|
9
|
+
}) => r ? s(/* @__PURE__ */ e(c, { onClickAway: r, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { ...n }) }) }), l) : /* @__PURE__ */ e(t, { ...n });
|
|
10
|
+
return i.displayName = `withClickAwayListener(${a})`, i;
|
|
11
|
+
}, A = o;
|
|
12
|
+
export {
|
|
13
|
+
A as default
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=withClickAwayListener.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withClickAwayListener.js","sources":["../../../../src/components/hoc/withClickAwayListener.tsx"],"sourcesContent":["import { createPortal } from \"react-dom\";\nimport { ClickAwayListener } from \"@mui/material\";\nimport createAppContainerElement from \"../../lib/utils/documentUtil\";\n\ninterface WithClickAwayListenerProps {\n onClickAway?: () => void;\n}\n\ntype WrappedComponentProps<T extends React.ElementType> = React.ComponentType<\n WithClickAwayListenerProps & React.ComponentProps<T>\n>;\n\nconst withClickAwayListener = <T extends React.ElementType>(\n WrappedComponent: WrappedComponentProps<T>\n) => {\n const displayName = WrappedComponent.displayName ?? WrappedComponent.name;\n\n const panelContainerElement = createAppContainerElement();\n\n const ComponentWithClickAwayListener = ({\n onClickAway,\n ...wrappedProps\n }: WithClickAwayListenerProps & React.ComponentProps<T>) => {\n if (onClickAway) {\n return createPortal(\n <ClickAwayListener onClickAway={onClickAway}>\n <div>\n <WrappedComponent {...(wrappedProps as React.ComponentProps<T>)} />\n </div>\n </ClickAwayListener>,\n panelContainerElement\n );\n }\n\n return <WrappedComponent {...(wrappedProps as React.ComponentProps<T>)} />;\n };\n\n ComponentWithClickAwayListener.displayName = `withClickAwayListener(${displayName})`;\n\n return ComponentWithClickAwayListener;\n};\n\nexport default withClickAwayListener;\n"],"names":["withClickAwayListener","WrappedComponent","displayName","name","panelContainerElement","createAppContainerElement","ComponentWithClickAwayListener","onClickAway","wrappedProps","createPortal","jsx","ClickAwayListener","withClickAwayListener$1"],"mappings":";;;;AAYA,MAAMA,IAAwB,CAC5BC,MACG;AACGC,QAAAA,IAAcD,EAAiBC,eAAeD,EAAiBE,MAE/DC,IAAwBC,KAExBC,IAAiCA,CAAC;AAAA,IACtCC,aAAAA;AAAAA,IACA,GAAGC;AAAAA,EAAAA,MAECD,IACKE,EACL,gBAAAC,EAACC,GAAkB,EAAA,aAAAJ,GACjB,UAAC,gBAAAG,EAAA,OAAA,EACC,UAAC,gBAAAA,EAAAT,GAAA,EAAiB,GAAKO,EAAAA,CAAyC,EAClE,CAAA,EACF,CAAA,GACAJ,CACF,IAGK,gBAAAM,EAACT,GAAiB,EAAA,GAAKO,EAA4C,CAAA;AAG7CN,SAAAA,EAAAA,cAAe,yBAAwBA,CAAY,KAE3EI;AACT,GAEAM,IAAeZ;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as I, jsxs as b } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { css as G } from "@emotion/css";
|
|
3
|
+
import { I18nextProvider as X } from "react-i18next";
|
|
4
|
+
import { HelmetProvider as d } from "react-helmet-async";
|
|
5
|
+
import { theme as t, HvProvider as a, HvSnackbarProvider as Z } from "@hitachivantara/uikit-react-core";
|
|
6
|
+
import { ErrorBoundary as m } from "react-error-boundary";
|
|
7
|
+
import v from "../GlobalStyles/GlobalStyles.js";
|
|
8
|
+
import r from "../AppShellProvider/AppShellProvider.js";
|
|
9
|
+
import h from "../../providers/NavigationProvider.js";
|
|
10
|
+
import o from "../../lib/i18n/index.js";
|
|
11
|
+
import V from "../../providers/BannerProvider.js";
|
|
12
|
+
import W from "../../providers/LayoutProvider.js";
|
|
13
|
+
import A from "../../pages/GenericError/GenericError.js";
|
|
14
|
+
import e from "../CustomHooksInitializer/CustomHooksInitializer.js";
|
|
15
|
+
const n = {
|
|
16
|
+
containerRoot: /* @__PURE__ */ G("margin-top:", t.header.height, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:containerRoot;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9fX3cvaHYtYXBwLXNoZWxsL2h2LWFwcC1zaGVsbC9jbGllbnQvcGFja2FnZXMvYXBwLXNoZWxsLXVpL3NyYy9jb21wb25lbnRzL2hvYy93aXRoR2xvYmFsUHJvdmlkZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCb0IiLCJmaWxlIjoiL19fdy9odi1hcHAtc2hlbGwvaHYtYXBwLXNoZWxsL2NsaWVudC9wYWNrYWdlcy9hcHAtc2hlbGwtdWkvc3JjL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nZW5lcmFsXCJcbiAgICAgICAgICAgICAgZmFsbGJhY2s9ezxHZW5lcmljRXJyb3IgZnVsbFBhZ2UgaW5jbHVkZUZvb3Rlcj17ZmFsc2V9IC8+fT5cbiAgICAgICAgICAgICAgPEFwcFNoZWxsUHJvdmlkZXJcbiAgICAgICAgICAgICAgICBjb25maWc9e3dyYXBwZWRQcm9wcy5jb25maWd9XG4gICAgICAgICAgICAgICAgY29uZmlnVXJsPXt3cmFwcGVkUHJvcHMuY29uZmlnVXJsfT5cbiAgICAgICAgICAgICAgICA8TGF5b3V0UHJvdmlkZXI+XG4gICAgICAgICAgICAgICAgICA8SHZTbmFja2JhclByb3ZpZGVyXG4gICAgICAgICAgICAgICAgICAgIG5vdGlzdGFja0NsYXNzZXNPdmVycmlkZT17c25hY2tiYXJDbGFzc2VzfT5cbiAgICAgICAgICAgICAgICAgICAgPEVycm9yQm91bmRhcnkgZmFsbGJhY2s9ezxHZW5lcmljRXJyb3IgZnVsbFBhZ2UgLz59PlxuICAgICAgICAgICAgICAgICAgICAgIDxOYXZpZ2F0aW9uUHJvdmlkZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8QmFubmVyUHJvdmlkZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxDdXN0b21Ib29rc0luaXRpYWxpemVyIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgIDxXcmFwcGVkQ29tcG9uZW50IHsuLi53cmFwcGVkUHJvcHN9IC8+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L0Jhbm5lclByb3ZpZGVyPlxuICAgICAgICAgICAgICAgICAgICAgIDwvTmF2aWdhdGlvblByb3ZpZGVyPlxuICAgICAgICAgICAgICAgICAgICA8L0Vycm9yQm91bmRhcnk+XG4gICAgICAgICAgICAgICAgICA8L0h2U25hY2tiYXJQcm92aWRlcj5cbiAgICAgICAgICAgICAgICA8L0xheW91dFByb3ZpZGVyPlxuICAgICAgICAgICAgICA8L0FwcFNoZWxsUHJvdmlkZXI+XG4gICAgICAgICAgICA8L0Vycm9yQm91bmRhcnk+XG4gICAgICAgICAgPC9JMThuZXh0UHJvdmlkZXI+XG4gICAgICAgIDwvSHZQcm92aWRlcj5cbiAgICAgIDwvSGVsbWV0UHJvdmlkZXI+XG4gICAgKTtcbiAgfTtcblxuICBDb21wb25lbnRXaXRoR2xvYmFsUHJvdmlkZXIuZGlzcGxheU5hbWUgPSBgd2l0aEdsb2JhbFByb3ZpZGVyKCR7ZGlzcGxheU5hbWV9KWA7XG5cbiAgcmV0dXJuIENvbXBvbmVudFdpdGhHbG9iYWxQcm92aWRlcjtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHdpdGhHbG9iYWxQcm92aWRlcjtcbiJdfQ== */")
|
|
17
|
+
}, u = (g) => {
|
|
18
|
+
const l = g.displayName ?? g.name, {
|
|
19
|
+
i18n: i
|
|
20
|
+
} = o(), C = ({
|
|
21
|
+
...c
|
|
22
|
+
}) => /* @__PURE__ */ I(d, { children: /* @__PURE__ */ b(a, { children: [
|
|
23
|
+
/* @__PURE__ */ I(v, {}),
|
|
24
|
+
/* @__PURE__ */ I(X, { i18n: i, children: /* @__PURE__ */ I(m, { fallback: /* @__PURE__ */ I(A, { fullPage: !0, includeFooter: !1 }), children: /* @__PURE__ */ I(r, { config: c.config, configUrl: c.configUrl, children: /* @__PURE__ */ I(W, { children: /* @__PURE__ */ I(Z, { notistackClassesOverride: n, children: /* @__PURE__ */ I(m, { fallback: /* @__PURE__ */ I(A, { fullPage: !0 }), children: /* @__PURE__ */ I(h, { children: /* @__PURE__ */ b(V, { children: [
|
|
25
|
+
/* @__PURE__ */ I(e, {}),
|
|
26
|
+
/* @__PURE__ */ I(g, { ...c })
|
|
27
|
+
] }) }) }) }) }) }) }, "general") })
|
|
28
|
+
] }) });
|
|
29
|
+
return C.displayName = `withGlobalProvider(${l})`, C;
|
|
30
|
+
}, L = u;
|
|
31
|
+
export {
|
|
32
|
+
L as default
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=withGlobalProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withGlobalProvider.js","sources":["../../../../src/components/hoc/withGlobalProvider.tsx"],"sourcesContent":["import { css } from \"@emotion/css\";\nimport { I18nextProvider } from \"react-i18next\";\nimport { HelmetProvider } from \"react-helmet-async\";\n\nimport {\n HvProvider,\n HvSnackbarProvider,\n theme\n} from \"@hitachivantara/uikit-react-core\";\n\nimport React from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport GlobalStyles from \"../GlobalStyles\";\nimport AppShellProvider from \"../AppShellProvider/AppShellProvider\";\nimport NavigationProvider from \"../../providers/NavigationProvider\";\nimport createI18Next from \"../../lib/i18n\";\nimport BannerProvider from \"../../providers/BannerProvider\";\nimport LayoutProvider from \"../../providers/LayoutProvider\";\nimport GenericError from \"../../pages/GenericError\";\nimport CustomHooksInitializer from \"../CustomHooksInitializer\";\n\ntype WrappedComponentProps<T extends React.ElementType> = React.ComponentType<\n React.ComponentProps<T>\n>;\n\nconst snackbarClasses = {\n containerRoot: css`\n margin-top: ${theme.header.height};\n `\n};\n\nconst withGlobalProvider = <T extends React.ElementType>(\n WrappedComponent: WrappedComponentProps<T>\n) => {\n const displayName = WrappedComponent.displayName ?? WrappedComponent.name;\n\n const { i18n } = createI18Next();\n\n const ComponentWithGlobalProvider = ({\n ...wrappedProps\n }: React.ComponentProps<T>) => {\n return (\n <HelmetProvider>\n <HvProvider>\n <GlobalStyles />\n <I18nextProvider i18n={i18n}>\n <ErrorBoundary\n key=\"general\"\n fallback={<GenericError fullPage includeFooter={false} />}>\n <AppShellProvider\n config={wrappedProps.config}\n configUrl={wrappedProps.configUrl}>\n <LayoutProvider>\n <HvSnackbarProvider\n notistackClassesOverride={snackbarClasses}>\n <ErrorBoundary fallback={<GenericError fullPage />}>\n <NavigationProvider>\n <BannerProvider>\n <CustomHooksInitializer />\n <WrappedComponent {...wrappedProps} />\n </BannerProvider>\n </NavigationProvider>\n </ErrorBoundary>\n </HvSnackbarProvider>\n </LayoutProvider>\n </AppShellProvider>\n </ErrorBoundary>\n </I18nextProvider>\n </HvProvider>\n </HelmetProvider>\n );\n };\n\n ComponentWithGlobalProvider.displayName = `withGlobalProvider(${displayName})`;\n\n return ComponentWithGlobalProvider;\n};\n\nexport default withGlobalProvider;\n"],"names":["snackbarClasses","containerRoot","css","theme","header","height","process","env","NODE_ENV","withGlobalProvider","WrappedComponent","displayName","name","i18n","createI18Next","ComponentWithGlobalProvider","wrappedProps","jsx","HelmetProvider","jsxs","HvProvider","GlobalStyles","I18nextProvider","ErrorBoundary","GenericError","AppShellProvider","config","configUrl","LayoutProvider","HvSnackbarProvider","NavigationProvider","BannerProvider","CustomHooksInitializer","withGlobalProvider$1"],"mappings":";;;;;;;;;;;;;;AA0BA,MAAMA,IAAkB;AAAA,EACtBC,eAAkB,gBAAAC,EAAA,eACFC,EAAMC,OAAOC,QAAM,OAAAC,QAAAC,IAAAC,aAAA,eAAA,KAAA,0BAAAF,QAAAC,IAAAC,aAAA,eAAA,KAAA,y/HAAA;AAErC,GAEMC,IAAqB,CACzBC,MACG;AACGC,QAAAA,IAAcD,EAAiBC,eAAeD,EAAiBE,MAE/D;AAAA,IAAEC,MAAAA;AAAAA,MAASC,EAAc,GAEzBC,IAA8BA,CAAC;AAAA,IACnC,GAAGC;AAAAA,EAAAA,MAGD,gBAAAC,EAACC,GACC,EAAA,UAAA,gBAAAC,EAACC,GACC,EAAA,UAAA;AAAA,IAAA,gBAAAH,EAACI,GAAY,EAAA;AAAA,sBACZC,GAAgB,EAAA,MAAAT,GACf,UAAC,gBAAAI,EAAAM,GAAA,EAEC,UAAW,gBAAAN,EAAAO,GAAA,EAAa,UAAQ,IAAC,eAAe,GAAM,CAAA,GACtD,4BAACC,GACC,EAAA,QAAQT,EAAaU,QACrB,WAAWV,EAAaW,WACxB,4BAACC,GACC,EAAA,UAAA,gBAAAX,EAACY,GACC,EAAA,0BAA0B7B,GAC1B,UAAC,gBAAAiB,EAAAM,GAAA,EAAc,UAAU,gBAAAN,EAACO,KAAa,UAAQ,GAAA,CAAA,GAC7C,UAAC,gBAAAP,EAAAa,GAAA,EACC,4BAACC,GACC,EAAA,UAAA;AAAA,MAAA,gBAAAd,EAACe,GAAsB,EAAA;AAAA,MACvB,gBAAAf,EAACP,GAAiB,EAAA,GAAIM,GAAa;AAAA,IAAA,GACrC,GACF,EACF,CAAA,EACF,CAAA,EACF,CAAA,GACF,EAAA,GAlBI,SAmBN,GACF;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAIwBL,SAAAA,EAAAA,cAAe,sBAAqBA,CAAY,KAErEI;AACT,GAEAkB,IAAexB;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { CONFIG_TRANSLATIONS_NAMESPACE as m } from "@hitachivantara/app-shell-shared";
|
|
3
|
+
import { useTranslation as s } from "react-i18next";
|
|
4
|
+
import i from "./Logos/Hitachi/Hitachi.js";
|
|
5
|
+
import a from "./Logos/Lumada/Lumada.js";
|
|
6
|
+
const e = ({
|
|
7
|
+
logo: r
|
|
8
|
+
}) => {
|
|
9
|
+
const {
|
|
10
|
+
t: n
|
|
11
|
+
} = s(m);
|
|
12
|
+
if (!r)
|
|
13
|
+
return /* @__PURE__ */ t(i, {});
|
|
14
|
+
const o = r.description != null ? n(r.description) : void 0;
|
|
15
|
+
return r.name === "LUMADA" ? /* @__PURE__ */ t(a, { description: o }) : /* @__PURE__ */ t(i, { description: o });
|
|
16
|
+
}, A = e;
|
|
17
|
+
export {
|
|
18
|
+
A as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=BrandLogo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandLogo.js","sources":["../../../../../../src/components/layout/Header/BrandLogo/BrandLogo.tsx"],"sourcesContent":["import {\n CONFIG_TRANSLATIONS_NAMESPACE,\n HvAppShellLogo\n} from \"@hitachivantara/app-shell-shared\";\n\nimport { useTranslation } from \"react-i18next\";\nimport Hitachi from \"./Logos/Hitachi/Hitachi\";\nimport Lumada from \"./Logos/Lumada/Lumada\";\n\nexport type HvBrandLogoProps = {\n logo?: HvAppShellLogo;\n};\n\nconst BrandLogo = ({ logo }: HvBrandLogoProps) => {\n const { t: tConfig } = useTranslation(CONFIG_TRANSLATIONS_NAMESPACE);\n\n if (!logo) {\n return <Hitachi />;\n }\n\n // Rules out explicit null value or non-existent prop but assumes empty string\n const description =\n logo.description != null ? tConfig(logo.description) : undefined;\n\n if (logo.name === \"LUMADA\") {\n return <Lumada description={description} />;\n }\n return <Hitachi description={description} />;\n};\n\nexport default BrandLogo;\n"],"names":["BrandLogo","logo","t","tConfig","useTranslation","CONFIG_TRANSLATIONS_NAMESPACE","Hitachi","description","undefined","name","jsx","Lumada","BrandLogo$1"],"mappings":";;;;;AAaA,MAAMA,IAAYA,CAAC;AAAA,EAAEC,MAAAA;AAAuB,MAAM;AAC1C,QAAA;AAAA,IAAEC,GAAGC;AAAAA,EAAAA,IAAYC,EAAeC,CAA6B;AAEnE,MAAI,CAACJ;AACH,6BAAQK,GAAU,CAAA,CAAA;AAIpB,QAAMC,IACJN,EAAKM,eAAe,OAAOJ,EAAQF,EAAKM,WAAW,IAAIC;AAErDP,SAAAA,EAAKQ,SAAS,WACT,gBAAAC,EAACC,KAAO,aAAAJ,EAA4B,CAAA,IAEtC,gBAAAG,EAACJ,KAAQ,aAAAC,EAA4B,CAAA;AAC9C,GAEAK,IAAeZ;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as h } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { StyledSVG as v, StyledLettering as l } from "./styles.js";
|
|
3
|
+
const r = ({
|
|
4
|
+
description: t = "Hitachi logo",
|
|
5
|
+
letteringColor: e
|
|
6
|
+
}) => /* @__PURE__ */ h(v, { xmlns: "http://www.w3.org/2000/svg", x: 0, y: 0, viewBox: "0 0 80.5 16.9", xmlSpace: "preserve", "aria-label": t, children: /* @__PURE__ */ h(l, { letteringColor: e, d: "M63.6 2.5v4.7H70V2.5h3.1v11.9H70V9.2h-6.3v5.2h-3.1V2.5h3zM33.9 2.5v2h-4.8v9.8H26V4.5h-4.8v-2h12.7zM46 14.3h-3.5l-1-2.6h-5.9l-1 2.6h-3.5l5.5-11.9h3.8L46 14.3zm-7.4-9.8-2.2 5.4h4.4l-2.2-5.4M75.6 2.5h3.1v11.9h-3.1zM4.9 2.5v4.7h6.3V2.5h3.1v11.9h-3.1V9.2H4.9v5.2H1.7V2.5h3.2zM16.9 2.5H20v11.9h-3.1zM45.9 11c-.3-.8-.4-1.6-.4-2.5 0-1.2.2-2.4.8-3.4.6-1 1.5-1.8 2.7-2.2 1.1-.4 2.2-.6 3.5-.6 1.4 0 2.7.3 4 .8 1.1.5 2 1.5 2.2 2.7.1.3.1.5.1.8h-3.3c0-.3-.1-.6-.2-.9-.3-.6-.8-1.2-1.5-1.4-.4-.1-.9-.2-1.4-.2-.5 0-1.1.1-1.5.3-.8.3-1.4.9-1.7 1.7-.3.8-.4 1.6-.4 2.5 0 .7.1 1.4.3 2.1.2.9.9 1.6 1.7 1.9.5.2 1.1.3 1.7.3.5 0 1-.1 1.5-.2.6-.2 1.1-.6 1.4-1.2.2-.4.3-.8.3-1.3H59c0 .4-.1.8-.2 1.1-.3 1.2-1.1 2.2-2.2 2.6-1.2.5-2.6.8-4 .8-1.1 0-2.2-.2-3.2-.5-1.6-.6-2.9-1.7-3.5-3.2z" }) }), c = r;
|
|
7
|
+
export {
|
|
8
|
+
c as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=Hitachi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hitachi.js","sources":["../../../../../../../../src/components/layout/Header/BrandLogo/Logos/Hitachi/Hitachi.tsx"],"sourcesContent":["import { StyledLettering, StyledSVG } from \"./styles\";\n\nexport type HitachiProps = {\n description?: string;\n letteringColor?: string;\n};\n\nconst Hitachi = ({\n description = \"Hitachi logo\",\n letteringColor\n}: HitachiProps) => {\n return (\n <StyledSVG\n xmlns=\"http://www.w3.org/2000/svg\"\n x={0}\n y={0}\n viewBox=\"0 0 80.5 16.9\"\n xmlSpace=\"preserve\"\n aria-label={description}>\n <StyledLettering\n letteringColor={letteringColor}\n d=\"M63.6 2.5v4.7H70V2.5h3.1v11.9H70V9.2h-6.3v5.2h-3.1V2.5h3zM33.9 2.5v2h-4.8v9.8H26V4.5h-4.8v-2h12.7zM46 14.3h-3.5l-1-2.6h-5.9l-1 2.6h-3.5l5.5-11.9h3.8L46 14.3zm-7.4-9.8-2.2 5.4h4.4l-2.2-5.4M75.6 2.5h3.1v11.9h-3.1zM4.9 2.5v4.7h6.3V2.5h3.1v11.9h-3.1V9.2H4.9v5.2H1.7V2.5h3.2zM16.9 2.5H20v11.9h-3.1zM45.9 11c-.3-.8-.4-1.6-.4-2.5 0-1.2.2-2.4.8-3.4.6-1 1.5-1.8 2.7-2.2 1.1-.4 2.2-.6 3.5-.6 1.4 0 2.7.3 4 .8 1.1.5 2 1.5 2.2 2.7.1.3.1.5.1.8h-3.3c0-.3-.1-.6-.2-.9-.3-.6-.8-1.2-1.5-1.4-.4-.1-.9-.2-1.4-.2-.5 0-1.1.1-1.5.3-.8.3-1.4.9-1.7 1.7-.3.8-.4 1.6-.4 2.5 0 .7.1 1.4.3 2.1.2.9.9 1.6 1.7 1.9.5.2 1.1.3 1.7.3.5 0 1-.1 1.5-.2.6-.2 1.1-.6 1.4-1.2.2-.4.3-.8.3-1.3H59c0 .4-.1.8-.2 1.1-.3 1.2-1.1 2.2-2.2 2.6-1.2.5-2.6.8-4 .8-1.1 0-2.2-.2-3.2-.5-1.6-.6-2.9-1.7-3.5-3.2z\"\n />\n </StyledSVG>\n );\n};\n\nexport default Hitachi;\n"],"names":["Hitachi","description","letteringColor","StyledSVG","jsx","StyledLettering","Hitachi$1"],"mappings":";;AAOA,MAAMA,IAAUA,CAAC;AAAA,EACfC,aAAAA,IAAc;AAAA,EACdC,gBAAAA;AACY,wBAETC,GACC,EAAA,OAAM,8BACN,GAAG,GACH,GAAG,GACH,SAAQ,iBACR,UAAS,YACT,cAAYF,GACZ,UAAA,gBAAAG,EAACC,KACC,gBAAAH,GACA,GAAE,qvBAAovB,CAAA,EAE1vB,CAAA,GAIJI,IAAeN;"}
|