wcz-test 6.22.1 → 6.23.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 (293) hide show
  1. package/dist/_virtual/compiler-runtime.js +6 -0
  2. package/dist/_virtual/compiler-runtime.js.map +1 -0
  3. package/dist/_virtual/compiler-runtime2.js +5 -0
  4. package/dist/_virtual/compiler-runtime2.js.map +1 -0
  5. package/dist/_virtual/jsx-runtime.js +6 -0
  6. package/dist/_virtual/jsx-runtime.js.map +1 -0
  7. package/dist/_virtual/jsx-runtime2.js +5 -0
  8. package/dist/_virtual/jsx-runtime2.js.map +1 -0
  9. package/dist/_virtual/react-compiler-runtime.development.js +5 -0
  10. package/dist/_virtual/react-compiler-runtime.development.js.map +1 -0
  11. package/dist/_virtual/react-compiler-runtime.production.js +5 -0
  12. package/dist/_virtual/react-compiler-runtime.production.js.map +1 -0
  13. package/dist/_virtual/react-jsx-runtime.development.js +5 -0
  14. package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
  15. package/dist/_virtual/react-jsx-runtime.production.js +5 -0
  16. package/dist/_virtual/react-jsx-runtime.production.js.map +1 -0
  17. package/dist/client.js +4 -4
  18. package/dist/components/core/AppTitle.d.ts +2 -0
  19. package/dist/components/core/AppTitle.js +23 -0
  20. package/dist/components/core/AppTitle.js.map +1 -0
  21. package/dist/components/core/Fullscreen.d.ts +3 -0
  22. package/dist/components/core/Fullscreen.js +104 -0
  23. package/dist/components/core/Fullscreen.js.map +1 -0
  24. package/dist/components/core/Layout.d.ts +8 -0
  25. package/dist/components/core/Layout.js +215 -0
  26. package/dist/components/core/Layout.js.map +1 -0
  27. package/dist/components/core/ToolbarAccount.d.ts +2 -0
  28. package/dist/components/core/ToolbarAccount.js +602 -0
  29. package/dist/components/core/ToolbarAccount.js.map +1 -0
  30. package/dist/components/core/TypographyWithIcon.d.ts +7 -0
  31. package/dist/components/core/TypographyWithIcon.js +117 -0
  32. package/dist/components/core/TypographyWithIcon.js.map +1 -0
  33. package/dist/components/core/navigation/NavigationList.d.ts +22 -0
  34. package/dist/components/core/navigation/NavigationList.js +166 -0
  35. package/dist/components/core/navigation/NavigationList.js.map +1 -0
  36. package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
  37. package/dist/components/core/navigation/NavigationListItem.js +467 -0
  38. package/dist/components/core/navigation/NavigationListItem.js.map +1 -0
  39. package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
  40. package/dist/components/core/navigation/NavigationRail.js +141 -0
  41. package/dist/components/core/navigation/NavigationRail.js.map +1 -0
  42. package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
  43. package/dist/components/data-grid/ChipInputCell.js +95 -0
  44. package/dist/components/data-grid/ChipInputCell.js.map +1 -0
  45. package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
  46. package/dist/components/data-grid/EditableColumnHeader.js +30 -0
  47. package/dist/components/data-grid/EditableColumnHeader.js.map +1 -0
  48. package/dist/components/file/Dropzone.d.ts +8 -0
  49. package/dist/components/file/Dropzone.js +151 -0
  50. package/dist/components/file/Dropzone.js.map +1 -0
  51. package/dist/components/file/FileViewer.d.ts +20 -0
  52. package/dist/components/file/FileViewer.js +127 -0
  53. package/dist/components/file/FileViewer.js.map +1 -0
  54. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
  55. package/dist/components/file/fileViewer/FileViewerGrid.js +282 -0
  56. package/dist/components/file/fileViewer/FileViewerGrid.js.map +1 -0
  57. package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
  58. package/dist/components/file/fileViewer/FileViewerList.js +191 -0
  59. package/dist/components/file/fileViewer/FileViewerList.js.map +1 -0
  60. package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
  61. package/dist/components/file/fileViewer/ImageViewer.js +75 -0
  62. package/dist/components/file/fileViewer/ImageViewer.js.map +1 -0
  63. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
  64. package/dist/components/file/fileViewer/common/ActionsMenu.js +159 -0
  65. package/dist/components/file/fileViewer/common/ActionsMenu.js.map +1 -0
  66. package/dist/components/form/FormAutocomplete.d.ts +7 -0
  67. package/dist/components/form/FormAutocomplete.js +80 -0
  68. package/dist/components/form/FormAutocomplete.js.map +1 -0
  69. package/dist/components/form/FormCheckbox.d.ts +7 -0
  70. package/dist/components/form/FormCheckbox.js +81 -0
  71. package/dist/components/form/FormCheckbox.js.map +1 -0
  72. package/dist/components/form/FormDatePicker.d.ts +8 -0
  73. package/dist/components/form/FormDatePicker.js +77 -0
  74. package/dist/components/form/FormDatePicker.js.map +1 -0
  75. package/dist/components/form/FormDateRangePicker.d.ts +8 -0
  76. package/dist/components/form/FormDateRangePicker.js +77 -0
  77. package/dist/components/form/FormDateRangePicker.js.map +1 -0
  78. package/dist/components/form/FormDateTimePicker.d.ts +8 -0
  79. package/dist/components/form/FormDateTimePicker.js +77 -0
  80. package/dist/components/form/FormDateTimePicker.js.map +1 -0
  81. package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
  82. package/dist/components/form/FormDateTimeRangePicker.js +77 -0
  83. package/dist/components/form/FormDateTimeRangePicker.js.map +1 -0
  84. package/dist/components/form/FormNumberField.d.ts +9 -0
  85. package/dist/components/form/FormNumberField.js +73 -0
  86. package/dist/components/form/FormNumberField.js.map +1 -0
  87. package/dist/components/form/FormRadioGroup.d.ts +13 -0
  88. package/dist/components/form/FormRadioGroup.js +113 -0
  89. package/dist/components/form/FormRadioGroup.js.map +1 -0
  90. package/dist/components/form/FormSlider.d.ts +7 -0
  91. package/dist/components/form/FormSlider.js +94 -0
  92. package/dist/components/form/FormSlider.js.map +1 -0
  93. package/dist/components/form/FormSubmitButton.d.ts +4 -0
  94. package/dist/components/form/FormSubmitButton.js +50 -0
  95. package/dist/components/form/FormSubmitButton.js.map +1 -0
  96. package/dist/components/form/FormSwitch.d.ts +7 -0
  97. package/dist/components/form/FormSwitch.js +81 -0
  98. package/dist/components/form/FormSwitch.js.map +1 -0
  99. package/dist/components/form/FormTextField.d.ts +7 -0
  100. package/dist/components/form/FormTextField.js +52 -0
  101. package/dist/components/form/FormTextField.js.map +1 -0
  102. package/dist/components/form/FormTimePicker.d.ts +8 -0
  103. package/dist/components/form/FormTimePicker.js +77 -0
  104. package/dist/components/form/FormTimePicker.js.map +1 -0
  105. package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
  106. package/dist/components/form/FormTimeRangePicker.js +77 -0
  107. package/dist/components/form/FormTimeRangePicker.js.map +1 -0
  108. package/dist/components/router/RouterButton.d.ts +6 -0
  109. package/dist/components/router/RouterButton.js +35 -0
  110. package/dist/components/router/RouterButton.js.map +1 -0
  111. package/dist/components/router/RouterError.d.ts +7 -0
  112. package/dist/components/router/RouterError.js +62 -0
  113. package/dist/components/router/RouterError.js.map +1 -0
  114. package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
  115. package/dist/components/router/RouterGridActionsCellItem.js +35 -0
  116. package/dist/components/router/RouterGridActionsCellItem.js.map +1 -0
  117. package/dist/components/router/RouterIconButton.d.ts +6 -0
  118. package/dist/components/router/RouterIconButton.js +35 -0
  119. package/dist/components/router/RouterIconButton.js.map +1 -0
  120. package/dist/components/router/RouterLink.d.ts +6 -0
  121. package/dist/components/router/RouterLink.js +35 -0
  122. package/dist/components/router/RouterLink.js.map +1 -0
  123. package/dist/components/router/RouterListItemButton.d.ts +6 -0
  124. package/dist/components/router/RouterListItemButton.js +35 -0
  125. package/dist/components/router/RouterListItemButton.js.map +1 -0
  126. package/dist/components/router/RouterNotFound.d.ts +1 -0
  127. package/dist/components/router/RouterNotFound.js +53 -0
  128. package/dist/components/router/RouterNotFound.js.map +1 -0
  129. package/dist/components/router/RouterTab.d.ts +6 -0
  130. package/dist/components/router/RouterTab.js +35 -0
  131. package/dist/components/router/RouterTab.js.map +1 -0
  132. package/dist/components.js +15 -429
  133. package/dist/components.js.map +1 -1
  134. package/dist/contexts/DialogsContext.d.ts +6 -0
  135. package/dist/contexts/DialogsContext.js +6 -0
  136. package/dist/contexts/DialogsContext.js.map +1 -0
  137. package/dist/contexts/FileContext.d.ts +13 -0
  138. package/dist/contexts/FileContext.js +14 -0
  139. package/dist/contexts/FileContext.js.map +1 -0
  140. package/dist/contexts/UserContext.d.ts +7 -0
  141. package/dist/contexts/UserContext.js +6 -0
  142. package/dist/contexts/UserContext.js.map +1 -0
  143. package/dist/env.d.ts +10 -0
  144. package/dist/env.js +26 -0
  145. package/dist/env.js.map +1 -0
  146. package/dist/exports/client.d.ts +4 -0
  147. package/dist/exports/components.d.ts +14 -0
  148. package/dist/exports/hooks.d.ts +5 -0
  149. package/dist/exports/index.d.ts +3 -0
  150. package/dist/exports/models.d.ts +24 -0
  151. package/dist/exports/queries.d.ts +4 -0
  152. package/dist/exports/server.d.ts +1 -0
  153. package/dist/exports/utils.d.ts +3 -0
  154. package/dist/exports/vite.d.ts +1 -0
  155. package/dist/hooks/DialogsHooks.d.ts +42 -0
  156. package/dist/hooks/DialogsHooks.js +280 -0
  157. package/dist/hooks/DialogsHooks.js.map +1 -0
  158. package/dist/hooks/FormHooks.d.ts +52 -0
  159. package/dist/hooks/FormHooks.js +55 -0
  160. package/dist/hooks/FormHooks.js.map +1 -0
  161. package/dist/hooks/UseHook.d.ts +2 -0
  162. package/dist/hooks/UseHook.js +12 -0
  163. package/dist/hooks/UseHook.js.map +1 -0
  164. package/dist/hooks.js +5 -346
  165. package/dist/hooks.js.map +1 -1
  166. package/dist/index.js +3 -750
  167. package/dist/index.js.map +1 -1
  168. package/dist/lib/auth/client.d.ts +13 -0
  169. package/dist/lib/auth/client.js +63 -0
  170. package/dist/lib/auth/client.js.map +1 -0
  171. package/dist/lib/auth/server.d.ts +9 -0
  172. package/dist/lib/utils.d.ts +52 -0
  173. package/dist/lib/utils.js +91 -0
  174. package/dist/lib/utils.js.map +1 -0
  175. package/dist/lib/vite-plugin.d.ts +2 -0
  176. package/dist/lib/vite-plugin.js +65 -0
  177. package/dist/lib/vite-plugin.js.map +1 -0
  178. package/dist/middleware/auth.d.ts +13 -0
  179. package/dist/models/Navigation.d.ts +18 -0
  180. package/dist/models/User.d.ts +11 -0
  181. package/dist/models/approval/Approval.d.ts +177 -0
  182. package/dist/models/approval/Approval.js +81 -0
  183. package/dist/models/approval/Approval.js.map +1 -0
  184. package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
  185. package/dist/models/approval/ApprovalEmployee.js +10 -0
  186. package/dist/models/approval/ApprovalEmployee.js.map +1 -0
  187. package/dist/models/approval/ApprovalFlow.d.ts +49 -0
  188. package/dist/models/approval/ApprovalFlow.js +15 -0
  189. package/dist/models/approval/ApprovalFlow.js.map +1 -0
  190. package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
  191. package/dist/models/approval/ApprovalFlowStep.js +17 -0
  192. package/dist/models/approval/ApprovalFlowStep.js.map +1 -0
  193. package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
  194. package/dist/models/approval/ApprovalRequestType.js +6 -0
  195. package/dist/models/approval/ApprovalRequestType.js.map +1 -0
  196. package/dist/models/approval/ApprovalStatus.d.ts +9 -0
  197. package/dist/models/approval/ApprovalStatus.js +6 -0
  198. package/dist/models/approval/ApprovalStatus.js.map +1 -0
  199. package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
  200. package/dist/models/approval/ApprovalStepResult.js +6 -0
  201. package/dist/models/approval/ApprovalStepResult.js.map +1 -0
  202. package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
  203. package/dist/models/approval/StepApprovalOrder.js +6 -0
  204. package/dist/models/approval/StepApprovalOrder.js.map +1 -0
  205. package/dist/models/email/Email.d.ts +13 -0
  206. package/dist/models/email/Email.js +14 -0
  207. package/dist/models/email/Email.js.map +1 -0
  208. package/dist/models/email/EmailAttachment.d.ts +6 -0
  209. package/dist/models/email/EmailAttachment.js +9 -0
  210. package/dist/models/email/EmailAttachment.js.map +1 -0
  211. package/dist/models/file/FileActions.d.ts +6 -0
  212. package/dist/models/file/FileMeta.d.ts +15 -0
  213. package/dist/{FileMeta-G1oT3mYK.js → models/file/FileMeta.js} +2 -2
  214. package/dist/models/file/FileMeta.js.map +1 -0
  215. package/dist/models/peoplesoft/Department.d.ts +58 -0
  216. package/dist/models/peoplesoft/Department.js +19 -0
  217. package/dist/models/peoplesoft/Department.js.map +1 -0
  218. package/dist/models/peoplesoft/Employee.d.ts +46 -0
  219. package/dist/models/peoplesoft/Employee.js +43 -0
  220. package/dist/models/peoplesoft/Employee.js.map +1 -0
  221. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
  222. package/dist/models/peoplesoft/EmployeeCategoryGroup.js +6 -0
  223. package/dist/models/peoplesoft/EmployeeCategoryGroup.js.map +1 -0
  224. package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
  225. package/dist/models/peoplesoft/EmployeeStatus.js +6 -0
  226. package/dist/models/peoplesoft/EmployeeStatus.js.map +1 -0
  227. package/dist/models.js +10 -182
  228. package/dist/models.js.map +1 -1
  229. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +22 -0
  230. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js.map +1 -0
  231. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
  232. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js.map +1 -0
  233. package/dist/{DialogsContext-DMZRefiY.js → node_modules/react/cjs/react-jsx-runtime.development.js} +4 -48
  234. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  235. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +33 -0
  236. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -0
  237. package/dist/node_modules/react/compiler-runtime.js +18 -0
  238. package/dist/node_modules/react/compiler-runtime.js.map +1 -0
  239. package/dist/node_modules/react/jsx-runtime.js +18 -0
  240. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  241. package/dist/providers/DialogsProvider.d.ts +5 -0
  242. package/dist/providers/DialogsProvider.js +79 -0
  243. package/dist/providers/DialogsProvider.js.map +1 -0
  244. package/dist/providers/LayoutProvider.d.ts +11 -0
  245. package/dist/providers/LayoutProvider.js +101 -0
  246. package/dist/providers/LayoutProvider.js.map +1 -0
  247. package/dist/providers/UserProvider.d.ts +4 -0
  248. package/dist/providers/UserProvider.js +94 -0
  249. package/dist/providers/UserProvider.js.map +1 -0
  250. package/dist/queries/Approval.d.ts +585 -0
  251. package/dist/queries/Approval.js +91 -0
  252. package/dist/queries/Approval.js.map +1 -0
  253. package/dist/queries/ApprovalHooks.d.ts +315 -0
  254. package/dist/queries/ApprovalHooks.js +243 -0
  255. package/dist/queries/ApprovalHooks.js.map +1 -0
  256. package/dist/queries/FileHooks.d.ts +151 -0
  257. package/dist/queries/FileHooks.js +466 -0
  258. package/dist/queries/FileHooks.js.map +1 -0
  259. package/dist/queries/PeopleSoftHooks.d.ts +537 -0
  260. package/dist/queries/PeopleSoftHooks.js +586 -0
  261. package/dist/queries/PeopleSoftHooks.js.map +1 -0
  262. package/dist/queries/UserHooks.d.ts +11 -0
  263. package/dist/queries/UserHooks.js +157 -0
  264. package/dist/queries/UserHooks.js.map +1 -0
  265. package/dist/queries.js +13 -337
  266. package/dist/queries.js.map +1 -1
  267. package/dist/utils.js +2 -2
  268. package/dist/vite.js +1 -55
  269. package/dist/vite.js.map +1 -1
  270. package/package.json +13 -11
  271. package/dist/ApprovalStatus-C9HPyMiS.js +0 -24
  272. package/dist/ApprovalStatus-C9HPyMiS.js.map +0 -1
  273. package/dist/DialogsContext-DMZRefiY.js.map +0 -1
  274. package/dist/DialogsHooks-DBK6rBoU.js +0 -37
  275. package/dist/DialogsHooks-DBK6rBoU.js.map +0 -1
  276. package/dist/FileHooks-BM2Oyvh6.js +0 -194
  277. package/dist/FileHooks-BM2Oyvh6.js.map +0 -1
  278. package/dist/FileMeta-G1oT3mYK.js.map +0 -1
  279. package/dist/RouterListItemButton-Vj6OoqkV.js +0 -15
  280. package/dist/RouterListItemButton-Vj6OoqkV.js.map +0 -1
  281. package/dist/UseHook-DB7btKDE.js +0 -11
  282. package/dist/UseHook-DB7btKDE.js.map +0 -1
  283. package/dist/client.d.ts +0 -20
  284. package/dist/components.d.ts +0 -134
  285. package/dist/hooks.d.ts +0 -208
  286. package/dist/index.d.ts +0 -74
  287. package/dist/models.d.ts +0 -467
  288. package/dist/queries.d.ts +0 -1956
  289. package/dist/server.d.ts +0 -5
  290. package/dist/utils-CKW5pi6k.js +0 -77
  291. package/dist/utils-CKW5pi6k.js.map +0 -1
  292. package/dist/utils.d.ts +0 -11
  293. package/dist/vite.d.ts +0 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterTab.js","sources":["../../../src/components/router/RouterTab.tsx"],"sourcesContent":["import { Tab } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { TabProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, TabProps<\"a\">>(function TabComponent(props, reference) {\n return <Tab ref={reference} component=\"a\" {...props} />;\n});\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterTab: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};"],"names":["Component","React","forwardRef","TabComponent","props","reference","$","_c","t0","CreatedComponent","createLink","RouterTab","jsx"],"mappings":";;;;;AAMA,MAAMA,YAAYC,MAAMC,WAA6C,SAAAC,aAAAC,OAAAC,WAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,MAAAF,EAAA,CAAA,MAAAF,SAAAE,SAAAD,WAAA;AAC1DG,+CAAC,KAAA,EAASH,KAAAA,WAAqB,WAAA,KAAG,GAAKD,OAAK;AAAIE,WAAAF;AAAAE,WAAAD;AAAAC,WAAAE;AAAAA,EAAA,OAAA;AAAAA,SAAAF,EAAA,CAAA;AAAA,EAAA;AAAA,SAAhDE;AAAgD,CAC1D;AAED,MAAMC,mBAAmBC,WAAWV,SAAS;AAEtC,MAAMW,YAA6CP,CAAAA,UAAA;AAAA,QAAAE,IAAAC,uBAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,MAAAF,SAAAF,OAAA;AAC/CI,SAAAI,kCAAAA,IAAC,kBAAA,EAAgB,GAAKR,MAAAA,CAAK;AAAIE,WAAAF;AAAAE,WAAAE;AAAAA,EAAA,OAAA;AAAAA,SAAAF,EAAA,CAAA;AAAA,EAAA;AAAA,SAA/BE;AAA+B;"}
