capibara 1.1.27 → 1.1.31

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.js CHANGED
@@ -9,7 +9,7 @@
9
9
  capibara.init();
10
10
 
11
11
  capibara.$capibara.addEventListener("headerPrev", function(e) {
12
- capibara.loadingBtn("[btn-prev]", true);
12
+ capibara.loadingBtn("[cap-btn-prev]", true);
13
13
  });
14
14
 
15
15
  capibara.$capibara.addEventListener("save", function(e) {
@@ -44,4 +44,4 @@
44
44
 
45
45
  });
46
46
 
47
- });
47
+ });
package/config.js CHANGED
@@ -363,7 +363,6 @@ var config = {
363
363
  ],
364
364
  },
365
365
  buttons: {
366
- showInMobile: true,
367
366
  width: 90,
368
367
  vars: [
369
368
  {
@@ -377,6 +376,20 @@ var config = {
377
376
  tooltip: "tooltip hover",
378
377
  className: "",
379
378
  key: "icon-etapas-fertilizacion",
379
+ formatter(item, btn){
380
+ return 0;
381
+ },
382
+ btnClassNameFormatter(item, btn){
383
+ let className = null;
384
+ if(btn.key = "icon-etapas-fertilización"){
385
+ let value = 0;
386
+ if(btn.formatter){
387
+ value = btn.formatter(item, btn);
388
+ }
389
+ className = value == 0 ? 'is-empty':null;
390
+ }
391
+ return className;
392
+ },
380
393
  },
381
394
  ],
382
395
  },
@@ -394,7 +407,9 @@ var config = {
394
407
  {
395
408
  label: "Eto",
396
409
  color: "green",
410
+ suffix:"mm",
397
411
  average: 12,
412
+ isAccent :true,
398
413
  isPersistent: true,
399
414
  editableFuture: false,
400
415
  editableToday: false,
@@ -2971,7 +2986,7 @@ var config = {
2971
2986
  height: 35,
2972
2987
  mobile: {
2973
2988
  width: 30,
2974
- height: 30,
2989
+ height: 35,
2975
2990
  },
2976
2991
  },
2977
2992
  detailDay: {
package/dist/index.html CHANGED
@@ -1,18 +1,27 @@
1
1
  <html lang="es">
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">
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" />
6
6
  <title>Capibara</title>
7
- <style> html, body { margin: 0px; padding: 0px; } </style>
8
- </head>
7
+ <style>
8
+ html,
9
+ body {
10
+ margin: 0px;
11
+ padding: 0px;
12
+ }
13
+ #timeline{
14
+ height: 100%;
15
+ }
16
+ </style>
17
+ </head>
9
18
 
10
- <body>
19
+ <body>
11
20
  <div id="timeline"></div>
12
21
  <!-- plugin initialization -->
13
22
  <script src="config.js"></script>
14
23
  <script src="data.js"></script>
15
24
  <script src="app.js"></script>
16
- <script type="text/javascript" src="/index.js"></script></body>
25
+ <script type="text/javascript" src="/index.js"></script></body>
26
+ </html>
17
27
 
18
- </html>