@chaos_team/chaos-ui 1.0.5 → 1.1.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/CHANGELOG.md +72 -0
- package/README.md +11 -15
- package/dist/auth-layout-AqhdIh5N.d.cts +172 -0
- package/dist/auth-layout-AqhdIh5N.d.ts +172 -0
- package/dist/business.cjs +11 -9
- package/dist/business.d.cts +1015 -939
- package/dist/business.d.ts +1015 -939
- package/dist/business.js +11 -9
- package/dist/card-DY3pk0zA.d.cts +150 -0
- package/dist/card-DY3pk0zA.d.ts +150 -0
- package/dist/hooks.cjs +2 -2
- package/dist/hooks.d.cts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +2 -2
- package/dist/index.cjs +8 -1
- package/dist/index.d.cts +2089 -9
- package/dist/index.d.ts +2089 -9
- package/dist/index.js +8 -1
- package/dist/input-B39p_6ia.d.cts +40 -0
- package/dist/input-B39p_6ia.d.ts +40 -0
- package/dist/layout.cjs +12 -0
- package/dist/layout.d.cts +642 -0
- package/dist/layout.d.ts +642 -0
- package/dist/layout.js +12 -0
- package/dist/lib.d.cts +1 -1
- package/dist/lib.d.ts +1 -1
- package/dist/{message-KJli9tvf.d.cts → message-BoUedza5.d.cts} +1 -1
- package/dist/{message-KJli9tvf.d.ts → message-BoUedza5.d.ts} +1 -1
- package/dist/message-provider-Dt4mVwWP.d.cts +23 -0
- package/dist/message-provider-Dt4mVwWP.d.ts +23 -0
- package/dist/mobile-bottom-nav-Bi6_V5Bu.d.cts +18 -0
- package/dist/mobile-bottom-nav-Bi6_V5Bu.d.ts +18 -0
- package/dist/mobile-qrcode-scanner-BHDncd40.d.cts +327 -0
- package/dist/mobile-qrcode-scanner-a_Cz8tF5.d.ts +327 -0
- package/dist/mobile.cjs +6 -0
- package/dist/mobile.d.cts +101 -0
- package/dist/mobile.d.ts +101 -0
- package/dist/mobile.js +6 -0
- package/dist/next.cjs +1 -1
- package/dist/next.d.cts +5 -102
- package/dist/next.d.ts +5 -102
- package/dist/next.js +1 -1
- package/dist/top-bar-BYXz4LtM.d.cts +74 -0
- package/dist/top-bar-BYXz4LtM.d.ts +74 -0
- package/dist/ui/icons.cjs +1 -1
- package/dist/ui/icons.d.cts +1 -1
- package/dist/ui/icons.d.ts +1 -1
- package/dist/ui/icons.js +1 -1
- package/dist/ui-icons.cjs +1 -1
- package/dist/ui-icons.d.cts +24 -1
- package/dist/ui-icons.d.ts +24 -1
- package/dist/ui-icons.js +1 -1
- package/dist/ui.cjs +8 -1
- package/dist/ui.d.cts +7 -5
- package/dist/ui.d.ts +7 -5
- package/dist/ui.js +8 -1
- package/package.json +15 -5
- package/styles.css +11 -11
- package/dist/message-provider-BI-P3CNq.d.cts +0 -11
- package/dist/message-provider-BI-P3CNq.d.ts +0 -11
- package/dist/time-picker-H1AaecnE.d.cts +0 -452
- package/dist/time-picker-H1AaecnE.d.ts +0 -452
package/dist/business.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { h as TransferItem, C as Card } from './card-DY3pk0zA.js';
|
|
4
|
+
import { a as ButtonProps } from './input-B39p_6ia.js';
|
|
5
5
|
import { DateRange } from 'react-day-picker';
|
|
6
|
+
export { Z as FormWizard, _ as KanbanBoard, $ as KanbanColumnData, a0 as KanbanItem, a as MobileAuthLayout, b as MobileAuthLayoutProps, c as MobileButton, d as MobileButtonProps, e as MobileCard, f as MobileCardProps, M as MobileCardSkeleton, g as MobileColumn, h as MobileDashboardLayout, i as MobileDashboardLayoutProps, j as MobileDataTable, k as MobileDataTableProps, l as MobileDetailSkeleton, m as MobileDialog, n as MobileDialogProps, o as MobileEmptyState, p as MobileEmptyStateProps, q as MobileFilterBuilder, r as MobileFilterBuilderProps, s as MobileForm, t as MobileFormField, u as MobileFormFieldProps, v as MobileFormProps, w as MobileFormWizard, x as MobileFormWizardProps, y as MobileInput, z as MobileInputProps, A as MobileKPICard, B as MobileKPICardProps, C as MobileKanban, D as MobileKanbanProps, E as MobileListItemSkeleton, F as MobileNavigation, G as MobileNavigationProps, H as MobilePageHeader, I as MobilePageHeaderProps, J as MobileQrCodeScanner, K as MobileQrCodeScannerProps, L as MobileSelect, N as MobileSelectOption, O as MobileSelectProps, Q as MobileSheet, R as MobileSheetProps, T as MobileTabItem, U as MobileTabs, V as MobileTabsProps, W as MobileTextarea, X as MobileTextareaProps, P as PullToRefresh, S as SwipeActions, Y as SwipeDirection, a1 as WizardRenderContext } from './mobile-qrcode-scanner-a_Cz8tF5.js';
|
|
7
|
+
export { A as AuthLayout, b as AuthLayoutProps, D as DialogFormBody, c as DialogFormBodyProps, F as FormStack, d as FormStackProps, M as MasterDetailLayout, f as NotificationCenter, N as NotificationItem, g as UserMenu, a as UserMenuAction, U as UserMenuUser } from './auth-layout-AqhdIh5N.js';
|
|
6
8
|
import { LucideIcon } from 'lucide-react';
|
|
7
|
-
export {
|
|
9
|
+
export { a as MessageOptions, c as MessageType, m as message } from './message-BoUedza5.js';
|
|
8
10
|
export { f as formatCurrency, a as formatDate, b as formatDateTime, c as formatNumber, d as formatPercent, e as formatRelativeTime } from './format-BUpOzeCo.js';
|
|
9
11
|
export { E as ErrorPage, T as ThemeToggle } from './theme-toggle-JL_jZE-w.js';
|
|
10
12
|
import 'class-variance-authority/types';
|
|
@@ -32,7 +34,40 @@ declare function ActivityFeed({ items, onLoadMore, hasMore, className, }: {
|
|
|
32
34
|
onLoadMore?: () => void;
|
|
33
35
|
hasMore?: boolean;
|
|
34
36
|
className?: string;
|
|
35
|
-
}): React
|
|
37
|
+
}): React.JSX.Element;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use SearchTable or DataTable instead — they are now powered by @tanstack/react-table
|
|
41
|
+
* and support sorting, filtering, sticky columns, expandable rows, and column visibility.
|
|
42
|
+
* AdvancedDataTable is kept for backward compatibility and will be removed in a future version.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
interface ColumnDef$1 {
|
|
46
|
+
key: string;
|
|
47
|
+
header: string;
|
|
48
|
+
accessor?: (row: Record<string, unknown>) => unknown;
|
|
49
|
+
render?: (row: Record<string, unknown>) => React.ReactNode;
|
|
50
|
+
}
|
|
51
|
+
interface AdvancedDataTableProps {
|
|
52
|
+
columns: ColumnDef$1[];
|
|
53
|
+
data: Record<string, unknown>[];
|
|
54
|
+
searchable?: boolean;
|
|
55
|
+
searchPlaceholder?: string;
|
|
56
|
+
pageSize?: number;
|
|
57
|
+
onRowClick?: (row: Record<string, unknown>) => void;
|
|
58
|
+
emptyVariant?: "default" | "search" | "error" | "network";
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @component AdvancedDataTable
|
|
63
|
+
* @category business/data
|
|
64
|
+
* @since 0.2.0
|
|
65
|
+
* @description Searchable, sortable, paginated data table with row selection and column visibility controls / 支持搜索、排序、分页、行选择和列可见性控制的数据表格
|
|
66
|
+
* @keywords data-table, pagination, sorting, filtering, column-visibility, selection
|
|
67
|
+
* @example
|
|
68
|
+
* <AdvancedDataTable columns={[{ key: "name", header: "Name" }]} data={[{ name: "Item" }]} />
|
|
69
|
+
*/
|
|
70
|
+
declare function AdvancedDataTable({ columns, data, searchable, searchPlaceholder, pageSize: defaultPageSize, onRowClick, emptyVariant, className, }: AdvancedDataTableProps): React.JSX.Element;
|
|
36
71
|
|
|
37
72
|
interface AdvancedSearchField {
|
|
38
73
|
key: string;
|
|
@@ -48,7 +83,7 @@ interface SavedSearch {
|
|
|
48
83
|
label: string;
|
|
49
84
|
values: AdvancedSearchValues;
|
|
50
85
|
}
|
|
51
|
-
interface AdvancedSearchProps extends Omit<React
|
|
86
|
+
interface AdvancedSearchProps extends Omit<React.ComponentProps<"form">, "onSubmit"> {
|
|
52
87
|
fields: AdvancedSearchField[];
|
|
53
88
|
savedSearches?: SavedSearch[];
|
|
54
89
|
defaultValues?: AdvancedSearchValues;
|
|
@@ -64,7 +99,7 @@ interface AdvancedSearchProps extends Omit<React$1.ComponentProps<"form">, "onSu
|
|
|
64
99
|
* @example
|
|
65
100
|
* <AdvancedSearch fields={[{ key: "status", label: "Status", options: [{ value: "active", label: "Active" }] }]} />
|
|
66
101
|
*/
|
|
67
|
-
declare function AdvancedSearch({ fields, savedSearches, defaultValues, onSearch, onSaveSearch, className, ...props }: AdvancedSearchProps): React
|
|
102
|
+
declare function AdvancedSearch({ fields, savedSearches, defaultValues, onSearch, onSaveSearch, className, ...props }: AdvancedSearchProps): React.JSX.Element;
|
|
68
103
|
|
|
69
104
|
type BannerPriority = "info" | "warning" | "critical";
|
|
70
105
|
interface Announcement {
|
|
@@ -90,7 +125,7 @@ interface AnnouncementBannerProps {
|
|
|
90
125
|
* @category business/notification
|
|
91
126
|
* @since 0.2.0
|
|
92
127
|
*/
|
|
93
|
-
declare function AnnouncementBanner({ announcements, maxVisible, className, onDismiss, onViewAll, }: AnnouncementBannerProps): React
|
|
128
|
+
declare function AnnouncementBanner({ announcements, maxVisible, className, onDismiss, onViewAll, }: AnnouncementBannerProps): React.JSX.Element | null;
|
|
94
129
|
|
|
95
130
|
type ApprovalStepStatus = "approved" | "pending" | "rejected" | "skipped";
|
|
96
131
|
interface ApprovalStep$1 {
|
|
@@ -125,7 +160,7 @@ interface ApprovalTimelineProps {
|
|
|
125
160
|
* @example
|
|
126
161
|
* <ApprovalTimeline steps={[{ id: "1", title: "Manager", approver: "Alice", status: "approved" }]} />
|
|
127
162
|
*/
|
|
128
|
-
declare function ApprovalTimeline({ steps, className, texts: textsProp, }: ApprovalTimelineProps): React
|
|
163
|
+
declare function ApprovalTimeline({ steps, className, texts: textsProp, }: ApprovalTimelineProps): React.JSX.Element;
|
|
129
164
|
|
|
130
165
|
type TaskStatus = "pending" | "running" | "completed" | "failed";
|
|
131
166
|
interface AsyncTask {
|
|
@@ -156,7 +191,7 @@ interface AsyncTaskCenterProps {
|
|
|
156
191
|
* @category business/async
|
|
157
192
|
* @since 0.2.0
|
|
158
193
|
*/
|
|
159
|
-
declare function AsyncTaskCenter({ open, onOpenChange, tasks, onCancelTask, onRetryTask, onDownloadResult, className, }: AsyncTaskCenterProps): React
|
|
194
|
+
declare function AsyncTaskCenter({ open, onOpenChange, tasks, onCancelTask, onRetryTask, onDownloadResult, className, }: AsyncTaskCenterProps): React.JSX.Element;
|
|
160
195
|
|
|
161
196
|
interface AudienceSegmentBuilderProps {
|
|
162
197
|
fields: Array<{
|
|
@@ -186,7 +221,7 @@ interface AudienceSegmentBuilderProps {
|
|
|
186
221
|
* @example
|
|
187
222
|
* <AudienceSegmentBuilder fields={[{ key: "country", label: "Country" }]} segments={[{ key: "vip", title: "VIP" }]} />
|
|
188
223
|
*/
|
|
189
|
-
declare function AudienceSegmentBuilder({ fields, segments, selectedSegmentKeys, onSegmentsChange, onFiltersChange, estimatedSize, className, }: AudienceSegmentBuilderProps): React
|
|
224
|
+
declare function AudienceSegmentBuilder({ fields, segments, selectedSegmentKeys, onSegmentsChange, onFiltersChange, estimatedSize, className, }: AudienceSegmentBuilderProps): React.JSX.Element;
|
|
190
225
|
|
|
191
226
|
type AuditLogStatus = "success" | "warning" | "error" | "info";
|
|
192
227
|
interface AuditLogEntry$1 {
|
|
@@ -199,9 +234,9 @@ interface AuditLogEntry$1 {
|
|
|
199
234
|
target: string;
|
|
200
235
|
timestamp: string;
|
|
201
236
|
status?: AuditLogStatus;
|
|
202
|
-
details?: React
|
|
237
|
+
details?: React.ReactNode;
|
|
203
238
|
}
|
|
204
|
-
interface AuditLogProps extends React
|
|
239
|
+
interface AuditLogProps extends React.ComponentProps<"div"> {
|
|
205
240
|
entries: AuditLogEntry$1[];
|
|
206
241
|
emptyText?: string;
|
|
207
242
|
}
|
|
@@ -214,7 +249,7 @@ interface AuditLogProps extends React$1.ComponentProps<"div"> {
|
|
|
214
249
|
* @example
|
|
215
250
|
* <AuditLog entries={[{ id: "1", actor: { name: "Admin" }, action: "Updated", target: "Campaign", timestamp: "2024-01-01" }]} />
|
|
216
251
|
*/
|
|
217
|
-
declare function AuditLog({ entries, emptyText, className, ...props }: AuditLogProps): React
|
|
252
|
+
declare function AuditLog({ entries, emptyText, className, ...props }: AuditLogProps): React.JSX.Element;
|
|
218
253
|
|
|
219
254
|
interface AuditLogEntry {
|
|
220
255
|
id: string;
|
|
@@ -240,7 +275,7 @@ interface AuditSidebarProps {
|
|
|
240
275
|
* @category business/audit
|
|
241
276
|
* @since 0.2.0
|
|
242
277
|
*/
|
|
243
|
-
declare function AuditSidebar({ title, entries, loading, className, }: AuditSidebarProps): React
|
|
278
|
+
declare function AuditSidebar({ title, entries, loading, className, }: AuditSidebarProps): React.JSX.Element;
|
|
244
279
|
|
|
245
280
|
/**
|
|
246
281
|
* @component AuthGuard
|
|
@@ -270,10 +305,10 @@ interface AuthGuardProps {
|
|
|
270
305
|
check?: (permission: string) => boolean;
|
|
271
306
|
/** Fallback content rendered when unauthorized (mode="hide" only)
|
|
272
307
|
* / 无权限时的替代内容(仅 hide 模式) */
|
|
273
|
-
fallback?: React
|
|
274
|
-
children: React
|
|
308
|
+
fallback?: React.ReactNode;
|
|
309
|
+
children: React.ReactNode;
|
|
275
310
|
}
|
|
276
|
-
declare function AuthGuard({ permission, mode, check, fallback, children, }: AuthGuardProps): React
|
|
311
|
+
declare function AuthGuard({ permission, mode, check, fallback, children, }: AuthGuardProps): React.JSX.Element;
|
|
277
312
|
|
|
278
313
|
/**
|
|
279
314
|
* @component PermissionWrapper
|
|
@@ -302,10 +337,10 @@ interface PermissionWrapperProps {
|
|
|
302
337
|
check?: (permission: string) => boolean;
|
|
303
338
|
/** Fallback content rendered when unauthorized (hide mode only)
|
|
304
339
|
* / 无权限时的替代内容(仅 hide 模式) */
|
|
305
|
-
fallback?: React
|
|
306
|
-
children: React
|
|
340
|
+
fallback?: React.ReactNode;
|
|
341
|
+
children: React.ReactNode;
|
|
307
342
|
}
|
|
308
|
-
declare function PermissionWrapper({ code, mode, check, fallback, children, }: PermissionWrapperProps): React
|
|
343
|
+
declare function PermissionWrapper({ code, mode, check, fallback, children, }: PermissionWrapperProps): React.JSX.Element;
|
|
309
344
|
/**
|
|
310
345
|
* @function withPermission
|
|
311
346
|
* @category business/auth
|
|
@@ -316,7 +351,7 @@ declare function PermissionWrapper({ code, mode, check, fallback, children, }: P
|
|
|
316
351
|
* @example
|
|
317
352
|
* const ProtectedForm = withPermission("order:edit")(OrderForm);
|
|
318
353
|
*/
|
|
319
|
-
declare function withPermission<P extends object>(code: string, fallback?: React
|
|
354
|
+
declare function withPermission<P extends object>(code: string, fallback?: React.ReactNode): (Component: React.ComponentType<P>) => React.ComponentType<P>;
|
|
320
355
|
|
|
321
356
|
/**
|
|
322
357
|
* @component GlobalLoading
|
|
@@ -344,15 +379,15 @@ interface GlobalLoadingContextValue {
|
|
|
344
379
|
/** Hide the overlay / 隐藏加载层 */
|
|
345
380
|
hide: () => void;
|
|
346
381
|
}
|
|
347
|
-
declare const GlobalLoadingContext: React
|
|
382
|
+
declare const GlobalLoadingContext: React.Context<GlobalLoadingContextValue>;
|
|
348
383
|
interface GlobalLoadingProviderProps {
|
|
349
|
-
children: React
|
|
384
|
+
children: React.ReactNode;
|
|
350
385
|
/** Default tip text / 默认提示文本 */
|
|
351
386
|
defaultTip?: string;
|
|
352
387
|
/** z-index of the overlay / 遮罩层 z-index */
|
|
353
388
|
zIndex?: number;
|
|
354
389
|
}
|
|
355
|
-
declare function GlobalLoadingProvider({ children, defaultTip, zIndex, }: GlobalLoadingProviderProps): React
|
|
390
|
+
declare function GlobalLoadingProvider({ children, defaultTip, zIndex, }: GlobalLoadingProviderProps): React.JSX.Element;
|
|
356
391
|
declare function useGlobalLoading(): GlobalLoadingContextValue;
|
|
357
392
|
|
|
358
393
|
/**
|
|
@@ -372,7 +407,7 @@ declare function useGlobalLoading(): GlobalLoadingContextValue;
|
|
|
372
407
|
* loading={saving}
|
|
373
408
|
* />
|
|
374
409
|
*/
|
|
375
|
-
interface EditToolbarProps extends React
|
|
410
|
+
interface EditToolbarProps extends React.ComponentProps<"div"> {
|
|
376
411
|
/** Save callback / 保存回调 */
|
|
377
412
|
onSave?: () => void;
|
|
378
413
|
/** Cancel callback / 取消回调 */
|
|
@@ -390,13 +425,13 @@ interface EditToolbarProps extends React$1.ComponentProps<"div"> {
|
|
|
390
425
|
/** Delete button text / 删除按钮文本 */
|
|
391
426
|
deleteText?: string;
|
|
392
427
|
/** Extra action buttons rendered before the divider / 额外操作按钮 */
|
|
393
|
-
extraActions?: React
|
|
428
|
+
extraActions?: React.ReactNode;
|
|
394
429
|
/** Whether to show the delete button / 是否显示删除按钮 */
|
|
395
430
|
showDelete?: boolean;
|
|
396
431
|
/** Alignment of action buttons / 按钮对齐方式 */
|
|
397
432
|
align?: "start" | "center" | "end";
|
|
398
433
|
}
|
|
399
|
-
declare function EditToolbar({ className, onSave, onCancel, onDelete, loading, saveDisabled, saveText, cancelText, deleteText, extraActions, showDelete, align, ...props }: EditToolbarProps): React
|
|
434
|
+
declare function EditToolbar({ className, onSave, onCancel, onDelete, loading, saveDisabled, saveText, cancelText, deleteText, extraActions, showDelete, align, ...props }: EditToolbarProps): React.JSX.Element;
|
|
400
435
|
|
|
401
436
|
/**
|
|
402
437
|
* @component PrintButton
|
|
@@ -414,7 +449,7 @@ interface PrintButtonProps extends Omit<ButtonProps, "onClick"> {
|
|
|
414
449
|
/** Button text / 按钮文本 */
|
|
415
450
|
label?: string;
|
|
416
451
|
}
|
|
417
|
-
declare function PrintButton({ onPrint, label, variant, size, icon, children, ...props }: PrintButtonProps): React
|
|
452
|
+
declare function PrintButton({ onPrint, label, variant, size, icon, children, ...props }: PrintButtonProps): React.JSX.Element;
|
|
418
453
|
|
|
419
454
|
/**
|
|
420
455
|
* @component ImportDialog
|
|
@@ -449,13 +484,13 @@ interface ImportDialogProps {
|
|
|
449
484
|
/** Template button text / 模板按钮文本 */
|
|
450
485
|
templateText?: string;
|
|
451
486
|
}
|
|
452
|
-
declare function ImportDialog({ open, onOpenChange, onImport, templateUrl, accept, title, importText, templateText, }: ImportDialogProps): React
|
|
487
|
+
declare function ImportDialog({ open, onOpenChange, onImport, templateUrl, accept, title, importText, templateText, }: ImportDialogProps): React.JSX.Element;
|
|
453
488
|
|
|
454
489
|
interface AvatarUser {
|
|
455
490
|
name: string;
|
|
456
491
|
src?: string;
|
|
457
492
|
}
|
|
458
|
-
interface AvatarGroupProps extends React
|
|
493
|
+
interface AvatarGroupProps extends React.ComponentProps<"div"> {
|
|
459
494
|
users: AvatarUser[];
|
|
460
495
|
max?: number;
|
|
461
496
|
size?: "sm" | "default" | "lg" | "xl";
|
|
@@ -471,7 +506,7 @@ interface AvatarGroupProps extends React$1.ComponentProps<"div"> {
|
|
|
471
506
|
* @example
|
|
472
507
|
* <AvatarGroup users={[{ name: "Alice" }, { name: "Bob" }]} max={3} />
|
|
473
508
|
*/
|
|
474
|
-
declare function AvatarGroup({ users, max, size, showOverflow, onOverflowClick, className, ...props }: AvatarGroupProps): React
|
|
509
|
+
declare function AvatarGroup({ users, max, size, showOverflow, onOverflowClick, className, ...props }: AvatarGroupProps): React.JSX.Element;
|
|
475
510
|
|
|
476
511
|
type BillStatus$1 = "draft" | "pending" | "approved" | "rejected";
|
|
477
512
|
interface BillFooterProps {
|
|
@@ -496,7 +531,7 @@ interface BillFooterProps {
|
|
|
496
531
|
/** 加载态 */
|
|
497
532
|
loading?: boolean;
|
|
498
533
|
/** 额外操作 */
|
|
499
|
-
extra?: React
|
|
534
|
+
extra?: React.ReactNode;
|
|
500
535
|
className?: string;
|
|
501
536
|
}
|
|
502
537
|
/**
|
|
@@ -507,13 +542,13 @@ interface BillFooterProps {
|
|
|
507
542
|
* @category business/bills
|
|
508
543
|
* @since 0.2.0
|
|
509
544
|
*/
|
|
510
|
-
declare function BillFooter({ status, onSaveDraft, onSubmit, onCancel, onApprove, onReject, onRecall, onPrint, onVoid, loading, extra, className, }: BillFooterProps): React
|
|
545
|
+
declare function BillFooter({ status, onSaveDraft, onSubmit, onCancel, onApprove, onReject, onRecall, onPrint, onVoid, loading, extra, className, }: BillFooterProps): React.JSX.Element;
|
|
511
546
|
|
|
512
547
|
interface BillHeaderField {
|
|
513
548
|
/** 字段标签 */
|
|
514
549
|
label: string;
|
|
515
550
|
/** 渲染字段内容(可以是值或自定义 ReactNode) */
|
|
516
|
-
value: React
|
|
551
|
+
value: React.ReactNode;
|
|
517
552
|
/** 该字段占多少列(默认 1,在 4 列中为 1/4) */
|
|
518
553
|
span?: number;
|
|
519
554
|
/** 是否隐藏(常用于条件字段) */
|
|
@@ -523,9 +558,9 @@ interface BillHeaderProps {
|
|
|
523
558
|
/** 字段配置数组 */
|
|
524
559
|
fields: BillHeaderField[];
|
|
525
560
|
/** 标题 */
|
|
526
|
-
title?: React
|
|
561
|
+
title?: React.ReactNode;
|
|
527
562
|
/** 卡片标题右侧操作 */
|
|
528
|
-
extra?: React
|
|
563
|
+
extra?: React.ReactNode;
|
|
529
564
|
/** 列数(1-6,默认根据 span 自动计算,最大 4) */
|
|
530
565
|
columns?: 1 | 2 | 3 | 4;
|
|
531
566
|
/** 只读模式 */
|
|
@@ -542,25 +577,25 @@ interface BillHeaderProps {
|
|
|
542
577
|
* @category business/bills
|
|
543
578
|
* @since 0.2.0
|
|
544
579
|
*/
|
|
545
|
-
declare function BillHeader({ fields, title, extra, columns, loading, className, }: Omit<BillHeaderProps, "readOnly">): React
|
|
580
|
+
declare function BillHeader({ fields, title, extra, columns, loading, className, }: Omit<BillHeaderProps, "readOnly">): React.JSX.Element;
|
|
546
581
|
|
|
547
582
|
type BillStatus = "draft" | "pending" | "approved" | "rejected";
|
|
548
583
|
interface BillPageProps {
|
|
549
584
|
/** 单据标题 */
|
|
550
|
-
title: React
|
|
585
|
+
title: React.ReactNode;
|
|
551
586
|
/** 副标题(如单据编号) */
|
|
552
|
-
subtitle?: React
|
|
587
|
+
subtitle?: React.ReactNode;
|
|
553
588
|
/** 当前单据状态 */
|
|
554
589
|
status?: BillStatus;
|
|
555
590
|
/** 返回回调 */
|
|
556
591
|
onBack?: () => void;
|
|
557
592
|
/** 顶部右侧操作区 */
|
|
558
|
-
actions?: React
|
|
593
|
+
actions?: React.ReactNode;
|
|
559
594
|
/** 加载态 */
|
|
560
595
|
loading?: boolean;
|
|
561
596
|
/** 额外 className */
|
|
562
597
|
className?: string;
|
|
563
|
-
children: React
|
|
598
|
+
children: React.ReactNode;
|
|
564
599
|
}
|
|
565
600
|
/**
|
|
566
601
|
* 单据页面骨架 —— 统一单据页的页头 + 内容区 + 底部操作栏结构。
|
|
@@ -570,7 +605,7 @@ interface BillPageProps {
|
|
|
570
605
|
* @category business/bills
|
|
571
606
|
* @since 0.2.0
|
|
572
607
|
*/
|
|
573
|
-
declare function BillPage({ title, subtitle, status, onBack, actions, loading, className, children, }: BillPageProps): React
|
|
608
|
+
declare function BillPage({ title, subtitle, status, onBack, actions, loading, className, children, }: BillPageProps): React.JSX.Element;
|
|
574
609
|
|
|
575
610
|
interface BillStatusStep {
|
|
576
611
|
label: string;
|
|
@@ -591,13 +626,13 @@ interface BillStatusBarProps {
|
|
|
591
626
|
* @category business/status
|
|
592
627
|
* @since 0.2.0
|
|
593
628
|
*/
|
|
594
|
-
declare function BillStatusBar({ steps, direction, className, }: BillStatusBarProps): React
|
|
629
|
+
declare function BillStatusBar({ steps, direction, className, }: BillStatusBarProps): React.JSX.Element;
|
|
595
630
|
|
|
596
631
|
type BizStatus = "draft" | "pending" | "approved" | "rejected" | "rejected_mid" | string;
|
|
597
632
|
interface BizStatusTagProps {
|
|
598
633
|
status: BizStatus;
|
|
599
634
|
/** Custom status label (auto-detected by default) */
|
|
600
|
-
label?: React
|
|
635
|
+
label?: React.ReactNode;
|
|
601
636
|
/** Custom status color map */
|
|
602
637
|
statusMap?: Record<string, {
|
|
603
638
|
color: string;
|
|
@@ -619,7 +654,7 @@ declare const defaultStatusMap: Record<string, {
|
|
|
619
654
|
* @category business/status
|
|
620
655
|
* @since 0.2.0
|
|
621
656
|
*/
|
|
622
|
-
declare function BizStatusTag({ status, label, statusMap: customMap, className, }: BizStatusTagProps): React
|
|
657
|
+
declare function BizStatusTag({ status, label, statusMap: customMap, className, }: BizStatusTagProps): React.JSX.Element;
|
|
623
658
|
|
|
624
659
|
type BudgetPacingStatus = "under" | "on-track" | "over" | "exhausted";
|
|
625
660
|
interface BudgetPacingTexts {
|
|
@@ -653,16 +688,16 @@ interface BudgetPacingCardProps {
|
|
|
653
688
|
* @example
|
|
654
689
|
* <BudgetPacingCard budget={10000} spent={4500} status="on-track" />
|
|
655
690
|
*/
|
|
656
|
-
declare function BudgetPacingCard({ title, budget, spent, currency, status, forecast, className, texts, }: BudgetPacingCardProps): React
|
|
691
|
+
declare function BudgetPacingCard({ title, budget, spent, currency, status, forecast, className, texts, }: BudgetPacingCardProps): React.JSX.Element;
|
|
657
692
|
|
|
658
693
|
interface BulkAction {
|
|
659
694
|
label: string;
|
|
660
|
-
icon?: React
|
|
695
|
+
icon?: React.ReactNode;
|
|
661
696
|
onClick: () => void;
|
|
662
697
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost";
|
|
663
698
|
disabled?: boolean;
|
|
664
699
|
}
|
|
665
|
-
interface BulkActionsToolbarProps extends React
|
|
700
|
+
interface BulkActionsToolbarProps extends React.ComponentProps<"div"> {
|
|
666
701
|
count: number;
|
|
667
702
|
selectedCount: number;
|
|
668
703
|
onClear?: () => void;
|
|
@@ -678,7 +713,7 @@ interface BulkActionsToolbarProps extends React$1.ComponentProps<"div"> {
|
|
|
678
713
|
* @example
|
|
679
714
|
* <BulkActionsToolbar count={100} selectedCount={5} actions={[{ label: "Delete", onClick: () => {} }]} onClear={() => {}} />
|
|
680
715
|
*/
|
|
681
|
-
declare function BulkActionsToolbar({ count, selectedCount, onClear, actions, label: labelProp, className, ...props }: BulkActionsToolbarProps): React
|
|
716
|
+
declare function BulkActionsToolbar({ count, selectedCount, onClear, actions, label: labelProp, className, ...props }: BulkActionsToolbarProps): React.JSX.Element | null;
|
|
682
717
|
|
|
683
718
|
type BulkImportStep = "upload" | "mapping" | "validation" | "complete";
|
|
684
719
|
interface BulkImportValidationRow {
|
|
@@ -686,7 +721,7 @@ interface BulkImportValidationRow {
|
|
|
686
721
|
status: "valid" | "warning" | "error";
|
|
687
722
|
message: string;
|
|
688
723
|
}
|
|
689
|
-
interface BulkImportWizardProps extends React
|
|
724
|
+
interface BulkImportWizardProps extends React.ComponentProps<"div"> {
|
|
690
725
|
step?: BulkImportStep;
|
|
691
726
|
filename?: string;
|
|
692
727
|
progress?: number;
|
|
@@ -708,7 +743,7 @@ interface BulkImportWizardProps extends React$1.ComponentProps<"div"> {
|
|
|
708
743
|
* @example
|
|
709
744
|
* <BulkImportWizard step="upload" onUpload={() => {}} onContinue={() => {}} />
|
|
710
745
|
*/
|
|
711
|
-
declare function BulkImportWizard({ step, filename, progress, mappings, validationRows, importedCount, onUpload, onContinue, className, ...props }: BulkImportWizardProps): React
|
|
746
|
+
declare function BulkImportWizard({ step, filename, progress, mappings, validationRows, importedCount, onUpload, onContinue, className, ...props }: BulkImportWizardProps): React.JSX.Element;
|
|
712
747
|
|
|
713
748
|
type CampaignStatus = "draft" | "scheduled" | "active" | "paused" | "completed" | "failed" | "archived";
|
|
714
749
|
interface CampaignStatusTagProps {
|
|
@@ -727,7 +762,7 @@ interface CampaignStatusTagProps {
|
|
|
727
762
|
* @example
|
|
728
763
|
* <CampaignStatusTag status="active" />
|
|
729
764
|
*/
|
|
730
|
-
declare function CampaignStatusTag({ status, size, label, className, }: CampaignStatusTagProps): React
|
|
765
|
+
declare function CampaignStatusTag({ status, size, label, className, }: CampaignStatusTagProps): React.JSX.Element;
|
|
731
766
|
|
|
732
767
|
type MarketingChannel = "email" | "sms" | "push" | "social" | "ads" | "offline";
|
|
733
768
|
interface ChannelOption {
|
|
@@ -753,7 +788,7 @@ declare const defaultChannelOptions: ChannelOption[];
|
|
|
753
788
|
* @example
|
|
754
789
|
* <ChannelPicker value="email" onChange={(v) => console.log(v)} />
|
|
755
790
|
*/
|
|
756
|
-
declare function ChannelPicker({ value, onChange, options: optionsProp, multiple, disabled, className, }: ChannelPickerProps): React
|
|
791
|
+
declare function ChannelPicker({ value, onChange, options: optionsProp, multiple, disabled, className, }: ChannelPickerProps): React.JSX.Element;
|
|
757
792
|
|
|
758
793
|
interface CampaignCalendarEvent {
|
|
759
794
|
id: string;
|
|
@@ -776,7 +811,7 @@ interface CampaignCalendarProps {
|
|
|
776
811
|
* @example
|
|
777
812
|
* <CampaignCalendar month={new Date()} events={[{ id: "1", name: "Sale", date: new Date(), status: "active" }]} />
|
|
778
813
|
*/
|
|
779
|
-
declare function CampaignCalendar({ month, events, className, }: CampaignCalendarProps): React
|
|
814
|
+
declare function CampaignCalendar({ month, events, className, }: CampaignCalendarProps): React.JSX.Element;
|
|
780
815
|
|
|
781
816
|
interface CampaignMetric {
|
|
782
817
|
label: string;
|
|
@@ -805,7 +840,7 @@ interface CampaignCardProps {
|
|
|
805
840
|
* @example
|
|
806
841
|
* <CampaignCard name="Summer Sale" status="active" channels={["email", "social"]} budget={5000} spent={2300} />
|
|
807
842
|
*/
|
|
808
|
-
declare function CampaignCard({ name, description, status, channels, dateRange, budget, spent, currency, metrics, actions, className, }: CampaignCardProps): React
|
|
843
|
+
declare function CampaignCard({ name, description, status, channels, dateRange, budget, spent, currency, metrics, actions, className, }: CampaignCardProps): React.JSX.Element;
|
|
809
844
|
|
|
810
845
|
declare const defaultColors: string[];
|
|
811
846
|
declare const brandColors: string[];
|
|
@@ -820,9 +855,9 @@ declare const statusColors: string[];
|
|
|
820
855
|
* <ChartContainer><LineChart data={[]} categories={[]} index="" /></ChartContainer>
|
|
821
856
|
*/
|
|
822
857
|
declare function ChartContainer({ children, className, }: {
|
|
823
|
-
children: React
|
|
858
|
+
children: React.ReactNode;
|
|
824
859
|
className?: string;
|
|
825
|
-
}): React
|
|
860
|
+
}): React.JSX.Element;
|
|
826
861
|
/**
|
|
827
862
|
* @component ChartTooltip
|
|
828
863
|
* @category business/charts
|
|
@@ -841,16 +876,16 @@ declare function ChartTooltip({ active, payload, label, formatter, }: {
|
|
|
841
876
|
}>;
|
|
842
877
|
label?: string;
|
|
843
878
|
formatter?: (v: unknown) => string;
|
|
844
|
-
}): React
|
|
879
|
+
}): React.JSX.Element | null;
|
|
845
880
|
|
|
846
881
|
type ChipVariant = "default" | "primary" | "success" | "warning" | "destructive" | "info" | "outline";
|
|
847
882
|
type ChipSize = "sm" | "default" | "lg";
|
|
848
|
-
interface ChipProps extends React
|
|
883
|
+
interface ChipProps extends React.ComponentProps<"span"> {
|
|
849
884
|
variant?: ChipVariant;
|
|
850
885
|
size?: ChipSize;
|
|
851
886
|
removable?: boolean;
|
|
852
887
|
onRemove?: () => void;
|
|
853
|
-
icon?: React
|
|
888
|
+
icon?: React.ReactNode;
|
|
854
889
|
}
|
|
855
890
|
/**
|
|
856
891
|
* @component Chip
|
|
@@ -861,9 +896,9 @@ interface ChipProps extends React$1.ComponentProps<"span"> {
|
|
|
861
896
|
* @example
|
|
862
897
|
* <Chip variant="primary" removable onRemove={() => {}}>Label</Chip>
|
|
863
898
|
*/
|
|
864
|
-
declare function Chip({ variant, size, removable, onRemove, icon, className, children, ...props }: ChipProps): React
|
|
899
|
+
declare function Chip({ variant, size, removable, onRemove, icon, className, children, ...props }: ChipProps): React.JSX.Element;
|
|
865
900
|
|
|
866
|
-
interface CodeBlockProps extends React
|
|
901
|
+
interface CodeBlockProps extends React.ComponentProps<"div"> {
|
|
867
902
|
code: string;
|
|
868
903
|
language?: string;
|
|
869
904
|
filename?: string;
|
|
@@ -881,7 +916,7 @@ interface CodeBlockProps extends React$1.ComponentProps<"div"> {
|
|
|
881
916
|
* @example
|
|
882
917
|
* <CodeBlock code="const x = 1;" language="js" filename="app.js" />
|
|
883
918
|
*/
|
|
884
|
-
declare function CodeBlock({ code, language, filename, showLineNumbers, showCopy, highlightLines, maxHeight, className, ...props }: CodeBlockProps): React
|
|
919
|
+
declare function CodeBlock({ code, language, filename, showLineNumbers, showCopy, highlightLines, maxHeight, className, ...props }: CodeBlockProps): React.JSX.Element;
|
|
885
920
|
|
|
886
921
|
type CodeEditorLanguage = "javascript" | "typescript" | "json" | "sql" | "mysql" | "postgresql" | "css" | "html" | "text";
|
|
887
922
|
type SQLDialect = "standard" | "mysql" | "postgresql";
|
|
@@ -926,13 +961,13 @@ interface CodeEditorProps {
|
|
|
926
961
|
* onChange={(v) => setQuery(v)}
|
|
927
962
|
* />
|
|
928
963
|
*/
|
|
929
|
-
declare function CodeEditor({ value, onChange, language, sqlDialect, placeholder, readOnly, hideCopy, minHeight, maxHeight, lineNumbers, className, onFocus, onBlur, }: CodeEditorProps): React
|
|
964
|
+
declare function CodeEditor({ value, onChange, language, sqlDialect, placeholder, readOnly, hideCopy, minHeight, maxHeight, lineNumbers, className, onFocus, onBlur, }: CodeEditorProps): React.JSX.Element;
|
|
930
965
|
|
|
931
966
|
interface CommandItem {
|
|
932
967
|
id: string;
|
|
933
968
|
label: string;
|
|
934
969
|
description?: string;
|
|
935
|
-
icon?: React
|
|
970
|
+
icon?: React.ReactNode;
|
|
936
971
|
group?: string;
|
|
937
972
|
shortcut?: string;
|
|
938
973
|
keywords?: string[];
|
|
@@ -950,7 +985,7 @@ interface CommandPaletteProps {
|
|
|
950
985
|
groups?: CommandGroup[];
|
|
951
986
|
placeholder?: string;
|
|
952
987
|
emptyText?: string;
|
|
953
|
-
trigger?: React
|
|
988
|
+
trigger?: React.ReactElement;
|
|
954
989
|
shortcut?: string;
|
|
955
990
|
className?: string;
|
|
956
991
|
showShortcut?: boolean;
|
|
@@ -964,19 +999,19 @@ interface CommandPaletteProps {
|
|
|
964
999
|
* @example
|
|
965
1000
|
* <CommandPalette groups={[{ id: "actions", label: "Actions", items: [{ id: "new", label: "New", onSelect: () => {} }] }]} />
|
|
966
1001
|
*/
|
|
967
|
-
declare function CommandPalette({ open, onOpenChange, groups, placeholder, emptyText, trigger, shortcut, className, showShortcut, }: CommandPaletteProps): React
|
|
1002
|
+
declare function CommandPalette({ open, onOpenChange, groups, placeholder, emptyText, trigger, shortcut, className, showShortcut, }: CommandPaletteProps): React.JSX.Element;
|
|
968
1003
|
|
|
969
1004
|
interface ConfirmDialogProps {
|
|
970
1005
|
open?: boolean;
|
|
971
1006
|
onOpenChange?: (open: boolean) => void;
|
|
972
1007
|
title?: string;
|
|
973
|
-
description?: React
|
|
1008
|
+
description?: React.ReactNode;
|
|
974
1009
|
confirmText?: string;
|
|
975
1010
|
cancelText?: string;
|
|
976
1011
|
variant?: "default" | "destructive";
|
|
977
1012
|
onConfirm?: () => void | Promise<void>;
|
|
978
1013
|
loading?: boolean;
|
|
979
|
-
icon?: React
|
|
1014
|
+
icon?: React.ReactNode;
|
|
980
1015
|
}
|
|
981
1016
|
/**
|
|
982
1017
|
* @component ConfirmDialog
|
|
@@ -987,10 +1022,10 @@ interface ConfirmDialogProps {
|
|
|
987
1022
|
* @example
|
|
988
1023
|
* <ConfirmDialog open={true} title="Delete?" onConfirm={async () => {}} />
|
|
989
1024
|
*/
|
|
990
|
-
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmText, cancelText, variant, onConfirm, loading, icon, }: ConfirmDialogProps): React
|
|
1025
|
+
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmText, cancelText, variant, onConfirm, loading, icon, }: ConfirmDialogProps): React.JSX.Element;
|
|
991
1026
|
interface ConfirmOptions {
|
|
992
1027
|
title?: string;
|
|
993
|
-
description?: React
|
|
1028
|
+
description?: React.ReactNode;
|
|
994
1029
|
confirmText?: string;
|
|
995
1030
|
cancelText?: string;
|
|
996
1031
|
variant?: "default" | "destructive";
|
|
@@ -1024,7 +1059,7 @@ declare function ConfirmDialogContainer({ state, onClose, }: {
|
|
|
1024
1059
|
options: ConfirmOptions;
|
|
1025
1060
|
};
|
|
1026
1061
|
onClose: (result: boolean) => void;
|
|
1027
|
-
}): React
|
|
1062
|
+
}): React.JSX.Element;
|
|
1028
1063
|
|
|
1029
1064
|
interface CookieBannerProps {
|
|
1030
1065
|
open?: boolean;
|
|
@@ -1032,7 +1067,7 @@ interface CookieBannerProps {
|
|
|
1032
1067
|
onReject?: () => void;
|
|
1033
1068
|
onDismiss?: () => void;
|
|
1034
1069
|
title?: string;
|
|
1035
|
-
description?: React
|
|
1070
|
+
description?: React.ReactNode;
|
|
1036
1071
|
acceptText?: string;
|
|
1037
1072
|
rejectText?: string;
|
|
1038
1073
|
policyUrl?: string;
|
|
@@ -1050,7 +1085,7 @@ interface CookieBannerProps {
|
|
|
1050
1085
|
* @example
|
|
1051
1086
|
* <CookieBanner onAccept={() => {}} onReject={() => {}} policyUrl="/privacy" />
|
|
1052
1087
|
*/
|
|
1053
|
-
declare function CookieBanner({ open, onAccept, onReject, onDismiss, title, description, acceptText, rejectText, policyText, policyUrl, storageKey, position, className, }: CookieBannerProps): React
|
|
1088
|
+
declare function CookieBanner({ open, onAccept, onReject, onDismiss, title, description, acceptText, rejectText, policyText, policyUrl, storageKey, position, className, }: CookieBannerProps): React.JSX.Element | null;
|
|
1054
1089
|
|
|
1055
1090
|
interface FilterField {
|
|
1056
1091
|
key: string;
|
|
@@ -1063,7 +1098,7 @@ interface FilterField {
|
|
|
1063
1098
|
value: string;
|
|
1064
1099
|
}[];
|
|
1065
1100
|
/** For custom type */
|
|
1066
|
-
render?: (value: unknown, onChange: (key: string, val: unknown) => void) => React
|
|
1101
|
+
render?: (value: unknown, onChange: (key: string, val: unknown) => void) => React.ReactNode;
|
|
1067
1102
|
/** Default value */
|
|
1068
1103
|
defaultValue?: unknown;
|
|
1069
1104
|
}
|
|
@@ -1089,7 +1124,7 @@ interface FilterBarProps {
|
|
|
1089
1124
|
* @category business/crud
|
|
1090
1125
|
* @since 0.2.0
|
|
1091
1126
|
*/
|
|
1092
|
-
declare function FilterBar({ fields, onSearch, onReset, layout, collapsible, loading, className, }: FilterBarProps): React
|
|
1127
|
+
declare function FilterBar({ fields, onSearch, onReset, layout, collapsible, loading, className, }: FilterBarProps): React.JSX.Element;
|
|
1093
1128
|
|
|
1094
1129
|
interface ColumnDef<T = Record<string, unknown>> {
|
|
1095
1130
|
key: string;
|
|
@@ -1101,7 +1136,7 @@ interface ColumnDef<T = Record<string, unknown>> {
|
|
|
1101
1136
|
* so consumers don't need `as` casts for the common case.
|
|
1102
1137
|
* / 单元格渲染,value 类型为 T 的字段值联合,减少 as 断言
|
|
1103
1138
|
*/
|
|
1104
|
-
render?: (value: T[keyof T], record: T, index: number) => React
|
|
1139
|
+
render?: (value: T[keyof T], record: T, index: number) => React.ReactNode;
|
|
1105
1140
|
ellipsis?: boolean;
|
|
1106
1141
|
align?: "left" | "center" | "right";
|
|
1107
1142
|
fixed?: "left" | "right";
|
|
@@ -1142,7 +1177,7 @@ interface SearchTableProps<T = Record<string, unknown>> {
|
|
|
1142
1177
|
* @category business/crud
|
|
1143
1178
|
* @since 0.2.0
|
|
1144
1179
|
*/
|
|
1145
|
-
declare function SearchTable<T extends Record<string, unknown> = Record<string, unknown>>({ columns, dataSource, rowKey, loading, pagination, emptyText, onRow, className, }: SearchTableProps<T>): React
|
|
1180
|
+
declare function SearchTable<T extends Record<string, unknown> = Record<string, unknown>>({ columns, dataSource, rowKey, loading, pagination, emptyText, onRow, className, }: SearchTableProps<T>): React.JSX.Element;
|
|
1146
1181
|
|
|
1147
1182
|
interface FormField {
|
|
1148
1183
|
key: string;
|
|
@@ -1154,7 +1189,7 @@ interface FormField {
|
|
|
1154
1189
|
label: string;
|
|
1155
1190
|
value: string;
|
|
1156
1191
|
}[];
|
|
1157
|
-
render?: (value: unknown, onChange: (val: unknown) => void) => React
|
|
1192
|
+
render?: (value: unknown, onChange: (val: unknown) => void) => React.ReactNode;
|
|
1158
1193
|
defaultValue?: unknown;
|
|
1159
1194
|
}
|
|
1160
1195
|
interface CrudPageProps {
|
|
@@ -1175,7 +1210,7 @@ interface CrudPageProps {
|
|
|
1175
1210
|
dialogOpen?: boolean;
|
|
1176
1211
|
onDialogOpenChange?: (open: boolean) => void;
|
|
1177
1212
|
editingRecord?: Record<string, unknown> | null;
|
|
1178
|
-
actions?: React
|
|
1213
|
+
actions?: React.ReactNode;
|
|
1179
1214
|
/** Built-in refresh button (shown when onRefresh provided). / 内置刷新按钮 */
|
|
1180
1215
|
onRefresh?: () => void;
|
|
1181
1216
|
/** Built-in add button (shown when onAdd provided). / 内置新增按钮 */
|
|
@@ -1198,12 +1233,12 @@ interface CrudPageProps {
|
|
|
1198
1233
|
* @category business/crud
|
|
1199
1234
|
* @since 0.2.0
|
|
1200
1235
|
*/
|
|
1201
|
-
declare function CrudPage({ title, filterFields, columns, dataSource, rowKey, loading, pagination, formFields, formTitle, dialogOpen, onDialogOpenChange, editingRecord, actions, onRefresh, onAdd, onEdit, onSearch, onDelete, onSubmit, className, }: CrudPageProps): React
|
|
1236
|
+
declare function CrudPage({ title, filterFields, columns, dataSource, rowKey, loading, pagination, formFields, formTitle, dialogOpen, onDialogOpenChange, editingRecord, actions, onRefresh, onAdd, onEdit, onSearch, onDelete, onSubmit, className, }: CrudPageProps): React.JSX.Element;
|
|
1202
1237
|
|
|
1203
1238
|
interface CrudToolbarAction {
|
|
1204
1239
|
key: string;
|
|
1205
1240
|
label: string;
|
|
1206
|
-
icon?: React
|
|
1241
|
+
icon?: React.ElementType;
|
|
1207
1242
|
onClick: () => void;
|
|
1208
1243
|
danger?: boolean;
|
|
1209
1244
|
disabled?: boolean;
|
|
@@ -1238,7 +1273,7 @@ interface CrudToolbarProps {
|
|
|
1238
1273
|
* @category business/layout
|
|
1239
1274
|
* @since 0.2.0
|
|
1240
1275
|
*/
|
|
1241
|
-
declare function CrudToolbar({ primaryActions, searchPlaceholder, searchValue, onSearch, onSearchChange, showSearch, moreActions, selectionCount, bulkActionLabel, loading, className, }: CrudToolbarProps): React
|
|
1276
|
+
declare function CrudToolbar({ primaryActions, searchPlaceholder, searchValue, onSearch, onSearchChange, showSearch, moreActions, selectionCount, bulkActionLabel, loading, className, }: CrudToolbarProps): React.JSX.Element;
|
|
1242
1277
|
|
|
1243
1278
|
type CreativePreviewMode = "email" | "push" | "social" | "ad";
|
|
1244
1279
|
type CreativePreviewViewport = "desktop" | "mobile";
|
|
@@ -1262,7 +1297,7 @@ interface CreativePreviewProps {
|
|
|
1262
1297
|
* @example
|
|
1263
1298
|
* <CreativePreview mode="email" title="Welcome Email" body="Hello world" />
|
|
1264
1299
|
*/
|
|
1265
|
-
declare function CreativePreview({ mode, viewport, title, eyebrow, body, imageUrl, cta, from, className, }: CreativePreviewProps): React
|
|
1300
|
+
declare function CreativePreview({ mode, viewport, title, eyebrow, body, imageUrl, cta, from, className, }: CreativePreviewProps): React.JSX.Element;
|
|
1266
1301
|
|
|
1267
1302
|
/**
|
|
1268
1303
|
* @component DataTable
|
|
@@ -1275,10 +1310,10 @@ declare function CreativePreview({ mode, viewport, title, eyebrow, body, imageUr
|
|
|
1275
1310
|
interface Column<T> {
|
|
1276
1311
|
/** Column key / 列标识 */
|
|
1277
1312
|
key: string;
|
|
1278
|
-
title: React
|
|
1313
|
+
title: React.ReactNode;
|
|
1279
1314
|
width?: number | string;
|
|
1280
1315
|
align?: "left" | "center" | "right";
|
|
1281
|
-
render?: (value: T[keyof T], row: T, index: number) => React
|
|
1316
|
+
render?: (value: T[keyof T], row: T, index: number) => React.ReactNode;
|
|
1282
1317
|
fixed?: "left" | "right";
|
|
1283
1318
|
sortable?: boolean;
|
|
1284
1319
|
}
|
|
@@ -1293,11 +1328,11 @@ interface DataTableProps<T = Record<string, unknown>> {
|
|
|
1293
1328
|
sortable?: boolean;
|
|
1294
1329
|
/** Enable row expansion / 启用展开行 */
|
|
1295
1330
|
expandable?: {
|
|
1296
|
-
rowExpand: (row: T) => React
|
|
1331
|
+
rowExpand: (row: T) => React.ReactNode;
|
|
1297
1332
|
};
|
|
1298
1333
|
className?: string;
|
|
1299
1334
|
}
|
|
1300
|
-
declare function DataTable<T = Record<string, unknown>>({ columns, dataSource, rowKey, loading, emptyText, size, sortable, expandable, className, }: DataTableProps<T>): React
|
|
1335
|
+
declare function DataTable<T = Record<string, unknown>>({ columns, dataSource, rowKey, loading, emptyText, size, sortable, expandable, className, }: DataTableProps<T>): React.JSX.Element;
|
|
1301
1336
|
|
|
1302
1337
|
interface DateRangePickerProps {
|
|
1303
1338
|
value?: DateRange;
|
|
@@ -1318,17 +1353,17 @@ interface DateRangePickerProps {
|
|
|
1318
1353
|
* @example
|
|
1319
1354
|
* <DateRangePicker value={range} onChange={setRange} />
|
|
1320
1355
|
*/
|
|
1321
|
-
declare function DateRangePicker({ value, onChange, placeholder, numberOfMonths, disabled, align, className, presets, }: DateRangePickerProps): React
|
|
1356
|
+
declare function DateRangePicker({ value, onChange, placeholder, numberOfMonths, disabled, align, className, presets, }: DateRangePickerProps): React.JSX.Element;
|
|
1322
1357
|
|
|
1323
1358
|
type DiffChangeType = "added" | "removed" | "changed" | "unchanged";
|
|
1324
1359
|
interface DiffViewerItem {
|
|
1325
1360
|
field: string;
|
|
1326
1361
|
label?: string;
|
|
1327
|
-
before?: React
|
|
1328
|
-
after?: React
|
|
1362
|
+
before?: React.ReactNode;
|
|
1363
|
+
after?: React.ReactNode;
|
|
1329
1364
|
type?: DiffChangeType;
|
|
1330
1365
|
}
|
|
1331
|
-
interface DiffViewerProps extends React
|
|
1366
|
+
interface DiffViewerProps extends React.ComponentProps<"div"> {
|
|
1332
1367
|
items: DiffViewerItem[];
|
|
1333
1368
|
beforeLabel?: string;
|
|
1334
1369
|
afterLabel?: string;
|
|
@@ -1342,7 +1377,7 @@ interface DiffViewerProps extends React$1.ComponentProps<"div"> {
|
|
|
1342
1377
|
* @example
|
|
1343
1378
|
* <DiffViewer items={[{ field: "name", before: "Old", after: "New" }]} />
|
|
1344
1379
|
*/
|
|
1345
|
-
declare function DiffViewer({ items, beforeLabel, afterLabel, className, ...props }: DiffViewerProps): React
|
|
1380
|
+
declare function DiffViewer({ items, beforeLabel, afterLabel, className, ...props }: DiffViewerProps): React.JSX.Element;
|
|
1346
1381
|
|
|
1347
1382
|
/**
|
|
1348
1383
|
* @component DictSelect
|
|
@@ -1361,7 +1396,7 @@ interface DictOption {
|
|
|
1361
1396
|
}
|
|
1362
1397
|
type DictFetcher = (categoryCode: string) => Promise<DictOption[]>;
|
|
1363
1398
|
declare function setDictFetcher(fetcher: DictFetcher): void;
|
|
1364
|
-
interface DictSelectProps extends Omit<React
|
|
1399
|
+
interface DictSelectProps extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
1365
1400
|
/** Dictionary category code (fetches from backend) / 字典分类编码 */
|
|
1366
1401
|
categoryCode?: string;
|
|
1367
1402
|
/** Inline options (bypass fetch) / 内联选项(跳过请求) */
|
|
@@ -1385,7 +1420,7 @@ interface DictSelectProps extends Omit<React$1.ComponentProps<"div">, "onChange"
|
|
|
1385
1420
|
/** Additional class name / 额外类名 */
|
|
1386
1421
|
className?: string;
|
|
1387
1422
|
}
|
|
1388
|
-
declare function DictSelect({ className, categoryCode, options: inlineOptions, value, onChange, placeholder, allowClear, disabled, loading: externalLoading, size, fetcher, ...props }: DictSelectProps): React
|
|
1423
|
+
declare function DictSelect({ className, categoryCode, options: inlineOptions, value, onChange, placeholder, allowClear, disabled, loading: externalLoading, size, fetcher, ...props }: DictSelectProps): React.JSX.Element;
|
|
1389
1424
|
|
|
1390
1425
|
/**
|
|
1391
1426
|
* @component RemoteSelect
|
|
@@ -1409,7 +1444,7 @@ interface RemoteOption {
|
|
|
1409
1444
|
}
|
|
1410
1445
|
/** Fetcher receives the search keyword and returns options. / 按 keyword 查询 */
|
|
1411
1446
|
type RemoteFetcher = (keyword: string) => Promise<RemoteOption[]>;
|
|
1412
|
-
interface RemoteSelectProps extends Omit<React
|
|
1447
|
+
interface RemoteSelectProps extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
1413
1448
|
/** Async fetcher (receives keyword, returns options). / 异步查询函数 */
|
|
1414
1449
|
fetcher: RemoteFetcher;
|
|
1415
1450
|
/** Selected value / 选中值 */
|
|
@@ -1434,12 +1469,12 @@ interface RemoteSelectProps extends Omit<React$1.ComponentProps<"div">, "onChang
|
|
|
1434
1469
|
size?: "sm" | "md" | "lg";
|
|
1435
1470
|
className?: string;
|
|
1436
1471
|
}
|
|
1437
|
-
declare function RemoteSelect({ className, fetcher, value, onChange, initialOptions, debounceMs, cache, searchPlaceholder, placeholder, minKeywordLength, disabled, size, ...props }: RemoteSelectProps): React
|
|
1472
|
+
declare function RemoteSelect({ className, fetcher, value, onChange, initialOptions, debounceMs, cache, searchPlaceholder, placeholder, minKeywordLength, disabled, size, ...props }: RemoteSelectProps): React.JSX.Element;
|
|
1438
1473
|
|
|
1439
1474
|
interface ErrorBoundaryProps {
|
|
1440
|
-
fallback?: React
|
|
1441
|
-
onError?: (error: Error, info: React
|
|
1442
|
-
children: React
|
|
1475
|
+
fallback?: React.ReactNode | ((error: Error, reset: () => void) => React.ReactNode);
|
|
1476
|
+
onError?: (error: Error, info: React.ErrorInfo) => void;
|
|
1477
|
+
children: React.ReactNode;
|
|
1443
1478
|
className?: string;
|
|
1444
1479
|
}
|
|
1445
1480
|
interface ErrorBoundaryState {
|
|
@@ -1457,12 +1492,12 @@ interface ErrorBoundaryState {
|
|
|
1457
1492
|
* <App />
|
|
1458
1493
|
* </ErrorBoundary>
|
|
1459
1494
|
*/
|
|
1460
|
-
declare class ErrorBoundary extends React
|
|
1495
|
+
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
1461
1496
|
state: ErrorBoundaryState;
|
|
1462
1497
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
1463
|
-
componentDidCatch(error: Error, info: React
|
|
1498
|
+
componentDidCatch(error: Error, info: React.ErrorInfo): void;
|
|
1464
1499
|
reset: () => void;
|
|
1465
|
-
render(): string | number | bigint | boolean | React
|
|
1500
|
+
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
1466
1501
|
}
|
|
1467
1502
|
|
|
1468
1503
|
/**
|
|
@@ -1492,7 +1527,7 @@ interface CategoryOption {
|
|
|
1492
1527
|
label: string;
|
|
1493
1528
|
value: string;
|
|
1494
1529
|
}
|
|
1495
|
-
interface ExpenseLineEditorProps extends Omit<React
|
|
1530
|
+
interface ExpenseLineEditorProps extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
1496
1531
|
/**
|
|
1497
1532
|
* Line data (controlled). Omit to use uncontrolled mode with `defaultData`.
|
|
1498
1533
|
* / 明细数据(受控);不传则走非受控模式(配合 defaultData)
|
|
@@ -1515,7 +1550,7 @@ interface ExpenseLineEditorProps extends Omit<React$1.ComponentProps<"div">, "on
|
|
|
1515
1550
|
/** Currency symbol / 货币符号 */
|
|
1516
1551
|
currency?: string;
|
|
1517
1552
|
}
|
|
1518
|
-
declare function ExpenseLineEditor({ className, data: controlledData, defaultData, onChange, categories, readOnly, minRows, maxRows, currency, ...props }: ExpenseLineEditorProps): React
|
|
1553
|
+
declare function ExpenseLineEditor({ className, data: controlledData, defaultData, onChange, categories, readOnly, minRows, maxRows, currency, ...props }: ExpenseLineEditorProps): React.JSX.Element;
|
|
1519
1554
|
|
|
1520
1555
|
interface ExperimentVariant {
|
|
1521
1556
|
id: string;
|
|
@@ -1542,7 +1577,7 @@ interface ExperimentSummaryProps {
|
|
|
1542
1577
|
* @example
|
|
1543
1578
|
* <ExperimentSummary name="Homepage Test" variants={[{ id: "a", name: "Control", sampleSize: 1000, conversionRate: 3.2 }]} />
|
|
1544
1579
|
*/
|
|
1545
|
-
declare function ExperimentSummary({ name, status, hypothesis, variants, primaryMetric, className, }: ExperimentSummaryProps): React
|
|
1580
|
+
declare function ExperimentSummary({ name, status, hypothesis, variants, primaryMetric, className, }: ExperimentSummaryProps): React.JSX.Element;
|
|
1546
1581
|
|
|
1547
1582
|
type ExportFormat = "csv" | "xlsx" | "json" | "pdf" | "print";
|
|
1548
1583
|
interface ExportButtonProps<T> {
|
|
@@ -1569,7 +1604,7 @@ interface ExportButtonProps<T> {
|
|
|
1569
1604
|
* @example
|
|
1570
1605
|
* <ExportButton data={rows} filename="report" formats={["csv", "xlsx"]} />
|
|
1571
1606
|
*/
|
|
1572
|
-
declare function ExportButton<T extends Record<string, unknown>>({ data, filename, formats, columns, className, size, variant, label, onExport, }: ExportButtonProps<T>): React
|
|
1607
|
+
declare function ExportButton<T extends Record<string, unknown>>({ data, filename, formats, columns, className, size, variant, label, onExport, }: ExportButtonProps<T>): React.JSX.Element | null;
|
|
1573
1608
|
|
|
1574
1609
|
type MaskRule = "phone" | "idcard" | "bankcard" | "email" | "name" | "custom";
|
|
1575
1610
|
interface FieldMaskProps {
|
|
@@ -1589,7 +1624,7 @@ interface FieldMaskProps {
|
|
|
1589
1624
|
* @category business/permission
|
|
1590
1625
|
* @since 0.2.0
|
|
1591
1626
|
*/
|
|
1592
|
-
declare function FieldMask({ value, mask, canView, className, }: FieldMaskProps): React
|
|
1627
|
+
declare function FieldMask({ value, mask, canView, className, }: FieldMaskProps): React.JSX.Element;
|
|
1593
1628
|
|
|
1594
1629
|
type ManagedFile = {
|
|
1595
1630
|
file?: File;
|
|
@@ -1615,7 +1650,7 @@ declare function FileUploadManager({ files, onFilesChange, accept, maxFiles, max
|
|
|
1615
1650
|
maxFiles?: number;
|
|
1616
1651
|
maxSize?: number;
|
|
1617
1652
|
className?: string;
|
|
1618
|
-
}): React
|
|
1653
|
+
}): React.JSX.Element;
|
|
1619
1654
|
|
|
1620
1655
|
/**
|
|
1621
1656
|
* @component FilterBuilder
|
|
@@ -1640,7 +1675,7 @@ declare function FilterBuilder({ fields, onChange, className, }: {
|
|
|
1640
1675
|
}[];
|
|
1641
1676
|
}) => void;
|
|
1642
1677
|
className?: string;
|
|
1643
|
-
}): React
|
|
1678
|
+
}): React.JSX.Element;
|
|
1644
1679
|
|
|
1645
1680
|
interface ForbiddenProps {
|
|
1646
1681
|
/** 自定义标题 */
|
|
@@ -1661,7 +1696,7 @@ interface ForbiddenProps {
|
|
|
1661
1696
|
* @category business/permission
|
|
1662
1697
|
* @since 0.2.0
|
|
1663
1698
|
*/
|
|
1664
|
-
declare function Forbidden({ title, description, onRequestAccess, code, className, }: ForbiddenProps): React
|
|
1699
|
+
declare function Forbidden({ title, description, onRequestAccess, code, className, }: ForbiddenProps): React.JSX.Element;
|
|
1665
1700
|
|
|
1666
1701
|
/**
|
|
1667
1702
|
* @component LabeledField
|
|
@@ -1679,42 +1714,17 @@ declare function LabeledField({ label, description, error, required, children, c
|
|
|
1679
1714
|
description?: string;
|
|
1680
1715
|
error?: string;
|
|
1681
1716
|
required?: boolean;
|
|
1682
|
-
children: React
|
|
1683
|
-
className?: string;
|
|
1684
|
-
}): React$1.JSX.Element;
|
|
1685
|
-
|
|
1686
|
-
type WizardRenderContext = {
|
|
1687
|
-
formData: Record<string, unknown>;
|
|
1688
|
-
updateField: (key: string, value: unknown) => void;
|
|
1689
|
-
errors: Record<string, string>;
|
|
1690
|
-
};
|
|
1691
|
-
/**
|
|
1692
|
-
* @component FormWizard
|
|
1693
|
-
* @category business/ux
|
|
1694
|
-
* @since 0.2.0
|
|
1695
|
-
* @description Multi-step form wizard with stepper navigation, per-step validation, and progressive data collection / 多步骤表单向导,支持步骤导航、逐步验证和渐进式数据收集
|
|
1696
|
-
* @keywords form, wizard, multi-step, stepper, validation
|
|
1697
|
-
* @example
|
|
1698
|
-
* <FormWizard steps={[{ title: "Step 1", render: (ctx) => <Input onChange={e => ctx.updateField("name", e.target.value)} /> }]} />
|
|
1699
|
-
*/
|
|
1700
|
-
declare function FormWizard({ steps, onComplete, className, }: {
|
|
1701
|
-
steps: {
|
|
1702
|
-
title: string;
|
|
1703
|
-
description?: string;
|
|
1704
|
-
render: (context: WizardRenderContext) => React$1.ReactNode;
|
|
1705
|
-
validate?: (data: Record<string, unknown>) => Record<string, string>;
|
|
1706
|
-
}[];
|
|
1707
|
-
onComplete?: (data: Record<string, unknown>) => void;
|
|
1717
|
+
children: React.ReactNode;
|
|
1708
1718
|
className?: string;
|
|
1709
|
-
}): React
|
|
1719
|
+
}): React.JSX.Element;
|
|
1710
1720
|
|
|
1711
|
-
interface GaugeProps extends React
|
|
1721
|
+
interface GaugeProps extends React.ComponentProps<"div"> {
|
|
1712
1722
|
value: number;
|
|
1713
1723
|
min?: number;
|
|
1714
1724
|
max?: number;
|
|
1715
1725
|
size?: number;
|
|
1716
1726
|
strokeWidth?: number;
|
|
1717
|
-
label?: React
|
|
1727
|
+
label?: React.ReactNode;
|
|
1718
1728
|
showValue?: boolean;
|
|
1719
1729
|
formatValue?: (v: number) => string;
|
|
1720
1730
|
variant?: "default" | "success" | "warning" | "destructive";
|
|
@@ -1728,8 +1738,8 @@ interface GaugeProps extends React$1.ComponentProps<"div"> {
|
|
|
1728
1738
|
* @example
|
|
1729
1739
|
* <Gauge value={75} min={0} max={100} variant="success" label="CPU" />
|
|
1730
1740
|
*/
|
|
1731
|
-
declare function Gauge({ value, min, max, size, strokeWidth, label, showValue, formatValue, variant, className, ...props }: GaugeProps): React
|
|
1732
|
-
interface RadialProgressProps extends React
|
|
1741
|
+
declare function Gauge({ value, min, max, size, strokeWidth, label, showValue, formatValue, variant, className, ...props }: GaugeProps): React.JSX.Element;
|
|
1742
|
+
interface RadialProgressProps extends React.ComponentProps<"div"> {
|
|
1733
1743
|
value: number;
|
|
1734
1744
|
size?: number;
|
|
1735
1745
|
strokeWidth?: number;
|
|
@@ -1745,9 +1755,9 @@ interface RadialProgressProps extends React$1.ComponentProps<"div"> {
|
|
|
1745
1755
|
* @example
|
|
1746
1756
|
* <RadialProgress value={65} variant="success" />
|
|
1747
1757
|
*/
|
|
1748
|
-
declare function RadialProgress({ value, size, strokeWidth, showValue, variant, className, ...props }: RadialProgressProps): React
|
|
1758
|
+
declare function RadialProgress({ value, size, strokeWidth, showValue, variant, className, ...props }: RadialProgressProps): React.JSX.Element;
|
|
1749
1759
|
|
|
1750
|
-
interface HeatmapCalendarProps extends React
|
|
1760
|
+
interface HeatmapCalendarProps extends React.ComponentProps<"div"> {
|
|
1751
1761
|
data: Array<{
|
|
1752
1762
|
date: string | Date;
|
|
1753
1763
|
value: number;
|
|
@@ -1772,16 +1782,16 @@ interface HeatmapCalendarProps extends React$1.ComponentProps<"div"> {
|
|
|
1772
1782
|
* @example
|
|
1773
1783
|
* <HeatmapCalendar data={[{ date: "2025-01-01", value: 5 }]} />
|
|
1774
1784
|
*/
|
|
1775
|
-
declare function HeatmapCalendar({ data, startDate, endDate, weekStartsOn, cellSize, gap, levels, className, showLegend, colorStops, }: HeatmapCalendarProps): React
|
|
1785
|
+
declare function HeatmapCalendar({ data, startDate, endDate, weekStartsOn, cellSize, gap, levels, className, showLegend, colorStops, }: HeatmapCalendarProps): React.JSX.Element;
|
|
1776
1786
|
|
|
1777
|
-
interface InlineEditProps extends Omit<React
|
|
1787
|
+
interface InlineEditProps extends Omit<React.ComponentProps<"div">, "onSave"> {
|
|
1778
1788
|
value: string;
|
|
1779
1789
|
placeholder?: string;
|
|
1780
1790
|
multiline?: boolean;
|
|
1781
1791
|
disabled?: boolean;
|
|
1782
1792
|
validate?: (value: string) => string | undefined;
|
|
1783
1793
|
onSave?: (value: string) => void | Promise<void>;
|
|
1784
|
-
renderValue?: (value: string) => React
|
|
1794
|
+
renderValue?: (value: string) => React.ReactNode;
|
|
1785
1795
|
}
|
|
1786
1796
|
/**
|
|
1787
1797
|
* @component InlineEdit
|
|
@@ -1792,7 +1802,7 @@ interface InlineEditProps extends Omit<React$1.ComponentProps<"div">, "onSave">
|
|
|
1792
1802
|
* @example
|
|
1793
1803
|
* <InlineEdit value="Hello" onSave={(v) => console.log(v)} />
|
|
1794
1804
|
*/
|
|
1795
|
-
declare function InlineEdit({ value, placeholder, multiline, disabled, validate, onSave, renderValue, className, ...props }: InlineEditProps): React
|
|
1805
|
+
declare function InlineEdit({ value, placeholder, multiline, disabled, validate, onSave, renderValue, className, ...props }: InlineEditProps): React.JSX.Element;
|
|
1796
1806
|
|
|
1797
1807
|
interface JsonEditorProps {
|
|
1798
1808
|
/** JSON string (controlled). */
|
|
@@ -1829,7 +1839,7 @@ interface JsonEditorProps {
|
|
|
1829
1839
|
* onChange={(v) => setConfig(v)}
|
|
1830
1840
|
* />
|
|
1831
1841
|
*/
|
|
1832
|
-
declare function JsonEditor({ value, onChange, placeholder, readOnly, minHeight, maxHeight, autoFormat, className, onFocus, onBlur, }: JsonEditorProps): React
|
|
1842
|
+
declare function JsonEditor({ value, onChange, placeholder, readOnly, minHeight, maxHeight, autoFormat, className, onFocus, onBlur, }: JsonEditorProps): React.JSX.Element;
|
|
1833
1843
|
|
|
1834
1844
|
interface JsonViewerProps {
|
|
1835
1845
|
data: unknown;
|
|
@@ -1848,34 +1858,7 @@ interface JsonViewerProps {
|
|
|
1848
1858
|
* @example
|
|
1849
1859
|
* <JsonViewer data={{ name: "John", age: 30 }} />
|
|
1850
1860
|
*/
|
|
1851
|
-
declare function JsonViewer({ data, defaultCollapsedDepth, className, rootClassName, showCopy, indentSize, }: JsonViewerProps): React
|
|
1852
|
-
|
|
1853
|
-
type KanbanItem = {
|
|
1854
|
-
id: string;
|
|
1855
|
-
title: string;
|
|
1856
|
-
description?: string;
|
|
1857
|
-
[key: string]: unknown;
|
|
1858
|
-
};
|
|
1859
|
-
type KanbanColumnData = {
|
|
1860
|
-
id: string;
|
|
1861
|
-
title: string;
|
|
1862
|
-
items: KanbanItem[];
|
|
1863
|
-
};
|
|
1864
|
-
/**
|
|
1865
|
-
* @component KanbanBoard
|
|
1866
|
-
* @category business/ux
|
|
1867
|
-
* @since 0.2.0
|
|
1868
|
-
* @description Drag-and-drop Kanban board with sortable columns and cards, cross-column movement, and collapsible columns / 拖拽式看板,支持可排序列和卡片、跨列移动及可折叠列
|
|
1869
|
-
* @keywords kanban, board, drag, drop, dnd, sortable, columns
|
|
1870
|
-
* @example
|
|
1871
|
-
* <KanbanBoard columns={[{ id: "todo", title: "Todo", items: [] }]} />
|
|
1872
|
-
*/
|
|
1873
|
-
declare function KanbanBoard({ columns, onColumnsChange, renderCard, className, }: {
|
|
1874
|
-
columns: KanbanColumnData[];
|
|
1875
|
-
onColumnsChange?: (columns: KanbanColumnData[]) => void;
|
|
1876
|
-
renderCard?: (item: KanbanItem) => React$1.ReactNode;
|
|
1877
|
-
className?: string;
|
|
1878
|
-
}): React$1.JSX.Element;
|
|
1861
|
+
declare function JsonViewer({ data, defaultCollapsedDepth, className, rootClassName, showCopy, indentSize, }: JsonViewerProps): React.JSX.Element;
|
|
1879
1862
|
|
|
1880
1863
|
/**
|
|
1881
1864
|
* @component KPICard
|
|
@@ -1897,9 +1880,9 @@ declare function KPICard({ title, value, change, changeLabel, changeType, sparkl
|
|
|
1897
1880
|
}[];
|
|
1898
1881
|
target?: number;
|
|
1899
1882
|
targetLabel?: string;
|
|
1900
|
-
icon?: React
|
|
1883
|
+
icon?: React.ElementType;
|
|
1901
1884
|
className?: string;
|
|
1902
|
-
}): React
|
|
1885
|
+
}): React.JSX.Element;
|
|
1903
1886
|
|
|
1904
1887
|
interface LanguageOption {
|
|
1905
1888
|
code: string;
|
|
@@ -1923,7 +1906,7 @@ interface LanguageSwitcherProps {
|
|
|
1923
1906
|
* @example
|
|
1924
1907
|
* <LanguageSwitcher />
|
|
1925
1908
|
*/
|
|
1926
|
-
declare function LanguageSwitcher({ value: valueProp, onChange: onChangeProp, options: optionsProp, className, align, }: LanguageSwitcherProps): React
|
|
1909
|
+
declare function LanguageSwitcher({ value: valueProp, onChange: onChangeProp, options: optionsProp, className, align, }: LanguageSwitcherProps): React.JSX.Element;
|
|
1927
1910
|
|
|
1928
1911
|
type LineColumnType = "text" | "number" | "select" | "date" | "custom";
|
|
1929
1912
|
interface LineColumn {
|
|
@@ -1942,11 +1925,11 @@ interface LineColumn {
|
|
|
1942
1925
|
/** 是否自动计算 */
|
|
1943
1926
|
compute?: (row: Record<string, unknown>, allRows: Record<string, unknown>[]) => unknown;
|
|
1944
1927
|
/** 自定义渲染 */
|
|
1945
|
-
render?: (value: unknown, row: Record<string, unknown>, index: number) => React
|
|
1928
|
+
render?: (value: unknown, row: Record<string, unknown>, index: number) => React.ReactNode;
|
|
1946
1929
|
/** 自定义编辑组件 */
|
|
1947
|
-
editRender?: (value: unknown, row: Record<string, unknown>, onChange: (val: unknown) => void) => React
|
|
1930
|
+
editRender?: (value: unknown, row: Record<string, unknown>, onChange: (val: unknown) => void) => React.ReactNode;
|
|
1948
1931
|
/** 自定义编辑器组件 (alias, used by order/expense line editors) */
|
|
1949
|
-
renderEditor?: (value: unknown, row: Record<string, unknown>, index: number, onChange: (val: unknown) => void) => React
|
|
1932
|
+
renderEditor?: (value: unknown, row: Record<string, unknown>, index: number, onChange: (val: unknown) => void) => React.ReactNode;
|
|
1950
1933
|
/** 对齐方式 */
|
|
1951
1934
|
align?: "left" | "center" | "right";
|
|
1952
1935
|
/** 默认值(新增行时) */
|
|
@@ -1966,7 +1949,7 @@ interface LineEditorProps {
|
|
|
1966
1949
|
/** 行标识 key */
|
|
1967
1950
|
rowKey?: string | undefined;
|
|
1968
1951
|
/** 底部汇总渲染 */
|
|
1969
|
-
footer?: React
|
|
1952
|
+
footer?: React.ReactNode | undefined;
|
|
1970
1953
|
/** 合计行自动计算(指定哪些列需要汇总) */
|
|
1971
1954
|
summaryKeys?: string[] | undefined;
|
|
1972
1955
|
/** 是否只读 */
|
|
@@ -1985,12 +1968,12 @@ interface LineEditorProps {
|
|
|
1985
1968
|
* @category business/bills
|
|
1986
1969
|
* @since 0.2.0
|
|
1987
1970
|
*/
|
|
1988
|
-
declare function LineEditor({ columns, data, onChange, minRows, maxRows, rowKey, footer, summaryKeys, readOnly, loading, className, }: LineEditorProps): React
|
|
1971
|
+
declare function LineEditor({ columns, data, onChange, minRows, maxRows, rowKey, footer, summaryKeys, readOnly, loading, className, }: LineEditorProps): React.JSX.Element;
|
|
1989
1972
|
|
|
1990
|
-
interface LoadingPageProps extends React
|
|
1973
|
+
interface LoadingPageProps extends React.ComponentProps<"div"> {
|
|
1991
1974
|
title?: string;
|
|
1992
1975
|
description?: string;
|
|
1993
|
-
icon?: React
|
|
1976
|
+
icon?: React.ReactNode;
|
|
1994
1977
|
variant?: "spinner" | "dots" | "pulse";
|
|
1995
1978
|
}
|
|
1996
1979
|
/**
|
|
@@ -2002,10 +1985,10 @@ interface LoadingPageProps extends React$1.ComponentProps<"div"> {
|
|
|
2002
1985
|
* @example
|
|
2003
1986
|
* <LoadingPage title="Loading..." variant="spinner" />
|
|
2004
1987
|
*/
|
|
2005
|
-
declare function LoadingPage({ title, description, icon, variant, className, ...props }: LoadingPageProps): React
|
|
1988
|
+
declare function LoadingPage({ title, description, icon, variant, className, ...props }: LoadingPageProps): React.JSX.Element;
|
|
2006
1989
|
interface FullPageLoaderProps {
|
|
2007
1990
|
show?: boolean;
|
|
2008
|
-
children?: React
|
|
1991
|
+
children?: React.ReactNode;
|
|
2009
1992
|
}
|
|
2010
1993
|
/**
|
|
2011
1994
|
* @component FullPageLoader
|
|
@@ -2018,7 +2001,7 @@ interface FullPageLoaderProps {
|
|
|
2018
2001
|
* <PageContent />
|
|
2019
2002
|
* </FullPageLoader>
|
|
2020
2003
|
*/
|
|
2021
|
-
declare function FullPageLoader({ show, children }: FullPageLoaderProps): React
|
|
2004
|
+
declare function FullPageLoader({ show, children }: FullPageLoaderProps): React.JSX.Element;
|
|
2022
2005
|
|
|
2023
2006
|
interface SparklineProps {
|
|
2024
2007
|
data: number[];
|
|
@@ -2038,8 +2021,8 @@ interface SparklineProps {
|
|
|
2038
2021
|
* @example
|
|
2039
2022
|
* <Sparkline data={[10, 20, 15, 30, 25]} />
|
|
2040
2023
|
*/
|
|
2041
|
-
declare function Sparkline({ data, width, height, strokeWidth, className, color, fill, }: SparklineProps): React
|
|
2042
|
-
interface MetricTrendProps extends Omit<React
|
|
2024
|
+
declare function Sparkline({ data, width, height, strokeWidth, className, color, fill, }: SparklineProps): React.JSX.Element | null;
|
|
2025
|
+
interface MetricTrendProps extends Omit<React.ComponentProps<typeof Card>, "children"> {
|
|
2043
2026
|
label: string;
|
|
2044
2027
|
value: number | string;
|
|
2045
2028
|
unit?: string;
|
|
@@ -2048,7 +2031,7 @@ interface MetricTrendProps extends Omit<React$1.ComponentProps<typeof Card>, "ch
|
|
|
2048
2031
|
format?: "number" | "percent" | "compact" | "currency";
|
|
2049
2032
|
sparklineData?: number[];
|
|
2050
2033
|
trendDirection?: "up-good" | "down-good" | "neutral";
|
|
2051
|
-
icon?: React
|
|
2034
|
+
icon?: React.ReactNode;
|
|
2052
2035
|
loading?: boolean;
|
|
2053
2036
|
}
|
|
2054
2037
|
/**
|
|
@@ -2060,251 +2043,7 @@ interface MetricTrendProps extends Omit<React$1.ComponentProps<typeof Card>, "ch
|
|
|
2060
2043
|
* @example
|
|
2061
2044
|
* <MetricTrend label="Active Users" value={1234} change={12} sparklineData={[10,20,15,30]} />
|
|
2062
2045
|
*/
|
|
2063
|
-
declare function MetricTrend({ label, value, unit, change, changeLabel, format, sparklineData, trendDirection, icon, loading, className, ...props }: MetricTrendProps): React
|
|
2064
|
-
|
|
2065
|
-
interface MobileAuthLayoutProps {
|
|
2066
|
-
children: React$1.ReactNode;
|
|
2067
|
-
className?: string;
|
|
2068
|
-
}
|
|
2069
|
-
declare function MobileAuthLayout({ children, className }: MobileAuthLayoutProps): React$1.JSX.Element;
|
|
2070
|
-
|
|
2071
|
-
interface MobileButtonProps extends React$1.ComponentProps<typeof Button> {
|
|
2072
|
-
fullWidth?: boolean;
|
|
2073
|
-
}
|
|
2074
|
-
declare function MobileButton({ className, fullWidth, ...props }: MobileButtonProps): React$1.JSX.Element;
|
|
2075
|
-
|
|
2076
|
-
interface MobileCardProps {
|
|
2077
|
-
title?: string;
|
|
2078
|
-
description?: string;
|
|
2079
|
-
children: React$1.ReactNode;
|
|
2080
|
-
actions?: React$1.ReactNode;
|
|
2081
|
-
className?: string;
|
|
2082
|
-
}
|
|
2083
|
-
declare function MobileCard({ title, description, children, actions, className, }: MobileCardProps): React$1.JSX.Element;
|
|
2084
|
-
|
|
2085
|
-
interface MobileDashboardLayoutProps {
|
|
2086
|
-
children: React$1.ReactNode;
|
|
2087
|
-
title?: string;
|
|
2088
|
-
description?: string;
|
|
2089
|
-
actions?: React$1.ReactNode;
|
|
2090
|
-
onBack?: () => void;
|
|
2091
|
-
onMenu?: () => void;
|
|
2092
|
-
className?: string;
|
|
2093
|
-
}
|
|
2094
|
-
declare function MobileDashboardLayout({ children, title, description, actions, onBack, onMenu, className, }: MobileDashboardLayoutProps): React$1.JSX.Element;
|
|
2095
|
-
|
|
2096
|
-
interface MobileColumn<T> {
|
|
2097
|
-
key: string;
|
|
2098
|
-
header: string;
|
|
2099
|
-
render?: (row: T) => React$1.ReactNode;
|
|
2100
|
-
primary?: boolean;
|
|
2101
|
-
}
|
|
2102
|
-
interface MobileDataTableProps<T> {
|
|
2103
|
-
columns: MobileColumn<T>[];
|
|
2104
|
-
data: T[];
|
|
2105
|
-
onRowClick?: (row: T) => void;
|
|
2106
|
-
className?: string;
|
|
2107
|
-
}
|
|
2108
|
-
declare function MobileDataTable<T>({ columns, data, onRowClick, className, }: MobileDataTableProps<T>): React$1.JSX.Element | null;
|
|
2109
|
-
|
|
2110
|
-
interface MobileDialogProps {
|
|
2111
|
-
children: React$1.ReactNode;
|
|
2112
|
-
title?: string;
|
|
2113
|
-
description?: string;
|
|
2114
|
-
trigger?: React$1.ReactElement;
|
|
2115
|
-
actions?: React$1.ReactNode;
|
|
2116
|
-
open?: boolean;
|
|
2117
|
-
onOpenChange?: (open: boolean) => void;
|
|
2118
|
-
className?: string;
|
|
2119
|
-
}
|
|
2120
|
-
declare function MobileDialog({ children, title, description, trigger, actions, open, onOpenChange, className, }: MobileDialogProps): React$1.JSX.Element;
|
|
2121
|
-
|
|
2122
|
-
interface MobileEmptyStateProps {
|
|
2123
|
-
variant?: string;
|
|
2124
|
-
icon?: React$1.ElementType;
|
|
2125
|
-
title?: string;
|
|
2126
|
-
description?: string;
|
|
2127
|
-
action?: React$1.ReactNode;
|
|
2128
|
-
className?: string;
|
|
2129
|
-
}
|
|
2130
|
-
declare function MobileEmptyState({ className, ...props }: MobileEmptyStateProps): React$1.JSX.Element;
|
|
2131
|
-
|
|
2132
|
-
interface MobileFilterBuilderProps {
|
|
2133
|
-
fields: {
|
|
2134
|
-
key: string;
|
|
2135
|
-
label: string;
|
|
2136
|
-
}[];
|
|
2137
|
-
onChange?: (result: {
|
|
2138
|
-
logic: string;
|
|
2139
|
-
filters: {
|
|
2140
|
-
field: string;
|
|
2141
|
-
operator: string;
|
|
2142
|
-
value: string;
|
|
2143
|
-
}[];
|
|
2144
|
-
}) => void;
|
|
2145
|
-
className?: string;
|
|
2146
|
-
}
|
|
2147
|
-
declare function MobileFilterBuilder({ className, ...props }: MobileFilterBuilderProps): React$1.JSX.Element;
|
|
2148
|
-
|
|
2149
|
-
interface MobileFormProps {
|
|
2150
|
-
children: React$1.ReactNode;
|
|
2151
|
-
onSubmit?: (e: React$1.FormEvent) => void;
|
|
2152
|
-
className?: string;
|
|
2153
|
-
}
|
|
2154
|
-
declare function MobileForm({ children, onSubmit, className }: MobileFormProps): React$1.JSX.Element;
|
|
2155
|
-
|
|
2156
|
-
interface MobileFormFieldProps {
|
|
2157
|
-
label?: string;
|
|
2158
|
-
description?: string;
|
|
2159
|
-
error?: string;
|
|
2160
|
-
required?: boolean;
|
|
2161
|
-
children: React$1.ReactNode;
|
|
2162
|
-
className?: string;
|
|
2163
|
-
}
|
|
2164
|
-
declare function MobileFormField({ className, ...props }: MobileFormFieldProps): React$1.JSX.Element;
|
|
2165
|
-
|
|
2166
|
-
interface MobileFormWizardProps {
|
|
2167
|
-
steps: {
|
|
2168
|
-
title: string;
|
|
2169
|
-
description?: string;
|
|
2170
|
-
render: (context: WizardRenderContext) => React$1.ReactNode;
|
|
2171
|
-
validate?: (data: Record<string, unknown>) => Record<string, string>;
|
|
2172
|
-
}[];
|
|
2173
|
-
onComplete?: (data: Record<string, unknown>) => void;
|
|
2174
|
-
className?: string;
|
|
2175
|
-
}
|
|
2176
|
-
declare function MobileFormWizard({ steps, onComplete, className, }: MobileFormWizardProps): React$1.JSX.Element;
|
|
2177
|
-
|
|
2178
|
-
type MobileInputProps = React$1.ComponentProps<typeof Input>;
|
|
2179
|
-
declare function MobileInput({ className, ...props }: MobileInputProps): React$1.JSX.Element;
|
|
2180
|
-
|
|
2181
|
-
interface MobileKanbanProps {
|
|
2182
|
-
columns: KanbanColumnData[];
|
|
2183
|
-
onColumnsChange?: (columns: KanbanColumnData[]) => void;
|
|
2184
|
-
renderCard?: (item: KanbanItem) => React$1.ReactNode;
|
|
2185
|
-
className?: string;
|
|
2186
|
-
}
|
|
2187
|
-
declare function MobileKanban({ className, ...props }: MobileKanbanProps): React$1.JSX.Element;
|
|
2188
|
-
|
|
2189
|
-
interface MobileKPICardProps {
|
|
2190
|
-
title: string;
|
|
2191
|
-
value: string;
|
|
2192
|
-
change?: string;
|
|
2193
|
-
changeType?: "positive" | "negative" | "neutral";
|
|
2194
|
-
icon?: React$1.ElementType;
|
|
2195
|
-
className?: string;
|
|
2196
|
-
}
|
|
2197
|
-
declare function MobileKPICard({ title, value, change, changeType, icon: Icon, className, }: MobileKPICardProps): React$1.JSX.Element;
|
|
2198
|
-
|
|
2199
|
-
interface MobileNavigationProps {
|
|
2200
|
-
items: {
|
|
2201
|
-
label: string;
|
|
2202
|
-
href?: string;
|
|
2203
|
-
icon?: React$1.ElementType;
|
|
2204
|
-
active?: boolean;
|
|
2205
|
-
onClick?: () => void;
|
|
2206
|
-
}[];
|
|
2207
|
-
className?: string;
|
|
2208
|
-
}
|
|
2209
|
-
declare function MobileNavigation({ items, className }: MobileNavigationProps): React$1.JSX.Element;
|
|
2210
|
-
|
|
2211
|
-
interface MobilePageHeaderProps {
|
|
2212
|
-
title: string;
|
|
2213
|
-
description?: string;
|
|
2214
|
-
breadcrumbItems?: {
|
|
2215
|
-
label: string;
|
|
2216
|
-
href?: string;
|
|
2217
|
-
}[];
|
|
2218
|
-
actions?: React$1.ReactNode;
|
|
2219
|
-
onBack?: () => void;
|
|
2220
|
-
onMenu?: () => void;
|
|
2221
|
-
className?: string;
|
|
2222
|
-
}
|
|
2223
|
-
declare function MobilePageHeader({ onBack, onMenu, className, ...props }: MobilePageHeaderProps): React$1.JSX.Element;
|
|
2224
|
-
|
|
2225
|
-
interface PullToRefreshProps extends React$1.ComponentProps<"div"> {
|
|
2226
|
-
onRefresh: () => Promise<void> | void;
|
|
2227
|
-
threshold?: number;
|
|
2228
|
-
disabled?: boolean;
|
|
2229
|
-
className?: string;
|
|
2230
|
-
refreshingText?: string;
|
|
2231
|
-
pullText?: string;
|
|
2232
|
-
releaseText?: string;
|
|
2233
|
-
}
|
|
2234
|
-
declare function PullToRefresh({ onRefresh, threshold, disabled, className, refreshingText, pullText, releaseText, children, ...props }: PullToRefreshProps): React$1.JSX.Element;
|
|
2235
|
-
|
|
2236
|
-
interface MobileSelectOption {
|
|
2237
|
-
value: string;
|
|
2238
|
-
label: string;
|
|
2239
|
-
}
|
|
2240
|
-
interface MobileSelectProps {
|
|
2241
|
-
options: MobileSelectOption[];
|
|
2242
|
-
value?: string;
|
|
2243
|
-
onValueChange?: (value: string) => void;
|
|
2244
|
-
placeholder?: string;
|
|
2245
|
-
disabled?: boolean;
|
|
2246
|
-
className?: string;
|
|
2247
|
-
}
|
|
2248
|
-
declare function MobileSelect({ options, value, onValueChange, placeholder, disabled, className, }: MobileSelectProps): React$1.JSX.Element;
|
|
2249
|
-
|
|
2250
|
-
interface MobileSheetProps {
|
|
2251
|
-
children: React$1.ReactNode;
|
|
2252
|
-
title?: string;
|
|
2253
|
-
description?: string;
|
|
2254
|
-
trigger?: React$1.ReactElement;
|
|
2255
|
-
actions?: React$1.ReactNode;
|
|
2256
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
2257
|
-
open?: boolean;
|
|
2258
|
-
onOpenChange?: (open: boolean) => void;
|
|
2259
|
-
className?: string;
|
|
2260
|
-
}
|
|
2261
|
-
declare function MobileSheet({ children, title, description, trigger, actions, side, open, onOpenChange, className, }: MobileSheetProps): React$1.JSX.Element;
|
|
2262
|
-
|
|
2263
|
-
interface MobileSkeletonProps extends React.ComponentProps<"div"> {
|
|
2264
|
-
className?: string;
|
|
2265
|
-
}
|
|
2266
|
-
declare function MobileListItemSkeleton({ className, ...props }: MobileSkeletonProps): React$1.JSX.Element;
|
|
2267
|
-
declare function MobileCardSkeleton({ className, ...props }: MobileSkeletonProps): React$1.JSX.Element;
|
|
2268
|
-
declare function MobileDetailSkeleton({ className, ...props }: MobileSkeletonProps): React$1.JSX.Element;
|
|
2269
|
-
|
|
2270
|
-
type SwipeDirection = "left" | "right" | "up" | "down";
|
|
2271
|
-
interface SwipeActionsProps extends React$1.ComponentProps<"div"> {
|
|
2272
|
-
onSwipeLeft?: () => void;
|
|
2273
|
-
onSwipeRight?: () => void;
|
|
2274
|
-
onSwipeUp?: () => void;
|
|
2275
|
-
onSwipeDown?: () => void;
|
|
2276
|
-
threshold?: number;
|
|
2277
|
-
disabled?: boolean;
|
|
2278
|
-
leftAction?: {
|
|
2279
|
-
label: string;
|
|
2280
|
-
color?: string;
|
|
2281
|
-
onClick: () => void;
|
|
2282
|
-
icon?: React$1.ReactNode;
|
|
2283
|
-
};
|
|
2284
|
-
rightAction?: {
|
|
2285
|
-
label: string;
|
|
2286
|
-
color?: string;
|
|
2287
|
-
onClick: () => void;
|
|
2288
|
-
icon?: React$1.ReactNode;
|
|
2289
|
-
};
|
|
2290
|
-
className?: string;
|
|
2291
|
-
}
|
|
2292
|
-
declare function SwipeActions({ onSwipeLeft, onSwipeRight, onSwipeUp, onSwipeDown, threshold, disabled, leftAction, rightAction, className, children, ...props }: SwipeActionsProps): React$1.JSX.Element;
|
|
2293
|
-
|
|
2294
|
-
interface MobileTabItem {
|
|
2295
|
-
value: string;
|
|
2296
|
-
label: string;
|
|
2297
|
-
content: React$1.ReactNode;
|
|
2298
|
-
}
|
|
2299
|
-
interface MobileTabsProps {
|
|
2300
|
-
tabs: MobileTabItem[];
|
|
2301
|
-
defaultValue?: string;
|
|
2302
|
-
className?: string;
|
|
2303
|
-
}
|
|
2304
|
-
declare function MobileTabs({ tabs, defaultValue, className }: MobileTabsProps): React$1.JSX.Element;
|
|
2305
|
-
|
|
2306
|
-
type MobileTextareaProps = React$1.ComponentProps<"textarea">;
|
|
2307
|
-
declare function MobileTextarea({ className, ...props }: MobileTextareaProps): React$1.JSX.Element;
|
|
2046
|
+
declare function MetricTrend({ label, value, unit, change, changeLabel, format, sparklineData, trendDirection, icon, loading, className, ...props }: MetricTrendProps): React.JSX.Element;
|
|
2308
2047
|
|
|
2309
2048
|
interface MultiSelectOption {
|
|
2310
2049
|
value: string;
|
|
@@ -2335,40 +2074,7 @@ interface MultiSelectProps {
|
|
|
2335
2074
|
* @example
|
|
2336
2075
|
* <MultiSelect options={[{ value: "1", label: "Option 1" }]} value={selected} onChange={setSelected} />
|
|
2337
2076
|
*/
|
|
2338
|
-
declare function MultiSelect({ options, value, onChange, placeholder, searchPlaceholder, emptyText, disabled, className, maxCount, maxSelected, clearable, }: MultiSelectProps): React
|
|
2339
|
-
|
|
2340
|
-
interface NotificationItem {
|
|
2341
|
-
id: string;
|
|
2342
|
-
title: string;
|
|
2343
|
-
description?: string;
|
|
2344
|
-
timestamp: number | Date | string;
|
|
2345
|
-
read?: boolean;
|
|
2346
|
-
type?: "info" | "success" | "warning" | "error";
|
|
2347
|
-
action?: {
|
|
2348
|
-
label: string;
|
|
2349
|
-
onClick: () => void;
|
|
2350
|
-
};
|
|
2351
|
-
}
|
|
2352
|
-
interface NotificationCenterProps {
|
|
2353
|
-
notifications: NotificationItem[];
|
|
2354
|
-
onMarkRead?: (id: string) => void;
|
|
2355
|
-
onMarkAllRead?: () => void;
|
|
2356
|
-
onClear?: () => void;
|
|
2357
|
-
onItemClick?: (item: NotificationItem) => void;
|
|
2358
|
-
align?: "start" | "center" | "end";
|
|
2359
|
-
className?: string;
|
|
2360
|
-
emptyText?: string;
|
|
2361
|
-
}
|
|
2362
|
-
/**
|
|
2363
|
-
* @component NotificationCenter
|
|
2364
|
-
* @category business/ux
|
|
2365
|
-
* @since 0.2.0
|
|
2366
|
-
* @description Notification bell with popover panel, unread badge, mark-read/clear-all actions, and type-styled indicators / 通知铃铛组件,含弹出面板、未读标记、已读/清空操作和类型样式指示器
|
|
2367
|
-
* @keywords notification, bell, popover, unread, badge, alert
|
|
2368
|
-
* @example
|
|
2369
|
-
* <NotificationCenter notifications={[{ id: "1", title: "Hello", timestamp: Date.now() }]} />
|
|
2370
|
-
*/
|
|
2371
|
-
declare function NotificationCenter({ notifications, onMarkRead, onMarkAllRead, onClear, onItemClick, align, className, emptyText, }: NotificationCenterProps): React$1.JSX.Element;
|
|
2077
|
+
declare function MultiSelect({ options, value, onChange, placeholder, searchPlaceholder, emptyText, disabled, className, maxCount, maxSelected, clearable, }: MultiSelectProps): React.JSX.Element;
|
|
2372
2078
|
|
|
2373
2079
|
/**
|
|
2374
2080
|
* @component OrderLineEditor
|
|
@@ -2398,7 +2104,7 @@ interface OrderLine {
|
|
|
2398
2104
|
remark?: string;
|
|
2399
2105
|
[key: string]: unknown;
|
|
2400
2106
|
}
|
|
2401
|
-
interface OrderLineEditorProps extends Omit<React
|
|
2107
|
+
interface OrderLineEditorProps extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
2402
2108
|
/** Line data / 明细数据 */
|
|
2403
2109
|
data: OrderLine[];
|
|
2404
2110
|
/** Data change callback / 数据变更回调 */
|
|
@@ -2416,7 +2122,7 @@ interface OrderLineEditorProps extends Omit<React$1.ComponentProps<"div">, "onCh
|
|
|
2416
2122
|
/** Currency symbol / 货币符号 */
|
|
2417
2123
|
currency?: string;
|
|
2418
2124
|
}
|
|
2419
|
-
declare function OrderLineEditor({ className, data, onChange, skuOptions, onSkuSearch, readOnly, minRows, maxRows, currency, ...props }: OrderLineEditorProps): React
|
|
2125
|
+
declare function OrderLineEditor({ className, data, onChange, skuOptions, onSkuSearch, readOnly, minRows, maxRows, currency, ...props }: OrderLineEditorProps): React.JSX.Element;
|
|
2420
2126
|
|
|
2421
2127
|
interface BreadcrumbItemType {
|
|
2422
2128
|
label: string;
|
|
@@ -2427,11 +2133,11 @@ interface PageHeaderProps {
|
|
|
2427
2133
|
description?: string;
|
|
2428
2134
|
breadcrumbItems?: BreadcrumbItemType[];
|
|
2429
2135
|
/** Action area — accepts ReactNode or Button array / 操作区,支持 ReactNode 或 Button 数组 */
|
|
2430
|
-
actions?: React
|
|
2136
|
+
actions?: React.ReactNode;
|
|
2431
2137
|
/** Primary action (highlighted) / 主要操作按钮 */
|
|
2432
|
-
primaryAction?: React
|
|
2138
|
+
primaryAction?: React.ReactNode;
|
|
2433
2139
|
/** Secondary actions (displayed after primary) / 次要操作列表 */
|
|
2434
|
-
secondaryActions?: React
|
|
2140
|
+
secondaryActions?: React.ReactNode[];
|
|
2435
2141
|
className?: string;
|
|
2436
2142
|
}
|
|
2437
2143
|
/**
|
|
@@ -2443,7 +2149,7 @@ interface PageHeaderProps {
|
|
|
2443
2149
|
* @example
|
|
2444
2150
|
* <PageHeader title="Dashboard" description="Overview of your workspace" breadcrumbItems={items} primaryAction={<Button>Create</Button>} />
|
|
2445
2151
|
*/
|
|
2446
|
-
declare function PageHeader({ title, description, breadcrumbItems, actions, primaryAction, secondaryActions, className, }: PageHeaderProps): React
|
|
2152
|
+
declare function PageHeader({ title, description, breadcrumbItems, actions, primaryAction, secondaryActions, className, }: PageHeaderProps): React.JSX.Element;
|
|
2447
2153
|
|
|
2448
2154
|
interface PermissionMatrixRole {
|
|
2449
2155
|
id: string;
|
|
@@ -2456,7 +2162,7 @@ interface PermissionMatrixResource {
|
|
|
2456
2162
|
permissions: string[];
|
|
2457
2163
|
}
|
|
2458
2164
|
type PermissionMatrixValue = Record<string, Record<string, string[]>>;
|
|
2459
|
-
interface PermissionMatrixProps extends Omit<React
|
|
2165
|
+
interface PermissionMatrixProps extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
2460
2166
|
roles: PermissionMatrixRole[];
|
|
2461
2167
|
resources: PermissionMatrixResource[];
|
|
2462
2168
|
value: PermissionMatrixValue;
|
|
@@ -2472,7 +2178,7 @@ interface PermissionMatrixProps extends Omit<React$1.ComponentProps<"div">, "onC
|
|
|
2472
2178
|
* @example
|
|
2473
2179
|
* <PermissionMatrix roles={roles} resources={resources} value={value} onChange={setValue} />
|
|
2474
2180
|
*/
|
|
2475
|
-
declare function PermissionMatrix({ roles, resources, value, onChange, readOnly, className, ...props }: PermissionMatrixProps): React
|
|
2181
|
+
declare function PermissionMatrix({ roles, resources, value, onChange, readOnly, className, ...props }: PermissionMatrixProps): React.JSX.Element;
|
|
2476
2182
|
|
|
2477
2183
|
type Aggregation = "sum" | "count" | "avg" | "min" | "max";
|
|
2478
2184
|
interface PivotTableProps<T extends Record<string, unknown>> {
|
|
@@ -2496,13 +2202,13 @@ interface PivotTableProps<T extends Record<string, unknown>> {
|
|
|
2496
2202
|
* @example
|
|
2497
2203
|
* <PivotTable data={rows} rowField="product" columnField="region" valueField="sales" aggregation="sum" />
|
|
2498
2204
|
*/
|
|
2499
|
-
declare function PivotTable<T extends Record<string, unknown>>({ data, rowField, columnField, valueField, aggregation, className, showRowTotal, showColumnTotal, filter, formatValue, }: PivotTableProps<T>): React
|
|
2205
|
+
declare function PivotTable<T extends Record<string, unknown>>({ data, rowField, columnField, valueField, aggregation, className, showRowTotal, showColumnTotal, filter, formatValue, }: PivotTableProps<T>): React.JSX.Element;
|
|
2500
2206
|
|
|
2501
2207
|
interface PromptDialogProps {
|
|
2502
2208
|
open?: boolean;
|
|
2503
2209
|
onOpenChange?: (open: boolean) => void;
|
|
2504
2210
|
title?: string;
|
|
2505
|
-
description?: React
|
|
2211
|
+
description?: React.ReactNode;
|
|
2506
2212
|
label?: string;
|
|
2507
2213
|
placeholder?: string;
|
|
2508
2214
|
defaultValue?: string;
|
|
@@ -2521,10 +2227,10 @@ interface PromptDialogProps {
|
|
|
2521
2227
|
* @example
|
|
2522
2228
|
* <PromptDialog open={open} onOpenChange={setOpen} onConfirm={(value) => console.log(value)} />
|
|
2523
2229
|
*/
|
|
2524
|
-
declare function PromptDialog({ open, onOpenChange, title, description, label, placeholder, defaultValue, confirmText, cancelText, onConfirm, required, inputType, }: PromptDialogProps): React
|
|
2230
|
+
declare function PromptDialog({ open, onOpenChange, title, description, label, placeholder, defaultValue, confirmText, cancelText, onConfirm, required, inputType, }: PromptDialogProps): React.JSX.Element;
|
|
2525
2231
|
|
|
2526
2232
|
interface ResponsivePreviewProps {
|
|
2527
|
-
children: React
|
|
2233
|
+
children: React.ReactNode;
|
|
2528
2234
|
device?: "mobile" | "tablet" | "desktop";
|
|
2529
2235
|
showFrame?: boolean;
|
|
2530
2236
|
showLabel?: boolean;
|
|
@@ -2541,7 +2247,7 @@ interface ResponsivePreviewProps {
|
|
|
2541
2247
|
* <MyComponent />
|
|
2542
2248
|
* </ResponsivePreview>
|
|
2543
2249
|
*/
|
|
2544
|
-
declare function ResponsivePreview({ children, device, showFrame, showLabel, className, }: ResponsivePreviewProps): React
|
|
2250
|
+
declare function ResponsivePreview({ children, device, showFrame, showLabel, className, }: ResponsivePreviewProps): React.JSX.Element;
|
|
2545
2251
|
|
|
2546
2252
|
interface RoleAssignmentPrincipal {
|
|
2547
2253
|
id: string;
|
|
@@ -2554,7 +2260,7 @@ interface RoleAssignmentRole {
|
|
|
2554
2260
|
description?: string;
|
|
2555
2261
|
}
|
|
2556
2262
|
type RoleAssignmentValue = Record<string, string[]>;
|
|
2557
|
-
interface RoleAssignmentProps extends Omit<React
|
|
2263
|
+
interface RoleAssignmentProps extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
2558
2264
|
principals: RoleAssignmentPrincipal[];
|
|
2559
2265
|
roles: RoleAssignmentRole[];
|
|
2560
2266
|
value: RoleAssignmentValue;
|
|
@@ -2570,7 +2276,7 @@ interface RoleAssignmentProps extends Omit<React$1.ComponentProps<"div">, "onCha
|
|
|
2570
2276
|
* @example
|
|
2571
2277
|
* <RoleAssignment principals={users} roles={roles} value={assignments} onChange={setAssignments} />
|
|
2572
2278
|
*/
|
|
2573
|
-
declare function RoleAssignment({ principals, roles, value, onChange, readOnly, className, ...props }: RoleAssignmentProps): React
|
|
2279
|
+
declare function RoleAssignment({ principals, roles, value, onChange, readOnly, className, ...props }: RoleAssignmentProps): React.JSX.Element;
|
|
2574
2280
|
|
|
2575
2281
|
interface SavedFilter {
|
|
2576
2282
|
id: string;
|
|
@@ -2598,7 +2304,7 @@ interface SavedFiltersProps {
|
|
|
2598
2304
|
* @example
|
|
2599
2305
|
* <SavedFilters filters={items} activeId={currentId} onApply={handleApply} onSave={handleSave} onDelete={handleDelete} />
|
|
2600
2306
|
*/
|
|
2601
|
-
declare function SavedFilters({ filters, activeId, onApply, onSave, onDelete, onPin, className, label, }: SavedFiltersProps): React
|
|
2307
|
+
declare function SavedFilters({ filters, activeId, onApply, onSave, onDelete, onPin, className, label, }: SavedFiltersProps): React.JSX.Element;
|
|
2602
2308
|
|
|
2603
2309
|
interface SocialShareProps {
|
|
2604
2310
|
/** URL to share. */
|
|
@@ -2619,7 +2325,7 @@ interface SocialShareProps {
|
|
|
2619
2325
|
* @example
|
|
2620
2326
|
* <SocialShare url="https://example.com" title="Check this out" />
|
|
2621
2327
|
*/
|
|
2622
|
-
declare function SocialShare({ url, title, platforms, className, }: SocialShareProps): React
|
|
2328
|
+
declare function SocialShare({ url, title, platforms, className, }: SocialShareProps): React.JSX.Element;
|
|
2623
2329
|
|
|
2624
2330
|
interface SqlEditorProps {
|
|
2625
2331
|
/** SQL content (controlled). */
|
|
@@ -2656,7 +2362,7 @@ interface SqlEditorProps {
|
|
|
2656
2362
|
* onChange={(v) => setQuery(v)}
|
|
2657
2363
|
* />
|
|
2658
2364
|
*/
|
|
2659
|
-
declare function SqlEditor({ value, onChange, dialect, placeholder, readOnly, minHeight, maxHeight, className, onFocus, onBlur, }: SqlEditorProps): React
|
|
2365
|
+
declare function SqlEditor({ value, onChange, dialect, placeholder, readOnly, minHeight, maxHeight, className, onFocus, onBlur, }: SqlEditorProps): React.JSX.Element;
|
|
2660
2366
|
|
|
2661
2367
|
/**
|
|
2662
2368
|
* @component StatCard
|
|
@@ -2674,21 +2380,21 @@ declare function StatCard({ title, value, change, changeType, icon: Icon, classN
|
|
|
2674
2380
|
changeType?: "positive" | "negative" | "neutral";
|
|
2675
2381
|
icon?: LucideIcon;
|
|
2676
2382
|
className?: string;
|
|
2677
|
-
}): React
|
|
2383
|
+
}): React.JSX.Element;
|
|
2678
2384
|
|
|
2679
2385
|
interface StatCardRowProps {
|
|
2680
2386
|
cards: {
|
|
2681
2387
|
title: string;
|
|
2682
|
-
value: React
|
|
2388
|
+
value: React.ReactNode;
|
|
2683
2389
|
description?: string;
|
|
2684
|
-
icon?: React
|
|
2390
|
+
icon?: React.ReactNode;
|
|
2685
2391
|
color?: string;
|
|
2686
2392
|
trend?: {
|
|
2687
2393
|
value: number;
|
|
2688
2394
|
/** "up" = positive/green, "down" = negative/red */
|
|
2689
2395
|
direction?: "up" | "down";
|
|
2690
2396
|
};
|
|
2691
|
-
sparkline?: React
|
|
2397
|
+
sparkline?: React.ReactNode;
|
|
2692
2398
|
onClick?: () => void;
|
|
2693
2399
|
}[];
|
|
2694
2400
|
/** Responsive columns */
|
|
@@ -2708,7 +2414,7 @@ interface StatCardRowProps {
|
|
|
2708
2414
|
* @category business/dashboard
|
|
2709
2415
|
* @since 0.2.0
|
|
2710
2416
|
*/
|
|
2711
|
-
declare function StatCardRow({ cards, columns, className }: StatCardRowProps): React
|
|
2417
|
+
declare function StatCardRow({ cards, columns, className }: StatCardRowProps): React.JSX.Element;
|
|
2712
2418
|
|
|
2713
2419
|
type Status = "draft" | "pending" | "approved" | "rejected" | "completed" | "cancelled";
|
|
2714
2420
|
declare const statusConfig: Record<Status, {
|
|
@@ -2730,43 +2436,7 @@ interface StatusTagProps {
|
|
|
2730
2436
|
* @example
|
|
2731
2437
|
* <StatusTag status="approved" />
|
|
2732
2438
|
*/
|
|
2733
|
-
declare function StatusTag({ status, size, label }: StatusTagProps): React
|
|
2734
|
-
|
|
2735
|
-
interface UserMenuUser {
|
|
2736
|
-
name: string;
|
|
2737
|
-
email?: string;
|
|
2738
|
-
avatar?: string;
|
|
2739
|
-
role?: string;
|
|
2740
|
-
}
|
|
2741
|
-
interface UserMenuAction {
|
|
2742
|
-
label: string;
|
|
2743
|
-
icon?: React$1.ReactNode;
|
|
2744
|
-
onClick?: () => void;
|
|
2745
|
-
href?: string;
|
|
2746
|
-
destructive?: boolean;
|
|
2747
|
-
disabled?: boolean;
|
|
2748
|
-
}
|
|
2749
|
-
interface UserMenuProps {
|
|
2750
|
-
user: UserMenuUser;
|
|
2751
|
-
actions?: UserMenuAction[];
|
|
2752
|
-
showProfile?: boolean;
|
|
2753
|
-
showSettings?: boolean;
|
|
2754
|
-
onProfile?: () => void;
|
|
2755
|
-
onSettings?: () => void;
|
|
2756
|
-
onSignOut?: () => void;
|
|
2757
|
-
align?: "start" | "center" | "end";
|
|
2758
|
-
className?: string;
|
|
2759
|
-
}
|
|
2760
|
-
/**
|
|
2761
|
-
* @component UserMenu
|
|
2762
|
-
* @category business/ux
|
|
2763
|
-
* @since 0.2.0
|
|
2764
|
-
* @description Avatar dropdown menu with user info, profile/settings links, custom actions, and sign-out / 头像下拉菜单,包含用户信息、个人资料/设置链接、自定义操作和退出登录
|
|
2765
|
-
* @keywords user, menu, avatar, dropdown, profile, settings, signout
|
|
2766
|
-
* @example
|
|
2767
|
-
* <UserMenu user={currentUser} onProfile={goToProfile} onSignOut={handleSignOut} />
|
|
2768
|
-
*/
|
|
2769
|
-
declare function UserMenu({ user, actions, showProfile, showSettings, onProfile, onSettings, onSignOut, align, className, }: UserMenuProps): React$1.JSX.Element;
|
|
2439
|
+
declare function StatusTag({ status, size, label }: StatusTagProps): React.JSX.Element;
|
|
2770
2440
|
|
|
2771
2441
|
interface UTMBuilderValue {
|
|
2772
2442
|
url: string;
|
|
@@ -2790,7 +2460,7 @@ interface UTMBuilderProps {
|
|
|
2790
2460
|
* @example
|
|
2791
2461
|
* <UTMBuilder value={defaultParams} onChange={(value, url) => console.log(url)} />
|
|
2792
2462
|
*/
|
|
2793
|
-
declare function UTMBuilder({ value, onChange, className }: UTMBuilderProps): React
|
|
2463
|
+
declare function UTMBuilder({ value, onChange, className }: UTMBuilderProps): React.JSX.Element;
|
|
2794
2464
|
|
|
2795
2465
|
interface VersionHistoryItem {
|
|
2796
2466
|
id: string;
|
|
@@ -2802,7 +2472,7 @@ interface VersionHistoryItem {
|
|
|
2802
2472
|
current?: boolean;
|
|
2803
2473
|
changes?: string[];
|
|
2804
2474
|
}
|
|
2805
|
-
interface VersionHistoryProps extends React
|
|
2475
|
+
interface VersionHistoryProps extends React.ComponentProps<"div"> {
|
|
2806
2476
|
versions: VersionHistoryItem[];
|
|
2807
2477
|
onRestore?: (version: VersionHistoryItem) => void;
|
|
2808
2478
|
}
|
|
@@ -2815,7 +2485,7 @@ interface VersionHistoryProps extends React$1.ComponentProps<"div"> {
|
|
|
2815
2485
|
* @example
|
|
2816
2486
|
* <VersionHistory versions={items} onRestore={handleRestore} />
|
|
2817
2487
|
*/
|
|
2818
|
-
declare function VersionHistory({ versions, onRestore, className, ...props }: VersionHistoryProps): React
|
|
2488
|
+
declare function VersionHistory({ versions, onRestore, className, ...props }: VersionHistoryProps): React.JSX.Element;
|
|
2819
2489
|
|
|
2820
2490
|
/**
|
|
2821
2491
|
* @component ColorTag
|
|
@@ -2837,7 +2507,7 @@ declare const colorConfig: Record<ColorTagColor, {
|
|
|
2837
2507
|
text: string;
|
|
2838
2508
|
border: string;
|
|
2839
2509
|
}>;
|
|
2840
|
-
interface ColorTagProps extends React
|
|
2510
|
+
interface ColorTagProps extends React.ComponentProps<"span"> {
|
|
2841
2511
|
/** Color key / 颜色标识 */
|
|
2842
2512
|
color: ColorTagColor | (string & {});
|
|
2843
2513
|
/** Tag size / 大小 */
|
|
@@ -2851,13 +2521,13 @@ interface ColorTagProps extends React$1.ComponentProps<"span"> {
|
|
|
2851
2521
|
border: string;
|
|
2852
2522
|
}>>;
|
|
2853
2523
|
}
|
|
2854
|
-
declare function ColorTag({ className, color, size, dot, colorConfig: customConfig, children, ...props }: ColorTagProps): React
|
|
2524
|
+
declare function ColorTag({ className, color, size, dot, colorConfig: customConfig, children, ...props }: ColorTagProps): React.JSX.Element;
|
|
2855
2525
|
|
|
2856
2526
|
/**
|
|
2857
2527
|
* Status mapping entry: [label, color].
|
|
2858
2528
|
* value → 渲染文案 + ColorTag 语义色。
|
|
2859
2529
|
*/
|
|
2860
|
-
type StatusEntry = [label: React
|
|
2530
|
+
type StatusEntry = [label: React.ReactNode, color: ColorTagColor];
|
|
2861
2531
|
/**
|
|
2862
2532
|
* Mapping from a status value (string | number | boolean) to [label, color].
|
|
2863
2533
|
* 支持任意业务状态码 → 标准化文案 + 语义色。
|
|
@@ -2882,7 +2552,7 @@ interface StatusBadgeProps {
|
|
|
2882
2552
|
*/
|
|
2883
2553
|
mapping?: StatusMapping;
|
|
2884
2554
|
/** Override the rendered label (defaults to mapping label or value). / 覆盖文案 */
|
|
2885
|
-
label?: React
|
|
2555
|
+
label?: React.ReactNode;
|
|
2886
2556
|
/** ColorTag size. / 尺寸 */
|
|
2887
2557
|
size?: "sm" | "md" | "lg";
|
|
2888
2558
|
/** Show a dot indicator. / 显示圆点 */
|
|
@@ -2910,107 +2580,7 @@ interface StatusBadgeProps {
|
|
|
2910
2580
|
* @since 0.6.0
|
|
2911
2581
|
* @keywords status, badge, tag, color, mapping, preset
|
|
2912
2582
|
*/
|
|
2913
|
-
declare function StatusBadge({ value, preset, mapping, label, size, dot, className, }: StatusBadgeProps): React
|
|
2914
|
-
|
|
2915
|
-
/**
|
|
2916
|
-
* @component DialogFormBody
|
|
2917
|
-
* @category layout
|
|
2918
|
-
* @since 0.5.0
|
|
2919
|
-
* @description Drop-in body for Dialog forms - stacks FormFields / LabeledFields
|
|
2920
|
-
* vertically with appropriate gap and padding.
|
|
2921
|
-
* / Dialog form layout, vertical FormField stacking, default gap + padding
|
|
2922
|
-
* @example
|
|
2923
|
-
* <DialogContent>
|
|
2924
|
-
* <DialogHeader>...</DialogHeader>
|
|
2925
|
-
* <DialogFormBody>
|
|
2926
|
-
* <LabeledField label="Name">...</LabeledField>
|
|
2927
|
-
* </DialogFormBody>
|
|
2928
|
-
* <DialogFooter>...</DialogFooter>
|
|
2929
|
-
* </DialogContent>
|
|
2930
|
-
*/
|
|
2931
|
-
interface DialogFormBodyProps extends React$1.ComponentProps<"div"> {
|
|
2932
|
-
/** Gap between fields / field spacing, default 4 (1rem) */
|
|
2933
|
-
gap?: number | string;
|
|
2934
|
-
}
|
|
2935
|
-
declare function DialogFormBody({ className, gap, ...props }: DialogFormBodyProps): React$1.JSX.Element;
|
|
2936
|
-
interface FormStackProps extends React$1.ComponentProps<"div"> {
|
|
2937
|
-
/** Gap between items / spacing */
|
|
2938
|
-
gap?: number | string;
|
|
2939
|
-
/** Direction / layout direction */
|
|
2940
|
-
direction?: "vertical" | "horizontal";
|
|
2941
|
-
}
|
|
2942
|
-
declare function FormStack({ className, gap, direction, ...props }: FormStackProps): React$1.JSX.Element;
|
|
2943
|
-
|
|
2944
|
-
/**
|
|
2945
|
-
* @component MasterDetailLayout
|
|
2946
|
-
* @category layout
|
|
2947
|
-
* @since 0.5.0
|
|
2948
|
-
* @description 主从两栏布局 (master-detail),左侧固定宽度侧边栏 + 右侧自适应主区域。
|
|
2949
|
-
*
|
|
2950
|
-
* 宽屏并排;窄屏默认堆叠为上下,开启 `collapsible` 后窄屏把 master 折叠成
|
|
2951
|
-
* 左侧抽屉(overlay + 遮罩),对齐 Sidebar 的 collapsible 行为。
|
|
2952
|
-
* / Master-detail two-column layout; mobile master collapses to a drawer.
|
|
2953
|
-
* @keywords layout, master-detail, sidebar, two-column, responsive, drawer
|
|
2954
|
-
* @example
|
|
2955
|
-
* <MasterDetailLayout
|
|
2956
|
-
* sidebar={<TreeView />}
|
|
2957
|
-
* main={<SearchTable />}
|
|
2958
|
-
* sidebarWidth={320}
|
|
2959
|
-
* collapsible
|
|
2960
|
-
* />
|
|
2961
|
-
*/
|
|
2962
|
-
interface MasterDetailLayoutProps extends React$1.ComponentProps<"div"> {
|
|
2963
|
-
/** Sidebar content / 侧边栏内容 */
|
|
2964
|
-
sidebar: React$1.ReactNode;
|
|
2965
|
-
/** Main area content / 主区域内容 */
|
|
2966
|
-
main: React$1.ReactNode;
|
|
2967
|
-
/** Sidebar width in px / 侧边栏宽度 */
|
|
2968
|
-
sidebarWidth?: number;
|
|
2969
|
-
/** Gap between sidebar and main / 间距 */
|
|
2970
|
-
gap?: "sm" | "md" | "lg";
|
|
2971
|
-
/**
|
|
2972
|
-
* Collapse master into a drawer on narrow screens.
|
|
2973
|
-
* / 窄屏将 master 折叠为抽屉
|
|
2974
|
-
*/
|
|
2975
|
-
collapsible?: boolean;
|
|
2976
|
-
/** Controlled master drawer open state (mobile) / 受控抽屉展开 */
|
|
2977
|
-
masterOpen?: boolean;
|
|
2978
|
-
/** Uncontrolled default open / 非受控默认展开 */
|
|
2979
|
-
defaultMasterOpen?: boolean;
|
|
2980
|
-
/** Master open change callback / 展开状态变更回调 */
|
|
2981
|
-
onMasterOpenChange?: (open: boolean) => void;
|
|
2982
|
-
/** Custom toggle button (defaults to a hamburger Menu button) / 自定义切换按钮 */
|
|
2983
|
-
masterToggle?: React$1.ReactNode;
|
|
2984
|
-
/**
|
|
2985
|
-
* Also collapse master on desktop (not just mobile). / 桌面端也支持折叠 master
|
|
2986
|
-
*/
|
|
2987
|
-
collapsibleDesktop?: boolean;
|
|
2988
|
-
}
|
|
2989
|
-
declare function MasterDetailLayout({ className, sidebar, main, sidebarWidth, gap, collapsible, masterOpen, defaultMasterOpen, onMasterOpenChange, masterToggle, collapsibleDesktop, ...props }: MasterDetailLayoutProps): React$1.JSX.Element;
|
|
2990
|
-
|
|
2991
|
-
/**
|
|
2992
|
-
* @component AuthLayout
|
|
2993
|
-
* @category layout
|
|
2994
|
-
* @since 0.3.0
|
|
2995
|
-
* @description Authentication page layout. Supports single-column (centered card)
|
|
2996
|
-
* and split-screen (brand left + form right) variants. Collapses to single
|
|
2997
|
-
* column on mobile. / 认证页布局,支持单栏居中和双栏(品牌+表单)模式
|
|
2998
|
-
* @example
|
|
2999
|
-
* <AuthLayout variant="split" brand={<BrandPanel />}>
|
|
3000
|
-
* <LoginForm />
|
|
3001
|
-
* </AuthLayout>
|
|
3002
|
-
*/
|
|
3003
|
-
interface AuthLayoutProps extends React$1.ComponentProps<"div"> {
|
|
3004
|
-
/** Layout variant / 布局模式 */
|
|
3005
|
-
variant?: "centered" | "split";
|
|
3006
|
-
/** Brand panel content (left side in split mode) / 品牌展示区 */
|
|
3007
|
-
brand?: React$1.ReactNode;
|
|
3008
|
-
/** Brand panel background class (used when brand is a string or empty) / 品牌区背景样式 */
|
|
3009
|
-
brandClassName?: string;
|
|
3010
|
-
/** Maximum width of the form panel / 表单区最大宽度 */
|
|
3011
|
-
formMaxWidth?: string;
|
|
3012
|
-
}
|
|
3013
|
-
declare function AuthLayout({ variant, brand, brandClassName, formMaxWidth, className, children, ...props }: AuthLayoutProps): React$1.JSX.Element;
|
|
2583
|
+
declare function StatusBadge({ value, preset, mapping, label, size, dot, className, }: StatusBadgeProps): React.JSX.Element;
|
|
3014
2584
|
|
|
3015
2585
|
/**
|
|
3016
2586
|
* @component MasterEditTemplate
|
|
@@ -3034,10 +2604,10 @@ interface MasterEditTemplateProps {
|
|
|
3034
2604
|
onSave?: () => void;
|
|
3035
2605
|
onCancel?: () => void;
|
|
3036
2606
|
loading?: boolean;
|
|
3037
|
-
children: React
|
|
2607
|
+
children: React.ReactNode;
|
|
3038
2608
|
className?: string;
|
|
3039
2609
|
}
|
|
3040
|
-
declare function MasterEditTemplate({ title, onBack, onSave, onCancel, loading, children, className, }: MasterEditTemplateProps): React
|
|
2610
|
+
declare function MasterEditTemplate({ title, onBack, onSave, onCancel, loading, children, className, }: MasterEditTemplateProps): React.JSX.Element;
|
|
3041
2611
|
|
|
3042
2612
|
/**
|
|
3043
2613
|
* @component MasterListTemplate
|
|
@@ -3059,10 +2629,10 @@ interface MasterListTemplateProps {
|
|
|
3059
2629
|
onCreate?: () => void;
|
|
3060
2630
|
onSearch?: (keyword: string) => void;
|
|
3061
2631
|
searchPlaceholder?: string;
|
|
3062
|
-
children?: React
|
|
2632
|
+
children?: React.ReactNode;
|
|
3063
2633
|
className?: string;
|
|
3064
2634
|
}
|
|
3065
|
-
declare function MasterListTemplate({ title, onCreate, onSearch, searchPlaceholder, children, className, }: MasterListTemplateProps): React
|
|
2635
|
+
declare function MasterListTemplate({ title, onCreate, onSearch, searchPlaceholder, children, className, }: MasterListTemplateProps): React.JSX.Element;
|
|
3066
2636
|
|
|
3067
2637
|
/**
|
|
3068
2638
|
* @component PhotoAudit
|
|
@@ -3085,7 +2655,7 @@ interface PhotoAuditProps {
|
|
|
3085
2655
|
onReject?: (idx: number, reason: string) => void;
|
|
3086
2656
|
className?: string;
|
|
3087
2657
|
}
|
|
3088
|
-
declare function PhotoAudit({ photos, onApprove, onReject, className }: PhotoAuditProps): React
|
|
2658
|
+
declare function PhotoAudit({ photos, onApprove, onReject, className }: PhotoAuditProps): React.JSX.Element;
|
|
3089
2659
|
|
|
3090
2660
|
/**
|
|
3091
2661
|
* @component OperationLog
|
|
@@ -3108,7 +2678,7 @@ interface OperationLogProps {
|
|
|
3108
2678
|
}>;
|
|
3109
2679
|
className?: string;
|
|
3110
2680
|
}
|
|
3111
|
-
declare function OperationLog({ logs, className }: OperationLogProps): React
|
|
2681
|
+
declare function OperationLog({ logs, className }: OperationLogProps): React.JSX.Element;
|
|
3112
2682
|
|
|
3113
2683
|
/**
|
|
3114
2684
|
* @component BillTodoList
|
|
@@ -3126,7 +2696,7 @@ interface BillTodoListProps {
|
|
|
3126
2696
|
onItemClick?: (id: string) => void;
|
|
3127
2697
|
className?: string;
|
|
3128
2698
|
}
|
|
3129
|
-
declare function BillTodoList({ items, onItemClick, className }: BillTodoListProps): React
|
|
2699
|
+
declare function BillTodoList({ items, onItemClick, className }: BillTodoListProps): React.JSX.Element;
|
|
3130
2700
|
|
|
3131
2701
|
/**
|
|
3132
2702
|
* @component SerialNumberManager
|
|
@@ -3149,7 +2719,7 @@ interface SerialNumberManagerProps {
|
|
|
3149
2719
|
onChange?: (rules: unknown[]) => void;
|
|
3150
2720
|
className?: string;
|
|
3151
2721
|
}
|
|
3152
|
-
declare function SerialNumberManager({ rules, onChange, className }: SerialNumberManagerProps): React
|
|
2722
|
+
declare function SerialNumberManager({ rules, onChange, className }: SerialNumberManagerProps): React.JSX.Element;
|
|
3153
2723
|
|
|
3154
2724
|
interface DynamicFormBuilderProps {
|
|
3155
2725
|
schema: Array<{
|
|
@@ -3163,7 +2733,7 @@ interface DynamicFormBuilderProps {
|
|
|
3163
2733
|
onChange?: (val: Record<string, unknown>) => void;
|
|
3164
2734
|
className?: string;
|
|
3165
2735
|
}
|
|
3166
|
-
declare function DynamicFormBuilder({ schema, value, onChange, className, }: DynamicFormBuilderProps): React
|
|
2736
|
+
declare function DynamicFormBuilder({ schema, value, onChange, className, }: DynamicFormBuilderProps): React.JSX.Element;
|
|
3167
2737
|
|
|
3168
2738
|
/**
|
|
3169
2739
|
* @component FlowTracker
|
|
@@ -3186,7 +2756,7 @@ interface FlowTrackerProps {
|
|
|
3186
2756
|
}>;
|
|
3187
2757
|
className?: string;
|
|
3188
2758
|
}
|
|
3189
|
-
declare function FlowTracker({ steps, className }: FlowTrackerProps): React
|
|
2759
|
+
declare function FlowTracker({ steps, className }: FlowTrackerProps): React.JSX.Element;
|
|
3190
2760
|
|
|
3191
2761
|
/**
|
|
3192
2762
|
* @component RebutNodeSelect
|
|
@@ -3206,7 +2776,7 @@ interface RebutNodeSelectProps {
|
|
|
3206
2776
|
onSelect?: (nodeId: string) => void;
|
|
3207
2777
|
className?: string;
|
|
3208
2778
|
}
|
|
3209
|
-
declare function RebutNodeSelect({ nodes, onSelect, className }: RebutNodeSelectProps): React
|
|
2779
|
+
declare function RebutNodeSelect({ nodes, onSelect, className }: RebutNodeSelectProps): React.JSX.Element;
|
|
3210
2780
|
|
|
3211
2781
|
/**
|
|
3212
2782
|
* @component ApprovalFlow
|
|
@@ -3227,7 +2797,7 @@ interface ApprovalFlowProps {
|
|
|
3227
2797
|
}>;
|
|
3228
2798
|
className?: string;
|
|
3229
2799
|
}
|
|
3230
|
-
declare function ApprovalFlow({ nodes, edges, className }: ApprovalFlowProps): React
|
|
2800
|
+
declare function ApprovalFlow({ nodes, edges, className }: ApprovalFlowProps): React.JSX.Element;
|
|
3231
2801
|
|
|
3232
2802
|
/**
|
|
3233
2803
|
* @component ApprovalActionBar
|
|
@@ -3243,7 +2813,7 @@ interface ApprovalActionBarProps {
|
|
|
3243
2813
|
loading?: boolean;
|
|
3244
2814
|
className?: string;
|
|
3245
2815
|
}
|
|
3246
|
-
declare function ApprovalActionBar({ onApprove, onReject, onTransfer, status, loading, className }: ApprovalActionBarProps): React
|
|
2816
|
+
declare function ApprovalActionBar({ onApprove, onReject, onTransfer, status, loading, className }: ApprovalActionBarProps): React.JSX.Element;
|
|
3247
2817
|
|
|
3248
2818
|
/**
|
|
3249
2819
|
* @component BillTimeline
|
|
@@ -3261,7 +2831,7 @@ interface BillTimelineProps {
|
|
|
3261
2831
|
}>;
|
|
3262
2832
|
className?: string;
|
|
3263
2833
|
}
|
|
3264
|
-
declare function BillTimeline({ events, className }: BillTimelineProps): React
|
|
2834
|
+
declare function BillTimeline({ events, className }: BillTimelineProps): React.JSX.Element;
|
|
3265
2835
|
|
|
3266
2836
|
/**
|
|
3267
2837
|
* @component OaBridge
|
|
@@ -3280,7 +2850,7 @@ interface OaBridgeProps {
|
|
|
3280
2850
|
onSubmit?: (billId: string) => Promise<void>;
|
|
3281
2851
|
className?: string;
|
|
3282
2852
|
}
|
|
3283
|
-
declare function OaBridge({ billId, billType, onSubmit, className }: OaBridgeProps): React
|
|
2853
|
+
declare function OaBridge({ billId, billType, onSubmit, className }: OaBridgeProps): React.JSX.Element;
|
|
3284
2854
|
|
|
3285
2855
|
/**
|
|
3286
2856
|
* @component ChartSuite
|
|
@@ -3307,7 +2877,7 @@ interface ChartSuiteProps {
|
|
|
3307
2877
|
height?: number;
|
|
3308
2878
|
className?: string;
|
|
3309
2879
|
}
|
|
3310
|
-
declare function ChartSuite({ type, data, xField, yField, series, height, className, }: ChartSuiteProps): React
|
|
2880
|
+
declare function ChartSuite({ type, data, xField, yField, series, height, className, }: ChartSuiteProps): React.JSX.Element;
|
|
3311
2881
|
|
|
3312
2882
|
/**
|
|
3313
2883
|
* @component FunnelChart
|
|
@@ -3330,7 +2900,7 @@ interface FunnelChartProps {
|
|
|
3330
2900
|
height?: number;
|
|
3331
2901
|
className?: string;
|
|
3332
2902
|
}
|
|
3333
|
-
declare function FunnelChart({ data, height, className }: FunnelChartProps): React
|
|
2903
|
+
declare function FunnelChart({ data, height, className }: FunnelChartProps): React.JSX.Element;
|
|
3334
2904
|
|
|
3335
2905
|
/**
|
|
3336
2906
|
* @component GanttChart
|
|
@@ -3352,7 +2922,7 @@ interface GanttChartProps {
|
|
|
3352
2922
|
}>;
|
|
3353
2923
|
className?: string;
|
|
3354
2924
|
}
|
|
3355
|
-
declare function GanttChart({ tasks, className }: GanttChartProps): React
|
|
2925
|
+
declare function GanttChart({ tasks, className }: GanttChartProps): React.JSX.Element;
|
|
3356
2926
|
|
|
3357
2927
|
/**
|
|
3358
2928
|
* @component CalendarView
|
|
@@ -3375,7 +2945,7 @@ interface CalendarViewProps {
|
|
|
3375
2945
|
onDateSelect?: (date: string) => void;
|
|
3376
2946
|
className?: string;
|
|
3377
2947
|
}
|
|
3378
|
-
declare function CalendarView({ events, onDateSelect, className, }: CalendarViewProps): React
|
|
2948
|
+
declare function CalendarView({ events, onDateSelect, className, }: CalendarViewProps): React.JSX.Element;
|
|
3379
2949
|
|
|
3380
2950
|
/**
|
|
3381
2951
|
* @component ResourceSchedule
|
|
@@ -3400,7 +2970,7 @@ interface ResourceScheduleProps {
|
|
|
3400
2970
|
}>;
|
|
3401
2971
|
className?: string;
|
|
3402
2972
|
}
|
|
3403
|
-
declare function ResourceSchedule({ resources, bookings, className }: ResourceScheduleProps): React
|
|
2973
|
+
declare function ResourceSchedule({ resources, bookings, className }: ResourceScheduleProps): React.JSX.Element;
|
|
3404
2974
|
|
|
3405
2975
|
/**
|
|
3406
2976
|
* @component TimelineView
|
|
@@ -3420,7 +2990,7 @@ interface TimelineViewProps {
|
|
|
3420
2990
|
}>;
|
|
3421
2991
|
className?: string;
|
|
3422
2992
|
}
|
|
3423
|
-
declare function TimelineView({ events, className }: TimelineViewProps): React
|
|
2993
|
+
declare function TimelineView({ events, className }: TimelineViewProps): React.JSX.Element;
|
|
3424
2994
|
|
|
3425
2995
|
/**
|
|
3426
2996
|
* @component HeatmapChart
|
|
@@ -3440,7 +3010,7 @@ interface HeatmapChartProps {
|
|
|
3440
3010
|
}>;
|
|
3441
3011
|
className?: string;
|
|
3442
3012
|
}
|
|
3443
|
-
declare function HeatmapChart({ data, className }: HeatmapChartProps): React
|
|
3013
|
+
declare function HeatmapChart({ data, className }: HeatmapChartProps): React.JSX.Element;
|
|
3444
3014
|
|
|
3445
3015
|
/**
|
|
3446
3016
|
* @component MapChart
|
|
@@ -3463,7 +3033,7 @@ interface MapChartProps {
|
|
|
3463
3033
|
}>;
|
|
3464
3034
|
className?: string;
|
|
3465
3035
|
}
|
|
3466
|
-
declare function MapChart({ region, data, className }: MapChartProps): React
|
|
3036
|
+
declare function MapChart({ region, data, className }: MapChartProps): React.JSX.Element;
|
|
3467
3037
|
|
|
3468
3038
|
/**
|
|
3469
3039
|
* Lightweight marker data contract. Consumers pass this array to
|
|
@@ -3508,7 +3078,7 @@ interface MapMarkerClusterProps {
|
|
|
3508
3078
|
* ]}
|
|
3509
3079
|
* />
|
|
3510
3080
|
*/
|
|
3511
|
-
declare function MapMarkerCluster({ map, markers, cluster, className, }: MapMarkerClusterProps): React
|
|
3081
|
+
declare function MapMarkerCluster({ map, markers, cluster, className, }: MapMarkerClusterProps): React.JSX.Element;
|
|
3512
3082
|
|
|
3513
3083
|
interface MapTrackPoint {
|
|
3514
3084
|
/** Longitude. */
|
|
@@ -3549,7 +3119,7 @@ interface MapTrackProps {
|
|
|
3549
3119
|
* playing
|
|
3550
3120
|
* />
|
|
3551
3121
|
*/
|
|
3552
|
-
declare function MapTrack({ map, points, playing, speed, color, onStart, onEnd, className, }: MapTrackProps): React
|
|
3122
|
+
declare function MapTrack({ map, points, playing, speed, color, onStart, onEnd, className, }: MapTrackProps): React.JSX.Element;
|
|
3553
3123
|
|
|
3554
3124
|
interface MapViewProps {
|
|
3555
3125
|
/** AMap JSAPI key. Falls back to `AMAP_KEY` env or a hard-coded demo key. */
|
|
@@ -3581,7 +3151,7 @@ interface MapViewProps {
|
|
|
3581
3151
|
* onReady={(map) => console.log("ready")}
|
|
3582
3152
|
* />
|
|
3583
3153
|
*/
|
|
3584
|
-
declare function MapView({ amapKey, center, zoom, height, className, onReady, onClick, }: MapViewProps): React
|
|
3154
|
+
declare function MapView({ amapKey, center, zoom, height, className, onReady, onClick, }: MapViewProps): React.JSX.Element;
|
|
3585
3155
|
|
|
3586
3156
|
interface DashboardWidget$1 {
|
|
3587
3157
|
id: string;
|
|
@@ -3596,7 +3166,7 @@ interface DashboardCanvasProps {
|
|
|
3596
3166
|
onChange?: (widgets: unknown[]) => void;
|
|
3597
3167
|
className?: string;
|
|
3598
3168
|
}
|
|
3599
|
-
declare function DashboardCanvas({ widgets, onChange, className }: DashboardCanvasProps): React
|
|
3169
|
+
declare function DashboardCanvas({ widgets, onChange, className }: DashboardCanvasProps): React.JSX.Element;
|
|
3600
3170
|
|
|
3601
3171
|
/**
|
|
3602
3172
|
* @component BarList
|
|
@@ -3612,7 +3182,7 @@ interface BarListProps {
|
|
|
3612
3182
|
}>;
|
|
3613
3183
|
className?: string;
|
|
3614
3184
|
}
|
|
3615
|
-
declare function BarList({ data, className }: BarListProps): React
|
|
3185
|
+
declare function BarList({ data, className }: BarListProps): React.JSX.Element;
|
|
3616
3186
|
|
|
3617
3187
|
/**
|
|
3618
3188
|
* @component DeltaBar
|
|
@@ -3633,7 +3203,7 @@ interface DeltaBarProps {
|
|
|
3633
3203
|
label?: string;
|
|
3634
3204
|
className?: string;
|
|
3635
3205
|
}
|
|
3636
|
-
declare function DeltaBar({ value, maxValue, label, className, }: DeltaBarProps): React
|
|
3206
|
+
declare function DeltaBar({ value, maxValue, label, className, }: DeltaBarProps): React.JSX.Element;
|
|
3637
3207
|
|
|
3638
3208
|
/**
|
|
3639
3209
|
* @component CategoryBar
|
|
@@ -3649,7 +3219,7 @@ interface CategoryBarProps {
|
|
|
3649
3219
|
}>;
|
|
3650
3220
|
className?: string;
|
|
3651
3221
|
}
|
|
3652
|
-
declare function CategoryBar({ data, className }: CategoryBarProps): React
|
|
3222
|
+
declare function CategoryBar({ data, className }: CategoryBarProps): React.JSX.Element;
|
|
3653
3223
|
|
|
3654
3224
|
/**
|
|
3655
3225
|
* @component Callout
|
|
@@ -3665,11 +3235,11 @@ declare function CategoryBar({ data, className }: CategoryBarProps): React$1.JSX
|
|
|
3665
3235
|
*/
|
|
3666
3236
|
interface CalloutProps {
|
|
3667
3237
|
title?: string;
|
|
3668
|
-
children: React
|
|
3238
|
+
children: React.ReactNode;
|
|
3669
3239
|
variant?: "default" | "info" | "success" | "warning" | "error";
|
|
3670
3240
|
className?: string;
|
|
3671
3241
|
}
|
|
3672
|
-
declare function Callout({ title, children, variant, className, }: CalloutProps): React
|
|
3242
|
+
declare function Callout({ title, children, variant, className, }: CalloutProps): React.JSX.Element;
|
|
3673
3243
|
|
|
3674
3244
|
/**
|
|
3675
3245
|
* @component BadgeDelta
|
|
@@ -3683,7 +3253,7 @@ interface BadgeDeltaProps {
|
|
|
3683
3253
|
prefix?: string;
|
|
3684
3254
|
className?: string;
|
|
3685
3255
|
}
|
|
3686
|
-
declare function BadgeDelta({ value, suffix, prefix, className }: BadgeDeltaProps): React
|
|
3256
|
+
declare function BadgeDelta({ value, suffix, prefix, className }: BadgeDeltaProps): React.JSX.Element;
|
|
3687
3257
|
|
|
3688
3258
|
/**
|
|
3689
3259
|
* @component Tracking
|
|
@@ -3702,7 +3272,7 @@ interface TrackingProps {
|
|
|
3702
3272
|
label?: string;
|
|
3703
3273
|
className?: string;
|
|
3704
3274
|
}
|
|
3705
|
-
declare function Tracking({ target, actual, label, className }: TrackingProps): React
|
|
3275
|
+
declare function Tracking({ target, actual, label, className }: TrackingProps): React.JSX.Element;
|
|
3706
3276
|
|
|
3707
3277
|
/**
|
|
3708
3278
|
* @component ChartCard
|
|
@@ -3720,11 +3290,11 @@ declare function Tracking({ target, actual, label, className }: TrackingProps):
|
|
|
3720
3290
|
interface ChartCardProps {
|
|
3721
3291
|
title: string;
|
|
3722
3292
|
description?: string;
|
|
3723
|
-
children: React
|
|
3724
|
-
footer?: React
|
|
3293
|
+
children: React.ReactNode;
|
|
3294
|
+
footer?: React.ReactNode;
|
|
3725
3295
|
className?: string;
|
|
3726
3296
|
}
|
|
3727
|
-
declare function ChartCard({ title, description, children, footer, className, }: ChartCardProps): React
|
|
3297
|
+
declare function ChartCard({ title, description, children, footer, className, }: ChartCardProps): React.JSX.Element;
|
|
3728
3298
|
|
|
3729
3299
|
/**
|
|
3730
3300
|
* @component StatCardWithSparkline
|
|
@@ -3746,7 +3316,7 @@ interface StatCardWithSparklineProps {
|
|
|
3746
3316
|
sparklineData?: number[];
|
|
3747
3317
|
className?: string;
|
|
3748
3318
|
}
|
|
3749
|
-
declare function StatCardWithSparkline({ label, value, trend, sparklineData, className, }: StatCardWithSparklineProps): React
|
|
3319
|
+
declare function StatCardWithSparkline({ label, value, trend, sparklineData, className, }: StatCardWithSparklineProps): React.JSX.Element;
|
|
3750
3320
|
|
|
3751
3321
|
/**
|
|
3752
3322
|
* @component DonutCard
|
|
@@ -3768,7 +3338,7 @@ interface DonutCardProps {
|
|
|
3768
3338
|
centerLabel?: string;
|
|
3769
3339
|
className?: string;
|
|
3770
3340
|
}
|
|
3771
|
-
declare function DonutCard({ data, centerLabel, className }: DonutCardProps): React
|
|
3341
|
+
declare function DonutCard({ data, centerLabel, className }: DonutCardProps): React.JSX.Element;
|
|
3772
3342
|
|
|
3773
3343
|
/**
|
|
3774
3344
|
* @component CustomerBrowse
|
|
@@ -3809,7 +3379,7 @@ interface CustomerBrowseProps {
|
|
|
3809
3379
|
emptyText?: string;
|
|
3810
3380
|
className?: string;
|
|
3811
3381
|
}
|
|
3812
|
-
declare function CustomerBrowse({ open, onOpenChange, onSelect, multiple, items, title, searchPlaceholder, emptyText, className, }: CustomerBrowseProps): React
|
|
3382
|
+
declare function CustomerBrowse({ open, onOpenChange, onSelect, multiple, items, title, searchPlaceholder, emptyText, className, }: CustomerBrowseProps): React.JSX.Element;
|
|
3813
3383
|
|
|
3814
3384
|
/**
|
|
3815
3385
|
* @component ProductBrowse
|
|
@@ -3854,7 +3424,7 @@ interface ProductBrowseProps {
|
|
|
3854
3424
|
emptyText?: string;
|
|
3855
3425
|
className?: string;
|
|
3856
3426
|
}
|
|
3857
|
-
declare function ProductBrowse({ open, onOpenChange, onSelect, multiple, items, title, searchPlaceholder, emptyText, className, }: ProductBrowseProps): React
|
|
3427
|
+
declare function ProductBrowse({ open, onOpenChange, onSelect, multiple, items, title, searchPlaceholder, emptyText, className, }: ProductBrowseProps): React.JSX.Element;
|
|
3858
3428
|
|
|
3859
3429
|
/**
|
|
3860
3430
|
* @component SalesOrderBrowse
|
|
@@ -3893,7 +3463,7 @@ interface SalesOrderBrowseProps {
|
|
|
3893
3463
|
emptyText?: string;
|
|
3894
3464
|
className?: string;
|
|
3895
3465
|
}
|
|
3896
|
-
declare function SalesOrderBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: SalesOrderBrowseProps): React
|
|
3466
|
+
declare function SalesOrderBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: SalesOrderBrowseProps): React.JSX.Element;
|
|
3897
3467
|
|
|
3898
3468
|
/**
|
|
3899
3469
|
* @component WriteoffBrowse
|
|
@@ -3934,7 +3504,7 @@ interface WriteoffBrowseProps {
|
|
|
3934
3504
|
emptyText?: string;
|
|
3935
3505
|
className?: string;
|
|
3936
3506
|
}
|
|
3937
|
-
declare function WriteoffBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: WriteoffBrowseProps): React
|
|
3507
|
+
declare function WriteoffBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: WriteoffBrowseProps): React.JSX.Element;
|
|
3938
3508
|
|
|
3939
3509
|
/**
|
|
3940
3510
|
* @component PriceAdjustBrowse
|
|
@@ -3973,7 +3543,7 @@ interface PriceAdjustBrowseProps {
|
|
|
3973
3543
|
emptyText?: string;
|
|
3974
3544
|
className?: string;
|
|
3975
3545
|
}
|
|
3976
|
-
declare function PriceAdjustBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: PriceAdjustBrowseProps): React
|
|
3546
|
+
declare function PriceAdjustBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: PriceAdjustBrowseProps): React.JSX.Element;
|
|
3977
3547
|
|
|
3978
3548
|
/**
|
|
3979
3549
|
* @component FeeTypeBrowse
|
|
@@ -4010,7 +3580,7 @@ interface FeeTypeBrowseProps {
|
|
|
4010
3580
|
emptyText?: string;
|
|
4011
3581
|
className?: string;
|
|
4012
3582
|
}
|
|
4013
|
-
declare function FeeTypeBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: FeeTypeBrowseProps): React
|
|
3583
|
+
declare function FeeTypeBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: FeeTypeBrowseProps): React.JSX.Element;
|
|
4014
3584
|
|
|
4015
3585
|
/**
|
|
4016
3586
|
* @component ShippingWayBrowse
|
|
@@ -4047,7 +3617,7 @@ interface ShippingWayBrowseProps {
|
|
|
4047
3617
|
emptyText?: string;
|
|
4048
3618
|
className?: string;
|
|
4049
3619
|
}
|
|
4050
|
-
declare function ShippingWayBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: ShippingWayBrowseProps): React
|
|
3620
|
+
declare function ShippingWayBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: ShippingWayBrowseProps): React.JSX.Element;
|
|
4051
3621
|
|
|
4052
3622
|
/**
|
|
4053
3623
|
* @component WarehouseBrowse
|
|
@@ -4086,7 +3656,7 @@ interface WarehouseBrowseProps {
|
|
|
4086
3656
|
emptyText?: string;
|
|
4087
3657
|
className?: string;
|
|
4088
3658
|
}
|
|
4089
|
-
declare function WarehouseBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: WarehouseBrowseProps): React
|
|
3659
|
+
declare function WarehouseBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: WarehouseBrowseProps): React.JSX.Element;
|
|
4090
3660
|
|
|
4091
3661
|
/**
|
|
4092
3662
|
* @component CompanyBrowse
|
|
@@ -4123,7 +3693,7 @@ interface CompanyBrowseProps {
|
|
|
4123
3693
|
emptyText?: string;
|
|
4124
3694
|
className?: string;
|
|
4125
3695
|
}
|
|
4126
|
-
declare function CompanyBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: CompanyBrowseProps): React
|
|
3696
|
+
declare function CompanyBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: CompanyBrowseProps): React.JSX.Element;
|
|
4127
3697
|
|
|
4128
3698
|
/**
|
|
4129
3699
|
* @component CityBrowse
|
|
@@ -4166,7 +3736,7 @@ interface CityBrowseProps {
|
|
|
4166
3736
|
emptyText?: string;
|
|
4167
3737
|
className?: string;
|
|
4168
3738
|
}
|
|
4169
|
-
declare function CityBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: CityBrowseProps): React
|
|
3739
|
+
declare function CityBrowse({ open, onOpenChange, onSelect, items, title, searchPlaceholder, emptyText, className, }: CityBrowseProps): React.JSX.Element;
|
|
4170
3740
|
|
|
4171
3741
|
/**
|
|
4172
3742
|
* @component TaxDetailTable
|
|
@@ -4196,7 +3766,7 @@ interface TaxDetailTableProps {
|
|
|
4196
3766
|
}>;
|
|
4197
3767
|
className?: string;
|
|
4198
3768
|
}
|
|
4199
|
-
declare function TaxDetailTable({ rows, className }: TaxDetailTableProps): React
|
|
3769
|
+
declare function TaxDetailTable({ rows, className }: TaxDetailTableProps): React.JSX.Element;
|
|
4200
3770
|
|
|
4201
3771
|
interface WriteoffFlowProps {
|
|
4202
3772
|
steps: Array<{
|
|
@@ -4207,7 +3777,7 @@ interface WriteoffFlowProps {
|
|
|
4207
3777
|
}>;
|
|
4208
3778
|
className?: string;
|
|
4209
3779
|
}
|
|
4210
|
-
declare function WriteoffFlow({ steps, className }: WriteoffFlowProps): React
|
|
3780
|
+
declare function WriteoffFlow({ steps, className }: WriteoffFlowProps): React.JSX.Element;
|
|
4211
3781
|
|
|
4212
3782
|
/**
|
|
4213
3783
|
* @component BudgetOverview
|
|
@@ -4228,7 +3798,7 @@ interface BudgetOverviewProps {
|
|
|
4228
3798
|
}
|
|
4229
3799
|
declare function BudgetOverview({ total, used, remaining, categories, currency, className }: BudgetOverviewProps & {
|
|
4230
3800
|
currency?: string;
|
|
4231
|
-
}): React
|
|
3801
|
+
}): React.JSX.Element;
|
|
4232
3802
|
|
|
4233
3803
|
/**
|
|
4234
3804
|
* @component TargetProgress
|
|
@@ -4247,7 +3817,7 @@ interface TargetProgressProps {
|
|
|
4247
3817
|
period?: string;
|
|
4248
3818
|
className?: string;
|
|
4249
3819
|
}
|
|
4250
|
-
declare function TargetProgress({ target, actual, period, className }: TargetProgressProps): React
|
|
3820
|
+
declare function TargetProgress({ target, actual, period, className }: TargetProgressProps): React.JSX.Element;
|
|
4251
3821
|
|
|
4252
3822
|
/**
|
|
4253
3823
|
* @component InventorySnapshot
|
|
@@ -4272,7 +3842,7 @@ interface InventorySnapshotProps {
|
|
|
4272
3842
|
}>;
|
|
4273
3843
|
className?: string;
|
|
4274
3844
|
}
|
|
4275
|
-
declare function InventorySnapshot({ items, className }: InventorySnapshotProps): React
|
|
3845
|
+
declare function InventorySnapshot({ items, className }: InventorySnapshotProps): React.JSX.Element;
|
|
4276
3846
|
|
|
4277
3847
|
/**
|
|
4278
3848
|
* @component InvoiceSummary
|
|
@@ -4293,7 +3863,7 @@ interface InvoiceSummaryProps {
|
|
|
4293
3863
|
amount: number;
|
|
4294
3864
|
className?: string;
|
|
4295
3865
|
}
|
|
4296
|
-
declare function InvoiceSummary({ total, issued, pending, amount, className }: InvoiceSummaryProps): React
|
|
3866
|
+
declare function InvoiceSummary({ total, issued, pending, amount, className }: InvoiceSummaryProps): React.JSX.Element;
|
|
4297
3867
|
|
|
4298
3868
|
/**
|
|
4299
3869
|
* @component AccountBalance
|
|
@@ -4308,7 +3878,7 @@ interface AccountBalanceProps {
|
|
|
4308
3878
|
trend?: number;
|
|
4309
3879
|
className?: string;
|
|
4310
3880
|
}
|
|
4311
|
-
declare function AccountBalance({ balance, currency, label, trend, className }: AccountBalanceProps): React
|
|
3881
|
+
declare function AccountBalance({ balance, currency, label, trend, className }: AccountBalanceProps): React.JSX.Element;
|
|
4312
3882
|
|
|
4313
3883
|
/**
|
|
4314
3884
|
* @component ReconciliationLineEditor
|
|
@@ -4336,7 +3906,7 @@ interface ReconciliationLineEditorProps {
|
|
|
4336
3906
|
onChange?: (rows: ReconciliationRow[]) => void;
|
|
4337
3907
|
className?: string;
|
|
4338
3908
|
}
|
|
4339
|
-
declare function ReconciliationLineEditor({ rows, onChange, className, }: ReconciliationLineEditorProps): React
|
|
3909
|
+
declare function ReconciliationLineEditor({ rows, onChange, className, }: ReconciliationLineEditorProps): React.JSX.Element;
|
|
4340
3910
|
|
|
4341
3911
|
/**
|
|
4342
3912
|
* @component SalesTargetEditor
|
|
@@ -4364,7 +3934,7 @@ interface SalesTargetEditorProps {
|
|
|
4364
3934
|
onChange?: (rows: unknown[]) => void;
|
|
4365
3935
|
className?: string;
|
|
4366
3936
|
}
|
|
4367
|
-
declare function SalesTargetEditor({ rows, onChange, className, }: SalesTargetEditorProps): React
|
|
3937
|
+
declare function SalesTargetEditor({ rows, onChange, className, }: SalesTargetEditorProps): React.JSX.Element;
|
|
4368
3938
|
|
|
4369
3939
|
/**
|
|
4370
3940
|
* @component MarketingActivityForm
|
|
@@ -4382,7 +3952,7 @@ interface MarketingActivityFormProps {
|
|
|
4382
3952
|
onSubmit?: (data: unknown) => void;
|
|
4383
3953
|
className?: string;
|
|
4384
3954
|
}
|
|
4385
|
-
declare function MarketingActivityForm({ initial, onSubmit, className, }: MarketingActivityFormProps): React
|
|
3955
|
+
declare function MarketingActivityForm({ initial, onSubmit, className, }: MarketingActivityFormProps): React.JSX.Element;
|
|
4386
3956
|
|
|
4387
3957
|
/**
|
|
4388
3958
|
* @component PolicyLineEditor
|
|
@@ -4409,7 +3979,7 @@ interface PolicyLineEditorProps {
|
|
|
4409
3979
|
onChange?: (rows: unknown[]) => void;
|
|
4410
3980
|
className?: string;
|
|
4411
3981
|
}
|
|
4412
|
-
declare function PolicyLineEditor({ rows, onChange, className, }: PolicyLineEditorProps): React
|
|
3982
|
+
declare function PolicyLineEditor({ rows, onChange, className, }: PolicyLineEditorProps): React.JSX.Element;
|
|
4413
3983
|
|
|
4414
3984
|
/**
|
|
4415
3985
|
* @component ApplicationForm
|
|
@@ -4422,7 +3992,7 @@ interface ApplicationFormProps {
|
|
|
4422
3992
|
onSubmit?: (data: unknown) => void;
|
|
4423
3993
|
className?: string;
|
|
4424
3994
|
}
|
|
4425
|
-
declare function ApplicationForm({ type, onSubmit, className }: ApplicationFormProps): React
|
|
3995
|
+
declare function ApplicationForm({ type, onSubmit, className }: ApplicationFormProps): React.JSX.Element;
|
|
4426
3996
|
|
|
4427
3997
|
/**
|
|
4428
3998
|
* @component ReconciliationSummary
|
|
@@ -4445,7 +4015,7 @@ interface ReconciliationSummaryProps {
|
|
|
4445
4015
|
unmatchedCount: number;
|
|
4446
4016
|
className?: string;
|
|
4447
4017
|
}
|
|
4448
|
-
declare function ReconciliationSummary({ totalAmount, matchedAmount, unmatchedAmount, matchedCount, unmatchedCount, className, }: ReconciliationSummaryProps): React
|
|
4018
|
+
declare function ReconciliationSummary({ totalAmount, matchedAmount, unmatchedAmount, matchedCount, unmatchedCount, className, }: ReconciliationSummaryProps): React.JSX.Element;
|
|
4449
4019
|
|
|
4450
4020
|
/**
|
|
4451
4021
|
* @component SettlementStatusTag
|
|
@@ -4460,7 +4030,7 @@ interface SettlementStatusTagProps {
|
|
|
4460
4030
|
status: "unsettled" | "partial" | "settled" | "overdue";
|
|
4461
4031
|
className?: string;
|
|
4462
4032
|
}
|
|
4463
|
-
declare function SettlementStatusTag({ status, className }: SettlementStatusTagProps): React
|
|
4033
|
+
declare function SettlementStatusTag({ status, className }: SettlementStatusTagProps): React.JSX.Element;
|
|
4464
4034
|
|
|
4465
4035
|
/**
|
|
4466
4036
|
* @component SignActionButton
|
|
@@ -4479,7 +4049,7 @@ interface SignActionButtonProps {
|
|
|
4479
4049
|
label?: string;
|
|
4480
4050
|
className?: string;
|
|
4481
4051
|
}
|
|
4482
|
-
declare function SignActionButton({ onSign, signed, label, className, }: SignActionButtonProps): React
|
|
4052
|
+
declare function SignActionButton({ onSign, signed, label, className, }: SignActionButtonProps): React.JSX.Element;
|
|
4483
4053
|
|
|
4484
4054
|
/**
|
|
4485
4055
|
* @component InvoiceManager
|
|
@@ -4504,7 +4074,7 @@ interface InvoiceManagerProps {
|
|
|
4504
4074
|
onIssue?: (id: string) => void;
|
|
4505
4075
|
className?: string;
|
|
4506
4076
|
}
|
|
4507
|
-
declare function InvoiceManager({ invoices, onIssue, className }: InvoiceManagerProps): React
|
|
4077
|
+
declare function InvoiceManager({ invoices, onIssue, className }: InvoiceManagerProps): React.JSX.Element;
|
|
4508
4078
|
|
|
4509
4079
|
interface CheckoutBarProps {
|
|
4510
4080
|
/** Total amount to display. */
|
|
@@ -4529,7 +4099,7 @@ interface CheckoutBarProps {
|
|
|
4529
4099
|
* @example
|
|
4530
4100
|
* <CheckoutBar total="¥ 1,299.00" onPay={() => startPayment()} />
|
|
4531
4101
|
*/
|
|
4532
|
-
declare function CheckoutBar({ total, currency, payLabel, isLoading, onPay, className, }: CheckoutBarProps): React
|
|
4102
|
+
declare function CheckoutBar({ total, currency, payLabel, isLoading, onPay, className, }: CheckoutBarProps): React.JSX.Element;
|
|
4533
4103
|
|
|
4534
4104
|
interface CouponCardProps {
|
|
4535
4105
|
/** Coupon value display (e.g. "¥50" or "20% OFF"). */
|
|
@@ -4554,7 +4124,7 @@ interface CouponCardProps {
|
|
|
4554
4124
|
* @example
|
|
4555
4125
|
* <CouponCard value="¥50" description="Orders over ¥200" expiresAt="2026-12-31" onUse={handleClaim} />
|
|
4556
4126
|
*/
|
|
4557
|
-
declare function CouponCard({ value, description, expiresAt, used, onUse, className, }: CouponCardProps): React
|
|
4127
|
+
declare function CouponCard({ value, description, expiresAt, used, onUse, className, }: CouponCardProps): React.JSX.Element;
|
|
4558
4128
|
|
|
4559
4129
|
interface InviteLinkProps {
|
|
4560
4130
|
/** The invite URL. */
|
|
@@ -4573,7 +4143,7 @@ interface InviteLinkProps {
|
|
|
4573
4143
|
* @example
|
|
4574
4144
|
* <InviteLink url="https://app.example.com/invite/abc123" description="Share with friends" />
|
|
4575
4145
|
*/
|
|
4576
|
-
declare function InviteLink({ url, description, className }: InviteLinkProps): React
|
|
4146
|
+
declare function InviteLink({ url, description, className }: InviteLinkProps): React.JSX.Element;
|
|
4577
4147
|
|
|
4578
4148
|
type PaymentMethod = "card" | "wechat" | "alipay" | "transfer";
|
|
4579
4149
|
interface PaymentMethodSelectorProps {
|
|
@@ -4593,7 +4163,7 @@ interface PaymentMethodSelectorProps {
|
|
|
4593
4163
|
* @example
|
|
4594
4164
|
* <PaymentMethodSelector value="wechat" onChange={(m) => setMethod(m)} />
|
|
4595
4165
|
*/
|
|
4596
|
-
declare function PaymentMethodSelector({ value, onChange, className, }: PaymentMethodSelectorProps): React
|
|
4166
|
+
declare function PaymentMethodSelector({ value, onChange, className, }: PaymentMethodSelectorProps): React.JSX.Element;
|
|
4597
4167
|
|
|
4598
4168
|
interface PaymentResultProps {
|
|
4599
4169
|
/** Result status. */
|
|
@@ -4627,7 +4197,7 @@ interface PaymentResultProps {
|
|
|
4627
4197
|
* onPrimary={() => navigate("/orders")}
|
|
4628
4198
|
* />
|
|
4629
4199
|
*/
|
|
4630
|
-
declare function PaymentResult({ status, orderId, amount, primaryLabel, onPrimary, secondaryLabel, onSecondary, className, }: PaymentResultProps): React
|
|
4200
|
+
declare function PaymentResult({ status, orderId, amount, primaryLabel, onPrimary, secondaryLabel, onSecondary, className, }: PaymentResultProps): React.JSX.Element;
|
|
4631
4201
|
|
|
4632
4202
|
/**
|
|
4633
4203
|
* @component PaymentSchedule
|
|
@@ -4652,7 +4222,7 @@ interface PaymentScheduleProps {
|
|
|
4652
4222
|
}>;
|
|
4653
4223
|
className?: string;
|
|
4654
4224
|
}
|
|
4655
|
-
declare function PaymentSchedule({ schedule, className }: PaymentScheduleProps): React
|
|
4225
|
+
declare function PaymentSchedule({ schedule, className }: PaymentScheduleProps): React.JSX.Element;
|
|
4656
4226
|
|
|
4657
4227
|
/**
|
|
4658
4228
|
* @component BillPrintTemplate
|
|
@@ -4669,7 +4239,7 @@ interface BillPrintTemplateProps {
|
|
|
4669
4239
|
lines?: Array<Record<string, string>>;
|
|
4670
4240
|
className?: string;
|
|
4671
4241
|
}
|
|
4672
|
-
declare function BillPrintTemplate({ title, fields, lines, className }: BillPrintTemplateProps): React
|
|
4242
|
+
declare function BillPrintTemplate({ title, fields, lines, className }: BillPrintTemplateProps): React.JSX.Element;
|
|
4673
4243
|
|
|
4674
4244
|
/**
|
|
4675
4245
|
* @component TemplateDownload
|
|
@@ -4708,7 +4278,7 @@ interface TemplateDownloadProps {
|
|
|
4708
4278
|
emptyLabel?: string;
|
|
4709
4279
|
className?: string;
|
|
4710
4280
|
}
|
|
4711
|
-
declare function TemplateDownload({ templates, onDownload, emptyLabel, className, }: TemplateDownloadProps): React
|
|
4281
|
+
declare function TemplateDownload({ templates, onDownload, emptyLabel, className, }: TemplateDownloadProps): React.JSX.Element;
|
|
4712
4282
|
|
|
4713
4283
|
/**
|
|
4714
4284
|
* @component ImportErrorTable
|
|
@@ -4741,7 +4311,7 @@ interface ImportErrorTableProps {
|
|
|
4741
4311
|
onExport?: () => void;
|
|
4742
4312
|
className?: string;
|
|
4743
4313
|
}
|
|
4744
|
-
declare function ImportErrorTable({ errors, onExport, className }: ImportErrorTableProps): React
|
|
4314
|
+
declare function ImportErrorTable({ errors, onExport, className }: ImportErrorTableProps): React.JSX.Element;
|
|
4745
4315
|
|
|
4746
4316
|
/**
|
|
4747
4317
|
* @component BatchPrintDialog
|
|
@@ -4759,7 +4329,7 @@ interface BatchPrintDialogProps {
|
|
|
4759
4329
|
onPrint?: (ids: string[]) => void;
|
|
4760
4330
|
className?: string;
|
|
4761
4331
|
}
|
|
4762
|
-
declare function BatchPrintDialog({ open, onOpenChange, items, onPrint, className }: BatchPrintDialogProps): React
|
|
4332
|
+
declare function BatchPrintDialog({ open, onOpenChange, items, onPrint, className }: BatchPrintDialogProps): React.JSX.Element;
|
|
4763
4333
|
|
|
4764
4334
|
/**
|
|
4765
4335
|
* @component PrintTemplateBuilder
|
|
@@ -4795,7 +4365,7 @@ interface PrintTemplateBuilderProps {
|
|
|
4795
4365
|
onChange?: (template: PrintTemplateModel) => void;
|
|
4796
4366
|
className?: string;
|
|
4797
4367
|
}
|
|
4798
|
-
declare function PrintTemplateBuilder({ template, onChange, className, }: PrintTemplateBuilderProps): React
|
|
4368
|
+
declare function PrintTemplateBuilder({ template, onChange, className, }: PrintTemplateBuilderProps): React.JSX.Element;
|
|
4799
4369
|
|
|
4800
4370
|
/**
|
|
4801
4371
|
* @component PrintService
|
|
@@ -4830,7 +4400,7 @@ interface PrintServiceProps {
|
|
|
4830
4400
|
onRefresh?: () => void;
|
|
4831
4401
|
className?: string;
|
|
4832
4402
|
}
|
|
4833
|
-
declare function PrintService({ jobs, onPrint, onRefresh, className }: PrintServiceProps): React
|
|
4403
|
+
declare function PrintService({ jobs, onPrint, onRefresh, className }: PrintServiceProps): React.JSX.Element;
|
|
4834
4404
|
|
|
4835
4405
|
/**
|
|
4836
4406
|
* @component AttachmentUploader
|
|
@@ -4844,7 +4414,7 @@ interface AttachmentUploaderProps {
|
|
|
4844
4414
|
onUpload?: (files: File[]) => void;
|
|
4845
4415
|
className?: string;
|
|
4846
4416
|
}
|
|
4847
|
-
declare function AttachmentUploader({ accept, maxSize, onUpload, className }: AttachmentUploaderProps): React
|
|
4417
|
+
declare function AttachmentUploader({ accept, maxSize, onUpload, className }: AttachmentUploaderProps): React.JSX.Element;
|
|
4848
4418
|
|
|
4849
4419
|
/**
|
|
4850
4420
|
* @component AttachmentList
|
|
@@ -4863,7 +4433,7 @@ interface AttachmentListProps {
|
|
|
4863
4433
|
onRemove?: (id: string) => void;
|
|
4864
4434
|
className?: string;
|
|
4865
4435
|
}
|
|
4866
|
-
declare function AttachmentList({ attachments, onRemove, className }: AttachmentListProps): React
|
|
4436
|
+
declare function AttachmentList({ attachments, onRemove, className }: AttachmentListProps): React.JSX.Element;
|
|
4867
4437
|
|
|
4868
4438
|
/**
|
|
4869
4439
|
* @component AttachmentPreview
|
|
@@ -4877,7 +4447,7 @@ interface AttachmentPreviewProps {
|
|
|
4877
4447
|
name?: string;
|
|
4878
4448
|
className?: string;
|
|
4879
4449
|
}
|
|
4880
|
-
declare function AttachmentPreview({ url, type, name, className }: AttachmentPreviewProps): React
|
|
4450
|
+
declare function AttachmentPreview({ url, type, name, className }: AttachmentPreviewProps): React.JSX.Element;
|
|
4881
4451
|
|
|
4882
4452
|
/**
|
|
4883
4453
|
* @component ImageGallery
|
|
@@ -4896,7 +4466,7 @@ interface ImageGalleryProps {
|
|
|
4896
4466
|
}>;
|
|
4897
4467
|
className?: string;
|
|
4898
4468
|
}
|
|
4899
|
-
declare function ImageGallery({ images, className }: ImageGalleryProps): React
|
|
4469
|
+
declare function ImageGallery({ images, className }: ImageGalleryProps): React.JSX.Element;
|
|
4900
4470
|
|
|
4901
4471
|
/**
|
|
4902
4472
|
* @component FileCard
|
|
@@ -4920,7 +4490,7 @@ interface FileCardProps {
|
|
|
4920
4490
|
onRemove?: () => void;
|
|
4921
4491
|
className?: string;
|
|
4922
4492
|
}
|
|
4923
|
-
declare function FileCard({ name, size, type, url, onRemove, className, }: FileCardProps): React
|
|
4493
|
+
declare function FileCard({ name, size, type, url, onRemove, className, }: FileCardProps): React.JSX.Element;
|
|
4924
4494
|
|
|
4925
4495
|
/**
|
|
4926
4496
|
* @component PasteUpload
|
|
@@ -4935,10 +4505,10 @@ declare function FileCard({ name, size, type, url, onRemove, className, }: FileC
|
|
|
4935
4505
|
*/
|
|
4936
4506
|
interface PasteUploadProps {
|
|
4937
4507
|
onPaste?: (files: File[]) => void;
|
|
4938
|
-
children?: React
|
|
4508
|
+
children?: React.ReactNode;
|
|
4939
4509
|
className?: string;
|
|
4940
4510
|
}
|
|
4941
|
-
declare function PasteUpload({ onPaste, children, className }: PasteUploadProps): React
|
|
4511
|
+
declare function PasteUpload({ onPaste, children, className }: PasteUploadProps): React.JSX.Element;
|
|
4942
4512
|
|
|
4943
4513
|
/**
|
|
4944
4514
|
* @component TaskListTable
|
|
@@ -4962,7 +4532,7 @@ interface TaskListTableProps {
|
|
|
4962
4532
|
}>;
|
|
4963
4533
|
className?: string;
|
|
4964
4534
|
}
|
|
4965
|
-
declare function TaskListTable({ tasks, className }: TaskListTableProps): React
|
|
4535
|
+
declare function TaskListTable({ tasks, className }: TaskListTableProps): React.JSX.Element;
|
|
4966
4536
|
|
|
4967
4537
|
/**
|
|
4968
4538
|
* @component QuickEntryGrid
|
|
@@ -4976,13 +4546,13 @@ declare function TaskListTable({ tasks, className }: TaskListTableProps): React$
|
|
|
4976
4546
|
interface QuickEntryGridProps {
|
|
4977
4547
|
entries: Array<{
|
|
4978
4548
|
id: string;
|
|
4979
|
-
icon?: React
|
|
4549
|
+
icon?: React.ReactNode;
|
|
4980
4550
|
label: string;
|
|
4981
4551
|
onClick: () => void;
|
|
4982
4552
|
}>;
|
|
4983
4553
|
className?: string;
|
|
4984
4554
|
}
|
|
4985
|
-
declare function QuickEntryGrid({ entries, className }: QuickEntryGridProps): React
|
|
4555
|
+
declare function QuickEntryGrid({ entries, className }: QuickEntryGridProps): React.JSX.Element;
|
|
4986
4556
|
|
|
4987
4557
|
/**
|
|
4988
4558
|
* @component AnnouncementCard
|
|
@@ -4997,7 +4567,7 @@ interface AnnouncementCardProps {
|
|
|
4997
4567
|
pinned?: boolean;
|
|
4998
4568
|
className?: string;
|
|
4999
4569
|
}
|
|
5000
|
-
declare function AnnouncementCard({ title, content, date, pinned, className }: AnnouncementCardProps): React
|
|
4570
|
+
declare function AnnouncementCard({ title, content, date, pinned, className }: AnnouncementCardProps): React.JSX.Element;
|
|
5001
4571
|
|
|
5002
4572
|
/**
|
|
5003
4573
|
* @component PerformanceRankTable
|
|
@@ -5023,7 +4593,7 @@ interface PerformanceRankTableProps {
|
|
|
5023
4593
|
}>;
|
|
5024
4594
|
className?: string;
|
|
5025
4595
|
}
|
|
5026
|
-
declare function PerformanceRankTable({ rows, className }: PerformanceRankTableProps): React
|
|
4596
|
+
declare function PerformanceRankTable({ rows, className }: PerformanceRankTableProps): React.JSX.Element;
|
|
5027
4597
|
|
|
5028
4598
|
/**
|
|
5029
4599
|
* @component PoolTrackerTable
|
|
@@ -5054,7 +4624,7 @@ interface PoolTrackerTableProps {
|
|
|
5054
4624
|
}>;
|
|
5055
4625
|
className?: string;
|
|
5056
4626
|
}
|
|
5057
|
-
declare function PoolTrackerTable({ pools, className }: PoolTrackerTableProps): React
|
|
4627
|
+
declare function PoolTrackerTable({ pools, className }: PoolTrackerTableProps): React.JSX.Element;
|
|
5058
4628
|
|
|
5059
4629
|
/**
|
|
5060
4630
|
* @component AsyncTaskTrigger
|
|
@@ -5066,10 +4636,10 @@ interface AsyncTaskTriggerProps {
|
|
|
5066
4636
|
taskType: string;
|
|
5067
4637
|
params?: Record<string, unknown>;
|
|
5068
4638
|
onComplete?: (result: unknown) => void;
|
|
5069
|
-
children?: React
|
|
4639
|
+
children?: React.ReactNode;
|
|
5070
4640
|
className?: string;
|
|
5071
4641
|
}
|
|
5072
|
-
declare function AsyncTaskTrigger({ taskType, params, onComplete, children, className }: AsyncTaskTriggerProps): React
|
|
4642
|
+
declare function AsyncTaskTrigger({ taskType, params, onComplete, children, className }: AsyncTaskTriggerProps): React.JSX.Element;
|
|
5073
4643
|
|
|
5074
4644
|
/**
|
|
5075
4645
|
* @component TaskProgress
|
|
@@ -5090,7 +4660,7 @@ interface TaskProgressProps {
|
|
|
5090
4660
|
message?: string;
|
|
5091
4661
|
className?: string;
|
|
5092
4662
|
}
|
|
5093
|
-
declare function TaskProgress({ percent, status, message, className, }: TaskProgressProps): React
|
|
4663
|
+
declare function TaskProgress({ percent, status, message, className, }: TaskProgressProps): React.JSX.Element;
|
|
5094
4664
|
|
|
5095
4665
|
/**
|
|
5096
4666
|
* @component TaskHistory
|
|
@@ -5113,7 +4683,7 @@ interface TaskHistoryProps {
|
|
|
5113
4683
|
}>;
|
|
5114
4684
|
className?: string;
|
|
5115
4685
|
}
|
|
5116
|
-
declare function TaskHistory({ tasks, className }: TaskHistoryProps): React
|
|
4686
|
+
declare function TaskHistory({ tasks, className }: TaskHistoryProps): React.JSX.Element;
|
|
5117
4687
|
|
|
5118
4688
|
/**
|
|
5119
4689
|
* @component FeatureTour
|
|
@@ -5138,7 +4708,7 @@ interface FeatureTourProps {
|
|
|
5138
4708
|
onClose?: () => void;
|
|
5139
4709
|
className?: string;
|
|
5140
4710
|
}
|
|
5141
|
-
declare function FeatureTour({ steps, open, onClose, className }: FeatureTourProps): React
|
|
4711
|
+
declare function FeatureTour({ steps, open, onClose, className }: FeatureTourProps): React.JSX.Element | null;
|
|
5142
4712
|
|
|
5143
4713
|
/**
|
|
5144
4714
|
* @component PreferencePanel
|
|
@@ -5155,7 +4725,7 @@ interface PreferencePanelProps {
|
|
|
5155
4725
|
onOpenChange: (open: boolean) => void;
|
|
5156
4726
|
className?: string;
|
|
5157
4727
|
}
|
|
5158
|
-
declare function PreferencePanel({ open, onOpenChange, className }: PreferencePanelProps): React
|
|
4728
|
+
declare function PreferencePanel({ open, onOpenChange, className }: PreferencePanelProps): React.JSX.Element;
|
|
5159
4729
|
|
|
5160
4730
|
/**
|
|
5161
4731
|
* @component DockPanel
|
|
@@ -5175,10 +4745,10 @@ interface DockPanelProps {
|
|
|
5175
4745
|
side: "left" | "right" | "bottom";
|
|
5176
4746
|
collapsed?: boolean;
|
|
5177
4747
|
onToggle?: () => void;
|
|
5178
|
-
children: React
|
|
4748
|
+
children: React.ReactNode;
|
|
5179
4749
|
className?: string;
|
|
5180
4750
|
}
|
|
5181
|
-
declare function DockPanel({ side, collapsed, onToggle, children, className }: DockPanelProps): React
|
|
4751
|
+
declare function DockPanel({ side, collapsed, onToggle, children, className }: DockPanelProps): React.JSX.Element;
|
|
5182
4752
|
|
|
5183
4753
|
/**
|
|
5184
4754
|
* @component TabPin
|
|
@@ -5199,7 +4769,7 @@ interface TabPinProps {
|
|
|
5199
4769
|
onPin?: (id: string) => void;
|
|
5200
4770
|
className?: string;
|
|
5201
4771
|
}
|
|
5202
|
-
declare function TabPin({ id, label, pinned, onPin, className }: TabPinProps): React
|
|
4772
|
+
declare function TabPin({ id, label, pinned, onPin, className }: TabPinProps): React.JSX.Element;
|
|
5203
4773
|
|
|
5204
4774
|
/**
|
|
5205
4775
|
* @component ChatShell
|
|
@@ -5211,13 +4781,13 @@ declare function TabPin({ id, label, pinned, onPin, className }: TabPinProps): R
|
|
|
5211
4781
|
* <ChatShell sidebar={<ChatSidebar conversations={[]} />} header={<ChatHeader title="Chat" />}>messages</ChatShell>
|
|
5212
4782
|
*/
|
|
5213
4783
|
interface ChatShellProps {
|
|
5214
|
-
sidebar?: React
|
|
5215
|
-
header?: React
|
|
5216
|
-
children?: React
|
|
5217
|
-
detailPanel?: React
|
|
4784
|
+
sidebar?: React.ReactNode;
|
|
4785
|
+
header?: React.ReactNode;
|
|
4786
|
+
children?: React.ReactNode;
|
|
4787
|
+
detailPanel?: React.ReactNode;
|
|
5218
4788
|
className?: string;
|
|
5219
4789
|
}
|
|
5220
|
-
declare function ChatShell({ sidebar, header, children, detailPanel, className }: ChatShellProps): React
|
|
4790
|
+
declare function ChatShell({ sidebar, header, children, detailPanel, className }: ChatShellProps): React.JSX.Element;
|
|
5221
4791
|
|
|
5222
4792
|
/**
|
|
5223
4793
|
* @component ChatSidebar
|
|
@@ -5240,7 +4810,7 @@ interface ChatSidebarProps {
|
|
|
5240
4810
|
onSelect?: (id: string) => void;
|
|
5241
4811
|
className?: string;
|
|
5242
4812
|
}
|
|
5243
|
-
declare function ChatSidebar({ conversations, activeId, onSelect, className }: ChatSidebarProps): React
|
|
4813
|
+
declare function ChatSidebar({ conversations, activeId, onSelect, className }: ChatSidebarProps): React.JSX.Element;
|
|
5244
4814
|
|
|
5245
4815
|
/**
|
|
5246
4816
|
* @component ChatHeader
|
|
@@ -5255,10 +4825,10 @@ interface ChatHeaderProps {
|
|
|
5255
4825
|
title: string;
|
|
5256
4826
|
subtitle?: string;
|
|
5257
4827
|
status?: string;
|
|
5258
|
-
actions?: React
|
|
4828
|
+
actions?: React.ReactNode;
|
|
5259
4829
|
className?: string;
|
|
5260
4830
|
}
|
|
5261
|
-
declare function ChatHeader({ title, subtitle, status, actions, className }: ChatHeaderProps): React
|
|
4831
|
+
declare function ChatHeader({ title, subtitle, status, actions, className }: ChatHeaderProps): React.JSX.Element;
|
|
5262
4832
|
|
|
5263
4833
|
/**
|
|
5264
4834
|
* @component ChatMessageGroup
|
|
@@ -5271,7 +4841,7 @@ declare function ChatHeader({ title, subtitle, status, actions, className }: Cha
|
|
|
5271
4841
|
*/
|
|
5272
4842
|
interface ChatMessageGroupProps {
|
|
5273
4843
|
sender: string;
|
|
5274
|
-
avatar?: React
|
|
4844
|
+
avatar?: React.ReactNode;
|
|
5275
4845
|
messages: Array<{
|
|
5276
4846
|
id: string;
|
|
5277
4847
|
content: string;
|
|
@@ -5279,7 +4849,7 @@ interface ChatMessageGroupProps {
|
|
|
5279
4849
|
}>;
|
|
5280
4850
|
className?: string;
|
|
5281
4851
|
}
|
|
5282
|
-
declare function ChatMessageGroup({ sender, avatar, messages, className }: ChatMessageGroupProps): React
|
|
4852
|
+
declare function ChatMessageGroup({ sender, avatar, messages, className }: ChatMessageGroupProps): React.JSX.Element;
|
|
5283
4853
|
|
|
5284
4854
|
/**
|
|
5285
4855
|
* @component ChatMessageActions
|
|
@@ -5297,7 +4867,7 @@ interface ChatMessageActionsProps {
|
|
|
5297
4867
|
onRegenerate?: () => void;
|
|
5298
4868
|
className?: string;
|
|
5299
4869
|
}
|
|
5300
|
-
declare function ChatMessageActions({ onReply, onCopy, onDelete, onRegenerate, className }: ChatMessageActionsProps): React
|
|
4870
|
+
declare function ChatMessageActions({ onReply, onCopy, onDelete, onRegenerate, className }: ChatMessageActionsProps): React.JSX.Element;
|
|
5301
4871
|
|
|
5302
4872
|
/**
|
|
5303
4873
|
* @component ChatThinkingBlock
|
|
@@ -5314,7 +4884,7 @@ interface ChatThinkingBlockProps {
|
|
|
5314
4884
|
collapsed?: boolean;
|
|
5315
4885
|
className?: string;
|
|
5316
4886
|
}
|
|
5317
|
-
declare function ChatThinkingBlock({ content, duration, collapsed, className }: ChatThinkingBlockProps): React
|
|
4887
|
+
declare function ChatThinkingBlock({ content, duration, collapsed, className }: ChatThinkingBlockProps): React.JSX.Element;
|
|
5318
4888
|
|
|
5319
4889
|
/**
|
|
5320
4890
|
* @component ChatToolCallBlock
|
|
@@ -5332,7 +4902,7 @@ interface ChatToolCallBlockProps {
|
|
|
5332
4902
|
status: "calling" | "success" | "error";
|
|
5333
4903
|
className?: string;
|
|
5334
4904
|
}
|
|
5335
|
-
declare function ChatToolCallBlock({ toolName, toolInput, toolOutput, status, className }: ChatToolCallBlockProps): React
|
|
4905
|
+
declare function ChatToolCallBlock({ toolName, toolInput, toolOutput, status, className }: ChatToolCallBlockProps): React.JSX.Element;
|
|
5336
4906
|
|
|
5337
4907
|
/**
|
|
5338
4908
|
* @component ChatCodeBlock
|
|
@@ -5349,7 +4919,7 @@ interface ChatCodeBlockProps {
|
|
|
5349
4919
|
filename?: string;
|
|
5350
4920
|
className?: string;
|
|
5351
4921
|
}
|
|
5352
|
-
declare function ChatCodeBlock({ code, language, filename, className }: ChatCodeBlockProps): React
|
|
4922
|
+
declare function ChatCodeBlock({ code, language, filename, className }: ChatCodeBlockProps): React.JSX.Element;
|
|
5353
4923
|
|
|
5354
4924
|
/**
|
|
5355
4925
|
* @component ChatMarkdownRenderer
|
|
@@ -5364,7 +4934,7 @@ interface ChatMarkdownRendererProps {
|
|
|
5364
4934
|
content: string;
|
|
5365
4935
|
className?: string;
|
|
5366
4936
|
}
|
|
5367
|
-
declare function ChatMarkdownRenderer({ content, className }: ChatMarkdownRendererProps): React
|
|
4937
|
+
declare function ChatMarkdownRenderer({ content, className }: ChatMarkdownRendererProps): React.JSX.Element;
|
|
5368
4938
|
|
|
5369
4939
|
/**
|
|
5370
4940
|
* @component RichTextEditor
|
|
@@ -5375,7 +4945,7 @@ declare function ChatMarkdownRenderer({ content, className }: ChatMarkdownRender
|
|
|
5375
4945
|
* @example
|
|
5376
4946
|
* <RichTextEditor value="<p>Hello</p>" onChange={setHtml} placeholder="请输入..." />
|
|
5377
4947
|
*/
|
|
5378
|
-
interface RichTextEditorProps extends Omit<React
|
|
4948
|
+
interface RichTextEditorProps extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
5379
4949
|
value?: string;
|
|
5380
4950
|
onChange?: (html: string) => void;
|
|
5381
4951
|
placeholder?: string;
|
|
@@ -5389,7 +4959,7 @@ interface RichTextEditorProps extends Omit<React$1.ComponentProps<"div">, "onCha
|
|
|
5389
4959
|
}>;
|
|
5390
4960
|
className?: string;
|
|
5391
4961
|
}
|
|
5392
|
-
declare function RichTextEditor({ value, onChange, placeholder, editable, showToolbar, minHeight, onUpload, className, ...props }: RichTextEditorProps): React
|
|
4962
|
+
declare function RichTextEditor({ value, onChange, placeholder, editable, showToolbar, minHeight, onUpload, className, ...props }: RichTextEditorProps): React.JSX.Element;
|
|
5393
4963
|
declare namespace RichTextEditor {
|
|
5394
4964
|
var displayName: string;
|
|
5395
4965
|
}
|
|
@@ -5407,7 +4977,7 @@ declare namespace RichTextEditor {
|
|
|
5407
4977
|
* onNodeClick={(node) => console.log(node)}
|
|
5408
4978
|
* />
|
|
5409
4979
|
*/
|
|
5410
|
-
interface OrgNode {
|
|
4980
|
+
interface OrgNode$2 {
|
|
5411
4981
|
id: string;
|
|
5412
4982
|
name: string;
|
|
5413
4983
|
title: string;
|
|
@@ -5418,13 +4988,13 @@ interface OrgEdge {
|
|
|
5418
4988
|
source: string;
|
|
5419
4989
|
target: string;
|
|
5420
4990
|
}
|
|
5421
|
-
interface OrgChartProps extends React
|
|
5422
|
-
nodes: OrgNode[];
|
|
4991
|
+
interface OrgChartProps extends React.ComponentProps<"div"> {
|
|
4992
|
+
nodes: OrgNode$2[];
|
|
5423
4993
|
edges?: OrgEdge[];
|
|
5424
|
-
onNodeClick?: (node: OrgNode) => void;
|
|
4994
|
+
onNodeClick?: (node: OrgNode$2) => void;
|
|
5425
4995
|
className?: string;
|
|
5426
4996
|
}
|
|
5427
|
-
declare function OrgChart({ nodes, edges: orgEdges, onNodeClick, className, ...props }: OrgChartProps): React
|
|
4997
|
+
declare function OrgChart({ nodes, edges: orgEdges, onNodeClick, className, ...props }: OrgChartProps): React.JSX.Element;
|
|
5428
4998
|
declare namespace OrgChart {
|
|
5429
4999
|
var displayName: string;
|
|
5430
5000
|
}
|
|
@@ -5438,7 +5008,7 @@ declare namespace OrgChart {
|
|
|
5438
5008
|
* @example
|
|
5439
5009
|
* <PDFViewer src="/document.pdf" title="合同.pdf" initialScale={100} />
|
|
5440
5010
|
*/
|
|
5441
|
-
interface PDFViewerProps extends Omit<React
|
|
5011
|
+
interface PDFViewerProps extends Omit<React.ComponentProps<"div">, "onError"> {
|
|
5442
5012
|
/** PDF 文件 URL 或 base64 data URI */
|
|
5443
5013
|
src: string;
|
|
5444
5014
|
/** 文档标题(显示在工具栏) */
|
|
@@ -5453,7 +5023,7 @@ interface PDFViewerProps extends Omit<React$1.ComponentProps<"div">, "onError">
|
|
|
5453
5023
|
initialScale?: number;
|
|
5454
5024
|
className?: string;
|
|
5455
5025
|
}
|
|
5456
|
-
declare function PDFViewer({ src, title, onLoadSuccess, onError, initialScale, className, ...props }: PDFViewerProps): React
|
|
5026
|
+
declare function PDFViewer({ src, title, onLoadSuccess, onError, initialScale, className, ...props }: PDFViewerProps): React.JSX.Element;
|
|
5457
5027
|
declare namespace PDFViewer {
|
|
5458
5028
|
var displayName: string;
|
|
5459
5029
|
}
|
|
@@ -5503,7 +5073,7 @@ interface ColorBoardProps {
|
|
|
5503
5073
|
showSwatches?: boolean;
|
|
5504
5074
|
className?: string;
|
|
5505
5075
|
}
|
|
5506
|
-
declare function ColorBoard({ value, onChange, format, presets, history, enableEyeDropper, enableAlpha, showSwatches, className, }: ColorBoardProps): React
|
|
5076
|
+
declare function ColorBoard({ value, onChange, format, presets, history, enableEyeDropper, enableAlpha, showSwatches, className, }: ColorBoardProps): React.JSX.Element;
|
|
5507
5077
|
declare namespace ColorBoard {
|
|
5508
5078
|
var displayName: string;
|
|
5509
5079
|
}
|
|
@@ -5527,7 +5097,7 @@ interface MarkdownEditorProps {
|
|
|
5527
5097
|
height?: number | string;
|
|
5528
5098
|
className?: string;
|
|
5529
5099
|
}
|
|
5530
|
-
declare function MarkdownEditor({ value, onChange, placeholder, mode: modeProp, toolbar, height, className, }: MarkdownEditorProps): React
|
|
5100
|
+
declare function MarkdownEditor({ value, onChange, placeholder, mode: modeProp, toolbar, height, className, }: MarkdownEditorProps): React.JSX.Element;
|
|
5531
5101
|
declare namespace MarkdownEditor {
|
|
5532
5102
|
var displayName: string;
|
|
5533
5103
|
}
|
|
@@ -5554,7 +5124,7 @@ interface CronEditorProps {
|
|
|
5554
5124
|
readOnly?: boolean;
|
|
5555
5125
|
className?: string;
|
|
5556
5126
|
}
|
|
5557
|
-
declare function CronEditor({ value, onChange, showDescription, readOnly, className, }: CronEditorProps): React
|
|
5127
|
+
declare function CronEditor({ value, onChange, showDescription, readOnly, className, }: CronEditorProps): React.JSX.Element;
|
|
5558
5128
|
declare namespace CronEditor {
|
|
5559
5129
|
var displayName: string;
|
|
5560
5130
|
}
|
|
@@ -5576,10 +5146,10 @@ interface ChatCardMessageProps {
|
|
|
5576
5146
|
label: string;
|
|
5577
5147
|
value: string;
|
|
5578
5148
|
}>;
|
|
5579
|
-
actions?: React
|
|
5149
|
+
actions?: React.ReactNode;
|
|
5580
5150
|
className?: string;
|
|
5581
5151
|
}
|
|
5582
|
-
declare function ChatCardMessage({ title, description, thumbnail, metadata, actions, className }: ChatCardMessageProps): React
|
|
5152
|
+
declare function ChatCardMessage({ title, description, thumbnail, metadata, actions, className }: ChatCardMessageProps): React.JSX.Element;
|
|
5583
5153
|
|
|
5584
5154
|
/**
|
|
5585
5155
|
* @component ChatImageGallery
|
|
@@ -5597,7 +5167,7 @@ interface ChatImageGalleryProps {
|
|
|
5597
5167
|
}>;
|
|
5598
5168
|
className?: string;
|
|
5599
5169
|
}
|
|
5600
|
-
declare function ChatImageGallery({ images, className }: ChatImageGalleryProps): React
|
|
5170
|
+
declare function ChatImageGallery({ images, className }: ChatImageGalleryProps): React.JSX.Element;
|
|
5601
5171
|
|
|
5602
5172
|
/**
|
|
5603
5173
|
* @component ChatVoiceMessage
|
|
@@ -5613,7 +5183,7 @@ interface ChatVoiceMessageProps {
|
|
|
5613
5183
|
src?: string;
|
|
5614
5184
|
className?: string;
|
|
5615
5185
|
}
|
|
5616
|
-
declare function ChatVoiceMessage({ duration, src, className }: ChatVoiceMessageProps): React
|
|
5186
|
+
declare function ChatVoiceMessage({ duration, src, className }: ChatVoiceMessageProps): React.JSX.Element;
|
|
5617
5187
|
|
|
5618
5188
|
/**
|
|
5619
5189
|
* @component ChatInputToolbar
|
|
@@ -5627,13 +5197,13 @@ declare function ChatVoiceMessage({ duration, src, className }: ChatVoiceMessage
|
|
|
5627
5197
|
interface ChatInputToolbarProps {
|
|
5628
5198
|
tools: Array<{
|
|
5629
5199
|
id: string;
|
|
5630
|
-
icon?: React
|
|
5200
|
+
icon?: React.ReactNode;
|
|
5631
5201
|
label: string;
|
|
5632
5202
|
}>;
|
|
5633
5203
|
onToolClick?: (id: string) => void;
|
|
5634
5204
|
className?: string;
|
|
5635
5205
|
}
|
|
5636
|
-
declare function ChatInputToolbar({ tools, onToolClick, className }: ChatInputToolbarProps): React
|
|
5206
|
+
declare function ChatInputToolbar({ tools, onToolClick, className }: ChatInputToolbarProps): React.JSX.Element;
|
|
5637
5207
|
|
|
5638
5208
|
/**
|
|
5639
5209
|
* @component ChatMentionPicker
|
|
@@ -5653,7 +5223,7 @@ interface ChatMentionPickerProps {
|
|
|
5653
5223
|
onSelect?: (id: string) => void;
|
|
5654
5224
|
className?: string;
|
|
5655
5225
|
}
|
|
5656
|
-
declare function ChatMentionPicker({ users, onSelect, className }: ChatMentionPickerProps): React
|
|
5226
|
+
declare function ChatMentionPicker({ users, onSelect, className }: ChatMentionPickerProps): React.JSX.Element;
|
|
5657
5227
|
|
|
5658
5228
|
/**
|
|
5659
5229
|
* @component ChatCommandMenu
|
|
@@ -5673,7 +5243,7 @@ interface ChatCommandMenuProps {
|
|
|
5673
5243
|
onSelect?: (id: string) => void;
|
|
5674
5244
|
className?: string;
|
|
5675
5245
|
}
|
|
5676
|
-
declare function ChatCommandMenu({ commands, onSelect, className }: ChatCommandMenuProps): React
|
|
5246
|
+
declare function ChatCommandMenu({ commands, onSelect, className }: ChatCommandMenuProps): React.JSX.Element;
|
|
5677
5247
|
|
|
5678
5248
|
/**
|
|
5679
5249
|
* @component ChatStreamingText
|
|
@@ -5690,7 +5260,7 @@ interface ChatStreamingTextProps {
|
|
|
5690
5260
|
speed?: number;
|
|
5691
5261
|
className?: string;
|
|
5692
5262
|
}
|
|
5693
|
-
declare function ChatStreamingText({ chunks, isStreaming, speed, className }: ChatStreamingTextProps): React
|
|
5263
|
+
declare function ChatStreamingText({ chunks, isStreaming, speed, className }: ChatStreamingTextProps): React.JSX.Element;
|
|
5694
5264
|
|
|
5695
5265
|
/**
|
|
5696
5266
|
* @component ChatSuggestReplies
|
|
@@ -5706,7 +5276,7 @@ interface ChatSuggestRepliesProps {
|
|
|
5706
5276
|
onSelect?: (suggestion: string) => void;
|
|
5707
5277
|
className?: string;
|
|
5708
5278
|
}
|
|
5709
|
-
declare function ChatSuggestReplies({ suggestions, onSelect, className }: ChatSuggestRepliesProps): React
|
|
5279
|
+
declare function ChatSuggestReplies({ suggestions, onSelect, className }: ChatSuggestRepliesProps): React.JSX.Element;
|
|
5710
5280
|
|
|
5711
5281
|
/**
|
|
5712
5282
|
* @component ChatContextPanel
|
|
@@ -5724,7 +5294,7 @@ interface ChatContextPanelProps {
|
|
|
5724
5294
|
}>;
|
|
5725
5295
|
className?: string;
|
|
5726
5296
|
}
|
|
5727
|
-
declare function ChatContextPanel({ context, className }: ChatContextPanelProps): React
|
|
5297
|
+
declare function ChatContextPanel({ context, className }: ChatContextPanelProps): React.JSX.Element;
|
|
5728
5298
|
|
|
5729
5299
|
/**
|
|
5730
5300
|
* @component ChatModelSwitcher
|
|
@@ -5745,7 +5315,7 @@ interface ChatModelSwitcherProps {
|
|
|
5745
5315
|
onSwitch?: (id: string) => void;
|
|
5746
5316
|
className?: string;
|
|
5747
5317
|
}
|
|
5748
|
-
declare function ChatModelSwitcher({ models, activeId, onSwitch, className }: ChatModelSwitcherProps): React
|
|
5318
|
+
declare function ChatModelSwitcher({ models, activeId, onSwitch, className }: ChatModelSwitcherProps): React.JSX.Element;
|
|
5749
5319
|
|
|
5750
5320
|
/**
|
|
5751
5321
|
* @component ChatAgentStatus
|
|
@@ -5761,7 +5331,7 @@ interface ChatAgentStatusProps {
|
|
|
5761
5331
|
label?: string;
|
|
5762
5332
|
className?: string;
|
|
5763
5333
|
}
|
|
5764
|
-
declare function ChatAgentStatus({ status, label, className }: ChatAgentStatusProps): React
|
|
5334
|
+
declare function ChatAgentStatus({ status, label, className }: ChatAgentStatusProps): React.JSX.Element;
|
|
5765
5335
|
|
|
5766
5336
|
/**
|
|
5767
5337
|
* @component ChatArtifactPanel
|
|
@@ -5778,7 +5348,7 @@ interface ChatArtifactPanelProps {
|
|
|
5778
5348
|
content?: string;
|
|
5779
5349
|
className?: string;
|
|
5780
5350
|
}
|
|
5781
|
-
declare function ChatArtifactPanel({ title, type, content, className }: ChatArtifactPanelProps): React
|
|
5351
|
+
declare function ChatArtifactPanel({ title, type, content, className }: ChatArtifactPanelProps): React.JSX.Element;
|
|
5782
5352
|
|
|
5783
5353
|
/**
|
|
5784
5354
|
* @component ChatFeedback
|
|
@@ -5795,7 +5365,7 @@ interface ChatFeedbackProps {
|
|
|
5795
5365
|
onComment?: (text: string) => void;
|
|
5796
5366
|
className?: string;
|
|
5797
5367
|
}
|
|
5798
|
-
declare function ChatFeedback({ onLike, onDislike, onComment, className }: ChatFeedbackProps): React
|
|
5368
|
+
declare function ChatFeedback({ onLike, onDislike, onComment, className }: ChatFeedbackProps): React.JSX.Element;
|
|
5799
5369
|
|
|
5800
5370
|
/**
|
|
5801
5371
|
* @component ChatConversation
|
|
@@ -5815,7 +5385,7 @@ interface ChatConversationProps {
|
|
|
5815
5385
|
}>;
|
|
5816
5386
|
className?: string;
|
|
5817
5387
|
}
|
|
5818
|
-
declare function ChatConversation({ messages, className }: ChatConversationProps): React
|
|
5388
|
+
declare function ChatConversation({ messages, className }: ChatConversationProps): React.JSX.Element;
|
|
5819
5389
|
|
|
5820
5390
|
/**
|
|
5821
5391
|
* @component ChatConversationSearch
|
|
@@ -5836,7 +5406,7 @@ interface ChatConversationSearchProps {
|
|
|
5836
5406
|
}>;
|
|
5837
5407
|
className?: string;
|
|
5838
5408
|
}
|
|
5839
|
-
declare function ChatConversationSearch({ query, onQueryChange, results, className, }: ChatConversationSearchProps): React
|
|
5409
|
+
declare function ChatConversationSearch({ query, onQueryChange, results, className, }: ChatConversationSearchProps): React.JSX.Element;
|
|
5840
5410
|
|
|
5841
5411
|
/**
|
|
5842
5412
|
* @component ChatBranch
|
|
@@ -5856,7 +5426,7 @@ interface ChatBranchProps {
|
|
|
5856
5426
|
onSelect?: (id: string) => void;
|
|
5857
5427
|
className?: string;
|
|
5858
5428
|
}
|
|
5859
|
-
declare function ChatBranch({ branches, onSelect, className }: ChatBranchProps): React
|
|
5429
|
+
declare function ChatBranch({ branches, onSelect, className }: ChatBranchProps): React.JSX.Element;
|
|
5860
5430
|
|
|
5861
5431
|
/**
|
|
5862
5432
|
* @component ChatSharedLink
|
|
@@ -5873,7 +5443,7 @@ interface ChatSharedLinkProps {
|
|
|
5873
5443
|
description?: string;
|
|
5874
5444
|
className?: string;
|
|
5875
5445
|
}
|
|
5876
|
-
declare function ChatSharedLink({ url, title, description, className }: ChatSharedLinkProps): React
|
|
5446
|
+
declare function ChatSharedLink({ url, title, description, className }: ChatSharedLinkProps): React.JSX.Element;
|
|
5877
5447
|
|
|
5878
5448
|
/**
|
|
5879
5449
|
* @component ChatMessageInput
|
|
@@ -5893,7 +5463,7 @@ interface ChatMessageInputProps {
|
|
|
5893
5463
|
maxLength?: number;
|
|
5894
5464
|
className?: string;
|
|
5895
5465
|
}
|
|
5896
|
-
declare function ChatMessageInput({ value, onChange, onSend, placeholder, disabled, maxLength, className, }: ChatMessageInputProps): React
|
|
5466
|
+
declare function ChatMessageInput({ value, onChange, onSend, placeholder, disabled, maxLength, className, }: ChatMessageInputProps): React.JSX.Element;
|
|
5897
5467
|
|
|
5898
5468
|
/**
|
|
5899
5469
|
* @component ChatMessageBubble
|
|
@@ -5907,13 +5477,13 @@ declare function ChatMessageInput({ value, onChange, onSend, placeholder, disabl
|
|
|
5907
5477
|
interface ChatMessageBubbleProps {
|
|
5908
5478
|
role: "user" | "assistant" | "system";
|
|
5909
5479
|
content: string;
|
|
5910
|
-
avatar?: React
|
|
5480
|
+
avatar?: React.ReactNode;
|
|
5911
5481
|
name?: string;
|
|
5912
5482
|
time?: string;
|
|
5913
5483
|
status?: string;
|
|
5914
5484
|
className?: string;
|
|
5915
5485
|
}
|
|
5916
|
-
declare function ChatMessageBubble({ role, content, avatar, name, time, status, className, }: ChatMessageBubbleProps): React
|
|
5486
|
+
declare function ChatMessageBubble({ role, content, avatar, name, time, status, className, }: ChatMessageBubbleProps): React.JSX.Element;
|
|
5917
5487
|
|
|
5918
5488
|
interface FormDesignerField {
|
|
5919
5489
|
id: string;
|
|
@@ -5926,7 +5496,7 @@ interface FormDesignerProps {
|
|
|
5926
5496
|
onChange?: (fields: unknown[]) => void;
|
|
5927
5497
|
className?: string;
|
|
5928
5498
|
}
|
|
5929
|
-
declare function FormDesigner({ fields, onChange, className, }: FormDesignerProps): React
|
|
5499
|
+
declare function FormDesigner({ fields, onChange, className, }: FormDesignerProps): React.JSX.Element;
|
|
5930
5500
|
|
|
5931
5501
|
/**
|
|
5932
5502
|
* @component FormDesignerRuntime
|
|
@@ -5962,7 +5532,7 @@ interface FormDesignerRuntimeProps {
|
|
|
5962
5532
|
onChange?: (val: Record<string, unknown>) => void;
|
|
5963
5533
|
className?: string;
|
|
5964
5534
|
}
|
|
5965
|
-
declare function FormDesignerRuntime({ schema, value, onChange, className, }: FormDesignerRuntimeProps): React
|
|
5535
|
+
declare function FormDesignerRuntime({ schema, value, onChange, className, }: FormDesignerRuntimeProps): React.JSX.Element;
|
|
5966
5536
|
|
|
5967
5537
|
interface WorkflowNode {
|
|
5968
5538
|
id: string;
|
|
@@ -5979,7 +5549,7 @@ interface WorkflowDesignerProps {
|
|
|
5979
5549
|
onChange?: (config: unknown) => void;
|
|
5980
5550
|
className?: string;
|
|
5981
5551
|
}
|
|
5982
|
-
declare function WorkflowDesigner({ nodes, edges, onChange, className, }: WorkflowDesignerProps): React
|
|
5552
|
+
declare function WorkflowDesigner({ nodes, edges, onChange, className, }: WorkflowDesignerProps): React.JSX.Element;
|
|
5983
5553
|
|
|
5984
5554
|
interface WorkflowPreviewProps {
|
|
5985
5555
|
nodes: Array<{
|
|
@@ -5993,7 +5563,7 @@ interface WorkflowPreviewProps {
|
|
|
5993
5563
|
}>;
|
|
5994
5564
|
className?: string;
|
|
5995
5565
|
}
|
|
5996
|
-
declare function WorkflowPreview({ nodes, edges, className, }: WorkflowPreviewProps): React
|
|
5566
|
+
declare function WorkflowPreview({ nodes, edges, className, }: WorkflowPreviewProps): React.JSX.Element;
|
|
5997
5567
|
|
|
5998
5568
|
interface RuleItem {
|
|
5999
5569
|
id: string;
|
|
@@ -6007,7 +5577,7 @@ interface RuleEditorProps {
|
|
|
6007
5577
|
onChange?: (rules: unknown[]) => void;
|
|
6008
5578
|
className?: string;
|
|
6009
5579
|
}
|
|
6010
|
-
declare function RuleEditor({ rules, onChange, className }: RuleEditorProps): React
|
|
5580
|
+
declare function RuleEditor({ rules, onChange, className }: RuleEditorProps): React.JSX.Element;
|
|
6011
5581
|
|
|
6012
5582
|
/**
|
|
6013
5583
|
* @component MobilePageShell
|
|
@@ -6026,10 +5596,10 @@ declare function RuleEditor({ rules, onChange, className }: RuleEditorProps): Re
|
|
|
6026
5596
|
interface MobilePageShellProps {
|
|
6027
5597
|
title?: string;
|
|
6028
5598
|
onBack?: () => void;
|
|
6029
|
-
children?: React
|
|
5599
|
+
children?: React.ReactNode;
|
|
6030
5600
|
className?: string;
|
|
6031
5601
|
}
|
|
6032
|
-
declare function MobilePageShell({ title, onBack, children, className }: MobilePageShellProps): React
|
|
5602
|
+
declare function MobilePageShell({ title, onBack, children, className }: MobilePageShellProps): React.JSX.Element;
|
|
6033
5603
|
|
|
6034
5604
|
/**
|
|
6035
5605
|
* @component MobileActionSheet
|
|
@@ -6054,7 +5624,7 @@ interface MobileActionSheetProps {
|
|
|
6054
5624
|
}>;
|
|
6055
5625
|
className?: string;
|
|
6056
5626
|
}
|
|
6057
|
-
declare function MobileActionSheet({ open, onOpenChange, actions, className }: MobileActionSheetProps): React
|
|
5627
|
+
declare function MobileActionSheet({ open, onOpenChange, actions, className }: MobileActionSheetProps): React.JSX.Element | null;
|
|
6058
5628
|
|
|
6059
5629
|
/**
|
|
6060
5630
|
* @component MobilePicker
|
|
@@ -6077,7 +5647,7 @@ interface MobilePickerProps {
|
|
|
6077
5647
|
onChange?: (val: string) => void;
|
|
6078
5648
|
className?: string;
|
|
6079
5649
|
}
|
|
6080
|
-
declare function MobilePicker({ options, value, onChange, className }: MobilePickerProps): React
|
|
5650
|
+
declare function MobilePicker({ options, value, onChange, className }: MobilePickerProps): React.JSX.Element;
|
|
6081
5651
|
|
|
6082
5652
|
/**
|
|
6083
5653
|
* @component MobileCamera
|
|
@@ -6093,34 +5663,7 @@ interface MobileCameraProps {
|
|
|
6093
5663
|
onCapture?: (blob: Blob) => void;
|
|
6094
5664
|
className?: string;
|
|
6095
5665
|
}
|
|
6096
|
-
declare function MobileCamera({ onCapture, className }: MobileCameraProps): React
|
|
6097
|
-
|
|
6098
|
-
/**
|
|
6099
|
-
* @component MobileQrCodeScanner
|
|
6100
|
-
* @category business/mobile
|
|
6101
|
-
* @since 0.7.0
|
|
6102
|
-
* @description 移动端二维码扫描 — 调用摄像头并通过 BarcodeDetector 解码;不支持时提供手动输入兜底。
|
|
6103
|
-
* @keywords mobile, qrcode, scanner
|
|
6104
|
-
* @param onScan 扫描成功回调,参数为解码出的字符串。
|
|
6105
|
-
* @example
|
|
6106
|
-
* <MobileQrCodeScanner onScan={(code) => navigate(code)} />
|
|
6107
|
-
*/
|
|
6108
|
-
interface MobileQrCodeScannerProps {
|
|
6109
|
-
onScan?: (result: string) => void;
|
|
6110
|
-
className?: string;
|
|
6111
|
-
}
|
|
6112
|
-
declare global {
|
|
6113
|
-
interface Window {
|
|
6114
|
-
BarcodeDetector?: new (options?: {
|
|
6115
|
-
formats?: string[];
|
|
6116
|
-
}) => {
|
|
6117
|
-
detect: (source: CanvasImageSource) => Promise<Array<{
|
|
6118
|
-
rawValue?: string;
|
|
6119
|
-
}>>;
|
|
6120
|
-
};
|
|
6121
|
-
}
|
|
6122
|
-
}
|
|
6123
|
-
declare function MobileQrCodeScanner({ onScan, className }: MobileQrCodeScannerProps): React$1.JSX.Element;
|
|
5666
|
+
declare function MobileCamera({ onCapture, className }: MobileCameraProps): React.JSX.Element;
|
|
6124
5667
|
|
|
6125
5668
|
/**
|
|
6126
5669
|
* @component MobileSignature
|
|
@@ -6136,7 +5679,7 @@ interface MobileSignatureProps {
|
|
|
6136
5679
|
onSave?: (blob: Blob) => void;
|
|
6137
5680
|
className?: string;
|
|
6138
5681
|
}
|
|
6139
|
-
declare function MobileSignature({ onSave, className }: MobileSignatureProps): React
|
|
5682
|
+
declare function MobileSignature({ onSave, className }: MobileSignatureProps): React.JSX.Element;
|
|
6140
5683
|
|
|
6141
5684
|
/**
|
|
6142
5685
|
* @component MobileGeolocation
|
|
@@ -6155,7 +5698,7 @@ interface MobileGeolocationProps {
|
|
|
6155
5698
|
}) => void;
|
|
6156
5699
|
className?: string;
|
|
6157
5700
|
}
|
|
6158
|
-
declare function MobileGeolocation({ onLocate, className }: MobileGeolocationProps): React
|
|
5701
|
+
declare function MobileGeolocation({ onLocate, className }: MobileGeolocationProps): React.JSX.Element;
|
|
6159
5702
|
|
|
6160
5703
|
/**
|
|
6161
5704
|
* @component MobileInfiniteScroll
|
|
@@ -6176,10 +5719,10 @@ interface MobileInfiniteScrollProps {
|
|
|
6176
5719
|
onLoadMore?: () => void;
|
|
6177
5720
|
hasMore?: boolean;
|
|
6178
5721
|
loading?: boolean;
|
|
6179
|
-
children?: React
|
|
5722
|
+
children?: React.ReactNode;
|
|
6180
5723
|
className?: string;
|
|
6181
5724
|
}
|
|
6182
|
-
declare function MobileInfiniteScroll({ onLoadMore, hasMore, loading, children, className, }: MobileInfiniteScrollProps): React
|
|
5725
|
+
declare function MobileInfiniteScroll({ onLoadMore, hasMore, loading, children, className, }: MobileInfiniteScrollProps): React.JSX.Element;
|
|
6183
5726
|
|
|
6184
5727
|
/**
|
|
6185
5728
|
* @component MobileTabBar
|
|
@@ -6197,13 +5740,13 @@ interface MobileTabBarProps {
|
|
|
6197
5740
|
tabs: Array<{
|
|
6198
5741
|
id: string;
|
|
6199
5742
|
label: string;
|
|
6200
|
-
icon?: React
|
|
5743
|
+
icon?: React.ReactNode;
|
|
6201
5744
|
}>;
|
|
6202
5745
|
activeId?: string;
|
|
6203
5746
|
onSelect?: (id: string) => void;
|
|
6204
5747
|
className?: string;
|
|
6205
5748
|
}
|
|
6206
|
-
declare function MobileTabBar({ tabs, activeId, onSelect, className }: MobileTabBarProps): React
|
|
5749
|
+
declare function MobileTabBar({ tabs, activeId, onSelect, className }: MobileTabBarProps): React.JSX.Element;
|
|
6207
5750
|
|
|
6208
5751
|
/**
|
|
6209
5752
|
* @component MobileListItem
|
|
@@ -6221,11 +5764,11 @@ declare function MobileTabBar({ tabs, activeId, onSelect, className }: MobileTab
|
|
|
6221
5764
|
interface MobileListItemProps {
|
|
6222
5765
|
title: string;
|
|
6223
5766
|
subtitle?: string;
|
|
6224
|
-
trailing?: React
|
|
5767
|
+
trailing?: React.ReactNode;
|
|
6225
5768
|
onClick?: () => void;
|
|
6226
5769
|
className?: string;
|
|
6227
5770
|
}
|
|
6228
|
-
declare function MobileListItem({ title, subtitle, trailing, onClick, className }: MobileListItemProps): React
|
|
5771
|
+
declare function MobileListItem({ title, subtitle, trailing, onClick, className }: MobileListItemProps): React.JSX.Element;
|
|
6229
5772
|
|
|
6230
5773
|
/**
|
|
6231
5774
|
* @component TreeTable
|
|
@@ -6241,13 +5784,13 @@ interface TreeTableColumn<T> {
|
|
|
6241
5784
|
/** Column key */
|
|
6242
5785
|
key: string;
|
|
6243
5786
|
/** Column title */
|
|
6244
|
-
title: React
|
|
5787
|
+
title: React.ReactNode;
|
|
6245
5788
|
/** Column width */
|
|
6246
5789
|
width?: number | string;
|
|
6247
5790
|
/** Text alignment */
|
|
6248
5791
|
align?: "left" | "center" | "right";
|
|
6249
5792
|
/** Custom cell renderer */
|
|
6250
|
-
render?: (value: T[keyof T], row: T, index: number) => React
|
|
5793
|
+
render?: (value: T[keyof T], row: T, index: number) => React.ReactNode;
|
|
6251
5794
|
/** Fixed column position */
|
|
6252
5795
|
fixed?: "left" | "right";
|
|
6253
5796
|
/** Enable sorting */
|
|
@@ -6293,7 +5836,7 @@ interface TreeTableProps<T extends Record<string, unknown>> {
|
|
|
6293
5836
|
striped?: boolean;
|
|
6294
5837
|
className?: string;
|
|
6295
5838
|
}
|
|
6296
|
-
declare function TreeTable<T extends Record<string, unknown>>({ columns, data, rowKey, childrenKey, parentKey, loading, emptyText, size, selectable, selectedKeys: controlledSelectedKeys, onSelectionChange, defaultExpandedKeys, expandedKeys: controlledExpandedKeys, onExpandedChange, onExpandRow, caption, striped, className, }: TreeTableProps<T>): React
|
|
5839
|
+
declare function TreeTable<T extends Record<string, unknown>>({ columns, data, rowKey, childrenKey, parentKey, loading, emptyText, size, selectable, selectedKeys: controlledSelectedKeys, onSelectionChange, defaultExpandedKeys, expandedKeys: controlledExpandedKeys, onExpandedChange, onExpandRow, caption, striped, className, }: TreeTableProps<T>): React.JSX.Element;
|
|
6297
5840
|
|
|
6298
5841
|
/**
|
|
6299
5842
|
* @component EditableTreeTable
|
|
@@ -6310,13 +5853,13 @@ interface EditableTreeTableColumn<T> {
|
|
|
6310
5853
|
/** Column key */
|
|
6311
5854
|
key: string;
|
|
6312
5855
|
/** Column title */
|
|
6313
|
-
title: React
|
|
5856
|
+
title: React.ReactNode;
|
|
6314
5857
|
/** Column width */
|
|
6315
5858
|
width?: number | string;
|
|
6316
5859
|
/** Text alignment */
|
|
6317
5860
|
align?: "left" | "center" | "right";
|
|
6318
5861
|
/** Custom cell renderer (used for display mode) */
|
|
6319
|
-
render?: (value: T[keyof T], row: T, index: number) => React
|
|
5862
|
+
render?: (value: T[keyof T], row: T, index: number) => React.ReactNode;
|
|
6320
5863
|
/** Enable inline editing for this column */
|
|
6321
5864
|
editable?: boolean | ((row: T) => boolean);
|
|
6322
5865
|
/** Editor type for inline editing */
|
|
@@ -6373,7 +5916,7 @@ interface EditableTreeTableProps<T extends Record<string, unknown>> {
|
|
|
6373
5916
|
* (text, number, select). Tracks dirty state, validates changes, and
|
|
6374
5917
|
* provides a save/cancel toolbar when in edit mode.
|
|
6375
5918
|
*/
|
|
6376
|
-
declare function EditableTreeTable<T extends Record<string, unknown>>({ columns, data, rowKey, childrenKey, parentKey, loading, emptyText, size, expandedKeys: controlledExpandedKeys, defaultExpandedKeys, onChange, onSave, onCancel, showToolbar, editMode, className, }: EditableTreeTableProps<T>): React
|
|
5919
|
+
declare function EditableTreeTable<T extends Record<string, unknown>>({ columns, data, rowKey, childrenKey, parentKey, loading, emptyText, size, expandedKeys: controlledExpandedKeys, defaultExpandedKeys, onChange, onSave, onCancel, showToolbar, editMode, className, }: EditableTreeTableProps<T>): React.JSX.Element;
|
|
6377
5920
|
|
|
6378
5921
|
/**
|
|
6379
5922
|
* @component DiffViewerTable
|
|
@@ -6389,13 +5932,13 @@ interface DiffColumn<T> {
|
|
|
6389
5932
|
/** Column key */
|
|
6390
5933
|
key: keyof T & string;
|
|
6391
5934
|
/** Column title */
|
|
6392
|
-
title: React
|
|
5935
|
+
title: React.ReactNode;
|
|
6393
5936
|
/** Column width */
|
|
6394
5937
|
width?: number | string;
|
|
6395
5938
|
/** Text alignment */
|
|
6396
5939
|
align?: "left" | "center" | "right";
|
|
6397
5940
|
/** Custom cell renderer */
|
|
6398
|
-
render?: (value: T[keyof T], row: T) => React
|
|
5941
|
+
render?: (value: T[keyof T], row: T) => React.ReactNode;
|
|
6399
5942
|
}
|
|
6400
5943
|
/** Status classification for a diff row. */
|
|
6401
5944
|
type DiffRowStatus = "added" | "removed" | "changed" | "unchanged";
|
|
@@ -6422,7 +5965,7 @@ interface DiffViewerTableProps<T extends Record<string, unknown>> {
|
|
|
6422
5965
|
* changes between before/after datasets. Supports unified (single table) and
|
|
6423
5966
|
* side-by-side viewing modes with a summary toolbar.
|
|
6424
5967
|
*/
|
|
6425
|
-
declare function DiffViewerTable<T extends Record<string, unknown>>({ before, after, rowKey, columns, viewMode, showChangesOnly, showSummary, className, }: DiffViewerTableProps<T>): React
|
|
5968
|
+
declare function DiffViewerTable<T extends Record<string, unknown>>({ before, after, rowKey, columns, viewMode, showChangesOnly, showSummary, className, }: DiffViewerTableProps<T>): React.JSX.Element;
|
|
6426
5969
|
|
|
6427
5970
|
/**
|
|
6428
5971
|
* A single node in the address hierarchy tree.
|
|
@@ -6468,7 +6011,7 @@ interface AddressColumnProps {
|
|
|
6468
6011
|
* @description A single column inside the AddressPicker panel, displaying a
|
|
6469
6012
|
* searchable scrollable list of options for one administrative level.
|
|
6470
6013
|
*/
|
|
6471
|
-
declare function AddressColumn({ nodes, selectedCode, onSelect, levelLabel, }: AddressColumnProps): React
|
|
6014
|
+
declare function AddressColumn({ nodes, selectedCode, onSelect, levelLabel, }: AddressColumnProps): React.JSX.Element;
|
|
6472
6015
|
interface AddressPanelProps {
|
|
6473
6016
|
tree: AddressOption[];
|
|
6474
6017
|
codes: string[];
|
|
@@ -6482,7 +6025,7 @@ interface AddressPanelProps {
|
|
|
6482
6025
|
* @description The multi-column cascading panel used internally by AddressPicker.
|
|
6483
6026
|
* Renders one column per administrative level with lazy-load support for streets.
|
|
6484
6027
|
*/
|
|
6485
|
-
declare function AddressPanel({ tree, codes, level, onSelect, onLoad, }: AddressPanelProps): React
|
|
6028
|
+
declare function AddressPanel({ tree, codes, level, onSelect, onLoad, }: AddressPanelProps): React.JSX.Element;
|
|
6486
6029
|
/**
|
|
6487
6030
|
* @component AddressPicker
|
|
6488
6031
|
* @category Business
|
|
@@ -6499,7 +6042,7 @@ declare function AddressPanel({ tree, codes, level, onSelect, onLoad, }: Address
|
|
|
6499
6042
|
* />
|
|
6500
6043
|
* ```
|
|
6501
6044
|
*/
|
|
6502
|
-
declare function AddressPicker({ value, onChange, level, options, onLoad, placeholder, disabled, inputTrigger, clearable, className, }: AddressPickerProps): React
|
|
6045
|
+
declare function AddressPicker({ value, onChange, level, options, onLoad, placeholder, disabled, inputTrigger, clearable, className, }: AddressPickerProps): React.JSX.Element;
|
|
6503
6046
|
|
|
6504
6047
|
/**
|
|
6505
6048
|
* A node in the batch tree structure.
|
|
@@ -6541,7 +6084,7 @@ interface BatchSelectorProps {
|
|
|
6541
6084
|
/** Dialog title. */
|
|
6542
6085
|
title?: string;
|
|
6543
6086
|
/** Trigger element. */
|
|
6544
|
-
trigger?: React
|
|
6087
|
+
trigger?: React.ReactNode;
|
|
6545
6088
|
/** Disabled. */
|
|
6546
6089
|
disabled?: boolean;
|
|
6547
6090
|
/** Show status badges. */
|
|
@@ -6567,7 +6110,7 @@ interface BatchSelectorProps {
|
|
|
6567
6110
|
* />
|
|
6568
6111
|
* ```
|
|
6569
6112
|
*/
|
|
6570
|
-
declare function BatchSelector({ data, value, onChange, mode, title, trigger, open: controlledOpen, onOpenChange, showStatus, showMetadata, disabled, className, }: BatchSelectorProps): React
|
|
6113
|
+
declare function BatchSelector({ data, value, onChange, mode, title, trigger, open: controlledOpen, onOpenChange, showStatus, showMetadata, disabled, className, }: BatchSelectorProps): React.JSX.Element;
|
|
6571
6114
|
|
|
6572
6115
|
/** Definition of a shift type with its visual appearance. */
|
|
6573
6116
|
interface ShiftType {
|
|
@@ -6644,7 +6187,7 @@ interface ShiftCalendarProps {
|
|
|
6644
6187
|
* assignments={[]}
|
|
6645
6188
|
* />
|
|
6646
6189
|
*/
|
|
6647
|
-
declare function ShiftCalendar({ shiftTypes, employees, assignments, onAssign, onRemove, initialMonth, month: controlledMonth, onMonthChange, filterEmployeeIds, showFilter, showSummary, readOnly, className, }: ShiftCalendarProps): React
|
|
6190
|
+
declare function ShiftCalendar({ shiftTypes, employees, assignments, onAssign, onRemove, initialMonth, month: controlledMonth, onMonthChange, filterEmployeeIds, showFilter, showSummary, readOnly, className, }: ShiftCalendarProps): React.JSX.Element;
|
|
6648
6191
|
|
|
6649
6192
|
/** Possible operational states for a piece of equipment. */
|
|
6650
6193
|
type EquipmentStatus = "running" | "idle" | "maintenance" | "fault" | "offline";
|
|
@@ -6658,7 +6201,7 @@ interface EquipmentMetric {
|
|
|
6658
6201
|
/** A quick action button rendered in the card footer. */
|
|
6659
6202
|
interface EquipmentAction {
|
|
6660
6203
|
label: string;
|
|
6661
|
-
icon?: React
|
|
6204
|
+
icon?: React.ReactNode;
|
|
6662
6205
|
onClick?: () => void;
|
|
6663
6206
|
}
|
|
6664
6207
|
/** Props for the EquipmentCard component. */
|
|
@@ -6699,7 +6242,7 @@ interface EquipmentCardProps {
|
|
|
6699
6242
|
* metrics={[{ label: "OEE", value: "92%" }]}
|
|
6700
6243
|
* />
|
|
6701
6244
|
*/
|
|
6702
|
-
declare function EquipmentCard({ name, model, status, metrics, nextMaintenance, location, actions, onClick, className, }: EquipmentCardProps): React
|
|
6245
|
+
declare function EquipmentCard({ name, model, status, metrics, nextMaintenance, location, actions, onClick, className, }: EquipmentCardProps): React.JSX.Element;
|
|
6703
6246
|
|
|
6704
6247
|
/** Supported maintenance types. */
|
|
6705
6248
|
type MaintenanceType = "preventive" | "corrective" | "emergency" | "inspection" | "calibration";
|
|
@@ -6755,7 +6298,7 @@ interface MaintenanceLogProps {
|
|
|
6755
6298
|
* showFilter
|
|
6756
6299
|
* />
|
|
6757
6300
|
*/
|
|
6758
|
-
declare function MaintenanceLog({ entries, title, showFilter, emptyText, className, }: MaintenanceLogProps): React
|
|
6301
|
+
declare function MaintenanceLog({ entries, title, showFilter, emptyText, className, }: MaintenanceLogProps): React.JSX.Element;
|
|
6759
6302
|
|
|
6760
6303
|
interface MediaRecorderProps {
|
|
6761
6304
|
/** Called with the recorded Blob when recording stops. */
|
|
@@ -6783,7 +6326,7 @@ interface MediaRecorderProps {
|
|
|
6783
6326
|
* maxDuration={60}
|
|
6784
6327
|
* />
|
|
6785
6328
|
*/
|
|
6786
|
-
declare function MediaRecorderComponent({ onStop, onStart, mimeType, screen, maxDuration, className, }: MediaRecorderProps): React
|
|
6329
|
+
declare function MediaRecorderComponent({ onStop, onStart, mimeType, screen, maxDuration, className, }: MediaRecorderProps): React.JSX.Element;
|
|
6787
6330
|
|
|
6788
6331
|
/** Supported field types in a quality inspection template. */
|
|
6789
6332
|
type InspectionFieldType = "measurement" | "passfail" | "select" | "text" | "photo";
|
|
@@ -6867,7 +6410,7 @@ declare function computeResult(template: InspectionTemplate, values: Record<stri
|
|
|
6867
6410
|
* pass/fail/pending results, supports field grouping, and provides a
|
|
6868
6411
|
* read-only review mode.
|
|
6869
6412
|
*/
|
|
6870
|
-
declare function QualityInspectionForm({ template, values: preFilledValues, inspector, onSubmit, readOnly, showResult, className, }: QualityInspectionFormProps): React
|
|
6413
|
+
declare function QualityInspectionForm({ template, values: preFilledValues, inspector, onSubmit, readOnly, showResult, className, }: QualityInspectionFormProps): React.JSX.Element;
|
|
6871
6414
|
|
|
6872
6415
|
/** Alert severity levels for inventory items. */
|
|
6873
6416
|
type AlertSeverity = "critical" | "warning" | "info" | "normal";
|
|
@@ -6936,12 +6479,12 @@ declare function InlineSparkline({ data, width, height, }: {
|
|
|
6936
6479
|
data: number[];
|
|
6937
6480
|
width?: number;
|
|
6938
6481
|
height?: number;
|
|
6939
|
-
}): React
|
|
6482
|
+
}): React.JSX.Element | null;
|
|
6940
6483
|
/**
|
|
6941
6484
|
* Inventory alert list with severity filtering, trend sparklines, expandable
|
|
6942
6485
|
* transaction details, and reorder actions for warehouse management.
|
|
6943
6486
|
*/
|
|
6944
|
-
declare function InventoryAlertList({ items, activeTab: controlledTab, onTabChange, onItemClick, onReorder, loading, showTrend, showTransactions, className, }: InventoryAlertListProps): React
|
|
6487
|
+
declare function InventoryAlertList({ items, activeTab: controlledTab, onTabChange, onItemClick, onReorder, loading, showTrend, showTransactions, className, }: InventoryAlertListProps): React.JSX.Element;
|
|
6945
6488
|
|
|
6946
6489
|
/** A single unit definition within a category. */
|
|
6947
6490
|
interface Unit {
|
|
@@ -7000,7 +6543,7 @@ declare function formatResult(num: number): string;
|
|
|
7000
6543
|
* @example
|
|
7001
6544
|
* <UnitConverter defaultCategory="length" showSwap />
|
|
7002
6545
|
*/
|
|
7003
|
-
declare function UnitConverter({ categories, defaultCategory, defaultFrom, defaultTo, showSwap, compact, className, }: UnitConverterProps): React
|
|
6546
|
+
declare function UnitConverter({ categories, defaultCategory, defaultFrom, defaultTo, showSwap, compact, className, }: UnitConverterProps): React.JSX.Element;
|
|
7004
6547
|
|
|
7005
6548
|
/** A variable that can be used in a formula. */
|
|
7006
6549
|
interface FormulaVariable {
|
|
@@ -7075,7 +6618,7 @@ declare function safeEvaluate(formula: string, variables: Record<string, number>
|
|
|
7075
6618
|
* functions={[{ name: "SUM", label: "Sum", args: [{ name: "a", type: "number" }], returnType: "number" }]}
|
|
7076
6619
|
* />
|
|
7077
6620
|
*/
|
|
7078
|
-
declare function FormulaEditor({ value, onChange, variables, functions, validator, showPreview, sampleValues, placeholder, disabled, error: controlledError, className, }: FormulaEditorProps): React
|
|
6621
|
+
declare function FormulaEditor({ value, onChange, variables, functions, validator, showPreview, sampleValues, placeholder, disabled, error: controlledError, className, }: FormulaEditorProps): React.JSX.Element;
|
|
7079
6622
|
|
|
7080
6623
|
interface RedPacketProps {
|
|
7081
6624
|
/** Amount or greeting text. */
|
|
@@ -7098,7 +6641,7 @@ interface RedPacketProps {
|
|
|
7098
6641
|
* @example
|
|
7099
6642
|
* <RedPacket label="¥8.88" subtitle="Click to receive" onOpen={() => doOpen()} />
|
|
7100
6643
|
*/
|
|
7101
|
-
declare function RedPacket({ label, subtitle, opened, onOpen, className, }: RedPacketProps): React
|
|
6644
|
+
declare function RedPacket({ label, subtitle, opened, onOpen, className, }: RedPacketProps): React.JSX.Element;
|
|
7102
6645
|
|
|
7103
6646
|
/** Widget type identifiers for the report builder */
|
|
7104
6647
|
type ReportWidgetType = "table" | "chart" | "kpi" | "text" | "image";
|
|
@@ -7121,7 +6664,7 @@ interface ReportWidget {
|
|
|
7121
6664
|
interface ReportWidgetDefinition {
|
|
7122
6665
|
type: ReportWidgetType;
|
|
7123
6666
|
label: string;
|
|
7124
|
-
icon: React
|
|
6667
|
+
icon: React.ReactNode;
|
|
7125
6668
|
/** Default width/height when added to canvas */
|
|
7126
6669
|
defaultW: number;
|
|
7127
6670
|
defaultH: number;
|
|
@@ -7140,7 +6683,7 @@ interface ReportBuilderProps {
|
|
|
7140
6683
|
/** Preview handler */
|
|
7141
6684
|
onPreview?: (widgets: ReportWidget[]) => void;
|
|
7142
6685
|
/** Custom property editor for selected widget */
|
|
7143
|
-
renderPropertyEditor?: (widget: ReportWidget, onUpdate: (config: Record<string, unknown>) => void) => React
|
|
6686
|
+
renderPropertyEditor?: (widget: ReportWidget, onUpdate: (config: Record<string, unknown>) => void) => React.ReactNode;
|
|
7144
6687
|
/** Grid column count (default: 12) */
|
|
7145
6688
|
columns?: number;
|
|
7146
6689
|
/** Canvas height */
|
|
@@ -7150,7 +6693,7 @@ interface ReportBuilderProps {
|
|
|
7150
6693
|
className?: string;
|
|
7151
6694
|
}
|
|
7152
6695
|
/** Lightweight drag-and-drop report designer for building custom query reports. */
|
|
7153
|
-
declare function ReportBuilder({ widgets: controlledWidgets, onChange, definitions, onSave, onPreview, renderPropertyEditor, columns, canvasHeight, readOnly, className, }: ReportBuilderProps): React
|
|
6696
|
+
declare function ReportBuilder({ widgets: controlledWidgets, onChange, definitions, onSave, onPreview, renderPropertyEditor, columns, canvasHeight, readOnly, className, }: ReportBuilderProps): React.JSX.Element;
|
|
7154
6697
|
|
|
7155
6698
|
/** Widget type identifiers for the dashboard designer */
|
|
7156
6699
|
type DashboardWidgetType = "kpi" | "chart-line" | "chart-bar" | "chart-pie" | "chart-donut" | "table" | "text" | "filter";
|
|
@@ -7192,7 +6735,7 @@ interface DashboardDesignerProps {
|
|
|
7192
6735
|
/** Available widget types to add */
|
|
7193
6736
|
availableWidgets?: DashboardWidgetType[];
|
|
7194
6737
|
/** Custom widget renderer for preview */
|
|
7195
|
-
renderWidget?: (widget: DashboardWidget) => React
|
|
6738
|
+
renderWidget?: (widget: DashboardWidget) => React.ReactNode;
|
|
7196
6739
|
/** Grid columns (default: 12) */
|
|
7197
6740
|
columns?: number;
|
|
7198
6741
|
/** Read-only mode */
|
|
@@ -7200,7 +6743,7 @@ interface DashboardDesignerProps {
|
|
|
7200
6743
|
className?: string;
|
|
7201
6744
|
}
|
|
7202
6745
|
/** Full dashboard layout designer where users can customize their dashboard. */
|
|
7203
|
-
declare function DashboardDesigner({ config: controlledConfig, onChange, onSave, onPreview, availableWidgets, renderWidget, columns, readOnly, className, }: DashboardDesignerProps): React
|
|
6746
|
+
declare function DashboardDesigner({ config: controlledConfig, onChange, onSave, onPreview, availableWidgets, renderWidget, columns, readOnly, className, }: DashboardDesignerProps): React.JSX.Element;
|
|
7204
6747
|
|
|
7205
6748
|
/**
|
|
7206
6749
|
* Describes a merge field that can be inserted into the contract template.
|
|
@@ -7298,7 +6841,7 @@ declare const STATUS_CONFIG: Record<NonNullable<ContractMetadata["status"]>, {
|
|
|
7298
6841
|
* metadata={{ contractNo: "C-001", status: "draft" }}
|
|
7299
6842
|
* />
|
|
7300
6843
|
*/
|
|
7301
|
-
declare function ContractTemplate({ template: templateProp, onTemplateChange, fields, metadata: metadataProp, onMetadataChange, sampleValues, onSave, readOnly, activeTab: activeTabProp, onTabChange, className, }: ContractTemplateProps): React
|
|
6844
|
+
declare function ContractTemplate({ template: templateProp, onTemplateChange, fields, metadata: metadataProp, onMetadataChange, sampleValues, onSave, readOnly, activeTab: activeTabProp, onTabChange, className, }: ContractTemplateProps): React.JSX.Element;
|
|
7302
6845
|
|
|
7303
6846
|
/** Column definition matching the existing DataTable / SearchTable pattern. */
|
|
7304
6847
|
interface BrowseColumn<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
@@ -7307,7 +6850,7 @@ interface BrowseColumn<T extends Record<string, unknown> = Record<string, unknow
|
|
|
7307
6850
|
dataIndex?: keyof T & string;
|
|
7308
6851
|
width?: number | string;
|
|
7309
6852
|
/** Cell renderer. `value` is typed as `T[keyof T]`. */
|
|
7310
|
-
render?: (value: T[keyof T], record: T, index: number) => React
|
|
6853
|
+
render?: (value: T[keyof T], record: T, index: number) => React.ReactNode;
|
|
7311
6854
|
align?: "left" | "center" | "right";
|
|
7312
6855
|
}
|
|
7313
6856
|
/** Parameters passed to the `loadData` fetcher. */
|
|
@@ -7402,7 +6945,7 @@ interface BrowseDialogProps<T extends Record<string, unknown> = Record<string, u
|
|
|
7402
6945
|
* />
|
|
7403
6946
|
* ```
|
|
7404
6947
|
*/
|
|
7405
|
-
declare function BrowseDialog<T extends Record<string, unknown> = Record<string, unknown>>({ open, onOpenChange, loadData, columns, value, defaultValue: _defaultValue, onChange, rowKey: rowKeyProp, tree, title, searchPlaceholder, emptyText, className, pageSize: pageSizeProp, searchDebounceMs, maxSelect, minSelect, }: BrowseDialogProps<T>): React
|
|
6948
|
+
declare function BrowseDialog<T extends Record<string, unknown> = Record<string, unknown>>({ open, onOpenChange, loadData, columns, value, defaultValue: _defaultValue, onChange, rowKey: rowKeyProp, tree, title, searchPlaceholder, emptyText, className, pageSize: pageSizeProp, searchDebounceMs, maxSelect, minSelect, }: BrowseDialogProps<T>): React.JSX.Element;
|
|
7406
6949
|
|
|
7407
6950
|
/**
|
|
7408
6951
|
* @component AreaChart
|
|
@@ -7431,7 +6974,7 @@ interface AreaChartProps {
|
|
|
7431
6974
|
color?: string;
|
|
7432
6975
|
className?: string;
|
|
7433
6976
|
}
|
|
7434
|
-
declare function AreaChart({ data, labels, height, color, className, }: AreaChartProps): React
|
|
6977
|
+
declare function AreaChart({ data, labels, height, color, className, }: AreaChartProps): React.JSX.Element;
|
|
7435
6978
|
|
|
7436
6979
|
/**
|
|
7437
6980
|
* @component BarChart
|
|
@@ -7461,7 +7004,7 @@ interface BarChartProps {
|
|
|
7461
7004
|
height?: number;
|
|
7462
7005
|
className?: string;
|
|
7463
7006
|
}
|
|
7464
|
-
declare function BarChart({ data, orientation, height, className, }: BarChartProps): React
|
|
7007
|
+
declare function BarChart({ data, orientation, height, className, }: BarChartProps): React.JSX.Element;
|
|
7465
7008
|
|
|
7466
7009
|
/**
|
|
7467
7010
|
* @component BarListCard
|
|
@@ -7488,7 +7031,7 @@ interface BarListCardProps {
|
|
|
7488
7031
|
}>;
|
|
7489
7032
|
className?: string;
|
|
7490
7033
|
}
|
|
7491
|
-
declare function BarListCard({ title, data, className, }: BarListCardProps): React
|
|
7034
|
+
declare function BarListCard({ title, data, className, }: BarListCardProps): React.JSX.Element;
|
|
7492
7035
|
|
|
7493
7036
|
/**
|
|
7494
7037
|
* @component BudgetAllocator
|
|
@@ -7531,7 +7074,7 @@ interface BudgetAllocatorProps {
|
|
|
7531
7074
|
}>) => void;
|
|
7532
7075
|
className?: string;
|
|
7533
7076
|
}
|
|
7534
|
-
declare function BudgetAllocator({ total, categories, currency, onChange, className, }: BudgetAllocatorProps): React
|
|
7077
|
+
declare function BudgetAllocator({ total, categories, currency, onChange, className, }: BudgetAllocatorProps): React.JSX.Element;
|
|
7535
7078
|
|
|
7536
7079
|
/**
|
|
7537
7080
|
* @component CompanyPicker
|
|
@@ -7573,7 +7116,7 @@ interface CompanyPickerProps {
|
|
|
7573
7116
|
clearable?: boolean;
|
|
7574
7117
|
className?: string;
|
|
7575
7118
|
}
|
|
7576
|
-
declare function CompanyPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: CompanyPickerProps): React
|
|
7119
|
+
declare function CompanyPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: CompanyPickerProps): React.JSX.Element;
|
|
7577
7120
|
|
|
7578
7121
|
/**
|
|
7579
7122
|
* @component CostCenterPicker
|
|
@@ -7607,7 +7150,7 @@ interface CostCenterPickerProps {
|
|
|
7607
7150
|
clearable?: boolean;
|
|
7608
7151
|
className?: string;
|
|
7609
7152
|
}
|
|
7610
|
-
declare function CostCenterPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: CostCenterPickerProps): React
|
|
7153
|
+
declare function CostCenterPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: CostCenterPickerProps): React.JSX.Element;
|
|
7611
7154
|
|
|
7612
7155
|
/**
|
|
7613
7156
|
* @component CustomerPicker
|
|
@@ -7644,7 +7187,7 @@ interface CustomerPickerProps {
|
|
|
7644
7187
|
clearable?: boolean;
|
|
7645
7188
|
className?: string;
|
|
7646
7189
|
}
|
|
7647
|
-
declare function CustomerPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: CustomerPickerProps): React
|
|
7190
|
+
declare function CustomerPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: CustomerPickerProps): React.JSX.Element;
|
|
7648
7191
|
|
|
7649
7192
|
/**
|
|
7650
7193
|
* @component DashboardGrid
|
|
@@ -7681,7 +7224,7 @@ interface DashboardGridProps {
|
|
|
7681
7224
|
columns?: 1 | 2 | 3 | 4 | 6;
|
|
7682
7225
|
className?: string;
|
|
7683
7226
|
}
|
|
7684
|
-
declare function DashboardGrid({ title, stats, columns, className, }: DashboardGridProps): React
|
|
7227
|
+
declare function DashboardGrid({ title, stats, columns, className, }: DashboardGridProps): React.JSX.Element;
|
|
7685
7228
|
|
|
7686
7229
|
/**
|
|
7687
7230
|
* @component DepartmentPicker
|
|
@@ -7716,7 +7259,7 @@ interface DepartmentPickerProps {
|
|
|
7716
7259
|
clearable?: boolean;
|
|
7717
7260
|
className?: string;
|
|
7718
7261
|
}
|
|
7719
|
-
declare function DepartmentPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: DepartmentPickerProps): React
|
|
7262
|
+
declare function DepartmentPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: DepartmentPickerProps): React.JSX.Element;
|
|
7720
7263
|
|
|
7721
7264
|
/**
|
|
7722
7265
|
* @component DistributorPicker
|
|
@@ -7752,7 +7295,7 @@ interface DistributorPickerProps {
|
|
|
7752
7295
|
clearable?: boolean;
|
|
7753
7296
|
className?: string;
|
|
7754
7297
|
}
|
|
7755
|
-
declare function DistributorPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: DistributorPickerProps): React
|
|
7298
|
+
declare function DistributorPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: DistributorPickerProps): React.JSX.Element;
|
|
7756
7299
|
|
|
7757
7300
|
/**
|
|
7758
7301
|
* @component DonutChart
|
|
@@ -7785,7 +7328,7 @@ interface DonutChartProps {
|
|
|
7785
7328
|
centerLabel?: string;
|
|
7786
7329
|
className?: string;
|
|
7787
7330
|
}
|
|
7788
|
-
declare function DonutChart({ data, size, thickness, centerLabel, className, }: DonutChartProps): React
|
|
7331
|
+
declare function DonutChart({ data, size, thickness, centerLabel, className, }: DonutChartProps): React.JSX.Element;
|
|
7789
7332
|
|
|
7790
7333
|
/**
|
|
7791
7334
|
* @component EmployeePicker
|
|
@@ -7822,7 +7365,7 @@ interface EmployeePickerProps {
|
|
|
7822
7365
|
clearable?: boolean;
|
|
7823
7366
|
className?: string;
|
|
7824
7367
|
}
|
|
7825
|
-
declare function EmployeePicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: EmployeePickerProps): React
|
|
7368
|
+
declare function EmployeePicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: EmployeePickerProps): React.JSX.Element;
|
|
7826
7369
|
|
|
7827
7370
|
/**
|
|
7828
7371
|
* @component GaugeChart
|
|
@@ -7854,7 +7397,7 @@ interface GaugeChartProps {
|
|
|
7854
7397
|
color?: string;
|
|
7855
7398
|
className?: string;
|
|
7856
7399
|
}
|
|
7857
|
-
declare function GaugeChart({ value, min, max, label, color, className, }: GaugeChartProps): React
|
|
7400
|
+
declare function GaugeChart({ value, min, max, label, color, className, }: GaugeChartProps): React.JSX.Element;
|
|
7858
7401
|
|
|
7859
7402
|
/**
|
|
7860
7403
|
* @component ImMessage
|
|
@@ -7896,7 +7439,7 @@ interface ImMessageProps {
|
|
|
7896
7439
|
avatarUrl?: string;
|
|
7897
7440
|
className?: string;
|
|
7898
7441
|
}
|
|
7899
|
-
declare function ImMessage({ direction, author, content, timestamp, attachments, avatarUrl, className, }: ImMessageProps): React
|
|
7442
|
+
declare function ImMessage({ direction, author, content, timestamp, attachments, avatarUrl, className, }: ImMessageProps): React.JSX.Element;
|
|
7900
7443
|
|
|
7901
7444
|
/**
|
|
7902
7445
|
* @component KanbanColumn
|
|
@@ -7935,7 +7478,7 @@ interface KanbanColumnProps {
|
|
|
7935
7478
|
onCardClick?: (id: string) => void;
|
|
7936
7479
|
className?: string;
|
|
7937
7480
|
}
|
|
7938
|
-
declare function KanbanColumn({ title, accent, cards, onAddCard, onCardClick, className, }: KanbanColumnProps): React
|
|
7481
|
+
declare function KanbanColumn({ title, accent, cards, onAddCard, onCardClick, className, }: KanbanColumnProps): React.JSX.Element;
|
|
7939
7482
|
|
|
7940
7483
|
/**
|
|
7941
7484
|
* @component LineChart
|
|
@@ -7965,7 +7508,7 @@ interface LineChartProps {
|
|
|
7965
7508
|
height?: number;
|
|
7966
7509
|
className?: string;
|
|
7967
7510
|
}
|
|
7968
|
-
declare function LineChart({ series, labels, height, className, }: LineChartProps): React
|
|
7511
|
+
declare function LineChart({ series, labels, height, className, }: LineChartProps): React.JSX.Element;
|
|
7969
7512
|
|
|
7970
7513
|
/**
|
|
7971
7514
|
* @component MessageList
|
|
@@ -7998,7 +7541,7 @@ interface MessageListProps {
|
|
|
7998
7541
|
onMarkAllRead?: () => void;
|
|
7999
7542
|
className?: string;
|
|
8000
7543
|
}
|
|
8001
|
-
declare function MessageList({ messages, onSelect, onMarkAllRead, className, }: MessageListProps): React
|
|
7544
|
+
declare function MessageList({ messages, onSelect, onMarkAllRead, className, }: MessageListProps): React.JSX.Element;
|
|
8002
7545
|
|
|
8003
7546
|
/**
|
|
8004
7547
|
* @component OverviewPage
|
|
@@ -8038,10 +7581,10 @@ interface OverviewPageProps {
|
|
|
8038
7581
|
time?: string;
|
|
8039
7582
|
}>;
|
|
8040
7583
|
/** 自定义内容区 */
|
|
8041
|
-
children?: React
|
|
7584
|
+
children?: React.ReactNode;
|
|
8042
7585
|
className?: string;
|
|
8043
7586
|
}
|
|
8044
|
-
declare function OverviewPage({ title, subtitle, kpis, activities, children, className, }: OverviewPageProps): React
|
|
7587
|
+
declare function OverviewPage({ title, subtitle, kpis, activities, children, className, }: OverviewPageProps): React.JSX.Element;
|
|
8045
7588
|
|
|
8046
7589
|
/**
|
|
8047
7590
|
* @component PermissionButton
|
|
@@ -8073,7 +7616,7 @@ interface PermissionButtonProps {
|
|
|
8073
7616
|
/** 无权限时的处理方式 */
|
|
8074
7617
|
mode?: "disable" | "hide";
|
|
8075
7618
|
/** 按钮文本 */
|
|
8076
|
-
children?: React
|
|
7619
|
+
children?: React.ReactNode;
|
|
8077
7620
|
/** 点击回调 */
|
|
8078
7621
|
onClick?: () => void;
|
|
8079
7622
|
/** 按钮样式 */
|
|
@@ -8082,7 +7625,7 @@ interface PermissionButtonProps {
|
|
|
8082
7625
|
disabled?: boolean;
|
|
8083
7626
|
className?: string;
|
|
8084
7627
|
}
|
|
8085
|
-
declare function PermissionButton({ permission, permissions, mode, children, onClick, variant, disabled, className, }: PermissionButtonProps): React
|
|
7628
|
+
declare function PermissionButton({ permission, permissions, mode, children, onClick, variant, disabled, className, }: PermissionButtonProps): React.JSX.Element | null;
|
|
8086
7629
|
|
|
8087
7630
|
/**
|
|
8088
7631
|
* @component PieChart
|
|
@@ -8109,7 +7652,7 @@ interface PieChartProps {
|
|
|
8109
7652
|
size?: number;
|
|
8110
7653
|
className?: string;
|
|
8111
7654
|
}
|
|
8112
|
-
declare function PieChart({ data, size, className, }: PieChartProps): React
|
|
7655
|
+
declare function PieChart({ data, size, className, }: PieChartProps): React.JSX.Element;
|
|
8113
7656
|
|
|
8114
7657
|
/**
|
|
8115
7658
|
* @component ProductCategoryPicker
|
|
@@ -8144,7 +7687,7 @@ interface ProductCategoryPickerProps {
|
|
|
8144
7687
|
clearable?: boolean;
|
|
8145
7688
|
className?: string;
|
|
8146
7689
|
}
|
|
8147
|
-
declare function ProductCategoryPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: ProductCategoryPickerProps): React
|
|
7690
|
+
declare function ProductCategoryPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: ProductCategoryPickerProps): React.JSX.Element;
|
|
8148
7691
|
|
|
8149
7692
|
/**
|
|
8150
7693
|
* @component PromotionRuleCard
|
|
@@ -8189,7 +7732,7 @@ interface PromotionRuleCardProps {
|
|
|
8189
7732
|
onDuplicate?: () => void;
|
|
8190
7733
|
className?: string;
|
|
8191
7734
|
}
|
|
8192
|
-
declare function PromotionRuleCard({ name, type, discount, threshold, startDate, endDate, scope, active, onEdit, onDuplicate, className, }: PromotionRuleCardProps): React
|
|
7735
|
+
declare function PromotionRuleCard({ name, type, discount, threshold, startDate, endDate, scope, active, onEdit, onDuplicate, className, }: PromotionRuleCardProps): React.JSX.Element;
|
|
8193
7736
|
|
|
8194
7737
|
/**
|
|
8195
7738
|
* @component PromotionRuleEditor
|
|
@@ -8221,7 +7764,7 @@ interface PromotionRuleEditorProps {
|
|
|
8221
7764
|
onChange?: (rules: PromotionRule[]) => void;
|
|
8222
7765
|
className?: string;
|
|
8223
7766
|
}
|
|
8224
|
-
declare function PromotionRuleEditor({ rules, onChange, className, }: PromotionRuleEditorProps): React
|
|
7767
|
+
declare function PromotionRuleEditor({ rules, onChange, className, }: PromotionRuleEditorProps): React.JSX.Element;
|
|
8225
7768
|
|
|
8226
7769
|
/**
|
|
8227
7770
|
* @component RadarChart
|
|
@@ -8251,7 +7794,7 @@ interface RadarChartProps {
|
|
|
8251
7794
|
max?: number;
|
|
8252
7795
|
className?: string;
|
|
8253
7796
|
}
|
|
8254
|
-
declare function RadarChart({ axes, series, max, className, }: RadarChartProps): React
|
|
7797
|
+
declare function RadarChart({ axes, series, max, className, }: RadarChartProps): React.JSX.Element;
|
|
8255
7798
|
|
|
8256
7799
|
/**
|
|
8257
7800
|
* @component RadialChart
|
|
@@ -8283,7 +7826,7 @@ interface RadialChartProps {
|
|
|
8283
7826
|
size?: number;
|
|
8284
7827
|
className?: string;
|
|
8285
7828
|
}
|
|
8286
|
-
declare function RadialChart({ value, max, label, color, size, className, }: RadialChartProps): React
|
|
7829
|
+
declare function RadialChart({ value, max, label, color, size, className, }: RadialChartProps): React.JSX.Element;
|
|
8287
7830
|
|
|
8288
7831
|
/**
|
|
8289
7832
|
* @component RegionPicker
|
|
@@ -8323,7 +7866,7 @@ interface RegionPickerProps {
|
|
|
8323
7866
|
clearable?: boolean;
|
|
8324
7867
|
className?: string;
|
|
8325
7868
|
}
|
|
8326
|
-
declare function RegionPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: RegionPickerProps): React
|
|
7869
|
+
declare function RegionPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: RegionPickerProps): React.JSX.Element;
|
|
8327
7870
|
|
|
8328
7871
|
/**
|
|
8329
7872
|
* @component SankeyChart
|
|
@@ -8348,7 +7891,7 @@ interface SankeyChartProps {
|
|
|
8348
7891
|
}>;
|
|
8349
7892
|
className?: string;
|
|
8350
7893
|
}
|
|
8351
|
-
declare function SankeyChart({ flows, className, }: SankeyChartProps): React
|
|
7894
|
+
declare function SankeyChart({ flows, className, }: SankeyChartProps): React.JSX.Element;
|
|
8352
7895
|
|
|
8353
7896
|
/**
|
|
8354
7897
|
* @component ScatterChart
|
|
@@ -8382,7 +7925,7 @@ interface ScatterChartProps {
|
|
|
8382
7925
|
height?: number;
|
|
8383
7926
|
className?: string;
|
|
8384
7927
|
}
|
|
8385
|
-
declare function ScatterChart({ data, xLabel, yLabel, height, className, }: ScatterChartProps): React
|
|
7928
|
+
declare function ScatterChart({ data, xLabel, yLabel, height, className, }: ScatterChartProps): React.JSX.Element;
|
|
8386
7929
|
|
|
8387
7930
|
/**
|
|
8388
7931
|
* @component SkuPicker
|
|
@@ -8423,7 +7966,7 @@ interface SkuPickerProps {
|
|
|
8423
7966
|
clearable?: boolean;
|
|
8424
7967
|
className?: string;
|
|
8425
7968
|
}
|
|
8426
|
-
declare function SkuPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: SkuPickerProps): React
|
|
7969
|
+
declare function SkuPicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: SkuPickerProps): React.JSX.Element;
|
|
8427
7970
|
|
|
8428
7971
|
/**
|
|
8429
7972
|
* @component SparkChart
|
|
@@ -8452,7 +7995,7 @@ interface SparkChartProps {
|
|
|
8452
7995
|
color?: string;
|
|
8453
7996
|
className?: string;
|
|
8454
7997
|
}
|
|
8455
|
-
declare function SparkChart({ data, width, height, color, className, }: SparkChartProps): React
|
|
7998
|
+
declare function SparkChart({ data, width, height, color, className, }: SparkChartProps): React.JSX.Element;
|
|
8456
7999
|
|
|
8457
8000
|
/**
|
|
8458
8001
|
* @component StatCardWithDelta
|
|
@@ -8481,7 +8024,7 @@ interface StatCardWithDeltaProps {
|
|
|
8481
8024
|
icon?: LucideIcon;
|
|
8482
8025
|
className?: string;
|
|
8483
8026
|
}
|
|
8484
|
-
declare function StatCardWithDelta({ label, value, delta, icon: Icon, className, }: StatCardWithDeltaProps): React
|
|
8027
|
+
declare function StatCardWithDelta({ label, value, delta, icon: Icon, className, }: StatCardWithDeltaProps): React.JSX.Element;
|
|
8485
8028
|
|
|
8486
8029
|
/**
|
|
8487
8030
|
* @component SubformTabs
|
|
@@ -8517,7 +8060,7 @@ interface SubformTabsProps {
|
|
|
8517
8060
|
onChange?: (val: Record<string, unknown>) => void;
|
|
8518
8061
|
className?: string;
|
|
8519
8062
|
}
|
|
8520
|
-
declare function SubformTabs({ tabs, value, onChange, className, }: SubformTabsProps): React
|
|
8063
|
+
declare function SubformTabs({ tabs, value, onChange, className, }: SubformTabsProps): React.JSX.Element;
|
|
8521
8064
|
|
|
8522
8065
|
/**
|
|
8523
8066
|
* @component TabCrudPage
|
|
@@ -8562,10 +8105,10 @@ interface TabCrudPageProps {
|
|
|
8562
8105
|
/** 搜索关键字变化回调 */
|
|
8563
8106
|
onQueryChange?: (value: string) => void;
|
|
8564
8107
|
/** 由调用方按选项卡渲染的内容 */
|
|
8565
|
-
children?: React
|
|
8108
|
+
children?: React.ReactNode;
|
|
8566
8109
|
className?: string;
|
|
8567
8110
|
}
|
|
8568
|
-
declare function TabCrudPage({ tabs, active, defaultActive, onTabChange, onCreate, query, onQueryChange, children, className, }: TabCrudPageProps): React
|
|
8111
|
+
declare function TabCrudPage({ tabs, active, defaultActive, onTabChange, onCreate, query, onQueryChange, children, className, }: TabCrudPageProps): React.JSX.Element;
|
|
8569
8112
|
|
|
8570
8113
|
/**
|
|
8571
8114
|
* @component TodoListTable
|
|
@@ -8597,7 +8140,7 @@ interface TodoListTableProps {
|
|
|
8597
8140
|
onToggle?: (id: string) => void;
|
|
8598
8141
|
className?: string;
|
|
8599
8142
|
}
|
|
8600
|
-
declare function TodoListTable({ items, onToggle, className }: TodoListTableProps): React
|
|
8143
|
+
declare function TodoListTable({ items, onToggle, className }: TodoListTableProps): React.JSX.Element;
|
|
8601
8144
|
|
|
8602
8145
|
/**
|
|
8603
8146
|
* @component TreeCrudPage
|
|
@@ -8647,10 +8190,10 @@ interface TreeCrudPageProps {
|
|
|
8647
8190
|
/** 搜索关键字变化回调 */
|
|
8648
8191
|
onQueryChange?: (value: string) => void;
|
|
8649
8192
|
/** 由调用方按选中节点渲染的 CRUD 详情 */
|
|
8650
|
-
children?: React
|
|
8193
|
+
children?: React.ReactNode;
|
|
8651
8194
|
className?: string;
|
|
8652
8195
|
}
|
|
8653
|
-
declare function TreeCrudPage({ tree, selected, defaultSelected, onSelect, onCreate, onRefresh, query, onQueryChange, children, className, }: TreeCrudPageProps): React
|
|
8196
|
+
declare function TreeCrudPage({ tree, selected, defaultSelected, onSelect, onCreate, onRefresh, query, onQueryChange, children, className, }: TreeCrudPageProps): React.JSX.Element;
|
|
8654
8197
|
|
|
8655
8198
|
/**
|
|
8656
8199
|
* @component TreemapChart
|
|
@@ -8674,7 +8217,7 @@ interface TreemapChartProps {
|
|
|
8674
8217
|
}>;
|
|
8675
8218
|
className?: string;
|
|
8676
8219
|
}
|
|
8677
|
-
declare function TreemapChart({ data, className, }: TreemapChartProps): React
|
|
8220
|
+
declare function TreemapChart({ data, className, }: TreemapChartProps): React.JSX.Element;
|
|
8678
8221
|
|
|
8679
8222
|
/**
|
|
8680
8223
|
* @component WarehousePicker
|
|
@@ -8710,7 +8253,7 @@ interface WarehousePickerProps {
|
|
|
8710
8253
|
clearable?: boolean;
|
|
8711
8254
|
className?: string;
|
|
8712
8255
|
}
|
|
8713
|
-
declare function WarehousePicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: WarehousePickerProps): React
|
|
8256
|
+
declare function WarehousePicker({ value, onChange, options, placeholder, searchPlaceholder, emptyText, disabled, clearable, className, }: WarehousePickerProps): React.JSX.Element;
|
|
8714
8257
|
|
|
8715
8258
|
/**
|
|
8716
8259
|
* @component WaterfallChart
|
|
@@ -8736,7 +8279,7 @@ interface WaterfallChartProps {
|
|
|
8736
8279
|
height?: number;
|
|
8737
8280
|
className?: string;
|
|
8738
8281
|
}
|
|
8739
|
-
declare function WaterfallChart({ data, height, className, }: WaterfallChartProps): React
|
|
8282
|
+
declare function WaterfallChart({ data, height, className, }: WaterfallChartProps): React.JSX.Element;
|
|
8740
8283
|
|
|
8741
8284
|
/**
|
|
8742
8285
|
* @component GanttChartPro
|
|
@@ -8807,7 +8350,7 @@ interface GanttChartProProps {
|
|
|
8807
8350
|
/** Extra class name */
|
|
8808
8351
|
className?: string;
|
|
8809
8352
|
}
|
|
8810
|
-
declare function GanttChartPro({ tasks, dependencies, zoom, showToday, showWeekSeparators, showTaskList, rowHeight, onTaskClick, className, }: GanttChartProProps): React
|
|
8353
|
+
declare function GanttChartPro({ tasks, dependencies, zoom, showToday, showWeekSeparators, showTaskList, rowHeight, onTaskClick, className, }: GanttChartProProps): React.JSX.Element;
|
|
8811
8354
|
|
|
8812
8355
|
/**
|
|
8813
8356
|
* @component JournalEntryEditor
|
|
@@ -8861,7 +8404,7 @@ interface JournalEntryEditorProps {
|
|
|
8861
8404
|
/** Extra class name */
|
|
8862
8405
|
className?: string;
|
|
8863
8406
|
}
|
|
8864
|
-
declare function JournalEntryEditor({ lines, onChange, accounts, readOnly, currencySymbol, voucherNo, showBalanceStatus, className, }: JournalEntryEditorProps): React
|
|
8407
|
+
declare function JournalEntryEditor({ lines, onChange, accounts, readOnly, currencySymbol, voucherNo, showBalanceStatus, className, }: JournalEntryEditorProps): React.JSX.Element;
|
|
8865
8408
|
|
|
8866
8409
|
/**
|
|
8867
8410
|
* @component BOMTreeEditor
|
|
@@ -8914,7 +8457,7 @@ interface BOMTreeEditorProps {
|
|
|
8914
8457
|
/** Extra class name */
|
|
8915
8458
|
className?: string;
|
|
8916
8459
|
}
|
|
8917
|
-
declare function BOMTreeEditor({ items, onChange, readOnly, showCostRollup, currencySymbol, className, }: BOMTreeEditorProps): React
|
|
8460
|
+
declare function BOMTreeEditor({ items, onChange, readOnly, showCostRollup, currencySymbol, className, }: BOMTreeEditorProps): React.JSX.Element;
|
|
8918
8461
|
|
|
8919
8462
|
/**
|
|
8920
8463
|
* @component SupplierScorecard
|
|
@@ -8972,7 +8515,7 @@ interface SupplierScorecardProps {
|
|
|
8972
8515
|
/** Extra class name */
|
|
8973
8516
|
className?: string;
|
|
8974
8517
|
}
|
|
8975
|
-
declare function SupplierScorecard({ supplier, showWeightedTotal, showTrends, showBars, className, }: SupplierScorecardProps): React
|
|
8518
|
+
declare function SupplierScorecard({ supplier, showWeightedTotal, showTrends, showBars, className, }: SupplierScorecardProps): React.JSX.Element;
|
|
8976
8519
|
|
|
8977
8520
|
/**
|
|
8978
8521
|
* @component MultiCurrencyInput
|
|
@@ -9023,7 +8566,7 @@ interface MultiCurrencyInputProps {
|
|
|
9023
8566
|
/** Extra class name */
|
|
9024
8567
|
className?: string;
|
|
9025
8568
|
}
|
|
9026
|
-
declare function MultiCurrencyInput({ value, onChange, currencies, currency, onCurrencyChange, baseCurrency, rate, onRateChange, rates, readOnly, allowRateOverride, showConversion, placeholder, className, }: MultiCurrencyInputProps): React
|
|
8569
|
+
declare function MultiCurrencyInput({ value, onChange, currencies, currency, onCurrencyChange, baseCurrency, rate, onRateChange, rates, readOnly, allowRateOverride, showConversion, placeholder, className, }: MultiCurrencyInputProps): React.JSX.Element;
|
|
9027
8570
|
|
|
9028
8571
|
/**
|
|
9029
8572
|
* @component ImportMappingWizard
|
|
@@ -9090,7 +8633,7 @@ interface ImportMappingWizardProps {
|
|
|
9090
8633
|
/** Extra class name */
|
|
9091
8634
|
className?: string;
|
|
9092
8635
|
}
|
|
9093
|
-
declare function ImportMappingWizard({ sourceColumns, targetFields, mappings: controlledMappings, onMappingsChange, showSamples, onBack, onContinue, className, }: ImportMappingWizardProps): React
|
|
8636
|
+
declare function ImportMappingWizard({ sourceColumns, targetFields, mappings: controlledMappings, onMappingsChange, showSamples, onBack, onContinue, className, }: ImportMappingWizardProps): React.JSX.Element;
|
|
9094
8637
|
|
|
9095
8638
|
/**
|
|
9096
8639
|
* @component AuditTrailDiff
|
|
@@ -9147,7 +8690,7 @@ interface AuditTrailDiffProps {
|
|
|
9147
8690
|
/** Extra class name */
|
|
9148
8691
|
className?: string;
|
|
9149
8692
|
}
|
|
9150
|
-
declare function AuditTrailDiff({ entries, showFilter, showEntity, showUser, showTimestamp, showReason, className, }: AuditTrailDiffProps): React
|
|
8693
|
+
declare function AuditTrailDiff({ entries, showFilter, showEntity, showUser, showTimestamp, showReason, className, }: AuditTrailDiffProps): React.JSX.Element;
|
|
9151
8694
|
|
|
9152
8695
|
/**
|
|
9153
8696
|
* @component NotificationRuleBuilder
|
|
@@ -9235,7 +8778,7 @@ interface NotificationRuleBuilderProps {
|
|
|
9235
8778
|
/** Extra class name */
|
|
9236
8779
|
className?: string;
|
|
9237
8780
|
}
|
|
9238
|
-
declare function NotificationRuleBuilder({ rule, onChange, events, fields, recipientOptions, templates, readOnly, className, }: NotificationRuleBuilderProps): React
|
|
8781
|
+
declare function NotificationRuleBuilder({ rule, onChange, events, fields, recipientOptions, templates, readOnly, className, }: NotificationRuleBuilderProps): React.JSX.Element;
|
|
9239
8782
|
|
|
9240
8783
|
/**
|
|
9241
8784
|
* @component LeaveRequestForm
|
|
@@ -9291,7 +8834,7 @@ interface LeaveRequestFormProps {
|
|
|
9291
8834
|
/** Extra class name */
|
|
9292
8835
|
className?: string;
|
|
9293
8836
|
}
|
|
9294
|
-
declare function LeaveRequestForm({ leaveType, onLeaveTypeChange, startDate, endDate, onDateChange, balances, approvers, reason, onReasonChange, onSubmit, onCancel, readOnly, className, }: LeaveRequestFormProps): React
|
|
8837
|
+
declare function LeaveRequestForm({ leaveType, onLeaveTypeChange, startDate, endDate, onDateChange, balances, approvers, reason, onReasonChange, onSubmit, onCancel, readOnly, className, }: LeaveRequestFormProps): React.JSX.Element;
|
|
9295
8838
|
|
|
9296
8839
|
/**
|
|
9297
8840
|
* @component MeetingRoomBooking
|
|
@@ -9335,7 +8878,7 @@ interface MeetingRoomBookingProps {
|
|
|
9335
8878
|
readOnly?: boolean;
|
|
9336
8879
|
className?: string;
|
|
9337
8880
|
}
|
|
9338
|
-
declare function MeetingRoomBooking({ rooms, existingBookings, selectedRoom, onRoomChange, date, onDateChange, startTime, endTime, onTimeChange, title, onTitleChange, attendeeCount, onAttendeeCountChange, onBook, readOnly, className, }: MeetingRoomBookingProps): React
|
|
8881
|
+
declare function MeetingRoomBooking({ rooms, existingBookings, selectedRoom, onRoomChange, date, onDateChange, startTime, endTime, onTimeChange, title, onTitleChange, attendeeCount, onAttendeeCountChange, onBook, readOnly, className, }: MeetingRoomBookingProps): React.JSX.Element;
|
|
9339
8882
|
|
|
9340
8883
|
/**
|
|
9341
8884
|
* @component AttendanceCalendar
|
|
@@ -9363,7 +8906,7 @@ interface AttendanceCalendarProps {
|
|
|
9363
8906
|
onDayClick?: (record: AttendanceRecord) => void;
|
|
9364
8907
|
className?: string;
|
|
9365
8908
|
}
|
|
9366
|
-
declare function AttendanceCalendar({ year: propYear, month: propMonth, records, onMonthChange, onDayClick, className, }: AttendanceCalendarProps): React
|
|
8909
|
+
declare function AttendanceCalendar({ year: propYear, month: propMonth, records, onMonthChange, onDayClick, className, }: AttendanceCalendarProps): React.JSX.Element;
|
|
9367
8910
|
|
|
9368
8911
|
/**
|
|
9369
8912
|
* @component PurchaseOrderEditor
|
|
@@ -9407,7 +8950,7 @@ interface PurchaseOrderEditorProps {
|
|
|
9407
8950
|
onSubmit?: () => void;
|
|
9408
8951
|
className?: string;
|
|
9409
8952
|
}
|
|
9410
|
-
declare function PurchaseOrderEditor({ poNumber, vendor, onVendorChange, orderDate, expectedDelivery, paymentTerms, onHeaderChange, lineItems, onLineItemsChange, approvalSteps, status, currencySymbol, readOnly, onSubmit, className, }: PurchaseOrderEditorProps): React
|
|
8953
|
+
declare function PurchaseOrderEditor({ poNumber, vendor, onVendorChange, orderDate, expectedDelivery, paymentTerms, onHeaderChange, lineItems, onLineItemsChange, approvalSteps, status, currencySymbol, readOnly, onSubmit, className, }: PurchaseOrderEditorProps): React.JSX.Element;
|
|
9411
8954
|
|
|
9412
8955
|
/**
|
|
9413
8956
|
* @component StockTransferDialog
|
|
@@ -9444,7 +8987,7 @@ interface StockTransferDialogProps {
|
|
|
9444
8987
|
readOnly?: boolean;
|
|
9445
8988
|
className?: string;
|
|
9446
8989
|
}
|
|
9447
|
-
declare function StockTransferDialog({ transferNo, fromWarehouse, toWarehouse, onFromWarehouseChange, onToWarehouseChange, warehouses, lines, onLinesChange, transferType, onTransferTypeChange, remark, onRemarkChange, onSubmit, onCancel, readOnly, className, }: StockTransferDialogProps): React
|
|
8990
|
+
declare function StockTransferDialog({ transferNo, fromWarehouse, toWarehouse, onFromWarehouseChange, onToWarehouseChange, warehouses, lines, onLinesChange, transferType, onTransferTypeChange, remark, onRemarkChange, onSubmit, onCancel, readOnly, className, }: StockTransferDialogProps): React.JSX.Element;
|
|
9448
8991
|
|
|
9449
8992
|
/**
|
|
9450
8993
|
* @component ArApAgingTable
|
|
@@ -9496,7 +9039,7 @@ interface ArApAgingTableProps {
|
|
|
9496
9039
|
/** Extra class name. */
|
|
9497
9040
|
className?: string;
|
|
9498
9041
|
}
|
|
9499
|
-
declare function ArApAgingTable({ entries, asOfDate, type, buckets, currencySymbol, onRowClick, className, }: ArApAgingTableProps): React
|
|
9042
|
+
declare function ArApAgingTable({ entries, asOfDate, type, buckets, currencySymbol, onRowClick, className, }: ArApAgingTableProps): React.JSX.Element;
|
|
9500
9043
|
|
|
9501
9044
|
/**
|
|
9502
9045
|
* @component LeadPipelineBoard
|
|
@@ -9554,7 +9097,7 @@ interface LeadPipelineBoardProps {
|
|
|
9554
9097
|
/** Extra class name. */
|
|
9555
9098
|
className?: string;
|
|
9556
9099
|
}
|
|
9557
|
-
declare function LeadPipelineBoard({ stages, deals, onDealMove, onDealClick, currencySymbol, readOnly, className, }: LeadPipelineBoardProps): React
|
|
9100
|
+
declare function LeadPipelineBoard({ stages, deals, onDealMove, onDealClick, currencySymbol, readOnly, className, }: LeadPipelineBoardProps): React.JSX.Element;
|
|
9558
9101
|
|
|
9559
9102
|
/**
|
|
9560
9103
|
* @component QuotationLineEditor
|
|
@@ -9603,7 +9146,7 @@ interface QuotationLineEditorProps {
|
|
|
9603
9146
|
/** Extra class name. */
|
|
9604
9147
|
className?: string;
|
|
9605
9148
|
}
|
|
9606
|
-
declare function QuotationLineEditor({ quoteNo, lines, onLinesChange, currencySymbol, onSubmit, onCancel, readOnly, className, }: QuotationLineEditorProps): React
|
|
9149
|
+
declare function QuotationLineEditor({ quoteNo, lines, onLinesChange, currencySymbol, onSubmit, onCancel, readOnly, className, }: QuotationLineEditorProps): React.JSX.Element;
|
|
9607
9150
|
|
|
9608
9151
|
/**
|
|
9609
9152
|
* @component Customer360Card
|
|
@@ -9666,7 +9209,7 @@ interface Customer360CardProps {
|
|
|
9666
9209
|
/** Extra class name. */
|
|
9667
9210
|
className?: string;
|
|
9668
9211
|
}
|
|
9669
|
-
declare function Customer360Card({ name, logo, industry, tier, healthScore, metrics, contacts, activities, lifetimeValue, currencySymbol, tags, className, }: Customer360CardProps): React
|
|
9212
|
+
declare function Customer360Card({ name, logo, industry, tier, healthScore, metrics, contacts, activities, lifetimeValue, currencySymbol, tags, className, }: Customer360CardProps): React.JSX.Element;
|
|
9670
9213
|
|
|
9671
9214
|
/**
|
|
9672
9215
|
* @component SPCControlChart
|
|
@@ -9709,7 +9252,7 @@ interface SPCControlChartProps {
|
|
|
9709
9252
|
/** Extra class name. */
|
|
9710
9253
|
className?: string;
|
|
9711
9254
|
}
|
|
9712
|
-
declare function SPCControlChart({ samples, title, centerLine, ucl, lcl, sigma, showWarningLimits, yLabel, unit, height, className, }: SPCControlChartProps): React
|
|
9255
|
+
declare function SPCControlChart({ samples, title, centerLine, ucl, lcl, sigma, showWarningLimits, yLabel, unit, height, className, }: SPCControlChartProps): React.JSX.Element;
|
|
9713
9256
|
|
|
9714
9257
|
/**
|
|
9715
9258
|
* @component OeeDashboard
|
|
@@ -9765,7 +9308,7 @@ interface OeeDashboardProps {
|
|
|
9765
9308
|
/** Extra class name. */
|
|
9766
9309
|
className?: string;
|
|
9767
9310
|
}
|
|
9768
|
-
declare function OeeDashboard({ equipment, losses, title, targetOee, className, }: OeeDashboardProps): React
|
|
9311
|
+
declare function OeeDashboard({ equipment, losses, title, targetOee, className, }: OeeDashboardProps): React.JSX.Element;
|
|
9769
9312
|
|
|
9770
9313
|
/**
|
|
9771
9314
|
* @component BatchGenealogyTree
|
|
@@ -9808,7 +9351,7 @@ interface BatchGenealogyTreeProps {
|
|
|
9808
9351
|
/** Extra class name. */
|
|
9809
9352
|
className?: string;
|
|
9810
9353
|
}
|
|
9811
|
-
declare function BatchGenealogyTree({ root, direction, onBatchClick, className, }: BatchGenealogyTreeProps): React
|
|
9354
|
+
declare function BatchGenealogyTree({ root, direction, onBatchClick, className, }: BatchGenealogyTreeProps): React.JSX.Element;
|
|
9812
9355
|
|
|
9813
9356
|
/**
|
|
9814
9357
|
* @component WorkOrderCard
|
|
@@ -9875,7 +9418,7 @@ interface WorkOrderCardProps {
|
|
|
9875
9418
|
/** Extra class name. */
|
|
9876
9419
|
className?: string;
|
|
9877
9420
|
}
|
|
9878
|
-
declare function WorkOrderCard({ orderNo, product, productCode, status, plannedStart, plannedEnd, plannedQty, completedQty, unit, priority, workCenter, operations, supervisor, onClick, className, }: WorkOrderCardProps): React
|
|
9421
|
+
declare function WorkOrderCard({ orderNo, product, productCode, status, plannedStart, plannedEnd, plannedQty, completedQty, unit, priority, workCenter, operations, supervisor, onClick, className, }: WorkOrderCardProps): React.JSX.Element;
|
|
9879
9422
|
|
|
9880
9423
|
/**
|
|
9881
9424
|
* @component SealStampRegistry
|
|
@@ -9943,7 +9486,7 @@ interface SealStampRegistryProps {
|
|
|
9943
9486
|
/** Extra class name. */
|
|
9944
9487
|
className?: string;
|
|
9945
9488
|
}
|
|
9946
|
-
declare function SealStampRegistry({ seals, usageLogs, onSealClick, onApplyUsage, readOnly, className, }: SealStampRegistryProps): React
|
|
9489
|
+
declare function SealStampRegistry({ seals, usageLogs, onSealClick, onApplyUsage, readOnly, className, }: SealStampRegistryProps): React.JSX.Element;
|
|
9947
9490
|
|
|
9948
9491
|
/**
|
|
9949
9492
|
* @component VehicleBooking
|
|
@@ -10007,7 +9550,7 @@ interface VehicleBookingProps {
|
|
|
10007
9550
|
/** Extra class name. */
|
|
10008
9551
|
className?: string;
|
|
10009
9552
|
}
|
|
10010
|
-
declare function VehicleBooking({ vehicles, bookings, onSubmit, onCancel, readOnly, className, }: VehicleBookingProps): React
|
|
9553
|
+
declare function VehicleBooking({ vehicles, bookings, onSubmit, onCancel, readOnly, className, }: VehicleBookingProps): React.JSX.Element;
|
|
10011
9554
|
|
|
10012
9555
|
/**
|
|
10013
9556
|
* @component CommissionCalculator
|
|
@@ -10059,7 +9602,7 @@ interface CommissionCalculatorProps {
|
|
|
10059
9602
|
/** Extra class name. */
|
|
10060
9603
|
className?: string;
|
|
10061
9604
|
}
|
|
10062
|
-
declare function CommissionCalculator({ tiers, deals, quota, quotaBonusRate, currencySymbol, onDealsChange, className, }: CommissionCalculatorProps): React
|
|
9605
|
+
declare function CommissionCalculator({ tiers, deals, quota, quotaBonusRate, currencySymbol, onDealsChange, className, }: CommissionCalculatorProps): React.JSX.Element;
|
|
10063
9606
|
|
|
10064
9607
|
/**
|
|
10065
9608
|
* @component TerritoryMap
|
|
@@ -10107,7 +9650,7 @@ interface TerritoryMapProps {
|
|
|
10107
9650
|
/** Extra class name. */
|
|
10108
9651
|
className?: string;
|
|
10109
9652
|
}
|
|
10110
|
-
declare function TerritoryMap({ regions, title, currencySymbol, gridCols, onRegionClick, className, }: TerritoryMapProps): React
|
|
9653
|
+
declare function TerritoryMap({ regions, title, currencySymbol, gridCols, onRegionClick, className, }: TerritoryMapProps): React.JSX.Element;
|
|
10111
9654
|
|
|
10112
9655
|
/**
|
|
10113
9656
|
* @component LabelDesigner
|
|
@@ -10164,7 +9707,7 @@ interface LabelDesignerProps {
|
|
|
10164
9707
|
/** Extra class name. */
|
|
10165
9708
|
className?: string;
|
|
10166
9709
|
}
|
|
10167
|
-
declare function LabelDesigner({ fields, onFieldsChange, labelSize, sizePresets, onSizeChange, onPrint, readOnly, className, }: LabelDesignerProps): React
|
|
9710
|
+
declare function LabelDesigner({ fields, onFieldsChange, labelSize, sizePresets, onSizeChange, onPrint, readOnly, className, }: LabelDesignerProps): React.JSX.Element;
|
|
10168
9711
|
|
|
10169
9712
|
/**
|
|
10170
9713
|
* @component IotSensorGrid
|
|
@@ -10215,7 +9758,7 @@ interface IotSensorGridProps {
|
|
|
10215
9758
|
/** Extra class name. */
|
|
10216
9759
|
className?: string;
|
|
10217
9760
|
}
|
|
10218
|
-
declare function IotSensorGrid({ sensors, title, refreshInterval, onSensorClick, className, }: IotSensorGridProps): React
|
|
9761
|
+
declare function IotSensorGrid({ sensors, title, refreshInterval, onSensorClick, className, }: IotSensorGridProps): React.JSX.Element;
|
|
10219
9762
|
|
|
10220
9763
|
/**
|
|
10221
9764
|
* @component ComplianceChecklist
|
|
@@ -10264,7 +9807,7 @@ interface ComplianceChecklistProps {
|
|
|
10264
9807
|
/** Extra class name. */
|
|
10265
9808
|
className?: string;
|
|
10266
9809
|
}
|
|
10267
|
-
declare function ComplianceChecklist({ items, title, onItemClick, onStatusChange, readOnly, className, }: ComplianceChecklistProps): React
|
|
9810
|
+
declare function ComplianceChecklist({ items, title, onItemClick, onStatusChange, readOnly, className, }: ComplianceChecklistProps): React.JSX.Element;
|
|
10268
9811
|
|
|
10269
9812
|
/**
|
|
10270
9813
|
* @component I18nFormField
|
|
@@ -10306,6 +9849,539 @@ interface I18nFormFieldProps {
|
|
|
10306
9849
|
/** Extra class name. */
|
|
10307
9850
|
className?: string;
|
|
10308
9851
|
}
|
|
10309
|
-
declare function I18nFormField({ fieldKey, label, translations, onTranslationChange, multiline, maxLength, readOnly, className, }: I18nFormFieldProps): React
|
|
9852
|
+
declare function I18nFormField({ fieldKey, label, translations, onTranslationChange, multiline, maxLength, readOnly, className, }: I18nFormFieldProps): React.JSX.Element;
|
|
9853
|
+
|
|
9854
|
+
type ColumnFixed = "left" | "right" | undefined;
|
|
9855
|
+
type Density = "compact" | "default" | "middle";
|
|
9856
|
+
interface ProColumn<T = Record<string, unknown>> {
|
|
9857
|
+
/** Unique column key / 唯一列键 */
|
|
9858
|
+
key: string;
|
|
9859
|
+
/** Column header title / 列标题 */
|
|
9860
|
+
title: React.ReactNode;
|
|
9861
|
+
/** Data field name in the row object / 行对象中的数据字段名 */
|
|
9862
|
+
dataIndex?: string;
|
|
9863
|
+
/** Column width in pixels / 列宽(像素) */
|
|
9864
|
+
width?: number;
|
|
9865
|
+
/** Fix column to left or right / 固定列到左侧或右侧 */
|
|
9866
|
+
fixed?: ColumnFixed;
|
|
9867
|
+
/** Whether the column is visible / 列是否可见 */
|
|
9868
|
+
visible?: boolean;
|
|
9869
|
+
/** Whether the column is sortable / 列是否可排序 */
|
|
9870
|
+
sortable?: boolean;
|
|
9871
|
+
/** Whether the column is resizable / 列是否可调整宽度 */
|
|
9872
|
+
resizable?: boolean;
|
|
9873
|
+
/** Custom cell renderer / 自定义单元格渲染 */
|
|
9874
|
+
render?: (value: unknown, row: T, index: number) => React.ReactNode;
|
|
9875
|
+
}
|
|
9876
|
+
interface RowSelection {
|
|
9877
|
+
/** Selected row keys / 选中行的 key 数组 */
|
|
9878
|
+
selectedKeys?: string[];
|
|
9879
|
+
/** Callback when selection changes / 选中变化时的回调 */
|
|
9880
|
+
onChange?: (keys: string[]) => void;
|
|
9881
|
+
/** Whether to show the selection checkbox column / 是否显示选择复选框列 */
|
|
9882
|
+
showCheckbox?: boolean;
|
|
9883
|
+
}
|
|
9884
|
+
interface Pagination {
|
|
9885
|
+
/** Current page number (0-based) / 当前页码(从 0 开始) */
|
|
9886
|
+
current?: number;
|
|
9887
|
+
/** Page size / 每页条数 */
|
|
9888
|
+
pageSize?: number;
|
|
9889
|
+
/** Total item count / 总条数 */
|
|
9890
|
+
total?: number;
|
|
9891
|
+
/** Callback when page changes / 页码变化时的回调 */
|
|
9892
|
+
onChange?: (page: number, pageSize: number) => void;
|
|
9893
|
+
}
|
|
9894
|
+
interface SavedView {
|
|
9895
|
+
/** View name / 视图名称 */
|
|
9896
|
+
name: string;
|
|
9897
|
+
/** Column configuration / 列配置 */
|
|
9898
|
+
columns: ProColumn[];
|
|
9899
|
+
/** Density setting / 密度设置 */
|
|
9900
|
+
density: Density;
|
|
9901
|
+
}
|
|
9902
|
+
interface ProTableProps<T> extends Omit<React.ComponentProps<"div">, "onChange"> {
|
|
9903
|
+
/** Column definitions / 列定义 */
|
|
9904
|
+
columns: ProColumn<T>[];
|
|
9905
|
+
/** Data array / 数据数组 */
|
|
9906
|
+
data: T[];
|
|
9907
|
+
/** Loading state / 加载状态 */
|
|
9908
|
+
loading?: boolean;
|
|
9909
|
+
/** Row density / 行密度 */
|
|
9910
|
+
density?: Density;
|
|
9911
|
+
/** Enable column settings panel / 启用列设置面板 */
|
|
9912
|
+
columnSettings?: boolean;
|
|
9913
|
+
/** Row selection configuration / 行选择配置 */
|
|
9914
|
+
rowSelection?: RowSelection;
|
|
9915
|
+
/** Pagination configuration / 分页配置 */
|
|
9916
|
+
pagination?: Pagination;
|
|
9917
|
+
/** Callback when table state changes / 表格状态变化时的回调 */
|
|
9918
|
+
onChange?: (params: {
|
|
9919
|
+
page: number;
|
|
9920
|
+
pageSize: number;
|
|
9921
|
+
columns: ProColumn<T>[];
|
|
9922
|
+
density: Density;
|
|
9923
|
+
}) => void;
|
|
9924
|
+
/** Callback to save the current view / 保存当前视图的回调 */
|
|
9925
|
+
onSaveView?: (view: SavedView) => void;
|
|
9926
|
+
/** Saved view configurations / 已保存的视图配置 */
|
|
9927
|
+
savedViews?: SavedView[];
|
|
9928
|
+
/** Row key field name / 行 key 字段名 */
|
|
9929
|
+
rowKey?: string;
|
|
9930
|
+
}
|
|
9931
|
+
/**
|
|
9932
|
+
* @component ProTable
|
|
9933
|
+
* @category business/data
|
|
9934
|
+
* @since 0.2.0
|
|
9935
|
+
* @description Enterprise-grade data table with column settings (show/hide/reorder), density switcher, column resize, fixed columns, row selection, and saved views / 企业级数据表格,支持列设置(显示/隐藏/排序)、密度切换、列宽调整、固定列、行选择和保存视图
|
|
9936
|
+
* @keywords table, pro, enterprise, column-settings, density, resize, fixed, selection, views
|
|
9937
|
+
* @example
|
|
9938
|
+
* <ProTable
|
|
9939
|
+
* columns={[{ key: "name", title: "Name", dataIndex: "name" }]}
|
|
9940
|
+
* data={[{ name: "Alice" }]}
|
|
9941
|
+
* density="default"
|
|
9942
|
+
* columnSettings
|
|
9943
|
+
* />
|
|
9944
|
+
*/
|
|
9945
|
+
declare function ProTable<T extends Record<string, unknown>>({ columns, data, loading, density, columnSettings, rowSelection, pagination, onChange, onSaveView, savedViews, rowKey, className, ...props }: ProTableProps<T>): React.JSX.Element;
|
|
9946
|
+
|
|
9947
|
+
type LogLevel = "INFO" | "WARN" | "ERROR" | "DEBUG" | "TRACE";
|
|
9948
|
+
interface LogEntry {
|
|
9949
|
+
/** ISO timestamp or formatted time string / 时间戳或格式化时间字符串 */
|
|
9950
|
+
timestamp?: string;
|
|
9951
|
+
/** Log severity level / 日志级别 */
|
|
9952
|
+
level?: LogLevel;
|
|
9953
|
+
/** Log message content / 日志消息内容 */
|
|
9954
|
+
message: string;
|
|
9955
|
+
/** Source of the log entry (module/service) / 日志来源(模块/服务) */
|
|
9956
|
+
source?: string;
|
|
9957
|
+
}
|
|
9958
|
+
interface LogViewerProps extends React.ComponentProps<"div"> {
|
|
9959
|
+
/** Array of log entries / 日志条目数组 */
|
|
9960
|
+
logs: LogEntry[];
|
|
9961
|
+
/** Container height in pixels / 容器高度(像素) */
|
|
9962
|
+
height?: number;
|
|
9963
|
+
/** Auto-scroll to bottom on new logs / 新日志到达时自动滚动到底部 */
|
|
9964
|
+
autoScroll?: boolean;
|
|
9965
|
+
/** Show timestamp column / 显示时间戳列 */
|
|
9966
|
+
showTimestamp?: boolean;
|
|
9967
|
+
/** Show level column / 显示级别列 */
|
|
9968
|
+
showLevel?: boolean;
|
|
9969
|
+
/** Text filter for log messages / 日志消息的文本过滤器 */
|
|
9970
|
+
filter?: string;
|
|
9971
|
+
/** Array of levels to include; empty/null means all / 要包含的级别数组;空表示全部 */
|
|
9972
|
+
levelFilter?: LogLevel[];
|
|
9973
|
+
/** Callback when user scrolls to bottom / 用户滚动到底部时的回调 */
|
|
9974
|
+
onReachBottom?: () => void;
|
|
9975
|
+
/** Loading state indicator / 加载状态指示器 */
|
|
9976
|
+
loading?: boolean;
|
|
9977
|
+
}
|
|
9978
|
+
/**
|
|
9979
|
+
* @component LogViewer
|
|
9980
|
+
* @category business/ops
|
|
9981
|
+
* @since 0.2.0
|
|
9982
|
+
* @description Streaming log viewer with monospace dark terminal styling, level coloring, auto-scroll, and text/level filtering / 流式日志查看器,等宽暗色终端样式,级别着色,自动滚动和文本/级别过滤
|
|
9983
|
+
* @keywords log, viewer, terminal, streaming, ops, deploy, console
|
|
9984
|
+
* @example
|
|
9985
|
+
* <LogViewer
|
|
9986
|
+
* logs={[{ timestamp: "2024-01-01T00:00:00Z", level: "INFO", message: "Server started" }]}
|
|
9987
|
+
* height={400}
|
|
9988
|
+
* autoScroll
|
|
9989
|
+
* />
|
|
9990
|
+
*/
|
|
9991
|
+
declare function LogViewer({ logs, height, autoScroll, showTimestamp, showLevel, filter, levelFilter, onReachBottom, loading, className, ...props }: LogViewerProps): React.JSX.Element;
|
|
9992
|
+
|
|
9993
|
+
interface BarcodeScannerProps extends Omit<React.ComponentProps<"div">, "onKeyDown"> {
|
|
9994
|
+
/** Callback fired when a barcode is scanned / 扫码完成时的回调 */
|
|
9995
|
+
onScan: (barcode: string) => void;
|
|
9996
|
+
/** Whether the scanner is actively listening / 扫描器是否正在监听 */
|
|
9997
|
+
active?: boolean;
|
|
9998
|
+
/** Placeholder text for the input / 输入框占位文本 */
|
|
9999
|
+
placeholder?: string;
|
|
10000
|
+
/** Auto-focus the input on mount / 挂载时自动聚焦输入框 */
|
|
10001
|
+
autoFocus?: boolean;
|
|
10002
|
+
/** Keep scanning after each scan (clear and continue) / 每次扫描后继续扫描 */
|
|
10003
|
+
continuous?: boolean;
|
|
10004
|
+
/** Play a beep sound on successful scan / 扫描成功时播放提示音 */
|
|
10005
|
+
beepOnScan?: boolean;
|
|
10006
|
+
}
|
|
10007
|
+
/**
|
|
10008
|
+
* @component BarcodeScanner
|
|
10009
|
+
* @category business/input
|
|
10010
|
+
* @since 0.2.0
|
|
10011
|
+
* @description Barcode scanner input that detects rapid keystrokes from hardware scanners (ending with Enter within 50ms threshold) / 条码扫描输入组件,检测硬件扫描器的快速按键输入(在 50ms 阈值内以回车结束)
|
|
10012
|
+
* @keywords barcode, scanner, hardware, input, scan, pos
|
|
10013
|
+
* @example
|
|
10014
|
+
* <BarcodeScanner onScan={(code) => console.log(code)} continuous />
|
|
10015
|
+
*/
|
|
10016
|
+
declare function BarcodeScanner({ onScan, active, placeholder, autoFocus, continuous, beepOnScan, className, ...props }: BarcodeScannerProps): React.JSX.Element;
|
|
10017
|
+
|
|
10018
|
+
interface CropResult {
|
|
10019
|
+
blob: Blob;
|
|
10020
|
+
dataUrl: string;
|
|
10021
|
+
}
|
|
10022
|
+
interface ImageCropperProps extends React.ComponentProps<"div"> {
|
|
10023
|
+
/** Whether the cropper dialog is open / 裁剪对话框是否打开 */
|
|
10024
|
+
open: boolean;
|
|
10025
|
+
/** Callback to control dialog open state / 控制对话框打开状态的回调 */
|
|
10026
|
+
onOpenChange: (open: boolean) => void;
|
|
10027
|
+
/** Image source URL or File object / 图片源 URL 或 File 对象 */
|
|
10028
|
+
image: string | File;
|
|
10029
|
+
/** Callback fired when cropping is complete / 裁剪完成时的回调 */
|
|
10030
|
+
onCrop: (result: CropResult) => void;
|
|
10031
|
+
/** Aspect ratio of the crop region / 裁剪区域的宽高比 */
|
|
10032
|
+
aspect?: number;
|
|
10033
|
+
/** Shape of the crop region / 裁剪区域的形状 */
|
|
10034
|
+
shape?: "circle" | "rect";
|
|
10035
|
+
/** Dialog title / 对话框标题 */
|
|
10036
|
+
title?: string;
|
|
10037
|
+
/** Minimum crop width in pixels / 最小裁剪宽度(像素) */
|
|
10038
|
+
minWidth?: number;
|
|
10039
|
+
/** Maximum crop width in pixels / 最大裁剪宽度(像素) */
|
|
10040
|
+
maxWidth?: number;
|
|
10041
|
+
/** Minimum crop height in pixels / 最小裁剪高度(像素) */
|
|
10042
|
+
minHeight?: number;
|
|
10043
|
+
/** Maximum crop height in pixels / 最大裁剪高度(像素) */
|
|
10044
|
+
maxHeight?: number;
|
|
10045
|
+
}
|
|
10046
|
+
/**
|
|
10047
|
+
* @component ImageCropper
|
|
10048
|
+
* @category business/media
|
|
10049
|
+
* @since 0.2.0
|
|
10050
|
+
* @description Canvas-based image cropping dialog with draggable and resizable crop region, supporting circle and rect shapes / 基于 canvas 的图片裁剪对话框,裁剪区域可拖拽和缩放,支持圆形和矩形
|
|
10051
|
+
* @keywords image, crop, avatar, photo, upload, canvas, dialog
|
|
10052
|
+
* @example
|
|
10053
|
+
* <ImageCropper
|
|
10054
|
+
* open={open}
|
|
10055
|
+
* onOpenChange={setOpen}
|
|
10056
|
+
* image="/photo.jpg"
|
|
10057
|
+
* aspect={1}
|
|
10058
|
+
* shape="circle"
|
|
10059
|
+
* onCrop={(result) => uploadImage(result.blob)}
|
|
10060
|
+
* />
|
|
10061
|
+
*/
|
|
10062
|
+
declare function ImageCropper({ open, onOpenChange, image, onCrop, aspect, shape, title, minWidth, maxWidth, minHeight, maxHeight, className, ...props }: ImageCropperProps): React.JSX.Element;
|
|
10063
|
+
|
|
10064
|
+
/**
|
|
10065
|
+
* A node in the organization department tree.
|
|
10066
|
+
*/
|
|
10067
|
+
interface OrgNode$1 {
|
|
10068
|
+
/** Unique key / 唯一键 */
|
|
10069
|
+
key: string;
|
|
10070
|
+
/** Display title / 显示标题 */
|
|
10071
|
+
title: string;
|
|
10072
|
+
/** Child departments / 子部门 */
|
|
10073
|
+
children?: OrgNode$1[];
|
|
10074
|
+
}
|
|
10075
|
+
/**
|
|
10076
|
+
* A member in the organization.
|
|
10077
|
+
*/
|
|
10078
|
+
interface OrgMember {
|
|
10079
|
+
/** Unique key / 唯一键 */
|
|
10080
|
+
key: string;
|
|
10081
|
+
/** Member name / 成员名称 */
|
|
10082
|
+
name: string;
|
|
10083
|
+
/** Department name / 部门名称 */
|
|
10084
|
+
department: string;
|
|
10085
|
+
/** Avatar URL / 头像地址 */
|
|
10086
|
+
avatar?: string;
|
|
10087
|
+
}
|
|
10088
|
+
/**
|
|
10089
|
+
* Props for the OrgPicker component.
|
|
10090
|
+
*/
|
|
10091
|
+
interface OrgPickerProps {
|
|
10092
|
+
/** Whether the dialog is open / 对话框是否打开 */
|
|
10093
|
+
open?: boolean;
|
|
10094
|
+
/** Callback when open state changes / 打开状态变化回调 */
|
|
10095
|
+
onOpenChange?: (open: boolean) => void;
|
|
10096
|
+
/** Callback when user confirms selection / 用户确认选择回调 */
|
|
10097
|
+
onConfirm?: (selected: string[]) => void;
|
|
10098
|
+
/** Allow multiple selections (default: true) / 是否允许多选 */
|
|
10099
|
+
multiple?: boolean;
|
|
10100
|
+
/** Currently selected keys / 当前选中的键 */
|
|
10101
|
+
selectedKeys?: string[];
|
|
10102
|
+
/** Department tree data / 部门树数据 */
|
|
10103
|
+
departments?: OrgNode$1[];
|
|
10104
|
+
/** Member list / 成员列表 */
|
|
10105
|
+
members?: OrgMember[];
|
|
10106
|
+
/** Additional className / 额外类名 */
|
|
10107
|
+
className?: string;
|
|
10108
|
+
}
|
|
10109
|
+
/**
|
|
10110
|
+
* @component OrgPicker
|
|
10111
|
+
* @category business/org
|
|
10112
|
+
* @since 0.2.0
|
|
10113
|
+
* @description Organization selector dialog with department tree on the left
|
|
10114
|
+
* and member list with checkboxes on the right, supporting search and
|
|
10115
|
+
* multi-select. / 组织选择器对话框,左侧部门树,右侧带复选框的成员列表,支持搜索和多选。
|
|
10116
|
+
* @keywords org, organization, picker, dialog, tree, member, department, select
|
|
10117
|
+
* @example
|
|
10118
|
+
* ```tsx
|
|
10119
|
+
* <OrgPicker
|
|
10120
|
+
* open={open}
|
|
10121
|
+
* onOpenChange={setOpen}
|
|
10122
|
+
* departments={deptData}
|
|
10123
|
+
* members={memberList}
|
|
10124
|
+
* onConfirm={(keys) => console.log(keys)}
|
|
10125
|
+
* />
|
|
10126
|
+
* ```
|
|
10127
|
+
*/
|
|
10128
|
+
declare function OrgPicker({ open, onOpenChange, onConfirm, multiple, selectedKeys, departments, members, className, }: OrgPickerProps): React.JSX.Element;
|
|
10129
|
+
|
|
10130
|
+
/**
|
|
10131
|
+
* A user item in the user picker.
|
|
10132
|
+
*/
|
|
10133
|
+
interface UserItem {
|
|
10134
|
+
/** Unique key / 唯一键 */
|
|
10135
|
+
key: string;
|
|
10136
|
+
/** User display name / 用户显示名 */
|
|
10137
|
+
name: string;
|
|
10138
|
+
/** Email address / 邮箱地址 */
|
|
10139
|
+
email?: string;
|
|
10140
|
+
/** Avatar URL / 头像地址 */
|
|
10141
|
+
avatar?: string;
|
|
10142
|
+
/** Department name / 部门名称 */
|
|
10143
|
+
department?: string;
|
|
10144
|
+
}
|
|
10145
|
+
/**
|
|
10146
|
+
* Props for the UserPicker component.
|
|
10147
|
+
*/
|
|
10148
|
+
interface UserPickerProps {
|
|
10149
|
+
/** Whether the dialog is open / 对话框是否打开 */
|
|
10150
|
+
open?: boolean;
|
|
10151
|
+
/** Callback when open state changes / 打开状态变化回调 */
|
|
10152
|
+
onOpenChange?: (open: boolean) => void;
|
|
10153
|
+
/** Callback when user confirms selection / 用户确认选择回调 */
|
|
10154
|
+
onConfirm?: (selected: string[]) => void;
|
|
10155
|
+
/** Allow multiple selections (default: true) / 是否允许多选 */
|
|
10156
|
+
multiple?: boolean;
|
|
10157
|
+
/** Currently selected keys / 当前选中的键 */
|
|
10158
|
+
selectedKeys?: string[];
|
|
10159
|
+
/** User list data / 用户列表数据 */
|
|
10160
|
+
users?: UserItem[];
|
|
10161
|
+
/** Additional className / 额外类名 */
|
|
10162
|
+
className?: string;
|
|
10163
|
+
}
|
|
10164
|
+
/**
|
|
10165
|
+
* @component UserPicker
|
|
10166
|
+
* @category business/user
|
|
10167
|
+
* @since 0.2.0
|
|
10168
|
+
* @description User selector dialog with search input, user list with
|
|
10169
|
+
* checkboxes, and selected chips bar at the bottom. / 用户选择器对话框,
|
|
10170
|
+
* 包含搜索输入框、带复选框的用户列表和底部已选标签栏。
|
|
10171
|
+
* @keywords user, picker, dialog, select, search, checkbox, chips
|
|
10172
|
+
* @example
|
|
10173
|
+
* ```tsx
|
|
10174
|
+
* <UserPicker
|
|
10175
|
+
* open={open}
|
|
10176
|
+
* onOpenChange={setOpen}
|
|
10177
|
+
* users={userList}
|
|
10178
|
+
* onConfirm={(keys) => console.log(keys)}
|
|
10179
|
+
* />
|
|
10180
|
+
* ```
|
|
10181
|
+
*/
|
|
10182
|
+
declare function UserPicker({ open, onOpenChange, onConfirm, multiple, selectedKeys, users, className, }: UserPickerProps): React.JSX.Element;
|
|
10183
|
+
|
|
10184
|
+
/**
|
|
10185
|
+
* Structured address value.
|
|
10186
|
+
*/
|
|
10187
|
+
interface AddressValue {
|
|
10188
|
+
/** Province / 省份 */
|
|
10189
|
+
province?: string;
|
|
10190
|
+
/** City / 城市 */
|
|
10191
|
+
city?: string;
|
|
10192
|
+
/** District / 区县 */
|
|
10193
|
+
district?: string;
|
|
10194
|
+
/** Street / 街道 */
|
|
10195
|
+
street?: string;
|
|
10196
|
+
/** Detailed address / 详细地址 */
|
|
10197
|
+
detail?: string;
|
|
10198
|
+
/** Latitude / 纬度 */
|
|
10199
|
+
lat?: number;
|
|
10200
|
+
/** Longitude / 经度 */
|
|
10201
|
+
lng?: number;
|
|
10202
|
+
}
|
|
10203
|
+
/**
|
|
10204
|
+
* Props for the AddressInput component.
|
|
10205
|
+
*/
|
|
10206
|
+
interface AddressInputProps {
|
|
10207
|
+
/** Current address value / 当前地址值 */
|
|
10208
|
+
value?: AddressValue;
|
|
10209
|
+
/** Change callback / 变更回调 */
|
|
10210
|
+
onChange?: (value: AddressValue) => void;
|
|
10211
|
+
/** Show map placeholder (default: false) / 是否显示地图占位 */
|
|
10212
|
+
showMap?: boolean;
|
|
10213
|
+
/** Show geolocation inputs (default: false) / 是否显示经纬度输入 */
|
|
10214
|
+
showGeolocation?: boolean;
|
|
10215
|
+
/** Additional className / 额外类名 */
|
|
10216
|
+
className?: string;
|
|
10217
|
+
}
|
|
10218
|
+
/**
|
|
10219
|
+
* @component AddressInput
|
|
10220
|
+
* @category business/address
|
|
10221
|
+
* @since 0.2.0
|
|
10222
|
+
* @description Structured address input with province/city/district
|
|
10223
|
+
* cascading selects, street input, detail textarea, and optional
|
|
10224
|
+
* geolocation fields. / 结构化地址输入,包含省/市/区级联选择、街道输入、
|
|
10225
|
+
* 详细地址文本域,以及可选的经纬度字段。
|
|
10226
|
+
* @keywords address, input, province, city, district, geolocation, cascading
|
|
10227
|
+
* @example
|
|
10228
|
+
* ```tsx
|
|
10229
|
+
* <AddressInput
|
|
10230
|
+
* value={addr}
|
|
10231
|
+
* onChange={setAddr}
|
|
10232
|
+
* showGeolocation
|
|
10233
|
+
* />
|
|
10234
|
+
* ```
|
|
10235
|
+
*/
|
|
10236
|
+
declare function AddressInput({ value, onChange, showMap, showGeolocation, className, }: AddressInputProps): React.JSX.Element;
|
|
10237
|
+
|
|
10238
|
+
/**
|
|
10239
|
+
* An attachment in the markdown viewer.
|
|
10240
|
+
*/
|
|
10241
|
+
interface Attachment {
|
|
10242
|
+
/** File name / 文件名 */
|
|
10243
|
+
name: string;
|
|
10244
|
+
/** Download URL / 下载地址 */
|
|
10245
|
+
url: string;
|
|
10246
|
+
/** File size in bytes / 文件大小(字节) */
|
|
10247
|
+
size?: number;
|
|
10248
|
+
}
|
|
10249
|
+
/**
|
|
10250
|
+
* Props for the MarkdownViewerBiz component.
|
|
10251
|
+
*/
|
|
10252
|
+
interface MarkdownViewerBizProps {
|
|
10253
|
+
/** Markdown content string / Markdown 内容字符串 */
|
|
10254
|
+
content: string;
|
|
10255
|
+
/** Attachments to display below content / 内容下方显示的附件列表 */
|
|
10256
|
+
attachments?: Attachment[];
|
|
10257
|
+
/** Additional className / 额外类名 */
|
|
10258
|
+
className?: string;
|
|
10259
|
+
}
|
|
10260
|
+
/**
|
|
10261
|
+
* @component MarkdownViewerBiz
|
|
10262
|
+
* @category business/markdown
|
|
10263
|
+
* @since 0.2.0
|
|
10264
|
+
* @description Business markdown viewer with attachment support. Renders
|
|
10265
|
+
* markdown content with a self-contained parser and displays an
|
|
10266
|
+
* attachment list with download links at the bottom. / 业务 Markdown
|
|
10267
|
+
* 查看器,支持附件。使用自包含解析器渲染 Markdown 内容,并在底部显示
|
|
10268
|
+
* 带下载链接的附件列表。
|
|
10269
|
+
* @keywords markdown, viewer, attachment, download, biz
|
|
10270
|
+
* @example
|
|
10271
|
+
* ```tsx
|
|
10272
|
+
* <MarkdownViewerBiz
|
|
10273
|
+
* content="# Hello\nThis is **bold** text."
|
|
10274
|
+
* attachments={[{ name: "doc.pdf", url: "/files/doc.pdf", size: 1024 }]}
|
|
10275
|
+
* />
|
|
10276
|
+
* ```
|
|
10277
|
+
*/
|
|
10278
|
+
declare function MarkdownViewerBiz({ content, attachments, className, }: MarkdownViewerBizProps): React.JSX.Element;
|
|
10279
|
+
|
|
10280
|
+
/**
|
|
10281
|
+
* Props for the AudioRecorder component.
|
|
10282
|
+
*/
|
|
10283
|
+
interface AudioRecorderProps {
|
|
10284
|
+
/** Callback when recording is complete / 录音完成回调 */
|
|
10285
|
+
onRecord?: (blob: Blob) => void;
|
|
10286
|
+
/** Max recording duration in seconds (default: 60) / 最大录音时长 */
|
|
10287
|
+
maxDuration?: number;
|
|
10288
|
+
/** Additional className / 额外类名 */
|
|
10289
|
+
className?: string;
|
|
10290
|
+
/** Show waveform animation (default: true) / 是否显示波形动画 */
|
|
10291
|
+
showWaveform?: boolean;
|
|
10292
|
+
}
|
|
10293
|
+
/**
|
|
10294
|
+
* @component AudioRecorder
|
|
10295
|
+
* @category business/audio
|
|
10296
|
+
* @since 0.2.0
|
|
10297
|
+
* @description Audio recording component using the MediaRecorder API with
|
|
10298
|
+
* timer display, waveform animation, and record/pause/stop controls. /
|
|
10299
|
+
* 录音组件,使用 MediaRecorder API,支持计时显示、波形动画和录音/暂停/停止控制。
|
|
10300
|
+
* @keywords audio, recorder, mic, media-recorder, waveform, voice
|
|
10301
|
+
* @example
|
|
10302
|
+
* ```tsx
|
|
10303
|
+
* <AudioRecorder onRecord={(blob) => console.log(blob)} maxDuration={30} />
|
|
10304
|
+
* ```
|
|
10305
|
+
*/
|
|
10306
|
+
declare function AudioRecorder({ onRecord, maxDuration, className, showWaveform, }: AudioRecorderProps): React.JSX.Element;
|
|
10307
|
+
|
|
10308
|
+
/**
|
|
10309
|
+
* Props for the ScreenCapture component.
|
|
10310
|
+
*/
|
|
10311
|
+
interface ScreenCaptureProps {
|
|
10312
|
+
/** Callback when a frame is captured / 截图完成回调 */
|
|
10313
|
+
onCapture?: (dataUrl: string) => void;
|
|
10314
|
+
/** Additional className / 额外类名 */
|
|
10315
|
+
className?: string;
|
|
10316
|
+
/** Show toolbar buttons (default: true) / 是否显示工具栏 */
|
|
10317
|
+
toolbar?: boolean;
|
|
10318
|
+
}
|
|
10319
|
+
/**
|
|
10320
|
+
* @component ScreenCapture
|
|
10321
|
+
* @category business/screen
|
|
10322
|
+
* @since 0.2.0
|
|
10323
|
+
* @description Screen capture and annotation component using
|
|
10324
|
+
* getDisplayMedia for screen sharing. Captures a frame to canvas and
|
|
10325
|
+
* provides basic rectangle annotation with draw, clear, and download. /
|
|
10326
|
+
* 屏幕截图和标注组件,使用 getDisplayMedia 进行屏幕共享,将帧捕获到画布,
|
|
10327
|
+
* 并提供基本矩形标注功能,包括绘制、清除和下载。
|
|
10328
|
+
* @keywords screen, capture, screenshot, annotation, canvas, display-media
|
|
10329
|
+
* @example
|
|
10330
|
+
* ```tsx
|
|
10331
|
+
* <ScreenCapture onCapture={(dataUrl) => console.log(dataUrl)} />
|
|
10332
|
+
* ```
|
|
10333
|
+
*/
|
|
10334
|
+
declare function ScreenCapture({ onCapture, className, toolbar, }: ScreenCaptureProps): React.JSX.Element;
|
|
10335
|
+
|
|
10336
|
+
/**
|
|
10337
|
+
* A node in the organization tree.
|
|
10338
|
+
*/
|
|
10339
|
+
interface OrgNode {
|
|
10340
|
+
/** Unique key / 唯一键 */
|
|
10341
|
+
key: string;
|
|
10342
|
+
/** Display title / 显示标题 */
|
|
10343
|
+
title: string;
|
|
10344
|
+
/** Child nodes / 子节点 */
|
|
10345
|
+
children?: OrgNode[];
|
|
10346
|
+
}
|
|
10347
|
+
/**
|
|
10348
|
+
* Props for the OrgTreeSelect component.
|
|
10349
|
+
*/
|
|
10350
|
+
interface OrgTreeSelectProps {
|
|
10351
|
+
/** Selected key(s) / 选中的键 */
|
|
10352
|
+
value?: string | string[];
|
|
10353
|
+
/** Change callback / 变更回调 */
|
|
10354
|
+
onChange?: (value: string | string[]) => void;
|
|
10355
|
+
/** Organization tree data / 组织树数据 */
|
|
10356
|
+
treeData?: OrgNode[];
|
|
10357
|
+
/** Allow multiple selections (default: false) / 是否允许多选 */
|
|
10358
|
+
multiple?: boolean;
|
|
10359
|
+
/** Show search input (default: true) / 是否显示搜索 */
|
|
10360
|
+
showSearch?: boolean;
|
|
10361
|
+
/** Additional className / 额外类名 */
|
|
10362
|
+
className?: string;
|
|
10363
|
+
/** Placeholder text / 占位文本 */
|
|
10364
|
+
placeholder?: string;
|
|
10365
|
+
}
|
|
10366
|
+
/**
|
|
10367
|
+
* @component OrgTreeSelect
|
|
10368
|
+
* @category business/org
|
|
10369
|
+
* @since 0.2.0
|
|
10370
|
+
* @description Organization tree selector with a trigger that shows
|
|
10371
|
+
* selected org name(s) and a popover with tree and search. Supports
|
|
10372
|
+
* single or multi-select. / 组织树选择器,触发器显示已选组织名称,
|
|
10373
|
+
* 弹出面板包含树和搜索,支持单选或多选。
|
|
10374
|
+
* @keywords org, tree, select, popover, organization, department
|
|
10375
|
+
* @example
|
|
10376
|
+
* ```tsx
|
|
10377
|
+
* <OrgTreeSelect
|
|
10378
|
+
* treeData={orgData}
|
|
10379
|
+
* value={selected}
|
|
10380
|
+
* onChange={setSelected}
|
|
10381
|
+
* multiple
|
|
10382
|
+
* />
|
|
10383
|
+
* ```
|
|
10384
|
+
*/
|
|
10385
|
+
declare function OrgTreeSelect({ value, onChange, treeData, multiple, showSearch, className, placeholder, }: OrgTreeSelectProps): React.JSX.Element;
|
|
10310
10386
|
|
|
10311
|
-
export { AccountBalance, type AccountBalanceProps, type AccountOption, ActivityFeed, type ActivityItem, AddressColumn, type AddressOption, AddressPanel, AddressPicker, type AddressPickerProps, AdvancedSearch, type AdvancedSearchField, type AdvancedSearchProps, type AdvancedSearchValues, type Aggregation, type AgingBucket, type AgingEntry, type AlertSeverity, type Announcement, AnnouncementBanner, type AnnouncementBannerProps, AnnouncementCard, type AnnouncementCardProps, ApplicationForm, type ApplicationFormProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalFlow, type ApprovalFlowProps, type ApprovalStep$1 as ApprovalStep, type ApprovalStepStatus, ApprovalTimeline, type ApprovalTimelineProps, type ApprovalTimelineTexts, type Approver, ArApAgingTable, type ArApAgingTableProps, AreaChart, type AreaChartProps, type AsyncTask, AsyncTaskCenter, type AsyncTaskCenterProps, AsyncTaskTrigger, type AsyncTaskTriggerProps, AttachmentList, type AttachmentListProps, AttachmentPreview, type AttachmentPreviewProps, AttachmentUploader, type AttachmentUploaderProps, AttendanceCalendar, type AttendanceCalendarProps, type AttendanceRecord, type AttendanceStatus, AudienceSegmentBuilder, type AudienceSegmentBuilderProps, type AuditAction, type AuditChangeEntry, AuditLog, type AuditLogEntry$1 as AuditLogEntry, type AuditLogProps, type AuditLogStatus, AuditSidebar, type AuditSidebarProps, AuditTrailDiff, type AuditTrailDiffProps, AuthGuard, type AuthGuardProps, AuthLayout, type AuthLayoutProps, AvatarGroup, type AvatarUser, type BOMItem, type BOMItemType, BOMTreeEditor, type BOMTreeEditorProps, BadgeDelta, type BadgeDeltaProps, type BannerPriority, BarChart, type BarChartProps, BarList, BarListCard, type BarListCardProps, type BarListProps, BatchGenealogyTree, type BatchGenealogyTreeProps, type BatchNode$1 as BatchNode, BatchPrintDialog, type BatchPrintDialogProps, BatchSelector, type BatchSelectorProps, BillFooter, type BillFooterProps, BillHeader, type BillHeaderField, type BillHeaderProps, BillPage, type BillPageProps, BillPrintTemplate, type BillPrintTemplateProps, type BillStatus, BillStatusBar, type BillStatusBarProps, type BillStatusStep, BillTimeline, type BillTimelineProps, BillTodoList, type BillTodoListProps, type BizStatus, BizStatusTag, type BizStatusTagProps, type BreadcrumbItemType, type BrowseColumn, BrowseDialog, type BrowseDialogProps, type BrowseLoadParams, type BrowseLoadResult, type BrowseTreeNode, BudgetAllocator, type BudgetAllocatorProps, BudgetOverview, type BudgetOverviewProps, BudgetPacingCard, type BudgetPacingCardProps, type BudgetPacingStatus, type BudgetPacingTexts, BulkActionsToolbar, type BulkImportStep, type BulkImportValidationRow, BulkImportWizard, type BulkImportWizardProps, CATEGORY_LABELS, CalendarView, type CalendarViewProps, Callout, type CalloutProps, CampaignCalendar, type CampaignCalendarEvent, type CampaignCalendarProps, CampaignCard, type CampaignCardProps, type CampaignMetric, type CampaignStatus, CampaignStatusTag, type CampaignStatusTagProps, CategoryBar, type CategoryBarProps, type CategoryOption, type ChannelOption, ChannelPicker, type ChannelPickerProps, type ChannelType, ChartCard, type ChartCardProps, ChartContainer, ChartSuite, type ChartSuiteProps, ChartTooltip, ChatAgentStatus, type ChatAgentStatusProps, ChatArtifactPanel, type ChatArtifactPanelProps, ChatBranch, type ChatBranchProps, ChatCardMessage, type ChatCardMessageProps, ChatCodeBlock, type ChatCodeBlockProps, ChatCommandMenu, type ChatCommandMenuProps, ChatContextPanel, type ChatContextPanelProps, ChatConversation, type ChatConversationProps, ChatConversationSearch, type ChatConversationSearchProps, ChatFeedback, type ChatFeedbackProps, ChatHeader, type ChatHeaderProps, ChatImageGallery, type ChatImageGalleryProps, ChatInputToolbar, type ChatInputToolbarProps, ChatMarkdownRenderer, type ChatMarkdownRendererProps, ChatMentionPicker, type ChatMentionPickerProps, ChatMessageActions, type ChatMessageActionsProps, ChatMessageBubble, type ChatMessageBubbleProps, ChatMessageGroup, type ChatMessageGroupProps, ChatMessageInput, type ChatMessageInputProps, ChatModelSwitcher, type ChatModelSwitcherProps, ChatSharedLink, type ChatSharedLinkProps, ChatShell, type ChatShellProps, ChatSidebar, type ChatSidebarProps, ChatStreamingText, type ChatStreamingTextProps, ChatSuggestReplies, type ChatSuggestRepliesProps, ChatThinkingBlock, type ChatThinkingBlockProps, ChatToolCallBlock, type ChatToolCallBlockProps, ChatVoiceMessage, type ChatVoiceMessageProps, CheckoutBar, type CheckoutBarProps, Chip, CityBrowse, type CityBrowseItem, type CityBrowseProps, CodeBlock, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, ColorBoard, type ColorBoardProps, type ColorFormat, ColorTag, type ColorTagColor, type ColorTagProps, type Column, type ColumnMapping, type CommandGroup, type CommandItem, CommandPalette, CommissionCalculator, type CommissionCalculatorProps, type CommissionDeal, type CommissionTier, CompanyBrowse, type CompanyBrowseItem, type CompanyBrowseProps, CompanyPicker, type CompanyPickerProps, ComplianceChecklist, type ComplianceChecklistProps, type ComplianceItem, type ComplianceItemStatus, ConfirmDialog, ConfirmDialogContainer, type ContractField, type ContractMetadata, ContractTemplate, type ContractTemplateProps, CookieBanner, CostCenterPicker, type CostCenterPickerProps, CouponCard, type CouponCardProps, CreativePreview, type CreativePreviewMode, type CreativePreviewProps, type CreativePreviewViewport, CronEditor, type CronEditorProps, type CronSegment, type FormField as CrudFormField, CrudPage, type CrudPageProps, CrudToolbar, type CrudToolbarAction, type CrudToolbarProps, type CurrencyOption, Customer360Card, type Customer360CardProps, type CustomerActivity, CustomerBrowse, type CustomerBrowseItem, type CustomerBrowseProps, type CustomerContact, type CustomerMetric, CustomerPicker, type CustomerPickerProps, DashboardCanvas, type DashboardCanvasProps, type DashboardConfig, DashboardDesigner, type DashboardDesignerProps, type DashboardFilter, DashboardGrid, type DashboardGridProps, type DashboardWidget, type DashboardWidgetType, DataTable, DateRangePicker, type Deal, DeltaBar, type DeltaBarProps, DepartmentPicker, type DepartmentPickerProps, type DependencyType, DialogFormBody, type DialogFormBodyProps, type DictFetcher, type DictOption, DictSelect, type DictSelectProps, type DiffChangeType, type DiffColumn, type DiffRowStatus, DiffViewer, type DiffViewerItem, type DiffViewerProps, DiffViewerTable, type DiffViewerTableProps, DistributorPicker, type DistributorPickerProps, DockPanel, type DockPanelProps, DonutCard, type DonutCardProps, DonutChart, type DonutChartProps, DynamicFormBuilder, type DynamicFormBuilderProps, EditToolbar, type EditToolbarProps, EditableTreeTable, type EditableTreeTableColumn, type EditableTreeTableProps, type Employee, EmployeePicker, type EmployeePickerProps, type EquipmentAction, EquipmentCard, type EquipmentCardProps, type EquipmentMetric, type EquipmentStatus, ErrorBoundary, type EventOption, type ExistingBooking, type ExpenseLine, ExpenseLineEditor, type ExpenseLineEditorProps, ExperimentSummary, type ExperimentSummaryProps, type ExperimentVariant, ExportButton, type ExportFormat, FeatureTour, type FeatureTourProps, FeeTypeBrowse, type FeeTypeBrowseItem, type FeeTypeBrowseProps, FieldMask, type FieldMaskProps, type FieldOption, FileCard, type FileCardProps, FileUploadManager, FilterBar, type FilterBarProps, FilterBuilder, type FilterField, FlowTracker, type FlowTrackerProps, Forbidden, type ForbiddenProps, FormDesigner, type FormDesignerField, type FormDesignerProps, FormDesignerRuntime, type FormDesignerRuntimeProps, FormStack, type FormStackProps, FormWizard, FormulaEditor, type FormulaEditorProps, type FormulaFunction, type FormulaVariable, FullPageLoader, FunnelChart, type FunnelChartProps, GanttChart, GanttChartPro, type GanttChartProProps, type GanttChartProps, type GanttDependency, type GanttTask, Gauge, GaugeChart, type GaugeChartProps, GlobalLoadingContext, type GlobalLoadingContextValue, GlobalLoadingProvider, type GlobalLoadingProviderProps, HeatmapCalendar, HeatmapChart, type HeatmapChartProps, I18nFormField, type I18nFormFieldProps, ImMessage, type ImMessageProps, ImageGallery, type ImageGalleryProps, ImportDialog, type ImportDialogProps, ImportErrorTable, type ImportErrorTableProps, ImportMappingWizard, type ImportMappingWizardProps, InlineEdit, type InlineEditProps, InlineSparkline, type InspectionField, type InspectionFieldType, type InspectionResult, type InspectionTemplate, type InventoryAlertItem, InventoryAlertList, type InventoryAlertListProps, InventorySnapshot, type InventorySnapshotProps, type InventoryTransaction, InviteLink, type InviteLinkProps, InvoiceManager, type InvoiceManagerProps, InvoiceSummary, type InvoiceSummaryProps, IotSensorGrid, type IotSensorGridProps, JournalEntryEditor, type JournalEntryEditorProps, type JournalEntryLine, JsonEditor, type JsonEditorProps, JsonViewer, KPICard, KanbanBoard, KanbanColumn, type KanbanColumnData, type KanbanColumnProps, type KanbanItem, LabelDesigner, type LabelDesignerProps, type LabelField, type LabelFieldType, type LabelSize, LabeledField, type LanguageOption, LanguageSwitcher, LeadPipelineBoard, type LeadPipelineBoardProps, type LeaveBalance, LeaveRequestForm, type LeaveRequestFormProps, type LeaveType, LineChart, type LineChartProps, type LineColumn, LineEditor, type LineColumn as LineEditorColumn, type LineEditorProps, LoadingPage, type LocaleTranslation, type MaintenanceEntry, MaintenanceLog, type MaintenanceLogProps, type MaintenanceStatus, type MaintenanceType, MapChart, type MapChartProps, MapMarkerCluster, type MapMarkerClusterProps, type MapMarkerData, MapTrack, type MapTrackPoint, type MapTrackProps, MapView, type MapViewProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownMode, MarketingActivityForm, type MarketingActivityFormProps, type MarketingChannel, type MaskRule, MasterDetailLayout, MasterEditTemplate, type MasterEditTemplateProps, MasterListTemplate, type MasterListTemplateProps, MediaRecorderComponent as MediaRecorder, type MediaRecorderProps, type MeetingRoom, MeetingRoomBooking, type MeetingRoomBookingProps, MessageList, type MessageListProps, MetricTrend, MobileActionSheet, type MobileActionSheetProps, MobileAuthLayout, type MobileAuthLayoutProps, MobileButton, type MobileButtonProps, MobileCamera, type MobileCameraProps, MobileCard, type MobileCardProps, MobileCardSkeleton, type MobileColumn, MobileDashboardLayout, type MobileDashboardLayoutProps, MobileDataTable, type MobileDataTableProps, MobileDetailSkeleton, MobileDialog, type MobileDialogProps, MobileEmptyState, type MobileEmptyStateProps, MobileFilterBuilder, type MobileFilterBuilderProps, MobileForm, MobileFormField, type MobileFormFieldProps, type MobileFormProps, MobileFormWizard, type MobileFormWizardProps, MobileGeolocation, type MobileGeolocationProps, MobileInfiniteScroll, type MobileInfiniteScrollProps, MobileInput, type MobileInputProps, MobileKPICard, type MobileKPICardProps, MobileKanban, type MobileKanbanProps, MobileListItem, type MobileListItemProps, MobileListItemSkeleton, MobileNavigation, type MobileNavigationProps, MobilePageHeader, type MobilePageHeaderProps, MobilePageShell, type MobilePageShellProps, MobilePicker, type MobilePickerProps, MobileQrCodeScanner, type MobileQrCodeScannerProps, MobileSelect, type MobileSelectOption, type MobileSelectProps, MobileSheet, type MobileSheetProps, MobileSignature, type MobileSignatureProps, MobileTabBar, type MobileTabBarProps, type MobileTabItem, MobileTabs, type MobileTabsProps, MobileTextarea, type MobileTextareaProps, MultiCurrencyInput, type MultiCurrencyInputProps, MultiSelect, type MultiSelectOption, NotificationCenter, type NotificationItem, type NotificationRule, NotificationRuleBuilder, type NotificationRuleBuilderProps, OaBridge, type OaBridgeProps, OeeDashboard, type OeeDashboardProps, type OeeEquipment, type OeeLoss, OperationLog, type OperationLogProps, type Operator, type OrderLine, OrderLineEditor, type OrderLineEditorProps, OrgChart, type OrgChartProps, type OrgEdge, type OrgNode, OverviewPage, type OverviewPageProps, PDFViewer, type PDFViewerProps, type POLineItem, PageHeader, type PageHeaderProps, PasteUpload, type PasteUploadProps, type PaymentMethod, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentResult, type PaymentResultProps, PaymentSchedule, type PaymentScheduleProps, PerformanceRankTable, type PerformanceRankTableProps, PermissionButton, type PermissionButtonProps, PermissionMatrix, type PermissionMatrixProps, type PermissionMatrixResource, type PermissionMatrixRole, type PermissionMatrixValue, PermissionWrapper, type PermissionWrapperProps, PhotoAudit, type PhotoAuditProps, PieChart, type PieChartProps, type PipelineStage, PivotTable, PolicyLineEditor, type PolicyLineEditorProps, PoolTrackerTable, type PoolTrackerTableProps, PreferencePanel, type PreferencePanelProps, PriceAdjustBrowse, type PriceAdjustBrowseItem, type PriceAdjustBrowseProps, PrintButton, type PrintButtonProps, PrintService, type PrintServiceJob, type PrintServiceProps, PrintTemplateBuilder, type PrintTemplateBuilderProps, type PrintTemplateField, type PrintTemplateModel, ProductBrowse, type ProductBrowseItem, type ProductBrowseProps, ProductCategoryPicker, type ProductCategoryPickerProps, PromotionRuleCard, type PromotionRuleCardProps, PromotionRuleEditor, type PromotionRuleEditorProps, PromptDialog, PullToRefresh, PurchaseOrderEditor, type PurchaseOrderEditorProps, QualityInspectionForm, type QualityInspectionFormProps, QuickEntryGrid, type QuickEntryGridProps, type QuotationLine, QuotationLineEditor, type QuotationLineEditorProps, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, RadialProgress, type RatingTier, RebutNodeSelect, type RebutNodeSelectProps, ReconciliationLineEditor, type ReconciliationLineEditorProps, type ReconciliationRow, ReconciliationSummary, type ReconciliationSummaryProps, RedPacket, type RedPacketProps, RegionPicker, type RegionPickerProps, type RemoteFetcher, type RemoteOption, RemoteSelect, type RemoteSelectProps, ReportBuilder, type ReportBuilderProps, type ReportWidget, type ReportWidgetDefinition, type ReportWidgetType, ResourceSchedule, type ResourceScheduleProps, ResponsivePreview, type ResponsivePreviewProps, RichTextEditor, type RichTextEditorProps, RoleAssignment, type RoleAssignmentPrincipal, type RoleAssignmentProps, type RoleAssignmentRole, type RoleAssignmentValue, type RuleCondition, RuleEditor, type RuleEditorProps, type RuleItem, type RuleRecipient, type RuntimeField, SPCControlChart, type SPCControlChartProps, type SPCSample, type SQLDialect, STATUS_CONFIG, SalesOrderBrowse, type SalesOrderBrowseItem, type SalesOrderBrowseProps, SalesTargetEditor, type SalesTargetEditorProps, SankeyChart, type SankeyChartProps, type SavedFilter, SavedFilters, type SavedSearch, ScatterChart, type ScatterChartProps, type ScorecardCriterion, type SealRecord, SealStampRegistry, type SealStampRegistryProps, type SealStatus, type SealType, type SealUsageLog, SearchTable, type SearchTableProps, type SegmentMode, type Sensor, type SensorStatus, SerialNumberManager, type SerialNumberManagerProps, SettlementStatusTag, type SettlementStatusTagProps, type ShiftAssignment, ShiftCalendar, type ShiftCalendarProps, type ShiftType, ShippingWayBrowse, type ShippingWayBrowseItem, type ShippingWayBrowseProps, SignActionButton, type SignActionButtonProps, type SkuOption, SkuPicker, type SkuPickerProps, SocialShare, type SocialShareProps, type SourceColumn, SparkChart, type SparkChartProps, Sparkline, SqlEditor, type SqlEditorProps, StatCard, StatCardRow, type StatCardRowProps, StatCardWithDelta, type StatCardWithDeltaProps, StatCardWithSparkline, type StatCardWithSparklineProps, type Status, StatusBadge, type StatusBadgeProps, type StatusMapping, type StatusPreset, StatusTag, type StatusTagProps, StockTransferDialog, type StockTransferDialogProps, SubformTabs, type SubformTabsProps, type Supplier, SupplierScorecard, type SupplierScorecardProps, SwipeActions, type SwipeDirection, TabCrudPage, type TabCrudPageProps, TabPin, type TabPinProps, type TargetField, TargetProgress, type TargetProgressProps, TaskHistory, type TaskHistoryProps, TaskListTable, type TaskListTableProps, TaskProgress, type TaskProgressProps, type TaskStatus, TaxDetailTable, type TaxDetailTableProps, TemplateDownload, type TemplateDownloadItem, type TemplateDownloadProps, type TemplateDownloadType, TerritoryMap, type TerritoryMapProps, type TerritoryRegion, TimelineView, type TimelineViewProps, TodoListTable, type TodoListTableProps, Tracking, type TrackingProps, TransferItem, type TransferLine, TreeCrudPage, type TreeCrudPageProps, TreeTable, type TreeTableColumn, type TreeTableProps, TreemapChart, type TreemapChartProps, UTMBuilder, type UTMBuilderProps, type UTMBuilderValue, type Unit, type UnitCategory, UnitConverter, type UnitConverterProps, UserMenu, type UserMenuAction, type UserMenuUser, type Vehicle, VehicleBooking, type VehicleBookingEntry, type VehicleBookingProps, VersionHistory, type VersionHistoryItem, type VersionHistoryProps, WarehouseBrowse, type WarehouseBrowseItem, type WarehouseBrowseProps, WarehousePicker, type WarehousePickerProps, WaterfallChart, type WaterfallChartProps, type WizardRenderContext, WorkOrderCard, type WorkOrderCardProps, type WorkOrderOperation, type WorkOrderStatus, WorkflowDesigner, type WorkflowDesignerProps, type WorkflowEdge, type WorkflowNode, WorkflowPreview, type WorkflowPreviewProps, WriteoffBrowse, type WriteoffBrowseItem, type WriteoffBrowseProps, WriteoffFlow, type WriteoffFlowProps, type ZoomLevel, brandColors, builtInCategories, colorConfig, computeResult, convertValue, defaultChannelOptions, defaultColors, defaultStatusMap, formatResult, safeEvaluate, setDictFetcher, statusColors, statusConfig, useConfirm, useGlobalLoading, withPermission };
|
|
10387
|
+
export { AccountBalance, type AccountBalanceProps, type AccountOption, ActivityFeed, type ActivityItem, AddressColumn, AddressInput, type AddressInputProps, type AddressOption, AddressPanel, AddressPicker, type AddressPickerProps, type AddressValue, AdvancedDataTable, type AdvancedDataTableProps, AdvancedSearch, type AdvancedSearchField, type AdvancedSearchProps, type AdvancedSearchValues, type Aggregation, type AgingBucket, type AgingEntry, type AlertSeverity, type Announcement, AnnouncementBanner, type AnnouncementBannerProps, AnnouncementCard, type AnnouncementCardProps, ApplicationForm, type ApplicationFormProps, ApprovalActionBar, type ApprovalActionBarProps, ApprovalFlow, type ApprovalFlowProps, type ApprovalStep$1 as ApprovalStep, type ApprovalStepStatus, ApprovalTimeline, type ApprovalTimelineProps, type ApprovalTimelineTexts, type Approver, ArApAgingTable, type ArApAgingTableProps, AreaChart, type AreaChartProps, type AsyncTask, AsyncTaskCenter, type AsyncTaskCenterProps, AsyncTaskTrigger, type AsyncTaskTriggerProps, AttachmentList, type AttachmentListProps, AttachmentPreview, type AttachmentPreviewProps, AttachmentUploader, type AttachmentUploaderProps, AttendanceCalendar, type AttendanceCalendarProps, type AttendanceRecord, type AttendanceStatus, AudienceSegmentBuilder, type AudienceSegmentBuilderProps, AudioRecorder, type AudioRecorderProps, type AuditAction, type AuditChangeEntry, AuditLog, type AuditLogEntry$1 as AuditLogEntry, type AuditLogProps, type AuditLogStatus, AuditSidebar, type AuditSidebarProps, AuditTrailDiff, type AuditTrailDiffProps, AuthGuard, type AuthGuardProps, AvatarGroup, type AvatarUser, type BOMItem, type BOMItemType, BOMTreeEditor, type BOMTreeEditorProps, BadgeDelta, type BadgeDeltaProps, type BannerPriority, BarChart, type BarChartProps, BarList, BarListCard, type BarListCardProps, type BarListProps, BarcodeScanner, type BarcodeScannerProps, BatchGenealogyTree, type BatchGenealogyTreeProps, type BatchNode$1 as BatchNode, BatchPrintDialog, type BatchPrintDialogProps, BatchSelector, type BatchSelectorProps, BillFooter, type BillFooterProps, BillHeader, type BillHeaderField, type BillHeaderProps, BillPage, type BillPageProps, BillPrintTemplate, type BillPrintTemplateProps, type BillStatus, BillStatusBar, type BillStatusBarProps, type BillStatusStep, BillTimeline, type BillTimelineProps, BillTodoList, type BillTodoListProps, type BizStatus, BizStatusTag, type BizStatusTagProps, BOMTreeEditor as BomTreeEditor, type BreadcrumbItemType, type BrowseColumn, BrowseDialog, type BrowseDialogProps, type BrowseLoadParams, type BrowseLoadResult, type BrowseTreeNode, BudgetAllocator, type BudgetAllocatorProps, BudgetOverview, type BudgetOverviewProps, BudgetPacingCard, type BudgetPacingCardProps, type BudgetPacingStatus, type BudgetPacingTexts, BulkActionsToolbar, type BulkImportStep, type BulkImportValidationRow, BulkImportWizard, type BulkImportWizardProps, CATEGORY_LABELS, CalendarView, type CalendarViewProps, Callout, type CalloutProps, CampaignCalendar, type CampaignCalendarEvent, type CampaignCalendarProps, CampaignCard, type CampaignCardProps, type CampaignMetric, type CampaignStatus, CampaignStatusTag, type CampaignStatusTagProps, CategoryBar, type CategoryBarProps, type CategoryOption, type ChannelOption, ChannelPicker, type ChannelPickerProps, type ChannelType, ChartCard, type ChartCardProps, ChartContainer, ChartSuite, type ChartSuiteProps, ChartTooltip, ChatAgentStatus, type ChatAgentStatusProps, ChatArtifactPanel, type ChatArtifactPanelProps, ChatBranch, type ChatBranchProps, ChatCardMessage, type ChatCardMessageProps, ChatCodeBlock, type ChatCodeBlockProps, ChatCommandMenu, type ChatCommandMenuProps, ChatContextPanel, type ChatContextPanelProps, ChatConversation, type ChatConversationProps, ChatConversationSearch, type ChatConversationSearchProps, ChatFeedback, type ChatFeedbackProps, ChatHeader, type ChatHeaderProps, ChatImageGallery, type ChatImageGalleryProps, ChatInputToolbar, type ChatInputToolbarProps, ChatMarkdownRenderer, type ChatMarkdownRendererProps, ChatMentionPicker, type ChatMentionPickerProps, ChatMessageActions, type ChatMessageActionsProps, ChatMessageBubble, type ChatMessageBubbleProps, ChatMessageGroup, type ChatMessageGroupProps, ChatMessageInput, type ChatMessageInputProps, ChatModelSwitcher, type ChatModelSwitcherProps, ChatSharedLink, type ChatSharedLinkProps, ChatShell, type ChatShellProps, ChatSidebar, type ChatSidebarProps, ChatStreamingText, type ChatStreamingTextProps, ChatSuggestReplies, type ChatSuggestRepliesProps, ChatThinkingBlock, type ChatThinkingBlockProps, ChatToolCallBlock, type ChatToolCallBlockProps, ChatVoiceMessage, type ChatVoiceMessageProps, CheckoutBar, type CheckoutBarProps, Chip, CityBrowse, type CityBrowseItem, type CityBrowseProps, CodeBlock, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, ColorBoard, type ColorBoardProps, type ColorFormat, ColorTag, type ColorTagColor, type ColorTagProps, type Column, type ColumnDef$1 as ColumnDef, type ColumnMapping, type CommandGroup, type CommandItem, CommandPalette, CommissionCalculator, type CommissionCalculatorProps, type CommissionDeal, type CommissionTier, CompanyBrowse, type CompanyBrowseItem, type CompanyBrowseProps, CompanyPicker, type CompanyPickerProps, ComplianceChecklist, type ComplianceChecklistProps, type ComplianceItem, type ComplianceItemStatus, ConfirmDialog, ConfirmDialogContainer, type ContractField, type ContractMetadata, ContractTemplate, type ContractTemplateProps, CookieBanner, CostCenterPicker, type CostCenterPickerProps, CouponCard, type CouponCardProps, CreativePreview, type CreativePreviewMode, type CreativePreviewProps, type CreativePreviewViewport, CronEditor, type CronEditorProps, type CronSegment, type FormField as CrudFormField, CrudPage, type CrudPageProps, CrudToolbar, type CrudToolbarAction, type CrudToolbarProps, type CurrencyOption, Customer360Card, type Customer360CardProps, type CustomerActivity, CustomerBrowse, type CustomerBrowseItem, type CustomerBrowseProps, type CustomerContact, type CustomerMetric, CustomerPicker, type CustomerPickerProps, DashboardCanvas, type DashboardCanvasProps, type DashboardConfig, DashboardDesigner, type DashboardDesignerProps, type DashboardFilter, DashboardGrid, type DashboardGridProps, type DashboardWidget, type DashboardWidgetType, DataTable, DateRangePicker, type Deal, DeltaBar, type DeltaBarProps, DepartmentPicker, type DepartmentPickerProps, type DependencyType, type DictFetcher, type DictOption, DictSelect, type DictSelectProps, type DiffChangeType, type DiffColumn, type DiffRowStatus, DiffViewer, type DiffViewerItem, type DiffViewerProps, DiffViewerTable, type DiffViewerTableProps, DistributorPicker, type DistributorPickerProps, DockPanel, type DockPanelProps, DonutCard, type DonutCardProps, DonutChart, type DonutChartProps, DynamicFormBuilder, type DynamicFormBuilderProps, EditToolbar, type EditToolbarProps, EditableTreeTable, type EditableTreeTableColumn, type EditableTreeTableProps, type Employee, EmployeePicker, type EmployeePickerProps, type EquipmentAction, EquipmentCard, type EquipmentCardProps, type EquipmentMetric, type EquipmentStatus, ErrorBoundary, type EventOption, type ExistingBooking, type ExpenseLine, ExpenseLineEditor, type ExpenseLineEditorProps, ExperimentSummary, type ExperimentSummaryProps, type ExperimentVariant, ExportButton, type ExportFormat, FeatureTour, type FeatureTourProps, FeeTypeBrowse, type FeeTypeBrowseItem, type FeeTypeBrowseProps, FieldMask, type FieldMaskProps, type FieldOption, FileCard, type FileCardProps, FileUploadManager, FilterBar, type FilterBarProps, FilterBuilder, type FilterField, FlowTracker, type FlowTrackerProps, Forbidden, type ForbiddenProps, FormDesigner, type FormDesignerField, type FormDesignerProps, FormDesignerRuntime, type FormDesignerRuntimeProps, FormulaEditor, type FormulaEditorProps, type FormulaFunction, type FormulaVariable, FullPageLoader, FunnelChart, type FunnelChartProps, GanttChart, GanttChartPro, type GanttChartProProps, type GanttChartProps, type GanttDependency, type GanttTask, Gauge, GaugeChart, type GaugeChartProps, GlobalLoadingContext, type GlobalLoadingContextValue, GlobalLoadingProvider, type GlobalLoadingProviderProps, HeatmapCalendar, HeatmapChart, type HeatmapChartProps, I18nFormField, type I18nFormFieldProps, ImMessage, type ImMessageProps, ImageCropper, type ImageCropperProps, ImageGallery, type ImageGalleryProps, ImportDialog, type ImportDialogProps, ImportErrorTable, type ImportErrorTableProps, ImportMappingWizard, type ImportMappingWizardProps, InlineEdit, type InlineEditProps, InlineSparkline, type InspectionField, type InspectionFieldType, type InspectionResult, type InspectionTemplate, type InventoryAlertItem, InventoryAlertList, type InventoryAlertListProps, InventorySnapshot, type InventorySnapshotProps, type InventoryTransaction, InviteLink, type InviteLinkProps, InvoiceManager, type InvoiceManagerProps, InvoiceSummary, type InvoiceSummaryProps, IotSensorGrid, type IotSensorGridProps, JournalEntryEditor, type JournalEntryEditorProps, type JournalEntryLine, JsonEditor, type JsonEditorProps, JsonViewer, KPICard, KanbanColumn, type KanbanColumnProps, KPICard as KpiCard, LabelDesigner, type LabelDesignerProps, type LabelField, type LabelFieldType, type LabelSize, LabeledField, type LanguageOption, LanguageSwitcher, LeadPipelineBoard, type LeadPipelineBoardProps, type LeaveBalance, LeaveRequestForm, type LeaveRequestFormProps, type LeaveType, LineChart, type LineChartProps, type LineColumn, LineEditor, type LineColumn as LineEditorColumn, type LineEditorProps, LoadingPage, type LocaleTranslation, type LogEntry, LogViewer, type LogViewerProps, type MaintenanceEntry, MaintenanceLog, type MaintenanceLogProps, type MaintenanceStatus, type MaintenanceType, MapChart, type MapChartProps, MapMarkerCluster as MapMarker, MapMarkerCluster, type MapMarkerClusterProps, type MapMarkerData, MapTrack, type MapTrackPoint, type MapTrackProps, MapView, type MapViewProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownMode, MarkdownViewerBiz, type MarkdownViewerBizProps, MarketingActivityForm, type MarketingActivityFormProps, type MarketingChannel, type MaskRule, MasterEditTemplate, type MasterEditTemplateProps, MasterListTemplate, type MasterListTemplateProps, MediaRecorderComponent as MediaRecorder, type MediaRecorderProps, type MeetingRoom, MeetingRoomBooking, type MeetingRoomBookingProps, MessageList, type MessageListProps, MetricTrend, MobileActionSheet, type MobileActionSheetProps, MobileCamera, type MobileCameraProps, MobileGeolocation, type MobileGeolocationProps, MobileInfiniteScroll, type MobileInfiniteScrollProps, MobileListItem, type MobileListItemProps, MobilePageShell, type MobilePageShellProps, MobilePicker, type MobilePickerProps, MobileSignature, type MobileSignatureProps, MobileTabBar, type MobileTabBarProps, MultiCurrencyInput, type MultiCurrencyInputProps, MultiSelect, type MultiSelectOption, type NotificationRule, NotificationRuleBuilder, type NotificationRuleBuilderProps, OaBridge, type OaBridgeProps, OeeDashboard, type OeeDashboardProps, type OeeEquipment, type OeeLoss, OperationLog, type OperationLogProps, type Operator, type OrderLine, OrderLineEditor, type OrderLineEditorProps, OrgChart, type OrgChartProps, type OrgEdge, type OrgMember, type OrgNode$1 as OrgNode, OrgPicker, type OrgPickerProps, OrgTreeSelect, type OrgTreeSelectProps, OverviewPage, type OverviewPageProps, PDFViewer, type PDFViewerProps, type POLineItem, PageHeader, type PageHeaderProps, PasteUpload, type PasteUploadProps, type PaymentMethod, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentResult, type PaymentResultProps, PaymentSchedule, type PaymentScheduleProps, PerformanceRankTable, type PerformanceRankTableProps, PermissionButton, type PermissionButtonProps, PermissionMatrix, type PermissionMatrixProps, type PermissionMatrixResource, type PermissionMatrixRole, type PermissionMatrixValue, PermissionWrapper, type PermissionWrapperProps, PhotoAudit, type PhotoAuditProps, PieChart, type PieChartProps, type PipelineStage, PivotTable, PolicyLineEditor, type PolicyLineEditorProps, PoolTrackerTable, type PoolTrackerTableProps, PreferencePanel, type PreferencePanelProps, PriceAdjustBrowse, type PriceAdjustBrowseItem, type PriceAdjustBrowseProps, PrintButton, type PrintButtonProps, PrintService, type PrintServiceJob, type PrintServiceProps, PrintTemplateBuilder, type PrintTemplateBuilderProps, type PrintTemplateField, type PrintTemplateModel, type ProColumn, type SavedView as ProSavedView, ProTable, type ProTableProps, ProductBrowse, type ProductBrowseItem, type ProductBrowseProps, ProductCategoryPicker, type ProductCategoryPickerProps, PromotionRuleCard, type PromotionRuleCardProps, PromotionRuleEditor, type PromotionRuleEditorProps, PromptDialog, PurchaseOrderEditor, type PurchaseOrderEditorProps, QualityInspectionForm, type QualityInspectionFormProps, QuickEntryGrid, type QuickEntryGridProps, type QuotationLine, QuotationLineEditor, type QuotationLineEditorProps, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, RadialProgress, type RatingTier, RebutNodeSelect, type RebutNodeSelectProps, ReconciliationLineEditor, type ReconciliationLineEditorProps, type ReconciliationRow, ReconciliationSummary, type ReconciliationSummaryProps, RedPacket, type RedPacketProps, RegionPicker, type RegionPickerProps, type RemoteFetcher, type RemoteOption, RemoteSelect, type RemoteSelectProps, ReportBuilder, type ReportBuilderProps, type ReportWidget, type ReportWidgetDefinition, type ReportWidgetType, ResourceSchedule, type ResourceScheduleProps, ResponsivePreview, type ResponsivePreviewProps, RichTextEditor, type RichTextEditorProps, RoleAssignment, type RoleAssignmentPrincipal, type RoleAssignmentProps, type RoleAssignmentRole, type RoleAssignmentValue, type RuleCondition, RuleEditor, type RuleEditorProps, type RuleItem, type RuleRecipient, type RuntimeField, SPCControlChart, type SPCControlChartProps, type SPCSample, type SQLDialect, STATUS_CONFIG, SalesOrderBrowse, type SalesOrderBrowseItem, type SalesOrderBrowseProps, SalesTargetEditor, type SalesTargetEditorProps, SankeyChart, type SankeyChartProps, type SavedFilter, SavedFilters, type SavedSearch, ScatterChart, type ScatterChartProps, type ScorecardCriterion, ScreenCapture, type ScreenCaptureProps, type SealRecord, SealStampRegistry, type SealStampRegistryProps, type SealStatus, type SealType, type SealUsageLog, SearchTable, type SearchTableProps, type SegmentMode, type Sensor, type SensorStatus, SerialNumberManager, type SerialNumberManagerProps, SettlementStatusTag, type SettlementStatusTagProps, type ShiftAssignment, ShiftCalendar, type ShiftCalendarProps, type ShiftType, ShippingWayBrowse, type ShippingWayBrowseItem, type ShippingWayBrowseProps, SignActionButton, type SignActionButtonProps, type SkuOption, SkuPicker, type SkuPickerProps, SocialShare, type SocialShareProps, type SourceColumn, SparkChart, type SparkChartProps, Sparkline, SPCControlChart as SpcControlChart, SqlEditor, type SqlEditorProps, StatCard, StatCardRow, type StatCardRowProps, StatCardWithDelta, type StatCardWithDeltaProps, StatCardWithSparkline, type StatCardWithSparklineProps, type Status, StatusBadge, type StatusBadgeProps, type StatusMapping, type StatusPreset, StatusTag, type StatusTagProps, StockTransferDialog, type StockTransferDialogProps, SubformTabs, type SubformTabsProps, type Supplier, SupplierScorecard, type SupplierScorecardProps, TabCrudPage, type TabCrudPageProps, TabPin, type TabPinProps, type TargetField, TargetProgress, type TargetProgressProps, TaskHistory, type TaskHistoryProps, TaskListTable, type TaskListTableProps, TaskProgress, type TaskProgressProps, type TaskStatus, TaxDetailTable, type TaxDetailTableProps, TemplateDownload, type TemplateDownloadItem, type TemplateDownloadProps, type TemplateDownloadType, TerritoryMap, type TerritoryMapProps, type TerritoryRegion, TimelineView, type TimelineViewProps, TodoListTable, type TodoListTableProps, Tracking, type TrackingProps, type TransferLine, TreeCrudPage, type TreeCrudPageProps, TreeTable, type TreeTableColumn, type TreeTableProps, TreemapChart, type TreemapChartProps, UTMBuilder, type UTMBuilderProps, type UTMBuilderValue, type Unit, type UnitCategory, UnitConverter, type UnitConverterProps, type UserItem, UserPicker, type UserPickerProps, UTMBuilder as UtmBuilder, type Vehicle, VehicleBooking, type VehicleBookingEntry, type VehicleBookingProps, VersionHistory, type VersionHistoryItem, type VersionHistoryProps, WarehouseBrowse, type WarehouseBrowseItem, type WarehouseBrowseProps, WarehousePicker, type WarehousePickerProps, WaterfallChart, type WaterfallChartProps, WorkOrderCard, type WorkOrderCardProps, type WorkOrderOperation, type WorkOrderStatus, WorkflowDesigner, type WorkflowDesignerProps, type WorkflowEdge, type WorkflowNode, WorkflowPreview, type WorkflowPreviewProps, WriteoffBrowse, type WriteoffBrowseItem, type WriteoffBrowseProps, WriteoffFlow, type WriteoffFlowProps, type ZoomLevel, brandColors, builtInCategories, colorConfig, computeResult, convertValue, defaultChannelOptions, defaultColors, defaultStatusMap, formatResult, safeEvaluate, setDictFetcher, statusColors, statusConfig, useConfirm, useGlobalLoading, withPermission };
|