@variocube/app-ui 1.14.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.
Files changed (644) hide show
  1. package/README.md +65 -0
  2. package/esm/AppShell/AppShell.d.ts +12 -0
  3. package/esm/AppShell/AppShell.js +92 -0
  4. package/esm/AppShell/AppShell.js.map +1 -0
  5. package/esm/AppShell/index.d.ts +1 -0
  6. package/esm/AppShell/index.js +2 -0
  7. package/esm/AppShell/index.js.map +1 -0
  8. package/esm/ErrorAlert.d.ts +12 -0
  9. package/esm/ErrorAlert.js +61 -0
  10. package/esm/ErrorAlert.js.map +1 -0
  11. package/esm/Input/ActionsMenu.d.ts +9 -0
  12. package/esm/Input/ActionsMenu.js +29 -0
  13. package/esm/Input/ActionsMenu.js.map +1 -0
  14. package/esm/Input/Checkbox.d.ts +9 -0
  15. package/esm/Input/Checkbox.js +23 -0
  16. package/esm/Input/Checkbox.js.map +1 -0
  17. package/esm/Input/EmailSenderField.d.ts +8 -0
  18. package/esm/Input/EmailSenderField.js +71 -0
  19. package/esm/Input/EmailSenderField.js.map +1 -0
  20. package/esm/Input/NumberField.d.ts +10 -0
  21. package/esm/Input/NumberField.js +94 -0
  22. package/esm/Input/NumberField.js.map +1 -0
  23. package/esm/Input/RadioGroup.d.ts +12 -0
  24. package/esm/Input/RadioGroup.js +20 -0
  25. package/esm/Input/RadioGroup.js.map +1 -0
  26. package/esm/Input/Select.d.ts +11 -0
  27. package/esm/Input/Select.js +19 -0
  28. package/esm/Input/Select.js.map +1 -0
  29. package/esm/Input/Selector.d.ts +10 -0
  30. package/esm/Input/Selector.js +19 -0
  31. package/esm/Input/Selector.js.map +1 -0
  32. package/esm/Input/Switch.d.ts +9 -0
  33. package/esm/Input/Switch.js +23 -0
  34. package/esm/Input/Switch.js.map +1 -0
  35. package/esm/Input/TextField.d.ts +7 -0
  36. package/esm/Input/TextField.js +58 -0
  37. package/esm/Input/TextField.js.map +1 -0
  38. package/esm/Input/UrlUploadField.d.ts +9 -0
  39. package/esm/Input/UrlUploadField.js +43 -0
  40. package/esm/Input/UrlUploadField.js.map +1 -0
  41. package/esm/Input/index.d.ts +9 -0
  42. package/esm/Input/index.js +10 -0
  43. package/esm/Input/index.js.map +1 -0
  44. package/esm/LanguageSwitcher/LanguageSwitcher.d.ts +14 -0
  45. package/esm/LanguageSwitcher/LanguageSwitcher.js +20 -0
  46. package/esm/LanguageSwitcher/LanguageSwitcher.js.map +1 -0
  47. package/esm/LanguageSwitcher/index.d.ts +1 -0
  48. package/esm/LanguageSwitcher/index.js +2 -0
  49. package/esm/LanguageSwitcher/index.js.map +1 -0
  50. package/esm/Paging/Paging.d.ts +40 -0
  51. package/esm/Paging/Paging.js +43 -0
  52. package/esm/Paging/Paging.js.map +1 -0
  53. package/esm/Paging/index.d.ts +1 -0
  54. package/esm/Paging/index.js +2 -0
  55. package/esm/Paging/index.js.map +1 -0
  56. package/esm/VCThemeProvider/JetbrainsMonoFont.d.ts +5 -0
  57. package/esm/VCThemeProvider/JetbrainsMonoFont.js +52 -0
  58. package/esm/VCThemeProvider/JetbrainsMonoFont.js.map +1 -0
  59. package/esm/VCThemeProvider/RobotoFont.d.ts +7 -0
  60. package/esm/VCThemeProvider/RobotoFont.js +49 -0
  61. package/esm/VCThemeProvider/RobotoFont.js.map +1 -0
  62. package/esm/VCThemeProvider/ThemeModeSwitcher.d.ts +2 -0
  63. package/esm/VCThemeProvider/ThemeModeSwitcher.js +14 -0
  64. package/esm/VCThemeProvider/ThemeModeSwitcher.js.map +1 -0
  65. package/esm/VCThemeProvider/VCThemeProvider.d.ts +25 -0
  66. package/esm/VCThemeProvider/VCThemeProvider.js +173 -0
  67. package/esm/VCThemeProvider/VCThemeProvider.js.map +1 -0
  68. package/esm/VCThemeProvider/code-colors.d.ts +108 -0
  69. package/esm/VCThemeProvider/code-colors.js +26 -0
  70. package/esm/VCThemeProvider/code-colors.js.map +1 -0
  71. package/esm/VCThemeProvider/index.d.ts +5 -0
  72. package/esm/VCThemeProvider/index.js +6 -0
  73. package/esm/VCThemeProvider/index.js.map +1 -0
  74. package/esm/audit/AuditChanges.d.ts +9 -0
  75. package/esm/audit/AuditChanges.js +43 -0
  76. package/esm/audit/AuditChanges.js.map +1 -0
  77. package/esm/audit/AuditTimeline.d.ts +6 -0
  78. package/esm/audit/AuditTimeline.js +13 -0
  79. package/esm/audit/AuditTimeline.js.map +1 -0
  80. package/esm/audit/AuditTimelineItem.d.ts +10 -0
  81. package/esm/audit/AuditTimelineItem.js +27 -0
  82. package/esm/audit/AuditTimelineItem.js.map +1 -0
  83. package/esm/audit/index.d.ts +4 -0
  84. package/esm/audit/index.js +5 -0
  85. package/esm/audit/index.js.map +1 -0
  86. package/esm/audit/types.d.ts +42 -0
  87. package/esm/audit/types.js +2 -0
  88. package/esm/audit/types.js.map +1 -0
  89. package/esm/breadcrumbs.d.ts +6 -0
  90. package/esm/breadcrumbs.js +13 -0
  91. package/esm/breadcrumbs.js.map +1 -0
  92. package/esm/code/Code.d.ts +10 -0
  93. package/esm/code/Code.js +19 -0
  94. package/esm/code/Code.js.map +1 -0
  95. package/esm/code/CodeBlock.d.ts +4 -0
  96. package/esm/code/CodeBlock.js +6 -0
  97. package/esm/code/CodeBlock.js.map +1 -0
  98. package/esm/code/Json.d.ts +4 -0
  99. package/esm/code/Json.js +60 -0
  100. package/esm/code/Json.js.map +1 -0
  101. package/esm/code/index.d.ts +3 -0
  102. package/esm/code/index.js +4 -0
  103. package/esm/code/index.js.map +1 -0
  104. package/esm/confirm/ConfirmButton.d.ts +16 -0
  105. package/esm/confirm/ConfirmButton.js +29 -0
  106. package/esm/confirm/ConfirmButton.js.map +1 -0
  107. package/esm/confirm/ConfirmDialog.d.ts +16 -0
  108. package/esm/confirm/ConfirmDialog.js +35 -0
  109. package/esm/confirm/ConfirmDialog.js.map +1 -0
  110. package/esm/confirm/ConfirmIconButton.d.ts +14 -0
  111. package/esm/confirm/ConfirmIconButton.js +29 -0
  112. package/esm/confirm/ConfirmIconButton.js.map +1 -0
  113. package/esm/confirm/ConfirmMenuItem.d.ts +15 -0
  114. package/esm/confirm/ConfirmMenuItem.js +31 -0
  115. package/esm/confirm/ConfirmMenuItem.js.map +1 -0
  116. package/esm/confirm/index.d.ts +4 -0
  117. package/esm/confirm/index.js +5 -0
  118. package/esm/confirm/index.js.map +1 -0
  119. package/esm/container/ContainerLayout.d.ts +8 -0
  120. package/esm/container/ContainerLayout.js +20 -0
  121. package/esm/container/ContainerLayout.js.map +1 -0
  122. package/esm/container/ContainerSettingsContext.d.ts +12 -0
  123. package/esm/container/ContainerSettingsContext.js +46 -0
  124. package/esm/container/ContainerSettingsContext.js.map +1 -0
  125. package/esm/container/ContainerWidthControl.d.ts +6 -0
  126. package/esm/container/ContainerWidthControl.js +12 -0
  127. package/esm/container/ContainerWidthControl.js.map +1 -0
  128. package/esm/container/index.d.ts +3 -0
  129. package/esm/container/index.js +4 -0
  130. package/esm/container/index.js.map +1 -0
  131. package/esm/content-table/ContentTable.d.ts +25 -0
  132. package/esm/content-table/ContentTable.js +87 -0
  133. package/esm/content-table/ContentTable.js.map +1 -0
  134. package/esm/content-table/UndrawEmpty.d.ts +2 -0
  135. package/esm/content-table/UndrawEmpty.js +71 -0
  136. package/esm/content-table/UndrawEmpty.js.map +1 -0
  137. package/esm/content-table/index.d.ts +1 -0
  138. package/esm/content-table/index.js +2 -0
  139. package/esm/content-table/index.js.map +1 -0
  140. package/esm/country/countries.d.ts +34 -0
  141. package/esm/country/countries.js +266 -0
  142. package/esm/country/countries.js.map +1 -0
  143. package/esm/country/country-select.d.ts +8 -0
  144. package/esm/country/country-select.js +18 -0
  145. package/esm/country/country-select.js.map +1 -0
  146. package/esm/country/index.d.ts +5 -0
  147. package/esm/country/index.js +6 -0
  148. package/esm/country/index.js.map +1 -0
  149. package/esm/country/locale-select.d.ts +9 -0
  150. package/esm/country/locale-select.js +15 -0
  151. package/esm/country/locale-select.js.map +1 -0
  152. package/esm/country/locales.d.ts +10 -0
  153. package/esm/country/locales.js +190 -0
  154. package/esm/country/locales.js.map +1 -0
  155. package/esm/country/phone-prefix-select.d.ts +9 -0
  156. package/esm/country/phone-prefix-select.js +18 -0
  157. package/esm/country/phone-prefix-select.js.map +1 -0
  158. package/esm/cube/BoxFeatures.d.ts +11 -0
  159. package/esm/cube/BoxFeatures.js +40 -0
  160. package/esm/cube/BoxFeatures.js.map +1 -0
  161. package/esm/cube/BoxMaintenanceChip.d.ts +9 -0
  162. package/esm/cube/BoxMaintenanceChip.js +15 -0
  163. package/esm/cube/BoxMaintenanceChip.js.map +1 -0
  164. package/esm/cube/BoxNumber.d.ts +6 -0
  165. package/esm/cube/BoxNumber.js +6 -0
  166. package/esm/cube/BoxNumber.js.map +1 -0
  167. package/esm/cube/BoxType.d.ts +7 -0
  168. package/esm/cube/BoxType.js +21 -0
  169. package/esm/cube/BoxType.js.map +1 -0
  170. package/esm/cube/CubeConnectedChip.d.ts +9 -0
  171. package/esm/cube/CubeConnectedChip.js +22 -0
  172. package/esm/cube/CubeConnectedChip.js.map +1 -0
  173. package/esm/cube/LockStatusChip.d.ts +11 -0
  174. package/esm/cube/LockStatusChip.js +40 -0
  175. package/esm/cube/LockStatusChip.js.map +1 -0
  176. package/esm/cube/UtilizationBar.d.ts +11 -0
  177. package/esm/cube/UtilizationBar.js +38 -0
  178. package/esm/cube/UtilizationBar.js.map +1 -0
  179. package/esm/cube/accessibility.d.ts +48 -0
  180. package/esm/cube/accessibility.js +242 -0
  181. package/esm/cube/accessibility.js.map +1 -0
  182. package/esm/cube/index.d.ts +8 -0
  183. package/esm/cube/index.js +9 -0
  184. package/esm/cube/index.js.map +1 -0
  185. package/esm/data-table/DataTable.d.ts +63 -0
  186. package/esm/data-table/DataTable.js +124 -0
  187. package/esm/data-table/DataTable.js.map +1 -0
  188. package/esm/data-table/DataTableColumnSettings.d.ts +10 -0
  189. package/esm/data-table/DataTableColumnSettings.js +98 -0
  190. package/esm/data-table/DataTableColumnSettings.js.map +1 -0
  191. package/esm/data-table/DataTableHeader.d.ts +2 -0
  192. package/esm/data-table/DataTableHeader.js +6 -0
  193. package/esm/data-table/DataTableHeader.js.map +1 -0
  194. package/esm/data-table/DataTableToolbar.d.ts +2 -0
  195. package/esm/data-table/DataTableToolbar.js +6 -0
  196. package/esm/data-table/DataTableToolbar.js.map +1 -0
  197. package/esm/data-table/index.d.ts +8 -0
  198. package/esm/data-table/index.js +9 -0
  199. package/esm/data-table/index.js.map +1 -0
  200. package/esm/data-table/useDataTableColumnStorage.d.ts +5 -0
  201. package/esm/data-table/useDataTableColumnStorage.js +20 -0
  202. package/esm/data-table/useDataTableColumnStorage.js.map +1 -0
  203. package/esm/data-table/useDataTableStorage.d.ts +16 -0
  204. package/esm/data-table/useDataTableStorage.js +19 -0
  205. package/esm/data-table/useDataTableStorage.js.map +1 -0
  206. package/esm/data-table/useSpringPage.d.ts +6 -0
  207. package/esm/data-table/useSpringPage.js +18 -0
  208. package/esm/data-table/useSpringPage.js.map +1 -0
  209. package/esm/data-table/useSpringPageable.d.ts +9 -0
  210. package/esm/data-table/useSpringPageable.js +10 -0
  211. package/esm/data-table/useSpringPageable.js.map +1 -0
  212. package/esm/date-pickers/PlainAdapterCommon.d.ts +31 -0
  213. package/esm/date-pickers/PlainAdapterCommon.js +97 -0
  214. package/esm/date-pickers/PlainAdapterCommon.js.map +1 -0
  215. package/esm/date-pickers/PlainDateAdapter.d.ts +30 -0
  216. package/esm/date-pickers/PlainDateAdapter.js +114 -0
  217. package/esm/date-pickers/PlainDateAdapter.js.map +1 -0
  218. package/esm/date-pickers/PlainDatePicker.d.ts +21 -0
  219. package/esm/date-pickers/PlainDatePicker.js +26 -0
  220. package/esm/date-pickers/PlainDatePicker.js.map +1 -0
  221. package/esm/date-pickers/PlainDatePicker.spec.d.ts +1 -0
  222. package/esm/date-pickers/PlainDatePicker.spec.js +15 -0
  223. package/esm/date-pickers/PlainDatePicker.spec.js.map +1 -0
  224. package/esm/date-pickers/PlainDateTimeAdapter.d.ts +30 -0
  225. package/esm/date-pickers/PlainDateTimeAdapter.js +114 -0
  226. package/esm/date-pickers/PlainDateTimeAdapter.js.map +1 -0
  227. package/esm/date-pickers/PlainDateTimePicker.d.ts +20 -0
  228. package/esm/date-pickers/PlainDateTimePicker.js +26 -0
  229. package/esm/date-pickers/PlainDateTimePicker.js.map +1 -0
  230. package/esm/date-pickers/PlainDateTimePicker.spec.d.ts +1 -0
  231. package/esm/date-pickers/PlainDateTimePicker.spec.js +15 -0
  232. package/esm/date-pickers/PlainDateTimePicker.spec.js.map +1 -0
  233. package/esm/date-pickers/PlainTimeAdapter.d.ts +58 -0
  234. package/esm/date-pickers/PlainTimeAdapter.js +194 -0
  235. package/esm/date-pickers/PlainTimeAdapter.js.map +1 -0
  236. package/esm/date-pickers/PlainTimePicker.d.ts +16 -0
  237. package/esm/date-pickers/PlainTimePicker.js +24 -0
  238. package/esm/date-pickers/PlainTimePicker.js.map +1 -0
  239. package/esm/date-pickers/PlainTimePicker.spec.d.ts +1 -0
  240. package/esm/date-pickers/PlainTimePicker.spec.js +15 -0
  241. package/esm/date-pickers/PlainTimePicker.spec.js.map +1 -0
  242. package/esm/date-pickers/TemporalAdapter.d.ts +18 -0
  243. package/esm/date-pickers/TemporalAdapter.js +109 -0
  244. package/esm/date-pickers/TemporalAdapter.js.map +1 -0
  245. package/esm/date-pickers/TimezoneSelect.d.ts +9 -0
  246. package/esm/date-pickers/TimezoneSelect.js +357 -0
  247. package/esm/date-pickers/TimezoneSelect.js.map +1 -0
  248. package/esm/date-pickers/getFormatString.d.ts +11 -0
  249. package/esm/date-pickers/getFormatString.js +26 -0
  250. package/esm/date-pickers/getFormatString.js.map +1 -0
  251. package/esm/date-pickers/index.d.ts +5 -0
  252. package/esm/date-pickers/index.js +6 -0
  253. package/esm/date-pickers/index.js.map +1 -0
  254. package/esm/date-pickers/parse.d.ts +4 -0
  255. package/esm/date-pickers/parse.js +66 -0
  256. package/esm/date-pickers/parse.js.map +1 -0
  257. package/esm/date-pickers/timeframe-picker.d.ts +46 -0
  258. package/esm/date-pickers/timeframe-picker.js +120 -0
  259. package/esm/date-pickers/timeframe-picker.js.map +1 -0
  260. package/esm/date-pickers/useLocale.d.ts +1 -0
  261. package/esm/date-pickers/useLocale.js +6 -0
  262. package/esm/date-pickers/useLocale.js.map +1 -0
  263. package/esm/date-pickers/useRenderInput.d.ts +4 -0
  264. package/esm/date-pickers/useRenderInput.js +8 -0
  265. package/esm/date-pickers/useRenderInput.js.map +1 -0
  266. package/esm/fetch.d.ts +51 -0
  267. package/esm/fetch.js +138 -0
  268. package/esm/fetch.js.map +1 -0
  269. package/esm/filter/Filter.d.ts +38 -0
  270. package/esm/filter/Filter.js +72 -0
  271. package/esm/filter/Filter.js.map +1 -0
  272. package/esm/filter/index.d.ts +1 -0
  273. package/esm/filter/index.js +2 -0
  274. package/esm/filter/index.js.map +1 -0
  275. package/esm/formats/CompactFormat.d.ts +22 -0
  276. package/esm/formats/CompactFormat.js +21 -0
  277. package/esm/formats/CompactFormat.js.map +1 -0
  278. package/esm/formats/CompactFormat.spec.d.ts +1 -0
  279. package/esm/formats/CompactFormat.spec.js +22 -0
  280. package/esm/formats/CompactFormat.spec.js.map +1 -0
  281. package/esm/formats/CurrencyFormat.d.ts +39 -0
  282. package/esm/formats/CurrencyFormat.js +25 -0
  283. package/esm/formats/CurrencyFormat.js.map +1 -0
  284. package/esm/formats/CurrencyFormat.spec.d.ts +1 -0
  285. package/esm/formats/CurrencyFormat.spec.js +22 -0
  286. package/esm/formats/CurrencyFormat.spec.js.map +1 -0
  287. package/esm/formats/DecimalFormat.d.ts +29 -0
  288. package/esm/formats/DecimalFormat.js +22 -0
  289. package/esm/formats/DecimalFormat.js.map +1 -0
  290. package/esm/formats/DecimalFormat.spec.d.ts +1 -0
  291. package/esm/formats/DecimalFormat.spec.js +22 -0
  292. package/esm/formats/DecimalFormat.spec.js.map +1 -0
  293. package/esm/formats/DurationFormat.d.ts +23 -0
  294. package/esm/formats/DurationFormat.js +35 -0
  295. package/esm/formats/DurationFormat.js.map +1 -0
  296. package/esm/formats/DurationFormat.spec.d.ts +1 -0
  297. package/esm/formats/DurationFormat.spec.js +52 -0
  298. package/esm/formats/DurationFormat.spec.js.map +1 -0
  299. package/esm/formats/RelativeTemporalFormat.d.ts +22 -0
  300. package/esm/formats/RelativeTemporalFormat.js +57 -0
  301. package/esm/formats/RelativeTemporalFormat.js.map +1 -0
  302. package/esm/formats/RelativeTemporalFormat.spec.d.ts +1 -0
  303. package/esm/formats/RelativeTemporalFormat.spec.js +77 -0
  304. package/esm/formats/RelativeTemporalFormat.spec.js.map +1 -0
  305. package/esm/formats/SwitchableTemporalFormat.d.ts +5 -0
  306. package/esm/formats/SwitchableTemporalFormat.js +11 -0
  307. package/esm/formats/SwitchableTemporalFormat.js.map +1 -0
  308. package/esm/formats/TemporalFormat.d.ts +27 -0
  309. package/esm/formats/TemporalFormat.js +19 -0
  310. package/esm/formats/TemporalFormat.js.map +1 -0
  311. package/esm/formats/TemporalFormat.spec.d.ts +1 -0
  312. package/esm/formats/TemporalFormat.spec.js +87 -0
  313. package/esm/formats/TemporalFormat.spec.js.map +1 -0
  314. package/esm/formats/TemporalRangeFormat.d.ts +30 -0
  315. package/esm/formats/TemporalRangeFormat.js +17 -0
  316. package/esm/formats/TemporalRangeFormat.js.map +1 -0
  317. package/esm/formats/TemporalRangeFormat.spec.d.ts +1 -0
  318. package/esm/formats/TemporalRangeFormat.spec.js +87 -0
  319. package/esm/formats/TemporalRangeFormat.spec.js.map +1 -0
  320. package/esm/formats/index.d.ts +8 -0
  321. package/esm/formats/index.js +9 -0
  322. package/esm/formats/index.js.map +1 -0
  323. package/esm/formats/types.d.ts +2 -0
  324. package/esm/formats/types.js +2 -0
  325. package/esm/formats/types.js.map +1 -0
  326. package/esm/formats/useDateTimeFormat.d.ts +2 -0
  327. package/esm/formats/useDateTimeFormat.js +7 -0
  328. package/esm/formats/useDateTimeFormat.js.map +1 -0
  329. package/esm/formats/useNumberFormat.d.ts +1 -0
  330. package/esm/formats/useNumberFormat.js +6 -0
  331. package/esm/formats/useNumberFormat.js.map +1 -0
  332. package/esm/formats/useRelativeTimeFormat.d.ts +1 -0
  333. package/esm/formats/useRelativeTimeFormat.js +6 -0
  334. package/esm/formats/useRelativeTimeFormat.js.map +1 -0
  335. package/esm/forms/EditForm.d.ts +13 -0
  336. package/esm/forms/EditForm.js +22 -0
  337. package/esm/forms/EditForm.js.map +1 -0
  338. package/esm/forms/SearchForm.d.ts +7 -0
  339. package/esm/forms/SearchForm.js +36 -0
  340. package/esm/forms/SearchForm.js.map +1 -0
  341. package/esm/forms/SubmitButton.d.ts +9 -0
  342. package/esm/forms/SubmitButton.js +28 -0
  343. package/esm/forms/SubmitButton.js.map +1 -0
  344. package/esm/forms/index.d.ts +4 -0
  345. package/esm/forms/index.js +5 -0
  346. package/esm/forms/index.js.map +1 -0
  347. package/esm/forms/useFormSubmit.d.ts +12 -0
  348. package/esm/forms/useFormSubmit.js +28 -0
  349. package/esm/forms/useFormSubmit.js.map +1 -0
  350. package/esm/getNavigatorLanguages.d.ts +5 -0
  351. package/esm/getNavigatorLanguages.js +11 -0
  352. package/esm/getNavigatorLanguages.js.map +1 -0
  353. package/esm/getSupportedFormatLocale.d.ts +19 -0
  354. package/esm/getSupportedFormatLocale.js +21 -0
  355. package/esm/getSupportedFormatLocale.js.map +1 -0
  356. package/esm/help/HelpButton.d.ts +12 -0
  357. package/esm/help/HelpButton.js +74 -0
  358. package/esm/help/HelpButton.js.map +1 -0
  359. package/esm/help/HelpDrawer.d.ts +3 -0
  360. package/esm/help/HelpDrawer.js +48 -0
  361. package/esm/help/HelpDrawer.js.map +1 -0
  362. package/esm/help/HelpSettingsContext.d.ts +26 -0
  363. package/esm/help/HelpSettingsContext.js +94 -0
  364. package/esm/help/HelpSettingsContext.js.map +1 -0
  365. package/esm/help/index.d.ts +3 -0
  366. package/esm/help/index.js +4 -0
  367. package/esm/help/index.js.map +1 -0
  368. package/esm/icons.d.ts +21 -0
  369. package/esm/icons.js +22 -0
  370. package/esm/icons.js.map +1 -0
  371. package/esm/index.d.ts +34 -0
  372. package/esm/index.js +35 -0
  373. package/esm/index.js.map +1 -0
  374. package/esm/layout/ErrorBoundary.d.ts +46 -0
  375. package/esm/layout/ErrorBoundary.js +186 -0
  376. package/esm/layout/ErrorBoundary.js.map +1 -0
  377. package/esm/layout/NotFound.d.ts +9 -0
  378. package/esm/layout/NotFound.js +26 -0
  379. package/esm/layout/NotFound.js.map +1 -0
  380. package/esm/layout/NotFoundSvg.d.ts +2 -0
  381. package/esm/layout/NotFoundSvg.js +37 -0
  382. package/esm/layout/NotFoundSvg.js.map +1 -0
  383. package/esm/layout/UserNav.d.ts +15 -0
  384. package/esm/layout/UserNav.js +50 -0
  385. package/esm/layout/UserNav.js.map +1 -0
  386. package/esm/layout/index.d.ts +5 -0
  387. package/esm/layout/index.js +6 -0
  388. package/esm/layout/index.js.map +1 -0
  389. package/esm/layout/layout-context.d.ts +9 -0
  390. package/esm/layout/layout-context.js +23 -0
  391. package/esm/layout/layout-context.js.map +1 -0
  392. package/esm/layout/page-title.d.ts +7 -0
  393. package/esm/layout/page-title.js +41 -0
  394. package/esm/layout/page-title.js.map +1 -0
  395. package/esm/list/List.d.ts +14 -0
  396. package/esm/list/List.js +25 -0
  397. package/esm/list/List.js.map +1 -0
  398. package/esm/list/SkeletonListItem.d.ts +14 -0
  399. package/esm/list/SkeletonListItem.js +11 -0
  400. package/esm/list/SkeletonListItem.js.map +1 -0
  401. package/esm/list/index.d.ts +1 -0
  402. package/esm/list/index.js +2 -0
  403. package/esm/list/index.js.map +1 -0
  404. package/esm/localization.d.ts +140 -0
  405. package/esm/localization.js +200 -0
  406. package/esm/localization.js.map +1 -0
  407. package/esm/logo/Logo.d.ts +7 -0
  408. package/esm/logo/Logo.js +29 -0
  409. package/esm/logo/Logo.js.map +1 -0
  410. package/esm/logo/VCAppLogo.d.ts +7 -0
  411. package/esm/logo/VCAppLogo.js +28 -0
  412. package/esm/logo/VCAppLogo.js.map +1 -0
  413. package/esm/logo/VCLogo.d.ts +4 -0
  414. package/esm/logo/VCLogo.js +33 -0
  415. package/esm/logo/VCLogo.js.map +1 -0
  416. package/esm/logo/VCLogoIcon.d.ts +4 -0
  417. package/esm/logo/VCLogoIcon.js +36 -0
  418. package/esm/logo/VCLogoIcon.js.map +1 -0
  419. package/esm/logo/index.d.ts +4 -0
  420. package/esm/logo/index.js +5 -0
  421. package/esm/logo/index.js.map +1 -0
  422. package/esm/splash/index.d.ts +3 -0
  423. package/esm/splash/index.js +37 -0
  424. package/esm/splash/index.js.map +1 -0
  425. package/esm/spring.d.ts +14 -0
  426. package/esm/spring.js +2 -0
  427. package/esm/spring.js.map +1 -0
  428. package/esm/storage/MemoryStorage.d.ts +7 -0
  429. package/esm/storage/MemoryStorage.js +18 -0
  430. package/esm/storage/MemoryStorage.js.map +1 -0
  431. package/esm/storage/index.d.ts +2 -0
  432. package/esm/storage/index.js +3 -0
  433. package/esm/storage/index.js.map +1 -0
  434. package/esm/storage/storage.d.ts +16 -0
  435. package/esm/storage/storage.js +87 -0
  436. package/esm/storage/storage.js.map +1 -0
  437. package/esm/storage/useStorage.d.ts +1 -0
  438. package/esm/storage/useStorage.js +29 -0
  439. package/esm/storage/useStorage.js.map +1 -0
  440. package/esm/tabs/Tabs.d.ts +10 -0
  441. package/esm/tabs/Tabs.js +95 -0
  442. package/esm/tabs/Tabs.js.map +1 -0
  443. package/esm/tabs/index.d.ts +1 -0
  444. package/esm/tabs/index.js +2 -0
  445. package/esm/tabs/index.js.map +1 -0
  446. package/esm/temporal/index.d.ts +2 -0
  447. package/esm/temporal/index.js +3 -0
  448. package/esm/temporal/index.js.map +1 -0
  449. package/esm/temporal/parse.d.ts +4 -0
  450. package/esm/temporal/parse.js +25 -0
  451. package/esm/temporal/parse.js.map +1 -0
  452. package/esm/temporal/polyfill.d.ts +34 -0
  453. package/esm/temporal/polyfill.js +10 -0
  454. package/esm/temporal/polyfill.js.map +1 -0
  455. package/esm/utils/defined.d.ts +1 -0
  456. package/esm/utils/defined.js +4 -0
  457. package/esm/utils/defined.js.map +1 -0
  458. package/esm/utils/index.d.ts +3 -0
  459. package/esm/utils/index.js +4 -0
  460. package/esm/utils/index.js.map +1 -0
  461. package/esm/utils/useFlag.d.ts +1 -0
  462. package/esm/utils/useFlag.js +9 -0
  463. package/esm/utils/useFlag.js.map +1 -0
  464. package/esm/utils/useIsMounted.d.ts +1 -0
  465. package/esm/utils/useIsMounted.js +12 -0
  466. package/esm/utils/useIsMounted.js.map +1 -0
  467. package/esm/view/View.d.ts +9 -0
  468. package/esm/view/View.js +22 -0
  469. package/esm/view/View.js.map +1 -0
  470. package/esm/view/ViewHeader.d.ts +10 -0
  471. package/esm/view/ViewHeader.js +15 -0
  472. package/esm/view/ViewHeader.js.map +1 -0
  473. package/esm/view/index.d.ts +2 -0
  474. package/esm/view/index.js +3 -0
  475. package/esm/view/index.js.map +1 -0
  476. package/package.json +72 -0
  477. package/src/AppShell/AppShell.tsx +165 -0
  478. package/src/AppShell/index.tsx +1 -0
  479. package/src/ErrorAlert.tsx +71 -0
  480. package/src/Input/ActionsMenu.tsx +102 -0
  481. package/src/Input/Checkbox.tsx +33 -0
  482. package/src/Input/EmailSenderField.tsx +64 -0
  483. package/src/Input/NumberField.tsx +127 -0
  484. package/src/Input/RadioGroup.tsx +37 -0
  485. package/src/Input/Select.tsx +33 -0
  486. package/src/Input/Selector.tsx +21 -0
  487. package/src/Input/Switch.tsx +33 -0
  488. package/src/Input/TextField.tsx +69 -0
  489. package/src/Input/UrlUploadField.tsx +84 -0
  490. package/src/Input/index.ts +9 -0
  491. package/src/LanguageSwitcher/LanguageSwitcher.tsx +63 -0
  492. package/src/LanguageSwitcher/index.ts +1 -0
  493. package/src/Paging/Paging.ts +77 -0
  494. package/src/Paging/index.ts +1 -0
  495. package/src/VCThemeProvider/JetbrainsMonoFont.tsx +55 -0
  496. package/src/VCThemeProvider/RobotoFont.tsx +52 -0
  497. package/src/VCThemeProvider/ThemeModeSwitcher.tsx +23 -0
  498. package/src/VCThemeProvider/VCThemeProvider.tsx +232 -0
  499. package/src/VCThemeProvider/code-colors.ts +34 -0
  500. package/src/VCThemeProvider/files.d.ts +2 -0
  501. package/src/VCThemeProvider/index.ts +5 -0
  502. package/src/audit/AuditChanges.tsx +82 -0
  503. package/src/audit/AuditTimeline.tsx +25 -0
  504. package/src/audit/AuditTimelineItem.tsx +75 -0
  505. package/src/audit/index.ts +4 -0
  506. package/src/audit/types.ts +46 -0
  507. package/src/breadcrumbs.tsx +27 -0
  508. package/src/code/Code.tsx +53 -0
  509. package/src/code/CodeBlock.tsx +15 -0
  510. package/src/code/Json.tsx +73 -0
  511. package/src/code/index.ts +3 -0
  512. package/src/confirm/ConfirmButton.tsx +69 -0
  513. package/src/confirm/ConfirmDialog.tsx +68 -0
  514. package/src/confirm/ConfirmIconButton.tsx +62 -0
  515. package/src/confirm/ConfirmMenuItem.tsx +66 -0
  516. package/src/confirm/index.ts +4 -0
  517. package/src/container/ContainerLayout.tsx +40 -0
  518. package/src/container/ContainerSettingsContext.tsx +77 -0
  519. package/src/container/ContainerWidthControl.tsx +20 -0
  520. package/src/container/index.ts +3 -0
  521. package/src/content-table/ContentTable.tsx +214 -0
  522. package/src/content-table/UndrawEmpty.tsx +285 -0
  523. package/src/content-table/index.ts +1 -0
  524. package/src/country/countries.ts +268 -0
  525. package/src/country/country-select.tsx +48 -0
  526. package/src/country/index.ts +5 -0
  527. package/src/country/locale-select.tsx +43 -0
  528. package/src/country/locales.ts +192 -0
  529. package/src/country/phone-prefix-select.tsx +50 -0
  530. package/src/cube/BoxFeatures.tsx +91 -0
  531. package/src/cube/BoxMaintenanceChip.tsx +33 -0
  532. package/src/cube/BoxNumber.tsx +10 -0
  533. package/src/cube/BoxType.tsx +22 -0
  534. package/src/cube/CubeConnectedChip.tsx +16 -0
  535. package/src/cube/LockStatusChip.tsx +54 -0
  536. package/src/cube/UtilizationBar.tsx +94 -0
  537. package/src/cube/accessibility.tsx +422 -0
  538. package/src/cube/index.tsx +8 -0
  539. package/src/data-table/DataTable.tsx +338 -0
  540. package/src/data-table/DataTableColumnSettings.tsx +204 -0
  541. package/src/data-table/DataTableHeader.tsx +10 -0
  542. package/src/data-table/DataTableToolbar.tsx +10 -0
  543. package/src/data-table/index.tsx +8 -0
  544. package/src/data-table/useDataTableColumnStorage.ts +26 -0
  545. package/src/data-table/useDataTableStorage.ts +43 -0
  546. package/src/data-table/useSpringPage.ts +21 -0
  547. package/src/data-table/useSpringPageable.ts +25 -0
  548. package/src/date-pickers/PlainAdapterCommon.ts +125 -0
  549. package/src/date-pickers/PlainDateAdapter.spec.ts +50 -0
  550. package/src/date-pickers/PlainDateAdapter.ts +139 -0
  551. package/src/date-pickers/PlainDatePicker.spec.tsx +22 -0
  552. package/src/date-pickers/PlainDatePicker.tsx +73 -0
  553. package/src/date-pickers/PlainDateTimeAdapter.spec.ts +50 -0
  554. package/src/date-pickers/PlainDateTimeAdapter.ts +140 -0
  555. package/src/date-pickers/PlainDateTimePicker.spec.tsx +22 -0
  556. package/src/date-pickers/PlainDateTimePicker.tsx +65 -0
  557. package/src/date-pickers/PlainTimeAdapter.ts +247 -0
  558. package/src/date-pickers/PlainTimePicker.spec.tsx +22 -0
  559. package/src/date-pickers/PlainTimePicker.tsx +45 -0
  560. package/src/date-pickers/TemporalAdapter.ts +150 -0
  561. package/src/date-pickers/TimezoneSelect.tsx +387 -0
  562. package/src/date-pickers/getFormatString.ts +38 -0
  563. package/src/date-pickers/index.ts +5 -0
  564. package/src/date-pickers/parse.spec.ts +43 -0
  565. package/src/date-pickers/parse.ts +72 -0
  566. package/src/date-pickers/timeframe-picker.tsx +202 -0
  567. package/src/date-pickers/useLocale.ts +6 -0
  568. package/src/date-pickers/useRenderInput.tsx +20 -0
  569. package/src/fetch.spec.ts +85 -0
  570. package/src/fetch.ts +165 -0
  571. package/src/filter/Filter.tsx +194 -0
  572. package/src/filter/index.ts +1 -0
  573. package/src/formats/CompactFormat.spec.tsx +25 -0
  574. package/src/formats/CompactFormat.tsx +48 -0
  575. package/src/formats/CurrencyFormat.spec.tsx +25 -0
  576. package/src/formats/CurrencyFormat.tsx +77 -0
  577. package/src/formats/DecimalFormat.spec.tsx +25 -0
  578. package/src/formats/DecimalFormat.tsx +59 -0
  579. package/src/formats/DurationFormat.spec.tsx +57 -0
  580. package/src/formats/DurationFormat.tsx +72 -0
  581. package/src/formats/RelativeTemporalFormat.spec.tsx +84 -0
  582. package/src/formats/RelativeTemporalFormat.tsx +86 -0
  583. package/src/formats/SwitchableTemporalFormat.tsx +17 -0
  584. package/src/formats/TemporalFormat.spec.tsx +110 -0
  585. package/src/formats/TemporalFormat.tsx +58 -0
  586. package/src/formats/TemporalRangeFormat.spec.tsx +159 -0
  587. package/src/formats/TemporalRangeFormat.tsx +62 -0
  588. package/src/formats/index.ts +8 -0
  589. package/src/formats/types.ts +4 -0
  590. package/src/formats/useDateTimeFormat.ts +7 -0
  591. package/src/formats/useNumberFormat.ts +6 -0
  592. package/src/formats/useRelativeTimeFormat.ts +6 -0
  593. package/src/forms/EditForm.tsx +69 -0
  594. package/src/forms/SearchForm.tsx +51 -0
  595. package/src/forms/SubmitButton.tsx +34 -0
  596. package/src/forms/index.ts +4 -0
  597. package/src/forms/useFormSubmit.tsx +28 -0
  598. package/src/getNavigatorLanguages.ts +11 -0
  599. package/src/getSupportedFormatLocale.ts +24 -0
  600. package/src/help/HelpButton.tsx +134 -0
  601. package/src/help/HelpDrawer.tsx +65 -0
  602. package/src/help/HelpSettingsContext.tsx +178 -0
  603. package/src/help/index.ts +3 -0
  604. package/src/icons.ts +23 -0
  605. package/src/index.ts +34 -0
  606. package/src/layout/ErrorBoundary.tsx +232 -0
  607. package/src/layout/NotFound.tsx +51 -0
  608. package/src/layout/NotFoundSvg.tsx +172 -0
  609. package/src/layout/UserNav.tsx +107 -0
  610. package/src/layout/index.ts +5 -0
  611. package/src/layout/layout-context.tsx +40 -0
  612. package/src/layout/page-title.tsx +33 -0
  613. package/src/list/List.tsx +40 -0
  614. package/src/list/SkeletonListItem.tsx +50 -0
  615. package/src/list/index.tsx +1 -0
  616. package/src/localization.tsx +404 -0
  617. package/src/logo/Logo.tsx +35 -0
  618. package/src/logo/VCAppLogo.tsx +28 -0
  619. package/src/logo/VCLogo.tsx +56 -0
  620. package/src/logo/VCLogoIcon.tsx +55 -0
  621. package/src/logo/V_C_LOGO.svg +1 -0
  622. package/src/logo/V_C_LOGO_ICON.svg +1 -0
  623. package/src/logo/V_C_LOGO_ICON_WHITE.svg +1 -0
  624. package/src/logo/V_C_LOGO_WHITE.svg +1 -0
  625. package/src/logo/index.tsx +4 -0
  626. package/src/splash/index.tsx +34 -0
  627. package/src/splash/template.html +86 -0
  628. package/src/spring.ts +15 -0
  629. package/src/storage/MemoryStorage.ts +21 -0
  630. package/src/storage/index.ts +2 -0
  631. package/src/storage/storage.ts +97 -0
  632. package/src/storage/useStorage.ts +35 -0
  633. package/src/tabs/Tabs.tsx +187 -0
  634. package/src/tabs/index.ts +1 -0
  635. package/src/temporal/index.ts +2 -0
  636. package/src/temporal/parse.ts +29 -0
  637. package/src/temporal/polyfill.ts +36 -0
  638. package/src/utils/defined.ts +4 -0
  639. package/src/utils/index.ts +3 -0
  640. package/src/utils/useFlag.ts +9 -0
  641. package/src/utils/useIsMounted.ts +12 -0
  642. package/src/view/View.tsx +22 -0
  643. package/src/view/ViewHeader.tsx +35 -0
  644. package/src/view/index.ts +2 -0
