capibara 1.1.17 → 1.1.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.
package/config.js CHANGED
@@ -388,8 +388,8 @@ var config = {
388
388
  //height: 80,
389
389
  },
390
390
  extend: {
391
- //height: 150,
392
- //enabled: false,
391
+ //enabled: true,
392
+ isShow: false,
393
393
  data: [
394
394
  {
395
395
  label: "Eto",
@@ -4,7 +4,35 @@ var config = {
4
4
  "start": "2021-10-29",
5
5
  "end": "2021-12-31",
6
6
  "dark": false,
7
+ "withDarkToggle": true,
8
+ dateSelectable: true,
7
9
  "loading": false,
10
+
11
+ contextMenu:{
12
+ options:[
13
+ {
14
+ label:"Copiar",
15
+ onClick:({evt}) => {
16
+ alert("copiado");
17
+ },
18
+ enabler: ({item, date}) => {
19
+ if(item && item.data.find(d => d.date == date)){
20
+ return true;
21
+ }
22
+ return false;
23
+ }
24
+ },
25
+ {
26
+ label:"Pegar",
27
+ onClick:() => {
28
+ alert("pegado")
29
+ }
30
+ },
31
+ ]
32
+ },
33
+
34
+
35
+
8
36
  "plots": {
9
37
  "vertical": [],
10
38
  "horizontal": []
@@ -13,156 +41,110 @@ var config = {
13
41
  {
14
42
  "id": 1,
15
43
  "key": "foliar",
16
- "label": "Fert. Foliar",
44
+ "label": "Aplicaciones",
17
45
  "color": "c-green",
18
46
  "floatBox": {
19
47
  "nums": [
20
48
  {
21
49
  "varName": "foliar.value",
22
- "color": "c-green"
50
+ "color": "c-green",
51
+ "shape": "bar"
23
52
  },
24
53
  {
25
54
  "varName": "next.foliar.value",
26
55
  "color": "c-green",
27
- "outlined": true
28
- }
29
- ],
30
- "dots": [
56
+ "shape":"bar-outlined"
57
+ },
58
+
31
59
  {
32
60
  "varName": "insecticida.value",
33
- "color": "c-red"
61
+ "color": "c-red",
62
+ "shape": "bar"
63
+ },
64
+ {
65
+ "varName": "next.insecticida.value",
66
+ "color": "c-red",
67
+ "shape": "bar-outlined"
34
68
  },
35
69
  {
36
70
  "varName": "herbicida.value",
37
- "color": "c-orange"
71
+ "color": "c-yellow",
72
+ "shape": "bar"
38
73
  },
39
74
  {
40
75
  "varName": "fungicida.value",
41
- "color": "c-blue"
76
+ "color": "c-blue",
77
+ "shape": "bar"
42
78
  }
43
- ]
79
+ ],
44
80
  },
45
81
  "inputs": [
46
82
  {
47
- "label": "Aplicación Foliar",
83
+ "label": "Mojamiento ¿?",
48
84
  "type": "number",
49
85
  "suffix": " suffix",
50
86
  "key": "input_foliar",
51
87
  "varName": "values.foliar.value"
52
- }
53
- ]
54
- },
55
- {
56
- "id": 2,
57
- "key": "insecticida",
58
- "label": "Insecticida",
59
- "color": "c-red",
60
- "floatBox": {
61
- "nums": [
62
- {
63
- "varName": "insecticida.value",
64
- "color": "c-red"
65
- }
66
- ],
67
- "dots": [
68
- {
69
- "varName": "foliar.value",
70
- "color": "c-green"
71
- },
72
- {
73
- "varName": "herbicida.value",
74
- "color": "c-orange"
75
- },
76
- {
77
- "varName": "fungicida.value",
78
- "color": "c-blue"
79
- }
80
- ]
81
- },
82
- "inputs": [
88
+ },
89
+
83
90
  {
84
- "label": "Aplicación de Insecticida",
85
- "type": "number",
91
+ "label": "Aplicaciones Dosis",
92
+ "type": "title",
86
93
  "suffix": " suffix",
87
- "key": "input_insecticida",
88
- "varName": "values.insecticida.value"
89
- }
90
- ]
91
- },
92
- {
93
- "id": 3,
94
- "key": "herbicida",
95
- "label": "Herbicidas",
96
- "color": "c-orange",
97
- "floatBox": {
98
- "nums": [
99
- {
100
- "varName": "herbicida.value",
101
- "color": "c-orange"
102
- }
103
- ],
104
- "dots": [
105
- {
106
- "varName": "foliar.value",
107
- "color": "c-green"
108
- },
109
- {
110
- "varName": "insecticida.value",
111
- "color": "c-red"
112
- },
113
- {
114
- "varName": "fungicida.value",
115
- "color": "c-blue"
116
- }
117
- ]
118
- },
119
- "inputs": [
94
+ },
120
95
  {
121
- "label": "Aplicación de Herbicida",
122
- "type": "number",
123
- "suffix": " suffix",
124
- "key": "input_herbicida",
125
- "varName": "values.herbicida.value"
126
- }
96
+ label: "Aplicacionesi Dosis",
97
+ type: "input-box",
98
+ key: "productos_list",
99
+ varName: "values.aplicaciones",
100
+ inputs: [
101
+ {
102
+ id: 1,
103
+ label: "Producto numero 1 con un nombre largo",
104
+ tooltip: "Producto numero 1 con un nombre largo ______",
105
+ colorIcon: "c-green",
106
+ key: "producto_1",
107
+ },
108
+ {
109
+ id: 2,
110
+ label: "P 2",
111
+ colorIcon: "c-green",
112
+ key: "producto_2",
113
+ },
114
+ {
115
+ id: 3,
116
+ label: "P 3",
117
+ colorIcon: "c-green",
118
+ key: "producto_3",
119
+ },
120
+ {
121
+ id: 4,
122
+ label: "P 3",
123
+ colorIcon: "c-red",
124
+ key: "producto_3",
125
+ },
126
+ {
127
+ id: 5,
128
+ label: "P 3",
129
+ colorIcon: "c-red",
130
+ key: "producto_3",
131
+ },
132
+ {
133
+ id: 6,
134
+ label: "P 3",
135
+ colorIcon: "c-blue",
136
+ key: "producto_3",
137
+ },
138
+ {
139
+ id: 7,
140
+ label: "P 3",
141
+ colorIcon: "c-orange",
142
+ key: "producto_3",
143
+ },
144
+ ],
145
+ },
127
146
  ]
128
147
  },
129
- {
130
- "id": 4,
131
- "key": "fungicida",
132
- "label": "Fungicida",
133
- "color": "c-blue",
134
- "floatBox": {
135
- "nums": [
136
- {
137
- "varName": "fungicida.value",
138
- "color": "c-blue"
139
- }
140
- ],
141
- "dots": [
142
- {
143
- "varName": "foliar.value",
144
- "color": "c-green"
145
- },
146
- {
147
- "varName": "insecticida.value",
148
- "color": "c-red"
149
- },
150
- {
151
- "varName": "herbicida.value",
152
- "color": "c-green"
153
- }
154
- ]
155
- },
156
- "inputs": [
157
- {
158
- "label": "Aplicación de Fungicida",
159
- "type": "number",
160
- "suffix": " suffix",
161
- "key": "input_fungicida",
162
- "varName": "values.fungicida.value"
163
- }
164
- ]
165
- }
166
148
  ],
