@omnikit-js/ui 0.9.46 → 0.9.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-LIZKLYHH.js +2205 -0
- package/dist/chunk-LIZKLYHH.js.map +1 -0
- package/dist/{chunk-3AQCVPQI.js → chunk-SRPYYSJZ.js} +694 -34
- package/dist/chunk-SRPYYSJZ.js.map +1 -0
- package/dist/components/client/index.d.ts +61 -7
- package/dist/components/client/index.js +23 -35
- package/dist/components/client/index.js.map +1 -1
- package/dist/components/server/index.d.ts +2 -2
- package/dist/components/server/index.js +2 -2
- package/dist/index-Bp2ZenHB.d.ts +376 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{types-CnhWTSXv.d.ts → types-DAbudCAC.d.ts} +5 -3
- package/package.json +1 -1
- package/dist/chunk-3AQCVPQI.js.map +0 -1
- package/dist/chunk-FNZCGWVE.js +0 -531
- package/dist/chunk-FNZCGWVE.js.map +0 -1
- package/dist/index-DKuejSvz.d.ts +0 -83
package/dist/index-DKuejSvz.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BillingProps } from './types-CnhWTSXv.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* OmniKit API shared types
|
|
6
|
-
*/
|
|
7
|
-
interface QueryOptions {
|
|
8
|
-
filter?: Record<string, any> | FilterExpression;
|
|
9
|
-
sort?: string;
|
|
10
|
-
limit?: number;
|
|
11
|
-
offset?: number;
|
|
12
|
-
}
|
|
13
|
-
interface FilterExpression {
|
|
14
|
-
operator?: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'like' | 'in';
|
|
15
|
-
value: any;
|
|
16
|
-
}
|
|
17
|
-
interface QueryResponse<T = any> {
|
|
18
|
-
success: boolean;
|
|
19
|
-
data: T[];
|
|
20
|
-
total?: number;
|
|
21
|
-
error?: string;
|
|
22
|
-
}
|
|
23
|
-
interface SingleRecordResponse<T = any> {
|
|
24
|
-
success: boolean;
|
|
25
|
-
data: T;
|
|
26
|
-
error?: string;
|
|
27
|
-
}
|
|
28
|
-
interface MutationResponse {
|
|
29
|
-
success: boolean;
|
|
30
|
-
data?: any;
|
|
31
|
-
error?: string;
|
|
32
|
-
}
|
|
33
|
-
interface OmniKitConfig {
|
|
34
|
-
baseUrl: string;
|
|
35
|
-
apiKey?: string;
|
|
36
|
-
jwt?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface ColumnDefinition<T = any> {
|
|
40
|
-
key: string;
|
|
41
|
-
label?: string;
|
|
42
|
-
render?: (value: any, row: T) => React.ReactNode;
|
|
43
|
-
sortable?: boolean;
|
|
44
|
-
className?: string;
|
|
45
|
-
}
|
|
46
|
-
type Column<T = any> = string | ColumnDefinition<T>;
|
|
47
|
-
interface DataListProps<T = any> {
|
|
48
|
-
/** Table name to query */
|
|
49
|
-
table: string;
|
|
50
|
-
/** OmniKit API base URL (e.g., http://localhost:3000/omnikit) */
|
|
51
|
-
baseUrl: string;
|
|
52
|
-
/** API Key for authentication */
|
|
53
|
-
apiKey?: string;
|
|
54
|
-
/** JWT token for authentication (alternative to apiKey) */
|
|
55
|
-
jwt?: string;
|
|
56
|
-
/** Columns to display */
|
|
57
|
-
columns: Column<T>[];
|
|
58
|
-
/** Key field for row identification (defaults to 'id') */
|
|
59
|
-
keyField?: keyof T;
|
|
60
|
-
/** Query options (filter, sort, limit, offset) */
|
|
61
|
-
filter?: QueryOptions['filter'];
|
|
62
|
-
sort?: string;
|
|
63
|
-
limit?: number;
|
|
64
|
-
offset?: number;
|
|
65
|
-
/** Custom class names */
|
|
66
|
-
className?: string;
|
|
67
|
-
headerClassName?: string;
|
|
68
|
-
rowClassName?: string | ((row: T) => string);
|
|
69
|
-
cellClassName?: string | ((column: Column<T>, row: T) => string);
|
|
70
|
-
/** Messages */
|
|
71
|
-
emptyMessage?: string;
|
|
72
|
-
errorMessage?: string;
|
|
73
|
-
/** Loading state (for client-side refetching) */
|
|
74
|
-
loading?: boolean;
|
|
75
|
-
/** Custom row click handler (converts to client component behavior) */
|
|
76
|
-
onRowClick?: (row: T) => void;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
declare function DataList<T extends Record<string, any>>({ table, baseUrl, apiKey, jwt, columns, keyField, filter, sort, limit, offset, className, emptyMessage, errorMessage, }: DataListProps<T>): Promise<react_jsx_runtime.JSX.Element>;
|
|
80
|
-
|
|
81
|
-
declare function Billing(props: BillingProps): Promise<react_jsx_runtime.JSX.Element>;
|
|
82
|
-
|
|
83
|
-
export { Billing as B, type Column as C, DataList as D, type FilterExpression as F, type MutationResponse as M, type OmniKitConfig as O, type QueryOptions as Q, type SingleRecordResponse as S, type QueryResponse as a, type DataListProps as b, type ColumnDefinition as c };
|