akanjs 2.3.0 → 2.3.1-rc.0
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/client/csrTypes.ts +16 -0
- package/constant/fieldInfo.ts +11 -9
- package/constant/getDefault.ts +1 -1
- package/fetch/requestStorage.ts +5 -0
- package/package.json +4 -4
- package/server/akanApp.ts +26 -3
- package/server/akanServer.ts +5 -1
- package/server/cachePolicy.ts +99 -5
- package/server/imageOptimizer.ts +14 -1
- package/server/metadata.tsx +117 -33
- package/server/resolver/database.resolver.ts +4 -4
- package/server/routeElementComposer.tsx +46 -14
- package/server/routeState.ts +379 -0
- package/server/routeTreeBuilder.ts +3 -2
- package/server/rscClient.tsx +316 -46
- package/server/rscClientFetch.ts +57 -0
- package/server/rscClientPatch.ts +157 -0
- package/server/rscHeadPatch.ts +80 -0
- package/server/rscNavigationState.ts +315 -0
- package/server/rscPartialCommit.ts +3 -0
- package/server/rscPatchSafety.ts +57 -0
- package/server/rscSegmentOutlet.tsx +69 -0
- package/server/rscSegmentOutletReference.ts +24 -0
- package/server/rscWorker.tsx +380 -53
- package/server/rscWorkerCache.ts +180 -0
- package/server/rscWorkerHost.ts +40 -12
- package/server/rscWorkerReplay.ts +11 -2
- package/server/ssrFromRscRenderer.tsx +15 -10
- package/server/ssrTypes.ts +18 -0
- package/server/types.tsx +4 -0
- package/server/webRouter.ts +198 -42
- package/service/predefinedAdaptor/database.adaptor.ts +72 -25
- package/signal/signalContext.ts +1 -1
- package/types/client/csrTypes.d.ts +16 -0
- package/types/constant/fieldInfo.d.ts +8 -7
- package/types/fetch/requestStorage.d.ts +2 -0
- package/types/server/cachePolicy.d.ts +36 -0
- package/types/server/metadata.d.ts +10 -1
- package/types/server/routeElementComposer.d.ts +9 -1
- package/types/server/routeState.d.ts +94 -0
- package/types/server/rscClient.d.ts +1 -0
- package/types/server/rscClientFetch.d.ts +24 -0
- package/types/server/rscClientPatch.d.ts +21 -0
- package/types/server/rscHeadPatch.d.ts +12 -0
- package/types/server/rscNavigationState.d.ts +78 -0
- package/types/server/rscPartialCommit.d.ts +1 -0
- package/types/server/rscPatchSafety.d.ts +8 -0
- package/types/server/rscSegmentOutlet.d.ts +17 -0
- package/types/server/rscSegmentOutletReference.d.ts +2 -0
- package/types/server/rscWorker.d.ts +5 -0
- package/types/server/rscWorkerCache.d.ts +63 -0
- package/types/server/rscWorkerHost.d.ts +8 -4
- package/types/server/rscWorkerReplay.d.ts +3 -0
- package/types/server/ssrFromRscRenderer.d.ts +1 -0
- package/types/server/ssrTypes.d.ts +17 -0
- package/types/server/types.d.ts +4 -0
- package/types/server/webRouter.d.ts +7 -3
- package/types/service/predefinedAdaptor/database.adaptor.d.ts +6 -0
- package/types/ui/Button.d.ts +1 -1
- package/types/ui/ClientSide.d.ts +1 -1
- package/types/ui/Constant/Doc.d.ts +6 -6
- package/types/ui/Constant/Mermaid.d.ts +1 -1
- package/types/ui/Constant/index.d.ts +1 -1
- package/types/ui/Constant/schemaDoc.d.ts +1 -1
- package/types/ui/Copy.d.ts +1 -1
- package/types/ui/CsrImage.d.ts +1 -1
- package/types/ui/Data/CardList.d.ts +1 -1
- package/types/ui/Data/Dashboard.d.ts +1 -1
- package/types/ui/Data/Insight.d.ts +1 -1
- package/types/ui/Data/Item.d.ts +6 -6
- package/types/ui/Data/ListContainer.d.ts +1 -1
- package/types/ui/Data/Pagination.d.ts +1 -1
- package/types/ui/Data/TableList.d.ts +1 -1
- package/types/ui/DatePicker.d.ts +3 -3
- package/types/ui/Dialog/Close.d.ts +1 -1
- package/types/ui/Dialog/Content.d.ts +1 -1
- package/types/ui/Dialog/Provider.d.ts +1 -1
- package/types/ui/Dialog/Trigger.d.ts +1 -1
- package/types/ui/Dialog/index.d.ts +3 -3
- package/types/ui/DragAction.d.ts +4 -4
- package/types/ui/DraggableList.d.ts +3 -3
- package/types/ui/Dropdown.d.ts +1 -1
- package/types/ui/Empty.d.ts +1 -1
- package/types/ui/Field.d.ts +22 -22
- package/types/ui/Image.d.ts +1 -1
- package/types/ui/InfiniteScroll.d.ts +1 -1
- package/types/ui/Input.d.ts +6 -6
- package/types/ui/KeyboardAvoiding.d.ts +1 -1
- package/types/ui/Layout/BottomAction.d.ts +1 -1
- package/types/ui/Layout/BottomInset.d.ts +1 -1
- package/types/ui/Layout/BottomTab.d.ts +1 -1
- package/types/ui/Layout/Header.d.ts +1 -1
- package/types/ui/Layout/LeftSider.d.ts +1 -1
- package/types/ui/Layout/Navbar.d.ts +1 -1
- package/types/ui/Layout/RightSider.d.ts +1 -1
- package/types/ui/Layout/Sider.d.ts +1 -1
- package/types/ui/Layout/Template.d.ts +1 -1
- package/types/ui/Layout/TopLeftAction.d.ts +1 -1
- package/types/ui/Layout/Unit.d.ts +1 -1
- package/types/ui/Layout/View.d.ts +1 -1
- package/types/ui/Layout/Zone.d.ts +1 -1
- package/types/ui/Layout/index.d.ts +12 -12
- package/types/ui/Link/Back.d.ts +1 -1
- package/types/ui/Link/Close.d.ts +1 -1
- package/types/ui/Link/CsrLink.d.ts +1 -1
- package/types/ui/Link/Lang.d.ts +1 -1
- package/types/ui/Link/SsrLink.d.ts +1 -1
- package/types/ui/Link/index.d.ts +1 -1
- package/types/ui/Load/Edit.d.ts +1 -1
- package/types/ui/Load/Edit_Client.d.ts +1 -1
- package/types/ui/Load/PageCSR.d.ts +1 -1
- package/types/ui/Load/Pagination.d.ts +1 -1
- package/types/ui/Load/Units.d.ts +1 -1
- package/types/ui/Load/View.d.ts +1 -1
- package/types/ui/Loading/Area.d.ts +1 -1
- package/types/ui/Loading/Button.d.ts +1 -1
- package/types/ui/Loading/Input.d.ts +1 -1
- package/types/ui/Loading/ProgressBar.d.ts +1 -1
- package/types/ui/Loading/Skeleton.d.ts +1 -1
- package/types/ui/Loading/Spin.d.ts +1 -1
- package/types/ui/Loading/index.d.ts +6 -6
- package/types/ui/Menu.d.ts +1 -1
- package/types/ui/Modal.d.ts +1 -1
- package/types/ui/Model/AdminPanel.d.ts +1 -1
- package/types/ui/Model/Edit.d.ts +1 -1
- package/types/ui/Model/EditModal.d.ts +1 -1
- package/types/ui/Model/EditWrapper.d.ts +1 -1
- package/types/ui/Model/LoadInit.d.ts +1 -1
- package/types/ui/Model/New.d.ts +1 -1
- package/types/ui/Model/NewWrapper.d.ts +1 -1
- package/types/ui/Model/NewWrapper_Client.d.ts +1 -1
- package/types/ui/Model/Remove.d.ts +1 -1
- package/types/ui/Model/RemoveWrapper.d.ts +1 -1
- package/types/ui/Model/SureToRemove.d.ts +1 -1
- package/types/ui/Model/View.d.ts +1 -1
- package/types/ui/Model/ViewEditModal.d.ts +1 -1
- package/types/ui/Model/ViewModal.d.ts +1 -1
- package/types/ui/Model/ViewWrapper.d.ts +1 -1
- package/types/ui/More.d.ts +1 -1
- package/types/ui/ObjectId.d.ts +1 -1
- package/types/ui/Popconfirm.d.ts +1 -1
- package/types/ui/Radio.d.ts +2 -2
- package/types/ui/RecentTime.d.ts +1 -1
- package/types/ui/Refresh.d.ts +1 -1
- package/types/ui/ScreenNavigator.d.ts +3 -3
- package/types/ui/Select.d.ts +1 -1
- package/types/ui/Signal/Arg.d.ts +13 -13
- package/types/ui/Signal/Doc.d.ts +6 -6
- package/types/ui/Signal/Listener.d.ts +2 -2
- package/types/ui/Signal/Message.d.ts +4 -4
- package/types/ui/Signal/Object.d.ts +4 -4
- package/types/ui/Signal/PubSub.d.ts +4 -4
- package/types/ui/Signal/Request.d.ts +2 -2
- package/types/ui/Signal/Response.d.ts +3 -3
- package/types/ui/Signal/RestApi.d.ts +5 -5
- package/types/ui/Signal/WebSocket.d.ts +2 -2
- package/types/ui/System/CSR.d.ts +5 -5
- package/types/ui/System/Client.d.ts +8 -8
- package/types/ui/System/Common.d.ts +2 -2
- package/types/ui/System/DevModeToggle.d.ts +1 -1
- package/types/ui/System/Gtag.d.ts +1 -1
- package/types/ui/System/Messages.d.ts +1 -1
- package/types/ui/System/Reconnect.d.ts +1 -1
- package/types/ui/System/Root.d.ts +1 -1
- package/types/ui/System/SSR.d.ts +4 -4
- package/types/ui/System/SelectLanguage.d.ts +1 -1
- package/types/ui/System/ThemeToggle.d.ts +1 -1
- package/types/ui/System/index.d.ts +7 -7
- package/types/ui/Tab/Menu.d.ts +1 -1
- package/types/ui/Tab/Menus.d.ts +1 -1
- package/types/ui/Tab/Panel.d.ts +1 -1
- package/types/ui/Tab/Provider.d.ts +1 -1
- package/types/ui/Tab/index.d.ts +4 -4
- package/types/ui/Table.d.ts +1 -1
- package/types/ui/ToggleSelect.d.ts +2 -2
- package/types/ui/Unauthorized.d.ts +1 -1
- package/ui/Constant/schemaDoc.ts +1 -1
- package/server/resolver/resolver.contract.fixture.ts +0 -222
|
@@ -15,6 +15,7 @@ export declare function htmlEscapeJsonString(value: string): string;
|
|
|
15
15
|
export declare function createInlineRscScript(chunk: Uint8Array): string;
|
|
16
16
|
export declare function createSoftRedirectScript(redirect: SsrLateRedirect): string;
|
|
17
17
|
export declare function sanitizeFlightForClientStream(stream: ReadableStream<Uint8Array>): ReadableStream<Uint8Array>;
|
|
18
|
+
export declare function sanitizeFlightForSsrStream(stream: ReadableStream<Uint8Array>): ReadableStream<Uint8Array>;
|
|
18
19
|
export declare class ExpectedLateRedirectStderrSuppressor {
|
|
19
20
|
#private;
|
|
20
21
|
private constructor();
|
|
@@ -24,6 +24,23 @@ export interface SsrLateRedirect {
|
|
|
24
24
|
method: "replace" | "push";
|
|
25
25
|
status: 303 | 307 | 308;
|
|
26
26
|
}
|
|
27
|
+
export interface RscTraceMetadata {
|
|
28
|
+
navId?: string;
|
|
29
|
+
pathname: string;
|
|
30
|
+
routeId: string;
|
|
31
|
+
cache: "hit" | "miss" | "bypass";
|
|
32
|
+
cacheReason?: string;
|
|
33
|
+
cacheKeyHash?: string;
|
|
34
|
+
partial?: "full" | "candidate" | "patch" | "fallback";
|
|
35
|
+
partialReason?: string;
|
|
36
|
+
partialCommonPrefixLength?: number;
|
|
37
|
+
patchStartIndex?: number;
|
|
38
|
+
patchSegmentPath?: string;
|
|
39
|
+
patchStartSegment?: string;
|
|
40
|
+
patchHeadSafe?: boolean;
|
|
41
|
+
patchHeadSnapshot?: string;
|
|
42
|
+
routeState?: string;
|
|
43
|
+
}
|
|
27
44
|
export interface SsrFromRscInput {
|
|
28
45
|
request?: Request;
|
|
29
46
|
requestStore?: AkanRequestStore;
|
package/types/server/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PromiseOrObject } from "akanjs/base";
|
|
2
2
|
import type { AkanI18nConfig } from "akanjs/common";
|
|
3
|
+
import type { ClientManifest } from "./artifact.d.ts";
|
|
4
|
+
import type { SsrManifest } from "./ssrTypes.d.ts";
|
|
3
5
|
export type WebsocketRoute = (ws: Bun.ServerWebSocket<unknown>, data: unknown[], event?: "message" | "subscribe" | "unsubscribe") => PromiseOrObject<unknown>;
|
|
4
6
|
export type WebsocketRoutes = Record<string, WebsocketRoute>;
|
|
5
7
|
export type HttpRoutes = Bun.Serve.Options<unknown>["routes"];
|
|
@@ -43,6 +45,8 @@ export declare function mergeAkanImageConfig(config?: Partial<AkanImageConfig>):
|
|
|
43
45
|
export declare function getAkanImageWidths(config: Pick<AkanImageConfig, "deviceSizes" | "imageSizes">): number[];
|
|
44
46
|
export type BaseBuildArtifact = {
|
|
45
47
|
rscClientUrl: string;
|
|
48
|
+
rscRuntimeClientManifest?: ClientManifest;
|
|
49
|
+
rscRuntimeSsrManifest?: SsrManifest;
|
|
46
50
|
vendorMap: Record<string, string>;
|
|
47
51
|
pagesBundlePath: string;
|
|
48
52
|
pagesBundleBuildId: number;
|
|
@@ -2,16 +2,18 @@ import { type AkanI18nConfig } from "akanjs/common";
|
|
|
2
2
|
import { type AkanRequestStore } from "akanjs/fetch";
|
|
3
3
|
import type { AkanMetricsReport } from "akanjs/service";
|
|
4
4
|
import { type BuilderRpc, type RouteSeedIndex } from "./artifact.d.ts";
|
|
5
|
-
import { type RouteCacheRenderState } from "./cachePolicy.d.ts";
|
|
5
|
+
import { type RouteCacheInvalidation, type RouteCacheRenderState } from "./cachePolicy.d.ts";
|
|
6
6
|
import type { HmrWsData, HmrWsHub } from "./hmr/wsHub.d.ts";
|
|
7
7
|
import { type RscRedirectMethod, type RscRedirectStatus, type RscRenderResult, RscWorker } from "./rscWorkerHost.d.ts";
|
|
8
8
|
import type { BaseBuildArtifact, HttpRoutes, RenderState } from "./types.d.ts";
|
|
9
|
+
export declare const DEFAULT_HTML_RESULT_CACHE_MAX_BODY_BYTES: number;
|
|
9
10
|
export declare function createRscRedirectResponse(location: string, method: RscRedirectMethod, status?: RscRedirectStatus): Response;
|
|
10
11
|
export declare function createRscStreamResponse(stream: BodyInit, status?: number): Response;
|
|
11
12
|
export declare function createRscNotFoundFallbackResponse(): Response;
|
|
12
13
|
export declare function cacheHtmlWhileStreaming(stream: ReadableStream<Uint8Array>, onComplete: (html: string) => void, options?: {
|
|
13
14
|
shouldCache?: () => boolean | Promise<boolean>;
|
|
14
15
|
maxBodyBytes?: number | null;
|
|
16
|
+
onSkip?: (reason: "body-too-large" | "store-skip") => void;
|
|
15
17
|
}): ReadableStream<Uint8Array>;
|
|
16
18
|
export declare function cancelStreamForHeadResponse(stream: ReadableStream<Uint8Array>, reason: unknown): void;
|
|
17
19
|
export declare function resolveHtmlRouteCacheStoreTtl(input: {
|
|
@@ -26,6 +28,8 @@ export declare function isHtmlRouteCachePathAllowed(pathname: string, env?: {
|
|
|
26
28
|
[key: string]: string | undefined;
|
|
27
29
|
AKAN_HTML_RESULT_CACHE_PATHS?: string;
|
|
28
30
|
AKAN_HTML_RESULT_CACHE_EXCLUDE_PATHS?: string;
|
|
31
|
+
}, options?: {
|
|
32
|
+
defaultAllow?: boolean;
|
|
29
33
|
}): boolean;
|
|
30
34
|
export declare function createRscNavigationStreamResponse(result: Extract<RscRenderResult, {
|
|
31
35
|
type: "stream";
|
|
@@ -65,8 +69,8 @@ export declare class WebRouter {
|
|
|
65
69
|
}>;
|
|
66
70
|
dispose(): void;
|
|
67
71
|
getMetrics(): AkanMetricsReport;
|
|
68
|
-
/** @internal Clears local route result caches owned by the host and RSC worker. */
|
|
69
|
-
invalidateRouteCaches(
|
|
72
|
+
/** @internal Clears or scopes invalidation for local route result caches owned by the host and RSC worker. */
|
|
73
|
+
invalidateRouteCaches(invalidation?: string | RouteCacheInvalidation): void;
|
|
70
74
|
static create({ upgradeHmrWs }: SsrRoutesInputs): Promise<WebRouter>;
|
|
71
75
|
}
|
|
72
76
|
export {};
|
|
@@ -248,9 +248,15 @@ export declare class SqliteDocumentStore {
|
|
|
248
248
|
private toRow;
|
|
249
249
|
private fromRow;
|
|
250
250
|
private normalizeProjection;
|
|
251
|
+
private resolveProjection;
|
|
252
|
+
private defaultProjection;
|
|
251
253
|
private projectionSql;
|
|
252
254
|
private projectionAlias;
|
|
253
255
|
private fromProjectedRow;
|
|
256
|
+
private findForWrite;
|
|
257
|
+
private findOneForWrite;
|
|
258
|
+
private pickByIdForWrite;
|
|
259
|
+
private writeUpdatedDocument;
|
|
254
260
|
private parseProjectedValue;
|
|
255
261
|
private decodeDocumentPayload;
|
|
256
262
|
private decodeFieldValue;
|
package/types/ui/Button.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export type ButtonProps<Result> = Omit<ButtonHTMLAttributes<HTMLButtonElement>,
|
|
|
8
8
|
/** Called after the button briefly enters success state. */
|
|
9
9
|
onSuccess?: (result: Result) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const Button: <Result = unknown>({ className, children, onClick, onSuccess, ...rest }: ButtonProps<Result>) =>
|
|
11
|
+
export declare const Button: <Result = unknown>({ className, children, onClick, onSuccess, ...rest }: ButtonProps<Result>) => import("react/jsx-runtime").JSX.Element;
|
package/types/ui/ClientSide.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export interface ClientSideProps {
|
|
|
5
5
|
/** Optional Suspense fallback. */
|
|
6
6
|
loading?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const ClientSide: ({ children, loading }: ClientSideProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const ClientSide: ({ children, loading }: ClientSideProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type DatabaseSchema, getConstantSchemaDoc, type ScalarSchema } from "./schemaDoc.d.ts";
|
|
2
|
-
declare function Doc(): import("react").JSX.Element;
|
|
2
|
+
declare function Doc(): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace Doc {
|
|
4
|
-
var Zone: ({ models, scalars, enums, openAll }: ZoneProps) => import("react").JSX.Element;
|
|
5
|
-
var Print: ({ models, scalars, enums }: ZoneProps) => import("react").JSX.Element;
|
|
6
|
-
var Model: ({ refName, database: databaseProp, openAll }: ModelProps) => import("react").JSX.Element | null;
|
|
7
|
-
var Scalar: ({ refName, scalar: scalarProp, openAll }: ScalarProps) => import("react").JSX.Element | null;
|
|
8
|
-
var Enum: ({ enums }: EnumProps) => import("react").JSX.Element;
|
|
4
|
+
var Zone: ({ models, scalars, enums, openAll }: ZoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
var Print: ({ models, scalars, enums }: ZoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
var Model: ({ refName, database: databaseProp, openAll }: ModelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
var Scalar: ({ refName, scalar: scalarProp, openAll }: ScalarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
var Enum: ({ enums }: EnumProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
}
|
|
10
10
|
export default Doc;
|
|
11
11
|
interface ZoneProps {
|
|
@@ -5,4 +5,4 @@ export interface MermaidProps {
|
|
|
5
5
|
highlightNodes?: string[];
|
|
6
6
|
onSelectNode?: (nodeId: string) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const Mermaid: ({ chart, title, className, highlightNodes, onSelectNode }: MermaidProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const Mermaid: ({ chart, title, className, highlightNodes, onSelectNode }: MermaidProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,5 +2,5 @@ import Doc from "./Doc.d.ts";
|
|
|
2
2
|
export * from "./schemaDoc.d.ts";
|
|
3
3
|
export declare const Constant: {
|
|
4
4
|
Doc: typeof Doc;
|
|
5
|
-
Mermaid: ({ chart, title, className, highlightNodes, onSelectNode }: import("./Mermaid.d.ts").MermaidProps) => import("react").JSX.Element;
|
|
5
|
+
Mermaid: ({ chart, title, className, highlightNodes, onSelectNode }: import("./Mermaid.d.ts").MermaidProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
};
|
|
@@ -63,7 +63,7 @@ export interface FieldSchema {
|
|
|
63
63
|
required: boolean;
|
|
64
64
|
nullable: boolean;
|
|
65
65
|
arrDepth: number;
|
|
66
|
-
fieldType: "property" | "hidden" | "resolve";
|
|
66
|
+
fieldType: "property" | "hidden" | "secret" | "resolve";
|
|
67
67
|
select: boolean;
|
|
68
68
|
immutable: boolean;
|
|
69
69
|
ref?: string;
|
package/types/ui/Copy.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export interface CopyProps {
|
|
|
7
7
|
/** Copy trigger element. */
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare const Copy: ({ text, copyMessage, children }: CopyProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const Copy: ({ text, copyMessage, children }: CopyProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/ui/CsrImage.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ type CsrImageProps = Omit<ImgHTMLAttributes<HTMLImageElement>, "alt" | "src"> &
|
|
|
14
14
|
unoptimized?: boolean;
|
|
15
15
|
fill?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export declare const CsrImage: ({ src, file, className, abstractData, ...props }: CsrImageProps) => import("react").JSX.Element;
|
|
17
|
+
export declare const CsrImage: ({ src, file, className, abstractData, ...props }: CsrImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -32,5 +32,5 @@ export default function CardList<T extends string, Input, Full extends {
|
|
|
32
32
|
id: string;
|
|
33
33
|
}, Light extends {
|
|
34
34
|
id: string;
|
|
35
|
-
}, Filter extends FilterInstance>({ className, cardListClassName, init, slice, actions, columns, renderItem, renderLoading, renderTemplate, renderView, renderTitle, }: CardListProps<T, Input, Full, Light, Filter>): import("react").JSX.Element;
|
|
35
|
+
}, Filter extends FilterInstance>({ className, cardListClassName, init, slice, actions, columns, renderItem, renderLoading, renderTemplate, renderView, renderTitle, }: CardListProps<T, Input, Full, Light, Filter>): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -8,4 +8,4 @@ export interface DashboardProps<T extends string, State> {
|
|
|
8
8
|
presents?: string[];
|
|
9
9
|
hidePresents?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export default function Dashboard<T extends string, State>({ className, summary, slice, queryMap, columns, presents, hidePresents, }: DashboardProps<T, State>): import("react").JSX.Element;
|
|
11
|
+
export default function Dashboard<T extends string, State>({ className, summary, slice, queryMap, columns, presents, hidePresents, }: DashboardProps<T, State>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface InsightProps<T extends string, Insight> {
|
|
|
5
5
|
slice: SliceMeta;
|
|
6
6
|
columns?: (keyof Insight)[];
|
|
7
7
|
}
|
|
8
|
-
export default function Insight<T extends string, Insight>({ className, insight, slice, columns, }: InsightProps<T, Insight>): import("react").JSX.Element;
|
|
8
|
+
export default function Insight<T extends string, Insight>({ className, insight, slice, columns, }: InsightProps<T, Insight>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
package/types/ui/Data/Item.d.ts
CHANGED
|
@@ -12,13 +12,13 @@ export declare const convToAntdColumn: (column: DataColumn<any>) => {
|
|
|
12
12
|
key: string;
|
|
13
13
|
dataIndex: string;
|
|
14
14
|
title: string;
|
|
15
|
-
render: (date: Dayjs) => import("react").JSX.Element;
|
|
15
|
+
render: (date: Dayjs) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
responsive?: undefined;
|
|
17
17
|
} | {
|
|
18
18
|
key: string;
|
|
19
19
|
dataIndex: string;
|
|
20
20
|
title: string;
|
|
21
|
-
render: (status: string) => import("react").JSX.Element;
|
|
21
|
+
render: (status: string) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
responsive?: undefined;
|
|
23
23
|
} | {
|
|
24
24
|
key: string;
|
|
@@ -46,15 +46,15 @@ declare function Item<T extends string, Full extends {
|
|
|
46
46
|
id: string;
|
|
47
47
|
}, Light extends {
|
|
48
48
|
id: string;
|
|
49
|
-
}>({ className, model, slice, onClick, title, actions, columns, children, }: ItemProps<T, Full, Light>): import("react").JSX.Element;
|
|
49
|
+
}>({ className, model, slice, onClick, title, actions, columns, children, }: ItemProps<T, Full, Light>): import("react/jsx-runtime").JSX.Element;
|
|
50
50
|
declare namespace Item {
|
|
51
51
|
var StatusTag: ({ status, className }: {
|
|
52
52
|
status: string;
|
|
53
53
|
className?: string;
|
|
54
|
-
}) => import("react").JSX.Element;
|
|
54
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
var RoleTags: ({ role }: {
|
|
56
56
|
role: string | string[];
|
|
57
|
-
}) => import("react").JSX.Element | import("react").JSX.Element[];
|
|
57
|
+
}) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
|
|
58
58
|
}
|
|
59
59
|
export default Item;
|
|
60
60
|
interface ActionProps<T extends string, M extends {
|
|
@@ -72,4 +72,4 @@ export declare const Action: <T extends string, M extends {
|
|
|
72
72
|
id: string;
|
|
73
73
|
}>({ action, model, slice, outline, }: ActionProps<T, M, L> & {
|
|
74
74
|
outline?: boolean;
|
|
75
|
-
}) => import("react").JSX.Element | null | undefined;
|
|
75
|
+
}) => import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -46,4 +46,4 @@ export default function ListContainer<T extends string, State, Input, Full exten
|
|
|
46
46
|
id: string;
|
|
47
47
|
}, Light extends {
|
|
48
48
|
id: string;
|
|
49
|
-
}>({ className, cardListClassName, type, query, init, create, slice, title, sort, columns, actions, tools, renderDashboard, renderItem, renderTemplate, renderTitle, renderView, renderQueryMaker, renderInsight, renderLoading, }: ListContainerProps<T, State, Input, Full, Light>): import("react").JSX.Element;
|
|
49
|
+
}>({ className, cardListClassName, type, query, init, create, slice, title, sort, columns, actions, tools, renderDashboard, renderItem, renderTemplate, renderTitle, renderView, renderQueryMaker, renderInsight, renderLoading, }: ListContainerProps<T, State, Input, Full, Light>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface PaginationProps<T extends string> {
|
|
|
5
5
|
/** Generated slice metadata used to read page state and dispatch page changes. */
|
|
6
6
|
slice: SliceMeta;
|
|
7
7
|
}
|
|
8
|
-
export default function Pagination<T extends string>({ className, slice }: PaginationProps<T>): import("react").JSX.Element;
|
|
8
|
+
export default function Pagination<T extends string>({ className, slice }: PaginationProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -22,5 +22,5 @@ export default function TableList<T extends string, Input, Full extends {
|
|
|
22
22
|
id: string;
|
|
23
23
|
}, Light extends {
|
|
24
24
|
id: string;
|
|
25
|
-
}, Filter extends FilterInstance>({ className, init, queryArgs, slice, columns, actions, renderTemplate, renderTitle, renderView, onItemClick, }: TableListProps<T, Input, Full, Light, Filter>): import("react").JSX.Element;
|
|
25
|
+
}, Filter extends FilterInstance>({ className, init, queryArgs, slice, columns, actions, renderTemplate, renderTitle, renderView, onItemClick, }: TableListProps<T, Input, Full, Light, Filter>): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
package/types/ui/DatePicker.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ interface DatePickerProps {
|
|
|
11
11
|
defaultValue?: Dayjs;
|
|
12
12
|
}
|
|
13
13
|
export declare const DatePicker: {
|
|
14
|
-
({ value, onChange, showTime, format, timeIntervals, disabledDate, placement, className, defaultValue, }: DatePickerProps): import("react").JSX.Element;
|
|
15
|
-
RangePicker: ({ value, onChange, format, showTime, timeIntervals, disabledDate, className, }: RangePickerProps) => import("react").JSX.Element;
|
|
16
|
-
TimePicker: ({ disabled, className, value, format, onChange, timeIntervals, }: TimePickerProps) => import("react").JSX.Element;
|
|
14
|
+
({ value, onChange, showTime, format, timeIntervals, disabledDate, placement, className, defaultValue, }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
RangePicker: ({ value, onChange, format, showTime, timeIntervals, disabledDate, className, }: RangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
TimePicker: ({ disabled, className, value, format, onChange, timeIntervals, }: TimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
interface RangePickerProps {
|
|
19
19
|
value: [Dayjs | null, Dayjs | null];
|
|
@@ -3,4 +3,4 @@ export interface CloseProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const Close: ({ className, children }: CloseProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const Close: ({ className, children }: CloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ export interface ContentProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const Content: ({ className, children }: ContentProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const Content: ({ className, children }: ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface ProviderProps {
|
|
|
8
8
|
defaultOpen?: boolean;
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare const Provider: ({ className, defaultOpen, open, children }: ProviderProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const Provider: ({ className, defaultOpen, open, children }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ export interface TriggerProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const Trigger: ({ className, children }: TriggerProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const Trigger: ({ className, children }: TriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ProviderProps } from "./Provider.d.ts";
|
|
2
2
|
export declare const Dialog: {
|
|
3
|
-
({ children, ...props }: ProviderProps): import("react").JSX.Element;
|
|
3
|
+
({ children, ...props }: ProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
Modal: ({ className, bodyClassName, confirmClose, children, onCancel }: import("./Modal.d.ts").ModalProps) => import("react").ReactPortal | null;
|
|
5
5
|
Title: ({ children }: import("./Title.d.ts").TitleProps) => null;
|
|
6
6
|
Action: ({ children }: import("./Action.d.ts").ActionProps) => null;
|
|
7
|
-
Trigger: ({ className, children }: import("./Trigger.d.ts").TriggerProps) => import("react").JSX.Element;
|
|
8
|
-
Content: ({ className, children }: import("./Content.d.ts").ContentProps) => import("react").JSX.Element;
|
|
7
|
+
Trigger: ({ className, children }: import("./Trigger.d.ts").TriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Content: ({ className, children }: import("./Content.d.ts").ContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
};
|
package/types/ui/DragAction.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ interface DragActionProps {
|
|
|
7
7
|
onRight?: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const DragAction: {
|
|
10
|
-
({ className, children, onClick, onLeft, onRight }: DragActionProps): import("react").JSX.Element;
|
|
11
|
-
Body: ({ children }: BodyProps) => import("react").JSX.Element;
|
|
12
|
-
Left: ({ children }: LeftProps) => import("react").JSX.Element;
|
|
13
|
-
Right: ({ children }: RightProps) => import("react").JSX.Element;
|
|
10
|
+
({ className, children, onClick, onLeft, onRight }: DragActionProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Body: ({ children }: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Left: ({ children }: LeftProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
Right: ({ children }: RightProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
};
|
|
15
15
|
interface BodyProps {
|
|
16
16
|
children: ReactNode;
|
|
@@ -24,8 +24,8 @@ interface ItemProps {
|
|
|
24
24
|
removeClassName?: string;
|
|
25
25
|
}
|
|
26
26
|
export declare const DraggableList: {
|
|
27
|
-
<V>({ className, mode, children, onChange, onRemove }: DragListProps<V>): import("react").JSX.Element;
|
|
28
|
-
Cursor({ className, children }: Cursor): import("react").JSX.Element;
|
|
29
|
-
Item: ({ value, children, className, cursorClassName, cursor, removable, removeClassName, }: ItemProps) => import("react").JSX.Element;
|
|
27
|
+
<V>({ className, mode, children, onChange, onRemove }: DragListProps<V>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
Cursor({ className, children }: Cursor): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
Item: ({ value, children, className, cursorClassName, cursor, removable, removeClassName, }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
};
|
|
31
31
|
export {};
|
package/types/ui/Dropdown.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export interface DropdownProps {
|
|
|
11
11
|
/** Additional classes for the dropdown content panel. */
|
|
12
12
|
dropdownClassName?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const Dropdown: ({ value, content, className, buttonClassName, dropdownClassName }: DropdownProps) => import("react").JSX.Element;
|
|
14
|
+
export declare const Dropdown: ({ value, content, className, buttonClassName, dropdownClassName }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/ui/Empty.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ export interface EmptyProps {
|
|
|
9
9
|
/** Minimum empty-state height in pixels. */
|
|
10
10
|
minHeight?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const Empty: ({ className, description, children, minHeight }: EmptyProps) => import("react").JSX.Element;
|
|
12
|
+
export declare const Empty: ({ className, description, children, minHeight }: EmptyProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/ui/Field.d.ts
CHANGED
|
@@ -26,44 +26,44 @@ export interface FieldProps {
|
|
|
26
26
|
children?: ReactNode;
|
|
27
27
|
}
|
|
28
28
|
export declare const Field: {
|
|
29
|
-
({ className, containerClassName, labelClassName, label, desc, nullable, children, }: FieldProps): import("react").JSX.Element;
|
|
30
|
-
Label: ({ className, label, desc, unit, nullable, mode }: LabelProps) => import("react").JSX.Element;
|
|
31
|
-
List: <Item>({ className, labelClassName, label, desc, value, onChange, onAdd, nullable, renderItem, }: ListProps<Item>) => import("react").JSX.Element;
|
|
32
|
-
Text: import("react").MemoExoticComponent<({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, cache, inputClassName, inputStyleType, }: TextProps) => import("react").JSX.Element>;
|
|
33
|
-
Price: import("react").MemoExoticComponent<({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, inputClassName, inputStyleType, }: PriceProps) => import("react").JSX.Element>;
|
|
34
|
-
TextArea: import("react").MemoExoticComponent<({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, rows, minlength, maxlength, transform, validate, onPressEnter, cache, inputClassName, }: TextAreaProps) => import("react").JSX.Element>;
|
|
35
|
-
Switch: ({ label, desc, labelClassName, className, value, onChange, disabled, inputClassName, onDesc, offDesc, }: SwitchProps) => import("react").JSX.Element;
|
|
36
|
-
ToggleSelect: <I extends string | number | boolean | null>({ className, labelClassName, label, desc, items, value, validate, onChange, nullable, disabled, btnClassName, }: ToggleSelectProps<I>) => import("react").JSX.Element;
|
|
37
|
-
MultiToggleSelect: <I extends string | number | boolean>({ className, labelClassName, label, desc, items, value, minlength, maxlength, validate, onChange, disabled, }: MultiToggleSelectProps<I>) => import("react").JSX.Element;
|
|
38
|
-
TextList: ({ label, desc, labelClassName, className, value, onChange, placeholder, disabled, transform, minlength, maxlength, minTextlength, maxTextlength, cache, validate, inputClassName, }: TextListProps) => import("react").JSX.Element;
|
|
39
|
-
Tags: ({ label, desc, labelClassName, className, value, onChange, placeholder, disabled, transform, minlength, maxlength, minTextlength, maxTextlength, validate, inputClassName, }: TagsProps) => import("react").JSX.Element;
|
|
40
|
-
Date: <Nullable extends boolean>({ className, labelClassName, nullable, label, desc, value, min, max, onChange, showTime, dateClassName, }: DateProps<Nullable>) => import("react").JSX.Element;
|
|
41
|
-
DateRange: <Nullable extends boolean>({ className, labelClassName, nullable, label, desc, from, to, min, max, onChangeFrom, onChangeTo, onChange, showTime, }: DateRangeProps<Nullable>) => import("react").JSX.Element;
|
|
42
|
-
Number: ({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, min, max, cache, transform, validate, onPressEnter, inputClassName, unit, formatter, parser, }: NumberProps) => import("react").JSX.Element;
|
|
43
|
-
DoubleNumber: ({ label, desc, labelClassName, className, value, placeholder, nullable, disabled, min, max, inputClassName, cache, separator, onChange, transform, validate, onPressEnter, }: DoubleNumberProps) => import("react").JSX.Element;
|
|
44
|
-
Email: ({ label, desc, labelClassName, className, value, onChange, cache, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, inputClassName, inputStyleType, }: EmailProps) => import("react").JSX.Element;
|
|
45
|
-
Phone: ({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, maxlength, cache, transform, validate, onPressEnter, inputClassName, }: PhoneProps) => import("react").JSX.Element;
|
|
46
|
-
Password: ({ label, desc, labelClassName, className, value, onChange, cache, confirmValue, onChangeConfirm, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, inputClassName, showConfirm, }: PasswordProps) => import("react").JSX.Element;
|
|
29
|
+
({ className, containerClassName, labelClassName, label, desc, nullable, children, }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
Label: ({ className, label, desc, unit, nullable, mode }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
List: <Item>({ className, labelClassName, label, desc, value, onChange, onAdd, nullable, renderItem, }: ListProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
Text: import("react").MemoExoticComponent<({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, cache, inputClassName, inputStyleType, }: TextProps) => import("react/jsx-runtime").JSX.Element>;
|
|
33
|
+
Price: import("react").MemoExoticComponent<({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, inputClassName, inputStyleType, }: PriceProps) => import("react/jsx-runtime").JSX.Element>;
|
|
34
|
+
TextArea: import("react").MemoExoticComponent<({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, rows, minlength, maxlength, transform, validate, onPressEnter, cache, inputClassName, }: TextAreaProps) => import("react/jsx-runtime").JSX.Element>;
|
|
35
|
+
Switch: ({ label, desc, labelClassName, className, value, onChange, disabled, inputClassName, onDesc, offDesc, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
ToggleSelect: <I extends string | number | boolean | null>({ className, labelClassName, label, desc, items, value, validate, onChange, nullable, disabled, btnClassName, }: ToggleSelectProps<I>) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
MultiToggleSelect: <I extends string | number | boolean>({ className, labelClassName, label, desc, items, value, minlength, maxlength, validate, onChange, disabled, }: MultiToggleSelectProps<I>) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
TextList: ({ label, desc, labelClassName, className, value, onChange, placeholder, disabled, transform, minlength, maxlength, minTextlength, maxTextlength, cache, validate, inputClassName, }: TextListProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
Tags: ({ label, desc, labelClassName, className, value, onChange, placeholder, disabled, transform, minlength, maxlength, minTextlength, maxTextlength, validate, inputClassName, }: TagsProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
Date: <Nullable extends boolean>({ className, labelClassName, nullable, label, desc, value, min, max, onChange, showTime, dateClassName, }: DateProps<Nullable>) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
DateRange: <Nullable extends boolean>({ className, labelClassName, nullable, label, desc, from, to, min, max, onChangeFrom, onChangeTo, onChange, showTime, }: DateRangeProps<Nullable>) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
Number: ({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, min, max, cache, transform, validate, onPressEnter, inputClassName, unit, formatter, parser, }: NumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
DoubleNumber: ({ label, desc, labelClassName, className, value, placeholder, nullable, disabled, min, max, inputClassName, cache, separator, onChange, transform, validate, onPressEnter, }: DoubleNumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
Email: ({ label, desc, labelClassName, className, value, onChange, cache, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, inputClassName, inputStyleType, }: EmailProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
Phone: ({ label, desc, labelClassName, className, value, onChange, placeholder, nullable, disabled, maxlength, cache, transform, validate, onPressEnter, inputClassName, }: PhoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
Password: ({ label, desc, labelClassName, className, value, onChange, cache, confirmValue, onChangeConfirm, placeholder, nullable, disabled, minlength, maxlength, transform, validate, onPressEnter, inputClassName, showConfirm, }: PasswordProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
47
|
Parent: <T extends string, State, Input, Full extends {
|
|
48
48
|
id: string;
|
|
49
49
|
}, Light extends {
|
|
50
50
|
id: string;
|
|
51
|
-
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentProps<T, State, Input, Full, Light>) => import("react").JSX.Element;
|
|
51
|
+
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentProps<T, State, Input, Full, Light>) => import("react/jsx-runtime").JSX.Element;
|
|
52
52
|
ParentId: <T extends string, State, Input, Full extends {
|
|
53
53
|
id: string;
|
|
54
54
|
}, Light extends {
|
|
55
55
|
id: string;
|
|
56
|
-
}>({ label, desc, className, selectClassName, labelClassName, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentIdProps<T, State, Input, Full, Light>) => import("react").JSX.Element;
|
|
56
|
+
}>({ label, desc, className, selectClassName, labelClassName, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ParentIdProps<T, State, Input, Full, Light>) => import("react/jsx-runtime").JSX.Element;
|
|
57
57
|
Children: <T extends string, State, Input, Full extends {
|
|
58
58
|
id: string;
|
|
59
59
|
}, Light extends {
|
|
60
60
|
id: string;
|
|
61
|
-
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ChildrenProps<T, State, Input, Full, Light>) => import("react").JSX.Element;
|
|
61
|
+
}>({ label, desc, labelClassName, selectClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, renderSelected, }: ChildrenProps<T, State, Input, Full, Light>) => import("react/jsx-runtime").JSX.Element;
|
|
62
62
|
ChildrenId: <T extends string, State, Input, Full extends {
|
|
63
63
|
id: string;
|
|
64
64
|
}, Light extends {
|
|
65
65
|
id: string;
|
|
66
|
-
}>({ label, desc, labelClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, }: ChildrenIdProps<T, State, Input, Full, Light>) => import("react").JSX.Element;
|
|
66
|
+
}>({ label, desc, labelClassName, className, nullable, disabled, initArgs, slice, value, onChange, onSearch, sortOption, renderOption, }: ChildrenIdProps<T, State, Input, Full, Light>) => import("react/jsx-runtime").JSX.Element;
|
|
67
67
|
};
|
|
68
68
|
interface ListProps<Item> {
|
|
69
69
|
className?: string;
|
package/types/ui/Image.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export interface InfiniteScrollProps {
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
reverse?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const InfiniteScroll: ({ itemsPerPage, currentPage, total, onPageSelect, onAddPage, children, reverse, }: InfiniteScrollProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const InfiniteScroll: ({ itemsPerPage, currentPage, total, onPageSelect, onAddPage, children, reverse, }: InfiniteScrollProps) => import("react/jsx-runtime").JSX.Element;
|
package/types/ui/Input.d.ts
CHANGED
|
@@ -25,12 +25,12 @@ export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "
|
|
|
25
25
|
onPressEscape?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
26
26
|
};
|
|
27
27
|
export declare const Input: {
|
|
28
|
-
({ className, nullable, inputRef, value, cacheKey, inputStyleType, icon, iconClassName, inputClassName, inputWrapperClassName, onPressEnter, onPressEscape, onChange, validate, ...rest }: InputProps):
|
|
29
|
-
TextArea: ({ className, nullable, value, inputClassName, inputWrapperClassName, cacheKey, onPressEnter, onPressEscape, onChange, validate, ...rest }: TextAreaProps) =>
|
|
30
|
-
Password: ({ className, nullable, value, icon, iconClassName, inputClassName, inputWrapperClassName, cacheKey, onPressEnter, onPressEscape, onChange, validate, ...rest }: PasswordProps) =>
|
|
31
|
-
Email: ({ inputStyleType, className, nullable, value, cacheKey, onPressEnter, onPressEscape, onChange, validate, icon, iconClassName, inputClassName, inputWrapperClassName, ...rest }: EmailProps) =>
|
|
32
|
-
Number: ({ className, nullable, value, icon, cacheKey, iconClassName, inputClassName, inputWrapperClassName, numberFormat, onPressEnter, onPressEscape, validate, onChange, formatter, parser, ...rest }: NumberProps) =>
|
|
33
|
-
Checkbox: ({ checked, onChange, className, ...rest }: CheckboxProps) =>
|
|
28
|
+
({ className, nullable, inputRef, value, cacheKey, inputStyleType, icon, iconClassName, inputClassName, inputWrapperClassName, onPressEnter, onPressEscape, onChange, validate, ...rest }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
TextArea: ({ className, nullable, value, inputClassName, inputWrapperClassName, cacheKey, onPressEnter, onPressEscape, onChange, validate, ...rest }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
Password: ({ className, nullable, value, icon, iconClassName, inputClassName, inputWrapperClassName, cacheKey, onPressEnter, onPressEscape, onChange, validate, ...rest }: PasswordProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
Email: ({ inputStyleType, className, nullable, value, cacheKey, onPressEnter, onPressEscape, onChange, validate, icon, iconClassName, inputClassName, inputWrapperClassName, ...rest }: EmailProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
Number: ({ className, nullable, value, icon, cacheKey, iconClassName, inputClassName, inputWrapperClassName, numberFormat, onPressEnter, onPressEscape, validate, onChange, formatter, parser, ...rest }: NumberProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
Checkbox: ({ checked, onChange, className, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
};
|
|
35
35
|
export type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "type" | "onChange" | "onPressEnter"> & {
|
|
36
36
|
inputRef?: RefObject<HTMLTextAreaElement | null>;
|
|
@@ -4,5 +4,5 @@ interface KeyboardAvoidingProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
keyboardSticky?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const KeyboardAvoiding: ({ children, className }: KeyboardAvoidingProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const KeyboardAvoiding: ({ children, className }: KeyboardAvoidingProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -3,4 +3,4 @@ export interface BottomActionProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const BottomAction: ({ className, children }: BottomActionProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const BottomAction: ({ className, children }: BottomActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface BottomInsetProps {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
keyboardSticky?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const BottomInset: ({ className, children, keyboardSticky }: BottomInsetProps) => import("react").JSX.Element | null;
|
|
7
|
+
export declare const BottomInset: ({ className, children, keyboardSticky }: BottomInsetProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -10,5 +10,5 @@ export interface BottomTabProps {
|
|
|
10
10
|
tabs: TabType[];
|
|
11
11
|
height?: number;
|
|
12
12
|
}
|
|
13
|
-
export declare const BottomTab: ({ className, tabs, height }: BottomTabProps) => import("react").JSX.Element;
|
|
13
|
+
export declare const BottomTab: ({ className, tabs, height }: BottomTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -5,4 +5,4 @@ export interface HeaderProps {
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
height?: number;
|
|
7
7
|
}
|
|
8
|
-
export declare const Header: ({ className, type, children, height }: HeaderProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const Header: ({ className, type, children, height }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface LeftSiderProps {
|
|
|
6
6
|
width?: number | string;
|
|
7
7
|
onCancel: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const LeftSider: ({ className, children, open, width, onCancel }: LeftSiderProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const LeftSider: ({ className, children, open, width, onCancel }: LeftSiderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface NavbarProps {
|
|
|
8
8
|
left?: ReactNode;
|
|
9
9
|
right?: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare const Navbar: ({ back, className, height, children, title, left, right }: NavbarProps) => import("react").JSX.Element | null;
|
|
11
|
+
export declare const Navbar: ({ back, className, height, children, title, left, right }: NavbarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -7,4 +7,4 @@ export interface RightSiderProps {
|
|
|
7
7
|
width?: number | string;
|
|
8
8
|
onCancel: () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const RightSider: ({ className, children, open, title, width, onCancel }: RightSiderProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const RightSider: ({ className, children, open, title, width, onCancel }: RightSiderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface SiderProps {
|
|
|
4
4
|
bgClassName?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const Sider: ({ className, bgClassName, children }: SiderProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const Sider: ({ className, bgClassName, children }: SiderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,4 +4,4 @@ export interface TemplateProps {
|
|
|
4
4
|
/** Template content, usually Field components in a model form. */
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const Template: ({ className, children }: TemplateProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const Template: ({ className, children }: TemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ export interface TopLeftActionProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const TopLeftAction: ({ className, children }: TopLeftActionProps) => import("react").JSX.Element | null;
|
|
6
|
+
export declare const TopLeftAction: ({ className, children }: TopLeftActionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -6,4 +6,4 @@ export interface UnitProps {
|
|
|
6
6
|
/** Optional route that makes the whole unit clickable through Link. */
|
|
7
7
|
href?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const Unit: ({ className, children, href }: UnitProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const Unit: ({ className, children, href }: UnitProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export interface ViewProps {
|
|
|
5
5
|
/** View content, usually a model detail component. */
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const View: ({ className, children }: ViewProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const View: ({ className, children }: ViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ export interface ZoneProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const Zone: ({ className, children }: ZoneProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const Zone: ({ className, children }: ZoneProps) => import("react/jsx-runtime").JSX.Element;
|