ui-core-abv 0.9.1 → 0.9.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.
|
@@ -28,6 +28,10 @@ export type EditableForm = {
|
|
|
28
28
|
titleMargin?: number;
|
|
29
29
|
subtitleMargin?: number;
|
|
30
30
|
};
|
|
31
|
+
export type BuilderSchemaFile = {
|
|
32
|
+
schemaVersion: 1;
|
|
33
|
+
form: EditableForm;
|
|
34
|
+
};
|
|
31
35
|
export declare class UicUserFormbuilderComponent {
|
|
32
36
|
private readonly modalService;
|
|
33
37
|
private readonly tinyAlertService;
|
|
@@ -90,6 +94,11 @@ export declare class UicUserFormbuilderComponent {
|
|
|
90
94
|
stopPropertiesResize(): void;
|
|
91
95
|
printForm(): void;
|
|
92
96
|
copySchemaToClipboard(): void;
|
|
97
|
+
importSchemaFromFile(event: Event): Promise<void>;
|
|
98
|
+
private buildExportableForm;
|
|
99
|
+
private applyImportedForm;
|
|
100
|
+
private parseImportedSchema;
|
|
101
|
+
private isValidEditableForm;
|
|
93
102
|
submitForm(): void;
|
|
94
103
|
private deduplicateFieldNames;
|
|
95
104
|
private getDuplicatedFieldName;
|
|
@@ -104,6 +113,8 @@ export declare class UicUserFormbuilderComponent {
|
|
|
104
113
|
private removeNullProperties;
|
|
105
114
|
private prepareFieldDataForSubmit;
|
|
106
115
|
private cleanExternalValidationConfig;
|
|
116
|
+
private areSelectOptionsRecordsEqual;
|
|
117
|
+
private areSelectOptionArraysEqual;
|
|
107
118
|
private deepClone;
|
|
108
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicUserFormbuilderComponent, never>;
|
|
109
120
|
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>;
|
|
@@ -326,6 +326,13 @@ export declare const DICTIONARY_EN: {
|
|
|
326
326
|
readonly duplicate_identifier: "The identifier \"{{identifier}}\" is used more than once.";
|
|
327
327
|
readonly duplicate_identifier_title: "Validation error";
|
|
328
328
|
};
|
|
329
|
+
readonly import: {
|
|
330
|
+
readonly invalid_schema: "The file does not contain a valid form configuration.";
|
|
331
|
+
readonly invalid_schema_title: "Invalid file";
|
|
332
|
+
readonly confirm_overwrite: "This will replace the form you are currently editing. Do you want to continue?";
|
|
333
|
+
readonly confirm_overwrite_title: "Load configuration";
|
|
334
|
+
readonly confirm_overwrite_ok: "Load and replace";
|
|
335
|
+
};
|
|
329
336
|
readonly repeater: {
|
|
330
337
|
readonly no_subfields: "No sub-fields yet. Add one below.";
|
|
331
338
|
readonly add_subfield: "Add sub-field";
|
|
@@ -326,6 +326,13 @@ export declare const DICTIONARY_ES: {
|
|
|
326
326
|
readonly duplicate_identifier: "El identificador \"{{identifier}}\" se está usando más de una vez.";
|
|
327
327
|
readonly duplicate_identifier_title: "Error de validación";
|
|
328
328
|
};
|
|
329
|
+
readonly import: {
|
|
330
|
+
readonly invalid_schema: "El archivo no contiene una configuración de formulario válida.";
|
|
331
|
+
readonly invalid_schema_title: "Archivo inválido";
|
|
332
|
+
readonly confirm_overwrite: "Esto reemplazará el formulario que estás editando. ¿Deseas continuar?";
|
|
333
|
+
readonly confirm_overwrite_title: "Cargar configuración";
|
|
334
|
+
readonly confirm_overwrite_ok: "Cargar y reemplazar";
|
|
335
|
+
};
|
|
329
336
|
readonly repeater: {
|
|
330
337
|
readonly no_subfields: "Sin sub-campos. Añade uno abajo.";
|
|
331
338
|
readonly add_subfield: "Agregar sub-campo";
|