@vixoniccom/kpi-chart 0.0.2-dev.17 → 0.0.2-dev.19
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 +14 -0
- package/build.zip +0 -0
- package/configuration/appearanceGroup/index.ts +43 -5
- package/configuration/index.ts +2 -0
- package/configuration.json +62 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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-dev.19](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.18...v0.0.2-dev.19) (2026-11-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* VXD-545 address the review of the PR ([c68ce56](https://github.com/Vixonic/store-sheets-kpi/commit/c68ce567802e52529934f1a71146c1c5a2bdbd61))
|
|
11
|
+
|
|
12
|
+
### [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)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* VXD-545 allow uploading the background image only from a PC ([6e62fc2](https://github.com/Vixonic/store-sheets-kpi/commit/6e62fc2546eff70bf026bfad9122e4ab1f987f01))
|
|
18
|
+
|
|
5
19
|
### [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)
|
|
6
20
|
|
|
7
21
|
|
package/build.zip
CHANGED
|
Binary file
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Block,
|
|
3
|
+
ColorListInput,
|
|
3
4
|
ColorPicker,
|
|
4
5
|
Group,
|
|
5
6
|
MarginInput,
|
|
7
|
+
NumberInput,
|
|
8
|
+
NumberRangeValue,
|
|
6
9
|
Section,
|
|
7
10
|
SelectAssetKna,
|
|
8
11
|
SelectInput,
|
|
@@ -15,10 +18,36 @@ export const appearanceGroup = new Group({
|
|
|
15
18
|
id: "appearanceGroup",
|
|
16
19
|
label: "Apariencia",
|
|
17
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
|
+
}),
|
|
18
47
|
new Section({
|
|
19
48
|
id: 'designSection',
|
|
20
49
|
label: 'Diseño',
|
|
21
|
-
|
|
50
|
+
icon: 'brush',
|
|
22
51
|
items: [
|
|
23
52
|
new Block({
|
|
24
53
|
id: 'designBlock',
|
|
@@ -34,6 +63,7 @@ export const appearanceGroup = new Group({
|
|
|
34
63
|
extensions: ['jpg', 'png'],
|
|
35
64
|
multiple: false,
|
|
36
65
|
description: 'JPG o PNG 16:9. Usa imágenes sobrias para que el gráfico se lea.',
|
|
66
|
+
pcOnly: true,
|
|
37
67
|
}),
|
|
38
68
|
],
|
|
39
69
|
}),
|
|
@@ -42,11 +72,19 @@ export const appearanceGroup = new Group({
|
|
|
42
72
|
new Section({
|
|
43
73
|
id: 'colorsSection',
|
|
44
74
|
label: 'Colores',
|
|
45
|
-
|
|
75
|
+
icon: 'color-lens',
|
|
46
76
|
items: [
|
|
47
77
|
new Block({
|
|
48
78
|
id: 'colorsBlock',
|
|
49
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
|
+
}),
|
|
50
88
|
new Switch({
|
|
51
89
|
id: 'showGuidelines',
|
|
52
90
|
label: 'Mostrar líneas guía y eje',
|
|
@@ -64,7 +102,7 @@ export const appearanceGroup = new Group({
|
|
|
64
102
|
new Section({
|
|
65
103
|
id: 'textSection',
|
|
66
104
|
label: 'Texto',
|
|
67
|
-
|
|
105
|
+
icon: 'title',
|
|
68
106
|
items: [
|
|
69
107
|
new Block({
|
|
70
108
|
id: 'titleTextBlock',
|
|
@@ -92,7 +130,7 @@ export const appearanceGroup = new Group({
|
|
|
92
130
|
new Block({
|
|
93
131
|
id: 'tagTextBlock',
|
|
94
132
|
label: 'Etiquetas',
|
|
95
|
-
description: 'Categorías, leyenda y
|
|
133
|
+
description: 'Categorías, leyenda y número de los ejes.',
|
|
96
134
|
items: [
|
|
97
135
|
new TextFormat({
|
|
98
136
|
id: 'tagsTypography',
|
|
@@ -128,7 +166,7 @@ export const appearanceGroup = new Group({
|
|
|
128
166
|
new Section({
|
|
129
167
|
id: 'marginSection',
|
|
130
168
|
label: 'Márgenes',
|
|
131
|
-
|
|
169
|
+
icon: 'fit-screen',
|
|
132
170
|
items: [
|
|
133
171
|
new Block({
|
|
134
172
|
id: 'marginBlock',
|
package/configuration/index.ts
CHANGED
|
@@ -3,5 +3,7 @@ import { chartGroup } from "./chartGroup";
|
|
|
3
3
|
import { appearanceGroup } from "./appearanceGroup";
|
|
4
4
|
|
|
5
5
|
export const configuration: Configuration = new Configuration({
|
|
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)`,
|
|
6
8
|
schema: [chartGroup, appearanceGroup],
|
|
7
9
|
})
|
package/configuration.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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
5
|
"id": "chartGroup",
|
|
@@ -25,12 +26,53 @@
|
|
|
25
26
|
"label": "Apariencia",
|
|
26
27
|
"type": "group",
|
|
27
28
|
"items": [
|
|
29
|
+
{
|
|
30
|
+
"id": "rotationSection",
|
|
31
|
+
"label": "Rotación",
|
|
32
|
+
"type": "section",
|
|
33
|
+
"labelContent": false,
|
|
34
|
+
"icon": "timer",
|
|
35
|
+
"items": [
|
|
36
|
+
{
|
|
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
|
+
]
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
28
70
|
{
|
|
29
71
|
"id": "designSection",
|
|
30
72
|
"label": "Diseño",
|
|
31
73
|
"type": "section",
|
|
32
74
|
"labelContent": false,
|
|
33
|
-
"
|
|
75
|
+
"icon": "brush",
|
|
34
76
|
"items": [
|
|
35
77
|
{
|
|
36
78
|
"type": "block",
|
|
@@ -54,7 +96,8 @@
|
|
|
54
96
|
"jpg",
|
|
55
97
|
"png"
|
|
56
98
|
],
|
|
57
|
-
"multiple": false
|
|
99
|
+
"multiple": false,
|
|
100
|
+
"pcOnly": true
|
|
58
101
|
}
|
|
59
102
|
]
|
|
60
103
|
}
|
|
@@ -65,13 +108,26 @@
|
|
|
65
108
|
"label": "Colores",
|
|
66
109
|
"type": "section",
|
|
67
110
|
"labelContent": false,
|
|
68
|
-
"
|
|
111
|
+
"icon": "color-lens",
|
|
69
112
|
"items": [
|
|
70
113
|
{
|
|
71
114
|
"type": "block",
|
|
72
115
|
"id": "colorsBlock",
|
|
73
116
|
"divider": false,
|
|
74
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
|
+
},
|
|
75
131
|
{
|
|
76
132
|
"id": "showGuidelines",
|
|
77
133
|
"label": "Mostrar líneas guía y eje",
|
|
@@ -95,7 +151,7 @@
|
|
|
95
151
|
"label": "Texto",
|
|
96
152
|
"type": "section",
|
|
97
153
|
"labelContent": false,
|
|
98
|
-
"
|
|
154
|
+
"icon": "title",
|
|
99
155
|
"items": [
|
|
100
156
|
{
|
|
101
157
|
"type": "block",
|
|
@@ -140,7 +196,7 @@
|
|
|
140
196
|
"type": "block",
|
|
141
197
|
"id": "tagTextBlock",
|
|
142
198
|
"label": "Etiquetas",
|
|
143
|
-
"description": "Categorías, leyenda y
|
|
199
|
+
"description": "Categorías, leyenda y número de los ejes.",
|
|
144
200
|
"divider": true,
|
|
145
201
|
"items": [
|
|
146
202
|
{
|
|
@@ -187,7 +243,7 @@
|
|
|
187
243
|
"label": "Márgenes",
|
|
188
244
|
"type": "section",
|
|
189
245
|
"labelContent": false,
|
|
190
|
-
"
|
|
246
|
+
"icon": "fit-screen",
|
|
191
247
|
"items": [
|
|
192
248
|
{
|
|
193
249
|
"type": "block",
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"author": {
|
|
9
9
|
"name": "Lorenzo Alfaro Bravo"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.0.2-dev.
|
|
11
|
+
"version": "0.0.2-dev.19",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"prepublish": "vixonic-module-packager --mode=build",
|
|
14
14
|
"watch": "vixonic-module-packager --mode=watch",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^17.0.2",
|
|
29
29
|
"@types/react-dom": "^17.0.11",
|
|
30
|
-
"@vixoniccom/module-packager": "2.15.
|
|
31
|
-
"@vixoniccom/modules": "2.27.0
|
|
30
|
+
"@vixoniccom/module-packager": "^2.15.2",
|
|
31
|
+
"@vixoniccom/modules": "^2.27.0",
|
|
32
32
|
"standard-version": "^9.5.0"
|
|
33
33
|
}
|
|
34
34
|
}
|