capibara 1.3.66 → 1.3.68
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/PLAN_MIGRACION_VITE.md +93 -0
- package/cuarteles.html +1 -0
- package/dev/bootstrap.js +13 -0
- package/dist/index.js +566 -24907
- package/index.html +1 -0
- package/minimal.html +1 -0
- package/package.json +9 -25
- package/src/scss/abstracts/_functions.scss +7 -3
- package/src/scss/base/_scroll.scss +3 -0
- package/src/scss/components/_buttons.scss +3 -0
- package/src/scss/components/_floatbox.scss +3 -0
- package/src/scss/components/_input_nav.scss +9 -5
- package/src/scss/components/_light.scss +3 -0
- package/src/scss/components/_select.scss +3 -0
- package/src/scss/layout/_capibara.scss +3 -0
- package/src/scss/layout/_containerTl.scss +3 -0
- package/src/scss/layout/_contextMenu.scss +8 -1
- package/src/scss/layout/_corner.scss +63 -0
- package/src/scss/layout/_cornerFooter.scss +3 -0
- package/src/scss/layout/_detail_day.scss +4 -0
- package/src/scss/layout/_footer.scss +3 -0
- package/src/scss/layout/_header.scss +3 -0
- package/src/scss/layout/_headerTop.scss +3 -0
- package/src/scss/layout/_mobileFooter.scss +3 -0
- package/src/scss/layout/_nav.scss +3 -0
- package/src/scss/style.scss +35 -35
- package/src/scss/themes/_color_themes.scss +42 -40
- package/src/scss/themes/_themes.scss +2 -2
- package/src/util/tableElements.js +43 -3
- package/vite.config.js +39 -0
- package/babelrc.config.js +0 -14
- package/dist/cuarteles.html +0 -29
- package/dist/index.html +0 -27
- package/dist/index.js.map +0 -1
- package/dist/minimal.html +0 -19
- package/webpack.config.js +0 -71
package/index.html
CHANGED
package/minimal.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capibara",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.68",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,39 +11,23 @@
|
|
|
11
11
|
"homepage": "https://bitbucket.org/irricrops/capibara#readme",
|
|
12
12
|
"description": "Timeline irricrops capibara",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"
|
|
15
|
-
"build
|
|
16
|
-
"
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"preview": "vite preview"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [],
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@babel/core": "^7.14.0",
|
|
21
|
-
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
22
|
-
"@babel/plugin-proposal-decorators": "^7.12.1",
|
|
23
|
-
"@babel/plugin-proposal-export-default-from": "^7.12.1",
|
|
24
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
|
|
25
|
-
"@babel/plugin-transform-arrow-functions": "^7.12.1",
|
|
26
|
-
"@babel/plugin-transform-async-to-generator": "^7.12.1",
|
|
27
|
-
"@babel/plugin-transform-runtime": "^7.12.1",
|
|
28
|
-
"@babel/preset-env": "^7.14.0",
|
|
29
20
|
"autoprefixer": "^9.8.6",
|
|
30
|
-
"babel-loader": "^8.2.2",
|
|
31
|
-
"config": "^3.3.3",
|
|
32
|
-
"css-loader": "^3.6.0",
|
|
33
21
|
"cssnano": "^4.1.10",
|
|
34
|
-
"html-webpack-plugin": "^3.2.0",
|
|
35
22
|
"iconify": "^1.3.0",
|
|
36
23
|
"mdi": "^2.2.43",
|
|
37
|
-
"postcss-loader": "^3.0.0",
|
|
38
24
|
"prettier": "3.0.0",
|
|
39
|
-
"sass": "^1.
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"webpack": "^4.46.0",
|
|
43
|
-
"webpack-cli": "^3.3.12",
|
|
44
|
-
"webpack-dev-server": "^3.11.2"
|
|
25
|
+
"sass": "^1.99.0",
|
|
26
|
+
"vite": "^6.4.3",
|
|
27
|
+
"vite-plugin-css-injected-by-js": "^4.0.1"
|
|
45
28
|
},
|
|
46
29
|
"dependencies": {
|
|
47
|
-
"22": "^0.0.0"
|
|
30
|
+
"22": "^0.0.0",
|
|
31
|
+
"lodash": "^4.18.1"
|
|
48
32
|
}
|
|
49
33
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "sass:color";
|
|
2
4
|
|
|
3
5
|
@function mapGet($map, $list...) {
|
|
4
6
|
@each $key in $list {
|
|
5
7
|
@if $map {
|
|
6
|
-
$map: map
|
|
8
|
+
$map: map.get($map, $key);
|
|
7
9
|
}
|
|
8
10
|
}
|
|
9
11
|
@if $map {
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
// si devuelve null, el atributo no sera agregado por sass al compilar
|
|
19
21
|
@function setTransparent($color, $opacity) {
|
|
20
22
|
@if $color {
|
|
21
|
-
@return
|
|
23
|
+
@return color.adjust($color, $alpha: -$opacity);
|
|
22
24
|
}
|
|
23
25
|
@return null;
|
|
24
26
|
}
|
|
@@ -32,7 +34,9 @@
|
|
|
32
34
|
$colorFont: $white;
|
|
33
35
|
$sum: round(
|
|
34
36
|
math.div(
|
|
35
|
-
((
|
|
37
|
+
((color.channel($color, "red", $space: rgb) * 299) +
|
|
38
|
+
(color.channel($color, "green", $space: rgb) * 587) +
|
|
39
|
+
(color.channel($color, "blue", $space: rgb)) * 114),
|
|
36
40
|
1000
|
|
37
41
|
)
|
|
38
42
|
);
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "themes/themes" as *;
|
|
3
|
+
@use "abstracts/functions" as *;
|
|
4
|
+
|
|
1
5
|
.capibara {
|
|
2
6
|
.hour-input {
|
|
3
7
|
border: 1px solid grey;
|
|
@@ -438,7 +442,7 @@
|
|
|
438
442
|
}
|
|
439
443
|
|
|
440
444
|
input.nav-input {
|
|
441
|
-
border: 2px solid
|
|
445
|
+
border: 2px solid color.adjust(grey, $alpha: -0.3);
|
|
442
446
|
border-radius: 6px;
|
|
443
447
|
//width: 70%;
|
|
444
448
|
width: 100%;
|
|
@@ -454,7 +458,7 @@
|
|
|
454
458
|
&:focus,
|
|
455
459
|
&:active {
|
|
456
460
|
border: 2px solid grey;
|
|
457
|
-
box-shadow: 0px 4px 6px
|
|
461
|
+
box-shadow: 0px 4px 6px color.adjust(grey, $alpha: -0.8);
|
|
458
462
|
}
|
|
459
463
|
&.small {
|
|
460
464
|
font-size: 1.3em;
|
|
@@ -462,7 +466,7 @@
|
|
|
462
466
|
}
|
|
463
467
|
|
|
464
468
|
.nav-input-file {
|
|
465
|
-
border: 2px solid
|
|
469
|
+
border: 2px solid color.adjust(grey, $alpha: -0.3);
|
|
466
470
|
border-radius: 6px;
|
|
467
471
|
width: 70%;
|
|
468
472
|
min-width: 130px;
|
|
@@ -475,7 +479,7 @@
|
|
|
475
479
|
&:focus,
|
|
476
480
|
&:active {
|
|
477
481
|
border: 2px solid grey;
|
|
478
|
-
box-shadow: 0px 4px 6px
|
|
482
|
+
box-shadow: 0px 4px 6px color.adjust(grey, $alpha: -0.8);
|
|
479
483
|
}
|
|
480
484
|
label {
|
|
481
485
|
flex: 1 1 auto;
|
|
@@ -510,7 +514,7 @@
|
|
|
510
514
|
box-sizing: border-box;
|
|
511
515
|
&:focus,
|
|
512
516
|
&:active {
|
|
513
|
-
box-shadow: 0px 4px 6px
|
|
517
|
+
box-shadow: 0px 4px 6px color.adjust(#ffa000, $alpha: -0.8);
|
|
514
518
|
}
|
|
515
519
|
}
|
|
516
520
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "themes/themes" as *;
|
|
2
|
+
@use "abstracts/functions" as *;
|
|
3
|
+
|
|
1
4
|
.capibara {
|
|
2
5
|
.cap-context-menu-container {
|
|
3
6
|
position: absolute;
|
|
@@ -128,7 +131,11 @@
|
|
|
128
131
|
background: mapGet($theme, detailDay, background);
|
|
129
132
|
}
|
|
130
133
|
.cap-context-menu_item.is-section-label {
|
|
131
|
-
|
|
134
|
+
$section-label-alpha: 0.6;
|
|
135
|
+
@if $nameTheme == "" {
|
|
136
|
+
$section-label-alpha: 0.85;
|
|
137
|
+
}
|
|
138
|
+
color: rgba(mapGet($theme, color), $section-label-alpha);
|
|
132
139
|
}
|
|
133
140
|
.cap-context-menu_item.is-divider {
|
|
134
141
|
border-bottom-color: rgba(mapGet($theme, color), 0.2);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "themes/themes" as *;
|
|
2
|
+
@use "abstracts/functions" as *;
|
|
3
|
+
|
|
1
4
|
.capibara {
|
|
2
5
|
.corner {
|
|
3
6
|
position: absolute;
|
|
@@ -50,6 +53,66 @@
|
|
|
50
53
|
bottom: 8px;
|
|
51
54
|
}
|
|
52
55
|
|
|
56
|
+
.corner-group-select-container {
|
|
57
|
+
position: absolute;
|
|
58
|
+
left: 0;
|
|
59
|
+
bottom: 4px;
|
|
60
|
+
// Mismo ancho que las etiquetas de sector/equipo en el nav-left
|
|
61
|
+
// (.nav-item/.child-nav-item usan este mismo --nav-width), para que el
|
|
62
|
+
// select del corner quede alineado con esa columna en vez de ocupar
|
|
63
|
+
// todo el ancho del corner (nav + initial + ex + btn). Se resta el
|
|
64
|
+
// doble del padding-left de .corner (8px) porque el select arranca
|
|
65
|
+
// corrido por ese padding y si no se compensa, se solapa con la
|
|
66
|
+
// columna siguiente (Riego Nominal, etc).
|
|
67
|
+
width: calc(var(--nav-width) - 16px);
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
|
|
72
|
+
&::after {
|
|
73
|
+
content: "";
|
|
74
|
+
position: absolute;
|
|
75
|
+
right: 7px;
|
|
76
|
+
top: 50%;
|
|
77
|
+
transform: translateY(-50%);
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
width: 0;
|
|
80
|
+
height: 0;
|
|
81
|
+
border-left: 4px solid transparent;
|
|
82
|
+
border-right: 4px solid transparent;
|
|
83
|
+
border-top: 5px solid currentColor;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
select.corner-group-select {
|
|
88
|
+
width: 100%;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
background: transparent;
|
|
91
|
+
color: inherit;
|
|
92
|
+
border: 1px solid currentColor;
|
|
93
|
+
border-radius: 4px;
|
|
94
|
+
outline: none;
|
|
95
|
+
font-size: inherit;
|
|
96
|
+
font-weight: bold;
|
|
97
|
+
padding: 2px 22px 2px 6px;
|
|
98
|
+
appearance: none;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
|
|
104
|
+
option {
|
|
105
|
+
color: initial;
|
|
106
|
+
background: white;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:hover,
|
|
110
|
+
&:focus {
|
|
111
|
+
border-color: currentColor;
|
|
112
|
+
opacity: 0.85;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
53
116
|
@media screen and (max-width: 959px) {
|
|
54
117
|
font-size: 0.75em;
|
|
55
118
|
}
|
package/src/scss/style.scss
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
2
|
-
|
|
3
1
|
//metodology
|
|
4
2
|
//https://github.com/suitcss/suit/blob/master/doc/README.md
|
|
5
3
|
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
4
|
+
@use "abstracts/variables" as *;
|
|
5
|
+
@use "abstracts/colors" as *;
|
|
6
|
+
@use "abstracts/animations" as *;
|
|
9
7
|
|
|
10
|
-
@
|
|
11
|
-
@
|
|
8
|
+
@use "themes/themes" as *;
|
|
9
|
+
@use "themes/color_themes" as *;
|
|
12
10
|
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
11
|
+
@use "base/reset" as *;
|
|
12
|
+
@use "base/utils" as *;
|
|
13
|
+
@use "base/utils_mobile" as *;
|
|
14
|
+
@use "base/scroll" as *;
|
|
17
15
|
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
32
|
-
@
|
|
16
|
+
@use "layout/capibara" as *;
|
|
17
|
+
@use "layout/containerTl" as *;
|
|
18
|
+
@use "layout/todayLine" as *;
|
|
19
|
+
@use "layout/corner" as *;
|
|
20
|
+
@use "layout/headerTop" as *;
|
|
21
|
+
@use "layout/cornerFooter" as *;
|
|
22
|
+
@use "layout/nav" as *;
|
|
23
|
+
@use "layout/header" as *;
|
|
24
|
+
@use "layout/plotContainer" as *;
|
|
25
|
+
@use "layout/footer" as *;
|
|
26
|
+
@use "layout/mobileFooter" as *;
|
|
27
|
+
@use "layout/table" as *;
|
|
28
|
+
@use "layout/selectContainer" as *;
|
|
29
|
+
@use "layout/detail_day" as *;
|
|
30
|
+
@use "layout/contextMenu" as *;
|
|
33
31
|
|
|
34
|
-
@
|
|
35
|
-
@
|
|
36
|
-
@
|
|
37
|
-
@
|
|
38
|
-
@
|
|
39
|
-
@
|
|
40
|
-
@
|
|
41
|
-
@
|
|
42
|
-
@
|
|
32
|
+
@use "components/input_nav" as *;
|
|
33
|
+
@use "components/buttons" as *;
|
|
34
|
+
@use "components/tooltip" as *;
|
|
35
|
+
@use "components/floatbox" as *;
|
|
36
|
+
@use "components/loading" as *;
|
|
37
|
+
@use "components/icons" as *;
|
|
38
|
+
@use "components/light" as *;
|
|
39
|
+
@use "components/select" as *;
|
|
40
|
+
@use "shame" as *;
|
|
41
|
+
|
|
42
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap");
|