capibara 1.3.67 → 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.
Files changed (37) hide show
  1. package/PLAN_MIGRACION_VITE.md +9 -7
  2. package/cuarteles.html +1 -0
  3. package/dev/bootstrap.js +13 -0
  4. package/dist/index.js +563 -24939
  5. package/index.html +1 -0
  6. package/minimal.html +1 -0
  7. package/package.json +9 -25
  8. package/src/scss/abstracts/_functions.scss +7 -3
  9. package/src/scss/base/_scroll.scss +3 -0
  10. package/src/scss/components/_buttons.scss +3 -0
  11. package/src/scss/components/_floatbox.scss +3 -0
  12. package/src/scss/components/_input_nav.scss +9 -5
  13. package/src/scss/components/_light.scss +3 -0
  14. package/src/scss/components/_select.scss +3 -0
  15. package/src/scss/layout/_capibara.scss +3 -0
  16. package/src/scss/layout/_containerTl.scss +3 -0
  17. package/src/scss/layout/_contextMenu.scss +8 -1
  18. package/src/scss/layout/_corner.scss +3 -0
  19. package/src/scss/layout/_cornerFooter.scss +3 -0
  20. package/src/scss/layout/_detail_day.scss +4 -0
  21. package/src/scss/layout/_footer.scss +3 -0
  22. package/src/scss/layout/_header.scss +3 -0
  23. package/src/scss/layout/_headerTop.scss +3 -0
  24. package/src/scss/layout/_mobileFooter.scss +3 -0
  25. package/src/scss/layout/_nav.scss +3 -0
  26. package/src/scss/style.scss +35 -35
  27. package/src/scss/themes/_color_themes.scss +42 -40
  28. package/src/scss/themes/_themes.scss +2 -2
  29. package/vite.config.js +39 -0
  30. package/babelrc.config.js +0 -14
  31. package/dist/cuarteles.html +0 -29
  32. package/dist/index.html +0 -27
  33. package/dist/index.js.map +0 -1
  34. package/dist/minimal.html +0 -19
  35. package/scripts/build.js +0 -41
  36. package/scripts/fixOpensslHash.js +0 -21
  37. package/webpack.config.js +0 -71
package/vite.config.js ADDED
@@ -0,0 +1,39 @@
1
+ import { defineConfig } from "vite";
2
+ import { resolve } from "path";
3
+ import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
4
+
5
+ export default defineConfig({
6
+ plugins: [cssInjectedByJsPlugin()],
7
+ css: {
8
+ preprocessorOptions: {
9
+ scss: {
10
+ // Los @import de src/scss (ej. "abstracts/functions" desde
11
+ // themes/_themes.scss) son rutas relativas a src/scss, no al archivo
12
+ // que importa — hay que declararlo como load path. Vite 6 usa la API
13
+ // moderna de sass por default con el paquete "sass" (no "sass-embedded"),
14
+ // que espera `loadPaths`, no el `includePaths` de la API legacy.
15
+ loadPaths: [resolve(__dirname, "src/scss")],
16
+ },
17
+ },
18
+ },
19
+ build: {
20
+ // irricrops-mobile (el consumidor) todavía usa webpack4, cuyo parser no
21
+ // entiende sintaxis ES2020+ (ej. "??", "?."). Compilamos a un target más
22
+ // viejo para que ese build pueda seguir procesando este bundle tal cual,
23
+ // sin que irricrops-mobile necesite excluir node_modules/capibara del
24
+ // parseo o subir su propio toolchain.
25
+ target: "es2017",
26
+ lib: {
27
+ entry: resolve(__dirname, "src/index.js"),
28
+ name: "Capibara",
29
+ fileName: () => "index.js",
30
+ formats: ["umd"],
31
+ },
32
+ rollupOptions: {
33
+ output: {
34
+ exports: "default",
35
+ },
36
+ },
37
+ outDir: "dist",
38
+ },
39
+ });
package/babelrc.config.js DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- "@babel/preset-env"
4
- ],
5
- plugins: [
6
- '@babel/plugin-transform-runtime',
7
- '@babel/plugin-proposal-class-properties',
8
- [ '@babel/plugin-proposal-decorators', { 'legacy': true } ],
9
- '@babel/plugin-transform-async-to-generator',
10
- '@babel/plugin-transform-arrow-functions',
11
- '@babel/plugin-proposal-object-rest-spread',
12
- '@babel/plugin-proposal-export-default-from'
13
- ]
14
- }
@@ -1,29 +0,0 @@
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" />
6
- <title>Capibara</title>
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>
21
-
22
- <body>
23
- <div id="timeline"></div>
24
- <!-- plugin initialization -->
25
- <script src="config_cuarteles.js"></script>
26
- <script src="data_cuarteles.js"></script>
27
- <script src="app_cuarteles.js"></script>
28
- <script type="text/javascript" src="./index.js"></script></body>
29
- </html>
package/dist/index.html DELETED
@@ -1,27 +0,0 @@
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" />
6
- <title>Capibara</title>
7
- <style>
8
- html,
9
- body {
10
- margin: 0px;
11
- padding: 0px;
12
- }
13
- #timeline{
14
- height: 100%;
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div id="timeline"></div>
21
- <!-- plugin initialization -->
22
- <script src="config.js"></script>
23
- <script src="data.js"></script>
24
- <script src="app.js"></script>
25
- <script type="text/javascript" src="./index.js"></script></body>
26
- </html>
27
-