@alepha/ui 0.18.3 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/{AdminApiKeys-Dy_k-4Vd.js → AdminApiKeys-C2ze85eD.js} +3 -4
- package/dist/admin/{AdminApiKeys-Dy_k-4Vd.js.map → AdminApiKeys-C2ze85eD.js.map} +1 -1
- package/dist/admin/{AdminAudits-CKiFMSSU.js → AdminAudits-BIj81e4k.js} +3 -4
- package/dist/admin/{AdminAudits-CKiFMSSU.js.map → AdminAudits-BIj81e4k.js.map} +1 -1
- package/dist/admin/{AdminDashboard-PhC_dZqo.js → AdminDashboard-PMVzrwSu.js} +3 -4
- package/dist/admin/{AdminDashboard-PhC_dZqo.js.map → AdminDashboard-PMVzrwSu.js.map} +1 -1
- package/dist/admin/AdminFiles-Bq03BLt-.js +189 -0
- package/dist/admin/AdminFiles-Bq03BLt-.js.map +1 -0
- package/dist/admin/{AdminJobExecutions-D9E-CS-U.js → AdminJobs-D1_QGCDy.js} +401 -358
- package/dist/admin/AdminJobs-D1_QGCDy.js.map +1 -0
- package/dist/admin/{AdminLayout-I6TlUMPc.js → AdminLayout-BNiwiw2D.js} +8 -25
- package/dist/admin/AdminLayout-BNiwiw2D.js.map +1 -0
- package/dist/admin/{AdminNotifications-ZPHCYrv7.js → AdminNotifications-DSKQtUfn.js} +85 -124
- package/dist/admin/AdminNotifications-DSKQtUfn.js.map +1 -0
- package/dist/admin/{AdminParameters-CqgvhRsb.js → AdminParameters-CoB7EhyM.js} +3 -12
- package/dist/admin/{AdminParameters-CqgvhRsb.js.map → AdminParameters-CoB7EhyM.js.map} +1 -1
- package/dist/admin/{AdminSessions-Bz5NRuoW.js → AdminSessions-DFbFcrJQ.js} +3 -4
- package/dist/admin/{AdminSessions-Bz5NRuoW.js.map → AdminSessions-DFbFcrJQ.js.map} +1 -1
- package/dist/admin/{AdminUserLayout-lXT6I0Qq.js → AdminUserLayout-fSfi3KMm.js} +72 -111
- package/dist/admin/AdminUserLayout-fSfi3KMm.js.map +1 -0
- package/dist/admin/{AdminUserProfile-vFBLoJ3h.js → AdminUserProfile-_C-h8vUK.js} +7 -6
- package/dist/admin/AdminUserProfile-_C-h8vUK.js.map +1 -0
- package/dist/admin/{AdminUserSessions-CT_YDim0.js → AdminUserSessions-KpJHIeQo.js} +3 -4
- package/dist/admin/{AdminUserSessions-CT_YDim0.js.map → AdminUserSessions-KpJHIeQo.js.map} +1 -1
- package/dist/admin/{AdminUsers-D1UfGya9.js → AdminUsers-DcVrzdQP.js} +4 -4
- package/dist/admin/AdminUsers-DcVrzdQP.js.map +1 -0
- package/dist/admin/{AuthLayout-_frhdgOO.js → AuthLayout-CazfLzcf.js} +3 -4
- package/dist/admin/{AuthLayout-_frhdgOO.js.map → AuthLayout-CazfLzcf.js.map} +1 -1
- package/dist/{demo/IconGoogle-CSQLPYwX.js → admin/IconGoogle-8Nkx6yax.js} +2 -4
- package/dist/admin/{IconGoogle-Ch1m3Uzl.js.map → IconGoogle-8Nkx6yax.js.map} +1 -1
- package/dist/admin/{Login-xtNmQtGh.js → Login-CaMjUrDP.js} +5 -6
- package/dist/{auth/Login-BA1E8IZl.js.map → admin/Login-CaMjUrDP.js.map} +1 -1
- package/dist/admin/{Profile-_AtPUwAP.js → Profile-Ca4fZX15.js} +3 -5
- package/dist/{demo/Profile-DS5q4vOh.js.map → admin/Profile-Ca4fZX15.js.map} +1 -1
- package/dist/admin/{Register-JcCjHUUn.js → Register-C5DyKWPO.js} +5 -6
- package/dist/{demo/Register-B4hLBeEv.js.map → admin/Register-C5DyKWPO.js.map} +1 -1
- package/dist/admin/{ResetPassword-CwGBPLJO.js → ResetPassword-BA5sAgXo.js} +4 -5
- package/dist/{auth/ResetPassword-DCtGcneA.js.map → admin/ResetPassword-BA5sAgXo.js.map} +1 -1
- package/dist/admin/{VerifyEmail-hNxWejWf.js → VerifyEmail-DKNXROj_.js} +4 -5
- package/dist/{auth/VerifyEmail-DkH7NBfn.js.map → admin/VerifyEmail-DKNXROj_.js.map} +1 -1
- package/dist/admin/adminUserAtom-BLNc7XbT.js +11 -0
- package/dist/admin/adminUserAtom-BLNc7XbT.js.map +1 -0
- package/dist/admin/{core-CYaRQ8O-.js → core-CJCEx18C.js} +132 -86
- package/dist/admin/core-CJCEx18C.js.map +1 -0
- package/dist/admin/index.d.ts +80 -13
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +38 -68
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/rolldown-runtime-CiIaOW0V.js +13 -0
- package/dist/{demo/AuthLayout-Brri4A-L.js → auth/AuthLayout-vXPcCVzp.js} +3 -4
- package/dist/auth/{AuthLayout-AvLlcLjS.js.map → AuthLayout-vXPcCVzp.js.map} +1 -1
- package/dist/{admin/IconGoogle-Ch1m3Uzl.js → auth/IconGoogle-8Nkx6yax.js} +2 -4
- package/dist/auth/{IconGoogle-Ch1m3Uzl.js.map → IconGoogle-8Nkx6yax.js.map} +1 -1
- package/dist/auth/{Login-BA1E8IZl.js → Login-Dg08QR20.js} +5 -6
- package/dist/{demo/Login-C12N4oGs.js.map → auth/Login-Dg08QR20.js.map} +1 -1
- package/dist/{demo/Profile-DS5q4vOh.js → auth/Profile-Bb5O1yeh.js} +3 -5
- package/dist/auth/{Profile-YcWdeuFz.js.map → Profile-Bb5O1yeh.js.map} +1 -1
- package/dist/auth/{Register-CPhEO5MG.js → Register-B2AN71NC.js} +5 -6
- package/dist/{admin/Register-JcCjHUUn.js.map → auth/Register-B2AN71NC.js.map} +1 -1
- package/dist/{demo/ResetPassword-D8g9ha1N.js → auth/ResetPassword-BLxwzbDj.js} +4 -5
- package/dist/{admin/ResetPassword-CwGBPLJO.js.map → auth/ResetPassword-BLxwzbDj.js.map} +1 -1
- package/dist/auth/{VerifyEmail-DkH7NBfn.js → VerifyEmail-CSDOk3Zm.js} +4 -5
- package/dist/{admin/VerifyEmail-hNxWejWf.js.map → auth/VerifyEmail-CSDOk3Zm.js.map} +1 -1
- package/dist/auth/{core-D5jIAVF2.js → core-DuGkjPiU.js} +23 -54
- package/dist/auth/core-DuGkjPiU.js.map +1 -0
- package/dist/auth/index.d.ts +20 -6
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +13 -18
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/rolldown-runtime-CiIaOW0V.js +13 -0
- package/dist/core/index.d.ts +78 -20
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +130 -98
- package/dist/core/index.js.map +1 -1
- package/dist/{auth/AuthLayout-AvLlcLjS.js → demo/AuthLayout-DPsOOG4u.js} +3 -4
- package/dist/demo/{AuthLayout-Brri4A-L.js.map → AuthLayout-DPsOOG4u.js.map} +1 -1
- package/dist/demo/{DemoButton-wiCxZZ_L.js → DemoButton-wzcqGk4u.js} +4 -5
- package/dist/demo/{DemoButton-wiCxZZ_L.js.map → DemoButton-wzcqGk4u.js.map} +1 -1
- package/dist/demo/{DemoControlSelect-D7ILObVg.js → DemoControlSelect-CMWvQ6Gm.js} +4 -5
- package/dist/demo/{DemoControlSelect-D7ILObVg.js.map → DemoControlSelect-CMWvQ6Gm.js.map} +1 -1
- package/dist/demo/{DemoDataTable-DZ5Y8pFX.js → DemoDataTable-CHsAP3e2.js} +4 -5
- package/dist/demo/{DemoDataTable-DZ5Y8pFX.js.map → DemoDataTable-CHsAP3e2.js.map} +1 -1
- package/dist/demo/{DemoDialog-CUWdLHim.js → DemoDialog-Co2IePxX.js} +3 -4
- package/dist/demo/{DemoDialog-CUWdLHim.js.map → DemoDialog-Co2IePxX.js.map} +1 -1
- package/dist/demo/{DemoFlex-a8OhMMvq.js → DemoFlex-OEwQt5do.js} +4 -5
- package/dist/demo/{DemoFlex-a8OhMMvq.js.map → DemoFlex-OEwQt5do.js.map} +1 -1
- package/dist/demo/DemoHeading-Db-XkQIK.js +69 -0
- package/dist/demo/DemoHeading-Db-XkQIK.js.map +1 -0
- package/dist/demo/{DemoHome-D_De3UiT.js → DemoHome-Cyp29ygy.js} +4 -5
- package/dist/demo/{DemoHome-D_De3UiT.js.map → DemoHome-Cyp29ygy.js.map} +1 -1
- package/dist/demo/{DemoJsonViewer-B50s9aGM.js → DemoJsonViewer-DXtCeMzH.js} +4 -5
- package/dist/demo/{DemoJsonViewer-B50s9aGM.js.map → DemoJsonViewer-DXtCeMzH.js.map} +1 -1
- package/dist/demo/{DemoLayout-CHU8WTwO.js → DemoLayout-hh9VmZQP.js} +4 -5
- package/dist/demo/DemoLayout-hh9VmZQP.js.map +1 -0
- package/dist/demo/{DemoLogin-BBlrWpml.js → DemoLogin-DX7mnmkh.js} +15 -11
- package/dist/demo/{DemoLogin-BBlrWpml.js.map → DemoLogin-DX7mnmkh.js.map} +1 -1
- package/dist/demo/{DemoRegister-BuNE3_-f.js → DemoRegister-DVcZl04m.js} +15 -11
- package/dist/demo/{DemoRegister-BuNE3_-f.js.map → DemoRegister-DVcZl04m.js.map} +1 -1
- package/dist/demo/{DemoResetPassword-D_IjjjOJ.js → DemoResetPassword-CPENlZH5.js} +15 -11
- package/dist/demo/{DemoResetPassword-D_IjjjOJ.js.map → DemoResetPassword-CPENlZH5.js.map} +1 -1
- package/dist/demo/{DemoSidebar-Giy2HRBD.js → DemoSidebar-CGu7DZeM.js} +4 -5
- package/dist/demo/{DemoSidebar-Giy2HRBD.js.map → DemoSidebar-CGu7DZeM.js.map} +1 -1
- package/dist/demo/{DemoText-ubcw-vog.js → DemoText-DYUJ7bY_.js} +4 -5
- package/dist/demo/{DemoText-ubcw-vog.js.map → DemoText-DYUJ7bY_.js.map} +1 -1
- package/dist/demo/{DemoToast-9die_dYT.js → DemoToast-CgdnZNvx.js} +3 -4
- package/dist/demo/{DemoToast-9die_dYT.js.map → DemoToast-CgdnZNvx.js.map} +1 -1
- package/dist/demo/{DemoTypeForm-D_d6OVKL.js → DemoTypeForm-Pims-cGa.js} +4 -5
- package/dist/demo/{DemoTypeForm-D_d6OVKL.js.map → DemoTypeForm-Pims-cGa.js.map} +1 -1
- package/dist/demo/{DemoVerifyEmail-B43KlF4F.js → DemoVerifyEmail-C7B3xxch.js} +10 -11
- package/dist/demo/{DemoVerifyEmail-B43KlF4F.js.map → DemoVerifyEmail-C7B3xxch.js.map} +1 -1
- package/dist/{auth/IconGoogle-Ch1m3Uzl.js → demo/IconGoogle-CwQy4G9y.js} +2 -4
- package/dist/demo/{IconGoogle-CSQLPYwX.js.map → IconGoogle-CwQy4G9y.js.map} +1 -1
- package/dist/demo/{Login-C12N4oGs.js → Login-pwMF4TUj.js} +5 -6
- package/dist/{admin/Login-xtNmQtGh.js.map → demo/Login-pwMF4TUj.js.map} +1 -1
- package/dist/{auth/Profile-YcWdeuFz.js → demo/Profile-BliZapZS.js} +3 -5
- package/dist/{admin/Profile-_AtPUwAP.js.map → demo/Profile-BliZapZS.js.map} +1 -1
- package/dist/demo/{Register-B4hLBeEv.js → Register-CiwAT7Hy.js} +5 -6
- package/dist/{auth/Register-CPhEO5MG.js.map → demo/Register-CiwAT7Hy.js.map} +1 -1
- package/dist/{auth/ResetPassword-DCtGcneA.js → demo/ResetPassword-l9Vg4JE-.js} +4 -5
- package/dist/demo/{ResetPassword-D8g9ha1N.js.map → ResetPassword-l9Vg4JE-.js.map} +1 -1
- package/dist/demo/{Showcase-D6Fxt4X4.js → Showcase-CX6bDgwe.js} +3 -5
- package/dist/demo/{Showcase-D6Fxt4X4.js.map → Showcase-CX6bDgwe.js.map} +1 -1
- package/dist/demo/{VerifyEmail-BjDo0cZA.js → VerifyEmail-CAB-OS7i.js} +4 -5
- package/dist/demo/{VerifyEmail-BjDo0cZA.js.map → VerifyEmail-CAB-OS7i.js.map} +1 -1
- package/dist/demo/{auth-ByVTreDl.js → auth-uegJAdKu.js} +18 -35
- package/dist/demo/{auth-ByVTreDl.js.map → auth-uegJAdKu.js.map} +1 -1
- package/dist/demo/{core-DFgB3yU4.js → core-B4LVHzPn.js} +132 -93
- package/dist/demo/core-B4LVHzPn.js.map +1 -0
- package/dist/demo/index.js +20 -23
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/rolldown-runtime-CiIaOW0V.js +13 -0
- package/package.json +17 -20
- package/src/admin/AdminRouter.tsx +23 -38
- package/src/admin/atoms/adminUserAtom.ts +7 -0
- package/src/admin/components/AdminLayout.tsx +2 -14
- package/src/admin/components/files/AdminFiles.tsx +123 -1
- package/src/admin/components/jobs/{AdminJobExecutions.tsx → AdminJobs.tsx} +450 -317
- package/src/admin/components/notifications/AdminNotifications.tsx +11 -25
- package/src/admin/components/users/AdminUserLayout.tsx +84 -127
- package/src/admin/components/users/AdminUserProfile.tsx +5 -2
- package/src/admin/components/users/AdminUsers.tsx +1 -1
- package/src/core/components/Flex.tsx +24 -0
- package/src/core/components/Section.tsx +109 -0
- package/src/core/components/SectionHeader.tsx +106 -0
- package/src/core/components/buttons/ActionButton.tsx +1 -0
- package/src/core/components/dialogs/PromptDialog.tsx +1 -1
- package/src/core/components/layout/Breadcrumb.tsx +2 -2
- package/src/core/components/layout/DashboardShell.tsx +1 -1
- package/src/core/index.ts +4 -1
- package/src/core/services/DialogService.tsx +2 -2
- package/src/core/styles.css +2 -1
- package/src/core/table/components/DataTable.tsx +5 -2
- package/src/demo/DemoRouter.ts +1 -1
- package/src/demo/components/auth/DemoLogin.tsx +5 -0
- package/src/demo/components/auth/DemoRegister.tsx +5 -0
- package/src/demo/components/auth/DemoResetPassword.tsx +5 -0
- package/src/demo/components/core/DemoHeading.tsx +56 -3
- package/dist/admin/AdminFiles-DFTjijGp.js +0 -111
- package/dist/admin/AdminFiles-DFTjijGp.js.map +0 -1
- package/dist/admin/AdminJobDashboard-BL8gGPDp.js +0 -354
- package/dist/admin/AdminJobDashboard-BL8gGPDp.js.map +0 -1
- package/dist/admin/AdminJobExecutions-D9E-CS-U.js.map +0 -1
- package/dist/admin/AdminJobRegistry-Ci9ue1zC.js +0 -270
- package/dist/admin/AdminJobRegistry-Ci9ue1zC.js.map +0 -1
- package/dist/admin/AdminLayout-I6TlUMPc.js.map +0 -1
- package/dist/admin/AdminNotifications-ZPHCYrv7.js.map +0 -1
- package/dist/admin/AdminUserLayout-lXT6I0Qq.js.map +0 -1
- package/dist/admin/AdminUserProfile-vFBLoJ3h.js.map +0 -1
- package/dist/admin/AdminUsers-D1UfGya9.js.map +0 -1
- package/dist/admin/core-CYaRQ8O-.js.map +0 -1
- package/dist/admin/rolldown-runtime-CjeV3_4I.js +0 -18
- package/dist/auth/core-D5jIAVF2.js.map +0 -1
- package/dist/auth/rolldown-runtime-CjeV3_4I.js +0 -18
- package/dist/demo/DemoHeading-C13OVDfS.js +0 -18
- package/dist/demo/DemoHeading-C13OVDfS.js.map +0 -1
- package/dist/demo/DemoLayout-CHU8WTwO.js.map +0 -1
- package/dist/demo/core-DFgB3yU4.js.map +0 -1
- package/dist/demo/rolldown-runtime-CjeV3_4I.js +0 -18
- package/src/admin/components/jobs/AdminJobDashboard.tsx +0 -349
- package/src/admin/components/jobs/AdminJobRegistry.tsx +0 -301
- package/src/core/components/Heading.tsx +0 -19
package/dist/core/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $atom, $context, $inject, $module, Alepha, AlephaError, TypeBoxError, t } from "alepha";
|
|
2
|
-
import { AlephaReactForm, FormValidationError, useFieldValue, useForm, useFormState } from "alepha/react/form";
|
|
2
|
+
import { AlephaReactForm, FormModel, FormValidationError, useFieldValue, useForm, useFormState } from "alepha/react/form";
|
|
3
3
|
import { $head, AlephaReactHead, BrowserHeadProvider } from "alepha/react/head";
|
|
4
4
|
import { AlephaReactI18n, useI18n } from "alepha/react/i18n";
|
|
5
5
|
import { $cookie } from "alepha/server/cookies";
|
|
6
|
-
import { ActionIcon, Anchor, AppShell, Autocomplete, Badge, Burger, Button, Card, Checkbox, ColorInput, ColorSchemeScript, ColorSwatch, Container as Container$1, CopyButton, Divider, Drawer, Fieldset, FileInput, Flex as Flex$1, Grid, Image, Input, Kbd, Loader, MantineProvider, Menu, MultiSelect, NumberInput, Pagination, Paper, PasswordInput, Popover, ScrollArea, SegmentedControl, Select, SimpleGrid, Slider, Switch, Table, Tabs, TagsInput, Text as Text$1, TextInput, Textarea, Tooltip, Tree, UnstyledButton, getTreeExpandedState, useMantineColorScheme, useMantineTheme, useTree } from "@mantine/core";
|
|
6
|
+
import { ActionIcon, Anchor, AppShell, Autocomplete, Badge, Burger, Button, Card, Checkbox, Collapse, ColorInput, ColorSchemeScript, ColorSwatch, Container as Container$1, CopyButton, Divider, Drawer, Fieldset, FileInput, Flex as Flex$1, Grid, Image, Input, Kbd, Loader, MantineProvider, Menu, MultiSelect, NumberInput, Pagination, Paper, PasswordInput, Popover, ScrollArea, SegmentedControl, Select, SimpleGrid, Slider, Switch, Table, Tabs, TagsInput, Text as Text$1, TextInput, Textarea, Title, Tooltip, Tree, UnstyledButton, getTreeExpandedState, useMantineColorScheme, useMantineTheme, useTree } from "@mantine/core";
|
|
7
7
|
import { ModalsProvider, modals } from "@mantine/modals";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Children, Fragment as Fragment$1, createElement, forwardRef, isValidElement, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -18,7 +18,6 @@ import { useOs } from "@mantine/hooks";
|
|
|
18
18
|
import { DateInput, DateTimePicker, TimeInput } from "@mantine/dates";
|
|
19
19
|
import { parseQueryString } from "alepha/orm";
|
|
20
20
|
import { DateTimeProvider } from "alepha/datetime";
|
|
21
|
-
|
|
22
21
|
//#region ../../src/core/atoms/alephaSidebarAtom.ts
|
|
23
22
|
const alephaSidebarAtom = $atom({
|
|
24
23
|
name: "alepha.ui.sidebar",
|
|
@@ -35,7 +34,6 @@ const alephaSidebarAtom = $atom({
|
|
|
35
34
|
collapsedWidth: 72
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
|
-
|
|
39
37
|
//#endregion
|
|
40
38
|
//#region ../../src/core/atoms/alephaThemeAtom.ts
|
|
41
39
|
const alephaThemeAtom = $atom({
|
|
@@ -43,7 +41,6 @@ const alephaThemeAtom = $atom({
|
|
|
43
41
|
schema: t.object({ index: t.integer() }),
|
|
44
42
|
default: { index: 0 }
|
|
45
43
|
});
|
|
46
|
-
|
|
47
44
|
//#endregion
|
|
48
45
|
//#region ../../src/core/atoms/alephaThemeOverridesAtom.ts
|
|
49
46
|
const alephaThemeOverridesAtom = $atom({
|
|
@@ -57,14 +54,12 @@ const alephaThemeOverridesAtom = $atom({
|
|
|
57
54
|
}),
|
|
58
55
|
default: {}
|
|
59
56
|
});
|
|
60
|
-
|
|
61
57
|
//#endregion
|
|
62
58
|
//#region ../../src/core/atoms/themes/default.ts
|
|
63
59
|
const defaultTheme = {
|
|
64
60
|
name: "Default",
|
|
65
61
|
description: "Default Alepha Theme"
|
|
66
62
|
};
|
|
67
|
-
|
|
68
63
|
//#endregion
|
|
69
64
|
//#region ../../src/core/atoms/themes/editorial.ts
|
|
70
65
|
/**
|
|
@@ -219,7 +214,6 @@ const editorialTheme = {
|
|
|
219
214
|
})
|
|
220
215
|
}
|
|
221
216
|
};
|
|
222
|
-
|
|
223
217
|
//#endregion
|
|
224
218
|
//#region ../../src/core/atoms/themes/midnight.ts
|
|
225
219
|
const midnightTheme = {
|
|
@@ -334,7 +328,6 @@ const midnightTheme = {
|
|
|
334
328
|
]
|
|
335
329
|
}
|
|
336
330
|
};
|
|
337
|
-
|
|
338
331
|
//#endregion
|
|
339
332
|
//#region ../../src/core/atoms/themes/monochrome.ts
|
|
340
333
|
/**
|
|
@@ -502,7 +495,6 @@ const monochromeTheme = {
|
|
|
502
495
|
})
|
|
503
496
|
}
|
|
504
497
|
};
|
|
505
|
-
|
|
506
498
|
//#endregion
|
|
507
499
|
//#region ../../src/core/atoms/themes/rosePine.ts
|
|
508
500
|
/**
|
|
@@ -674,7 +666,6 @@ const rosePineTheme = {
|
|
|
674
666
|
Badge: Badge.extend({ defaultProps: { fw: 500 } })
|
|
675
667
|
}
|
|
676
668
|
};
|
|
677
|
-
|
|
678
669
|
//#endregion
|
|
679
670
|
//#region ../../src/core/atoms/themes/softBrutalism.ts
|
|
680
671
|
/**
|
|
@@ -861,7 +852,6 @@ const softBrutalismTheme = {
|
|
|
861
852
|
})
|
|
862
853
|
}
|
|
863
854
|
};
|
|
864
|
-
|
|
865
855
|
//#endregion
|
|
866
856
|
//#region ../../src/core/atoms/themes/terminal.ts
|
|
867
857
|
/**
|
|
@@ -1017,7 +1007,6 @@ const terminalTheme = {
|
|
|
1017
1007
|
})
|
|
1018
1008
|
}
|
|
1019
1009
|
};
|
|
1020
|
-
|
|
1021
1010
|
//#endregion
|
|
1022
1011
|
//#region ../../src/core/atoms/alephaThemeListAtom.ts
|
|
1023
1012
|
const alephaThemeListAtom = $atom({
|
|
@@ -1033,7 +1022,6 @@ const alephaThemeListAtom = $atom({
|
|
|
1033
1022
|
monochromeTheme
|
|
1034
1023
|
]
|
|
1035
1024
|
});
|
|
1036
|
-
|
|
1037
1025
|
//#endregion
|
|
1038
1026
|
//#region ../../src/core/providers/ThemeProvider.ts
|
|
1039
1027
|
var ThemeProvider = class ThemeProvider {
|
|
@@ -1131,7 +1119,6 @@ var ThemeProvider = class ThemeProvider {
|
|
|
1131
1119
|
}
|
|
1132
1120
|
}
|
|
1133
1121
|
};
|
|
1134
|
-
|
|
1135
1122
|
//#endregion
|
|
1136
1123
|
//#region ../../src/core/components/dialogs/AlertDialog.tsx
|
|
1137
1124
|
const AlertDialog = ({ options, onClose }) => /* @__PURE__ */ jsxs(Fragment, { children: [options?.message && /* @__PURE__ */ jsx(Text$1, {
|
|
@@ -1144,7 +1131,6 @@ const AlertDialog = ({ options, onClose }) => /* @__PURE__ */ jsxs(Fragment, { c
|
|
|
1144
1131
|
children: options?.okLabel || "OK"
|
|
1145
1132
|
})
|
|
1146
1133
|
})] });
|
|
1147
|
-
|
|
1148
1134
|
//#endregion
|
|
1149
1135
|
//#region ../../src/core/components/dialogs/ConfirmDialog.tsx
|
|
1150
1136
|
const ConfirmDialog = ({ options, onConfirm }) => /* @__PURE__ */ jsxs(Fragment, { children: [options?.message && /* @__PURE__ */ jsx(Text$1, {
|
|
@@ -1162,7 +1148,6 @@ const ConfirmDialog = ({ options, onConfirm }) => /* @__PURE__ */ jsxs(Fragment,
|
|
|
1162
1148
|
children: options?.confirmLabel || "Confirm"
|
|
1163
1149
|
})]
|
|
1164
1150
|
})] });
|
|
1165
|
-
|
|
1166
1151
|
//#endregion
|
|
1167
1152
|
//#region ../../src/core/components/dialogs/PromptDialog.tsx
|
|
1168
1153
|
const PromptDialog = ({ options, onSubmit }) => {
|
|
@@ -1194,6 +1179,7 @@ const PromptDialog = ({ options, onSubmit }) => {
|
|
|
1194
1179
|
}),
|
|
1195
1180
|
/* @__PURE__ */ jsxs(Flex$1, {
|
|
1196
1181
|
justify: "flex-end",
|
|
1182
|
+
gap: "xs",
|
|
1197
1183
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
1198
1184
|
variant: "subtle",
|
|
1199
1185
|
onClick: () => onSubmit(null),
|
|
@@ -1206,7 +1192,6 @@ const PromptDialog = ({ options, onSubmit }) => {
|
|
|
1206
1192
|
})
|
|
1207
1193
|
] });
|
|
1208
1194
|
};
|
|
1209
|
-
|
|
1210
1195
|
//#endregion
|
|
1211
1196
|
//#region ../../src/core/services/DialogService.tsx
|
|
1212
1197
|
var DialogService = class {
|
|
@@ -1268,8 +1253,8 @@ var DialogService = class {
|
|
|
1268
1253
|
content: /* @__PURE__ */ jsx(ConfirmDialog, {
|
|
1269
1254
|
options,
|
|
1270
1255
|
onConfirm: (confirmed) => {
|
|
1271
|
-
this.close(modalId);
|
|
1272
1256
|
done(confirmed);
|
|
1257
|
+
this.close(modalId);
|
|
1273
1258
|
}
|
|
1274
1259
|
})
|
|
1275
1260
|
});
|
|
@@ -1295,8 +1280,8 @@ var DialogService = class {
|
|
|
1295
1280
|
content: /* @__PURE__ */ jsx(PromptDialog, {
|
|
1296
1281
|
options,
|
|
1297
1282
|
onSubmit: (value) => {
|
|
1298
|
-
this.close(modalId);
|
|
1299
1283
|
done(value);
|
|
1284
|
+
this.close(modalId);
|
|
1300
1285
|
}
|
|
1301
1286
|
})
|
|
1302
1287
|
});
|
|
@@ -1320,7 +1305,6 @@ var DialogService = class {
|
|
|
1320
1305
|
else modals.closeAll();
|
|
1321
1306
|
}
|
|
1322
1307
|
};
|
|
1323
|
-
|
|
1324
1308
|
//#endregion
|
|
1325
1309
|
//#region ../../src/core/services/ToastService.tsx
|
|
1326
1310
|
var ToastService = class {
|
|
@@ -1379,7 +1363,6 @@ var ToastService = class {
|
|
|
1379
1363
|
});
|
|
1380
1364
|
}
|
|
1381
1365
|
};
|
|
1382
|
-
|
|
1383
1366
|
//#endregion
|
|
1384
1367
|
//#region ../../src/core/UiRouter.ts
|
|
1385
1368
|
/**
|
|
@@ -1394,7 +1377,6 @@ var UiRouter = class {
|
|
|
1394
1377
|
component: AlephaMantineProvider
|
|
1395
1378
|
});
|
|
1396
1379
|
};
|
|
1397
|
-
|
|
1398
1380
|
//#endregion
|
|
1399
1381
|
//#region ../../src/core/hooks/useTheme.ts
|
|
1400
1382
|
/**
|
|
@@ -1429,7 +1411,6 @@ const useTheme = () => {
|
|
|
1429
1411
|
}
|
|
1430
1412
|
];
|
|
1431
1413
|
};
|
|
1432
|
-
|
|
1433
1414
|
//#endregion
|
|
1434
1415
|
//#region ../../src/core/hooks/useToast.ts
|
|
1435
1416
|
/**
|
|
@@ -1445,7 +1426,6 @@ const useTheme = () => {
|
|
|
1445
1426
|
const useToast = () => {
|
|
1446
1427
|
return useInject(ToastService);
|
|
1447
1428
|
};
|
|
1448
|
-
|
|
1449
1429
|
//#endregion
|
|
1450
1430
|
//#region ../../src/core/components/layout/Omnibar.tsx
|
|
1451
1431
|
const Omnibar = (props) => {
|
|
@@ -1477,7 +1457,6 @@ const Omnibar = (props) => {
|
|
|
1477
1457
|
nothingFound
|
|
1478
1458
|
});
|
|
1479
1459
|
};
|
|
1480
|
-
|
|
1481
1460
|
//#endregion
|
|
1482
1461
|
//#region ../../src/core/components/AlephaMantineProvider.tsx
|
|
1483
1462
|
const AlephaMantineProvider = (props) => {
|
|
@@ -1519,7 +1498,6 @@ const AlephaMantineProvider = (props) => {
|
|
|
1519
1498
|
]
|
|
1520
1499
|
})] });
|
|
1521
1500
|
};
|
|
1522
|
-
|
|
1523
1501
|
//#endregion
|
|
1524
1502
|
//#region ../../src/core/constants/ui.ts
|
|
1525
1503
|
const ui = {
|
|
@@ -1538,14 +1516,12 @@ const ui = {
|
|
|
1538
1516
|
xl: 32
|
|
1539
1517
|
} }
|
|
1540
1518
|
};
|
|
1541
|
-
|
|
1542
1519
|
//#endregion
|
|
1543
1520
|
//#region ../../src/core/helpers/isComponentType.ts
|
|
1544
1521
|
function isComponentType(param) {
|
|
1545
1522
|
if (isValidElement(param)) return false;
|
|
1546
1523
|
return typeof param === "function" || typeof param === "object" && param !== null && "$$typeof" in param;
|
|
1547
1524
|
}
|
|
1548
|
-
|
|
1549
1525
|
//#endregion
|
|
1550
1526
|
//#region ../../src/core/components/buttons/ActionButton.tsx
|
|
1551
1527
|
const ActionButton = (_props) => {
|
|
@@ -1826,7 +1802,6 @@ const ActionMenuItem = (props) => {
|
|
|
1826
1802
|
children: item.label
|
|
1827
1803
|
}, index);
|
|
1828
1804
|
};
|
|
1829
|
-
|
|
1830
1805
|
//#endregion
|
|
1831
1806
|
//#region ../../src/core/components/buttons/BurgerButton.tsx
|
|
1832
1807
|
const BurgerButton = (props) => {
|
|
@@ -1842,7 +1817,6 @@ const BurgerButton = (props) => {
|
|
|
1842
1817
|
...props
|
|
1843
1818
|
});
|
|
1844
1819
|
};
|
|
1845
|
-
|
|
1846
1820
|
//#endregion
|
|
1847
1821
|
//#region ../../src/core/components/buttons/ClipboardButton.tsx
|
|
1848
1822
|
const ClipboardButton = (props) => {
|
|
@@ -1863,7 +1837,6 @@ const ClipboardButton = (props) => {
|
|
|
1863
1837
|
})
|
|
1864
1838
|
});
|
|
1865
1839
|
};
|
|
1866
|
-
|
|
1867
1840
|
//#endregion
|
|
1868
1841
|
//#region ../../src/core/components/buttons/DarkModeButton.tsx
|
|
1869
1842
|
/**
|
|
@@ -1895,7 +1868,6 @@ const DarkModeButton = (props) => {
|
|
|
1895
1868
|
...props
|
|
1896
1869
|
});
|
|
1897
1870
|
};
|
|
1898
|
-
|
|
1899
1871
|
//#endregion
|
|
1900
1872
|
//#region ../../src/core/components/buttons/LanguageButton.tsx
|
|
1901
1873
|
const LanguageButton = (props) => {
|
|
@@ -1911,7 +1883,6 @@ const LanguageButton = (props) => {
|
|
|
1911
1883
|
...props
|
|
1912
1884
|
});
|
|
1913
1885
|
};
|
|
1914
|
-
|
|
1915
1886
|
//#endregion
|
|
1916
1887
|
//#region ../../src/core/components/buttons/OmnibarButton.tsx
|
|
1917
1888
|
const OmnibarButton = (props) => {
|
|
@@ -1956,7 +1927,6 @@ const OmnibarButton = (props) => {
|
|
|
1956
1927
|
})
|
|
1957
1928
|
});
|
|
1958
1929
|
};
|
|
1959
|
-
|
|
1960
1930
|
//#endregion
|
|
1961
1931
|
//#region ../../src/core/hooks/useDialog.ts
|
|
1962
1932
|
/**
|
|
@@ -1973,7 +1943,6 @@ const OmnibarButton = (props) => {
|
|
|
1973
1943
|
const useDialog = () => {
|
|
1974
1944
|
return useInject(DialogService);
|
|
1975
1945
|
};
|
|
1976
|
-
|
|
1977
1946
|
//#endregion
|
|
1978
1947
|
//#region ../../src/core/components/buttons/ThemeExpertModal.tsx
|
|
1979
1948
|
const MANTINE_COLORS = [
|
|
@@ -2182,7 +2151,6 @@ const ThemeExpertModal = () => {
|
|
|
2182
2151
|
]
|
|
2183
2152
|
});
|
|
2184
2153
|
};
|
|
2185
|
-
|
|
2186
2154
|
//#endregion
|
|
2187
2155
|
//#region ../../src/core/components/buttons/ThemeButton.tsx
|
|
2188
2156
|
const ThemeButton = (props) => {
|
|
@@ -2211,7 +2179,6 @@ const ThemeButton = (props) => {
|
|
|
2211
2179
|
...actionProps
|
|
2212
2180
|
});
|
|
2213
2181
|
};
|
|
2214
|
-
|
|
2215
2182
|
//#endregion
|
|
2216
2183
|
//#region ../../src/core/components/buttons/ToggleSidebarButton.tsx
|
|
2217
2184
|
const ToggleSidebarButton = (props) => {
|
|
@@ -2233,7 +2200,6 @@ const ToggleSidebarButton = (props) => {
|
|
|
2233
2200
|
...props
|
|
2234
2201
|
});
|
|
2235
2202
|
};
|
|
2236
|
-
|
|
2237
2203
|
//#endregion
|
|
2238
2204
|
//#region ../../src/core/components/data/DetailDrawer.tsx
|
|
2239
2205
|
const DetailDrawer = (props) => {
|
|
@@ -2328,7 +2294,6 @@ const DetailDrawer = (props) => {
|
|
|
2328
2294
|
})]
|
|
2329
2295
|
});
|
|
2330
2296
|
};
|
|
2331
|
-
|
|
2332
2297
|
//#endregion
|
|
2333
2298
|
//#region ../../src/core/components/data/DetailList.tsx
|
|
2334
2299
|
const DetailList = (props) => {
|
|
@@ -2371,7 +2336,6 @@ const DetailList = (props) => {
|
|
|
2371
2336
|
}, item.label))
|
|
2372
2337
|
});
|
|
2373
2338
|
};
|
|
2374
|
-
|
|
2375
2339
|
//#endregion
|
|
2376
2340
|
//#region ../../src/core/components/data/StatCards.tsx
|
|
2377
2341
|
const StatCards = ({ items }) => /* @__PURE__ */ jsx(Flex$1, {
|
|
@@ -2407,11 +2371,10 @@ const StatCards = ({ items }) => /* @__PURE__ */ jsx(Flex$1, {
|
|
|
2407
2371
|
}, item.label);
|
|
2408
2372
|
})
|
|
2409
2373
|
});
|
|
2410
|
-
|
|
2411
2374
|
//#endregion
|
|
2412
2375
|
//#region ../../src/core/components/Flex.tsx
|
|
2413
2376
|
const Flex = forwardRef((props, ref) => {
|
|
2414
|
-
const { fill, center, centerX, centerY, col, ground, surface, elevated, rounded, bordered, borderedTop, borderedBottom, shadowed, overflow, ...rest } = props;
|
|
2377
|
+
const { fill, center, centerX, centerY, col, ground, surface, elevated, rounded, bordered, borderedTop, borderedBottom, shadowed, overflow, form, ...rest } = props;
|
|
2415
2378
|
if (fill) rest.flex ??= 1;
|
|
2416
2379
|
if (col) rest.direction ??= "column";
|
|
2417
2380
|
if (center) {
|
|
@@ -2435,19 +2398,22 @@ const Flex = forwardRef((props, ref) => {
|
|
|
2435
2398
|
};
|
|
2436
2399
|
if (shadowed) rest.className = `${rest.className ?? ""} shadow-${shadowed === true ? "md" : shadowed}`.trim();
|
|
2437
2400
|
if (overflow) rest.className = `${rest.className ?? ""} overflow-auto`.trim();
|
|
2401
|
+
if (form) {
|
|
2402
|
+
let formProps = typeof form === "object" ? form : {};
|
|
2403
|
+
if (formProps instanceof FormModel) formProps = formProps.props;
|
|
2404
|
+
return /* @__PURE__ */ jsx(Flex$1, {
|
|
2405
|
+
ref,
|
|
2406
|
+
component: "form",
|
|
2407
|
+
...formProps,
|
|
2408
|
+
...rest
|
|
2409
|
+
});
|
|
2410
|
+
}
|
|
2438
2411
|
return /* @__PURE__ */ jsx(Flex$1, {
|
|
2439
2412
|
ref,
|
|
2440
2413
|
...rest
|
|
2441
2414
|
});
|
|
2442
2415
|
});
|
|
2443
2416
|
Flex.displayName = "Flex";
|
|
2444
|
-
|
|
2445
|
-
//#endregion
|
|
2446
|
-
//#region ../../src/core/components/Heading.tsx
|
|
2447
|
-
const Heading = (props) => {
|
|
2448
|
-
return /* @__PURE__ */ jsx("h1", { children: "Heading" });
|
|
2449
|
-
};
|
|
2450
|
-
|
|
2451
2417
|
//#endregion
|
|
2452
2418
|
//#region ../../src/core/components/layout/AppBar.tsx
|
|
2453
2419
|
const AppBar = (props) => {
|
|
@@ -2562,7 +2528,6 @@ const AppBar = (props) => {
|
|
|
2562
2528
|
});
|
|
2563
2529
|
return content;
|
|
2564
2530
|
};
|
|
2565
|
-
|
|
2566
2531
|
//#endregion
|
|
2567
2532
|
//#region ../../src/core/components/layout/Breadcrumb.tsx
|
|
2568
2533
|
/**
|
|
@@ -2572,7 +2537,7 @@ const AppBar = (props) => {
|
|
|
2572
2537
|
* Pages should define a `label` in their `$page()` options for best results.
|
|
2573
2538
|
* Falls back to the page name converted to Title Case.
|
|
2574
2539
|
*/
|
|
2575
|
-
const
|
|
2540
|
+
const Breadcrumbs = (props) => {
|
|
2576
2541
|
const { home = "Home", separator, size = "sm", ...groupProps } = props;
|
|
2577
2542
|
const state = useRouterState();
|
|
2578
2543
|
const router = useRouter();
|
|
@@ -2617,7 +2582,6 @@ const Breadcrumb = (props) => {
|
|
|
2617
2582
|
}, crumb.href))
|
|
2618
2583
|
});
|
|
2619
2584
|
};
|
|
2620
|
-
|
|
2621
2585
|
//#endregion
|
|
2622
2586
|
//#region ../../src/core/components/layout/Container.tsx
|
|
2623
2587
|
const Container = forwardRef((props, ref) => {
|
|
@@ -2627,7 +2591,6 @@ const Container = forwardRef((props, ref) => {
|
|
|
2627
2591
|
});
|
|
2628
2592
|
});
|
|
2629
2593
|
Container.displayName = "Container";
|
|
2630
|
-
|
|
2631
2594
|
//#endregion
|
|
2632
2595
|
//#region ../../src/core/helpers/renderIcon.tsx
|
|
2633
2596
|
const renderIcon = (icon, size) => {
|
|
@@ -2636,7 +2599,6 @@ const renderIcon = (icon, size) => {
|
|
|
2636
2599
|
if (isComponentType(icon)) return /* @__PURE__ */ jsx(icon, { size: size ?? ui.sizes.icon.md });
|
|
2637
2600
|
return icon;
|
|
2638
2601
|
};
|
|
2639
|
-
|
|
2640
2602
|
//#endregion
|
|
2641
2603
|
//#region ../../src/core/components/Text.tsx
|
|
2642
2604
|
const INTENT_COLORS = {
|
|
@@ -2665,7 +2627,6 @@ const Text = forwardRef((props, ref) => {
|
|
|
2665
2627
|
});
|
|
2666
2628
|
});
|
|
2667
2629
|
Text.displayName = "Text";
|
|
2668
|
-
|
|
2669
2630
|
//#endregion
|
|
2670
2631
|
//#region ../../src/core/components/layout/SidebarCollapsedItem.tsx
|
|
2671
2632
|
const SidebarCollapsedItem = (props) => {
|
|
@@ -2715,7 +2676,6 @@ const SidebarCollapsedItem = (props) => {
|
|
|
2715
2676
|
})
|
|
2716
2677
|
});
|
|
2717
2678
|
};
|
|
2718
|
-
|
|
2719
2679
|
//#endregion
|
|
2720
2680
|
//#region ../../src/core/components/layout/SidebarItem.tsx
|
|
2721
2681
|
const SidebarItem = (props) => {
|
|
@@ -2792,7 +2752,6 @@ const SidebarItem = (props) => {
|
|
|
2792
2752
|
})]
|
|
2793
2753
|
});
|
|
2794
2754
|
};
|
|
2795
|
-
|
|
2796
2755
|
//#endregion
|
|
2797
2756
|
//#region ../../src/core/components/layout/Sidebar.tsx
|
|
2798
2757
|
const Sidebar = (props) => {
|
|
@@ -2916,7 +2875,6 @@ const Sidebar = (props) => {
|
|
|
2916
2875
|
})] });
|
|
2917
2876
|
return renderSidebar(false);
|
|
2918
2877
|
};
|
|
2919
|
-
|
|
2920
2878
|
//#endregion
|
|
2921
2879
|
//#region ../../src/core/components/layout/DashboardShell.tsx
|
|
2922
2880
|
const DashboardShell = (props) => {
|
|
@@ -3016,7 +2974,112 @@ const DashboardShell = (props) => {
|
|
|
3016
2974
|
]
|
|
3017
2975
|
});
|
|
3018
2976
|
};
|
|
3019
|
-
|
|
2977
|
+
//#endregion
|
|
2978
|
+
//#region ../../src/core/components/SectionHeader.tsx
|
|
2979
|
+
const TITLE_ORDER = {
|
|
2980
|
+
sm: 5,
|
|
2981
|
+
md: 4,
|
|
2982
|
+
lg: 3
|
|
2983
|
+
};
|
|
2984
|
+
const ICON_SIZE = {
|
|
2985
|
+
sm: ui.sizes.icon.xs,
|
|
2986
|
+
md: ui.sizes.icon.sm,
|
|
2987
|
+
lg: ui.sizes.icon.md
|
|
2988
|
+
};
|
|
2989
|
+
const SectionHeader = (props) => {
|
|
2990
|
+
const { icon, title, tag, subtitle, actions, size = "md", extra } = props;
|
|
2991
|
+
const iconSize = ICON_SIZE[size];
|
|
2992
|
+
const titleOrder = TITLE_ORDER[size];
|
|
2993
|
+
return /* @__PURE__ */ jsxs(Flex, {
|
|
2994
|
+
col: true,
|
|
2995
|
+
gap: 2,
|
|
2996
|
+
children: [/* @__PURE__ */ jsxs(Flex, {
|
|
2997
|
+
centerY: true,
|
|
2998
|
+
gap: "xs",
|
|
2999
|
+
children: [
|
|
3000
|
+
icon && /* @__PURE__ */ jsx(Flex, {
|
|
3001
|
+
centerY: true,
|
|
3002
|
+
style: { flexShrink: 0 },
|
|
3003
|
+
children: renderIcon(icon, iconSize)
|
|
3004
|
+
}),
|
|
3005
|
+
/* @__PURE__ */ jsx(Title, {
|
|
3006
|
+
order: titleOrder,
|
|
3007
|
+
lh: 1.2,
|
|
3008
|
+
children: title
|
|
3009
|
+
}),
|
|
3010
|
+
tag,
|
|
3011
|
+
/* @__PURE__ */ jsx(Flex, { fill: true }),
|
|
3012
|
+
actions && actions.length > 0 && /* @__PURE__ */ jsx(Flex, {
|
|
3013
|
+
gap: "xs",
|
|
3014
|
+
centerY: true,
|
|
3015
|
+
style: { flexShrink: 0 },
|
|
3016
|
+
children: actions.map((actionProps, index) => /* @__PURE__ */ jsx(ActionButton, {
|
|
3017
|
+
size: "xs",
|
|
3018
|
+
variant: "default",
|
|
3019
|
+
...actionProps
|
|
3020
|
+
}, index))
|
|
3021
|
+
}),
|
|
3022
|
+
extra
|
|
3023
|
+
]
|
|
3024
|
+
}), subtitle && /* @__PURE__ */ jsx(Text, {
|
|
3025
|
+
muted: true,
|
|
3026
|
+
small: true,
|
|
3027
|
+
children: subtitle
|
|
3028
|
+
})]
|
|
3029
|
+
});
|
|
3030
|
+
};
|
|
3031
|
+
//#endregion
|
|
3032
|
+
//#region ../../src/core/components/Section.tsx
|
|
3033
|
+
const Section = (props) => {
|
|
3034
|
+
const { children, collapsible, defaultCollapsed = false, title, icon, tag, subtitle, actions, p = "md", ...rest } = props;
|
|
3035
|
+
const [collapsed, setCollapsed] = useState(collapsible ? defaultCollapsed : false);
|
|
3036
|
+
const hasHeader = !!title;
|
|
3037
|
+
const headerActions = [...actions ?? []];
|
|
3038
|
+
const chevronExtra = collapsible ? /* @__PURE__ */ jsx(Flex, {
|
|
3039
|
+
centerY: true,
|
|
3040
|
+
style: {
|
|
3041
|
+
cursor: "pointer",
|
|
3042
|
+
flexShrink: 0
|
|
3043
|
+
},
|
|
3044
|
+
onClick: () => setCollapsed((v) => !v),
|
|
3045
|
+
children: collapsed ? /* @__PURE__ */ jsx(IconChevronRight, { size: ui.sizes.icon.sm }) : /* @__PURE__ */ jsx(IconChevronDown, { size: ui.sizes.icon.sm })
|
|
3046
|
+
}) : void 0;
|
|
3047
|
+
return /* @__PURE__ */ jsxs(Flex, {
|
|
3048
|
+
col: true,
|
|
3049
|
+
surface: true,
|
|
3050
|
+
rounded: true,
|
|
3051
|
+
bordered: true,
|
|
3052
|
+
...rest,
|
|
3053
|
+
children: [hasHeader && /* @__PURE__ */ jsx(Flex, {
|
|
3054
|
+
p: "sm",
|
|
3055
|
+
px: "md",
|
|
3056
|
+
style: { cursor: collapsible ? "pointer" : void 0 },
|
|
3057
|
+
onClick: collapsible ? () => setCollapsed((v) => !v) : void 0,
|
|
3058
|
+
children: /* @__PURE__ */ jsx(SectionHeader, {
|
|
3059
|
+
icon,
|
|
3060
|
+
title,
|
|
3061
|
+
tag,
|
|
3062
|
+
subtitle,
|
|
3063
|
+
actions: headerActions,
|
|
3064
|
+
size: "sm",
|
|
3065
|
+
extra: chevronExtra
|
|
3066
|
+
})
|
|
3067
|
+
}), collapsible ? /* @__PURE__ */ jsx(Collapse, {
|
|
3068
|
+
in: !collapsed,
|
|
3069
|
+
children: /* @__PURE__ */ jsx(Flex, {
|
|
3070
|
+
col: true,
|
|
3071
|
+
p,
|
|
3072
|
+
...hasHeader ? { borderedTop: true } : {},
|
|
3073
|
+
children
|
|
3074
|
+
})
|
|
3075
|
+
}) : /* @__PURE__ */ jsx(Flex, {
|
|
3076
|
+
col: true,
|
|
3077
|
+
p,
|
|
3078
|
+
...hasHeader ? { borderedTop: true } : {},
|
|
3079
|
+
children
|
|
3080
|
+
})]
|
|
3081
|
+
});
|
|
3082
|
+
};
|
|
3020
3083
|
//#endregion
|
|
3021
3084
|
//#region ../../src/core/form/utils/parseInput.ts
|
|
3022
3085
|
const parseInput = (props, form) => {
|
|
@@ -3057,7 +3120,6 @@ const parseInput = (props, form) => {
|
|
|
3057
3120
|
inputProps
|
|
3058
3121
|
};
|
|
3059
3122
|
};
|
|
3060
|
-
|
|
3061
3123
|
//#endregion
|
|
3062
3124
|
//#region ../../src/core/form/components/ControlArray.tsx
|
|
3063
3125
|
/**
|
|
@@ -3347,7 +3409,6 @@ const ControlArray = (props) => {
|
|
|
3347
3409
|
})
|
|
3348
3410
|
});
|
|
3349
3411
|
};
|
|
3350
|
-
|
|
3351
3412
|
//#endregion
|
|
3352
3413
|
//#region ../../src/core/form/components/ControlDate.tsx
|
|
3353
3414
|
/**
|
|
@@ -3400,7 +3461,6 @@ const ControlDate = (props) => {
|
|
|
3400
3461
|
}
|
|
3401
3462
|
return null;
|
|
3402
3463
|
};
|
|
3403
|
-
|
|
3404
3464
|
//#endregion
|
|
3405
3465
|
//#region ../../src/core/form/components/ControlNumber.tsx
|
|
3406
3466
|
/**
|
|
@@ -3445,7 +3505,6 @@ const ControlNumber = (props) => {
|
|
|
3445
3505
|
}
|
|
3446
3506
|
});
|
|
3447
3507
|
};
|
|
3448
|
-
|
|
3449
3508
|
//#endregion
|
|
3450
3509
|
//#region ../../src/core/form/components/ControlObject.tsx
|
|
3451
3510
|
/**
|
|
@@ -3522,7 +3581,6 @@ const ControlObject = (props) => {
|
|
|
3522
3581
|
})
|
|
3523
3582
|
});
|
|
3524
3583
|
};
|
|
3525
|
-
|
|
3526
3584
|
//#endregion
|
|
3527
3585
|
//#region ../../src/core/form/components/ControlQueryBuilderHelp.tsx
|
|
3528
3586
|
const ControlQueryBuilderHelp = (props) => {
|
|
@@ -3690,7 +3748,6 @@ const ControlQueryBuilderHelp = (props) => {
|
|
|
3690
3748
|
]
|
|
3691
3749
|
});
|
|
3692
3750
|
};
|
|
3693
|
-
|
|
3694
3751
|
//#endregion
|
|
3695
3752
|
//#region ../../src/core/form/components/ControlQueryBuilder.tsx
|
|
3696
3753
|
/**
|
|
@@ -3778,7 +3835,6 @@ const ControlQueryBuilder = (props) => {
|
|
|
3778
3835
|
})]
|
|
3779
3836
|
});
|
|
3780
3837
|
};
|
|
3781
|
-
|
|
3782
3838
|
//#endregion
|
|
3783
3839
|
//#region ../../src/core/form/components/ControlSelect.tsx
|
|
3784
3840
|
/**
|
|
@@ -3997,7 +4053,6 @@ const useAsyncLoader = (loader, threshold, debounceMs, defaultValue) => {
|
|
|
3997
4053
|
])
|
|
3998
4054
|
};
|
|
3999
4055
|
};
|
|
4000
|
-
|
|
4001
4056
|
//#endregion
|
|
4002
4057
|
//#region ../../src/core/form/components/Control.tsx
|
|
4003
4058
|
/**
|
|
@@ -4214,7 +4269,6 @@ const Control = (_props) => {
|
|
|
4214
4269
|
...textInputProps
|
|
4215
4270
|
});
|
|
4216
4271
|
};
|
|
4217
|
-
|
|
4218
4272
|
//#endregion
|
|
4219
4273
|
//#region ../../src/core/form/components/TypeForm.tsx
|
|
4220
4274
|
/**
|
|
@@ -4346,7 +4400,6 @@ const TypeForm = (props) => {
|
|
|
4346
4400
|
children: content
|
|
4347
4401
|
});
|
|
4348
4402
|
};
|
|
4349
|
-
|
|
4350
4403
|
//#endregion
|
|
4351
4404
|
//#region ../../src/core/form/factories/dialogForm.tsx
|
|
4352
4405
|
/**
|
|
@@ -4365,7 +4418,6 @@ const dialogForm = (form, options) => ({
|
|
|
4365
4418
|
...options?.typeFormProps
|
|
4366
4419
|
})
|
|
4367
4420
|
});
|
|
4368
|
-
|
|
4369
4421
|
//#endregion
|
|
4370
4422
|
//#region ../../src/core/json/components/JsonViewerCopyButton.tsx
|
|
4371
4423
|
const JsonViewerCopyButton = (props) => {
|
|
@@ -4385,7 +4437,6 @@ const JsonViewerCopyButton = (props) => {
|
|
|
4385
4437
|
children: copied ? /* @__PURE__ */ jsx(IconCheck, { size: props.iconSize }) : /* @__PURE__ */ jsx(IconCopy, { size: props.iconSize })
|
|
4386
4438
|
});
|
|
4387
4439
|
};
|
|
4388
|
-
|
|
4389
4440
|
//#endregion
|
|
4390
4441
|
//#region ../../src/core/json/components/JsonViewerShared.ts
|
|
4391
4442
|
const SIZE_CONFIG = {
|
|
@@ -4436,7 +4487,6 @@ const getValueType = (val) => {
|
|
|
4436
4487
|
if (Array.isArray(val)) return "array";
|
|
4437
4488
|
return typeof val;
|
|
4438
4489
|
};
|
|
4439
|
-
|
|
4440
4490
|
//#endregion
|
|
4441
4491
|
//#region ../../src/core/json/components/JsonViewerRowNode.tsx
|
|
4442
4492
|
const JsonViewerRowNode = (props) => {
|
|
@@ -4513,7 +4563,6 @@ const JsonViewerRowNode = (props) => {
|
|
|
4513
4563
|
]
|
|
4514
4564
|
});
|
|
4515
4565
|
};
|
|
4516
|
-
|
|
4517
4566
|
//#endregion
|
|
4518
4567
|
//#region ../../src/core/json/components/JsonViewer.tsx
|
|
4519
4568
|
const JsonViewer = (props) => {
|
|
@@ -4677,7 +4726,6 @@ const getExpandedIds = (nodes, targetDepth, currentDepth = 0) => {
|
|
|
4677
4726
|
}
|
|
4678
4727
|
return ids;
|
|
4679
4728
|
};
|
|
4680
|
-
|
|
4681
4729
|
//#endregion
|
|
4682
4730
|
//#region ../../src/core/json/factories/dialogJson.tsx
|
|
4683
4731
|
/**
|
|
@@ -4702,7 +4750,6 @@ const dialogJson = (data, options) => ({
|
|
|
4702
4750
|
})
|
|
4703
4751
|
})
|
|
4704
4752
|
});
|
|
4705
|
-
|
|
4706
4753
|
//#endregion
|
|
4707
4754
|
//#region ../../src/core/primitives/$ui.ts
|
|
4708
4755
|
/**
|
|
@@ -4713,11 +4760,6 @@ const $ui = (options = {}) => {
|
|
|
4713
4760
|
if (options.themes) alepha.store.set(alephaThemeListAtom, options.themes);
|
|
4714
4761
|
return alepha.inject(UiRouter);
|
|
4715
4762
|
};
|
|
4716
|
-
|
|
4717
|
-
//#endregion
|
|
4718
|
-
//#region ../../src/core/table/interfaces/types.ts
|
|
4719
|
-
const DEFAULT_MAX_VISIBLE_COLUMNS = 8;
|
|
4720
|
-
|
|
4721
4763
|
//#endregion
|
|
4722
4764
|
//#region ../../src/core/table/components/DataTableFilters.tsx
|
|
4723
4765
|
const DataTableFilters = (props) => {
|
|
@@ -4755,7 +4797,6 @@ const DataTableFilters = (props) => {
|
|
|
4755
4797
|
})
|
|
4756
4798
|
});
|
|
4757
4799
|
};
|
|
4758
|
-
|
|
4759
4800
|
//#endregion
|
|
4760
4801
|
//#region ../../src/core/table/components/DataTablePagination.tsx
|
|
4761
4802
|
const DataTablePagination = ({ page, size, totalPages, totalElements, isFirst, isLast, offset, numberOfElements, onPageChange, onSizeChange }) => {
|
|
@@ -4818,7 +4859,6 @@ const DataTablePagination = ({ page, size, totalPages, totalElements, isFirst, i
|
|
|
4818
4859
|
})]
|
|
4819
4860
|
});
|
|
4820
4861
|
};
|
|
4821
|
-
|
|
4822
4862
|
//#endregion
|
|
4823
4863
|
//#region ../../src/core/table/components/ColumnPicker.tsx
|
|
4824
4864
|
const ColumnPicker = ({ columns, visibility, onVisibilityChange }) => {
|
|
@@ -4834,7 +4874,7 @@ const ColumnPicker = ({ columns, visibility, onVisibilityChange }) => {
|
|
|
4834
4874
|
let count = 0;
|
|
4835
4875
|
onVisibilityChange(columnEntries.reduce((acc, [key, col]) => {
|
|
4836
4876
|
if (col.defaultHidden) acc[key] = false;
|
|
4837
|
-
else if (count <
|
|
4877
|
+
else if (count < 8) {
|
|
4838
4878
|
acc[key] = true;
|
|
4839
4879
|
count++;
|
|
4840
4880
|
} else acc[key] = false;
|
|
@@ -4919,7 +4959,6 @@ const ColumnPicker = ({ columns, visibility, onVisibilityChange }) => {
|
|
|
4919
4959
|
})]
|
|
4920
4960
|
});
|
|
4921
4961
|
};
|
|
4922
|
-
|
|
4923
4962
|
//#endregion
|
|
4924
4963
|
//#region ../../src/core/table/components/FilterPicker.tsx
|
|
4925
4964
|
const getFieldLabel = (schema, key) => {
|
|
@@ -5020,7 +5059,6 @@ const FilterPicker = ({ schema, visibility, onVisibilityChange }) => {
|
|
|
5020
5059
|
})]
|
|
5021
5060
|
});
|
|
5022
5061
|
};
|
|
5023
|
-
|
|
5024
5062
|
//#endregion
|
|
5025
5063
|
//#region ../../src/core/table/components/DataTableToolbar.tsx
|
|
5026
5064
|
const escapeCsvField = (value) => {
|
|
@@ -5147,7 +5185,6 @@ const DataTableToolbar = ({ columns, filters, columnVisibility, filterVisibility
|
|
|
5147
5185
|
]
|
|
5148
5186
|
});
|
|
5149
5187
|
};
|
|
5150
|
-
|
|
5151
5188
|
//#endregion
|
|
5152
5189
|
//#region ../../src/core/table/components/useTableSelection.ts
|
|
5153
5190
|
const useTableSelection = (items, getItemKey, enabled) => {
|
|
@@ -5210,7 +5247,6 @@ const useTableSelection = (items, getItemKey, enabled) => {
|
|
|
5210
5247
|
isSelected: useCallback((item) => selectedKeys.has(getItemKey(item)), [selectedKeys, getItemKey])
|
|
5211
5248
|
};
|
|
5212
5249
|
};
|
|
5213
|
-
|
|
5214
5250
|
//#endregion
|
|
5215
5251
|
//#region ../../src/core/table/components/DataTable.tsx
|
|
5216
5252
|
/**
|
|
@@ -5244,7 +5280,8 @@ const toAriaSort = (dir) => {
|
|
|
5244
5280
|
};
|
|
5245
5281
|
const FIT_STYLE = {
|
|
5246
5282
|
width: 1,
|
|
5247
|
-
whiteSpace: "nowrap"
|
|
5283
|
+
whiteSpace: "nowrap",
|
|
5284
|
+
minWidth: "fit-content"
|
|
5248
5285
|
};
|
|
5249
5286
|
const DataTable = (props) => {
|
|
5250
5287
|
const [items, setItems] = useState(typeof props.items === "function" ? { content: [] } : props.items);
|
|
@@ -5263,7 +5300,7 @@ const DataTable = (props) => {
|
|
|
5263
5300
|
let visibleCount = 0;
|
|
5264
5301
|
return entries.reduce((acc, [key, col]) => {
|
|
5265
5302
|
if (col.defaultHidden) acc[key] = false;
|
|
5266
|
-
else if (visibleCount <
|
|
5303
|
+
else if (visibleCount < 8) {
|
|
5267
5304
|
acc[key] = true;
|
|
5268
5305
|
visibleCount++;
|
|
5269
5306
|
} else acc[key] = false;
|
|
@@ -5616,8 +5653,7 @@ const DataTable = (props) => {
|
|
|
5616
5653
|
style: {
|
|
5617
5654
|
position: "sticky",
|
|
5618
5655
|
top: 0,
|
|
5619
|
-
zIndex: 1
|
|
5620
|
-
backgroundColor: "var(--alepha-elevated)"
|
|
5656
|
+
zIndex: 1
|
|
5621
5657
|
},
|
|
5622
5658
|
children: /* @__PURE__ */ jsxs(Table.Tr, { children: [
|
|
5623
5659
|
panelConfig && /* @__PURE__ */ jsx(Table.Th, { style: { width: 36 } }),
|
|
@@ -5679,7 +5715,6 @@ const DataTable = (props) => {
|
|
|
5679
5715
|
})]
|
|
5680
5716
|
});
|
|
5681
5717
|
};
|
|
5682
|
-
|
|
5683
5718
|
//#endregion
|
|
5684
5719
|
//#region ../../src/core/utils/extractSchemaFields.ts
|
|
5685
5720
|
/**
|
|
@@ -5797,7 +5832,6 @@ const OPERATOR_INFO = {
|
|
|
5797
5832
|
example: "status=[active,pending]"
|
|
5798
5833
|
}
|
|
5799
5834
|
};
|
|
5800
|
-
|
|
5801
5835
|
//#endregion
|
|
5802
5836
|
//#region ../../src/core/utils/icons.tsx
|
|
5803
5837
|
/**
|
|
@@ -5839,7 +5873,6 @@ const getDefaultIcon = (params) => {
|
|
|
5839
5873
|
}
|
|
5840
5874
|
return /* @__PURE__ */ jsx(IconAt, { size: iconSize });
|
|
5841
5875
|
};
|
|
5842
|
-
|
|
5843
5876
|
//#endregion
|
|
5844
5877
|
//#region ../../src/core/utils/string.ts
|
|
5845
5878
|
/**
|
|
@@ -5877,7 +5910,6 @@ const prettyName = (name) => {
|
|
|
5877
5910
|
const segments = name.split("/").filter((s) => s && !/^\d+$/.test(s));
|
|
5878
5911
|
return toTitleCase(segments[segments.length - 1] || name.replaceAll("/", ""));
|
|
5879
5912
|
};
|
|
5880
|
-
|
|
5881
5913
|
//#endregion
|
|
5882
5914
|
//#region ../../src/core/index.ts
|
|
5883
5915
|
/**
|
|
@@ -5916,7 +5948,7 @@ const AlephaUI = $module({
|
|
|
5916
5948
|
alepha.with(ToastService);
|
|
5917
5949
|
}
|
|
5918
5950
|
});
|
|
5919
|
-
|
|
5920
5951
|
//#endregion
|
|
5921
|
-
export { $ui, ActionButton, DashboardShell as AdminShell, DashboardShell, AlephaMantineProvider, AlephaUI, AlertDialog, AppBar,
|
|
5952
|
+
export { $ui, ActionButton, DashboardShell as AdminShell, DashboardShell, AlephaMantineProvider, AlephaUI, AlertDialog, AppBar, Breadcrumbs, BurgerButton, ClipboardButton, ConfirmDialog, Container, Control, ControlArray, ControlDate, ControlNumber, ControlObject, ControlQueryBuilder, ControlSelect, DarkModeButton, DataTable, DetailDrawer, DetailList, DialogService, Flex, JsonViewer, LanguageButton, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, Section, SectionHeader, Sidebar, ToggleSidebarButton as SidebarCollapseButton, SidebarCollapsedItem, SidebarItem, StatCards, Text, ThemeButton, ThemeProvider, ToastService, TypeForm, UiRouter, alephaSidebarAtom, alephaThemeAtom, alephaThemeListAtom, alephaThemeOverridesAtom, capitalize, defaultTheme, dialogForm, dialogJson, extractSchemaFields, getDefaultIcon, getOperatorsForField, isComponentType, midnightTheme, prettyName, renderIcon, toTitleCase, ui, useDialog, useTheme, useToast };
|
|
5953
|
+
|
|
5922
5954
|
//# sourceMappingURL=index.js.map
|