ui-core-abv 0.7.9 → 0.8.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.
@@ -12,6 +12,10 @@ export declare class BlockEditorComponent {
12
12
  parentCode: string;
13
13
  subField: EditableField;
14
14
  } | null>;
15
+ notifyNewSubField: import("@angular/core").OutputEmitterRef<{
16
+ parentCode: string;
17
+ subField: EditableField;
18
+ }>;
15
19
  selectedFieldId: import("@angular/core").InputSignal<string | null>;
16
20
  selectedSubFieldCode: import("@angular/core").InputSignal<string | null>;
17
21
  selectedSubFieldParentCode: import("@angular/core").InputSignal<string | null>;
@@ -39,5 +43,5 @@ export declare class BlockEditorComponent {
39
43
  isBlockVisibilityParent(): boolean;
40
44
  reorderFields(event: CdkDragDrop<EditableField[]>): void;
41
45
  static ɵfac: i0.ɵɵFactoryDeclaration<BlockEditorComponent, never>;
42
- 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; }; }, { "blockChange": "blockChange"; "addFieldRequest": "addFieldRequest"; "deleteBlock": "deleteBlock"; "notifySelectedField": "notifySelectedField"; "notifySelectedSubField": "notifySelectedSubField"; }, never, never, true, never>;
46
+ 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; }; }, { "blockChange": "blockChange"; "addFieldRequest": "addFieldRequest"; "deleteBlock": "deleteBlock"; "notifySelectedField": "notifySelectedField"; "notifySelectedSubField": "notifySelectedSubField"; "notifyNewSubField": "notifyNewSubField"; }, never, never, true, never>;
43
47
  }
