ui-core-abv 0.11.0 → 0.11.2
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 +4117 -2716
- 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/modal/side-modal/side-modal.component.d.ts +2 -3
- 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 +33 -16
- 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/block-editor.component.d.ts +41 -3
- package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts +15 -2
- package/lib/components/user-formbuilder/block-editor/field-editor/field-options-editor/field-options-editor.component.d.ts +27 -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/block-editor/field-type-selector/field-type-selector.component.d.ts +24 -3
- package/lib/components/user-formbuilder/form-preview/form-preview.component.d.ts +31 -13
- package/lib/components/user-formbuilder/formbuilder.utils.d.ts +10 -0
- package/lib/components/user-formbuilder/user-formbuilder.component.d.ts +83 -7
- package/lib/components/wizard/wizard.component.d.ts +1 -2
- package/lib/directives/tool-tip.directive.d.ts +5 -0
- package/lib/theme/colors.d.ts +24 -0
- package/lib/theme/theme-scope.d.ts +8 -0
- package/lib/translate/dictionary.en.d.ts +108 -2
- package/lib/translate/dictionary.es.d.ts +108 -2
- package/package.json +6 -5
- package/public-api.d.ts +3 -0
- package/src/lib/styles/_dark.scss +113 -0
- package/src/lib/styles/_default_colors.scss +103 -0
- package/src/lib/styles/_tokens.scss +6 -0
- package/src/lib/styles/_variables.scss +140 -101
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import { FieldConfig, FieldType } from '../../../dynamic-form/form.models';
|
|
2
|
+
import { UicDropdownContainerComponent } from '../../../dropdown-container/dropdown-container.component';
|
|
3
|
+
import { ButtonSize } from '../../../button/button.component';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type FieldTypeGroupKey = 'text' | 'choice' | 'datetime' | 'advanced' | 'other';
|
|
6
|
+
interface FieldTypeGroup {
|
|
7
|
+
key: FieldTypeGroupKey;
|
|
8
|
+
types: FieldConfig[];
|
|
9
|
+
}
|
|
3
10
|
export declare class FieldTypeSelectorComponent {
|
|
11
|
+
private readonly translateService;
|
|
4
12
|
excludeTypes: import("@angular/core").InputSignal<FieldType[]>;
|
|
5
|
-
|
|
13
|
+
/** Texto del botón disparador (clave de traducción o texto literal). */
|
|
14
|
+
label: import("@angular/core").InputSignal<string>;
|
|
15
|
+
size: import("@angular/core").InputSignal<ButtonSize>;
|
|
6
16
|
selectType: import("@angular/core").OutputEmitterRef<FieldConfig>;
|
|
7
|
-
|
|
17
|
+
private searchInput?;
|
|
18
|
+
search: import("@angular/core").WritableSignal<string>;
|
|
19
|
+
types: import("@angular/core").Signal<FieldConfig[]>;
|
|
20
|
+
filteredTypes: import("@angular/core").Signal<FieldConfig[]>;
|
|
21
|
+
groups: import("@angular/core").Signal<FieldTypeGroup[]>;
|
|
22
|
+
onOpen(): void;
|
|
23
|
+
onClosed(): void;
|
|
24
|
+
pick(type: FieldConfig): void;
|
|
25
|
+
/** Enter en el buscador agrega el primer resultado. */
|
|
26
|
+
pickFirst(dropdown: UicDropdownContainerComponent): void;
|
|
27
|
+
private normalize;
|
|
8
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldTypeSelectorComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldTypeSelectorComponent, "lib-field-type-selector", never, { "excludeTypes": { "alias": "excludeTypes"; "required": false; "isSignal": true; }; }, { "selectType": "selectType"; }, never, never, true, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldTypeSelectorComponent, "lib-field-type-selector", never, { "excludeTypes": { "alias": "excludeTypes"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "selectType": "selectType"; }, never, never, true, never>;
|
|
10
30
|
}
|
|
31
|
+
export {};
|
|
@@ -1,24 +1,42 @@
|
|
|
1
|
-
import { ComputedFieldResolver, ExternalValidatorResolver, FormSchema, SelectOptionsResolver } from '../../dynamic-form/form.models';
|
|
1
|
+
import { ComputedFieldResolver, ExternalValidatorResolver, FormResult, FormSchema, SelectOptionsResolver } from '../../dynamic-form/form.models';
|
|
2
|
+
import { SurveyAnimation, SurveyPageMode, SurveyTheme } from '../../survey/survey.models';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/** Cómo se muestra la vista previa del builder. */
|
|
5
|
+
export type FormBuilderPreviewMode = 'form' | 'survey';
|
|
6
|
+
/** Ajustes de la vista previa en modo encuesta. */
|
|
7
|
+
export interface FormBuilderSurveyPreviewOptions {
|
|
8
|
+
pageMode?: SurveyPageMode;
|
|
9
|
+
theme?: SurveyTheme | null;
|
|
10
|
+
/** @deprecated Sin efecto: la encuesta ya no avanza sola. */
|
|
11
|
+
autoAdvance?: boolean;
|
|
12
|
+
animation?: SurveyAnimation;
|
|
13
|
+
}
|
|
14
|
+
export interface FormPreviewData {
|
|
15
|
+
schema: FormSchema;
|
|
16
|
+
previewMode?: FormBuilderPreviewMode;
|
|
17
|
+
surveyOptions?: FormBuilderSurveyPreviewOptions | null;
|
|
18
|
+
selectOptionsResolver?: SelectOptionsResolver;
|
|
19
|
+
computedFieldResolver?: ComputedFieldResolver;
|
|
20
|
+
externalValidatorResolver?: ExternalValidatorResolver;
|
|
21
|
+
}
|
|
3
22
|
export declare class FormPreviewComponent {
|
|
4
|
-
data:
|
|
5
|
-
schema: FormSchema;
|
|
6
|
-
selectOptionsResolver?: SelectOptionsResolver;
|
|
7
|
-
computedFieldResolver?: ComputedFieldResolver;
|
|
8
|
-
externalValidatorResolver?: ExternalValidatorResolver;
|
|
9
|
-
};
|
|
23
|
+
data: FormPreviewData;
|
|
10
24
|
schema: FormSchema;
|
|
25
|
+
previewMode: FormBuilderPreviewMode;
|
|
26
|
+
surveyOptions: FormBuilderSurveyPreviewOptions;
|
|
11
27
|
selectOptionsResolver?: SelectOptionsResolver;
|
|
12
28
|
computedFieldResolver?: ComputedFieldResolver;
|
|
13
29
|
externalValidatorResolver?: ExternalValidatorResolver;
|
|
30
|
+
/** Resultado del último envío de la encuesta en la vista previa. */
|
|
31
|
+
surveyResult: FormResult | null;
|
|
32
|
+
/** Se incrementa para volver a montar la encuesta desde cero. */
|
|
33
|
+
surveyRun: number;
|
|
14
34
|
private readonly formWrapper?;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
selectOptionsResolver?: SelectOptionsResolver;
|
|
18
|
-
computedFieldResolver?: ComputedFieldResolver;
|
|
19
|
-
externalValidatorResolver?: ExternalValidatorResolver;
|
|
20
|
-
});
|
|
35
|
+
private readonly survey?;
|
|
36
|
+
constructor(data: FormPreviewData);
|
|
21
37
|
copyResponseToClipboard(): void;
|
|
38
|
+
onSurveySubmit(result: FormResult): void;
|
|
39
|
+
restartSurvey(): void;
|
|
22
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormPreviewComponent, never>;
|
|
23
41
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormPreviewComponent, "lib-form-preview", never, {}, {}, never, never, true, never>;
|
|
24
42
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clon profundo de objetos/arrays planos. Funciones, fechas y otras instancias se conservan
|
|
3
|
+
* por referencia (a diferencia de structuredClone, que falla con funciones).
|
|
4
|
+
*/
|
|
5
|
+
export declare function deepCloneValue<T>(value: T): T;
|
|
6
|
+
/** Devuelve `base` si no está usado; si no, `base_2`, `base_3`, ... */
|
|
7
|
+
export declare function uniqueName(base: string, used: Set<string>): string;
|
|
8
|
+
/** Preferencia por navegador; el almacenamiento puede no estar disponible (modo privado, SSR). */
|
|
9
|
+
export declare function readStoredPropertiesWidth(): number | null;
|
|
10
|
+
export declare function storePropertiesWidth(width: number): void;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { FieldConfig, FormField,
|
|
1
|
+
import { FieldConfig, FormField, SelectOptionsResolver, ComputedFieldResolver, ExternalValidatorResolver } from '../dynamic-form/form.models';
|
|
2
|
+
import { FormBuilderPreviewMode, FormBuilderSurveyPreviewOptions } from './form-preview/form-preview.component';
|
|
3
|
+
import { FieldMoveRequest } from './block-editor/block-editor.component';
|
|
4
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
5
|
import { AppSelectOption } from '../inputs/select/select.component';
|
|
6
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
export type { FormBuilderPreviewMode, FormBuilderSurveyPreviewOptions } from './form-preview/form-preview.component';
|
|
4
9
|
export type EditableField = {
|
|
5
10
|
id?: number | null;
|
|
6
11
|
code: string;
|
|
@@ -28,12 +33,30 @@ export type EditableForm = {
|
|
|
28
33
|
titleMargin?: number;
|
|
29
34
|
subtitleMargin?: number;
|
|
30
35
|
};
|
|
36
|
+
/** Elemento eliminado en el canvas, con lo necesario para reinsertarlo en su posición ("Deshacer"). */
|
|
37
|
+
export type FormBuilderRemovedItem = {
|
|
38
|
+
kind: 'field';
|
|
39
|
+
blockCode: string;
|
|
40
|
+
index: number;
|
|
41
|
+
item: EditableField;
|
|
42
|
+
} | {
|
|
43
|
+
kind: 'subfield';
|
|
44
|
+
blockCode: string;
|
|
45
|
+
parentCode: string;
|
|
46
|
+
index: number;
|
|
47
|
+
item: EditableField;
|
|
48
|
+
} | {
|
|
49
|
+
kind: 'block';
|
|
50
|
+
index: number;
|
|
51
|
+
item: EditableBlock;
|
|
52
|
+
};
|
|
31
53
|
export type BuilderSchemaFile = {
|
|
32
54
|
schemaVersion: 1;
|
|
33
55
|
form: EditableForm;
|
|
34
56
|
};
|
|
35
57
|
export declare class UicUserFormbuilderComponent {
|
|
36
58
|
private readonly modalService;
|
|
59
|
+
private readonly host;
|
|
37
60
|
private readonly tinyAlertService;
|
|
38
61
|
private readonly translateService;
|
|
39
62
|
disabled: boolean;
|
|
@@ -46,6 +69,10 @@ export declare class UicUserFormbuilderComponent {
|
|
|
46
69
|
externalValidatorResolver?: ExternalValidatorResolver;
|
|
47
70
|
readOnly: import("@angular/core").InputSignal<boolean>;
|
|
48
71
|
enableNameModify: import("@angular/core").InputSignal<boolean>;
|
|
72
|
+
/** Vista previa como formulario (por defecto) o como encuesta (ui-survey). */
|
|
73
|
+
previewMode: import("@angular/core").InputSignal<FormBuilderPreviewMode>;
|
|
74
|
+
/** Ajustes de la vista previa en modo encuesta (modo de página, tema, auto-avance). */
|
|
75
|
+
surveyPreviewOptions: import("@angular/core").InputSignal<FormBuilderSurveyPreviewOptions | null>;
|
|
49
76
|
editableFormInput: import("@angular/core").InputSignal<EditableForm>;
|
|
50
77
|
submitFormRequest: import("@angular/core").OutputEmitterRef<EditableForm>;
|
|
51
78
|
nextBlockId: number;
|
|
@@ -55,7 +82,12 @@ export declare class UicUserFormbuilderComponent {
|
|
|
55
82
|
editableSubtitleFontSize: import("@angular/core").WritableSignal<number | null>;
|
|
56
83
|
editableTitleMargin: import("@angular/core").WritableSignal<number | null>;
|
|
57
84
|
editableSubtitleMargin: import("@angular/core").WritableSignal<number | null>;
|
|
58
|
-
|
|
85
|
+
readonly columnOptions: number[];
|
|
86
|
+
/** El menú "⋯" se abre hacia abajo alineado a la derecha del botón. */
|
|
87
|
+
readonly menuPositions: ConnectedPosition[];
|
|
88
|
+
/** Confirmación breve tras copiar el JSON (se muestra en el propio ítem del menú). */
|
|
89
|
+
schemaCopied: import("@angular/core").WritableSignal<boolean>;
|
|
90
|
+
private copiedTimer;
|
|
59
91
|
editableBlocks: import("@angular/core").WritableSignal<EditableBlock[]>;
|
|
60
92
|
editingSnapshot: import("@angular/core").WritableSignal<EditableForm | null>;
|
|
61
93
|
isReadOnly: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -67,16 +99,30 @@ export declare class UicUserFormbuilderComponent {
|
|
|
67
99
|
focusNewFieldCode: import("@angular/core").WritableSignal<string | null>;
|
|
68
100
|
focusNewSubFieldCode: import("@angular/core").WritableSignal<string | null>;
|
|
69
101
|
propertiesWidth: import("@angular/core").WritableSignal<number>;
|
|
70
|
-
|
|
102
|
+
isResizing: import("@angular/core").WritableSignal<boolean>;
|
|
103
|
+
/** Ids de las listas de campos de cada bloque (para arrastrar campos entre bloques). */
|
|
104
|
+
fieldListIds: import("@angular/core").Signal<string[]>;
|
|
71
105
|
visibilityParentFieldCodes: import("@angular/core").Signal<Set<string>>;
|
|
72
|
-
|
|
106
|
+
/** Campos raíz indexados por code (para describir reglas de visibilidad entre bloques). */
|
|
107
|
+
fieldLookup: import("@angular/core").Signal<Map<string, EditableField>>;
|
|
108
|
+
/** Huella del último estado guardado/cargado; se compara contra el estado actual. */
|
|
109
|
+
private readonly baselineFingerprint;
|
|
110
|
+
private readonly currentFingerprint;
|
|
111
|
+
/** true si hay cambios sin guardar en modo edición. Público para que el consumidor lo use en un CanDeactivate. */
|
|
112
|
+
readonly hasUnsavedChanges: import("@angular/core").Signal<boolean>;
|
|
113
|
+
/** Último elemento eliminado que aún se puede restaurar. */
|
|
114
|
+
pendingUndo: import("@angular/core").WritableSignal<{
|
|
115
|
+
removed: FormBuilderRemovedItem;
|
|
116
|
+
message: string;
|
|
117
|
+
} | null>;
|
|
118
|
+
private undoTimer;
|
|
73
119
|
private resizeStartX;
|
|
74
120
|
private resizeStartWidth;
|
|
75
121
|
dependencyOptions: import("@angular/core").Signal<Record<string, AppSelectOption[]>>;
|
|
76
122
|
subFieldDependencyOptions: import("@angular/core").Signal<Record<string, AppSelectOption[]>>;
|
|
77
123
|
constructor();
|
|
78
124
|
addBlock(): void;
|
|
79
|
-
deleteBlock(code: string): void
|
|
125
|
+
deleteBlock(code: string): Promise<void>;
|
|
80
126
|
addField(blockCode: string, newFieldType: FieldConfig): void;
|
|
81
127
|
selectField(field: EditableField | null): void;
|
|
82
128
|
onSelectSubField(event: {
|
|
@@ -87,10 +133,40 @@ export declare class UicUserFormbuilderComponent {
|
|
|
87
133
|
parentCode: string;
|
|
88
134
|
subField: EditableField;
|
|
89
135
|
}): void;
|
|
136
|
+
registerRemoval(removed: FormBuilderRemovedItem): void;
|
|
137
|
+
undoRemoval(): void;
|
|
138
|
+
/**
|
|
139
|
+
* Se descarta el "Deshacer" al crear elementos nuevos: los códigos (field_N, sf_N, block_N)
|
|
140
|
+
* se recalculan desde el máximo actual, así que restaurar después podría duplicar un código.
|
|
141
|
+
*/
|
|
142
|
+
dismissUndo(): void;
|
|
143
|
+
private clearUndoTimer;
|
|
144
|
+
private blockDisplayName;
|
|
145
|
+
onBeforeUnload(event: BeforeUnloadEvent): void;
|
|
146
|
+
private markAsSaved;
|
|
147
|
+
/**
|
|
148
|
+
* Representación canónica para comparar estados: ignora la config hidratada (`field`),
|
|
149
|
+
* el orden de claves y los valores "vacíos" (null, undefined, '', false, []) que el editor
|
|
150
|
+
* de propiedades puede agregar al seleccionar un campo sin que el usuario cambie nada.
|
|
151
|
+
*/
|
|
152
|
+
private fingerprint;
|
|
90
153
|
onSubFieldChange(updatedFieldData: FormField): void;
|
|
91
154
|
startPropertiesResize(event: MouseEvent): void;
|
|
92
155
|
onPropertiesResize(event: MouseEvent): void;
|
|
93
156
|
stopPropertiesResize(): void;
|
|
157
|
+
/** Doble clic en el borde: vuelve al ancho por defecto. */
|
|
158
|
+
resetPropertiesWidth(): void;
|
|
159
|
+
/** Cierra el panel de propiedades: deselecciona el campo y quita el foco del input activo. */
|
|
160
|
+
closeProperties(): void;
|
|
161
|
+
/** Esc dentro del panel lo cierra, salvo que otro control (p. ej. un select abierto) ya lo haya usado. */
|
|
162
|
+
onPropertiesEscape(event: Event): void;
|
|
163
|
+
/** Clic en el fondo del canvas (fuera de bloques y campos) cierra las propiedades. */
|
|
164
|
+
onCanvasBackgroundClick(event: MouseEvent): void;
|
|
165
|
+
backToRepeater(parentCode: string): void;
|
|
166
|
+
reorderBlocks(event: CdkDragDrop<unknown>): void;
|
|
167
|
+
moveField(move: FieldMoveRequest): void;
|
|
168
|
+
/** Copia el campo justo debajo del original y lo selecciona. */
|
|
169
|
+
duplicateField(fieldCode: string): void;
|
|
94
170
|
printForm(): void;
|
|
95
171
|
copySchemaToClipboard(): void;
|
|
96
172
|
importSchemaFromFile(event: Event): Promise<void>;
|
|
@@ -102,7 +178,7 @@ export declare class UicUserFormbuilderComponent {
|
|
|
102
178
|
private deduplicateFieldNames;
|
|
103
179
|
private getDuplicatedFieldName;
|
|
104
180
|
enableEditMode(): void;
|
|
105
|
-
discardChanges(): void
|
|
181
|
+
discardChanges(): Promise<void>;
|
|
106
182
|
onBlockChange(index: number, updated: EditableBlock): void;
|
|
107
183
|
onFieldChange(updatedField: FormField): void;
|
|
108
184
|
private prepareBlocksForLocalState;
|
|
@@ -116,7 +192,7 @@ export declare class UicUserFormbuilderComponent {
|
|
|
116
192
|
private areSelectOptionArraysEqual;
|
|
117
193
|
private deepClone;
|
|
118
194
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicUserFormbuilderComponent, never>;
|
|
119
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicUserFormbuilderComponent, "ui-user-formbuilder", never, { "disabled": { "alias": "disabled"; "required": false; }; "formTitle": { "alias": "formTitle"; "required": false; }; "optionSources": { "alias": "optionSources"; "required": false; }; "computedSources": { "alias": "computedSources"; "required": false; }; "validationSources": { "alias": "validationSources"; "required": false; }; "selectOptionsResolver": { "alias": "selectOptionsResolver"; "required": false; }; "computedFieldResolver": { "alias": "computedFieldResolver"; "required": false; }; "externalValidatorResolver": { "alias": "externalValidatorResolver"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "enableNameModify": { "alias": "enableNameModify"; "required": false; "isSignal": true; }; "editableFormInput": { "alias": "editableForm"; "required": false; "isSignal": true; }; }, { "submitFormRequest": "submitFormRequest"; }, never, never, true, never>;
|
|
195
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicUserFormbuilderComponent, "ui-user-formbuilder", never, { "disabled": { "alias": "disabled"; "required": false; }; "formTitle": { "alias": "formTitle"; "required": false; }; "optionSources": { "alias": "optionSources"; "required": false; }; "computedSources": { "alias": "computedSources"; "required": false; }; "validationSources": { "alias": "validationSources"; "required": false; }; "selectOptionsResolver": { "alias": "selectOptionsResolver"; "required": false; }; "computedFieldResolver": { "alias": "computedFieldResolver"; "required": false; }; "externalValidatorResolver": { "alias": "externalValidatorResolver"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "enableNameModify": { "alias": "enableNameModify"; "required": false; "isSignal": true; }; "previewMode": { "alias": "previewMode"; "required": false; "isSignal": true; }; "surveyPreviewOptions": { "alias": "surveyPreviewOptions"; "required": false; "isSignal": true; }; "editableFormInput": { "alias": "editableForm"; "required": false; "isSignal": true; }; }, { "submitFormRequest": "submitFormRequest"; }, never, never, true, never>;
|
|
120
196
|
}
|
|
121
197
|
export interface ComputedSourceOption {
|
|
122
198
|
id: string | number;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { UicWizardStepComponent } from './wizard-step.component';
|
|
2
|
-
import { ButtonColor } from '../button/button.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class UicWizardComponent {
|
|
5
4
|
steps: import("@angular/core").Signal<readonly UicWizardStepComponent[]>;
|
|
6
5
|
navigationEnabled: import("@angular/core").InputSignal<boolean>;
|
|
7
|
-
buttonsColor: import("@angular/core").InputSignal<
|
|
6
|
+
buttonsColor: import("@angular/core").InputSignal<import("ui-core-abv").UicColor>;
|
|
8
7
|
stepChange: import("@angular/core").OutputEmitterRef<number>;
|
|
9
8
|
wizardComplete: import("@angular/core").OutputEmitterRef<void>;
|
|
10
9
|
currentIdx: import("@angular/core").WritableSignal<number>;
|
|
@@ -11,6 +11,11 @@ export declare class UicToolTipDirective {
|
|
|
11
11
|
private canShowTooltipOnHover;
|
|
12
12
|
private setTooltipComponentProperties;
|
|
13
13
|
onMouseLeave(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Al presionar se oculta: si el elemento inicia un arrastre (CDK drag) o se mueve/destruye,
|
|
16
|
+
* el navegador puede no disparar mouseleave y el tooltip quedaría fijo en pantalla.
|
|
17
|
+
*/
|
|
18
|
+
onPointerDown(): void;
|
|
14
19
|
ngOnDestroy(): void;
|
|
15
20
|
destroy(): void;
|
|
16
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicToolTipDirective, never>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colores de la librería.
|
|
3
|
+
*
|
|
4
|
+
* Cada color tiene una paleta en _default_colors.scss (--{color}-25 … --{color}-950) y clases en
|
|
5
|
+
* los componentes (btn-{color}-*, f-{color}, pb-{color}, slc-/slt-{color}, ui-trc-{color},
|
|
6
|
+
* header-{color}, lc-{color}, tag-{color}).
|
|
7
|
+
*
|
|
8
|
+
* Los colores adicionales deben coincidir con $uic-extra-colors (_variables.scss) y con las
|
|
9
|
+
* claves de $uic-extra-palettes (_default_colors.scss).
|
|
10
|
+
*/
|
|
11
|
+
export declare const UIC_BASE_COLORS: readonly ["primary", "secondary", "red", "green", "blue", "yellow", "black", "grey", "white"];
|
|
12
|
+
export declare const UIC_EXTRA_COLORS: readonly ["dark-green", "light-blue", "pink", "dark-red", "orange", "teal"];
|
|
13
|
+
export type UicBaseColor = typeof UIC_BASE_COLORS[number];
|
|
14
|
+
export type UicExtraColor = typeof UIC_EXTRA_COLORS[number];
|
|
15
|
+
export type UicColor = UicBaseColor | UicExtraColor;
|
|
16
|
+
/** Todos los colores, en el orden en que se ofrecen en selectores y builders. */
|
|
17
|
+
export declare const UIC_COLORS: readonly UicColor[];
|
|
18
|
+
/** Colores con paleta de tonos (--{color}-500…). 'black' y 'white' no tienen paleta propia. */
|
|
19
|
+
export declare const UIC_PALETTE_COLORS: readonly string[];
|
|
20
|
+
/** Opciones { id, text } para un select de colores (p. ej., en el builder). */
|
|
21
|
+
export declare function uicColorOptions(colors?: readonly UicColor[]): {
|
|
22
|
+
id: UicColor;
|
|
23
|
+
text: string;
|
|
24
|
+
}[];
|
|
@@ -17,3 +17,11 @@ export declare function findThemeScope(element: Element | null | undefined): HTM
|
|
|
17
17
|
* Sin alcance no hace nada, así que es seguro llamarlo siempre.
|
|
18
18
|
*/
|
|
19
19
|
export declare function applyThemeScope(origin: Element | null | undefined, target: HTMLElement): void;
|
|
20
|
+
/** Atributo con el que la app elige el tema claro u oscuro (ver styles/_dark.scss). */
|
|
21
|
+
export declare const UIC_COLOR_SCHEME_ATTR = "data-theme";
|
|
22
|
+
/**
|
|
23
|
+
* Si `origin` está dentro de una zona con un data-theme distinto del de <html> (p. ej. una zona
|
|
24
|
+
* clara dentro de una app en oscuro), se lo pone también a `target`. Los paneles se dibujan en
|
|
25
|
+
* <body>: sin esto heredarían el tema de la página y no el de la zona.
|
|
26
|
+
*/
|
|
27
|
+
export declare function applyColorScheme(origin: Element | null | undefined, target: HTMLElement): void;
|
|
@@ -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,8 +186,72 @@ 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";
|
|
193
|
+
readonly no_fields_drop: "Add a field or drag one from another block";
|
|
194
|
+
readonly copy_label: "{{label}} (copy)";
|
|
195
|
+
readonly block: {
|
|
196
|
+
readonly drag: "Drag to reorder the block";
|
|
197
|
+
readonly collapse: "Collapse block";
|
|
198
|
+
readonly expand: "Expand block";
|
|
199
|
+
readonly field_count: "{{count}} field(s)";
|
|
200
|
+
readonly empty_read_only: "This block has no fields";
|
|
201
|
+
};
|
|
202
|
+
readonly properties: {
|
|
203
|
+
readonly title: "Properties";
|
|
204
|
+
readonly resize: "Drag to resize (double-click to reset)";
|
|
205
|
+
readonly back_to_repeater: "Back to repeater";
|
|
206
|
+
readonly close: "Close properties (Esc)";
|
|
207
|
+
};
|
|
208
|
+
readonly untitled_block: "Block {{index}}";
|
|
209
|
+
readonly unsaved_changes: "Unsaved changes";
|
|
210
|
+
readonly read_only: "Read only";
|
|
211
|
+
readonly edit: "Edit";
|
|
212
|
+
readonly no_blocks: "This form has no blocks yet";
|
|
213
|
+
readonly select_field_to_view: "Select a field to view its properties";
|
|
214
|
+
readonly menu: {
|
|
215
|
+
readonly more: "More options";
|
|
216
|
+
readonly copy_json: "Copy JSON";
|
|
217
|
+
readonly copied: "JSON copied";
|
|
218
|
+
readonly load_json: "Load JSON";
|
|
219
|
+
readonly layout_title: "Form layout";
|
|
220
|
+
readonly columns: "Columns";
|
|
221
|
+
readonly size: "Size";
|
|
222
|
+
readonly margin: "Margin";
|
|
223
|
+
readonly title: "Title";
|
|
224
|
+
readonly subtitle: "Subtitle";
|
|
225
|
+
readonly layout_hint: "Sizes and margins in pixels. Leave empty to use the default.";
|
|
226
|
+
};
|
|
227
|
+
readonly no_changes: "There are no changes to save";
|
|
228
|
+
readonly discard_changes: "Discard changes";
|
|
229
|
+
readonly discard_confirm: "All unsaved changes will be lost. Do you want to continue?";
|
|
230
|
+
readonly discard_confirm_title: "Discard changes";
|
|
231
|
+
readonly discard_confirm_ok: "Discard";
|
|
232
|
+
readonly delete_block_confirm: "The block \"{{label}}\" contains {{count}} field(s), which will also be deleted.";
|
|
233
|
+
readonly delete_block_confirm_title: "Delete block";
|
|
234
|
+
readonly delete_block_confirm_ok: "Delete block";
|
|
235
|
+
readonly visibility_summary: "Visible if {{field}} {{operator}} {{value}}";
|
|
236
|
+
readonly yes: "Yes";
|
|
237
|
+
readonly no: "No";
|
|
238
|
+
readonly undo: {
|
|
239
|
+
readonly field_removed: "Field \"{{label}}\" deleted";
|
|
240
|
+
readonly subfield_removed: "Sub-field \"{{label}}\" deleted";
|
|
241
|
+
readonly block_removed: "Block \"{{label}}\" deleted";
|
|
242
|
+
readonly action: "Undo";
|
|
243
|
+
};
|
|
244
|
+
readonly field_picker: {
|
|
245
|
+
readonly search: "Search field type...";
|
|
246
|
+
readonly empty: "No field type matches your search";
|
|
247
|
+
readonly groups: {
|
|
248
|
+
readonly text: "Text";
|
|
249
|
+
readonly choice: "Choice";
|
|
250
|
+
readonly datetime: "Date & time";
|
|
251
|
+
readonly advanced: "Advanced";
|
|
252
|
+
readonly other: "Other";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
190
255
|
readonly base: {
|
|
191
256
|
readonly name: "Key";
|
|
192
257
|
readonly required: "Required";
|
|
@@ -254,6 +319,22 @@ export declare const DICTIONARY_EN: {
|
|
|
254
319
|
readonly templateLinkLabel_tip: "Clickable text shown to download the template";
|
|
255
320
|
readonly poolEnabledListView: "Enable list view";
|
|
256
321
|
readonly poolEnabledListView_tip: "Show pool in list mode";
|
|
322
|
+
readonly poolDisplayMode: "Layout";
|
|
323
|
+
readonly minSelections: "Minimum selections";
|
|
324
|
+
readonly minSelections_tip: "Multiple selection only. Empty or 0: no minimum";
|
|
325
|
+
readonly maxSelections: "Maximum selections";
|
|
326
|
+
readonly maxSelections_tip: "Multiple selection only. Empty: no limit";
|
|
327
|
+
readonly scaleMode: "Scale type";
|
|
328
|
+
readonly scaleMode_tip: "Numbers or cumulative icons";
|
|
329
|
+
readonly scaleIcon: "Icon";
|
|
330
|
+
readonly scaleIcon_tip: "Remix Icon class (star by default)";
|
|
331
|
+
readonly scaleMin: "Start value";
|
|
332
|
+
readonly scaleMin_tip: "Default 1 (use 0 for NPS)";
|
|
333
|
+
readonly scaleMax: "End value";
|
|
334
|
+
readonly scaleMax_tip: "Default 5 (up to 20 points)";
|
|
335
|
+
readonly poolDisplayMode_tip: "How options are arranged";
|
|
336
|
+
readonly poolGridColumns: "Columns";
|
|
337
|
+
readonly poolGridColumns_tip: "Options per row in grid mode (1 to 6)";
|
|
257
338
|
readonly poolTitle: "List title";
|
|
258
339
|
readonly poolTitle_tip: "Title for list header";
|
|
259
340
|
readonly options: "Options";
|
|
@@ -303,15 +384,36 @@ export declare const DICTIONARY_EN: {
|
|
|
303
384
|
readonly externalValidationKey_tip: "Key of the external validator to run on field blur";
|
|
304
385
|
};
|
|
305
386
|
readonly options_editor: {
|
|
387
|
+
readonly remove_option: "Remove option";
|
|
388
|
+
readonly no_options_read_only: "No options.";
|
|
389
|
+
readonly keyboard_hint: "Enter moves to the next option. You can paste a list (one option per line).";
|
|
306
390
|
readonly title: "Options";
|
|
307
391
|
readonly code_label: "Code";
|
|
308
392
|
readonly name_label: "Label";
|
|
309
393
|
readonly code_placeholder: "ID";
|
|
310
394
|
readonly display_name_placeholder: "Display name";
|
|
311
395
|
readonly add_option: "Add option";
|
|
396
|
+
readonly scale_labels_title: "Scale labels";
|
|
397
|
+
readonly scale_value_label: "Value";
|
|
398
|
+
readonly scale_text_label: "Label";
|
|
399
|
+
readonly scale_text_placeholder: "E.g.: Not likely";
|
|
400
|
+
readonly advanced: "Advanced";
|
|
401
|
+
readonly advanced_title: "Option icon and color";
|
|
402
|
+
readonly advanced_hint: "Type a Remix Icon class or pick a suggestion. The color applies to the icon. More icons at";
|
|
403
|
+
readonly icon_label: "Icon";
|
|
404
|
+
readonly icon_suggestions: "Icon suggestions";
|
|
405
|
+
readonly color_label: "Color";
|
|
406
|
+
readonly no_color: "No color";
|
|
407
|
+
readonly clear_style: "Remove icon and color";
|
|
408
|
+
readonly no_options: "Add options to set their icon and color.";
|
|
312
409
|
};
|
|
313
410
|
readonly field_editor: {
|
|
314
411
|
readonly dependency_title: "Dependency";
|
|
412
|
+
readonly dependency_empty: "Always visible. Add a relation to show it only when another field meets a condition.";
|
|
413
|
+
readonly and: "and";
|
|
414
|
+
readonly dependency_empty_read_only: "Always visible.";
|
|
415
|
+
readonly edit_rule: "Edit relation";
|
|
416
|
+
readonly configured_count: "{{count}} configured propert(ies)";
|
|
315
417
|
readonly dependency_description: "This field is shown only if all rules are met:";
|
|
316
418
|
readonly add_relation: "Add relation";
|
|
317
419
|
readonly remove_relation: "Remove relation";
|
|
@@ -355,6 +457,8 @@ export declare const DICTIONARY_EN: {
|
|
|
355
457
|
readonly repeater: {
|
|
356
458
|
readonly no_subfields: "No sub-fields yet. Add one below.";
|
|
357
459
|
readonly add_subfield: "Add sub-field";
|
|
460
|
+
readonly show_subfields: "Show sub-fields";
|
|
461
|
+
readonly hide_subfields: "Hide sub-fields";
|
|
358
462
|
};
|
|
359
463
|
readonly schema: {
|
|
360
464
|
readonly title_font_size: "Title size";
|
|
@@ -372,6 +476,8 @@ export declare const DICTIONARY_EN: {
|
|
|
372
476
|
readonly maxlength: "{{field}} cannot exceed {{requiredLength}} characters.";
|
|
373
477
|
readonly pattern: "{{field}} has an invalid format.";
|
|
374
478
|
readonly external_invalid: "{{field}} is not valid.";
|
|
479
|
+
readonly min_selections: "{{field}}: choose at least {{min}} options.";
|
|
480
|
+
readonly max_selections: "{{field}}: choose at most {{max}} options.";
|
|
375
481
|
};
|
|
376
482
|
readonly clipboard: {
|
|
377
483
|
readonly copy_error: "Could not copy:";
|