@vixoniccom/kpi-chart 0.0.2-dev.10 → 0.0.2-dev.12

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 CHANGED
@@ -2,6 +2,26 @@
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.12](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.11...v0.0.2-dev.12) (2026-10-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * VXD-545 organize appearance configuration into sections and blocks ([d5cc6f6](https://github.com/Vixonic/store-sheets-kpi/commit/d5cc6f63e08609856489fbb97056dab070d74503))
11
+
12
+ ### [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)
13
+
14
+
15
+ ### Features
16
+
17
+ * VXD-545 restructure configuration into chart and appearance groups ([3b20176](https://github.com/Vixonic/store-sheets-kpi/commit/3b20176be4f99830a519daf7dd6c8035455051ad))
18
+ * VXD-901 Add text formatting options for chart values and labels ([6cc17ad](https://github.com/Vixonic/store-sheets-kpi/commit/6cc17ad7f28337c973589784dfeca4544d3dbf73))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * fixed pipeline ([121e14c](https://github.com/Vixonic/store-sheets-kpi/commit/121e14c5f3f58a0c7c5f24a7a9ca5e44e40b84c2))
24
+
5
25
  ### [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)
6
26
 
7
27
  ### [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)
package/build.zip CHANGED
Binary file
@@ -0,0 +1,143 @@
1
+ import {
2
+ Block,
3
+ ColorPicker,
4
+ Group,
5
+ MarginInput,
6
+ Section,
7
+ SelectAssetKna,
8
+ SelectInput,
9
+ Switch,
10
+ TextFormat,
11
+ } from "@vixoniccom/modules";
12
+ import { ShowValidations } from "../utils";
13
+
14
+ export const appearanceGroup = new Group({
15
+ id: "appearanceGroup",
16
+ label: "Apariencia",
17
+ items: [
18
+ new Section({
19
+ id: 'designSection',
20
+ label: 'Diseño',
21
+ muiIcon: 'Brush',
22
+ items: [
23
+ new Block({
24
+ id: 'designBlock',
25
+ items: [
26
+ new ColorPicker({
27
+ id: 'backgroundColor',
28
+ label: 'Color de fondo',
29
+ description: 'Si subes una imagen de fondo, esta tapa el color.',
30
+ inLine: true,
31
+ }),
32
+ new SelectAssetKna({
33
+ id: 'backgroundImage',
34
+ label: 'Imagen de fondo',
35
+ extensions: ['jpg', 'png'],
36
+ multiple: false,
37
+ description: 'JPG o PNG 16:9. Usa imágenes sobrias para que el gráfico se lea.',
38
+ }),
39
+ ],
40
+ }),
41
+ ],
42
+ }),
43
+ new Section({
44
+ id: 'colorsSection',
45
+ label: 'Colores',
46
+ muiIcon: 'ColorLens',
47
+ items: [
48
+ new Block({
49
+ id: 'colorsBlock',
50
+ items: [
51
+ new Switch({
52
+ id: 'showGuidelines',
53
+ label: 'Mostrar líneas guía y eje',
54
+ defaultValue: false
55
+ }),
56
+ new ColorPicker({
57
+ id: 'guidelineColor',
58
+ label: 'Líneas guía',
59
+ show: ShowValidations.showGuidelines
60
+ }),
61
+ ],
62
+ }),
63
+ ],
64
+ }),
65
+ new Section({
66
+ id: 'textSection',
67
+ label: 'Texto',
68
+ muiIcon: 'Title',
69
+ items: [
70
+ new Block({
71
+ id: 'titleTextBlock',
72
+ label: 'Título',
73
+ description: 'Nombre del gráfico, arriba.',
74
+ items: [
75
+ new TextFormat({
76
+ id: 'titleTypography',
77
+ label: 'Tipografía',
78
+ hidePicker: true,
79
+ }),
80
+ new SelectInput({
81
+ id: 'titleAlignment',
82
+ label: 'Alineación',
83
+ items: [{ label: 'Izquierda', value: 'right' }, { label: 'Derecha', value: 'left'}],
84
+ inLine: true,
85
+ }),
86
+ new ColorPicker({
87
+ id: 'titleFontColor',
88
+ label: 'Color',
89
+ inLine: true,
90
+ }),
91
+ ],
92
+ }),
93
+ new Block({
94
+ id: 'tagTextBlock',
95
+ label: 'Etiquetas',
96
+ description: 'Categorías, leyenda y n´mero de los ejes.',
97
+ items: [
98
+ new TextFormat({
99
+ id: 'tagsTypography',
100
+ label: 'Tipografía',
101
+ hidePicker: true,
102
+ }),
103
+ new ColorPicker({
104
+ id: 'legendFontColor',
105
+ label: 'Color',
106
+ inLine: true,
107
+ }),
108
+ ],
109
+ divider: true,
110
+ }),
111
+ new Block({
112
+ id: 'valuesTextBlock',
113
+ label: 'Valores',
114
+ description: 'Cifra de cada barra, punto o porción.',
115
+ items: [
116
+ new TextFormat({
117
+ id: 'valuesTypography',
118
+ label: 'Tipografía',
119
+ hidePicker: true,
120
+ }),
121
+ ],
122
+ divider: true,
123
+ }),
124
+ ],
125
+ }),
126
+ new Section({
127
+ id: 'marginSection',
128
+ label: 'Márgenes',
129
+ muiIcon: 'FitScreen',
130
+ items: [
131
+ new Block({
132
+ id: 'marginBlock',
133
+ items: [
134
+ new MarginInput({
135
+ id: 'appMargin',
136
+ defaultValue: { top: 0, left: 0, bottom: 0, right: 0 }
137
+ }),
138
+ ],
139
+ }),
140
+ ],
141
+ }),
142
+ ],
143
+ })
@@ -1,152 +1,17 @@
1
1
  import {
2
2
  Group,
3
- Label,
4
- TextInput,
5
- SelectInput,
6
- TextFormat,
7
- Switch,
8
- NumberInput,
3
+ ServiceInput,
9
4
  } from "@vixoniccom/modules";
10
- import { ShowValidations } from "../utils";
11
5
 
12
- // Configuración de estilo: gráfico, título, leyenda
13
6
  export const chartGroup = new Group({
14
7
  id: "chartGroup",
15
- label: "Gráfico",
8
+ label: "Gráficos",
9
+ groupType: "sheetSelection",
16
10
  items: [
17
- new Label({ label: "General" }),
18
- new SelectInput({
19
- id: "chartType",
20
- label: "Tipo de gŕafico",
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",
28
- }),
29
- new SelectInput({
30
- id: "barOrientation",
31
- label: "Orientación de barras",
32
- items: [
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,
11
+ new ServiceInput({
12
+ id: 'documentServices',
13
+ label: 'Planillas',
14
+ serviceType: 'SheetsReaderService',
150
15
  }),
151
16
  ],
152
- });
17
+ })
@@ -1,12 +1,7 @@
1
1
  import { Configuration } from "@vixoniccom/modules";
2
- import { generalGroup } from "./generalGroup";
3
2
  import { chartGroup } from "./chartGroup";
4
- import { styleGroup } from "./styleGroup";
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
- schema: [generalGroup, chartGroup, styleGroup],
12
- });
6
+ schema: [chartGroup, appearanceGroup],
7
+ })
@@ -1,12 +1,5 @@
1
- // Declaración de condiciones de visualización de configuraciones
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
- titleEnabled,
9
- legendEnabled,
10
- chartTypeIsBar,
11
- customMessageEnabled,
12
- };
4
+ showGuidelines,
5
+ }
@@ -1,297 +1,200 @@
1
1
  {
2
2
  "schema": [
3
3
  {
4
- "id": "generalGroup",
5
- "label": "General",
4
+ "id": "chartGroup",
5
+ "label": "Gráficos",
6
6
  "type": "group",
7
7
  "items": [
8
8
  {
9
- "type": "label",
10
- "label": "Datos"
11
- },
12
- {
13
- "id": "documentService",
14
- "label": "Documento",
9
+ "id": "documentServices",
10
+ "label": "Planillas",
15
11
  "type": "service-input",
16
12
  "serviceType": "SheetsReaderService"
17
- },
18
- {
19
- "id": "updateTime",
20
- "label": "Actualización",
21
- "type": "select-input",
22
- "description": "Periodo de actualización de datos.",
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
46
13
  }
47
- ]
14
+ ],
15
+ "groupType": "sheetSelection"
48
16
  },
49
17
  {
50
- "id": "chartGroup",
51
- "label": "Gráfico",
18
+ "id": "appearanceGroup",
19
+ "label": "Apariencia",
52
20
  "type": "group",
53
21
  "items": [
54
22
  {
55
- "type": "label",
56
- "label": "General"
57
- },
58
- {
59
- "id": "chartType",
60
- "label": "Tipo de gŕafico",
61
- "type": "select-input",
23
+ "id": "designSection",
24
+ "label": "Diseño",
25
+ "type": "section",
26
+ "labelContent": false,
27
+ "muiIcon": "Brush",
62
28
  "items": [
63
29
  {
64
- "label": "Barras",
65
- "value": "bar"
66
- },
67
- {
68
- "label": "Líneas",
69
- "value": "line"
70
- },
71
- {
72
- "label": "Área",
73
- "value": "area"
74
- },
75
- {
76
- "label": "Dispersión",
77
- "value": "bubble"
30
+ "type": "block",
31
+ "id": "designBlock",
32
+ "divider": false,
33
+ "items": [
34
+ {
35
+ "id": "backgroundColor",
36
+ "label": "Color de fondo",
37
+ "type": "color-picker",
38
+ "description": "Si subes una imagen de fondo, esta tapa el color.",
39
+ "output": "auto",
40
+ "inLine": true
41
+ },
42
+ {
43
+ "id": "backgroundImage",
44
+ "label": "Imagen de fondo",
45
+ "type": "select-asset-kna-input",
46
+ "description": "JPG o PNG 16:9. Usa imágenes sobrias para que el gráfico se lea.",
47
+ "extensions": [
48
+ "jpg",
49
+ "png"
50
+ ],
51
+ "multiple": false
52
+ }
53
+ ]
78
54
  }
79
- ],
80
- "defaultValue": "bar"
55
+ ]
81
56
  },
82
57
  {
83
- "id": "barOrientation",
84
- "label": "Orientación de barras",
85
- "show": "{{chartType}} === 'bar'",
86
- "type": "select-input",
58
+ "id": "colorsSection",
59
+ "label": "Colores",
60
+ "type": "section",
61
+ "labelContent": false,
62
+ "muiIcon": "ColorLens",
87
63
  "items": [
88
64
  {
89
- "label": "Vertical",
90
- "value": "vertical"
91
- },
92
- {
93
- "label": "Horizontal",
94
- "value": "horizontal"
65
+ "type": "block",
66
+ "id": "colorsBlock",
67
+ "divider": false,
68
+ "items": [
69
+ {
70
+ "id": "showGuidelines",
71
+ "label": "Mostrar líneas guía y eje",
72
+ "type": "switch",
73
+ "defaultValue": false
74
+ },
75
+ {
76
+ "id": "guidelineColor",
77
+ "label": "Líneas guía",
78
+ "show": "{{showGuidelines}} === true",
79
+ "type": "color-picker",
80
+ "output": "auto",
81
+ "inLine": true
82
+ }
83
+ ]
95
84
  }
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."
129
- },
130
- {
131
- "type": "label",
132
- "label": "Título"
133
- },
134
- {
135
- "id": "titleEnabled",
136
- "label": "Mostrar título",
137
- "type": "switch",
138
- "defaultValue": false
139
- },
140
- {
141
- "id": "title",
142
- "label": "Título",
143
- "show": "{{titleEnabled}} === true",
144
- "type": "text-input",
145
- "required": true
146
- },
147
- {
148
- "id": "titleTextFormat",
149
- "label": "Título",
150
- "show": "{{titleEnabled}} === true",
151
- "type": "text-format",
152
- "description": "Formato de texto para el título del gráfico."
153
- },
154
- {
155
- "id": "titlePadding",
156
- "label": "Márgenes de título",
157
- "show": "{{titleEnabled}} === true",
158
- "type": "text-input",
159
- "description": "Márgenes para dar espacio en cada lado al título."
160
- },
161
- {
162
- "type": "label",
163
- "label": "Leyenda"
164
- },
165
- {
166
- "id": "legendEnabled",
167
- "label": "Mostrar leyenda",
168
- "type": "switch",
169
- "defaultValue": false
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."
85
+ ]
177
86
  },
178
87
  {
179
- "id": "legendPosition",
180
- "label": "Posición de leyenda",
181
- "show": "{{legendEnabled}} === true",
182
- "type": "select-input",
88
+ "id": "textSection",
89
+ "label": "Texto",
90
+ "type": "section",
91
+ "labelContent": false,
92
+ "muiIcon": "Title",
183
93
  "items": [
184
94
  {
185
- "label": "Izquierda",
186
- "value": "left"
95
+ "type": "block",
96
+ "id": "titleTextBlock",
97
+ "label": "Título",
98
+ "description": "Nombre del gráfico, arriba.",
99
+ "divider": false,
100
+ "items": [
101
+ {
102
+ "id": "titleTypography",
103
+ "label": "Tipografía",
104
+ "type": "text-format",
105
+ "hidePicker": true
106
+ },
107
+ {
108
+ "id": "titleAlignment",
109
+ "label": "Alineación",
110
+ "type": "select-input",
111
+ "items": [
112
+ {
113
+ "label": "Izquierda",
114
+ "value": "right"
115
+ },
116
+ {
117
+ "label": "Derecha",
118
+ "value": "left"
119
+ }
120
+ ],
121
+ "inLine": true
122
+ },
123
+ {
124
+ "id": "titleFontColor",
125
+ "label": "Color",
126
+ "type": "color-picker",
127
+ "output": "auto",
128
+ "inLine": true
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "type": "block",
134
+ "id": "tagTextBlock",
135
+ "label": "Etiquetas",
136
+ "description": "Categorías, leyenda y n´mero de los ejes.",
137
+ "divider": true,
138
+ "items": [
139
+ {
140
+ "id": "tagsTypography",
141
+ "label": "Tipografía",
142
+ "type": "text-format",
143
+ "hidePicker": true
144
+ },
145
+ {
146
+ "id": "legendFontColor",
147
+ "label": "Color",
148
+ "type": "color-picker",
149
+ "output": "auto",
150
+ "inLine": true
151
+ }
152
+ ]
187
153
  },
188
154
  {
189
- "label": "Derecha",
190
- "value": "right"
155
+ "type": "block",
156
+ "id": "valuesTextBlock",
157
+ "label": "Valores",
158
+ "description": "Cifra de cada barra, punto o porción.",
159
+ "divider": true,
160
+ "items": [
161
+ {
162
+ "id": "valuesTypography",
163
+ "label": "Tipografía",
164
+ "type": "text-format",
165
+ "hidePicker": true
166
+ }
167
+ ]
191
168
  }
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"
169
+ ]
234
170
  },
235
171
  {
236
- "id": "xAxisEnabled",
237
- "label": "Mostrar métricas",
238
- "type": "switch",
239
- "defaultValue": true
240
- },
241
- {
242
- "id": "showHorizontalGrid",
243
- "label": "Mostrar líneas horizontales",
244
- "type": "switch",
245
- "defaultValue": true
246
- }
247
- ]
248
- },
249
- {
250
- "id": "styleGroup",
251
- "label": "Estilo",
252
- "type": "group",
253
- "items": [
254
- {
255
- "type": "label",
256
- "label": "Contenido"
257
- },
258
- {
259
- "id": "appPadding",
260
- "label": "Márgenes de aplicación",
261
- "type": "text-input",
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."
172
+ "id": "marginSection",
173
+ "label": "Márgenes",
174
+ "type": "section",
175
+ "labelContent": false,
176
+ "muiIcon": "FitScreen",
177
+ "items": [
178
+ {
179
+ "type": "block",
180
+ "id": "marginBlock",
181
+ "divider": false,
182
+ "items": [
183
+ {
184
+ "id": "appMargin",
185
+ "label": "",
186
+ "type": "margin-input",
187
+ "unit": "px",
188
+ "defaultValue": {
189
+ "top": 0,
190
+ "left": 0,
191
+ "bottom": 0,
192
+ "right": 0
193
+ }
194
+ }
195
+ ]
196
+ }
197
+ ]
295
198
  }
296
199
  ]
297
200
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@vixoniccom/kpi-chart",
3
3
  "alias": "KPI Chart",
4
- "description": "Muestra un gráfico según indicadores KPI.",
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-dev.10",
11
+ "version": "0.0.2-dev.12",
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.14.1",
32
- "@vixoniccom/modules": "^2.25.0-dev.6",
30
+ "@vixoniccom/module-packager": "2.15.0-dev.8",
31
+ "@vixoniccom/modules": "2.27.0-dev.7",
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
- });