wcz-layout 7.6.4 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DialogsContext-D5A8xncJ.js +7 -0
- package/dist/{DialogsContext-BIhId-r8.js.map → DialogsContext-D5A8xncJ.js.map} +1 -1
- package/dist/FileMeta-D9HyhrGi.js +42 -0
- package/dist/{FileMeta-YGG9mxo_.js.map → FileMeta-D9HyhrGi.js.map} +1 -1
- package/dist/FileMeta-fQnJ6uFX.d.ts +20 -0
- package/dist/NotificationContext-DBTYc5z-.js +7 -0
- package/dist/{NotificationContext-DovR_auQ.js.map → NotificationContext-DBTYc5z-.js.map} +1 -1
- package/dist/RouterListItemButton-rcdkgOXQ.js +78 -0
- package/dist/RouterListItemButton-rcdkgOXQ.js.map +1 -0
- package/dist/User-C21DoZOa.d.ts +15 -0
- package/dist/components.d.ts +117 -0
- package/dist/components.js +1463 -3178
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +229 -0
- package/dist/hooks.js +1136 -1031
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +49 -0
- package/dist/index.js +2032 -1023
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +33 -0
- package/dist/middleware.js +52 -1028
- package/dist/middleware.js.map +1 -1
- package/dist/models.d.ts +447 -0
- package/dist/models.js +174 -136
- package/dist/models.js.map +1 -1
- package/dist/msalClient-d7_QeRNu.d.ts +16 -0
- package/dist/queries-e7HNiutf.js +551 -0
- package/dist/queries-e7HNiutf.js.map +1 -0
- package/dist/query.d.ts +3052 -0
- package/dist/query.js +3 -3
- package/dist/queryClient-CAJR3qjE.js +7 -0
- package/dist/{queryClient-B__OEZ70.js.map → queryClient-CAJR3qjE.js.map} +1 -1
- package/dist/useDialogs-BaxhulU9.js +248 -0
- package/dist/useDialogs-BaxhulU9.js.map +1 -0
- package/dist/utils-BBQ5S6oM.d.ts +56 -0
- package/dist/utils-Dz7akq1k.js +197 -0
- package/dist/utils-Dz7akq1k.js.map +1 -0
- package/dist/utils.d.ts +21 -0
- package/dist/utils.js +43 -28
- package/dist/utils.js.map +1 -1
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +105 -73
- package/dist/vite.js.map +1 -1
- package/package.json +49 -47
- package/skills/api-routes/SKILL.md +251 -251
- package/skills/auth/SKILL.md +268 -268
- package/skills/data-grid/SKILL.md +229 -229
- package/skills/database-schema/SKILL.md +182 -182
- package/skills/dialogs-notifications/SKILL.md +241 -241
- package/skills/forms-validation/SKILL.md +331 -331
- package/skills/forms-validation/references/field-components.md +212 -212
- package/skills/layout-navigation/SKILL.md +259 -259
- package/skills/project-initialization/SKILL.md +181 -181
- package/skills/project-structure/SKILL.md +157 -157
- package/skills/tanstack-db-collections/SKILL.md +270 -270
- package/skills/template-init.md +146 -146
- package/skills/ui-pages/SKILL.md +278 -278
- package/dist/DialogsContext-BIhId-r8.js +0 -7
- package/dist/FileMeta-YGG9mxo_.js +0 -36
- package/dist/NotificationContext-DovR_auQ.js +0 -7
- package/dist/RouterListItemButton-DeaQB4ym.js +0 -31
- package/dist/RouterListItemButton-DeaQB4ym.js.map +0 -1
- package/dist/components/core/AppTitle.d.ts +0 -2
- package/dist/components/core/Fullscreen.d.ts +0 -3
- package/dist/components/core/Layout.d.ts +0 -10
- package/dist/components/core/TypographyWithIcon.d.ts +0 -7
- package/dist/components/core/account/UserAvatar.d.ts +0 -2
- package/dist/components/core/account/UserMenu.d.ts +0 -2
- package/dist/components/core/navigation/NavigationContent.d.ts +0 -11
- package/dist/components/core/navigation/NavigationList.d.ts +0 -17
- package/dist/components/core/navigation/NavigationListItem.d.ts +0 -16
- package/dist/components/core/navigation/NavigationRail.d.ts +0 -12
- package/dist/components/data-grid/ChipInputCell.d.ts +0 -9
- package/dist/components/data-grid/EditableColumnHeader.d.ts +0 -2
- package/dist/components/file/Dropzone.d.ts +0 -8
- package/dist/components/file/FileViewer.d.ts +0 -20
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +0 -17
- package/dist/components/file/fileViewer/FileViewerList.d.ts +0 -12
- package/dist/components/file/fileViewer/ImageViewer.d.ts +0 -6
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +0 -15
- package/dist/components/form/FormAutocomplete.d.ts +0 -7
- package/dist/components/form/FormCheckbox.d.ts +0 -7
- package/dist/components/form/FormDatePicker.d.ts +0 -8
- package/dist/components/form/FormDateRangePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimePicker.d.ts +0 -8
- package/dist/components/form/FormDateTimeRangePicker.d.ts +0 -8
- package/dist/components/form/FormNumberField.d.ts +0 -9
- package/dist/components/form/FormRadioGroup.d.ts +0 -13
- package/dist/components/form/FormSlider.d.ts +0 -7
- package/dist/components/form/FormSubmitButton.d.ts +0 -4
- package/dist/components/form/FormSwitch.d.ts +0 -7
- package/dist/components/form/FormTextField.d.ts +0 -7
- package/dist/components/form/FormTimePicker.d.ts +0 -8
- package/dist/components/form/FormTimeRangePicker.d.ts +0 -8
- package/dist/components/router/RouterButton.d.ts +0 -6
- package/dist/components/router/RouterError.d.ts +0 -7
- package/dist/components/router/RouterFab.d.ts +0 -6
- package/dist/components/router/RouterGridActionsCellItem.d.ts +0 -6
- package/dist/components/router/RouterIconButton.d.ts +0 -6
- package/dist/components/router/RouterLink.d.ts +0 -6
- package/dist/components/router/RouterListItemButton.d.ts +0 -6
- package/dist/components/router/RouterNotFound.d.ts +0 -1
- package/dist/components/router/RouterTab.d.ts +0 -6
- package/dist/contexts/DialogsContext.d.ts +0 -6
- package/dist/contexts/FileContext.d.ts +0 -13
- package/dist/contexts/NotificationContext.d.ts +0 -9
- package/dist/dist-Bxzg1_9c.js +0 -152
- package/dist/dist-Bxzg1_9c.js.map +0 -1
- package/dist/exports/components.d.ts +0 -15
- package/dist/exports/hooks.d.ts +0 -7
- package/dist/exports/index.d.ts +0 -5
- package/dist/exports/middleware.d.ts +0 -2
- package/dist/exports/models.d.ts +0 -24
- package/dist/exports/query.d.ts +0 -3
- package/dist/exports/utils.d.ts +0 -6
- package/dist/exports/vite.d.ts +0 -1
- package/dist/hooks/UseNotification.d.ts +0 -1
- package/dist/hooks/UseScanDetection.d.ts +0 -28
- package/dist/hooks/useDialogs.d.ts +0 -42
- package/dist/hooks/useForm.d.ts +0 -52
- package/dist/hooks/useTheme.d.ts +0 -1
- package/dist/lib/auth/msalClient.d.ts +0 -19
- package/dist/lib/auth/msalServer.d.ts +0 -11
- package/dist/lib/auth/permissions.d.ts +0 -4
- package/dist/lib/auth/scopes.d.ts +0 -4
- package/dist/lib/db/collections/userCollection.d.ts +0 -18
- package/dist/lib/queryClient.d.ts +0 -2
- package/dist/lib/utils.d.ts +0 -63
- package/dist/lib/vite-plugin.d.ts +0 -2
- package/dist/middleware/authMiddleware.d.ts +0 -22
- package/dist/middleware/validationMiddleware.d.ts +0 -4
- package/dist/models/LayoutOptions.d.ts +0 -7
- package/dist/models/Navigation.d.ts +0 -29
- package/dist/models/TokenPayload.d.ts +0 -9
- package/dist/models/User.d.ts +0 -10
- package/dist/models/VaultConfig.d.ts +0 -9
- package/dist/models/approval/Approval.d.ts +0 -177
- package/dist/models/approval/ApprovalEmployee.d.ts +0 -7
- package/dist/models/approval/ApprovalFlow.d.ts +0 -49
- package/dist/models/approval/ApprovalFlowStep.d.ts +0 -29
- package/dist/models/approval/ApprovalRequestType.d.ts +0 -5
- package/dist/models/approval/ApprovalStatus.d.ts +0 -9
- package/dist/models/approval/ApprovalStepResult.d.ts +0 -11
- package/dist/models/approval/StepApprovalOrder.d.ts +0 -6
- package/dist/models/email/Email.d.ts +0 -13
- package/dist/models/email/EmailAttachment.d.ts +0 -6
- package/dist/models/file/FileActions.d.ts +0 -6
- package/dist/models/file/FileMeta.d.ts +0 -15
- package/dist/models/peoplesoft/Department.d.ts +0 -58
- package/dist/models/peoplesoft/Employee.d.ts +0 -46
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +0 -6
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +0 -6
- package/dist/providers/DialogsProvider.d.ts +0 -5
- package/dist/providers/LayoutProvider.d.ts +0 -12
- package/dist/providers/MsalAuthProvider.d.ts +0 -6
- package/dist/providers/NotificationProvider.d.ts +0 -7
- package/dist/queries/ApprovalQueries.d.ts +0 -661
- package/dist/queries/FileQueries.d.ts +0 -205
- package/dist/queries/PeopleSoftQueries.d.ts +0 -2173
- package/dist/queries/index.d.ts +0 -2958
- package/dist/queries-D8Ys1kLs.js +0 -2936
- package/dist/queries-D8Ys1kLs.js.map +0 -1
- package/dist/queryClient-B__OEZ70.js +0 -7
- package/dist/useDialogs-CX8kuAuA.js +0 -208
- package/dist/useDialogs-CX8kuAuA.js.map +0 -1
- package/dist/utils-C4oJ0tr5.js +0 -157
- package/dist/utils-C4oJ0tr5.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogsContext-
|
|
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-
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationContext-
|
|
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,117 @@
|
|
|
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
|
+
}
|
|
15
|
+
declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/core/Fullscreen.d.ts
|
|
18
|
+
declare const Fullscreen: FC<BoxProps>;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/file/Dropzone.d.ts
|
|
21
|
+
interface DropzoneProps extends DropzoneOptions {
|
|
22
|
+
sx?: SxProps<Theme>;
|
|
23
|
+
}
|
|
24
|
+
declare const Dropzone: FC<DropzoneProps>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/file/fileViewer/FileViewerList.d.ts
|
|
27
|
+
interface FileViewerListProps {
|
|
28
|
+
sx?: SxProps<Theme>;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/file/fileViewer/FileViewerGrid.d.ts
|
|
32
|
+
type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
|
|
33
|
+
interface FileViewerGridProps {
|
|
34
|
+
size?: number;
|
|
35
|
+
itemBar?: FileViewerGridItemBar;
|
|
36
|
+
sx?: SxProps<Theme>;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/models/file/FileActions.d.ts
|
|
40
|
+
declare const FileActionsSchema: z$2.ZodObject<{
|
|
41
|
+
download: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
42
|
+
delete: z$2.ZodOptional<z$2.ZodBoolean>;
|
|
43
|
+
}, z$2.core.$strip>;
|
|
44
|
+
type FileActions = z$2.infer<typeof FileActionsSchema>;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/file/FileViewer.d.ts
|
|
47
|
+
interface FileViewerComponent {
|
|
48
|
+
Grid: ComponentType<FileViewerGridProps>;
|
|
49
|
+
List: ComponentType<FileViewerListProps>;
|
|
50
|
+
}
|
|
51
|
+
interface FileViewerProps {
|
|
52
|
+
subId: string;
|
|
53
|
+
onDelete?: (params: {
|
|
54
|
+
remainingFileMetas: Array<FileMeta>;
|
|
55
|
+
deletedFileMeta: FileMeta;
|
|
56
|
+
}) => void;
|
|
57
|
+
actions?: FileActions;
|
|
58
|
+
children: (component: FileViewerComponent) => ReactNode;
|
|
59
|
+
}
|
|
60
|
+
declare const FileViewer: FC<FileViewerProps>;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/data-grid/ChipInputCell.d.ts
|
|
63
|
+
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
64
|
+
params: GridRenderCellParams<T>;
|
|
65
|
+
slotProps?: ChipProps;
|
|
66
|
+
getLabel?: (object: T) => string | number;
|
|
67
|
+
}
|
|
68
|
+
declare const ChipInputCell: <T extends GridValidRowModel>({
|
|
69
|
+
params,
|
|
70
|
+
slotProps,
|
|
71
|
+
getLabel
|
|
72
|
+
}: ChipInputCellProps<T>) => _$react_jsx_runtime0.JSX.Element | null;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/data-grid/EditableColumnHeader.d.ts
|
|
75
|
+
declare const EditableColumnHeader: <T extends GridValidRowModel>({
|
|
76
|
+
colDef
|
|
77
|
+
}: GridColumnHeaderParams<T>) => _$react_jsx_runtime0.JSX.Element;
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/components/router/RouterButton.d.ts
|
|
80
|
+
declare const Component$6: React$1.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
81
|
+
declare const RouterButton: LinkComponent<typeof Component$6>;
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/components/router/RouterFab.d.ts
|
|
84
|
+
declare const Component$5: React$1.ForwardRefExoticComponent<Omit<FabProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
85
|
+
declare const RouterFab: LinkComponent<typeof Component$5>;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/router/RouterGridActionsCellItem.d.ts
|
|
88
|
+
declare const Component$4: React$1.ForwardRefExoticComponent<GridActionsCellItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
89
|
+
declare const RouterGridActionsCellItem: LinkComponent<typeof Component$4>;
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/router/RouterIconButton.d.ts
|
|
92
|
+
declare const Component$3: React$1.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
93
|
+
declare const RouterIconButton: LinkComponent<typeof Component$3>;
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/components/router/RouterLink.d.ts
|
|
96
|
+
declare const Component$2: React$1.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
97
|
+
declare const RouterLink: LinkComponent<typeof Component$2>;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/router/RouterTab.d.ts
|
|
100
|
+
declare const Component$1: React$1.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
101
|
+
declare const RouterTab: LinkComponent<typeof Component$1>;
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/router/RouterListItemButton.d.ts
|
|
104
|
+
declare const Component: React$1.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
105
|
+
declare const RouterListItemButton: LinkComponent<typeof Component>;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/components/router/RouterNotFound.d.ts
|
|
108
|
+
declare function RouterNotFound(): _$react_jsx_runtime0.JSX.Element;
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/router/RouterError.d.ts
|
|
111
|
+
interface RouterErrorProps {
|
|
112
|
+
error: ErrorComponentProps["error"];
|
|
113
|
+
}
|
|
114
|
+
declare const RouterError: FC<RouterErrorProps>;
|
|
115
|
+
//#endregion
|
|
116
|
+
export { ChipInputCell, Dropzone, EditableColumnHeader, FileViewer, Fullscreen, RouterButton, RouterError, RouterFab, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TypographyWithIcon };
|
|
117
|
+
//# sourceMappingURL=components.d.ts.map
|