@nocobase/plugin-client 1.6.0-alpha.2 → 1.6.0-alpha.21

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 (33) hide show
  1. package/dist/client/DesktopRoutesManager.d.ts +10 -0
  2. package/dist/client/MobileRoutesManager.d.ts +10 -0
  3. package/dist/client/index.js +1 -1
  4. package/dist/client/locale/index.d.ts +12 -0
  5. package/dist/client/routesTableSchema.d.ts +1242 -0
  6. package/dist/client/useTableBlockProps.d.ts +23 -0
  7. package/dist/client/utils.d.ts +10 -0
  8. package/dist/collections/desktopRoutes.d.ts +10 -0
  9. package/dist/collections/desktopRoutes.js +420 -0
  10. package/dist/collections/mobileRoutes.d.ts +10 -0
  11. package/dist/collections/mobileRoutes.js +368 -0
  12. package/dist/externalVersion.js +10 -4
  13. package/dist/locale/en-US.js +35 -2
  14. package/dist/locale/es-ES.js +30 -1
  15. package/dist/locale/fr-FR.js +30 -1
  16. package/dist/locale/ja-JP.js +30 -1
  17. package/dist/locale/ko-KR.js +30 -1
  18. package/dist/locale/pt-BR.js +30 -1
  19. package/dist/locale/ru-RU.js +22 -1
  20. package/dist/locale/tr-TR.js +22 -1
  21. package/dist/locale/uk-UA.js +30 -1
  22. package/dist/locale/zh-CN.js +52 -6
  23. package/dist/locale/zh-TW.js +31 -1
  24. package/dist/node_modules/cronstrue/package.json +1 -1
  25. package/dist/server/collections/desktopRoutes.d.ts +10 -0
  26. package/dist/server/collections/desktopRoutes.js +44 -0
  27. package/dist/server/collections/extendRoleField.d.ts +14 -0
  28. package/dist/server/collections/extendRoleField.js +44 -0
  29. package/dist/server/migrations/2024122912211-transform-menu-schema-to-routes.d.ts +14 -0
  30. package/dist/server/migrations/2024122912211-transform-menu-schema-to-routes.js +184 -0
  31. package/dist/server/server.d.ts +6 -0
  32. package/dist/server/server.js +92 -5
  33. package/package.json +2 -2
