wcz-layout 6.7.2 → 7.6.1

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 (303) hide show
  1. package/dist/DialogsContext-BIhId-r8.js +7 -0
  2. package/dist/DialogsContext-BIhId-r8.js.map +1 -0
  3. package/dist/DialogsHooks-CZVdKmPv.js +207 -0
  4. package/dist/DialogsHooks-CZVdKmPv.js.map +1 -0
  5. package/dist/FileMeta-YGG9mxo_.js +36 -0
  6. package/dist/FileMeta-YGG9mxo_.js.map +1 -0
  7. package/dist/NotificationContext-DovR_auQ.js +7 -0
  8. package/dist/NotificationContext-DovR_auQ.js.map +1 -0
  9. package/dist/RouterListItemButton-DeaQB4ym.js +31 -0
  10. package/dist/RouterListItemButton-DeaQB4ym.js.map +1 -0
  11. package/dist/components/core/AppTitle.d.ts +2 -0
  12. package/dist/components/core/Fullscreen.d.ts +3 -0
  13. package/dist/components/core/Layout.d.ts +10 -0
  14. package/dist/{src/components/layout → components/core}/TypographyWithIcon.d.ts +1 -1
  15. package/dist/components/core/account/UserAvatar.d.ts +2 -0
  16. package/dist/components/core/account/UserMenu.d.ts +2 -0
  17. package/dist/components/core/navigation/NavigationContent.d.ts +11 -0
  18. package/dist/components/core/navigation/NavigationList.d.ts +22 -0
  19. package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
  20. package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
  21. package/dist/{src/components/dataGrid → components/data-grid}/ChipInputCell.d.ts +3 -3
  22. package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
  23. package/dist/components/file/Dropzone.d.ts +8 -0
  24. package/dist/components/file/FileViewer.d.ts +20 -0
  25. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
  26. package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
  27. package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
  28. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
  29. package/dist/{src/components → components}/form/FormAutocomplete.d.ts +3 -3
  30. package/dist/{src/components → components}/form/FormCheckbox.d.ts +3 -3
  31. package/dist/components/form/FormDatePicker.d.ts +8 -0
  32. package/dist/components/form/FormDateRangePicker.d.ts +8 -0
  33. package/dist/components/form/FormDateTimePicker.d.ts +8 -0
  34. package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
  35. package/dist/{src/components → components}/form/FormNumberField.d.ts +4 -7
  36. package/dist/{src/components → components}/form/FormRadioGroup.d.ts +4 -4
  37. package/dist/{src/components → components}/form/FormSlider.d.ts +3 -3
  38. package/dist/components/form/FormSubmitButton.d.ts +4 -0
  39. package/dist/{src/components → components}/form/FormSwitch.d.ts +3 -3
  40. package/dist/{src/components → components}/form/FormTextField.d.ts +3 -3
  41. package/dist/components/form/FormTimePicker.d.ts +8 -0
  42. package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
  43. package/dist/components/router/RouterButton.d.ts +6 -0
  44. package/dist/components/router/RouterError.d.ts +7 -0
  45. package/dist/components/router/RouterFab.d.ts +6 -0
  46. package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
  47. package/dist/components/router/RouterIconButton.d.ts +6 -0
  48. package/dist/components/router/RouterLink.d.ts +6 -0
  49. package/dist/components/router/RouterListItemButton.d.ts +6 -0
  50. package/dist/components/router/RouterNotFound.d.ts +1 -0
  51. package/dist/components/router/RouterTab.d.ts +6 -0
  52. package/dist/components.js +3255 -0
  53. package/dist/components.js.map +1 -0
  54. package/dist/contexts/DialogsContext.d.ts +6 -0
  55. package/dist/contexts/FileContext.d.ts +13 -0
  56. package/dist/contexts/NotificationContext.d.ts +9 -0
  57. package/dist/dist-Bxzg1_9c.js +152 -0
  58. package/dist/dist-Bxzg1_9c.js.map +1 -0
  59. package/dist/exports/components.d.ts +15 -0
  60. package/dist/exports/hooks.d.ts +7 -0
  61. package/dist/exports/index.d.ts +5 -0
  62. package/dist/exports/middleware.d.ts +2 -0
  63. package/dist/exports/models.d.ts +24 -0
  64. package/dist/exports/query.d.ts +3 -0
  65. package/dist/exports/utils.d.ts +6 -0
  66. package/dist/exports/vite.d.ts +1 -0
  67. package/dist/hooks/DialogsHooks.d.ts +42 -0
  68. package/dist/hooks/FormHooks.d.ts +52 -0
  69. package/dist/hooks/UseNotification.d.ts +1 -0
  70. package/dist/hooks/UseScanDetection.d.ts +28 -0
  71. package/dist/hooks.js +1075 -0
  72. package/dist/hooks.js.map +1 -0
  73. package/dist/index.js +1105 -0
  74. package/dist/index.js.map +1 -0
  75. package/dist/lib/auth/msalClient.d.ts +19 -0
  76. package/dist/lib/auth/msalServer.d.ts +11 -0
  77. package/dist/lib/auth/permissions.d.ts +4 -0
  78. package/dist/lib/auth/scopes.d.ts +4 -0
  79. package/dist/lib/db/collections/userCollection.d.ts +18 -0
  80. package/dist/lib/queryClient.d.ts +2 -0
  81. package/dist/lib/theme.d.ts +1 -0
  82. package/dist/lib/utils.d.ts +63 -0
  83. package/dist/lib/vite-plugin.d.ts +2 -0
  84. package/dist/middleware/authMiddleware.d.ts +22 -0
  85. package/dist/middleware/validationMiddleware.d.ts +4 -0
  86. package/dist/middleware.js +1051 -0
  87. package/dist/middleware.js.map +1 -0
  88. package/dist/models/LayoutOptions.d.ts +7 -0
  89. package/dist/models/Navigation.d.ts +18 -0
  90. package/dist/models/TokenPayload.d.ts +9 -0
  91. package/dist/models/User.d.ts +10 -0
  92. package/dist/models/VaultConfig.d.ts +9 -0
  93. package/dist/models/approval/Approval.d.ts +177 -0
  94. package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
  95. package/dist/models/approval/ApprovalFlow.d.ts +49 -0
  96. package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
  97. package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
  98. package/dist/models/approval/ApprovalStatus.d.ts +9 -0
  99. package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
  100. package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
  101. package/dist/models/email/Email.d.ts +13 -0
  102. package/dist/models/email/EmailAttachment.d.ts +6 -0
  103. package/dist/models/file/FileActions.d.ts +6 -0
  104. package/dist/models/file/FileMeta.d.ts +15 -0
  105. package/dist/models/peoplesoft/Department.d.ts +58 -0
  106. package/dist/models/peoplesoft/Employee.d.ts +46 -0
  107. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
  108. package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
  109. package/dist/models.js +150 -0
  110. package/dist/models.js.map +1 -0
  111. package/dist/providers/DialogsProvider.d.ts +5 -0
  112. package/dist/providers/LayoutProvider.d.ts +12 -0
  113. package/dist/providers/MsalAuthProvider.d.ts +6 -0
  114. package/dist/providers/NotificationProvider.d.ts +7 -0
  115. package/dist/queries/ApprovalQueries.d.ts +661 -0
  116. package/dist/queries/FileQueries.d.ts +205 -0
  117. package/dist/queries/PeopleSoftQueries.d.ts +2173 -0
  118. package/dist/queries/index.d.ts +2958 -0
  119. package/dist/queries-D-DV5lCw.js +2941 -0
  120. package/dist/queries-D-DV5lCw.js.map +1 -0
  121. package/dist/query.js +3 -0
  122. package/dist/queryClient-B__OEZ70.js +7 -0
  123. package/dist/queryClient-B__OEZ70.js.map +1 -0
  124. package/dist/utils-C4oJ0tr5.js +157 -0
  125. package/dist/utils-C4oJ0tr5.js.map +1 -0
  126. package/dist/utils.js +35 -0
  127. package/dist/utils.js.map +1 -0
  128. package/dist/vite.js +110 -0
  129. package/dist/vite.js.map +1 -0
  130. package/package.json +132 -62
  131. package/dist/src/components/Layout.d.ts +0 -16
  132. package/dist/src/components/Layout.js +0 -122
  133. package/dist/src/components/Layout.js.map +0 -1
  134. package/dist/src/components/dataGrid/ChipInputCell.js +0 -17
  135. package/dist/src/components/dataGrid/ChipInputCell.js.map +0 -1
  136. package/dist/src/components/dataGrid/EditableColumnHeader.d.ts +0 -2
  137. package/dist/src/components/dataGrid/EditableColumnHeader.js +0 -7
  138. package/dist/src/components/dataGrid/EditableColumnHeader.js.map +0 -1
  139. package/dist/src/components/dataGrid/GridToolbar.d.ts +0 -8
  140. package/dist/src/components/dataGrid/GridToolbar.js +0 -40
  141. package/dist/src/components/dataGrid/GridToolbar.js.map +0 -1
  142. package/dist/src/components/dataGrid/TableContainer.d.ts +0 -3
  143. package/dist/src/components/dataGrid/TableContainer.js +0 -32
  144. package/dist/src/components/dataGrid/TableContainer.js.map +0 -1
  145. package/dist/src/components/form/FormAutocomplete.js +0 -10
  146. package/dist/src/components/form/FormAutocomplete.js.map +0 -1
  147. package/dist/src/components/form/FormCheckbox.js +0 -11
  148. package/dist/src/components/form/FormCheckbox.js.map +0 -1
  149. package/dist/src/components/form/FormDatePicker.d.ts +0 -9
  150. package/dist/src/components/form/FormDatePicker.js +0 -19
  151. package/dist/src/components/form/FormDatePicker.js.map +0 -1
  152. package/dist/src/components/form/FormDateTimePicker.d.ts +0 -9
  153. package/dist/src/components/form/FormDateTimePicker.js +0 -19
  154. package/dist/src/components/form/FormDateTimePicker.js.map +0 -1
  155. package/dist/src/components/form/FormNumberField.js +0 -12
  156. package/dist/src/components/form/FormNumberField.js.map +0 -1
  157. package/dist/src/components/form/FormRadioGroup.js +0 -11
  158. package/dist/src/components/form/FormRadioGroup.js.map +0 -1
  159. package/dist/src/components/form/FormSlider.js +0 -11
  160. package/dist/src/components/form/FormSlider.js.map +0 -1
  161. package/dist/src/components/form/FormSubmitButton.d.ts +0 -5
  162. package/dist/src/components/form/FormSubmitButton.js +0 -13
  163. package/dist/src/components/form/FormSubmitButton.js.map +0 -1
  164. package/dist/src/components/form/FormSwitch.js +0 -11
  165. package/dist/src/components/form/FormSwitch.js.map +0 -1
  166. package/dist/src/components/form/FormTextField.js +0 -11
  167. package/dist/src/components/form/FormTextField.js.map +0 -1
  168. package/dist/src/components/layout/AccountMenu.d.ts +0 -9
  169. package/dist/src/components/layout/AccountMenu.js +0 -44
  170. package/dist/src/components/layout/AccountMenu.js.map +0 -1
  171. package/dist/src/components/layout/DevelopmentBanner.d.ts +0 -7
  172. package/dist/src/components/layout/DevelopmentBanner.js +0 -29
  173. package/dist/src/components/layout/DevelopmentBanner.js.map +0 -1
  174. package/dist/src/components/layout/ErrorPage.d.ts +0 -2
  175. package/dist/src/components/layout/ErrorPage.js +0 -25
  176. package/dist/src/components/layout/ErrorPage.js.map +0 -1
  177. package/dist/src/components/layout/LayoutDialog.d.ts +0 -12
  178. package/dist/src/components/layout/LayoutDialog.js +0 -12
  179. package/dist/src/components/layout/LayoutDialog.js.map +0 -1
  180. package/dist/src/components/layout/LayoutSnackbar.d.ts +0 -8
  181. package/dist/src/components/layout/LayoutSnackbar.js +0 -25
  182. package/dist/src/components/layout/LayoutSnackbar.js.map +0 -1
  183. package/dist/src/components/layout/NavigationDrawer.d.ts +0 -11
  184. package/dist/src/components/layout/NavigationDrawer.js +0 -70
  185. package/dist/src/components/layout/NavigationDrawer.js.map +0 -1
  186. package/dist/src/components/layout/NotificationMenu.d.ts +0 -8
  187. package/dist/src/components/layout/NotificationMenu.js +0 -26
  188. package/dist/src/components/layout/NotificationMenu.js.map +0 -1
  189. package/dist/src/components/layout/TypographyWithIcon.js +0 -22
  190. package/dist/src/components/layout/TypographyWithIcon.js.map +0 -1
  191. package/dist/src/components/layout/Unauthorized.d.ts +0 -2
  192. package/dist/src/components/layout/Unauthorized.js +0 -26
  193. package/dist/src/components/layout/Unauthorized.js.map +0 -1
  194. package/dist/src/contexts/LayoutContext.d.ts +0 -40
  195. package/dist/src/contexts/LayoutContext.js +0 -60
  196. package/dist/src/contexts/LayoutContext.js.map +0 -1
  197. package/dist/src/contexts/UserContext.d.ts +0 -24
  198. package/dist/src/contexts/UserContext.js +0 -55
  199. package/dist/src/contexts/UserContext.js.map +0 -1
  200. package/dist/src/hooks/FormHooks.d.ts +0 -46
  201. package/dist/src/hooks/FormHooks.js +0 -31
  202. package/dist/src/hooks/FormHooks.js.map +0 -1
  203. package/dist/src/hooks/UseSnackbar.d.ts +0 -10
  204. package/dist/src/hooks/UseSnackbar.js +0 -23
  205. package/dist/src/hooks/UseSnackbar.js.map +0 -1
  206. package/dist/src/hooks/UseUser.d.ts +0 -10
  207. package/dist/src/hooks/UseUser.js +0 -25
  208. package/dist/src/hooks/UseUser.js.map +0 -1
  209. package/dist/src/index.d.ts +0 -20
  210. package/dist/src/index.js +0 -15
  211. package/dist/src/index.js.map +0 -1
  212. package/dist/src/models/Error.d.ts +0 -6
  213. package/dist/src/models/Error.js +0 -2
  214. package/dist/src/models/Error.js.map +0 -1
  215. package/dist/src/models/KeycloakSettings.d.ts +0 -8
  216. package/dist/src/models/KeycloakSettings.js +0 -2
  217. package/dist/src/models/KeycloakSettings.js.map +0 -1
  218. package/dist/src/models/LayoutPaletteColorOptions.d.ts +0 -6
  219. package/dist/src/models/LayoutPaletteColorOptions.js +0 -2
  220. package/dist/src/models/LayoutPaletteColorOptions.js.map +0 -1
  221. package/dist/src/models/LayoutRoute.d.ts +0 -14
  222. package/dist/src/models/LayoutRoute.js +0 -2
  223. package/dist/src/models/LayoutRoute.js.map +0 -1
  224. package/dist/src/models/Notification.d.ts +0 -9
  225. package/dist/src/models/Notification.js +0 -2
  226. package/dist/src/models/Notification.js.map +0 -1
  227. package/dist/src/models/PeoplesoftDepartment.d.ts +0 -14
  228. package/dist/src/models/PeoplesoftDepartment.js +0 -2
  229. package/dist/src/models/PeoplesoftDepartment.js.map +0 -1
  230. package/dist/src/models/PeoplesoftEmployee.d.ts +0 -34
  231. package/dist/src/models/PeoplesoftEmployee.js +0 -2
  232. package/dist/src/models/PeoplesoftEmployee.js.map +0 -1
  233. package/dist/src/models/Snackbar.d.ts +0 -15
  234. package/dist/src/models/Snackbar.js +0 -2
  235. package/dist/src/models/Snackbar.js.map +0 -1
  236. package/dist/src/models/User.d.ts +0 -27
  237. package/dist/src/models/User.js +0 -11
  238. package/dist/src/models/User.js.map +0 -1
  239. package/dist/src/models/types/EmployeeCategoryGroup.d.ts +0 -1
  240. package/dist/src/models/types/EmployeeCategoryGroup.js +0 -2
  241. package/dist/src/models/types/EmployeeCategoryGroup.js.map +0 -1
  242. package/dist/src/models/types/EmployeeStatus.d.ts +0 -1
  243. package/dist/src/models/types/EmployeeStatus.js +0 -2
  244. package/dist/src/models/types/EmployeeStatus.js.map +0 -1
  245. package/dist/src/utils/Auth.d.ts +0 -12
  246. package/dist/src/utils/Auth.js +0 -49
  247. package/dist/src/utils/Auth.js.map +0 -1
  248. package/dist/src/utils/Fetches.d.ts +0 -5
  249. package/dist/src/utils/Fetches.js +0 -66
  250. package/dist/src/utils/Fetches.js.map +0 -1
  251. package/dist/src/utils/FormUtils.d.ts +0 -7
  252. package/dist/src/utils/FormUtils.js +0 -9
  253. package/dist/src/utils/FormUtils.js.map +0 -1
  254. package/dist/src/utils/Helpers.d.ts +0 -11
  255. package/dist/src/utils/Helpers.js +0 -26
  256. package/dist/src/utils/Helpers.js.map +0 -1
  257. package/dist/tsconfig.tsbuildinfo +0 -1
  258. package/src/components/Layout.tsx +0 -183
  259. package/src/components/dataGrid/ChipInputCell.tsx +0 -31
  260. package/src/components/dataGrid/EditableColumnHeader.tsx +0 -7
  261. package/src/components/dataGrid/GridToolbar.tsx +0 -63
  262. package/src/components/dataGrid/TableContainer.tsx +0 -39
  263. package/src/components/form/FormAutocomplete.tsx +0 -34
  264. package/src/components/form/FormCheckbox.tsx +0 -32
  265. package/src/components/form/FormDatePicker.tsx +0 -34
  266. package/src/components/form/FormDateTimePicker.tsx +0 -34
  267. package/src/components/form/FormNumberField.tsx +0 -33
  268. package/src/components/form/FormRadioGroup.tsx +0 -43
  269. package/src/components/form/FormSlider.tsx +0 -28
  270. package/src/components/form/FormSubmitButton.tsx +0 -29
  271. package/src/components/form/FormSwitch.tsx +0 -32
  272. package/src/components/form/FormTextField.tsx +0 -26
  273. package/src/components/layout/AccountMenu.tsx +0 -160
  274. package/src/components/layout/DevelopmentBanner.tsx +0 -54
  275. package/src/components/layout/ErrorPage.tsx +0 -34
  276. package/src/components/layout/LayoutDialog.tsx +0 -50
  277. package/src/components/layout/LayoutSnackbar.tsx +0 -44
  278. package/src/components/layout/NavigationDrawer.tsx +0 -131
  279. package/src/components/layout/NotificationMenu.tsx +0 -76
  280. package/src/components/layout/TypographyWithIcon.tsx +0 -35
  281. package/src/components/layout/Unauthorized.tsx +0 -37
  282. package/src/contexts/LayoutContext.tsx +0 -127
  283. package/src/contexts/UserContext.tsx +0 -88
  284. package/src/hooks/FormHooks.ts +0 -33
  285. package/src/hooks/UseSnackbar.tsx +0 -28
  286. package/src/hooks/UseUser.tsx +0 -29
  287. package/src/index.ts +0 -27
  288. package/src/models/Error.tsx +0 -6
  289. package/src/models/KeycloakSettings.ts +0 -8
  290. package/src/models/LayoutPaletteColorOptions.tsx +0 -7
  291. package/src/models/LayoutRoute.ts +0 -15
  292. package/src/models/Notification.ts +0 -10
  293. package/src/models/PeoplesoftDepartment.ts +0 -15
  294. package/src/models/PeoplesoftEmployee.ts +0 -35
  295. package/src/models/Snackbar.ts +0 -16
  296. package/src/models/User.ts +0 -13
  297. package/src/models/types/EmployeeCategoryGroup.ts +0 -1
  298. package/src/models/types/EmployeeStatus.ts +0 -1
  299. package/src/utils/Auth.ts +0 -58
  300. package/src/utils/Fetches.ts +0 -83
  301. package/src/utils/FormUtils.ts +0 -22
  302. package/src/utils/Helpers.ts +0 -27
  303. package/tsconfig.json +0 -29