167
149
  "corner": {
168
150
  "left": {
@@ -204,6 +186,13 @@ var config = {
204
186
  input: "number",
205
187
  "round": 2
206
188
  },
189
+ {
190
+ "label": "freq foliar",
191
+ "varName": "freq",
192
+ input: "number",
193
+ "round": 2,
194
+ onlyTab: "foliar"
195
+ },
207
196
  ]
208
197
  },
209
198
  "buttons": {
@@ -233,6 +222,7 @@ var config = {
233
222
  {
234
223
  "title": "Foliar",
235
224
  "color": "c-green",
225
+ shape: "outlined",
236
226
  "values": [
237
227
  {
238
228
  "name": "foliar",
@@ -244,6 +234,7 @@ var config = {
244
234
  {
245
235
  "title": "Prox. Aplicación Foliar",
246
236
  "color": "c-green",
237
+ shape: "outlined",
247
238
  "values": [
248
239
  {
249
240
  "name": "Próxima Foliar",
@@ -287,6 +278,5 @@ var config = {
287
278
  }
288
279
  ]
289
280
  },
290
- "withDarkToggle": false
291
281
  },
292
282
  }
package/cuarteles.html CHANGED
@@ -1,19 +1,30 @@
1
-
2
1
  <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">
2
+ <head>
3
+ <meta charset="UTF-8" />
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
5
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
7
6
  <title>Capibara</title>
8
- <style> html, body { margin: 0px; padding: 0px; } </style>
9
- </head>
7
+ <style>
8
+ html,
9
+ body {
10
+ margin: 0px;
11
+ padding: 0px;
12
+ }
13
+ .test-header {
14
+ display: block;
15
+ width: 100%;
16
+ height: 80px;
17
+ background-color: red;
18
+ }
19
+ </style>
20
+ </head>
10
21
 
11
- <body>
22
+ <body>
23
+ <div class="test-header"></div>
12
24
  <div id="timeline"></div>
13
25
  <!-- plugin initialization -->
14
26
  <script src="config_cuarteles.js"></script>
15
27
  <script src="data_cuarteles.js"></script>
16
28
  <script src="app_cuarteles.js"></script>
17
- </body>
18
-
29
+ </body>
19
30
  </html>
package/data_cuarteles.js CHANGED
@@ -32,6 +32,42 @@ var data = [
32
32
  }
33
33
  }
34
34
  },
35
+ {
36
+ "date": "2021-12-02",
37
+ "errors": [],
38
+ "values": {
39
+ "foliar": {
40
+ "value": 1
41
+ },
42
+ "insecticida": {
43
+ "value": 1
44
+ },
45
+ "fungicida": {
46
+ "value": 1
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "date": "2021-12-03",
52
+ "errors": [],
53
+ "values": {
54
+ "foliar": {
55
+ "value": 1
56
+ },
57
+ "insecticida": {
58
+ "value": 1
59
+ },
60
+ }
61
+ },
62
+ {
63
+ "date": "2021-12-04",
64
+ "errors": [],
65
+ "values": {
66
+ "insecticida": {
67
+ "value": 1
68
+ },
69
+ }
70
+ },
35
71
  {
36
72
  "date": "2021-12-07",
37
73
  "errors": [],
@@ -87,15 +123,15 @@ var data = [
87
123
  }
88
124
  },
89
125
  {
90
- "date": "2021-12-07",
126
+ "date": "2021-12-08",
91
127
  "errors": [],
92
128
  "values": {
93
129
  "next": {
94
130
  "foliar": {
95
- "value": 2
131
+ "value":""
96
132
  },
97
133
  "insecticida": {
98
- "value": 2
134
+ "value":""
99
135
  },
100
136
  "herbicida": {
101
137
  "value": 2
@@ -1,19 +1,30 @@
1
-
2
1
  <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">
2
+ <head>
3
+ <meta charset="UTF-8" />
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
5
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
7
6
  <title>Capibara</title>
8
- <style> html, body { margin: 0px; padding: 0px; } </style>
9
- </head>
7
+ <style>
8
+ html,
9
+ body {
10
+ margin: 0px;
11
+ padding: 0px;
12
+ }
13
+ .test-header {
14
+ display: block;
15
+ width: 100%;
16
+ height: 80px;
17
+ background-color: red;
18
+ }
19
+ </style>
20
+ </head>
10
21
 
11
- <body>
22
+ <body>
23
+ <div class="test-header"></div>
12
24
  <div id="timeline"></div>
13
25
  <!-- plugin initialization -->
14
26
  <script src="config_cuarteles.js"></script>
15
27
  <script src="data_cuarteles.js"></script>
16
28
  <script src="app_cuarteles.js"></script>
17
- <script type="text/javascript" src="/index.js"></script></body>
18
-
29
+ <script type="text/javascript" src="/index.js"></script></body>
19
30
  </html>