react-toolkits 2.22.8 → 2.22.10
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 +12 -0
- package/README.md +350 -26
- package/lib/chunk-4GULXGNG.js +1 -0
- package/lib/chunk-7NM3DK6A.js +1 -0
- package/lib/chunk-FXPGR372.js +0 -0
- package/lib/chunk-HZHE6R72.js +1 -0
- package/lib/chunk-JIBSYGRB.js +1 -0
- package/lib/chunk-JLHCYGWL.js +1 -0
- package/lib/chunk-JTDKSGJR.js +1 -0
- package/lib/chunk-LRMME3YZ.js +2 -0
- package/lib/chunk-MSKNHKMD.js +1 -0
- package/lib/chunk-O7AQM3CB.js +1 -0
- package/lib/chunk-OLM4QNJB.js +1 -0
- package/lib/chunk-RITI5HRV.js +1 -0
- package/lib/chunk-SJK2ZPEL.js +1 -0
- package/lib/chunk-WHOTHZUW.js +1 -0
- package/lib/chunk-X6ZI7RL7.js +1 -0
- package/lib/chunk-XQERUQGQ.js +1 -0
- package/lib/chunk-XWIQENHQ.js +2 -0
- package/lib/chunk-YIJSACFM.js +1 -0
- package/lib/chunk-ZCPZYTPN.js +1 -0
- package/lib/components.d.ts +429 -0
- package/lib/components.js +1 -0
- package/lib/constants.d.ts +11 -0
- package/lib/constants.js +1 -0
- package/lib/createMenuItem-HUQG2HQY.js +1 -0
- package/lib/hooks.d.ts +108 -0
- package/lib/hooks.js +1 -0
- package/lib/index.d.ts +21 -789
- package/lib/index.js +1 -2
- package/lib/menuItemList-AS6ZDOTZ.js +1 -0
- package/lib/modules.d.ts +7 -0
- package/lib/modules.js +1 -0
- package/lib/pages.d.ts +20 -0
- package/lib/pages.js +1 -0
- package/lib/roleDetail-2QUBILZK.js +1 -0
- package/lib/roleList-KWWVOLWJ.js +1 -0
- package/lib/services.d.ts +196 -0
- package/lib/services.js +1 -0
- package/lib/types-DVKf5poe.d.ts +19 -0
- package/lib/types.d.ts +23 -0
- package/lib/types.js +1 -0
- package/lib/updateMenuItem-7SUIOBXS.js +1 -0
- package/lib/userDetail-TXGT2W7X.js +1 -0
- package/lib/userList-ELLBMK76.js +1 -0
- package/lib/utils.d.ts +6 -0
- package/lib/utils.js +1 -0
- package/locale/chunk-GHHHKGNN.js +1 -0
- package/locale/hooks.js +1 -1
- package/locale/index.js +1 -1
- package/package.json +35 -3
package/lib/index.d.ts
CHANGED
|
@@ -1,789 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
afterClose?: () => void | Promise<void>;
|
|
23
|
-
footer?: ReactNode | null;
|
|
24
|
-
confirmText?: string;
|
|
25
|
-
cancelText?: string;
|
|
26
|
-
confirmButtonProps?: ComponentProps<typeof Button>;
|
|
27
|
-
cancelButtonProps?: ComponentProps<typeof Button>;
|
|
28
|
-
}
|
|
29
|
-
declare function useDrawer(props: UseDrawerProps): {
|
|
30
|
-
id: number;
|
|
31
|
-
show: () => Promise<void>;
|
|
32
|
-
hide: () => void;
|
|
33
|
-
confirmLoading: boolean;
|
|
34
|
-
drawer: react_jsx_runtime.JSX.Element;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
interface Permission {
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
route: string;
|
|
41
|
-
method?: string;
|
|
42
|
-
}
|
|
43
|
-
interface MenuListItem {
|
|
44
|
-
id: number;
|
|
45
|
-
category: string;
|
|
46
|
-
is_common: boolean;
|
|
47
|
-
is_model: boolean;
|
|
48
|
-
model_name: string;
|
|
49
|
-
permissions: Permission[];
|
|
50
|
-
front_route: string;
|
|
51
|
-
order: number;
|
|
52
|
-
scheme: string;
|
|
53
|
-
ext: string;
|
|
54
|
-
}
|
|
55
|
-
type RecursivePartial<T> = NonNullable<T> extends object ? {
|
|
56
|
-
[P in keyof T]?: NonNullable<T[P]> extends (infer U)[] ? RecursivePartial<U>[] : NonNullable<T[P]> extends object ? RecursivePartial<T[P]> : T[P];
|
|
57
|
-
} : T;
|
|
58
|
-
|
|
59
|
-
interface UseFormDrawerProps<Values extends AnyObject = AnyObject, ExtraValues = any> extends Omit<UseDrawerProps, 'onConfirm' | 'content' | 'onShow' | 'afterClose'> {
|
|
60
|
-
formProps?: Omit<FormProps, 'form'>;
|
|
61
|
-
form?: FormInstance<Values>;
|
|
62
|
-
content?: ReactNode | ((extraValues: ExtraValues, operation: UseDrawerOperation) => ReactNode);
|
|
63
|
-
onConfirm?: (values: Values, extraValues: ExtraValues) => void | Promise<void>;
|
|
64
|
-
onSuccess?: () => void;
|
|
65
|
-
afterClose?: (form: FormInstance<Values>) => void;
|
|
66
|
-
}
|
|
67
|
-
declare function useFormDrawer<Values extends AnyObject = AnyObject, ExtraValues = any>(props: UseFormDrawerProps<Values, ExtraValues>): {
|
|
68
|
-
id: number;
|
|
69
|
-
show: (options?: {
|
|
70
|
-
initialValues?: RecursivePartial<Values>;
|
|
71
|
-
extraValues?: ExtraValues;
|
|
72
|
-
}) => void;
|
|
73
|
-
hide: () => void;
|
|
74
|
-
drawer: react_jsx_runtime.JSX.Element;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
interface DrawerState {
|
|
78
|
-
open: Map<number, boolean>;
|
|
79
|
-
usedIds: Set<number>;
|
|
80
|
-
isOpen: (uuid: number) => boolean;
|
|
81
|
-
show: (uuid: number) => void;
|
|
82
|
-
hide: (uuid: number) => void;
|
|
83
|
-
hideAll: () => void;
|
|
84
|
-
checkUniqueness: (uuid: number) => boolean;
|
|
85
|
-
registerIds: (uuid: number) => boolean;
|
|
86
|
-
cleanup: (uuid: number) => void;
|
|
87
|
-
}
|
|
88
|
-
declare const useDrawerStore: zustand.UseBoundStore<zustand.StoreApi<DrawerState>>;
|
|
89
|
-
|
|
90
|
-
interface DynamicTagsProps {
|
|
91
|
-
initialTags?: string[];
|
|
92
|
-
addable?: boolean;
|
|
93
|
-
removable?: boolean;
|
|
94
|
-
addCallback?: (addedTag: string) => Promise<boolean>;
|
|
95
|
-
removeCallback?: (removedTag: string) => Promise<boolean>;
|
|
96
|
-
}
|
|
97
|
-
declare const DynamicTags: FC<DynamicTagsProps>;
|
|
98
|
-
|
|
99
|
-
type ExpandableParagraphProps = Omit<ParagraphProps, 'ellipsis' | 'className'>;
|
|
100
|
-
declare const ExpandableParagraph: FC<ExpandableParagraphProps>;
|
|
101
|
-
|
|
102
|
-
interface FilterFormWrapperProps extends PropsWithChildren {
|
|
103
|
-
onConfirm?: () => void | Promise<void>;
|
|
104
|
-
onReset?: () => void;
|
|
105
|
-
extras?: {
|
|
106
|
-
key: Key;
|
|
107
|
-
children: ReactNode;
|
|
108
|
-
}[];
|
|
109
|
-
isConfirming?: boolean;
|
|
110
|
-
buttonsAlign?: 'left' | 'right' | 'bottom';
|
|
111
|
-
showReset?: boolean;
|
|
112
|
-
}
|
|
113
|
-
declare const FilterFormWrapper: (props: FilterFormWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
114
|
-
|
|
115
|
-
interface HighlightProps extends PropsWithChildren {
|
|
116
|
-
texts: Array<string | number>;
|
|
117
|
-
}
|
|
118
|
-
declare const Highlight: (props: HighlightProps) => react_jsx_runtime.JSX.Element;
|
|
119
|
-
|
|
120
|
-
interface InfiniteListPayload<Values = any> {
|
|
121
|
-
page?: number;
|
|
122
|
-
formValue?: Values;
|
|
123
|
-
}
|
|
124
|
-
interface InfiniteListRequestConfig<Values = any> {
|
|
125
|
-
url: string;
|
|
126
|
-
method?: 'GET' | 'POST';
|
|
127
|
-
body?: FormData | Record<string | number, any> | ((payload: InfiniteListPayload<Values>, pageParam: any) => FormData | Record<string | number, any>);
|
|
128
|
-
params?: Record<string | number, any> | ((payload: InfiniteListPayload<Values>, pageParam: any) => Record<string | number, any>);
|
|
129
|
-
headers?: Record<string, string> | ((form: FormInstance<Values>) => Record<string, string>);
|
|
130
|
-
cacheTime?: number;
|
|
131
|
-
staleTime?: number;
|
|
132
|
-
}
|
|
133
|
-
declare enum InfiniteListAction {
|
|
134
|
-
Confirm = 0,
|
|
135
|
-
Reset = 1,
|
|
136
|
-
LoadMore = 2,
|
|
137
|
-
Init = 3
|
|
138
|
-
}
|
|
139
|
-
interface InfiniteListDataAdapter<Item = any, Values = any, Data = any> {
|
|
140
|
-
items?: (data: Data[] | undefined, form: FormInstance<Values>) => Item[] | undefined;
|
|
141
|
-
hasMore?: (lastPage: Data | undefined, allPages: Data[]) => boolean;
|
|
142
|
-
nextPageParam?: (lastPage: Data | undefined, allPages: Data[], pageParam: any) => any;
|
|
143
|
-
}
|
|
144
|
-
interface InfiniteListRef<Item = any, Values = any, Data = any> {
|
|
145
|
-
data: Data[] | undefined;
|
|
146
|
-
dataSource: Item[] | undefined;
|
|
147
|
-
form: FormInstance<Values>;
|
|
148
|
-
refetch: () => void;
|
|
149
|
-
fetchNextPage: () => void;
|
|
150
|
-
hasNextPage: boolean;
|
|
151
|
-
isFetchingNextPage: boolean;
|
|
152
|
-
}
|
|
153
|
-
interface InfiniteListProps<Item, Values, Data> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'>, Pick<FilterFormWrapperProps, 'buttonsAlign' | 'showReset'> {
|
|
154
|
-
identifier: string;
|
|
155
|
-
code?: string;
|
|
156
|
-
form?: FormInstance<Values>;
|
|
157
|
-
refreshInterval?: number;
|
|
158
|
-
request: InfiniteListRequestConfig<Values>;
|
|
159
|
-
tableExtra?: ReactNode | ((form: FormInstance<Values>, data?: Data[]) => ReactNode);
|
|
160
|
-
renderForm?: (form: FormInstance<Values>) => ReactElement;
|
|
161
|
-
afterSuccess?: (action: InfiniteListAction, form: FormInstance<Values>, data?: Data[]) => void;
|
|
162
|
-
afterError?: (error: Error, action: InfiniteListAction, form: FormInstance<Values>) => void;
|
|
163
|
-
dataAdapter?: InfiniteListDataAdapter<Item, Values, Data>;
|
|
164
|
-
initialPageParam?: any;
|
|
165
|
-
footer?: (data: Data[] | undefined) => ReactNode;
|
|
166
|
-
}
|
|
167
|
-
declare const InfiniteList: <Item extends AnyObject = AnyObject, Values extends object | undefined = undefined, Data = any>(props: InfiniteListProps<Item, Values, Data> & {
|
|
168
|
-
ref?: Ref<InfiniteListRef<Item, Data>>;
|
|
169
|
-
}) => ReactElement;
|
|
170
|
-
|
|
171
|
-
type InfiniteQueryRefetchFunction = () => void | Promise<unknown>;
|
|
172
|
-
type InfiniteQueryFetchNextPageFunction = () => void | Promise<unknown>;
|
|
173
|
-
interface InfiniteListInstance {
|
|
174
|
-
id: string;
|
|
175
|
-
url: string;
|
|
176
|
-
queryKey: readonly unknown[];
|
|
177
|
-
payload: InfiniteListPayload;
|
|
178
|
-
refetch: InfiniteQueryRefetchFunction;
|
|
179
|
-
fetchNextPage: InfiniteQueryFetchNextPageFunction;
|
|
180
|
-
}
|
|
181
|
-
interface InfiniteListState {
|
|
182
|
-
instances: Map<string, InfiniteListInstance>;
|
|
183
|
-
registerInstance(id: string, url: string, queryKey: readonly unknown[], refetch: InfiniteQueryRefetchFunction, fetchNextPage: InfiniteQueryFetchNextPageFunction): void;
|
|
184
|
-
unregisterInstance(id: string): void;
|
|
185
|
-
updatePayload(id: string, payload: InfiniteListPayload): void;
|
|
186
|
-
getPayload(id: string): InfiniteListPayload;
|
|
187
|
-
refetch(id: string, payload?: InfiniteListPayload): Promise<void>;
|
|
188
|
-
fetchNextPage(id: string): Promise<void>;
|
|
189
|
-
getInstance(id: string): InfiniteListInstance | undefined;
|
|
190
|
-
getAllInstances(): InfiniteListInstance[];
|
|
191
|
-
}
|
|
192
|
-
declare const useInfiniteListStore: zustand.UseBoundStore<Omit<Omit<zustand.StoreApi<InfiniteListState>, "setState"> & {
|
|
193
|
-
setState(partial: InfiniteListState | Partial<InfiniteListState> | ((state: InfiniteListState) => InfiniteListState | Partial<InfiniteListState>), replace?: false | undefined, action?: (string | {
|
|
194
|
-
[x: string]: unknown;
|
|
195
|
-
[x: number]: unknown;
|
|
196
|
-
[x: symbol]: unknown;
|
|
197
|
-
type: string;
|
|
198
|
-
}) | undefined): void;
|
|
199
|
-
setState(state: InfiniteListState | ((state: InfiniteListState) => InfiniteListState), replace: true, action?: (string | {
|
|
200
|
-
[x: string]: unknown;
|
|
201
|
-
[x: number]: unknown;
|
|
202
|
-
[x: symbol]: unknown;
|
|
203
|
-
type: string;
|
|
204
|
-
}) | undefined): void;
|
|
205
|
-
}, "subscribe"> & {
|
|
206
|
-
subscribe: {
|
|
207
|
-
(listener: (selectedState: InfiniteListState, previousSelectedState: InfiniteListState) => void): () => void;
|
|
208
|
-
<U>(selector: (state: InfiniteListState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
209
|
-
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
210
|
-
fireImmediately?: boolean;
|
|
211
|
-
} | undefined): () => void;
|
|
212
|
-
};
|
|
213
|
-
}>;
|
|
214
|
-
|
|
215
|
-
type MenuItemType2 = Merge<MenuItemType, {
|
|
216
|
-
route?: string;
|
|
217
|
-
}>;
|
|
218
|
-
type SubMenuType2 = Merge<SubMenuType, {
|
|
219
|
-
children?: NavMenuItem[];
|
|
220
|
-
}>;
|
|
221
|
-
type MenuItemGroupType2 = Merge<MenuItemGroupType, {
|
|
222
|
-
children?: NavMenuItem[];
|
|
223
|
-
}>;
|
|
224
|
-
type NavMenuItem = Exclude<ItemType, SubMenuType | MenuItemGroupType | MenuItemType> | MenuItemType2 | SubMenuType2 | MenuItemGroupType2;
|
|
225
|
-
|
|
226
|
-
interface NavMenuProps {
|
|
227
|
-
items?: NavMenuItem[];
|
|
228
|
-
theme?: MenuProps['theme'];
|
|
229
|
-
loading?: boolean;
|
|
230
|
-
}
|
|
231
|
-
declare const NavMenu: react.NamedExoticComponent<NavMenuProps>;
|
|
232
|
-
|
|
233
|
-
type Area = 'all' | 'cn' | 'global';
|
|
234
|
-
type ScreenOrientation = 0 | 1;
|
|
235
|
-
interface Game {
|
|
236
|
-
id: number;
|
|
237
|
-
game_id: string | number;
|
|
238
|
-
game_group: string;
|
|
239
|
-
name: string;
|
|
240
|
-
screen_type: ScreenOrientation;
|
|
241
|
-
area: Area;
|
|
242
|
-
icon: string;
|
|
243
|
-
auth: string;
|
|
244
|
-
ctime: string;
|
|
245
|
-
mtime: string;
|
|
246
|
-
is_delete: 0 | 1;
|
|
247
|
-
is_new_game: 0 | 1;
|
|
248
|
-
server_type: string;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
interface GameSelectProps {
|
|
252
|
-
filter?: (game: Game) => boolean;
|
|
253
|
-
options?: (data?: Game[]) => SelectProps['options'];
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
type HeaderExtra = {
|
|
257
|
-
key: Key;
|
|
258
|
-
children: ReactNode;
|
|
259
|
-
};
|
|
260
|
-
interface LayoutProps extends Pick<GameSelectProps, 'filter'> {
|
|
261
|
-
collapsible?: boolean;
|
|
262
|
-
isMenuLoading?: boolean;
|
|
263
|
-
items?: NavMenuItem[];
|
|
264
|
-
navWidth?: string | number;
|
|
265
|
-
gameSelectOptions?: GameSelectProps['options'];
|
|
266
|
-
headerExtra?: {
|
|
267
|
-
left?: HeaderExtra[];
|
|
268
|
-
right?: HeaderExtra[];
|
|
269
|
-
};
|
|
270
|
-
title?: string;
|
|
271
|
-
subtitle?: string;
|
|
272
|
-
}
|
|
273
|
-
declare const Layout: FC<PropsWithChildren<LayoutProps>>;
|
|
274
|
-
|
|
275
|
-
interface UseModalOperation {
|
|
276
|
-
hide: () => void;
|
|
277
|
-
}
|
|
278
|
-
interface UseModalProps extends Omit<ModalProps, 'open' | 'confirmLoading' | 'onOk' | 'onCancel'> {
|
|
279
|
-
content?: ReactNode | ((operation: UseModalOperation) => ReactNode);
|
|
280
|
-
onConfirm?: () => void | Promise<void>;
|
|
281
|
-
afterOpen?: () => void | Promise<void>;
|
|
282
|
-
afterClose?: () => void | Promise<void>;
|
|
283
|
-
}
|
|
284
|
-
declare function useModal(props: UseModalProps): {
|
|
285
|
-
id: number;
|
|
286
|
-
show: () => Promise<void>;
|
|
287
|
-
hide: () => void;
|
|
288
|
-
modal: react_jsx_runtime.JSX.Element;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
interface UseFormModalProps<Values extends AnyObject = AnyObject, ExtraValues = any> extends Omit<UseModalProps, 'onConfirm' | 'content' | 'onShow' | 'afterClose'> {
|
|
292
|
-
formProps?: Omit<FormProps, 'form'>;
|
|
293
|
-
form?: FormInstance<Values>;
|
|
294
|
-
content?: ReactNode | ((extraValues: ExtraValues, operation: UseModalOperation) => ReactNode);
|
|
295
|
-
onConfirm?: (values: Values, extraValues: ExtraValues) => void | Promise<void>;
|
|
296
|
-
onSuccess?: () => void;
|
|
297
|
-
afterClose?: (form: FormInstance<Values>) => void;
|
|
298
|
-
}
|
|
299
|
-
declare function useFormModal<Values extends AnyObject = AnyObject, ExtraValues = any>(props: UseFormModalProps<Values, ExtraValues>): {
|
|
300
|
-
id: number;
|
|
301
|
-
show: (options?: {
|
|
302
|
-
initialValues?: RecursivePartial<Values>;
|
|
303
|
-
extraValues?: ExtraValues;
|
|
304
|
-
}) => void;
|
|
305
|
-
hide: () => void;
|
|
306
|
-
modal: react_jsx_runtime.JSX.Element;
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
interface ModalState {
|
|
310
|
-
open: Map<number, boolean>;
|
|
311
|
-
usedIds: Set<number>;
|
|
312
|
-
isOpen: (uuid: number) => boolean;
|
|
313
|
-
show: (uuid: number) => void;
|
|
314
|
-
hide: (uuid: number) => void;
|
|
315
|
-
hideAll: () => void;
|
|
316
|
-
checkUniqueness: (uuid: number) => boolean;
|
|
317
|
-
registerIds: (uuid: number) => boolean;
|
|
318
|
-
cleanup: (uuid: number) => void;
|
|
319
|
-
}
|
|
320
|
-
declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<ModalState>>;
|
|
321
|
-
|
|
322
|
-
interface PermissionButtonProps extends ButtonProps {
|
|
323
|
-
code?: string | string[];
|
|
324
|
-
showLoading?: boolean;
|
|
325
|
-
config?: Options;
|
|
326
|
-
}
|
|
327
|
-
declare const PermissionButton: FC<PropsWithChildren<PermissionButtonProps>>;
|
|
328
|
-
|
|
329
|
-
interface QueryListPayload<Values = any> {
|
|
330
|
-
page?: number;
|
|
331
|
-
size?: number;
|
|
332
|
-
filters?: Values;
|
|
333
|
-
}
|
|
334
|
-
interface CacheConfig {
|
|
335
|
-
cacheTime?: number;
|
|
336
|
-
staleTime?: number;
|
|
337
|
-
}
|
|
338
|
-
type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD';
|
|
339
|
-
interface QueryListRequestConfig extends CacheConfig {
|
|
340
|
-
url: string;
|
|
341
|
-
method?: HttpMethod;
|
|
342
|
-
body?: FormData | Record<string | number, any>;
|
|
343
|
-
searchParams?: Record<string | number, any>;
|
|
344
|
-
headers?: Record<string, string>;
|
|
345
|
-
}
|
|
346
|
-
type QueryListRequestConfigType<Values = any> = QueryListRequestConfig | ((payload: QueryListPayload<Values>) => QueryListRequestConfig);
|
|
347
|
-
declare enum QueryListAction {
|
|
348
|
-
Confirm = 0,
|
|
349
|
-
Reset = 1,
|
|
350
|
-
Jump = 2,
|
|
351
|
-
Init = 3
|
|
352
|
-
}
|
|
353
|
-
interface QueryListRef<Item extends AnyObject = AnyObject, Values = AnyObject, Data = any> {
|
|
354
|
-
data: Data | undefined;
|
|
355
|
-
dataSource: Item[] | undefined;
|
|
356
|
-
form: FormInstance<Values>;
|
|
357
|
-
}
|
|
358
|
-
interface QueryListDataAdapter<Item extends AnyObject = AnyObject> {
|
|
359
|
-
total?: number;
|
|
360
|
-
items?: Item[];
|
|
361
|
-
}
|
|
362
|
-
type QueryListDataAdapterConfig<Item extends AnyObject = AnyObject, Data = any> = QueryListDataAdapter<Item> | ((data: Data) => QueryListDataAdapter<Item>);
|
|
363
|
-
interface QueryListProps<Item extends AnyObject = AnyObject, Values = AnyObject, Data = any> extends Omit<TableProps<Item>, 'pagination' | 'dataSource' | 'loading' | 'footer'>, Pick<FilterFormWrapperProps, 'buttonsAlign' | 'showReset'> {
|
|
364
|
-
identifier?: string;
|
|
365
|
-
code?: string;
|
|
366
|
-
form?: FormInstance<Values>;
|
|
367
|
-
refreshInterval?: number;
|
|
368
|
-
onePage?: boolean;
|
|
369
|
-
defaultSize?: number;
|
|
370
|
-
pageSizeOptions?: number[];
|
|
371
|
-
request: QueryListRequestConfigType<Values>;
|
|
372
|
-
tableExtra?: ReactNode | ((form: FormInstance<Values>, data?: Data) => ReactNode);
|
|
373
|
-
renderForm?: (form: FormInstance<Values>) => ReactElement;
|
|
374
|
-
afterSuccess?: (action: QueryListAction, form: FormInstance<Values>, data?: Data) => void;
|
|
375
|
-
afterError?: (error: Error, action: QueryListAction, form: FormInstance<Values>) => void;
|
|
376
|
-
dataAdapter?: QueryListDataAdapterConfig<Item, Data>;
|
|
377
|
-
footer?: (data: Data | undefined) => ReactNode;
|
|
378
|
-
}
|
|
379
|
-
declare const QueryList: <Item extends AnyObject = AnyObject, Values extends object | undefined = undefined, Data = any>(props: QueryListProps<Item, Values, Data> & {
|
|
380
|
-
ref?: Ref<QueryListRef<Item, Values, Data>>;
|
|
381
|
-
}) => ReactElement;
|
|
382
|
-
|
|
383
|
-
type QueryRefetchFunction = () => void | Promise<unknown>;
|
|
384
|
-
interface QueryListInstance {
|
|
385
|
-
id: string;
|
|
386
|
-
url: string;
|
|
387
|
-
queryKey: readonly unknown[];
|
|
388
|
-
payload: QueryListPayload;
|
|
389
|
-
refetch: QueryRefetchFunction;
|
|
390
|
-
}
|
|
391
|
-
interface QueryListState {
|
|
392
|
-
instances: Map<string, QueryListInstance>;
|
|
393
|
-
registerInstance(id: string, url: string, queryKey: readonly unknown[], refetch: QueryRefetchFunction): void;
|
|
394
|
-
unregisterInstance(id: string): void;
|
|
395
|
-
updatePayload(id: string, payload: QueryListPayload): void;
|
|
396
|
-
getPayload(id: string): QueryListPayload;
|
|
397
|
-
refetch(id: string, payload?: QueryListPayload): Promise<void>;
|
|
398
|
-
getInstance(id: string): QueryListInstance | undefined;
|
|
399
|
-
getAllInstances(): QueryListInstance[];
|
|
400
|
-
}
|
|
401
|
-
declare const useQueryListStore: zustand.UseBoundStore<Omit<Omit<zustand.StoreApi<QueryListState>, "setState"> & {
|
|
402
|
-
setState(partial: QueryListState | Partial<QueryListState> | ((state: QueryListState) => QueryListState | Partial<QueryListState>), replace?: false | undefined, action?: (string | {
|
|
403
|
-
[x: string]: unknown;
|
|
404
|
-
[x: number]: unknown;
|
|
405
|
-
[x: symbol]: unknown;
|
|
406
|
-
type: string;
|
|
407
|
-
}) | undefined): void;
|
|
408
|
-
setState(state: QueryListState | ((state: QueryListState) => QueryListState), replace: true, action?: (string | {
|
|
409
|
-
[x: string]: unknown;
|
|
410
|
-
[x: number]: unknown;
|
|
411
|
-
[x: symbol]: unknown;
|
|
412
|
-
type: string;
|
|
413
|
-
}) | undefined): void;
|
|
414
|
-
}, "subscribe"> & {
|
|
415
|
-
subscribe: {
|
|
416
|
-
(listener: (selectedState: QueryListState, previousSelectedState: QueryListState) => void): () => void;
|
|
417
|
-
<U>(selector: (state: QueryListState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
418
|
-
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
419
|
-
fireImmediately?: boolean;
|
|
420
|
-
} | undefined): () => void;
|
|
421
|
-
};
|
|
422
|
-
}>;
|
|
423
|
-
|
|
424
|
-
declare const RequireGame: FC<PropsWithChildren>;
|
|
425
|
-
|
|
426
|
-
interface RequirePermissionProps {
|
|
427
|
-
code: string;
|
|
428
|
-
config?: Options;
|
|
429
|
-
}
|
|
430
|
-
declare const RequirePermission: FC<PropsWithChildren<RequirePermissionProps>>;
|
|
431
|
-
|
|
432
|
-
type Locale = {
|
|
433
|
-
global: {
|
|
434
|
-
noEntitlement: string;
|
|
435
|
-
name: string;
|
|
436
|
-
creationTime: string;
|
|
437
|
-
operation: string;
|
|
438
|
-
update: string;
|
|
439
|
-
edit: string;
|
|
440
|
-
delete: string;
|
|
441
|
-
selectAll: string;
|
|
442
|
-
game: string;
|
|
443
|
-
user: string;
|
|
444
|
-
role: string;
|
|
445
|
-
username: string;
|
|
446
|
-
password: string;
|
|
447
|
-
label: string;
|
|
448
|
-
method: string;
|
|
449
|
-
route: string;
|
|
450
|
-
request: string;
|
|
451
|
-
response: string;
|
|
452
|
-
add: string;
|
|
453
|
-
signIn: string;
|
|
454
|
-
projectGroup: string;
|
|
455
|
-
view: string;
|
|
456
|
-
};
|
|
457
|
-
SignIn: {
|
|
458
|
-
title: string;
|
|
459
|
-
thirdParty: string;
|
|
460
|
-
signInWithIDass: string;
|
|
461
|
-
unregistered: string;
|
|
462
|
-
welcome: string;
|
|
463
|
-
};
|
|
464
|
-
NotFound: {
|
|
465
|
-
subTitle: string;
|
|
466
|
-
buttonText: string;
|
|
467
|
-
};
|
|
468
|
-
FilterFormWrapper: {
|
|
469
|
-
confirmText: string;
|
|
470
|
-
resetText: string;
|
|
471
|
-
};
|
|
472
|
-
FormModal: {
|
|
473
|
-
confirmText: string;
|
|
474
|
-
cancelText: string;
|
|
475
|
-
};
|
|
476
|
-
GameSelect: {
|
|
477
|
-
label: string;
|
|
478
|
-
placeholder: string;
|
|
479
|
-
};
|
|
480
|
-
RequireGame: {
|
|
481
|
-
description: string;
|
|
482
|
-
};
|
|
483
|
-
UserWidget: {
|
|
484
|
-
signOutText: string;
|
|
485
|
-
};
|
|
486
|
-
User: {
|
|
487
|
-
createTitle: string;
|
|
488
|
-
createSuccessfully: string;
|
|
489
|
-
updateTitle: string;
|
|
490
|
-
updateSuccessfully: string;
|
|
491
|
-
deleteTitle: string;
|
|
492
|
-
deleteContent: string;
|
|
493
|
-
deleteSuccessfully: string;
|
|
494
|
-
};
|
|
495
|
-
Role: {
|
|
496
|
-
createTitle: string;
|
|
497
|
-
createSuccessfully: string;
|
|
498
|
-
updateTitle: string;
|
|
499
|
-
updateSuccessfully: string;
|
|
500
|
-
deleteTitle: string;
|
|
501
|
-
deleteContent: string;
|
|
502
|
-
deleteSuccessfully: string;
|
|
503
|
-
};
|
|
504
|
-
PermissionList: {
|
|
505
|
-
failedDescription: string;
|
|
506
|
-
baseSectionTitle: string;
|
|
507
|
-
gameSectionTitle: string;
|
|
508
|
-
gameSectionDescription: string;
|
|
509
|
-
gameSelectPlaceholder: string;
|
|
510
|
-
removeText: string;
|
|
511
|
-
addText: string;
|
|
512
|
-
};
|
|
513
|
-
RoleDetail: {
|
|
514
|
-
title: string;
|
|
515
|
-
};
|
|
516
|
-
InfiniteList: {
|
|
517
|
-
loadingText: string;
|
|
518
|
-
reachEndText: string;
|
|
519
|
-
loadMoreText: string;
|
|
520
|
-
};
|
|
521
|
-
};
|
|
522
|
-
|
|
523
|
-
declare const SSO_URL = "https://idaas.ifunplus.cn/enduser/api/application/plugin_FunPlus/sso/v1";
|
|
524
|
-
declare const APP_ID_HEADER = "App-ID";
|
|
525
|
-
declare const FRONTEND_ROUTE_PREFIX = "/console/";
|
|
526
|
-
declare enum PermissionVersion {
|
|
527
|
-
V1 = "v1",
|
|
528
|
-
V2 = "v2",
|
|
529
|
-
V3 = "v3"
|
|
530
|
-
}
|
|
531
|
-
declare const WILDCARD = "*";
|
|
532
|
-
|
|
533
|
-
interface ContextSlice {
|
|
534
|
-
locale: Locale;
|
|
535
|
-
permissionVersion: PermissionVersion;
|
|
536
|
-
gameApiV2: boolean;
|
|
537
|
-
signInPath: string;
|
|
538
|
-
isGlobal: boolean;
|
|
539
|
-
navWidth?: number;
|
|
540
|
-
collapsed?: boolean;
|
|
541
|
-
collapsible?: boolean;
|
|
542
|
-
mainPagePath: string;
|
|
543
|
-
setContext(state: Partial<Omit<ContextSlice, 'setContext'>>): void;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
interface GameSlice {
|
|
547
|
-
gameId?: string | number;
|
|
548
|
-
setGameId: (id?: string | number) => void;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
interface UserInfo {
|
|
552
|
-
authorityId: string;
|
|
553
|
-
exp: number;
|
|
554
|
-
}
|
|
555
|
-
interface TokenSlice {
|
|
556
|
-
token?: string;
|
|
557
|
-
getUser: () => UserInfo | null;
|
|
558
|
-
setToken: (token: string) => void;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
type ToolkitsState = TokenSlice & GameSlice & ContextSlice & {
|
|
562
|
-
clearToken: () => void;
|
|
563
|
-
};
|
|
564
|
-
|
|
565
|
-
declare function useToolkitsStore(): ToolkitsState;
|
|
566
|
-
declare function useToolkitsStore<T>(selector: (state: ToolkitsState) => T): T;
|
|
567
|
-
type ToolkitsProviderProps = PropsWithChildren<Partial<Omit<ContextSlice, 'setContext'>>>;
|
|
568
|
-
declare const ToolkitsProvider: FC<ToolkitsProviderProps>;
|
|
569
|
-
declare const withContext: (Component: ComponentType, providerProps: Omit<ToolkitsProviderProps, "children">) => {
|
|
570
|
-
(props: any): react_jsx_runtime.JSX.Element;
|
|
571
|
-
displayName: string;
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
declare const UserWidget: FC;
|
|
575
|
-
|
|
576
|
-
declare const _default$2: react_jsx_runtime.JSX.Element;
|
|
577
|
-
|
|
578
|
-
interface NotFoundProps {
|
|
579
|
-
redirectUrl?: string;
|
|
580
|
-
}
|
|
581
|
-
declare const NotFound: FC<NotFoundProps>;
|
|
582
|
-
|
|
583
|
-
declare const _default$1: {
|
|
584
|
-
(props: any): react_jsx_runtime.JSX.Element;
|
|
585
|
-
displayName: string;
|
|
586
|
-
};
|
|
587
|
-
|
|
588
|
-
declare const _default: react_jsx_runtime.JSX.Element;
|
|
589
|
-
|
|
590
|
-
interface SignInProps {
|
|
591
|
-
extra?: ReactNode;
|
|
592
|
-
title?: string;
|
|
593
|
-
}
|
|
594
|
-
declare const SignIn: FC<SignInProps>;
|
|
595
|
-
|
|
596
|
-
declare function usePermission(code?: string | string[], config?: Options): {
|
|
597
|
-
data: boolean | Record<string, boolean>;
|
|
598
|
-
error: Error;
|
|
599
|
-
isError: true;
|
|
600
|
-
isPending: false;
|
|
601
|
-
isLoading: false;
|
|
602
|
-
isLoadingError: false;
|
|
603
|
-
isRefetchError: true;
|
|
604
|
-
isSuccess: false;
|
|
605
|
-
isPlaceholderData: false;
|
|
606
|
-
status: "error";
|
|
607
|
-
dataUpdatedAt: number;
|
|
608
|
-
errorUpdatedAt: number;
|
|
609
|
-
failureCount: number;
|
|
610
|
-
failureReason: Error | null;
|
|
611
|
-
errorUpdateCount: number;
|
|
612
|
-
isFetched: boolean;
|
|
613
|
-
isFetchedAfterMount: boolean;
|
|
614
|
-
isFetching: boolean;
|
|
615
|
-
isInitialLoading: boolean;
|
|
616
|
-
isPaused: boolean;
|
|
617
|
-
isRefetching: boolean;
|
|
618
|
-
isStale: boolean;
|
|
619
|
-
isEnabled: boolean;
|
|
620
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, boolean> & {
|
|
621
|
-
has_all?: boolean;
|
|
622
|
-
}, Error>>;
|
|
623
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
624
|
-
promise: Promise<Record<string, boolean> & {
|
|
625
|
-
has_all?: boolean;
|
|
626
|
-
}>;
|
|
627
|
-
} | {
|
|
628
|
-
data: boolean | Record<string, boolean>;
|
|
629
|
-
error: null;
|
|
630
|
-
isError: false;
|
|
631
|
-
isPending: false;
|
|
632
|
-
isLoading: false;
|
|
633
|
-
isLoadingError: false;
|
|
634
|
-
isRefetchError: false;
|
|
635
|
-
isSuccess: true;
|
|
636
|
-
isPlaceholderData: false;
|
|
637
|
-
status: "success";
|
|
638
|
-
dataUpdatedAt: number;
|
|
639
|
-
errorUpdatedAt: number;
|
|
640
|
-
failureCount: number;
|
|
641
|
-
failureReason: Error | null;
|
|
642
|
-
errorUpdateCount: number;
|
|
643
|
-
isFetched: boolean;
|
|
644
|
-
isFetchedAfterMount: boolean;
|
|
645
|
-
isFetching: boolean;
|
|
646
|
-
isInitialLoading: boolean;
|
|
647
|
-
isPaused: boolean;
|
|
648
|
-
isRefetching: boolean;
|
|
649
|
-
isStale: boolean;
|
|
650
|
-
isEnabled: boolean;
|
|
651
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, boolean> & {
|
|
652
|
-
has_all?: boolean;
|
|
653
|
-
}, Error>>;
|
|
654
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
655
|
-
promise: Promise<Record<string, boolean> & {
|
|
656
|
-
has_all?: boolean;
|
|
657
|
-
}>;
|
|
658
|
-
} | {
|
|
659
|
-
data: boolean | Record<string, boolean>;
|
|
660
|
-
error: Error;
|
|
661
|
-
isError: true;
|
|
662
|
-
isPending: false;
|
|
663
|
-
isLoading: false;
|
|
664
|
-
isLoadingError: true;
|
|
665
|
-
isRefetchError: false;
|
|
666
|
-
isSuccess: false;
|
|
667
|
-
isPlaceholderData: false;
|
|
668
|
-
status: "error";
|
|
669
|
-
dataUpdatedAt: number;
|
|
670
|
-
errorUpdatedAt: number;
|
|
671
|
-
failureCount: number;
|
|
672
|
-
failureReason: Error | null;
|
|
673
|
-
errorUpdateCount: number;
|
|
674
|
-
isFetched: boolean;
|
|
675
|
-
isFetchedAfterMount: boolean;
|
|
676
|
-
isFetching: boolean;
|
|
677
|
-
isInitialLoading: boolean;
|
|
678
|
-
isPaused: boolean;
|
|
679
|
-
isRefetching: boolean;
|
|
680
|
-
isStale: boolean;
|
|
681
|
-
isEnabled: boolean;
|
|
682
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, boolean> & {
|
|
683
|
-
has_all?: boolean;
|
|
684
|
-
}, Error>>;
|
|
685
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
686
|
-
promise: Promise<Record<string, boolean> & {
|
|
687
|
-
has_all?: boolean;
|
|
688
|
-
}>;
|
|
689
|
-
} | {
|
|
690
|
-
data: boolean | Record<string, boolean>;
|
|
691
|
-
error: null;
|
|
692
|
-
isError: false;
|
|
693
|
-
isPending: true;
|
|
694
|
-
isLoading: true;
|
|
695
|
-
isLoadingError: false;
|
|
696
|
-
isRefetchError: false;
|
|
697
|
-
isSuccess: false;
|
|
698
|
-
isPlaceholderData: false;
|
|
699
|
-
status: "pending";
|
|
700
|
-
dataUpdatedAt: number;
|
|
701
|
-
errorUpdatedAt: number;
|
|
702
|
-
failureCount: number;
|
|
703
|
-
failureReason: Error | null;
|
|
704
|
-
errorUpdateCount: number;
|
|
705
|
-
isFetched: boolean;
|
|
706
|
-
isFetchedAfterMount: boolean;
|
|
707
|
-
isFetching: boolean;
|
|
708
|
-
isInitialLoading: boolean;
|
|
709
|
-
isPaused: boolean;
|
|
710
|
-
isRefetching: boolean;
|
|
711
|
-
isStale: boolean;
|
|
712
|
-
isEnabled: boolean;
|
|
713
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, boolean> & {
|
|
714
|
-
has_all?: boolean;
|
|
715
|
-
}, Error>>;
|
|
716
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
717
|
-
promise: Promise<Record<string, boolean> & {
|
|
718
|
-
has_all?: boolean;
|
|
719
|
-
}>;
|
|
720
|
-
} | {
|
|
721
|
-
data: boolean | Record<string, boolean>;
|
|
722
|
-
error: null;
|
|
723
|
-
isError: false;
|
|
724
|
-
isPending: true;
|
|
725
|
-
isLoadingError: false;
|
|
726
|
-
isRefetchError: false;
|
|
727
|
-
isSuccess: false;
|
|
728
|
-
isPlaceholderData: false;
|
|
729
|
-
status: "pending";
|
|
730
|
-
dataUpdatedAt: number;
|
|
731
|
-
errorUpdatedAt: number;
|
|
732
|
-
failureCount: number;
|
|
733
|
-
failureReason: Error | null;
|
|
734
|
-
errorUpdateCount: number;
|
|
735
|
-
isFetched: boolean;
|
|
736
|
-
isFetchedAfterMount: boolean;
|
|
737
|
-
isFetching: boolean;
|
|
738
|
-
isLoading: boolean;
|
|
739
|
-
isInitialLoading: boolean;
|
|
740
|
-
isPaused: boolean;
|
|
741
|
-
isRefetching: boolean;
|
|
742
|
-
isStale: boolean;
|
|
743
|
-
isEnabled: boolean;
|
|
744
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, boolean> & {
|
|
745
|
-
has_all?: boolean;
|
|
746
|
-
}, Error>>;
|
|
747
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
748
|
-
promise: Promise<Record<string, boolean> & {
|
|
749
|
-
has_all?: boolean;
|
|
750
|
-
}>;
|
|
751
|
-
} | {
|
|
752
|
-
data: boolean | Record<string, boolean>;
|
|
753
|
-
isError: false;
|
|
754
|
-
error: null;
|
|
755
|
-
isPending: false;
|
|
756
|
-
isLoading: false;
|
|
757
|
-
isLoadingError: false;
|
|
758
|
-
isRefetchError: false;
|
|
759
|
-
isSuccess: true;
|
|
760
|
-
isPlaceholderData: true;
|
|
761
|
-
status: "success";
|
|
762
|
-
dataUpdatedAt: number;
|
|
763
|
-
errorUpdatedAt: number;
|
|
764
|
-
failureCount: number;
|
|
765
|
-
failureReason: Error | null;
|
|
766
|
-
errorUpdateCount: number;
|
|
767
|
-
isFetched: boolean;
|
|
768
|
-
isFetchedAfterMount: boolean;
|
|
769
|
-
isFetching: boolean;
|
|
770
|
-
isInitialLoading: boolean;
|
|
771
|
-
isPaused: boolean;
|
|
772
|
-
isRefetching: boolean;
|
|
773
|
-
isStale: boolean;
|
|
774
|
-
isEnabled: boolean;
|
|
775
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<Record<string, boolean> & {
|
|
776
|
-
has_all?: boolean;
|
|
777
|
-
}, Error>>;
|
|
778
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
779
|
-
promise: Promise<Record<string, boolean> & {
|
|
780
|
-
has_all?: boolean;
|
|
781
|
-
}>;
|
|
782
|
-
};
|
|
783
|
-
declare function useMenuList(): _tanstack_react_query.UseQueryResult<MenuListItem[], Error>;
|
|
784
|
-
declare const useGames: () => _tanstack_react_query.UseQueryResult<Game[], Error>;
|
|
785
|
-
|
|
786
|
-
declare const mixedStorage: StateStorage;
|
|
787
|
-
declare const generateId: () => number;
|
|
788
|
-
|
|
789
|
-
export { APP_ID_HEADER, DynamicTags, type DynamicTagsProps, ExpandableParagraph, type ExpandableParagraphProps, FRONTEND_ROUTE_PREFIX, FilterFormWrapper, type FilterFormWrapperProps, type Game, Highlight, type HighlightProps, InfiniteList, InfiniteListAction, type InfiniteListPayload, type InfiniteListProps, type InfiniteListRef, type InfiniteListRequestConfig, Layout, type LayoutProps, type MenuListItem, NavMenu, type NavMenuItem, NotFound, _default$1 as OperationLogList, type Permission, PermissionButton, type PermissionButtonProps, PermissionVersion, QueryList, QueryListAction, type QueryListPayload, type QueryListProps, type QueryListRef, type RecursivePartial, RequireGame, RequirePermission, type RequirePermissionProps, SSO_URL, SignIn, ToolkitsProvider, type ToolkitsProviderProps, type UseFormDrawerProps, type UseFormModalProps, UserWidget, WILDCARD, generateId, _default$2 as menuRoutes, mixedStorage, _default as permissionRoutes, useDrawer, useDrawerStore, useFormDrawer, useFormModal, useGames, useInfiniteListStore, useMenuList, useModal, useModalStore, usePermission, useQueryListStore, useToolkitsStore, withContext };
|
|
1
|
+
export { DynamicTags, DynamicTagsProps, ExpandableParagraph, ExpandableParagraphProps, FilterFormWrapper, FilterFormWrapperProps, Highlight, HighlightProps, InfiniteList, InfiniteListAction, InfiniteListPayload, InfiniteListProps, InfiniteListRef, InfiniteListRequestConfig, Layout, LayoutProps, Logo, LogoProps, NavMenu, NavMenuItem, PermissionButton, PermissionButtonProps, QueryList, QueryListAction, QueryListPayload, QueryListProps, QueryListRef, RequireGame, RequirePermission, RequirePermissionProps, ToolkitsProvider, ToolkitsProviderProps, UserWidget, useInfiniteListStore, useQueryListStore, useToolkitsStore, withContext } from './components.js';
|
|
2
|
+
export { G as Game } from './types-DVKf5poe.js';
|
|
3
|
+
export { APP_ID_HEADER, FRONTEND_ROUTE_PREFIX, PermissionVersion, SSO_URL, WILDCARD } from './constants.js';
|
|
4
|
+
export { UseFormDrawerProps, UseFormModalProps, useDrawer, useDrawerStore, useFormDrawer, useFormModal, useModal, useModalStore } from './hooks.js';
|
|
5
|
+
export { menu, permission } from './modules.js';
|
|
6
|
+
export { NotFound, OperationLogList, SignIn } from './pages.js';
|
|
7
|
+
export { useGames, useMenuList, usePermission } from './services.js';
|
|
8
|
+
export { MenuListItem, Permission, RecursivePartial } from './types.js';
|
|
9
|
+
export { generateId, mixedStorage } from './utils.js';
|
|
10
|
+
import 'react';
|
|
11
|
+
import 'antd/es/typography/Paragraph';
|
|
12
|
+
import 'react/jsx-runtime';
|
|
13
|
+
import 'antd';
|
|
14
|
+
import 'antd/es/_util/type';
|
|
15
|
+
import 'antd/es/table';
|
|
16
|
+
import 'zustand';
|
|
17
|
+
import 'antd/es/menu/interface';
|
|
18
|
+
import 'ts-essentials';
|
|
19
|
+
import 'ky';
|
|
20
|
+
import '@tanstack/react-query';
|
|
21
|
+
import 'zustand/middleware';
|