wcz-layout 7.6.4 → 8.0.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 (167) hide show
  1. package/dist/DialogsContext-D5A8xncJ.js +7 -0
  2. package/dist/{DialogsContext-BIhId-r8.js.map → DialogsContext-D5A8xncJ.js.map} +1 -1
  3. package/dist/FileMeta-D9HyhrGi.js +42 -0
  4. package/dist/{FileMeta-YGG9mxo_.js.map → FileMeta-D9HyhrGi.js.map} +1 -1
  5. package/dist/FileMeta-fQnJ6uFX.d.ts +20 -0
  6. package/dist/NotificationContext-DBTYc5z-.js +7 -0
  7. package/dist/{NotificationContext-DovR_auQ.js.map → NotificationContext-DBTYc5z-.js.map} +1 -1
  8. package/dist/RouterListItemButton-rcdkgOXQ.js +78 -0
  9. package/dist/RouterListItemButton-rcdkgOXQ.js.map +1 -0
  10. package/dist/User-C21DoZOa.d.ts +15 -0
  11. package/dist/components.d.ts +118 -0
  12. package/dist/components.js +1438 -3179
  13. package/dist/components.js.map +1 -1
  14. package/dist/hooks.d.ts +229 -0
  15. package/dist/hooks.js +1136 -1031
  16. package/dist/hooks.js.map +1 -1
  17. package/dist/index.d.ts +49 -0
  18. package/dist/index.js +2002 -1023
  19. package/dist/index.js.map +1 -1
  20. package/dist/middleware.d.ts +33 -0
  21. package/dist/middleware.js +51 -1031
  22. package/dist/middleware.js.map +1 -1
  23. package/dist/models.d.ts +447 -0
  24. package/dist/models.js +174 -136
  25. package/dist/models.js.map +1 -1
  26. package/dist/msalClient-MNN6BwL6.d.ts +16 -0
  27. package/dist/queries-JPqCc5Tb.js +551 -0
  28. package/dist/queries-JPqCc5Tb.js.map +1 -0
  29. package/dist/query.d.ts +3052 -0
  30. package/dist/query.js +3 -3
  31. package/dist/queryClient-CAJR3qjE.js +7 -0
  32. package/dist/{queryClient-B__OEZ70.js.map → queryClient-CAJR3qjE.js.map} +1 -1
  33. package/dist/useDialogs-BaxhulU9.js +248 -0
  34. package/dist/useDialogs-BaxhulU9.js.map +1 -0
  35. package/dist/utils-BBQ5S6oM.d.ts +56 -0
  36. package/dist/utils-CqQKSaSs.js +219 -0
  37. package/dist/utils-CqQKSaSs.js.map +1 -0
  38. package/dist/utils.d.ts +21 -0
  39. package/dist/utils.js +43 -28
  40. package/dist/utils.js.map +1 -1
  41. package/dist/vite.d.ts +7 -0
  42. package/dist/vite.js +105 -73
  43. package/dist/vite.js.map +1 -1
  44. package/package.json +52 -50
  45. package/skills/api-routes/SKILL.md +251 -251
  46. package/skills/auth/SKILL.md +268 -268
  47. package/skills/data-grid/SKILL.md +229 -229
  48. package/skills/database-schema/SKILL.md +182 -182
  49. package/skills/dialogs-notifications/SKILL.md +241 -241
  50. package/skills/forms-validation/SKILL.md +331 -331
  51. package/skills/forms-validation/references/field-components.md +212 -212
  52. package/skills/layout-navigation/SKILL.md +259 -259
  53. package/skills/project-initialization/SKILL.md +181 -181
  54. package/skills/project-structure/SKILL.md +157 -157
  55. package/skills/tanstack-db-collections/SKILL.md +270 -270
  56. package/skills/template-init.md +146 -146
  57. package/skills/ui-pages/SKILL.md +278 -278
  58. package/dist/DialogsContext-BIhId-r8.js +0 -7
  59. package/dist/FileMeta-YGG9mxo_.js +0 -36
  60. package/dist/NotificationContext-DovR_auQ.js +0 -7
  61. package/dist/RouterListItemButton-DeaQB4ym.js +0 -31
  62. package/dist/RouterListItemButton-DeaQB4ym.js.map +0 -1
  63. package/dist/components/core/AppTitle.d.ts +0 -2
  64. package/dist/components/core/Fullscreen.d.ts +0 -3
  65. package/dist/components/core/Layout.d.ts +0 -10
  66. package/dist/components/core/TypographyWithIcon.d.ts +0 -7
  67. package/dist/components/core/account/UserAvatar.d.ts +0 -2
  68. package/dist/components/core/account/UserMenu.d.ts +0 -2
  69. package/dist/components/core/navigation/NavigationContent.d.ts +0 -11
  70. package/dist/components/core/navigation/NavigationList.d.ts +0 -17
  71. package/dist/components/core/navigation/NavigationListItem.d.ts +0 -16
  72. package/dist/components/core/navigation/NavigationRail.d.ts +0 -12
  73. package/dist/components/data-grid/ChipInputCell.d.ts +0 -9
  74. package/dist/components/data-grid/EditableColumnHeader.d.ts +0 -2
  75. package/dist/components/file/Dropzone.d.ts +0 -8
  76. package/dist/components/file/FileViewer.d.ts +0 -20
  77. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +0 -17
  78. package/dist/components/file/fileViewer/FileViewerList.d.ts +0 -12
  79. package/dist/components/file/fileViewer/ImageViewer.d.ts +0 -6
  80. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +0 -15
  81. package/dist/components/form/FormAutocomplete.d.ts +0 -7
  82. package/dist/components/form/FormCheckbox.d.ts +0 -7
  83. package/dist/components/form/FormDatePicker.d.ts +0 -8
  84. package/dist/components/form/FormDateRangePicker.d.ts +0 -8
  85. package/dist/components/form/FormDateTimePicker.d.ts +0 -8
  86. package/dist/components/form/FormDateTimeRangePicker.d.ts +0 -8
  87. package/dist/components/form/FormNumberField.d.ts +0 -9
  88. package/dist/components/form/FormRadioGroup.d.ts +0 -13
  89. package/dist/components/form/FormSlider.d.ts +0 -7
  90. package/dist/components/form/FormSubmitButton.d.ts +0 -4
  91. package/dist/components/form/FormSwitch.d.ts +0 -7
  92. package/dist/components/form/FormTextField.d.ts +0 -7
  93. package/dist/components/form/FormTimePicker.d.ts +0 -8
  94. package/dist/components/form/FormTimeRangePicker.d.ts +0 -8
  95. package/dist/components/router/RouterButton.d.ts +0 -6
  96. package/dist/components/router/RouterError.d.ts +0 -7
  97. package/dist/components/router/RouterFab.d.ts +0 -6
  98. package/dist/components/router/RouterGridActionsCellItem.d.ts +0 -6
  99. package/dist/components/router/RouterIconButton.d.ts +0 -6
  100. package/dist/components/router/RouterLink.d.ts +0 -6
  101. package/dist/components/router/RouterListItemButton.d.ts +0 -6
  102. package/dist/components/router/RouterNotFound.d.ts +0 -1
  103. package/dist/components/router/RouterTab.d.ts +0 -6
  104. package/dist/contexts/DialogsContext.d.ts +0 -6
  105. package/dist/contexts/FileContext.d.ts +0 -13
  106. package/dist/contexts/NotificationContext.d.ts +0 -9
  107. package/dist/dist-Bxzg1_9c.js +0 -152
  108. package/dist/dist-Bxzg1_9c.js.map +0 -1
  109. package/dist/exports/components.d.ts +0 -15
  110. package/dist/exports/hooks.d.ts +0 -7
  111. package/dist/exports/index.d.ts +0 -5
  112. package/dist/exports/middleware.d.ts +0 -2
  113. package/dist/exports/models.d.ts +0 -24
  114. package/dist/exports/query.d.ts +0 -3
  115. package/dist/exports/utils.d.ts +0 -6
  116. package/dist/exports/vite.d.ts +0 -1
  117. package/dist/hooks/UseNotification.d.ts +0 -1
  118. package/dist/hooks/UseScanDetection.d.ts +0 -28
  119. package/dist/hooks/useDialogs.d.ts +0 -42
  120. package/dist/hooks/useForm.d.ts +0 -52
  121. package/dist/hooks/useTheme.d.ts +0 -1
  122. package/dist/lib/auth/msalClient.d.ts +0 -19
  123. package/dist/lib/auth/msalServer.d.ts +0 -11
  124. package/dist/lib/auth/permissions.d.ts +0 -4
  125. package/dist/lib/auth/scopes.d.ts +0 -4
  126. package/dist/lib/db/collections/userCollection.d.ts +0 -18
  127. package/dist/lib/queryClient.d.ts +0 -2
  128. package/dist/lib/utils.d.ts +0 -63
  129. package/dist/lib/vite-plugin.d.ts +0 -2
  130. package/dist/middleware/authMiddleware.d.ts +0 -22
  131. package/dist/middleware/validationMiddleware.d.ts +0 -4
  132. package/dist/models/LayoutOptions.d.ts +0 -7
  133. package/dist/models/Navigation.d.ts +0 -29
  134. package/dist/models/TokenPayload.d.ts +0 -9
  135. package/dist/models/User.d.ts +0 -10
  136. package/dist/models/VaultConfig.d.ts +0 -9
  137. package/dist/models/approval/Approval.d.ts +0 -177
  138. package/dist/models/approval/ApprovalEmployee.d.ts +0 -7
  139. package/dist/models/approval/ApprovalFlow.d.ts +0 -49
  140. package/dist/models/approval/ApprovalFlowStep.d.ts +0 -29
  141. package/dist/models/approval/ApprovalRequestType.d.ts +0 -5
  142. package/dist/models/approval/ApprovalStatus.d.ts +0 -9
  143. package/dist/models/approval/ApprovalStepResult.d.ts +0 -11
  144. package/dist/models/approval/StepApprovalOrder.d.ts +0 -6
  145. package/dist/models/email/Email.d.ts +0 -13
  146. package/dist/models/email/EmailAttachment.d.ts +0 -6
  147. package/dist/models/file/FileActions.d.ts +0 -6
  148. package/dist/models/file/FileMeta.d.ts +0 -15
  149. package/dist/models/peoplesoft/Department.d.ts +0 -58
  150. package/dist/models/peoplesoft/Employee.d.ts +0 -46
  151. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +0 -6
  152. package/dist/models/peoplesoft/EmployeeStatus.d.ts +0 -6
  153. package/dist/providers/DialogsProvider.d.ts +0 -5
  154. package/dist/providers/LayoutProvider.d.ts +0 -12
  155. package/dist/providers/MsalAuthProvider.d.ts +0 -6
  156. package/dist/providers/NotificationProvider.d.ts +0 -7
  157. package/dist/queries/ApprovalQueries.d.ts +0 -661
  158. package/dist/queries/FileQueries.d.ts +0 -205
  159. package/dist/queries/PeopleSoftQueries.d.ts +0 -2173
  160. package/dist/queries/index.d.ts +0 -2958
  161. package/dist/queries-D8Ys1kLs.js +0 -2936
  162. package/dist/queries-D8Ys1kLs.js.map +0 -1
  163. package/dist/queryClient-B__OEZ70.js +0 -7
  164. package/dist/useDialogs-CX8kuAuA.js +0 -208
  165. package/dist/useDialogs-CX8kuAuA.js.map +0 -1
  166. package/dist/utils-C4oJ0tr5.js +0 -157
  167. package/dist/utils-C4oJ0tr5.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ import { createContext } from "react";
