ui-core-abv 0.11.5 → 0.11.6
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 +913 -470
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +14 -4
- package/lib/components/dynamic-form/form.models.d.ts +6 -0
- package/lib/components/inputs/multy-select/multy-select.component.d.ts +12 -1
- package/lib/components/inputs/select/select.component.d.ts +3 -1
- package/lib/components/inputs/ui-scale/ui-scale.component.d.ts +12 -2
- package/lib/components/pool-options/pool-options.component.d.ts +6 -2
- package/lib/components/rule-builder/condition-value.d.ts +40 -0
- package/lib/components/rule-builder/rule-builder.component.d.ts +10 -2
- package/lib/components/rule-builder/rule-definirion/rule-definirion.component.d.ts +37 -18
- package/lib/components/uic-action-button/uic-action-button.component.d.ts +5 -1
- package/lib/components/user-formbuilder/block-editor/block-editor.component.d.ts +8 -1
- package/lib/components/user-formbuilder/formbuilder.config.d.ts +16 -0
- package/lib/translate/dictionary.en.d.ts +31 -0
- package/lib/translate/dictionary.es.d.ts +31 -0
- package/lib/utils/search-text.d.ts +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/styles/_dark.scss +113 -113
- package/src/lib/styles/_default_colors.scss +228 -228
- package/src/lib/styles/_variables.scss +141 -140
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UicColor } from '../../theme/colors';
|
|
2
|
-
import { SimpleChanges } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class UicButtonComponent {
|
|
4
|
+
export declare class UicButtonComponent implements OnInit, OnChanges {
|
|
5
5
|
text: string;
|
|
6
6
|
icon: string;
|
|
7
7
|
rightIcon: string;
|
|
@@ -11,11 +11,21 @@ export declare class UicButtonComponent {
|
|
|
11
11
|
size: ButtonSize;
|
|
12
12
|
type: ButtonType;
|
|
13
13
|
color: ButtonColor;
|
|
14
|
+
/**
|
|
15
|
+
* Nombre accesible del `<button>` interno. Con `iconOnly` y sin `ariaLabel`, se usa `text`
|
|
16
|
+
* (que no se pinta) para que el botón no quede sin nombre para lectores de pantalla.
|
|
17
|
+
*/
|
|
18
|
+
ariaLabel: string;
|
|
19
|
+
/** Tooltip opcional (usa uiTooltip). */
|
|
20
|
+
tooltip: string;
|
|
14
21
|
buttonTypeClass: string;
|
|
22
|
+
/** aria-label efectivo: explícito, o el texto cuando solo se ve el ícono. */
|
|
23
|
+
get accessibleName(): string | null;
|
|
15
24
|
ngOnInit(): void;
|
|
16
|
-
|
|
25
|
+
ngOnChanges(sc: SimpleChanges): void;
|
|
26
|
+
private updateTypeClass;
|
|
17
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicButtonComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicButtonComponent, "ui-button", never, { "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicButtonComponent, "ui-button", never, { "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
19
29
|
}
|
|
20
30
|
/** Colores de la librería (ver theme/colors.ts). */
|
|
21
31
|
export type ButtonColor = UicColor;
|
|
@@ -3,6 +3,10 @@ import { AppSelectOption } from "../inputs/select/select.component";
|
|
|
3
3
|
import { ButtonColor } from "../button/button.component";
|
|
4
4
|
export type FormIconMode = 'checklist';
|
|
5
5
|
export type PoolDisplayMode = 'flex' | 'grid';
|
|
6
|
+
/** Posición del ícono de cada opción del pool: 'start' (a la izquierda del texto) o 'top' (encima, tipo tarjeta). */
|
|
7
|
+
export type PoolIconPosition = 'start' | 'top';
|
|
8
|
+
/** Tamaño del ícono de cada opción del pool. */
|
|
9
|
+
export type PoolIconSize = 's' | 'm' | 'l' | 'xl';
|
|
6
10
|
export type ScaleMode = 'number' | 'icon';
|
|
7
11
|
export interface FormStep {
|
|
8
12
|
title: string;
|
|
@@ -124,6 +128,8 @@ export interface FormField {
|
|
|
124
128
|
poolTitle?: string;
|
|
125
129
|
poolDisplayMode?: PoolDisplayMode;
|
|
126
130
|
poolGridColumns?: number;
|
|
131
|
+
poolIconPosition?: PoolIconPosition;
|
|
132
|
+
poolIconSize?: PoolIconSize;
|
|
127
133
|
options?: AppSelectOption[];
|
|
128
134
|
optionsSource?: SelectOptionsSource;
|
|
129
135
|
multyEnabled?: boolean;
|
|
@@ -32,6 +32,17 @@ export declare class UicMultySelectComponent extends base {
|
|
|
32
32
|
options: AppSelectOption[];
|
|
33
33
|
/** Máximo de opciones elegibles (sin límite si no se define). Oculta 'Todos' si es menor que el total. */
|
|
34
34
|
maxSelections: number | null;
|
|
35
|
+
/** Buscador en el desplegable (activo por defecto; se muestra con más de 5 opciones). `false` lo desactiva. */
|
|
36
|
+
searcherEnabled: boolean;
|
|
37
|
+
searchTerm: string;
|
|
38
|
+
private searchInput?;
|
|
39
|
+
get showSearcher(): boolean;
|
|
40
|
+
get isSearching(): boolean;
|
|
41
|
+
/** Opciones visibles según la búsqueda (sin distinguir tildes). */
|
|
42
|
+
get filteredOptions(): AppSelectOption[];
|
|
43
|
+
updateSearchTerm(value: string): void;
|
|
44
|
+
clearSearch(event?: Event): void;
|
|
45
|
+
private focusSearcher;
|
|
35
46
|
get hasMax(): boolean;
|
|
36
47
|
get maxReached(): boolean;
|
|
37
48
|
get canSelectAll(): boolean;
|
|
@@ -62,6 +73,6 @@ export declare class UicMultySelectComponent extends base {
|
|
|
62
73
|
private emitSelection;
|
|
63
74
|
private syncSelectionFromValue;
|
|
64
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicMultySelectComponent, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicMultySelectComponent, "ui-multy-select", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "internalIconColor": { "alias": "internalIconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nonSelectedText": { "alias": "nonSelectedText"; "required": false; }; "allSelectedText": { "alias": "allSelectedText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "maxSelections": { "alias": "maxSelections"; "required": false; }; }, {}, never, never, true, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicMultySelectComponent, "ui-multy-select", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "internalIconColor": { "alias": "internalIconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nonSelectedText": { "alias": "nonSelectedText"; "required": false; }; "allSelectedText": { "alias": "allSelectedText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "maxSelections": { "alias": "maxSelections"; "required": false; }; "searcherEnabled": { "alias": "searcherEnabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
66
77
|
}
|
|
67
78
|
export {};
|
|
@@ -27,6 +27,7 @@ export declare class UicSelectComponent extends base {
|
|
|
27
27
|
nonSelectedText: string;
|
|
28
28
|
noneText: string;
|
|
29
29
|
emptyText: string;
|
|
30
|
+
/** Buscador en el desplegable (activo por defecto; se muestra con más de 5 opciones). `false` lo desactiva. */
|
|
30
31
|
searcherEnabled: boolean;
|
|
31
32
|
loading: boolean;
|
|
32
33
|
nullable: boolean;
|
|
@@ -62,6 +63,7 @@ export declare class UicSelectComponent extends base {
|
|
|
62
63
|
isNoneOptionActive(): boolean;
|
|
63
64
|
isOptionActive(index: number): boolean;
|
|
64
65
|
getOptionIndex(index: number): number;
|
|
66
|
+
/** Resalta la búsqueda sin distinguir tildes, pintando el texto original. */
|
|
65
67
|
highlightMatch(value: string | null | undefined): string;
|
|
66
68
|
private focusSearcher;
|
|
67
69
|
private handleOverlayKeydown;
|
|
@@ -71,8 +73,8 @@ export declare class UicSelectComponent extends base {
|
|
|
71
73
|
private findFirstEnabledOptionIndex;
|
|
72
74
|
private isKeyboardOptionEnabled;
|
|
73
75
|
private scrollActiveOptionIntoView;
|
|
76
|
+
/** Sin tildes ni mayúsculas: «ge» encuentra «Género». */
|
|
74
77
|
private normalizeText;
|
|
75
|
-
private escapeHtml;
|
|
76
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicSelectComponent, never>;
|
|
77
79
|
static ɵcmp: i0.ɵɵComponentDeclaration<UicSelectComponent, "ui-select", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "internalIconColor": { "alias": "internalIconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nonSelectedText": { "alias": "nonSelectedText"; "required": false; }; "noneText": { "alias": "noneText"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "searcherEnabled": { "alias": "searcherEnabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "nullable": { "alias": "nullable"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
78
80
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { ButtonColor } from '../../button/button.component';
|
|
2
3
|
import { AppSelectOption } from '../select/select.component';
|
|
3
4
|
import { ScaleMode } from '../../dynamic-form/form.models';
|
|
@@ -18,7 +19,7 @@ declare const base: abstract new () => {
|
|
|
18
19
|
* Valor: el número elegido, o null. Se maneja con teclado como un grupo de radios
|
|
19
20
|
* (flechas, Inicio, Fin) y anuncia cada punto con su leyenda.
|
|
20
21
|
*/
|
|
21
|
-
export declare class UicScaleComponent extends base {
|
|
22
|
+
export declare class UicScaleComponent extends base implements OnDestroy {
|
|
22
23
|
private readonly host;
|
|
23
24
|
icon: string;
|
|
24
25
|
iconColor: ButtonColor;
|
|
@@ -39,8 +40,17 @@ export declare class UicScaleComponent extends base {
|
|
|
39
40
|
get hasLegends(): boolean;
|
|
40
41
|
legendFor(value: number): string;
|
|
41
42
|
isSelected(value: number): boolean;
|
|
42
|
-
/**
|
|
43
|
+
/** Modo íconos: relleno pleno hasta el valor ELEGIDO (no cambia al pasar el puntero). */
|
|
43
44
|
isFilled(value: number): boolean;
|
|
45
|
+
/** Vista previa al pasar el puntero: tono suave en los puntos que se sumarían al elegir. */
|
|
46
|
+
isPreview(value: number): boolean;
|
|
47
|
+
/** Puntos elegidos que se quitarían al elegir el que está bajo el puntero (se atenúan). */
|
|
48
|
+
isDimmed(value: number): boolean;
|
|
49
|
+
/** Punto recién elegido: dispara la animación de confirmación (breve). */
|
|
50
|
+
readonly justSelected: import("@angular/core").WritableSignal<number | null>;
|
|
51
|
+
private justSelectedTimer;
|
|
52
|
+
private markJustSelected;
|
|
53
|
+
ngOnDestroy(): void;
|
|
44
54
|
/** Un solo punto entra en el orden de tabulación: el elegido, o el primero. */
|
|
45
55
|
tabIndexFor(value: number): number;
|
|
46
56
|
select(value: number): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AppSelectOption } from '../inputs/select/select.component';
|
|
3
3
|
import { ButtonColor } from '../button/button.component';
|
|
4
|
-
import { PoolDisplayMode } from '../dynamic-form/form.models';
|
|
4
|
+
import { PoolDisplayMode, PoolIconPosition, PoolIconSize } from '../dynamic-form/form.models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
type selectId = number | string;
|
|
7
7
|
type selectedDetailed = {
|
|
@@ -36,6 +36,10 @@ export declare class UicPoolOptionsComponent extends base {
|
|
|
36
36
|
displayMode: PoolDisplayMode;
|
|
37
37
|
/** Columnas en modo grid (1 a 6). */
|
|
38
38
|
gridColumns: number;
|
|
39
|
+
/** 'start' (por defecto): ícono a la izquierda del texto. 'top': ícono encima, tipo tarjeta. */
|
|
40
|
+
iconPosition: PoolIconPosition;
|
|
41
|
+
/** Tamaño del ícono de cada opción: 's' | 'm' (por defecto) | 'l' | 'xl'. */
|
|
42
|
+
iconSize: PoolIconSize;
|
|
39
43
|
/** Máximo de opciones elegibles en modo múltiple (sin límite si no se define). */
|
|
40
44
|
maxSelections: number | null;
|
|
41
45
|
/** true cuando ya no se pueden elegir más opciones. */
|
|
@@ -53,6 +57,6 @@ export declare class UicPoolOptionsComponent extends base {
|
|
|
53
57
|
private emitSelectionChange;
|
|
54
58
|
private normalizeIncomingValue;
|
|
55
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicPoolOptionsComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicPoolOptionsComponent, "ui-pool-options", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "multy": { "alias": "multy"; "required": false; }; "enabledListView": { "alias": "enabledListView"; "required": false; }; "listViewTitle": { "alias": "listViewTitle"; "required": false; }; "options": { "alias": "options"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "gridColumns": { "alias": "gridColumns"; "required": false; }; "maxSelections": { "alias": "maxSelections"; "required": false; }; }, {}, never, never, true, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicPoolOptionsComponent, "ui-pool-options", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "multy": { "alias": "multy"; "required": false; }; "enabledListView": { "alias": "enabledListView"; "required": false; }; "listViewTitle": { "alias": "listViewTitle"; "required": false; }; "options": { "alias": "options"; "required": false; }; "displayMode": { "alias": "displayMode"; "required": false; }; "gridColumns": { "alias": "gridColumns"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "maxSelections": { "alias": "maxSelections"; "required": false; }; }, {}, never, never, true, never>;
|
|
57
61
|
}
|
|
58
62
|
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AppSelectOption } from '../inputs/select/select.component';
|
|
2
|
+
/** Tipos de campo de una condición (ver ConditionField.type). */
|
|
3
|
+
export type ConditionFieldType = 'number' | 'text' | 'date' | 'catalog';
|
|
4
|
+
/**
|
|
5
|
+
* Qué valor pide un operador:
|
|
6
|
+
* - 'field' (por defecto): un valor según el tipo del campo (texto, número, fecha o catálogo).
|
|
7
|
+
* - 'none': sin valor (p. ej. «está vacío» / «no está vacío»). Se guarda ''.
|
|
8
|
+
* - 'relative-date': cantidad + unidad (p. ej. «hace menos de 30 años»). Se guarda '30:years'.
|
|
9
|
+
*/
|
|
10
|
+
export type ConditionValueType = 'field' | 'none' | 'relative-date';
|
|
11
|
+
export type RelativeDateUnit = 'days' | 'weeks' | 'months' | 'years';
|
|
12
|
+
export declare const RELATIVE_DATE_UNITS: readonly RelativeDateUnit[];
|
|
13
|
+
/**
|
|
14
|
+
* Operador de condición. Es un AppSelectOption ({ id, text }) con dos claves opcionales,
|
|
15
|
+
* así que los operadores existentes siguen funcionando sin cambios.
|
|
16
|
+
*/
|
|
17
|
+
export interface UicConditionOperator extends AppSelectOption {
|
|
18
|
+
/** Valor que pide el operador. Por defecto 'field'. */
|
|
19
|
+
valueType?: ConditionValueType;
|
|
20
|
+
/** Tipos de campo en los que se ofrece el operador. Omitido = todos. */
|
|
21
|
+
fieldTypes?: ConditionFieldType[];
|
|
22
|
+
}
|
|
23
|
+
export interface RelativeDateValue {
|
|
24
|
+
amount: number;
|
|
25
|
+
unit: RelativeDateUnit;
|
|
26
|
+
}
|
|
27
|
+
export declare function uicOperatorValueType(operator: AppSelectOption | null | undefined): ConditionValueType;
|
|
28
|
+
/** Operadores disponibles para un tipo de campo (sin campo elegido, todos). */
|
|
29
|
+
export declare function uicOperatorsForField(operators: AppSelectOption[], fieldType: ConditionFieldType | null | undefined): AppSelectOption[];
|
|
30
|
+
/** '30:years' → { amount: 30, unit: 'years' }. Devuelve null si el texto no es una fecha relativa válida. */
|
|
31
|
+
export declare function uicParseRelativeDate(value: string | null | undefined): RelativeDateValue | null;
|
|
32
|
+
/** { amount: 30, unit: 'years' } → '30:years'. */
|
|
33
|
+
export declare function uicSerializeRelativeDate(value: RelativeDateValue): string;
|
|
34
|
+
/**
|
|
35
|
+
* Texto legible del valor de una condición según el tipo de valor del operador.
|
|
36
|
+
* `translate` recibe una clave y parámetros (UicTranslateService.translate).
|
|
37
|
+
*/
|
|
38
|
+
export declare function uicFormatConditionValue(value: string | null | undefined, valueType: ConditionValueType, translate: (key: string, params?: Record<string, string | number>) => string): string;
|
|
39
|
+
/** Descripción automática: «Campo operador valor» (sin valor cuando el operador no lo pide). */
|
|
40
|
+
export declare function uicDescribeCondition(fieldName: string, operatorName: string, formattedValue: string): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { AppSelectOption } from '../inputs/select/select.component';
|
|
3
|
+
import { UicConditionOperator } from './condition-value';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class UicRuleBuilderComponent implements OnInit {
|
|
5
6
|
private conditionsInitialized;
|
|
@@ -12,8 +13,15 @@ export declare class UicRuleBuilderComponent implements OnInit {
|
|
|
12
13
|
customNamesEnabled: boolean;
|
|
13
14
|
set conditions(value: UicConditionDefinition[] | null | undefined);
|
|
14
15
|
get conditions(): UicConditionDefinition[];
|
|
15
|
-
|
|
16
|
+
/** Operadores ({ id, text }). Con `valueType` / `fieldTypes` (UicConditionOperator) el valor depende del operador. */
|
|
17
|
+
conditionOperators: UicConditionOperator[];
|
|
16
18
|
conditionFields: ConditionField[];
|
|
19
|
+
/**
|
|
20
|
+
* true (por defecto): al agregar o pulsar una condición se abre la lista de condiciones existentes.
|
|
21
|
+
* false: se abre directo el formulario (relleno con la condición pulsada para editarla) y al aplicar
|
|
22
|
+
* se reemplaza esa condición. Útil cuando las condiciones no se guardan aparte de la regla.
|
|
23
|
+
*/
|
|
24
|
+
conditionLibrary: boolean;
|
|
17
25
|
conditionLabels: Record<string, string>;
|
|
18
26
|
editing: boolean;
|
|
19
27
|
private nextTemporalConditionId;
|
|
@@ -73,7 +81,7 @@ export declare class UicRuleBuilderComponent implements OnInit {
|
|
|
73
81
|
private getNextTemporalConditionId;
|
|
74
82
|
private syncNextTemporalConditionId;
|
|
75
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicRuleBuilderComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicRuleBuilderComponent, "ui-rule-builder", never, { "disabled": { "alias": "disabled"; "required": false; }; "customNamesEnabled": { "alias": "customNamesEnabled"; "required": false; }; "conditions": { "alias": "conditions"; "required": false; }; "conditionOperators": { "alias": "conditionOperators"; "required": false; }; "conditionFields": { "alias": "conditionFields"; "required": false; }; "ruleTitle": { "alias": "ruleTitle"; "required": false; }; "ruleDefinition": { "alias": "ruleDefinition"; "required": false; }; }, { "ruleDefinitionChange": "ruleDefinitionChange"; "conditionsChange": "conditionsChange"; }, never, never, true, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicRuleBuilderComponent, "ui-rule-builder", never, { "disabled": { "alias": "disabled"; "required": false; }; "customNamesEnabled": { "alias": "customNamesEnabled"; "required": false; }; "conditions": { "alias": "conditions"; "required": false; }; "conditionOperators": { "alias": "conditionOperators"; "required": false; }; "conditionFields": { "alias": "conditionFields"; "required": false; }; "conditionLibrary": { "alias": "conditionLibrary"; "required": false; }; "ruleTitle": { "alias": "ruleTitle"; "required": false; }; "ruleDefinition": { "alias": "ruleDefinition"; "required": false; }; }, { "ruleDefinitionChange": "ruleDefinitionChange"; "conditionsChange": "conditionsChange"; }, never, never, true, never>;
|
|
77
85
|
}
|
|
78
86
|
export interface RuleBuilderValue {
|
|
79
87
|
definition: string;
|
|
@@ -3,14 +3,20 @@ import { AppSelectOption } from '../../inputs/select/select.component';
|
|
|
3
3
|
import { FormField, FormResult, uicFormValuesRecord } from '../../dynamic-form/form.models';
|
|
4
4
|
import { ConditionField, UicConditionDefinition } from '../rule-builder.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
export interface RuleDefinitionModalData {
|
|
7
|
+
conditions: UicConditionDefinition[];
|
|
8
|
+
customNamesEnabled: boolean;
|
|
9
|
+
conditionOperators: AppSelectOption[];
|
|
10
|
+
conditionFields: ConditionField[];
|
|
11
|
+
selectedConditionReference?: string | number | null;
|
|
12
|
+
/**
|
|
13
|
+
* true (por defecto): primero se busca/elige una condición existente.
|
|
14
|
+
* false: se abre directo el formulario; si hay una condición seleccionada, relleno para editarla.
|
|
15
|
+
*/
|
|
16
|
+
conditionLibrary?: boolean;
|
|
17
|
+
}
|
|
6
18
|
export declare class RuleDefinirionComponent implements OnDestroy {
|
|
7
|
-
data:
|
|
8
|
-
conditions: UicConditionDefinition[];
|
|
9
|
-
customNamesEnabled: boolean;
|
|
10
|
-
conditionOperators: AppSelectOption[];
|
|
11
|
-
conditionFields: ConditionField[];
|
|
12
|
-
selectedConditionReference?: string | number | null;
|
|
13
|
-
};
|
|
19
|
+
data: RuleDefinitionModalData;
|
|
14
20
|
newRule: boolean;
|
|
15
21
|
fields: FormField[];
|
|
16
22
|
conditions: UicConditionDefinition[];
|
|
@@ -19,20 +25,25 @@ export declare class RuleDefinirionComponent implements OnDestroy {
|
|
|
19
25
|
currentPage: number;
|
|
20
26
|
readonly pageSize = 5;
|
|
21
27
|
customNamesEnabled: boolean;
|
|
28
|
+
/** Ver RuleDefinitionModalData.conditionLibrary. */
|
|
29
|
+
readonly conditionLibrary: boolean;
|
|
30
|
+
/** Condición que se edita (solo sin biblioteca y con una condición seleccionada). */
|
|
31
|
+
readonly editingCondition: UicConditionDefinition | null;
|
|
22
32
|
private readonly translate;
|
|
23
33
|
private readonly ref;
|
|
24
34
|
private readonly languageSubscription;
|
|
25
35
|
mainConditionFieldsData: ConditionField[];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
selectedConditionReference?: string | number | null;
|
|
32
|
-
});
|
|
36
|
+
/** Campo y operador del formulario: al cambiar se rehace el formulario del valor. */
|
|
37
|
+
private trackedField;
|
|
38
|
+
private trackedOperator;
|
|
39
|
+
initialValues: uicFormValuesRecord;
|
|
40
|
+
constructor(data: RuleDefinitionModalData);
|
|
33
41
|
ngOnDestroy(): void;
|
|
34
|
-
|
|
35
|
-
|
|
42
|
+
/** Texto del botón principal: sin biblioteca se aplica (crea o reemplaza) la condición del lienzo. */
|
|
43
|
+
get submitLabel(): string;
|
|
44
|
+
get cancelLabel(): string;
|
|
45
|
+
/** Sin biblioteca, cancelar cierra el modal (no hay lista a la que volver). */
|
|
46
|
+
cancelForm(): void;
|
|
36
47
|
updateFormNewRule(fr: uicFormValuesRecord): void;
|
|
37
48
|
get filteredConditions(): UicConditionDefinition[];
|
|
38
49
|
get paginatedConditions(): UicConditionDefinition[];
|
|
@@ -45,10 +56,18 @@ export declare class RuleDefinirionComponent implements OnDestroy {
|
|
|
45
56
|
createAndSelectRule(fr: FormResult): void;
|
|
46
57
|
select(condition: UicConditionDefinition): void;
|
|
47
58
|
isSelected(condition: UicConditionDefinition): boolean;
|
|
59
|
+
/** Valor legible de una condición (p. ej. «30 años» para una fecha relativa). */
|
|
60
|
+
conditionValueText(condition: UicConditionDefinition): string;
|
|
61
|
+
/** Resalta la búsqueda sin distinguir tildes. */
|
|
48
62
|
highlightSearch(value: string | null | undefined): string;
|
|
49
63
|
private buildFields;
|
|
50
|
-
private
|
|
51
|
-
private
|
|
64
|
+
private buildValueFields;
|
|
65
|
+
private valuesFromCondition;
|
|
66
|
+
private valueFromForm;
|
|
67
|
+
private pickValueControls;
|
|
68
|
+
private formatValue;
|
|
69
|
+
private valueTypeOf;
|
|
70
|
+
private findField;
|
|
52
71
|
private getConditionReference;
|
|
53
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<RuleDefinirionComponent, never>;
|
|
54
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<RuleDefinirionComponent, "lib-rule-definirion", never, {}, {}, never, never, true, never>;
|
|
@@ -14,6 +14,10 @@ export declare class UicActionButtonComponent {
|
|
|
14
14
|
color: ButtonColor;
|
|
15
15
|
type: ButtonType;
|
|
16
16
|
disabled: boolean;
|
|
17
|
+
/** Nombre accesible del disparador. Sin `text` ni `ariaLabel` se usa «Más acciones». */
|
|
18
|
+
ariaLabel: string;
|
|
19
|
+
/** Tooltip opcional del disparador. */
|
|
20
|
+
tooltip: string;
|
|
17
21
|
optionSelected: EventEmitter<ActionMenuOption>;
|
|
18
22
|
optionsApplied: EventEmitter<ActionMenuOption[]>;
|
|
19
23
|
menuTemplate: TemplateRef<any>;
|
|
@@ -34,7 +38,7 @@ export declare class UicActionButtonComponent {
|
|
|
34
38
|
updateAllSelected(): void;
|
|
35
39
|
closeMenu(): void;
|
|
36
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicActionButtonComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicActionButtonComponent, "ui-action-button", never, { "icon": { "alias": "icon"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "size": { "alias": "size"; "required": false; }; "text": { "alias": "text"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "optionSelected": "optionSelected"; "optionsApplied": "optionsApplied"; }, never, never, true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicActionButtonComponent, "ui-action-button", never, { "icon": { "alias": "icon"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "size": { "alias": "size"; "required": false; }; "text": { "alias": "text"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, { "optionSelected": "optionSelected"; "optionsApplied": "optionsApplied"; }, never, never, true, never>;
|
|
38
42
|
}
|
|
39
43
|
export interface ActionMenuOption {
|
|
40
44
|
id: string;
|
|
@@ -55,6 +55,13 @@ export declare class BlockEditorComponent {
|
|
|
55
55
|
maxRepeaterFields: import("@angular/core").InputSignal<number | null>;
|
|
56
56
|
fieldLimitMessage: import("@angular/core").Signal<string>;
|
|
57
57
|
repeaterLimitMessage: import("@angular/core").Signal<string>;
|
|
58
|
+
/** Accesos rápidos (config `quickAddTypes` / `quickAddSubFieldTypes`), ya filtrados por tipos disponibles. */
|
|
59
|
+
quickAddTypes: import("@angular/core").InputSignal<FieldType[]>;
|
|
60
|
+
quickAddSubFieldTypes: import("@angular/core").InputSignal<FieldType[]>;
|
|
61
|
+
quickAddConfigs: import("@angular/core").Signal<FieldConfig[]>;
|
|
62
|
+
quickAddSubFieldConfigs: import("@angular/core").Signal<FieldConfig[]>;
|
|
63
|
+
private toFieldConfigs;
|
|
64
|
+
quickAddLabel(config: FieldConfig): string;
|
|
58
65
|
isRepeaterFull(field: EditableField): boolean;
|
|
59
66
|
fieldListId: import("@angular/core").Signal<string>;
|
|
60
67
|
/** Estado solo visual: plegar el bloque no altera el formulario. */
|
|
@@ -95,5 +102,5 @@ export declare class BlockEditorComponent {
|
|
|
95
102
|
/** cdkDropListData es el code del bloque: así se identifica el origen al soltar desde otro bloque. */
|
|
96
103
|
reorderFields(event: CdkDragDrop<string>): void;
|
|
97
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockEditorComponent, never>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BlockEditorComponent, "lib-block-editor", never, { "block": { "alias": "block"; "required": false; "isSignal": true; }; "selectedFieldId": { "alias": "selectedFieldId"; "required": false; "isSignal": true; }; "selectedSubFieldCode": { "alias": "selectedSubFieldCode"; "required": false; "isSignal": true; }; "selectedSubFieldParentCode": { "alias": "selectedSubFieldParentCode"; "required": false; "isSignal": true; }; "visibilityParentFieldCodes": { "alias": "visibilityParentFieldCodes"; "required": false; }; "fieldLookup": { "alias": "fieldLookup"; "required": false; }; "showIdentifier": { "alias": "showIdentifier"; "required": false; "isSignal": true; }; "connectedFieldListIds": { "alias": "connectedFieldListIds"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "availableFieldTypes": { "alias": "availableFieldTypes"; "required": false; "isSignal": true; }; "canDelete": { "alias": "canDelete"; "required": false; "isSignal": true; }; "fieldLimitReached": { "alias": "fieldLimitReached"; "required": false; "isSignal": true; }; "maxFields": { "alias": "maxFields"; "required": false; "isSignal": true; }; "maxRepeaterFields": { "alias": "maxRepeaterFields"; "required": false; "isSignal": true; }; }, { "blockChange": "blockChange"; "addFieldRequest": "addFieldRequest"; "deleteBlock": "deleteBlock"; "notifySelectedField": "notifySelectedField"; "notifySelectedSubField": "notifySelectedSubField"; "notifyNewSubField": "notifyNewSubField"; "itemRemoved": "itemRemoved"; "duplicateFieldRequest": "duplicateFieldRequest"; "moveFieldRequest": "moveFieldRequest"; }, never, never, true, never>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BlockEditorComponent, "lib-block-editor", never, { "block": { "alias": "block"; "required": false; "isSignal": true; }; "selectedFieldId": { "alias": "selectedFieldId"; "required": false; "isSignal": true; }; "selectedSubFieldCode": { "alias": "selectedSubFieldCode"; "required": false; "isSignal": true; }; "selectedSubFieldParentCode": { "alias": "selectedSubFieldParentCode"; "required": false; "isSignal": true; }; "visibilityParentFieldCodes": { "alias": "visibilityParentFieldCodes"; "required": false; }; "fieldLookup": { "alias": "fieldLookup"; "required": false; }; "showIdentifier": { "alias": "showIdentifier"; "required": false; "isSignal": true; }; "connectedFieldListIds": { "alias": "connectedFieldListIds"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "availableFieldTypes": { "alias": "availableFieldTypes"; "required": false; "isSignal": true; }; "canDelete": { "alias": "canDelete"; "required": false; "isSignal": true; }; "fieldLimitReached": { "alias": "fieldLimitReached"; "required": false; "isSignal": true; }; "maxFields": { "alias": "maxFields"; "required": false; "isSignal": true; }; "maxRepeaterFields": { "alias": "maxRepeaterFields"; "required": false; "isSignal": true; }; "quickAddTypes": { "alias": "quickAddTypes"; "required": false; "isSignal": true; }; "quickAddSubFieldTypes": { "alias": "quickAddSubFieldTypes"; "required": false; "isSignal": true; }; }, { "blockChange": "blockChange"; "addFieldRequest": "addFieldRequest"; "deleteBlock": "deleteBlock"; "notifySelectedField": "notifySelectedField"; "notifySelectedSubField": "notifySelectedSubField"; "notifyNewSubField": "notifyNewSubField"; "itemRemoved": "itemRemoved"; "duplicateFieldRequest": "duplicateFieldRequest"; "moveFieldRequest": "moveFieldRequest"; }, never, never, true, never>;
|
|
99
106
|
}
|
|
@@ -57,6 +57,18 @@ export interface UicFormBuilderConfig {
|
|
|
57
57
|
visibilityRules?: boolean;
|
|
58
58
|
/** Sección "Estilo" (íconos, colores, sugerencia, ancho, salto de línea). Por defecto: true. */
|
|
59
59
|
styleSection?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* "Diseño del formulario" en el menú ⋯ (columnas, tamaños y márgenes de títulos). Con `false` se oculta;
|
|
62
|
+
* los valores que ya traiga el esquema se conservan. Útil cuando el aspecto lo define el tema. Por defecto: true.
|
|
63
|
+
*/
|
|
64
|
+
formStyle?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Accesos rápidos: un botón de ícono por tipo junto a "Agregar campo", que agrega ese campo sin abrir
|
|
67
|
+
* el selector. Respeta `fieldTypes` / `excludeFieldTypes` y los máximos. Por defecto: ninguno.
|
|
68
|
+
*/
|
|
69
|
+
quickAddTypes?: FieldType[];
|
|
70
|
+
/** Igual que `quickAddTypes`, para "Agregar sub-campo" del repetidor (el repetidor no se anida). Por defecto: ninguno. */
|
|
71
|
+
quickAddSubFieldTypes?: FieldType[];
|
|
60
72
|
/**
|
|
61
73
|
* Máximos (enteros positivos; omitido = sin límite). Al alcanzarlos se deshabilita "Agregar"/"Duplicar"
|
|
62
74
|
* y no se puede cargar un JSON que los supere. Un formulario existente que ya los supere se respeta.
|
|
@@ -98,6 +110,10 @@ export interface ResolvedFormBuilderConfig {
|
|
|
98
110
|
allowNameEdit: boolean | null;
|
|
99
111
|
visibilityRules: boolean;
|
|
100
112
|
styleSection: boolean;
|
|
113
|
+
formStyle: boolean;
|
|
114
|
+
/** Accesos rápidos ya filtrados por los tipos disponibles (sin repetidos, en el orden pedido). */
|
|
115
|
+
quickAddTypes: FieldType[];
|
|
116
|
+
quickAddSubFieldTypes: FieldType[];
|
|
101
117
|
limits: FormBuilderLimits;
|
|
102
118
|
/** null = no definido en la config (se usan las entradas `previewMode` / `surveyPreviewOptions`). */
|
|
103
119
|
preview: {
|
|
@@ -17,6 +17,7 @@ export declare const DICTIONARY_EN: {
|
|
|
17
17
|
readonly select: "Select";
|
|
18
18
|
readonly selected: "Selected";
|
|
19
19
|
readonly detail: "Detail";
|
|
20
|
+
readonly more_actions: "More actions";
|
|
20
21
|
};
|
|
21
22
|
readonly table: {
|
|
22
23
|
readonly search_label: "Search";
|
|
@@ -119,8 +120,24 @@ export declare const DICTIONARY_EN: {
|
|
|
119
120
|
readonly field: "Field";
|
|
120
121
|
readonly operator: "Operator";
|
|
121
122
|
readonly value: "Value";
|
|
123
|
+
readonly amount: "Amount";
|
|
124
|
+
readonly unit: "Unit";
|
|
122
125
|
};
|
|
123
126
|
};
|
|
127
|
+
readonly relative_date: {
|
|
128
|
+
readonly unit_days: "Days";
|
|
129
|
+
readonly unit_weeks: "Weeks";
|
|
130
|
+
readonly unit_months: "Months";
|
|
131
|
+
readonly unit_years: "Years";
|
|
132
|
+
readonly days_one: "{{count}} day";
|
|
133
|
+
readonly days_other: "{{count}} days";
|
|
134
|
+
readonly weeks_one: "{{count}} week";
|
|
135
|
+
readonly weeks_other: "{{count}} weeks";
|
|
136
|
+
readonly months_one: "{{count}} month";
|
|
137
|
+
readonly months_other: "{{count}} months";
|
|
138
|
+
readonly years_one: "{{count}} year";
|
|
139
|
+
readonly years_other: "{{count}} years";
|
|
140
|
+
};
|
|
124
141
|
};
|
|
125
142
|
readonly step_form: {
|
|
126
143
|
readonly back: "Back";
|
|
@@ -235,6 +252,8 @@ export declare const DICTIONARY_EN: {
|
|
|
235
252
|
readonly visibility_summary: "Visible if {{field}} {{operator}} {{value}}";
|
|
236
253
|
readonly yes: "Yes";
|
|
237
254
|
readonly no: "No";
|
|
255
|
+
readonly quick_add: "Add {{type}}";
|
|
256
|
+
readonly quick_add_group: "Quick add";
|
|
238
257
|
readonly other_option: {
|
|
239
258
|
readonly enable: "Include an \"Other\" (please specify) option";
|
|
240
259
|
readonly enable_tip: "Adds an Other option with a text to specify. The text is saved as <identifier>__other.";
|
|
@@ -351,6 +370,18 @@ export declare const DICTIONARY_EN: {
|
|
|
351
370
|
readonly scaleMax: "End value";
|
|
352
371
|
readonly scaleMax_tip: "Default 5 (up to 20 points)";
|
|
353
372
|
readonly poolDisplayMode_tip: "How options are arranged";
|
|
373
|
+
readonly poolIconPosition: "Icon position";
|
|
374
|
+
readonly poolIconPosition_tip: "Where each option icon goes";
|
|
375
|
+
readonly poolIconPosition_start: "Start";
|
|
376
|
+
readonly poolIconPosition_start_detail: "Left of the text";
|
|
377
|
+
readonly poolIconPosition_top: "Top";
|
|
378
|
+
readonly poolIconPosition_top_detail: "Above the text, card style";
|
|
379
|
+
readonly poolIconSize: "Icon size";
|
|
380
|
+
readonly poolIconSize_tip: "Size of each option icon";
|
|
381
|
+
readonly poolIconSize_s: "Small";
|
|
382
|
+
readonly poolIconSize_m: "Medium";
|
|
383
|
+
readonly poolIconSize_l: "Large";
|
|
384
|
+
readonly poolIconSize_xl: "Extra large";
|
|
354
385
|
readonly poolGridColumns: "Columns";
|
|
355
386
|
readonly poolGridColumns_tip: "Options per row in grid mode (1 to 6)";
|
|
356
387
|
readonly poolTitle: "List title";
|
|
@@ -17,6 +17,7 @@ export declare const DICTIONARY_ES: {
|
|
|
17
17
|
readonly select: "Seleccionar";
|
|
18
18
|
readonly selected: "Seleccionados";
|
|
19
19
|
readonly detail: "Detalle";
|
|
20
|
+
readonly more_actions: "Más acciones";
|
|
20
21
|
};
|
|
21
22
|
readonly table: {
|
|
22
23
|
readonly search_label: "Buscar";
|
|
@@ -119,8 +120,24 @@ export declare const DICTIONARY_ES: {
|
|
|
119
120
|
readonly field: "Campo";
|
|
120
121
|
readonly operator: "Operador";
|
|
121
122
|
readonly value: "Valor";
|
|
123
|
+
readonly amount: "Cantidad";
|
|
124
|
+
readonly unit: "Unidad";
|
|
122
125
|
};
|
|
123
126
|
};
|
|
127
|
+
readonly relative_date: {
|
|
128
|
+
readonly unit_days: "Días";
|
|
129
|
+
readonly unit_weeks: "Semanas";
|
|
130
|
+
readonly unit_months: "Meses";
|
|
131
|
+
readonly unit_years: "Años";
|
|
132
|
+
readonly days_one: "{{count}} día";
|
|
133
|
+
readonly days_other: "{{count}} días";
|
|
134
|
+
readonly weeks_one: "{{count}} semana";
|
|
135
|
+
readonly weeks_other: "{{count}} semanas";
|
|
136
|
+
readonly months_one: "{{count}} mes";
|
|
137
|
+
readonly months_other: "{{count}} meses";
|
|
138
|
+
readonly years_one: "{{count}} año";
|
|
139
|
+
readonly years_other: "{{count}} años";
|
|
140
|
+
};
|
|
124
141
|
};
|
|
125
142
|
readonly step_form: {
|
|
126
143
|
readonly back: "Volver";
|
|
@@ -235,6 +252,8 @@ export declare const DICTIONARY_ES: {
|
|
|
235
252
|
readonly visibility_summary: "Visible si {{field}} {{operator}} {{value}}";
|
|
236
253
|
readonly yes: "Sí";
|
|
237
254
|
readonly no: "No";
|
|
255
|
+
readonly quick_add: "Agregar {{type}}";
|
|
256
|
+
readonly quick_add_group: "Agregar rápido";
|
|
238
257
|
readonly other_option: {
|
|
239
258
|
readonly enable: "Incluir opción «Otros» (especifica)";
|
|
240
259
|
readonly enable_tip: "Agrega la opción Otros con un texto para especificar. El texto se guarda en <identificador>__other.";
|
|
@@ -351,6 +370,18 @@ export declare const DICTIONARY_ES: {
|
|
|
351
370
|
readonly scaleMax: "Valor final";
|
|
352
371
|
readonly scaleMax_tip: "Por defecto 5 (máximo 20 puntos)";
|
|
353
372
|
readonly poolDisplayMode_tip: "Cómo se ordenan las opciones";
|
|
373
|
+
readonly poolIconPosition: "Posición del ícono";
|
|
374
|
+
readonly poolIconPosition_tip: "Dónde va el ícono de cada opción";
|
|
375
|
+
readonly poolIconPosition_start: "Al inicio";
|
|
376
|
+
readonly poolIconPosition_start_detail: "A la izquierda del texto";
|
|
377
|
+
readonly poolIconPosition_top: "Arriba";
|
|
378
|
+
readonly poolIconPosition_top_detail: "Encima del texto, tipo tarjeta";
|
|
379
|
+
readonly poolIconSize: "Tamaño del ícono";
|
|
380
|
+
readonly poolIconSize_tip: "Tamaño del ícono de cada opción";
|
|
381
|
+
readonly poolIconSize_s: "Pequeño";
|
|
382
|
+
readonly poolIconSize_m: "Mediano";
|
|
383
|
+
readonly poolIconSize_l: "Grande";
|
|
384
|
+
readonly poolIconSize_xl: "Muy grande";
|
|
354
385
|
readonly poolGridColumns: "Columnas";
|
|
355
386
|
readonly poolGridColumns_tip: "Opciones por fila en modo grid (1 a 6)";
|
|
356
387
|
readonly poolTitle: "Título del listado";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Búsqueda de texto sin distinguir mayúsculas ni tildes («ge» encuentra «Género», «n» encuentra «ñ»).
|
|
3
|
+
* Compartida por los buscadores de la librería (select, teléfono, tags, árbol, builder...).
|
|
4
|
+
*/
|
|
5
|
+
/** Texto normalizado para comparar: sin tildes ni diéresis, en minúsculas y sin espacios en los extremos. */
|
|
6
|
+
export declare function uicNormalizeSearch(value: string | null | undefined): string;
|
|
7
|
+
/** true si `text` contiene `query` (ambos normalizados). Una búsqueda vacía coincide siempre. */
|
|
8
|
+
export declare function uicSearchMatches(text: string | null | undefined, query: string | null | undefined): boolean;
|
|
9
|
+
/** Rangos [inicio, fin) del texto ORIGINAL donde aparece la búsqueda (sin distinguir tildes). */
|
|
10
|
+
export declare function uicFindMatchRanges(text: string, query: string): [number, number][];
|
|
11
|
+
/** HTML escapado del texto original con cada coincidencia envuelta en <mark>. */
|
|
12
|
+
export declare function uicHighlightMatchHtml(text: string | null | undefined, query: string | null | undefined): string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './lib/components/dynamic-form/repeater/repeater.component';
|
|
|
48
48
|
export * from './lib/components/user-formbuilder/user-formbuilder.component';
|
|
49
49
|
export * from './lib/components/user-formbuilder/formbuilder.config';
|
|
50
50
|
export * from './lib/components/rule-builder/rule-builder.component';
|
|
51
|
+
export * from './lib/components/rule-builder/condition-value';
|
|
51
52
|
export * from './lib/services/modal.service';
|
|
52
53
|
export * from './lib/services/modaRef';
|
|
53
54
|
export * from './lib/services/modal.constant';
|
|
@@ -71,5 +72,6 @@ export * from './lib/components/dynamic-form/form-engine.service';
|
|
|
71
72
|
export * from './lib/components/dynamic-form/form-state.service';
|
|
72
73
|
export * from './lib/components/dynamic-form/form-validators';
|
|
73
74
|
export * from './lib/components/dynamic-form/other-option';
|
|
75
|
+
export * from './lib/utils/search-text';
|
|
74
76
|
export * from './lib/theme/theme-scope';
|
|
75
77
|
export * from './lib/theme/colors';
|