slicejs-web-framework 2.3.5 → 2.4.0
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/LICENSE +21 -21
- package/README.md +24 -5
- package/Slice/Components/Structural/Controller/Controller.js +156 -154
- package/Slice/Components/Structural/Debugger/Debugger.css +619 -619
- package/Slice/Components/Structural/Debugger/Debugger.html +72 -72
- package/Slice/Components/Structural/Logger/Log.js +10 -10
- package/Slice/Components/Structural/StylesManager/StylesManager.js +6 -3
- package/Slice/Slice.js +111 -51
- package/api/index.js +261 -233
- package/api/middleware/securityMiddleware.js +252 -252
- package/package.json +37 -37
- package/sliceConfig.schema.json +4 -0
- package/src/App/index.html +22 -22
- package/src/App/index.js +23 -23
- package/src/App/style.css +40 -40
- package/src/Components/AppComponents/HomePage/HomePage.css +204 -204
- package/src/Components/AppComponents/HomePage/HomePage.html +48 -48
- package/src/Components/AppComponents/HomePage/HomePage.js +195 -195
- package/src/Components/AppComponents/Playground/Playground.css +11 -11
- package/src/Components/AppComponents/Playground/Playground.js +111 -111
- package/src/Components/Service/FetchManager/FetchManager.js +133 -133
- package/src/Components/Service/IndexedDbManager/IndexedDbManager.js +141 -141
- package/src/Components/Service/LocalStorageManager/LocalStorageManager.js +45 -45
- package/src/Components/Visual/Button/Button.css +47 -47
- package/src/Components/Visual/Button/Button.html +5 -5
- package/src/Components/Visual/Button/Button.js +92 -92
- package/src/Components/Visual/Card/Card.css +68 -68
- package/src/Components/Visual/Card/Card.html +7 -7
- package/src/Components/Visual/Card/Card.js +107 -107
- package/src/Components/Visual/Checkbox/Checkbox.css +87 -87
- package/src/Components/Visual/Checkbox/Checkbox.html +8 -8
- package/src/Components/Visual/Checkbox/Checkbox.js +86 -86
- package/src/Components/Visual/CodeVisualizer/CodeVisualizer.css +129 -129
- package/src/Components/Visual/CodeVisualizer/CodeVisualizer.html +3 -3
- package/src/Components/Visual/CodeVisualizer/CodeVisualizer.js +259 -259
- package/src/Components/Visual/Details/Details.css +70 -70
- package/src/Components/Visual/Details/Details.html +9 -9
- package/src/Components/Visual/Details/Details.js +76 -76
- package/src/Components/Visual/DropDown/DropDown.css +60 -60
- package/src/Components/Visual/DropDown/DropDown.html +5 -5
- package/src/Components/Visual/DropDown/DropDown.js +63 -63
- package/src/Components/Visual/Grid/Grid.css +7 -7
- package/src/Components/Visual/Grid/Grid.html +1 -1
- package/src/Components/Visual/Grid/Grid.js +57 -57
- package/src/Components/Visual/Icon/Icon.css +510 -510
- package/src/Components/Visual/Icon/Icon.js +89 -89
- package/src/Components/Visual/Icon/slc.json +554 -554
- package/src/Components/Visual/Icon/slc.styl +507 -507
- package/src/Components/Visual/Icon/slc.svg +1485 -1485
- package/src/Components/Visual/Icon/slc.symbol.svg +1058 -1058
- package/src/Components/Visual/Input/Input.css +91 -91
- package/src/Components/Visual/Input/Input.html +4 -4
- package/src/Components/Visual/Input/Input.js +215 -215
- package/src/Components/Visual/Layout/Layout.js +49 -49
- package/src/Components/Visual/Loading/Loading.css +56 -56
- package/src/Components/Visual/Loading/Loading.html +83 -83
- package/src/Components/Visual/Loading/Loading.js +38 -38
- package/src/Components/Visual/MultiRoute/MultiRoute.js +93 -93
- package/src/Components/Visual/Navbar/Navbar.css +115 -115
- package/src/Components/Visual/Navbar/Navbar.html +44 -44
- package/src/Components/Visual/Navbar/Navbar.js +141 -141
- package/src/Components/Visual/NotFound/NotFound.css +116 -116
- package/src/Components/Visual/NotFound/NotFound.html +23 -23
- package/src/Components/Visual/NotFound/NotFound.js +16 -16
- package/src/Components/Visual/Route/Route.js +93 -93
- package/src/Components/Visual/Select/Select.css +84 -84
- package/src/Components/Visual/Select/Select.html +8 -8
- package/src/Components/Visual/Select/Select.js +195 -195
- package/src/Components/Visual/Switch/Switch.css +76 -76
- package/src/Components/Visual/Switch/Switch.html +8 -8
- package/src/Components/Visual/Switch/Switch.js +102 -102
- package/src/Components/Visual/TreeItem/TreeItem.css +36 -36
- package/src/Components/Visual/TreeItem/TreeItem.html +1 -1
- package/src/Components/Visual/TreeItem/TreeItem.js +126 -126
- package/src/Components/Visual/TreeView/TreeView.css +8 -8
- package/src/Components/Visual/TreeView/TreeView.html +1 -1
- package/src/Components/Visual/TreeView/TreeView.js +48 -48
- package/src/Styles/sliceStyles.css +34 -34
- package/src/Themes/Dark.css +42 -42
- package/src/Themes/Light.css +31 -31
- package/src/Themes/Slice.css +47 -47
- package/src/routes.js +15 -15
- package/src/sliceConfig.json +8 -3
- package/src/testing.js +887 -887
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Poppins&family=Roboto&display=swap");
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
5
|
-
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
6
|
-
--border-radius-slice: 5px;
|
|
7
|
-
--slice-border: 1px;
|
|
8
|
-
}
|
|
9
|
-
body {
|
|
10
|
-
margin: 0;
|
|
11
|
-
background-color: var(--primary-background-color);
|
|
12
|
-
}
|
|
13
|
-
.caret {
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
width: 0;
|
|
16
|
-
height: 0;
|
|
17
|
-
border-left: 5px solid transparent;
|
|
18
|
-
border-right: 5px solid transparent;
|
|
19
|
-
border-top: 6px solid;
|
|
20
|
-
transition: transform 0.3s;
|
|
21
|
-
}
|
|
22
|
-
.caret_open {
|
|
23
|
-
transform: rotate(180deg);
|
|
24
|
-
}
|
|
25
|
-
*::-webkit-scrollbar {
|
|
26
|
-
width: 5px;
|
|
27
|
-
}
|
|
28
|
-
*::-webkit-scrollbar:horizontal {
|
|
29
|
-
height: 3px;
|
|
30
|
-
}
|
|
31
|
-
*::-webkit-scrollbar-thumb {
|
|
32
|
-
background: var(--secondary-color);
|
|
33
|
-
border-radius: var(--border-radius-slice);
|
|
34
|
-
}
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Poppins&family=Roboto&display=swap");
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
5
|
+
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
6
|
+
--border-radius-slice: 5px;
|
|
7
|
+
--slice-border: 1px;
|
|
8
|
+
}
|
|
9
|
+
body {
|
|
10
|
+
margin: 0;
|
|
11
|
+
background-color: var(--primary-background-color);
|
|
12
|
+
}
|
|
13
|
+
.caret {
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
border-left: 5px solid transparent;
|
|
18
|
+
border-right: 5px solid transparent;
|
|
19
|
+
border-top: 6px solid;
|
|
20
|
+
transition: transform 0.3s;
|
|
21
|
+
}
|
|
22
|
+
.caret_open {
|
|
23
|
+
transform: rotate(180deg);
|
|
24
|
+
}
|
|
25
|
+
*::-webkit-scrollbar {
|
|
26
|
+
width: 5px;
|
|
27
|
+
}
|
|
28
|
+
*::-webkit-scrollbar:horizontal {
|
|
29
|
+
height: 3px;
|
|
30
|
+
}
|
|
31
|
+
*::-webkit-scrollbar-thumb {
|
|
32
|
+
background: var(--secondary-color);
|
|
33
|
+
border-radius: var(--border-radius-slice);
|
|
34
|
+
}
|
package/src/Themes/Dark.css
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--font-primary-color: #fff;
|
|
3
|
-
|
|
4
|
-
/** primary **/
|
|
5
|
-
--primary-color: #0066ff;
|
|
6
|
-
--primary-color-rgb: rgb(0, 102, 255);
|
|
7
|
-
/* Se reemplaza el negro puro por un gris muy oscuro, más cálido y agradable */
|
|
8
|
-
--primary-background-color: #282828; /* antes: #000 */
|
|
9
|
-
--primary-color-contrast: #000;
|
|
10
|
-
/* Ajustamos la sombra para que armonice con el fondo aclarado */
|
|
11
|
-
--primary-color-shade: #383838; /* antes: #222 */
|
|
12
|
-
|
|
13
|
-
/** secondary **/
|
|
14
|
-
--secondary-color: #63ccfd;
|
|
15
|
-
--secondary-color-rgb: rgb(99, 204, 253);
|
|
16
|
-
/* Se aclara el fondo secundario para suavizar el efecto general */
|
|
17
|
-
--secondary-background-color: #333333; /* antes: #222 */
|
|
18
|
-
--secondary-color-contrast: #fff;
|
|
19
|
-
|
|
20
|
-
/** tertiary **/
|
|
21
|
-
/* Se levanta ligeramente el fondo terciario para mantener la coherencia visual */
|
|
22
|
-
--tertiary-background-color: #555555; /* antes: #444 */
|
|
23
|
-
|
|
24
|
-
/** success **/
|
|
25
|
-
--success-color: #00ff40;
|
|
26
|
-
--success-contrast: #000;
|
|
27
|
-
|
|
28
|
-
/** warning **/
|
|
29
|
-
--warning-color: #ffff40;
|
|
30
|
-
--warning-contrast: #000;
|
|
31
|
-
|
|
32
|
-
/** danger **/
|
|
33
|
-
--danger-color: #ff0000;
|
|
34
|
-
--danger-contrast: #000;
|
|
35
|
-
|
|
36
|
-
/** medium **/
|
|
37
|
-
--medium-color: #92949c;
|
|
38
|
-
--medium-contrast: #fff;
|
|
39
|
-
|
|
40
|
-
/* Disabled color */
|
|
41
|
-
--disabled-color: #7f7f7f;
|
|
42
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--font-primary-color: #fff;
|
|
3
|
+
|
|
4
|
+
/** primary **/
|
|
5
|
+
--primary-color: #0066ff;
|
|
6
|
+
--primary-color-rgb: rgb(0, 102, 255);
|
|
7
|
+
/* Se reemplaza el negro puro por un gris muy oscuro, más cálido y agradable */
|
|
8
|
+
--primary-background-color: #282828; /* antes: #000 */
|
|
9
|
+
--primary-color-contrast: #000;
|
|
10
|
+
/* Ajustamos la sombra para que armonice con el fondo aclarado */
|
|
11
|
+
--primary-color-shade: #383838; /* antes: #222 */
|
|
12
|
+
|
|
13
|
+
/** secondary **/
|
|
14
|
+
--secondary-color: #63ccfd;
|
|
15
|
+
--secondary-color-rgb: rgb(99, 204, 253);
|
|
16
|
+
/* Se aclara el fondo secundario para suavizar el efecto general */
|
|
17
|
+
--secondary-background-color: #333333; /* antes: #222 */
|
|
18
|
+
--secondary-color-contrast: #fff;
|
|
19
|
+
|
|
20
|
+
/** tertiary **/
|
|
21
|
+
/* Se levanta ligeramente el fondo terciario para mantener la coherencia visual */
|
|
22
|
+
--tertiary-background-color: #555555; /* antes: #444 */
|
|
23
|
+
|
|
24
|
+
/** success **/
|
|
25
|
+
--success-color: #00ff40;
|
|
26
|
+
--success-contrast: #000;
|
|
27
|
+
|
|
28
|
+
/** warning **/
|
|
29
|
+
--warning-color: #ffff40;
|
|
30
|
+
--warning-contrast: #000;
|
|
31
|
+
|
|
32
|
+
/** danger **/
|
|
33
|
+
--danger-color: #ff0000;
|
|
34
|
+
--danger-contrast: #000;
|
|
35
|
+
|
|
36
|
+
/** medium **/
|
|
37
|
+
--medium-color: #92949c;
|
|
38
|
+
--medium-contrast: #fff;
|
|
39
|
+
|
|
40
|
+
/* Disabled color */
|
|
41
|
+
--disabled-color: #7f7f7f;
|
|
42
|
+
}
|
package/src/Themes/Light.css
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--font-primary-color: #000;
|
|
3
|
-
--font-secondary-color: #474747;
|
|
4
|
-
/** primary **/
|
|
5
|
-
--primary-color: #0066ff;
|
|
6
|
-
--primary-color-rgb: rgb(0, 102, 255);
|
|
7
|
-
--primary-background-color: #fff;
|
|
8
|
-
--primary-color-contrast: #fff;
|
|
9
|
-
--primary-color-shade: #ddd;
|
|
10
|
-
/** secondary **/
|
|
11
|
-
--secondary-color: #63ccfd;
|
|
12
|
-
--secondary-color-rgb: rgb(99, 204, 253);
|
|
13
|
-
--secondary-background-color: #ddd;
|
|
14
|
-
--secondary-color-contrast: #fff;
|
|
15
|
-
/** tertiary **/
|
|
16
|
-
--tertiary-background-color: #c4c4c4;
|
|
17
|
-
/** success **/
|
|
18
|
-
--success-color: #00ff40;
|
|
19
|
-
--success-contrast: #fff;
|
|
20
|
-
/** warning **/
|
|
21
|
-
--warning-color: #ffff40;
|
|
22
|
-
--warning-contrast: #000;
|
|
23
|
-
/** danger **/
|
|
24
|
-
--danger-color: #ff0000;
|
|
25
|
-
--danger-contrast: #fff;
|
|
26
|
-
/** medium **/
|
|
27
|
-
--medium-color: #92949c;
|
|
28
|
-
--medium--contrast: #000;
|
|
29
|
-
|
|
30
|
-
--disabled-color: #7f7f7f;
|
|
31
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--font-primary-color: #000;
|
|
3
|
+
--font-secondary-color: #474747;
|
|
4
|
+
/** primary **/
|
|
5
|
+
--primary-color: #0066ff;
|
|
6
|
+
--primary-color-rgb: rgb(0, 102, 255);
|
|
7
|
+
--primary-background-color: #fff;
|
|
8
|
+
--primary-color-contrast: #fff;
|
|
9
|
+
--primary-color-shade: #ddd;
|
|
10
|
+
/** secondary **/
|
|
11
|
+
--secondary-color: #63ccfd;
|
|
12
|
+
--secondary-color-rgb: rgb(99, 204, 253);
|
|
13
|
+
--secondary-background-color: #ddd;
|
|
14
|
+
--secondary-color-contrast: #fff;
|
|
15
|
+
/** tertiary **/
|
|
16
|
+
--tertiary-background-color: #c4c4c4;
|
|
17
|
+
/** success **/
|
|
18
|
+
--success-color: #00ff40;
|
|
19
|
+
--success-contrast: #fff;
|
|
20
|
+
/** warning **/
|
|
21
|
+
--warning-color: #ffff40;
|
|
22
|
+
--warning-contrast: #000;
|
|
23
|
+
/** danger **/
|
|
24
|
+
--danger-color: #ff0000;
|
|
25
|
+
--danger-contrast: #fff;
|
|
26
|
+
/** medium **/
|
|
27
|
+
--medium-color: #92949c;
|
|
28
|
+
--medium--contrast: #000;
|
|
29
|
+
|
|
30
|
+
--disabled-color: #7f7f7f;
|
|
31
|
+
}
|
package/src/Themes/Slice.css
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* Tipografía */
|
|
3
|
-
--font-primary-color: #2E1A47; /* Uva oscuro, elegante para lectura */
|
|
4
|
-
--font-secondary-color: #7D3AC1; /* Uva brillante para títulos y resaltes */
|
|
5
|
-
|
|
6
|
-
/** Primary - Uva intenso **/
|
|
7
|
-
--primary-color: #7D3AC1;
|
|
8
|
-
--primary-color-rgb: 125, 58, 193;
|
|
9
|
-
--primary-background-color: #F8F4FF; /* Lila muy claro como fondo principal */
|
|
10
|
-
--primary-color-contrast: #ffffff;
|
|
11
|
-
--primary-color-shade: #4E2279;
|
|
12
|
-
|
|
13
|
-
/** Secondary - Lima vibrante **/
|
|
14
|
-
--secondary-color: #C6FF00; /* Amarillo lima brillante, capta la atención */
|
|
15
|
-
--secondary-color-rgb: 198, 255, 0;
|
|
16
|
-
--secondary-background-color: #F9FFE1;
|
|
17
|
-
--secondary-color-contrast: #2E2E2E;
|
|
18
|
-
|
|
19
|
-
/** Tertiary - Turquesa suave **/
|
|
20
|
-
--tertiary-background-color: #D0F4F2; /* Fondo suave, fresco y moderno */
|
|
21
|
-
|
|
22
|
-
/** Success - Verde esmeralda claro **/
|
|
23
|
-
--success-color: #00B894;
|
|
24
|
-
--success-contrast: #ffffff;
|
|
25
|
-
|
|
26
|
-
/** Warning - Amarillo más tradicional pero suave **/
|
|
27
|
-
--warning-color: #FFD54F;
|
|
28
|
-
--warning-contrast: #3E2723;
|
|
29
|
-
|
|
30
|
-
/** Danger - Coral vibrante (sin caer en rojo tradicional) **/
|
|
31
|
-
--danger-color: #FF6F61;
|
|
32
|
-
--danger-contrast: #ffffff;
|
|
33
|
-
|
|
34
|
-
/** Medium - Gris lavanda para texto secundario **/
|
|
35
|
-
--medium-color: #A89FB5;
|
|
36
|
-
--medium-contrast: #000000;
|
|
37
|
-
|
|
38
|
-
/** Disabled - Gris pastel lavanda **/
|
|
39
|
-
--disabled-color: #E6E0F1;
|
|
40
|
-
|
|
41
|
-
/** Accent - Turquesa brillante para detalles elegantes **/
|
|
42
|
-
--accent-color: #00CFC1;
|
|
43
|
-
|
|
44
|
-
/* Sombras */
|
|
45
|
-
--box-shadow-primary: 0px 4px 12px rgba(125, 58, 193, 0.15);
|
|
46
|
-
--box-shadow-secondary: 0px 3px 8px rgba(198, 255, 0, 0.1);
|
|
47
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
/* Tipografía */
|
|
3
|
+
--font-primary-color: #2E1A47; /* Uva oscuro, elegante para lectura */
|
|
4
|
+
--font-secondary-color: #7D3AC1; /* Uva brillante para títulos y resaltes */
|
|
5
|
+
|
|
6
|
+
/** Primary - Uva intenso **/
|
|
7
|
+
--primary-color: #7D3AC1;
|
|
8
|
+
--primary-color-rgb: 125, 58, 193;
|
|
9
|
+
--primary-background-color: #F8F4FF; /* Lila muy claro como fondo principal */
|
|
10
|
+
--primary-color-contrast: #ffffff;
|
|
11
|
+
--primary-color-shade: #4E2279;
|
|
12
|
+
|
|
13
|
+
/** Secondary - Lima vibrante **/
|
|
14
|
+
--secondary-color: #C6FF00; /* Amarillo lima brillante, capta la atención */
|
|
15
|
+
--secondary-color-rgb: 198, 255, 0;
|
|
16
|
+
--secondary-background-color: #F9FFE1;
|
|
17
|
+
--secondary-color-contrast: #2E2E2E;
|
|
18
|
+
|
|
19
|
+
/** Tertiary - Turquesa suave **/
|
|
20
|
+
--tertiary-background-color: #D0F4F2; /* Fondo suave, fresco y moderno */
|
|
21
|
+
|
|
22
|
+
/** Success - Verde esmeralda claro **/
|
|
23
|
+
--success-color: #00B894;
|
|
24
|
+
--success-contrast: #ffffff;
|
|
25
|
+
|
|
26
|
+
/** Warning - Amarillo más tradicional pero suave **/
|
|
27
|
+
--warning-color: #FFD54F;
|
|
28
|
+
--warning-contrast: #3E2723;
|
|
29
|
+
|
|
30
|
+
/** Danger - Coral vibrante (sin caer en rojo tradicional) **/
|
|
31
|
+
--danger-color: #FF6F61;
|
|
32
|
+
--danger-contrast: #ffffff;
|
|
33
|
+
|
|
34
|
+
/** Medium - Gris lavanda para texto secundario **/
|
|
35
|
+
--medium-color: #A89FB5;
|
|
36
|
+
--medium-contrast: #000000;
|
|
37
|
+
|
|
38
|
+
/** Disabled - Gris pastel lavanda **/
|
|
39
|
+
--disabled-color: #E6E0F1;
|
|
40
|
+
|
|
41
|
+
/** Accent - Turquesa brillante para detalles elegantes **/
|
|
42
|
+
--accent-color: #00CFC1;
|
|
43
|
+
|
|
44
|
+
/* Sombras */
|
|
45
|
+
--box-shadow-primary: 0px 4px 12px rgba(125, 58, 193, 0.15);
|
|
46
|
+
--box-shadow-secondary: 0px 3px 8px rgba(198, 255, 0, 0.1);
|
|
47
|
+
}
|
package/src/routes.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const routes = [
|
|
2
|
-
// Rutas principales
|
|
3
|
-
{ path: '/', component: 'HomePage' },
|
|
4
|
-
{ path: '/404', component: 'NotFound' },
|
|
5
|
-
{
|
|
6
|
-
path: '/Docum/${category}/${id}',
|
|
7
|
-
component: 'LandingPage',
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
path: "/Playground",
|
|
11
|
-
component: "Playground",
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
];
|
|
15
|
-
|
|
1
|
+
const routes = [
|
|
2
|
+
// Rutas principales
|
|
3
|
+
{ path: '/', component: 'HomePage' },
|
|
4
|
+
{ path: '/404', component: 'NotFound' },
|
|
5
|
+
{
|
|
6
|
+
path: '/Docum/${category}/${id}',
|
|
7
|
+
component: 'LandingPage',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
path: "/Playground",
|
|
11
|
+
component: "Playground",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
];
|
|
15
|
+
|
|
16
16
|
export default routes;
|