ui-core-abv 0.11.2 → 0.11.4
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/fesm2022/ui-core-abv.mjs +632 -96
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/dynamic-form/form/dynamic-form.component.d.ts +9 -0
- package/lib/components/dynamic-form/form-engine.service.d.ts +6 -0
- package/lib/components/dynamic-form/form-validators.d.ts +12 -0
- package/lib/components/dynamic-form/form.models.d.ts +25 -1
- package/lib/components/dynamic-form/other-option.d.ts +34 -0
- package/lib/components/inputs/ui-distribution/ui-distribution.component.d.ts +55 -0
- package/lib/components/survey/survey.component.d.ts +1 -0
- package/lib/components/user-formbuilder/block-editor/block-editor.component.d.ts +14 -1
- package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts +25 -2
- package/lib/components/user-formbuilder/block-editor/field-type-selector/field-type-selector.component.d.ts +6 -1
- package/lib/components/user-formbuilder/formbuilder.config.d.ts +111 -0
- package/lib/components/user-formbuilder/user-formbuilder.component.d.ts +28 -4
- package/lib/theme/colors.d.ts +10 -0
- package/lib/translate/dictionary.en.d.ts +30 -0
- package/lib/translate/dictionary.es.d.ts +30 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/src/lib/styles/_default_colors.scss +228 -204
|
@@ -235,6 +235,22 @@ export declare const DICTIONARY_ES: {
|
|
|
235
235
|
readonly visibility_summary: "Visible si {{field}} {{operator}} {{value}}";
|
|
236
236
|
readonly yes: "Sí";
|
|
237
237
|
readonly no: "No";
|
|
238
|
+
readonly other_option: {
|
|
239
|
+
readonly enable: "Incluir opción «Otros» (especifica)";
|
|
240
|
+
readonly enable_tip: "Agrega la opción Otros con un texto para especificar. El texto se guarda en <identificador>__other.";
|
|
241
|
+
readonly label: "Texto de la opción";
|
|
242
|
+
readonly placeholder: "Texto de ayuda del campo";
|
|
243
|
+
readonly required: "Especificar es obligatorio al elegir Otros";
|
|
244
|
+
};
|
|
245
|
+
readonly limits: {
|
|
246
|
+
readonly fields_reached: "Se alcanzó el máximo de {{max}} campos del formulario";
|
|
247
|
+
readonly blocks_reached: "Se alcanzó el máximo de {{max}} bloques";
|
|
248
|
+
readonly repeater_fields_reached: "Se alcanzó el máximo de {{max}} sub-campos por repetidor";
|
|
249
|
+
readonly import_exceeds: "El archivo supera los límites de este formulario: {{detail}}.";
|
|
250
|
+
readonly detail_blocks: "{{count}} bloques (máximo {{max}})";
|
|
251
|
+
readonly detail_fields: "{{count}} campos (máximo {{max}})";
|
|
252
|
+
readonly detail_repeater_fields: "un repetidor con {{count}} sub-campos (máximo {{max}})";
|
|
253
|
+
};
|
|
238
254
|
readonly undo: {
|
|
239
255
|
readonly field_removed: "Campo \"{{label}}\" eliminado";
|
|
240
256
|
readonly subfield_removed: "Sub-campo \"{{label}}\" eliminado";
|
|
@@ -467,6 +483,19 @@ export declare const DICTIONARY_ES: {
|
|
|
467
483
|
readonly subtitle_margin: "Margen subtítulo";
|
|
468
484
|
};
|
|
469
485
|
};
|
|
486
|
+
readonly other_option: {
|
|
487
|
+
readonly label: "Otros";
|
|
488
|
+
readonly placeholder: "Especifica...";
|
|
489
|
+
};
|
|
490
|
+
readonly distribution: {
|
|
491
|
+
readonly total: "Total";
|
|
492
|
+
readonly complete: "Completo";
|
|
493
|
+
readonly missing: "Faltan {{amount}}%";
|
|
494
|
+
readonly over: "Sobran {{amount}}%";
|
|
495
|
+
readonly clear: "Limpiar";
|
|
496
|
+
readonly fill_remaining: "Asignar el {{remaining}}% restante a {{option}}";
|
|
497
|
+
readonly no_options: "Esta pregunta aún no tiene opciones.";
|
|
498
|
+
};
|
|
470
499
|
readonly validation: {
|
|
471
500
|
readonly invalid: "{{field}} es invalido.";
|
|
472
501
|
readonly required: "{{field}} es obligatorio.";
|
|
@@ -478,6 +507,7 @@ export declare const DICTIONARY_ES: {
|
|
|
478
507
|
readonly external_invalid: "{{field}} no es válido.";
|
|
479
508
|
readonly min_selections: "{{field}}: elige al menos {{min}} opciones.";
|
|
480
509
|
readonly max_selections: "{{field}}: elige como máximo {{max}} opciones.";
|
|
510
|
+
readonly distribution_total: "{{field}} debe sumar {{expected}}% (ahora suma {{total}}%).";
|
|
481
511
|
};
|
|
482
512
|
readonly clipboard: {
|
|
483
513
|
readonly copy_error: "No se pudo copiar:";
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './lib/components/skeleton-cards/skeleton-cards.component';
|
|
|
24
24
|
export * from './lib/components/push-alerts/alert-container/alert-container.component';
|
|
25
25
|
export * from './lib/components/inputs/ui-slider/ui-slider.component';
|
|
26
26
|
export * from './lib/components/inputs/ui-scale/ui-scale.component';
|
|
27
|
+
export * from './lib/components/inputs/ui-distribution/ui-distribution.component';
|
|
27
28
|
export * from './lib/components/uic-action-button/uic-action-button.component';
|
|
28
29
|
export * from './lib/components/signature-pad/signature-pad.component';
|
|
29
30
|
export * from './lib/components/dropdown-container/dropdown-container.component';
|
|
@@ -44,6 +45,7 @@ export * from './lib/animations/animatios.index';
|
|
|
44
45
|
export * from './lib/components/dynamic-form/form.models';
|
|
45
46
|
export * from './lib/components/dynamic-form/repeater/repeater.component';
|
|
46
47
|
export * from './lib/components/user-formbuilder/user-formbuilder.component';
|
|
48
|
+
export * from './lib/components/user-formbuilder/formbuilder.config';
|
|
47
49
|
export * from './lib/components/rule-builder/rule-builder.component';
|
|
48
50
|
export * from './lib/services/modal.service';
|
|
49
51
|
export * from './lib/services/modaRef';
|
|
@@ -66,5 +68,6 @@ export * from './lib/components/survey/survey-templates.directive';
|
|
|
66
68
|
export * from './lib/components/dynamic-form/form-engine.service';
|
|
67
69
|
export * from './lib/components/dynamic-form/form-state.service';
|
|
68
70
|
export * from './lib/components/dynamic-form/form-validators';
|
|
71
|
+
export * from './lib/components/dynamic-form/other-option';
|
|
69
72
|
export * from './lib/theme/theme-scope';
|
|
70
73
|
export * from './lib/theme/colors';
|
|
@@ -1,204 +1,228 @@
|
|
|
1
|
-
$grey: (
|
|
2
|
-
25: #fdfdfd,
|
|
3
|
-
50: #fafafa,
|
|
4
|
-
100: #f5f5f5,
|
|
5
|
-
200: #e9eaeb,
|
|
6
|
-
300: #d5d7da,
|
|
7
|
-
400: #a4a7ae,
|
|
8
|
-
500: #717680,
|
|
9
|
-
600: #535862,
|
|
10
|
-
700: #414651,
|
|
11
|
-
800: #252b37,
|
|
12
|
-
900: #181d27,
|
|
13
|
-
950: #0a0d12
|
|
14
|
-
) !default;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
1
|
+
$grey: (
|
|
2
|
+
25: #fdfdfd,
|
|
3
|
+
50: #fafafa,
|
|
4
|
+
100: #f5f5f5,
|
|
5
|
+
200: #e9eaeb,
|
|
6
|
+
300: #d5d7da,
|
|
7
|
+
400: #a4a7ae,
|
|
8
|
+
500: #717680,
|
|
9
|
+
600: #535862,
|
|
10
|
+
700: #414651,
|
|
11
|
+
800: #252b37,
|
|
12
|
+
900: #181d27,
|
|
13
|
+
950: #0a0d12
|
|
14
|
+
) !default;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
// COLORES DE MARCA
|
|
19
|
+
// primary y secondary usan tonos que no compiten con los colores base
|
|
20
|
+
// (rojo, verde, azul, amarillo...) para que no se confundan con estados o categorías.
|
|
21
|
+
// El cliente los reemplaza sobrescribiendo estos mapas (!default) o las variables --primary-*/--secondary-*.
|
|
22
|
+
// En botones rellenos se usa el 500 con texto blanco: se eligió con contraste AA (≥ 4.5:1).
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
// Primary: marrón
|
|
26
|
+
$primary: (
|
|
27
|
+
25: #fcfaf8,
|
|
28
|
+
50: #f8f3ee,
|
|
29
|
+
100: #efe4d9,
|
|
30
|
+
200: #e0cbb6,
|
|
31
|
+
300: #c9a685,
|
|
32
|
+
400: #a87a52,
|
|
33
|
+
500: #8a5a36,
|
|
34
|
+
600: #74492b,
|
|
35
|
+
700: #5e3a23,
|
|
36
|
+
800: #4a2e1c,
|
|
37
|
+
900: #382315,
|
|
38
|
+
950: #22150c
|
|
39
|
+
) !default;
|
|
40
|
+
|
|
41
|
+
// Secondary: mostaza (más apagado y oscuro que el amarillo base para distinguirlos)
|
|
42
|
+
$secondary: (
|
|
43
|
+
25: #fdfbf2,
|
|
44
|
+
50: #fbf6e2,
|
|
45
|
+
100: #f5eabd,
|
|
46
|
+
200: #ecd98a,
|
|
47
|
+
300: #dfc257,
|
|
48
|
+
400: #c9a52a,
|
|
49
|
+
500: #9c7a12,
|
|
50
|
+
600: #82650f,
|
|
51
|
+
700: #68510d,
|
|
52
|
+
800: #53410d,
|
|
53
|
+
900: #42340c,
|
|
54
|
+
950: #261d05
|
|
55
|
+
) !default;
|
|
56
|
+
|
|
57
|
+
// ---------------------------------------------------------------------------
|
|
58
|
+
// COLORES BASE
|
|
59
|
+
// Tonos estándar y bien diferenciados entre sí (cada 500 es el tono "identidad").
|
|
60
|
+
// ---------------------------------------------------------------------------
|
|
61
|
+
|
|
62
|
+
$green: (
|
|
63
|
+
25: #f6fef9,
|
|
64
|
+
50: #f0fdf4,
|
|
65
|
+
100: #dcfce7,
|
|
66
|
+
200: #bbf7d0,
|
|
67
|
+
300: #86efac,
|
|
68
|
+
400: #22c55e,
|
|
69
|
+
500: #16a34a,
|
|
70
|
+
600: #15803d,
|
|
71
|
+
700: #166534,
|
|
72
|
+
800: #14532d,
|
|
73
|
+
900: #123f24,
|
|
74
|
+
950: #052e16
|
|
75
|
+
) !default;
|
|
76
|
+
|
|
77
|
+
// Amarillo puro (antes tiraba a naranja). Sobre fondo amarillo conviene texto oscuro.
|
|
78
|
+
$yellow: (
|
|
79
|
+
25: #fffef5,
|
|
80
|
+
50: #fefce8,
|
|
81
|
+
100: #fef9c3,
|
|
82
|
+
200: #fef08a,
|
|
83
|
+
300: #fde047,
|
|
84
|
+
400: #facc15,
|
|
85
|
+
500: #eab308,
|
|
86
|
+
600: #ca8a04,
|
|
87
|
+
700: #a16207,
|
|
88
|
+
800: #854d0e,
|
|
89
|
+
900: #713f12,
|
|
90
|
+
950: #422006
|
|
91
|
+
) !default;
|
|
92
|
+
|
|
93
|
+
$red: (
|
|
94
|
+
25: #fffafa,
|
|
95
|
+
50: #fef2f2,
|
|
96
|
+
100: #fee2e2,
|
|
97
|
+
200: #fecaca,
|
|
98
|
+
300: #fca5a5,
|
|
99
|
+
400: #ef4444,
|
|
100
|
+
500: #dc2626,
|
|
101
|
+
600: #b91c1c,
|
|
102
|
+
700: #991b1b,
|
|
103
|
+
800: #7f1d1d,
|
|
104
|
+
900: #631818,
|
|
105
|
+
950: #450a0a
|
|
106
|
+
) !default;
|
|
107
|
+
|
|
108
|
+
// Azul estándar (antes era un celeste lavado con 50 = blanco).
|
|
109
|
+
$blue: (
|
|
110
|
+
25: #f5f9ff,
|
|
111
|
+
50: #eff6ff,
|
|
112
|
+
100: #dbeafe,
|
|
113
|
+
200: #bfdbfe,
|
|
114
|
+
300: #93c5fd,
|
|
115
|
+
400: #3b82f6,
|
|
116
|
+
500: #2563eb,
|
|
117
|
+
600: #1d4ed8,
|
|
118
|
+
700: #1e40af,
|
|
119
|
+
800: #1e3a8a,
|
|
120
|
+
900: #1a2f6b,
|
|
121
|
+
950: #172554
|
|
122
|
+
) !default;
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
// COLORES ADICIONALES
|
|
127
|
+
// Escala completa 25-950 para que cualquier componente pueda usar cualquier tono.
|
|
128
|
+
$dark-green: (
|
|
129
|
+
25: #f3faf6,
|
|
130
|
+
50: #e6f4ec,
|
|
131
|
+
100: #c7e6d3,
|
|
132
|
+
200: #9dd2b3,
|
|
133
|
+
300: #6bb98d,
|
|
134
|
+
400: #3e9a68,
|
|
135
|
+
500: #1f7a4d,
|
|
136
|
+
600: #18663f,
|
|
137
|
+
700: #145234,
|
|
138
|
+
800: #11432b,
|
|
139
|
+
900: #0d3322,
|
|
140
|
+
950: #062015
|
|
141
|
+
) !default;
|
|
142
|
+
|
|
143
|
+
$light-blue: (
|
|
144
|
+
25: #f5fbff,
|
|
145
|
+
50: #f0f9ff,
|
|
146
|
+
100: #e0f2fe,
|
|
147
|
+
200: #bae6fd,
|
|
148
|
+
300: #7dd3fc,
|
|
149
|
+
400: #38bdf8,
|
|
150
|
+
500: #0ea5e9,
|
|
151
|
+
600: #0284c7,
|
|
152
|
+
700: #0369a1,
|
|
153
|
+
800: #075985,
|
|
154
|
+
900: #0c4a6e,
|
|
155
|
+
950: #082f49
|
|
156
|
+
) !default;
|
|
157
|
+
|
|
158
|
+
$pink: (
|
|
159
|
+
25: #fef6fa,
|
|
160
|
+
50: #fdf2f8,
|
|
161
|
+
100: #fce7f3,
|
|
162
|
+
200: #fbcfe8,
|
|
163
|
+
300: #f9a8d4,
|
|
164
|
+
400: #f472b6,
|
|
165
|
+
500: #ec4899,
|
|
166
|
+
600: #db2777,
|
|
167
|
+
700: #be185d,
|
|
168
|
+
800: #9d174d,
|
|
169
|
+
900: #831843,
|
|
170
|
+
950: #500724
|
|
171
|
+
) !default;
|
|
172
|
+
|
|
173
|
+
// Granate (vino): se separa del rojo base hacia el magenta para no parecer un rojo más oscuro.
|
|
174
|
+
$dark-red: (
|
|
175
|
+
25: #fdf5f7,
|
|
176
|
+
50: #fbe9ed,
|
|
177
|
+
100: #f5c9d2,
|
|
178
|
+
200: #eb9fb0,
|
|
179
|
+
300: #dc6f87,
|
|
180
|
+
400: #c04563,
|
|
181
|
+
500: #8e1b3a,
|
|
182
|
+
600: #7a1732,
|
|
183
|
+
700: #641329,
|
|
184
|
+
800: #4f0f21,
|
|
185
|
+
900: #3d0c19,
|
|
186
|
+
950: #25060e
|
|
187
|
+
) !default;
|
|
188
|
+
|
|
189
|
+
// Naranja: el 500 es más rojizo que el amarillo para que no se confundan.
|
|
190
|
+
$orange: (
|
|
191
|
+
25: #fffaf5,
|
|
192
|
+
50: #fff7ed,
|
|
193
|
+
100: #ffedd5,
|
|
194
|
+
200: #fed7aa,
|
|
195
|
+
300: #fdba74,
|
|
196
|
+
400: #f97316,
|
|
197
|
+
500: #ea580c,
|
|
198
|
+
600: #c2410c,
|
|
199
|
+
700: #9a3412,
|
|
200
|
+
800: #7c2d12,
|
|
201
|
+
900: #5f2410,
|
|
202
|
+
950: #431407
|
|
203
|
+
) !default;
|
|
204
|
+
|
|
205
|
+
$teal: (
|
|
206
|
+
25: #f4fdfb,
|
|
207
|
+
50: #f0fdfa,
|
|
208
|
+
100: #ccfbf1,
|
|
209
|
+
200: #99f6e4,
|
|
210
|
+
300: #5eead4,
|
|
211
|
+
400: #2dd4bf,
|
|
212
|
+
500: #14b8a6,
|
|
213
|
+
600: #0d9488,
|
|
214
|
+
700: #0f766e,
|
|
215
|
+
800: #115e59,
|
|
216
|
+
900: #134e4a,
|
|
217
|
+
950: #042f2e
|
|
218
|
+
) !default;
|
|
219
|
+
|
|
220
|
+
// Paletas adicionales por nombre (el nombre es el del color en la librería: --dark-green-500, btn-dark-green-filled...)
|
|
221
|
+
$uic-extra-palettes: (
|
|
222
|
+
'dark-green': $dark-green,
|
|
223
|
+
'light-blue': $light-blue,
|
|
224
|
+
'pink': $pink,
|
|
225
|
+
'dark-red': $dark-red,
|
|
226
|
+
'orange': $orange,
|
|
227
|
+
'teal': $teal
|
|
228
|
+
) !default;
|