ui-core-abv 0.11.0 → 0.11.1
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 +3227 -2651
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +3 -1
- package/lib/components/dynamic-form/form-validators.d.ts +10 -0
- package/lib/components/dynamic-form/form.models.d.ts +12 -1
- package/lib/components/inputs/multy-select/multy-select.component.d.ts +7 -1
- package/lib/components/inputs/ui-scale/ui-scale.component.d.ts +53 -0
- package/lib/components/pool-options/pool-options.component.d.ts +12 -1
- package/lib/components/survey/survey-templates.directive.d.ts +1 -11
- package/lib/components/survey/survey.component.d.ts +28 -11
- package/lib/components/survey/survey.models.d.ts +2 -3
- package/lib/components/table/table.models.d.ts +3 -2
- package/lib/components/tree-admin/tree-admin.component.d.ts +2 -1
- package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts +3 -0
- package/lib/components/user-formbuilder/block-editor/field-editor/field-options-editor/field-options-editor.component.d.ts +15 -1
- package/lib/components/user-formbuilder/block-editor/field-editor/field-options-editor/option-style-editor/option-style-editor.component.d.ts +36 -0
- package/lib/components/user-formbuilder/form-preview/form-preview.component.d.ts +30 -13
- package/lib/components/user-formbuilder/user-formbuilder.component.d.ts +7 -1
- package/lib/components/wizard/wizard.component.d.ts +1 -2
- package/lib/theme/colors.d.ts +24 -0
- package/lib/translate/dictionary.en.d.ts +36 -2
- package/lib/translate/dictionary.es.d.ts +36 -2
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/src/lib/styles/_default_colors.scss +103 -0
- package/src/lib/styles/_tokens.scss +6 -0
- package/src/lib/styles/_variables.scss +22 -0
|
@@ -32,6 +32,7 @@ export declare const DICTIONARY_EN: {
|
|
|
32
32
|
readonly none: "- None -";
|
|
33
33
|
readonly empty: "No items to show";
|
|
34
34
|
readonly without_options: "No options available";
|
|
35
|
+
readonly max_selections: "{{count}} of {{max}} selected";
|
|
35
36
|
readonly pending_text: "PENDING TEXT";
|
|
36
37
|
readonly search_placeholder: "Search...";
|
|
37
38
|
};
|
|
@@ -134,9 +135,9 @@ export declare const DICTIONARY_EN: {
|
|
|
134
135
|
readonly saving: "Saving...";
|
|
135
136
|
readonly saved: "Saved";
|
|
136
137
|
readonly save_error: "Could not save";
|
|
137
|
-
readonly completed_title: "Thank you!";
|
|
138
|
-
readonly completed_message: "Your answers have been submitted.";
|
|
139
138
|
readonly press_enter: "or press Enter";
|
|
139
|
+
readonly announce_page: "Question {{current}} of {{total}}";
|
|
140
|
+
readonly announce_errors: "Please review the highlighted answers before continuing.";
|
|
140
141
|
};
|
|
141
142
|
readonly wizard: {
|
|
142
143
|
readonly back: "Previous";
|
|
@@ -185,6 +186,8 @@ export declare const DICTIONARY_EN: {
|
|
|
185
186
|
readonly submit_form: "Submit";
|
|
186
187
|
readonly preview_form_label: "This is just a preview";
|
|
187
188
|
readonly preview_copy_response: "Validate and copy response";
|
|
189
|
+
readonly preview_survey_done: "Survey submitted. Response:";
|
|
190
|
+
readonly preview_survey_restart: "Restart";
|
|
188
191
|
readonly select_field_to_edit: "Select a field to edit its properties";
|
|
189
192
|
readonly no_fields: "Add fields to your form";
|
|
190
193
|
readonly base: {
|
|
@@ -254,6 +257,22 @@ export declare const DICTIONARY_EN: {
|
|
|
254
257
|
readonly templateLinkLabel_tip: "Clickable text shown to download the template";
|
|
255
258
|
readonly poolEnabledListView: "Enable list view";
|
|
256
259
|
readonly poolEnabledListView_tip: "Show pool in list mode";
|
|
260
|
+
readonly poolDisplayMode: "Layout";
|
|
261
|
+
readonly minSelections: "Minimum selections";
|
|
262
|
+
readonly minSelections_tip: "Multiple selection only. Empty or 0: no minimum";
|
|
263
|
+
readonly maxSelections: "Maximum selections";
|
|
264
|
+
readonly maxSelections_tip: "Multiple selection only. Empty: no limit";
|
|
265
|
+
readonly scaleMode: "Scale type";
|
|
266
|
+
readonly scaleMode_tip: "Numbers or cumulative icons";
|
|
267
|
+
readonly scaleIcon: "Icon";
|
|
268
|
+
readonly scaleIcon_tip: "Remix Icon class (star by default)";
|
|
269
|
+
readonly scaleMin: "Start value";
|
|
270
|
+
readonly scaleMin_tip: "Default 1 (use 0 for NPS)";
|
|
271
|
+
readonly scaleMax: "End value";
|
|
272
|
+
readonly scaleMax_tip: "Default 5 (up to 20 points)";
|
|
273
|
+
readonly poolDisplayMode_tip: "How options are arranged";
|
|
274
|
+
readonly poolGridColumns: "Columns";
|
|
275
|
+
readonly poolGridColumns_tip: "Options per row in grid mode (1 to 6)";
|
|
257
276
|
readonly poolTitle: "List title";
|
|
258
277
|
readonly poolTitle_tip: "Title for list header";
|
|
259
278
|
readonly options: "Options";
|
|
@@ -309,6 +328,19 @@ export declare const DICTIONARY_EN: {
|
|
|
309
328
|
readonly code_placeholder: "ID";
|
|
310
329
|
readonly display_name_placeholder: "Display name";
|
|
311
330
|
readonly add_option: "Add option";
|
|
331
|
+
readonly scale_labels_title: "Scale labels";
|
|
332
|
+
readonly scale_value_label: "Value";
|
|
333
|
+
readonly scale_text_label: "Label";
|
|
334
|
+
readonly scale_text_placeholder: "E.g.: Not likely";
|
|
335
|
+
readonly advanced: "Advanced";
|
|
336
|
+
readonly advanced_title: "Option icon and color";
|
|
337
|
+
readonly advanced_hint: "Type a Remix Icon class or pick a suggestion. The color applies to the icon. More icons at";
|
|
338
|
+
readonly icon_label: "Icon";
|
|
339
|
+
readonly icon_suggestions: "Icon suggestions";
|
|
340
|
+
readonly color_label: "Color";
|
|
341
|
+
readonly no_color: "No color";
|
|
342
|
+
readonly clear_style: "Remove icon and color";
|
|
343
|
+
readonly no_options: "Add options to set their icon and color.";
|
|
312
344
|
};
|
|
313
345
|
readonly field_editor: {
|
|
314
346
|
readonly dependency_title: "Dependency";
|
|
@@ -372,6 +404,8 @@ export declare const DICTIONARY_EN: {
|
|
|
372
404
|
readonly maxlength: "{{field}} cannot exceed {{requiredLength}} characters.";
|
|
373
405
|
readonly pattern: "{{field}} has an invalid format.";
|
|
374
406
|
readonly external_invalid: "{{field}} is not valid.";
|
|
407
|
+
readonly min_selections: "{{field}}: choose at least {{min}} options.";
|
|
408
|
+
readonly max_selections: "{{field}}: choose at most {{max}} options.";
|
|
375
409
|
};
|
|
376
410
|
readonly clipboard: {
|
|
377
411
|
readonly copy_error: "Could not copy:";
|
|
@@ -32,6 +32,7 @@ export declare const DICTIONARY_ES: {
|
|
|
32
32
|
readonly none: "- Ninguno -";
|
|
33
33
|
readonly empty: "No hay elementos para mostrar";
|
|
34
34
|
readonly without_options: "Sin opciones disponibles";
|
|
35
|
+
readonly max_selections: "{{count}} de {{max}} seleccionadas";
|
|
35
36
|
readonly pending_text: "TEXTO PENDIENTE";
|
|
36
37
|
readonly search_placeholder: "Buscar...";
|
|
37
38
|
};
|
|
@@ -134,9 +135,9 @@ export declare const DICTIONARY_ES: {
|
|
|
134
135
|
readonly saving: "Guardando...";
|
|
135
136
|
readonly saved: "Guardado";
|
|
136
137
|
readonly save_error: "No se pudo guardar";
|
|
137
|
-
readonly completed_title: "¡Gracias!";
|
|
138
|
-
readonly completed_message: "Tus respuestas fueron enviadas.";
|
|
139
138
|
readonly press_enter: "o presiona Enter";
|
|
139
|
+
readonly announce_page: "Pregunta {{current}} de {{total}}";
|
|
140
|
+
readonly announce_errors: "Revisa las respuestas marcadas antes de continuar.";
|
|
140
141
|
};
|
|
141
142
|
readonly wizard: {
|
|
142
143
|
readonly back: "Anterior";
|
|
@@ -184,6 +185,8 @@ export declare const DICTIONARY_ES: {
|
|
|
184
185
|
readonly preview_form: "Vista previa";
|
|
185
186
|
readonly preview_form_label: "Esta es solo una vista previa";
|
|
186
187
|
readonly preview_copy_response: "Validar y copiar respuesta";
|
|
188
|
+
readonly preview_survey_done: "Encuesta enviada. Respuesta:";
|
|
189
|
+
readonly preview_survey_restart: "Reiniciar";
|
|
187
190
|
readonly submit_form: "Guardar";
|
|
188
191
|
readonly select_field_to_edit: "Selecciona un campo para editar sus propiedades";
|
|
189
192
|
readonly no_fields: "Añade campos a tu formulario";
|
|
@@ -254,6 +257,22 @@ export declare const DICTIONARY_ES: {
|
|
|
254
257
|
readonly templateLinkLabel_tip: "Texto clickeable que se muestra para descargar el formato";
|
|
255
258
|
readonly poolEnabledListView: "Ver lista habilitada";
|
|
256
259
|
readonly poolEnabledListView_tip: "Mostrar opciones en lista";
|
|
260
|
+
readonly poolDisplayMode: "Disposición";
|
|
261
|
+
readonly minSelections: "Mínimo de selecciones";
|
|
262
|
+
readonly minSelections_tip: "Solo con selección múltiple. Vacío o 0: sin mínimo";
|
|
263
|
+
readonly maxSelections: "Máximo de selecciones";
|
|
264
|
+
readonly maxSelections_tip: "Solo con selección múltiple. Vacío: sin límite";
|
|
265
|
+
readonly scaleMode: "Tipo de escala";
|
|
266
|
+
readonly scaleMode_tip: "Números o íconos acumulativos";
|
|
267
|
+
readonly scaleIcon: "Ícono";
|
|
268
|
+
readonly scaleIcon_tip: "Clase de Remix Icon (por defecto, estrella)";
|
|
269
|
+
readonly scaleMin: "Valor inicial";
|
|
270
|
+
readonly scaleMin_tip: "Por defecto 1 (usa 0 para NPS)";
|
|
271
|
+
readonly scaleMax: "Valor final";
|
|
272
|
+
readonly scaleMax_tip: "Por defecto 5 (máximo 20 puntos)";
|
|
273
|
+
readonly poolDisplayMode_tip: "Cómo se ordenan las opciones";
|
|
274
|
+
readonly poolGridColumns: "Columnas";
|
|
275
|
+
readonly poolGridColumns_tip: "Opciones por fila en modo grid (1 a 6)";
|
|
257
276
|
readonly poolTitle: "Título del listado";
|
|
258
277
|
readonly poolTitle_tip: "Título del encabezado";
|
|
259
278
|
readonly options: "Opciones";
|
|
@@ -309,6 +328,19 @@ export declare const DICTIONARY_ES: {
|
|
|
309
328
|
readonly code_placeholder: "ID";
|
|
310
329
|
readonly display_name_placeholder: "Nombre para mostrar";
|
|
311
330
|
readonly add_option: "Nueva opción";
|
|
331
|
+
readonly scale_labels_title: "Leyendas de la escala";
|
|
332
|
+
readonly scale_value_label: "Valor";
|
|
333
|
+
readonly scale_text_label: "Leyenda";
|
|
334
|
+
readonly scale_text_placeholder: "Ej.: Nada probable";
|
|
335
|
+
readonly advanced: "Avanzado";
|
|
336
|
+
readonly advanced_title: "Ícono y color de las opciones";
|
|
337
|
+
readonly advanced_hint: "Escribe la clase de un ícono de Remix Icon o elige una sugerencia. El color se aplica al ícono. Más íconos en";
|
|
338
|
+
readonly icon_label: "Ícono";
|
|
339
|
+
readonly icon_suggestions: "Sugerencias de íconos";
|
|
340
|
+
readonly color_label: "Color";
|
|
341
|
+
readonly no_color: "Sin color";
|
|
342
|
+
readonly clear_style: "Quitar ícono y color";
|
|
343
|
+
readonly no_options: "Agrega opciones para configurar su ícono y color.";
|
|
312
344
|
};
|
|
313
345
|
readonly field_editor: {
|
|
314
346
|
readonly dependency_title: "Dependencia";
|
|
@@ -372,6 +404,8 @@ export declare const DICTIONARY_ES: {
|
|
|
372
404
|
readonly maxlength: "{{field}} no puede superar {{requiredLength}} caracteres.";
|
|
373
405
|
readonly pattern: "{{field}} no tiene el formato correcto.";
|
|
374
406
|
readonly external_invalid: "{{field}} no es válido.";
|
|
407
|
+
readonly min_selections: "{{field}}: elige al menos {{min}} opciones.";
|
|
408
|
+
readonly max_selections: "{{field}}: elige como máximo {{max}} opciones.";
|
|
375
409
|
};
|
|
376
410
|
readonly clipboard: {
|
|
377
411
|
readonly copy_error: "No se pudo copiar:";
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './lib/components/skeleton-loader/skeleton-loader.component';
|
|
|
23
23
|
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
|
+
export * from './lib/components/inputs/ui-scale/ui-scale.component';
|
|
26
27
|
export * from './lib/components/uic-action-button/uic-action-button.component';
|
|
27
28
|
export * from './lib/components/signature-pad/signature-pad.component';
|
|
28
29
|
export * from './lib/components/dropdown-container/dropdown-container.component';
|
|
@@ -64,4 +65,6 @@ export * from './lib/components/survey/survey.models';
|
|
|
64
65
|
export * from './lib/components/survey/survey-templates.directive';
|
|
65
66
|
export * from './lib/components/dynamic-form/form-engine.service';
|
|
66
67
|
export * from './lib/components/dynamic-form/form-state.service';
|
|
68
|
+
export * from './lib/components/dynamic-form/form-validators';
|
|
67
69
|
export * from './lib/theme/theme-scope';
|
|
70
|
+
export * from './lib/theme/colors';
|
|
@@ -99,3 +99,106 @@ $blue: (
|
|
|
99
99
|
950: #131d2b
|
|
100
100
|
)!default;
|
|
101
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;
|
|
@@ -36,6 +36,12 @@
|
|
|
36
36
|
@each $shade, $color in $yellow {
|
|
37
37
|
--yellow-#{$shade}: #{$color};
|
|
38
38
|
}
|
|
39
|
+
// Paletas adicionales (dark-green, light-blue, pink, dark-red, orange, teal)
|
|
40
|
+
@each $name, $palette in $uic-extra-palettes {
|
|
41
|
+
@each $shade, $color in $palette {
|
|
42
|
+
--#{$name}-#{$shade}: #{$color};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
39
45
|
--white: #fff;
|
|
40
46
|
--secondary-alpha: #8130c464;
|
|
41
47
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
// ========== COLORES ==========
|
|
2
|
+
// Colores agregados a la librería. Deben coincidir con las claves de $uic-extra-palettes
|
|
3
|
+
// (_default_colors.scss) y con UIC_EXTRA_COLORS (theme/colors.ts). Los componentes generan
|
|
4
|
+
// sus clases (btn-*, f-*, pb-*...) recorriendo esta lista; los colores originales siguen
|
|
5
|
+
// definidos a mano para no alterar su estilo.
|
|
6
|
+
$uic-extra-colors: 'dark-green', 'light-blue', 'pink', 'dark-red', 'orange', 'teal';
|
|
7
|
+
|
|
1
8
|
$focus-shadow: var(--uic-focus-shadow, 0 0 0 3px var(--secondary-alpha));
|
|
2
9
|
|
|
3
10
|
// ========== TYPOGRAPHY ==========
|
|
@@ -89,6 +96,21 @@ $uic-option-label-font-size: var(--uic-option-label-font-size, #{$font-size-s});
|
|
|
89
96
|
$uic-slider-color: var(--uic-slider-color, var(--primary-500));
|
|
90
97
|
$uic-slider-track-color: var(--uic-slider-track-color, #ccc);
|
|
91
98
|
|
|
99
|
+
// Pool de opciones
|
|
100
|
+
$uic-pool-gap: var(--uic-pool-gap, var(--design-size-ref));
|
|
101
|
+
$uic-pool-option-bg: var(--uic-pool-option-bg, var(--secondary-50));
|
|
102
|
+
$uic-pool-option-color: var(--uic-pool-option-color, var(--secondary-400));
|
|
103
|
+
$uic-pool-option-border-width: var(--uic-pool-option-border-width, 1px);
|
|
104
|
+
$uic-pool-option-border-color: var(--uic-pool-option-border-color, var(--grey-300));
|
|
105
|
+
$uic-pool-option-border-color-hover: var(--uic-pool-option-border-color-hover, var(--secondary-400));
|
|
106
|
+
$uic-pool-option-radius: var(--uic-pool-option-radius, #{$spacing-m});
|
|
107
|
+
$uic-pool-option-padding: var(--uic-pool-option-padding, #{$spacing-xs} #{$spacing-m});
|
|
108
|
+
$uic-pool-option-font-size: var(--uic-pool-option-font-size, #{$font-size-s});
|
|
109
|
+
$uic-pool-option-font-weight: var(--uic-pool-option-font-weight, #{$font-weight-regular});
|
|
110
|
+
$uic-pool-option-active-bg: var(--uic-pool-option-active-bg, var(--secondary-100));
|
|
111
|
+
$uic-pool-option-active-color: var(--uic-pool-option-active-color, var(--uic-pool-option-color, var(--secondary-400)));
|
|
112
|
+
$uic-pool-option-active-border-color: var(--uic-pool-option-active-border-color, var(--primary-400));
|
|
113
|
+
|
|
92
114
|
// Carga (shimmer)
|
|
93
115
|
$uic-loading-base: var(--uic-loading-base, #f2f2f2);
|
|
94
116
|
$uic-loading-highlight: var(--uic-loading-highlight, #dee1e2);
|