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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.2.0 <22.0.0",
6
6
  "@angular/core": ">=19.2.0 <22.0.0",
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
- // COLORES PRINCIPALES
17
- $primary: (
18
- 100: #efe9f2,
19
- 200: #e8dfec,
20
- 300: #cfbcd7,
21
- 400: #63277d,
22
- 500: #592371,
23
- 600: #4f1f64,
24
- 700: #4a1d5e,
25
- 800: #3b174b,
26
- 900: #2d1238,
27
- 950: #230e2c
28
- ) !default;
29
-
30
- $secondary: (
31
- 100: #f3eaf9,
32
- 200: #ece0f6,
33
- 300: #d8bfed,
34
- 400: #8230c4,
35
- 500: #752bb0,
36
- 600: #68269d,
37
- 700: #622493,
38
- 800: #4e1d76,
39
- 900: #3a1658,
40
- 950: #2e1145
41
- );
42
-
43
- $green: (
44
- 25: #f0fef9,
45
- 50: #dcfce3,
46
- 100: #bbf7d0,
47
- 200: #86efac,
48
- 300: #4ade80,
49
- 400: #22c55e,
50
- 500: #16a34a,
51
- 600: #15803d,
52
- 700: #166534,
53
- 800: #14532d,
54
- 900: #1a2e21,
55
- 950: #052e16
56
- ) !default;
57
-
58
- $yellow: (
59
- 25: #fff9f5,
60
- 50: #fffaeb,
61
- 100: #fef0c7,
62
- 200: #fedf89,
63
- 300: #fec84b,
64
- 400: #fdb022,
65
- 500: #f79009,
66
- 600: #dc6803,
67
- 700: #b54708,
68
- 800: #93370d,
69
- 900: #792e0d,
70
- 950: #551d09
71
- ) !default;
72
-
73
- $red: (
74
- 25: #fffbfa,
75
- 50: #fef3f2,
76
- 100: #fee4e2,
77
- 200: #fecdca,
78
- 300: #fda29b,
79
- 400: #f97066,
80
- 500: #f04438,
81
- 600: #d92d20,
82
- 700: #b42318,
83
- 800: #912018,
84
- 900: #7a271a,
85
- 950: #55160c
86
- )!default;
87
-
88
- $blue: (
89
- 50: #ffffff,
90
- 100: #e4eefb,
91
- 200: #c9ddf7,
92
- 300: #aeccf4,
93
- 400: #93bbf0,
94
- 500: #78aaec,
95
- 600: #6193d5,
96
- 700: #4e76aa,
97
- 800: #3a5880,
98
- 900: #273b55,
99
- 950: #131d2b
100
- )!default;
101
-
102
-
103
-
104
- // COLORES ADICIONALES
105
- // Escala completa 25-950 para que cualquier componente pueda usar cualquier tono.
106
- $dark-green: (
107
- 25: #f3faf6,
108
- 50: #e6f4ec,
109
- 100: #c7e6d3,
110
- 200: #9dd2b3,
111
- 300: #6bb98d,
112
- 400: #3e9a68,
113
- 500: #1f7a4d,
114
- 600: #18663f,
115
- 700: #145234,
116
- 800: #11432b,
117
- 900: #0d3322,
118
- 950: #062015
119
- ) !default;
120
-
121
- $light-blue: (
122
- 25: #f5fbff,
123
- 50: #f0f9ff,
124
- 100: #e0f2fe,
125
- 200: #bae6fd,
126
- 300: #7dd3fc,
127
- 400: #38bdf8,
128
- 500: #0ea5e9,
129
- 600: #0284c7,
130
- 700: #0369a1,
131
- 800: #075985,
132
- 900: #0c4a6e,
133
- 950: #082f49
134
- ) !default;
135
-
136
- $pink: (
137
- 25: #fef6fa,
138
- 50: #fdf2f8,
139
- 100: #fce7f3,
140
- 200: #fbcfe8,
141
- 300: #f9a8d4,
142
- 400: #f472b6,
143
- 500: #ec4899,
144
- 600: #db2777,
145
- 700: #be185d,
146
- 800: #9d174d,
147
- 900: #831843,
148
- 950: #500724
149
- ) !default;
150
-
151
- $dark-red: (
152
- 25: #fdf6f6,
153
- 50: #fbeaea,
154
- 100: #f5cccc,
155
- 200: #eba3a3,
156
- 300: #dc7070,
157
- 400: #c44545,
158
- 500: #9f1d1d,
159
- 600: #891818,
160
- 700: #721414,
161
- 800: #5c1010,
162
- 900: #470c0c,
163
- 950: #2b0606
164
- ) !default;
165
-
166
- $orange: (
167
- 25: #fffaf5,
168
- 50: #fff7ed,
169
- 100: #ffedd5,
170
- 200: #fed7aa,
171
- 300: #fdba74,
172
- 400: #fb923c,
173
- 500: #f97316,
174
- 600: #ea580c,
175
- 700: #c2410c,
176
- 800: #9a3412,
177
- 900: #7c2d12,
178
- 950: #431407
179
- ) !default;
180
-
181
- $teal: (
182
- 25: #f4fdfb,
183
- 50: #f0fdfa,
184
- 100: #ccfbf1,
185
- 200: #99f6e4,
186
- 300: #5eead4,
187
- 400: #2dd4bf,
188
- 500: #14b8a6,
189
- 600: #0d9488,
190
- 700: #0f766e,
191
- 800: #115e59,
192
- 900: #134e4a,
193
- 950: #042f2e
194
- ) !default;
195
-
196
- // Paletas adicionales por nombre (el nombre es el del color en la librería: --dark-green-500, btn-dark-green-filled...)
197
- $uic-extra-palettes: (
198
- 'dark-green': $dark-green,
199
- 'light-blue': $light-blue,
200
- 'pink': $pink,
201
- 'dark-red': $dark-red,
202
- 'orange': $orange,
203
- 'teal': $teal
204
- ) !default;
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;