-
Notifications
You must be signed in to change notification settings - Fork 3
/
group.js
149 lines (148 loc) · 2.96 KB
/
group.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
Evolutility Model for Field groups
https://github.com/evoluteur/evolutility-models
(c) 2022 Olivier Giulieri
*/
module.exports = {
id: "group",
world: "designer",
schema: "evolutility",
title: "Field Groups",
table: "evol_object_group",
active: true,
icon: "designer/group.png",
name: "group",
namePlural: "groups",
titleField: "label",
position: 30,
fields: [
{
id: "gid",
label: "Group ID",
type: "text",
required: false,
inMany: true,
width: 38,
column: "gid",
inSearch: true,
},
{
id: "label",
label: "Label",
type: "text",
help: "Group title",
maxLength: 100,
required: true,
inMany: true,
width: 62,
column: "label",
},
{
id: "type",
column: "type_id",
type: "lov",
label: "Type",
lovTable: "evol_group_type",
list: [
{ id: 1, text: "Panel" },
{ id: 2, text: "Collapsible" },
],
width: 38,
inMany: true,
},
{
id: "object",
label: "Object",
type: "lov",
object: "object",
required: true,
inMany: true,
noCharts: true,
width: 32,
column: "object_id",
lovTable: "evol_object",
lovColumn: "title",
width: 62,
deleteTrigger: true,
},
{
id: "fields",
label: "Fields",
type: "json",
column: "fields",
required: true,
width: 100,
height: 5,
},
{
id: "position",
column: "position",
label: "Position",
help: "Order of the field",
type: "integer",
maxLength: 3,
width: 50,
},
{
id: "width",
column: "width",
label: "Width",
defaultValue: 100,
help: "Relative width of the group (in percentage of the screen)",
type: "integer",
format: "0 '%'",
maxLength: 3,
width: 50,
},
{
id: "css",
column: "css",
label: "CSS",
help: "Stylesheet class name for the group.",
type: "text",
maxLength: 20,
width: 100,
},
{
id: "header",
column: "header",
label: "Header",
type: "textmultiline",
maxLength: 500,
width: 100,
height: 4,
help: "Introduction text displayed at the top of the group.",
},
{
id: "footer",
column: "footer",
label: "Footer",
type: "textmultiline",
maxLength: 500,
width: 100,
height: 4,
help: "Footer text displayed below the group.",
},
{
id: "description",
column: "description",
label: "Description",
type: "textmultiline",
maxLength: 500,
width: 100,
height: 3,
},
],
groups: [
{
label: "Identity",
width: 62,
fields: ["label", "gid", "type", "object", "fields", "description"],
},
{
label: "Layout",
width: 38,
fields: ["position", "width", "css", "header", "footer"],
},
],
};