wcz-layout 6.7.2 → 8.3.2
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/Approval-BTJTexDo.js +143 -0
- package/dist/Approval-BTJTexDo.js.map +1 -0
- package/dist/DialogsContext-DLqA8RJ_.js +7 -0
- package/dist/DialogsContext-DLqA8RJ_.js.map +1 -0
- package/dist/Email-C9qwj7GD.js +20 -0
- package/dist/Email-C9qwj7GD.js.map +1 -0
- package/dist/FileMeta-DDqUju1Y.js +19 -0
- package/dist/FileMeta-DDqUju1Y.js.map +1 -0
- package/dist/FileMeta-ILLTOjaM.d.ts +20 -0
- package/dist/NotificationContext-CgwUOeW0.js +7 -0
- package/dist/NotificationContext-CgwUOeW0.js.map +1 -0
- package/dist/RouterListItemButton-owZVvuC_.js +78 -0
- package/dist/RouterListItemButton-owZVvuC_.js.map +1 -0
- package/dist/User-CT_IDGuG.d.ts +15 -0
- package/dist/apiMiddleware-CtY4rOFU.js +23 -0
- package/dist/apiMiddleware-CtY4rOFU.js.map +1 -0
- package/dist/components.d.ts +118 -0
- package/dist/components.js +1554 -0
- package/dist/components.js.map +1 -0
- package/dist/data/client.d.ts +3111 -0
- package/dist/data/client.js +188 -0
- package/dist/data/client.js.map +1 -0
- package/dist/data/server.d.ts +19 -0
- package/dist/data/server.js +16 -0
- package/dist/data/server.js.map +1 -0
- package/dist/data.d.ts +7 -0
- package/dist/data.js +2 -0
- package/dist/env-ON-cyE3N.js +31 -0
- package/dist/env-ON-cyE3N.js.map +1 -0
- package/dist/file-BUdLb7H1.js +148 -0
- package/dist/file-BUdLb7H1.js.map +1 -0
- package/dist/file-Dsht7yOP.js +100 -0
- package/dist/file-Dsht7yOP.js.map +1 -0
- package/dist/hooks.d.ts +226 -0
- package/dist/hooks.js +1180 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +2106 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware.d.ts +47 -0
- package/dist/middleware.js +80 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models.d.ts +474 -0
- package/dist/models.js +74 -0
- package/dist/models.js.map +1 -0
- package/dist/msalClient-CYiQAFnY.d.ts +15 -0
- package/dist/msalServer-B9sVqpQ2.js +47 -0
- package/dist/msalServer-B9sVqpQ2.js.map +1 -0
- package/dist/peoplesoft-BCjRje6b.js +240 -0
- package/dist/peoplesoft-BCjRje6b.js.map +1 -0
- package/dist/peoplesoft-Cze2ngGd.d.ts +1150 -0
- package/dist/queryClient-D64McLhZ.js +7 -0
- package/dist/queryClient-D64McLhZ.js.map +1 -0
- package/dist/useDialogs-BJVhBr8S.js +248 -0
- package/dist/useDialogs-BJVhBr8S.js.map +1 -0
- package/dist/utils-BMUmv2ws.js +191 -0
- package/dist/utils-BMUmv2ws.js.map +1 -0
- package/dist/utils-CvvyM8Xw.d.ts +56 -0
- package/dist/utils.d.ts +21 -0
- package/dist/utils.js +6 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +147 -0
- package/dist/vite.js.map +1 -0
- package/package.json +158 -62
- package/skills/client-db/SKILL.md +107 -0
- package/skills/data-grid/SKILL.md +147 -0
- package/skills/db-schema/SKILL.md +68 -0
- package/skills/dialogs/SKILL.md +79 -0
- package/skills/forms/SKILL.md +82 -0
- package/skills/general/SKILL.md +17 -0
- package/skills/notifications/SKILL.md +43 -0
- package/skills/routing/SKILL.md +123 -0
- package/skills/server-functions/SKILL.md +109 -0
- package/skills/services/SKILL.md +28 -0
- package/skills/services/docs/approval.md +204 -0
- package/skills/services/docs/email.md +32 -0
- package/skills/services/docs/file.md +85 -0
- package/skills/services/docs/peoplesoft.md +110 -0
- package/skills/start/SKILL.md +46 -0
- package/skills/start/steps/01-git-setup.md +10 -0
- package/skills/start/steps/02-project-name-setup.md +14 -0
- package/skills/start/steps/03-apm-setup.md +208 -0
- package/skills/start/steps/04-database-setup.md +37 -0
- package/skills/start/steps/05-entra-setup.md +59 -0
- package/skills/start/steps/06-vault-setup.md +53 -0
- package/skills/start/steps/07-generate-favicon.md +10 -0
- package/skills/start/steps/08-commit.md +15 -0
- package/dist/src/components/Layout.d.ts +0 -16
- package/dist/src/components/Layout.js +0 -122
- package/dist/src/components/Layout.js.map +0 -1
- package/dist/src/components/dataGrid/ChipInputCell.d.ts +0 -9
- package/dist/src/components/dataGrid/ChipInputCell.js +0 -17
- package/dist/src/components/dataGrid/ChipInputCell.js.map +0 -1
- package/dist/src/components/dataGrid/EditableColumnHeader.d.ts +0 -2
- package/dist/src/components/dataGrid/EditableColumnHeader.js +0 -7
- package/dist/src/components/dataGrid/EditableColumnHeader.js.map +0 -1
- package/dist/src/components/dataGrid/GridToolbar.d.ts +0 -8
- package/dist/src/components/dataGrid/GridToolbar.js +0 -40
- package/dist/src/components/dataGrid/GridToolbar.js.map +0 -1
- package/dist/src/components/dataGrid/TableContainer.d.ts +0 -3
- package/dist/src/components/dataGrid/TableContainer.js +0 -32
- package/dist/src/components/dataGrid/TableContainer.js.map +0 -1
- package/dist/src/components/form/FormAutocomplete.d.ts +0 -7
- package/dist/src/components/form/FormAutocomplete.js +0 -10
- package/dist/src/components/form/FormAutocomplete.js.map +0 -1
- package/dist/src/components/form/FormCheckbox.d.ts +0 -7
- package/dist/src/components/form/FormCheckbox.js +0 -11
- package/dist/src/components/form/FormCheckbox.js.map +0 -1
- package/dist/src/components/form/FormDatePicker.d.ts +0 -9
- package/dist/src/components/form/FormDatePicker.js +0 -19
- package/dist/src/components/form/FormDatePicker.js.map +0 -1
- package/dist/src/components/form/FormDateTimePicker.d.ts +0 -9
- package/dist/src/components/form/FormDateTimePicker.js +0 -19
- package/dist/src/components/form/FormDateTimePicker.js.map +0 -1
- package/dist/src/components/form/FormNumberField.d.ts +0 -12
- package/dist/src/components/form/FormNumberField.js +0 -12
- package/dist/src/components/form/FormNumberField.js.map +0 -1
- package/dist/src/components/form/FormRadioGroup.d.ts +0 -13
- package/dist/src/components/form/FormRadioGroup.js +0 -11
- package/dist/src/components/form/FormRadioGroup.js.map +0 -1
- package/dist/src/components/form/FormSlider.d.ts +0 -7
- package/dist/src/components/form/FormSlider.js +0 -11
- package/dist/src/components/form/FormSlider.js.map +0 -1
- package/dist/src/components/form/FormSubmitButton.d.ts +0 -5
- package/dist/src/components/form/FormSubmitButton.js +0 -13
- package/dist/src/components/form/FormSubmitButton.js.map +0 -1
- package/dist/src/components/form/FormSwitch.d.ts +0 -7
- package/dist/src/components/form/FormSwitch.js +0 -11
- package/dist/src/components/form/FormSwitch.js.map +0 -1
- package/dist/src/components/form/FormTextField.d.ts +0 -7
- package/dist/src/components/form/FormTextField.js +0 -11
- package/dist/src/components/form/FormTextField.js.map +0 -1
- package/dist/src/components/layout/AccountMenu.d.ts +0 -9
- package/dist/src/components/layout/AccountMenu.js +0 -44
- package/dist/src/components/layout/AccountMenu.js.map +0 -1
- package/dist/src/components/layout/DevelopmentBanner.d.ts +0 -7
- package/dist/src/components/layout/DevelopmentBanner.js +0 -29
- package/dist/src/components/layout/DevelopmentBanner.js.map +0 -1
- package/dist/src/components/layout/ErrorPage.d.ts +0 -2
- package/dist/src/components/layout/ErrorPage.js +0 -25
- package/dist/src/components/layout/ErrorPage.js.map +0 -1
- package/dist/src/components/layout/LayoutDialog.d.ts +0 -12
- package/dist/src/components/layout/LayoutDialog.js +0 -12
- package/dist/src/components/layout/LayoutDialog.js.map +0 -1
- package/dist/src/components/layout/LayoutSnackbar.d.ts +0 -8
- package/dist/src/components/layout/LayoutSnackbar.js +0 -25
- package/dist/src/components/layout/LayoutSnackbar.js.map +0 -1
- package/dist/src/components/layout/NavigationDrawer.d.ts +0 -11
- package/dist/src/components/layout/NavigationDrawer.js +0 -70
- package/dist/src/components/layout/NavigationDrawer.js.map +0 -1
- package/dist/src/components/layout/NotificationMenu.d.ts +0 -8
- package/dist/src/components/layout/NotificationMenu.js +0 -26
- package/dist/src/components/layout/NotificationMenu.js.map +0 -1
- package/dist/src/components/layout/TypographyWithIcon.d.ts +0 -7
- package/dist/src/components/layout/TypographyWithIcon.js +0 -22
- package/dist/src/components/layout/TypographyWithIcon.js.map +0 -1
- package/dist/src/components/layout/Unauthorized.d.ts +0 -2
- package/dist/src/components/layout/Unauthorized.js +0 -26
- package/dist/src/components/layout/Unauthorized.js.map +0 -1
- package/dist/src/contexts/LayoutContext.d.ts +0 -40
- package/dist/src/contexts/LayoutContext.js +0 -60
- package/dist/src/contexts/LayoutContext.js.map +0 -1
- package/dist/src/contexts/UserContext.d.ts +0 -24
- package/dist/src/contexts/UserContext.js +0 -55
- package/dist/src/contexts/UserContext.js.map +0 -1
- package/dist/src/hooks/FormHooks.d.ts +0 -46
- package/dist/src/hooks/FormHooks.js +0 -31
- package/dist/src/hooks/FormHooks.js.map +0 -1
- package/dist/src/hooks/UseSnackbar.d.ts +0 -10
- package/dist/src/hooks/UseSnackbar.js +0 -23
- package/dist/src/hooks/UseSnackbar.js.map +0 -1
- package/dist/src/hooks/UseUser.d.ts +0 -10
- package/dist/src/hooks/UseUser.js +0 -25
- package/dist/src/hooks/UseUser.js.map +0 -1
- package/dist/src/index.d.ts +0 -20
- package/dist/src/index.js +0 -15
- package/dist/src/index.js.map +0 -1
- package/dist/src/models/Error.d.ts +0 -6
- package/dist/src/models/Error.js +0 -2
- package/dist/src/models/Error.js.map +0 -1
- package/dist/src/models/KeycloakSettings.d.ts +0 -8
- package/dist/src/models/KeycloakSettings.js +0 -2
- package/dist/src/models/KeycloakSettings.js.map +0 -1
- package/dist/src/models/LayoutPaletteColorOptions.d.ts +0 -6
- package/dist/src/models/LayoutPaletteColorOptions.js +0 -2
- package/dist/src/models/LayoutPaletteColorOptions.js.map +0 -1
- package/dist/src/models/LayoutRoute.d.ts +0 -14
- package/dist/src/models/LayoutRoute.js +0 -2
- package/dist/src/models/LayoutRoute.js.map +0 -1
- package/dist/src/models/Notification.d.ts +0 -9
- package/dist/src/models/Notification.js +0 -2
- package/dist/src/models/Notification.js.map +0 -1
- package/dist/src/models/PeoplesoftDepartment.d.ts +0 -14
- package/dist/src/models/PeoplesoftDepartment.js +0 -2
- package/dist/src/models/PeoplesoftDepartment.js.map +0 -1
- package/dist/src/models/PeoplesoftEmployee.d.ts +0 -34
- package/dist/src/models/PeoplesoftEmployee.js +0 -2
- package/dist/src/models/PeoplesoftEmployee.js.map +0 -1
- package/dist/src/models/Snackbar.d.ts +0 -15
- package/dist/src/models/Snackbar.js +0 -2
- package/dist/src/models/Snackbar.js.map +0 -1
- package/dist/src/models/User.d.ts +0 -27
- package/dist/src/models/User.js +0 -11
- package/dist/src/models/User.js.map +0 -1
- package/dist/src/models/types/EmployeeCategoryGroup.d.ts +0 -1
- package/dist/src/models/types/EmployeeCategoryGroup.js +0 -2
- package/dist/src/models/types/EmployeeCategoryGroup.js.map +0 -1
- package/dist/src/models/types/EmployeeStatus.d.ts +0 -1
- package/dist/src/models/types/EmployeeStatus.js +0 -2
- package/dist/src/models/types/EmployeeStatus.js.map +0 -1
- package/dist/src/utils/Auth.d.ts +0 -12
- package/dist/src/utils/Auth.js +0 -49
- package/dist/src/utils/Auth.js.map +0 -1
- package/dist/src/utils/Fetches.d.ts +0 -5
- package/dist/src/utils/Fetches.js +0 -66
- package/dist/src/utils/Fetches.js.map +0 -1
- package/dist/src/utils/FormUtils.d.ts +0 -7
- package/dist/src/utils/FormUtils.js +0 -9
- package/dist/src/utils/FormUtils.js.map +0 -1
- package/dist/src/utils/Helpers.d.ts +0 -11
- package/dist/src/utils/Helpers.js +0 -26
- package/dist/src/utils/Helpers.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/components/Layout.tsx +0 -183
- package/src/components/dataGrid/ChipInputCell.tsx +0 -31
- package/src/components/dataGrid/EditableColumnHeader.tsx +0 -7
- package/src/components/dataGrid/GridToolbar.tsx +0 -63
- package/src/components/dataGrid/TableContainer.tsx +0 -39
- package/src/components/form/FormAutocomplete.tsx +0 -34
- package/src/components/form/FormCheckbox.tsx +0 -32
- package/src/components/form/FormDatePicker.tsx +0 -34
- package/src/components/form/FormDateTimePicker.tsx +0 -34
- package/src/components/form/FormNumberField.tsx +0 -33
- package/src/components/form/FormRadioGroup.tsx +0 -43
- package/src/components/form/FormSlider.tsx +0 -28
- package/src/components/form/FormSubmitButton.tsx +0 -29
- package/src/components/form/FormSwitch.tsx +0 -32
- package/src/components/form/FormTextField.tsx +0 -26
- package/src/components/layout/AccountMenu.tsx +0 -160
- package/src/components/layout/DevelopmentBanner.tsx +0 -54
- package/src/components/layout/ErrorPage.tsx +0 -34
- package/src/components/layout/LayoutDialog.tsx +0 -50
- package/src/components/layout/LayoutSnackbar.tsx +0 -44
- package/src/components/layout/NavigationDrawer.tsx +0 -131
- package/src/components/layout/NotificationMenu.tsx +0 -76
- package/src/components/layout/TypographyWithIcon.tsx +0 -35
- package/src/components/layout/Unauthorized.tsx +0 -37
- package/src/contexts/LayoutContext.tsx +0 -127
- package/src/contexts/UserContext.tsx +0 -88
- package/src/hooks/FormHooks.ts +0 -33
- package/src/hooks/UseSnackbar.tsx +0 -28
- package/src/hooks/UseUser.tsx +0 -29
- package/src/index.ts +0 -27
- package/src/models/Error.tsx +0 -6
- package/src/models/KeycloakSettings.ts +0 -8
- package/src/models/LayoutPaletteColorOptions.tsx +0 -7
- package/src/models/LayoutRoute.ts +0 -15
- package/src/models/Notification.ts +0 -10
- package/src/models/PeoplesoftDepartment.ts +0 -15
- package/src/models/PeoplesoftEmployee.ts +0 -35
- package/src/models/Snackbar.ts +0 -16
- package/src/models/User.ts +0 -13
- package/src/models/types/EmployeeCategoryGroup.ts +0 -1
- package/src/models/types/EmployeeStatus.ts +0 -1
- package/src/utils/Auth.ts +0 -58
- package/src/utils/Fetches.ts +0 -83
- package/src/utils/FormUtils.ts +0 -22
- package/src/utils/Helpers.ts +0 -27
- package/tsconfig.json +0 -29
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { getAccessToken } from "./Auth";
|
|
2
|
-
export const fetchGet = async (url, scopes, signal) => {
|
|
3
|
-
const initReq = await getRequestInit("GET", scopes, null, signal);
|
|
4
|
-
const response = await fetch(url, initReq);
|
|
5
|
-
if (!response.ok)
|
|
6
|
-
throw await response.json();
|
|
7
|
-
return response.json();
|
|
8
|
-
};
|
|
9
|
-
export const fetchFileGet = async (url, scopes, signal) => {
|
|
10
|
-
const initReq = await getRequestInit("GET", scopes, null, signal);
|
|
11
|
-
const response = await fetch(url, initReq);
|
|
12
|
-
if (!response.ok)
|
|
13
|
-
throw await response.json();
|
|
14
|
-
return response.blob();
|
|
15
|
-
};
|
|
16
|
-
export const fetchPost = async (url, scopes, data) => {
|
|
17
|
-
const initReq = await getRequestInit("POST", scopes, data);
|
|
18
|
-
const response = await fetch(url, initReq);
|
|
19
|
-
if (!response.ok)
|
|
20
|
-
throw await response.json();
|
|
21
|
-
try {
|
|
22
|
-
return response.json();
|
|
23
|
-
}
|
|
24
|
-
catch (_a) {
|
|
25
|
-
return response;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export const fetchPut = async (url, scopes, data) => {
|
|
29
|
-
const initReq = await getRequestInit("PUT", scopes, data);
|
|
30
|
-
const response = await fetch(url, initReq);
|
|
31
|
-
if (!response.ok)
|
|
32
|
-
throw await response.json();
|
|
33
|
-
return response;
|
|
34
|
-
};
|
|
35
|
-
export const fetchDelete = async (url, scopes) => {
|
|
36
|
-
const initReq = await getRequestInit("DELETE", scopes);
|
|
37
|
-
const response = await fetch(url, initReq);
|
|
38
|
-
if (!response.ok)
|
|
39
|
-
throw await response.json();
|
|
40
|
-
return response;
|
|
41
|
-
};
|
|
42
|
-
const getRequestInit = async (method, scopes, data, signal) => {
|
|
43
|
-
const request = {
|
|
44
|
-
method: method,
|
|
45
|
-
signal: signal,
|
|
46
|
-
credentials: "include"
|
|
47
|
-
};
|
|
48
|
-
if (data) {
|
|
49
|
-
if (data instanceof FormData)
|
|
50
|
-
request.body = data;
|
|
51
|
-
else
|
|
52
|
-
request.body = JSON.stringify(data);
|
|
53
|
-
}
|
|
54
|
-
if (data instanceof FormData)
|
|
55
|
-
request.headers = {
|
|
56
|
-
"Authorization": `Bearer ${await getAccessToken(scopes)}`
|
|
57
|
-
};
|
|
58
|
-
else {
|
|
59
|
-
request.headers = {
|
|
60
|
-
"Content-Type": "application/json",
|
|
61
|
-
"Authorization": `Bearer ${await getAccessToken(scopes)}`
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
return request;
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=Fetches.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Fetches.js","sourceRoot":"","sources":["../../../src/utils/Fetches.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,GAAW,EAAE,MAAgB,EAAE,MAA+B,EAAgB,EAAE;IAC3G,MAAM,OAAO,GAAgB,MAAM,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAE/E,MAAM,QAAQ,GAAa,MAAM,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACrD,IAAI,CAAC,QAAQ,CAAC,EAAE;QACZ,MAAM,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IAEhC,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,GAAW,EAAE,MAAgB,EAAE,MAA+B,EAAiB,EAAE;IAChH,MAAM,OAAO,GAAgB,MAAM,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAE/E,MAAM,QAAQ,GAAa,MAAM,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACrD,IAAI,CAAC,QAAQ,CAAC,EAAE;QACZ,MAAM,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IAEhC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,EAAE,CAAC;IAEhC,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,KAAK,EAAE,MAAc,EAAE,MAAgB,EAAE,IAAc,EAAE,MAAoB,EAAwB,EAAE;IAC1H,MAAM,OAAO,GAAgB;QACzB,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,SAAS;KACzB,CAAC;IAEF,IAAI,IAAI,EAAE,CAAC;QACP,IAAI,IAAI,YAAY,QAAQ;YACxB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;;YAEpB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,IAAI,YAAY,QAAQ;QACxB,OAAO,CAAC,OAAO,GAAG;YACd,eAAe,EAAE,UAAU,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE;SAC5D,CAAC;SACD,CAAC;QACF,OAAO,CAAC,OAAO,GAAG;YACd,cAAc,EAAE,kBAAkB;YAClC,eAAe,EAAE,UAAU,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE;SAC5D,CAAC;IACN,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC,CAAC","sourcesContent":["import { getAccessToken } from \"./Auth\";\r\n\r\nexport const fetchGet = async (url: string, scopes: string[], signal: AbortSignal | undefined): Promise<any> => {\r\n const initReq: RequestInit = await getRequestInit(\"GET\", scopes, null, signal);\r\n\r\n const response: Response = await fetch(url, initReq);\r\n if (!response.ok)\r\n throw await response.json();\r\n\r\n return response.json();\r\n};\r\n\r\nexport const fetchFileGet = async (url: string, scopes: string[], signal: AbortSignal | undefined): Promise<Blob> => {\r\n const initReq: RequestInit = await getRequestInit(\"GET\", scopes, null, signal);\r\n\r\n const response: Response = await fetch(url, initReq);\r\n if (!response.ok)\r\n throw await response.json();\r\n\r\n return response.blob();\r\n};\r\n\r\nexport const fetchPost = async (url: string, scopes: string[], data: unknown): Promise<any> => {\r\n const initReq: RequestInit = await getRequestInit(\"POST\", scopes, data);\r\n\r\n const response: Response = await fetch(url, initReq);\r\n if (!response.ok)\r\n throw await response.json();\r\n\r\n try {\r\n return response.json();\r\n } catch {\r\n return response;\r\n }\r\n};\r\n\r\nexport const fetchPut = async (url: string, scopes: string[], data: unknown): Promise<any> => {\r\n const initReq: RequestInit = await getRequestInit(\"PUT\", scopes, data);\r\n\r\n const response: Response = await fetch(url, initReq);\r\n if (!response.ok)\r\n throw await response.json();\r\n\r\n return response;\r\n};\r\n\r\nexport const fetchDelete = async (url: string, scopes: string[]): Promise<any> => {\r\n const initReq: RequestInit = await getRequestInit(\"DELETE\", scopes);\r\n\r\n const response: Response = await fetch(url, initReq);\r\n if (!response.ok)\r\n throw await response.json();\r\n\r\n return response;\r\n};\r\n\r\nconst getRequestInit = async (method: string, scopes: string[], data?: unknown, signal?: AbortSignal): Promise<RequestInit> => {\r\n const request: RequestInit = {\r\n method: method,\r\n signal: signal,\r\n credentials: \"include\"\r\n };\r\n\r\n if (data) {\r\n if (data instanceof FormData)\r\n request.body = data;\r\n else\r\n request.body = JSON.stringify(data);\r\n }\r\n \r\n if (data instanceof FormData)\r\n request.headers = {\r\n \"Authorization\": `Bearer ${await getAccessToken(scopes)}`\r\n };\r\n else {\r\n request.headers = {\r\n \"Content-Type\": \"application/json\",\r\n \"Authorization\": `Bearer ${await getAccessToken(scopes)}`\r\n };\r\n }\r\n\r\n return request;\r\n};"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AnyFieldApi } from "@tanstack/react-form";
|
|
2
|
-
export type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
3
|
-
export declare const getFieldStatus: (field: AnyFieldApi) => {
|
|
4
|
-
isTouched: boolean;
|
|
5
|
-
hasError: boolean;
|
|
6
|
-
helperText: any;
|
|
7
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export const getFieldStatus = (field) => {
|
|
2
|
-
var _a, _b, _c;
|
|
3
|
-
const { meta } = field.state;
|
|
4
|
-
const isTouched = meta.isTouched;
|
|
5
|
-
const hasError = !!((_a = meta.errors) === null || _a === void 0 ? void 0 : _a.length);
|
|
6
|
-
const helperText = (_c = (_b = meta.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message;
|
|
7
|
-
return { isTouched, hasError, helperText };
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=FormUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormUtils.js","sourceRoot":"","sources":["../../../src/utils/FormUtils.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAkB,EAAE,EAAE;;IACjD,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC;IAE7B,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IACjC,MAAM,QAAQ,GAAG,CAAC,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,CAAA,CAAC;IACvC,MAAM,UAAU,GAAG,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAG,CAAC,CAAC,0CAAE,OAAO,CAAC;IAE7C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAC/C,CAAC,CAAA","sourcesContent":["import { AnyFieldApi } from \"@tanstack/react-form\";\r\n\r\nexport type FormOmittedProps =\r\n \"name\" |\r\n \"value\" |\r\n \"onChange\" |\r\n \"onBlur\" |\r\n \"error\" |\r\n \"helperText\" |\r\n \"renderInput\" |\r\n \"type\" |\r\n \"aria-label\";\r\n\r\nexport const getFieldStatus = (field: AnyFieldApi) => {\r\n const { meta } = field.state;\r\n\r\n const isTouched = meta.isTouched;\r\n const hasError = !!meta.errors?.length;\r\n const helperText = meta.errors?.[0]?.message;\r\n\r\n return { isTouched, hasError, helperText };\r\n}"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { uuidv7 as newGuid } from "uuidv7";
|
|
2
|
-
type Environment = "qas" | "dev" | "prd" | "localhost";
|
|
3
|
-
export declare const environment: Environment;
|
|
4
|
-
export { newGuid };
|
|
5
|
-
export declare class Platform {
|
|
6
|
-
static readonly isAndroid: boolean;
|
|
7
|
-
static readonly isIOS: boolean;
|
|
8
|
-
static readonly isWindows: boolean;
|
|
9
|
-
static readonly isMacOS: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const getContrastTextColor: (color: string) => "black" | "white";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { uuidv7 as newGuid } from "uuidv7";
|
|
2
|
-
export const environment = (() => {
|
|
3
|
-
if (window.location.href.includes("localhost"))
|
|
4
|
-
return "localhost";
|
|
5
|
-
else if (window.location.href.includes("dev"))
|
|
6
|
-
return "dev";
|
|
7
|
-
else if (window.location.href.includes("qas"))
|
|
8
|
-
return "qas";
|
|
9
|
-
else
|
|
10
|
-
return "prd";
|
|
11
|
-
})();
|
|
12
|
-
export { newGuid };
|
|
13
|
-
export class Platform {
|
|
14
|
-
}
|
|
15
|
-
Platform.isAndroid = /android/i.test(navigator.userAgent);
|
|
16
|
-
Platform.isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
17
|
-
Platform.isWindows = /windows/i.test(navigator.userAgent);
|
|
18
|
-
Platform.isMacOS = /Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.userAgent);
|
|
19
|
-
export const getContrastTextColor = (color) => {
|
|
20
|
-
const r = parseInt(color.substring(1, 3), 16);
|
|
21
|
-
const g = parseInt(color.substring(3, 5), 16);
|
|
22
|
-
const b = parseInt(color.substring(5, 7), 16);
|
|
23
|
-
const yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000;
|
|
24
|
-
return (yiq >= 128) ? "black" : "white";
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=Helpers.js.map
|
|
@@ -1 +0,0 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Q,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9C,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;IACvD,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;AAC5C,CAAC,CAAC","sourcesContent":["import { uuidv7 as newGuid } from \"uuidv7\";\r\n\r\ntype Environment = \"qas\" | \"dev\" | \"prd\" | \"localhost\";\r\n\r\nexport const environment: Environment = (() => {\r\n if (window.location.href.includes(\"localhost\")) return \"localhost\";\r\n else if (window.location.href.includes(\"dev\")) return \"dev\";\r\n else if (window.location.href.includes(\"qas\")) return \"qas\";\r\n else return \"prd\";\r\n})();\r\n\r\nexport { newGuid };\r\n\r\nexport class Platform {\r\n static readonly isAndroid = /android/i.test(navigator.userAgent);\r\n static readonly isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);\r\n static readonly isWindows = /windows/i.test(navigator.userAgent);\r\n static readonly isMacOS = /Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.userAgent);\r\n}\r\n\r\nexport const getContrastTextColor = (color: string) => {\r\n const r = parseInt(color.substring(1, 3), 16);\r\n const g = parseInt(color.substring(3, 5), 16);\r\n const b = parseInt(color.substring(5, 7), 16);\r\n const yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000;\r\n return (yiq >= 128) ? \"black\" : \"white\";\r\n};"]}
|