@@ -1,431 +1,17 @@
1
- import { j as jsxRuntimeExports } from "./DialogsContext-DMZRefiY.js";
2
- import { Typography, Stack, Box, useTheme, Paper, Menu, List, ListItemButton, ListItemIcon, ListItemText, ImageListItem, ImageListItemBar, IconButton, Tooltip, Dialog, Fab, Chip, Button, Link, Tab, Divider } from "@mui/material";
3
- import React, { useRef, useState, useEffectEvent, useEffect, createContext, useContext, Fragment } from "react";
4
- import CloudUpload from "@mui/icons-material/CloudUpload";
5
- import { useDropzone } from "react-dropzone";
6
- import { useTranslation } from "react-i18next";
7
- import MoreVert from "@mui/icons-material/MoreVert";
8
- import { grey } from "@mui/material/colors";
9
- import { useInView } from "react-intersection-observer";
10
- import Delete from "@mui/icons-material/Delete";
11
- import FileDownload from "@mui/icons-material/FileDownload";
12
- import { u as useDialogs } from "./DialogsHooks-DBK6rBoU.js";
13
- import { c as useDownloadFile, f as useDeleteFile, a as useGetFileThumbnail, d as useOpenFile, b as useGetFile, u as useGetFileMetas } from "./FileHooks-BM2Oyvh6.js";
14
- import AttachFile from "@mui/icons-material/AttachFile";
15
- import Image from "@mui/icons-material/Image";
16
- import SmartDisplay from "@mui/icons-material/SmartDisplay";
17
- import Close from "@mui/icons-material/Close";
18
- import Edit from "@mui/icons-material/Edit";
19
- import { createLink } from "@tanstack/react-router";
20
- import { GridActionsCellItem } from "@mui/x-data-grid-premium";
21
- import { R } from "./RouterListItemButton-Vj6OoqkV.js";
22
- const TypographyWithIcon = ({ startIcon, endIcon, children, sx, ...props }) => {
23
- const iconSx = {
24
- display: "inline-flex",
25
- alignItems: "center",
26
- justifyContent: "center",
27
- flexShrink: 0,
28
- lineHeight: 0,
29
- "& > svg": {
30
- display: "block"
31
- }
32
- };
33
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
34
- Typography,
35
- {
36
- component: "span",
37
- sx: {
38
- display: "inline-flex",
39
- alignItems: "center",
40
- verticalAlign: "middle",
41
- ...sx
42
- },
43
- gap: 1,
44
- ...props,
45
- children: [
46
- startIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { component: "span", sx: iconSx, children: startIcon }),
47
- /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { component: "span", sx: { display: "inline", lineHeight: "inherit" }, children }),
48
- endIcon && /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { component: "span", sx: iconSx, children: endIcon })
49
- ]
50
- }
51
- );
52
- };
53
- const Fullscreen = ({ children, sx, ...props }) => {
54
- const reference = useRef(null);
55
- const [height, setHeight] = useState();
56
- const recompute = useEffectEvent(() => {
57
- if (!reference.current) return;
58
- const top = Math.ceil(reference.current.getBoundingClientRect().top);
59
- const avail = Math.max(0, window.innerHeight - top);
60
- setHeight(avail);
61
- });
62
- useEffect(() => {
63
- const element = reference.current;
64
- if (!element) return;
65
- recompute();
66
- window.addEventListener("resize", recompute);
67
- const ro = new ResizeObserver(recompute);
68
- ro.observe(document.documentElement);
69
- ro.observe(document.body);
70
- ro.observe(element);
71
- return () => {
72
- window.removeEventListener("resize", recompute);
73
- ro.disconnect();
74
- };
75
- }, []);
76
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
77
- Box,
78
- {
79
- ref: reference,
80
- sx: {
81
- display: "flex",
82
- flexDirection: "column",
83
- minHeight: 0,
84
- width: "100%",
85
- overflow: "auto",
86
- ...sx
87
- },
88
- height,
89
- ...props,
90
- children
91
- }
92
- );
93
- };
94
- const baseStyle = {
95
- flex: 1,
96
- display: "flex",
97
- flexDirection: "column",
98
- alignItems: "center",
99
- padding: "20px",
100
- borderWidth: 2,
101
- borderRadius: 2,
102
- borderStyle: "dashed",
103
- outline: "none",
104
- transition: "border .24s ease-in-out",
105
- cursor: "pointer"
106
- };
107
- const Dropzone = ({ sx, ...props }) => {
108
- const { getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone(props);
109
- const { t } = useTranslation();
110
- const theme = useTheme();
111
- const style = {
112
- ...baseStyle,
113
- ...isFocused ? { borderColor: theme.palette.primary.main } : {},
114
- ...isDragAccept ? { borderColor: theme.palette.success.main } : {},
115
- ...isDragReject ? { borderColor: theme.palette.error.main } : {}
116
- };
117
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Paper, { variant: "outlined", ...getRootProps({ style }), sx, children: [
118
- /* @__PURE__ */ jsxRuntimeExports.jsx("input", { ...getInputProps(), style: { display: "none" } }),
119
- /* @__PURE__ */ jsxRuntimeExports.jsx(CloudUpload, {}),
120
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { children: t("Layout.File.DragSomeFilesHereOrClickToSelectThem") })
121
- ] });
122
- };
123
- const FileContext = createContext(null);
124
- const useFile = () => {
125
- const context = useContext(FileContext);
126
- if (!context) {
127
- throw new Error("FileViewer components must be used within FileViewer");
128
- }
129
- return context;
130
- };
131
- const ActionsMenu = ({ meta, menu, setMenu }) => {
132
- const { t } = useTranslation();
133
- const { fileMetas, onDelete, actions } = useFile();
134
- const { confirm } = useDialogs();
135
- const handleMenuClose = () => {
136
- setMenu(null);
137
- };
138
- const { mutate: download, isPending: isDownloading } = useDownloadFile();
139
- const { mutate: deleteFile, isPending: isDeleting } = useDeleteFile();
140
- const handleOnDownload = () => {
141
- handleMenuClose();
142
- download(meta);
143
- };
144
- const handleOnDelete = async () => {
145
- if (!await confirm(t("Layout.File.AreYouSureYouWantToDelete", { fileName: meta.fileName })))
146
- return;
147
- deleteFile(meta);
148
- handleMenuClose();
149
- if (onDelete) {
150
- const remainingFileMetas = fileMetas.filter((m) => m.id !== meta.id);
151
- onDelete({ remainingFileMetas, deletedFileMeta: meta });
152
- }
153
- };
154
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
155
- Menu,
156
- {
157
- open: menu !== null,
158
- onClose: handleMenuClose,
159
- anchorReference: "anchorPosition",
160
- variant: "menu",
161
- anchorPosition: menu === null ? void 0 : { top: menu.mouseY, left: menu.mouseX },
162
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(List, { disablePadding: true, children: [
163
- actions?.download !== false && /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: handleOnDownload, disabled: isDownloading, children: [
164
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(FileDownload, {}) }),
165
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { children: t("Layout.File.Download") })
166
- ] }),
167
- actions?.delete !== false && /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: handleOnDelete, disabled: isDeleting, children: [
168
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Delete, {}) }),
169
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { children: t("Layout.File.Delete") })
170
- ] })
171
- ] })
172
- }
173
- );
174
- };
175
- const IMAGE_SIZE = 150;
176
- const FileViewerGrid = ({ sx, size, itemBar }) => {
177
- const { fileMetas } = useFile();
178
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { direction: "row", spacing: 1, sx: { overflow: "auto", ...sx }, children: fileMetas.map((fileMeta) => /* @__PURE__ */ jsxRuntimeExports.jsx(
179
- GridFileViewerItem,
180
- {
181
- meta: fileMeta,
182
- size,
183
- itemBar
184
- },
185
- fileMeta.id
186
- )) });
187
- };
188
- const GridFileViewerItem = ({ meta, size, itemBar }) => {
189
- const { setImageId, actions } = useFile();
190
- const [showItemBar, setShowItemBar] = useState(itemBar === "always");
191
- const [menu, setMenu] = useState(null);
192
- const { ref, inView } = useInView();
193
- useEffect(() => {
194
- setShowItemBar(itemBar === "always");
195
- }, [itemBar]);
196
- const { data: source } = useGetFileThumbnail({ meta }, { enabled: inView });
197
- const handleOnMouseEnter = () => setShowItemBar(true);
198
- const handleOnMouseLeave = () => itemBar !== "always" && setShowItemBar(false);
199
- const openMenu = (event) => {
200
- setMenu(menu === null ? { mouseX: event.clientX, mouseY: event.clientY } : null);
201
- setTimeout(() => setShowItemBar(true));
202
- };
203
- const { mutate: openFile } = useOpenFile();
204
- const { mutate: download } = useDownloadFile();
205
- const onClick = () => {
206
- switch (meta.mediaType) {
207
- case "image": {
208
- return setImageId(meta.id);
209
- }
210
- case "application": {
211
- return openFile(meta);
212
- }
213
- case "video": {
214
- return openFile(meta);
215
- }
216
- default: {
217
- return download(meta);
218
- }
219
- }
220
- };
221
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
222
- /* @__PURE__ */ jsxRuntimeExports.jsxs(ImageListItem, { sx: { width: size ?? IMAGE_SIZE, height: size ?? IMAGE_SIZE }, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave, ref, children: [
223
- /* @__PURE__ */ jsxRuntimeExports.jsx(
224
- Box,
225
- {
226
- component: "img",
227
- src: source,
228
- loading: "lazy",
229
- alt: "thumbnail-" + meta.id,
230
- onClick,
231
- sx: { cursor: "pointer", objectFit: "contain", width: size ?? IMAGE_SIZE, height: size ?? IMAGE_SIZE }
232
- }
233
- ),
234
- itemBar !== "hidden" && showItemBar && /* @__PURE__ */ jsxRuntimeExports.jsx(
235
- ImageListItemBar,
236
- {
237
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: meta.fileName, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { children: meta.fileName }) }),
238
- actionIcon: (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { sx: { color: grey[100] }, onClick: openMenu, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreVert, {}) })
239
- }
240
- )
241
- ] }),
242
- (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(ActionsMenu, { meta, menu, setMenu })
243
- ] });
244
- };
245
- const FileViewerList = ({ sx }) => {
246
- const { fileMetas } = useFile();
247
- return /* @__PURE__ */ jsxRuntimeExports.jsx(List, { dense: true, sx, children: fileMetas.map(
248
- (fileMeta) => /* @__PURE__ */ jsxRuntimeExports.jsx(
249
- ListFileViewerItem,
250
- {
251
- meta: fileMeta
252
- },
253
- fileMeta.id
254
- )
255
- ) });
256
- };
257
- const ListFileViewerItem = ({ meta }) => {
258
- const { setImageId, actions } = useFile();
259
- const [menu, setMenu] = useState(null);
260
- const openMenu = (event) => {
261
- event.stopPropagation();
262
- setMenu(menu === null ? { mouseX: event.clientX, mouseY: event.clientY } : null);
263
- };
264
- const { mutate: openFile } = useOpenFile();
265
- const { mutate: download } = useDownloadFile();
266
- const onClick = () => {
267
- switch (meta.mediaType) {
268
- case "image": {
269
- return setImageId(meta.id);
270
- }
271
- case "application": {
272
- return openFile(meta);
273
- }
274
- case "video": {
275
- return openFile(meta);
276
- }
277
- default: {
278
- return download(meta);
279
- }
280
- }
281
- };
282
- const icon = () => {
283
- switch (meta.mediaType) {
284
- case "image": {
285
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Image, {});
286
- }
287
- case "video": {
288
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SmartDisplay, {});
289
- }
290
- default: {
291
- return /* @__PURE__ */ jsxRuntimeExports.jsx(AttachFile, {});
292
- }
293
- }
294
- };
295
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
296
- /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick, children: [
297
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: icon() }),
298
- /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary: `${meta.fileName}.${meta.fileExtension}` }),
299
- (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { edge: "end", onClick: openMenu, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreVert, {}) })
300
- ] }, meta.id),
301
- (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsxRuntimeExports.jsx(ActionsMenu, { meta, menu, setMenu })
302
- ] });
303
- };
304
- const ImageViewer = ({ metaId }) => {
305
- const { fileMetas, setImageId } = useFile();
306
- const meta = fileMetas.find((m) => m.id === metaId);
307
- const { data: source } = useGetFile({ meta });
308
- useEffect(() => {
309
- if (metaId)
310
- globalThis.addEventListener("keydown", handleOnKeydown);
311
- return () => {
312
- globalThis.removeEventListener("keydown", handleOnKeydown);
313
- };
314
- }, [metaId]);
315
- const handleOnKeydown = (event) => {
316
- const images = fileMetas.filter((m) => m.mediaType === "image");
317
- const imageIndex = images.findIndex((m) => m.id === metaId);
318
- switch (event.key) {
319
- case "ArrowLeft": {
320
- return handleOnArrowLeft(images, imageIndex);
321
- }
322
- case "ArrowRight": {
323
- return handleOnArrowRight(images, imageIndex);
324
- }
325
- case "Backspace":
326
- case "Escape": {
327
- event.preventDefault();
328
- return onClose();
329
- }
330
- }
331
- };
332
- const handleOnArrowLeft = (images, index) => {
333
- if (index > 0) {
334
- const previousFile = images[index - 1];
335
- setImageId(previousFile.id);
336
- }
337
- };
338
- const handleOnArrowRight = (images, index) => {
339
- if (index < images.length - 1) {
340
- const nextFile = images[index + 1];
341
- setImageId(nextFile.id);
342
- }
343
- };
344
- const onClose = () => setImageId("");
345
- if (!metaId) return null;
346
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Dialog, { open: true, onClose, maxWidth: "xl", children: [
347
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "img", src: source, alt: metaId, sx: { maxWidth: "100vw", maxHeight: { xs: "calc(100vh - 56px)", sm: "calc(100vh - 64px)" } } }),
348
- /* @__PURE__ */ jsxRuntimeExports.jsx(Fab, { size: "medium", onClick: onClose, sx: { position: "fixed", top: 8, right: 8 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Close, {}) })
349
- ] });
350
- };
351
- const FileViewer = ({ subId, onDelete, actions, children }) => {
352
- const { data: fileMetas = [] } = useGetFileMetas({ subId }, { enabled: !!subId });
353
- const [imageId, setImageId] = useState("");
354
- const components = { Grid: FileViewerGrid, List: FileViewerList };
355
- if (fileMetas.length === 0) return null;
356
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(FileContext.Provider, { value: { fileMetas, onDelete, actions, setImageId }, children: [
357
- children(components),
358
- /* @__PURE__ */ jsxRuntimeExports.jsx(ImageViewer, { metaId: imageId })
359
- ] });
360
- };
361
- const isArray = (value) => Array.isArray(value);
362
- const ChipInputCell = ({ params, slotProps, getLabel }) => {
363
- if (!params.value) return null;
364
- const getLabelValue = (value) => {
365
- if (getLabel) return getLabel(value);
366
- return value;
367
- };
368
- if (isArray(params.value))
369
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Stack, { direction: "row", alignItems: "center", gap: 1, sx: { overflowX: "auto", height: "100%", width: params.colDef.computedWidth }, children: params.value.map(
370
- (value, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, { label: getLabelValue(value), ...slotProps }, `${index + 1}-chip-input-cell`)
371
- ) });
372
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Chip, { label: getLabelValue(params.value), ...slotProps });
373
- };
374
- const EditableColumnHeader = ({ colDef }) => {
375
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyWithIcon, { endIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(Edit, { color: "disabled", fontSize: "small" }), variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: colDef.headerName });
376
- };
377
- const Component$4 = React.forwardRef(function ButtonComponent(props, reference) {
378
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { ref: reference, component: "a", ...props });
379
- });
380
- const CreatedComponent$4 = createLink(Component$4);
381
- const RouterButton = (props) => {
382
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$4, { ...props });
383
- };
384
- const Component$3 = React.forwardRef(
385
- function GridActionsCellItemComponent(props, reference) {
386
- return /* @__PURE__ */ jsxRuntimeExports.jsx(GridActionsCellItem, { ref: reference, component: "a", ...props });
387
- }
388
- );
389
- const CreatedComponent$3 = createLink(Component$3);
390
- const RouterGridActionsCellItem = (props) => {
391
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$3, { ...props });
392
- };
393
- const Component$2 = React.forwardRef(function IconButtonComponent(props, reference) {
394
- return /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { ref: reference, component: "a", ...props });
395
- });
396
- const CreatedComponent$2 = createLink(Component$2);
397
- const RouterIconButton = (props) => {
398
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$2, { ...props });
399
- };
400
- const Component$1 = React.forwardRef(function LinkComponent(props, reference) {
401
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { ref: reference, ...props });
402
- });
403
- const CreatedComponent$1 = createLink(Component$1);
404
- const RouterLink = (props) => {
405
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent$1, { ...props });
406
- };
407
- const Component = React.forwardRef(function TabComponent(props, reference) {
408
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tab, { ref: reference, component: "a", ...props });
409
- });
410
- const CreatedComponent = createLink(Component);
411
- const RouterTab = (props) => {
412
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CreatedComponent, { ...props });
413
- };
414
- function RouterNotFound() {
415
- const { t } = useTranslation();
416
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", alignItems: "center", mb: 4, children: [
417
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "404" }),
418
- /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
419
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h5", component: "span", children: t("Layout.ThisPageCouldNotBeFound") })
420
- ] }) });
421
- }
422
- const RouterError = ({ error }) => {
423
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { display: "flex", alignItems: "center", mb: 4, children: [
424
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: error.name || "500" }),
425
- /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
426
- /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h5", component: "span", children: error.message })
427
- ] }) });
428
- };
1
+ import { TypographyWithIcon } from "./components/core/TypographyWithIcon.js";
2
+ import { Fullscreen } from "./components/core/Fullscreen.js";
3
+ import { Dropzone } from "./components/file/Dropzone.js";
4
+ import { FileViewer } from "./components/file/FileViewer.js";
5
+ import { ChipInputCell } from "./components/data-grid/ChipInputCell.js";
6
+ import { EditableColumnHeader } from "./components/data-grid/EditableColumnHeader.js";
7
+ import { RouterButton } from "./components/router/RouterButton.js";
8
+ import { RouterGridActionsCellItem } from "./components/router/RouterGridActionsCellItem.js";
9
+ import { RouterIconButton } from "./components/router/RouterIconButton.js";
10
+ import { RouterLink } from "./components/router/RouterLink.js";
11
+ import { RouterTab } from "./components/router/RouterTab.js";
12
+ import { RouterListItemButton } from "./components/router/RouterListItemButton.js";
13
+ import { RouterNotFound } from "./components/router/RouterNotFound.js";
14
+ import { RouterError } from "./components/router/RouterError.js";
429
15
  export {
430
16
  ChipInputCell,
431
17
  Dropzone,
@@ -437,7 +23,7 @@ export {
437
23
  RouterGridActionsCellItem,
438
24
  RouterIconButton,
439
25
  RouterLink,
440
- R as RouterListItemButton,
26
+ RouterListItemButton,
441
27
  RouterNotFound,
442
28
  RouterTab,
443
29
  TypographyWithIcon
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sources":["../src/components/core/TypographyWithIcon.tsx","../src/components/core/Fullscreen.tsx","../src/components/file/Dropzone.tsx","../src/contexts/FileContext.ts","../src/components/file/fileViewer/common/ActionsMenu.tsx","../src/components/file/fileViewer/FileViewerGrid.tsx","../src/components/file/fileViewer/FileViewerList.tsx","../src/components/file/fileViewer/ImageViewer.tsx","../src/components/file/FileViewer.tsx","../src/components/data-grid/ChipInputCell.tsx","../src/components/data-grid/EditableColumnHeader.tsx","../src/components/router/RouterButton.tsx","../src/components/router/RouterGridActionsCellItem.tsx","../src/components/router/RouterIconButton.tsx","../src/components/router/RouterLink.tsx","../src/components/router/RouterTab.tsx","../src/components/router/RouterNotFound.tsx","../src/components/router/RouterError.tsx"],"sourcesContent":["import { Stack, Typography } from \"@mui/material\";\nimport type { SxProps, Theme, TypographyProps } from \"@mui/material\";\n\ninterface TypographyWithIconProps extends TypographyProps {\n startIcon?: React.ReactNode;\n endIcon?: React.ReactNode;\n}\n\nexport const TypographyWithIcon: React.FC<TypographyWithIconProps> = ({ startIcon, endIcon, children, sx, ...props }) => {\n const iconSx: SxProps<Theme> = {\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0,\n lineHeight: 0,\n \"& > svg\": {\n display: \"block\",\n },\n };\n\n return (\n <Typography\n component=\"span\"\n sx={{\n display: \"inline-flex\",\n alignItems: \"center\",\n verticalAlign: \"middle\",\n ...sx,\n }}\n gap={1}\n {...props}\n >\n {startIcon && (\n <Stack component=\"span\" sx={iconSx}>\n {startIcon}\n </Stack>\n )}\n <Stack component=\"span\" sx={{ display: \"inline\", lineHeight: \"inherit\" }}>\n {children}\n </Stack>\n {endIcon && (\n <Stack component=\"span\" sx={iconSx}>\n {endIcon}\n </Stack>\n )}\n </Typography>\n );\n};","import { Box } from \"@mui/material\";\nimport { useEffect, useEffectEvent, useRef, useState } from \"react\";\nimport type { BoxProps } from \"@mui/material\";\nimport type { FC } from \"react\";\n\nexport const Fullscreen: FC<BoxProps> = ({ children, sx, ...props }) => {\n const reference = useRef<HTMLDivElement | null>(null);\n const [height, setHeight] = useState<number>();\n\n const recompute = useEffectEvent(() => {\n if (!reference.current) return;\n const top = Math.ceil(reference.current.getBoundingClientRect().top);\n const avail = Math.max(0, window.innerHeight - top);\n setHeight(avail);\n });\n\n useEffect(() => {\n const element = reference.current;\n if (!element) return;\n\n recompute();\n\n window.addEventListener(\"resize\", recompute);\n\n const ro = new ResizeObserver(recompute);\n ro.observe(document.documentElement);\n ro.observe(document.body);\n ro.observe(element);\n\n return () => {\n window.removeEventListener(\"resize\", recompute);\n ro.disconnect();\n };\n }, []);\n\n return (\n <Box\n ref={reference}\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n minHeight: 0,\n width: \"100%\",\n overflow: \"auto\",\n ...sx,\n }}\n height={height}\n {...props}\n >\n {children}\n </Box>\n );\n};","import CloudUpload from \"@mui/icons-material/CloudUpload\";\nimport { Paper, Typography, useTheme } from \"@mui/material\";\nimport { useDropzone } from \"react-dropzone\";\nimport { useTranslation } from \"react-i18next\";\nimport type { SxProps, Theme} from \"@mui/material\";\nimport type { CSSProperties, FC } from \"react\";\nimport type { DropzoneOptions} from \"react-dropzone\";\n\nconst baseStyle: CSSProperties = {\n flex: 1,\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n padding: \"20px\",\n borderWidth: 2,\n borderRadius: 2,\n borderStyle: \"dashed\",\n outline: \"none\",\n transition: \"border .24s ease-in-out\",\n cursor: \"pointer\",\n};\n\ninterface DropzoneProps extends DropzoneOptions {\n sx?: SxProps<Theme>;\n}\n\nexport const Dropzone: FC<DropzoneProps> = ({ sx, ...props }) => {\n const { getRootProps, getInputProps, isFocused, isDragAccept, isDragReject, } = useDropzone(props);\n const { t } = useTranslation();\n const theme = useTheme();\n\n const style = {\n ...baseStyle,\n ...(isFocused ? { borderColor: theme.palette.primary.main } : {}),\n ...(isDragAccept ? { borderColor: theme.palette.success.main } : {}),\n ...(isDragReject ? { borderColor: theme.palette.error.main } : {})\n };\n\n return (\n <Paper variant=\"outlined\" {...getRootProps({ style })} sx={sx}>\n <input {...getInputProps()} style={{ display: \"none\" }} />\n <CloudUpload />\n <Typography>{t(\"Layout.File.DragSomeFilesHereOrClickToSelectThem\")}</Typography>\n </Paper>\n );\n};","import { createContext, useContext } from \"react\";\nimport type { FileMeta } from \"../models/file/FileMeta\";\nimport type { FileActions } from \"~/models/file/FileActions\";\n\nexport interface FileContextValue {\n fileMetas: Array<FileMeta>;\n onDelete?: (params: { remainingFileMetas: Array<FileMeta>; deletedFileMeta: FileMeta }) => void;\n actions?: FileActions;\n setImageId: (imageId: string) => void;\n};\n\nexport const FileContext = createContext<FileContextValue | null>(null);\n\nexport const useFile = () => {\n const context = useContext(FileContext);\n if (!context) {\n throw new Error(\"FileViewer components must be used within FileViewer\");\n }\n return context;\n};","import Delete from \"@mui/icons-material/Delete\";\nimport FileDownload from \"@mui/icons-material/FileDownload\";\nimport { List, ListItemButton, ListItemIcon, ListItemText, Menu } from \"@mui/material\";\nimport { useTranslation } from \"react-i18next\";\nimport type { FC } from \"react\";\nimport type { FileMeta } from \"~/models/file/FileMeta\";\nimport { useFile } from \"~/contexts/FileContext\";\nimport { useDialogs } from \"~/hooks/DialogsHooks\";\nimport { useDeleteFile, useDownloadFile } from \"~/queries/FileHooks\";\n\ninterface ActionsMenuProps {\n meta: FileMeta;\n menu: { mouseX: number; mouseY: number } | null;\n setMenu: (menu: { mouseX: number; mouseY: number } | null) => void;\n}\n\nexport const ActionsMenu: FC<ActionsMenuProps> = ({ meta, menu, setMenu }) => {\n const { t } = useTranslation();\n const { fileMetas, onDelete, actions } = useFile();\n const { confirm } = useDialogs();\n\n const handleMenuClose = () => { setMenu(null); };\n\n const { mutate: download, isPending: isDownloading } = useDownloadFile();\n const { mutate: deleteFile, isPending: isDeleting } = useDeleteFile();\n\n const handleOnDownload = () => {\n handleMenuClose();\n download(meta);\n };\n\n const handleOnDelete = async () => {\n if (!await confirm(t(\"Layout.File.AreYouSureYouWantToDelete\", { fileName: meta.fileName })))\n return;\n\n deleteFile(meta);\n handleMenuClose();\n\n if (onDelete) {\n const remainingFileMetas: Array<FileMeta> = fileMetas.filter(m => m.id !== meta.id);\n onDelete({ remainingFileMetas, deletedFileMeta: meta });\n }\n };\n\n return (\n <Menu open={menu !== null} onClose={handleMenuClose} anchorReference=\"anchorPosition\" variant=\"menu\"\n anchorPosition={menu === null ? undefined : { top: menu.mouseY, left: menu.mouseX }}>\n <List disablePadding>\n {actions?.download !== false &&\n <ListItemButton onClick={handleOnDownload} disabled={isDownloading}>\n <ListItemIcon>\n <FileDownload />\n </ListItemIcon>\n <ListItemText>{t(\"Layout.File.Download\")}</ListItemText>\n </ListItemButton>\n }\n {actions?.delete !== false &&\n <ListItemButton onClick={handleOnDelete} disabled={isDeleting}>\n <ListItemIcon>\n <Delete />\n </ListItemIcon>\n <ListItemText>{t(\"Layout.File.Delete\")}</ListItemText>\n </ListItemButton>\n }\n </List>\n </Menu>\n );\n};\n","import MoreVert from \"@mui/icons-material/MoreVert\";\nimport { Box, IconButton, ImageListItem, ImageListItemBar, Stack, Tooltip } from \"@mui/material\";\nimport { grey } from \"@mui/material/colors\";\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useInView } from \"react-intersection-observer\";\nimport { ActionsMenu } from \"./common/ActionsMenu\";\nimport type { SxProps, Theme } from \"@mui/material\";\nimport type { FileMeta } from \"~/models/file/FileMeta\";\nimport { useFile } from \"~/contexts/FileContext\";\nimport { useDownloadFile, useGetFileThumbnail, useOpenFile } from \"~/queries/FileHooks\";\n\nconst IMAGE_SIZE = 150;\n\ntype FileViewerGridItemBar = \"hidden\" | \"always\" | \"onMouseEnter\";\n\nexport interface FileViewerGridProps {\n size?: number;\n itemBar?: FileViewerGridItemBar;\n sx?: SxProps<Theme>;\n}\n\nexport const FileViewerGrid: React.FC<FileViewerGridProps> = ({ sx, size, itemBar }) => {\n const { fileMetas } = useFile();\n\n return (\n <Stack direction=\"row\" spacing={1} sx={{ overflow: \"auto\", ...sx }}>\n {fileMetas.map(fileMeta => (\n <GridFileViewerItem\n key={fileMeta.id}\n meta={fileMeta}\n size={size}\n itemBar={itemBar}\n />\n ))}\n </Stack>\n );\n};\n\ninterface GridFileViewerItemProps {\n meta: FileMeta;\n size?: number;\n itemBar?: FileViewerGridItemBar;\n}\n\nexport const GridFileViewerItem: React.FC<GridFileViewerItemProps> = ({ meta, size, itemBar }) => {\n const { setImageId, actions } = useFile();\n const [showItemBar, setShowItemBar] = useState<boolean>(itemBar === \"always\");\n const [menu, setMenu] = useState<{ mouseX: number; mouseY: number; } | null>(null);\n const { ref, inView } = useInView();\n\n useEffect(() => {\n setShowItemBar(itemBar === \"always\");\n }, [itemBar]);\n\n const { data: source } = useGetFileThumbnail({ meta }, { enabled: inView });\n\n const handleOnMouseEnter = () => setShowItemBar(true);\n const handleOnMouseLeave = () => itemBar !== \"always\" && setShowItemBar(false);\n\n const openMenu = (event: React.MouseEvent) => {\n setMenu(menu === null ? { mouseX: event.clientX, mouseY: event.clientY, } : null);\n setTimeout(() => setShowItemBar(true));\n };\n\n const { mutate: openFile } = useOpenFile();\n const { mutate: download } = useDownloadFile();\n\n const onClick = () => {\n switch (meta.mediaType) {\n case \"image\": { return setImageId(meta.id); }\n case \"application\": { return openFile(meta); }\n case \"video\": { return openFile(meta); }\n default: { return download(meta); }\n }\n };\n\n return (\n <Fragment>\n <ImageListItem sx={{ width: size ?? IMAGE_SIZE, height: size ?? IMAGE_SIZE }} onMouseEnter={handleOnMouseEnter} onMouseLeave={handleOnMouseLeave} ref={ref}>\n <Box\n component=\"img\"\n src={source}\n loading=\"lazy\"\n alt={\"thumbnail-\" + meta.id}\n onClick={onClick}\n sx={{ cursor: \"pointer\", objectFit: \"contain\", width: size ?? IMAGE_SIZE, height: size ?? IMAGE_SIZE }}\n />\n {(itemBar !== \"hidden\" && showItemBar) &&\n <ImageListItemBar\n title={\n <Tooltip title={meta.fileName}>\n <Box>\n {meta.fileName}\n </Box>\n </Tooltip>\n }\n actionIcon={\n (actions?.download !== false || actions.delete !== false) &&\n <IconButton sx={{ color: grey[100] }} onClick={openMenu}>\n <MoreVert />\n </IconButton>\n }\n />\n }\n </ImageListItem>\n\n {(actions?.download !== false || actions.delete !== false) && <ActionsMenu meta={meta} menu={menu} setMenu={setMenu} />}\n </Fragment>\n );\n};\n","import AttachFile from \"@mui/icons-material/AttachFile\";\nimport Image from \"@mui/icons-material/Image\";\nimport MoreVert from \"@mui/icons-material/MoreVert\";\nimport SmartDisplay from \"@mui/icons-material/SmartDisplay\";\nimport { IconButton, List, ListItemButton, ListItemIcon, ListItemText } from \"@mui/material\";\nimport { Fragment, useState } from \"react\";\nimport { ActionsMenu } from \"./common/ActionsMenu\";\nimport type { FC } from \"react\";\nimport type { SxProps, Theme } from \"@mui/material\";\nimport type { FileMeta } from \"~/models/file/FileMeta\";\nimport { useFile } from \"~/contexts/FileContext\";\nimport { useDownloadFile, useOpenFile } from \"~/queries/FileHooks\";\n\nexport interface FileViewerListProps {\n sx?: SxProps<Theme>;\n}\n\nexport const FileViewerList: FC<FileViewerListProps> = ({ sx }) => {\n const { fileMetas } = useFile();\n\n return (\n <List dense sx={sx}>\n {fileMetas.map(fileMeta =>\n <ListFileViewerItem\n key={fileMeta.id}\n meta={fileMeta}\n />\n )}\n </List>\n );\n};\n\ninterface ListFileViewerItemProps {\n meta: FileMeta;\n}\n\nexport const ListFileViewerItem: React.FC<ListFileViewerItemProps> = ({ meta }) => {\n const { setImageId, actions } = useFile();\n const [menu, setMenu] = useState<{ mouseX: number; mouseY: number; } | null>(null);\n\n const openMenu = (event: React.MouseEvent) => {\n event.stopPropagation();\n setMenu(menu === null ? { mouseX: event.clientX, mouseY: event.clientY, } : null);\n };\n\n const { mutate: openFile } = useOpenFile();\n const { mutate: download } = useDownloadFile();\n\n const onClick = () => {\n switch (meta.mediaType) {\n case \"image\": { return setImageId(meta.id); }\n case \"application\": { return openFile(meta); }\n case \"video\": { return openFile(meta); }\n default: { return download(meta); }\n }\n };\n\n const icon = () => {\n switch (meta.mediaType) {\n case \"image\": {\n return <Image />;\n }\n case \"video\": {\n return <SmartDisplay />;\n }\n default: {\n return <AttachFile />;\n }\n }\n };\n\n return (\n <Fragment>\n <ListItemButton key={meta.id} onClick={onClick}>\n <ListItemIcon>\n {icon()}\n </ListItemIcon>\n <ListItemText primary={`${meta.fileName}.${meta.fileExtension}`} />\n {(actions?.download !== false || actions.delete !== false) &&\n <IconButton edge=\"end\" onClick={openMenu}>\n <MoreVert />\n </IconButton>\n }\n </ListItemButton>\n\n {(actions?.download !== false || actions.delete !== false) && <ActionsMenu meta={meta} menu={menu} setMenu={setMenu} />}\n </Fragment>\n );\n};\n","import Close from \"@mui/icons-material/Close\";\nimport { Box, Dialog, Fab } from \"@mui/material\";\nimport React, { useEffect } from \"react\";\nimport type { FileMeta } from \"~/models/file/FileMeta\";\nimport { useFile } from \"~/contexts/FileContext\";\nimport { useGetFile } from \"~/queries/FileHooks\";\n\ninterface ImageViewerProps {\n metaId: string;\n}\n\nexport const ImageViewer: React.FC<ImageViewerProps> = ({ metaId }) => {\n const { fileMetas, setImageId } = useFile();\n\n const meta = fileMetas.find(m => m.id === metaId)!;\n\n const { data: source } = useGetFile({ meta });\n\n useEffect(() => {\n if (metaId)\n globalThis.addEventListener(\"keydown\", handleOnKeydown);\n\n return () => { globalThis.removeEventListener(\"keydown\", handleOnKeydown); };\n }, [metaId]);\n\n const handleOnKeydown = (event: KeyboardEvent) => {\n const images: Array<FileMeta> = fileMetas.filter(m => m.mediaType === \"image\");\n const imageIndex: number = images.findIndex(m => m.id === metaId);\n\n switch (event.key) {\n case \"ArrowLeft\": {\n return handleOnArrowLeft(images, imageIndex);\n }\n case \"ArrowRight\": {\n return handleOnArrowRight(images, imageIndex);\n }\n case \"Backspace\":\n case \"Escape\": {\n event.preventDefault();\n return onClose();\n }\n }\n };\n\n const handleOnArrowLeft = (images: Array<FileMeta>, index: number) => {\n if (index > 0) {\n const previousFile: FileMeta = images[index - 1];\n setImageId(previousFile.id);\n }\n };\n\n const handleOnArrowRight = (images: Array<FileMeta>, index: number) => {\n if (index < images.length - 1) {\n const nextFile: FileMeta = images[index + 1];\n setImageId(nextFile.id);\n }\n };\n\n const onClose = () => setImageId(\"\");\n\n if (!metaId) return null;\n\n return (\n <Dialog open onClose={onClose} maxWidth=\"xl\">\n <Box component=\"img\" src={source} alt={metaId} sx={{ maxWidth: \"100vw\", maxHeight: { xs: \"calc(100vh - 56px)\", sm: \"calc(100vh - 64px)\" } }} />\n\n <Fab size=\"medium\" onClick={onClose} sx={{ position: \"fixed\", top: 8, right: 8 }}>\n <Close />\n </Fab>\n </Dialog>\n );\n};\n","import { useState } from \"react\";\nimport { FileViewerGrid } from \"./fileViewer/FileViewerGrid\";\nimport { FileViewerList } from \"./fileViewer/FileViewerList\";\nimport { ImageViewer } from \"./fileViewer/ImageViewer\";\nimport type { FileViewerGridProps } from \"./fileViewer/FileViewerGrid\";\nimport type { ComponentType, FC, ReactNode } from \"react\";\nimport type { FileMeta } from \"~/models/file/FileMeta\";\nimport type { FileActions } from \"~/models/file/FileActions\";\nimport type { FileViewerListProps } from \"./fileViewer/FileViewerList\";\nimport { FileContext } from \"~/contexts/FileContext\";\nimport { useGetFileMetas } from \"~/queries/FileHooks\";\n\ninterface FileViewerComponent {\n Grid: ComponentType<FileViewerGridProps>;\n List: ComponentType<FileViewerListProps>;\n}\n\ninterface FileViewerProps {\n subId: string;\n onDelete?: (params: { remainingFileMetas: Array<FileMeta>; deletedFileMeta: FileMeta }) => void;\n actions?: FileActions;\n children: (component: FileViewerComponent) => ReactNode;\n}\n\nexport const FileViewer: FC<FileViewerProps> = ({ subId, onDelete, actions, children }) => {\n const { data: fileMetas = [] } = useGetFileMetas({ subId }, { enabled: !!subId });\n const [imageId, setImageId] = useState<string>(\"\");\n\n const components: FileViewerComponent = { Grid: FileViewerGrid, List: FileViewerList };\n\n if (fileMetas.length === 0) return null;\n\n return (\n <FileContext.Provider value={{ fileMetas, onDelete, actions, setImageId }}>\n {children(components)}\n <ImageViewer metaId={imageId} />\n </FileContext.Provider>\n );\n};\n","import { Chip, Stack } from \"@mui/material\";\nimport type { ChipProps} from \"@mui/material\";\nimport type { GridRenderCellParams, GridValidRowModel } from \"@mui/x-data-grid-premium\";\n\nconst isArray = (value: any) => Array.isArray(value);\n\ninterface ChipInputCellProps<T extends GridValidRowModel> {\n params: GridRenderCellParams<T>;\n slotProps?: ChipProps;\n getLabel?: (object: T) => string | number;\n}\n\nexport const ChipInputCell = <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => {\n if (!params.value) return null;\n\n const getLabelValue = (value: any) => {\n if (getLabel) return getLabel(value);\n return value;\n };\n\n if (isArray(params.value))\n return (\n <Stack direction=\"row\" alignItems=\"center\" gap={1} sx={{ overflowX: \"auto\", height: \"100%\", width: params.colDef.computedWidth }}>\n {params.value.map((value: any, index) =>\n <Chip key={`${index + 1}-chip-input-cell`} label={getLabelValue(value)} {...slotProps} />\n )}\n </Stack>\n );\n\n return <Chip label={getLabelValue(params.value)} {...slotProps} />;\n};","import Edit from \"@mui/icons-material/Edit\";\nimport { TypographyWithIcon } from \"../core/TypographyWithIcon\";\nimport type { GridColumnHeaderParams, GridValidRowModel } from \"@mui/x-data-grid-premium\";\n\nexport const EditableColumnHeader = <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => {\n return <TypographyWithIcon endIcon={<Edit color=\"disabled\" fontSize=\"small\" />} variant=\"body2\" className=\"MuiDataGrid-columnHeaderTitle\">{colDef.headerName}</TypographyWithIcon>;\n};","import { Button } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { ButtonProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, ButtonProps<\"a\">>(function ButtonComponent(props, reference) {\n return <Button ref={reference} component=\"a\" {...props} />;\n});\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterButton: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};","import { GridActionsCellItem } from \"@mui/x-data-grid-premium\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { GridActionsCellItemProps } from \"@mui/x-data-grid-premium\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLButtonElement, GridActionsCellItemProps>(\n function GridActionsCellItemComponent(props, reference) {\n return <GridActionsCellItem ref={reference} component=\"a\" {...props} />;\n }\n) as React.ForwardRefExoticComponent<GridActionsCellItemProps & React.RefAttributes<HTMLButtonElement>>;\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterGridActionsCellItem: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};","import { IconButton } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { IconButtonProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, IconButtonProps<\"a\">>(function IconButtonComponent(props, reference) {\n return <IconButton ref={reference} component=\"a\" {...props} />;\n});\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterIconButton: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};","import { Link } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { LinkProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, LinkProps>(function LinkComponent(props, reference) {\n return <Link ref={reference} {...props} />;\n});\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterLink: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};","import { Tab } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { TabProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, TabProps<\"a\">>(function TabComponent(props, reference) {\n return <Tab ref={reference} component=\"a\" {...props} />;\n});\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterTab: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};","import { Box, Divider, Typography } from \"@mui/material\";\nimport { useTranslation } from \"react-i18next\";\n\nexport function RouterNotFound() {\n const { t } = useTranslation();\n\n return (\n <Box height=\"100vh\" display=\"flex\" flexDirection=\"column\" alignItems=\"center\" justifyContent=\"center\" textAlign=\"center\" px={2} >\n <Box display=\"flex\" alignItems=\"center\" mb={4}>\n <Typography variant=\"h3\" component=\"span\" fontWeight={500} sx={{ lineHeight: 1 }}>404</Typography>\n <Divider orientation=\"vertical\" flexItem sx={{ mx: 3 }} />\n <Typography variant=\"h5\" component=\"span\">{t(\"Layout.ThisPageCouldNotBeFound\")}</Typography>\n </Box>\n </Box>\n );\n}\n","import { Box, Divider, Typography } from \"@mui/material\";\nimport type { FC } from \"react\";\nimport type { ErrorComponentProps } from \"@tanstack/react-router\";\n\ninterface RouterErrorProps {\n error: ErrorComponentProps[\"error\"];\n}\n\nexport const RouterError: FC<RouterErrorProps> = ({ error }) => {\n\n return (\n <Box height=\"100vh\" display=\"flex\" flexDirection=\"column\" alignItems=\"center\" justifyContent=\"center\" textAlign=\"center\" px={2} >\n <Box display=\"flex\" alignItems=\"center\" mb={4}>\n <Typography variant=\"h3\" component=\"span\" fontWeight={500} sx={{ lineHeight: 1 }}>{error.name || \"500\"}</Typography>\n <Divider orientation=\"vertical\" flexItem sx={{ mx: 3 }} />\n <Typography variant=\"h5\" component=\"span\">{error.message}</Typography>\n </Box>\n </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O,YAAW,UAAS,IAAI,GAC1C,UAAA;AAAA,IAAAC,kCAAAA,IAAC,YAAA,EAAW,SAAQ,MAAK,WAAU,QAAO,YAAY,KAAK,IAAI,EAAE,YAAY,EAAA,GAAM,UAAA,MAAM,QAAQ,OAAM;AAAA,IACvGA,kCAAAA,IAAC,SAAA,EAAQ,aAAY,YAAW,UAAQ,MAAC,IAAI,EAAE,IAAI,EAAA,EAAE,CAAG;AAAA,0CACvD,YAAA,EAAW,SAAQ,MAAK,WAAU,QAAQ,gBAAM,QAAA,CAAQ;AAAA,EAAA,EAAA,CAC3D,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import { CloseDialog, OpenDialog } from '../hooks/DialogsHooks';
2
+ export interface DialogsContextValue {
3
+ open: OpenDialog;
4
+ close: CloseDialog;
5
+ }
6
+ export declare const DialogsContext: import('react').Context<DialogsContextValue>;
@@ -0,0 +1,6 @@
1
+ import { createContext } from "react";
2
+ const DialogsContext = createContext({});
3
+ export {
4
+ DialogsContext
5
+ };
6
+ //# sourceMappingURL=DialogsContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogsContext.js","sources":["../../src/contexts/DialogsContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { CloseDialog, OpenDialog } from \"../hooks/DialogsHooks\";\n\nexport interface DialogsContextValue {\n open: OpenDialog;\n close: CloseDialog;\n}\n\nexport const DialogsContext = createContext<DialogsContextValue>({} as DialogsContextValue);"],"names":["DialogsContext","createContext"],"mappings":";AAQO,MAAMA,iBAAiBC,cAAmC,CAAA,CAAyB;"}
@@ -0,0 +1,13 @@
1
+ import { FileMeta } from '../models/file/FileMeta';
2
+ import { FileActions } from '../models/file/FileActions';
3
+ export interface FileContextValue {
4
+ fileMetas: Array<FileMeta>;
5
+ onDelete?: (params: {
6
+ remainingFileMetas: Array<FileMeta>;
7
+ deletedFileMeta: FileMeta;
8
+ }) => void;
9
+ actions?: FileActions;
10
+ setImageId: (imageId: string) => void;
11
+ }
12
+ export declare const FileContext: import('react').Context<FileContextValue | null>;
13
+ export declare const useFile: () => FileContextValue;
@@ -0,0 +1,14 @@
1
+ import { createContext, useContext } from "react";
2
+ const FileContext = createContext(null);
3
+ const useFile = () => {
4
+ const context = useContext(FileContext);
5
+ if (!context) {
6
+ throw new Error("FileViewer components must be used within FileViewer");
7
+ }
8
+ return context;
9
+ };
10
+ export {
11
+ FileContext,
12
+ useFile
13
+ };
14
+ //# sourceMappingURL=FileContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileContext.js","sources":["../../src/contexts/FileContext.ts"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport type { FileMeta } from \"../models/file/FileMeta\";\nimport type { FileActions } from \"~/models/file/FileActions\";\n\nexport interface FileContextValue {\n fileMetas: Array<FileMeta>;\n onDelete?: (params: { remainingFileMetas: Array<FileMeta>; deletedFileMeta: FileMeta }) => void;\n actions?: FileActions;\n setImageId: (imageId: string) => void;\n};\n\nexport const FileContext = createContext<FileContextValue | null>(null);\n\nexport const useFile = () => {\n const context = useContext(FileContext);\n if (!context) {\n throw new Error(\"FileViewer components must be used within FileViewer\");\n }\n return context;\n};"],"names":["FileContext","createContext","useFile","context","useContext","Error"],"mappings":";AAWO,MAAMA,cAAcC,cAAuC,IAAI;AAE/D,MAAMC,UAAUA,MAAA;AACnB,QAAAC,UAAgBC,WAAWJ,WAAW;AACtC,MAAI,CAACG,SAAO;AACR,UAAM,IAAIE,MAAM,sDAAsD;AAAA,EAAE;AAC3E,SACMF;AAAO;"}
@@ -0,0 +1,7 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { User } from '../models/User';
3
+ export interface UserContextValue {
4
+ user: User;
5
+ setUser: Dispatch<SetStateAction<User>>;
6
+ }
7
+ export declare const UserContext: import('react').Context<UserContextValue>;
@@ -0,0 +1,6 @@
1
+ import { createContext } from "react";
2
+ const UserContext = createContext({});
3
+ export {
4
+ UserContext
5
+ };
6
+ //# sourceMappingURL=UserContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserContext.js","sources":["../../src/contexts/UserContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { Dispatch, SetStateAction } from \"react\";\nimport type { User } from \"~/models/User\";\n\nexport interface UserContextValue {\n user: User;\n setUser: Dispatch<SetStateAction<User>>;\n}\n\nexport const UserContext = createContext<UserContextValue>({} as UserContextValue);\n"],"names":["UserContext","createContext"],"mappings":";AASO,MAAMA,cAAcC,cAAgC,CAAA,CAAsB;"}
package/dist/env.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export declare const clientEnv: Readonly<{
2
+ VITE_APP_TITLE: string;
3
+ VITE_MUI_LICENSE_KEY: string;
4
+ VITE_API_URL: string;
5
+ VITE_MICROSOFT_CLIENT_ID: string;
6
+ VITE_MICROSOFT_TENANT_ID: string;
7
+ }>;
8
+ export declare const serverEnv: Readonly<{
9
+ MICROSOFT_CLIENT_SECRET: string;
10
+ }>;