@vixoniccom/kpi-chart 0.0.2-dev.18 → 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 +7 -0
- package/build.zip +0 -0
- package/configuration/appearanceGroup/index.ts +42 -5
- package/configuration/index.ts +2 -0
- package/configuration.json +60 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
|
|
5
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)
|
|
6
13
|
|
|
7
14
|
|
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',
|
|
@@ -43,11 +72,19 @@ export const appearanceGroup = new Group({
|
|
|
43
72
|
new Section({
|
|
44
73
|
id: 'colorsSection',
|
|
45
74
|
label: 'Colores',
|
|
46
|
-
|
|
75
|
+
icon: 'color-lens',
|
|
47
76
|
items: [
|
|
48
77
|
new Block({
|
|
49
78
|
id: 'colorsBlock',
|
|
50
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
|
+
}),
|
|
51
88
|
new Switch({
|
|
52
89
|
id: 'showGuidelines',
|
|
53
90
|
label: 'Mostrar líneas guía y eje',
|
|
@@ -65,7 +102,7 @@ export const appearanceGroup = new Group({
|
|
|
65
102
|
new Section({
|
|
66
103
|
id: 'textSection',
|
|
67
104
|
label: 'Texto',
|
|
68
|
-
|
|
105
|
+
icon: 'title',
|
|
69
106
|
items: [
|
|
70
107
|
new Block({
|
|
71
108
|
id: 'titleTextBlock',
|
|
@@ -93,7 +130,7 @@ export const appearanceGroup = new Group({
|
|
|
93
130
|
new Block({
|
|
94
131
|
id: 'tagTextBlock',
|
|
95
132
|
label: 'Etiquetas',
|
|
96
|
-
description: 'Categorías, leyenda y
|
|
133
|
+
description: 'Categorías, leyenda y número de los ejes.',
|
|
97
134
|
items: [
|
|
98
135
|
new TextFormat({
|
|
99
136
|
id: 'tagsTypography',
|
|
@@ -129,7 +166,7 @@ export const appearanceGroup = new Group({
|
|
|
129
166
|
new Section({
|
|
130
167
|
id: 'marginSection',
|
|
131
168
|
label: 'Márgenes',
|
|
132
|
-
|
|
169
|
+
icon: 'fit-screen',
|
|
133
170
|
items: [
|
|
134
171
|
new Block({
|
|
135
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",
|
|
@@ -66,13 +108,26 @@
|
|
|
66
108
|
"label": "Colores",
|
|
67
109
|
"type": "section",
|
|
68
110
|
"labelContent": false,
|
|
69
|
-
"
|
|
111
|
+
"icon": "color-lens",
|
|
70
112
|
"items": [
|
|
71
113
|
{
|
|
72
114
|
"type": "block",
|
|
73
115
|
"id": "colorsBlock",
|
|
74
116
|
"divider": false,
|
|
75
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
|
+
},
|
|
76
131
|
{
|
|
77
132
|
"id": "showGuidelines",
|
|
78
133
|
"label": "Mostrar líneas guía y eje",
|
|
@@ -96,7 +151,7 @@
|
|
|
96
151
|
"label": "Texto",
|
|
97
152
|
"type": "section",
|
|
98
153
|
"labelContent": false,
|
|
99
|
-
"
|
|
154
|
+
"icon": "title",
|
|
100
155
|
"items": [
|
|
101
156
|
{
|
|
102
157
|
"type": "block",
|
|
@@ -141,7 +196,7 @@
|
|
|
141
196
|
"type": "block",
|
|
142
197
|
"id": "tagTextBlock",
|
|
143
198
|
"label": "Etiquetas",
|
|
144
|
-
"description": "Categorías, leyenda y
|
|
199
|
+
"description": "Categorías, leyenda y número de los ejes.",
|
|
145
200
|
"divider": true,
|
|
146
201
|
"items": [
|
|
147
202
|
{
|
|
@@ -188,7 +243,7 @@
|
|
|
188
243
|
"label": "Márgenes",
|
|
189
244
|
"type": "section",
|
|
190
245
|
"labelContent": false,
|
|
191
|
-
"
|
|
246
|
+
"icon": "fit-screen",
|
|
192
247
|
"items": [
|
|
193
248
|
{
|
|
194
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
|
}
|