@nocobase/plugin-client 1.6.0-alpha.3 → 1.6.0-alpha.30

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.
Files changed (38) hide show
  1. package/dist/client/ClearCache.d.ts +10 -0
  2. package/dist/client/DesktopRoutesManager.d.ts +10 -0
  3. package/dist/client/MobileRoutesManager.d.ts +10 -0
  4. package/dist/client/RestartApplication.d.ts +10 -0
  5. package/dist/client/index.js +1 -1
  6. package/dist/client/locale/index.d.ts +12 -0
  7. package/dist/client/routesTableSchema.d.ts +1245 -0
  8. package/dist/client/useTableBlockProps.d.ts +26 -0
  9. package/dist/client/utils.d.ts +10 -0
  10. package/dist/collections/desktopRoutes.d.ts +10 -0
  11. package/dist/collections/desktopRoutes.js +434 -0
  12. package/dist/collections/mobileRoutes.d.ts +10 -0
  13. package/dist/collections/mobileRoutes.js +368 -0
  14. package/dist/externalVersion.js +11 -4
  15. package/dist/locale/en-US.js +40 -2
  16. package/dist/locale/es-ES.js +35 -1
  17. package/dist/locale/fr-FR.js +35 -1
  18. package/dist/locale/it-IT.js +870 -0
  19. package/dist/locale/ja-JP.js +35 -1
  20. package/dist/locale/ko-KR.js +35 -1
  21. package/dist/locale/pt-BR.js +35 -1
  22. package/dist/locale/ru-RU.js +27 -1
  23. package/dist/locale/tr-TR.js +27 -1
  24. package/dist/locale/uk-UA.js +35 -1
  25. package/dist/locale/zh-CN.js +56 -7
  26. package/dist/locale/zh-TW.js +36 -1
  27. package/dist/node_modules/cronstrue/package.json +1 -1
  28. package/dist/server/collections/desktopRoutes.d.ts +10 -0
  29. package/dist/server/collections/desktopRoutes.js +44 -0
  30. package/dist/server/collections/extendRoleField.d.ts +14 -0
  31. package/dist/server/collections/extendRoleField.js +44 -0
  32. package/dist/server/migrations/2024122912211-transform-menu-schema-to-routes.d.ts +18 -0
  33. package/dist/server/migrations/2024122912211-transform-menu-schema-to-routes.js +193 -0
  34. package/dist/server/migrations/202502071837-fix-permissions.d.ts +17 -0
  35. package/dist/server/migrations/202502071837-fix-permissions.js +85 -0
  36. package/dist/server/server.d.ts +7 -0
  37. package/dist/server/server.js +138 -5
  38. package/package.json +3 -2
