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

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,19 @@
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.11](https://github.com/Vixonic/store-sheets-kpi/compare/v0.0.2-dev.8...v0.0.2-dev.11) (2026-10-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * VXD-545 restructure configuration into chart and appearance groups ([3b20176](https://github.com/Vixonic/store-sheets-kpi/commit/3b20176be4f99830a519daf7dd6c8035455051ad))
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
+
5
18
  ### [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
19
 
7
20
  ### [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,73 @@
1
+ import {
2
+ ColorPicker,
3
+ Group,
4
+ Label,
5
+ NumberInput,
6
+ SelectAssetKna,
7
+ Switch,
8
+ TextFormat,
9
+ } from "@vixoniccom/modules";
10
+
11
+ export const appearanceGroup = new Group({
12
+ id: "appearanceGroup",
13
+ label: "Apariencia",
14
+ items: [
15
+ new Label({ label: 'Diseño' }),
16
+ new ColorPicker({
17
+ id: 'backgroundColor',
18
+ label: 'Color de fondo',
19
+ description: 'Si subes una imagen de fondo, esta tapa el color.'
20
+ }),
21
+ new SelectAssetKna({
22
+ id: 'backgroundImage',
23
+ label: 'Imagen de fondo',
24
+ extensions: ['jpg', 'png'],
25
+ multiple: false,
26
+ description: 'JPG o PNG 16:9. Usa imágenes sobrias para que el gráfico se lea.',
27
+ }),
28
+ new Label({ label: 'Colores' }),
29
+ new Switch({
30
+ id: 'showGuidelines',
31
+ label: 'Mostrar líneas guía y eje',
32
+ defaultValue: false
33
+ }),
34
+ new Label({ label: 'Texto' }),
35
+ new TextFormat({
36
+ id: 'titleTypography',
37
+ label: 'Tipografía del título'
38
+ }),
39
+ new TextFormat({
40
+ id: 'tagsTypography',
41
+ label: 'Tipografía de las etiquetas'
42
+ }),
43
+ new ColorPicker({
44
+ id: 'legendFontColor',
45
+ label: 'Color de fuente de la leyenda'
46
+ }),
47
+ new TextFormat({
48
+ id: 'valuesTypography',
49
+ label: 'Tipografía de los valores',
50
+ }),
51
+ new Label({ label: 'Márgenes' }),
52
+ new NumberInput({
53
+ id: 'marginTop',
54
+ label: 'Superior',
55
+ description: 'En px.',
56
+ }),
57
+ new NumberInput({
58
+ id: 'marginLeft',
59
+ label: 'Izquierdo',
60
+ description: 'En px.',
61
+ }),
62
+ new NumberInput({
63
+ id: 'marginRight',
64
+ label: 'Derecho',
65
+ description: 'En px.',
66
+ }),
67
+ new NumberInput({
68
+ id: 'marginBottom',
69
+ label: 'Inferior',
70
+ description: 'En px.',
71
+ }),
72
+ ]
73
+ })
@@ -1,152 +1,19 @@
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";
5
+ import { SheetSelectionId } 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: "Gráfico",
9
+ label: "Gráficos",
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,
11
+ SheetSelectionId,
12
+ new ServiceInput({
13
+ id: 'documentServices',
14
+ label: 'Planillas',
15
+ serviceType: 'SheetsReaderService',
76
16
  required: true,
77
17
  }),
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,
150
- }),
151
18
  ],
152
- });
19
+ })
@@ -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,14 @@
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
+ import { Switch } from "@vixoniccom/modules"
2
+
3
+ const showGuidelines = "{{showGuidelines}} === true"
6
4
 
7
5
  export const ShowValidations = {
8
- titleEnabled,
9
- legendEnabled,
10
- chartTypeIsBar,
11
- customMessageEnabled,
12
- };
6
+ showGuidelines,
7
+ }
8
+
9
+ //Identificador para vista de configuración de planillas. Esconder siempre.
10
+ export const SheetSelectionId = new Switch({
11
+ id: 'isSheetSelection',
12
+ label: 'isSheetSelection',
13
+ show: 'false'
14
+ })
@@ -1,297 +1,114 @@
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"
9
+ "id": "isSheetSelection",
10
+ "label": "isSheetSelection",
11
+ "show": "false",
12
+ "type": "switch"
11
13
  },
12
14
  {
13
- "id": "documentService",
14
- "label": "Documento",
15
+ "id": "documentServices",
16
+ "label": "Planillas",
15
17
  "type": "service-input",
16
- "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
18
+ "serviceType": "SheetsReaderService",
19
+ "required": true
46
20
  }
47
21
  ]
48
22
  },
