datastake-daf 0.6.261 → 0.6.263
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/.env +8 -0
- package/.vscode/settings.json +13 -0
- package/dist/components/index.js +325 -155
- package/dist/utils/index.js +34 -34
- package/package.json +1 -1
- package/src/@daf/core/components/EditForm/components/ajaxSelect.js +1 -1
- package/src/@daf/core/components/EditForm/form.jsx +621 -551
- package/src/@daf/core/components/EditForm/storyConfig1.js +155 -249
- package/src/@daf/core/components/EditForm/storyConfig2.js +378 -20
- package/src/helpers/Forms.js +522 -443
|
@@ -1,256 +1,162 @@
|
|
|
1
1
|
export const getApiBaseUrl = () => "http://192.168.4.65:4020";
|
|
2
2
|
|
|
3
3
|
export const getAppHeader = () => ({
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Application: "sbg",
|
|
5
|
+
Language: "en",
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
export const storyData = {
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
perimeter: [
|
|
163
|
-
[58.313817167753996, 18.413085937500004],
|
|
164
|
-
[59.2700913303328, 17.270507812500004],
|
|
165
|
-
[59.18015006492145, 16.479492187500004],
|
|
166
|
-
],
|
|
167
|
-
name: "test 999444444",
|
|
168
|
-
country: "AX",
|
|
169
|
-
category: "plot",
|
|
170
|
-
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
171
|
-
published: false,
|
|
172
|
-
version: 1,
|
|
173
|
-
datastakeId: "LOC-00000000295",
|
|
174
|
-
pictures: [],
|
|
175
|
-
documents: [],
|
|
176
|
-
associatedSubjects: [
|
|
177
|
-
{
|
|
178
|
-
entity: "PlantingCycle",
|
|
179
|
-
_id: {},
|
|
180
|
-
nature: "location",
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
entity: "PlantingCycle",
|
|
184
|
-
_id: {},
|
|
185
|
-
nature: "location",
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
entity: "PlantingCycle",
|
|
189
|
-
_id: {},
|
|
190
|
-
nature: "location",
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
createdAt: "2025-08-15",
|
|
194
|
-
updatedAt: "2025-08-15",
|
|
195
|
-
__v: 0,
|
|
196
|
-
label: "test 999444444",
|
|
197
|
-
value: "689f1086cd1642955475a45e",
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
_id: "689f1135cd1642955475a594",
|
|
201
|
-
form: "location",
|
|
202
|
-
id: "d60984d5-e79a-474f-8c6d-b9d4256f0357",
|
|
203
|
-
parent: {
|
|
204
|
-
_id: "689f1135cd1642955475a59b",
|
|
205
|
-
createdAt: "2025-08-15T10:51:33.758Z",
|
|
206
|
-
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
207
|
-
id: "818f4b75-2212-47e4-b07e-52a7e6454568",
|
|
208
|
-
name: "edd",
|
|
209
|
-
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
210
|
-
collectId: "79af2232d97ef4ae6b435b1d22997a978b5e2f47",
|
|
211
|
-
country: "AX",
|
|
212
|
-
administrativeLevel1: null,
|
|
213
|
-
administrativeLevel2: null,
|
|
214
|
-
category: "plot",
|
|
215
|
-
datastakeId: "LOC-00000000296",
|
|
216
|
-
__v: 0,
|
|
217
|
-
},
|
|
218
|
-
perimeter: [
|
|
219
|
-
[59.98229931379975, 17.228966156671063],
|
|
220
|
-
[59.98229931379975, 17.565517949147456],
|
|
221
|
-
[59.77480258556264, 17.53667065264947],
|
|
222
|
-
],
|
|
223
|
-
administrativeLevel1: null,
|
|
224
|
-
administrativeLevel2: null,
|
|
225
|
-
name: "edd",
|
|
226
|
-
country: "AX",
|
|
227
|
-
category: "plot",
|
|
228
|
-
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
229
|
-
gps: null,
|
|
230
|
-
published: false,
|
|
231
|
-
version: 1,
|
|
232
|
-
datastakeId: "LOC-00000000296",
|
|
233
|
-
pictures: [],
|
|
234
|
-
documents: [],
|
|
235
|
-
associatedSubjects: [
|
|
236
|
-
{
|
|
237
|
-
entity: "Event",
|
|
238
|
-
_id: {},
|
|
239
|
-
nature: "location",
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
entity: "PlantingCycle",
|
|
243
|
-
_id: {},
|
|
244
|
-
nature: "location",
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
projectId: "PRJ-00000000107",
|
|
248
|
-
createdAt: "2025-08-15T10:51:33.758Z",
|
|
249
|
-
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
250
|
-
__v: 0,
|
|
251
|
-
label: "edd",
|
|
252
|
-
value: "689f1135cd1642955475a594",
|
|
253
|
-
},
|
|
254
|
-
],
|
|
255
|
-
},
|
|
9
|
+
getApiBaseUrl,
|
|
10
|
+
getAppHeader,
|
|
11
|
+
form: {
|
|
12
|
+
id: "financialManagement",
|
|
13
|
+
description: "",
|
|
14
|
+
icon: "",
|
|
15
|
+
position: 0,
|
|
16
|
+
show: true,
|
|
17
|
+
options: {
|
|
18
|
+
id: "identification",
|
|
19
|
+
position: 1,
|
|
20
|
+
perimeter: {
|
|
21
|
+
_id: "68d290c5f38c1a4e100780c8",
|
|
22
|
+
id: "118311ba-4ee5-4253-8fe4-ae3632838732",
|
|
23
|
+
dataId: "perimeter",
|
|
24
|
+
section: "identification",
|
|
25
|
+
type: "drawTerritory",
|
|
26
|
+
showIf: "locationId is new OR locationId is undefined",
|
|
27
|
+
position: 4,
|
|
28
|
+
scope: [
|
|
29
|
+
"activityLocation",
|
|
30
|
+
"newActivityLocation",
|
|
31
|
+
"createAppLocation",
|
|
32
|
+
"createOtherLocation",
|
|
33
|
+
"createOperationalPlot",
|
|
34
|
+
"createSamplingPlot",
|
|
35
|
+
"appPlot",
|
|
36
|
+
"samplingPlot",
|
|
37
|
+
"projectPlot",
|
|
38
|
+
"createProjectLocation",
|
|
39
|
+
],
|
|
40
|
+
label: "Perimeter",
|
|
41
|
+
createdAt: "2025-09-23T12:21:25.730Z",
|
|
42
|
+
updatedAt: "2025-09-23T12:21:25.730Z",
|
|
43
|
+
__v: 0,
|
|
44
|
+
},
|
|
45
|
+
label: "Identification",
|
|
46
|
+
subTitle: "Identification",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
data: {
|
|
50
|
+
location: [
|
|
51
|
+
{
|
|
52
|
+
_id: "689f1086cd1642955475a45e",
|
|
53
|
+
form: "location",
|
|
54
|
+
id: "f276986a-5b41-45bf-b02b-61e79c42cf50",
|
|
55
|
+
parent: {
|
|
56
|
+
_id: "689f1086cd1642955475a462",
|
|
57
|
+
createdAt: "2025-08-15T10:48:38.719Z",
|
|
58
|
+
updatedAt: "2025-08-15T10:48:38.719Z",
|
|
59
|
+
id: "e006842b-b9bb-431f-b9b9-184e82e324b4",
|
|
60
|
+
name: "test 999444444",
|
|
61
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
62
|
+
collectId: "93ed3cfd5abf671367ca3116d8bdcb429ca55d16",
|
|
63
|
+
country: "AX",
|
|
64
|
+
category: "plot",
|
|
65
|
+
datastakeId: "LOC-00000000295",
|
|
66
|
+
__v: 0,
|
|
67
|
+
},
|
|
68
|
+
perimeter: [
|
|
69
|
+
[58.313817167753996, 18.413085937500004],
|
|
70
|
+
[59.2700913303328, 17.270507812500004],
|
|
71
|
+
[59.18015006492145, 16.479492187500004],
|
|
72
|
+
],
|
|
73
|
+
name: "test 999444444",
|
|
74
|
+
country: "AX",
|
|
75
|
+
category: "plot",
|
|
76
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
77
|
+
published: false,
|
|
78
|
+
version: 1,
|
|
79
|
+
datastakeId: "LOC-00000000295",
|
|
80
|
+
pictures: [],
|
|
81
|
+
documents: [],
|
|
82
|
+
associatedSubjects: [
|
|
83
|
+
{
|
|
84
|
+
entity: "PlantingCycle",
|
|
85
|
+
_id: {},
|
|
86
|
+
nature: "location",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
entity: "PlantingCycle",
|
|
90
|
+
_id: {},
|
|
91
|
+
nature: "location",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
entity: "PlantingCycle",
|
|
95
|
+
_id: {},
|
|
96
|
+
nature: "location",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
createdAt: "2025-08-15",
|
|
100
|
+
updatedAt: "2025-08-15",
|
|
101
|
+
__v: 0,
|
|
102
|
+
label: "test 999444444",
|
|
103
|
+
value: "689f1086cd1642955475a45e",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
_id: "689f1135cd1642955475a594",
|
|
107
|
+
form: "location",
|
|
108
|
+
id: "d60984d5-e79a-474f-8c6d-b9d4256f0357",
|
|
109
|
+
parent: {
|
|
110
|
+
_id: "689f1135cd1642955475a59b",
|
|
111
|
+
createdAt: "2025-08-15T10:51:33.758Z",
|
|
112
|
+
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
113
|
+
id: "818f4b75-2212-47e4-b07e-52a7e6454568",
|
|
114
|
+
name: "edd",
|
|
115
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
116
|
+
collectId: "79af2232d97ef4ae6b435b1d22997a978b5e2f47",
|
|
117
|
+
country: "AX",
|
|
118
|
+
administrativeLevel1: null,
|
|
119
|
+
administrativeLevel2: null,
|
|
120
|
+
category: "plot",
|
|
121
|
+
datastakeId: "LOC-00000000296",
|
|
122
|
+
__v: 0,
|
|
123
|
+
},
|
|
124
|
+
perimeter: [
|
|
125
|
+
[59.98229931379975, 17.228966156671063],
|
|
126
|
+
[59.98229931379975, 17.565517949147456],
|
|
127
|
+
[59.77480258556264, 17.53667065264947],
|
|
128
|
+
],
|
|
129
|
+
administrativeLevel1: null,
|
|
130
|
+
administrativeLevel2: null,
|
|
131
|
+
name: "edd",
|
|
132
|
+
country: "AX",
|
|
133
|
+
category: "plot",
|
|
134
|
+
authorId: "df5378ae-704a-4a46-93b2-336cc5341456",
|
|
135
|
+
gps: null,
|
|
136
|
+
published: false,
|
|
137
|
+
version: 1,
|
|
138
|
+
datastakeId: "LOC-00000000296",
|
|
139
|
+
pictures: [],
|
|
140
|
+
documents: [],
|
|
141
|
+
associatedSubjects: [
|
|
142
|
+
{
|
|
143
|
+
entity: "Event",
|
|
144
|
+
_id: {},
|
|
145
|
+
nature: "location",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
entity: "PlantingCycle",
|
|
149
|
+
_id: {},
|
|
150
|
+
nature: "location",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
projectId: "PRJ-00000000107",
|
|
154
|
+
createdAt: "2025-08-15T10:51:33.758Z",
|
|
155
|
+
updatedAt: "2025-08-15T10:51:33.758Z",
|
|
156
|
+
__v: 0,
|
|
157
|
+
label: "edd",
|
|
158
|
+
value: "689f1135cd1642955475a594",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
256
162
|
};
|