1
+ import "comps/comps/layout/navLayout" ;
2
+ import "comps/comps/layout/mobileTabLayout" ;
3
+
1
4
import cnchar from "cnchar" ;
2
5
import { trans } from "i18n" ;
3
6
import { remoteComp } from "./comps/remoteComp/remoteComp" ;
@@ -113,6 +116,17 @@ import {
113
116
KanbanCompIcon ,
114
117
115
118
} from "lowcoder-design" ;
119
+ import { ModuleComp } from "./comps/moduleComp/moduleComp" ;
120
+ import { TableComp } from "./comps/tableComp/tableComp" ;
121
+ import { defaultTableData } from "./comps/tableComp/mockTableComp" ;
122
+ import { ContainerComp , defaultContainerData } from "./comps/containerComp/containerComp" ;
123
+ import { ColumnLayoutComp } from "./comps/columnLayout/columnLayout" ;
124
+ import { TabbedContainerComp } from "./comps/tabs/tabbedContainerComp" ;
125
+ import { ButtonComp } from "./comps/buttonComp/buttonComp" ;
126
+ import { TextComp } from "./comps/textComp" ;
127
+ import { SelectComp } from "./comps/selectInputComp/selectComp" ;
128
+ import { InputComp } from "./comps/textInputComp/inputComp" ;
129
+ import { TextAreaComp } from "./comps/textInputComp/textAreaComp" ;
116
130
117
131
type Registry = {
118
132
[ key in UICompType ] ?:UICompManifest ;
@@ -340,19 +354,16 @@ export var uiCompMap: Registry = {
340
354
name :trans ( "uiComp.tableCompName" ) ,
341
355
enName :"Table" ,
342
356
description :trans ( "uiComp.tableCompDesc" ) ,
343
- categories :[ "dashboards" ] ,
357
+ categories :[ "dashboards" , "projectmanagement" ] ,
344
358
icon :TableCompIcon ,
345
359
keywords :trans ( "uiComp.tableCompKeywords" ) ,
346
- lazyLoad :true ,
347
- compName :"TableComp" ,
348
- compPath :"comps/tableComp/index" ,
360
+ comp :TableComp ,
349
361
layoutInfo :{
350
362
w :12 ,
351
363
h :40 ,
352
364
} ,
353
365
withoutLoading :true ,
354
- defaultDataFnName :"defaultTableData" ,
355
- defaultDataFnPath :"comps/tableComp/mockTableComp" ,
366
+ defaultDataFn :defaultTableData ,
356
367
} ,
357
368
358
369
pivotTable :{
@@ -450,9 +461,7 @@ export var uiCompMap: Registry = {
450
461
categories :[ "layout" ] ,
451
462
icon :ColumnLayoutCompIcon ,
452
463
keywords :trans ( "uiComp.responsiveLayoutCompKeywords" ) ,
453
- lazyLoad :true ,
454
- compName :"ColumnLayoutComp" ,
455
- compPath :"comps/columnLayout/index" ,
464
+ comp :ColumnLayoutComp ,
456
465
withoutLoading :true ,
457
466
layoutInfo :{
458
467
w :24 ,
@@ -502,9 +511,7 @@ export var uiCompMap: Registry = {
502
511
categories :[ "layout" ] ,
503
512
icon :TabbedContainerCompIcon ,
504
513
keywords :trans ( "uiComp.tabbedContainerCompKeywords" ) ,
505
- lazyLoad :true ,
506
- compName :"TabbedContainerComp" ,
507
- compPath :"comps/tabs/index" ,
514
+ comp :TabbedContainerComp ,
508
515
withoutLoading :true ,
509
516
layoutInfo :{
510
517
w :12 ,
@@ -540,18 +547,15 @@ export var uiCompMap: Registry = {
540
547
categories :[ "layout" ] ,
541
548
icon :ContainerCompIcon ,
542
549
keywords :trans ( "uiComp.containerCompKeywords" ) ,
543
- lazyLoad :true ,
544
- compName :"ContainerComp" ,
545
- compPath :"comps/containerComp/containerComp" ,
550
+ comp :ContainerComp ,
546
551
withoutLoading :true ,
547
552
layoutInfo :{
548
553
w :12 ,
549
554
h :25 ,
550
555
// static: true,
551
556
delayCollision :true ,
552
557
} ,
553
- defaultDataFnName :"defaultContainerData" ,
554
- defaultDataFnPath :"comps/containerComp/containerComp" ,
558
+ defaultDataFn :defaultContainerData ,
555
559
} ,
556
560
listView :{
557
561
name :trans ( "uiComp.listViewCompName" ) ,
@@ -927,9 +931,7 @@ export var uiCompMap: Registry = {
927
931
categories :[ "forms" ] ,
928
932
icon :InputCompIcon ,
929
933
keywords :trans ( "uiComp.inputCompKeywords" ) ,
930
- lazyLoad :true ,
931
- compName :"InputComp" ,
932
- compPath :"comps/textInputComp/inputComp" ,
934
+ comp :InputComp ,
933
935
layoutInfo :{
934
936
w :6 ,
935
937
h :6 ,
@@ -972,9 +974,7 @@ export var uiCompMap: Registry = {
972
974
categories :[ "forms" ] ,
973
975
icon :TextAreaCompIcon ,
974
976
keywords :trans ( "uiComp.textAreaCompKeywords" ) ,
975
- lazyLoad :true ,
976
- compName :"TextAreaComp" ,
977
- compPath :"comps/textInputComp/textAreaComp" ,
977
+ comp :TextAreaComp ,
978
978
layoutInfo :{
979
979
w :6 ,
980
980
h :12 ,
@@ -1141,9 +1141,7 @@ export var uiCompMap: Registry = {
1141
1141
categories :[ "forms" ] ,
1142
1142
icon :ButtonCompIcon ,
1143
1143
keywords :trans ( "uiComp.buttonCompKeywords" ) ,
1144
- lazyLoad :true ,
1145
- compName :"ButtonComp" ,
1146
- compPath :"comps/buttonComp/buttonComp" ,
1144
+ comp :ButtonComp ,
1147
1145
layoutInfo :{
1148
1146
w :6 ,
1149
1147
h :6 ,
@@ -1563,9 +1561,7 @@ export var uiCompMap: Registry = {
1563
1561
categories :[ "forms" , "itemHandling" ] ,
1564
1562
icon :SelectCompIcon ,
1565
1563
keywords :trans ( "uiComp.selectCompKeywords" ) ,
1566
- lazyLoad :true ,
1567
- compName :"SelectComp" ,
1568
- compPath :"comps/selectInputComp/selectComp" ,
1564
+ comp :SelectComp ,
1569
1565
layoutInfo :{
1570
1566
w :6 ,
1571
1567
h :5 ,
@@ -1705,9 +1701,7 @@ export var uiCompMap: Registry = {
1705
1701
description :trans ( "uiComp.moduleCompDesc" ) ,
1706
1702
categories :[ ] ,
1707
1703
keywords :trans ( "uiComp.moduleCompKeywords" ) ,
1708
- lazyLoad :true ,
1709
- compName :"ModuleComp" ,
1710
- compPath :"comps/moduleComp/moduleComp" ,
1704
+ comp :ModuleComp ,
1711
1705
layoutInfo :{
1712
1706
w :12 ,
1713
1707
h :40 ,
@@ -1723,9 +1717,7 @@ export var uiCompMap: Registry = {
1723
1717
categories :[ "dashboards" , "layout" , "multimedia" ] ,
1724
1718
icon :TextCompIcon ,
1725
1719
keywords :trans ( "uiComp.textCompKeywords" ) ,
1726
- compName :"TextComp" ,
1727
- lazyLoad :true ,
1728
- compPath :"comps/textComp" ,
1720
+ comp :TextComp ,
1729
1721
layoutInfo :{
1730
1722
w :6 ,
1731
1723
h :24 ,