49
23
  {
50
- "id": "chartGroup",
51
- "label": "Gráfico",
24
+ "id": "appearanceGroup",
25
+ "label": "Apariencia",
52
26
  "type": "group",
53
27
  "items": [
54
28
  {
55
29
  "type": "label",
56
- "label": "General"
30
+ "label": "Diseño"
57
31
  },
58
32
  {
59
- "id": "chartType",
60
- "label": "Tipo de gŕafico",
61
- "type": "select-input",
62
- "items": [
63
- {
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"
78
- }
79
- ],
80
- "defaultValue": "bar"
33
+ "id": "backgroundColor",
34
+ "label": "Color de fondo",
35
+ "type": "color-picker",
36
+ "description": "Si subes una imagen de fondo, esta tapa el color.",
37
+ "output": "auto"
81
38
  },
82
39
  {
83
- "id": "barOrientation",
84
- "label": "Orientación de barras",
85
- "show": "{{chartType}} === 'bar'",
86
- "type": "select-input",
87
- "items": [
88
- {
89
- "label": "Vertical",
90
- "value": "vertical"
91
- },
92
- {
93
- "label": "Horizontal",
94
- "value": "horizontal"
95
- }
40
+ "id": "backgroundImage",
41
+ "label": "Imagen de fondo",
42
+ "type": "select-asset-kna-input",
43
+ "description": "JPG o PNG 16:9. Usa imágenes sobrias para que el gráfico se lea.",
44
+ "extensions": [
45
+ "jpg",
46
+ "png"
96
47
  ],
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."
48
+ "multiple": false
129
49
  },
130
50
  {
131
51
  "type": "label",
132
- "label": "Título"
52
+ "label": "Colores"
133
53
  },
134
54
  {
135
- "id": "titleEnabled",
136
- "label": "Mostrar título",
55
+ "id": "showGuidelines",
56
+ "label": "Mostrar líneas guía y eje",
137
57
  "type": "switch",
138
58
  "defaultValue": false
139
59
  },
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
60
  {
162
61
  "type": "label",
163
- "label": "Leyenda"
164
- },
165
- {
166
- "id": "legendEnabled",
167
- "label": "Mostrar leyenda",
168
- "type": "switch",
169
- "defaultValue": false
62
+ "label": "Texto"
170
63
  },
171
64
  {
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."
65
+ "id": "titleTypography",
66
+ "label": "Tipografía del título",
67
+ "type": "text-format"
177
68
  },
178
69
  {
179
- "id": "legendPosition",
180
- "label": "Posición de leyenda",
181
- "show": "{{legendEnabled}} === true",
182
- "type": "select-input",
183
- "items": [
184
- {
185
- "label": "Izquierda",
186
- "value": "left"
187
- },
188
- {
189
- "label": "Derecha",
190
- "value": "right"
191
- }
192
- ],
193
- "defaultValue": "left"
70
+ "id": "tagsTypography",
71
+ "label": "Tipografía de las etiquetas",
72
+ "type": "text-format"
194
73
  },
195
74
  {
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"
75
+ "id": "legendFontColor",
76
+ "label": "Color de fuente de la leyenda",
77
+ "type": "color-picker",
78
+ "output": "auto"
201
79
  },
202
80
  {
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
81
+ "id": "valuesTypography",
82
+ "label": "Tipografía de los valores",
83
+ "type": "text-format"
230
84
  },
231
85
  {
232
86
  "type": "label",
233
- "label": "Eje horizontal"
87
+ "label": "Márgenes"
234
88
  },
235
89
  {
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
90
+ "id": "marginTop",
91
+ "label": "Superior",
92
+ "type": "number-input",
93
+ "description": "En px."
273
94
  },
274
95
  {
275
- "id": "customMessageEnabled",
276
- "label": "Mostrar mensaje",
277
- "type": "switch",
278
- "defaultValue": false,
279
- "displayOnTrue": "personalizado",
280
- "displayOnFalse": "del sistema"
96
+ "id": "marginLeft",
97
+ "label": "Izquierdo",
98
+ "type": "number-input",
99
+ "description": "En px."
281
100
  },
282
101
  {
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
102
+ "id": "marginRight",
103
+ "label": "Derecho",
104
+ "type": "number-input",
105
+ "description": "En px."
289
106
  },
290
107
  {
291
- "id": "systemMessageTextFormat",
292
- "label": "Formato de mensaje",
293
- "type": "text-format",
294
- "description": "Formato de texto para mensaje del sistema/personalizado."
108
+ "id": "marginBottom",
109
+ "label": "Inferior",
110
+ "type": "number-input",
111
+ "description": "En px."
295
112
  }
296
113
  ]
297
114
  }
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.11",
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.7",
31
+ "@vixoniccom/modules": "^2.26.4",
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
- });