@@ -15,6 +15,7 @@ export declare class FieldEditorComponent {
15
15
  config: import("@angular/core").InputSignal<EditableField>;
16
16
  focusRequiredField: import("@angular/core").InputSignal<boolean>;
17
17
  isSubField: import("@angular/core").InputSignal<boolean>;
18
+ enableNameModify: import("@angular/core").InputSignal<boolean>;
18
19
  options: import("@angular/core").InputSignal<Record<string, AppSelectOption[]>>;
19
20
  hiddenSections: import("@angular/core").WritableSignal<string[]>;
20
21
  editingRuleIndex: import("@angular/core").WritableSignal<number>;
@@ -22,7 +23,7 @@ export declare class FieldEditorComponent {
22
23
  fieldChange: import("@angular/core").OutputEmitterRef<FormField>;
23
24
  nameManuallySet: import("@angular/core").OutputEmitterRef<void>;
24
25
  localField: import("@angular/core").WritableSignal<FormField>;
25
- requiredFields: FormField[];
26
+ requiredFields: import("@angular/core").Signal<FormField[]>;
26
27
  optionsSourceFields: import("@angular/core").Signal<FormField[]>;
27
28
  computedSourceFields: import("@angular/core").Signal<FormField[]>;
28
29
  advancedFields: import("@angular/core").Signal<FormField[]>;
@@ -47,7 +48,6 @@ export declare class FieldEditorComponent {
47
48
  updateOptions(options: AppSelectOption[]): void;
48
49
  private getDependencyFieldLabel;
49
50
  toggleSection(section: string): void;
50
- private buildRequiredFields;
51
51
  private buildDesignBlocks;
52
52
  private buildAdvancedBlocks;
53
53
  private buildOptionsSourceFields;
@@ -62,5 +62,5 @@ export declare class FieldEditorComponent {
62
62
  private buildComputedSourceFields;
63
63
  private buildExternalValidationFields;
64
64
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldEditorComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldEditorComponent, "lib-field-editor", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "focusRequiredField": { "alias": "focusRequiredField"; "required": false; "isSignal": true; }; "isSubField": { "alias": "isSubField"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "fieldChange": "fieldChange"; "nameManuallySet": "nameManuallySet"; }, never, never, true, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldEditorComponent, "lib-field-editor", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "focusRequiredField": { "alias": "focusRequiredField"; "required": false; "isSignal": true; }; "isSubField": { "alias": "isSubField"; "required": false; "isSignal": true; }; "enableNameModify": { "alias": "enableNameModify"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "fieldChange": "fieldChange"; "nameManuallySet": "nameManuallySet"; }, never, never, true, never>;
66
66
  }
@@ -41,6 +41,7 @@ export declare class UicUserFormbuilderComponent {
41
41
  computedFieldResolver?: ComputedFieldResolver;
42
42
  externalValidatorResolver?: ExternalValidatorResolver;
43
43
  readOnly: import("@angular/core").InputSignal<boolean>;
44
+ enableNameModify: import("@angular/core").InputSignal<boolean>;
44
45
  editableFormInput: import("@angular/core").InputSignal<EditableForm>;
45
46
  submitFormRequest: import("@angular/core").OutputEmitterRef<EditableForm>;
46
47
  nextBlockId: number;
@@ -60,6 +61,7 @@ export declare class UicUserFormbuilderComponent {
60
61
  subField: EditableField;
61
62
  } | null>;
62
63
  focusNewFieldCode: import("@angular/core").WritableSignal<string | null>;
64
+ focusNewSubFieldCode: import("@angular/core").WritableSignal<string | null>;
63
65
  propertiesWidth: import("@angular/core").WritableSignal<number>;
64
66
  previewSchema: import("@angular/core").Signal<FormSchema>;
65
67
  visibilityParentFieldCodes: import("@angular/core").Signal<Set<string>>;
@@ -78,7 +80,10 @@ export declare class UicUserFormbuilderComponent {
78
80
  subField: EditableField;
79
81
  } | null): void;
80
82
  onFieldNameManuallySet(): void;
81
- onSubFieldNameManuallySet(): void;
83
+ onNewSubField(event: {
84
+ parentCode: string;
85
+ subField: EditableField;
86
+ }): void;
82
87
  onSubFieldChange(updatedFieldData: FormField): void;
83
88
  startPropertiesResize(event: MouseEvent): void;
84
89
  onPropertiesResize(event: MouseEvent): void;
@@ -86,6 +91,7 @@ export declare class UicUserFormbuilderComponent {
86
91
  printForm(): void;
87
92
  copySchemaToClipboard(): void;
88
93
  submitForm(): void;
94
+ private deduplicateFieldNames;
89
95
  private getDuplicatedFieldName;
90
96
  enableEditMode(): void;
91
97
  discardChanges(): void;
@@ -99,7 +105,7 @@ export declare class UicUserFormbuilderComponent {
99
105
  private prepareFieldDataForSubmit;
100
106
  private deepClone;
101
107
  static ɵfac: i0.ɵɵFactoryDeclaration<UicUserFormbuilderComponent, never>;
102
- 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; }; "editableFormInput": { "alias": "editableForm"; "required": false; "isSignal": true; }; }, { "submitFormRequest": "submitFormRequest"; }, never, never, true, never>;
108
+ 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>;
103
109
  }
104
110
  export interface ComputedSourceOption {
105
111
  id: string | number;
@@ -0,0 +1,13 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicWizardStepComponent {
4
+ title: import("@angular/core").InputSignal<string>;
5
+ formRef: import("@angular/core").InputSignal<FormGroup<any> | null>;
6
+ validateFn: import("@angular/core").InputSignal<(() => boolean) | null>;
7
+ canSkip: import("@angular/core").InputSignal<boolean>;
8
+ /** Controlled by UicWizardComponent via effect */
9
+ isActive: import("@angular/core").WritableSignal<boolean>;
10
+ validate(): boolean;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicWizardStepComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicWizardStepComponent, "uic-wizard-step", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "formRef": { "alias": "formRef"; "required": false; "isSignal": true; }; "validateFn": { "alias": "validateFn"; "required": false; "isSignal": true; }; "canSkip": { "alias": "canSkip"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
13
+ }
@@ -0,0 +1,20 @@
1
+ import { UicWizardStepComponent } from './wizard-step.component';
2
+ import { ButtonColor } from '../button/button.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicWizardComponent {
5
+ steps: import("@angular/core").Signal<readonly UicWizardStepComponent[]>;
6
+ navigationEnabled: import("@angular/core").InputSignal<boolean>;
7
+ buttonsColor: import("@angular/core").InputSignal<ButtonColor>;
8
+ stepChange: import("@angular/core").OutputEmitterRef<number>;
9
+ wizardComplete: import("@angular/core").OutputEmitterRef<void>;
10
+ currentIdx: import("@angular/core").WritableSignal<number>;
11
+ isFirst: import("@angular/core").Signal<boolean>;
12
+ isLast: import("@angular/core").Signal<boolean>;
13
+ stepTitles: import("@angular/core").Signal<string[]>;
14
+ constructor();
15
+ next(): void;
16
+ back(): void;
17
+ goTo(index: number): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicWizardComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicWizardComponent, "uic-wizard", never, { "navigationEnabled": { "alias": "navigationEnabled"; "required": false; "isSignal": true; }; "buttonsColor": { "alias": "buttonsColor"; "required": false; "isSignal": true; }; }, { "stepChange": "stepChange"; "wizardComplete": "wizardComplete"; }, ["steps"], ["*"], true, never>;
20
+ }
@@ -0,0 +1,2 @@
1
+ export * from './wizard.component';
2
+ export * from './wizard-step.component';
@@ -126,6 +126,12 @@ export declare const DICTIONARY_EN: {
126
126
  readonly next: "Next";
127
127
  readonly submit: "Send";
128
128
  };
129
+ readonly wizard: {
130
+ readonly back: "Previous";
131
+ readonly next: "Next";
132
+ readonly finish: "Finish";
133
+ readonly step_of: "Step {{current}} of {{total}}";
134
+ };
129
135
  readonly work_panel: {
130
136
  readonly minimize: "Minimize";
131
137
  readonly expand: "Expand";
@@ -164,6 +170,7 @@ export declare const DICTIONARY_EN: {
164
170
  readonly delete_field_dependency_blocked: "This field cannot be deleted because another field depends on its value";
165
171
  readonly preview_form: "Preview";
166
172
  readonly submit_form: "Submit";
173
+ readonly preview_form_label: "This is just a preview";
167
174
  readonly select_field_to_edit: "Select a field to edit its properties";
168
175
  readonly no_fields: "Add fields to your form";
169
176
  readonly base: {
@@ -126,6 +126,12 @@ export declare const DICTIONARY_ES: {
126
126
  readonly next: "Siguiente";
127
127
  readonly submit: "Enviar";
128
128
  };
129
+ readonly wizard: {
130
+ readonly back: "Anterior";
131
+ readonly next: "Siguiente";
132
+ readonly finish: "Finalizar";
133
+ readonly step_of: "Paso {{current}} de {{total}}";
134
+ };
129
135
  readonly work_panel: {
130
136
  readonly minimize: "Minimizar";
131
137
  readonly expand: "Agrandar";
@@ -163,6 +169,7 @@ export declare const DICTIONARY_ES: {
163
169
  readonly delete_block_dependency_blocked: "Este bloque no se puede eliminar porque contiene campos de los que dependen otros campos";
164
170
  readonly delete_field_dependency_blocked: "Este campo no se puede eliminar porque otro campo depende de su valor";
165
171
  readonly preview_form: "Vista previa";
172
+ readonly preview_form_label: "Esta es solo una vista previa";
166
173
  readonly submit_form: "Guardar";
167
174
  readonly select_field_to_edit: "Selecciona un campo para editar sus propiedades";
168
175
  readonly no_fields: "Añade campos a tu formulario";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.7.9",
3
+ "version": "0.8.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.2.0 <21.0.0",
6
6
  "@angular/core": ">=19.2.0 <21.0.0",
package/public-api.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from './lib/components/excel-table/excel-table.component';
38
38
  export * from './lib/components/editable-table/editable-table.component';
39
39
  export * from './lib/components/tag-selector/tag-selector.component';
40
40
  export * from './lib/components/progress-bar/progress-bar.component';
41
+ export * from './lib/components/wizard/wizard.index';
41
42
  export * from './lib/animations/animatios.index';
42
43
  export * from './lib/components/dynamic-form/form.models';
43
44
  export * from './lib/components/dynamic-form/repeater/repeater.component';