@@ -0,0 +1,1245 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { NocoBaseDesktopRouteType } from '@nocobase/client';
10
+ import React from 'react';
11
+ export declare const createRoutesTableSchema: (collectionName: string, basename: string) => {
12
+ type: string;
13
+ name: any;
14
+ 'x-decorator': string;
15
+ 'x-decorator-props': {
16
+ collection: string;
17
+ action: string;
18
+ dragSort: boolean;
19
+ params: {
20
+ sort: string[];
21
+ pageSize: number;
22
+ filter: {
23
+ 'hidden.$ne': boolean;
24
+ };
25
+ };
26
+ treeTable: boolean;
27
+ };
28
+ properties: {
29
+ actions: {
30
+ type: string;
31
+ 'x-component': string;
32
+ 'x-component-props': {
33
+ style: {
34
+ marginBottom: number;
35
+ };
36
+ };
37
+ properties: {
38
+ refresh: {
39
+ title: string;
40
+ 'x-action': string;
41
+ 'x-component': string;
42
+ 'x-use-component-props': string;
43
+ 'x-component-props': {
44
+ icon: string;
45
+ };
46
+ };
47
+ delete: {
48
+ type: string;
49
+ title: string;
50
+ 'x-component': string;
51
+ 'x-use-component-props': () => {
52
+ onClick(): Promise<void>;
53
+ };
54
+ 'x-component-props': {
55
+ confirm: {
56
+ title: string;
57
+ content: string;
58
+ };
59
+ icon: string;
60
+ };
61
+ };
62
+ hide: {
63
+ type: string;
64
+ title: string;
65
+ 'x-component': string;
66
+ 'x-use-component-props': () => {
67
+ onClick(): Promise<void>;
68
+ };
69
+ 'x-component-props': {
70
+ icon: string;
71
+ confirm: {
72
+ title: string;
73
+ content: string;
74
+ };
75
+ };
76
+ };
77
+ show: {
78
+ type: string;
79
+ title: string;
80
+ 'x-component': string;
81
+ 'x-use-component-props': () => {
82
+ onClick(): Promise<void>;
83
+ };
84
+ 'x-component-props': {
85
+ icon: string;
86
+ confirm: {
87
+ title: string;
88
+ content: string;
89
+ };
90
+ };
91
+ };
92
+ create: {
93
+ type: string;
94
+ title: string;
95
+ 'x-component': string;
96
+ 'x-component-props': {
97
+ type: string;
98
+ icon: string;
99
+ };
100
+ properties: {
101
+ drawer: {
102
+ type: string;
103
+ 'x-component': string;
104
+ 'x-decorator': string;
105
+ 'x-decorator-props': {
106
+ useValues(options: any): {};
107
+ };
108
+ title: string;
109
+ properties: {
110
+ formSchema: {
111
+ type: string;
112
+ properties: {
113
+ [x: string]: {
114
+ type: string;
115
+ title: string;
116
+ 'x-decorator': string;
117
+ 'x-component': (props: any) => React.JSX.Element;
118
+ default: NocoBaseDesktopRouteType;
119
+ required: boolean;
120
+ 'x-reactions'?: undefined;
121
+ description?: undefined;
122
+ items?: undefined;
123
+ properties?: undefined;
124
+ 'x-decorator-props'?: undefined;
125
+ } | {
126
+ type: string;
127
+ title: string;
128
+ 'x-decorator': string;
129
+ 'x-component': string;
130
+ required: boolean;
131
+ default?: undefined;
132
+ 'x-reactions'?: undefined;
133
+ description?: undefined;
134
+ items?: undefined;
135
+ properties?: undefined;
136
+ 'x-decorator-props'?: undefined;
137
+ } | {
138
+ type: string;
139
+ title: string;
140
+ 'x-decorator': string;
141
+ 'x-component': string;
142
+ 'x-reactions': {
143
+ dependencies: string[];
144
+ fulfill: {
145
+ state: {
146
+ required: string;
147
+ hidden?: undefined;
148
+ };
149
+ };
150
+ };
151
+ default?: undefined;
152
+ required?: undefined;
153
+ description?: undefined;
154
+ items?: undefined;
155
+ properties?: undefined;
156
+ 'x-decorator-props'?: undefined;
157
+ } | {
158
+ title: string;
159
+ type: string;
160
+ 'x-decorator': string;
161
+ 'x-component': (props: any) => React.JSX.Element;
162
+ description: string;
163
+ 'x-reactions': {
164
+ dependencies: string[];
165
+ fulfill: {
166
+ state: {
167
+ hidden: string;
168
+ required?: undefined;
169
+ };
170
+ };
171
+ };
172
+ default?: undefined;
173
+ required?: undefined;
174
+ items?: undefined;
175
+ properties?: undefined;
176
+ 'x-decorator-props'?: undefined;
177
+ } | {
178
+ type: string;
179
+ 'x-component': string;
180
+ 'x-decorator': string;
181
+ title: string;
182
+ items: {
183
+ type: string;
184
+ properties: {
185
+ space: {
186
+ type: string;
187
+ 'x-component': string;
188
+ 'x-component-props': {
189
+ style: {
190
+ flexWrap: string;
191
+ maxWidth: string;
192
+ };
193
+ className: string;
194
+ };
195
+ properties: {
196
+ name: {
197
+ type: string;
198
+ 'x-decorator': string;
199
+ 'x-component': string;
200
+ 'x-component-props': {
201
+ placeholder: string;
202
+ };
203
+ };
204
+ value: {
205
+ type: string;
206
+ 'x-decorator': string;
207
+ 'x-component': (props: any) => React.JSX.Element;
208
+ 'x-component-props': {
209
+ placeholder: string;
210
+ useTypedConstant: boolean;
211
+ changeOnSelect: boolean;
212
+ };
213
+ };
214
+ remove: {
215
+ type: string;
216
+ 'x-decorator': string;
217
+ 'x-component': string;
218
+ };
219
+ };
220
+ };
221
+ };
222
+ };
223
+ 'x-reactions': {
224
+ dependencies: string[];
225
+ fulfill: {
226
+ state: {
227
+ hidden: string;
228
+ required?: undefined;
229
+ };
230
+ };
231
+ };
232
+ properties: {
233
+ add: {
234
+ type: string;
235
+ title: string;
236
+ 'x-component': string;
237
+ };
238
+ };
239
+ default?: undefined;
240
+ required?: undefined;
241
+ description?: undefined;
242
+ 'x-decorator-props'?: undefined;
243
+ } | {
244
+ type: string;
245
+ title: string;
246
+ 'x-decorator': string;
247
+ 'x-decorator-props': {
248
+ tooltip: string;
249
+ };
250
+ 'x-component': (props: any) => React.JSX.Element;
251
+ default: boolean;
252
+ required?: undefined;
253
+ 'x-reactions'?: undefined;
254
+ description?: undefined;
255
+ items?: undefined;
256
+ properties?: undefined;
257
+ } | {
258
+ type: string;
259
+ title: string;
260
+ 'x-decorator': string;
261
+ 'x-decorator-props': {
262
+ tooltip: string;
263
+ };
264
+ 'x-component': (props: any) => React.JSX.Element;
265
+ 'x-reactions': {
266
+ dependencies: string[];
267
+ fulfill: {
268
+ state: {
269
+ hidden: string;
270
+ required?: undefined;
271
+ };
272
+ };
273
+ };
274
+ default: boolean;
275
+ required?: undefined;
276
+ description?: undefined;
277
+ items?: undefined;
278
+ properties?: undefined;
279
+ };
280
+ type: {
281
+ type: string;
282
+ title: string;
283
+ 'x-decorator': string;
284
+ 'x-component': (props: any) => React.JSX.Element;
285
+ default: NocoBaseDesktopRouteType;
286
+ required: boolean;
287
+ };
288
+ title: {
289
+ type: string;
290
+ title: string;
291
+ 'x-decorator': string;
292
+ 'x-component': string;
293
+ required: boolean;
294
+ };
295
+ icon: {
296
+ type: string;
297
+ title: string;
298
+ 'x-decorator': string;
299
+ 'x-component': string;
300
+ 'x-reactions': {
301
+ dependencies: string[];
302
+ fulfill: {
303
+ state: {
304
+ required: string;
305
+ };
306
+ };
307
+ };
308
+ };
309
+ params: {
310
+ type: string;
311
+ 'x-component': string;
312
+ 'x-decorator': string;
313
+ title: string;
314
+ items: {
315
+ type: string;
316
+ properties: {
317
+ space: {
318
+ type: string;
319
+ 'x-component': string;
320
+ 'x-component-props': {
321
+ style: {
322
+ flexWrap: string;
323
+ maxWidth: string;
324
+ };
325
+ className: string;
326
+ };
327
+ properties: {
328
+ name: {
329
+ type: string;
330
+ 'x-decorator': string;
331
+ 'x-component': string;
332
+ 'x-component-props': {
333
+ placeholder: string;
334
+ };
335
+ };
336
+ value: {
337
+ type: string;
338
+ 'x-decorator': string;
339
+ 'x-component': (props: any) => React.JSX.Element;
340
+ 'x-component-props': {
341
+ placeholder: string;
342
+ useTypedConstant: boolean;
343
+ changeOnSelect: boolean;
344
+ };
345
+ };
346
+ remove: {
347
+ type: string;
348
+ 'x-decorator': string;
349
+ 'x-component': string;
350
+ };
351
+ };
352
+ };
353
+ };
354
+ };
355
+ 'x-reactions': {
356
+ dependencies: string[];
357
+ fulfill: {
358
+ state: {
359
+ hidden: string;
360
+ };
361
+ };
362
+ };
363
+ properties: {
364
+ add: {
365
+ type: string;
366
+ title: string;
367
+ 'x-component': string;
368
+ };
369
+ };
370
+ };
371
+ hideInMenu: {
372
+ type: string;
373
+ title: string;
374
+ 'x-decorator': string;
375
+ 'x-decorator-props': {
376
+ tooltip: string;
377
+ };
378
+ 'x-component': (props: any) => React.JSX.Element;
379
+ default: boolean;
380
+ };
381
+ enableTabs: {
382
+ type: string;
383
+ title: string;
384
+ 'x-decorator': string;
385
+ 'x-decorator-props': {
386
+ tooltip: string;
387
+ };
388
+ 'x-component': (props: any) => React.JSX.Element;
389
+ 'x-reactions': {
390
+ dependencies: string[];
391
+ fulfill: {
392
+ state: {
393
+ hidden: string;
394
+ };
395
+ };
396
+ };
397
+ default: boolean;
398
+ };
399
+ };
400
+ };
401
+ footer: {
402
+ type: string;
403
+ 'x-component': string;
404
+ properties: {
405
+ cancel: {
406
+ title: string;
407
+ 'x-component': string;
408
+ 'x-component-props': {
409
+ useAction: string;
410
+ };
411
+ };
412
+ submit: {
413
+ title: string;
414
+ 'x-component': string;
415
+ 'x-component-props': {
416
+ type: string;
417
+ useAction: (actionCallback?: (values: any) => void) => {
418
+ run(): Promise<void>;
419
+ };
420
+ };
421
+ };
422
+ };
423
+ };
424
+ };
425
+ };
426
+ };
427
+ };
428
+ filter: {
429
+ 'x-action': string;
430
+ type: string;
431
+ 'x-component': string;
432
+ title: string;
433
+ 'x-use-component-props': string;
434
+ 'x-component-props': {
435
+ icon: string;
436
+ };
437
+ 'x-align': string;
438
+ };
439
+ };
440
+ };
441
+ table: {
442
+ type: string;
443
+ 'x-component': string;
444
+ 'x-use-component-props': () => {
445
+ optimizeTextCellRender: boolean;
446
+ value: any;
447
+ loading: any;
448
+ showIndex: boolean;
449
+ dragSort: boolean;
450
+ rowKey: string;
451
+ pagination: boolean | {
452
+ pageSize: any;
453
+ total: any;
454
+ current: any;
455
+ };
456
+ onRowSelectionChange: (selectedRowKeys: any, selectedRows: any, setSelectedRowKeys: any) => void;
457
+ onChange: ({ current, pageSize }: {
458
+ current: any;
459
+ pageSize: any;
460
+ }, filters: any, sorter: any) => void;
461
+ };
462
+ 'x-component-props': {
463
+ rowKey: string;
464
+ rowSelection: {
465
+ type: string;
466
+ };
467
+ };
468
+ properties: {
469
+ title: {
470
+ type: string;
471
+ 'x-component': string;
472
+ title: string;
473
+ 'x-component-props': {
474
+ width: number;
475
+ };
476
+ properties: {
477
+ title: {
478
+ type: string;
479
+ 'x-component': (props: any) => React.JSX.Element;
480
+ 'x-read-pretty': boolean;
481
+ 'x-component-props': {
482
+ ellipsis: boolean;
483
+ };
484
+ };
485
+ };
486
+ };
487
+ type: {
488
+ type: string;
489
+ 'x-component': string;
490
+ title: string;
491
+ 'x-component-props': {
492
+ width: number;
493
+ };
494
+ properties: {
495
+ type: {
496
+ type: string;
497
+ 'x-component': (props: any) => React.JSX.Element;
498
+ 'x-read-pretty': boolean;
499
+ 'x-component-props': {
500
+ ellipsis: boolean;
501
+ };
502
+ };
503
+ };
504
+ };
505
+ hideInMenu: {
506
+ type: string;
507
+ 'x-component': string;
508
+ title: string;
509
+ 'x-component-props': {
510
+ width: number;
511
+ };
512
+ properties: {
513
+ hideInMenu: {
514
+ type: string;
515
+ 'x-component': (props: any) => React.JSX.Element;
516
+ 'x-read-pretty': boolean;
517
+ 'x-component-props': {
518
+ ellipsis: boolean;
519
+ };
520
+ };
521
+ };
522
+ };
523
+ path: {
524
+ title: string;
525
+ type: string;
526
+ 'x-component': string;
527
+ 'x-component-props': {
528
+ width: number;
529
+ };
530
+ properties: {
531
+ path: {
532
+ type: string;
533
+ 'x-component': () => React.JSX.Element;
534
+ 'x-read-pretty': boolean;
535
+ };
536
+ };
537
+ };
538
+ actions: {
539
+ type: string;
540
+ title: string;
541
+ 'x-component': string;
542
+ properties: {
543
+ addChild: {
544
+ type: string;
545
+ title: string;
546
+ 'x-component': string;
547
+ 'x-use-component-props': () => {
548
+ disabled: boolean;
549
+ openMode: string;
550
+ };
551
+ 'x-decorator': string;
552
+ properties: {
553
+ drawer: {
554
+ type: string;
555
+ 'x-component': string;
556
+ 'x-decorator': string;
557
+ 'x-decorator-props': {
558
+ useValues(options: any): {};
559
+ };
560
+ title: string;
561
+ properties: {
562
+ formSchema: {
563
+ type: string;
564
+ properties: {
565
+ [x: string]: {
566
+ type: string;
567
+ title: string;
568
+ 'x-decorator': string;
569
+ 'x-component': (props: any) => React.JSX.Element;
570
+ required: boolean;
571
+ default: NocoBaseDesktopRouteType;
572
+ 'x-reactions'?: undefined;
573
+ description?: undefined;
574
+ items?: undefined;
575
+ properties?: undefined;
576
+ 'x-decorator-props'?: undefined;
577
+ } | {
578
+ type: string;
579
+ title: string;
580
+ 'x-decorator': string;
581
+ 'x-component': string;
582
+ required: boolean;
583
+ default?: undefined;
584
+ 'x-reactions'?: undefined;
585
+ description?: undefined;
586
+ items?: undefined;
587
+ properties?: undefined;
588
+ 'x-decorator-props'?: undefined;
589
+ } | {
590
+ type: string;
591
+ title: string;
592
+ 'x-decorator': string;
593
+ 'x-component': string;
594
+ 'x-reactions': {
595
+ dependencies: string[];
596
+ fulfill: {
597
+ state: {
598
+ required: string;
599
+ hidden?: undefined;
600
+ };
601
+ };
602
+ };
603
+ required?: undefined;
604
+ default?: undefined;
605
+ description?: undefined;
606
+ items?: undefined;
607
+ properties?: undefined;
608
+ 'x-decorator-props'?: undefined;
609
+ } | {
610
+ title: string;
611
+ type: string;
612
+ 'x-decorator': string;
613
+ 'x-component': (props: any) => React.JSX.Element;
614
+ description: string;
615
+ 'x-reactions': {
616
+ dependencies: string[];
617
+ fulfill: {
618
+ state: {
619
+ hidden: string;
620
+ required?: undefined;
621
+ };
622
+ };
623
+ };
624
+ required?: undefined;
625
+ default?: undefined;
626
+ items?: undefined;
627
+ properties?: undefined;
628
+ 'x-decorator-props'?: undefined;
629
+ } | {
630
+ type: string;
631
+ 'x-component': string;
632
+ 'x-decorator': string;
633
+ title: string;
634
+ items: {
635
+ type: string;
636
+ properties: {
637
+ space: {
638
+ type: string;
639
+ 'x-component': string;
640
+ 'x-component-props': {
641
+ style: {
642
+ flexWrap: string;
643
+ maxWidth: string;
644
+ };
645
+ className: string;
646
+ };
647
+ properties: {
648
+ name: {
649
+ type: string;
650
+ 'x-decorator': string;
651
+ 'x-component': string;
652
+ 'x-component-props': {
653
+ placeholder: string;
654
+ };
655
+ };
656
+ value: {
657
+ type: string;
658
+ 'x-decorator': string;
659
+ 'x-component': (props: any) => React.JSX.Element;
660
+ 'x-component-props': {
661
+ placeholder: string;
662
+ useTypedConstant: boolean;
663
+ changeOnSelect: boolean;
664
+ };
665
+ };
666
+ remove: {
667
+ type: string;
668
+ 'x-decorator': string;
669
+ 'x-component': string;
670
+ };
671
+ };
672
+ };
673
+ };
674
+ };
675
+ 'x-reactions': {
676
+ dependencies: string[];
677
+ fulfill: {
678
+ state: {
679
+ hidden: string;
680
+ required?: undefined;
681
+ };
682
+ };
683
+ };
684
+ properties: {
685
+ add: {
686
+ type: string;
687
+ title: string;
688
+ 'x-component': string;
689
+ };
690
+ };
691
+ required?: undefined;
692
+ default?: undefined;
693
+ description?: undefined;
694
+ 'x-decorator-props'?: undefined;
695
+ } | {
696
+ type: string;
697
+ title: string;
698
+ 'x-decorator': string;
699
+ 'x-decorator-props': {
700
+ tooltip: string;
701
+ };
702
+ 'x-component': (props: any) => React.JSX.Element;
703
+ default: boolean;
704
+ required?: undefined;
705
+ 'x-reactions'?: undefined;
706
+ description?: undefined;
707
+ items?: undefined;
708
+ properties?: undefined;
709
+ } | {
710
+ type: string;
711
+ title: string;
712
+ 'x-decorator': string;
713
+ 'x-decorator-props': {
714
+ tooltip: string;
715
+ };
716
+ 'x-component': (props: any) => React.JSX.Element;
717
+ 'x-reactions': {
718
+ dependencies: string[];
719
+ fulfill: {
720
+ state: {
721
+ hidden: string;
722
+ required?: undefined;
723
+ };
724
+ };
725
+ };
726
+ default: boolean;
727
+ required?: undefined;
728
+ description?: undefined;
729
+ items?: undefined;
730
+ properties?: undefined;
731
+ };
732
+ type: {
733
+ type: string;
734
+ title: string;
735
+ 'x-decorator': string;
736
+ 'x-component': (props: any) => React.JSX.Element;
737
+ required: boolean;
738
+ default: NocoBaseDesktopRouteType;
739
+ };
740
+ title: {
741
+ type: string;
742
+ title: string;
743
+ 'x-decorator': string;
744
+ 'x-component': string;
745
+ required: boolean;
746
+ };
747
+ icon: {
748
+ type: string;
749
+ title: string;
750
+ 'x-decorator': string;
751
+ 'x-component': string;
752
+ 'x-reactions': {
753
+ dependencies: string[];
754
+ fulfill: {
755
+ state: {
756
+ required: string;
757
+ };
758
+ };
759
+ };
760
+ };
761
+ params: {
762
+ type: string;
763
+ 'x-component': string;
764
+ 'x-decorator': string;
765
+ title: string;
766
+ items: {
767
+ type: string;
768
+ properties: {
769
+ space: {
770
+ type: string;
771
+ 'x-component': string;
772
+ 'x-component-props': {
773
+ style: {
774
+ flexWrap: string;
775
+ maxWidth: string;
776
+ };
777
+ className: string;
778
+ };
779
+ properties: {
780
+ name: {
781
+ type: string;
782
+ 'x-decorator': string;
783
+ 'x-component': string;
784
+ 'x-component-props': {
785
+ placeholder: string;
786
+ };
787
+ };
788
+ value: {
789
+ type: string;
790
+ 'x-decorator': string;
791
+ 'x-component': (props: any) => React.JSX.Element;
792
+ 'x-component-props': {
793
+ placeholder: string;
794
+ useTypedConstant: boolean;
795
+ changeOnSelect: boolean;
796
+ };
797
+ };
798
+ remove: {
799
+ type: string;
800
+ 'x-decorator': string;
801
+ 'x-component': string;
802
+ };
803
+ };
804
+ };
805
+ };
806
+ };
807
+ 'x-reactions': {
808
+ dependencies: string[];
809
+ fulfill: {
810
+ state: {
811
+ hidden: string;
812
+ };
813
+ };
814
+ };
815
+ properties: {
816
+ add: {
817
+ type: string;
818
+ title: string;
819
+ 'x-component': string;
820
+ };
821
+ };
822
+ };
823
+ hideInMenu: {
824
+ type: string;
825
+ title: string;
826
+ 'x-decorator': string;
827
+ 'x-decorator-props': {
828
+ tooltip: string;
829
+ };
830
+ 'x-component': (props: any) => React.JSX.Element;
831
+ default: boolean;
832
+ };
833
+ enableTabs: {
834
+ type: string;
835
+ title: string;
836
+ 'x-decorator': string;
837
+ 'x-decorator-props': {
838
+ tooltip: string;
839
+ };
840
+ 'x-component': (props: any) => React.JSX.Element;
841
+ 'x-reactions': {
842
+ dependencies: string[];
843
+ fulfill: {
844
+ state: {
845
+ hidden: string;
846
+ };
847
+ };
848
+ };
849
+ default: boolean;
850
+ };
851
+ };
852
+ };
853
+ footer: {
854
+ type: string;
855
+ 'x-component': string;
856
+ properties: {
857
+ cancel: {
858
+ title: string;
859
+ 'x-component': string;
860
+ 'x-component-props': {
861
+ useAction: string;
862
+ };
863
+ };
864
+ submit: {
865
+ title: string;
866
+ 'x-component': string;
867
+ 'x-component-props': {
868
+ type: string;
869
+ useAction: () => {
870
+ run(): Promise<void>;
871
+ };
872
+ };
873
+ };
874
+ };
875
+ };
876
+ };
877
+ };
878
+ };
879
+ };
880
+ edit: {
881
+ type: string;
882
+ title: string;
883
+ 'x-component': string;
884
+ 'x-component-props': {
885
+ openMode: string;
886
+ };
887
+ 'x-decorator': string;
888
+ properties: {
889
+ drawer: {
890
+ type: string;
891
+ 'x-component': string;
892
+ 'x-decorator': string;
893
+ 'x-decorator-props': {
894
+ useValues(options: any): import("@nocobase/client").UseRequestResult<unknown>;
895
+ };
896
+ title: string;
897
+ properties: {
898
+ formSchema: {
899
+ type: string;
900
+ properties: {
901
+ [x: string]: {
902
+ type: string;
903
+ title: string;
904
+ 'x-decorator': string;
905
+ 'x-component': (props: any) => React.JSX.Element;
906
+ default: NocoBaseDesktopRouteType;
907
+ required?: undefined;
908
+ 'x-reactions'?: undefined;
909
+ description?: undefined;
910
+ items?: undefined;
911
+ properties?: undefined;
912
+ 'x-decorator-props'?: undefined;
913
+ } | {
914
+ type: string;
915
+ title: string;
916
+ 'x-decorator': string;
917
+ 'x-component': string;
918
+ required: boolean;
919
+ default?: undefined;
920
+ 'x-reactions'?: undefined;
921
+ description?: undefined;
922
+ items?: undefined;
923
+ properties?: undefined;
924
+ 'x-decorator-props'?: undefined;
925
+ } | {
926
+ type: string;
927
+ title: string;
928
+ 'x-decorator': string;
929
+ 'x-component': string;
930
+ 'x-reactions': {
931
+ dependencies: string[];
932
+ fulfill: {
933
+ state: {
934
+ required: string;
935
+ hidden?: undefined;
936
+ };
937
+ };
938
+ };
939
+ default?: undefined;
940
+ required?: undefined;
941
+ description?: undefined;
942
+ items?: undefined;
943
+ properties?: undefined;
944
+ 'x-decorator-props'?: undefined;
945
+ } | {
946
+ title: string;
947
+ type: string;
948
+ 'x-decorator': string;
949
+ 'x-component': (props: any) => React.JSX.Element;
950
+ description: string;
951
+ 'x-reactions': {
952
+ dependencies: string[];
953
+ fulfill: {
954
+ state: {
955
+ hidden: string;
956
+ required?: undefined;
957
+ };
958
+ };
959
+ };
960
+ default?: undefined;
961
+ required?: undefined;
962
+ items?: undefined;
963
+ properties?: undefined;
964
+ 'x-decorator-props'?: undefined;
965
+ } | {
966
+ type: string;
967
+ 'x-component': string;
968
+ 'x-decorator': string;
969
+ title: string;
970
+ items: {
971
+ type: string;
972
+ properties: {
973
+ space: {
974
+ type: string;
975
+ 'x-component': string;
976
+ 'x-component-props': {
977
+ style: {
978
+ flexWrap: string;
979
+ maxWidth: string;
980
+ };
981
+ className: string;
982
+ };
983
+ properties: {
984
+ name: {
985
+ type: string;
986
+ 'x-decorator': string;
987
+ 'x-component': string;
988
+ 'x-component-props': {
989
+ placeholder: string;
990
+ };
991
+ };
992
+ value: {
993
+ type: string;
994
+ 'x-decorator': string;
995
+ 'x-component': (props: any) => React.JSX.Element;
996
+ 'x-component-props': {
997
+ placeholder: string;
998
+ useTypedConstant: boolean;
999
+ changeOnSelect: boolean;
1000
+ };
1001
+ };
1002
+ remove: {
1003
+ type: string;
1004
+ 'x-decorator': string;
1005
+ 'x-component': string;
1006
+ };
1007
+ };
1008
+ };
1009
+ };
1010
+ };
1011
+ 'x-reactions': {
1012
+ dependencies: string[];
1013
+ fulfill: {
1014
+ state: {
1015
+ hidden: string;
1016
+ required?: undefined;
1017
+ };
1018
+ };
1019
+ };
1020
+ properties: {
1021
+ add: {
1022
+ type: string;
1023
+ title: string;
1024
+ 'x-component': string;
1025
+ };
1026
+ };
1027
+ default?: undefined;
1028
+ required?: undefined;
1029
+ description?: undefined;
1030
+ 'x-decorator-props'?: undefined;
1031
+ } | {
1032
+ type: string;
1033
+ title: string;
1034
+ 'x-decorator': string;
1035
+ 'x-decorator-props': {
1036
+ tooltip: string;
1037
+ };
1038
+ 'x-component': (props: any) => React.JSX.Element;
1039
+ default: boolean;
1040
+ required?: undefined;
1041
+ 'x-reactions'?: undefined;
1042
+ description?: undefined;
1043
+ items?: undefined;
1044
+ properties?: undefined;
1045
+ } | {
1046
+ type: string;
1047
+ title: string;
1048
+ 'x-decorator': string;
1049
+ 'x-decorator-props': {
1050
+ tooltip: string;
1051
+ };
1052
+ 'x-component': (props: any) => React.JSX.Element;
1053
+ 'x-reactions': {
1054
+ dependencies: string[];
1055
+ fulfill: {
1056
+ state: {
1057
+ hidden: string;
1058
+ required?: undefined;
1059
+ };
1060
+ };
1061
+ };
1062
+ default: boolean;
1063
+ required?: undefined;
1064
+ description?: undefined;
1065
+ items?: undefined;
1066
+ properties?: undefined;
1067
+ };
1068
+ type: {
1069
+ type: string;
1070
+ title: string;
1071
+ 'x-decorator': string;
1072
+ 'x-component': (props: any) => React.JSX.Element;
1073
+ default: NocoBaseDesktopRouteType;
1074
+ };
1075
+ title: {
1076
+ type: string;
1077
+ title: string;
1078
+ 'x-decorator': string;
1079
+ 'x-component': string;
1080
+ required: boolean;
1081
+ };
1082
+ icon: {
1083
+ type: string;
1084
+ title: string;
1085
+ 'x-decorator': string;
1086
+ 'x-component': string;
1087
+ 'x-reactions': {
1088
+ dependencies: string[];
1089
+ fulfill: {
1090
+ state: {
1091
+ required: string;
1092
+ };
1093
+ };
1094
+ };
1095
+ };
1096
+ params: {
1097
+ type: string;
1098
+ 'x-component': string;
1099
+ 'x-decorator': string;
1100
+ title: string;
1101
+ items: {
1102
+ type: string;
1103
+ properties: {
1104
+ space: {
1105
+ type: string;
1106
+ 'x-component': string;
1107
+ 'x-component-props': {
1108
+ style: {
1109
+ flexWrap: string;
1110
+ maxWidth: string;
1111
+ };
1112
+ className: string;
1113
+ };
1114
+ properties: {
1115
+ name: {
1116
+ type: string;
1117
+ 'x-decorator': string;
1118
+ 'x-component': string;
1119
+ 'x-component-props': {
1120
+ placeholder: string;
1121
+ };
1122
+ };
1123
+ value: {
1124
+ type: string;
1125
+ 'x-decorator': string;
1126
+ 'x-component': (props: any) => React.JSX.Element;
1127
+ 'x-component-props': {
1128
+ placeholder: string;
1129
+ useTypedConstant: boolean;
1130
+ changeOnSelect: boolean;
1131
+ };
1132
+ };
1133
+ remove: {
1134
+ type: string;
1135
+ 'x-decorator': string;
1136
+ 'x-component': string;
1137
+ };
1138
+ };
1139
+ };
1140
+ };
1141
+ };
1142
+ 'x-reactions': {
1143
+ dependencies: string[];
1144
+ fulfill: {
1145
+ state: {
1146
+ hidden: string;
1147
+ };
1148
+ };
1149
+ };
1150
+ properties: {
1151
+ add: {
1152
+ type: string;
1153
+ title: string;
1154
+ 'x-component': string;
1155
+ };
1156
+ };
1157
+ };
1158
+ hideInMenu: {
1159
+ type: string;
1160
+ title: string;
1161
+ 'x-decorator': string;
1162
+ 'x-decorator-props': {
1163
+ tooltip: string;
1164
+ };
1165
+ 'x-component': (props: any) => React.JSX.Element;
1166
+ default: boolean;
1167
+ };
1168
+ enableTabs: {
1169
+ type: string;
1170
+ title: string;
1171
+ 'x-decorator': string;
1172
+ 'x-decorator-props': {
1173
+ tooltip: string;
1174
+ };
1175
+ 'x-component': (props: any) => React.JSX.Element;
1176
+ 'x-reactions': {
1177
+ dependencies: string[];
1178
+ fulfill: {
1179
+ state: {
1180
+ hidden: string;
1181
+ };
1182
+ };
1183
+ };
1184
+ default: boolean;
1185
+ };
1186
+ };
1187
+ };
1188
+ footer: {
1189
+ type: string;
1190
+ 'x-component': string;
1191
+ properties: {
1192
+ cancel: {
1193
+ title: string;
1194
+ 'x-component': string;
1195
+ 'x-component-props': {
1196
+ useAction: string;
1197
+ };
1198
+ };
1199
+ submit: {
1200
+ title: string;
1201
+ 'x-component': string;
1202
+ 'x-component-props': {
1203
+ type: string;
1204
+ useAction: (actionCallback?: (values: any) => void) => {
1205
+ run(): Promise<void>;
1206
+ };
1207
+ };
1208
+ };
1209
+ };
1210
+ };
1211
+ };
1212
+ };
1213
+ };
1214
+ };
1215
+ access: {
1216
+ type: string;
1217
+ title: string;
1218
+ 'x-component': string;
1219
+ 'x-use-component-props': () => {
1220
+ onClick: () => void;
1221
+ disabled: boolean;
1222
+ };
1223
+ 'x-decorator': string;
1224
+ };
1225
+ delete: {
1226
+ type: string;
1227
+ title: string;
1228
+ 'x-decorator': string;
1229
+ 'x-component': string;
1230
+ 'x-use-component-props': () => {
1231
+ onClick: () => Promise<void>;
1232
+ };
1233
+ 'x-component-props': {
1234
+ confirm: {
1235
+ title: string;
1236
+ content: string;
1237
+ };
1238
+ };
1239
+ };
1240
+ };
1241
+ };
1242
+ };
1243
+ };
1244
+ };
1245
+ };