@@ -0,0 +1,1242 @@
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 }: any, filters: any, sorter: any) => void;
458
+ };
459
+ 'x-component-props': {
460
+ rowKey: string;
461
+ rowSelection: {
462
+ type: string;
463
+ };
464
+ };
465
+ properties: {
466
+ title: {
467
+ type: string;
468
+ 'x-component': string;
469
+ title: string;
470
+ 'x-component-props': {
471
+ width: number;
472
+ };
473
+ properties: {
474
+ title: {
475
+ type: string;
476
+ 'x-component': string;
477
+ 'x-read-pretty': boolean;
478
+ 'x-component-props': {
479
+ ellipsis: boolean;
480
+ };
481
+ };
482
+ };
483
+ };
484
+ type: {
485
+ type: string;
486
+ 'x-component': string;
487
+ title: string;
488
+ 'x-component-props': {
489
+ width: number;
490
+ };
491
+ properties: {
492
+ type: {
493
+ type: string;
494
+ 'x-component': (props: any) => React.JSX.Element;
495
+ 'x-read-pretty': boolean;
496
+ 'x-component-props': {
497
+ ellipsis: boolean;
498
+ };
499
+ };
500
+ };
501
+ };
502
+ hideInMenu: {
503
+ type: string;
504
+ 'x-component': string;
505
+ title: string;
506
+ 'x-component-props': {
507
+ width: number;
508
+ };
509
+ properties: {
510
+ hideInMenu: {
511
+ type: string;
512
+ 'x-component': (props: any) => React.JSX.Element;
513
+ 'x-read-pretty': boolean;
514
+ 'x-component-props': {
515
+ ellipsis: boolean;
516
+ };
517
+ };
518
+ };
519
+ };
520
+ path: {
521
+ title: string;
522
+ type: string;
523
+ 'x-component': string;
524
+ 'x-component-props': {
525
+ width: number;
526
+ };
527
+ properties: {
528
+ path: {
529
+ type: string;
530
+ 'x-component': () => React.JSX.Element;
531
+ 'x-read-pretty': boolean;
532
+ };
533
+ };
534
+ };
535
+ actions: {
536
+ type: string;
537
+ title: string;
538
+ 'x-component': string;
539
+ properties: {
540
+ addChild: {
541
+ type: string;
542
+ title: string;
543
+ 'x-component': string;
544
+ 'x-use-component-props': () => {
545
+ disabled: boolean;
546
+ openMode: string;
547
+ };
548
+ 'x-decorator': string;
549
+ properties: {
550
+ drawer: {
551
+ type: string;
552
+ 'x-component': string;
553
+ 'x-decorator': string;
554
+ 'x-decorator-props': {
555
+ useValues(options: any): {};
556
+ };
557
+ title: string;
558
+ properties: {
559
+ formSchema: {
560
+ type: string;
561
+ properties: {
562
+ [x: string]: {
563
+ type: string;
564
+ title: string;
565
+ 'x-decorator': string;
566
+ 'x-component': (props: any) => React.JSX.Element;
567
+ required: boolean;
568
+ default: NocoBaseDesktopRouteType;
569
+ 'x-reactions'?: undefined;
570
+ description?: undefined;
571
+ items?: undefined;
572
+ properties?: undefined;
573
+ 'x-decorator-props'?: undefined;
574
+ } | {
575
+ type: string;
576
+ title: string;
577
+ 'x-decorator': string;
578
+ 'x-component': string;
579
+ required: boolean;
580
+ default?: undefined;
581
+ 'x-reactions'?: undefined;
582
+ description?: undefined;
583
+ items?: undefined;
584
+ properties?: undefined;
585
+ 'x-decorator-props'?: undefined;
586
+ } | {
587
+ type: string;
588
+ title: string;
589
+ 'x-decorator': string;
590
+ 'x-component': string;
591
+ 'x-reactions': {
592
+ dependencies: string[];
593
+ fulfill: {
594
+ state: {
595
+ required: string;
596
+ hidden?: undefined;
597
+ };
598
+ };
599
+ };
600
+ required?: undefined;
601
+ default?: undefined;
602
+ description?: undefined;
603
+ items?: undefined;
604
+ properties?: undefined;
605
+ 'x-decorator-props'?: undefined;
606
+ } | {
607
+ title: string;
608
+ type: string;
609
+ 'x-decorator': string;
610
+ 'x-component': (props: any) => React.JSX.Element;
611
+ description: string;
612
+ 'x-reactions': {
613
+ dependencies: string[];
614
+ fulfill: {
615
+ state: {
616
+ hidden: string;
617
+ required?: undefined;
618
+ };
619
+ };
620
+ };
621
+ required?: undefined;
622
+ default?: undefined;
623
+ items?: undefined;
624
+ properties?: undefined;
625
+ 'x-decorator-props'?: undefined;
626
+ } | {
627
+ type: string;
628
+ 'x-component': string;
629
+ 'x-decorator': string;
630
+ title: string;
631
+ items: {
632
+ type: string;
633
+ properties: {
634
+ space: {
635
+ type: string;
636
+ 'x-component': string;
637
+ 'x-component-props': {
638
+ style: {
639
+ flexWrap: string;
640
+ maxWidth: string;
641
+ };
642
+ className: string;
643
+ };
644
+ properties: {
645
+ name: {
646
+ type: string;
647
+ 'x-decorator': string;
648
+ 'x-component': string;
649
+ 'x-component-props': {
650
+ placeholder: string;
651
+ };
652
+ };
653
+ value: {
654
+ type: string;
655
+ 'x-decorator': string;
656
+ 'x-component': (props: any) => React.JSX.Element;
657
+ 'x-component-props': {
658
+ placeholder: string;
659
+ useTypedConstant: boolean;
660
+ changeOnSelect: boolean;
661
+ };
662
+ };
663
+ remove: {
664
+ type: string;
665
+ 'x-decorator': string;
666
+ 'x-component': string;
667
+ };
668
+ };
669
+ };
670
+ };
671
+ };
672
+ 'x-reactions': {
673
+ dependencies: string[];
674
+ fulfill: {
675
+ state: {
676
+ hidden: string;
677
+ required?: undefined;
678
+ };
679
+ };
680
+ };
681
+ properties: {
682
+ add: {
683
+ type: string;
684
+ title: string;
685
+ 'x-component': string;
686
+ };
687
+ };
688
+ required?: undefined;
689
+ default?: undefined;
690
+ description?: undefined;
691
+ 'x-decorator-props'?: undefined;
692
+ } | {
693
+ type: string;
694
+ title: string;
695
+ 'x-decorator': string;
696
+ 'x-decorator-props': {
697
+ tooltip: string;
698
+ };
699
+ 'x-component': (props: any) => React.JSX.Element;
700
+ default: boolean;
701
+ required?: undefined;
702
+ 'x-reactions'?: undefined;
703
+ description?: undefined;
704
+ items?: undefined;
705
+ properties?: undefined;
706
+ } | {
707
+ type: string;
708
+ title: string;
709
+ 'x-decorator': string;
710
+ 'x-decorator-props': {
711
+ tooltip: string;
712
+ };
713
+ 'x-component': (props: any) => React.JSX.Element;
714
+ 'x-reactions': {
715
+ dependencies: string[];
716
+ fulfill: {
717
+ state: {
718
+ hidden: string;
719
+ required?: undefined;
720
+ };
721
+ };
722
+ };
723
+ default: boolean;
724
+ required?: undefined;
725
+ description?: undefined;
726
+ items?: undefined;
727
+ properties?: undefined;
728
+ };
729
+ type: {
730
+ type: string;
731
+ title: string;
732
+ 'x-decorator': string;
733
+ 'x-component': (props: any) => React.JSX.Element;
734
+ required: boolean;
735
+ default: NocoBaseDesktopRouteType;
736
+ };
737
+ title: {
738
+ type: string;
739
+ title: string;
740
+ 'x-decorator': string;
741
+ 'x-component': string;
742
+ required: boolean;
743
+ };
744
+ icon: {
745
+ type: string;
746
+ title: string;
747
+ 'x-decorator': string;
748
+ 'x-component': string;
749
+ 'x-reactions': {
750
+ dependencies: string[];
751
+ fulfill: {
752
+ state: {
753
+ required: string;
754
+ };
755
+ };
756
+ };
757
+ };
758
+ params: {
759
+ type: string;
760
+ 'x-component': string;
761
+ 'x-decorator': string;
762
+ title: string;
763
+ items: {
764
+ type: string;
765
+ properties: {
766
+ space: {
767
+ type: string;
768
+ 'x-component': string;
769
+ 'x-component-props': {
770
+ style: {
771
+ flexWrap: string;
772
+ maxWidth: string;
773
+ };
774
+ className: string;
775
+ };
776
+ properties: {
777
+ name: {
778
+ type: string;
779
+ 'x-decorator': string;
780
+ 'x-component': string;
781
+ 'x-component-props': {
782
+ placeholder: string;
783
+ };
784
+ };
785
+ value: {
786
+ type: string;
787
+ 'x-decorator': string;
788
+ 'x-component': (props: any) => React.JSX.Element;
789
+ 'x-component-props': {
790
+ placeholder: string;
791
+ useTypedConstant: boolean;
792
+ changeOnSelect: boolean;
793
+ };
794
+ };
795
+ remove: {
796
+ type: string;
797
+ 'x-decorator': string;
798
+ 'x-component': string;
799
+ };
800
+ };
801
+ };
802
+ };
803
+ };
804
+ 'x-reactions': {
805
+ dependencies: string[];
806
+ fulfill: {
807
+ state: {
808
+ hidden: string;
809
+ };
810
+ };
811
+ };
812
+ properties: {
813
+ add: {
814
+ type: string;
815
+ title: string;
816
+ 'x-component': string;
817
+ };
818
+ };
819
+ };
820
+ hideInMenu: {
821
+ type: string;
822
+ title: string;
823
+ 'x-decorator': string;
824
+ 'x-decorator-props': {
825
+ tooltip: string;
826
+ };
827
+ 'x-component': (props: any) => React.JSX.Element;
828
+ default: boolean;
829
+ };
830
+ enableTabs: {
831
+ type: string;
832
+ title: string;
833
+ 'x-decorator': string;
834
+ 'x-decorator-props': {
835
+ tooltip: string;
836
+ };
837
+ 'x-component': (props: any) => React.JSX.Element;
838
+ 'x-reactions': {
839
+ dependencies: string[];
840
+ fulfill: {
841
+ state: {
842
+ hidden: string;
843
+ };
844
+ };
845
+ };
846
+ default: boolean;
847
+ };
848
+ };
849
+ };
850
+ footer: {
851
+ type: string;
852
+ 'x-component': string;
853
+ properties: {
854
+ cancel: {
855
+ title: string;
856
+ 'x-component': string;
857
+ 'x-component-props': {
858
+ useAction: string;
859
+ };
860
+ };
861
+ submit: {
862
+ title: string;
863
+ 'x-component': string;
864
+ 'x-component-props': {
865
+ type: string;
866
+ useAction: () => {
867
+ run(): Promise<void>;
868
+ };
869
+ };
870
+ };
871
+ };
872
+ };
873
+ };
874
+ };
875
+ };
876
+ };
877
+ edit: {
878
+ type: string;
879
+ title: string;
880
+ 'x-component': string;
881
+ 'x-component-props': {
882
+ openMode: string;
883
+ };
884
+ 'x-decorator': string;
885
+ properties: {
886
+ drawer: {
887
+ type: string;
888
+ 'x-component': string;
889
+ 'x-decorator': string;
890
+ 'x-decorator-props': {
891
+ useValues(options: any): import("@nocobase/client").UseRequestResult<unknown>;
892
+ };
893
+ title: string;
894
+ properties: {
895
+ formSchema: {
896
+ type: string;
897
+ properties: {
898
+ [x: string]: {
899
+ type: string;
900
+ title: string;
901
+ 'x-decorator': string;
902
+ 'x-component': (props: any) => React.JSX.Element;
903
+ default: NocoBaseDesktopRouteType;
904
+ required?: undefined;
905
+ 'x-reactions'?: undefined;
906
+ description?: undefined;
907
+ items?: undefined;
908
+ properties?: undefined;
909
+ 'x-decorator-props'?: undefined;
910
+ } | {
911
+ type: string;
912
+ title: string;
913
+ 'x-decorator': string;
914
+ 'x-component': string;
915
+ required: boolean;
916
+ default?: undefined;
917
+ 'x-reactions'?: undefined;
918
+ description?: undefined;
919
+ items?: undefined;
920
+ properties?: undefined;
921
+ 'x-decorator-props'?: undefined;
922
+ } | {
923
+ type: string;
924
+ title: string;
925
+ 'x-decorator': string;
926
+ 'x-component': string;
927
+ 'x-reactions': {
928
+ dependencies: string[];
929
+ fulfill: {
930
+ state: {
931
+ required: string;
932
+ hidden?: undefined;
933
+ };
934
+ };
935
+ };
936
+ default?: undefined;
937
+ required?: undefined;
938
+ description?: undefined;
939
+ items?: undefined;
940
+ properties?: undefined;
941
+ 'x-decorator-props'?: undefined;
942
+ } | {
943
+ title: string;
944
+ type: string;
945
+ 'x-decorator': string;
946
+ 'x-component': (props: any) => React.JSX.Element;
947
+ description: string;
948
+ 'x-reactions': {
949
+ dependencies: string[];
950
+ fulfill: {
951
+ state: {
952
+ hidden: string;
953
+ required?: undefined;
954
+ };
955
+ };
956
+ };
957
+ default?: undefined;
958
+ required?: undefined;
959
+ items?: undefined;
960
+ properties?: undefined;
961
+ 'x-decorator-props'?: undefined;
962
+ } | {
963
+ type: string;
964
+ 'x-component': string;
965
+ 'x-decorator': string;
966
+ title: string;
967
+ items: {
968
+ type: string;
969
+ properties: {
970
+ space: {
971
+ type: string;
972
+ 'x-component': string;
973
+ 'x-component-props': {
974
+ style: {
975
+ flexWrap: string;
976
+ maxWidth: string;
977
+ };
978
+ className: string;
979
+ };
980
+ properties: {
981
+ name: {
982
+ type: string;
983
+ 'x-decorator': string;
984
+ 'x-component': string;
985
+ 'x-component-props': {
986
+ placeholder: string;
987
+ };
988
+ };
989
+ value: {
990
+ type: string;
991
+ 'x-decorator': string;
992
+ 'x-component': (props: any) => React.JSX.Element;
993
+ 'x-component-props': {
994
+ placeholder: string;
995
+ useTypedConstant: boolean;
996
+ changeOnSelect: boolean;
997
+ };
998
+ };
999
+ remove: {
1000
+ type: string;
1001
+ 'x-decorator': string;
1002
+ 'x-component': string;
1003
+ };
1004
+ };
1005
+ };
1006
+ };
1007
+ };
1008
+ 'x-reactions': {
1009
+ dependencies: string[];
1010
+ fulfill: {
1011
+ state: {
1012
+ hidden: string;
1013
+ required?: undefined;
1014
+ };
1015
+ };
1016
+ };
1017
+ properties: {
1018
+ add: {
1019
+ type: string;
1020
+ title: string;
1021
+ 'x-component': string;
1022
+ };
1023
+ };
1024
+ default?: undefined;
1025
+ required?: undefined;
1026
+ description?: undefined;
1027
+ 'x-decorator-props'?: undefined;
1028
+ } | {
1029
+ type: string;
1030
+ title: string;
1031
+ 'x-decorator': string;
1032
+ 'x-decorator-props': {
1033
+ tooltip: string;
1034
+ };
1035
+ 'x-component': (props: any) => React.JSX.Element;
1036
+ default: boolean;
1037
+ required?: undefined;
1038
+ 'x-reactions'?: undefined;
1039
+ description?: undefined;
1040
+ items?: undefined;
1041
+ properties?: undefined;
1042
+ } | {
1043
+ type: string;
1044
+ title: string;
1045
+ 'x-decorator': string;
1046
+ 'x-decorator-props': {
1047
+ tooltip: string;
1048
+ };
1049
+ 'x-component': (props: any) => React.JSX.Element;
1050
+ 'x-reactions': {
1051
+ dependencies: string[];
1052
+ fulfill: {
1053
+ state: {
1054
+ hidden: string;
1055
+ required?: undefined;
1056
+ };
1057
+ };
1058
+ };
1059
+ default: boolean;
1060
+ required?: undefined;
1061
+ description?: undefined;
1062
+ items?: undefined;
1063
+ properties?: undefined;
1064
+ };
1065
+ type: {
1066
+ type: string;
1067
+ title: string;
1068
+ 'x-decorator': string;
1069
+ 'x-component': (props: any) => React.JSX.Element;
1070
+ default: NocoBaseDesktopRouteType;
1071
+ };
1072
+ title: {
1073
+ type: string;
1074
+ title: string;
1075
+ 'x-decorator': string;
1076
+ 'x-component': string;
1077
+ required: boolean;
1078
+ };
1079
+ icon: {
1080
+ type: string;
1081
+ title: string;
1082
+ 'x-decorator': string;
1083
+ 'x-component': string;
1084
+ 'x-reactions': {
1085
+ dependencies: string[];
1086
+ fulfill: {
1087
+ state: {
1088
+ required: string;
1089
+ };
1090
+ };
1091
+ };
1092
+ };
1093
+ params: {
1094
+ type: string;
1095
+ 'x-component': string;
1096
+ 'x-decorator': string;
1097
+ title: string;
1098
+ items: {
1099
+ type: string;
1100
+ properties: {
1101
+ space: {
1102
+ type: string;
1103
+ 'x-component': string;
1104
+ 'x-component-props': {
1105
+ style: {
1106
+ flexWrap: string;
1107
+ maxWidth: string;
1108
+ };
1109
+ className: string;
1110
+ };
1111
+ properties: {
1112
+ name: {
1113
+ type: string;
1114
+ 'x-decorator': string;
1115
+ 'x-component': string;
1116
+ 'x-component-props': {
1117
+ placeholder: string;
1118
+ };
1119
+ };
1120
+ value: {
1121
+ type: string;
1122
+ 'x-decorator': string;
1123
+ 'x-component': (props: any) => React.JSX.Element;
1124
+ 'x-component-props': {
1125
+ placeholder: string;
1126
+ useTypedConstant: boolean;
1127
+ changeOnSelect: boolean;
1128
+ };
1129
+ };
1130
+ remove: {
1131
+ type: string;
1132
+ 'x-decorator': string;
1133
+ 'x-component': string;
1134
+ };
1135
+ };
1136
+ };
1137
+ };
1138
+ };
1139
+ 'x-reactions': {
1140
+ dependencies: string[];
1141
+ fulfill: {
1142
+ state: {
1143
+ hidden: string;
1144
+ };
1145
+ };
1146
+ };
1147
+ properties: {
1148
+ add: {
1149
+ type: string;
1150
+ title: string;
1151
+ 'x-component': string;
1152
+ };
1153
+ };
1154
+ };
1155
+ hideInMenu: {
1156
+ type: string;
1157
+ title: string;
1158
+ 'x-decorator': string;
1159
+ 'x-decorator-props': {
1160
+ tooltip: string;
1161
+ };
1162
+ 'x-component': (props: any) => React.JSX.Element;
1163
+ default: boolean;
1164
+ };
1165
+ enableTabs: {
1166
+ type: string;
1167
+ title: string;
1168
+ 'x-decorator': string;
1169
+ 'x-decorator-props': {
1170
+ tooltip: string;
1171
+ };
1172
+ 'x-component': (props: any) => React.JSX.Element;
1173
+ 'x-reactions': {
1174
+ dependencies: string[];
1175
+ fulfill: {
1176
+ state: {
1177
+ hidden: string;
1178
+ };
1179
+ };
1180
+ };
1181
+ default: boolean;
1182
+ };
1183
+ };
1184
+ };
1185
+ footer: {
1186
+ type: string;
1187
+ 'x-component': string;
1188
+ properties: {
1189
+ cancel: {
1190
+ title: string;
1191
+ 'x-component': string;
1192
+ 'x-component-props': {
1193
+ useAction: string;
1194
+ };
1195
+ };
1196
+ submit: {
1197
+ title: string;
1198
+ 'x-component': string;
1199
+ 'x-component-props': {
1200
+ type: string;
1201
+ useAction: (actionCallback?: (values: any) => void) => {
1202
+ run(): Promise<void>;
1203
+ };
1204
+ };
1205
+ };
1206
+ };
1207
+ };
1208
+ };
1209
+ };
1210
+ };
1211
+ };
1212
+ access: {
1213
+ type: string;
1214
+ title: string;
1215
+ 'x-component': string;
1216
+ 'x-use-component-props': () => {
1217
+ onClick: () => void;
1218
+ disabled: boolean;
1219
+ };
1220
+ 'x-decorator': string;
1221
+ };
1222
+ delete: {
1223
+ type: string;
1224
+ title: string;
1225
+ 'x-decorator': string;
1226
+ 'x-component': string;
1227
+ 'x-use-component-props': () => {
1228
+ onClick: () => Promise<void>;
1229
+ };
1230
+ 'x-component-props': {
1231
+ confirm: {
1232
+ title: string;
1233
+ content: string;
1234
+ };
1235
+ };
1236
+ };
1237
+ };
1238
+ };
1239
+ };
1240
+ };
1241
+ };
1242
+ };