@@ -0,0 +1,7 @@
1
+ import { createContext as e } from "react";
2
+ //#region src/contexts/DialogsContext.ts
3
+ var t = e({});
4
+ //#endregion
5
+ export { t };
6
+
7
+ //# sourceMappingURL=DialogsContext-BIhId-r8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogsContext-BIhId-r8.js","names":["createContext","CloseDialog","OpenDialog","DialogsContextValue","open","close","DialogsContext"],"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);\n"],"mappings":";;AAQA,IAAaM,IAAiBN,EAAmC,EAAE,CAAwB"}
@@ -0,0 +1,207 @@
1
+ import { t as e } from "./DialogsContext-BIhId-r8.js";
2
+ import { c as t } from "react/compiler-runtime";
3
+ import { Button as n, Dialog as r, DialogActions as i, DialogContent as a, DialogTitle as o, useEventCallback as s } from "@mui/material";
4
+ import { useTranslation as c } from "react-i18next";
5
+ import * as l from "react";
6
+ import { useContext as u } from "react";
7
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
+ //#region node_modules/react-intersection-observer/dist/index.mjs
9
+ var p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new WeakMap(), h = 0, g;
10
+ function _(e) {
11
+ return e ? m.has(e) ? m.get(e) : (h += 1, m.set(e, h.toString()), m.get(e)) : "0";
12
+ }
13
+ function v(e) {
14
+ return Object.keys(e).sort().filter((t) => e[t] !== void 0).map((t) => `${t}_${t === "root" ? _(e.root) : e[t]}`).toString();
15
+ }
16
+ function y(e) {
17
+ let t = v(e), n = p.get(t);
18
+ if (!n) {
19
+ let r = /* @__PURE__ */ new Map(), i, a = new IntersectionObserver((t) => {
20
+ t.forEach((t) => {
21
+ let n = t.isIntersecting && i.some((e) => t.intersectionRatio >= e);
22
+ e.trackVisibility && t.isVisible === void 0 && (t.isVisible = n), [...r.get(t.target) ?? []].forEach((e) => {
23
+ e(n, t);
24
+ });
25
+ });
26
+ }, e);
27
+ i = a.thresholds || (Array.isArray(e.threshold) ? e.threshold : [e.threshold || 0]), n = {
28
+ id: t,
29
+ observer: a,
30
+ elements: r
31
+ }, p.set(t, n);
32
+ }
33
+ return n;
34
+ }
35
+ function b(e, t, n = {}, r = g) {
36
+ if (window.IntersectionObserver === void 0 && r !== void 0) {
37
+ let i = e.getBoundingClientRect();
38
+ return t(r, {
39
+ isIntersecting: r,
40
+ target: e,
41
+ intersectionRatio: typeof n.threshold == "number" ? n.threshold : 0,
42
+ time: 0,
43
+ boundingClientRect: i,
44
+ intersectionRect: i,
45
+ rootBounds: i
46
+ }), () => {};
47
+ }
48
+ let { id: i, observer: a, elements: o } = y(n), s = o.get(e) || [];
49
+ return o.has(e) || o.set(e, s), s.push(t), a.observe(e), function() {
50
+ s.splice(s.indexOf(t), 1), s.length === 0 && (o.delete(e), a.unobserve(e)), o.size === 0 && (a.disconnect(), p.delete(i));
51
+ };
52
+ }
53
+ function x({ threshold: e, delay: t, trackVisibility: n, rootMargin: r, root: i, triggerOnce: a, skip: o, initialInView: s, fallbackInView: c, onChange: u } = {}) {
54
+ let [d, f] = l.useState(null), p = l.useRef(u), m = l.useRef(s), [h, g] = l.useState({
55
+ inView: !!s,
56
+ entry: void 0
57
+ });
58
+ p.current = u, l.useEffect(() => {
59
+ if (m.current === void 0 && (m.current = s), o || !d) return;
60
+ let l;
61
+ return l = b(d, (e, t) => {
62
+ let n = m.current;
63
+ m.current = e, !(n === void 0 && !e) && (g({
64
+ inView: e,
65
+ entry: t
66
+ }), p.current && p.current(e, t), t.isIntersecting && a && l && (l(), l = void 0));
67
+ }, {
68
+ root: i,
69
+ rootMargin: r,
70
+ threshold: e,
71
+ trackVisibility: n,
72
+ delay: t
73
+ }, c), () => {
74
+ l && l();
75
+ };
76
+ }, [
77
+ Array.isArray(e) ? e.toString() : e,
78
+ d,
79
+ i,
80
+ r,
81
+ a,
82
+ o,
83
+ n,
84
+ c,
85
+ t
86
+ ]);
87
+ let _ = h.entry?.target, v = l.useRef(void 0);
88
+ !d && _ && !a && !o && v.current !== _ && (v.current = _, g({
89
+ inView: !!s,
90
+ entry: void 0
91
+ }), m.current = s);
92
+ let y = [
93
+ f,
94
+ h.inView,
95
+ h.entry
96
+ ];
97
+ return y.ref = y[0], y.inView = y[1], y.entry = y[2], y;
98
+ }
99
+ ("useInsertionEffect" in l ? l.useInsertionEffect : void 0) ?? l.useLayoutEffect ?? l.useEffect;
100
+ //#endregion
101
+ //#region src/hooks/DialogsHooks.tsx
102
+ function S(e) {
103
+ let s = t(22), { open: l, payload: u, onClose: p } = e, { t: m } = c(), h;
104
+ s[0] === p ? h = s[1] : (h = () => p(), s[0] = p, s[1] = h);
105
+ let g;
106
+ s[2] !== u.title || s[3] !== m ? (g = u.title ?? m("Layout.Dialog.Alert"), s[2] = u.title, s[3] = m, s[4] = g) : g = s[4];
107
+ let _;
108
+ s[5] === g ? _ = s[6] : (_ = /* @__PURE__ */ d(o, { children: g }), s[5] = g, s[6] = _);
109
+ let v;
110
+ s[7] === u.message ? v = s[8] : (v = /* @__PURE__ */ d(a, { children: u.message }), s[7] = u.message, s[8] = v);
111
+ let y;
112
+ s[9] === p ? y = s[10] : (y = () => p(), s[9] = p, s[10] = y);
113
+ let b;
114
+ s[11] === m ? b = s[12] : (b = m("Layout.Dialog.Confirm"), s[11] = m, s[12] = b);
115
+ let x;
116
+ s[13] !== y || s[14] !== b ? (x = /* @__PURE__ */ d(i, { children: /* @__PURE__ */ d(n, {
117
+ onClick: y,
118
+ autoFocus: !0,
119
+ children: b
120
+ }) }), s[13] = y, s[14] = b, s[15] = x) : x = s[15];
121
+ let S;
122
+ return s[16] !== l || s[17] !== h || s[18] !== _ || s[19] !== v || s[20] !== x ? (S = /* @__PURE__ */ f(r, {
123
+ maxWidth: "xs",
124
+ fullWidth: !0,
125
+ open: l,
126
+ onClose: h,
127
+ disableRestoreFocus: !0,
128
+ children: [
129
+ _,
130
+ v,
131
+ x
132
+ ]
133
+ }), s[16] = l, s[17] = h, s[18] = _, s[19] = v, s[20] = x, s[21] = S) : S = s[21], S;
134
+ }
135
+ function C(e) {
136
+ let s = t(33), { open: l, payload: u, onClose: p } = e, { t: m } = c(), h;
137
+ s[0] === p ? h = s[1] : (h = () => p(!1), s[0] = p, s[1] = h);
138
+ let g;
139
+ s[2] !== u.title || s[3] !== m ? (g = u.title ?? m("Layout.Dialog.Confirm"), s[2] = u.title, s[3] = m, s[4] = g) : g = s[4];
140
+ let _;
141
+ s[5] === g ? _ = s[6] : (_ = /* @__PURE__ */ d(o, { children: g }), s[5] = g, s[6] = _);
142
+ let v;
143
+ s[7] === u.message ? v = s[8] : (v = /* @__PURE__ */ d(a, { children: u.message }), s[7] = u.message, s[8] = v);
144
+ let y;
145
+ s[9] === p ? y = s[10] : (y = () => p(!1), s[9] = p, s[10] = y);
146
+ let b;
147
+ s[11] !== u.cancelText || s[12] !== m ? (b = u.cancelText ?? m("Layout.Dialog.Cancel"), s[11] = u.cancelText, s[12] = m, s[13] = b) : b = s[13];
148
+ let x;
149
+ s[14] !== y || s[15] !== b ? (x = /* @__PURE__ */ d(n, {
150
+ onClick: y,
151
+ children: b
152
+ }), s[14] = y, s[15] = b, s[16] = x) : x = s[16];
153
+ let S;
154
+ s[17] === p ? S = s[18] : (S = () => p(!0), s[17] = p, s[18] = S);
155
+ let C;
156
+ s[19] === m ? C = s[20] : (C = m("Layout.Dialog.Confirm"), s[19] = m, s[20] = C);
157
+ let w;
158
+ s[21] !== S || s[22] !== C ? (w = /* @__PURE__ */ d(n, {
159
+ onClick: S,
160
+ autoFocus: !0,
161
+ children: C
162
+ }), s[21] = S, s[22] = C, s[23] = w) : w = s[23];
163
+ let T;
164
+ s[24] !== w || s[25] !== x ? (T = /* @__PURE__ */ f(i, { children: [x, w] }), s[24] = w, s[25] = x, s[26] = T) : T = s[26];
165
+ let E;
166
+ return s[27] !== l || s[28] !== h || s[29] !== T || s[30] !== _ || s[31] !== v ? (E = /* @__PURE__ */ f(r, {
167
+ maxWidth: "xs",
168
+ fullWidth: !0,
169
+ open: l,
170
+ onClose: h,
171
+ disableRestoreFocus: !0,
172
+ children: [
173
+ _,
174
+ v,
175
+ T
176
+ ]
177
+ }), s[27] = l, s[28] = h, s[29] = T, s[30] = _, s[31] = v, s[32] = E) : E = s[32], E;
178
+ }
179
+ function w() {
180
+ let n = t(9), { open: r, close: i } = u(e), a;
181
+ n[0] === r ? a = n[1] : (a = (e, t) => {
182
+ let { ...n } = t === void 0 ? {} : t;
183
+ return r(S, {
184
+ ...n,
185
+ message: e
186
+ });
187
+ }, n[0] = r, n[1] = a);
188
+ let o = s(a), c;
189
+ n[2] === r ? c = n[3] : (c = (e, t) => {
190
+ let { ...n } = t === void 0 ? {} : t;
191
+ return r(C, {
192
+ ...n,
193
+ message: e
194
+ });
195
+ }, n[2] = r, n[3] = c);
196
+ let l = s(c), d;
197
+ return n[4] !== o || n[5] !== i || n[6] !== l || n[7] !== r ? (d = {
198
+ alert: o,
199
+ confirm: l,
200
+ open: r,
201
+ close: i
202
+ }, n[4] = o, n[5] = i, n[6] = l, n[7] = r, n[8] = d) : d = n[8], d;
203
+ }
204
+ //#endregion
205
+ export { x as n, w as t };
206
+
207
+ //# sourceMappingURL=DialogsHooks-CZVdKmPv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialogsHooks-CZVdKmPv.js","names":["React3","Button","Dialog","DialogActions","DialogContent","DialogTitle","useEventCallback","useContext","useTranslation","DialogsContext","ReactNode","OpenDialogOptions","onClose","result","TResult","Promise","AlertOptions","title","ConfirmOptions","cancelText","DialogProps","payload","TPayload","open","OpenAlertDialog","message","options","OpenConfirmDialog","DialogComponent","React","ComponentType","OpenDialog","Component","CloseDialog","dialog","AlertDialogPayload","AlertDialogProps","AlertDialog","t0","$","_c","t","t1","t2","t3","t4","t5","t6","t7","t8","ConfirmDialogPayload","ConfirmDialogProps","ConfirmDialog","t9","t10","t11","t12","DialogHook","alert","confirm","close","useDialogs","undefined","message_0","options_0"],"sources":["../node_modules/react-intersection-observer/dist/index.mjs","../src/hooks/DialogsHooks.tsx"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n\n// src/InView.tsx\nimport * as React from \"react\";\n\n// src/observe.ts\nvar observerMap = /* @__PURE__ */ new Map();\nvar RootIds = /* @__PURE__ */ new WeakMap();\nvar rootId = 0;\nvar unsupportedValue;\nfunction defaultFallbackInView(inView) {\n unsupportedValue = inView;\n}\nfunction getRootId(root) {\n if (!root) return \"0\";\n if (RootIds.has(root)) return RootIds.get(root);\n rootId += 1;\n RootIds.set(root, rootId.toString());\n return RootIds.get(root);\n}\nfunction optionsToId(options) {\n return Object.keys(options).sort().filter(\n (key) => options[key] !== void 0\n ).map((key) => {\n return `${key}_${key === \"root\" ? getRootId(options.root) : options[key]}`;\n }).toString();\n}\nfunction createObserver(options) {\n const id = optionsToId(options);\n let instance = observerMap.get(id);\n if (!instance) {\n const elements = /* @__PURE__ */ new Map();\n let thresholds;\n const observer = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n var _a2;\n const inView = entry.isIntersecting && thresholds.some((threshold) => entry.intersectionRatio >= threshold);\n if (options.trackVisibility && typeof entry.isVisible === \"undefined\") {\n entry.isVisible = inView;\n }\n [...(_a2 = elements.get(entry.target)) != null ? _a2 : []].forEach((callback) => {\n callback(inView, entry);\n });\n });\n }, options);\n thresholds = observer.thresholds || (Array.isArray(options.threshold) ? options.threshold : [options.threshold || 0]);\n instance = {\n id,\n observer,\n elements\n };\n observerMap.set(id, instance);\n }\n return instance;\n}\nfunction observe(element, callback, options = {}, fallbackInView = unsupportedValue) {\n if (typeof window.IntersectionObserver === \"undefined\" && fallbackInView !== void 0) {\n const bounds = element.getBoundingClientRect();\n callback(fallbackInView, {\n isIntersecting: fallbackInView,\n target: element,\n intersectionRatio: typeof options.threshold === \"number\" ? options.threshold : 0,\n time: 0,\n boundingClientRect: bounds,\n intersectionRect: bounds,\n rootBounds: bounds\n });\n return () => {\n };\n }\n const { id, observer, elements } = createObserver(options);\n const callbacks = elements.get(element) || [];\n if (!elements.has(element)) {\n elements.set(element, callbacks);\n }\n callbacks.push(callback);\n observer.observe(element);\n return function unobserve() {\n callbacks.splice(callbacks.indexOf(callback), 1);\n if (callbacks.length === 0) {\n elements.delete(element);\n observer.unobserve(element);\n }\n if (elements.size === 0) {\n observer.disconnect();\n observerMap.delete(id);\n }\n };\n}\n\n// src/InView.tsx\nfunction isPlainChildren(props) {\n return typeof props.children !== \"function\";\n}\nvar InView = class extends React.Component {\n constructor(props) {\n super(props);\n __publicField(this, \"node\", null);\n __publicField(this, \"_unobserveCb\", null);\n __publicField(this, \"lastInView\");\n __publicField(this, \"handleNode\", (node) => {\n if (this.node) {\n this.unobserve();\n if (!node && !this.props.triggerOnce && !this.props.skip) {\n this.setState({ inView: !!this.props.initialInView, entry: void 0 });\n this.lastInView = this.props.initialInView;\n }\n }\n this.node = node ? node : null;\n this.observeNode();\n });\n __publicField(this, \"handleChange\", (inView, entry) => {\n const previousInView = this.lastInView;\n this.lastInView = inView;\n if (previousInView === void 0 && !inView) {\n return;\n }\n if (inView && this.props.triggerOnce) {\n this.unobserve();\n }\n if (!isPlainChildren(this.props)) {\n this.setState({ inView, entry });\n }\n if (this.props.onChange) {\n this.props.onChange(inView, entry);\n }\n });\n this.state = {\n inView: !!props.initialInView,\n entry: void 0\n };\n this.lastInView = props.initialInView;\n }\n componentDidMount() {\n this.unobserve();\n this.observeNode();\n }\n componentDidUpdate(prevProps) {\n if (prevProps.rootMargin !== this.props.rootMargin || prevProps.root !== this.props.root || prevProps.threshold !== this.props.threshold || prevProps.skip !== this.props.skip || prevProps.trackVisibility !== this.props.trackVisibility || prevProps.delay !== this.props.delay) {\n this.unobserve();\n this.observeNode();\n }\n }\n componentWillUnmount() {\n this.unobserve();\n }\n observeNode() {\n if (!this.node || this.props.skip) return;\n const {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n fallbackInView\n } = this.props;\n if (this.lastInView === void 0) {\n this.lastInView = this.props.initialInView;\n }\n this._unobserveCb = observe(\n this.node,\n this.handleChange,\n {\n threshold,\n root,\n rootMargin,\n // @ts-expect-error\n trackVisibility,\n delay\n },\n fallbackInView\n );\n }\n unobserve() {\n if (this._unobserveCb) {\n this._unobserveCb();\n this._unobserveCb = null;\n }\n }\n render() {\n const { children } = this.props;\n if (typeof children === \"function\") {\n const { inView, entry } = this.state;\n return children({ inView, entry, ref: this.handleNode });\n }\n const {\n as,\n triggerOnce,\n threshold,\n root,\n rootMargin,\n onChange,\n skip,\n trackVisibility,\n delay,\n initialInView,\n fallbackInView,\n ...props\n } = this.props;\n return React.createElement(\n as || \"div\",\n { ref: this.handleNode, ...props },\n children\n );\n }\n};\n\n// src/useInView.tsx\nimport * as React2 from \"react\";\nfunction useInView({\n threshold,\n delay,\n trackVisibility,\n rootMargin,\n root,\n triggerOnce,\n skip,\n initialInView,\n fallbackInView,\n onChange\n} = {}) {\n var _a2;\n const [ref, setRef] = React2.useState(null);\n const callback = React2.useRef(onChange);\n const lastInViewRef = React2.useRef(initialInView);\n const [state, setState] = React2.useState({\n inView: !!initialInView,\n entry: void 0\n });\n callback.current = onChange;\n React2.useEffect(\n () => {\n if (lastInViewRef.current === void 0) {\n lastInViewRef.current = initialInView;\n }\n if (skip || !ref) return;\n let unobserve;\n unobserve = observe(\n ref,\n (inView, entry) => {\n const previousInView = lastInViewRef.current;\n lastInViewRef.current = inView;\n if (previousInView === void 0 && !inView) {\n return;\n }\n setState({\n inView,\n entry\n });\n if (callback.current) callback.current(inView, entry);\n if (entry.isIntersecting && triggerOnce && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n },\n {\n root,\n rootMargin,\n threshold,\n // @ts-expect-error\n trackVisibility,\n delay\n },\n fallbackInView\n );\n return () => {\n if (unobserve) {\n unobserve();\n }\n };\n },\n // We break the rule here, because we aren't including the actual `threshold` variable\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n // If the threshold is an array, convert it to a string, so it won't change between renders.\n Array.isArray(threshold) ? threshold.toString() : threshold,\n ref,\n root,\n rootMargin,\n triggerOnce,\n skip,\n trackVisibility,\n fallbackInView,\n delay\n ]\n );\n const entryTarget = (_a2 = state.entry) == null ? void 0 : _a2.target;\n const previousEntryTarget = React2.useRef(void 0);\n if (!ref && entryTarget && !triggerOnce && !skip && previousEntryTarget.current !== entryTarget) {\n previousEntryTarget.current = entryTarget;\n setState({\n inView: !!initialInView,\n entry: void 0\n });\n lastInViewRef.current = initialInView;\n }\n const result = [setRef, state.inView, state.entry];\n result.ref = result[0];\n result.inView = result[1];\n result.entry = result[2];\n return result;\n}\n\n// src/useOnInView.tsx\nimport * as React3 from \"react\";\nvar _a, _b;\nvar useSyncEffect = (_b = (_a = \"useInsertionEffect\" in React3 ? React3.useInsertionEffect : void 0) != null ? _a : React3.useLayoutEffect) != null ? _b : React3.useEffect;\nvar useOnInView = (onIntersectionChange, {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n triggerOnce,\n skip\n} = {}) => {\n const onIntersectionChangeRef = React3.useRef(onIntersectionChange);\n const observedElementRef = React3.useRef(null);\n const observerCleanupRef = React3.useRef(void 0);\n const lastInViewRef = React3.useRef(void 0);\n useSyncEffect(() => {\n onIntersectionChangeRef.current = onIntersectionChange;\n }, [onIntersectionChange]);\n return React3.useCallback(\n (element) => {\n const cleanupExisting = () => {\n if (observerCleanupRef.current) {\n const cleanup = observerCleanupRef.current;\n observerCleanupRef.current = void 0;\n cleanup();\n }\n };\n if (element === observedElementRef.current) {\n return observerCleanupRef.current;\n }\n if (!element || skip) {\n cleanupExisting();\n observedElementRef.current = null;\n lastInViewRef.current = void 0;\n return;\n }\n cleanupExisting();\n observedElementRef.current = element;\n let destroyed = false;\n const destroyObserver = observe(\n element,\n (inView, entry) => {\n const previousInView = lastInViewRef.current;\n lastInViewRef.current = inView;\n if (previousInView === void 0 && !inView) {\n return;\n }\n onIntersectionChangeRef.current(\n inView,\n entry\n );\n if (triggerOnce && inView) {\n stopObserving();\n }\n },\n {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay\n }\n );\n function stopObserving() {\n if (destroyed) return;\n destroyed = true;\n destroyObserver();\n observedElementRef.current = null;\n observerCleanupRef.current = void 0;\n lastInViewRef.current = void 0;\n }\n observerCleanupRef.current = stopObserving;\n return observerCleanupRef.current;\n },\n [\n Array.isArray(threshold) ? threshold.toString() : threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n triggerOnce,\n skip\n ]\n );\n};\nexport {\n InView,\n defaultFallbackInView,\n observe,\n useInView,\n useOnInView\n};\n//# sourceMappingURL=index.mjs.map","import {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n useEventCallback,\n} from \"@mui/material\";\nimport { useContext } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { DialogsContext } from \"../contexts/DialogsContext\";\nimport type { ReactNode } from \"react\";\n\nexport interface OpenDialogOptions<TResult> {\n onClose?: (result: TResult) => Promise<void>;\n}\n\nexport interface AlertOptions {\n title?: ReactNode;\n}\n\nexport interface ConfirmOptions {\n title?: ReactNode;\n cancelText?: ReactNode;\n}\n\nexport interface DialogProps<TPayload = undefined, TResult = void> {\n payload: TPayload;\n open: boolean;\n onClose: (result: TResult) => Promise<void>;\n}\n\nexport type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;\n\nexport type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;\n\nexport type DialogComponent<TPayload, TResult> = React.ComponentType<\n DialogProps<TPayload, TResult>\n>;\n\nexport interface OpenDialog {\n <TPayload extends undefined, TResult>(\n Component: DialogComponent<TPayload, TResult>,\n payload?: TPayload,\n options?: OpenDialogOptions<TResult>,\n ): Promise<TResult>;\n <TPayload, TResult>(\n Component: DialogComponent<TPayload, TResult>,\n payload: TPayload,\n options?: OpenDialogOptions<TResult>,\n ): Promise<TResult>;\n}\n\nexport type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;\n\nexport interface AlertDialogPayload extends AlertOptions {\n message: ReactNode;\n}\n\nexport type AlertDialogProps = DialogProps<AlertDialogPayload, void>;\n\nexport function AlertDialog({ open, payload, onClose }: Readonly<AlertDialogProps>) {\n const { t } = useTranslation();\n\n return (\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose()} disableRestoreFocus>\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Alert\")}</DialogTitle>\n <DialogContent>{payload.message}</DialogContent>\n <DialogActions>\n <Button onClick={() => onClose()} autoFocus>\n {t(\"Layout.Dialog.Confirm\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n\nexport interface ConfirmDialogPayload extends ConfirmOptions {\n message: ReactNode;\n}\n\nexport type ConfirmDialogProps = DialogProps<ConfirmDialogPayload, boolean>;\n\nexport function ConfirmDialog({ open, payload, onClose }: Readonly<ConfirmDialogProps>) {\n const { t } = useTranslation();\n\n return (\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose(false)} disableRestoreFocus>\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Confirm\")}</DialogTitle>\n <DialogContent>{payload.message}</DialogContent>\n <DialogActions>\n <Button onClick={() => onClose(false)}>\n {payload.cancelText ?? t(\"Layout.Dialog.Cancel\")}\n </Button>\n <Button onClick={() => onClose(true)} autoFocus>\n {t(\"Layout.Dialog.Confirm\")}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n\ninterface DialogHook {\n alert: OpenAlertDialog;\n confirm: OpenConfirmDialog;\n open: OpenDialog;\n close: CloseDialog;\n}\n\nexport function useDialogs(): DialogHook {\n const { open, close } = useContext(DialogsContext);\n\n const alert = useEventCallback<OpenAlertDialog>((message, { ...options } = {}) =>\n open(AlertDialog, { ...options, message }),\n );\n\n const confirm = useEventCallback<OpenConfirmDialog>((message, { ...options } = {}) =>\n open(ConfirmDialog, { ...options, message }),\n );\n\n return { alert, confirm, open, close };\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AASA,IAAI,oBAA8B,IAAI,KAAK,EACvC,oBAA0B,IAAI,SAAS,EACvC,IAAS,GACT;AAIJ,SAAS,EAAU,GAAM;AAKvB,QAJK,IACD,EAAQ,IAAI,EAAK,GAAS,EAAQ,IAAI,EAAK,IAC/C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,MAAAoB,KAAAA,IAAA,EAAmB,GAAnBpB;AAAmB,SAC3EnB,EAAKc,GAAa;GAAA,GAAKX;GAAOD;GAAW,CAAC;IAAAc,EAAA,KAAAhB,GAAAgB,EAAA,KAAAD;CAD5C,IAAAoB,IAAcpD,EAAkCgC,EAE/C,EAACI;AAAA,CAAAH,EAAA,OAAAhB,IAG4CmB,IAAAH,EAAA,MADMG,KAAAqB,GAAApB,MAAA;EAAU,IAAA,EAAA,GAAAqB,MAAArB,MAAAmB,KAAAA,IAAA,EAAmB,GAAnBnB;AAAmB,SAC/EpB,EAAK6B,GAAe;GAAA,GAAK1B;GAAOD,SAAEA;GAAS,CAAC;IAAAc,EAAA,KAAAhB,GAAAgB,EAAA,KAAAG;CAD9C,IAAAiB,IAAgBrD,EAAoCoC,EAEnD,EAACC;AAEoC,QAFpCJ,EAAA,OAAAmB,KAAAnB,EAAA,OAAAqB,KAAArB,EAAA,OAAAoB,KAAApB,EAAA,OAAAhB,KAEKoB,IAAA;EAAAe;EAAAC;EAAApC;EAAAqC;EAA+B,EAAArB,EAAA,KAAAmB,GAAAnB,EAAA,KAAAqB,GAAArB,EAAA,KAAAoB,GAAApB,EAAA,KAAAhB,GAAAgB,EAAA,KAAAI,KAAAA,IAAAJ,EAAA,IAA/BI"}
@@ -0,0 +1,36 @@
1
+ import * as e from "zod";
2
+ import t from "zod";
3
+ //#region src/models/approval/ApprovalStatus.ts
4
+ var n = t.enum([
5
+ "WaitingForApproval",
6
+ "Approved",
7
+ "PartiallyApproved",
8
+ "Rejected",
9
+ "Withdrawn",
10
+ "Cancelled"
11
+ ]), r = t.enum([
12
+ "NotAvailable",
13
+ "FutureApproval",
14
+ "WaitingForApproval",
15
+ "Approved",
16
+ "Rejected",
17
+ "Skipped",
18
+ "Withdrawn",
19
+ "Cancelled"
20
+ ]), i = e.object({
21
+ id: e.uuid(),
22
+ subId: e.uuid(),
23
+ appName: e.string().trim().min(1).max(255),
24
+ fileName: e.string().trim().min(1).max(255),
25
+ fileExtension: e.string().trim().min(1).max(255),
26
+ fileSize: e.number().min(0),
27
+ mediaSubType: e.string().trim().min(1).max(255),
28
+ mediaType: e.string().trim().min(1).max(255),
29
+ mimeType: e.string().trim().min(1).max(255),
30
+ createdBy: e.string().trim().min(1).max(255),
31
+ createdDate: e.date()
32
+ });
33
+ //#endregion
34
+ export { r as n, n as r, i as t };
35
+
36
+ //# sourceMappingURL=FileMeta-YGG9mxo_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileMeta-YGG9mxo_.js","names":["z","ApprovalStatus","enum","z","ApprovalStepResult","enum","z","FileMetaSchema","object","id","uuid","subId","appName","string","trim","min","max","fileName","fileExtension","fileSize","number","mediaSubType","mediaType","mimeType","createdBy","createdDate","date","FileMeta","infer"],"sources":["../src/models/approval/ApprovalStatus.ts","../src/models/approval/ApprovalStepResult.ts","../src/models/file/FileMeta.ts"],"sourcesContent":["import z from \"zod\";\n\nexport const ApprovalStatus = z.enum([\n \"WaitingForApproval\",\n \"Approved\",\n \"PartiallyApproved\",\n \"Rejected\",\n \"Withdrawn\",\n \"Cancelled\",\n]);\n","import z from \"zod\";\n\nexport const ApprovalStepResult = z.enum([\n \"NotAvailable\",\n \"FutureApproval\",\n \"WaitingForApproval\",\n \"Approved\",\n \"Rejected\",\n \"Skipped\",\n \"Withdrawn\",\n \"Cancelled\",\n]);\n","import * as z from \"zod\";\n\nexport const FileMetaSchema = z.object({\n id: z.uuid(),\n subId: z.uuid(),\n appName: z.string().trim().min(1).max(255),\n fileName: z.string().trim().min(1).max(255),\n fileExtension: z.string().trim().min(1).max(255),\n fileSize: z.number().min(0),\n mediaSubType: z.string().trim().min(1).max(255),\n mediaType: z.string().trim().min(1).max(255),\n mimeType: z.string().trim().min(1).max(255),\n createdBy: z.string().trim().min(1).max(255),\n createdDate: z.date(),\n});\n\nexport type FileMeta = z.infer<typeof FileMetaSchema>;\n"],"mappings":";;;AAEA,IAAaC,IAAiBD,EAAEE,KAAK;CACnC;CACA;CACA;CACA;CACA;CACA;CACD,CAAC,ECPWE,IAAqBD,EAAEE,KAAK;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,CAAC,ECTWE,IAAiBD,EAAEE,OAAO;CACrCC,IAAIH,EAAEI,MAAM;CACZC,OAAOL,EAAEI,MAAM;CACfE,SAASN,EAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC1CC,UAAUX,EAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC3CE,eAAeZ,EAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAChDG,UAAUb,EAAEc,QAAQ,CAACL,IAAI,EAAE;CAC3BM,cAAcf,EAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC/CM,WAAWhB,EAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC5CO,UAAUjB,EAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC3CQ,WAAWlB,EAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC5CS,aAAanB,EAAEoB,MAAK;CACrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { createContext as e } from "react";
2
+ //#region src/contexts/NotificationContext.tsx
3
+ var t = e(null);
4
+ //#endregion
5
+ export { t };
6
+
7
+ //# sourceMappingURL=NotificationContext-DovR_auQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationContext-DovR_auQ.js","names":["createContext","AlertColor","NotificationOptions","severity","autoHideDuration","NotificationContextValue","notify","message","options","NotificationContext"],"sources":["../src/contexts/NotificationContext.tsx"],"sourcesContent":["import { createContext } from \"react\";\nimport type { AlertColor } from \"@mui/material/Alert\";\n\nexport interface NotificationOptions {\n severity?: AlertColor;\n autoHideDuration?: number;\n}\n\nexport interface NotificationContextValue {\n notify: (message: string, options?: NotificationOptions) => void;\n}\n\nexport const NotificationContext = createContext<NotificationContextValue | null>(null);\n"],"mappings":";;AAYA,IAAaS,IAAsBT,EAA+C,KAAK"}
@@ -0,0 +1,31 @@
1
+ import { c as e } from "react/compiler-runtime";
2
+ import { IconButton as t, ListItemButton as n } from "@mui/material";
3
+ import r from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import { createLink as a } from "@tanstack/react-router";
6
+ //#region src/components/router/RouterIconButton.tsx
7
+ var o = a(r.forwardRef(function(n, r) {
8
+ let a = e(3), o;
9
+ return a[0] !== n || a[1] !== r ? (o = /* @__PURE__ */ i(t, {
10
+ ref: r,
11
+ component: "a",
12
+ ...n
13
+ }), a[0] = n, a[1] = r, a[2] = o) : o = a[2], o;
14
+ })), s = (t) => {
15
+ let n = e(2), r;
16
+ return n[0] === t ? r = n[1] : (r = /* @__PURE__ */ i(o, { ...t }), n[0] = t, n[1] = r), r;
17
+ }, c = a(r.forwardRef(function(t, r) {
18
+ let a = e(3), o;
19
+ return a[0] !== t || a[1] !== r ? (o = /* @__PURE__ */ i(n, {
20
+ ref: r,
21
+ component: "a",
22
+ ...t
23
+ }), a[0] = t, a[1] = r, a[2] = o) : o = a[2], o;
24
+ })), l = (t) => {
25
+ let n = e(2), r;
26
+ return n[0] === t ? r = n[1] : (r = /* @__PURE__ */ i(c, { ...t }), n[0] = t, n[1] = r), r;
27
+ };
28
+ //#endregion
29
+ export { s as n, l as t };
30
+
31
+ //# sourceMappingURL=RouterListItemButton-DeaQB4ym.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterListItemButton-DeaQB4ym.js","names":["IconButton","createLink","React","IconButtonProps","LinkComponent","Component","forwardRef","HTMLAnchorElement","IconButtonComponent","props","reference","$","_c","t0","CreatedComponent","RouterIconButton","ListItemButton","createLink","React","ListItemButtonProps","LinkComponent","Component","forwardRef","HTMLAnchorElement","ButtonComponent","props","reference","$","_c","t0","CreatedComponent","RouterListItemButton"],"sources":["../src/components/router/RouterIconButton.tsx","../src/components/router/RouterListItemButton.tsx"],"sourcesContent":["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\">>(\n function IconButtonComponent(props, reference) {\n return <IconButton ref={reference} component=\"a\" {...props} />;\n },\n);\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterIconButton: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};\n","import { ListItemButton } from \"@mui/material\";\nimport { createLink } from \"@tanstack/react-router\";\nimport React from \"react\";\nimport type { ListItemButtonProps } from \"@mui/material\";\nimport type { LinkComponent } from \"@tanstack/react-router\";\n\nconst Component = React.forwardRef<HTMLAnchorElement, ListItemButtonProps<\"a\">>(\n function ButtonComponent(props, reference) {\n return <ListItemButton ref={reference} component=\"a\" {...props} />;\n },\n);\n\nconst CreatedComponent = createLink(Component);\n\nexport const RouterListItemButton: LinkComponent<typeof Component> = (props) => {\n return <CreatedComponent {...props} />;\n};\n"],"mappings":";;;;;;AAYA,IAAMc,IAAmBb,EANPC,EAAMI,WACtB,SAAAG,GAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,EAAAC;AACgE,QADhEF,EAAA,OAAAF,KAAAE,EAAA,OAAAD,KACSG,IAAA,kBAAC,GAAD;EAAiBH,KAAAA;EAAqB,WAAA;EAAG,GAAKD;EAAS,CAAA,EAAAE,EAAA,KAAAF,GAAAE,EAAA,KAAAD,GAAAC,EAAA,KAAAE,KAAAA,IAAAF,EAAA,IAAvDE;EAEV,CAE6C,EAEjCE,KAAoDN,MAAA;CAAA,IAAAE,IAAAC,EAAA,EAAA,EAAAC;AACzB,QADyBF,EAAA,OAAAF,IACzBI,IAAAF,EAAA,MAA/BE,IAAA,kBAAC,GAAD,EAAiB,GAAKJ,GAAS,CAAA,EAAAE,EAAA,KAAAF,GAAAE,EAAA,KAAAE,IAA/BA;GCHHiB,IAAmBb,EANPC,EAAMI,WACtB,SAAAG,GAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,EAAAC;AACoE,QADpEF,EAAA,OAAAF,KAAAE,EAAA,OAAAD,KACSG,IAAA,kBAAC,GAAD;EAAqBH,KAAAA;EAAqB,WAAA;EAAG,GAAKD;EAAS,CAAA,EAAAE,EAAA,KAAAF,GAAAE,EAAA,KAAAD,GAAAC,EAAA,KAAAE,KAAAA,IAAAF,EAAA,IAA3DE;EAEV,CAE6C,EAEjCE,KAAwDN,MAAA;CAAA,IAAAE,IAAAC,EAAA,EAAA,EAAAC;AAC7B,QAD6BF,EAAA,OAAAF,IAC7BI,IAAAF,EAAA,MAA/BE,IAAA,kBAAC,GAAD,EAAiB,GAAKJ,GAAS,CAAA,EAAAE,EAAA,KAAAF,GAAAE,EAAA,KAAAE,IAA/BA"}
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const AppTitle: FC;
@@ -0,0 +1,3 @@
1
+ import { BoxProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ export declare const Fullscreen: FC<BoxProps>;
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { LayoutOptions } from '../../models/LayoutOptions';
3
+ import { Navigation } from '../../models/Navigation';
4
+ interface LayoutProps {
5
+ navigation: Navigation | undefined;
6
+ options: LayoutOptions | undefined;
7
+ children: ReactNode;
8
+ }
9
+ export declare const Layout: FC<LayoutProps>;
10
+ export {};
@@ -1,4 +1,4 @@
1
- import { TypographyProps } from "@mui/material";
1
+ import { TypographyProps } from '@mui/material';
2
2
  interface TypographyWithIconProps extends TypographyProps {
3
3
  startIcon?: React.ReactNode;
4
4
  endIcon?: React.ReactNode;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const UserAvatar: FC;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const ToolbarAccount: FC;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { Navigation } from '../../../models/Navigation';
3
+ interface NavigationContentProps {
4
+ navigation: Navigation;
5
+ collapsed: boolean;
6
+ expanded: boolean;
7
+ setExpanded: (open: boolean) => void;
8
+ showPermanent: boolean;
9
+ }
10
+ export declare const NavigationContent: FC<NavigationContentProps>;
11
+ export {};
@@ -0,0 +1,22 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { Navigation, NavigationDivider, NavigationHeader, NavigationItem, NavigationPageItem } from '../../../models/Navigation';
3
+ export declare const isPageItem: (item: NavigationItem) => item is NavigationPageItem;
4
+ export declare const isDivider: (item: NavigationItem) => item is NavigationDivider;
5
+ export declare const isHeader: (item: NavigationItem) => item is NavigationHeader;
6
+ interface NavigationListProps {
7
+ subNavigation: Navigation;
8
+ depth?: number;
9
+ collapsed?: boolean;
10
+ isPopover?: boolean;
11
+ isSidebarFullyExpanded?: boolean;
12
+ isSidebarFullyCollapsed?: boolean;
13
+ expandedWidth: number | string;
14
+ renderItem?: (item: NavigationPageItem, context: {
15
+ collapsed: boolean;
16
+ }) => ReactNode;
17
+ activePath?: string | null;
18
+ onNavigate: (item: NavigationPageItem) => void;
19
+ onClose?: () => void;
20
+ }
21
+ export declare const NavigationList: FC<NavigationListProps>;
22
+ export {};
@@ -0,0 +1,16 @@
1
+ import { NavigationItem, NavigationPageItem } from '../../../models/Navigation';
2
+ import { FC, ReactNode } from 'react';
3
+ interface NavigationListItemProps {
4
+ item: NavigationPageItem;
5
+ isOpen?: boolean;
6
+ selected?: boolean;
7
+ disabled?: boolean;
8
+ collapsed?: boolean;
9
+ isSidebarFullyExpanded?: boolean;
10
+ isSidebarFullyCollapsed?: boolean;
11
+ onClick?: (item: NavigationPageItem) => void;
12
+ renderNested?: (sub: Array<NavigationItem>) => ReactNode;
13
+ onClose?: () => void;
14
+ }
15
+ export declare const NavigationListItem: FC<NavigationListItemProps>;
16
+ export {};
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { Navigation } from '../../../models/Navigation';
3
+ export declare const MINI_WIDTH = 84;
4
+ export declare const EXPANDED_WIDTH = 320;
5
+ export declare const TOOLBAR_HEIGHT = 64;
6
+ interface NavigationRailProps {
7
+ navigation: Navigation;
8
+ expanded: boolean;
9
+ setExpanded: (open: boolean) => void;
10
+ }
11
+ export declare const NavigationRail: FC<NavigationRailProps>;
12
+ export {};
@@ -1,9 +1,9 @@
1
- import { ChipProps } from "@mui/material";
2
- import { GridRenderCellParams, GridValidRowModel } from "@mui/x-data-grid-premium";
1
+ import { ChipProps } from '@mui/material';
2
+ import { GridRenderCellParams, GridValidRowModel } from '@mui/x-data-grid-premium';
3
3
  interface ChipInputCellProps<T extends GridValidRowModel> {
4
4
  params: GridRenderCellParams<T>;
5
5
  slotProps?: ChipProps;
6
6
  getLabel?: (object: T) => string | number;
7
7
  }
8
- export declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel, }: ChipInputCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
9
9
  export {};
@@ -0,0 +1,2 @@
1
+ import { GridColumnHeaderParams, GridValidRowModel } from '@mui/x-data-grid-premium';
2
+ export declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef, }: GridColumnHeaderParams<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { DropzoneOptions } from 'react-dropzone';
4
+ interface DropzoneProps extends DropzoneOptions {
5
+ sx?: SxProps<Theme>;
6
+ }
7
+ export declare const Dropzone: FC<DropzoneProps>;
8
+ export {};
@@ -0,0 +1,20 @@
1
+ import { FileViewerListProps } from './fileViewer/FileViewerList';
2
+ import { FileViewerGridProps } from './fileViewer/FileViewerGrid';
3
+ import { FileMeta } from '../../models/file/FileMeta';
4
+ import { FileActions } from '../../models/file/FileActions';
5
+ import { ComponentType, FC, ReactNode } from 'react';
6
+ interface FileViewerComponent {
7
+ Grid: ComponentType<FileViewerGridProps>;
8
+ List: ComponentType<FileViewerListProps>;
9
+ }
10
+ interface FileViewerProps {
11
+ subId: string;
12
+ onDelete?: (params: {
13
+ remainingFileMetas: Array<FileMeta>;
14
+ deletedFileMeta: FileMeta;
15
+ }) => void;
16
+ actions?: FileActions;
17
+ children: (component: FileViewerComponent) => ReactNode;
18
+ }
19
+ export declare const FileViewer: FC<FileViewerProps>;
20
+ export {};
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { FileMeta } from '../../../models/file/FileMeta';
3
+ import { SxProps, Theme } from '@mui/material';
4
+ type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
5
+ export interface FileViewerGridProps {
6
+ size?: number;
7
+ itemBar?: FileViewerGridItemBar;
8
+ sx?: SxProps<Theme>;
9
+ }
10
+ export declare const FileViewerGrid: React.FC<FileViewerGridProps>;
11
+ interface GridFileViewerItemProps {
12
+ meta: FileMeta;
13
+ size?: number;
14
+ itemBar?: FileViewerGridItemBar;
15
+ }
16
+ export declare const GridFileViewerItem: React.FC<GridFileViewerItemProps>;
17
+ export {};
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+ import { FileMeta } from '../../../models/file/FileMeta';
4
+ export interface FileViewerListProps {
5
+ sx?: SxProps<Theme>;
6
+ }
7
+ export declare const FileViewerList: FC<FileViewerListProps>;
8
+ interface ListFileViewerItemProps {
9
+ meta: FileMeta;
10
+ }
11
+ export declare const ListFileViewerItem: React.FC<ListFileViewerItemProps>;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ImageViewerProps {
3
+ metaId: string;
4
+ }
5
+ export declare const ImageViewer: React.FC<ImageViewerProps>;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { FileMeta } from '../../../../models/file/FileMeta';
3
+ interface ActionsMenuProps {
4
+ meta: FileMeta;
5
+ menu: {
6
+ mouseX: number;
7
+ mouseY: number;
8
+ } | null;
9
+ setMenu: (menu: {
10
+ mouseX: number;
11
+ mouseY: number;
12
+ } | null) => void;
13
+ }
14
+ export declare const ActionsMenu: FC<ActionsMenuProps>;
15
+ export {};
@@ -1,6 +1,6 @@
1
- import { AutocompleteProps, TextFieldProps } from "@mui/material";
2
- import { FC } from "react";
3
- import { FormOmittedProps } from "../../utils/FormUtils";
1
+ import { AutocompleteProps, TextFieldProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../lib/utils';
4
4
  export interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
5
5
  textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
6
6
  }
@@ -1,6 +1,6 @@
1
- import { CheckboxProps } from "@mui/material";
2
- import { FC } from "react";
3
- import { FormOmittedProps } from "../../utils/FormUtils";
1
+ import { CheckboxProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../lib/utils';
4
4
  export interface FormCheckboxProps extends Omit<CheckboxProps, FormOmittedProps> {
5
5
  label?: string;
6
6
  }
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { DatePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../lib/utils';
5
+ export interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDatePicker: FC<FormDatePickerProps>;
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { DateRangePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../lib/utils';
5
+ export interface FormDateRangePickerProps extends Omit<DateRangePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDateRangePicker: FC<FormDateRangePickerProps>;
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { DateTimePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../lib/utils';
5
+ export interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDateTimePicker: FC<FormDateTimePickerProps>;