capibara 1.1.13 → 1.1.18
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/app_cuarteles.js +5 -0
- package/config.js +4 -3
- package/config_cuarteles.js +292 -0
- package/cuarteles.html +19 -0
- package/data_cuarteles.js +118 -0
- package/dist/cuarteles.html +19 -0
- package/dist/index.js +4 -4
- package/package.json +3 -4
- package/src/lib/capibara.js +19 -8
- package/src/scss/components/_floatbox.scss +12 -1
- package/src/scss/layout/_corner.scss +6 -0
- package/src/scss/layout/_footer.scss +1 -1
- package/src/scss/layout/_header.scss +2 -2
- package/src/scss/layout/_plotContainer.scss +3 -3
- package/src/scss/layout/_table.scss +1 -1
- package/src/scss/layout/_todayLine.scss +18 -19
- package/src/scss/style.scss +1 -5
- package/src/scss/themes/_color_themes.scss +7 -1
- package/src/util/styleUtils.js +9 -0
- package/src/util/tableElements.js +37 -18
- package/webpack.config.js +4 -0
package/app_cuarteles.js
ADDED
package/config.js
CHANGED
|
@@ -388,13 +388,13 @@ var config = {
|
|
|
388
388
|
//height: 80,
|
|
389
389
|
},
|
|
390
390
|
extend: {
|
|
391
|
-
//
|
|
392
|
-
|
|
391
|
+
//enabled: true,
|
|
392
|
+
//isShow: true,
|
|
393
393
|
data: [
|
|
394
394
|
{
|
|
395
395
|
label: "Eto",
|
|
396
396
|
color: "green",
|
|
397
|
-
average:
|
|
397
|
+
average: 12,
|
|
398
398
|
isPersistent: true,
|
|
399
399
|
editableFuture: false,
|
|
400
400
|
editableToday: false,
|
|
@@ -824,6 +824,7 @@ var config = {
|
|
|
824
824
|
{
|
|
825
825
|
label: "Etb",
|
|
826
826
|
color: "teal",
|
|
827
|
+
average: 12,
|
|
827
828
|
isPersistent: true,
|
|
828
829
|
editableFuture: false,
|
|
829
830
|
data: [
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
var config = {
|
|
2
|
+
"selector": "#timeline",
|
|
3
|
+
"timeline": {
|
|
4
|
+
"start": "2021-10-29",
|
|
5
|
+
"end": "2021-12-31",
|
|
6
|
+
"dark": false,
|
|
7
|
+
"withDarkToggle": true,
|
|
8
|
+
"loading": false,
|
|
9
|
+
"plots": {
|
|
10
|
+
"vertical": [],
|
|
11
|
+
"horizontal": []
|
|
12
|
+
},
|
|
13
|
+
"tabs": [
|
|
14
|
+
{
|
|
15
|
+
"id": 1,
|
|
16
|
+
"key": "foliar",
|
|
17
|
+
"label": "Fert. Foliar",
|
|
18
|
+
"color": "c-green",
|
|
19
|
+
"floatBox": {
|
|
20
|
+
"nums": [
|
|
21
|
+
{
|
|
22
|
+
"varName": "foliar.value",
|
|
23
|
+
"color": "c-green"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"varName": "next.foliar.value",
|
|
27
|
+
"color": "c-green",
|
|
28
|
+
"outlined": true
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"dots": [
|
|
32
|
+
{
|
|
33
|
+
"varName": "insecticida.value",
|
|
34
|
+
"color": "c-red"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"varName": "herbicida.value",
|
|
38
|
+
"color": "c-orange"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"varName": "fungicida.value",
|
|
42
|
+
"color": "c-blue"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"inputs": [
|
|
47
|
+
{
|
|
48
|
+
"label": "Aplicación Foliar",
|
|
49
|
+
"type": "number",
|
|
50
|
+
"suffix": " suffix",
|
|
51
|
+
"key": "input_foliar",
|
|
52
|
+
"varName": "values.foliar.value"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": 2,
|
|
58
|
+
"key": "insecticida",
|
|
59
|
+
"label": "Insecticida",
|
|
60
|
+
"color": "c-red",
|
|
61
|
+
"floatBox": {
|
|
62
|
+
"nums": [
|
|
63
|
+
{
|
|
64
|
+
"varName": "insecticida.value",
|
|
65
|
+
"color": "c-red"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"dots": [
|
|
69
|
+
{
|
|
70
|
+
"varName": "foliar.value",
|
|
71
|
+
"color": "c-green"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"varName": "herbicida.value",
|
|
75
|
+
"color": "c-orange"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"varName": "fungicida.value",
|
|
79
|
+
"color": "c-blue"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"label": "Aplicación de Insecticida",
|
|
86
|
+
"type": "number",
|
|
87
|
+
"suffix": " suffix",
|
|
88
|
+
"key": "input_insecticida",
|
|
89
|
+
"varName": "values.insecticida.value"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": 3,
|
|
95
|
+
"key": "herbicida",
|
|
96
|
+
"label": "Herbicidas",
|
|
97
|
+
"color": "c-orange",
|
|
98
|
+
"floatBox": {
|
|
99
|
+
"nums": [
|
|
100
|
+
{
|
|
101
|
+
"varName": "herbicida.value",
|
|
102
|
+
"color": "c-orange"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"dots": [
|
|
106
|
+
{
|
|
107
|
+
"varName": "foliar.value",
|
|
108
|
+
"color": "c-green"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"varName": "insecticida.value",
|
|
112
|
+
"color": "c-red"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"varName": "fungicida.value",
|
|
116
|
+
"color": "c-blue"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"inputs": [
|
|
121
|
+
{
|
|
122
|
+
"label": "Aplicación de Herbicida",
|
|
123
|
+
"type": "number",
|
|
124
|
+
"suffix": " suffix",
|
|
125
|
+
"key": "input_herbicida",
|
|
126
|
+
"varName": "values.herbicida.value"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": 4,
|
|
132
|
+
"key": "fungicida",
|
|
133
|
+
"label": "Fungicida",
|
|
134
|
+
"color": "c-blue",
|
|
135
|
+
"floatBox": {
|
|
136
|
+
"nums": [
|
|
137
|
+
{
|
|
138
|
+
"varName": "fungicida.value",
|
|
139
|
+
"color": "c-blue"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"dots": [
|
|
143
|
+
{
|
|
144
|
+
"varName": "foliar.value",
|
|
145
|
+
"color": "c-green"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"varName": "insecticida.value",
|
|
149
|
+
"color": "c-red"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"varName": "herbicida.value",
|
|
153
|
+
"color": "c-green"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"inputs": [
|
|
158
|
+
{
|
|
159
|
+
"label": "Aplicación de Fungicida",
|
|
160
|
+
"type": "number",
|
|
161
|
+
"suffix": " suffix",
|
|
162
|
+
"key": "input_fungicida",
|
|
163
|
+
"varName": "values.fungicida.value"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"corner": {
|
|
169
|
+
"left": {
|
|
170
|
+
"label": "Cuarteles"
|
|
171
|
+
},
|
|
172
|
+
"initial": {},
|
|
173
|
+
"extend": {},
|
|
174
|
+
"right": {
|
|
175
|
+
"label": ""
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"footer": {
|
|
179
|
+
"enabled": false
|
|
180
|
+
},
|
|
181
|
+
"nav": {
|
|
182
|
+
"left": {
|
|
183
|
+
"initial": {
|
|
184
|
+
"mobile": {
|
|
185
|
+
"width": 150
|
|
186
|
+
},
|
|
187
|
+
"vars": []
|
|
188
|
+
},
|
|
189
|
+
"extend": {
|
|
190
|
+
"enabled": false,
|
|
191
|
+
"vars": [
|
|
192
|
+
{
|
|
193
|
+
"label": "Clon",
|
|
194
|
+
"key": "clon",
|
|
195
|
+
"varName": "clon"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"label": "ha",
|
|
199
|
+
"varName": "ha",
|
|
200
|
+
"round": 2
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"label": "freq",
|
|
204
|
+
"varName": "freq",
|
|
205
|
+
input: "number",
|
|
206
|
+
"round": 2
|
|
207
|
+
},
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"buttons": {
|
|
211
|
+
"enabled": false,
|
|
212
|
+
"vars": []
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"right": {}
|
|
216
|
+
},
|
|
217
|
+
"header": {
|
|
218
|
+
height: 70,
|
|
219
|
+
"extend": {
|
|
220
|
+
"enabled": false,
|
|
221
|
+
"data": []
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"day": {
|
|
225
|
+
"width": 40,
|
|
226
|
+
"height": 40,
|
|
227
|
+
"mobile": {
|
|
228
|
+
"width": 30,
|
|
229
|
+
"height": 35
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"detailDay": {
|
|
233
|
+
"capsules": [
|
|
234
|
+
{
|
|
235
|
+
"title": "Foliar",
|
|
236
|
+
"color": "c-green",
|
|
237
|
+
"values": [
|
|
238
|
+
{
|
|
239
|
+
"name": "foliar",
|
|
240
|
+
"varName": "foliar.value",
|
|
241
|
+
"suffix": " ltrs ¿?"
|
|
242
|
+
},
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"title": "Prox. Aplicación Foliar",
|
|
247
|
+
"color": "c-green",
|
|
248
|
+
"values": [
|
|
249
|
+
{
|
|
250
|
+
"name": "Próxima Foliar",
|
|
251
|
+
"varName": "next.foliar.value",
|
|
252
|
+
"suffix": " ltrs ¿?"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"title": "Insecticida",
|
|
258
|
+
"color": "c-red",
|
|
259
|
+
"values": [
|
|
260
|
+
{
|
|
261
|
+
"name": "insecticida",
|
|
262
|
+
"varName": "insecticida.value",
|
|
263
|
+
"suffix": " ltrs ¿?"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"title": "Herbicida",
|
|
269
|
+
"color": "c-orange",
|
|
270
|
+
"values": [
|
|
271
|
+
{
|
|
272
|
+
"name": "herbicida",
|
|
273
|
+
"varName": "herbicida.value",
|
|
274
|
+
"suffix": " ltrs ¿?"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"title": "Fungicida",
|
|
280
|
+
"color": "c-blue",
|
|
281
|
+
"values": [
|
|
282
|
+
{
|
|
283
|
+
"name": "fungicida",
|
|
284
|
+
"varName": "fungicida.value",
|
|
285
|
+
"suffix": " ltrs ¿?"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
}
|
package/cuarteles.html
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
<html lang="es">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
+
<title>Capibara</title>
|
|
8
|
+
<style> html, body { margin: 0px; padding: 0px; } </style>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<div id="timeline"></div>
|
|
13
|
+
<!-- plugin initialization -->
|
|
14
|
+
<script src="config_cuarteles.js"></script>
|
|
15
|
+
<script src="data_cuarteles.js"></script>
|
|
16
|
+
<script src="app_cuarteles.js"></script>
|
|
17
|
+
</body>
|
|
18
|
+
|
|
19
|
+
</html>
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
var data = [
|
|
2
|
+
{
|
|
3
|
+
"label": "Equipo 1",
|
|
4
|
+
"type": "container",
|
|
5
|
+
"id": 123,
|
|
6
|
+
"values": {},
|
|
7
|
+
"selectable": false,
|
|
8
|
+
"children": [
|
|
9
|
+
{
|
|
10
|
+
"label": "Cuartel demo 1",
|
|
11
|
+
"children": [
|
|
12
|
+
{}
|
|
13
|
+
],
|
|
14
|
+
"type": "cuartel",
|
|
15
|
+
"id": 356,
|
|
16
|
+
"data": [
|
|
17
|
+
{
|
|
18
|
+
"date": "2021-12-01",
|
|
19
|
+
"errors": [],
|
|
20
|
+
"values": {
|
|
21
|
+
"foliar": {
|
|
22
|
+
"value": 1
|
|
23
|
+
},
|
|
24
|
+
"insecticida": {
|
|
25
|
+
"value": 1
|
|
26
|
+
},
|
|
27
|
+
"herbicida": {
|
|
28
|
+
"value": 1
|
|
29
|
+
},
|
|
30
|
+
"fungicida": {
|
|
31
|
+
"value": 1
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"date": "2021-12-07",
|
|
37
|
+
"errors": [],
|
|
38
|
+
"values": {
|
|
39
|
+
"next": {
|
|
40
|
+
"foliar": {
|
|
41
|
+
"value": 2
|
|
42
|
+
},
|
|
43
|
+
"insecticida": {
|
|
44
|
+
"value": 2
|
|
45
|
+
},
|
|
46
|
+
"herbicida": {
|
|
47
|
+
"value": 2
|
|
48
|
+
},
|
|
49
|
+
"fungicida": {
|
|
50
|
+
"value": 2
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"values": {
|
|
57
|
+
"clon": "asd",
|
|
58
|
+
"plantas": 2,
|
|
59
|
+
"ha": 1,
|
|
60
|
+
freq: 7
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"label": "cuartel demo 2",
|
|
65
|
+
"children": [
|
|
66
|
+
{}
|
|
67
|
+
],
|
|
68
|
+
"type": "cuartel",
|
|
69
|
+
"id": 570,
|
|
70
|
+
"data": [
|
|
71
|
+
{
|
|
72
|
+
"date": "2021-12-01",
|
|
73
|
+
"errors": [],
|
|
74
|
+
"values": {
|
|
75
|
+
"foliar": {
|
|
76
|
+
"value": 1
|
|
77
|
+
},
|
|
78
|
+
"insecticida": {
|
|
79
|
+
"value": 1
|
|
80
|
+
},
|
|
81
|
+
"herbicida": {
|
|
82
|
+
"value": 1
|
|
83
|
+
},
|
|
84
|
+
"fungicida": {
|
|
85
|
+
"value": 1
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"date": "2021-12-08",
|
|
91
|
+
"errors": [],
|
|
92
|
+
"values": {
|
|
93
|
+
"next": {
|
|
94
|
+
"foliar": {
|
|
95
|
+
"value": 2
|
|
96
|
+
},
|
|
97
|
+
"insecticida": {
|
|
98
|
+
"value": 2
|
|
99
|
+
},
|
|
100
|
+
"herbicida": {
|
|
101
|
+
"value": 2
|
|
102
|
+
},
|
|
103
|
+
"fungicida": {
|
|
104
|
+
"value": 2
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"values": {
|
|
111
|
+
"clon": "asd",
|
|
112
|
+
"plantas": 2,
|
|
113
|
+
"ha": 1
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
<html lang="es">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
+
<title>Capibara</title>
|
|
8
|
+
<style> html, body { margin: 0px; padding: 0px; } </style>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<div id="timeline"></div>
|
|
13
|
+
<!-- plugin initialization -->
|
|
14
|
+
<script src="config_cuarteles.js"></script>
|
|
15
|
+
<script src="data_cuarteles.js"></script>
|
|
16
|
+
<script src="app_cuarteles.js"></script>
|
|
17
|
+
<script type="text/javascript" src="/index.js"></script></body>
|
|
18
|
+
|
|
19
|
+
</html>
|