@vixoniccom/kpi-chart 0.0.2-dev.9 → 0.0.2
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/CHANGELOG.md +91 -0
- package/build.zip +0 -0
- package/configuration/appearanceGroup/index.ts +183 -0
- package/configuration/chartGroup/index.ts +13 -142
- package/configuration/index.ts +5 -8
- package/configuration/utils.ts +3 -10
- package/configuration.json +233 -260
- package/package.json +4 -5
- package/configuration/generalGroup/index.ts +0 -33
- package/configuration/styleGroup/index.ts +0 -49
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,97 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.2](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.8...v0.0.2) (2026-11-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **VXD-545:** plot the charts kept by the app over the KpiService tabs ([#8](https://github.com/Vixonic/store-sheets-kpi/issues/8)) ([211e29a](https://github.com/Vixonic/store-sheets-kpi/commit/211e29a92cfa0154fd8e91771f80e3700737ca11))
|
|
11
|
+
* VXD-901 Add text formatting options for chart values and labels ([6cc17ad](https://github.com/Vixonic/store-sheets-kpi/commit/6cc17ad7f28337c973589784dfeca4544d3dbf73))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* fixed pipeline ([121e14c](https://github.com/Vixonic/store-sheets-kpi/commit/121e14c5f3f58a0c7c5f24a7a9ca5e44e40b84c2))
|
|
17
|
+
|
|
18
|
+
### [0.0.2-dev.19](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.18...v0.0.2-dev.19) (2026-11-17)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* VXD-545 address the review of the PR ([c68ce56](https://github.com/Vixonic/store-sheets-kpi/commit/c68ce567802e52529934f1a71146c1c5a2bdbd61))
|
|
24
|
+
|
|
25
|
+
### [0.0.2-dev.18](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.17...v0.0.2-dev.18) (2026-11-10)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* VXD-545 allow uploading the background image only from a PC ([6e62fc2](https://github.com/Vixonic/store-sheets-kpi/commit/6e62fc2546eff70bf026bfad9122e4ab1f987f01))
|
|
31
|
+
|
|
32
|
+
### [0.0.2-dev.17](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.16...v0.0.2-dev.17) (2026-11-10)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* VXD-545 avoid CSS that older player browsers do not support ([90114c7](https://github.com/Vixonic/store-sheets-kpi/commit/90114c78750ffe91aa18d82192592c9d6f404744))
|
|
38
|
+
|
|
39
|
+
### [0.0.2-dev.16](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.15...v0.0.2-dev.16) (2026-11-10)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* VXD-545 keep the no data message on a single line ([2ca7466](https://github.com/Vixonic/store-sheets-kpi/commit/2ca746645f0fd0f7e869864ea6c0da21eacb7f65))
|
|
45
|
+
* VXD-545 parse header units without backtracking regex ([0b7efa8](https://github.com/Vixonic/store-sheets-kpi/commit/0b7efa83529f52b751332d2509b32f6c8a45bd9e))
|
|
46
|
+
|
|
47
|
+
### [0.0.2-dev.15](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.14...v0.0.2-dev.15) (2026-11-09)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
* VXD-545 plot the charts kept by the app over the KpiService tabs ([2f96e60](https://github.com/Vixonic/store-sheets-kpi/commit/2f96e60a352a1e37aec28b0bfe7a65d206407381))
|
|
53
|
+
|
|
54
|
+
### [0.0.2-dev.14](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.13...v0.0.2-dev.14) (2026-11-05)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
* VXD-545 use the KpiService type for the documents service ([e115d3f](https://github.com/Vixonic/store-sheets-kpi/commit/e115d3f64bbbb7a2f7476a5b2e6100db0cb2a353))
|
|
60
|
+
|
|
61
|
+
### [0.0.2-dev.13](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.12...v0.0.2-dev.13) (2026-11-05)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Features
|
|
65
|
+
|
|
66
|
+
* VXD-545 adjust appearance inputs to the new design ([5fc0c94](https://github.com/Vixonic/store-sheets-kpi/commit/5fc0c94bb40d0361a6bc83716ae14dc99c7f375d))
|
|
67
|
+
* VXD-545 show the charts of the kpi service in rotation ([bcd5b90](https://github.com/Vixonic/store-sheets-kpi/commit/bcd5b9030dd0d24aff494ca6390bbb344b0f8958))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* VXD-545 use left value for title alignment and update modules ([2bcd34a](https://github.com/Vixonic/store-sheets-kpi/commit/2bcd34ae1a2aa4fdf5cc804ca8e1377ae6bce49f))
|
|
73
|
+
|
|
74
|
+
### [0.0.2-dev.12](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.11...v0.0.2-dev.12) (2026-10-30)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
* VXD-545 organize appearance configuration into sections and blocks ([d5cc6f6](https://github.com/Vixonic/store-sheets-kpi/commit/d5cc6f63e08609856489fbb97056dab070d74503))
|
|
80
|
+
|
|
81
|
+
### [0.0.2-dev.11](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.8...v0.0.2-dev.11) (2026-10-28)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
* VXD-545 restructure configuration into chart and appearance groups ([3b20176](https://github.com/Vixonic/store-sheets-kpi/commit/3b20176be4f99830a519daf7dd6c8035455051ad))
|
|
87
|
+
* VXD-901 Add text formatting options for chart values and labels ([6cc17ad](https://github.com/Vixonic/store-sheets-kpi/commit/6cc17ad7f28337c973589784dfeca4544d3dbf73))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* fixed pipeline ([121e14c](https://github.com/Vixonic/store-sheets-kpi/commit/121e14c5f3f58a0c7c5f24a7a9ca5e44e40b84c2))
|
|
93
|
+
|
|
94
|
+
### [0.0.2-dev.10](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.9...v0.0.2-dev.10) (2026-08-04)
|
|
95
|
+
|
|
5
96
|
### [0.0.2-dev.9](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.8...v0.0.2-dev.9) (2026-08-04)
|
|
6
97
|
|
|
7
98
|
|
package/build.zip
ADDED
|
Binary file
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Block,
|
|
3
|
+
ColorListInput,
|
|
4
|
+
ColorPicker,
|
|
5
|
+
Group,
|
|
6
|
+
MarginInput,
|
|
7
|
+
NumberInput,
|
|
8
|
+
NumberRangeValue,
|
|
9
|
+
Section,
|
|
10
|
+
SelectAssetKna,
|
|
11
|
+
SelectInput,
|
|
12
|
+
Switch,
|
|
13
|
+
TextFormat,
|
|
14
|
+
} from "@vixoniccom/modules";
|
|
15
|
+
import { ShowValidations } from "../utils";
|
|
16
|
+
|
|
17
|
+
export const appearanceGroup = new Group({
|
|
18
|
+
id: "appearanceGroup",
|
|
19
|
+
label: "Apariencia",
|
|
20
|
+
items: [
|
|
21
|
+
new Section({
|
|
22
|
+
id: 'rotationSection',
|
|
23
|
+
label: 'Rotación',
|
|
24
|
+
icon: 'timer',
|
|
25
|
+
items: [
|
|
26
|
+
new Block({
|
|
27
|
+
id: 'rotationBlock',
|
|
28
|
+
items: [
|
|
29
|
+
new NumberInput({
|
|
30
|
+
id: 'chartDuration',
|
|
31
|
+
label: 'Duración por gráfico',
|
|
32
|
+
description: 'Segundos que se muestra cada gráfico, entre 4 y 90. Por defecto 12. Aplica a todos los gráficos.',
|
|
33
|
+
range: new NumberRangeValue(4, 90),
|
|
34
|
+
}),
|
|
35
|
+
new SelectInput({
|
|
36
|
+
id: 'chartAnimation',
|
|
37
|
+
label: 'Animación de entrada',
|
|
38
|
+
description: 'Se repite en cada cambio de gráfico y al iniciar el turno.',
|
|
39
|
+
items: [{ label: 'Crecer', value: 'grow' }, { label: 'Ninguna', value: 'none' }],
|
|
40
|
+
defaultValue: 'grow',
|
|
41
|
+
inLine: true,
|
|
42
|
+
}),
|
|
43
|
+
],
|
|
44
|
+
}),
|
|
45
|
+
],
|
|
46
|
+
}),
|
|
47
|
+
new Section({
|
|
48
|
+
id: 'designSection',
|
|
49
|
+
label: 'Diseño',
|
|
50
|
+
icon: 'brush',
|
|
51
|
+
items: [
|
|
52
|
+
new Block({
|
|
53
|
+
id: 'designBlock',
|
|
54
|
+
items: [
|
|
55
|
+
new ColorPicker({
|
|
56
|
+
id: 'backgroundColor',
|
|
57
|
+
label: 'Color de fondo',
|
|
58
|
+
description: 'Si subes una imagen de fondo, esta tapa el color.',
|
|
59
|
+
}),
|
|
60
|
+
new SelectAssetKna({
|
|
61
|
+
id: 'backgroundImage',
|
|
62
|
+
label: 'Imagen de fondo',
|
|
63
|
+
extensions: ['jpg', 'png'],
|
|
64
|
+
multiple: false,
|
|
65
|
+
description: 'JPG o PNG 16:9. Usa imágenes sobrias para que el gráfico se lea.',
|
|
66
|
+
pcOnly: true,
|
|
67
|
+
}),
|
|
68
|
+
],
|
|
69
|
+
}),
|
|
70
|
+
],
|
|
71
|
+
}),
|
|
72
|
+
new Section({
|
|
73
|
+
id: 'colorsSection',
|
|
74
|
+
label: 'Colores',
|
|
75
|
+
icon: 'color-lens',
|
|
76
|
+
items: [
|
|
77
|
+
new Block({
|
|
78
|
+
id: 'colorsBlock',
|
|
79
|
+
items: [
|
|
80
|
+
new ColorListInput({
|
|
81
|
+
id: 'seriesColors',
|
|
82
|
+
label: 'Colores de las series',
|
|
83
|
+
description: 'Colores de las series para todos los gráficos, salvo que un gráfico defina los suyos. En tortas, cada porción toma el color en el mismo orden.',
|
|
84
|
+
itemLabel: 'Serie',
|
|
85
|
+
range: new NumberRangeValue(3, 6),
|
|
86
|
+
defaultValue: ['#336AEA', '#5FBFB1', '#E8A33D'],
|
|
87
|
+
}),
|
|
88
|
+
new Switch({
|
|
89
|
+
id: 'showGuidelines',
|
|
90
|
+
label: 'Mostrar líneas guía y eje',
|
|
91
|
+
defaultValue: false
|
|
92
|
+
}),
|
|
93
|
+
new ColorPicker({
|
|
94
|
+
id: 'guidelineColor',
|
|
95
|
+
label: 'Líneas guía',
|
|
96
|
+
show: ShowValidations.showGuidelines
|
|
97
|
+
}),
|
|
98
|
+
],
|
|
99
|
+
}),
|
|
100
|
+
],
|
|
101
|
+
}),
|
|
102
|
+
new Section({
|
|
103
|
+
id: 'textSection',
|
|
104
|
+
label: 'Texto',
|
|
105
|
+
icon: 'title',
|
|
106
|
+
items: [
|
|
107
|
+
new Block({
|
|
108
|
+
id: 'titleTextBlock',
|
|
109
|
+
label: 'Título',
|
|
110
|
+
description: 'Nombre del gráfico, arriba.',
|
|
111
|
+
items: [
|
|
112
|
+
new TextFormat({
|
|
113
|
+
id: 'titleTypography',
|
|
114
|
+
label: 'Tipografía',
|
|
115
|
+
hidePicker: true,
|
|
116
|
+
}),
|
|
117
|
+
new SelectInput({
|
|
118
|
+
id: 'titleAlignment',
|
|
119
|
+
label: 'Alineación',
|
|
120
|
+
items: [{ label: 'Izquierda', value: 'left' }, { label: 'Centro', value: 'center'}],
|
|
121
|
+
defaultValue: 'left',
|
|
122
|
+
inLine: true,
|
|
123
|
+
}),
|
|
124
|
+
new ColorPicker({
|
|
125
|
+
id: 'titleFontColor',
|
|
126
|
+
label: 'Color',
|
|
127
|
+
}),
|
|
128
|
+
],
|
|
129
|
+
}),
|
|
130
|
+
new Block({
|
|
131
|
+
id: 'tagTextBlock',
|
|
132
|
+
label: 'Etiquetas',
|
|
133
|
+
description: 'Categorías, leyenda y número de los ejes.',
|
|
134
|
+
items: [
|
|
135
|
+
new TextFormat({
|
|
136
|
+
id: 'tagsTypography',
|
|
137
|
+
label: 'Tipografía',
|
|
138
|
+
hidePicker: true,
|
|
139
|
+
}),
|
|
140
|
+
new ColorPicker({
|
|
141
|
+
id: 'legendFontColor',
|
|
142
|
+
label: 'Color',
|
|
143
|
+
}),
|
|
144
|
+
],
|
|
145
|
+
divider: true,
|
|
146
|
+
}),
|
|
147
|
+
new Block({
|
|
148
|
+
id: 'valuesTextBlock',
|
|
149
|
+
label: 'Valores',
|
|
150
|
+
description: 'Cifra de cada barra, punto o porción.',
|
|
151
|
+
items: [
|
|
152
|
+
new TextFormat({
|
|
153
|
+
id: 'valuesTypography',
|
|
154
|
+
label: 'Tipografía',
|
|
155
|
+
hidePicker: true,
|
|
156
|
+
}),
|
|
157
|
+
new ColorPicker({
|
|
158
|
+
id: 'valuesFontColor',
|
|
159
|
+
label: 'Color',
|
|
160
|
+
}),
|
|
161
|
+
],
|
|
162
|
+
divider: true,
|
|
163
|
+
}),
|
|
164
|
+
],
|
|
165
|
+
}),
|
|
166
|
+
new Section({
|
|
167
|
+
id: 'marginSection',
|
|
168
|
+
label: 'Márgenes',
|
|
169
|
+
icon: 'fit-screen',
|
|
170
|
+
items: [
|
|
171
|
+
new Block({
|
|
172
|
+
id: 'marginBlock',
|
|
173
|
+
items: [
|
|
174
|
+
new MarginInput({
|
|
175
|
+
id: 'appMargin',
|
|
176
|
+
defaultValue: { top: 0, left: 0, bottom: 0, right: 0 }
|
|
177
|
+
}),
|
|
178
|
+
],
|
|
179
|
+
}),
|
|
180
|
+
],
|
|
181
|
+
}),
|
|
182
|
+
],
|
|
183
|
+
})
|
|
@@ -1,152 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Group,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
SelectInput,
|
|
6
|
-
TextFormat,
|
|
7
|
-
Switch,
|
|
8
|
-
NumberInput,
|
|
3
|
+
KpiChartsInput,
|
|
4
|
+
ServiceInput,
|
|
9
5
|
} from "@vixoniccom/modules";
|
|
10
|
-
import { ShowValidations } from "../utils";
|
|
11
6
|
|
|
12
|
-
// Configuración de estilo: gráfico, título, leyenda
|
|
13
7
|
export const chartGroup = new Group({
|
|
14
8
|
id: "chartGroup",
|
|
15
|
-
label: "
|
|
9
|
+
label: "Gráficos",
|
|
10
|
+
groupType: "sheetSelection",
|
|
16
11
|
items: [
|
|
17
|
-
new
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
items: [
|
|
22
|
-
{ label: "Barras", value: "bar" },
|
|
23
|
-
{ label: "Líneas", value: "line" },
|
|
24
|
-
{ label: "Área", value: "area" },
|
|
25
|
-
{ label: "Dispersión", value: "bubble" },
|
|
26
|
-
],
|
|
27
|
-
defaultValue: "bar",
|
|
12
|
+
new ServiceInput({
|
|
13
|
+
id: 'documentServices',
|
|
14
|
+
label: 'Planillas',
|
|
15
|
+
serviceType: 'KpiService',
|
|
28
16
|
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
{ label: "Vertical", value: "vertical" },
|
|
34
|
-
{ label: "Horizontal", value: "horizontal" },
|
|
35
|
-
],
|
|
36
|
-
defaultValue: "vertical",
|
|
37
|
-
show: ShowValidations.chartTypeIsBar,
|
|
38
|
-
}),
|
|
39
|
-
new Switch({
|
|
40
|
-
id: "barStacked",
|
|
41
|
-
label: "Barras",
|
|
42
|
-
displayOnTrue: "apiladas",
|
|
43
|
-
displayOnFalse: "normales",
|
|
44
|
-
defaultValue: false,
|
|
45
|
-
show: ShowValidations.chartTypeIsBar,
|
|
46
|
-
}),
|
|
47
|
-
new Switch({
|
|
48
|
-
id: "darkMode",
|
|
49
|
-
label: "Gráfico en modo",
|
|
50
|
-
displayOnTrue: "oscuro",
|
|
51
|
-
displayOnFalse: "claro",
|
|
52
|
-
defaultValue: false,
|
|
53
|
-
}),
|
|
54
|
-
new Switch({
|
|
55
|
-
id: "showDataLabels",
|
|
56
|
-
label: "Mostrar valores en gráfico",
|
|
57
|
-
displayOnTrue: "activado",
|
|
58
|
-
displayOnFalse: "desactivado",
|
|
59
|
-
defaultValue: false,
|
|
60
|
-
}),
|
|
61
|
-
new TextFormat({
|
|
62
|
-
id: "chartValuesTextFormat",
|
|
63
|
-
label: "Formato valores",
|
|
64
|
-
description: "Formato de texto para los valores de datos del gráfico.",
|
|
65
|
-
}),
|
|
66
|
-
new Label({ label: "Título" }),
|
|
67
|
-
new Switch({
|
|
68
|
-
id: "titleEnabled",
|
|
69
|
-
label: "Mostrar título",
|
|
70
|
-
defaultValue: false,
|
|
71
|
-
}),
|
|
72
|
-
new TextInput({
|
|
73
|
-
id: "title",
|
|
74
|
-
label: "Título",
|
|
75
|
-
show: ShowValidations.titleEnabled,
|
|
76
|
-
required: true,
|
|
77
|
-
}),
|
|
78
|
-
new TextFormat({
|
|
79
|
-
id: "titleTextFormat",
|
|
80
|
-
label: "Título",
|
|
81
|
-
description: "Formato de texto para el título del gráfico.",
|
|
82
|
-
show: ShowValidations.titleEnabled,
|
|
83
|
-
}),
|
|
84
|
-
new TextInput({
|
|
85
|
-
id: "titlePadding",
|
|
86
|
-
label: "Márgenes de título",
|
|
87
|
-
description: "Márgenes para dar espacio en cada lado al título.",
|
|
88
|
-
show: ShowValidations.titleEnabled,
|
|
89
|
-
}),
|
|
90
|
-
new Label({ label: "Leyenda" }),
|
|
91
|
-
new Switch({
|
|
92
|
-
id: "legendEnabled",
|
|
93
|
-
label: "Mostrar leyenda",
|
|
94
|
-
defaultValue: false,
|
|
95
|
-
}),
|
|
96
|
-
new TextFormat({
|
|
97
|
-
id: "legendTextFormat",
|
|
98
|
-
label: "Leyenda",
|
|
99
|
-
description: "Formato de texto para la leyenda del gráfico.",
|
|
100
|
-
show: ShowValidations.legendEnabled,
|
|
101
|
-
}),
|
|
102
|
-
new SelectInput({
|
|
103
|
-
id: "legendPosition",
|
|
104
|
-
label: "Posición de leyenda",
|
|
105
|
-
items: [
|
|
106
|
-
{ label: "Izquierda", value: "left" },
|
|
107
|
-
{ label: "Derecha", value: "right" },
|
|
108
|
-
],
|
|
109
|
-
defaultValue: "left",
|
|
110
|
-
show: ShowValidations.legendEnabled,
|
|
111
|
-
}),
|
|
112
|
-
new NumberInput({
|
|
113
|
-
id: "legendMargin",
|
|
114
|
-
label: "Separación",
|
|
115
|
-
description: "Distancia (en px.) entre leyenda y gráfico",
|
|
116
|
-
show: ShowValidations.legendEnabled,
|
|
117
|
-
}),
|
|
118
|
-
new NumberInput({
|
|
119
|
-
id: "circleSize",
|
|
120
|
-
label: "Tamaño círculo",
|
|
121
|
-
description: "Tamaño (en px.) del cículo de color en la leyenda.",
|
|
122
|
-
show: ShowValidations.legendEnabled,
|
|
123
|
-
}),
|
|
124
|
-
new TextFormat({
|
|
125
|
-
id: "labelTextFormat",
|
|
126
|
-
label: "Formato categorías",
|
|
127
|
-
description: "Formato de texto para las categorías del eje horizontal y del eje vertical.",
|
|
128
|
-
}),
|
|
129
|
-
new Label({ label: "Eje vertical" }),
|
|
130
|
-
new Switch({
|
|
131
|
-
id: "yAxisEnabled",
|
|
132
|
-
label: "Mostrar métricas",
|
|
133
|
-
defaultValue: true,
|
|
134
|
-
}),
|
|
135
|
-
new Switch({
|
|
136
|
-
id: "showVerticalGrid",
|
|
137
|
-
label: "Mostrar líneas verticales",
|
|
138
|
-
defaultValue: true,
|
|
139
|
-
}),
|
|
140
|
-
new Label({ label: "Eje horizontal" }),
|
|
141
|
-
new Switch({
|
|
142
|
-
id: "xAxisEnabled",
|
|
143
|
-
label: "Mostrar métricas",
|
|
144
|
-
defaultValue: true,
|
|
145
|
-
}),
|
|
146
|
-
new Switch({
|
|
147
|
-
id: "showHorizontalGrid",
|
|
148
|
-
label: "Mostrar líneas horizontales",
|
|
149
|
-
defaultValue: true,
|
|
17
|
+
// Gráfico de cada pestaña del servicio; se edita en la vista de planillas de la plataforma.
|
|
18
|
+
new KpiChartsInput({
|
|
19
|
+
id: 'documentCharts',
|
|
20
|
+
serviceInputId: 'documentServices',
|
|
150
21
|
}),
|
|
151
22
|
],
|
|
152
|
-
})
|
|
23
|
+
})
|
package/configuration/index.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Configuration } from "@vixoniccom/modules";
|
|
2
|
-
import { generalGroup } from "./generalGroup";
|
|
3
2
|
import { chartGroup } from "./chartGroup";
|
|
4
|
-
import {
|
|
3
|
+
import { appearanceGroup } from "./appearanceGroup";
|
|
5
4
|
|
|
6
|
-
/**
|
|
7
|
-
* Clase que dictamina el esquema y es utilizada para generación de archivos
|
|
8
|
-
de configuración.
|
|
9
|
-
*/
|
|
10
5
|
export const configuration: Configuration = new Configuration({
|
|
11
|
-
|
|
12
|
-
})
|
|
6
|
+
// Gráficos en rotación (con tipo de gráfico) × segundos por gráfico, como en Noticias internas.
|
|
7
|
+
durationFormula: `(_values.documentCharts ? Object.keys(_values.documentCharts).filter(function(name) { var chart = _values.documentCharts[name]; return chart && chart.inRotation && chart.plotType; }).length : 0) * (_values.chartDuration || 12)`,
|
|
8
|
+
schema: [chartGroup, appearanceGroup],
|
|
9
|
+
})
|
package/configuration/utils.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const titleEnabled = "{{titleEnabled}} === true";
|
|
3
|
-
const legendEnabled = "{{legendEnabled}} === true";
|
|
4
|
-
const chartTypeIsBar = "{{chartType}} === 'bar'";
|
|
5
|
-
const customMessageEnabled = "{{customMessageEnabled}} === true";
|
|
1
|
+
const showGuidelines = "{{showGuidelines}} === true"
|
|
6
2
|
|
|
7
3
|
export const ShowValidations = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
chartTypeIsBar,
|
|
11
|
-
customMessageEnabled,
|
|
12
|
-
};
|
|
4
|
+
showGuidelines,
|
|
5
|
+
}
|
package/configuration.json
CHANGED
|
@@ -1,297 +1,270 @@
|
|
|
1
1
|
{
|
|
2
|
+
"durationFormula": "(_values.documentCharts ? Object.keys(_values.documentCharts).filter(function(name) { var chart = _values.documentCharts[name]; return chart && chart.inRotation && chart.plotType; }).length : 0) * (_values.chartDuration || 12)",
|
|
2
3
|
"schema": [
|
|
3
4
|
{
|
|
4
|
-
"id": "
|
|
5
|
-
"label": "
|
|
5
|
+
"id": "chartGroup",
|
|
6
|
+
"label": "Gráficos",
|
|
6
7
|
"type": "group",
|
|
7
8
|
"items": [
|
|
8
9
|
{
|
|
9
|
-
"
|
|
10
|
-
"label": "
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"id": "documentService",
|
|
14
|
-
"label": "Documento",
|
|
10
|
+
"id": "documentServices",
|
|
11
|
+
"label": "Planillas",
|
|
15
12
|
"type": "service-input",
|
|
16
|
-
"serviceType": "
|
|
13
|
+
"serviceType": "KpiService"
|
|
17
14
|
},
|
|
18
15
|
{
|
|
19
|
-
"id": "
|
|
20
|
-
"label": "
|
|
21
|
-
"type": "
|
|
22
|
-
"
|
|
23
|
-
"items": [
|
|
24
|
-
{
|
|
25
|
-
"label": "5 minutos",
|
|
26
|
-
"value": 300000
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"label": "10 minutos",
|
|
30
|
-
"value": 600000
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"label": "15 minutos",
|
|
34
|
-
"value": 900000
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"label": "30 minutos",
|
|
38
|
-
"value": 1800000
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"label": "1 hora",
|
|
42
|
-
"value": 3600000
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"defaultValue": 600000
|
|
16
|
+
"id": "documentCharts",
|
|
17
|
+
"label": "",
|
|
18
|
+
"type": "kpi-charts-input",
|
|
19
|
+
"serviceInputId": "documentServices"
|
|
46
20
|
}
|
|
47
|
-
]
|
|
21
|
+
],
|
|
22
|
+
"groupType": "sheetSelection"
|
|
48
23
|
},
|
|
49
24
|
{
|
|
50
|
-
"id": "
|
|
51
|
-
"label": "
|
|
25
|
+
"id": "appearanceGroup",
|
|
26
|
+
"label": "Apariencia",
|
|
52
27
|
"type": "group",
|
|
53
28
|
"items": [
|
|
54
29
|
{
|
|
55
|
-
"
|
|
56
|
-
"label": "
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"label": "Tipo de gŕafico",
|
|
61
|
-
"type": "select-input",
|
|
30
|
+
"id": "rotationSection",
|
|
31
|
+
"label": "Rotación",
|
|
32
|
+
"type": "section",
|
|
33
|
+
"labelContent": false,
|
|
34
|
+
"icon": "timer",
|
|
62
35
|
"items": [
|
|
63
36
|
{
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
37
|
+
"type": "block",
|
|
38
|
+
"id": "rotationBlock",
|
|
39
|
+
"divider": false,
|
|
40
|
+
"items": [
|
|
41
|
+
{
|
|
42
|
+
"id": "chartDuration",
|
|
43
|
+
"label": "Duración por gráfico",
|
|
44
|
+
"type": "number-input",
|
|
45
|
+
"range": "[4:90:]",
|
|
46
|
+
"description": "Segundos que se muestra cada gráfico, entre 4 y 90. Por defecto 12. Aplica a todos los gráficos."
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "chartAnimation",
|
|
50
|
+
"label": "Animación de entrada",
|
|
51
|
+
"type": "select-input",
|
|
52
|
+
"description": "Se repite en cada cambio de gráfico y al iniciar el turno.",
|
|
53
|
+
"items": [
|
|
54
|
+
{
|
|
55
|
+
"label": "Crecer",
|
|
56
|
+
"value": "grow"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"label": "Ninguna",
|
|
60
|
+
"value": "none"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"defaultValue": "grow",
|
|
64
|
+
"inLine": true
|
|
65
|
+
}
|
|
66
|
+
]
|
|
78
67
|
}
|
|
79
|
-
]
|
|
80
|
-
"defaultValue": "bar"
|
|
68
|
+
]
|
|
81
69
|
},
|
|
82
70
|
{
|
|
83
|
-
"id": "
|
|
84
|
-
"label": "
|
|
85
|
-
"
|
|
86
|
-
"
|
|
71
|
+
"id": "designSection",
|
|
72
|
+
"label": "Diseño",
|
|
73
|
+
"type": "section",
|
|
74
|
+
"labelContent": false,
|
|
75
|
+
"icon": "brush",
|
|
87
76
|
"items": [
|
|
88
77
|
{
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
78
|
+
"type": "block",
|
|
79
|
+
"id": "designBlock",
|
|
80
|
+
"divider": false,
|
|
81
|
+
"items": [
|
|
82
|
+
{
|
|
83
|
+
"id": "backgroundColor",
|
|
84
|
+
"label": "Color de fondo",
|
|
85
|
+
"type": "color-picker",
|
|
86
|
+
"description": "Si subes una imagen de fondo, esta tapa el color.",
|
|
87
|
+
"output": "auto",
|
|
88
|
+
"inLine": true
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "backgroundImage",
|
|
92
|
+
"label": "Imagen de fondo",
|
|
93
|
+
"type": "select-asset-kna-input",
|
|
94
|
+
"description": "JPG o PNG 16:9. Usa imágenes sobrias para que el gráfico se lea.",
|
|
95
|
+
"extensions": [
|
|
96
|
+
"jpg",
|
|
97
|
+
"png"
|
|
98
|
+
],
|
|
99
|
+
"multiple": false,
|
|
100
|
+
"pcOnly": true
|
|
101
|
+
}
|
|
102
|
+
]
|
|
95
103
|
}
|
|
96
|
-
]
|
|
97
|
-
"defaultValue": "vertical"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"id": "barStacked",
|
|
101
|
-
"label": "Barras",
|
|
102
|
-
"show": "{{chartType}} === 'bar'",
|
|
103
|
-
"type": "switch",
|
|
104
|
-
"defaultValue": false,
|
|
105
|
-
"displayOnTrue": "apiladas",
|
|
106
|
-
"displayOnFalse": "normales"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"id": "darkMode",
|
|
110
|
-
"label": "Gráfico en modo",
|
|
111
|
-
"type": "switch",
|
|
112
|
-
"defaultValue": false,
|
|
113
|
-
"displayOnTrue": "oscuro",
|
|
114
|
-
"displayOnFalse": "claro"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"id": "showDataLabels",
|
|
118
|
-
"label": "Mostrar valores en gráfico",
|
|
119
|
-
"type": "switch",
|
|
120
|
-
"defaultValue": false,
|
|
121
|
-
"displayOnTrue": "activado",
|
|
122
|
-
"displayOnFalse": "desactivado"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"id": "chartValuesTextFormat",
|
|
126
|
-
"label": "Formato valores",
|
|
127
|
-
"type": "text-format",
|
|
128
|
-
"description": "Formato de texto para los valores de datos del gráfico."
|
|
104
|
+
]
|
|
129
105
|
},
|
|
130
106
|
{
|
|
131
|
-
"
|
|
132
|
-
"label": "
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"id": "legendTextFormat",
|
|
173
|
-
"label": "Leyenda",
|
|
174
|
-
"show": "{{legendEnabled}} === true",
|
|
175
|
-
"type": "text-format",
|
|
176
|
-
"description": "Formato de texto para la leyenda del gráfico."
|
|
107
|
+
"id": "colorsSection",
|
|
108
|
+
"label": "Colores",
|
|
109
|
+
"type": "section",
|
|
110
|
+
"labelContent": false,
|
|
111
|
+
"icon": "color-lens",
|
|
112
|
+
"items": [
|
|
113
|
+
{
|
|
114
|
+
"type": "block",
|
|
115
|
+
"id": "colorsBlock",
|
|
116
|
+
"divider": false,
|
|
117
|
+
"items": [
|
|
118
|
+
{
|
|
119
|
+
"id": "seriesColors",
|
|
120
|
+
"label": "Colores de las series",
|
|
121
|
+
"type": "color-list-input",
|
|
122
|
+
"description": "Colores de las series para todos los gráficos, salvo que un gráfico defina los suyos. En tortas, cada porción toma el color en el mismo orden.",
|
|
123
|
+
"defaultValue": [
|
|
124
|
+
"#336AEA",
|
|
125
|
+
"#5FBFB1",
|
|
126
|
+
"#E8A33D"
|
|
127
|
+
],
|
|
128
|
+
"range": "[3:6:]",
|
|
129
|
+
"itemLabel": "Serie"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "showGuidelines",
|
|
133
|
+
"label": "Mostrar líneas guía y eje",
|
|
134
|
+
"type": "switch",
|
|
135
|
+
"defaultValue": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "guidelineColor",
|
|
139
|
+
"label": "Líneas guía",
|
|
140
|
+
"show": "{{showGuidelines}} === true",
|
|
141
|
+
"type": "color-picker",
|
|
142
|
+
"output": "auto",
|
|
143
|
+
"inLine": true
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
]
|
|
177
148
|
},
|
|
178
149
|
{
|
|
179
|
-
"id": "
|
|
180
|
-
"label": "
|
|
181
|
-
"
|
|
182
|
-
"
|
|
150
|
+
"id": "textSection",
|
|
151
|
+
"label": "Texto",
|
|
152
|
+
"type": "section",
|
|
153
|
+
"labelContent": false,
|
|
154
|
+
"icon": "title",
|
|
183
155
|
"items": [
|
|
184
156
|
{
|
|
185
|
-
"
|
|
186
|
-
"
|
|
157
|
+
"type": "block",
|
|
158
|
+
"id": "titleTextBlock",
|
|
159
|
+
"label": "Título",
|
|
160
|
+
"description": "Nombre del gráfico, arriba.",
|
|
161
|
+
"divider": false,
|
|
162
|
+
"items": [
|
|
163
|
+
{
|
|
164
|
+
"id": "titleTypography",
|
|
165
|
+
"label": "Tipografía",
|
|
166
|
+
"type": "text-format",
|
|
167
|
+
"hidePicker": true
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "titleAlignment",
|
|
171
|
+
"label": "Alineación",
|
|
172
|
+
"type": "select-input",
|
|
173
|
+
"items": [
|
|
174
|
+
{
|
|
175
|
+
"label": "Izquierda",
|
|
176
|
+
"value": "left"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"label": "Centro",
|
|
180
|
+
"value": "center"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"defaultValue": "left",
|
|
184
|
+
"inLine": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "titleFontColor",
|
|
188
|
+
"label": "Color",
|
|
189
|
+
"type": "color-picker",
|
|
190
|
+
"output": "auto",
|
|
191
|
+
"inLine": true
|
|
192
|
+
}
|
|
193
|
+
]
|
|
187
194
|
},
|
|
188
195
|
{
|
|
189
|
-
"
|
|
190
|
-
"
|
|
196
|
+
"type": "block",
|
|
197
|
+
"id": "tagTextBlock",
|
|
198
|
+
"label": "Etiquetas",
|
|
199
|
+
"description": "Categorías, leyenda y número de los ejes.",
|
|
200
|
+
"divider": true,
|
|
201
|
+
"items": [
|
|
202
|
+
{
|
|
203
|
+
"id": "tagsTypography",
|
|
204
|
+
"label": "Tipografía",
|
|
205
|
+
"type": "text-format",
|
|
206
|
+
"hidePicker": true
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"id": "legendFontColor",
|
|
210
|
+
"label": "Color",
|
|
211
|
+
"type": "color-picker",
|
|
212
|
+
"output": "auto",
|
|
213
|
+
"inLine": true
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "block",
|
|
219
|
+
"id": "valuesTextBlock",
|
|
220
|
+
"label": "Valores",
|
|
221
|
+
"description": "Cifra de cada barra, punto o porción.",
|
|
222
|
+
"divider": true,
|
|
223
|
+
"items": [
|
|
224
|
+
{
|
|
225
|
+
"id": "valuesTypography",
|
|
226
|
+
"label": "Tipografía",
|
|
227
|
+
"type": "text-format",
|
|
228
|
+
"hidePicker": true
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "valuesFontColor",
|
|
232
|
+
"label": "Color",
|
|
233
|
+
"type": "color-picker",
|
|
234
|
+
"output": "auto",
|
|
235
|
+
"inLine": true
|
|
236
|
+
}
|
|
237
|
+
]
|
|
191
238
|
}
|
|
192
|
-
]
|
|
193
|
-
"defaultValue": "left"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"id": "legendMargin",
|
|
197
|
-
"label": "Separación",
|
|
198
|
-
"show": "{{legendEnabled}} === true",
|
|
199
|
-
"type": "number-input",
|
|
200
|
-
"description": "Distancia (en px.) entre leyenda y gráfico"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"id": "circleSize",
|
|
204
|
-
"label": "Tamaño círculo",
|
|
205
|
-
"show": "{{legendEnabled}} === true",
|
|
206
|
-
"type": "number-input",
|
|
207
|
-
"description": "Tamaño (en px.) del cículo de color en la leyenda."
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"id": "labelTextFormat",
|
|
211
|
-
"label": "Formato categorías",
|
|
212
|
-
"type": "text-format",
|
|
213
|
-
"description": "Formato de texto para las categorías del eje horizontal y del eje vertical."
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"type": "label",
|
|
217
|
-
"label": "Eje vertical"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"id": "yAxisEnabled",
|
|
221
|
-
"label": "Mostrar métricas",
|
|
222
|
-
"type": "switch",
|
|
223
|
-
"defaultValue": true
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"id": "showVerticalGrid",
|
|
227
|
-
"label": "Mostrar líneas verticales",
|
|
228
|
-
"type": "switch",
|
|
229
|
-
"defaultValue": true
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"type": "label",
|
|
233
|
-
"label": "Eje horizontal"
|
|
239
|
+
]
|
|
234
240
|
},
|
|
235
241
|
{
|
|
236
|
-
"id": "
|
|
237
|
-
"label": "
|
|
238
|
-
"type": "
|
|
239
|
-
"
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
"description": "Márgenes para dar espacio en cada lado."
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"id": "backgroundImage",
|
|
266
|
-
"label": "Fondo",
|
|
267
|
-
"type": "select-asset-kna-input",
|
|
268
|
-
"extensions": [
|
|
269
|
-
"jpg",
|
|
270
|
-
"png"
|
|
271
|
-
],
|
|
272
|
-
"multiple": false
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"id": "customMessageEnabled",
|
|
276
|
-
"label": "Mostrar mensaje",
|
|
277
|
-
"type": "switch",
|
|
278
|
-
"defaultValue": false,
|
|
279
|
-
"displayOnTrue": "personalizado",
|
|
280
|
-
"displayOnFalse": "del sistema"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"id": "customMessage",
|
|
284
|
-
"label": "Mensaje personalizado",
|
|
285
|
-
"show": "{{customMessageEnabled}} === true",
|
|
286
|
-
"type": "text-input",
|
|
287
|
-
"description": "Mensaje para mostrar en caso de datos inexistentes.",
|
|
288
|
-
"required": true
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"id": "systemMessageTextFormat",
|
|
292
|
-
"label": "Formato de mensaje",
|
|
293
|
-
"type": "text-format",
|
|
294
|
-
"description": "Formato de texto para mensaje del sistema/personalizado."
|
|
242
|
+
"id": "marginSection",
|
|
243
|
+
"label": "Márgenes",
|
|
244
|
+
"type": "section",
|
|
245
|
+
"labelContent": false,
|
|
246
|
+
"icon": "fit-screen",
|
|
247
|
+
"items": [
|
|
248
|
+
{
|
|
249
|
+
"type": "block",
|
|
250
|
+
"id": "marginBlock",
|
|
251
|
+
"divider": false,
|
|
252
|
+
"items": [
|
|
253
|
+
{
|
|
254
|
+
"id": "appMargin",
|
|
255
|
+
"label": "",
|
|
256
|
+
"type": "margin-input",
|
|
257
|
+
"unit": "px",
|
|
258
|
+
"defaultValue": {
|
|
259
|
+
"top": 0,
|
|
260
|
+
"left": 0,
|
|
261
|
+
"bottom": 0,
|
|
262
|
+
"right": 0
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
]
|
|
295
268
|
}
|
|
296
269
|
]
|
|
297
270
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixoniccom/kpi-chart",
|
|
3
3
|
"alias": "KPI Chart",
|
|
4
|
-
"description": "Muestra
|
|
4
|
+
"description": "Muestra uno o más gráficos en rotación según indicadores KPI.",
|
|
5
5
|
"color": "#009900",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"tags": [],
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Lorenzo Alfaro Bravo"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.0.2
|
|
11
|
+
"version": "0.0.2",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"prepublish": "vixonic-module-packager --mode=build",
|
|
14
14
|
"watch": "vixonic-module-packager --mode=watch",
|
|
@@ -21,15 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"react": "^17.0.2",
|
|
24
|
-
"react-charts": "^3.0.0-beta.57",
|
|
25
24
|
"react-dom": "^17.0.2",
|
|
26
25
|
"react-loader-spinner": "^6.1.6"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"@types/react": "^17.0.2",
|
|
30
29
|
"@types/react-dom": "^17.0.11",
|
|
31
|
-
"@vixoniccom/module-packager": "^2.
|
|
32
|
-
"@vixoniccom/modules": "^2.
|
|
30
|
+
"@vixoniccom/module-packager": "^2.15.2",
|
|
31
|
+
"@vixoniccom/modules": "^2.27.0",
|
|
33
32
|
"standard-version": "^9.5.0"
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Group,
|
|
3
|
-
Label,
|
|
4
|
-
SelectInput,
|
|
5
|
-
ServiceInput,
|
|
6
|
-
} from "@vixoniccom/modules";
|
|
7
|
-
|
|
8
|
-
// Configuración general: URL fuente, cantidad de columnas y filas, tiempo de actualización y mensaje por defecto
|
|
9
|
-
export const generalGroup = new Group({
|
|
10
|
-
id: "generalGroup",
|
|
11
|
-
label: "General",
|
|
12
|
-
items: [
|
|
13
|
-
new Label({ label: "Datos" }),
|
|
14
|
-
new ServiceInput({
|
|
15
|
-
id: 'documentService',
|
|
16
|
-
label: 'Documento',
|
|
17
|
-
serviceType: 'SheetsReaderService',
|
|
18
|
-
}),
|
|
19
|
-
new SelectInput({
|
|
20
|
-
id: "updateTime",
|
|
21
|
-
label: "Actualización",
|
|
22
|
-
items: [
|
|
23
|
-
{ label: "5 minutos", value: 300000 },
|
|
24
|
-
{ label: "10 minutos", value: 600000 },
|
|
25
|
-
{ label: "15 minutos", value: 900000 },
|
|
26
|
-
{ label: "30 minutos", value: 1800000 },
|
|
27
|
-
{ label: "1 hora", value: 3600000 },
|
|
28
|
-
],
|
|
29
|
-
description: "Periodo de actualización de datos.",
|
|
30
|
-
defaultValue: 600000,
|
|
31
|
-
}),
|
|
32
|
-
],
|
|
33
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Group,
|
|
3
|
-
Label,
|
|
4
|
-
TextInput,
|
|
5
|
-
TextFormat,
|
|
6
|
-
SelectAssetKna,
|
|
7
|
-
Switch,
|
|
8
|
-
} from "@vixoniccom/modules";
|
|
9
|
-
import { ShowValidations } from "../utils";
|
|
10
|
-
|
|
11
|
-
// Configuración de estilo: padding, fondo y formato de texto por defecto
|
|
12
|
-
export const styleGroup = new Group({
|
|
13
|
-
id: "styleGroup",
|
|
14
|
-
label: "Estilo",
|
|
15
|
-
items: [
|
|
16
|
-
new Label({
|
|
17
|
-
label: "Contenido",
|
|
18
|
-
}),
|
|
19
|
-
new TextInput({
|
|
20
|
-
id: "appPadding",
|
|
21
|
-
label: "Márgenes de aplicación",
|
|
22
|
-
description: "Márgenes para dar espacio en cada lado.",
|
|
23
|
-
}),
|
|
24
|
-
new SelectAssetKna({
|
|
25
|
-
id: "backgroundImage",
|
|
26
|
-
label: "Fondo",
|
|
27
|
-
extensions: ["jpg", "png"],
|
|
28
|
-
}),
|
|
29
|
-
new Switch({
|
|
30
|
-
id: "customMessageEnabled",
|
|
31
|
-
label: "Mostrar mensaje",
|
|
32
|
-
displayOnFalse: "del sistema",
|
|
33
|
-
displayOnTrue: "personalizado",
|
|
34
|
-
defaultValue: false,
|
|
35
|
-
}),
|
|
36
|
-
new TextInput({
|
|
37
|
-
id: "customMessage",
|
|
38
|
-
label: "Mensaje personalizado",
|
|
39
|
-
description: "Mensaje para mostrar en caso de datos inexistentes.",
|
|
40
|
-
required: true,
|
|
41
|
-
show: ShowValidations.customMessageEnabled,
|
|
42
|
-
}),
|
|
43
|
-
new TextFormat({
|
|
44
|
-
id: "systemMessageTextFormat",
|
|
45
|
-
label: "Formato de mensaje",
|
|
46
|
-
description: "Formato de texto para mensaje del sistema/personalizado.",
|
|
47
|
-
}),
|
|
48
|
-
],
|
|
49
|
-
});
|