alepha 0.11.1 → 0.11.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/api/jobs.d.ts +133 -133
- package/api/notifications.d.ts +99 -99
- package/api/users.d.ts +5 -5
- package/command.d.ts +4 -4
- package/devtools.d.ts +247 -247
- package/package.json +50 -50
- package/postgres.d.ts +18 -14
- package/server.d.ts +21 -20
- package/ui.d.ts +13 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alepha",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -15,55 +15,55 @@
|
|
|
15
15
|
"main": "./core.js",
|
|
16
16
|
"types": "./core.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alepha/api-files": "0.11.
|
|
19
|
-
"@alepha/api-jobs": "0.11.
|
|
20
|
-
"@alepha/api-notifications": "0.11.
|
|
21
|
-
"@alepha/api-users": "0.11.
|
|
22
|
-
"@alepha/api-verifications": "0.11.
|
|
23
|
-
"@alepha/batch": "0.11.
|
|
24
|
-
"@alepha/bucket": "0.11.
|
|
25
|
-
"@alepha/cache": "0.11.
|
|
26
|
-
"@alepha/cache-redis": "0.11.
|
|
27
|
-
"@alepha/command": "0.11.
|
|
28
|
-
"@alepha/core": "0.11.
|
|
29
|
-
"@alepha/datetime": "0.11.
|
|
30
|
-
"@alepha/devtools": "0.11.
|
|
31
|
-
"@alepha/email": "0.11.
|
|
32
|
-
"@alepha/file": "0.11.
|
|
33
|
-
"@alepha/lock": "0.11.
|
|
34
|
-
"@alepha/lock-redis": "0.11.
|
|
35
|
-
"@alepha/logger": "0.11.
|
|
36
|
-
"@alepha/postgres": "0.11.
|
|
37
|
-
"@alepha/queue": "0.11.
|
|
38
|
-
"@alepha/queue-redis": "0.11.
|
|
39
|
-
"@alepha/react": "0.11.
|
|
40
|
-
"@alepha/react-auth": "0.11.
|
|
41
|
-
"@alepha/react-form": "0.11.
|
|
42
|
-
"@alepha/react-head": "0.11.
|
|
43
|
-
"@alepha/react-i18n": "0.11.
|
|
44
|
-
"@alepha/redis": "0.11.
|
|
45
|
-
"@alepha/retry": "0.11.
|
|
46
|
-
"@alepha/router": "0.11.
|
|
47
|
-
"@alepha/scheduler": "0.11.
|
|
48
|
-
"@alepha/security": "0.11.
|
|
49
|
-
"@alepha/server": "0.11.
|
|
50
|
-
"@alepha/server-cache": "0.11.
|
|
51
|
-
"@alepha/server-compress": "0.11.
|
|
52
|
-
"@alepha/server-cookies": "0.11.
|
|
53
|
-
"@alepha/server-cors": "0.11.
|
|
54
|
-
"@alepha/server-health": "0.11.
|
|
55
|
-
"@alepha/server-helmet": "0.11.
|
|
56
|
-
"@alepha/server-links": "0.11.
|
|
57
|
-
"@alepha/server-metrics": "0.11.
|
|
58
|
-
"@alepha/server-multipart": "0.11.
|
|
59
|
-
"@alepha/server-proxy": "0.11.
|
|
60
|
-
"@alepha/server-security": "0.11.
|
|
61
|
-
"@alepha/server-static": "0.11.
|
|
62
|
-
"@alepha/server-swagger": "0.11.
|
|
63
|
-
"@alepha/topic": "0.11.
|
|
64
|
-
"@alepha/topic-redis": "0.11.
|
|
65
|
-
"@alepha/ui": "0.11.
|
|
66
|
-
"@alepha/vite": "0.11.
|
|
18
|
+
"@alepha/api-files": "0.11.2",
|
|
19
|
+
"@alepha/api-jobs": "0.11.2",
|
|
20
|
+
"@alepha/api-notifications": "0.11.2",
|
|
21
|
+
"@alepha/api-users": "0.11.2",
|
|
22
|
+
"@alepha/api-verifications": "0.11.2",
|
|
23
|
+
"@alepha/batch": "0.11.2",
|
|
24
|
+
"@alepha/bucket": "0.11.2",
|
|
25
|
+
"@alepha/cache": "0.11.2",
|
|
26
|
+
"@alepha/cache-redis": "0.11.2",
|
|
27
|
+
"@alepha/command": "0.11.2",
|
|
28
|
+
"@alepha/core": "0.11.2",
|
|
29
|
+
"@alepha/datetime": "0.11.2",
|
|
30
|
+
"@alepha/devtools": "0.11.2",
|
|
31
|
+
"@alepha/email": "0.11.2",
|
|
32
|
+
"@alepha/file": "0.11.2",
|
|
33
|
+
"@alepha/lock": "0.11.2",
|
|
34
|
+
"@alepha/lock-redis": "0.11.2",
|
|
35
|
+
"@alepha/logger": "0.11.2",
|
|
36
|
+
"@alepha/postgres": "0.11.2",
|
|
37
|
+
"@alepha/queue": "0.11.2",
|
|
38
|
+
"@alepha/queue-redis": "0.11.2",
|
|
39
|
+
"@alepha/react": "0.11.2",
|
|
40
|
+
"@alepha/react-auth": "0.11.2",
|
|
41
|
+
"@alepha/react-form": "0.11.2",
|
|
42
|
+
"@alepha/react-head": "0.11.2",
|
|
43
|
+
"@alepha/react-i18n": "0.11.2",
|
|
44
|
+
"@alepha/redis": "0.11.2",
|
|
45
|
+
"@alepha/retry": "0.11.2",
|
|
46
|
+
"@alepha/router": "0.11.2",
|
|
47
|
+
"@alepha/scheduler": "0.11.2",
|
|
48
|
+
"@alepha/security": "0.11.2",
|
|
49
|
+
"@alepha/server": "0.11.2",
|
|
50
|
+
"@alepha/server-cache": "0.11.2",
|
|
51
|
+
"@alepha/server-compress": "0.11.2",
|
|
52
|
+
"@alepha/server-cookies": "0.11.2",
|
|
53
|
+
"@alepha/server-cors": "0.11.2",
|
|
54
|
+
"@alepha/server-health": "0.11.2",
|
|
55
|
+
"@alepha/server-helmet": "0.11.2",
|
|
56
|
+
"@alepha/server-links": "0.11.2",
|
|
57
|
+
"@alepha/server-metrics": "0.11.2",
|
|
58
|
+
"@alepha/server-multipart": "0.11.2",
|
|
59
|
+
"@alepha/server-proxy": "0.11.2",
|
|
60
|
+
"@alepha/server-security": "0.11.2",
|
|
61
|
+
"@alepha/server-static": "0.11.2",
|
|
62
|
+
"@alepha/server-swagger": "0.11.2",
|
|
63
|
+
"@alepha/topic": "0.11.2",
|
|
64
|
+
"@alepha/topic-redis": "0.11.2",
|
|
65
|
+
"@alepha/ui": "0.11.2",
|
|
66
|
+
"@alepha/vite": "0.11.2",
|
|
67
67
|
"react": "^19.2.0",
|
|
68
68
|
"react-dom": "^19.2.0"
|
|
69
69
|
},
|
package/postgres.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as drizzle_orm0 from "drizzle-orm";
|
|
|
8
8
|
import { BuildExtraConfigColumns, SQL, SQLWrapper, sql } from "drizzle-orm";
|
|
9
9
|
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
10
10
|
import { LockConfig, LockStrength, PgColumn, PgColumnBuilderBase, PgDatabase, PgInsertValue, PgSchema, PgSelectBase, PgSequenceOptions, PgTableExtraConfigValue, PgTableWithColumns, PgTransaction, PgTransactionConfig, UpdateDeleteAction } from "drizzle-orm/pg-core";
|
|
11
|
-
import * as
|
|
11
|
+
import * as typebox9 from "typebox";
|
|
12
12
|
import { PgTransactionConfig as PgTransactionConfig$1 } from "drizzle-orm/pg-core/session";
|
|
13
13
|
import * as DrizzleKit from "drizzle-kit/api";
|
|
14
14
|
import { MigrationConfig } from "drizzle-orm/migrator";
|
|
@@ -883,10 +883,10 @@ declare abstract class DatabaseProvider {
|
|
|
883
883
|
}
|
|
884
884
|
//#endregion
|
|
885
885
|
//#region src/schemas/pageQuerySchema.d.ts
|
|
886
|
-
declare const pageQuerySchema:
|
|
887
|
-
page:
|
|
888
|
-
size:
|
|
889
|
-
sort:
|
|
886
|
+
declare const pageQuerySchema: typebox9.TObject<{
|
|
887
|
+
page: typebox9.TOptional<typebox9.TInteger>;
|
|
888
|
+
size: typebox9.TOptional<typebox9.TInteger>;
|
|
889
|
+
sort: typebox9.TOptional<typebox9.TString>;
|
|
890
890
|
}>;
|
|
891
891
|
type PageQuery = Static<typeof pageQuerySchema>;
|
|
892
892
|
//#endregion
|
|
@@ -1196,6 +1196,10 @@ declare class RepositoryDescriptor<T extends TObject = TObject> extends Descript
|
|
|
1196
1196
|
protected readonly alepha: Alepha;
|
|
1197
1197
|
readonly provider: DatabaseProvider;
|
|
1198
1198
|
constructor(args: DescriptorArgs<RepositoryDescriptorOptions<T>>);
|
|
1199
|
+
/**
|
|
1200
|
+
* Get the entity descriptor associated with this repository.
|
|
1201
|
+
*/
|
|
1202
|
+
get entity(): EntityDescriptor<T>;
|
|
1199
1203
|
/**
|
|
1200
1204
|
* Represents the primary key of the table.
|
|
1201
1205
|
* - Key is the name of the primary key column.
|
|
@@ -1657,11 +1661,11 @@ declare class DrizzleKitProvider {
|
|
|
1657
1661
|
*/
|
|
1658
1662
|
protected importDrizzleKit(): typeof DrizzleKit;
|
|
1659
1663
|
}
|
|
1660
|
-
declare const devMigrationsSchema:
|
|
1661
|
-
id:
|
|
1662
|
-
name:
|
|
1663
|
-
snapshot:
|
|
1664
|
-
created_at:
|
|
1664
|
+
declare const devMigrationsSchema: typebox9.TObject<{
|
|
1665
|
+
id: typebox9.TNumber;
|
|
1666
|
+
name: typebox9.TString;
|
|
1667
|
+
snapshot: typebox9.TString;
|
|
1668
|
+
created_at: typebox9.TString;
|
|
1665
1669
|
}>;
|
|
1666
1670
|
type DevMigrations = Static<typeof devMigrationsSchema>;
|
|
1667
1671
|
//#endregion
|
|
@@ -1824,17 +1828,17 @@ declare class PostgresTypeProvider {
|
|
|
1824
1828
|
/**
|
|
1825
1829
|
* Creates a column Created At. So just a datetime column with a default value of the current timestamp.
|
|
1826
1830
|
*/
|
|
1827
|
-
readonly createdAt: (options?: TStringOptions) => PgAttr<PgAttr<
|
|
1831
|
+
readonly createdAt: (options?: TStringOptions) => PgAttr<PgAttr<typebox9.TCodec<TString, dayjs0.Dayjs>, typeof PG_CREATED_AT>, typeof PG_DEFAULT>;
|
|
1828
1832
|
/**
|
|
1829
1833
|
* Creates a column Updated At. Like createdAt, but it is updated on every update of the row.
|
|
1830
1834
|
*/
|
|
1831
|
-
readonly updatedAt: (options?: TStringOptions) => PgAttr<PgAttr<
|
|
1835
|
+
readonly updatedAt: (options?: TStringOptions) => PgAttr<PgAttr<typebox9.TCodec<TString, dayjs0.Dayjs>, typeof PG_UPDATED_AT>, typeof PG_DEFAULT>;
|
|
1832
1836
|
/**
|
|
1833
1837
|
* Creates a column Deleted At for soft delete functionality.
|
|
1834
1838
|
* This is used to mark rows as deleted without actually removing them from the database.
|
|
1835
1839
|
* The column is nullable - NULL means not deleted, timestamp means deleted.
|
|
1836
1840
|
*/
|
|
1837
|
-
readonly deletedAt: (options?: TStringOptions) => PgAttr<
|
|
1841
|
+
readonly deletedAt: (options?: TStringOptions) => PgAttr<typebox9.TOptional<typebox9.TCodec<TString, dayjs0.Dayjs>>, typeof PG_DELETED_AT>;
|
|
1838
1842
|
/**
|
|
1839
1843
|
* Creates a Postgres ENUM type.
|
|
1840
1844
|
*
|
|
@@ -1866,7 +1870,7 @@ declare const pg: PostgresTypeProvider;
|
|
|
1866
1870
|
/**
|
|
1867
1871
|
* @deprecated Use `pg.primaryKey()` instead.
|
|
1868
1872
|
*/
|
|
1869
|
-
declare const legacyIdSchema: PgAttr<PgAttr<PgAttr<
|
|
1873
|
+
declare const legacyIdSchema: PgAttr<PgAttr<PgAttr<typebox9.TInteger, typeof PG_PRIMARY_KEY>, typeof PG_SERIAL>, typeof PG_DEFAULT>;
|
|
1870
1874
|
//#endregion
|
|
1871
1875
|
//#region src/types/schema.d.ts
|
|
1872
1876
|
/**
|
package/server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _alepha_core1 from "alepha";
|
|
2
2
|
import { Alepha, AlephaError, Async, Descriptor, FileLike, KIND, Static, StreamLike, TArray, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alepha_logger0 from "alepha/logger";
|
|
4
4
|
import { Readable } from "node:stream";
|
|
5
5
|
import { ReadableStream } from "node:stream/web";
|
|
6
6
|
import { Route, RouterProvider } from "alepha/router";
|
|
@@ -186,14 +186,14 @@ declare class ServerRequestParser {
|
|
|
186
186
|
//#region src/providers/ServerTimingProvider.d.ts
|
|
187
187
|
type TimingMap = Record<string, [number, number]>;
|
|
188
188
|
declare class ServerTimingProvider {
|
|
189
|
-
protected readonly log:
|
|
189
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
190
190
|
protected readonly alepha: Alepha;
|
|
191
191
|
options: {
|
|
192
192
|
prefix: string;
|
|
193
193
|
disabled: boolean;
|
|
194
194
|
};
|
|
195
|
-
readonly onRequest:
|
|
196
|
-
readonly onResponse:
|
|
195
|
+
readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
|
|
196
|
+
readonly onResponse: _alepha_core1.HookDescriptor<"server:onResponse">;
|
|
197
197
|
protected get handlerName(): string;
|
|
198
198
|
beginTiming(name: string): void;
|
|
199
199
|
endTiming(name: string): void;
|
|
@@ -215,6 +215,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
|
|
|
215
215
|
protected readonly serverRequestParser: ServerRequestParser;
|
|
216
216
|
getRoutes(): ServerRoute[];
|
|
217
217
|
createRoute<TConfig extends RequestConfigSchema = RequestConfigSchema>(route: ServerRoute<TConfig>): void;
|
|
218
|
+
protected getContextId(headers: Record<string, string>): string;
|
|
218
219
|
protected processRequest(request: ServerRequest, route: ServerRoute, responseKind: ResponseKind): Promise<{
|
|
219
220
|
status: number;
|
|
220
221
|
headers: Record<string, string> & {
|
|
@@ -233,7 +234,7 @@ declare class ServerRouterProvider extends RouterProvider<ServerRouteMatcher> {
|
|
|
233
234
|
//#endregion
|
|
234
235
|
//#region src/services/HttpClient.d.ts
|
|
235
236
|
declare class HttpClient {
|
|
236
|
-
protected readonly log:
|
|
237
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
237
238
|
protected readonly alepha: Alepha;
|
|
238
239
|
readonly cache: _alepha_cache0.CacheDescriptorFn<HttpClientCache, any[]>;
|
|
239
240
|
protected readonly pendingRequests: HttpClientPendingRequests;
|
|
@@ -553,7 +554,7 @@ interface ActionDescriptorOptions<TConfig extends RequestConfigSchema> extends O
|
|
|
553
554
|
handler: ServerActionHandler<TConfig>;
|
|
554
555
|
}
|
|
555
556
|
declare class ActionDescriptor<TConfig extends RequestConfigSchema> extends Descriptor<ActionDescriptorOptions<TConfig>> {
|
|
556
|
-
protected readonly log:
|
|
557
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
557
558
|
protected readonly env: {
|
|
558
559
|
SERVER_API_PREFIX: string;
|
|
559
560
|
};
|
|
@@ -725,9 +726,9 @@ declare const okSchema: typebox0.TObject<{
|
|
|
725
726
|
type Ok = Static<typeof okSchema>;
|
|
726
727
|
//#endregion
|
|
727
728
|
//#region src/providers/NodeHttpServerProvider.d.ts
|
|
728
|
-
declare const envSchema:
|
|
729
|
-
SERVER_PORT:
|
|
730
|
-
SERVER_HOST:
|
|
729
|
+
declare const envSchema: _alepha_core1.TObject<{
|
|
730
|
+
SERVER_PORT: _alepha_core1.TInteger;
|
|
731
|
+
SERVER_HOST: _alepha_core1.TString;
|
|
731
732
|
}>;
|
|
732
733
|
declare module "alepha" {
|
|
733
734
|
interface Env extends Partial<Static<typeof envSchema>> {}
|
|
@@ -735,29 +736,29 @@ declare module "alepha" {
|
|
|
735
736
|
declare class NodeHttpServerProvider extends ServerProvider {
|
|
736
737
|
protected readonly alepha: Alepha;
|
|
737
738
|
protected readonly dateTimeProvider: DateTimeProvider;
|
|
738
|
-
protected readonly log:
|
|
739
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
739
740
|
protected readonly env: {
|
|
740
741
|
SERVER_PORT: number;
|
|
741
742
|
SERVER_HOST: string;
|
|
742
743
|
};
|
|
743
744
|
protected readonly router: ServerRouterProvider;
|
|
744
745
|
protected readonly server: http0.Server<typeof IncomingMessage, typeof ServerResponse$1>;
|
|
745
|
-
protected readonly onNodeRequest:
|
|
746
|
+
protected readonly onNodeRequest: _alepha_core1.HookDescriptor<"node:request">;
|
|
746
747
|
handle(req: IncomingMessage, res: ServerResponse$1): Promise<void>;
|
|
747
748
|
get hostname(): string;
|
|
748
|
-
readonly start:
|
|
749
|
-
protected readonly stop:
|
|
749
|
+
readonly start: _alepha_core1.HookDescriptor<"start">;
|
|
750
|
+
protected readonly stop: _alepha_core1.HookDescriptor<"stop">;
|
|
750
751
|
protected listen(): Promise<void>;
|
|
751
752
|
protected close(): Promise<void>;
|
|
752
753
|
}
|
|
753
754
|
//#endregion
|
|
754
755
|
//#region src/providers/ServerLoggerProvider.d.ts
|
|
755
756
|
declare class ServerLoggerProvider {
|
|
756
|
-
protected readonly log:
|
|
757
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
757
758
|
protected readonly alepha: Alepha;
|
|
758
|
-
readonly onRequest:
|
|
759
|
-
readonly onError:
|
|
760
|
-
readonly onResponse:
|
|
759
|
+
readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
|
|
760
|
+
readonly onError: _alepha_core1.HookDescriptor<"server:onError">;
|
|
761
|
+
readonly onResponse: _alepha_core1.HookDescriptor<"server:onResponse">;
|
|
761
762
|
}
|
|
762
763
|
//#endregion
|
|
763
764
|
//#region src/providers/ServerNotReadyProvider.d.ts
|
|
@@ -770,7 +771,7 @@ declare class ServerLoggerProvider {
|
|
|
770
771
|
*/
|
|
771
772
|
declare class ServerNotReadyProvider {
|
|
772
773
|
protected readonly alepha: Alepha;
|
|
773
|
-
readonly onRequest:
|
|
774
|
+
readonly onRequest: _alepha_core1.HookDescriptor<"server:onRequest">;
|
|
774
775
|
}
|
|
775
776
|
//#endregion
|
|
776
777
|
//#region src/index.d.ts
|
|
@@ -842,7 +843,7 @@ declare module "alepha" {
|
|
|
842
843
|
* @see {@link $action}
|
|
843
844
|
* @module alepha.server
|
|
844
845
|
*/
|
|
845
|
-
declare const AlephaServer:
|
|
846
|
+
declare const AlephaServer: _alepha_core1.Service<_alepha_core1.Module<{}>>;
|
|
846
847
|
//#endregion
|
|
847
848
|
export { $action, $route, ActionDescriptor, ActionDescriptorFn, ActionDescriptorOptions, AlephaServer, BadRequestError, ClientRequestEntry, ClientRequestEntryContainer, ClientRequestOptions, ClientRequestResponse, ConflictError, ErrorSchema, FetchActionArgs, FetchOptions, FetchResponse, ForbiddenError, HttpAction, HttpClient, HttpClientPendingRequests, HttpError, HttpErrorLike, NodeHttpServerProvider, NotFoundError, Ok, RequestConfigSchema, RequestInitWithOptions, ResponseBodyType, ResponseKind, RouteDescriptor, RouteDescriptorOptions, RouteMethod, ServerActionHandler, ServerActionRequest, ServerHandler, ServerLoggerProvider, ServerNotReadyProvider, ServerProvider, ServerRawRequest, ServerReply, ServerRequest, ServerRequestConfig, ServerRequestConfigEntry, ServerResponse, ServerResponseBody, ServerRoute, ServerRouteMatcher, ServerRouteRequestHandler, ServerRouterProvider, ServerTimingProvider, TRequestBody, TResponseBody, UnauthorizedError, ValidationError, errorNameByStatus, errorSchema, isHttpError, isMultipart, okSchema, routeMethods };
|
|
848
849
|
//# sourceMappingURL=index.d.ts.map
|
package/ui.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as _alepha_react0 from "alepha/react";
|
|
|
4
4
|
import { RouterGoOptions, UseActiveOptions } from "alepha/react";
|
|
5
5
|
import { ModalsProviderProps } from "@mantine/modals";
|
|
6
6
|
import { AutocompleteProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, MantineProviderProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SwitchProps, TableProps, TagsInputProps, TextInputProps, TextareaProps, TooltipProps } from "@mantine/core";
|
|
7
|
-
import * as
|
|
7
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
8
8
|
import React$1, { ComponentType, FC, ReactNode } from "react";
|
|
9
9
|
import * as _mantine_notifications0 from "@mantine/notifications";
|
|
10
10
|
import { NotificationData, NotificationsProps } from "@mantine/notifications";
|
|
@@ -48,7 +48,7 @@ interface ControlSelectProps extends GenericControlProps {
|
|
|
48
48
|
*
|
|
49
49
|
* Automatically detects enum values and array types from schema.
|
|
50
50
|
*/
|
|
51
|
-
declare const ControlSelect: (props: ControlSelectProps) =>
|
|
51
|
+
declare const ControlSelect: (props: ControlSelectProps) => react_jsx_runtime2.JSX.Element | null;
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/components/Control.d.ts
|
|
54
54
|
interface ControlProps extends GenericControlProps {
|
|
@@ -86,7 +86,7 @@ interface ControlProps extends GenericControlProps {
|
|
|
86
86
|
*
|
|
87
87
|
* Automatically handles labels, descriptions, error messages, required state, and default icons.
|
|
88
88
|
*/
|
|
89
|
-
declare const Control: (_props: ControlProps) =>
|
|
89
|
+
declare const Control: (_props: ControlProps) => react_jsx_runtime2.JSX.Element | null;
|
|
90
90
|
type CustomControlProps = {
|
|
91
91
|
defaultValue: any;
|
|
92
92
|
onChange: (value: any) => void;
|
|
@@ -161,7 +161,7 @@ interface ActionCommonProps extends ButtonProps {
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
type ActionProps = ActionCommonProps & (ActiveHrefProps | ActionClickProps | ActionSubmitProps | {});
|
|
164
|
-
declare const Action: (_props: ActionProps) =>
|
|
164
|
+
declare const Action: (_props: ActionProps) => react_jsx_runtime2.JSX.Element;
|
|
165
165
|
interface ActionSubmitProps extends ButtonProps {
|
|
166
166
|
form: FormModel<any>;
|
|
167
167
|
}
|
|
@@ -181,7 +181,7 @@ interface OmnibarProps {
|
|
|
181
181
|
searchPlaceholder?: string;
|
|
182
182
|
nothingFound?: ReactNode;
|
|
183
183
|
}
|
|
184
|
-
declare const Omnibar: (props: OmnibarProps) =>
|
|
184
|
+
declare const Omnibar: (props: OmnibarProps) => react_jsx_runtime2.JSX.Element;
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region src/components/AlephaMantineProvider.d.ts
|
|
187
187
|
interface AlephaMantineProviderProps {
|
|
@@ -193,7 +193,7 @@ interface AlephaMantineProviderProps {
|
|
|
193
193
|
modals?: ModalsProviderProps;
|
|
194
194
|
omnibar?: OmnibarProps;
|
|
195
195
|
}
|
|
196
|
-
declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) =>
|
|
196
|
+
declare const AlephaMantineProvider: (props: AlephaMantineProviderProps) => react_jsx_runtime2.JSX.Element;
|
|
197
197
|
//#endregion
|
|
198
198
|
//#region src/components/ControlDate.d.ts
|
|
199
199
|
interface ControlDateProps extends GenericControlProps {
|
|
@@ -211,7 +211,7 @@ interface ControlDateProps extends GenericControlProps {
|
|
|
211
211
|
*
|
|
212
212
|
* Automatically detects date formats from schema and renders appropriate picker.
|
|
213
213
|
*/
|
|
214
|
-
declare const ControlDate: (props: ControlDateProps) =>
|
|
214
|
+
declare const ControlDate: (props: ControlDateProps) => react_jsx_runtime2.JSX.Element | null;
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region src/components/DarkModeButton.d.ts
|
|
217
217
|
interface DarkModeButtonProps {
|
|
@@ -219,7 +219,7 @@ interface DarkModeButtonProps {
|
|
|
219
219
|
size?: string | number;
|
|
220
220
|
variant?: "filled" | "light" | "outline" | "default" | "subtle" | "transparent";
|
|
221
221
|
}
|
|
222
|
-
declare const DarkModeButton: (props: DarkModeButtonProps) =>
|
|
222
|
+
declare const DarkModeButton: (props: DarkModeButtonProps) => react_jsx_runtime2.JSX.Element;
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region src/components/DataTable.d.ts
|
|
225
225
|
type SortDirection = "asc" | "desc" | null;
|
|
@@ -330,7 +330,7 @@ declare function DataTable<T = any>({
|
|
|
330
330
|
minHeight,
|
|
331
331
|
maxHeight,
|
|
332
332
|
...tableProps
|
|
333
|
-
}: DataTableProps<T>):
|
|
333
|
+
}: DataTableProps<T>): react_jsx_runtime2.JSX.Element;
|
|
334
334
|
//#endregion
|
|
335
335
|
//#region src/services/DialogService.d.ts
|
|
336
336
|
interface BaseDialogOptions extends Partial<ModalProps> {
|
|
@@ -425,19 +425,19 @@ declare class DialogService {
|
|
|
425
425
|
declare function AlertDialog({
|
|
426
426
|
options,
|
|
427
427
|
onClose
|
|
428
|
-
}: AlertDialogProps):
|
|
428
|
+
}: AlertDialogProps): react_jsx_runtime2.JSX.Element;
|
|
429
429
|
//#endregion
|
|
430
430
|
//#region src/components/dialogs/ConfirmDialog.d.ts
|
|
431
431
|
declare function ConfirmDialog({
|
|
432
432
|
options,
|
|
433
433
|
onConfirm
|
|
434
|
-
}: ConfirmDialogProps):
|
|
434
|
+
}: ConfirmDialogProps): react_jsx_runtime2.JSX.Element;
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region src/components/dialogs/PromptDialog.d.ts
|
|
437
437
|
declare function PromptDialog({
|
|
438
438
|
options,
|
|
439
439
|
onSubmit
|
|
440
|
-
}: PromptDialogProps):
|
|
440
|
+
}: PromptDialogProps): react_jsx_runtime2.JSX.Element;
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region src/components/Sidebar.d.ts
|
|
443
443
|
interface MenuItem {
|
|
@@ -509,7 +509,7 @@ interface TypeFormProps<T extends TObject> {
|
|
|
509
509
|
* return <TypeForm form={form} columns={2} />;
|
|
510
510
|
* ```
|
|
511
511
|
*/
|
|
512
|
-
declare const TypeForm: <T extends TObject>(props: TypeFormProps<T>) =>
|
|
512
|
+
declare const TypeForm: <T extends TObject>(props: TypeFormProps<T>) => react_jsx_runtime2.JSX.Element | null;
|
|
513
513
|
//#endregion
|
|
514
514
|
//#region src/hooks/useDialog.d.ts
|
|
515
515
|
/**
|