wcz-test 6.9.2 → 6.9.4
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/DialogsHooks-Bi8dZoyu.js +338 -0
- package/dist/DialogsHooks-Bi8dZoyu.js.map +1 -0
- package/dist/{RouterListItemButton-Cx7rXEfm.js → RouterListItemButton-CHS7rofI.js} +4 -4
- package/dist/{RouterListItemButton-Cx7rXEfm.js.map → RouterListItemButton-CHS7rofI.js.map} +1 -1
- package/dist/auth-client-B6cIXYDV.js +1417 -0
- package/dist/auth-client-B6cIXYDV.js.map +1 -0
- package/dist/client.d.ts +725 -0
- package/dist/client.js +1 -1
- package/dist/components.d.ts +134 -0
- package/dist/components.js +65 -66
- package/dist/components.js.map +1 -1
- package/dist/error-BhAKg8LX-X0sdNXNa.js +195 -0
- package/dist/error-BhAKg8LX-X0sdNXNa.js.map +1 -0
- package/dist/hooks.d.ts +192 -0
- package/dist/hooks.js +31 -31
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +74 -0
- package/dist/index.js +83 -84
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +476 -0
- package/dist/queries.d.ts +1956 -0
- package/dist/server-mxQ3s5dx-CC81W42s.js +644 -0
- package/dist/server-mxQ3s5dx-CC81W42s.js.map +1 -0
- package/dist/server.d.ts +41 -0
- package/dist/server.js +8659 -7
- package/dist/server.js.map +1 -1
- package/dist/utils.d.ts +11 -0
- package/dist/vite.d.ts +5 -0
- package/package.json +29 -29
- package/dist/DialogsHooks-BlUsVlfv.js +0 -39
- package/dist/DialogsHooks-BlUsVlfv.js.map +0 -1
- package/dist/auth-client-o9U0_qmf.js +0 -79
- package/dist/auth-client-o9U0_qmf.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 -8
- package/dist/components/core/ToolbarAccount.d.ts +0 -2
- package/dist/components/core/TypographyWithIcon.d.ts +0 -7
- package/dist/components/core/navigation/NavigationList.d.ts +0 -22
- 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/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/env.d.ts +0 -10
- package/dist/exports/client.d.ts +0 -5
- package/dist/exports/components.d.ts +0 -14
- package/dist/exports/hooks.d.ts +0 -4
- package/dist/exports/index.d.ts +0 -3
- package/dist/exports/models.d.ts +0 -25
- package/dist/exports/queries.d.ts +0 -4
- package/dist/exports/server.d.ts +0 -3
- package/dist/exports/utils.d.ts +0 -3
- package/dist/exports/vite.d.ts +0 -1
- package/dist/hooks/DialogsHooks.d.ts +0 -42
- package/dist/hooks/FormHooks.d.ts +0 -52
- package/dist/hooks/ThemeHook.d.ts +0 -4
- package/dist/lib/auth/auth-client.d.ts +0 -688
- package/dist/lib/auth/auth.d.ts +0 -24
- package/dist/lib/db/index.d.ts +0 -4
- package/dist/lib/db/schemas/auth.d.ts +0 -606
- package/dist/lib/utils.d.ts +0 -50
- package/dist/lib/vite-plugin.d.ts +0 -2
- package/dist/models/Navigation.d.ts +0 -18
- package/dist/models/User.d.ts +0 -8
- 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 -6
- package/dist/providers/LayoutProvider.d.ts +0 -11
- package/dist/queries/Approval.d.ts +0 -585
- package/dist/queries/ApprovalHooks.d.ts +0 -315
- package/dist/queries/FileHooks.d.ts +0 -151
- package/dist/queries/PeopleSoftHooks.d.ts +0 -537
package/dist/utils.d.ts
ADDED
package/dist/vite.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wcz-test",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -62,59 +62,59 @@
|
|
|
62
62
|
"prepublishOnly": "npm run build"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
+
"@emotion/react": "^11.14.0",
|
|
66
|
+
"@emotion/styled": "^11.14.1",
|
|
67
|
+
"@mui/icons-material": "^7.3.5",
|
|
68
|
+
"@mui/material": "^7.3.5",
|
|
69
|
+
"@mui/x-data-grid-premium": "^8.20.0",
|
|
70
|
+
"@mui/x-date-pickers-pro": "^8.19.0",
|
|
65
71
|
"@t3-oss/env-core": "^0.13.8",
|
|
66
|
-
"@
|
|
72
|
+
"@tanstack/query-db-collection": "^1.0.5",
|
|
73
|
+
"@tanstack/react-db": "^0.1.53",
|
|
74
|
+
"@tanstack/react-form": "^1.26.0",
|
|
75
|
+
"@tanstack/react-query": "^5.90.11",
|
|
76
|
+
"@tanstack/react-router": "^1.139.12",
|
|
77
|
+
"@tanstack/react-router-ssr-query": "^1.139.12",
|
|
78
|
+
"@tanstack/react-start": "^1.139.12",
|
|
67
79
|
"axios": "^1.13.2",
|
|
68
80
|
"better-auth": "1.4.1",
|
|
81
|
+
"dayjs": "^1.11.19",
|
|
82
|
+
"drizzle-orm": "^0.44.7",
|
|
69
83
|
"file-saver": "^2.0.5",
|
|
70
|
-
"i18next": "^25.6.
|
|
84
|
+
"i18next": "^25.6.3",
|
|
71
85
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
72
86
|
"pg": "^8.16.3",
|
|
73
87
|
"react-dropzone": "^14.3.8",
|
|
74
|
-
"react-i18next": "^16.3.
|
|
88
|
+
"react-i18next": "^16.3.5",
|
|
75
89
|
"react-intersection-observer": "^10.0.0",
|
|
76
90
|
"react-number-format": "^5.4.4",
|
|
77
91
|
"tus-js-client": "^4.3.1",
|
|
78
|
-
"uuidv7": "^1.0
|
|
92
|
+
"uuidv7": "^1.1.0",
|
|
93
|
+
"zod": "^4.1.13"
|
|
79
94
|
},
|
|
80
95
|
"devDependencies": {
|
|
81
|
-
"@tanstack/eslint-config": "^0.3.
|
|
96
|
+
"@tanstack/eslint-config": "^0.3.3",
|
|
82
97
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
83
|
-
"@tanstack/eslint-plugin-router": "^1.
|
|
98
|
+
"@tanstack/eslint-plugin-router": "^1.139.0",
|
|
84
99
|
"@types/file-saver": "^2.0.7",
|
|
85
100
|
"@types/node": "^22.10.2",
|
|
86
|
-
"@types/
|
|
87
|
-
"@types/react
|
|
88
|
-
"@
|
|
101
|
+
"@types/pg": "^8.15.6",
|
|
102
|
+
"@types/react": "^19.2.7",
|
|
103
|
+
"@types/react-dom": "^19.2.3",
|
|
104
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
89
105
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
90
106
|
"drizzle-kit": "^0.31.7",
|
|
91
107
|
"nitro": "^3.0.1-alpha.1",
|
|
92
108
|
"react-markdown": "^10.1.0",
|
|
93
109
|
"typescript": "^5.9.3",
|
|
94
|
-
"vite": "^7.2.
|
|
110
|
+
"vite": "^7.2.6",
|
|
95
111
|
"vite-plugin-checker": "^0.11.0",
|
|
96
112
|
"vite-plugin-dts": "^4.5.4",
|
|
97
|
-
"vite-plugin-pwa": "^1.
|
|
113
|
+
"vite-plugin-pwa": "^1.2.0",
|
|
98
114
|
"vite-tsconfig-paths": "^5.1.4"
|
|
99
115
|
},
|
|
100
116
|
"peerDependencies": {
|
|
101
|
-
"@emotion/react": "11.x",
|
|
102
|
-
"@emotion/styled": "11.x",
|
|
103
|
-
"@mui/icons-material": "7.x",
|
|
104
|
-
"@mui/material": "7.x",
|
|
105
|
-
"@mui/x-data-grid-premium": "8.x",
|
|
106
|
-
"@mui/x-date-pickers-pro": "8.x",
|
|
107
|
-
"@tanstack/query-db-collection": "1.x",
|
|
108
|
-
"@tanstack/react-db": "0.x",
|
|
109
|
-
"@tanstack/react-form": "1.x",
|
|
110
|
-
"@tanstack/react-query": "5.x",
|
|
111
|
-
"@tanstack/react-router": "1.x",
|
|
112
|
-
"@tanstack/react-router-ssr-query": "1.x",
|
|
113
|
-
"@tanstack/react-start": "1.x",
|
|
114
|
-
"dayjs": "1.x",
|
|
115
|
-
"drizzle-orm": "0.x",
|
|
116
117
|
"react": "19.x",
|
|
117
|
-
"react-dom": "19.x"
|
|
118
|
-
"zod": "4.x"
|
|
118
|
+
"react-dom": "19.x"
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEventCallback, Dialog, DialogTitle, DialogContent, DialogActions, Button } from "@mui/material";
|
|
3
|
-
import { createContext, useContext } from "react";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
const DialogsContext = createContext({});
|
|
6
|
-
function AlertDialog({ open, payload, onClose }) {
|
|
7
|
-
const { t } = useTranslation();
|
|
8
|
-
return /* @__PURE__ */ jsxs(Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(), disableRestoreFocus: true, children: [
|
|
9
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: payload.title ?? t("Layout.Dialog.Alert") }),
|
|
10
|
-
/* @__PURE__ */ jsx(DialogContent, { children: payload.message }),
|
|
11
|
-
/* @__PURE__ */ jsx(DialogActions, { children: /* @__PURE__ */ jsx(Button, { onClick: () => onClose(), autoFocus: true, children: t("Layout.Dialog.Confirm") }) })
|
|
12
|
-
] });
|
|
13
|
-
}
|
|
14
|
-
function ConfirmDialog({ open, payload, onClose }) {
|
|
15
|
-
const { t } = useTranslation();
|
|
16
|
-
return /* @__PURE__ */ jsxs(Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(false), disableRestoreFocus: true, children: [
|
|
17
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: payload.title ?? t("Layout.Dialog.Confirm") }),
|
|
18
|
-
/* @__PURE__ */ jsx(DialogContent, { children: payload.message }),
|
|
19
|
-
/* @__PURE__ */ jsxs(DialogActions, { children: [
|
|
20
|
-
/* @__PURE__ */ jsx(Button, { onClick: () => onClose(false), children: payload.cancelText ?? t("Layout.Dialog.Cancel") }),
|
|
21
|
-
/* @__PURE__ */ jsx(Button, { onClick: () => onClose(true), autoFocus: true, children: t("Layout.Dialog.Confirm") })
|
|
22
|
-
] })
|
|
23
|
-
] });
|
|
24
|
-
}
|
|
25
|
-
function useDialogs() {
|
|
26
|
-
const { open, close } = useContext(DialogsContext);
|
|
27
|
-
const alert = useEventCallback(
|
|
28
|
-
(message, { ...options } = {}) => open(AlertDialog, { ...options, message })
|
|
29
|
-
);
|
|
30
|
-
const confirm = useEventCallback(
|
|
31
|
-
(message, { ...options } = {}) => open(ConfirmDialog, { ...options, message })
|
|
32
|
-
);
|
|
33
|
-
return { alert, confirm, open, close };
|
|
34
|
-
}
|
|
35
|
-
export {
|
|
36
|
-
DialogsContext as D,
|
|
37
|
-
useDialogs as u
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=DialogsHooks-BlUsVlfv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogsHooks-BlUsVlfv.js","sources":["../src/contexts/DialogsContext.ts","../src/hooks/DialogsHooks.tsx"],"sourcesContent":["import { createContext } from \"react\";\r\nimport type { CloseDialog, OpenDialog } from \"../hooks/DialogsHooks\";\r\n\r\nexport interface DialogsContextValue {\r\n open: OpenDialog;\r\n close: CloseDialog;\r\n}\r\n\r\nexport const DialogsContext = createContext<DialogsContextValue>({} as DialogsContextValue);","import { Button, Dialog, DialogActions, DialogContent, DialogTitle, useEventCallback } from \"@mui/material\";\r\nimport { useContext } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { DialogsContext } from \"../contexts/DialogsContext\";\r\nimport type { ReactNode } from \"react\";\r\n\r\nexport interface OpenDialogOptions<TResult> {\r\n onClose?: (result: TResult) => Promise<void>;\r\n}\r\n\r\nexport interface AlertOptions {\r\n title?: ReactNode;\r\n}\r\n\r\nexport interface ConfirmOptions {\r\n title?: ReactNode;\r\n cancelText?: ReactNode;\r\n}\r\n\r\nexport interface DialogProps<TPayload = undefined, TResult = void> {\r\n payload: TPayload;\r\n open: boolean;\r\n onClose: (result: TResult) => Promise<void>;\r\n}\r\n\r\nexport type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;\r\n\r\nexport type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;\r\n\r\nexport type DialogComponent<TPayload, TResult> = React.ComponentType<DialogProps<TPayload, TResult>>;\r\n\r\nexport interface OpenDialog {\r\n <TPayload extends undefined, TResult>(Component: DialogComponent<TPayload, TResult>, payload?: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;\r\n <TPayload, TResult>(Component: DialogComponent<TPayload, TResult>, payload: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;\r\n}\r\n\r\nexport type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;\r\n\r\nexport interface AlertDialogPayload extends AlertOptions {\r\n message: ReactNode;\r\n}\r\n\r\nexport type AlertDialogProps = DialogProps<AlertDialogPayload, void>\r\n\r\nexport function AlertDialog({ open, payload, onClose }: Readonly<AlertDialogProps>) {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose()} disableRestoreFocus>\r\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Alert\")}</DialogTitle>\r\n <DialogContent>{payload.message}</DialogContent>\r\n <DialogActions>\r\n <Button onClick={() => onClose()} autoFocus>\r\n {t(\"Layout.Dialog.Confirm\")}\r\n </Button>\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n}\r\n\r\nexport interface ConfirmDialogPayload extends ConfirmOptions {\r\n message: ReactNode;\r\n}\r\n\r\nexport type ConfirmDialogProps = DialogProps<ConfirmDialogPayload, boolean>\r\n\r\nexport function ConfirmDialog({ open, payload, onClose }: Readonly<ConfirmDialogProps>) {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <Dialog maxWidth=\"xs\" fullWidth open={open} onClose={() => onClose(false)} disableRestoreFocus>\r\n <DialogTitle>{payload.title ?? t(\"Layout.Dialog.Confirm\")}</DialogTitle>\r\n <DialogContent>{payload.message}</DialogContent>\r\n <DialogActions>\r\n <Button onClick={() => onClose(false)}>\r\n {payload.cancelText ?? t(\"Layout.Dialog.Cancel\")}\r\n </Button>\r\n <Button onClick={() => onClose(true)} autoFocus>\r\n {t(\"Layout.Dialog.Confirm\")}\r\n </Button>\r\n </DialogActions>\r\n </Dialog>\r\n );\r\n}\r\n\r\ninterface DialogHook {\r\n alert: OpenAlertDialog;\r\n confirm: OpenConfirmDialog;\r\n open: OpenDialog;\r\n close: CloseDialog;\r\n}\r\n\r\nexport function useDialogs(): DialogHook {\r\n const { open, close } = useContext(DialogsContext);\r\n\r\n const alert = useEventCallback<OpenAlertDialog>((message, { ...options } = {}) =>\r\n open(AlertDialog, { ...options, message }),\r\n );\r\n\r\n const confirm = useEventCallback<OpenConfirmDialog>((message, { ...options } = {}) =>\r\n open(ConfirmDialog, { ...options, message }),\r\n );\r\n\r\n return { alert, confirm, open, close };\r\n}\r\n"],"names":[],"mappings":";;;;AAQO,MAAM,iBAAiB,cAAmC,CAAA,CAAyB;ACoCnF,SAAS,YAAY,EAAE,MAAM,SAAS,WAAuC;AAChF,QAAM,EAAE,EAAA,IAAM,eAAA;AAEd,SACI,qBAAC,QAAA,EAAO,UAAS,MAAK,WAAS,MAAC,MAAY,SAAS,MAAM,QAAA,GAAW,qBAAmB,MACrF,UAAA;AAAA,IAAA,oBAAC,aAAA,EAAa,UAAA,QAAQ,SAAS,EAAE,qBAAqB,GAAE;AAAA,IACxD,oBAAC,eAAA,EAAe,UAAA,QAAQ,QAAA,CAAQ;AAAA,IAChC,oBAAC,eAAA,EACG,UAAA,oBAAC,QAAA,EAAO,SAAS,MAAM,QAAA,GAAW,WAAS,MACtC,UAAA,EAAE,uBAAuB,GAC9B,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;AAQO,SAAS,cAAc,EAAE,MAAM,SAAS,WAAyC;AACpF,QAAM,EAAE,EAAA,IAAM,eAAA;AAEd,SACI,qBAAC,QAAA,EAAO,UAAS,MAAK,WAAS,MAAC,MAAY,SAAS,MAAM,QAAQ,KAAK,GAAG,qBAAmB,MAC1F,UAAA;AAAA,IAAA,oBAAC,aAAA,EAAa,UAAA,QAAQ,SAAS,EAAE,uBAAuB,GAAE;AAAA,IAC1D,oBAAC,eAAA,EAAe,UAAA,QAAQ,QAAA,CAAQ;AAAA,yBAC/B,eAAA,EACG,UAAA;AAAA,MAAA,oBAAC,QAAA,EAAO,SAAS,MAAM,QAAQ,KAAK,GAC/B,UAAA,QAAQ,cAAc,EAAE,sBAAsB,EAAA,CACnD;AAAA,MACA,oBAAC,QAAA,EAAO,SAAS,MAAM,QAAQ,IAAI,GAAG,WAAS,MAC1C,UAAA,EAAE,uBAAuB,EAAA,CAC9B;AAAA,IAAA,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;AASO,SAAS,aAAyB;AACrC,QAAM,EAAE,MAAM,UAAU,WAAW,cAAc;AAEjD,QAAM,QAAQ;AAAA,IAAkC,CAAC,SAAS,EAAE,GAAG,YAAY,CAAA,MACvE,KAAK,aAAa,EAAE,GAAG,SAAS,SAAS;AAAA,EAAA;AAG7C,QAAM,UAAU;AAAA,IAAoC,CAAC,SAAS,EAAE,GAAG,YAAY,CAAA,MAC3E,KAAK,eAAe,EAAE,GAAG,SAAS,SAAS;AAAA,EAAA;AAG/C,SAAO,EAAE,OAAO,SAAS,MAAM,MAAA;AACnC;"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { createTheme, darken, lighten } from "@mui/material";
|
|
2
|
-
import { grey } from "@mui/material/colors";
|
|
3
|
-
import { enUS as enUS$2, csCZ as csCZ$2 } from "@mui/material/locale";
|
|
4
|
-
import { enUS, csCZ } from "@mui/x-data-grid/locales";
|
|
5
|
-
import { enUS as enUS$1, csCZ as csCZ$1 } from "@mui/x-date-pickers/locales";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
import { createAuthClient } from "better-auth/react";
|
|
8
|
-
import { c as clientEnv } from "./env-CoxTjaDr.js";
|
|
9
|
-
const WISTRON_PRIMARY_COLOR = "#00506E";
|
|
10
|
-
const WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
11
|
-
const LOCALE_MAP = {
|
|
12
|
-
cs: [csCZ, csCZ$1, csCZ$2],
|
|
13
|
-
en: [enUS, enUS$1, enUS$2]
|
|
14
|
-
};
|
|
15
|
-
const useGetTheme = (theme) => {
|
|
16
|
-
const { i18n } = useTranslation();
|
|
17
|
-
return createTheme(
|
|
18
|
-
{
|
|
19
|
-
cssVariables: {
|
|
20
|
-
colorSchemeSelector: "data-mui-color-scheme"
|
|
21
|
-
},
|
|
22
|
-
colorSchemes: {
|
|
23
|
-
light: {
|
|
24
|
-
palette: {
|
|
25
|
-
primary: { main: WISTRON_PRIMARY_COLOR },
|
|
26
|
-
secondary: { main: WISTRON_SECONDARY_COLOR }
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
dark: {
|
|
30
|
-
palette: {
|
|
31
|
-
primary: { main: lighten(WISTRON_PRIMARY_COLOR, 0.5) },
|
|
32
|
-
secondary: { main: darken(WISTRON_SECONDARY_COLOR, 0.5) }
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
...theme?.colorSchemes
|
|
36
|
-
},
|
|
37
|
-
components: {
|
|
38
|
-
MuiCssBaseline: {
|
|
39
|
-
styleOverrides: ({ palette }) => {
|
|
40
|
-
return {
|
|
41
|
-
body: {
|
|
42
|
-
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
43
|
-
width: "0.7em",
|
|
44
|
-
height: "0.7em"
|
|
45
|
-
},
|
|
46
|
-
"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {
|
|
47
|
-
backgroundColor: palette.mode === "dark" ? grey[900] : grey[200],
|
|
48
|
-
borderRadius: "5px"
|
|
49
|
-
},
|
|
50
|
-
"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
|
|
51
|
-
backgroundColor: palette.mode === "dark" ? grey[800] : grey[400],
|
|
52
|
-
borderRadius: "10px"
|
|
53
|
-
},
|
|
54
|
-
"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": {
|
|
55
|
-
backgroundColor: palette.mode === "dark" ? grey[700] : grey[500]
|
|
56
|
-
},
|
|
57
|
-
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": {
|
|
58
|
-
backgroundColor: "transparent"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
...theme?.components
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
...LOCALE_MAP[i18n.language]
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
const authClient = createAuthClient({
|
|
71
|
-
baseURL: clientEnv.VITE_API_URL
|
|
72
|
-
});
|
|
73
|
-
export {
|
|
74
|
-
WISTRON_PRIMARY_COLOR as W,
|
|
75
|
-
authClient as a,
|
|
76
|
-
WISTRON_SECONDARY_COLOR as b,
|
|
77
|
-
useGetTheme as u
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=auth-client-o9U0_qmf.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-client-o9U0_qmf.js","sources":["../src/hooks/ThemeHook.ts","../src/lib/auth/auth-client.ts"],"sourcesContent":["import { createTheme, darken, lighten } from \"@mui/material\";\r\nimport { grey } from \"@mui/material/colors\";\r\nimport { csCZ, enUS } from \"@mui/material/locale\";\r\nimport { csCZ as dataGridCsCz, enUS as dataGridEnUs } from \"@mui/x-data-grid/locales\";\r\nimport { csCZ as datePickersCsCz, enUS as datePickersEnUs } from \"@mui/x-date-pickers/locales\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport type { CssVarsThemeOptions } from \"@mui/material\";\r\n\r\nexport const WISTRON_PRIMARY_COLOR = \"#00506E\";\r\nexport const WISTRON_SECONDARY_COLOR = \"#64DC00\";\r\n\r\nconst LOCALE_MAP = {\r\n cs: [dataGridCsCz, datePickersCsCz, csCZ],\r\n en: [dataGridEnUs, datePickersEnUs, enUS],\r\n} as const;\r\n\r\nexport const useGetTheme = (theme?: Pick<CssVarsThemeOptions, \"colorSchemes\" | \"components\">) => {\r\n const { i18n } = useTranslation();\r\n\r\n return createTheme(\r\n {\r\n cssVariables: {\r\n colorSchemeSelector: \"data-mui-color-scheme\"\r\n },\r\n colorSchemes: {\r\n light: {\r\n palette: {\r\n primary: { main: WISTRON_PRIMARY_COLOR },\r\n secondary: { main: WISTRON_SECONDARY_COLOR },\r\n },\r\n },\r\n dark: {\r\n palette: {\r\n primary: { main: lighten(WISTRON_PRIMARY_COLOR, 0.5) },\r\n secondary: { main: darken(WISTRON_SECONDARY_COLOR, 0.5) },\r\n },\r\n },\r\n ...theme?.colorSchemes\r\n },\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: ({ palette }) => {\r\n return {\r\n body: {\r\n \"&::-webkit-scrollbar, & *::-webkit-scrollbar\": {\r\n width: \"0.7em\",\r\n height: \"0.7em\",\r\n },\r\n \"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track\": {\r\n backgroundColor:\r\n palette.mode === \"dark\" ? grey[900] : grey[200],\r\n borderRadius: \"5px\",\r\n },\r\n \"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb\": {\r\n backgroundColor:\r\n palette.mode === \"dark\" ? grey[800] : grey[400],\r\n borderRadius: \"10px\",\r\n },\r\n \"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover\":\r\n {\r\n backgroundColor:\r\n palette.mode === \"dark\" ? grey[700] : grey[500],\r\n },\r\n \"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner\": {\r\n backgroundColor: \"transparent\",\r\n },\r\n },\r\n };\r\n },\r\n },\r\n ...theme?.components\r\n },\r\n },\r\n ...LOCALE_MAP[i18n.language as keyof typeof LOCALE_MAP]\r\n );\r\n};\r\n","import { createAuthClient } from \"better-auth/react\";\r\nimport { clientEnv } from \"~/env\";\r\n\r\nexport const authClient = createAuthClient({\r\n baseURL: clientEnv.VITE_API_URL,\r\n});\r\n"],"names":["dataGridCsCz","datePickersCsCz","csCZ","dataGridEnUs","datePickersEnUs","enUS"],"mappings":";;;;;;;;AAQO,MAAM,wBAAwB;AAC9B,MAAM,0BAA0B;AAEvC,MAAM,aAAa;AAAA,EACf,IAAI,CAACA,MAAcC,QAAiBC,MAAI;AAAA,EACxC,IAAI,CAACC,MAAcC,QAAiBC,MAAI;AAC5C;AAEO,MAAM,cAAc,CAAC,UAAqE;AAC7F,QAAM,EAAE,KAAA,IAAS,eAAA;AAEjB,SAAO;AAAA,IACH;AAAA,MACI,cAAc;AAAA,QACV,qBAAqB;AAAA,MAAA;AAAA,MAEzB,cAAc;AAAA,QACV,OAAO;AAAA,UACH,SAAS;AAAA,YACL,SAAS,EAAE,MAAM,sBAAA;AAAA,YACjB,WAAW,EAAE,MAAM,wBAAA;AAAA,UAAwB;AAAA,QAC/C;AAAA,QAEJ,MAAM;AAAA,UACF,SAAS;AAAA,YACL,SAAS,EAAE,MAAM,QAAQ,uBAAuB,GAAG,EAAA;AAAA,YACnD,WAAW,EAAE,MAAM,OAAO,yBAAyB,GAAG,EAAA;AAAA,UAAE;AAAA,QAC5D;AAAA,QAEJ,GAAG,OAAO;AAAA,MAAA;AAAA,MAEd,YAAY;AAAA,QACR,gBAAgB;AAAA,UACZ,gBAAgB,CAAC,EAAE,cAAc;AAC7B,mBAAO;AAAA,cACH,MAAM;AAAA,gBACF,gDAAgD;AAAA,kBAC5C,OAAO;AAAA,kBACP,QAAQ;AAAA,gBAAA;AAAA,gBAEZ,4DAA4D;AAAA,kBACxD,iBACI,QAAQ,SAAS,SAAS,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,kBAClD,cAAc;AAAA,gBAAA;AAAA,gBAElB,4DAA4D;AAAA,kBACxD,iBACI,QAAQ,SAAS,SAAS,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,kBAClD,cAAc;AAAA,gBAAA;AAAA,gBAElB,wEACA;AAAA,kBACI,iBACI,QAAQ,SAAS,SAAS,KAAK,GAAG,IAAI,KAAK,GAAG;AAAA,gBAAA;AAAA,gBAEtD,8DAA8D;AAAA,kBAC1D,iBAAiB;AAAA,gBAAA;AAAA,cACrB;AAAA,YACJ;AAAA,UAER;AAAA,QAAA;AAAA,QAEJ,GAAG,OAAO;AAAA,MAAA;AAAA,IACd;AAAA,IAEJ,GAAG,WAAW,KAAK,QAAmC;AAAA,EAAA;AAE9D;ACxEO,MAAM,aAAa,iBAAiB;AAAA,EACvC,SAAS,UAAU;AACvB,CAAC;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
import { ChipProps } from '@mui/material';
|
|
2
|
-
import { GridRenderCellParams, GridValidRowModel } from '@mui/x-data-grid-premium';
|
|
3
|
-
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
4
|
-
params: GridRenderCellParams<T>;
|
|
5
|
-
slotProps?: ChipProps;
|
|
6
|
-
getLabel?: (object: T) => string | number;
|
|
7
|
-
}
|
|
8
|
-
export declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FileViewerGridProps } from './fileViewer/FileViewerGrid';
|
|
2
|
-
import { ComponentType, FC, ReactNode } from 'react';
|
|
3
|
-
import { FileMeta } from '../../models/file/FileMeta';
|
|
4
|
-
import { FileActions } from '../../models/file/FileActions';
|
|
5
|
-
import { FileViewerListProps } from './fileViewer/FileViewerList';
|
|
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 {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SxProps, Theme } from '@mui/material';
|
|
3
|
-
import { FileMeta } from '../../../models/file/FileMeta';
|
|
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 {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,15 +0,0 @@
|
|
|
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,7 +0,0 @@
|
|
|
1
|
-
import { AutocompleteProps, TextFieldProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
4
|
-
export interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
|
|
5
|
-
textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
|
|
6
|
-
}
|
|
7
|
-
export declare const FormAutocomplete: FC<FormAutocompleteProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CheckboxProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
4
|
-
export interface FormCheckboxProps extends Omit<CheckboxProps, FormOmittedProps> {
|
|
5
|
-
label?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const FormCheckbox: FC<FormCheckboxProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
-
import { DateTimeRangePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
|
-
import { FC } from 'react';
|
|
4
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
5
|
-
export interface FormDateTimeRangePickerProps extends Omit<DateTimeRangePickerProps, FormOmittedProps> {
|
|
6
|
-
textFieldProps?: TextFieldProps;
|
|
7
|
-
}
|
|
8
|
-
export declare const FormDateTimeRangePicker: FC<FormDateTimeRangePickerProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InputAttributes, NumericFormatProps } from 'react-number-format/types/types';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { TextFieldProps } from '@mui/material';
|
|
4
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
5
|
-
export interface FormNumberFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
6
|
-
defaultValue?: number | null;
|
|
7
|
-
options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
|
|
8
|
-
}
|
|
9
|
-
export declare const FormNumberField: FC<FormNumberFieldProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RadioGroupProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
4
|
-
interface Option {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string | number;
|
|
7
|
-
}
|
|
8
|
-
export interface FormRadioGroupProps extends Omit<RadioGroupProps, FormOmittedProps> {
|
|
9
|
-
label?: string;
|
|
10
|
-
options: Array<Option>;
|
|
11
|
-
}
|
|
12
|
-
export declare const FormRadioGroup: FC<FormRadioGroupProps>;
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SliderProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
4
|
-
export interface FormSliderProps extends Omit<SliderProps, FormOmittedProps> {
|
|
5
|
-
label?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const FormSlider: FC<FormSliderProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SwitchProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
4
|
-
export interface FormSwitchProps extends Omit<SwitchProps, FormOmittedProps> {
|
|
5
|
-
label?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const FormSwitch: FC<FormSwitchProps>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
4
|
-
export interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
5
|
-
type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
6
|
-
}
|
|
7
|
-
export declare const FormTextField: FC<FormTextFieldProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
-
import { TimePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
|
-
import { FC } from 'react';
|
|
4
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
5
|
-
export interface FormTimePickerProps extends Omit<TimePickerProps, FormOmittedProps> {
|
|
6
|
-
textFieldProps?: TextFieldProps;
|
|
7
|
-
}
|
|
8
|
-
export declare const FormTimePicker: FC<FormTimePickerProps>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
-
import { TimeRangePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
|
-
import { FC } from 'react';
|
|
4
|
-
import { FormOmittedProps } from '../../lib/utils';
|
|
5
|
-
export interface FormTimeRangePickerProps extends Omit<TimeRangePickerProps, FormOmittedProps> {
|
|
6
|
-
textFieldProps?: TextFieldProps;
|
|
7
|
-
}
|
|
8
|
-
export declare const FormTimeRangePicker: FC<FormTimeRangePickerProps>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ButtonProps } from '@mui/material';
|
|
3
|
-
import { LinkComponent } from '@tanstack/react-router';
|
|
4
|
-
declare const Component: React.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
-
export declare const RouterButton: LinkComponent<typeof Component>;
|
|
6
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { GridActionsCellItemProps } from '@mui/x-data-grid-premium';
|
|
3
|
-
import { LinkComponent } from '@tanstack/react-router';
|
|
4
|
-
declare const Component: React.ForwardRefExoticComponent<GridActionsCellItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
export declare const RouterGridActionsCellItem: LinkComponent<typeof Component>;
|
|
6
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { IconButtonProps } from '@mui/material';
|
|
3
|
-
import { LinkComponent } from '@tanstack/react-router';
|
|
4
|
-
declare const Component: React.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
-
export declare const RouterIconButton: LinkComponent<typeof Component>;
|
|
6
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { LinkProps } from '@mui/material';
|
|
3
|
-
import { LinkComponent } from '@tanstack/react-router';
|
|
4
|
-
declare const Component: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
5
|
-
export declare const RouterLink: LinkComponent<typeof Component>;
|
|
6
|
-
export {};
|