@@ -0,0 +1,186 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import React, { Component, Fragment } from "react";
11
+ import { Accordion, AccordionDetails, AccordionSummary, Box, Typography } from "@mui/material";
12
+ import { NotFoundSvg } from "./NotFoundSvg";
13
+ import ErrorStackParser from "error-stack-parser";
14
+ import { ExpandMore } from "@mui/icons-material";
15
+ const codeSx = {
16
+ background: '#263238',
17
+ color: '#fff',
18
+ fontSize: '0.8rem',
19
+ padding: 1,
20
+ borderRadius: '3px',
21
+ overflowX: 'auto',
22
+ width: '100%'
23
+ };
24
+ export class ErrorBoundary extends Component {
25
+ constructor(props) {
26
+ super(props);
27
+ this.state = {
28
+ hasError: false
29
+ };
30
+ }
31
+ /**
32
+ * This lifecycle is invoked after an error has been thrown by a descendant component.
33
+ * It receives the error that was thrown as a parameter and should return a value to update state.
34
+ * @param error
35
+ * @doc https://reactjs.org/docs/react-component.html#static-getderivedstatefromerror
36
+ */
37
+ static getDerivedStateFromError(error) {
38
+ // Store error context
39
+ ErrorBoundary.errorContext = {
40
+ url: location.href,
41
+ referrer: document.referrer,
42
+ userAgent: navigator.userAgent,
43
+ error
44
+ };
45
+ // Update state so the next render will show the fallback UI
46
+ return { hasError: true };
47
+ }
48
+ componentDidCatch(error, errorInfo) {
49
+ console.error('An error occurred', { error, errorInfo });
50
+ }
51
+ reportBugsnag() {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ if (!this.props.bugsnagConfig) {
54
+ console.warn('Bugsnag not configured. Skip reporting to bugsnag.');
55
+ return;
56
+ }
57
+ if (!ErrorBoundary.errorContext) {
58
+ console.warn('Error context not specified. Cannot report to bugsnag.');
59
+ return;
60
+ }
61
+ const { bugsnagConfig: { apiKey, getUser } } = this.props;
62
+ const { error, url, referrer, userAgent } = ErrorBoundary.errorContext;
63
+ const stackTraces = ErrorStackParser.parse(error)
64
+ .map(({ fileName: file, lineNumber, columnNumber, functionName: method }) => ({
65
+ file,
66
+ lineNumber,
67
+ columnNumber,
68
+ method
69
+ }));
70
+ const payload = {
71
+ apiKey,
72
+ payloadVersion: '5',
73
+ notifier: {
74
+ name: "variocube app-ui",
75
+ version: '1.0.11',
76
+ url: 'https://github.com'
77
+ },
78
+ events: [
79
+ {
80
+ exceptions: [{
81
+ errorClass: error.message,
82
+ stacktrace: stackTraces,
83
+ type: 'browserjs'
84
+ }],
85
+ request: {
86
+ httpMethod: '',
87
+ url,
88
+ referrer
89
+ },
90
+ user: getUser(),
91
+ metaData: {
92
+ userAgent: { userAgent },
93
+ sessionStorage: sessionStorage,
94
+ localStorage: localStorage
95
+ }
96
+ }
97
+ ]
98
+ };
99
+ try {
100
+ const response = yield fetch('https://notify.bugsnag.com/', {
101
+ method: 'POST',
102
+ body: JSON.stringify(payload)
103
+ });
104
+ if (response.ok) {
105
+ console.info('successfully reported error to bugsnag');
106
+ }
107
+ }
108
+ catch (error) {
109
+ console.log('failed to report error to bugsnag', error);
110
+ }
111
+ });
112
+ }
113
+ renderStorage(storage) {
114
+ const { anonymizeStorageKeyPatterns = [] } = this.props;
115
+ const kv = [];
116
+ for (let i = 0; i < storage.length; i++) {
117
+ const key = storage.key(i);
118
+ if (key) {
119
+ let value = storage.getItem(key);
120
+ if (value && anonymizeStorageKeyPatterns.find(p => key.indexOf(p) > -1)) {
121
+ value = "*****";
122
+ }
123
+ kv.push({ key, value });
124
+ }
125
+ }
126
+ if (kv.length === 0)
127
+ return React.createElement(Box, { component: "code", sx: Object.assign(Object.assign({}, codeSx), { mb: 2 }) }, "NONE");
128
+ return kv
129
+ .sort((x, y) => x.key.localeCompare(y.key))
130
+ .map((o, i) => {
131
+ let value = o.value;
132
+ try {
133
+ value = JSON.stringify(JSON.parse(value), null, 3);
134
+ }
135
+ catch (error) {
136
+ console.log('cannot parse value', error);
137
+ }
138
+ return (React.createElement(Fragment, { key: 'kv-' + i },
139
+ React.createElement(Typography, { variant: "caption" }, o.key),
140
+ React.createElement(Box, { component: "code", sx: Object.assign(Object.assign({}, codeSx), { mb: 2 }) }, value)));
141
+ });
142
+ }
143
+ render() {
144
+ if (!this.state.hasError)
145
+ return this.props.children;
146
+ this.reportBugsnag()
147
+ .catch(err => console.error('failed to report to bugsnag', err));
148
+ const { errorContext: { error, url, referrer, userAgent } = {} } = ErrorBoundary;
149
+ return (React.createElement(Box, { p: 3 },
150
+ React.createElement(NotFoundSvg, { style: { width: '100%', maxHeight: 300 } }),
151
+ React.createElement(Box, { p: 4 }),
152
+ React.createElement(Typography, { variant: "h2", align: "center" }, "Oops, something went wrong!"),
153
+ React.createElement(Box, { p: 2 }),
154
+ React.createElement(Accordion, null,
155
+ React.createElement(AccordionSummary, { expandIcon: React.createElement(ExpandMore, null) },
156
+ React.createElement(Typography, null, error === null || error === void 0 ? void 0 : error.message)),
157
+ React.createElement(AccordionDetails, { sx: {
158
+ display: 'flex',
159
+ flexDirection: 'column'
160
+ } },
161
+ React.createElement(Typography, { variant: "overline" },
162
+ React.createElement("strong", null, "URL")),
163
+ React.createElement(Box, { component: "code", sx: codeSx }, url),
164
+ React.createElement(Box, { my: 1 }),
165
+ React.createElement(Typography, { variant: "overline" },
166
+ React.createElement("strong", null, "Referrer")),
167
+ React.createElement(Box, { component: "code", sx: codeSx }, referrer),
168
+ React.createElement(Box, { my: 1 }),
169
+ React.createElement(Typography, { variant: "overline" },
170
+ React.createElement("strong", null, "User-Agent")),
171
+ React.createElement(Box, { component: "code", sx: codeSx }, userAgent),
172
+ React.createElement(Box, { my: 1 }),
173
+ React.createElement(Typography, { variant: "overline" },
174
+ React.createElement("strong", null, "Trace")),
175
+ React.createElement(Box, { component: "code", sx: codeSx }, error === null || error === void 0 ? void 0 : error.stack),
176
+ React.createElement(Box, { my: 1 }),
177
+ React.createElement(Typography, { variant: "overline" },
178
+ React.createElement("strong", null, "Session Storage")),
179
+ this.renderStorage(sessionStorage),
180
+ React.createElement(Box, { my: 1 }),
181
+ React.createElement(Typography, { variant: "overline" },
182
+ React.createElement("strong", null, "Local Storage")),
183
+ this.renderStorage(localStorage)))));
184
+ }
185
+ }
186
+ //# sourceMappingURL=ErrorBoundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../src/layout/ErrorBoundary.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAa,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAC,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AA4C/C,MAAM,MAAM,GAAG;IACX,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,CAAC;IACV,YAAY,EAAE,KAAK;IACnB,SAAS,EAAE,MAAM;IACjB,KAAK,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,OAAO,aAAc,SAAQ,SAAwB;IAEvD,YAAY,KAAU;QAClB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,QAAQ,EAAE,KAAK;SAClB,CAAA;IACL,CAAC;IAID;;;;;OAKG;IACH,MAAM,CAAC,wBAAwB,CAAC,KAAU;QACtC,sBAAsB;QACtB,aAAa,CAAC,YAAY,GAAG;YACzB,GAAG,EAAE,QAAQ,CAAC,IAAI;YAClB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,SAAS,EAAE,SAAS,CAAC,SAAS;YAC9B,KAAK;SACR,CAAC;QACF,4DAA4D;QAC5D,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9B,CAAC;IAED,iBAAiB,CAAC,KAAY,EAAE,SAAoB;QAChD,O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,MAAM,IAAG,SAAS,CAAO;oBACnD,oBAAC,GAAG,IAAC,EAAE,EAAE,CAAC,GAAI;oBACd,oBAAC,UAAU,IAAC,OAAO,EAAC,UAAU;wBAAC,4CAAsB,CAAa;oBAClE,oBAAC,GAAG,IAAC,SAAS,EAAC,MAAM,EAAC,EAAE,EAAE,MAAM,IAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,CAAO;oBACtD,oBAAC,GAAG,IAAC,EAAE,EAAE,CAAC,GAAI;oBACd,oBAAC,UAAU,IAAC,OAAO,EAAC,UAAU;wBAAC,sDAAgC,CAAa;oBAC3E,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC;oBACnC,oBAAC,GAAG,IAAC,EAAE,EAAE,CAAC,GAAI;oBACd,oBAAC,UAAU,IAAC,OAAO,EAAC,UAAU;wBAAC,oDAA8B,CAAa;oBACzE,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,CAClB,CACX,CACV,CACT,CAAA;IACL,CAAC;CACJ"}
@@ -0,0 +1,9 @@
1
+ import { ReactElement } from "react";
2
+ interface NotFoundProps {
3
+ svg?: ReactElement;
4
+ errorMsg?: string;
5
+ pathMsg?: string;
6
+ backToHomeMsg?: string;
7
+ }
8
+ export declare function NotFound(props: NotFoundProps): JSX.Element;
9
+ export {};
@@ -0,0 +1,26 @@
1
+ import { Button, Grid, Stack, Typography } from "@mui/material";
2
+ import { NotFoundSvg } from "./NotFoundSvg";
3
+ import { ContainerLayout } from "../container";
4
+ import React from "react";
5
+ export function NotFound(props) {
6
+ const { svg, errorMsg, pathMsg, backToHomeMsg } = props;
7
+ const path = window.location.pathname;
8
+ const defaultErrorMsg = "404: Not Found";
9
+ const defaultPathMsg = "We could not find the following path:";
10
+ const defaultBackToHomeMsg = "Back to Home";
11
+ return (React.createElement(ContainerLayout, null,
12
+ React.createElement(Stack, { direction: "column", alignItems: "center" },
13
+ !svg &&
14
+ React.createElement(NotFoundSvg, { style: { width: '100%', maxHeight: 300 } }),
15
+ svg &&
16
+ svg),
17
+ React.createElement(Grid, { container: true, spacing: 6 },
18
+ React.createElement(Grid, { item: true, xs: 12 },
19
+ React.createElement(Typography, { variant: "h3", align: "center" }, errorMsg != "" ? errorMsg : defaultErrorMsg),
20
+ React.createElement(Typography, { variant: "body1", align: "center" }, pathMsg != "" ? pathMsg : defaultPathMsg),
21
+ React.createElement(Typography, { variant: "body1", align: "center" }, path)),
22
+ React.createElement(Grid, { item: true, xs: 12 },
23
+ React.createElement(Typography, { variant: "body1", align: "center" },
24
+ React.createElement(Button, { href: "/" }, backToHomeMsg != "" ? backToHomeMsg : defaultBackToHomeMsg))))));
25
+ }
26
+ //# sourceMappingURL=NotFound.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../src/layout/NotFound.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAC3C,MAAM,EAAC,GAAG,EAAE,QAAQ,EAAC,OAAO,EAAE,aAAa,EAAC,GAAG,KAAK,CAAC;IAErD,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAEtC,MAAM,eAAe,GAAG,gBAAgB,CAAC;IACzC,MAAM,cAAc,GAAG,uCAAuC,CAAC;IAC/D,MAAM,oBAAoB,GAAG,cAAc,CAAC;IAE5C,OAAO,CACL,oBAAC,eAAe;QACd,oBAAC,KAAK,IACJ,SAAS,EAAC,QAAQ,EAClB,UAAU,EAAC,QAAQ;YAElB,CAAC,GAAG;gBACD,oBAAC,WAAW,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,GAAI;YAE5D,GAAG;gBACF,GAAG,CAEC;QACR,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;YACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE;gBACf,oBAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAC,QAAQ,IAAE,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAc;gBAClG,oBAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,IAAE,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAc;gBAClG,oBAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ,IAAE,IAAI,CAAc,CAEzD;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE;gBACf,oBAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ;oBACxC,oBAAC,MAAM,IAAC,IAAI,EAAC,GAAG,IAAE,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB,CAAU,CAC3E,CACR,CACF,CACS,CACnB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from "react";
2
+ export declare function NotFoundSvg(props: SVGProps<SVGSVGElement>): JSX.Element;
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ export function NotFoundSvg(props) {
3
+ return (React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1120.592", height: "777.916", "data-name": "Layer 1", viewBox: "0 0 1120.592 777.916" }, props),
4
+ React.createElement("circle", { cx: "212.592", cy: "103", r: "64", fill: "#ff6584" }),
5
+ React.createElement("path", { fill: "#f2f2f2", d: "M563.68 404.164c0 151.011-89.774 203.739-200.515 203.739s-200.516-52.728-200.516-203.74 200.516-343.12 200.516-343.12 200.515 192.11 200.515 343.12z", transform: "translate(-39.704 -61.042)" }),
6
+ React.createElement("path", { fill: "#3f3d56", d: "M316.156 523.761L318.21 397.378 403.674 241.024 318.532 377.552 319.455 320.725 378.357 207.605 319.699 305.687 319.699 305.687 321.359 203.481 384.433 113.423 321.621 187.409 322.658 0 316.138 248.096 316.674 237.861 252.547 139.704 315.646 257.508 309.671 371.654 309.493 368.625 235.565 265.329 309.269 379.328 308.522 393.603 308.388 393.818 308.449 394.99 293.29 684.589 313.544 684.589 315.974 535.005 389.496 421.285 316.156 523.761z" }),
7
+ React.createElement("path", { fill: "#f2f2f2", d: "M1160.296 466.014c0 123.61-73.484 166.77-164.131 166.77s-164.132-43.16-164.132-166.77 164.132-280.862 164.132-280.862 164.131 157.252 164.131 280.862z", transform: "translate(-39.704 -61.042)" }),
8
+ React.createElement("path", { fill: "#3f3d56", d: "M950.482 552.833L952.162 449.383 1022.119 321.4 952.426 433.154 953.182 386.639 1001.396 294.044 953.382 374.329 953.382 374.329 954.741 290.669 1006.369 216.952 954.954 277.514 955.804 124.11 950.467 327.188 950.906 318.811 898.414 238.464 950.064 334.893 945.173 428.327 945.027 425.847 884.514 341.294 944.844 434.608 944.232 446.293 944.123 446.469 944.173 447.428 931.764 684.478 948.343 684.478 950.332 562.037 1010.514 468.952 950.482 552.833z" }),
9
+ React.createElement("ellipse", { cx: "554.592", cy: "680.479", fill: "#3f3d56", rx: "554.592", ry: "28.034" }),
10
+ React.createElement("ellipse", { cx: "892.445", cy: "726.797", fill: "#3f3d56", rx: "94.989", ry: "4.802" }),
11
+ React.createElement("ellipse", { cx: "548.72", cy: "773.114", fill: "#3f3d56", rx: "94.989", ry: "4.802" }),
12
+ React.createElement("ellipse", { cx: "287.944", cy: "734.279", fill: "#3f3d56", rx: "217.014", ry: "10.97" }),
13
+ React.createElement("circle", { cx: "97.084", cy: "566.27", r: "79", fill: "#2f2e41" }),
14
+ React.createElement("path", { fill: "#2f2e41", d: "M99.805 689.023H123.805V732.023H99.805z", transform: "rotate(.675 5272.615 -2689.677)" }),
15
+ React.createElement("path", { fill: "#2f2e41", d: "M147.802 689.589H171.802V732.589H147.802z", transform: "rotate(.675 5320.612 -2689.112)" }),
16
+ React.createElement("ellipse", { cx: "119.546", cy: "732.616", fill: "#2f2e41", rx: "7.5", ry: "20", transform: "rotate(-89.325 68.811 722.182)" }),
17
+ React.createElement("ellipse", { cx: "167.554", cy: "732.182", fill: "#2f2e41", rx: "7.5", ry: "20", transform: "rotate(-89.325 116.82 721.748)" }),
18
+ React.createElement("circle", { cx: "99.319", cy: "546.295", r: "27", fill: "#fff" }),
19
+ React.createElement("circle", { cx: "99.319", cy: "546.295", r: "9", fill: "#3f3d56" }),
20
+ React.createElement("path", { fill: "#ff6a00", d: "M61.026 552.946c-6.042-28.64 14.687-57.264 46.3-63.933s62.139 11.143 68.18 39.783-14.978 38.93-46.59 45.6-61.848 7.191-67.89-21.45z", transform: "translate(-39.704 -61.042)" }),
21
+ React.createElement("path", { fill: "#ff6a00", d: "M257.296 671.384c0 55.076-32.74 74.306-73.13 74.306q-1.403 0-2.802-.03c-1.872-.04-3.725-.13-5.557-.255-36.451-2.58-64.77-22.8-64.77-74.02 0-53.01 67.738-119.897 72.826-124.847l.009-.01.294-.284s73.13 70.064 73.13 125.14z", transform: "translate(-39.704 -61.042)" }),
22
+ React.createElement("path", { fill: "#3f3d56", d: "M181.502 737.265l26.747-37.374-26.814 41.477-.071 4.291c-1.872-.04-3.725-.129-5.557-.254l2.883-55.102-.022-.428.049-.08.272-5.204-26.881-41.58 26.965 37.676.063 1.105 2.179-41.633-23.014-42.965 23.294 35.658 2.268-86.314.009-.294v.285l-.379 68.064 22.911-26.983-23.004 32.847-.606 37.275 21.391-35.774-21.48 41.259-.339 20.723 31.056-49.791-31.172 57.023z", transform: "translate(-39.704 -61.042)" }),
23
+ React.createElement("circle", { cx: "712.485", cy: "565.415", r: "79", fill: "#2f2e41" }),
24
+ React.createElement("path", { fill: "#2f2e41", d: "M741.777 691.824H765.777V734.824H741.777z", transform: "rotate(-17.083 530.717 814.976)" }),
25
+ React.createElement("path", { fill: "#2f2e41", d: "M787.659 677.723H811.659V720.723H787.659z", transform: "rotate(-17.083 576.611 800.885)" }),
26
+ React.createElement("ellipse", { cx: "767.887", cy: "732.003", fill: "#2f2e41", rx: "20", ry: "7.5", transform: "rotate(-17.083 544.826 833.656)" }),
27
+ React.createElement("ellipse", { cx: "813.475", cy: "716.946", fill: "#2f2e41", rx: "20", ry: "7.5", transform: "rotate(-17.083 590.415 818.599)" }),
28
+ React.createElement("circle", { cx: "708.522", cy: "545.71", r: "27", fill: "#fff" }),
29
+ React.createElement("circle", { cx: "708.522", cy: "545.71", r: "9", fill: "#3f3d56" }),
30
+ React.createElement("path", { fill: "#ff6a00", d: "M657.355 578.743c-14.49-25.433-3.478-59.016 24.594-75.009s62.576-8.34 77.066 17.093-2.39 41.643-30.463 57.636-56.707 25.713-71.197.28zM611.296 661.299c0 50.557-30.054 68.21-67.13 68.21q-1.288 0-2.572-.03a109.57 109.57 0 01-5.1-.232c-33.461-2.368-59.458-20.929-59.458-67.948 0-48.66 62.181-110.06 66.852-114.603l.008-.009.27-.261s67.13 64.316 67.13 114.873z", transform: "translate(-39.704 -61.042)" }),
31
+ React.createElement("path", { fill: "#3f3d56", d: "M541.72 721.774l24.553-34.307-24.614 38.074-.065 3.939a109.57 109.57 0 01-5.1-.233l2.645-50.582-.02-.393.045-.073.25-4.777-24.676-38.169 24.753 34.586.058 1.014 2-38.217-21.126-39.44 21.383 32.732 2.082-79.232.008-.27v.261l-.347 62.48 21.03-24.77-21.116 30.152-.557 34.218 19.637-32.84-19.718 37.875-.311 19.023 28.507-45.707-28.614 52.345z", transform: "translate(-39.704 -61.042)" }),
32
+ React.createElement("path", { fill: "#ff6a00", d: "M875.296 682.384c0 55.076-32.74 74.306-73.13 74.306q-1.403 0-2.802-.03c-1.872-.04-3.725-.13-5.557-.255-36.451-2.58-64.77-22.8-64.77-74.02 0-53.01 67.738-119.897 72.826-124.847l.009-.01.294-.284s73.13 70.064 73.13 125.14z", transform: "translate(-39.704 -61.042)" }),
33
+ React.createElement("path", { fill: "#3f3d56", d: "M799.502 748.265l26.747-37.374-26.814 41.477-.071 4.291c-1.872-.04-3.725-.129-5.557-.254l2.883-55.102-.022-.428.049-.08.272-5.204-26.881-41.58 26.965 37.676.063 1.105 2.179-41.633-23.014-42.965 23.294 35.658 2.268-86.314.01-.294v.285l-.38 68.064 22.911-26.983-23.004 32.847-.606 37.275 21.391-35.774-21.48 41.259-.339 20.723 31.056-49.791-31.172 57.023z", transform: "translate(-39.704 -61.042)" }),
34
+ React.createElement("ellipse", { cx: "721.517", cy: "656.822", fill: "#2f2e41", rx: "12.4", ry: "39.5", transform: "rotate(-64.626 653.41 657.688)" }),
35
+ React.createElement("ellipse", { cx: "112.517", cy: "651.822", fill: "#2f2e41", rx: "12.4", ry: "39.5", transform: "rotate(-68.158 47.55 650.645)" })));
36
+ }
37
+ //# sourceMappingURL=NotFoundSvg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFoundSvg.js","sourceRoot":"","sources":["../../src/layout/NotFoundSvg.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,MAAM,UAAU,WAAW,CAAC,KAA8B;IAEtD,OAAO,CACH,2CACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,UAAU,EAChB,MAAM,EAAC,SAAS,eACN,SAAS,EACnB,OAAO,EAAC,sBAAsB,IAC1B,KAAK;QAET,gCAAQ,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,KAAK,EAAC,CAAC,EAAC,IAAI,EAAC,IAAI,EAAC,SAAS,GAAU;QAC7D,8BACI,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,sJAAsJ,EACxJ,SAAS,EAAC,4BAA4B,GAClC;QACR,8BACI,IAAI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IAAI,EAAC,IAAI,EAAC,MAAM,GAAU;QAC7D,gCAAQ,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,QAAQ,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAC,SAAS,GAAU;QAC/D,8BACI,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,sWAAsW,EACxW,SAAS,EAAC,4BAA4B,GAClC;QACR,8BACI,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,sVAAsV,EACxV,SAAS,EAAC,4BAA4B,GAClC;QACR,8BACI,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,8NAA8N,EAChO,SAAS,EAAC,4BAA4B,GAClC;QACR,8BACI,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,mWAAmW,EACrW,SAAS,EAAC,4BAA4B,GAClC;QACR,iCACI,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,SAAS,EACZ,IAAI,EAAC,SAAS,EACd,EAAE,EAAC,MAAM,EACT,EAAE,EAAC,MAAM,EACT,SAAS,EAAC,gCAAgC,GACnC;QACX,iCACI,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,SAAS,EACZ,IAAI,EAAC,SAAS,EACd,EAAE,EAAC,MAAM,EACT,EAAE,EAAC,MAAM,EACT,SAAS,EAAC,+BAA+B,GAClC,CACT,CACT,CAAA;AACL,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ onSettingClick?: () => void;
4
+ onChangePasswordClick?: () => void;
5
+ onLogoutClick?: () => void;
6
+ showDarkModeSwitch?: boolean;
7
+ i18n?: {
8
+ settings?: string;
9
+ changePassword?: string;
10
+ darkMode?: string;
11
+ logout?: string;
12
+ };
13
+ };
14
+ export declare function UserNav(props: Props): JSX.Element;
15
+ export {};
@@ -0,0 +1,50 @@
1
+ import React, { Fragment, useState } from "react";
2
+ import { Avatar, Divider, ListItemIcon, ListItemText, Menu, MenuItem, useTheme } from "@mui/material";
3
+ import PersonIcon from '@mui/icons-material/Person';
4
+ import SettingsIcon from '@mui/icons-material/Settings';
5
+ import LockIcon from '@mui/icons-material/Lock';
6
+ import DarkModeIcon from '@mui/icons-material/DarkMode';
7
+ import LogoutIcon from '@mui/icons-material/PowerSettingsNew';
8
+ import { usePaletteMode } from "../VCThemeProvider";
9
+ export function UserNav(props) {
10
+ const { onSettingClick, onChangePasswordClick, onLogoutClick, showDarkModeSwitch, i18n: { settings, changePassword, darkMode, logout } = {} } = props;
11
+ const theme = useTheme();
12
+ const { mode, setMode } = usePaletteMode();
13
+ const [anchorEl, setAnchorEl] = useState(null);
14
+ return (React.createElement(Fragment, null,
15
+ React.createElement(Avatar, { sx: {
16
+ bgcolor: theme.palette.grey["500"],
17
+ width: 30,
18
+ height: 30,
19
+ cursor: 'pointer'
20
+ }, variant: "circular", onClick: ev => setAnchorEl(ev.currentTarget) },
21
+ React.createElement(PersonIcon, null)),
22
+ React.createElement(Menu, { open: anchorEl !== null, anchorEl: anchorEl, onClose: () => setAnchorEl(null), anchorOrigin: {
23
+ vertical: 'bottom',
24
+ horizontal: 'right'
25
+ }, transformOrigin: {
26
+ vertical: 'top',
27
+ horizontal: 'right'
28
+ } },
29
+ onSettingClick && (React.createElement(MenuItem, { onClick: onSettingClick },
30
+ React.createElement(ListItemIcon, null,
31
+ React.createElement(SettingsIcon, { fontSize: "small" })),
32
+ React.createElement(ListItemText, null, settings !== null && settings !== void 0 ? settings : 'Settings'))),
33
+ onChangePasswordClick && (React.createElement(MenuItem, { onClick: onChangePasswordClick },
34
+ React.createElement(ListItemIcon, null,
35
+ React.createElement(LockIcon, { fontSize: "small" })),
36
+ React.createElement(ListItemText, null, changePassword !== null && changePassword !== void 0 ? changePassword : 'Change password'))),
37
+ showDarkModeSwitch && (React.createElement(MenuItem, { onClick: () => setMode((mode === 'dark') ? "light" : "dark") },
38
+ React.createElement(ListItemIcon, null,
39
+ React.createElement(DarkModeIcon, { fontSize: "small" })),
40
+ React.createElement(ListItemText, null, darkMode !== null && darkMode !== void 0 ? darkMode : 'Dark Mode',
41
+ ": ",
42
+ mode === 'dark' ? 'ON' : 'OFF'))),
43
+ onLogoutClick && (React.createElement(Fragment, null,
44
+ React.createElement(Divider, null),
45
+ React.createElement(MenuItem, { onClick: onLogoutClick },
46
+ React.createElement(ListItemIcon, null,
47
+ React.createElement(LogoutIcon, { fontSize: "small", sx: { color: theme.palette.error.main } })),
48
+ React.createElement(ListItemText, { sx: { color: theme.palette.error.main } }, logout !== null && logout !== void 0 ? logout : 'Logout')))))));
49
+ }
50
+ //# sourceMappingURL=UserNav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserNav.js","sourceRoot":"","sources":["../../src/layout/UserNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAe,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACpG,OAAO,UAAU,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAChD,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,UAAU,MAAM,sCAAsC,CAAC;AAC9D,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAelD,MAAM,UAAU,OAAO,CAAC,KAAY;IAChC,MAAM,EACF,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,IAAI,EAAE,EACF,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,MAAM,EACT,GAAG,EAAE,EACT,GAAG,KAAK,CAAC;IAEV,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAC,IAAI,EAAE,OAAO,EAAC,GAAG,cAAc,EAAE,CAAC;IAEzC,MAAM,CAAC,QAAQ,EAA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CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;gBAClE,oBAAC,YAAY;oBACT,oBAAC,YAAY,IAAC,QAAQ,EAAC,OAAO,GAAG,CACtB;gBACf,oBAAC,YAAY,QAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,WAAW;;oBAAI,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAgB,CACjF,CACd;YACA,aAAa,IAAI,CACd,oBAAC,QAAQ;gBACL,oBAAC,OAAO,OAAG;gBACX,oBAAC,QAAQ,IAAC,OAAO,EAAE,aAAa;oBAC5B,oBAAC,YAAY;wBACT,oBAAC,UAAU,IAAC,QAAQ,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,GAAI,CAC7D;oBACf,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,QAAQ,CAAgB,CACnF,CACJ,CACd,CACE,CACA,CACd,CAAA;AACL,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./ErrorBoundary";
2
+ export * from "./UserNav";
3
+ export * from "./NotFound";
4
+ export * from "./layout-context";
5
+ export * from "./page-title";
@@ -0,0 +1,6 @@
1
+ export * from "./ErrorBoundary";
2
+ export * from "./UserNav";
3
+ export * from "./NotFound";
4
+ export * from "./layout-context";
5
+ export * from "./page-title";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren } from "react";
2
+ interface LayoutProviderProps {
3
+ appName: string;
4
+ }
5
+ export declare function LayoutProvider({ appName, children }: PropsWithChildren<LayoutProviderProps>): JSX.Element;
6
+ export declare const useLayoutContext: () => {
7
+ setPageTitle: (name?: string) => void;
8
+ };
9
+ export {};
@@ -0,0 +1,23 @@
1
+ import React, { createContext, useContext, useEffect, useMemo, useState } from "react";
2
+ const LayoutContext = createContext({
3
+ setPageTitle: () => void 0,
4
+ });
5
+ export function LayoutProvider({ appName, children }) {
6
+ const [pageTitle, setPageTitle] = useState();
7
+ useEffect(() => {
8
+ document.title = pageTitle ? `${pageTitle} | ${appName}` : appName;
9
+ }, [pageTitle]);
10
+ const value = useMemo(() => ({ setPageTitle }), []);
11
+ return (React.createElement(LayoutContext.Provider, { value: value }, children));
12
+ }
13
+ export const useLayoutContext = () => {
14
+ const value = useContext(LayoutContext);
15
+ if (!value) {
16
+ throw new Error("Cannot find layout context. Are you missing a LayoutProvider in your component tree?");
17
+ }
18
+ const { setPageTitle } = value;
19
+ return {
20
+ setPageTitle,
21
+ };
22
+ };
23
+ //# sourceMappingURL=layout-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-context.js","sourceRoot":"","sources":["../../src/layout/layout-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,aAAa,EAAqB,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAMxG,MAAM,aAAa,GAAG,aAAa,CAAoB;IACtD,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC;CAC1B,CAAC,CAAC;AAMH,MAAM,UAAU,cAAc,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAyC;IACzF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IAErD,SAAS,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,MAAM,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACpE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAC,YAAY,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAElD,OAAO,CACN,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAClC,QAAQ,CACe,CACzB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACpC,MAAM,KAAK,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IACxC,IAAI,CAAC,KAAK,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,sFAAsF,CAAC,CAAC;IACzG,CAAC;IACD,MAAM,EAAC,YAAY,EAAC,GAAG,KAAK,CAAC;IAC7B,OAAO;QACN,YAAY;KACZ,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TypographyProps } from "@mui/material";
2
+ import { ReactNode } from "react";
3
+ interface PageTitleProps extends Omit<TypographyProps, "children" | "ref" | "title"> {
4
+ title?: ReactNode;
5
+ }
6
+ export declare function PageTitle({ title, variant, ...rest }: Readonly<PageTitleProps>): JSX.Element;
7
+ export {};
@@ -0,0 +1,41 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { Typography } from "@mui/material";
13
+ import React, { isValidElement, useEffect } from "react";
14
+ import { useLayoutContext } from "./layout-context";
15
+ export function PageTitle(_a) {
16
+ var { title, variant = "h1" } = _a, rest = __rest(_a, ["title", "variant"]);
17
+ const { setPageTitle } = useLayoutContext();
18
+ useEffect(() => {
19
+ setPageTitle(reactNodeToString(title));
20
+ }, [title]);
21
+ return React.createElement(Typography, Object.assign({ variant: variant, component: "h1", title: "title" }, rest), title);
22
+ }
23
+ function reactNodeToString(reactNode) {
24
+ let string = "";
25
+ if (typeof reactNode === "string") {
26
+ string = reactNode;
27
+ }
28
+ else if (typeof reactNode === "number") {
29
+ string = reactNode.toString();
30
+ }
31
+ else if (reactNode instanceof Array) {
32
+ reactNode.forEach(function (child) {
33
+ string += reactNodeToString(child);
34
+ });
35
+ }
36
+ else if (isValidElement(reactNode)) {
37
+ string += reactNodeToString(reactNode.props.children);
38
+ }
39
+ return string;
40
+ }
41
+ //# sourceMappingURL=page-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-title.js","sourceRoot":"","sources":["../../src/layout/page-title.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAC,cAAc,EAAa,SAAS,EAAC,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAMlD,MAAM,UAAU,SAAS,CAAC,EAA0D;QAA1D,EAAC,KAAK,EAAE,OAAO,GAAG,IAAI,OAAoC,EAA/B,IAAI,cAA/B,oBAAgC,CAAD;IACxD,MAAM,EAAC,YAAY,EAAC,GAAG,gBAAgB,EAAE,CAAC;IAE1C,SAAS,CAAC,GAAG,EAAE;QACd,YAAY,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,oBAAC,UAAU,kBAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,IAAI,EAAC,KAAK,EAAC,OAAO,IAAK,IAAI,GAAG,KAAK,CAAc,CAAC;AAClG,CAAC;AAED,SAAS,iBAAiB,CAAC,SAA2B;IACrD,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QACnC,MAAM,GAAG,SAAS,CAAC;IACpB,CAAC;SAAM,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC1C,MAAM,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;SAAM,IAAI,SAAS,YAAY,KAAK,EAAE,CAAC;QACvC,SAAS,CAAC,OAAO,CAAC,UAAS,KAAK;YAC/B,MAAM,IAAI,iBAAiB,CAAC,KAAK,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACJ,CAAC;SAAM,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { ListProps as MuiListProps } from "@mui/material";
3
+ import { SkeletonListItemProps } from "./SkeletonListItem";
4
+ export type ListProps = MuiListProps & {
5
+ /** Whether the list is loading and skeleton list items should be shown. */
6
+ loading?: boolean;
7
+ /** The error that should be shown. */
8
+ error?: any;
9
+ /** The number of skeleton items to show. */
10
+ items?: number;
11
+ /** Properties of the skeleton list items. */
12
+ skeleton?: SkeletonListItemProps;
13
+ };
14
+ export declare function List(props: ListProps): JSX.Element;
@@ -0,0 +1,25 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { List as MuiList } from "@mui/material";
13
+ import React from "react";
14
+ import { ErrorAlert } from "../ErrorAlert";
15
+ import { SkeletonListItem } from "./SkeletonListItem";
16
+ export function List(props) {
17
+ const { children, error, loading, items = 3, skeleton = {} } = props, listProps = __rest(props, ["children", "error", "loading", "items", "skeleton"]);
18
+ if (error) {
19
+ return React.createElement(ErrorAlert, { error: error });
20
+ }
21
+ return (React.createElement(MuiList, Object.assign({}, listProps), loading
22
+ ? Array.from({ length: items }).map(() => React.createElement(SkeletonListItem, Object.assign({}, skeleton)))
23
+ : children));
24
+ }
25
+ //# sourceMappingURL=List.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.js","sourceRoot":"","sources":["../../src/list/List.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAC,IAAI,IAAI,OAAO,EAA4B,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAwB,MAAM,oBAAoB,CAAC;AAgB3E,MAAM,UAAU,IAAI,CAAC,KAAgB;IACpC,MAAM,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,KAAK,GAAG,CAAC,EACT,QAAQ,GAAG,EAAE,KAEV,KAAK,EADL,SAAS,UACT,KAAK,EAPH,qDAOL,CAAQ,CAAC;IAEV,IAAI,KAAK,EAAE,CAAC;QACX,OAAO,oBAAC,UAAU,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;IACrC,CAAC;IACD,OAAO,CACN,oBAAC,OAAO,oBAAK,SAAS,GACpB,OAAO;QACP,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,oBAAC,gBAAgB,oBAAK,QAAQ,EAAI,CAAC;QAC3E,CAAC,CAAC,QAAQ,CACF,CACV,CAAC;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export interface SkeletonListItemProps {
3
+ /** Whether the list item has an icon. */
4
+ icon?: boolean;
5
+ /** Whether the list item has a primary text. */
6
+ primary?: boolean;
7
+ /** The number of lines in the secondary text. */
8
+ secondary?: number;
9
+ /** Whether the list item has a secondary action. */
10
+ action?: boolean;
11
+ /** Whether the list item has a divider. */
12
+ divider?: boolean;
13
+ }
14
+ export declare function SkeletonListItem(props: Readonly<SkeletonListItemProps>): JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText, Skeleton } from "@mui/material";
2
+ import React, { Fragment } from "react";
3
+ export function SkeletonListItem(props) {
4
+ const { icon = true, primary = true, secondary = 1, action = false, divider = false, } = props;
5
+ return (React.createElement(ListItem, { divider: divider },
6
+ icon && (React.createElement(ListItemIcon, null,
7
+ React.createElement(Skeleton, { variant: "circular", width: 40, height: 40 }))),
8
+ React.createElement(ListItemText, { primary: primary && React.createElement(Skeleton, { variant: "text" }), secondary: React.createElement(Fragment, null, Array.from({ length: secondary }).map(() => React.createElement(Skeleton, { variant: "text" }))) }),
9
+ React.createElement(ListItemSecondaryAction, null, action && React.createElement(Skeleton, { variant: "rounded", width: 40, height: 40 }))));
10
+ }
11
+ //# sourceMappingURL=SkeletonListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkeletonListItem.js","sourceRoot":"","sources":["../../src/list/SkeletonListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAE,YAAY,EAAE,uBAAuB,EAAE,YAAY,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACtG,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAmBtC,MAAM,UAAU,gBAAgB,CAAC,KAAsC;IACtE,MAAM,EACL,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,IAAI,EACd,SAAS,GAAG,CAAC,EACb,MAAM,GAAG,KAAK,EACd,OAAO,GAAG,KAAK,GACf,GAAG,KAAK,CAAC;IAEV,OAAO,CACN,oBAAC,QAAQ,IAAC,OAAO,EAAE,OAAO;QACxB,IAAI,IAAI,CACR,oBAAC,YAAY;YACZ,oBAAC,QAAQ,IAAC,OAAO,EAAC,UAAU,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,CACxC,CACf;QACD,oBAAC,YAAY,IACZ,OAAO,EAAE,OAAO,IAAI,oBAAC,QAAQ,IAAC,OAAO,EAAC,MAAM,GAAG,EAC/C,SAAS,EACR,oBAAC,QAAQ,QACP,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,SAAS,EAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,oBAAC,QAAQ,IAAC,OAAO,EAAC,MAAM,GAAG,CAAC,CAC7D,GAEX;QACF,oBAAC,uBAAuB,QACtB,MAAM,IAAI,oBAAC,QAAQ,IAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,CACvC,CAChB,CACX,CAAC;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ export { List } from "./List";
@@ -0,0 +1,2 @@
1
+ export { List } from "./List";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}