2
+ //#region src/contexts/DialogsContext.ts
3
+ const DialogsContext = createContext({});
4
+ //#endregion
5
+ export { DialogsContext as t };
6
+
7
+ //# sourceMappingURL=DialogsContext-D5A8xncJ.js.map
@@ -1 +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/useDialogs\";\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"}
1
+ {"version":3,"file":"DialogsContext-D5A8xncJ.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/useDialogs\";\n\nexport interface DialogsContextValue {\n open: OpenDialog;\n close: CloseDialog;\n}\n\nexport const DialogsContext = createContext<DialogsContextValue>({} as DialogsContextValue);\n"],"mappings":";;AAQA,MAAaM,iBAAiBN,cAAmC,EAAE,CAAwB"}
@@ -0,0 +1,42 @@
1
+ import * as z$2 from "zod";
2
+ import z$1 from "zod";
3
+ //#region src/models/approval/ApprovalStatus.ts
4
+ const ApprovalStatus = z$1.enum([
5
+ "WaitingForApproval",
6
+ "Approved",
7
+ "PartiallyApproved",
8
+ "Rejected",
9
+ "Withdrawn",
10
+ "Cancelled"
11
+ ]);
12
+ //#endregion
13
+ //#region src/models/approval/ApprovalStepResult.ts
14
+ const ApprovalStepResult = z$1.enum([
15
+ "NotAvailable",
16
+ "FutureApproval",
17
+ "WaitingForApproval",
18
+ "Approved",
19
+ "Rejected",
20
+ "Skipped",
21
+ "Withdrawn",
22
+ "Cancelled"
23
+ ]);
24
+ //#endregion
25
+ //#region src/models/file/FileMeta.ts
26
+ const FileMetaSchema = z$2.object({
27
+ id: z$2.uuid(),
28
+ subId: z$2.uuid(),
29
+ appName: z$2.string().trim().min(1).max(255),
30
+ fileName: z$2.string().trim().min(1).max(255),
31
+ fileExtension: z$2.string().trim().min(1).max(255),
32
+ fileSize: z$2.number().min(0),
33
+ mediaSubType: z$2.string().trim().min(1).max(255),
34
+ mediaType: z$2.string().trim().min(1).max(255),
35
+ mimeType: z$2.string().trim().min(1).max(255),
36
+ createdBy: z$2.string().trim().min(1).max(255),
37
+ createdDate: z$2.date()
38
+ });
39
+ //#endregion
40
+ export { ApprovalStepResult as n, ApprovalStatus as r, FileMetaSchema as t };
41
+
42
+ //# sourceMappingURL=FileMeta-D9HyhrGi.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"FileMeta-D9HyhrGi.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,MAAaC,iBAAiBD,IAAEE,KAAK;CACnC;CACA;CACA;CACA;CACA;CACA;CACD,CAAC;;;ACPF,MAAaE,qBAAqBD,IAAEE,KAAK;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD,CAAC;;;ACTF,MAAaE,iBAAiBD,IAAEE,OAAO;CACrCC,IAAIH,IAAEI,MAAM;CACZC,OAAOL,IAAEI,MAAM;CACfE,SAASN,IAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC1CC,UAAUX,IAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC3CE,eAAeZ,IAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAChDG,UAAUb,IAAEc,QAAQ,CAACL,IAAI,EAAE;CAC3BM,cAAcf,IAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC/CM,WAAWhB,IAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC5CO,UAAUjB,IAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC3CQ,WAAWlB,IAAEO,QAAQ,CAACC,MAAM,CAACC,IAAI,EAAE,CAACC,IAAI,IAAI;CAC5CS,aAAanB,IAAEoB,MAAK;CACrB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import * as z$2 from "zod";
2
+
3
+ //#region src/models/file/FileMeta.d.ts
4
+ declare const FileMetaSchema: z$2.ZodObject<{
5
+ id: z$2.ZodUUID;
6
+ subId: z$2.ZodUUID;
7
+ appName: z$2.ZodString;
8
+ fileName: z$2.ZodString;
9
+ fileExtension: z$2.ZodString;
10
+ fileSize: z$2.ZodNumber;
11
+ mediaSubType: z$2.ZodString;
12
+ mediaType: z$2.ZodString;
13
+ mimeType: z$2.ZodString;
14
+ createdBy: z$2.ZodString;
15
+ createdDate: z$2.ZodDate;
16
+ }, z$2.core.$strip>;
17
+ type FileMeta = z$2.infer<typeof FileMetaSchema>;
18
+ //#endregion
19
+ export { FileMetaSchema as n, FileMeta as t };
20
+ //# sourceMappingURL=FileMeta-fQnJ6uFX.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { createContext } from "react";
2
+ //#region src/contexts/NotificationContext.tsx
3
+ const NotificationContext = createContext(null);
4
+ //#endregion
5
+ export { NotificationContext as t };
6
+
7
+ //# sourceMappingURL=NotificationContext-DBTYc5z-.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"NotificationContext-DBTYc5z-.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,MAAaS,sBAAsBT,cAA+C,KAAK"}
@@ -0,0 +1,78 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { IconButton, ListItemButton } from "@mui/material";
3
+ import React from "react";
4
+ import { createLink } from "@tanstack/react-router";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/components/router/RouterIconButton.tsx
7
+ const CreatedComponent$1 = createLink(React.forwardRef(function IconButtonComponent(props, reference) {
8
+ const $ = c(4);
9
+ if ($[0] !== "78225cdb1e7335044739e8f2aa569a8b6e8ddff45ee95d92920518aa6794a52d") {
10
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
11
+ $[0] = "78225cdb1e7335044739e8f2aa569a8b6e8ddff45ee95d92920518aa6794a52d";
12
+ }
13
+ let t0;
14
+ if ($[1] !== props || $[2] !== reference) {
15
+ t0 = /* @__PURE__ */ jsx(IconButton, {
16
+ ref: reference,
17
+ component: "a",
18
+ ...props
19
+ });
20
+ $[1] = props;
21
+ $[2] = reference;
22
+ $[3] = t0;
23
+ } else t0 = $[3];
24
+ return t0;
25
+ }));
26
+ const RouterIconButton = (props) => {
27
+ const $ = c(3);
28
+ if ($[0] !== "78225cdb1e7335044739e8f2aa569a8b6e8ddff45ee95d92920518aa6794a52d") {
29
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
30
+ $[0] = "78225cdb1e7335044739e8f2aa569a8b6e8ddff45ee95d92920518aa6794a52d";
31
+ }
32
+ let t0;
33
+ if ($[1] !== props) {
34
+ t0 = /* @__PURE__ */ jsx(CreatedComponent$1, { ...props });
35
+ $[1] = props;
36
+ $[2] = t0;
37
+ } else t0 = $[2];
38
+ return t0;
39
+ };
40
+ //#endregion
41
+ //#region src/components/router/RouterListItemButton.tsx
42
+ const CreatedComponent = createLink(React.forwardRef(function ButtonComponent(props, reference) {
43
+ const $ = c(4);
44
+ if ($[0] !== "a33d2f291bddc17afd0afbb422e06a0a3bbcd9c360494d00918e68b54a100925") {
45
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
46
+ $[0] = "a33d2f291bddc17afd0afbb422e06a0a3bbcd9c360494d00918e68b54a100925";
47
+ }
48
+ let t0;
49
+ if ($[1] !== props || $[2] !== reference) {
50
+ t0 = /* @__PURE__ */ jsx(ListItemButton, {
51
+ ref: reference,
52
+ component: "a",
53
+ ...props
54
+ });
55
+ $[1] = props;
56
+ $[2] = reference;
57
+ $[3] = t0;
58
+ } else t0 = $[3];
59
+ return t0;
60
+ }));
61
+ const RouterListItemButton = (props) => {
62
+ const $ = c(3);
63
+ if ($[0] !== "a33d2f291bddc17afd0afbb422e06a0a3bbcd9c360494d00918e68b54a100925") {
64
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
65
+ $[0] = "a33d2f291bddc17afd0afbb422e06a0a3bbcd9c360494d00918e68b54a100925";
66
+ }
67
+ let t0;
68
+ if ($[1] !== props) {
69
+ t0 = /* @__PURE__ */ jsx(CreatedComponent, { ...props });
70
+ $[1] = props;
71
+ $[2] = t0;
72
+ } else t0 = $[2];
73
+ return t0;
74
+ };
75
+ //#endregion
76
+ export { RouterIconButton as n, RouterListItemButton as t };
77
+
78
+ //# sourceMappingURL=RouterListItemButton-rcdkgOXQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouterListItemButton-rcdkgOXQ.js","names":["IconButton","createLink","React","IconButtonProps","LinkComponent","Component","forwardRef","HTMLAnchorElement","IconButtonComponent","props","reference","$","_c","$i","Symbol","for","t0","CreatedComponent","RouterIconButton","ListItemButton","createLink","React","ListItemButtonProps","LinkComponent","Component","forwardRef","HTMLAnchorElement","ButtonComponent","props","reference","$","_c","$i","Symbol","for","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,MAAMiB,qBAAmBhB,WANPC,MAAMI,WACtB,SAAAE,oBAAAC,OAAAC,WAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;AAAA,KAAAD,EAAA,OAAA,oEAAA;AAAA,OAAA,IAAAE,KAAA,GAAAA,KAAA,GAAAA,MAAA,EAAAF,GAAAE,MAAAC,OAAAC,IAAA,4BAAA;AAAAJ,IAAA,KAAA;;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAF,SAAAE,EAAA,OAAAD,WAAA;AACSM,OAAA,oBAAC,YAAD;GAAiBN,KAAAA;GAAqB,WAAA;GAAG,GAAKD;GAAS,CAAA;AAAAE,IAAA,KAAAF;AAAAE,IAAA,KAAAD;AAAAC,IAAA,KAAAK;OAAAA,MAAAL,EAAA;AAAA,QAAvDK;EAEV,CAE6C;AAE9C,MAAaE,oBAAoDT,UAAA;CAAA,MAAAE,IAAAC,EAAA,EAAA;AAAA,KAAAD,EAAA,OAAA,oEAAA;AAAA,OAAA,IAAAE,KAAA,GAAAA,KAAA,GAAAA,MAAA,EAAAF,GAAAE,MAAAC,OAAAC,IAAA,4BAAA;AAAAJ,IAAA,KAAA;;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAF,OAAA;AACxDO,OAAA,oBAAC,oBAAD,EAAiB,GAAKP,OAAS,CAAA;AAAAE,IAAA,KAAAF;AAAAE,IAAA,KAAAK;OAAAA,MAAAL,EAAA;AAAA,QAA/BK;;;;ACHT,MAAMoB,mBAAmBhB,WANPC,MAAMI,WACtB,SAAAE,gBAAAC,OAAAC,WAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;AAAA,KAAAD,EAAA,OAAA,oEAAA;AAAA,OAAA,IAAAE,KAAA,GAAAA,KAAA,GAAAA,MAAA,EAAAF,GAAAE,MAAAC,OAAAC,IAAA,4BAAA;AAAAJ,IAAA,KAAA;;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAF,SAAAE,EAAA,OAAAD,WAAA;AACSM,OAAA,oBAAC,gBAAD;GAAqBN,KAAAA;GAAqB,WAAA;GAAG,GAAKD;GAAS,CAAA;AAAAE,IAAA,KAAAF;AAAAE,IAAA,KAAAD;AAAAC,IAAA,KAAAK;OAAAA,MAAAL,EAAA;AAAA,QAA3DK;EAEV,CAE6C;AAE9C,MAAaE,wBAAwDT,UAAA;CAAA,MAAAE,IAAAC,EAAA,EAAA;AAAA,KAAAD,EAAA,OAAA,oEAAA;AAAA,OAAA,IAAAE,KAAA,GAAAA,KAAA,GAAAA,MAAA,EAAAF,GAAAE,MAAAC,OAAAC,IAAA,4BAAA;AAAAJ,IAAA,KAAA;;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAF,OAAA;AAC5DO,OAAA,oBAAC,kBAAD,EAAiB,GAAKP,OAAS,CAAA;AAAAE,IAAA,KAAAF;AAAAE,IAAA,KAAAK;OAAAA,MAAAL,EAAA;AAAA,QAA/BK"}
@@ -0,0 +1,15 @@
1
+ import { permissions } from "virtual:wcz-layout";
2
+
3
+ //#region src/models/User.d.ts
4
+ type User = {
5
+ id: string;
6
+ name: string;
7
+ email: string;
8
+ department: string;
9
+ employeeId: string;
10
+ companyName?: string;
11
+ hasPermission: (key: keyof typeof permissions) => boolean;
12
+ };
13
+ //#endregion
14
+ export { User as t };
15
+ //# sourceMappingURL=User-C21DoZOa.d.ts.map
@@ -0,0 +1,118 @@
1
+ import { t as FileMeta } from "./FileMeta-fQnJ6uFX.js";
2
+ import { BoxProps, ButtonProps, ChipProps, FabProps, IconButtonProps, LinkProps, ListItemButtonProps, SxProps, TabProps, Theme, TypographyProps } from "@mui/material";
3
+ import React$1, { ComponentType, FC, ReactNode } from "react";
4
+ import * as z$2 from "zod";
5
+ import { ErrorComponentProps, LinkComponent } from "@tanstack/react-router";
6
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
7
+ import { DropzoneOptions } from "react-dropzone";
8
+ import { GridActionsCellItemProps, GridColumnHeaderParams, GridRenderCellParams, GridValidRowModel } from "@mui/x-data-grid-premium";
9
+
10
+ //#region src/components/core/TypographyWithIcon.d.ts
11
+ interface TypographyWithIconProps extends TypographyProps {
12
+ startIcon?: React.ReactNode;
13
+ endIcon?: React.ReactNode;
14
+ gap?: number | string;
15
+ }
16
+ declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
17
+ //#endregion
18
+ //#region src/components/core/Fullscreen.d.ts
19
+ declare const Fullscreen: FC<BoxProps>;
20
+ //#endregion
21
+ //#region src/components/file/Dropzone.d.ts
22
+ interface DropzoneProps extends DropzoneOptions {
23
+ sx?: SxProps<Theme>;
24
+ }
25
+ declare const Dropzone: FC<DropzoneProps>;
26
+ //#endregion
27
+ //#region src/components/file/fileViewer/FileViewerList.d.ts
28
+ interface FileViewerListProps {
29
+ sx?: SxProps<Theme>;
30
+ }
31
+ //#endregion
32
+ //#region src/components/file/fileViewer/FileViewerGrid.d.ts
33
+ type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
34
+ interface FileViewerGridProps {
35
+ size?: number;
36
+ itemBar?: FileViewerGridItemBar;
37
+ sx?: SxProps<Theme>;
38
+ }
39
+ //#endregion
40
+ //#region src/models/file/FileActions.d.ts
41
+ declare const FileActionsSchema: z$2.ZodObject<{
42
+ download: z$2.ZodOptional<z$2.ZodBoolean>;
43
+ delete: z$2.ZodOptional<z$2.ZodBoolean>;
44
+ }, z$2.core.$strip>;
45
+ type FileActions = z$2.infer<typeof FileActionsSchema>;
46
+ //#endregion
47
+ //#region src/components/file/FileViewer.d.ts
48
+ interface FileViewerComponent {
49
+ Grid: ComponentType<FileViewerGridProps>;
50
+ List: ComponentType<FileViewerListProps>;
51
+ }
52
+ interface FileViewerProps {
53
+ subId: string;
54
+ onDelete?: (params: {
55
+ remainingFileMetas: Array<FileMeta>;
56
+ deletedFileMeta: FileMeta;
57
+ }) => void;
58
+ actions?: FileActions;
59
+ children: (component: FileViewerComponent) => ReactNode;
60
+ }
61
+ declare const FileViewer: FC<FileViewerProps>;
62
+ //#endregion
63
+ //#region src/components/data-grid/ChipInputCell.d.ts
64
+ interface ChipInputCellProps<T extends GridValidRowModel> {
65
+ params: GridRenderCellParams<T>;
66
+ slotProps?: ChipProps;
67
+ getLabel?: (object: T) => string | number;
68
+ }
69
+ declare const ChipInputCell: <T extends GridValidRowModel>({
70
+ params,
71
+ slotProps,
72
+ getLabel
73
+ }: ChipInputCellProps<T>) => _$react_jsx_runtime0.JSX.Element | null;
74
+ //#endregion
75
+ //#region src/components/data-grid/EditableColumnHeader.d.ts
76
+ declare const EditableColumnHeader: <T extends GridValidRowModel>({
77
+ colDef
78
+ }: GridColumnHeaderParams<T>) => _$react_jsx_runtime0.JSX.Element;
79
+ //#endregion
80
+ //#region src/components/router/RouterButton.d.ts
81
+ declare const Component$6: React$1.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
82
+ declare const RouterButton: LinkComponent<typeof Component$6>;
83
+ //#endregion
84
+ //#region src/components/router/RouterFab.d.ts
85
+ declare const Component$5: React$1.ForwardRefExoticComponent<Omit<FabProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
86
+ declare const RouterFab: LinkComponent<typeof Component$5>;
87
+ //#endregion
88
+ //#region src/components/router/RouterGridActionsCellItem.d.ts
89
+ declare const Component$4: React$1.ForwardRefExoticComponent<GridActionsCellItemProps & React$1.RefAttributes<HTMLButtonElement>>;
90
+ declare const RouterGridActionsCellItem: LinkComponent<typeof Component$4>;
91
+ //#endregion
92
+ //#region src/components/router/RouterIconButton.d.ts
93
+ declare const Component$3: React$1.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
94
+ declare const RouterIconButton: LinkComponent<typeof Component$3>;
95
+ //#endregion
96
+ //#region src/components/router/RouterLink.d.ts
97
+ declare const Component$2: React$1.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
98
+ declare const RouterLink: LinkComponent<typeof Component$2>;
99
+ //#endregion
100
+ //#region src/components/router/RouterTab.d.ts
101
+ declare const Component$1: React$1.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
102
+ declare const RouterTab: LinkComponent<typeof Component$1>;
103
+ //#endregion
104
+ //#region src/components/router/RouterListItemButton.d.ts
105
+ declare const Component: React$1.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
106
+ declare const RouterListItemButton: LinkComponent<typeof Component>;
107
+ //#endregion
108
+ //#region src/components/router/RouterNotFound.d.ts
109
+ declare function RouterNotFound(): _$react_jsx_runtime0.JSX.Element;
110
+ //#endregion
111
+ //#region src/components/router/RouterError.d.ts
112
+ interface RouterErrorProps {
113
+ error: ErrorComponentProps["error"];
114
+ }
115
+ declare const RouterError: FC<RouterErrorProps>;
116
+ //#endregion
117
+ export { ChipInputCell, Dropzone, EditableColumnHeader, FileViewer, Fullscreen, RouterButton, RouterError, RouterFab, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TypographyWithIcon };
118
+ //# sourceMappingURL=components.d.ts.map