@alepha/ui 0.13.2 → 0.13.3
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/AdminLayout-JakF7ESb.js +388 -0
- package/dist/admin/AdminLayout-JakF7ESb.js.map +1 -0
- package/dist/admin/AdminLayout-qNsIyl30.js +3 -0
- package/dist/admin/AdminNotifications-BPrxALdS.js +154 -0
- package/dist/admin/AdminNotifications-BPrxALdS.js.map +1 -0
- package/dist/admin/AdminNotifications-DV-35Fi3.js +3 -0
- package/dist/admin/{AdminSessions-CmDVneE2.js → AdminSessions-CMmBtbSw.js} +36 -9
- package/dist/admin/AdminSessions-CMmBtbSw.js.map +1 -0
- package/dist/admin/AdminSessions-Df2VYzlE.js +3 -0
- package/dist/admin/AdminUserCreate-Coa_yi6m.js +103 -0
- package/dist/admin/AdminUserCreate-Coa_yi6m.js.map +1 -0
- package/dist/admin/AdminUserCreate-DjiCcAk0.js +3 -0
- package/dist/admin/AdminUserDetails-BCFwOm9w.js +221 -0
- package/dist/admin/AdminUserDetails-BCFwOm9w.js.map +1 -0
- package/dist/admin/AdminUserDetails-C5yeJNa3.js +3 -0
- package/dist/admin/AdminUserLayout-B8ga5QvP.js +3 -0
- package/dist/admin/AdminUserLayout-CR2OqV9Z.js +153 -0
- package/dist/admin/AdminUserLayout-CR2OqV9Z.js.map +1 -0
- package/dist/admin/AdminUserSessions-A_5KkqTY.js +3 -0
- package/dist/admin/AdminUserSessions-Bcf6-rjG.js +129 -0
- package/dist/admin/AdminUserSessions-Bcf6-rjG.js.map +1 -0
- package/dist/admin/AdminUserSettings-DAsAhFjX.js +3 -0
- package/dist/admin/AdminUserSettings-DRYVdW6S.js +164 -0
- package/dist/admin/AdminUserSettings-DRYVdW6S.js.map +1 -0
- package/dist/admin/AdminUsers-Dd9a5UqO.js +3 -0
- package/dist/admin/{AdminUsers-88De5pev.js → AdminUsers-IN_2yHKt.js} +32 -14
- package/dist/admin/AdminUsers-IN_2yHKt.js.map +1 -0
- package/dist/admin/index.d.ts +5560 -416
- package/dist/admin/index.js +299 -41
- package/dist/admin/index.js.map +1 -1
- package/dist/auth/AuthLayout-BSL8ZHgr.js +19 -0
- package/dist/auth/AuthLayout-BSL8ZHgr.js.map +1 -0
- package/dist/auth/Login-DDsyCNAA.js +4 -0
- package/dist/auth/{Login-OCrvjs9U.js → Login-kBfaRgKG.js} +5 -4
- package/dist/auth/Login-kBfaRgKG.js.map +1 -0
- package/dist/auth/{Register-Ei34GSba.js → Register-BxJmOqpF.js} +9 -6
- package/dist/auth/Register-BxJmOqpF.js.map +1 -0
- package/dist/auth/Register-D10MnlQc.js +4 -0
- package/dist/auth/{ResetPassword-tO0oMzfo.js → ResetPassword-BhyZ9ek4.js} +3 -3
- package/dist/auth/ResetPassword-BhyZ9ek4.js.map +1 -0
- package/dist/auth/ResetPassword-llBG-STp.js +3 -0
- package/dist/auth/VerifyEmail-BvOG-IUC.js +3 -0
- package/dist/auth/VerifyEmail-DeLct3oQ.js +131 -0
- package/dist/auth/VerifyEmail-DeLct3oQ.js.map +1 -0
- package/dist/auth/index.d.ts +2412 -2254
- package/dist/auth/index.js +96 -20
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +280 -95
- package/dist/core/index.js +1381 -392
- package/dist/core/index.js.map +1 -1
- package/package.json +5 -5
- package/src/admin/AdminRouter.ts +116 -29
- package/src/admin/MainRouter.ts +23 -0
- package/src/admin/components/AdminLayout.tsx +86 -103
- package/src/admin/components/AdminNotifications.tsx +196 -12
- package/src/admin/components/AdminSessions.tsx +43 -7
- package/src/admin/components/AdminUserCreate.tsx +84 -0
- package/src/admin/components/AdminUserDetails.tsx +180 -0
- package/src/admin/components/AdminUserLayout.tsx +172 -0
- package/src/admin/components/AdminUserSessions.tsx +158 -0
- package/src/admin/components/AdminUserSettings.tsx +165 -0
- package/src/admin/components/AdminUsers.tsx +29 -9
- package/src/admin/index.ts +12 -3
- package/src/auth/AuthI18n.ts +22 -0
- package/src/auth/AuthRouter.ts +82 -8
- package/src/auth/components/AuthLayout.tsx +12 -0
- package/src/auth/components/Login.tsx +13 -11
- package/src/auth/components/Register.tsx +6 -5
- package/src/auth/components/ResetPassword.tsx +1 -1
- package/src/auth/components/VerifyEmail.tsx +102 -0
- package/src/auth/components/buttons/UserButton.tsx +6 -2
- package/src/auth/index.ts +1 -0
- package/src/core/components/buttons/ActionButton.tsx +11 -4
- package/src/core/components/buttons/DarkModeButton.tsx +1 -1
- package/src/core/components/buttons/ThemeButton.tsx +31 -0
- package/src/core/components/layout/AdminShell.tsx +4 -2
- package/src/core/components/layout/AlephaMantineProvider.tsx +10 -4
- package/src/core/components/layout/Omnibar.tsx +27 -15
- package/src/core/components/layout/Sidebar.tsx +33 -15
- package/src/core/components/table/DataTable.tsx +9 -5
- package/src/core/hooks/useTheme.ts +25 -0
- package/src/core/index.ts +8 -3
- package/src/core/providers/ThemeProvider.ts +87 -0
- package/src/core/themes/aurora.ts +107 -0
- package/src/core/themes/crystal.ts +107 -0
- package/src/core/themes/default.ts +7 -0
- package/src/core/themes/ember.ts +107 -0
- package/src/core/themes/index.ts +7 -0
- package/src/core/themes/midnight.ts +104 -0
- package/src/core/themes/remoraid.ts +278 -0
- package/src/core/themes/slate.ts +81 -0
- package/dist/admin/AdminJobs-BOq6AZOW.js +0 -3
- package/dist/admin/AdminJobs-CDnVxEv6.js +0 -125
- package/dist/admin/AdminJobs-CDnVxEv6.js.map +0 -1
- package/dist/admin/AdminLayout-Bgx25J8m.js +0 -3
- package/dist/admin/AdminLayout-CervL8LV.js +0 -88
- package/dist/admin/AdminLayout-CervL8LV.js.map +0 -1
- package/dist/admin/AdminNotifications-BDQXt3-e.js +0 -3
- package/dist/admin/AdminNotifications-DvI2989x.js +0 -40
- package/dist/admin/AdminNotifications-DvI2989x.js.map +0 -1
- package/dist/admin/AdminParameters-D_v0GAvI.js +0 -3
- package/dist/admin/AdminParameters-P1LB6ZI1.js +0 -40
- package/dist/admin/AdminParameters-P1LB6ZI1.js.map +0 -1
- package/dist/admin/AdminSessions-CmDVneE2.js.map +0 -1
- package/dist/admin/AdminSessions-Dkk_fzWK.js +0 -3
- package/dist/admin/AdminUsers-88De5pev.js.map +0 -1
- package/dist/admin/AdminUsers-oyAXqZ5l.js +0 -3
- package/dist/admin/AdminVerifications-D93TKymL.js +0 -3
- package/dist/admin/AdminVerifications-DBVEoqJe.js +0 -40
- package/dist/admin/AdminVerifications-DBVEoqJe.js.map +0 -1
- package/dist/auth/Login-BC2jTczq.js +0 -4
- package/dist/auth/Login-OCrvjs9U.js.map +0 -1
- package/dist/auth/Register-Dh0lsQmI.js +0 -4
- package/dist/auth/Register-Ei34GSba.js.map +0 -1
- package/dist/auth/ResetPassword-BnlAQAOE.js +0 -3
- package/dist/auth/ResetPassword-tO0oMzfo.js.map +0 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as alepha72 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, FileLike, InstantiableClass, LogLevel, LoggerInterface, Page, PageMetadata, Primitive, Static, StreamLike, TArray, TFile, TObject, TProperties, TRecord, TSchema, TStream, TString, TVoid, TypeBoxError } from "alepha";
|
|
3
|
-
import { AnchorProps, AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, BurgerProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MantineSize, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SliderProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
|
|
3
|
+
import { AnchorProps, AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, BurgerProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MantineSize, MantineThemeOverride, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SliderProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
|
|
4
4
|
import { ModalsProviderProps } from "@mantine/modals";
|
|
5
5
|
import * as _mantine_notifications0 from "@mantine/notifications";
|
|
6
6
|
import { NotificationData, NotificationsProps } from "@mantine/notifications";
|
|
7
7
|
import { NavigationProgressProps } from "@mantine/nprogress";
|
|
8
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
9
9
|
import { ComponentType, FC, InputHTMLAttributes, ReactElement, ReactNode } from "react";
|
|
10
10
|
import { DateInputProps, DateTimePickerProps, TimeInputProps } from "@mantine/dates";
|
|
11
11
|
import "dayjs/plugin/relativeTime.js";
|
|
@@ -21,15 +21,15 @@ import { Readable } from "node:stream";
|
|
|
21
21
|
import { ReadableStream } from "node:stream/web";
|
|
22
22
|
|
|
23
23
|
//#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
|
|
24
|
-
declare const logEntrySchema:
|
|
25
|
-
level:
|
|
26
|
-
message:
|
|
27
|
-
service:
|
|
28
|
-
module:
|
|
29
|
-
context:
|
|
30
|
-
app:
|
|
31
|
-
data:
|
|
32
|
-
timestamp:
|
|
24
|
+
declare const logEntrySchema: alepha72.TObject<{
|
|
25
|
+
level: alepha72.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
|
|
26
|
+
message: alepha72.TString;
|
|
27
|
+
service: alepha72.TString;
|
|
28
|
+
module: alepha72.TString;
|
|
29
|
+
context: alepha72.TOptional<alepha72.TString>;
|
|
30
|
+
app: alepha72.TOptional<alepha72.TString>;
|
|
31
|
+
data: alepha72.TOptional<alepha72.TAny>;
|
|
32
|
+
timestamp: alepha72.TNumber;
|
|
33
33
|
}>;
|
|
34
34
|
type LogEntry = Static<typeof logEntrySchema>;
|
|
35
35
|
//#endregion
|
|
@@ -44,8 +44,8 @@ declare class DateTimeProvider {
|
|
|
44
44
|
protected readonly timeouts: Timeout[];
|
|
45
45
|
protected readonly intervals: Interval[];
|
|
46
46
|
constructor();
|
|
47
|
-
protected readonly onStart:
|
|
48
|
-
protected readonly onStop:
|
|
47
|
+
protected readonly onStart: alepha72.HookPrimitive<"start">;
|
|
48
|
+
protected readonly onStop: alepha72.HookPrimitive<"stop">;
|
|
49
49
|
setLocale(locale: string): void;
|
|
50
50
|
isDateTime(value: unknown): value is DateTime;
|
|
51
51
|
/**
|
|
@@ -177,7 +177,7 @@ declare class Logger implements LoggerInterface {
|
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../alepha/src/logger/index.d.ts
|
|
180
|
-
declare const envSchema$6:
|
|
180
|
+
declare const envSchema$6: alepha72.TObject<{
|
|
181
181
|
/**
|
|
182
182
|
* Default log level for the application.
|
|
183
183
|
*
|
|
@@ -194,14 +194,14 @@ declare const envSchema$6: alepha59.TObject<{
|
|
|
194
194
|
* LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
|
|
195
195
|
* LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
|
|
196
196
|
*/
|
|
197
|
-
LOG_LEVEL:
|
|
197
|
+
LOG_LEVEL: alepha72.TOptional<alepha72.TString>;
|
|
198
198
|
/**
|
|
199
199
|
* Built-in log formats.
|
|
200
200
|
* - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
|
|
201
201
|
* - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
|
|
202
202
|
* - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
|
|
203
203
|
*/
|
|
204
|
-
LOG_FORMAT:
|
|
204
|
+
LOG_FORMAT: alepha72.TOptional<alepha72.TUnsafe<"json" | "pretty" | "raw">>;
|
|
205
205
|
}>;
|
|
206
206
|
declare module "alepha" {
|
|
207
207
|
interface Env extends Partial<Static<typeof envSchema$6>> {}
|
|
@@ -412,7 +412,7 @@ interface ControlSelectProps extends GenericControlProps {
|
|
|
412
412
|
*
|
|
413
413
|
* Automatically detects enum values and array types from schema.
|
|
414
414
|
*/
|
|
415
|
-
declare const ControlSelect: (props: ControlSelectProps) =>
|
|
415
|
+
declare const ControlSelect: (props: ControlSelectProps) => react_jsx_runtime20.JSX.Element | null;
|
|
416
416
|
//#endregion
|
|
417
417
|
//#region src/core/components/form/Control.d.ts
|
|
418
418
|
interface ControlProps extends GenericControlProps {
|
|
@@ -452,22 +452,22 @@ interface ControlProps extends GenericControlProps {
|
|
|
452
452
|
*
|
|
453
453
|
* Automatically handles labels, descriptions, error messages, required state, and default icons.
|
|
454
454
|
*/
|
|
455
|
-
declare const Control: (_props: ControlProps) =>
|
|
455
|
+
declare const Control: (_props: ControlProps) => react_jsx_runtime20.JSX.Element | null;
|
|
456
456
|
type CustomControlProps = {
|
|
457
457
|
defaultValue: any;
|
|
458
458
|
onChange: (value: any) => void;
|
|
459
459
|
};
|
|
460
460
|
//#endregion
|
|
461
461
|
//#region ../alepha/src/server/schemas/errorSchema.d.ts
|
|
462
|
-
declare const errorSchema:
|
|
463
|
-
error:
|
|
464
|
-
status:
|
|
465
|
-
message:
|
|
466
|
-
details:
|
|
467
|
-
requestId:
|
|
468
|
-
cause:
|
|
469
|
-
name:
|
|
470
|
-
message:
|
|
462
|
+
declare const errorSchema: alepha72.TObject<{
|
|
463
|
+
error: alepha72.TString;
|
|
464
|
+
status: alepha72.TInteger;
|
|
465
|
+
message: alepha72.TString;
|
|
466
|
+
details: alepha72.TOptional<alepha72.TString>;
|
|
467
|
+
requestId: alepha72.TOptional<alepha72.TString>;
|
|
468
|
+
cause: alepha72.TOptional<alepha72.TObject<{
|
|
469
|
+
name: alepha72.TString;
|
|
470
|
+
message: alepha72.TString;
|
|
471
471
|
}>>;
|
|
472
472
|
}>;
|
|
473
473
|
type ErrorSchema = Static<typeof errorSchema>;
|
|
@@ -724,8 +724,8 @@ declare class ServerTimingProvider {
|
|
|
724
724
|
prefix: string;
|
|
725
725
|
disabled: boolean;
|
|
726
726
|
};
|
|
727
|
-
readonly onRequest:
|
|
728
|
-
readonly onResponse:
|
|
727
|
+
readonly onRequest: alepha72.HookPrimitive<"server:onRequest">;
|
|
728
|
+
readonly onResponse: alepha72.HookPrimitive<"server:onResponse">;
|
|
729
729
|
protected get handlerName(): string;
|
|
730
730
|
beginTiming(name: string): void;
|
|
731
731
|
endTiming(name: string): void;
|
|
@@ -789,11 +789,11 @@ declare class ServerProvider {
|
|
|
789
789
|
/**
|
|
790
790
|
* When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
|
|
791
791
|
*/
|
|
792
|
-
protected readonly onNodeRequest:
|
|
792
|
+
protected readonly onNodeRequest: alepha72.HookPrimitive<"node:request">;
|
|
793
793
|
/**
|
|
794
794
|
* When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
|
|
795
795
|
*/
|
|
796
|
-
protected readonly onWebRequest:
|
|
796
|
+
protected readonly onWebRequest: alepha72.HookPrimitive<"web:request">;
|
|
797
797
|
/**
|
|
798
798
|
* Handle Node.js HTTP request event.
|
|
799
799
|
*
|
|
@@ -1128,18 +1128,18 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
|
|
|
1128
1128
|
interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
|
|
1129
1129
|
//#endregion
|
|
1130
1130
|
//#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
|
|
1131
|
-
declare const envSchema$5:
|
|
1132
|
-
SERVER_PORT:
|
|
1133
|
-
SERVER_HOST:
|
|
1131
|
+
declare const envSchema$5: alepha72.TObject<{
|
|
1132
|
+
SERVER_PORT: alepha72.TInteger;
|
|
1133
|
+
SERVER_HOST: alepha72.TString;
|
|
1134
1134
|
}>;
|
|
1135
1135
|
declare module "alepha" {
|
|
1136
1136
|
interface Env extends Partial<Static<typeof envSchema$5>> {}
|
|
1137
1137
|
}
|
|
1138
1138
|
//#endregion
|
|
1139
1139
|
//#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
|
|
1140
|
-
declare const envSchema$4:
|
|
1141
|
-
SERVER_PORT:
|
|
1142
|
-
SERVER_HOST:
|
|
1140
|
+
declare const envSchema$4: alepha72.TObject<{
|
|
1141
|
+
SERVER_PORT: alepha72.TInteger;
|
|
1142
|
+
SERVER_HOST: alepha72.TString;
|
|
1143
1143
|
}>;
|
|
1144
1144
|
declare module "alepha" {
|
|
1145
1145
|
interface Env extends Partial<Static<typeof envSchema$4>> {}
|
|
@@ -1316,8 +1316,8 @@ declare class Redirection extends Error {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
//#endregion
|
|
1318
1318
|
//#region ../react/src/core/providers/ReactPageProvider.d.ts
|
|
1319
|
-
declare const envSchema$3:
|
|
1320
|
-
REACT_STRICT_MODE:
|
|
1319
|
+
declare const envSchema$3: alepha72.TObject<{
|
|
1320
|
+
REACT_STRICT_MODE: alepha72.TBoolean;
|
|
1321
1321
|
}>;
|
|
1322
1322
|
declare module "alepha" {
|
|
1323
1323
|
interface Env extends Partial<Static<typeof envSchema$3>> {}
|
|
@@ -1373,6 +1373,7 @@ interface ReactRouterState {
|
|
|
1373
1373
|
* Optional meta information associated with the current page.
|
|
1374
1374
|
*/
|
|
1375
1375
|
meta: Record<string, any>;
|
|
1376
|
+
name?: string;
|
|
1376
1377
|
}
|
|
1377
1378
|
interface TransitionOptions {
|
|
1378
1379
|
previous?: PreviousLayerData[];
|
|
@@ -1617,15 +1618,15 @@ type CssAnimation = {
|
|
|
1617
1618
|
};
|
|
1618
1619
|
//#endregion
|
|
1619
1620
|
//#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
|
|
1620
|
-
declare const userAccountInfoSchema:
|
|
1621
|
-
id:
|
|
1622
|
-
name:
|
|
1623
|
-
email:
|
|
1624
|
-
username:
|
|
1625
|
-
picture:
|
|
1626
|
-
sessionId:
|
|
1627
|
-
organizations:
|
|
1628
|
-
roles:
|
|
1621
|
+
declare const userAccountInfoSchema: alepha72.TObject<{
|
|
1622
|
+
id: alepha72.TString;
|
|
1623
|
+
name: alepha72.TOptional<alepha72.TString>;
|
|
1624
|
+
email: alepha72.TOptional<alepha72.TString>;
|
|
1625
|
+
username: alepha72.TOptional<alepha72.TString>;
|
|
1626
|
+
picture: alepha72.TOptional<alepha72.TString>;
|
|
1627
|
+
sessionId: alepha72.TOptional<alepha72.TString>;
|
|
1628
|
+
organizations: alepha72.TOptional<alepha72.TArray<alepha72.TString>>;
|
|
1629
|
+
roles: alepha72.TOptional<alepha72.TArray<alepha72.TString>>;
|
|
1629
1630
|
}>;
|
|
1630
1631
|
type UserAccount = Static<typeof userAccountInfoSchema>;
|
|
1631
1632
|
//#endregion
|
|
@@ -1651,8 +1652,8 @@ interface UserAccountToken extends UserAccount {
|
|
|
1651
1652
|
}
|
|
1652
1653
|
//#endregion
|
|
1653
1654
|
//#region ../alepha/src/security/providers/SecurityProvider.d.ts
|
|
1654
|
-
declare const envSchema$2:
|
|
1655
|
-
APP_SECRET:
|
|
1655
|
+
declare const envSchema$2: alepha72.TObject<{
|
|
1656
|
+
APP_SECRET: alepha72.TString;
|
|
1656
1657
|
}>;
|
|
1657
1658
|
declare module "alepha" {
|
|
1658
1659
|
interface Env extends Partial<Static<typeof envSchema$2>> {}
|
|
@@ -1745,15 +1746,15 @@ declare module "alepha/server" {
|
|
|
1745
1746
|
*/
|
|
1746
1747
|
//#endregion
|
|
1747
1748
|
//#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
|
|
1748
|
-
declare const apiLinksResponseSchema:
|
|
1749
|
-
prefix:
|
|
1750
|
-
links:
|
|
1751
|
-
name:
|
|
1752
|
-
group:
|
|
1753
|
-
path:
|
|
1754
|
-
method:
|
|
1755
|
-
requestBodyType:
|
|
1756
|
-
service:
|
|
1749
|
+
declare const apiLinksResponseSchema: alepha72.TObject<{
|
|
1750
|
+
prefix: alepha72.TOptional<alepha72.TString>;
|
|
1751
|
+
links: alepha72.TArray<alepha72.TObject<{
|
|
1752
|
+
name: alepha72.TString;
|
|
1753
|
+
group: alepha72.TOptional<alepha72.TString>;
|
|
1754
|
+
path: alepha72.TString;
|
|
1755
|
+
method: alepha72.TOptional<alepha72.TString>;
|
|
1756
|
+
requestBodyType: alepha72.TOptional<alepha72.TString>;
|
|
1757
|
+
service: alepha72.TOptional<alepha72.TString>;
|
|
1757
1758
|
}>>;
|
|
1758
1759
|
}>;
|
|
1759
1760
|
type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
|
|
@@ -1783,8 +1784,8 @@ declare module "alepha" {
|
|
|
1783
1784
|
*/
|
|
1784
1785
|
//#endregion
|
|
1785
1786
|
//#region ../react/src/core/providers/ReactBrowserProvider.d.ts
|
|
1786
|
-
declare const envSchema$1:
|
|
1787
|
-
REACT_ROOT_ID:
|
|
1787
|
+
declare const envSchema$1: alepha72.TObject<{
|
|
1788
|
+
REACT_ROOT_ID: alepha72.TString;
|
|
1788
1789
|
}>;
|
|
1789
1790
|
declare module "alepha" {
|
|
1790
1791
|
interface Env extends Partial<Static<typeof envSchema$1>> {}
|
|
@@ -1792,8 +1793,8 @@ declare module "alepha" {
|
|
|
1792
1793
|
/**
|
|
1793
1794
|
* React browser renderer configuration atom
|
|
1794
1795
|
*/
|
|
1795
|
-
declare const reactBrowserOptions:
|
|
1796
|
-
scrollRestoration:
|
|
1796
|
+
declare const reactBrowserOptions: alepha72.Atom<alepha72.TObject<{
|
|
1797
|
+
scrollRestoration: alepha72.TUnsafe<"top" | "manual">;
|
|
1797
1798
|
}>, "alepha.react.browser.options">;
|
|
1798
1799
|
type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
|
|
1799
1800
|
declare module "alepha" {
|
|
@@ -1859,11 +1860,86 @@ interface UseActiveOptions {
|
|
|
1859
1860
|
startWith?: boolean;
|
|
1860
1861
|
}
|
|
1861
1862
|
//#endregion
|
|
1863
|
+
//#region ../react/src/head/interfaces/Head.d.ts
|
|
1864
|
+
interface Head extends SimpleHead {
|
|
1865
|
+
description?: string;
|
|
1866
|
+
keywords?: string[];
|
|
1867
|
+
author?: string;
|
|
1868
|
+
robots?: string;
|
|
1869
|
+
themeColor?: string;
|
|
1870
|
+
viewport?: string | {
|
|
1871
|
+
width?: string;
|
|
1872
|
+
height?: string;
|
|
1873
|
+
initialScale?: string;
|
|
1874
|
+
maximumScale?: string;
|
|
1875
|
+
userScalable?: "no" | "yes" | "0" | "1";
|
|
1876
|
+
interactiveWidget?: "resizes-visual" | "resizes-content" | "overlays-content";
|
|
1877
|
+
};
|
|
1878
|
+
og?: {
|
|
1879
|
+
title?: string;
|
|
1880
|
+
description?: string;
|
|
1881
|
+
image?: string;
|
|
1882
|
+
url?: string;
|
|
1883
|
+
type?: string;
|
|
1884
|
+
};
|
|
1885
|
+
twitter?: {
|
|
1886
|
+
card?: string;
|
|
1887
|
+
title?: string;
|
|
1888
|
+
description?: string;
|
|
1889
|
+
image?: string;
|
|
1890
|
+
site?: string;
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
interface SimpleHead {
|
|
1894
|
+
title?: string;
|
|
1895
|
+
titleSeparator?: string;
|
|
1896
|
+
htmlAttributes?: Record<string, string>;
|
|
1897
|
+
bodyAttributes?: Record<string, string>;
|
|
1898
|
+
meta?: Array<{
|
|
1899
|
+
name: string;
|
|
1900
|
+
content: string;
|
|
1901
|
+
}>;
|
|
1902
|
+
link?: Array<{
|
|
1903
|
+
rel: string;
|
|
1904
|
+
href: string;
|
|
1905
|
+
}>;
|
|
1906
|
+
}
|
|
1907
|
+
//#endregion
|
|
1908
|
+
//#region ../react/src/head/providers/HeadProvider.d.ts
|
|
1909
|
+
declare class HeadProvider {
|
|
1910
|
+
global?: Array<Head | (() => Head)>;
|
|
1911
|
+
fillHead(state: ReactRouterState): void;
|
|
1912
|
+
protected fillHeadByPage(page: PageRoute, state: ReactRouterState, props: Record<string, any>): void;
|
|
1913
|
+
}
|
|
1914
|
+
//#endregion
|
|
1915
|
+
//#region ../react/src/head/primitives/$head.d.ts
|
|
1916
|
+
type HeadPrimitiveOptions = Head | (() => Head);
|
|
1917
|
+
declare class HeadPrimitive extends Primitive<HeadPrimitiveOptions> {
|
|
1918
|
+
protected readonly provider: HeadProvider;
|
|
1919
|
+
protected onInit(): void;
|
|
1920
|
+
}
|
|
1921
|
+
//#endregion
|
|
1922
|
+
//#region ../react/src/head/index.d.ts
|
|
1923
|
+
declare module "@alepha/react" {
|
|
1924
|
+
interface PagePrimitiveOptions<TConfig extends PageConfigSchema = PageConfigSchema, TProps extends object = TPropsDefault, TPropsParent extends object = TPropsParentDefault> {
|
|
1925
|
+
head?: Head | ((props: TProps, previous?: Head) => Head);
|
|
1926
|
+
}
|
|
1927
|
+
interface ReactRouterState {
|
|
1928
|
+
head: Head;
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Fill `<head>` server & client side.
|
|
1933
|
+
*
|
|
1934
|
+
* @see {@link ServerHeadProvider}
|
|
1935
|
+
* @module alepha.react.head
|
|
1936
|
+
*/
|
|
1937
|
+
//#endregion
|
|
1862
1938
|
//#region ../react/src/core/providers/ReactServerProvider.d.ts
|
|
1863
|
-
declare const envSchema:
|
|
1864
|
-
REACT_SSR_ENABLED:
|
|
1865
|
-
REACT_ROOT_ID:
|
|
1866
|
-
REACT_SERVER_TEMPLATE:
|
|
1939
|
+
declare const envSchema: alepha72.TObject<{
|
|
1940
|
+
REACT_SSR_ENABLED: alepha72.TOptional<alepha72.TBoolean>;
|
|
1941
|
+
REACT_ROOT_ID: alepha72.TString;
|
|
1942
|
+
REACT_SERVER_TEMPLATE: alepha72.TOptional<alepha72.TString>;
|
|
1867
1943
|
}>;
|
|
1868
1944
|
declare module "alepha" {
|
|
1869
1945
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -1874,11 +1950,11 @@ declare module "alepha" {
|
|
|
1874
1950
|
/**
|
|
1875
1951
|
* React server provider configuration atom
|
|
1876
1952
|
*/
|
|
1877
|
-
declare const reactServerOptions:
|
|
1878
|
-
publicDir:
|
|
1879
|
-
staticServer:
|
|
1880
|
-
disabled:
|
|
1881
|
-
path:
|
|
1953
|
+
declare const reactServerOptions: alepha72.Atom<alepha72.TObject<{
|
|
1954
|
+
publicDir: alepha72.TString;
|
|
1955
|
+
staticServer: alepha72.TObject<{
|
|
1956
|
+
disabled: alepha72.TBoolean;
|
|
1957
|
+
path: alepha72.TString;
|
|
1882
1958
|
}>;
|
|
1883
1959
|
}>, "alepha.react.server.options">;
|
|
1884
1960
|
type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
|
|
@@ -2078,9 +2154,13 @@ interface ActionCommonProps extends ButtonProps {
|
|
|
2078
2154
|
* Additional props to pass to the ThemeIcon wrapping the icon.
|
|
2079
2155
|
*/
|
|
2080
2156
|
themeIconProps?: ThemeIconProps;
|
|
2157
|
+
/**
|
|
2158
|
+
* Visual intent of the action button.
|
|
2159
|
+
*/
|
|
2160
|
+
intent?: "primary" | "success" | "danger" | "warning" | "info";
|
|
2081
2161
|
}
|
|
2082
2162
|
type ActionProps = ActionCommonProps & (ActionNavigationButtonProps | ActionClickButtonProps | ActionSubmitButtonProps | ActionHookButtonProps | {});
|
|
2083
|
-
declare const ActionButton: (_props: ActionProps) =>
|
|
2163
|
+
declare const ActionButton: (_props: ActionProps) => react_jsx_runtime20.JSX.Element;
|
|
2084
2164
|
interface ActionSubmitButtonProps extends ButtonProps {
|
|
2085
2165
|
form: FormModel<any>;
|
|
2086
2166
|
type?: "submit" | "reset";
|
|
@@ -2103,7 +2183,7 @@ interface ActionNavigationButtonProps extends ButtonProps {
|
|
|
2103
2183
|
//#endregion
|
|
2104
2184
|
//#region src/core/components/buttons/BurgerButton.d.ts
|
|
2105
2185
|
interface BurgerButtonProps extends BurgerProps {}
|
|
2106
|
-
declare const BurgerButton: (props: BurgerButtonProps) =>
|
|
2186
|
+
declare const BurgerButton: (props: BurgerButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
2107
2187
|
//#endregion
|
|
2108
2188
|
//#region src/core/components/buttons/ClipboardButton.d.ts
|
|
2109
2189
|
interface ClipboardButtonProps extends Omit<ActionCommonProps, "onClick" | "icon"> {
|
|
@@ -2124,7 +2204,7 @@ interface ClipboardButtonProps extends Omit<ActionCommonProps, "onClick" | "icon
|
|
|
2124
2204
|
*/
|
|
2125
2205
|
copiedLabel?: string;
|
|
2126
2206
|
}
|
|
2127
|
-
declare const ClipboardButton: (props: ClipboardButtonProps) =>
|
|
2207
|
+
declare const ClipboardButton: (props: ClipboardButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
2128
2208
|
//#endregion
|
|
2129
2209
|
//#region src/core/components/buttons/DarkModeButton.d.ts
|
|
2130
2210
|
interface DarkModeButtonProps {
|
|
@@ -2135,21 +2215,27 @@ interface DarkModeButtonProps {
|
|
|
2135
2215
|
segmentedProps?: Partial<SegmentedControlProps>;
|
|
2136
2216
|
actionProps?: Partial<ActionProps>;
|
|
2137
2217
|
}
|
|
2138
|
-
declare const DarkModeButton: (props: DarkModeButtonProps) =>
|
|
2218
|
+
declare const DarkModeButton: (props: DarkModeButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
2139
2219
|
//#endregion
|
|
2140
2220
|
//#region src/core/components/buttons/LanguageButton.d.ts
|
|
2141
2221
|
interface LanguageButtonProps {
|
|
2142
2222
|
languages?: string[];
|
|
2143
2223
|
actionProps?: ActionProps;
|
|
2144
2224
|
}
|
|
2145
|
-
declare const LanguageButton: (props: LanguageButtonProps) =>
|
|
2225
|
+
declare const LanguageButton: (props: LanguageButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
2146
2226
|
//#endregion
|
|
2147
2227
|
//#region src/core/components/buttons/OmnibarButton.d.ts
|
|
2148
2228
|
interface OmnibarButtonProps {
|
|
2149
2229
|
actionProps?: ActionProps;
|
|
2150
2230
|
collapsed?: boolean;
|
|
2151
2231
|
}
|
|
2152
|
-
declare const OmnibarButton: (props: OmnibarButtonProps) =>
|
|
2232
|
+
declare const OmnibarButton: (props: OmnibarButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
2233
|
+
//#endregion
|
|
2234
|
+
//#region src/core/components/buttons/ThemeButton.d.ts
|
|
2235
|
+
interface ThemeButtonProps {
|
|
2236
|
+
actionProps?: Partial<ActionProps>;
|
|
2237
|
+
}
|
|
2238
|
+
declare const ThemeButton: (props: ThemeButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
2153
2239
|
//#endregion
|
|
2154
2240
|
//#region src/core/components/data/JsonViewer.d.ts
|
|
2155
2241
|
interface JsonViewerProps {
|
|
@@ -2165,7 +2251,7 @@ declare const JsonViewer: ({
|
|
|
2165
2251
|
maxDepth,
|
|
2166
2252
|
copyable,
|
|
2167
2253
|
size
|
|
2168
|
-
}: JsonViewerProps) =>
|
|
2254
|
+
}: JsonViewerProps) => react_jsx_runtime20.JSX.Element;
|
|
2169
2255
|
//#endregion
|
|
2170
2256
|
//#region src/core/services/DialogService.d.ts
|
|
2171
2257
|
interface BaseDialogOptions extends Partial<ModalProps> {
|
|
@@ -2250,19 +2336,19 @@ declare class DialogService {
|
|
|
2250
2336
|
declare const AlertDialog: ({
|
|
2251
2337
|
options,
|
|
2252
2338
|
onClose
|
|
2253
|
-
}: AlertDialogProps) =>
|
|
2339
|
+
}: AlertDialogProps) => react_jsx_runtime20.JSX.Element;
|
|
2254
2340
|
//#endregion
|
|
2255
2341
|
//#region src/core/components/dialogs/ConfirmDialog.d.ts
|
|
2256
2342
|
declare const ConfirmDialog: ({
|
|
2257
2343
|
options,
|
|
2258
2344
|
onConfirm
|
|
2259
|
-
}: ConfirmDialogProps) =>
|
|
2345
|
+
}: ConfirmDialogProps) => react_jsx_runtime20.JSX.Element;
|
|
2260
2346
|
//#endregion
|
|
2261
2347
|
//#region src/core/components/dialogs/PromptDialog.d.ts
|
|
2262
2348
|
declare const PromptDialog: ({
|
|
2263
2349
|
options,
|
|
2264
2350
|
onSubmit
|
|
2265
|
-
}: PromptDialogProps) =>
|
|
2351
|
+
}: PromptDialogProps) => react_jsx_runtime20.JSX.Element;
|
|
2266
2352
|
//#endregion
|
|
2267
2353
|
//#region src/core/components/form/ControlDate.d.ts
|
|
2268
2354
|
interface ControlDateProps extends GenericControlProps {
|
|
@@ -2280,7 +2366,7 @@ interface ControlDateProps extends GenericControlProps {
|
|
|
2280
2366
|
*
|
|
2281
2367
|
* Automatically detects date formats from schema and renders appropriate picker.
|
|
2282
2368
|
*/
|
|
2283
|
-
declare const ControlDate: (props: ControlDateProps) =>
|
|
2369
|
+
declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime20.JSX.Element | null;
|
|
2284
2370
|
//#endregion
|
|
2285
2371
|
//#region src/core/components/form/ControlQueryBuilder.d.ts
|
|
2286
2372
|
interface ControlQueryBuilderProps extends Omit<TextInputProps, "value" | "onChange"> {
|
|
@@ -2299,7 +2385,7 @@ declare const ControlQueryBuilder: ({
|
|
|
2299
2385
|
onChange,
|
|
2300
2386
|
placeholder,
|
|
2301
2387
|
...textInputProps
|
|
2302
|
-
}: ControlQueryBuilderProps) =>
|
|
2388
|
+
}: ControlQueryBuilderProps) => react_jsx_runtime20.JSX.Element;
|
|
2303
2389
|
//#endregion
|
|
2304
2390
|
//#region src/core/components/form/TypeForm.d.ts
|
|
2305
2391
|
interface TypeFormProps<T$1 extends TObject> {
|
|
@@ -2345,7 +2431,7 @@ interface TypeFormProps<T$1 extends TObject> {
|
|
|
2345
2431
|
* return <TypeForm form={form} columns={2} />;
|
|
2346
2432
|
* ```
|
|
2347
2433
|
*/
|
|
2348
|
-
declare const TypeForm: <T$1 extends TObject>(props: TypeFormProps<T$1>) =>
|
|
2434
|
+
declare const TypeForm: <T$1 extends TObject>(props: TypeFormProps<T$1>) => react_jsx_runtime20.JSX.Element | null;
|
|
2349
2435
|
//#endregion
|
|
2350
2436
|
//#region src/core/components/layout/AppBar.d.ts
|
|
2351
2437
|
type AppBarItem = AppBarElement | AppBarBurger | AppBarDark | AppBarSearch | AppBarLang | AppBarSpacer | AppBarDivider;
|
|
@@ -2384,7 +2470,7 @@ interface AppBarProps {
|
|
|
2384
2470
|
flexProps?: FlexProps;
|
|
2385
2471
|
items?: AppBarItem[];
|
|
2386
2472
|
}
|
|
2387
|
-
declare const AppBar: (props: AppBarProps) =>
|
|
2473
|
+
declare const AppBar: (props: AppBarProps) => react_jsx_runtime20.JSX.Element;
|
|
2388
2474
|
//#endregion
|
|
2389
2475
|
//#region src/core/components/layout/Sidebar.d.ts
|
|
2390
2476
|
interface SidebarProps {
|
|
@@ -2401,7 +2487,7 @@ interface SidebarProps {
|
|
|
2401
2487
|
paths?: string[];
|
|
2402
2488
|
};
|
|
2403
2489
|
}
|
|
2404
|
-
declare const Sidebar: (props: SidebarProps) =>
|
|
2490
|
+
declare const Sidebar: (props: SidebarProps) => react_jsx_runtime20.JSX.Element;
|
|
2405
2491
|
interface SidebarItemProps {
|
|
2406
2492
|
item: SidebarMenuItem;
|
|
2407
2493
|
level: number;
|
|
@@ -2447,6 +2533,7 @@ interface SidebarMenuItem extends SidebarAbstractItem {
|
|
|
2447
2533
|
rightSection?: ReactNode;
|
|
2448
2534
|
theme?: SidebarButtonTheme;
|
|
2449
2535
|
actionProps?: ActionProps;
|
|
2536
|
+
can?: () => boolean;
|
|
2450
2537
|
}
|
|
2451
2538
|
interface SidebarButtonTheme {
|
|
2452
2539
|
radius?: MantineBreakpoint;
|
|
@@ -2488,7 +2575,7 @@ declare module "alepha" {
|
|
|
2488
2575
|
"alepha.ui.sidebar.collapsed"?: boolean;
|
|
2489
2576
|
}
|
|
2490
2577
|
}
|
|
2491
|
-
declare const AdminShell: (props: AdminShellProps) =>
|
|
2578
|
+
declare const AdminShell: (props: AdminShellProps) => react_jsx_runtime20.JSX.Element;
|
|
2492
2579
|
//#endregion
|
|
2493
2580
|
//#region src/core/components/layout/Omnibar.d.ts
|
|
2494
2581
|
interface OmnibarProps {
|
|
@@ -2496,7 +2583,7 @@ interface OmnibarProps {
|
|
|
2496
2583
|
searchPlaceholder?: string;
|
|
2497
2584
|
nothingFound?: ReactNode;
|
|
2498
2585
|
}
|
|
2499
|
-
declare const Omnibar: (props: OmnibarProps) =>
|
|
2586
|
+
declare const Omnibar: (props: OmnibarProps) => react_jsx_runtime20.JSX.Element;
|
|
2500
2587
|
//#endregion
|
|
2501
2588
|
//#region src/core/components/layout/AlephaMantineProvider.d.ts
|
|
2502
2589
|
interface AlephaMantineProviderProps {
|
|
@@ -2508,7 +2595,7 @@ interface AlephaMantineProviderProps {
|
|
|
2508
2595
|
modals?: ModalsProviderProps;
|
|
2509
2596
|
omnibar?: OmnibarProps;
|
|
2510
2597
|
}
|
|
2511
|
-
declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) =>
|
|
2598
|
+
declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => react_jsx_runtime20.JSX.Element;
|
|
2512
2599
|
//#endregion
|
|
2513
2600
|
//#region src/core/components/table/DataTable.d.ts
|
|
2514
2601
|
interface DataTableColumnContext<Filters extends TObject> {
|
|
@@ -2570,7 +2657,7 @@ interface DataTableProps<T$1 extends object, Filters extends TObject> {
|
|
|
2570
2657
|
*/
|
|
2571
2658
|
tableTrProps?: (item: T$1) => TableTrProps;
|
|
2572
2659
|
}
|
|
2573
|
-
declare const DataTable: <T$1 extends object, Filters extends TObject>(props: DataTableProps<T$1, Filters>) =>
|
|
2660
|
+
declare const DataTable: <T$1 extends object, Filters extends TObject>(props: DataTableProps<T$1, Filters>) => react_jsx_runtime20.JSX.Element;
|
|
2574
2661
|
//#endregion
|
|
2575
2662
|
//#region src/core/constants/ui.d.ts
|
|
2576
2663
|
declare const ui: {
|
|
@@ -2640,6 +2727,104 @@ declare class ToastService {
|
|
|
2640
2727
|
*/
|
|
2641
2728
|
declare const useToast: () => ToastService;
|
|
2642
2729
|
//#endregion
|
|
2730
|
+
//#region ../alepha/src/server-cookies/primitives/$cookie.d.ts
|
|
2731
|
+
interface CookiePrimitiveOptions<T$1 extends TSchema> {
|
|
2732
|
+
/** The schema for the cookie's value, used for validation and type safety. */
|
|
2733
|
+
schema: T$1;
|
|
2734
|
+
/** The name of the cookie. */
|
|
2735
|
+
name?: string;
|
|
2736
|
+
/** The cookie's path. Defaults to "/". */
|
|
2737
|
+
path?: string;
|
|
2738
|
+
/** Time-to-live for the cookie. Maps to `Max-Age`. */
|
|
2739
|
+
ttl?: DurationLike;
|
|
2740
|
+
/** If true, the cookie is only sent over HTTPS. Defaults to true in production. */
|
|
2741
|
+
secure?: boolean;
|
|
2742
|
+
/** If true, the cookie cannot be accessed by client-side scripts. */
|
|
2743
|
+
httpOnly?: boolean;
|
|
2744
|
+
/** SameSite policy for the cookie. Defaults to "lax". */
|
|
2745
|
+
sameSite?: "strict" | "lax" | "none";
|
|
2746
|
+
/** The domain for the cookie. */
|
|
2747
|
+
domain?: string;
|
|
2748
|
+
/** If true, the cookie value will be compressed using zlib. */
|
|
2749
|
+
compress?: boolean;
|
|
2750
|
+
/** If true, the cookie value will be encrypted. Requires `COOKIE_SECRET` env var. */
|
|
2751
|
+
encrypt?: boolean;
|
|
2752
|
+
/** If true, the cookie will be signed to prevent tampering. Requires `COOKIE_SECRET` env var. */
|
|
2753
|
+
sign?: boolean;
|
|
2754
|
+
}
|
|
2755
|
+
interface AbstractCookiePrimitive<T$1 extends TSchema> {
|
|
2756
|
+
readonly name: string;
|
|
2757
|
+
readonly options: CookiePrimitiveOptions<T$1>;
|
|
2758
|
+
set(value: Static<T$1>, options?: {
|
|
2759
|
+
cookies?: Cookies;
|
|
2760
|
+
ttl?: DurationLike;
|
|
2761
|
+
}): void;
|
|
2762
|
+
get(options?: {
|
|
2763
|
+
cookies?: Cookies;
|
|
2764
|
+
}): Static<T$1> | undefined;
|
|
2765
|
+
del(options?: {
|
|
2766
|
+
cookies?: Cookies;
|
|
2767
|
+
}): void;
|
|
2768
|
+
}
|
|
2769
|
+
interface Cookies {
|
|
2770
|
+
req: Record<string, string>;
|
|
2771
|
+
res: Record<string, Cookie | null>;
|
|
2772
|
+
}
|
|
2773
|
+
interface Cookie {
|
|
2774
|
+
value: string;
|
|
2775
|
+
path?: string;
|
|
2776
|
+
maxAge?: number;
|
|
2777
|
+
secure?: boolean;
|
|
2778
|
+
httpOnly?: boolean;
|
|
2779
|
+
sameSite?: "strict" | "lax" | "none";
|
|
2780
|
+
domain?: string;
|
|
2781
|
+
}
|
|
2782
|
+
//#endregion
|
|
2783
|
+
//#region ../alepha/src/server-cookies/index.d.ts
|
|
2784
|
+
declare module "alepha/server" {
|
|
2785
|
+
interface ServerRequest {
|
|
2786
|
+
cookies: Cookies;
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Provides HTTP cookie management capabilities for server requests and responses with type-safe cookie primitives.
|
|
2791
|
+
*
|
|
2792
|
+
* The server-cookies module enables declarative cookie handling using the `$cookie` primitive on class properties.
|
|
2793
|
+
* It offers automatic cookie parsing, secure cookie configuration, and seamless integration with server routes
|
|
2794
|
+
* for managing user sessions, preferences, and authentication tokens.
|
|
2795
|
+
*
|
|
2796
|
+
* @see {@link $cookie}
|
|
2797
|
+
* @module alepha.server.cookies
|
|
2798
|
+
*/
|
|
2799
|
+
//#endregion
|
|
2800
|
+
//#region src/core/providers/ThemeProvider.d.ts
|
|
2801
|
+
declare const themeAtom: alepha72.Atom<alepha72.TObject<{
|
|
2802
|
+
id: alepha72.TString;
|
|
2803
|
+
}>, "alepha.ui.theme">;
|
|
2804
|
+
type Theme = Static<typeof themeAtom.schema>;
|
|
2805
|
+
declare module "alepha" {
|
|
2806
|
+
interface State {
|
|
2807
|
+
[themeAtom.key]?: Theme;
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
type AlephaTheme = MantineThemeOverride & {
|
|
2811
|
+
id: string;
|
|
2812
|
+
label: string;
|
|
2813
|
+
description: string;
|
|
2814
|
+
};
|
|
2815
|
+
declare class ThemeProvider {
|
|
2816
|
+
protected readonly alepha: Alepha;
|
|
2817
|
+
protected themeCookie: AbstractCookiePrimitive<alepha72.TObject<{
|
|
2818
|
+
id: alepha72.TString;
|
|
2819
|
+
}>>;
|
|
2820
|
+
themes: AlephaTheme[];
|
|
2821
|
+
protected themeHead: HeadPrimitive;
|
|
2822
|
+
setTheme(theme: Theme): void;
|
|
2823
|
+
getTheme(): {
|
|
2824
|
+
id: string;
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
//#endregion
|
|
2643
2828
|
//#region src/core/RootRouter.d.ts
|
|
2644
2829
|
declare class RootRouter {
|
|
2645
2830
|
readonly root: PagePrimitive<PageConfigSchema, any, TPropsParentDefault>;
|
|
@@ -2729,7 +2914,7 @@ declare module "@alepha/react" {
|
|
|
2729
2914
|
/**
|
|
2730
2915
|
* Optional icon for the page.
|
|
2731
2916
|
*/
|
|
2732
|
-
icon?: ReactNode;
|
|
2917
|
+
icon?: ReactNode | ComponentType;
|
|
2733
2918
|
}
|
|
2734
2919
|
}
|
|
2735
2920
|
/**
|
|
@@ -2737,7 +2922,7 @@ declare module "@alepha/react" {
|
|
|
2737
2922
|
*
|
|
2738
2923
|
* @module alepha.ui
|
|
2739
2924
|
*/
|
|
2740
|
-
declare const AlephaUI:
|
|
2925
|
+
declare const AlephaUI: alepha72.Service<alepha72.Module>;
|
|
2741
2926
|
//#endregion
|
|
2742
|
-
export { ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, type AdminShellProps, AlephaMantineProvider, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, BurgerButton, ClipboardButton, type ClipboardButtonProps, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlDate, ControlQueryBuilder, ControlSelect, DarkModeButton, DataTable, type DataTableColumn, type DataTableProps, DialogService, Flex, IconSize, JsonViewer, LanguageButton, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps, RootRouter, SchemaField, Sidebar, type SidebarAbstractItem, type SidebarButtonTheme, type SidebarDivider, type SidebarElement, type SidebarItemProps, type SidebarMenuItem, type SidebarNode, type SidebarProps, type SidebarSearch, type SidebarSection, type SidebarSpacer, type SidebarTheme, Text, ToastService, TypeForm, capitalize, extractSchemaFields, getDefaultIcon, getOperatorsForField, prettyName, ui, useDialog, useToast };
|
|
2927
|
+
export { ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, type AdminShellProps, AlephaMantineProvider, AlephaTheme, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, BurgerButton, ClipboardButton, type ClipboardButtonProps, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlDate, ControlQueryBuilder, ControlSelect, DarkModeButton, DataTable, type DataTableColumn, type DataTableProps, DialogService, Flex, IconSize, JsonViewer, LanguageButton, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps, RootRouter, SchemaField, Sidebar, type SidebarAbstractItem, type SidebarButtonTheme, type SidebarDivider, type SidebarElement, type SidebarItemProps, type SidebarMenuItem, type SidebarNode, type SidebarProps, type SidebarSearch, type SidebarSection, type SidebarSpacer, type SidebarTheme, Text, Theme, ThemeButton, type ThemeButtonProps, ThemeProvider, ToastService, TypeForm, capitalize, extractSchemaFields, getDefaultIcon, getOperatorsForField, prettyName, themeAtom, ui, useDialog, useToast };
|
|
2743
2928
|
//# sourceMappingURL=index.d.ts.map
|